GRUB error 17 ( Debian/Ubuntu ) « Just a thought
With the help of this link I was able to make the necessary changes in order to boot after the Error 17 caused by blowing away my Kubuntu partition with gparted.
With the help of this link I was able to make the necessary changes in order to boot after the Error 17 caused by blowing away my Kubuntu partition with gparted.
I’m 100% lost without the Rubymine keymap for OS X. (Not ‘Default for OS X’, but ‘OS X’). This is available on the Ubuntu version, however, my keymap out of the box was not supported. By default, my left ALT key sends ‘left ALT’, and my Win key sends ‘Win’ (which, yes, is pretty sensible). I wanted my left ALT key to send ‘Meta’ (essentially ‘Command’), and my left Win key to send ALT. After tweaking with xmodmap for about an hour, I finally came up with an .Xmodmap file that does what I want (just drop this in your user dir — note the case-sensitivity — and Ubuntu should prompt you to load it automatically next time you login):
clear mod1
clear mod4
keycode 133 = Alt_L
keycode 64 = Meta_L
add mod1 = Alt_L
add mod4 = Meta_L
I probably need to remap all the keys to be more mac-y (IE, copy on META+C, instead of CTRL + C), but at least the Rubymine keymap seems to be acting mostly as I’d expect.
1. (apparently) git considers any directory with a .git file in it as a submodule.
2. the restful_authentication recommends cloning instead of using script/plugin (which removes the .git file) because of naming issues.
3. capistrano does not appear to pull git submodules by defaul
1 + 2 + 3 = tests pass on local, but production can’t run (because the plugin code doesn’t deploy).
fun.
update: of course, the obvs fix is to remove the .git file, then redeploy. Git doesn’t like to rm submodules, so I had to rm -rf the dir, then git rm it, then grab a copy without a .git file and add it.
Getting this error on all your controller tests?
ArgumentError in ‘Controller::TestCase should destroy user’
wrong number of arguments (0 for 1)
Possibly an impedance mismatch between some gem and the frozen version of rails. Either way, upgrading to 2.3.2 in my vendor/rails fixed it for me. But man, was that ever hard to figure out.
Capistrano deploy problems.
Happened to me.
Here’s the story.
1) you probably don’t have the correct keys on your target machine to git pull from your git repo. Make sure you can do a git pull where you’re deploying to.
2) scm_command and scm settings seem to get called as methods. If they’re set to anything but ‘git’ (like, a full path), you’re probably screwed.
3) Make sure you have the latest version of Capistrano installed.
update: :copy is SUPER slow for me (tried to SFTP to dreamhost, canceled after 8M took 30 minutes to upload). :remote_cache copies from gitosis quickly and easily (under 10 seconds). Not sure why the diff.
Good instructions for setting up a git repo (with Gitosis) on Dreamhost. Not a fan of Dreamhost at all for hosting, but it’s occasionally suitable for side-project, non-critical repos. Except, of course, when my load is over 200 — which it has been more than once — and my repo commits (not surprisingly) time out. Still, for $9 a year*, it’s significantly cheaper than github (although github has some wonderful value-adds).
* $9 a year price requires some quasi-ethical shifting about of accounts and some administrative cost, as that’s an introductory price tied to your credit card number, email and username. Formally you are not allowed to re-host domains on more than DH account, although I’ve heard tell this is possible. I mainly use DH for repo storage and a tiny bit of staging/test/demo, and have not dealt with this problem.
Handy utility I saw a co-worker use the other day:
pipe to pbcopy to get output from shell in the paste buffer on OSX, pipe to xsel to get output from shell in the paste buffer on linux.
(pbpaste also does what you would expect.)
All you really need to know here is the magic apt-get string, which is
sudo apt-get install ruby-full build-essentialAs of this writing, the ruby that comes with ruby-full is the latest build of 1.8.7. If you follow their instructions for installing rubygems, skip to the last paragraph and use
wget http://rubyforge.org/frs/download.php/45905/rubygems-1.3.1.tgz tar xzvf rubygems-1.3.1.tgz cd rubygems-1.3.1 sudo ruby setup.rb sudo ln -s /usr/bin/gem1.8 /usr/bin/gem sudo gem update --systemIf you accidentally install an older version of rubygems (ie anything less than 1.3), you need to:
sudo gem install update-rubygemsrestart shell (in some cases) and
sudo ruby update_rubygems
Jazzhands is a set of scripts and tasks that helps integrate the Jasmine javascript testing framework into your rails project. It’s still in a very early stage, so there’s not a lot of documentation, but you can create a project with integrated javascript unit testing (assuming you already have rspec installed on your machine) by doing the following:
rails ./some-project
cd ./some-project
script/generate rspec
script/plugin install git://github.com/thatcher/env-js.git
script/plugin install git://github.com/pivotal/jasmine.git
script/plugin install git://github.com/ragaskar/jazzhands.git
after that you can
rake spec
or
rake javascript
Try it out and let me know what you think!