Song Way

Creative Commons License
The blog posts here by Song Wei is licensed under a
Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States License.

August 16, 2008

So, how strong is China’s tech edge?

Filed under: recommended

Came across an interesting book:


Silicon Dragon: How China Is Winning

the Tech Race (Hardcover)


I didn’t read the book. but from the comments, i can see the major examples listed in the book. Most of them happen to be stars of web2.0. Glad to see China’s tech edge is recognized by foreigners, but i have my own doubt on the subject:

1. Unlike U.S., I don’t think those star entrepreneurships are driving a major sector of economy. But, yeah, we may(or have to) be there after a while.

2. By and large the tech ventures in China are still mainly about localization. Well, “learning” from the west. I don’t think the community there is ready for leading things. At least it’s not cost effective.

3. Like most countries, China’s tech community started from a primitive and dirty phase. People want to get out of the mud and establish themselves as soon as possible, and they’re learning from whoever they can. But somehow we’re having problems with learning. For some reasons, rationality is still a rare thing in a lot of cases in China. In the 80s we learnt from japan, and now we learn from America. We have the traits of both, but it seems that we missed the most important part from both sides. A few days ago a Chinese major student talked with me about Chinese car’s big business plan in US, i regret to see the truth end up like this. Automobile industry is a good example. we have neither super technicians (like japanese), nor visionaries(like U.S.)

Chinese values education, and we have a immense amount of human resource. But somehow this growing force is still finding its way in the dark. I’m still waiting for the day it finds its way.

And, the author is looking for the Steve Jobs of China in the book. I think the real tech hero in China would be more like Bruce Lee, and I am yet to see one. And it nowadays it takes a whole community practicing tech-fu, rather than a few stars to push things forward. This is the case everywhere in the world.


August 15, 2008

Nan Ren

Filed under: Uncategorized



Michael Phelps Learning Mandarin

I didn’t know Rosetta Stone(the old guy beside him) is a real business man with the software. Hilarious!

do you know what this is?

Filed under: Uncategorized



see here

August 5, 2008

emacs meta key problem in xterm

Filed under: cyber hacks

http://www.emacswiki.org/cgi-bin/wiki/MetaKeyProblems#toc15

July 16, 2008

How to work with others — what I learnt from watching D5 interview of Bill Gates and Steve Jobs

Filed under: recommended

I believe the two are honest and to the point when saying the single most important thing they should have learnt from each other. And here I’m going to talk about what Jobs wished he had learnt from Gates: work with others.

O. Maybe you want to stop me right here. Bill Gates working with others? Yeah. this is his working with others in action:

But, what I have to say is, in spite of brutal business strategy, when communicating with others, he’s always ready to give full recognition to other people’s good work, even for Jobs:)

Although known as “verbally combative”, he stated many times that he has the passion to work with smart people with different skill sets. And I did see proof of that in the way he communicates with people: he always put first priority to placing people at the right point for a bright future. And when it comes to give recognitions, he’s never too ready and sincere to do that.

When I compare this style to mine, I see a huge difference. Although not too “verbally combative”, the first thing I look at when listening to other people’s work is to find holes, draw backs. It’s good to point out those to people, but in order to work well with people, I find I have to have the passion to give proper recognition to others, either to those who at competing position. Maybe years of test based education put too much emphasis on being correct in my mind, that sometimes, in my subconscious, I forgot the ultimate goal is to find new solutions and get things done, and the shortest path to that is to motivate people around you and work together to that destination.

What a dangerous mistake!

July 13, 2008

a few nice reports

Filed under: Uncategorized

http://www.canalys.com/services/reports/index.htm

Smart mobile device and navigation trends report 2007/2008

The Russian IT channel landscape – a special report

The evolving EMEA digital entertainment market

you need to pay to view those. But free articles citing the result of them can be found on the web, like this one:

http://en.wikipedia.org/wiki/Smartphone

July 8, 2008

bibtex database manager

Filed under: cyber hacks

jabref

powerful merging of duplicate items

java-based

save database in .bib file

June 30, 2008

self made helicopter and plane by Chinese farmers

Filed under: recommended



Self-made helicopter by a self-educated chinese



A Chinese farmer-made airplane!!!

I can’t do that…..

Their makings might be shaky and primitive, but their mind and body is free and energetic out there in the sky, while a huge number of so called “researchers” imprison their mind and body in the lab.

Hats off to the farmers.

June 25, 2008

multiple webservers hosting on a single machine

Filed under: cyber hacks

i configured songweilab.com and zhxin123.com following this thread:
http://www.debian-administration.org/articles/412
the trick is to use virtualhost.
both sites are in development, though.

do you know that i like metal?

Filed under: recommended



Hatebreed - I Will Be Heard

June 23, 2008

two intrinsic devils against freedom

Filed under: recommended

