關於我自己

我的相片
New York, New York, United States
我叫江奕賢啦

2004年12月19日

when typeing in msn messenger, I got lot of error message says my message can't reach my partner.
two way to solve it.
1. use webmessenger.msn.com
2. update "Windows" Messenger

2004年12月7日

in Google (in English version)
You can query

145 Myrtle Ave. APT#BSMT. Fort Lee, NJ 07024

and it will give you a link to Yahoo! Maps & MapQuest

You can also query
145 Mertal Ave. APT#BSMT. Fort Lee, NJ 07024
it will correct it to
145 Myrtle Ave. APT#BSMT. Fort Lee, NJ 07024
for you.

mail address correction
http://www.semaphorecorp.com/cgi/form.html
MapQuest supports address correction.

simple mail address parser
http://www.cedar.buffalo.edu/adserv.html

Google 計算機
直接在google打下面的字串查詢 就會自動跳google計算機
(中文需使用中文Google)(括號為註解,不要打)
30C=?F 三十度攝氏度等於多少華氏度
1day=?seconds 一天等於多少秒
1cm=?inch (中文還沒玩出來)
1gal=?l 1加侖等於多少升
1W/1V^2= (電阻)
1S*1V^2= (功率)
一瓦*一秒 (能量)
一磅等於多少公斤

2004年12月4日

use wget as another browser
wget -U "user-agent=Mozilla/2.01Gold > (Win95;I)" http://images.google.com/images?q=men+in+black

use lynx to get html source
lynx -source http://images.google.com/images?q=men+in+black

tested two "text to speech" / "text to voice" service

rhetorical

2004年12月3日

to install tomcat on knoppix, you'll need to install Java JDK first.
but Phoebe found a package for JDK, Tomcat...
you can just use bunzip2 to unzip it, un-tar it, and use it.

ref: http://talk.org/archives/000323.html

you can get aligned sequences for families or superfamilies in scop from here

2004年11月30日

test free audio blogger
http://www.audioblogger.com/

this is an audio post - click to play

Express NewsPictures 還可以用用看
Diiva 好像還不錯 不過在vmware裡面滑鼠不太能控制上下拉
AutoPix 不能跑 有error message
Kuro 收錢了 爛
muper 只能在簡體中文版的windows上跑
8la 跟 threedegrees 概念很像 都是朋友之間一起聽 有點不合我的習慣

2004年11月24日

mysql on knoppix

files in /var/lib/mysql/mysql are read only.
rm *
cp from /Knoppix/....

after copy the owner will become root.
chown mysql *

then, you can
GRANT ALL PRIVILEGES ON *.* TO mark@localhost
GRANT ALL PRIVILEGES ON *.* TO mark@Knoppix

2004年11月22日

How to use Oracle? compare to mysql.
ref: http://www.weiw.com/article/list.asp?id=605

select * from tab;
select * from cat;

How to install Oracle 8i client on XP?

(Windows XP Pro or Windows 2000 with Pentium 4 only)

Copy all the files/folders from the oracle 8i CD on to a folder on your c: drive.
Do NOT name this folder Oracle.
Change the name of the symcjit.dll file.
For Windows XP: Change from symcjit.dll to symcjit_disc.dll
For Windows 2000: Change the symcjit.dll to symcjit.dll.ori
The path to this file is:
C:\stage\components\oracle.swd.jre\1.1.7.30\1\Data Files\Expanded\jre\win32\bin
Now go back to your main c: drive directory and run the setup file.

Alternatively the 1507768 patch reference on Metalink will do the trick.
also, see http://www.intel.com/support/processors/pentium4/sb/cs-001674-prd483.htm

ref:

----------------------------

after installed the Oracle 8i client, you can use this command in command line to get into Oracle.

SQLPLUS SYSTEM@(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=binfs.umdnj.edu)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=binfs">SYSTEM/binfs4lab@(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=binfs.umdnj.edu)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=binfs)))

2004年11月21日

