I’ve now stopped XoNoiD CRM development completely because lack of time and feedback from testers and users. Please be free to fork it for your own CRM projects.
Archive for the ‘Software’ category
XoNoiD CRM development stopped
July 28th, 2010Subversion logs to iCalendar format
April 2nd, 2010I wanted to know when I’ve kept my vacations so I wrote small Python script to find out.
pysvnlog2ics parses SVN XML commit log and creates iCalendar .ics file from it. This resulted in many .ics files as in work I use one repository per project and over the years this count is in hundreds today. So I wrote another script – pyicalmerge which combines those .ics files to one big .ics file. Then I just uploaded that giant .ics file to Google Calendar and now I have all my commits in my calendar and can easily see the vacation gaps.
Move PostgreSQL database
December 5th, 2009Moving PostgreSQL database to different name is pretty hard compared to MySQL. But here’s how you do it:
$ pg_dump --no-acl --no-owner -U <username> -h <host> -Fc <database> > <dump filename> $ pg_restore -1 -c -U <username> -d <database> -h <host> --no-owner <dump filename>
$ pg_dump --no-acl --no-owner -U old -h 127.0.0.1 -Fc olddb > old.dump $ pg_restore -1 -c -U newuser -d newdb -h postgresql.lan --no-owner old.dump
Adding Windows 7 drivers directly to DVD
October 31st, 2009If you’re familiar with Windows XP Service Pack slipstreaming, this is pretty similar.
I’m using Windows XP Professional for this.
Make ISO image from your Windows 7 DVD with your favorite software. I used CDBurnerXP.
Save install.wim somewhere on your hard drive from that ISO image or straight from DVD.
Download Windows Automated Installation Kit for your OS.
Start AIK Deployment Tools Command Prompt
cd <path where you saved that wim file>
Mount the WIM image with write permissions:
imagex will tell which number is which Windows edition if it’s not found. I tried it first with just number 0.
Number 4 is in this case Windows 7 Ultimate Edition 64 bit.
imagex /mountrw install.wim 4 c:\wim
add as many drivers as you like by using DISM
if dism says that files are essential for booting but drivers are unsigned, then add /forceunsigned parameter.
Here’s example for nvidia nforce drivers (Installer EXE extracted with 7-zip):
SATA/SATARAID/IDE/Ethernet/etc drivers:
cd c:\dl\15.51_nforce_win7_64bit_whql\ide\win764\ dism /image:c:\wim /add-driver /driver:. /recurse cd c:\dl\15.51_nforce_win7_64bit_whql\smbus dism /image:c:\wim /add-driver /driver:. /recurse /forceunsigned cd c:\dl\15.51_nforce_win7_64bit_whql\smu dism /image:c:\wim /add-driver /driver:. /recurse cd c:\dl\15.51_nforce_win7_64bit_whql\ethernet dism /image:c:\wim /add-driver /driver:. /recurse
..and so on for all needed drivers..
You will need to expand unexpanded driver files in some cases. Drivers are not expanded if filenames in driver directory are foo.dl_ and not foo.dll etc.
Here’s NVidia GeForce driver sample for you (Installer EXE extracted with 7-zip)
cd c:\dl\191.07_desktop_win7_winvista_64bit_international_whql mkdir c:\displaydriver expand *.* c:\displaydriver
and then
cd c:\displaydriver dism /image:c:\wim /add-driver /driver:. /recurse
Save the WIM image with new drivers:
unmount and commit (commit = save)
imagex /unmount /commit c:\wim
Add the install.wim back to the ISO image with your favorite ISO handling software. I used UltraISO.
Make sure that the DVD is bootable. Burn ISO as new DVD yet again with favorite burning software (CDBurnerXP).
Boot and enjoy your new Windows 7 with correct and working drivers.
Gozerbot and What is this file?
October 2nd, 2009It’s been many years since I played with IRC bots. I’ve used eggdrop for something like 10+ years. Now I tried Gozerbot and coded plugin (source) to it which gets URLs from chat and then gives some information about them. It utilizes my other project – “what is this file?” which runs on top of Google App Engine. Everything is using Python.
First site using zfComicEngine!
September 26th, 2009Finnish Pikselinviilaajat IT comic is now using zfComicEngine. It was previously running on my non-opensource and age old code. I coded simple converter which corrected all the old links in HTML etc with PHP’s DOM and XML Starlet.
ZFCE has many similarities to old Pikselinviilaajat comic publishing engine but of course it’s all been rewritten.
If you want to try out zfCE, please use my demo site. I’m also looking for some people with some graphical eye so that zfCE could have more default CSS files for new users.
I’m also planning for Flash support so that you could publish animations easily too.
New translations are also welcome. Currently supported languages are Finnish and English.
Few Trac plugins
September 24th, 2009Here’sfew plugins for Trac:
Timing and Estimation Plugin
Project manager, CEO and customer are usually not interested in count of tickets. This plugin adds new fields to tickets where you can add hour estimations and actual worked hours. It also adds checkbox for billable/not billable ticket.
Batch modification of tickets
I found this useful when you have for example milestone Preview1 and all tickets are there. Then you release the Preview1 version. Next you create Preview2 milestone and move all open tickets from Preview1 to Preview2. No need to modify every ticket, only make a custom query and select all open tickets.
MyDefrag
September 17th, 2009My computer was getting slow and I found the culprit: fragmented harddrive. So as a Super User™ I searched for better defragmentation software than Windozes own and found software called MyDefrag.
So why it’s so much better alternative than OS’s own built-in software? You can script it! It also runs as a screensaver. So I’m now getting average of 8 hours of defragmentation per day. That should keep harddrive fragmentation in order.