rbenv install ruby 2.0.0-p195 on Mac OS X 10.8 with openssl installed via brew (works for me)
irbrc failing to load in rails console
If your irbrc doesn’t get loaded when you fire up a Rails console it’s because your irbrc is invalid. Run ruby ~/.irbrc and see what is failing.
Pen Pal
- Me: Hey Mira, I had an idea. Do you want to have a pen pal?
- Mira: What's a pen pal?
- Me: It's someone who you write letters in the mail and get mail back from them to read.
- Mira: Nah, I don't want a pen pal.
- Me: Why not?
- Mira: I don't want to write a letter, we can just call them.
Why Ruby
This.
Ruby isn’t cool any more. Yeah, you heard me. It’s not cool to write Ruby code any more. All the cool people moved on to slinging Scala and Node.js years ago. Our project isn’t cool, it’s just a bunch of boring old Ruby code. Personally, I’m thrilled that Ruby is now mature enough that the community no longer needs to bother with the pretense of being the coolest kid on the block. That means the rest of us who just like to Get Shit Done can roll up our sleeves and focus on the mission of building stuff with our peers rather than frantically running around trying to suss out the next shiny thing.
Even more geeky
This makes me inexpressibly happy. RT @jackbern23: The Greek god of plagiarism is Poseidon, as he has the power to Ctrl-C.
— Jessica Banks (@ProfBanks) February 8, 2013
Or, even more geeky: The Greek god of interruption.
Letterpress words with a Q but no U
As of late I’m addicted to Letterpress (http://www.atebits.com/letterpress/) and I was curious to see a list of words with a Q but no U.
Thankfully my iphone is jailbroken so I can dig around. It turns out the Letterpess app stores its dictionary words in a series of files like aa.txt, ab.txt, ac.txt, etc. I grepped those files for “q”, excluding U’s. Here is that list:
Letterpress playable words with a Q but no U
faqir
faqirs
fiqh
fiqhs
inqilab
inqilabs
mbaqanga
mbaqangas
niqab
niqabs
qabala
qabalah
qabalahs
qabalas
qabalism
qabalisms
qabalist
qabalistic
qabalists
qadi
qadis
qaid
qaids
qaimaqam
qaimaqams
qalamdan
qalamdans
qanat
qanats
qasida
qasidas
qat
qats
qawwal
qawwali
qawwalis
qawwals
qi
qibla
qiblas
qigong
qigongs
qin
qindar
qindarka
qindars
qins
qintar
qintarka
qintars
qis
qoph
qophs
qorma
qormas
qwerties
qwerty
qwertys
sheqalim
sheqel
sheqels
talaq
talaqs
tranq
tranqs
tsaddiq
tsaddiqim
tsaddiqs
tzaddiq
tzaddiqim
tzaddiqs
waqf
waqfs
yaqona
yaqonas
http://askubuntu.com/questions/66934/passenger-mod-rails-cant-find-libopenssl-ruby
This was really helpful today as I am setting up a new server for an old Ruby 1.8.7 / Rails 2.3 app.
‘sup dude
Drop this script into your $PATH and start using Sublime Text 2’s projects more easily. (I also globally .gitignore the project files since I like to keep them in the project directories)
matt@zo ~/Projects/SecretProject > sup Opening Sublime Text 2 with project SecretProject
#!/usr/bin/env ruby
# Usage: sup
# Starts Sublime Text 2, opening the directory's project file if it exists,
# otherwise, it creates it for you.
name = %x/basename `pwd`/.strip
puts "Opening Sublime Text 2 with project #{name}"
if File.exists?("#{name}.sublime-project")
%x/subl --project #{name}.sublime-project/
else
file = File.open("#{name}.sublime-project", 'w')
file << %|{ "folders": [ { "path": "#{`pwd`.strip}" } ] }|
file.close
%x/subl --project #{name}.sublime-project/
end
Shell magic: Using Regex in Mac OS X find
Quick tip:
You can use extended regular expressions in your find parameters by using -E. The example command below will find all files that end in “.rb” and begin with the letter “p”.
# Find all .rb files that begin with the letter 'p' find -E . -iregex ".*/p([0-9]|[A-Z]|_|-)*\.rb"
Mac Desktop Tool Chain: 2012-09-03
My desktop app tool chain for 2012-09-03. Not all the apps running are mentioned, only the ones I am using at this time. I have a few things like CoBook that are still in a “testing” phase.