laziness and fear

fear dictates you over your own mind.
laziness seduces you to follow others.

and by finger pointing to each other, they work perfectly well together. to the extent that a lot of people forget the existence of the third option.

and to make the situation even worse, one may harm himself by trying to completely eliminate the two.

fear prevents one from danger.
laziness helps one to focus on important matters.

maybe the ultimate enemy for one is always the breaking of balance.

and it’s getting harder each day to restore it in this crazy world.

luckily, i found some nice remedies along the way, like this one:

“emotional content, not anger!


i’m not a believer of any religion, but sometimes i want to say this is my salvation.

June 20, 2008

Yeah we haven’t seen a “green” mobile phone yet

Filed under: Uncategorized

http://news.yahoo.com/s/pcworld/20080619/tc_pcworld/147315

“More than half the world’s population now own a phone” was a typical headline.
To give you some idea, in the time it’s taken you to read this paragraph, another 3,000 or 4,000 phones will have been sold. Nokia alone is reported to sell in the region of 17 phones per second.
Let’s face it: 3 billion phones represent a lot of plastic.
The raw material alone needed to produce 3 billion phones is far from insignificant.
Essential ingredients such as coltan, which can be mined by hand and is in plentiful supply in places like the Democratic Republic of Congo, has been blamed for helping fuel the civil war, increasing child labor rates, fostering illegal encroachment into national parks and the deaths of endangered gorillas. Once you have the ingredients, there is the shear amount of energy required in the manufacturing process and concerns about the working conditions in the factories. And, at the end of all that, there is the carbon emitted in shipping the finished products, usually by air.
Mobiles that do end up in the ground have the potential to come back to haunt the owner, and millions of other people, as toxic chemicals slowly seep out into the natural environment. A single lithium-ion battery has the potential to contaminate up to 600,000 liters of groundwater.
Unfortunately, it’s a subject that for many is largely ignored, and I– like many other people– don’t have any easy answers.


android apps

Filed under: recommended, cyber hacks

I’ve got high hope on android, and the open mobile platform it is going to open. I tried to participate the competition myself with some of my classmates but it didn’t work out. Mostly because of the lack of spare time, I think. But never mind. We might get loads of inspiration from the prize winners as well. let’s go:

AndroidScan
Developer: Jeffrey Sharkey
barcode. it’s originated from Japan and widely used there. A good way to link everything to the net:)

BioWallet
Developer: Jose Luis Huertas Fernandez
iris authentication. I guess bio authentication would become mandatory for mobile devices


One discovery: most of the prize winning software are developed by small teams, with one or two members.


CallACab
Developer: Konrad Huebner, Henning Boeger
similiar apps: call the cop. call a wrecker. custom one button emergency signaling. you don’t need to check your position and do the meanless talking.

Commandro
Developer: Alexey Pisarev, Andrey Tapekha
track your friends’s location and status

CookingCapsules
Developer: Mary Ann Cotter, Muthuselvam Ramadoss
I’ve no interest in cooking. but the idea would be appealling to me if it could download standard multivideo how-tos from the internet. Yeah. pervasive just in time learning.

EmRadar
Developer: Jack Kwok
Always a good idea to put emergency alert on mobiles. Like earthquake alerts…


goCart
Developer: Rylan Barnes
Yeah. we always wish we could the average price on line when we came across something nice.
Barcode would be universal…

gWalk
Developer: Klaus ten Hagen, Christian Klinger, Marko Modsching,
Rene Scholze
personalized tours… I think we can also put this into the multimedia how-to directory. basicly my concept is a social networked ppt on the mobile devices.

IMEasy
Developer: Yan Shi
IM enabling collaboration on maps and paintings. Maybe we need to collaborate on more things.

Jigsaw
Developer: Mikhail Ksenzov
White board data capturing. Maybe folks can use it for books as well. But, actually we can just shoot a pic and do expensive photo processing on your server.

JOYity
Developer: Zelfi AG
Maybe we need to extend role play games to its literal meaning.


LifeAware
Developer: Gregory A. Moore, Aaron L. Obrien, Jawad Akhtar
I don’t like this kind of “tracking” apps, really. I think a major mistake in computer app design is to consume too much time, energy and privacy of the user. Who would like to be tracked all day like this? And who would be interested in knowing every little detail of the others?
Less is more. the computer age is maturing enough to get over the playing new gadagets as a toy period.

Locale
Developer: Clare Bayley, Carter Jernigan, Christina Wright, Jasper Lin
change setting automatically with location information.
Yeah. we need the mobile to be more intelligent.

LreadyEmergencyManager
Developer: Chris Hulls, Dilpreet Singh, Luis Carvalho, Phuong
Nguyen
emergency connection. yeah. emergency.

Phonebook2.0
Developer: Voxmobili
Although I don’t like status tracking, I would appreciate a phonebook that would display “don’t call me” status on it.

PicSay
Developer: Eric Wijngaard
maybe we need to add video support as well.



SafetyNet
Developer: Michael DeJadon
Oh… didn’t i just think of this one…

SocialMonster
Developer: Siu Lung, Ben Hui, Tommy Ng
….
We can actually do this on facebook. Why bother creating another here?

SynchroSpot
Developer: Shaun Terry
Location based alert: yes, this is much more flexible than time based alert.

Teradesk
Developer: José Augusto Athayde Ferrarini
File sharing between mobiles/mobiles and computers


WritingPad
Developer: ShapeWriter Inc.
not quite sure how powerful this is… But we do need more powerful input method on the mobile.


Ideas:
coordination schemes with location tracking, group im, or even video conferencing.
remember those strategy game? how about putting drag-select-communicate scheme to the im with map?
not much mobile/online server scheme. for me this is something that can tap the true power of the mobile system. do we have a ssh term on android???? hey it’s linux! But I still haven’t found it.
not many bluetooth apps. I really think opportunistic forwarding is a great way to know people around you.

June 19, 2008

mind graph

Filed under: cyber hacks

a gpled mind graph software in java

http://freemind.sourceforge.net/wiki/index.php/Main_Page

June 18, 2008

google in a shell

Filed under: cyber hacks

http://goosh.org/

o my gosh

China’s All-Seeing Eye

Filed under: Uncategorized

http://www.rollingstone.com/politics/story/20797485/chinasallseeingeye/print

Is this for real?

June 14, 2008

scim in fluxbox

Filed under: cyber hacks

following this
key step:
1. set those environment variables anywhere before you start X11 server:
export XMODIFIERS=’@im=SCIM’
export GTKIMMODULE=”scim”
export QTIMMODULE=”scim”

2. start scim demean right before you start X11 server:
scim -d


example: my .xinitrc file:
export XMODIFIERS=’@im=SCIM’
export GTKIMMODULE=”scim”
export QTIMMODULE=”scim”
scim -d
fluxbox

June 13, 2008

turn off your screen whenever you want to

Filed under: recommended, cyber hacks

windows:
add a desktop shortcut to C:\WINDOWS\system32\scrnsave
assign a key shortcut to it.
linux:
xset dpms force off
use some keyboard short cut to fire up this shell command.

principle to stay as the master instead of the slave of my computers

Filed under: recommended, cyber hacks

You computer is a danger to you: it will eat your time, with so many fancy eye candies and the gateway to internet which is ever tempting your inner laziness.
It’s no news. People in the world are aware of that but most of them are still just one click away from being distracted, including me. And because I’m often unable to hold my basic instinct to try out all kinds of digital trash in my computer, I spend loads of time to reinstall it.

It’s probably a shame for a computer science major, since i have the knowledge to make things simple. Yeah. It’s a matter of principle for me. And in order to make this principle more established I decide to publish it here, spending 20 minutes more in distraction.

principle to stay as the master instead of the slave of my computers:
keep a *nix server whenever possible.(everyone should have their own server in a few years) and keep all the data that means something to you on it with a version control system.

if you have a working/secure system already, don’t change it until things break.

if you can do something online, don’t bother to install a software in your computer.

if you can use public computers with secure access to your server, don’t bother to carry laptop/pda with you.

on your computer, stick to the command line whenever possible. to hell, gui

linux for your server and windows/mac/any os the hardware you carry is intended for on your laptop/pda. it’s not that i like windows. the reason is to avoid dealing with hardware drivers yourself whenever possible. but 2 notions on windows: never use ie. have at least one malware detector.

keep a minimum set of software

install the software on your *nix instead of your laptop/pda/desktop whenever possible.

no themes, no eye candies. if you ever feel a need of change to the default desktop background, set it to grey. the user interface colors/themes are meant to be clear in logic and dump&humble in everything else.

avoid the radiation of the screen whenever possible.

if the work flow shaped by above principles are sub-optimum for quite a while(several days), spend sometime to think carefully how it can be improved the most while violating the above the least. and then stick to it.

above all, the aim is to spend the least amount of time dealing with the computer, or even looking at it.

scite

Filed under: cyber hacks

green free source super lightweighted next generation text editor on both X and win32



June 7, 2008

an incredible site

Filed under: Uncategorized

google: the best page in the universe

links added

Links to some of my creation/collections

June 4, 2008

the great reorganization: the real thing after web2.0

Filed under: Uncategorized

Next phase of working at home: Leaving home to be continued

linux webcam/digital camera solution

Filed under: cyber hacks

digital camera
grep photos in digital camera:
gphoto2

manage and upload your pictures:
picasa


