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.

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

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