Kister gave me this pattern
[IMFV]-x(3)-E-x(7,9)-[LVI]-x(2)-[ILVF]-x(8,10)-[VILA]-x-[YF]-x-[LVI]-x-G-x(4,9)-[IVL]-F-x-[IV]-x(3)-[TS]-G-x-[LVIM]-x(5)-[LMI]-x(7)-[YF]-x-L

I got this pattern using PRATT
G-x-[ILMV]-x(5)-[ILM]-D-R-E-x(15)-[AGT]-x(4)-[DEGNS]-[PQST]
with -PL 40 -PX 30 -FN 3 -FL 5 -FP 100

when I use 3motif to see the proteins matched these patterns,
I found my pattern is very interesting!
it target four points, two for sandwich's interlock, two for active sites.

Also, I found Shibata's idea is also interesting when I check interlocks with 3motif
1tf4: Y-x-F-x(10)-I-x-V-x(22)-V-x-I-x(20)-F-x-I

2004年11月19日

Chime tutorial
http://www.clunet.edu/BioDev/omm/scripting/molmast.htm

I can't delete a file on my windows' desktop.
I've tried several ways, use DOS filename, use del \\?\C:\..., change name, etc. DIDN'T WORK!!!
finally, I delete it using a software, JRTS Delete FXP Files to delete it.

2004年11月17日

use PRATT or advPRATT to generate pattern
use ScanProsite or 3motif to scan that pattern in Swiss-Prot, PDB, etc.

[EQ]-x-L-Y-[DQSTE]-x(3,12)-[LIV]-[ST]-Y-x-R-[ST]-[DEQS]
[eq].ly[dqste]{0,1}.{3,12}[liv][st]y.r[st][deqs]

2004年11月10日

try signed and encrypt email in outlook express

I got free Personal Certificates from

https://www.thawte.com/cgi/enroll/personal/step1.exe
AND
http://certs.ipsca.com/CSB1Free/

first one not working.
second works fine.

umdnj sig works but enc not working.
yahoo, gmail, hotmail not working.

2004年11月7日

Usually people use firewall to block the ports to prevent hackers.
But I think we can try an opposite way.

在武俠小說裡 真正厲害的人 你是看不出他在防守的

1. Imaging that when you scan a computer's ports, every ports from 1 to 9999999... are all opened.

2. When you want to test each port, you'll fire the alarm.

2004年10月23日

2004年10月6日

Biological graph layout and display
http://home.comcast.net/~natgoodman/Biological_Graph_Software.htm

for piping the output of one program in unix to another program's command line, (instead of input)
ls only files contents "test", (for checking the size of the file)
ls -al `grep -L test *`
or
str=`grep -L test *`
ls $str

2004年9月29日

maybe we can use http://i.moltalk.org/
instead of CSU
cause, sometimes CSU is not working.

Also, Moltalk will be quicker and more details.

choose "Find interface between two chains of a structure" in http://i.moltalk.org/
enter the pdb code,
when select chains, just select the same chain twice.

Done.

use
http://balabio.dcs.gla.ac.uk/tops/
to generate
http://www3.ebi.ac.uk/tops/ExplainDetailed.html
and you can easily compare things like

1bia

1gh4

2004年9月15日

For calculating Hydrogen Bond

HBPLUS, which is distributed with LIGPLOT: http://www.biochem.ucl.ac.uk/bsm/ligplot/ligplot.html

There's also HBOND, which comes with the JOY package:
http://www-cryst.bioc.cam.ac.uk/~joy/

they are free, but they all need Academic License which I can't apply individually, has to apply by UMDNJ.

for example, I want to know the H-Bonds in protein 1a2p, I go to

http://bioportal.weizmann.ac.il/oca-bin/csu?PDB_ID=1a2p

I found there's four sheet strands for each chain.
I click on "Strand 1" on "A sheet" (residue 96-99)
I'll go to this page
from this page, if there's a "+" sign under HB colume, I know there's a H-Bond.

2004年8月15日