webcam
webcam driver: qc-usb and linux-uvc-source
especially, support in debian:(i don’t know which one would work for the specific camera)
qc-usb-source
with the help of module-assistant
compile:
m-a a-i qc-usb-source
modprobe quickcam #i’m using quickcam

linux-uvc-source
with the help of module-assistant
compile:
m-a a-i linux-uvc-source
#for quickcam pro 5000 this one worked.

now install luvcview to see if your webcam is working

you can also do video chat in
amsn
or
ekiga

even do http streaming:
uvc streamer
install script for debian

su -
apt-get install linux-uvc-source amsn gphoto2 luvcview
m-a a-i linux-uvc-source
reboot
#you still need to install picasa

June 3, 2008

business talks

Filed under: Uncategorized

business etiquette video

management in China

June 2, 2008

more interesting packages in openwrt kamikaze

Filed under: cyber hacks

openwrt kamikaze is a linux distribution that works with wireless routers and other embedded devices.
https://dev.openwrt.org/

lm system health sensor utility
http://www.lm-sensors.org/wiki/ProjectInformation

list open files
http://en.wikipedia.org/wiki/Lsof

resize ext2 fs
http://linuxcommand.org/man_pages/resize2fs8.html

find what sys call a program makes
http://linux.die.net/man/1/strace


monitoring network of computers
http://www.zabbix.com/

monitoring network of computers
http://munin.projects.linpro.no/

infra-red decoder/encoder and driver

Filed under: cyber hacks

http://www.lirc.org/

they even have a list of config files for devices out there on the market.

let your computer talk to your home appliances via power line

Filed under: cyber hacks

i just found this fantastic way of sending signals along powerline at your home:
http://en.wikipedia.org/wiki/X10%28industrystandard%29

and this is one of its hardware implementation:CM11A
http://www.smarthome.com/1140.html

and a linux program to talk to the computer interface.
http://heyu.tanj.com/

so, we have a complete solution of basic home automation
now. although the options of actuation is quite limited. and CM11A has its share of problems. but i guess there are a lot more solutions out there, and many more to come in the future. i knew of this but always thought it’s kind of distant from everyday life. now, it’s right there in front of me. the more you think about it the more fascinating it could be. we really can’t blame Bill Gates for putting so much money into it:)




gnokii

Filed under: cyber hacks

from http://www.gnokii.org/

gnokii features

gnokii allows you to communicate with the phone over the serial cable connection, usb connection (support depends mostly on the operating system level support), infrared connection and bluetooth connection.

gnokii provides many functionality of different areas for user to manipulate mobile phone.

SMS

You can send SMS, receive them and save them in the phone. gnokii supports delivery reports, picture messages (Nokia own protocol), concatenated messages, wap pushes, unicode messsages. gnokii allows you to send and receive logos and ringtones over SMS.

Phonebook

gnokii offers you possibility to read and write phonebook. Phonebook entries can be displayed in human readable form or can be exported to comma separated output, vCard version 3.0 format or ldif format. You can import data from the same formats. Please note, that supported phonebook entries depend on the phone features and therefore may not be all imported.

Calendar

gnokii supports either calendar or todo lists. gnokii is capable to export calendar to iCal files and import them from the same format. Most calendar features like different types of events, recurrence, start and end times are supported.

Call management

You can initiate and answer calls with gnokii.

Other

Among other gnokii capabilities you’ll find security options like entering PIN, ringtone and logo handling and many many others


May 30, 2008

Linux PDF editor for manipulating PDF documents

Filed under: Uncategorized

http://www.cyberciti.biz/tips/open-source-linux-pdf-writer.html
scribus
flpsed
pdfedit

Spiking neural networks

Filed under: Uncategorized

from http://en.wikipedia.org/wiki/Artificialneuralnetwork

Spiking neural networks (SNNs) are models which explicitly take into account the timing of inputs. The network input and output are usually represented as series of spikes (delta function or more complex shapes). SNNs have an advantage of being able to process information in the time domain (signals that vary over time). They are often implemented as recurrent networks. SNNs are also a form of pulse computer.

Networks of spiking neurons — and the temporal correlations of neural assemblies in such networks — have been used to model figure/ground separation and region linking in the visual system (see e.g. Reitboeck et.al.in Haken and Stadler: Synergetics of the Brain. Berlin, 1989).

Gerstner and Kistler have a freely available online textbook on Spiking Neuron Models.


Boltzmann machine

Filed under: Uncategorized

http://en.wikipedia.org/wiki/Boltzmann_machine

