Tag: console
-
How to Get a JavaScript Stack Trace – Chrome Console
Hey everyone, Just a quick post on something useful I came across today. In JavaScript you can access the stack trace via console using the following command (ctrl + shift + j): console.trace() In Chrome, this will let you navigate to each relevant call by clicking the line number in the console window. I’ve found…
-
Chrome Replacing Strings with Ellipses – Chrome Console
Hey everyone, Ran into a bit of an issue today where a url was being shortened in Chrome’s console. It turns out that there’s a quick command you can use to copy the full value: copy(myVariable) Type copy into the console window and pass the variable you want to copy as a parameter. This will…
-
Simple Staging/Test Environment with Heroku – Ruby on Rails
Hey everyone, This is just a quick guide on how to create a test/staging environment with Heroku. — Create staging environment heroku create –remote staging — Push to staging app heroku push staging master — Run rake db:migrate on staging app heroku run rake db:migrate –remote staging — Add pgbackups add ons heroku addons:add pgbackups…
-
Browse Folders as Root – Ubuntu
Just a quick post on how to browse folders as root in Ubuntu. Simply enter the following: chris@chris-VirtualBox:/etc$ sudo nautilus Once you’re in there you can view hidden files by pressing Ctrl+H. If, like me, you’re coming from a Windows background – this may make things a little easier. Leave a comment below if you…
-
Start Rails Console – Ruby on Rails
Just a quick post on the command to start the rails console: chris@chris-VirtualBox:~/site$ rails console Loading development environment (Rails 3.1.1) irb(main):001:0> Here’s the documentation, it provides a pretty good summary of all the commands you’re likely to need.