Notes by voodoo
Displaying keyword search results 1 - 9
Created by voodoo on March 23, 2011 15:57:52
Last update: March 23, 2011 15:57:52
In the "Program search" (or Run) box, enter lusrmgr.msc to bring up the "Local Users and Groups" dialog.
Double click the user name you want to set password never expire.
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 July 11, 2009 15:14:55
Last update: July 29, 2010 22:45:48
cURL is a command line tool for transferring files with URL syntax. The main purpose and use for cURL is to automate unattended file transfers or sequences of operations.
It's really easy to see HTTP headers with curl:
C:\>curl --head http://www.google.com
HTTP/1.0 ...
or, headers and page together (dump headers to stdout):
$ curl --dump-header - http://www.google.com HTTP/...
Download openssl from openssl.org:
curl http://www.openssl.org/source/openssl-0.9.6m....
C:\>curl --help
Usage: curl [options...] <url>
...
Created by voodoo on July 12, 2010 18:21:07
Last update: July 12, 2010 18:21:07
Create a user named boss with password 'bosspass' :
postgres=# create user boss password 'bosspass';
...
Created by voodoo on July 09, 2010 21:24:22
Last update: July 09, 2010 21:24:22
To resolve the error:
[focus@bamboo ~]$ psql -U postgres -W
Password ...
Edit /var/lib/pgsql/data/pg_hba.conf , change ident to trust , then restart postgres:
# TYPE DATABASE USER CIDR-ADDRESS ...
Created by voodoo on June 17, 2010 15:23:02
Last update: June 17, 2010 15:35:40
Use useradd to add a user (the switches are not required, but it's a good idea to give them. For example, without -m you'd create a user without a home directory):
# -d switch specifies user home directory
# -m ...
You also need to use the passwd command to set a new password before the user can log in.
To delete a user, use the userdel command:
userdel demo
Created by voodoo on June 17, 2010 15:32:12
Last update: June 17, 2010 15:32:12
Use the passwd command to set the password for a user:
passwd demo
Created by voodoo on February 08, 2010 04:57:49
Last update: February 08, 2010 04:57:49
If you don't want to open an extra port for VNC or want extra security with SSH, you can setup an SSH tunnel for VNC. On Windows, you can do this with Putty or openssh .
Open a command window, and enter (using Putty as example):
C:\local\bin\plink.exe -ssh -2 -L localhost:5901:r...
When connecting with vncviewer , use localhost:5901 as server instead of remote_host:5901 .
If you use the setup frequently, it is more convenient to setup the tunnel as a Windows service . Assuming the name of the service is vnc_tunnel , the registry entry would look like:
Windows Registry Editor Version 5.00
[HKEY_...
Created by voodoo on February 07, 2010 06:18:47
Last update: February 07, 2010 22:41:38
To start vncserver :
# with default screen size of 1024x768
vncserve...
To stop vncserver (for display #1):
vncserver -kill :1
The first time you start vncserver , it asks you to create a password. To change vncserver password :
vncpasswd