How to hang pictures straight on drywall

Of all the things my wife asks me to do around the house, the thing I hate most is hanging pictures. I am a perfectionist, so when I hang pictures, it has to be straight. I also hate putting more holes than I have to in the drywall.

It used to take me over an hour to hang a picture, because I have to take a ton of measurements, and do all sorts of stuff to the drywall to make the picture hang straight and secured. I really hate drywall and all the fastening hardware they make for it. None of them work well. One little tug and you will rip them right out of the wall. They are also a pain in the butt to work with. You have to hammer a lot of them in, but they are made of cheap plastic, so the moment you take a hammer to them, they smash into bits. I can’t count the number of unnecessary holes I’ve created because of bad drywall anchors.

But, today I discovered a technique that works really well and is super fast.

Here are the tools you need

  1. A laser leveler – Like this one: Bosch GLL 30 – It will help you draw a straight line on your wall, making it much easier to take measurements
  2. These monkey hooks
  3. A standard level – to make any offset from your laser line

Here are the steps you take

  1. Shine the laser line where the frame should be hung, specifically on where the hooks will be.
  2. Use your standard level to make sure everything is leveled, or measure any offset you need to measure and mark the spot
  3. Push those monkey hooks into the wall

That’s it. You’re done. No need for any other tools. No screw driver, no cleaning up drywall dust, no marking reference points or checking if everything is leveled. So simple. Can’t believe it took me so long to figure this out.

How to use SheetJS XLSX with Angular 4 Typescript in the browser

It took me a while to figure this out, so I’ll share my code here.

You will need the `file-saver` and `xlsx` npm packages.

There are two important parts:

1. Make sure you specify the `meta` section in systemjs or else it won’t load `XLSX.utils`

2. Use the correct `XLSX.write` parameters, otherwise you will get `nodebuffer is not supported by this browser`

heroku npm install not updating because of cache

Wasted a frustrating hour trying to figure out why `npm install` and `npm install foobar` would not update my package.

Finally found this:

https://devcenter.heroku.com/articles/nodejs-support#cache-behavior

Their caching is very rigid. Even if `npm install` runs and it tells you the package is updated, it won’t update. The cache will just replace itself. Even deleting the entire node_modules directory via `heroku run bash` did not work

“`
heroku config:set NODE_MODULES_CACHE=false
$ git commit -am ‘disable node_modules cache’ –allow-empty
$ git push heroku master
“`

Running the above finally did the trick.

How to run angular 4 karma tests on circleci

Here is what I had to add to my circle.yml

machine:
node:
version: 6.10.1

test:
override:
- npm run-script test:once

1) Setting node version is important on CircleCI otherwise you’ll get a bunch of peer dependencies errors.
2) Karma is set up to run tests continuously, which is not good on CircleCI.

How to access the RQM (Rational Quality Manager) API with Basic Authorization

To make a GET request to an RQM server you need to set four HEADER values

Accept: application/xml
Content-Type: application/rdf+xml
OSLC-Core-Version: 2.0
Authorization: Basic BASICAUTHTOKEN

The generate the BASICAUTHTOKEN, perform the following operation [credit]

String userpass = username + ":" + password;
String basicAuth = "Basic " + javax.xml.bind.DatatypeConverter.printBase64Binary(userpass.getBytes());

The endpoint will look something like this

https://jazz.net/sandbox01-qm/process/project-areas

Here is the cURL version of my Postman

curl -X GET -H "Accept: application/xml" -H "Content-Type: application/rdf+xml" -H "OSLC-Core-Version: 2.0" -H "Authorization: Basic BASICAUTHTOKEN" -H "Cache-Control: no-cache" "https://jazz.net/sandbox01-qm/process/project-areas"

Bosch EL-51253 Power Max 30 Amp Electric Vehicle Charging station wall installation

I had a very difficult time finding installation examples for theĀ Bosch EL-51253 Power Max, so I want to add this image to the collection for future references:

My house was pre-wired with 8 gauge wire to a 40amp breaker. The wires comes out at an electric box, so to run the flexible conduit into the charger, they had to put in a plate with some fancy connectors. This is what it looks like

bosch-el-51253-power-max-30-amp-electric-vehicle-charging-station

 

Oval clocks: realtors treat house images like online dating profile pictures

I’ve seen using Redfin and Zillow to look for houses. It seems that realtors like to lie about the size of the houses they are selling. It’s like someone taking a deceptive pictures to use in an online dating website.

This has led to a rather funny item you always see in houses: oval clocks.

The result of them stretching the pictures to make rooms look bigger.

16049029_2_0

oval-clocks

Finding doctors and dentists for medi-cal and denti-cal

One of the things that really irks me is when well to-do people say shit like: “Poor people get free healthcare, why should I work. I should just quit my job and go on welfare so I can get free shit too”.

It pisses me off because I’ve had experience looking for doctors and dentists that accepts medi-cal and denti-cal insurance.

It’s a terrible experience because the list of providersĀ is always short and most are in the ghettos. On top of that, if you google the people on that list, half of them will be 1-star on yelp.

It’s not fun or easy to be living in poverty. Your choices are always limited, which forces you into a cycle of endless headaches and problems.

What it’s like to have a baby with acid reflux

Our newborn girl has a condition known as Gastroesophageal Reflux Disease (GERD), or simply known as “acid reflux”.

This is how our days play out.

1. We feed her
2. Hold her for 30 minutes to prevent reflux
3. Doesn’t work, she vomits
4. We clean her
5. She’s hungry because she didn’t keep her food down
6. We feed her again.
7. She vomits again.
8. We clean her again.
9. She’s hungry, but now she’s too tired to eat.
10. She sleeps for maybe 30 minutes…
11. The acid reflux wakes her up
12. She vomits yet again.
13. Go back to step 1

This hour long cycle is endless. There are many days when we are up 24-hours to play out this endless cycle.

People who don’t understand this problem thinks we are just stupid parents.

“All baby spit up” they say.
“You have to burp your baby” they say.
“Just put your baby down and let her sleep” they say.

Blah blah blah blah blah…

I will gladly accept that I am a stupid parent, and wear a dunce cap and a t-shirt that says I am stupid idiot, if it means my baby can be properly fed and can sleep more than an hour without waking up crying in pain.

The naivety of youth

There is a common perception that young people are naive and that’s why they are so vocal about politics, social injustice, etc…

But as I’ve grown older, I’ve realized that it’s not because the youth are naive, it’s because as you grow older, you realize people just don’t care. So you stop voicing your opinions.

I think this is a problem. Political apathy should not be a badge of honor. We should engage and challenge each other.