Fixed the input problem (sometimes it's in Chinese input mode, but don't let me input Chinese)
it's because I hit the Shift key, it changes to temporary English mode, but shows it's in Chinese mode. (If you show the input bar in system bar, you'll find the difference.)

web folder can be easily setup if you use IIS server, just create a folder and done.
But, because my tablet use FAT32 format, I can't set permission for files.

2004年8月3日

use
http://eutils.ncbi.nlm.nih.gov/entrez/eutils/soap/eutils.wsdl
to check pubmed data

ex:
Feasibility of simplifying balloon mitral valvuloplasty by obviating left-sided cardiac catheterization using on-line guidance with transesophageal echocardiography.
PMID: 12796174

1. use run_eSearch
db=pubmed
term=Feasibility+of+simplifying+balloon+mitral+valvuloplasty
field=titl
you'll get PMID: 12796174
http://eutils.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi?db=pubmed&term=Feasibility+of+simplifying+balloon+mitral+valvuloplasty&field=titl

2.use run_eSummary
db=pubmedid=12796174
you'll get:
Feasibility of simplifying balloon mitral valvuloplasty by obviating left-sided cardiac catheterization using on-line guidance with transesophageal echocardiography.
http://eutils.ncbi.nlm.nih.gov/entrez/eutils/esummary.fcgi?db=pubmed&id=12796174&retmode=xml

2004年7月22日

Use this to calculate ANOVA
http://lgsun.grc.nia.nih.gov/ANOVA/bin/login.cgi
http://bioinformatics.uams.edu/page/

Use this to translate gene identifier
http://discover.nci.nih.gov/matchminer/html/MatchMinerInteractiveLookup.jsp

Use EXCEL to add color to updowngene.txt and use this to get it in pathway (colored)
http://www.genome.ad.jp/kegg-bin/mk_point_multi_html

I'm thinking about use pathway data and microarray data to form an automatic functional genetic discoverer. (use the same algorithm I do for Dr. Gu)


2004年7月13日

for researcher M.S.Chang
these tools might help.

ex:
String http://string.embl.de/
input sequence, get "predict functional associations proteins/genes"
supported by microarray, textmining, Co-occurrence, etc.

IntAct http://www.ebi.ac.uk/intact/index.html
input gene, it will give you proteins interact with the given gene.
supported by Experiments.

InterDom
input sequence, it will give you putative domain interactions
for example, it will give you some domains which has complexes with domain in given sequence (derived from PDB), or has protein interactions with domain in given sequence (derived from DIP).

after visit Mackay memorial hospital (in Taiwan)
I done some research on Database of Interacting Proteins (DIP)
ex: I want to know what proteins interact with P53
enter P53 in NodeID or Name field in this page
you will get DIP nodes for p53 in human and mouse
(DIP:368N, DIP:369N, DIP:5978N, DIP:24202N, etc)
in each DIP node, you can click on the "graph" link at top right corner
you'll see what other proteins interact with P53.

it also provides links to related information in
PDB, NCBI, Prosite, Smart, InterPro databases.

another one similar to this

2004年6月22日

Knoppix Variations 50mb version, USB version, science version, security version, etc.
SuperCluster Cluster systems, Science softwares.

2004年6月14日

2004年6月9日

Dr. Gu got black screen when using VNC to connect to XP.
Here's the answer: http://faq.gotomyvnc.com/fom-serve/cache/76.html
Might because of "Fast User Switching"

2004年5月13日

background for cell phone
http://home.wanadoo.nl/mijnwww/top10.html

for my cell phone, just give it the url to that gif file,
then select "save", done.

but can't distribute to others.

use this to find a free web to sms provider
http://www.textmefree.com/US_Only/

2004年5月12日

2004年5月3日

powerpoint slides talking about using Logic Circuits to implement AND, XOR Gates, etc. and also MUL, ADD, PLA...
http://cs.colgate.edu/faculty/nevison/cs201web/lectureNotes/transistorlogic.ppt

you can use "Simcir the circuit simulator" or xLogicCircuits to play with gates.
you can try to implement adder or Flip-Flop as follow: http://www.brunel.ac.uk/~castjjg/hndcfund/material/logic/part5.htm

scheme online interpreter
http://jscheme.sourceforge.net/jscheme/src/jlib/demo/Demorunner.html
try this:


(define (count lis ele)
(cond((null? lis) 0)
((eq? (car lis) ele) (+ 1 (count (cdr lis) ele)))
(else (count (cdr lis) ele)))
)
)

