We usually don't blog about our finished websites, but i think it's time we started. I'm really proud of the way the final website turned out.
History behind the Site:
The Guaranteed Painting website marks a sectioning off of the original Guaranteed Resurfacing website. The website has a lot of colors and a few new features such as a image gallery with easy uploading capabilities, a different style of counter, and is built to allow easy upgrades. We've also added a blog system and integrated it into the website.
If you're looking for a great paint job, or need your kitchen or bathroom refinished, check out Guaranteed Painting and Resurfacing.
This year marks the start of the new Daylight Savings Time standards set in place by congress. Everyone seems to be scrambling around to get every PC, router, switch, phone, and any other piece of hardware that keeps time updated.
Below are the instructions on how to accomplish this on Ubuntu.
Open up a terminal window or go to tty1 and enter the following command:
Code:
sudo zdump -v /etc/localtime | grep 2007
Youll see 4 lines being returned, if they match the lines below than youre ok:
Code:
/etc/localtime Sun Mar 11 07:59:59 2007 UTC = Sun Mar 11 01:59:59 2007 CST isdst=0 gmtoff=-21600
/etc/localtime Sun Mar 11 08:00:00 2007 UTC = Sun Mar 11 03:00:00 2007 CDT isdst=1 gmtoff=-18000
/etc/localtime Sun Nov 4 06:59:59 2007 UTC = Sun Nov 4 01:59:59 2007 CDT isdst=1 gmtoff=-18000
/etc/localtime Sun Nov 4 07:00:00 2007 UTC = Sun Nov 4 01:00:00 2007 CST isdst=0 gmtoff=-21600
If your lines dont match then youll need to following the following steps:
1. Open up terminal or switch to tty1(youll need to login)
2. cd /tmp
3. ftp elsie.nci.nih.gov
user: anonymous
pass: you_(at)_you.com --Substitute the _(at)_ for @
4. cd pub
5. ls
6. use 'get' to get the latest tzdata file like so:
get tzdata2007a.tar.gz
7. quit
8. mkdir tzdata
9. mv tzdata*.gz tzdata/.
10. cd tzdata
11. tar xzvf *.gz
12. sudo cp /etc/localtime /etc/localtime.LAST
13. sudo rm /etc/localtime
14. sudo zic northamerica
15. sudo ln -s /usr/share/zoneinfo/EST5EDT /etc/localtime
16. sudo zdump -v /etc/localtime | grep 2007
A Journey Into Python and Glade: Inventory Management Program
Posted On: Jan15,2007
The last couple of weeks Ive been busy learning python, and i thought that id share my experience. So far i have to say that i really like it, the documentation can sometimes be lacking, but the ease of use in creating a GUI is one of the best that i have ever seen/endured.
With just a few minutes i had the GUI looking how i wanted it, it was also easy to make changes if i needed to. The next part, and also the hardest, was to write the code. Theres actually an excellent site to get most people started: http://www.learningpython.com
The site has many in depth tutorials, the code really helped me be able to code this program. They cover working with several of the widgets in Glade. Anyways back to the story.
The Background:
To learn Python, I wanted to make a program to manage my company's inventory, it didnt need to be too complicated, i could always add to it later, but it needed to at least track the following information: Name
Serial Number
Description
Type
Quanity
Later on i plan on adding an option for pictures, but for now this is usuable. It also needed to be easy to use so that anyone can open the program and run with it, we also needed the ability to save(duh) and open(duh again), and create dynamic types that could be chosen from a dropdown box.
After many days of coding, heres what I've come up with:
The program is licensed under the GPL, so please make sure that if you use this program you do it right. Links back to me and LearningPython would definately be appreciated. Comments and questions are always appreciated as well.
Installation:
Extract the files to any directory
From terminal run "python pyitem.py"
Enjoy!
Download:
You can get the entire program(which is the source code) from the link below: Download
There are just those times when a PHP programmer has to use ASP, wether for work, or for those anal clients of yours. I've compiled a basic list of common replacements in ASP for our most used PHP functions.
The download contains an excel spreadsheet with the purpose of the code, the PHP version, and the ASP version, here is a screenshot of part of the spreadsheet:
Hope this helps guys, let me know if you see something that needs adding.
I daily scroll the hundreds of posts on Digg, and as usual print or write down anything useful, especially when it relates to Ubuntu or linux in general. Digg managed to take down an Arsgeek page dubbed "How to gracefully reboot your Ubuntu/Debian system if all else fails", luckily duggmirror.com caught and archived it before it went down.
Heres an excerpt from the page:
Quote:
There you are, staring at a crashed Gnome session, CTRL-ALT-BKSPC does nothing. ALT-CTRL-F1 won’t bring you to a terminal where you could cd to /etc/init.d and restart gdm. In short, your choices seem to be limited to holding down the power button and chancing file system corruption or nothing.
But wait! There’s two more options that you may not have known about!
Here are two ways to first try and kill just the process on your current terminal (thus allowing you to get back into your machine and at least attempt a ’shutdown -h now’ command) and if that fails, to bring your machine down in a more graceful manner than a hard shutdown.
First, we’ll try and kill all the process on your current terminal. To do this, hold down the following keys -
ALT + SysReq + k
What the heck is a SysReq key? Look for it on your PrtSc or Print Screen key. The k in this instance stands for Kill.
If that doesn’t work for you, it’s time to take drastic action. You’ll now enter a series of keystrokes that will tell your computer to do some housekeeping before shutting down.
ALT + SysReq + r
This stands for Raw keyboard mode.
ALT + SysReq + s
This syncs the disk.
ALT + SysReq + e
This terminates all processes
ALT + SysReq + i
Kill’s all processes that weren’t terminated nicely.
ALT + SysReq + u
Remounts all filesystems as read only.
ALT + SysReq + b
Reboots.
That’s a heck of a lot better than simply holding down the power button and hoping everything works out okay.
How will you ever remember all those keystrokes? There is a long held mnemonic that makes it a bit easier:
Raising Skinny Elephants Is Utterly Boring - RSEIUB
You should use this method only if other methods (mentioned above) fail.
Thanks Arsgeek for this great heads-up, i hope it helps everyone as much as it did me.
I just upgrading my Dapper Drake box to Firefox 2.0 this past weekend, I've been fixed silly little quirks left and right to get it running like i want. One of these problems is that when you open only a large image from a website, Firefox will resize it to fit inside the viewport. Needless to say they forgot to include a menu item to turn this feature off, so heres how:
1. Open a new tab and go to about:config
2. Either look for browser.enable_automatic_image_resizing in the list or just type it into the filter box
3. Change its value to false and you're done
I will probably be posting more Firefox hacks later on as time passes. Happy hacking everyone!
In Firefox 1.5 SessionSaver was a great plugin that allowed us to restore all of our tabs and keep items we were looking at up without the need for bookmarking every little thing. With the introduction of Firefox 2, SessionSaver is no longer available, but this new version has an inactive feature called SessionRestore that functions roughly the same way, this guid will show you how to activate it.
Open Firefox and in a new tab type about:config then press enter. Once the setting page is open look for lines beginning with browser.sessionstore. we will be looking for the following items: