Stream of Ry

Yet Another Geek In The World

Archive for the ‘Software’ Category

Browser refresh for Lazy Web Developers

one comment

Ever got annoyed or tired with editing a css/html file, saving, alt-tab to browser, refresh?
Why not just save and then the browser refreshes itself, right?

Well, if you were in Windows / Macland and use Firefox, you’re in luck! You have the XRefresh Plugin.

If you are on Linux, then you’re in better luck because you get to write your own script! Well, not entirely, but you get to use incrond (just luck cron, only in) and write your own script to be used by it. Just follow this guide and you’d set it up in no time. Take note that it works even if you’re not using Textpattern and thus it needs a bit more than following every step as you have to skip some of the things related to Textpattern.

If you ran into the “user root is not allowed to use incron” error, the solution is here. For your convenience, I quote:

rt:~# incrontab -l
user 'root' is not allowed to use incron

This error may be fixed in one of two ways:

  • Allow the root user to make use of incron:
    By editing /etc/incron.allow, adding ‘root’ to it.
  • Allowing all local users the ability to use incron:
    By removing the file /etc/incron.allow.

Especially on a dual screen setup, this would save you a couple more calories per save (and thereby increased fat reserves.) On the bright side, it can delay Carpal Tunnel Syndrome by, I don’t know, a year or two? Haha.

CTS is a developer’s worst nightmare.

Written by rystraum

May 13th, 2011 at 12:32 pm

Posted in Programming,Software

Reset sound in Ubuntu 10.10 without restarting

12 comments

I was testing my sound settings when suddenly, nothing worked anymore. I tried looking for a way to reset it without having to restart my session but all the current solutions point to /etc/init.d/alsa-utils restart which seem to be missing from my system.

Audio is now handled by PulseAudio in 10.10 so what I did was:
pulseaudio --kill && pulseaudio --start
and it worked for me. :)

Written by rystraum

February 3rd, 2011 at 11:21 am

Ruby on Rails and Heroku : no such file to load

leave a comment

I’m currently following this book on learning Ruby on Rails and came across an error while trying out deployment through Heroku.

Read the rest of this entry »

Written by rystraum

February 1st, 2011 at 12:10 am

Posted in Software

Tagged with ,

Homebank: The file is not a valid homebank file

leave a comment

I use Homebank for keeping track of my finances. It looks easy enough and comes with pretty graphs for reporting. Combined with Dropbox, I get to key in my expenses whether I’m at home or in the office.

The problem? File problems. I started using Homebank on Karmic (or was it Jaunty?) and since then I’ve upgraded to Maverick. Now, I can’t open my homebank file.

The solution is surprisingly simple though.
First, try to make a homebank file in Maverick. Open the homebank file (it’s just xml) in any text editor and take note of the version.
Then, open your homebank file** and then change the version to match the sample file. And then *poof* it became Koko Krunch! Well, it should work now.

If it still doesn’t, you can try compiling Homebank from source with the version you’re using. You’d need:

intltool libgtk2.0-dev libofx (and dependencies)

to complete the compilation.

** make a backup copy first before changing anything!

Written by rystraum

November 30th, 2010 at 2:52 pm

Posted in Software

Tagged with

CodeIgniter Jumpstart

5 comments

I’ve decided to put together a “custom” work framework based on CI which includes
all the common things that I do everytime I start out a new CI project. That’s
why I put custom in qoutes, because it’s not a new framework per se. Calling it
a collection of default settings would, in fact, be more accurate. My idea is that
you just extract the thing** and you’re ready to code with

  • common helpers / libraries loaded
  • a database in place (with admin user) using sqlite3
  • good enough views and methods for login and change_password
  • a minimal (read: very rudimentary) templating system
  • jquery loaded onto the default template
  • initialized git repo on the folder

Of course, you still need to code the rest of the application but at least the little
things are taken care of. Well, until you need to change them. I’ve worked on the
documentation for this wee wittle pwoject of mine and it can be found at the default
view of the project.

Suggestions / patches / bug fixes are welcome and highly appreciated. :)

DISCLAIMER: The workflow in this project is my personal workflow when I work on
CI applications. I don’t claim that this is the best workflow but it has worked
for me so far. So, don’t email me saying ‘dis sux! u sux!” just because it does
not work well with your own workflow.

** adjust config/config.php/$config['base_url'] as needed

Download: CI Jumpstart

Written by rystraum

November 16th, 2010 at 9:05 am

Posted in Software