Posts tagged tips
rails console pry integration
0this gist enables simple support for loading pry console within rails application ,
instead of typing
my-rails-project$ pry -r ./config/environment
just type
my-rails-project$ rails p
just replace script/rails with the content of rails/pry gist
in this method you keep both ‘rails c’ to run rails with IRB and ‘rails p’ to run with pry.
if you want just want pry used instead of irb update config/environments/development.rb with the following
Installing QT 4.7.x for VS2010
8had some issues installing QT on windows with vs2010 so I thought I’ll share the solution that worked for me.
I’m using win7 64 bit , vs2010, qt 4.7.1
What do I need ?
Installation Process
- download and install qt add on for visual studio
- download qt open source distribution
- create qt directory (i used C:\Qt\4.7.1×32\)
- extract the zip contents into previously created folder (extract files & folders not the root directory named qt-everywhere-opensource)
- open visual studio command prompt named Visual Studio Command Prompt (2010) use the command prompt with this explicit name, there are other command prompts for 64 bit using them eventually will fail the process.
- run the following commands
Battling with Mac & PC in a local network
0That’s a short one , I was banging my head for the last few months with a problem @ my home network.
I have a few computers all of which are connected via a router and all see each other perfectly and can be accessed via IP or computer name.
All except one PC and Mac which refused to see each other by computer name but could be accessed by IP. But today I finally managed, after comparing the installed software on two PC’s I decided to try and uninstall Bonjour services from my PC to see if it impairs the connection , and luckily it did.
So if it happens to you remove Bonjour services from PC