Feb 26 2015

Nerd Who?

Nerd Who?

Permanent link to this article: http://ericsilva.org/2015/02/26/nerd-who/

Dec 11 2014

Ho Ho Ho

Ho Ho Ho

Permanent link to this article: http://ericsilva.org/2014/12/11/ho-ho-ho/

Nov 26 2014

Eli Completely Relaxed

Eli Completely Relaxed

Permanent link to this article: http://ericsilva.org/2014/11/26/eli-completely-relaxed/

Nov 25 2014

Tired on Tuesday

Tired on Tuesday #dogs

Permanent link to this article: http://ericsilva.org/2014/11/25/tired-on-tuesday/

Nov 12 2014

Counting Items in JSON Object

For basic JSON tasks (e.g., querying, counting) I use the jq command-line utility.

To get a count of the items in a JSON object use the following command:

jq '. | length' /myfiles/data.json

Still interested? Check out the full tutorial and the manual.

Permanent link to this article: http://ericsilva.org/2014/11/12/counting-items-in-json-object/

Nov 10 2014

No Shave November

No Shave November

Permanent link to this article: http://ericsilva.org/2014/11/10/no-shave-november/

Sep 26 2014

Shell Shock Vulnerability and Bash Patch

Given that Bash 3.2 (the version shipped by OSX) is vulnerable to the remote execution exploit known as “Shell Shock” (CVE-2014-6271 and CVE-2014-7169), many are asking how do I rebuild Bash and secure my system ahead of an official Apple patch?

I found the answer over at StackExchange.  Follow the instructions whether you use the native Bash, Homebrew, or MacPorts versions.

You can determine if you are vulnerable to the original problem in CVE-2014-6271 by executing this test:

$ env x='() { :;}; echo vulnerable' bash -c 'echo hello'
bash: warning: x: ignoring function definition attempt
bash: error importing function definition for `x'

The above output is an example of a non-vulnerable bash version. If you see the word vulnerable in the output of that command your bash is vulnerable and you should update.

Permanent link to this article: http://ericsilva.org/2014/09/26/shell-shock-vulnerability-and-bash-patch/

Jul 06 2014

Automatically Set $GOROOT variable with Homebrew

If you are using Go with Homebrew on OSX, add this to your ~/.profile or ~/.bash_profile to set the $GOROOT automatically:

GOVERSION=$(brew list go | head -n 1 | cut -d '/' -f 6)
export GOROOT=$(brew --prefix)/Cellar/go/$GOVERSION

Permanent link to this article: http://ericsilva.org/2014/07/06/automatically-set-goroot-variable-with-homebrew/

Jun 05 2014

Checking out X-Games Austin

Checking out X-Games Austin

Permanent link to this article: http://ericsilva.org/2014/06/05/checking-out-x-games-austin/

Jun 05 2014

Camera Not Working on Mavericks

I had an issue after upgrading to Mavericks where Photo Booth, Facetime, and Skype could not detect my camera, and kept telling me there were no connected cameras.

I found a fix on the Apple discussion forum that works, and I will share for anyone else that might be affected:

  • Quit all open apps that may try to use the FaceTime camera
  • Open Terminal, found in the /Applications/Utilities directory in OS X
  • Enter the following command string exactly, then hit return:
  • sudo killall VDCAssistant
  • Enter the administrator password when requested, this is required to execute a command with superuser privileges as prefixed by sudo
  • Relaunch the app that was attempting to use the camera

Permanent link to this article: http://ericsilva.org/2014/06/05/camera-not-working-on-mavericks/

Older posts «

Fetch more items