05 2013 档案

摘要:用 pcsclite 实现 ndef, 向手机送smartposter等。http://sourceforge.net/p/nfctagger/code/HEAD/tree/NFC Playerhttp://sourceforge.net/projects/nfcplayer/?source=recommended 阅读全文
posted @ 2013-05-31 15:30 Bigben 阅读(403) 评论(0) 推荐(0) 编辑
摘要:/* * Sample program to use PC/SC API. * * MUSCLE SmartCard Development ( http://www.linuxnet.com ) * * Copyright (C) 2003-2011 * Ludovic Rousseau <ludovic.rousseau@free.fr> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public L 阅读全文
posted @ 2013-05-30 17:02 Bigben 阅读(4310) 评论(0) 推荐(0) 编辑
摘要:http://blog.csdn.net/CaesarZou/article/details/7999624因为PC/SC是Windows的体系,以系统API的层面服务应用。所以一直以来智能卡相关的读卡器和工具都集中在Windows上,而在unix体系下则一直水土不服。值得庆幸的是随着开源组织M.U.S.C.L.E (Movment for the Use of Smart in Linux Environment)的积极努力下,pcsclite作为Xnix下的PC/SC设备框架和应用接口已经成为了事实上的标准,Mac的Lion系统更是已经在发行版里面集成了此服务。下面以ubuntu 12.0 阅读全文
posted @ 2013-05-30 15:44 Bigben 阅读(1474) 评论(0) 推荐(0) 编辑
摘要:将日期截断到天。 truncate to dayConversion ExamplesTypical conversion examples:Oracle MySQL1 TRUNC(SYSDATE) DATE_DATE(SYSDATE())2 TRUNC(SYSDATE, 'DD') DATE(SY 阅读全文
posted @ 2013-05-30 10:31 Bigben 阅读(496) 评论(1) 推荐(0) 编辑
摘要:默认情况下你自已添加的或自动添加到启动菜单的软件会在所有桌面环境下启动。你有没有想过让某个应用在特定桌面环境下自动启动呢?如Mailnag是一个GNOME Shell mail notifier,如果你在Unity使用,提醒会一个很丑的对话框。本文将介绍如何让应用只在特定桌面环境下自动启动,如Gnome,Unity,KDE。通过本文的方法您可又让Mailnag只当你登入Gnome时才自动启动。您需要编译自动启动.desktop文件,一般在~/.config/autostart或/etc/xdg/autostart。添加OnlyShowIn=GNOME;或OnlyShowIn=Unity;如果想 阅读全文
posted @ 2013-05-30 10:29 Bigben 阅读(808) 评论(0) 推荐(0) 编辑
摘要:expect 阅读全文
posted @ 2013-05-30 10:21 Bigben 阅读(1096) 评论(0) 推荐(1) 编辑
摘要:sudo ./nfc-emulate-forum-tag4 NFC device: pn532_uart:/dev/ttyUSB1 openedEmulating NDEF tag now, please touch it with a second NFC device In: 00 a4 04 00 07 d2 76 00 00 85 01 01 00 Out: 90 00 In: 00 a4 00 0c 02 e1 03 Out: 90 00 In: 00 b0 00 00 0f O... 阅读全文
posted @ 2013-05-27 11:58 Bigben 阅读(460) 评论(0) 推荐(0) 编辑
摘要:1,preinstall $ sudo apt-get install libusb-dev libpcsclite-dev $ sudo apt-get install libusb-0.1-4 libpcsclite1 libccid pcscdlibftdi1https://libnfc.googlecode.com/files/libnfc-1.7.0.tar.bz2bunzip2 libnfc-1.7.0.tar.bz2tar -xvf libnfc-1.7.0.tarcd libnfc-1.7.0./configure --with-drivers=allmake clean .. 阅读全文
posted @ 2013-05-27 10:48 Bigben 阅读(2342) 评论(0) 推荐(0) 编辑
摘要:转自: http://www.backtrack-linux.org/wiki/index.php/RFID_Cooking_with_Mifare_ClassicContents[hide]1RFID Cooking with Mifare Classic20x00 - Preface2.1Dependencies30x01 - Hardware3.1Touchatag - ACR122U40x02 - Software4.1ACR122U driver4.2Open Source Near Field Communication (NFC) Library /LIBNFC/4.3MFOC 阅读全文
posted @ 2013-05-27 10:28 Bigben 阅读(1178) 评论(0) 推荐(0) 编辑
摘要:http://wenku.it168.com/d_000659158.shtml 阅读全文
posted @ 2013-05-21 11:06 Bigben 阅读(147) 评论(0) 推荐(0) 编辑
摘要:http://blog.sina.com.cn/s/blog_57421ff80100c7nn.html1 linux创建自启动程序自启动的两种方法,都经过自己测试。1.1 自启动程序方法1:在etc/rc.local在里面加入/home/robin/code/autoruntest > /dev/null &(其中autoruntest 测试程序名称,下同)。即可自启动1.2 自启动程序方法2:创建linux服务,步骤如下:1)写服务启动脚本文件(后附例子)2)修改脚本文件chmod 777 autoruntest3)脚本文件拷贝到 /etc/rc.d/init.d/4)chk 阅读全文
posted @ 2013-05-21 11:05 Bigben 阅读(726) 评论(0) 推荐(0) 编辑
摘要:转自:http://www.cppblog.com/sunicdavy/archive/2012/02/28/166680.html1.1 为进程添加守护进程参考链接http://yubosun.akcms.com/tech/linux-daemon-program.htm 1: #include <unistd.h> 2: #include <signal.h> 3: #include <sys/types.h> 4: #include <sys/stat.h> 5: #include <stdio.h> 6: #include & 阅读全文
posted @ 2013-05-21 11:01 Bigben 阅读(914) 评论(0) 推荐(0) 编辑
摘要:eclipse 导出 preference 设置 保存 阅读全文
posted @ 2013-05-16 17:06 Bigben 阅读(699) 评论(0) 推荐(0) 编辑
摘要:在mac上装的虚拟机,ctrl+鼠标左键会被映射成鼠标右键。可以点击主菜单的”虚拟机“->”设置“,找到”键盘与鼠标“,在左下角的”+“”-“旁边的设置按钮,点”编辑配置文件...“。找到”鼠标快捷键“,去掉”辅键“的选中状态。 阅读全文
posted @ 2013-05-16 16:04 Bigben 阅读(730) 评论(0) 推荐(1) 编辑
摘要:在window, pereference, c/c++, editor里面,内嵌列表中“ inactive code highlights”。 阅读全文
posted @ 2013-05-15 15:22 Bigben 阅读(861) 评论(0) 推荐(0) 编辑
摘要:下载:http://www.eclipse.org/downloads/?osType=linux直接解压后,移到 /usr/local/,直接运行即可。————————————————————————————————————————————————————————————————————————当下载完eclipse-rcp-juno-SR1-linux-gtk-x86_64.tar.gz这个后,直接右击它点选extract here即可解压。当解压完后如果要把eclipse目录复制到/usr/local/eclipse(路径最好不要有中文)下,只要执行:sudocp -rDownloads 阅读全文
posted @ 2013-05-15 13:59 Bigben 阅读(427) 评论(0) 推荐(0) 编辑
摘要:eclipse 换行 排版 自动排版 阅读全文
posted @ 2013-05-08 16:17 Bigben 阅读(421) 评论(0) 推荐(0) 编辑
摘要:让他以其他用户运行,比如用户名为”user"#!/bin/kshsu - user -s /bin/ksh "/home/ssh_monitor.sh $*"ssh_monitor.sh:#!/bin/ksh###### config ########LOGFILE="./ssh_admin.log"KNOWN_HOSTS="/home/user/.ssh/known_hosts"ssh_pid='0'BREAK_OUT='N'STATE_KEY_STRING='ESTABLISHED 阅读全文
posted @ 2013-05-07 15:46 Bigben 阅读(394) 评论(0) 推荐(0) 编辑
摘要:1,用su,当我们需要以其他身份执行 command,或者shell脚本。一般命令如下:a.切换用户只执行一条命令的可以用: su-oracle-c your_commandb.切换用户执行一个shell文件可以用:su-oracle-s/bin/bashyour_shell.sh2,在某些软件安装过程中,要创建独立用户,然后以该用户运行某些安装操作,如gitolite安装过程,创建git用户并执行安装方法1:sudo -u user ...sudo -u git -H <<-Codels ~cat test#other cmdsCode后面的相继命令在Code之前的会是以切换后的 阅读全文
posted @ 2013-05-07 15:22 Bigben 阅读(28959) 评论(0) 推荐(1) 编辑
摘要:1 我想知道我机器安装了哪些shell?两种方法可以查看:第一种:[rocrocket@wupengchong ~]$ chsh -l/bin/sh/bin/bash/sbin/nologin/bin/zsh第二种:[rocrocket@wupengchong ~]$ cat /etc/shells/bin/sh/bin/bash/sbin/nologin/bin/zsh其实chsh -l也是来查看这个文件。2 我想知道我当前正在使用的shell是哪个阿?[rocrocket@wupengchong ~]$ echo $SHELL/bin/bash注意SHELL一定要是大写。可以看到,我目前使 阅读全文
posted @ 2013-05-03 14:31 Bigben 阅读(629) 评论(0) 推荐(0) 编辑
摘要:Server authenticationOne of the first things that happens when the SSH connection is being established is that the server sends its public key to the client, and proves (thanks topublic-key cryptography) to the client that it knows the associated private key. This authenticates the server: if this p 阅读全文
posted @ 2013-05-02 15:13 Bigben 阅读(334) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示