This is a neat little “trick” to prepend something simple to the beginning of a file. Linux is funny in the way that you can easily append to a file by using echo “append me to the file” >> FILE but theres no real simple way to prepend. Most snippets I’ve seen use a tmp [...]
More
I launched the project site Ubrious over the weekend, in addition to a photo gallery and a few other branches of ubrio.us. If any images / links are broken then, whoops, I’m still running through trying to clean everything up but my time is at a minimum. (The important stuff should be running…)
More
Because I’ll forget #1023
Problem
Use Linux’s “find” command to hunt recursively through the current directory tree and find all matching files. While this is simple enough, I’m an idiot and tend to delete important files when drinking working too much — which we all know sucks. It would be nice to have it take all found [...]
More
Because I’ll Forget #15901:
Firstly, let me just say that compiling PHP has never been this difficult before. It shouldn’t be difficult at all actually. So heres the basic run down: I need SOAP, GD, SimpleXML and a few other miscellaneous extensions to make all my dev apps work properly — this went smoothly on the [...]
More
Because I’ll Forget #1099:
Problem
Create a TextMate snippet that will build a label for a given input textbox using Human Cased words from an underscored name attribute.
Solution
TextMate snippets support Perl Regexps which is a beautiful, albeit scary, thing. Start by making the label in direct relation to the input tag’s “name.” The label’s “for” attribute should [...]
More
Because I’ll Forget #1023:
Problem
I know how to _USE_ icon sets and set my icons*. My issue is that I want to take a folder of, say, *.PNG files and make the icon reflect the contents. I did some digging, and the solution is pretty simple — AND elegant.
Solution
There is a relatively unknown program, at least [...]
More
I finally cracked. This is what happens when you’re left alone for a few hours and start messing around in Inkscape. To be fair, however, I’ve wanted a graphic tablet for a long time — I could just never really justify the cost since I don’t draw too much. Anyway, I broke down and bought [...]
More
Simple custom keybindings in Gnome/Ubuntu
Gnome’s default keybinding app sucks (maybe Linus was right and Gnome treats its users like idiots? sucks for me I guess). Here is a way to bind anything you’d like to any key you’d like, globally. I found this useful because I naturally use WIN-E for an explorer or WIN-R for [...]
More
Using Gnome + Ubuntu (7.04 Feisty Fawn) + Apache 2
Step 1:
In gnome goto System -> Administration -> Network and click on the ‘Hosts’ tab
Step 2:
For your normal localhost (127.0.0.1) double-click or hit ‘properties’ to edit it. Add your list of subdomains under localhost.
*Ignore the text in this pic, I overlooked that you had to include [...]
More
This is more for me in case it ever happens again. My system froze up while doing some stupid stuff (namely pressing keys I shouldn’t be pressing) so i force-rebooted it (aka: kicked the surge protector). When I re-booted I got the “Hal failed to initialize” message which is apparently pretty common and was supposed [...]
More
Page 3 of 7 « 1 2 3 4 5 » ... Last »