[ Log On ]

IPCalculator v0.2发布(附源代码)

作者:shawn 发表于:2006年09月14日 -- 5247天7小时44分钟前 | 分类: 技术原创 | Comments: 3 | Views: 8428

这个版本与之前那个版本没有多大的出入,只是把code comment了一下,增加了输入invalid input的时候的处理方法。还有点击右下角“Made by: Shawn Jiang”的时候会自动打开我的blog。呵呵。
给出截图,变化不大。。。


[separator]
这是可执行的jar file。(双击即可运行,详细使用说明见readme.doc)
Click to download: 1158226786_0.rar
使用说明 下载(in english)
Click to download: readme.doc
source code下载:(注:源代码仅会员可以下载,你可以免费注册为会员)
Click to download: ipcalculator.rar

旧站发布

作者:shawn 发表于:2006年09月14日 -- 5247天8小时16分钟前 | 分类: 生活杂记 | Comments: 0 | Views: 3653

发几个以前的旧站,都是曾经在http://starcub.51.net上发布过的。其中有一个现在还在用。有兴趣的可以看看。ps:链接懒得改了,所以有些链接可能已经无效。。。

请点击进入:
[url=http://www.shawnjiang.com/old_site/v02]old_site v02[/url]
[url=http://www.shawnjiang.com/old_site/starcub]old_site StarCub[/url]
[url=http://www.shawnjiang.com/old_site/current]old_site current_using[/url]

流星掉到新西兰。。。

作者:shawn 发表于:2006年09月12日 -- 5249天4小时18分钟前 | 分类: 生活杂记 | Comments: 4 | Views: 3995

今天下午翘课正在家上网的时候,突然听到一声巨响,真的是巨响哦。。。然后持续了大约5,6秒的样子就没了。开始以为是什么东西爆炸,因为在新西兰这个平静的地方出现巨响是很罕见的。于是我跟乌龟以为是本拉登跑到新西兰闹事呢。。。后来也没怎么想就去上班了。。。
刚才回来听乌龟说今天下午的巨响是一个流星,于是上网查了新闻看了一下。
[separator]
发张照片和几则新闻。。。
   

这是在xtra上看到的:
[quote]
[b]Meteorite Wakes Up Christchurch[/b]
A massive bang which rattled Christchurch just before three o'clock this afternoon seems to have been caused by a meteorite.

Several witnesses report seeing the meteorite streak across the sky in Hinds, while Christchurch police say they believe it was space junk re-entering the atmosphere.

There have been no reports so far of damage, though some witnesses told our newsroom it shook their entire house and sent some of them running outside. Many Christchurch residents say the bang was so loud they thought it was a plane blowing up or an earthquake.

Resident superintendent Alan Gilmore at the Mount John Observatory in Christchurch says it seems like the kind of noise a meteorite would make.

He says any object from space which penetrates lower than about 60km above the ground then the sonic boom it causes would get down to the ground.

Professor Jack Baggeley of Canterbury University runs a meteor radar. He says these kind of things are fairly common, and one of them hits the land area of New Zealand about once a year.[/quote]
这是BBC的新闻:
[quote]
[b]Sonic boom startles N Zealanders [/b]
Emergency services in New Zealand were swamped with calls after a sonic boom, probably caused by a meteor, shook the south of the country.
Residents in Christchurch on the South Island said that the huge noise rattled their houses and made the ground shake.

Some witnesses described a bright streak of light in the sky.

The likely cause was a "very low" travelling meteor, a meteorological official said.

"I saw the end of it," Matthew Miller, who was working south of Christchurch, told local radio. "It was quite big and bright and it was just shooting across the sky, then the light went out."

The boom shook buildings and windows across central parts of the South Island.

"It started off with a little boom then a real massive boom. And I mean massive - like the daddy of all booms," Christchurch resident Kevin Graham told the New Zealand Press Association.

"I ran outside because I thought my place was going to collapse as well," he said.

A spokesman for Christchurch emergency services said they were flooded with calls just after the boom, which occurred at 1453 local time (0253 GMT) on Tuesday.

Alan Gilmore of the Mt John Observatory said the meteor was probably between the size of a baseball and a basketball.

The boom would have been caused either by the meteor moving faster than the speed of sound or it burning up in the earth's atmosphere.

There are no reports yet of anyone finding the meteor. [/quote]这是在sfuff上看到的:
[quote]
[b]Massive sonic boom from meteor[/b]
A massive sonic boom rent the skies above Canterbury today as a meteor sped to its fiery end – but if, and where, it fell remains a mystery.

Scientists said the boom was heard as far afield as Wellington, and sightings of a bright speeding light, then cloud of smoke as the meteor apparently burst into a fireball, were reported all over Christchurch.

One astronomer said it was likely the meteor completely disintegrated when it burst into flames, and debris from the alien visitor was unlikely to be found.

The meteor was detected by instruments used to measure earthquakes at two Canterbury recording sites.

Kevin Graham was working in his garage workshop in Rolleston, 22km southwest of Christchurch, when he heard the boom.

His first thought was it was a September 11 anniversary attack, he said.

"I don't frighten very easily but I was just about shitting myself," he said.

He spoke by phone to his wife in the Christchurch suburb of Addington who had run outside because she thought the Addington Raceway stand was going to collapse.

"I ran outside because I thought my place was going to collapse as well," Mr Graham said.

He said the sound shook the garage and he could feel shock waves in the air.

"It started off with a little boom then a real massive boom. And I mean massive – like the daddy of all booms," he said.

"I was wondering what happened and I thought `oh, September 12', because we're a day ahead of the States.

Emergency services were inundated with calls from the public about the noise.

Christchurch Fire Communications received its first calls from the public started at 2.53pm today, with people reporting windows rattling and the air "shaking".

Police communications fielded over 100 calls in quick time.

Hanmer Springs police officer Senior Constable Chris Hughey likened the meteor to Haley's Comet, which he saw when it last passed near Earth in 1986.

"All it looked like was a vapour trail from a plane coming in at huge altitude," he said.

"It was a crystal clear day here in Hanmer and it appeared to have a red ball or something at the front. Then it split into about three and just disappeared."

Mr Hughey said he did not hear the loud sonic boom.

He had seen a few small meteors "coming in here and there" over the years but nothing like today's one.

"Never coming in on that angle.

"It just disintegrated at great altitude. It was moving, too. I don't know what speed they come in at, but it was going."

Resident superintendent of the University of Canterbury Mt John Observatory Alan Gilmore said the reports seemed to confirm the meteor burst into a "terminal fireball" while travelling over Canterbury, possibly as low as 60km above the ground.

The meteor would have broken through the atmosphere at a rate of between 10 and 20 kilometres per second.

The thicker air closer to earth could have slowed it down to about 40,000kph, and it was this rapid deceleration that would have caused it to break, Mr Gilmore said.

"The stress on the rock is so intense, that it just goes flash and breaks up into a ball of smoke or fire."

A couple of sightings had put the meteor landing in fields but Mr Gilmore said these seemed to have been discounted.

He could only make a "wild guess" at what size the meteor had been, but said he would be very surprised if it had been larger than a basketball.

It was an exciting, if not totally unusual event.

Nine meteorites had been recovered in New Zealand – the most recent being a four billion-year-old 1.3 kg rock which hit the home of Phil and Brenda Archer in Auckland on June 12, 2004.

The rock travelled up to 700 million kilometres from the asteroid belt between Mars and Jupiter before punching through the couple's roof.[/quote]

改了模版,换了输入法。

作者:shawn 发表于:2006年09月12日 -- 5249天13小时7分钟前 | 分类: 生活杂记 | Comments: 6 | Views: 4631

今天跷课回家没事干,就改了模版。个人感觉不错,做了logo,并且用ps改了一些细节的地方。如果大家不喜欢这个模版的话,可以用右边侧栏的“选择模版”选择自己喜欢的样式。

刚才上sohu新闻,看到广告说搜狗拼音出正式版了,其实一直对sohu没什么好印象。除了偶尔看看他的新闻而已。可是这个搜狗拼音让我注意了很久,一直打算下下来用用,因为之前一直是测试版,就没有用。今天既然看到了正式版发布,当然要试试看了。
在搜狗输入法的主页上,写着“无插件,无广告”几个字,对于目前国内N多免费软件捆绑乱七八糟的插件甚至病毒的现状来说,就凭这几个字,相信都会有不少人愿意下载尝试试用。
下载装好以后使用起来还真的不赖,可以说是目前为止我用过的最好用的输入法了。希望搜狗能再接再厉,开发出更好的东东。。。
给出官方地址:http://www.sogou.com/pinyin/ 有兴趣的可以去看看。。。
ps:通过这件事,对搜狐的印象也变好了许多,哈哈……

我的女朋友

[color=#FFA500]谨以此文献给我跟乌龟在一起即将2年的每一天。。。[/color]
[color=#FF0000]请注意,文章含有大量图片,如果你网速较慢,请慎入……[/color]
[separator]
[img]http://photocdn.sohu.com/20050513/Img225548121.jpg[/img]

[img]http://photocdn.sohu.com/20050513/Img225548122.jpg[/img]

[img]http://photocdn.sohu.com/20050513/Img225548124.jpg[/img]

[img]http://photocdn.sohu.com/20050513/Img225548125.jpg[/img]

[img]http://photocdn.sohu.com/20050513/Img225548126.jpg[/img]

[img]http://photocdn.sohu.com/20050513/Img225548127.jpg[/img]

[img]http://photocdn.sohu.com/20050513/Img225548128.jpg[/img]

[img]http://photocdn.sohu.com/20050513/Img225548129.jpg[/img]

[img]http://photocdn.sohu.com/20050513/Img225548130.jpg[/img]

[img]http://photocdn.sohu.com/20050513/Img225548131.jpg[/img]

[img]http://photocdn.sohu.com/20050513/Img225548132.jpg[/img]

[img]http://photocdn.sohu.com/20050513/Img225548133.jpg[/img]

[img]http://photocdn.sohu.com/20050513/Img225548134.jpg[/img]

[img]http://photocdn.sohu.com/20050513/Img225548135.jpg[/img]

[img]http://photocdn.sohu.com/20050513/Img225548136.jpg[/img]

[img]http://photocdn.sohu.com/20050513/Img225548137.jpg[/img]

[img]http://photocdn.sohu.com/20050513/Img225548138.jpg[/img]

[img]http://photocdn.sohu.com/20050513/Img225548139.jpg[/img]

[img]http://photocdn.sohu.com/20050513/Img225548140.jpg[/img]

[img]http://photocdn.sohu.com/20050513/Img225548141.jpg[/img]

[img]http://photocdn.sohu.com/20050513/Img225548142.jpg[/img]

[img]http://photocdn.sohu.com/20050513/Img225548143.jpg[/img]

[img]http://photocdn.sohu.com/20050513/Img225548144.jpg[/img]

[img]http://photocdn.sohu.com/20050513/Img225548145.jpg[/img]

[img]http://photocdn.sohu.com/20050513/Img225548146.jpg[/img]

[img]http://photocdn.sohu.com/20050513/Img225548147.jpg[/img]

[img]http://photocdn.sohu.com/20050513/Img225548148.jpg[/img]

[img]http://photocdn.sohu.com/20050513/Img225548149.jpg[/img]

[img]http://photocdn.sohu.com/20050513/Img225548150.jpg[/img]

[img]http://photocdn.sohu.com/20050513/Img225548151.jpg[/img]

[img]http://photocdn.sohu.com/20050513/Img225548152.jpg[/img]

[img]http://photocdn.sohu.com/20050513/Img225548153.jpg[/img]

[img]http://photocdn.sohu.com/20050513/Img225548154.jpg[/img]

[img]http://photocdn.sohu.com/20050513/Img225548155.jpg[/img]

[img]http://photocdn.sohu.com/20050513/Img225548158.jpg[/img]

[img]http://photocdn.sohu.com/20050513/Img225548160.jpg[/img]

[img]http://photocdn.sohu.com/20050513/Img225548161.jpg[/img]

[img]http://photocdn.sohu.com/20050513/Img225548162.jpg[/img]

[img]http://photocdn.sohu.com/20050513/Img225548163.jpg[/img]

[img]http://photocdn.sohu.com/20050513/Img225548165.jpg[/img]

[img]http://photocdn.sohu.com/20050513/Img225548166.jpg[/img]

100%测出你的年龄[周岁]

作者:shawn 发表于:2006年09月09日 -- 5252天2小时7分钟前 | 分类: 杂七杂八 | Comments: 4 | Views: 6097

一个测试岁数的数字游戏,有兴趣的可以试试看。。。
[separator]
请一面读一面做:

(1)首先,挑一个数字(1——7)表示每个星期想出去走走的次数;

(2)把这个数字乘上2;

(3)然后加上5;

(4)再乘以50;

(5)如果你今年的生日已经过了,把得到的数目加上1756,如果还没过,加1755;

(6)最后一个步骤,用这个数目减去你出生的那一年。

现在你会有一个三位数的数字。第一个数是你一开始选择的数目(也就是每个星期你希望出去走走的次数 ),接下来的两个数字就是你的年龄

乱七八糟的一天

作者:shawn 发表于:2006年09月08日 -- 5253天1小时36分钟前 | 分类: 生活杂记 | Comments: 4 | Views: 6004

这个星期一节课都没有上,等于我给自己放了整整3个星期的假,都是为了那个该死的227assignment,写的人要死要活的,其实难到不难,就是很烦,搞不懂它究竟要你求什么。由于lecturer是一个波兰人,自己的英语也不是很好,表达在assignment上去要求一些有技术的话就更难,所以可想而知…… 今天下午5点due,我4点半终于差不多写完drop到box里了。感觉一身轻松,下来就剩231的assignment了,下星期一due,这个进展不错。
今天本来是没有shift的,由于cindy要考试,所以帮他做。没想到却做了蠢事……
开始的几个小时都很好,并且感觉时间过的还蛮快的,到了10点多,我clean第一个grill,基本上已经clean完了,grill附带的一个小门自动打开了,于是我就顺手把它关上了。没想到突然之间2个grill(4:1和10:1的)一起打开,并且grill上面的灭火装置启动,在喷水与某种化学液体。因为grill的温度很高(大概有200多度),过了4,5分钟的样子,2个grill已经被一层白色覆盖,应该是那个化学液体变成了固态,呵呵。Simon急了,因为没有2个grill就意味着不能做beef的product,引用Rochealle后来说的一句话就是“McDonalds can`t sell beef products, that`s gonna be ridiculous”。由于grill上面覆盖了一层化学东东,为了customers的安全着想,我们决定只卖fish和chicken的东西。事情发生后Simon和James都尝试着去重新打开因为安全保护系统而被自动关闭的grill,似乎都没有成功。于是Simon打电话叫来了Rochealle(Merivale McD 2把手),Rochealle搞了会也没搞定,打电话叫来了professional,后来professional竟然搞了半个多小时也是无功而返,Rochealle不得以叫来了大老板(investor),老板似乎也没有头绪,看到他来了以后一直在打电话,直到我们close完了他一个人还在restaurant等什么人……结果我们由于grill的原因不得已提前1个小时关门。不知道大家是恨我还是感谢我,我自己挺感谢自己的,提前了1个小时下班。
ps:由于工党连续执政多年,新西兰的法律保护工人而不是企业家…… [emot]grin[/emot]

SDK、JDK、JRE和JVM的关系总结

作者:shawn 发表于:2006年09月05日 -- 5256天4小时44分钟前 | 分类: 计算机 | Comments: 4 | Views: 6985

前几天用java写assignment的时候才发现原来自己对JRE和JVM的关系也搞不清。于是google了一下,送给需要的朋友:
摘自:http://blog.tanggaowei.com/2006/07/sdkjdkjrejvm.html  (我第一次看到的地方)
[separator]
SDK(Software Develop Kit,软件开发工具包),用于帮助开发人员的提高工作效率。各种不同类型的软件开发,都可以有自己的SDK。Windows有Windows SDK,DirectX 有 DirectX 9 SDK,.NET开发也有Microsoft .NET Framework SDK。JAVA开发也不含糊,也有自己的Java SDK。

  Java SDK最早叫Java Software Develop Kit,后来改名为JDK,即Java Develop Kit。

  JDK作为Java开发工具包,主要用于构建在Java平台上运行的应用程序、Applet 和组件等。

  JRE(Java Runtime Environment,Java运行环境),也就是Java平台。所有的Java程序都要在JRE下才能运行。JDK的工具也是Java程序,也需要JRE才能运行。为了保持JDK的独立性和完整性,在JDK的安装过程中,JRE也是安装的一部分。所以,在JDK的安装目录下有一个名为jre的目录,用于存放JRE文件。

  JVM(Java Virtual Machine,Java虚拟机)是JRE的一部分。它是一个虚构出来的计算机,是通过在实际的计算机上仿真模拟各种计算机功能来实现的。JVM有自己完善的硬件架构,如处理器、堆栈、寄存器等,还具有相应的指令系统。Java语言最重要的特点就是跨平台运行。使用JVM就是为了支持与操作系统无关,实现跨平台。

  下图清晰地展示了JDK(Java SDK)、JRE和JVM之间的关系:

没来写blog的日子

作者:shawn 发表于:2006年09月04日 -- 5257天4小时12分钟前 | 分类: 生活杂记 | Comments: 3 | Views: 4117

有段时间没来了,主要原因是“懒”,借口是“忙”。不过这个借口却一点也不牵强,真的可以作为借口。最近确实比较忙,除了今天刚刚考完的cosc231 test以外,这个周末的cosc227 assignment也要due了。打工还在继续,并且总是缠绕在考试与assignment due的日子之间,让我感觉时间更加不够用了。
[separator]
今天晚上考完的231,对于连着作了3天close,没有时间复习的情况来说考的还算行,可是犯了一个很silly的错误,我竟然把一道完全能拿满分的题少答了一半。纯属是忘了写,我写在了自己的question sheet上却没有写在answer book里。刚才发了email给Jozef,问了他能不能给点面子给我算对,毕竟我后面一半写对了而且这足以证明我对这道题的material以及principle理解透彻(ps: 因为这道题的第二部分需要以第一部分为基础)。Jozef很快回了信(不到半个小时),说会考虑我的解释,但是现在还不能给我结果。希望他会网开一面……
今天还有一个坏消息,貌似我把我可爱的folder丢了。[emot]shuai[/emot] 那里面可有我整个semester 2的所有course的notes啊!找遍了所有它可能出现的地方:屋子、车里、厨房、厕所、bathroom、客厅…… 问了flat mate,他们说也没见。估计是落在学校了,只好打电话去问,刚才(将近晚上12点左右)打了电话去学校的security问,对方说貌似没有一个蓝色的folder,但是有几个其他样子的folder叫我改天自己drop in去看看。。。真有点郁闷,如果说cosc的notes还比较容易搞回来的话,econ的notes叫我怎么搞啊。复印也够呛的~ 没办法,明天去lab看看吧。但愿能有好消息……

IP Calculator Beta1发布

作者:shawn 发表于:2006年08月29日 -- 5263天5小时55分钟前 | 分类: 技术原创 | Comments: 2 | Views: 5704

这两天都忙这写这个东西了,没有时间写blog,现在终于能发布一个像样的东西了。有兴趣的可以下载看看,基本功能就是给出一个ip地址和子网掩码,计算网络的一些其他数值。软件很小就几十k,由于是用java写的,需要jre才能运行。没有jre的可以在这里下载... http://java.com/zh_CN/download/manual.jsp
等全部写完之后,我会发布源代码。。。
下载文件,解压后直接双击ipcalculator.jar这个文件(注意要有jre才能运行)
[separator]
Click to download: 1156851597_0.rar

给出一个截图