{ Josh Rendek }

<3 Go & Kubernetes · honeypots · homelab · leadership

Jul 11, 2009 · 1 min

Random Rumblings

Was reading through my mailing lists and found this one in the Drizzle mailing list when talking about code styling for c++, pretty interesting read “Join Strike Air Fighter Vehicle C++ Coding Standards”

http://www.research.att.com/~bs/JSF-AV-rules.pdf

Another random musing when I was working on a rails project: Even if your using the default environment for a cron job, you need to put RAILS_ENV=env /path/to/ruby etc…. in the command line for it to work (at least on CentOS)

read more

Apr 14, 2009 · 1 min

Free Server Monitoring

Do you want free server monitoring with only one simple script to run via cron Tired of all the hassle of settings up other systems….

I’m launching a new website soon that does all this, if you would like to be invited to try it out shoot me an email at josh [ at ] bluescripts [dot] net

Preview: Preview screenshot of the Servly server monitoring dashboard

read more

Mar 31, 2009 · 1 min

Rails remote IP address from behind a proxy

Since I have a cluster of 3 mongrels running behind lighttpd the usualy request.env[‘REMOTE_ADDR’] wasn’t working …

what ended up working was request.env[‘HTTP_X_FORWARDED_FOR’] to get the users IP

read more

Mar 18, 2009 · 6 min

Lighttpd, Mongrel, Ruby on Rails, and Lighttpd Proxy backend Performance Comparison

First I was kind of surprised at the lack of performance comparisons people have made between the different lighttpd proxies with a rails/mongrel cluster backend and which ones would be best.

Lets start off the the specs of the box: Intel Atom 330 CPU Standard 7,200RPM HDD CentOS 5.2 2GB Ram Lighttpd with 3 Mongrel Clusters running an online food ordering system I wrote (MySQL + Rails)

Other than that there was nothing special. I’ve done no kernel tweaking or any other performance optimizations with Lighttpd or any other part of the system.

read more

Mar 3, 2009 · 1 min

Random Ruby Rumblings

I’m going to keep updating this post as I make some more findings about Rails that I think are pretty good assumptions a newbie should learn about:

Case 2, forms: I made an array using split(",") in the controller, then in the view I was looping through and could puts them out fine, however the ultimate goal was to use them in a form. Basically I needed it to be name=“order[field_name]” name=“order[field_name_2]”

read more

Mar 2, 2009 · 1 min

Ruby & Ruby on Rails

I’ve decided to finally tackle learning rails by developing my next project in it.

However I was setting up Ruby/Rails when trying to run gem install rails returned this error:

/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require’: no such file to load – zlib (LoadError)

After I ran yum install zlib* and hit yes to the devel libraries, went back to ruby source, did make clean, ./configure, make, make install then switched to the ruby gem source and ran ruby setup.rb and then gem install rails worked fine.

read more

Feb 22, 2009 · 1 min

Firefox Tunnel + MAC & Panera's Fail

ssh -ND 9999 [email protected]

Open firefox, network preferences under the Advanced tab, SOCKS proxy and set host to 127.0.0.1 and port 9999 close preferences and you’re all set to go.

– Addendum:

I was actually at Panera’s doing some work while I ate breakfast with a friend when I did this… I had planned on staying longer but apparently Panera’s doesn’t like customers buying lunch… I had planned on staying an additional bit past 12 to eat some lunch there but was promptly disconnected from the internet after 30 minutes of use (between 11:30AM and 1:30PM they block you after 30 minutes of WiFi).

read more

Feb 17, 2009 · 1 min

New Project! NoteCardApp.com

I made this over the weekend. For now it lets you register, create note cards, flip through them and mark whether you know them or not. I figured this would help out a few people and note cards / flash cards are always a good way to study.

Head on over and check it out! http://notecardapp.com/

Online Note Card study program

read more