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: , ,

retrieving sql server procedure output variables in python

Say, I have a stored procedure like this:

create procedure delete_po @po_number varchar(100) = null output, @delete_message varchar(200) = ‘deleting..’ output as….

To retrieve the the two output parameters, after the connecting with adodbapi, get the cursor and run this:

po_number = ‘ PO1487’

delete_message = ‘ ‘ * 200

result = cursor.callproc(‘delete_po’, (po_number, delete_message))

The output variables will be in result.

If I added print result to the previous code, I get this output:

[u'PO1487', u'cannot delete PO1487 because there are receiving transactions']

Note that the initial values of the variables (po_number, delete_message) must be initialized with sufficient length to contain the output values. Thus my delete_message = ‘ ‘ * 200.

Bloomberg shows more courage than Obama on Ground Zero Mosque

The world watches and in this corner of the world, this watcher respects Bloomberg for his values, courage and consistency.

 

In the debate over the inaccurately named "Ground Zero Mosque," New York Mayor Michael Bloomberg has been one of the strongest and most consistent political voices in favor of it.

In what the AP described as an "impassioned speech" at an event on Aug. 24, 2010, marking the Islamic holy month of Ramadan, Bloomberg said not allowing the proposal for a mosque two blocks from Ground Zero would be "compromising our commitment to fighting terror with freedom."

source:http://www.politifact.com/truth-o-meter/statements/2010/aug/26/michael-bloomberg/mayor-michael-bloomberg-argues-against-no-mosque-z/

 

Obama’s flip flop demonstrates no hope or audacity.

 

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: ,

Windows 7 64 bit frequent crashes

And here are the statistics :

 

2009-11 5
2009-12 5
2010-01 8
2010-02 4
2010-03 5
2010-04 7

total crashes: 34

I have an active Microsoft ticket SRX1118765656ID – RFX\SEA\SEA\Win7

 

Don’t depend on Microsoft !!

 

Technorati tags: , , , ,
Pages:123»