Photo Journal for 3/26/2015

 

It’s an interesting and exciting time to be getting into real estate. Shouldn’t you have one of the most tech savey agents in the area on your side? 

Linux ls output colors

If you’ve used linux much and your terminal is set to display files and directories in color, you know how frustrating it can be to have dark blue text on a black background like so (I’ve seen it much worse too)…

dirColorBefore

If you would like to modify the output so the colors are a bit more readable, you can add the following to your .bashrc file…

alias ls='ls --color'
LS_COLORS='di=33:fi=36:ex=31'
export LS_COLORS

which will produce an easier to read version like so (with directories yellow, files a crayon/teal, and executable files red)…

dirColorAfter

As pointed out in this article

The first line makes ls use the –color parameter by default, which tells ls to display files in different colours based on the setting of the LS_COLORS variable.

The second line is the tricky one, and what I have worked out so far has been by trial and error. The parameters (di, fi, etc.) refer to different Linux file types. I have worked them out as shown

di = directory
fi = file
ln = symbolic link
pi = fifo file
so = socket file
bd = block (buffered) special file
cd = character (unbuffered) special file
or = symbolic link pointing to a non-existent file (orphan)
mi = non-existent file pointed to by a symbolic link (visible when you type ls -l)
ex = file which is executable (ie. has ‘x’ set in permissions).

The *.rpm=90 parameter at the end tells ls to display any files ending in .rpm in the specified colour, in this case colour 90 (dark grey). This can be applied to any types of files (eg. you could use ‘*.png=35’ to make jpeg files appear purple.) As many or as few parameters as you like can go into the LS_COLORS variable, as long as the parameters are separated by colons.

Using trial and error (and a little bash script I wrote… my first one ever! 🙂 I worked out all the colour codes, at least my interpretation of them –

0 = default colour
1 = bold
4 = underlined
5 = flashing text
7 = reverse field
31 = red
32 = green
33 = orange
34 = blue
35 = purple
36 = cyan
37 = grey
40 = black background
41 = red background
42 = green background
43 = orange background
44 = blue background
45 = purple background
46 = cyan background
47 = grey background
90 = dark grey
91 = light red
92 = light green
93 = yellow
94 = light blue
95 = light purple
96 = turquoise
100 = dark grey background
101 = light red background
102 = light green background
103 = yellow background
104 = light blue background
105 = light purple background
106 = turquoise background

Photo Journal for 3/14/2015



The thing I like most when working with buyers is to find a home that doesn’t look like much from the outside, but when you walk in something like this beautiful sight hits you. Love the natural light. Love the floor to ceiling windows. 

Outlook Email Snooze

If you’ve gotten used to apps that allow you to snooze your email (have it disappear from your inbox until the date you specify and then reappear) I just found this page which appears to be the perfect solution for implementing in Outlook.

Basically it consists of creating a custom view of your inbox w/ 2 filters set. One for Due Date not existing and the other where Due Date is on or before “Today”.

Hit up the full post for step by step instructions and screen shots.

NullPointerException – could not publish to server

Ok, so this is an obscure one, but if it saves anyone from multiple days of banging their head against the wall it’s worth it…

Recently I was working in eclipse, had created my component, compiled it, and had it pushed to our ivy repository. I then went to bring it into another (web) project when I started getting complaints about a NullPointerException. For kicks I tried running the web app and received the error “NullPointerException (could not publish to server)”. With all that useful information how could I not figure out what the problem was?

Fortunately another developer I spoke with had seen the issue before and pointed me in the right direction. In the utility component/jar you have to (see screen shot below too)…

  1. Go to Project -> Properties
  2. Click on “Project Facets”
  3. Check “Utility Module”

And then it will just magically work. Wasn’t that completely obvious?

EclipseUtilityMode

Photo Journal for 3/8/2015

Me and the infamous puke bucket got very familiar today. Can’t remember the last time I felt this lousy (don’t think I have at least in my adult life)

Photo Journal for 3/6/2015



Waiting around for a baby to be born and having daddy try to get some work done sometimes means allowing this tornado. 

Don’t worry dear, it got cleaned up :)