(count '(a b c d a a) 'a)

2004年4月27日

DVD authoring tools (sorry I use Chinese)

我手上用的是Sonic MyDVD和Adobe Premiere Pro
另外兩個 也蠻有名的 給你參考
這幾套其實都不需要經過NERO 都可以直接燒進DVD

Sonic MyDVD
我的DVD附的是這一套 蠻方便的 功能也不錯 隨便做做看起來都蠻炫的
如果不需要編輯 通常我會用這套

Adobe Premiere Pro
這...你應該跟我一樣還蠻習慣adobe的東西吧 :p
這套專門剪接用的 剪接完 可以直接燒錄成DVD
不過 對檔案格式的支援比較遜一點 可先用TMPGEnc(不是上面的DVD Author, 名字只叫TMPGEnc)轉
除非需要複雜的編輯工作 要不然我不太想找罪受
用這套可能事前的轉檔工作就快要我的命了

TMPGEnc DVD Author
這是轉檔界最有名的啦 支援格式最多 轉檔效率最好
現在他出了DVD燒路軟體
轉出來的DVD檔案最小 而且 還可以直接編輯vob檔 別的好像都沒有支援 得先轉回avi or mpg之類的 才能編輯

DVD威力製片
這是國內比較有名的吧 我是沒用過 不過 應該比較大眾化 比較好操作吧

2004年4月22日

Pentium 4's temperature

P4 chips come with a clever step down facility which allows the CPU to slow down when it gets hot. The CPU will run slower the hotter it gets. The theory is that the CPU will never burn out even without a heatsink/fan. It will just run run at an unbelievably slow pace. ref

I test mine by using MBM5, idle 44c full 57c.

(Full: run Hot CPU Tester Pro 4 Lite)

for helen's pc

pc keep rebooting might because this:
http://www.sssun.idv.tw/abit/

software to test pc (burn in test)
http://www.upgradeware.com/tw/support/tools.htm
http://www.7byte.com/index.php?page=download

http://www.benchmarkhq.ru/english.html?/be_cpu.html
http://www.softking.com.tw/soft/review_eng.asp?fid2=113

http://www.1bits.com/doc/200207/review63.shtml

reverse engineering debugger
trw, trw2000 (from China) and others
softice (pretty old and famous, "famous" is not good in this area)
IDA the screen shot is very interesting.

in declarative language (like:prolog)
you can give it some rules, and it can calculate results based on these rules.
ex:
give it
0! = 1
n! = n * (n-1)!
asking
4!, it will give you 4!=4*3!=4*3*2!...=result.

give it
A=>B
B=>C
then it'll tell you A=>C

tutorial in chinese
Prolog
how it works

2004年4月15日

2004年4月7日

when posting source code, which might conflict with html code,
you can use this tool to encode it first.

this script will get marshall's addresses in NJ, and can be easily import to Street and Trips .NET.

$ans=`wget -O- "http://www.marshallsonline.com/search_results_state.aspx?state=nj" | grep "3a56a5"`;
@ans2=split(/<td/,$ans);
foreach $ans2(@ans2){
if ($ans2=~/left/){
($f1,$f2,$f3,$f4,$f5)=split(/<br>/,$ans2);
$f1=~s/^.*<.*>//g;
if ($f4=~/Phone/){
$f3=~s/,/\t/g;
$f3=~s/([\w]) ([\d])/$1\t$2/;
printf("$f2\t$f3\n");
}else{
$f2=~s/,/\t/g;
$f2=~s/([\w]) ([\d])/$1\t$2/;
printf("$f1\t$f2\n");
}
}
}

2004年4月6日

google search via web services
my license key is in ysc212@cs.nyu.edu mailbox
wsdl
tutorial and source code using aspx
but I still need UTF-8 encoding example.

2004年3月24日

Database contents information about plants which has drug activity. Searchable.
Phytochemical and Ethnobotanical Databases
Example:
You can search plants which has anticancer activity.

2004年3月7日

assume we got weather info in xml format from here

