Coding to happiness

  • Archive
  • RSS
Github clone for mac is awesome! After using gitx for years, I’m excited to try something new and I must say, so far, i’ve very happy. Very little bugs and works great from the terminal.
Pop-upView Separately

Github clone for mac is awesome! After using gitx for years, I’m excited to try something new and I must say, so far, i’ve very happy. Very little bugs and works great from the terminal.

  • 7 months ago
  • Permalink
  • Share
    Tweet

How to fixed the ” undefined method ‘task’ ” in Rails 3.0.7

rake aborted!

undefined method `task' for #<Yourapp::Application:0x00000101759a70>

(See full trace by running task with --trace)


Does this look familiar? I know what your thinking. WDF? I didn’t do anything. Right? Well, actually you did. You updated bundler, which used rake 0.9.0 and your broke it all! Abandon ship! Abandon ship! Oh wait.. there is a fix. And here it is. Open your Rakefile. Got it open? Good. Now put this snippet of code inbetween the 

require 'rake'

And the

Yourapp::Application.load_tasks

The snippet

module ::Yourapp 
  class Application 
  include Rake::DSL end
end
module ::RakeFileUtils
  extend Rake::FileUtilsExt
end

And wow! Things should be working. If your having problems after this, just delete your Gemfile.lock, remove all of your gems in your gemset (you are using RVM with gemsets aren’t you?),then bundle install your gems again. Yup, your rake will be working as right as rain in no time.

Also so you know, patches have been merged to the latest version of rails that fixes this problem so if you just upgrade your problem will be solved, however.. it might break more things ;)

    • #tutorial,
    • #rails
    • #ruby
  • 8 months ago
  • 2
  • Permalink
  • Share
    Tweet

Take my quick survey (just 4 questions)

Hi
I created this really quick survey and was wondering if anyone reading this might take the time to do it. It’s just 4 questions and non-intrusive. 
http://www.surveymonkey.com/s/MZVKKYX

Thanks! 
- The Net Duck

Posted via email from feel the chi | Comment »

  • 1 year ago
  • Permalink
  • Share
    Tweet

Mysql , Mac and Gems

Very good tutorial, up to date
http://otype.de/index.php?id=201

Posted via email from feel the chi | Comment »

  • 1 year ago
  • Permalink
  • Share
    Tweet

Installing mysql5 on a mac with MacPorts

Many of you (like me) have been looking through the different blogs trying to set up mysql with macports with this command
sudo port install mysql5 +server 

The problem is, that command is no longer used anymore. Read this post http://stackoverflow.com/questions/1081231/macports-doesnt-install-org-macports-mysql5-plist-with-mysql5-server

It’s changed to sudo port install mysql5-server
I hope this helps someone. I know it helped me. Also, they apparently have updated things like automatic symbolic links and stuff 

- The Net Duck

Posted via email from feel the chi | Comment »

  • 1 year ago
  • Permalink
  • Share
    Tweet

Reload your ruby script/console on the fly!

yup, you can do it. just type in ….. “reload!” and your done. (no quotes) - The Net Duck

Posted via email from feel the chi | Comment »

  • 1 year ago
  • Permalink
  • Share
    Tweet

Very Cool for Rails Docs

http://github.com/voloko/sdoc/

Posted via email from feel the chi | Comment »

  • 1 year ago
  • Permalink
  • Share
    Tweet

Rubyonrails.org is down! What do we do?!

Ladies and gentlemen boys and girls, it has happened. Rubyonrails.org is down. Yes, it is now replaced by that college girl ad we all know so well …

So it looks like someone forgot to pay their bill on time. One again the ad gods strike! I want my api! I want my rails tutorials back! I want…. rubyonrails.org restored to it’s true owner, some nerd living in his basement (or maybe a nice house). For me, the sense of security that surrounds knowing rails “got my back”…. is slowly being dissolved into… well something else.
So where did it go? When will it come back? We may never know.. just like Why, the luck still, vanished without a goodbye.
- The Net Duck

Posted via email from feel the chi | Comment »

  • 1 year ago
  • Permalink
  • Share
    Tweet

Your physical body effects your emotions!

This is an absolutely amazing discovery. I can hardly believe how simple this concept is but at yet how effective it is. Not just for motivation, but for any type of emotion you desire in your life! Try this, (if you want). Smile, yes, force yourself to smile then stand up tall, fill out your body and then try to think about something that normally gets you depressed. It’s really had isn’t it? This is because your body makes mental associations to being happy, sad, depressed, motivated. For instance, if you practice walking with confidence you are going to feel more confident! Amazing isn’t it? It seems so simple but yet this one tool has so many powerful uses.
For instance, maybe your feeling blue. Go somewhere private and just smile and move your body quickly. This will really get you feeling less down. Also, when you walk, don’t look down, look higher, you will be surprised at how much better this makes you feel. You can do this for about anything.
Fantastic.
- The Net Duck

Posted via email from feel the chi | Comment »

  • 1 year ago
  • Permalink
  • Share
    Tweet

I found this great template for creating a simple rails app

If you don’t know what Rails Templates are, they are pretty much a way of generating rails code the way you want it to be generated. For example, you find yourself “always” doing the same thing over and over again to set up your authentication, a template will automat that task for you. This guy created what I think is a pretty good one

http://github.com/hectoregm/groundwork

- The Net Duck

Posted via web from feel the chi | Comment »

  • 1 year ago
  • Permalink
  • Share
    Tweet
← Newer • Older →
Page 1 of 4

About

I'm a Ruby on Rails web developer that likes to blog every weekend if I get a chance. I enjoy TDD, the outdoors and regular nintendo (the new stuff is too complicated). I also like my macbook pro.
  • RSS
  • Random
  • Archive
  • Mobile

Effector Theme by Carlo Franco.

Powered by Tumblr