How to Extract the Title From an HTML Page with Ruby
This snippet will make a request to this page and extract the title from the title tag.
require 'open-uri'
html = open('http://www.seanbehan.com/how-to-extract-the-title-from-an-html-page-with-ruby').read
title = html.match(/(.*)/) { $1 }
pu...
Written by Sean Behan on 08/22/2013
How to Find An SQLite Database with React Native and the iPhone Simulator.
I spent a few hours digging around my file system using `find` and `grep` hunting for my SQLite database that the iPhone Simulator was using for my React Native project. And no luck.
But I found a simple solution was to use `react-native log-ios` and ...
Written by Sean Behan on 06/29/2017
Installing Ruby with RVM without Xcode using CLANG
I am not using the full Xcode package on my laptop. Instead I'm using the command line tools, offered by Apple as a separate and much smaller install. I haven't had too many issues, aside from not being able to use the FileMerge program that ships with ...
Written by Sean Behan on 06/24/2012
Send Mail in Ruby with a Pony
Great little gem that let's you quickly and easily send out mail from your ruby scripts.
gem install pony
require 'rubygems'
require 'pony'
Pony.mail :from=>"me@example.com", :to=>"you@example.com", :subject=>"hello", :body=>"world"
Written by Sean Behan on 06/17/2012
salmon salad at home
Written by Sean Behan on 06/17/2012