then, we can use this xsl to display it.


<?xml version='1.0' encoding="Big5" ?>

<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">

<xsl:template match="/">

<HTML>

<HEAD><TITLE>天氣預報</TITLE></HEAD>

<BODY>

<xsl:apply-templates select="ExtendedWeatherInfo"/>

</BODY>

</HTML>

</xsl:template>

<xsl:template match="ExtendedWeatherInfo">

<TABLE border="1" cellspacing="0">

<xsl:apply-templates select="Info"/>

</TABLE>

</xsl:template>

<xsl:template match="Info">

<TR>

<TD><xsl:apply-templates select="Location"/></TD>

<TD><xsl:apply-templates select="IconIndex"/></TD>

<TD><xsl:apply-templates select="Temprature"/></TD>

<TD><xsl:apply-templates select="Forecast"/>

<xsl:eval language="VBScript">Celsius(this)</xsl:eval>

<xsl:script language="VBScript"><![CDATA[

   Function Celsius(fDegrees)

      Celsius = (fDegrees - 32) * 5 / 9

   End Function

   ]]>

</xsl:script>

</TD>

</TR>

</xsl:template>

<xsl:template match="Location"><xsl:value-of/></xsl:template>

<xsl:template match="IconIndex">

<xsl:choose>

<xsl:when test=".[value() $gt$ 30]">晴</xsl:when>

<xsl:when test=".[value() $gt$ 20]">陰</xsl:when>

<xsl:when test=".[value() $gt$ 10]">雨</xsl:when>

<xsl:when test=".[value() $gt$ 5]">雪</xsl:when>

<xsl:otherwise>去死啦</xsl:otherwise>

</xsl:choose>

</xsl:template>

<xsl:template match="Temprature"><xsl:value-of/></xsl:template>

<xsl:template match="Forecast"><xsl:value-of/></xsl:template>

</xsl:stylesheet>

HTML to combine RSS and XSL


<HTML>

  <HEAD>

    <TITLE>Simple demo of Microsoft XSL Processor</TITLE>

  </HEAD>

  <XML id="source1" src="http://tw.news.yahoo.com/rss/technology"></XML>

  <XML id="source2" src="http://news.com.com/2547-1_3-0-20.xml"></XML>

  <XML id="source3" src="http://www.nws.noaa.gov/alerts/ny.rss"></XML>



  <XML id="style" src="C:\Documents and Settings\Owner\Desktop\technology.xsl"></XML>

 

  <SCRIPT FOR="window" EVENT="onload">

    tech.innerHTML = source1.transformNode(style.XMLDocument);

    cnet.innerHTML = source2.transformNode(style.XMLDocument);

    weather.innerHTML = source3.transformNode(style.XMLDocument);

  </SCRIPT>

  <BODY>

    <P STYLE="font-size:10pt; font-family:Verdana; color:gray">

      <B>This demo shows the use of data islands for loading XML source and

      XSL style sheets and inserting the transformed result into the Web page.</B>

    </P>

    <DIV id="tech"></DIV>

    <DIV id="cnet"></DIV>

    <DIV id="weather"></DIV>

  </BODY>

</HTML>


XSL for RSS


<?xml version="1.0" encoding="UTF-8"?>

<xsl:stylesheet version="1.0"

   xmlns:xsl="http://www.w3.org/1999/XSL/Transform"

   exclude-result-prefixes="xsl">

<xsl:output method="xml" omit-xml-declaration="yes" indent="yes"/>



<xsl:template match="/">

  <div>

  <xsl:apply-templates select="rss/channel"/>

  </div>

</xsl:template>



<xsl:template match="rss/channel">

  <xsl:variable name="link" select="link"/>

  <xsl:variable name="description" select="description"/>

  <xsl:variable name="image" select="image/url"/>

  <xsl:if test="$image">

    <img src="{$image}" style="float: right; margin: 2px;" />

  </xsl:if>

  <h3>

    <a href="{$link}" title="{$description}"><xsl:value-of select="title" /></a>

  </h3>

  <hr/>

  <ul><xsl:apply-templates select="item"/></ul>

</xsl:template>



<xsl:template match="item">

  <xsl:variable name="item_link" select="link"/>

  <xsl:variable name="item_title" select="description"/>

  <li>

    <a href="{$item_link}" title="{$item_title}"><xsl:value-of select="title"/></a>

  </li>

</xsl:template>



</xsl:stylesheet>

2004年3月4日

I'd like to use "javascript wysiwyg html editor" to implement my diary.
TextAreaPro V1.0 Demo
Demo Supporting floating images, text, tables; also support sounds, video; save to local, server.

for creating thumbnails, I think I'll use ASP.NET to do it.
How To: Creating Thumbnail Images
Image.GetThumbnailImage on microsoft

public class MakeThumbnail : System.Web.UI.Page
{
private void Page_Load(object sender, System.EventArgs e)
{
string file = Request.QueryString["file"];
System.Drawing.Image image = System.Drawing.Image.FromFile(Server.MapPath(file));
System.Drawing.Image thumbnailImage = image.GetThumbnailImage(64, 64, new System.Drawing.Image.GetThumbnailImageAbort(ThumbnailCallback), IntPtr.Zero);
MemoryStream imageStream = new MemoryStream();
thumbnailImage.Save(imageStream, System.Drawing.Imaging.ImageFormat.Jpeg);
byte[] imageContent = new Byte[imageStream.Length];
imageStream.Position = 0;
imageStream.Read(imageContent, 0, (int)imageStream.Length);
Response.ContentType = "image/jpeg";
Response.BinaryWrite(imageContent);
}
public bool ThumbnailCallback()
{
return true;
}
// ... non-applicable infrastructure code removed for clarity ...
}

2004年3月3日

Movable Type + Gallery might be able to make my photo album diary
examples' here
just need to combine functions in those websites.

2004年2月26日

to create XSL and XQuery visually (wysiwyg)
I finally find the tool: Sonic Stylus Studio
with very very good Video Demo

2004年2月21日

there's an online demo for Word Identification for Mandarin Chinese Sentences
this one sometime not working

2004年2月6日

2004年1月31日

Done!
Finally, it works.
I followed this tutorial and find the problem.
I need to use wsdl to generate the cs file first,
then use csc to compile the cs file to dll file,
AND, for the example in tutorial, they HAVE TO BE in bin/ directory! (OR, it will not work!)


Three importent lines:

wsdl.exe /l:CS /n:WService /out:bin/GetSuppliers.cs http://localhost/suppliers.asmx?WSDL

csc /t:library /out:bin\GetSuppliers.dll bin\GetSuppliers.cs /reference:System.dll,System.Data.dll,System.Web.dll, System.Web.Services.dll,System.XML.dll /optimize

< %@ Import Namespace="WService" % > <=no space between "<" and "%"

2004年1月30日

using ASP .NET to call web services
you'll need aspx, wsdl, cs (two files and one link)
example

using link of wsdl and command "wsdl" to generate the cs file,
use aspx to import that cs file and call the function in it.

BUT, I can't make it run YET!

try microsoft .net for binf7560

test on windows 2000
when trying to install .net sdk download
it want me to install "Microsoft Data Access Components" first. download

I think shangker will like this tutorial

I've tried following example.

------------ save this to http://192.168.111.128/DotNet/test.asmx--------------
<%@ WebService Language="c#" Class="FirstWebService" %>
using System;
using System.Web;
using System.Web.Services;
public class FirstWebService {
[WebMethod]
public string HelloWorld(string lcName) {
return "Hello World, " + lcName;
}
[WebMethod]
public decimal AddNumbers(decimal lnNumber1, decimal lnNumber2) {
return lnNumber1 + lnNumber2;
}
/*
[WebMethod]
public DateTime GetServerTime() {
return DateTime.Now;
} */
}
--------------end of test.asmx------------------
then connect to
http://192.168.111.128/DotNet/test.asmx
you can see things mentioned in this tutorial
if you want WSDL, you can connect to: http://192.168.111.128/DotNet/test.asmx?wsdl

this is the easist way to create web services I've ever seen.

this tool can help you to test it.