Monthly Archives: April 2010

Install HP LaserJet 1012 on Windows 7

HP does not provide official support for LaserJet 1012 on Windows 7. There is a workaround and it does work fine for me.

The solution is original from this post (http://forums13.itrc.hp.com/service/forums/bizsupport/questionanswer.do?admit=109447627+1270533366367+28353475&threadId=1381135).

1. First off, go download HP LaserJet 1012 Host Based drivers.
64-bit: http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareDescription.jsp?lang=en&cc=us&prodTypeId=18972&prodSeriesId=377934&prodNameId=306510&swEnvOID=2100&swLang=8&mode=2&taskId=135&swItem=lj-67501-1
32-bit:
http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareIndex.jsp?lang=en&cc=us&prodNameId=306510&prodTypeId=18972&prodSeriesId=377934&swLang=8&taskId=135&swEnvOID=2093
2. Extract the driver.
3. Plug in and turn on your printer if you haven’t already.
4. Go to Start>Devices and Printers, and choose to add a printer
5. Choose to add a local printer
6. Choose Dot-4-usb printing support
7. Click Have Disk on the next window
8. Navigate to where you extracted the drivers, and choose the inf file
9. Choose the HP 1012 HB Driver
10. Follow the prompt till it installs the printer or what not

Now you may notice that it prints slow as heck, well no worries! To fix that do this.
1. Go to Start, right click Computer and choose Manage
2. Go to Device Manager
3. Find 1284.4 dot4usb Printing Support
4. Right click it and choose Update Driver
5. Choose Browse my computer for driver software.
6. Choose USB Virtual Printing Support
7. Follow the prompt, exit out of Device Manager
8. Go to Start>Devices and Printers
9. Right click HP 1012 HB, choose Printer Properties
10. Go to the Port Tab, find Virtual USB Printing Support (Not dot4) and check that.
11. Click Ok.
Congratulations! Your printer isn’t an agonizing experience anymore!!
NOTE: The users in my environment reported that the printer after a restart showed up uninstalled but continued to print fine, so meh. Guess it cannot be perfect.

王家岭事故

电视广播大小官方网站上里都在播放和讲述王家岭事故救援的英雄事迹。我只是很奇怪,类似事故已经不是第一次了,为什么屡屡发生,发生了就报先进事迹,讲干部群众如何奋不顾身地抢救被埋工人,为什么不报报为什么会发生这些事故,平时“相关部门”这些中国最大的部门都干了些事情了。已经讨厌了这些英雄故事了,宁愿这些事情从来没有发生过。

冻土实验大文件处理软件

针对实验出来的大数据文件处理进行了优化,分为三个功能模块,温度数据转换(电阻->温度)、材料力学试验数据转换和冻胀试验数据转换三个功能模块。优化主要体现在,

  1. 逐行处理,理论上不受内存大小限制
  2. 根据可用内存的70%决定load进多少数据进行批量转化
  3. 多线程,根据内存数据多少动态决定线程数
  4. 代码级别上的其他优化

一些截图如下:

主界面


温度转换功能模块界面


力学试验功能模块界面


冻胀试验功能模块界面

去植物园玩

约好几个朋友,带了朵朵去植物园玩,估计玩好了吧,又是骑双人三人自行车,又是划船,又是玩泥巴
遗憾的是可能是因为前些天天气冷,郁金香没开,往年4.15郁金香展就开始了,估计今年也要推后了

像个大馒头

朵朵小朋友说吃多了,会长成像个小馒头
妈妈问,那妈妈呢
朵朵说,你不是
妈妈高兴了
朵朵接着说,你象个大馒头
妈妈差点当场晕倒