“A Boltzmann machine is the name given to a type of simulated annealing stochastic recurrent neural network by Geoffrey Hinton and Terry Sejnowski. Boltzmann machines can be seen as the stochastic, generative counterpart of Hopfield nets. They were one of the first examples of a neural network capable of learning internal representations, and are able to represent and (given sufficient time) solve difficult combinatoric problems. However, due to a number of issues discussed below, Boltzmann machines with unconstrained connectivity have not proven useful for practical problems in machine learning or inference. They are still theoretically intriguing, however, due to the locality and Hebbian nature of their training algorithm, as well as their parallelism and the resemblance of their dynamics to simple physical processes. If the connectivity is constrained, the learning can be made efficient enough to be useful for practical problems.

“The network is run by repeatedly choosing a unit and setting its state according to the above formula. After running for long enough at a certain temperature, the probability of a global state of the network will depend only upon that global state’s energy, according to a Boltzmann distribution. This means that log-probabilities of global states become linear in their energies. This relationship is true when the machine is “at thermal equilibrium“, meaning that the probability distribution of global states has converged. If we start running the network from a high temperature, and gradually decrease it until we reach a thermal equilibrium at a low temperature, we are guaranteed to converge to a distribution where the energy level fluctuates around the global minimum. This process is called simulated annealing.

wrting presentation in txt files

Filed under: Uncategorized

http://member.wide.ad.jp/wg/mgp/
http://www.icir.org/mallman//software/mmaker/
great

txt2tags

Filed under: Uncategorized

very appealing to me:
“The same text file can be converted to all target formats, with no further editing. This is the txt2tags purpose: ONE source, MULTI targets.”

http://txt2tags.sourceforge.net/

language rating

Filed under: Uncategorized


from
http://littletutorials.com/2008/05/28/13-reasons-java-die-old-age/

on the game in Chinese Stock Market

Filed under: Uncategorized

http://www.ruanyifeng.com/blog/2008/05/covetouschineserealestatedevelopers.html
analysis to come later

on disaster insurance

Filed under: Uncategorized

at one hand, Chinese netizen wonders why China doesn’t have disaster insurance

on the other hand, Warren Buffet in USA concludes the end of disaster insurance party he previously embraced

And his pessimism goes even further by worrying about nuclear bombs along side soaring wind and trembling earth.

light weighted system monitoring in X

Filed under: Uncategorized

conky

my .conkyrc file:

#alignment topright
background yes

cpu
avgsamples 2
net
avgsamples 2

out
toconsole no

# X font when Xft is disabled, you can pick one with program xfontsel
#font 8x10
#font 7x13
#font 8x13
#font 7x12
#font *mintsmild.se*
#font -*-*-*-*-*-*-34-*-*-*-*-*-*-*
#font -artwiz-snap-normal-r-normal-*-*-100-*-*-p-*-iso8859-1
#font -*-luxi sans-medium-r-normal-*-13-*-*-*-*-*-iso8859-2
#font -*-helvetica-medium-r-normal-*-12-*-100-100-*-*-iso8859-2
#font -*-lucidatypewriter-medium-r-*-*-14-*-100-100-*-*-iso8895-2
#font -*-courier-medium-r-normal-*-14-*-100-100-*-*-iso8859-2
#font -*-lucida-medium-r-normal-*-13-*-*-*-*-*-iso8859-2

# Use Xft?
use
xft yes

# Xft font when Xft is enabled
#xftfont monospace-8
xftfont sans-8.5

ownwindowtransparent no
ownwindowcolour hotpink

# Text alpha when using Xft
xftalpha 0.8

# mail spool
mailspool $MAIL

# Update interval in seconds
update
interval 1

# Create own window instead of using desktop (required in nautilus)
ownwindow no

# Use double buffering (reduces flicker, may not work for everyone)
double
buffer yes

# Minimum size of text area
minimumsize 5 5
#maximum
width 150

# Draw shades?
drawshades no

# Draw outlines?
draw
outline no

# Draw borders around text
drawborders yes

# Stippled borders?
stippled
borders 0

# border margins
bordermargin 10

# border width
border
width 0

# Default colors and also border colors
defaultcolor white
default
shadecolor white
default
outlinecolor white

# Text alignment, other possible values are commented
#alignment top
left
alignment topright
#alignment bottom
left
#alignment bottomright

# Gap between borders of screen and text

gap
x 20
gapy 65 #margines gorny

# Add spaces to keep things from moving about? This only affects certain objects.
use
spacer yes

# Subtract file system buffers from used memory?
nobuffers yes

# set to yes if you want all text to be in uppercase
uppercase no

# boinc (seti) dir
# seti
dir /opt/seti

