Oct29
As a web dev, you may spend some time messing with DNS and overriding it. Though, it can get annoying when you can't get things back to the way that mere mortals see things on the internet.
lookupd -flushcache was a big tool in my arsenal in Tiger. But Leopard put a rightful end to lookupd, but left us without our known way of flushing the cache.
For the last couple of weeks its been pretty annoying, but I'm here to bring you, the NEW way to flush dns cache for OS X users!!! Holy crap this is exciting.
So it's as simple as this:
dscacheutil -flushcache
There you have it.
Popularity: 15% [?]
Categories: Snippets
9 Comments »
Oct27
Yay! Its finally here! The newest version of my favorite operating system. And it comes with 98% of my dev stack ALREADY installed! Yay! This is perfect.
Wait.. ok, no MySql. Thats ok, I'll just install it...Wait.. why isn't it running...why isn't this stupid preference panel turning it on!!!! ARGHHH!
Ok, that may have just happened to you, and you dramatically hit the Google looking for answers. So answers I give you.
If you want to start MySql in Leopard, you need to call the startup item directly from the command line:
sudo /Library/StartupItems/MySQLCOM/MySQLCOM start
And to stop it:
sudo /Library/StartupItems/MySQLCOM/MySQLCOM stop
Not so bad. But long... So make an alias in your .bash_profile
alias start_mysql="/Library/StartupItems/MySQLCOM/MySQLCOM start"
alias stop_mysql="/Library/StartupItems/MySQLCOM/MySQLCOM stop"
Happier? Relaxed? Good.
Popularity: 50% [?]
Categories: Rails
40 Comments »
Tags: mysql apple os x
Aug12
It's Sunday and I'm back at home from Raleigh. The Hoedown really got pulled off. Nathaniel and Jeremy did a great job organizing and keeping things moving throughout the weekend.
The pig pickin' in the park was quite a nice surprise as well. It kept the friendly feel moving. And it was really good too! Carolina BBQ FTW.
The talks turned out pretty great. They (for the most part) stayed away from Rails more than they curbed towards them, so that small goal was accomplished.
I think the best part of all the talks is the awareness the topics received. I've never used C bindings with Ruby, or even investigated, but now I know its not the HARDEST thing in the world, if I ever have to. Also, this goes out to you Adhearsion, you and I have a date. And I think it might just turn into a very beautiful relationship.
The crowd was pretty good and chatty. Everyone was very friendly and as usual had fun stuff to show/talk about.
The lightning talks were great as usual, this really is my favorite format. I really need to get up and do one sometime.
The keynotes were pretty good, although I felt like Marcel's was more of a "talk" where Ken Auer's was more of a Keynote.
Thanks again to all the organizers.
Oh, and the title is a reference to brain games, which no one ever gets, oh well.
Popularity: 6% [?]
Categories: Ruby
2 Comments »
Jul31
So I'm starting on a new idea I had today, and figured now would be as best time as ever to jump back on edge.
The first hiccup I ran in to was almost immediate. Rails assumes you have ActiveResource, yet doesn't provide it when you freeze edge.
`gem_original_require': no such file to load -- active_resource
So make sure the SECOND thing you do after freezing edge is:
svn export http://dev.rubyonrails.org/svn/rails/trunk/activeresource vendor/rails/activeresource
Popularity: 4% [?]
Categories: Rails
4 Comments »
Jun23
Here's the list of gems that are included on Leopard by default.
# gem list
*** LOCAL GEMS ***
actionmailer (1.3.3)
Service layer for easy email delivery and testing.
actionpack (1.13.3)
Web-flow and rendering framework putting the VC in MVC.
actionwebservice (1.2.3)
Web service support for Action Pack.
activerecord (1.15.3)
Implements the ActiveRecord pattern for ORM.
activesupport (1.4.2)
Support and utility classes used by the Rails framework.
acts_as_ferret (0.4.0)
acts_as_ferret - Ferret based full text search for any ActiveRecord
model
capistrano (1.4.1)
Capistrano is a framework and utility for executing commands in
parallel on multiple remote machines, via SSH. The primary goal is
to simplify and automate the deployment of web applications.
cgi_multipart_eof_fix (2.1)
Fix an exploitable bug in CGI multipart parsing which affects Ruby
<= 1.8.5 when multipart boundary attribute contains a non-halting
regular expression string.
daemons (1.0.6)
A toolkit to create and control daemons in different ways
dnssd (0.6.0)
DNS Service Discovery (aka Rendezvous) API for Ruby
fastthread (1.0)
Optimized replacement for thread.rb primitives
fcgi (0.8.7)
FastCGI library for Ruby.
ferret (0.11.4)
Ruby indexing library.
gem_plugin (0.2.2)
A plugin system based only on rubygems that uses dependencies only
hpricot (0.5)
a swift, liberal HTML parser with a fantastic library
libxml-ruby (0.3.8.4)
LibXML2 bindings for Ruby
mongrel (1.0.1)
A small fast HTTP library and server that runs Rails, Camping, Nitro
and Iowa apps.
needle (1.3.0)
Needle is a Dependency Injection/Inversion of Control container for
Ruby. It supports both type-2 (setter) and type-3 (constructor)
injection. It takes advantage of the dynamic nature of Ruby to
provide a rich and flexible approach to injecting dependencies.
net-sftp (1.1.0)
Net::SFTP is a pure-Ruby implementation of the SFTP client protocol.
net-ssh (1.1.1)
Net::SSH is a pure-Ruby implementation of the SSH2 client protocol.
rails (1.2.3)
Web-application framework with template engine, control-flow layer,
and ORM.
rake (0.7.3)
Ruby based make-like utility.
ruby-openid (1.1.4)
A library for consuming and serving OpenID identities.
ruby-yadis (0.3.4)
A library for performing Yadis service discovery
sources (0.0.1)
This package provides download sources for remote gem installation
sqlite3-ruby (1.2.1)
SQLite3/Ruby is a module to allow Ruby scripts to interface with a
SQLite3 database.
termios (0.9.4)
Termios module are simple wrapper for termios(3). It can be included
into IO-family classes and can extend IO-family objects. In
addition, the methods can use as module function.
Here's some of my favorite inclusions:
- Termios - Yay for password masqueing (sp?)
- ruby-openid
- hpricot - sweet!
- ferret and acts_as_ferret
Looks like no mysql, so its not 100% complete. (at least MY dev stack)
Popularity: 10% [?]
Categories: Rails, Ruby
5 Comments »