Posts tagged tips

rails console pry integration

0

this 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

8

had 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 ?

qt add on for visual studio (qt-vs-addin-1.1.7.exe)
qt open source distribution (qt-everywhere-opensource-src-4.7.1.zip)

Installation Process

  1. download and install qt add on for visual studio
  2. download qt open source distribution
  3. create qt directory (i used C:\Qt\4.7.1×32\)
  4. extract the zip contents into previously created folder (extract files & folders not the root directory named qt-everywhere-opensource)
  5. 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.
  6. run the following commands
enjoy,
d.

Battling with Mac & PC in a local network

0

That’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

Go to Top