# Possible variables to be used:
#
# Variable Arguments Description
# acpiacadapter ACPI ac adapter state.
# acpifan ACPI fan state
# acpitemp ACPI temperature.
# adt746xcpu CPU temperature from thermadt746x
# adt746xfan Fan speed from therm
adt746x
# battery (num) Remaining capasity in ACPI or APM
# battery. ACPI battery number can be
# given as argument (default is BAT0).
# buffers Amount of memory buffered
# cached Amount of memory cached
# color (color) Change drawing color to color
# cpu CPU usage in percents
# cpubar (height) Bar that shows CPU usage, height is
# bar’s height in pixels
# downspeed net Download speed in kilobytes
# downspeedf net Download speed in kilobytes with one
# decimal
# exec shell command Executes a shell command and displays
# the output in torsmo. warning: this
# takes a lot more resources than other
# variables. I’d recommend coding wanted
# behaviour in C and posting a patch :-) .
# execi interval, shell Same as exec but with specific interval.
# command Interval can’t be less than
# updateinterval in configuration.
# fs
bar (height), (fs) Bar that shows how much space is used on
# a file system. height is the height in
# pixels. fs is any file on that file
# system.
# fsfree (fs) Free space on a file system available
# for users.
# fs
freeperc (fs) Free percentage of space on a file
# system available for users.
# fs
size (fs) File system size
# fsused (fs) File system used space
# hr (height) Horizontal line, height is the height in
# pixels
# i2c (dev), type, n I2C sensor from sysfs (Linux 2.6). dev
# may be omitted if you have only one I2C
# device. type is either in (or vol)
# meaning voltage, fan meaning fan or temp
# meaning temperature. n is number of the
# sensor. See /sys/bus/i2c/devices/ on
# your local computer.
# kernel Kernel version
# loadavg (1), (2), (3) System load average, 1 is for past 1
# minute, 2 for past 5 minutes and 3 for
# past 15 minutes.
# machine Machine, i686 for example
# mails Mail count in mail spool. You can use
# program like fetchmail to get mails from
# some server using your favourite
# protocol. See also new
mails.
# mem Amount of memory in use
# membar (height) Bar that shows amount of memory in use
# memmax Total amount of memory
# memperc Percentage of memory in use
# newmails Unread mail count in mail spool.
# nodename Hostname
# outlinecolor (color) Change outline color
# pre
exec shell command Executes a shell command one time before
# torsmo displays anything and puts output
# as text.
# processes Total processes (sleeping and running)
# runningprocesses Running processes (not sleeping),
# requires Linux 2.6
# shadecolor (color) Change shading color
# stippled
hr (space), Stippled (dashed) horizontal line
# (height)
# swapbar (height) Bar that shows amount of swap in use
# swap Amount of swap in use
# swapmax Total amount of swap
# swapperc Percentage of swap in use
# sysname System name, Linux for example
# time (format) Local time, see man strftime to get more
# information about format
# totaldown net Total download, overflows at 4 GB on
# Linux with 32-bit arch and there doesn’t
# seem to be a way to know how many times
# it has already done that before torsmo
# has started.
# totalup net Total upload, this one too, may overflow
# updates Number of updates (for debugging)
# upspeed net Upload speed in kilobytes
# upspeedf net Upload speed in kilobytes with one
# decimal
# uptime Uptime
# uptimeshort Uptime in a shorter format
#
# seti
prog Seti@home current progress
# setiprogbar (height) Seti@home current progress bar
# seti
credit Seti@hoome total user credit


# variable is given either in format $variable or in ${variable}. Latter
# allows characters right after the variable and must be used in network
# stuff because of an argument
#${font Dungeon:style=Bold:pixelsize=10}I can change the font as well
#${font Verdana:size=10}as many times as I choose
#${font Perry:size=10}Including UTF-8,
#${font Luxi Mono:size=10}justo como este texto que o google traduz fĂ?ÂŞz o portuguĂ?ÂŞs
# stuff after ‘TEXT’ will be formatted on screen

