Olson CloudWorks 🚀

: All Posts

How to resolve symbolic links in a shell script

How to resolve symbolic links in a shell script

Given an absolute or relative path in a Unixlike system I would like to determine the full path of the target after resolving any intermediate symlinks Bonus

Read more →

How to rollback just one step using rake dbmigrate

How to rollback just one step using rake dbmigrate

After adding migration files in the dbmigrate folder and running rake dbmigrate I want get back to the previous step I think using VERSIONn is the right way to

Read more →

How to run sh on Windows Command Prompt

How to run sh on Windows Command Prompt

How can I run sh on Windows 7 Command Prompt I always get this error when I try to run this line in it appbuildbuildsh error app is not recognized or bash

Read more →

How to take screenshot of a div with JavaScript

How to take screenshot of a div with JavaScript

I am building something called the HTML Quiz Its completely ran on JavaScript and its pretty cool At the end a results box pops up that says Your Results and

Read more →

How to use mod operator in bash

How to use mod operator in bash

Im trying a line like this for i in 1600 do wget httpexamplecomsearchlink i 5 done What Im trying to get as output is wget httpexamplecomsearchlink0 wget

Read more →

Implementing Singleton with an Enum in Java

Implementing Singleton with an Enum in Java

I have read that it is possible to implement Singleton in Java using an Enum such as public enum MySingleton INSTANCE But how does the above work Specifically

Read more →

jQuery validate How to add a rule for regular expression validation

jQuery validate How to add a rule for regular expression validation

I am using the jQuery validation plugin Great stuff I want to migrate my existing ASPNET solution to use jQuery instead of the ASPNET validators I am missing a

Read more →

JSON to pandas DataFrame

JSON to pandas DataFrame

What I am trying to do is extract elevation data from a google maps API along a path specified by latitude and longitude coordinates as follows from urllib2

Read more →

Kubernetes API - Get Pods on Specific Nodes

Kubernetes API - Get Pods on Specific Nodes

Reading the Kubernets documentation it looks to be possible to select a certain range of pods based on labels I want to select all the pods on one node but I

Read more →