geminstallthat.wordpress.com
Using Ohai to obtain platform | Gem Install That
https://geminstallthat.wordpress.com/2009/09/01/using-ohai-to-obtain-platform
Ruby on Rails Geek Blog. Using Ohai to obtain platform. September 1, 2009. Posted by John Dewey in Chef. I have found myself needing to know the operating system platform. Rather than explicitly checking for /etc/lsb-base or /etc/issue to determine if it’s Ubuntu or Debian respectively. Let Ohai. Do the work for you. Prints the platform. You can access just about anything you want to know about your system via this method. No comments yet — be the first. Leave a Reply Cancel reply. LA Ruby Linked In.
geminstallthat.wordpress.com
Sinatra utf-8 Content-Type before filter | Gem Install That
https://geminstallthat.wordpress.com/2009/04/22/sinatra-utf-8-content-type-before-filter
Ruby on Rails Geek Blog. Sinatra utf-8 Content-Type before filter. April 22, 2009. Posted by John Dewey in Code. I wanted to learn Sinatra. So I started converting my personal Rails. Site over to Sinatra. I scrape my Twitterholic. Rating, and redisplay it on my site. I need the css and html to have a Content-Type of utf-8. I came up with the following before filter. There is probably a better way to do this, I just wanted my controllers to be less “wet”. I also use the following. To render all css. Using...
fernyb.net
FernyB | Ruby Web Scraping Using Nokogiri and Curb
http://fernyb.net/blog/2013/06/25/ruby-web-scraping-using-nokogiri-and-curb
Ruby Web Scraping Using Nokogiri and Curb. On Jun 25, 2013. I made a video on using nokogiri and curb to web scrape. Simple but to the point maybe I’ll start to make more of this stuff. Http:/ www.youtube.com/watch? 4 Responses to “ Ruby Web Scraping Using Nokogiri and Curb ”. September 8th, 2013 at 4:35 pm. Nike tn pas chere. July 15th, 2014 at 10:19 pm. Ralph lauren outlet sverige. August 28th, 2014 at 6:54 pm. October 10th, 2014 at 5:37 pm. Mail (will not be published) (required). Larr; Ruby url encode.
fernyb.net
FernyB | Ruby url encode
http://fernyb.net/blog/2013/01/20/ruby-url-encode
On Jan 20, 2013. In one of the projects I’m working on I’ve been seeing the following all over the codebase. CGIescape(plaintext).gsub(“ ”, “%20”).gsub(“%7E”, “ ”). At first you wonder why are they replacing “ ” with “%20”. Then you realize what they really wanted to use was “URI.encode”. When using “URI.encode” you don’t need to gsub “ ” with “%20”. 8 Responses to “ Ruby url encode ”. July 7th, 2014 at 3:09 pm. It’s hard to find your website in google. I found it on 14. July 27th, 2014 at 5:05 pm. Many ...
fernyb.net
FernyB | video
http://fernyb.net/blog/category/video
Archive for the ‘video’. Larr; Previous Entries. Preview Email in Rails. 8226; 07.02.13. I’ve recorded another video showing RailsMailPreview and FBDistributedNotification specifically on how to preview your email from a rails app. Http:/ www.youtube.com/watch? With 2 Comments →. Ruby Web Scraping Using Nokogiri and Curb. 8226; 06.25.13. I made a video on using nokogiri and curb to web scrape. Simple but to the point maybe I’ll start to make more of this stuff. Http:/ www.youtube.com/watch? Oh yeah, I...
fernyb.net
FernyB | Ruby
http://fernyb.net/blog/category/ruby
Archive for the ‘Ruby’. Larr; Previous Entries. 8226; 08.27.13. Lately I’ve been using Rabl in Rails to serve json. I’ve used it a few months ago but clearly I don’t remember so much about. Now that I’ve been using more I’m starting to like it more. As soon as I understood how it worked it was more fun to use than rendering json in Rails via “render :json = {}”. Note to self, when I have some time I’ll create a screencast on how to use it. With 38 Comments →. Preview Email in Rails. 8226; 07.02.13. Today...
fernyb.net
FernyB | Cocoa
http://fernyb.net/blog/category/cocoa
Archive for the ‘Cocoa’. RailsMailPreview updated for 10.8. 8226; 12.10.12. RailsMailPreview has been updated to work on Mac OSX 10.8. To download visit: http:/ nufex.com/. With 1 Comment →. MacRuby, Rails Mail Preview. 8226; 10.26.11. I recently wrote an app called RailsMailPreview which will capture any emails being sent from your Rails app. Once they are captured you can preview what they will look like to the end user. It is available for purchase from the Mac App Store:. With 1 Comment →. Hello Ther...
fernyb.net
FernyB | MacRuby
http://fernyb.net/blog/category/macruby
Archive for the ‘MacRuby’. RailsMailPreview updated for 10.8. 8226; 12.10.12. RailsMailPreview has been updated to work on Mac OSX 10.8. To download visit: http:/ nufex.com/. With 1 Comment →. MacRuby, Rails Mail Preview. 8226; 10.26.11. I recently wrote an app called RailsMailPreview which will capture any emails being sent from your Rails app. Once they are captured you can preview what they will look like to the end user. It is available for purchase from the Mac App Store:. With 1 Comment →.
fernyb.net
FernyB | Uncategorized
http://fernyb.net/blog/category/uncategorized
Archive for the ‘Uncategorized’. Larr; Previous Entries. 8226; 01.20.13. In one of the projects I’m working on I’ve been seeing the following all over the codebase. CGIescape(plaintext).gsub(“ ”, “%20”).gsub(“%7E”, “ ”). At first you wonder why are they replacing “ ” with “%20”. Then you realize what they really wanted to use was “URI.encode”. When using “URI.encode” you don’t need to gsub “ ” with “%20”. With 8 Comments →. 8226; 03.29.11. With 49 Comments →. PHP GAMV is back online. With 1 Comment →.
fernyb.net
FernyB | Mac
http://fernyb.net/blog/category/mac
Archive for the ‘Mac’. Larr; Previous Entries. MacRuby, Rails Mail Preview. 8226; 10.26.11. I recently wrote an app called RailsMailPreview which will capture any emails being sent from your Rails app. Once they are captured you can preview what they will look like to the end user. It is available for purchase from the Mac App Store:. With 1 Comment →. I’m now using MacVIM…. 8226; 07.10.11. With 26 Comments →. 8226; 05.09.11. This is what I used to forward port 80 to 3000. With 1 Comment →. Atlas is like...
SOCIAL ENGAGEMENT