Notes by voodoo

Displaying keyword search results 1 - 8
Created by voodoo on February 11, 2012 15:02:56    Last update: February 11, 2012 15:04:13
Screenshot: Details: W:Failed to fetch copy:/var/lib/apt/lists/partial/... Solution: Become root: $ sudo bash Goto the apt folder: # cd /var/lib/apt Remove (or move) lists: # rm -r lists Create new lists folders: # mkdir -p lists/partial Retrieve new lists of packages: # apt-get update
Created by voodoo on July 14, 2010 23:37:46    Last update: November 16, 2011 12:00:33
Run gpedit.msc Find Administrative Templates -> Windows Components -> Terminal Services -> Limit Maximum color depth. Right click on "Limit maximum color depth", click "Properties", then select "Client Compatible". Update: for Windows 7 the color depth policy was moved to Administrative Templates -> Windows Components -> Remote Desktop Services -> Remote Desktop Session Host -> Remote Session Environment
Created by voodoo on November 25, 2010 00:15:37    Last update: November 25, 2010 00:15:37
PostgreSQL JDBC doc says: Specifically deleting a row that contains a Large Object reference does not delete the Large Object. Deleting the Large Object is a separate operation that needs to be performed. . In JDBC this can be done in two steps: Delete the large object (call PostgreSQL function lo_unlink ) long oid = jdbcTemplate.queryForObject("select... Delete the row in the referring table: jdbcTemplate.update("delete from InventoryItem whe...
Created by voodoo on November 25, 2010 00:03:53    Last update: November 25, 2010 00:03:53
It seems that the JDBC standard way to create a BLOB is to call Connection.createBlob . However, this does not work for PostgreSQL (as of version 9.0-801 jdbc4): Exception in thread "main" org.postgresql.util.PSQ... The workaround is to call a PostgreSQL function to create the Blob, then use JDBC to update it: Connection conn = jdbcTemplate.getDataSource().get... Oracle Note: the Oracle way function to create an empty BLOB is EMPTY_BLOB() . stmt.execute ("INSERT INTO my_blob_table VALUES ('...
Created by voodoo on November 24, 2010 23:43:29    Last update: November 24, 2010 23:43:29
Two of the three PreparedStatement.setBinaryStream methods are not implemented as of version 9.0-801 of the PostgreSQL JDBC driver. Test program: import java.io.*; import java.sql.*; pub... Also note that setBinaryStream only works on a bytea column.
Created by voodoo on September 21, 2010 03:51:14    Last update: September 21, 2010 03:51:14
Update: I followed the advice from CamStudio Support Forum and selected Stereo Mix . That fixed the no-audio problem! Double click Speaker icon in System Tray > Options > Properties > Adjust Volume For Recording > Select Stereo Mix, Mono Mix, What-U-Hear, etc.
Created by voodoo on September 21, 2010 03:12:52    Last update: September 21, 2010 03:13:58
Select "Capture AVI..." from File menu Set capture file Change size of captured frame Update screen capture settings Start capture Note: I wasn't able to capture sound from speaker!
Created by voodoo on November 28, 2009 17:19:08    Last update: November 28, 2009 17:19:08
Windows XP Automatic Update automatically downloads WGA and tries to install it. You either let it install or click cancel every time you boot up. Fortunately it's pretty easy to stop the installation since it's a scheduled task: simply enter tasks into the Run box, then uncheck the Enabled checkbox for the WGASetup task.