Notes by voodoo

Displaying notes 1 - 10
Created by voodoo on July 22, 2010 17:00:54    Last update: July 22, 2010 17:01:44
Use: yum install gcc-c++ " yum install g++ " does not work.
Created by voodoo on July 21, 2010 16:10:47
Google news RSS does not like curl: C:\> curl --dump-header - -o NUL http://news.google.com/?output=rss % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0HTTP/1.1 403 Forbidden Content-Type: text/html; charset=UTF-8 Set-Cookie: PREF=ID=d25a6334e29f8a90:TM=1279728231:LM=1279728231:S=cXfnyhgZ8VIZuq13; expires=Fri, 20-Jul-2012 16:03:51 GMT; path=/; domain=.google.com X-Content-Type-Options: nosniff Date: Wed, 21 Jul 2010 16:03:51 GMT Server: NFE/1.0 Content-Length: 1383 X-XSS-Protection: 1; mode=block 100 1383 100 1383 0 0 8135 0 --:--:-- --:--:-- --:--:-- 23440 Switch the agent to HotJava with the -A option: C:\> curl -A "HotJava/1.1.2 FCS" --dump-header - -o google-news.xmn http://news.google.com/?output=rss % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 ...
Created by voodoo on July 15, 2010 22:57:48    Last update: July 15, 2010 22:58:37
Use -xl switch when connecting thru LAN: rdesktop -f -xl remote_host_name One effect of specifying LAN speed being Windows contents are displayed when they are dragged. Full documentation: -x <experience> Changes default bandwidth performance behaviour for RDP5. By default only theming is enabled, and all other options are dis- abled (corresponding to modem (56 Kbps)). Setting experience to b [roadband] enables menu animations and full window dragging. Setting experience to l [an] will also enable the desktop wallpa- per. Setting experience to m [odem] disables all (including themes). Experience can also be a hexidecimal number containing the flags.
Created by voodoo on July 15, 2010 22:43:40    Last update: July 15, 2010 22:45:07
You need to merge this value into the Windows XP registry in order to make ClearType work for a remote desktop: Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations] "AllowFontAntiAlias"=dword:00000001 A restart is required for the change to take effect.
Created by voodoo on July 14, 2010 23:37:46
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".
Created by voodoo on July 12, 2010 18:44:06
Use the \d command to show information about a table: postgres=# \d patchtype Table "public.patchtype" Column | Type | Modifiers -------------+-----------------------------+--------------- id | character varying(10) | not null code | character varying(32) | not null name | character varying(32) | suffix | character varying(32) | createddate | timestamp without time zone | default now() Indexes: "patchtype_pk" PRIMARY KEY, btree (id) "patchtype_code_key" UNIQUE, btree (code) postgres=#
Created by voodoo on July 12, 2010 18:41:26
Use the \dg command to list users: postgres=# \dg List of roles Role name | Attributes | Member of -----------+-------------+----------- boss | | {} postgres | Superuser | {} : Create role : Create DB postgres=#
Created by voodoo on July 12, 2010 18:37:14
Use the \d command to list tables, sequences, etc.: postgres=# \d List of relations Schema | Name | Type | Owner --------+--------------------+----------+------- public | carrierinfo | table | boss public | deviceinfo | table | boss public | eventdatalog | table | boss public | eventinfo | table | boss public | eventlog | table | boss public | settinginfo | table | boss (6 rows)
Created by voodoo on July 12, 2010 18:29:05    Last update: July 12, 2010 18:29:22
Use the \l command to list all databases: postgres=# \l List of databases Name | Owner | Encoding | Collation | Ctype | Access privileges -----------+----------+----------+-------------+-------------+----------------------- boss | boss | UTF8 | en_US.UTF-8 | en_US.UTF-8 | postgres | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 | template0 | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 | =c/postgres : postgres=CTc/postgres template1 | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 | =c/postgres : postgres=CTc/postgres (4 rows) postgres=#
Created by voodoo on July 12, 2010 18:26:19
Use the \i command to run a SQL script file: postgres=# \i /usr/share/pgsql/contrib/pgcrypto.sql
Previous  1 2 3 4 5 Next