TEXT
${color #7eade7}System: ${color #dddddd}$nodename linux
${color #d2d2d2}$sysname $kernel ${color #CCCCCC}on ${color #d2d2d2}$machine
${color #d2d2d2}Uptime: $uptime
${color #d2d2d2}${time %b - %a - %d} ${color #7eade7}${time %k:%M:%S}
${color white}${hr 1}
${color #7eade7}Monitor systemu:
${color #d2d2d2}cpu: ${color #d9d734}${cpu}%
${color #d2d2d2}${cpugraph 25 ff0000 0000ff}
${color #d2d2d2}ram : ${color #CCCCCC}$mem${color #d2d2d2}/${color #CCCCCC}$memmax ${color #d2d2d2}- ${color #CCCCCC}$memperc%
${color #d2d2d2}swap: ${color #CCCCCC}$swap${color #d2d2d2}/${color #CCCCCC}$swapmax ${color #d2d2d2} - ${color #CCCCCC}$swapperc%
${color #d2d2d2}load: ( ${color #CCCCCC}$loadavg ${color #d2d2d2})
${color #d2d2d2}procesy: ${color #CCCCCC}$processes

${color #7eade7}Net: ${color #BBBBBB}(eth0)
${color #d2d2d2}down: ${color #d9d734}${downspeed eth0} k/s ${color #d2d2d2}up: ${color #d9d734}${upspeed eth0} k/s
${color #d2d2d2}${downspeedgraph eth0 25,100 ff0000 0000ff} ${color #d2d2d2}${upspeedgraph eth0 25,100 0000ff ff0000}
${color #d2d2d2}total: ${color #d9d734}${totaldown eth0} ${color #d2d2d2}total: ${color #d9d734}${totalup eth0}

${color #7eade7}Net: ${color #BBBBBB}(eth1)
${color #d2d2d2}down: ${color #d9d734}${downspeed eth1} k/s ${color #d2d2d2}up: ${color #d9d734}${upspeed eth1} k/s
${color #d2d2d2}${downspeedgraph eth1 25,100 ff0000 0000ff} ${color #d2d2d2}${upspeedgraph eth1 25,100 0000ff ff0000}
${color #d2d2d2}total: ${color #d9d734}${totaldown eth1} ${color #d2d2d2}total: ${color #d9d734}${totalup eth1}

${color #7eade7}Dyski:
${color #d2d2d2}root : ${color #CCCCCC}${fsused /}${color #d2d2d2}/${color #CCCCCC}${fssize /}( ${color #d2d2d2}${color #CCCCCC}${fsfree /} ${fsfreeperc /}% free)${color #d2d2d2}
${fs
bar /}
${color #d2d2d2}home : ${color #CCCCCC}${fsused /home}${color #d2d2d2}/${color #CCCCCC}${fssize /home} (${color #d2d2d2}${color #CCCCCC}${fsfree /home} ${fsfreeperc /home}% free)${color #d2d2d2}
${fs
bar /home}

${color #7eade7}Process:
${color #d2d2d2}${top name 1}
PID: ${top pid 1} CPU%: ${top cpu 1} MEM%: ${top mem 1}
${color #7eade7}${top name 2}
PID: ${top pid 2} CPU%: ${top cpu 2} MEM%: ${top mem 2}
${color #d2d2d2}${top name 3}
PID: ${top pid 3} CPU%: ${top cpu 3} MEM%: ${top mem 3}
${color #7eade7}${top name 4}
PID: ${top pid 4} CPU%: ${top cpu 4} MEM%: ${top mem 4}
${color #d2d2d2}${top name 5}
PID: ${top pid 5} CPU%: ${top cpu 5} MEM%: ${top mem 5}


Battery:${battery} AC:${acpiacadapter} Temperature:${acpitemp}

May 29, 2008

Yao’s best look I’ve seen

Filed under: Uncategorized

I don’t like Yao because I feel he’s too clumsy on the field, despite the fact that I’m clumsier than him even with a much smaller stature. But this pic from cnn really touches my heart:


I guess it’s the introduction words that make the difference:
“Yao Focused on Countrymen”
Perfect for this pic.

people would actually get brainhacked without cyber implantation

Filed under: Uncategorized

Alien hand syndrome

awosome. maybe you can make friends with your hand.

onlne latex equation editor

Filed under: Uncategorized

from hamline

it has everything, and even edit history of other people!

but it wouldn’t update the result in real time. so i can also use ekee or openoffice math

and i like ekee better. it’s simply faster.

cyberpunk dream? let’s start with the Monkeys

Filed under: Uncategorized

I’ve always been fascinated about the cyberbrain idea in ghost in the shell. But like everybody else, I also don’t feel very well when think about messing up with the brain with cyber devices. Now scientists eventually can’t hold their evil instinct and made the first step on Monkeys. Although “he predicts it will be longer before the devices are used in actual patients with disabilities.”, actually Schwartz, professor of neurobiology at University of Pittsburgh’s School of Medicine, means it would probably be “two years”. So maybe it’s reasonable to imagine that in 10 to 20 years you would see normal people operating computer and robots in their daily life with sensors in their brain, (and maybe getting feedbacks with actuators and thus getting brain hacked on a regular basis.). How horrible! How terrific! Let’s pray.

May 28, 2008

If you’re not part of the solution, you’re part of the problem

Filed under: Uncategorized

so true…

May 24, 2008

Sweetie, catch mom’s hand right now

Filed under: Uncategorized

translated from here For the children who died from Wenchuan Earthquake

               Sweetie, 
              Catch mom's hand right now, 
              The way to heaven, 
              Is too dark. 
              Mom is afraid that, 
              you bump your head. 
              Hurry, 
              Catch mom's hand tightly,

              Let mom go with you. 

              Mom

              Is afraid that 
              The way to heaven

              Is too dark 
              I cannot see your hand

              ever since 
              The collapsed walls took the sunlight 
              I cannot see 
              Your sweet eyes any more 

              Sweetie, 
              Go ahead, 
              The way in front of you, 
              dosn't have worries anymore. 
              No never-ending textbooks to read. 
              Remember, 
              Your daddy's image and mine 
              We will go together in the next life. 

              Mom, 
              Don't worry, 
              The way of heaven is a little crowded.

              There are many classmates and friends,

              We say, 
              Don't cry, 
              Whoever's mom is our mom, 
              Whoever's child is mom's child. 
              Without me,

              Please give your love to other living children. 

              Mom, 
              Don't cry, 
              The light of tears 
              cannot illuminate our way. 
              Let us, 
              Go along slowly by ourselves. 
              Mom, 
              I will bear in mind my daddy and you.

              Remember our promise; 
              We will go together in the next life.

May 19, 2008

power of silence

Filed under: Uncategorized

It’s been a year of hubbub for China. But only in those three minutes do I see the real power, grace and hope of this nation:

http://www.cnn.com/video/#/video/world/2008/05/19/china.moment.of.silence.ap

It’s worth anything to uncover this from the noise.

吾国与吾民

May 16, 2008

donation means collection for China’s earthquake for people outside China

Filed under: Uncategorized

online donation links collection:

Silicon Valley Tsinghua Network (SVTN) 硅谷清华联网
http://tsinghuafoundation.org/earthquake08/index.html

red cross
http://www.ifrc.org/
Credit card acceptable. Click on “how to help”–>”online donations” –> “China Earthquake”

red cross US:
http://www.redcross.org/news/in/profiles/IntlprofileChinaEarthquake.html

Chinese Red Cross Foundation (in Chinese)
http://www.crcf.org.cn/gb/jianjie/jkindex.asp (IE only)

Jackie Chan’s China earth quake fund:
http://www.jackiechan.com/charity
choose earth quake fund

Jet Li’s one foundation:
http://www.onefoundation.cn/zhuanti/080512dz/index.htm (chinese):
click the paypal button. but fill the blank beside it first. according to them, the money will eventually be transferred to red cross china’s account.

Mercy Corps
http://www.mercycorps.org/chinaearthquake/
Major credit card acceptable. US dollars only.

A relief action group of young writers in China (including one of my personal favourite hanhan):
PayPal:
account:huangbincn@hotmail.com
username:Bin Huang
info(chinese):
http://www.bullog.cn/blogs/liuyanban/archives/137276.aspx
Some members of them are currently in the affected area, and they will direct the use of the fund at those ground zero sites. I believe that they can handle my money well. but if you don’t know them, you don’t have to:)

btw:
the online donations of red cross china and hk seem to be down.
according to http://www.bullog.cn/blogs/liuyanban/archives/137276.aspx, it takes a week for the paypal payment outside China to be changed into Chinese currency.
and there may be some fraud site out there! so make sure you donate to the right site.

for more details(other donation options, like wire transfer), see:
http://cnreviews.com/uncategorized/chinaearthquakereliefanddonationguide-willupdate_20080514.html
http://www.bullog.cn/blogs/liuyanban/archives/137276.aspx

Any amount will help. Thank you very much!!!! And you can also help by forwarding this post!

May 15, 2008

…………………………

Filed under: Uncategorized

this made the Premier of China cry like crazy:

die too young

April 28, 2008

small brain fuck interpreter in c

Filed under: Uncategorized

//it interprets the brainfuck programming language from stdin. //as you can see, this program itself is also brain fucked. //i found this from here http://esoteric.sange.fi/brainfuck/impl/interp/small.c //very nice

char m[9999],n[99],r=m,p=m+5000,s=n,d,c;main(){for(read(0,r,p) ;c=r++;c-93?c-91?d?0:c-43&~2?c-44?c-46?p+=c&~2^60?0:c%4-1:write(1, p,1):read(2,p,1):(p-=c-44):d++||(++s=r):d&&–d?0:p?r=s:–s);}

April 27, 2008

AI stuff

Filed under: Uncategorized

http://www.generation5.org/jdk/

http://opensource.arc.nasa.gov/project/code/

http://www.advogato.org/article/946.html

http://www.faqs.org/faqs/ai-faq/general/part6/preamble.html

http://www.aaai.org/AITopics/pmwiki/pmwiki.php/AITopics/Software

http://www.aaai.org/AITopics/pmwiki/pmwiki.php/AITopics/Software

http://openai.sourceforge.net/downloads.html

http://www.linux.com/base/ldp/howto/AI-Alife-HOWTO-2.html

http://linuxgazette.net/issue50/silva2.html

http://www.fml.tuebingen.mpg.de/raetsch/projects/shogun

April 11, 2008

this shit is crazy

Filed under: Uncategorized

http://www.eskimo.com/~joelm/tempestintro.html

Get free blog up and running in minutes with Blogsome
Theme designed by Jay of onefinejay.com