How can I completely uninstall and then reinstall Meteor.js?

Let’s start with the deletions, then we’ll move on to the reinstallations. If you ever installed Meteorite, uninstall and delete it:sudo mrt uninstall sudo mrt uninstall –system rm -rf ~/.meteorite Then delete Meteor:sudo rm /usr/local/bin/meteor rm -rf ~/.meteor Now start over at the beginning: Repair permissions if necessary:sudo chown -R $(whoami) ~/.npm Reinstall Meteor:curl https://install.meteor.com/ … Read more

How to Clear Office Clipboard with VBA

Saw this on another post, and I have tested it with Word VBA. Just copy and paste into your code where ever you need to clear the Clipboard. Another thing I noticed is that when I .Quit a program, say Excel, it keeps asking me if I want to keep the data is the Clipboard. A work … Read more

What’s so special about 0x7f?

This is a form of bit-packing where the most significant bit of each byte is used to determine if another byte should be read. Essentially, this allows you to encode values in a fewer amount of bytes than they would normally require. However, there is the caveat that, if the number is large, then more than the normal amount of bytes … Read more

Is there a standard function to check for null, undefined, or blank variables in JavaScript?

You can just check if the variable has a truthy value or not. That means will evaluate to true if value is not: null undefined NaN empty string (“”) 0 false The above list represents all possible falsy values in ECMA-/Javascript. Find it in the specification at the ToBoolean section. Furthermore, if you do not know whether a variable exists (that means, if it was declared) you should check with the typeof operator. For instance … Read more

Determining if an Android device is rooted programmatically?

Rooting detection is a cat and mouse game and it is hard to make rooting detection that will work on all devices for all cases. See Android Root Beer https://github.com/scottyab/rootbeer for advanced root detection which also uses JNI and native CPP code compiled into .so native library. If you need some simple and basic rooting detection check the code below: … Read more

Is there a float input type in HTML5?

The number type has a step value controlling which numbers are valid (along with max and min), which defaults to 1. This value is also used by implementations for the stepper buttons (i.e. pressing up increases by step). Simply change this value to whatever is appropriate. For money, two decimal places are probably expected: (I’d also set min=0 if it can only be positive) If you’d … Read more