rake aborted! No such file or directory - /tmp/mysql.sock
Posted by Ryan Baxter Sat, 06 Oct 2007 20:40:00 GMT
If you’re running into the above error message when trying to perform a Rails migration on Debian or Ubuntu then you might try adding the following line to your database.yml file:
socket: /var/run/mysqld/mysqld.sockMy database.yml file looks sorta like this:
development:
database: crunchlife_development
adapter: mysql
host: localhost
username: mysql_user
password: @!#?@!
socket: /var/run/mysqld/mysqld.sock
test:
database: crunchlife_test
adapter: mysql
host: mysql.ryanbaxter.net
username: mysql_user
password: @!#?@!
socket: /var/run/mysqld/mysqld.sock
production:
database: crunchlife_production
adapter: mysql
host: mysql.ryanbaxter.net
username: mysql_user
password: @!#?@!Good luck and happy migrations!
- Meta 26 comments, permalink, rss, atom
I Want My IDE Update
Posted by Ryan Baxter Tue, 21 Aug 2007 04:14:00 GMT
I started writing some Ruby code this past weekend for a new project that I’m involved in. Rather than download an IDE mentioned in my previous article, I Want My IDE, I decided to use the gedit text editor that comes bundled with Ubuntu Linux.
Attempting to capture the experience Mac users get from using TextMate, I installed the Class Browser, File Browser Pane, Project Manager, Snap open, and Snippets plugins from live.gnome.org. I also enabled line numbers, current line highlighting, and bracket matching. It’s not quite TextMate, but it’s not a bad choice either.
I had initially stated that my top two needs of an IDE were Subversion (SVN) integration and code completion. I didn’t have either of these with gedit, but I didn’t find myself missing them either. I’ve grown accustomed to using SVN from the command-line and ruby-doc.org didn’t slow me down too much while looking up class definitions.
Overall I’m quite pleased, but I have to admit that installing gedit plugins was a bit tricky and I never did get my fonts to look like those found in the TextMate-like Gedit tutorial.
- Meta 2 comments, permalink, rss, atom
I Want My IDE
Posted by Ryan Baxter Fri, 10 Aug 2007 02:32:00 GMT
The majority of my academic and professional programming career has been spent writing code using an integrated development environment (IDE). I’ve dabbled with Eclipse, Microsoft Visual Studio, Macrodobe Dreamweaver, and various Borland products. Rather than juggle multiple text editors and source control consoles, I find it easier to stay organized using an IDE on large projects. When editing config files or writing scripts I prefer a lightweight text editor. In Linux, vi or gedit is my choice. Notepad2 is at the top of my Windows list.
A few months ago I decided to learn Ruby and the Ruby on Rails framework. I began with the obligatory Hello World program and quickly progressed through a series of tutorials using vi and gedit to get the job done. Since then, I’ve begun some larger projects and am quickly finding myself losing focus and missing the benefits of an IDE. Consulting Google, I compiled a list of prospective IDEs to begin my evaluation. I’m willing to give each of them a fair chance at becoming my Rails development environment, but have a few questions before I begin. What, if any, IDEs have I missed? How long should I try each one?
Needs (in order of importance):
- Linux compatible
- Project Browsing
- SVN integration
- Syntax Highlighting
- Code Completion
- Active Community
- Unit Testing
- Debugging
- Auto-indent
- Plugin support
- Less than $100
The list:
*Each IDE/editor was capable of Project Browsing, Syntax Highlighting, and compatible with Linux.
- Aptana RadRails
Pros- Good SVN integration.
- The latest Beta has working Code Completion.
- Built on Eclipse.
- More Rails features than Eclipse + DLTK.
- Many plugins inherited from Eclipse
- Free.
- Code Completion is broken in the current stable release.
- Built on Eclipse.
- Eclipse + DLTK
Pros- SVN integration.
- DLTK has Code Completion.
- Tried and true.
- Vast library of plugins.
- Active community.
- Free.
- Eclipse is slow and consumes a lot of memory.
- FreeRIDE
Pros- Auto-indenting.
- Debugging.
- Free.
- No SVN integration.
- No Code Completion.
- Performance could be an issue b/c it’s a native Ruby application.
- gedit + plugins
Pros- Lightweight.
- Plugins.
- Free.
- No SVN integration.
- No Code Completion.
- jEdit
Pros- SVN integration.
- Code Completion.
- Plugins.
- Free.
- Not user friendly.
- IntelliJ IDEA 6.0
Pros- SVN integration.
- Code Completion.
- Debugging.
- Unit Testing.
- Plugins.
- Much more…
- $249.
- Komodo IDE 4.1
Pros- SVN integration.
- Code Completion.
- Debugging.
- Built specifically for Ruby on Rails.
- Much more…
- $295
- Mondrian Ruby IDE
Pros- Lightweight.
- Free.
- No SVN integration.
- No Code Completion.
- Performance could be an issue b/c it’s a native Ruby application.
- Spam in support forum.
- NetBeans Beta 6.0 Milestone 10+
Pros- SVN integration.
- Code Completion.
- Debugging.
- Plugins.
- Free.
- Much more…
- Beta.
- Ruby IDE from CodeGear
Pros- CodeGear experience.
- Feature set not yet released.
I’ll be evaluating each of the IDEs/editors in turn and publishing my results as a series. Feel free to leave feedback and check back soon!
- Meta 2 comments, permalink, rss, atom
Older posts: 1 2

