Articles

Weekend Reading: RBP Chapters 2-3

If you’re reading this blog, you probably know that the Ruby Best Practices book exists. Even if you haven’t read it, you might have a sense for the sort of topics we cover based on the content you’ve seen on this blog. But now, everyone is going to get a chance to read RBP the way its meant to be read: as a conversation.

Signed and Permanent cookies in Rails 3

David added a very cool feature to Rails recently – Signed cookies and permanent cookies This lets you set permanent and/or signed cookies very easily.

Before this, you’d have to write :

How to generate an SSH key in Linux?

You can generate a key in Linux using the ssh-keygen command.
You can run it in command line. You will be asked for a file in which the key should be saved to and for a passphrase (password) for the key:
This command will generate id_rsa public and private keys.

If you need to generate id_dsa keys then you need to run ssh-keygen -t dsa

You Don’t Need a Logo Video Now Online

We’ve just released the video for You Don’t Need a Logo from Aloha on Rails, in which Michael Nieling from Ocupop and Matt McVickar explain the importance of Design throughout the application development lifecycle.

Enjoy the video, and mahalo to Panopto and ThinkTech Hawaii for making the videos possible!

The Path to Rails 3: Greenfielding new apps with the Rails 3 beta

Upgrading applications is good sport and all, but everyone knows that greenfielding is where the real fun is. At least, I love greenfielding stuff a lot more than dealing with old ghetto cruft that has 1,900 test failures (and 300 errors), 20,000 line controllers, and code that I’m pretty sure is actually a demon-brand of PHP.

A New, Free, Public Domain Rails Logo

Did you know that the Rails 3.0 beta / pre-release went live today? No? You do now!

Rails 3.0: Beta release

You thought we were never going to get to this day, didn’t you? Ye of little faith. Because here is the first real, public release of Rails 3.0 in the form of a beta package that we’ve toiled long and hard over.

It’s surely not perfect yet, but we were out of blockers on the list, so here we go. Please give it a run around the block, try to update some old applications, try to start some new ones, and report back all the issues you find.

Rails 3.0 Beta/Prerelease Available Now and How To Install It

rails-3-logo.pngToday, Rails core member Jeremy Kemper dropped the words that lots of ardent Rails developers have been waiting for: "Rails 3 beta is LIVE." It's true! Rails 3.0's first approved beta/pre-release version is now live and ready for you to install.

A Note on the Recent Outages

Following three months of near 100% uptime, we’ve just been through three major outages in as many days. I wanted to take some time to detail the problems and what we intend to do to prevent similar downtime in the future.

Sexp for Rubyists

Sorry to interrupt you, but you’ve totally lost me. What is this “Sexp”
you’re speaking of? I’ve heard it before, but never quite understood it…

Oh, don’t feel sorry! It’s still quite esoteric for Rubyists.

Yeah…

Okay. Let’s start at the beginning. Lisp!

With all the parenthesis?

Bingo! Have you tried it?

Not really. It seems a little too “hardcore”, if you know what I mean?

Ah, yes. It’s just a neat little language, nothing to be afraid of. Let me
show you an example:

Bootcamp horror story | Rails Fire

Bootcamp horror story

Send to friend

A few days ago I finally succumbed to the powers of my inner nerd. The release of StarTrek Online was too much for my LCARS loving brain to handle, so I caved. I bought the game online, booted into windows on my mac and started downloading the 8 gig installer and was ready to go...so I thought.

Unfortunately the installer required an additional 15 gigs of space on my windows disk to install the actual game and it would not install from DVD or USB disk. So I needed to resize my Bootcamp partition...and here things got interesting. OSX seems completely incapable of handling this gracefully, so it took me about two days to figure it out how to do it without reinstalling windows or OSX. Here are the steps:

  • Back up your windows partition using Winclone 2.2, which is hard to find online so google it for a while.
  • Go into the Bootcamp assistant and remove the current windows partition.
  • Try to create a new bigger partition right away, if you have been using OSX for a while this will fail.
  • If it succeeds, skip the next three steps.
  • If it fails, you are in for a world of pain. Download iDefrag and create a bootable disk. Use the disk to boot into iDefrag and use the 'compact' algorithm. This will take a while. It is useless to run any other kind of defrag or use it in 'online' mode. Bootcamp complains about the fact that it cannot move the files at the end of your partition, iDefrag compacts your disk so all the data is in the front.
  • Next boot into your OSX install DVD and run Disk Utility and repair the disk. This will fix any left over stuff that may prevent Bootcamp from partitioning.
  • Boot into your OSX install and run the Bootcamp assistant and try to partition again. This should work fine now.
  • Now restore your backup to the new (and bigger) partition. If this works out-of-the-box you are in luck and can skip the rest of this step. 
    If it fails, you have probably not shut down windows properly before your backup. Go into the Winclone preferences and enable the 'Use ASR to restore compressed images' and try again. This worked for me, but the partition was the same size as the original with the free space not allocated to windows. I used iPartition (from a boot disk) to fix this and grew the NTFS partition to use the newly freed space.
  • Boot into windows and it will run chkdsk, this is normal.

It took me a lot of heartache to figure this stuff out so I hope it helps to have a clear guide how to go about this.

 

  • Operating System:
  • Tags: