Windows backup and create system image

imageI just discovered that I can run windows backup and create system image simultaneously.

Windows backup settings include an option to create system image besides backing up files. When I tried that, it first backs up the files and then create the system image (or the other way round, I cannot remember).

It was a pleasant surprise to discover that I can run both simultaneously.

Technorati tags: , ,

Windows 7 search – indexing py, sql, php files

imageLike many others, I too had a time when I lost faith in Windows 7’s search feature, particularly with indexing the contents of py, sql, php files. These were files that I use a lot.image

I knew I had the phrase in some file but Windows 7 search returned no search.

I even switched to Google Desktop Search(GDS). But GDS does not search contents of php, py files. It did search sql files because I set it up as a text file type.

So I reverted to Windows 7 Search.

Before I gave up on Windows 7 search earlier, I did notice that it indexes files that I have worked on before. So, Windows 7 guesses that I would be interested in files that I worked on. Surely Windows 7 does not expect me to open all of my files individually before it indexes them !

imageSo I first ensured the folder and file extension are included in Windows Search and then tried this trick – copy the folder to another folder and then copy them back to the original folder. This seemed to tell Windows 7 that I would be interested in those files and after a while, the search results I was expecting, starting turning up!

I guess I only have to do this because I brought in a whole lot of file before I configured Windows Search which folder to index (Refer to the various screenshots on how to configure folders and file types for indexing).

Technorati tags: ,

A very good Dell deal – 500GB hard drive, 4GB RAM, 256MB ATI Mobility Radeon for under RM3,000 !!

imageThis is a very good Dell deal – 500GB hard drive, 4GB RAM, 256MB ATI Mobility Radeon for under RM 3,000 !!

This is the deal advertised on The Star today (29-Jun-09).

Click on picture on the left to view larger version.

It might be too good to be true. When I looked the E-Value coupon up on Dell, the price is RM 2,999 with only 3GB RAM. (Click on picture below to view larger version).

image

 

And take note that this model is not eligible for the Windows 7 free upgrade.

Yoast's Google Analytics for WordPress plugin and Thematic theme

image If you are using

Yoast’s Google Analytics for WordPress plugin

and

a Thematic theme with a child theme, Yoast’s plugin might warn that the plugin might not work.

Yoast advises to include wp_footer() in footer.php.

Actually that is not necessary as the Thematic theme files already include it.

It is a false warning and the plugin will work, despite the warning.

Here is a screenshot from the source code of this website with the plugin activated.

image

Why might you want to use the plugin instead of just putting the Google Analytics code in a text widget ?

Well, text widget code disappears when you upgrade a theme.

With a plugin, you won’t have to retype the Google Analytics code.

Sharing/transferring files – a brief history of how we did it before My Wifi

I have been using PCs/notebook for a pretty long time.

When I was in school (in the 1980s), to transfer files between two PCs, I had to copy the file onto a floppy drive, then use the other PC to read the floppy drive.

That was obviously a major pain if there are a lot of files and the files are too big to fit onto a floppy.

Luckily, later in the workplace (around 1990s), we could use laplink cables to connect between 2 PCs and transfer files between them. Networking in the office at that time was still not common and the laplink cables were connected to some port (I forgot whether they were serial or parallel port)

Then networking became more common and we can just share filles between computer over a network. And if we were somewhere without a network, we had several alternatives:
1. the USB thumb drive which though smaller than the floppy had bigger capacity.
2. infra red – my notebook in the early 2000s had a infra red port that I could point to another notebook also with an infra red port and both of us could transfer files. It was slow and there must be a direct line of sight between the 2 infra red points.

My next notebook after the infra red notebook came with Bluetooth but not infra red.
With Bluetooth, it was slightly faster and I could share with several Bluetooth notebooks at once.

The next evolution in sharing files ? Intel just came up with My WiFi technology.

Direct2Dell – Direct2Dell – DELL COMMUNITY

Last week, we introduced My WiFi technology as an option on the Dell Studio 15, Studio 17 and the Studio XPS 16 laptops to customers around the world.

Cookie
Cookie

Upgrading from Python 2.5 to Python 2.5.4

I was hesitant to upgrade from Python 2.5 to 2.5.4 on because upgrades usually break something.

I tested it first on a desktop. The default upgrade installed to a C:\Python25 directory and a lot of things broke. Python scripts that worked before stopped working.

easy_install would not work because it could not find Python.exe.

This was due to my previous Python installation was on c:\1Programs\Python.

Fortunately I created a system restore point before the upgrade and I restored to the point.

At this time, Python was still not working properly – the restore did not repair everything. So much for Window’s System Restore.

Then I installed Python 2.5.4 again, this time on c:\1Programs\Python.

Now, everything works!

Lessons learnt:

1. Test the upgrade on a test machine first

2. Install upgrades on the same path of the original installation

3. Don’t count on Window’s System Restore Points

A better manual for Pentax Photo Browser, Pentax Photo Laboratory

There’s a series of articles beginning from Izumi Taniguchi on how to use the Pentax Photo Browser and Pentax Photo Laboratory.

The manual that ships with the camera is rather skimpy and does not explain a lot of things like:

1. random noise reduction

2. spurious color signal noise reduction

3. tone curve

etc

 

Besides elaborating about the softwares’ features, Izumi also offers tips on better digital photography with special tips for Pentax camera owners.

Izumi’s posts are bound to enlighten all new Pentax users.

Technorati tags:

Comparing dictionaries in doctest

Here’s a nifty way to compare dictionaries in doctest in Python.

 

>>> d = function_that_returns_a_dict()

>>> expected_d = {… some expected result }

>>> d = True if d == expected_d else d
>>> d
True

Technorati tags: ,

Date formatting in Python – use strftime, like Oracle's to_char

time — Time access and conversions — Python v2.6.1 documentation

time.strftime(format[, t])¶

Convert a tuple or struct_time representing a time as returned by gmtime() or localtime() to a string as specified by the format argument. If t is not provided, the current time as returned by localtime() is used. format must be a string. ValueError is raised if any field in t is outside of the allowed range.

The strftime function is similar to Oracle SQL’s to_char function to display a date in various formats.
You will however need to be familiar with directives.

For example, to display a date in Oracle’s format (‘dd-MON-yy’), the function is

assuming d is a datetime,
d.strftime(‘%d-%b-%y’).upper()

Cookie

Autorun citrix .ica file

save ica file

I work with citrix a lot in my office and then one day, I started to have to save the .ICA file and then click on .ica file to run citrix.

What I wanted was for it to automatically run the .ica file without first asking me to save the file first.

I researched for a long time on how to run downloaded file automatically but did not find a solution.

do not save encrypted pages to diskToday, I found the solution.

Go to Internet Options and uncheck Do not Save Encrypted Pages To My Disk like in the screenshot.

Now my ICA files run automatically on clicking.

Technorati tags: , ,
Pages:1234»