The default configuration tool on Input Club or Massdrop don’t allow for macro programming. So you will have to get your hands dirty and mess with the firmware code a little. It’s not hard. Run the following commands on your terminal to clone Ben Blazak’s firmware code from github and create a custom layout for […]
Category Archives: Uncategorized
What should I learn?
This is a question I get asked a lot. Mostly by those who are just starting off their career as programmers/developers, but often times also by veterans of IT field. Recently, I found myself asking that question when I came to the realization that PHP, as a language was not as much in demand as […]
Macports Ruby: Symbol not found: _SSLv2_client_method error
This error usually shows up when you try to run the following command:
1 |
sudo gem install <any-bundle-here> |
For those that don’t know what I am talking about, this is the error message:
1 2 3 4 5 |
ERROR: Loading command: install (LoadError) dlopen(/opt/local/lib/ruby2.2/2.2.0/x86_64-darwin15/openssl.bundle, 9): Symbol not found: _SSLv2_client_method Referenced from: /opt/local/lib/ruby2.2/2.2.0/x86_64-darwin15/openssl.bundle Expected in: /opt/local/lib/libssl.1.0.0.dylib in /opt/local/lib/ruby2.2/2.2.0/x86_64-darwin15/openssl.bundle - /opt/local/lib/ruby2.2/2.2.0/x86_64-darwin15/openssl.bundle |
The only way to get this to go away is to re-compile ruby so it will use the new openSSL library. Macports, however, installs packages […]
Setting, removing and reading cookies in Javascript
Copy/paste these methods and use them
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
/** * Create a cookie * * @param string name * @param mixed value * @param int days */ function createCookie(name,value,days) { if (days) { var date = new Date(); date.setTime(date.getTime()+(days*24*60*60*1000)); var expires = "; expires="+date.toGMTString(); } else var expires = ""; document.cookie = name+"="+value+expires+"; path=/"; } /** * Read a cookie * * @param string name */ function readCookie(name) { var nameEQ = name + "="; var ca = document.cookie.split(';'); for(var i=0;i < ca.length;i++) { var c = ca[i]; while (c.charAt(0)==' ') c = c.substring(1,c.length); if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length); } return null; } /** * Remove a cookie * * @param string name */ function eraseCookie(name) { createCookie(name,"",-1); } |
Sunlit Garden
I have been painting landscapes mostly so I wanted to try something different this time. Another reason I wanted to do this painting is to experiment with sunlight (and little details like the gate) change how the viewer feels when he/she looks at the painting. Thankfully, my experiment was successful. Here is the painting: I […]
Ergodox: Make LEDs indicate the layer you are on
This article assumes that you are working with the source code downloaded from MassDrop. Open the file lib /key-functions/public/basic.c and add the following line below after all the #define statements.
1 |
extern uint8_t keyboard_leds; |
Then go to the push function of the layer you want the LEDs to light up on. Let’s assume we want to turn on […]
Ergodox – The customizable ergonomic split keyboard
A few months ago, I got a mechanical keyboard called Ergodox. It is an open source keyboard (which means its schematics are posted online for anyone who wants to build it.) that you need to build yourself. You cannot buy it pre-built. Although, recently people have been putting up Ergodox with Cherry MX blue switches. […]
My mechanical keyboard
In my last post, I talked about mechanical keyboards and how great they are to type on. I figured I would show you guys what my keyboard looked like. I have a Corsair K60 with custom key caps (well some of them are custom). Corsair did a great job with the keyboard and the only […]
Mechanical keyboards
Between work and personal projects, programmers tend to type 8 or more hours a day and it helps to have a keyboard you can type on comfortably. Something that wont kill your fingers or your hands over time. Mechanical keyboards fill this need. They have taken the gaming world by a storm and a lot […]
Corsair k60 OSX issues
I got a Corsair K60 a few months ago and fell in love with it. It is a mechanical keyboard (my first mechanical keyboard) with Cherry MX red switches. There is, however, one problem with it. The caps lock LED is always on and the LEDs for num lock and scroll lock are always off. […]