Notes by voodoo

Displaying keyword search results 1 - 8
Created by voodoo on June 14, 2011 08:15:57    Last update: June 14, 2011 08:17:25
In below examples, the default gateway is 105.52.84.1 . Use " netstat -rn ": $ netstat -rn Kernel IP routing table Destin... Use " route -n ": $ route -n Kernel IP routing table Destinati... Use " ip route show ": $ ip route show 105.52.84.0/24 dev eth0 proto ...
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 24, 2010 23:34:52    Last update: November 24, 2010 23:36:08
PostgreSQL provides two distinct ways to store binary data: Binary data can be stored in a table using the data type bytea . By using the Large Object feature which stores the binary data in a separate table in a special format and refers to that table by storing a value of type oid in your table. Different methods are used to access the BLOBs depending on which storage type you choose: To use the bytea data type you should use the getBytes() , setBytes() , getBinaryStream() , or setBinaryStream() methods. To use the Large Object functionality you can use either the LargeObject class provided by the PostgreSQL JDBC driver, or by using the getBLOB() and setBLOB() methods. Using setBinaryStream on an OID column yields...
Created by voodoo on July 12, 2010 18:44:06    Last update: July 12, 2010 18:44:06
Use the \d command to show information about a table: postgres=# \d patchtype Table ...
Created by voodoo on July 12, 2010 18:37:14    Last update: July 12, 2010 18:37:14
Use the \d command to list tables, sequences, etc.: postgres=# \d List of relations ...
Created by voodoo on June 29, 2010 15:08:16    Last update: June 29, 2010 15:08:16
ALTER TABLE PatchInfo ADD CONSTRAINT FileNameKey_U...
Created by voodoo on June 29, 2010 14:52:45    Last update: June 29, 2010 14:52:45
ALTER TABLE MyTable RENAME OldColumn TO NewColumn;... If ONLY is not specified, the table and all its descendant tables (if any) are updated.
Created by voodoo on April 07, 2009 23:25:11    Last update: April 07, 2009 23:29:06
Steps: Boot up to Windows Recovery Console Run command: fixmbr device name Use fixmbr to repair the MBR of the boot partition. In the command syntax, device name is an optional device name that specifies the device that requires a new MBR. Use this command if a virus has damaged the MBR and Windows cannot start. Warning : fixmbr can damage your partition tables if a virus is present or if a hardware problem exists. If you use this command, you may create inaccessible partitions. Microsoft recommends that you run antivirus software before you use this command. You can obtain the device name from the output of the map command. If you do not specify a device name, the MBR of the boot device is...