By admin, on April 11th, 2013
下载地址:lucky
1.无需注册,背景更换back.jpg即可
2.程序可支持串口外接工业按钮实现无键盘摇奖,具体可用邮件与我取得联系:superjwl[at]gmail.com
By admin, on April 6th, 2013
backup:
pg_dump -h [HOST_ADDRESS] -p [PORT] -U [USER] [DBNAME] > [BAK_FILE]
restore:
psql -h [HOST_ADDRESS] -p [PORT] -U [USER] [DBNAME] < [BAK_FILE]
By admin, on March 12th, 2013
1.在一台机器上的某个mercurial管理的源代码目录的.hg目录下找到hgrc
2.编辑hgrc文件,加入如下内容:
[web]
allow_read = *
allow_push = *
push_ssl = false
3.在此源代码目录选择命令:hg serve -p 80
完成后就可以在另一台机器push,pull了,
远程地址为:http://主机
By admin, on January 7th, 2013
首先把不同的私钥放在.ssh目录中,并把这些私钥文件的权限改为600
比如有两个私钥文件:
id_rsa.1
id_rsa.2
然后在.ssh目录下建立config文件,内容为:
Host 1.com
IdentityFile ~/.ssh/id_rsa.1
User user1
Host 2.com
IdentityFile ~/.ssh/id_rsa.2
User user2
之后就可以用 ssh user1@1.com 和 ssh user2@2.com 来登录不同的服务器了
By admin, on January 2nd, 2013
按如下内容改为my.ini:
default-character-set=latin1 改为 default-character-set=utf8
character-set-server=latin1 改为 character-set-server=utf8
By admin, on December 26th, 2012
一直在寻找一款很方便的笔记软件,用过Evernote,Catch Note,虽然功能多,但使用下来后,实际感觉不方便,
是否有一款软件可以像一张纸,一支笔这么方便的随意画、写呢,
终于发现了,“随手写”,
可以充当纸和笔的角色,
具有多种输入方式:键盘输入、经典手写、双格手写、自由涂鸦等,
还可以插入声音,视频等,相当方便,各大市场都可以下载到
值得一试
不过要使用此软件,你的手机屏幕是越大越好,最好4.3以上,三星note,android平板更好,
By admin, on November 16th, 2012
To flash an image using Telnet This method will only work with a .img image file. * Rename the image file to backup.img * FTP the image file to the /tmp folder on the dreambox * Telnet to your box and paste the following command: cd /tmp && eraseall /dev/mtd/3 && cp backup.img /dev/mtd/3 && reboot To telnet, click START > RUN and type Telnet ip.address.of.dreambox A command window will appear, enter username root and password dreambox. To backup an image using Telnet * Telnet to the box and paste the following command: cat /dev/mtd/3 > /tmp/backup.img * FTP to the box and navigate to the /tmp * Here you will find the backup.img file. How to copy an image from your PC to the Dreambox via Telnet First of all, you need to have a mounted directory from your PC. Make sure you have the image.img file in your mounted directory on your PC. Telnet to the dreambox and paste this command: cp /hdd/movie/image.img /tmp/image.img The img will be copied from your mounted directory to the /tmp folder on the dreambox ready to be flashed.
———————————————————————–
post’s original address: http://www.digital-kaos.co.uk/forums/f213/how-flash-dm500-using-telnet-163444/
By admin, on October 27th, 2012
exec sp_helpconstraint @objname=表名 go
By admin, on September 19th, 2012
Jumping forward:
label: if (true) { // do stuff if (check) break label; // do more stuff }
Jumping backward:
label: do { // do stuff if (check) continue label; // do more stuff break label; } while(true);
By admin, on July 13th, 2012
在写通用Repository类的deleteById时,如果使用load方法,则能正确删除对象,代码如下:
public void deleteById(PK id) { T t = getHibernateTemplate().load(type, id); t = (T) getHibernateTemplate().merge(t); getHibernateTemplate().delete(t); }
而如果使用get方法,则不能删除对象,会出现错误 :java.lang.IllegalArgumentException: Removing a detached instance <ClassName>,代码如下:
public void deleteById(PK id) { T t = getHibernateTemplate().get(type, id); t = (T) getHibernateTemplate().merge(t); getHibernateTemplate().delete(t); }
|
|