Background image on Remote Desktop connectios
I use Remote Desktop to connect some dell servers, and the default background image is slooooow. So after a few minutes research, here's the solution to remove it.
VTC: Microsoft SQL Server 2005 Administration
The author is Mark Long, and you can learn more about the product here
Select a raondom row
select column_name from table_name order by rand() limit 1
Select a random row with SQL Server
select top 1 column_name from table_name order by newid()
Programming in Android
You might want to read How to Program Google Android
In this article, Reto introduced an interesting idea: Where Are My Friends? which used the GPS, Maps and contacts database.
I'm thinking a similar but not duplicate idea: Looking for friends over phone.
People that willing to looking for friends will post from phone with the following information
1. City/Zip code, Area or District
2. Interest
3. Whom you are looking for? with some pre-defined search conditions.
Install telnet client on Windows Vista
Telnet is not installed by default. Here's the step to install on Windows Vista
1. Open control panel
2. Open Programs and Features
3. On the left panel, select "Turn Windows Features on or off"
4. In the tree, select "Telnet Client", and click OK
Telnet is the basic tool for a network administrator.
Using android.widget.ArrayAdapter
I'm developing the universal converter on a new platform: Android
The 1st screen will be a ListActivity, if it's an array of object, android.widget.ArrayAdapter would be very helpful.
Here's a sample:
private Vector<Type> types;
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
init();
setListAdapter(new ArrayAdapter<Type>(this,
verveearth.com another way of surfing
verveearth.com make blogs appear on the global map, which gives you another way of surfing blogs. You can find out how many blogs near you by click your city.
Although I use 90% English for blogging, I'm happy to appear on map of Beijing, China. I'm a native Chinese and will stay at Beijing for a long time.
Happy blogging.
Change IP address for Gentoo
modify file /etc/conf.d/net
change the line: iface_eth0="10.1.1.60 broadcast 10.1.1.255 netmask 255.255.255.0"
after save, run /etc/init.d/net.eth0 restart
ping the new ip address to make sure it works.
Migrate virtual machine from vmware server 1.0 to vmware workstation 6.0
When open a virtual machine created with vmware server 1.0 with vmware workstation 6.0, which is running debian 4.0r0,
the eth0 won't start by reporting the following error:
linuxvm1:/etc/network# ifup eth0
SIOCSIFADDR: No such device
eth0: ERROR while getting interface flags: No such device
SIOCSIFNETMASK: No such device
eth0: ERROR while getting interface flags: No such device
Failed to bring up eth0.
The solution:
1. run ifconfig -a
Setup atftpd on debian
1. apt-get install atftpd atftp
2. mkdir /tftpboot
3. chmod 777 /tftpboot
4. /etc/init.d/atftpd start
notice:
1. I prefer it start as a standalone server instead requires inetd
2. if atftpd isn't start, you'll need to check if it set USE_INETD=true in 2 files: /etc/default/atftpd and /etc/init.d/atftpd
just commend out that 2 line and it shall able to start.
3. the log file is /var/log/syslog


