How to soft ambient hue adobe illustrator

1 Comment

Screen Shot 2018-03-06 at 8.52.08 AM.png

I got this nice ambient transparent hue on an image by doing the following:

White rounded corner square

Screen Shot 2018-03-06 at 8.54.13 AM.png

Transparency 80% (Window / Transparency)

Slide and apply over image. They select the ‘Hue’ option from the Transparent dialog.

Advertisements

New course – Data Structures and Algorithms Bootcamp

1 Comment

Screen Shot 2018-03-06 at 6.15.27 AM

Tired of know knowing what about linked lists?
Frustrated because you can’t speak BigO notation?

Tech companies in the valley don’t interview engineers the same way we do in other parts of the world. They look for very specific knowledge, concepts, and experience that are heavily rooted in traditional computer science. And while you may already be a great engineer, chances are you would fail one of these interviews, not because of a lack of skill, but more because of a lack of understanding.

This course is about changing that.

https://www.udemy.com/data-structures-and-algorithms-bootcamp

By learning the basics behind how data structures work, and what the most commonly used computer algorithms are

You will be able to:

  • Answer the most commonly asked interview questions
  • Ace your technical interview, and
  • Land that dream job

Now I got to warn you. This course goes pretty fast, I am assuming you already know how program.

But if you don’t have a lot of time, and you need to get up to speed fast, this course is for you.

And who am I? My name is Jonathan Rasmusson. I am a former Spotify engineer who lived and worked in the Valley, and who, just like you, also like you wasn’t trained in traditional computer science. I had to learn all this stuff from scratch – just like you.

But the good news is it can be learned. I am proof you can you can land your dream job. And in this course, I am going to show you show you how.

So what are you waiting for? Let’s get started.

 

How to enable Windows Authentication Rider

1 Comment

Right click on project.

4

 

How to Launching Multiple Projects in JetBrains Rider

Leave a comment

Create a project for every IIS project you have in your project.
Configure one of them with a start page.
Add them all to a ‘Compound’ project.

Hit run and watch them go

Your multiple projects in a ‘Compound’ project

1

One of the project configured with a start page

2

Links that help
https://codeopinion.com/launching-multiple-projects-in-jetbrains-rider/

A nice way to combine presence and state in C#

1 Comment

Sometime you want to check that something is there, and that when it is, it also has a specific value.

This is a nice way to do it

public bool RequireUserConfirmation =>
            GasDayInPastData != null &&
            !GasDayInPastData.UserConfirmed;

The C# yield

Leave a comment

I don’t use yields often, but one place where they can be handy is when you want to return a collection of objects Just-In-Time.

One way to do this would be with a list (rather clumsy).

        public static IEnumerable<GasDay> GetEnumerator(GasDay inclusiveStart, GasDay inclusiveEnd)
        {
            List<GasDay> gasDays = new List<GasDay>();
            for (GasDay gasDay = inclusiveStart; gasDay.IsBeforeOrSame(inclusiveEnd); gasDay = gasDay.NextGasDay())
            {
                gasDays.Add(gasDay);
            }
        }

A more elegant way would be o use a yield.

        public static IEnumerable<GasDay> GetEnumerator(GasDay inclusiveStart, GasDay inclusiveEnd)
        {
            for (GasDay gasDay = inclusiveStart; gasDay.IsBeforeOrSame(inclusiveEnd); gasDay = gasDay.NextGasDay())
            {
                yield return gasDay;
            }
        }

SQL Joins

Leave a comment

My brain doesn’t process SQL that well. Here are some notes to help me remember.

Say you have the following table structure:
* Contract – Id
* ContractVersion – ContractId, RateScheduleId
* RateSchedule – Id

And you want all the contracts that use a given RateScheduleid. Here are two ways of to do it.

Non JOIN inline SQL way

Grab all the contractIds that use this RateSchedule from the ContractVersion table

select ContractId from ContractVersion where RateScheduleId = 7

And then inline those into the select on the Contract table using the IN command

SELECT * FROM Contract 
WHERE Id IN 
(SELECT ContractId 
 FROM ContractVersion 
 WHERE RateScheduleId = 7)

That works. And my head gets that. But here is a another way to do it using JOINS.

JOIN ON

Join the Contract and ContractVersion tables ON their ids

SELECT c.Id FROM Contract AS c 
JOIN ContractVersion AScv ON c.Id = cv.ContractId

and then drop in the same where clause

where RateScheduleId = 7

So the whole thing looks like this

SELECT c.Id FROM Contract AS c JOIN ContractVersion as cv ON c.Id = cv.ContractId WHERE  RateScheduleId = 7

This uses a JOIN instead of inline the SQL from before. It’s better as it more closely aligns with how SQL should work. But I still find SQL and set theory some getting used to.

Three way table join

Here is the same idea only applied against three tables (look at these as three ven diagrams between x3 tables. We are trying to get the Name and Role Code for a particular person.

User = ID:UserId = UserRole = Id:RoldId = Role

Where clause way

SELECT Name, Code 
FROM User, Role, UserRole
WHERE Name LIKE '%joel%' 
AND User.Id = UserRole.UserId 
AND Role.Id = UserRole.RoleId 

JOIN way

SELECT User.Name, Role.Code
FROM User 
INNER JOIN UserRole ON SystemUser.Id = UserRole.UserId
INNER JOIN Role ON UserRole.RoleId = Role.Id
WHERE Name LIKE '%joel%'

Older Entries Newer Entries

%d bloggers like this: