Wenwei's profileIntermilan Forever FanPhotosBlogListsMore ![]() | Help |
|
September 22 A Sudoku SolverWrote for a course project. Original intention was hardware implementation, but only finished this software emulation as an early step. It can not solve very hard problems - only applies simple rules. The good thing is it shows how to solve a problem; the bad thing is that the problem pool is too small. Run in Linux. Main program: http://zhawenwei.googlepages.com/sudoku Problem pool: http://zhawenwei.googlepages.com/sudoku.dat (main program randomly pick up a problem in the pool.) Another version: http://zhawenwei.googlepages.com/sudoku_1 (It always pick up the first problem in the pool. So you can manually add a problem in sudoku.dat. Note that each problem consists of 50 lines of text and the first line should be the number of effective lines.) September 13 出离愤怒了!凌晨在实验室搞到快2点才回家(小概率事件……纯属临时抱佛脚……),早上9点爬起来看国米的比赛。Sopcast画面质量不错,但是90分钟的比赛里,网断了2~3次——进球都没看到!!NND!下次坚决用有线看球! September 08 Update1. 学习Java ing(没有指针,太赞了!)
2. 等待硬盘ing(1.5T的Samsung$98, Rosewill RX35硬盘盒$23,加起来比Samsung1.5T的外置硬盘也就便宜8、9刀,好在是free shipping。。。没辙,没有好deal撒)
3. 努力工作!(集中一点,坚持一点……) September 02 正事不足,邪事有余……1. 上周四晚上,那个500G的硬盘又读不出来了。1月份老沈送我救急的“超热”硬盘盒,嗡嗡响着,My Computer出现“不明设备”,然后又找不到了……狂郁闷……半年前就说要买个1T的硬盘,把这个500G上06、07、08年没整理的mp3(大半年没整了)备份一下。1月份出事,是硬盘盒坏了……这次呢……要是硬盘坏了就惨、惨、惨!
赶紧去Newegg整了一个硬盘盒,今天中午收到,装起来,祈祷……一阵狂闪之后,读出来一个半分区——一个分区读出来了,另一个分区认出来了、但是连卷标都没有,还有一个分区丢了。即将绝望之际,想到了“chkdsk /f”,那半个分区修好了。冥思苦想,“猜”出了丢失分区的盘号,于是………………居然找回来了。幸甚幸甚!1周之内绝对去 买个新的外置硬盘(可惜Newegg目前为止,没啥好deal啊)
2. 终于受不了那个被我不小心掉到洗脚盆里、被水泡过的鼠标了。现在不仅滚轴不工作,光感器非常不灵敏!之前坏掉的另一个鼠标没扔,因为只是线断了,想着哪天整一个线好的废鼠标、去CPES的实验室焊它一焊。还去啥CPES啊,现在自己的实验室就是设备齐全啊。于是晚上10点半跑过去了。
USB 黑、白、红、绿4根线,接着C/V/D/G四个口,我也懒得查什么是什么了,按照现在鼠标的顺序焊老鼠标,应该没问题吧……结果居然不工作。查了一下那四个线是啥:黑-ground-大概就是那个"G",红-+5V-大概就是那个"V",剩下两根是信号线(USB似乎是differntial signal,正负两根信号线。电源和地应该没问题,会不会两个光电芯片的信号线是反的?于是我把白、绿两根线反着焊了一下,居然成功了……
(14号公司要到实验室来检查项目,我们八字还没一撇呢……可到正事上,我咋就没上面的热情和机灵了呢?) |
|
|