- 博客(535)
- 资源 (4)
- 收藏
- 关注
原创 使用百度深度学习模型ERNIE对输入的字符串做分类预测(基于fluid)
#! /usr/bin/env python# author: qibaoyuan - qibaoyuan@xiaomi.com 2019.08.01# just demo, no guranteesimport collectionsimport timeimport paddle.fluid as fluidimport numpy as np#可以参考ernie的re...
2019-08-01 17:18:37
1144
1
原创 Jenkins CI持续集成(基于Git)
1.使用Jenkins结合Gitolite(git服务)进行持续集成:1.1 下载Jenkins的war包:http://mirrors.jenkins-ci.org/war/latest/1.2安装git插件:http://updates.jenkins-ci.org/download/plugins/git/2.4.0/git.hpi,依赖也要一块下载:sim-api.hpi,gi
2015-10-08 15:09:45
2380
1
转载 brew安装半路退出
rm -rf /usr/local/Cellar /usr/local/.gitsee:http://stackoverflow.com/questions/13389760/homebrew-is-halfway-installed-cant-re-install-or-uninstall-how-can-i-manuall
2015-10-06 16:02:53
2023
原创 Latex Tools在OSX EI Captain无法编译的问题
1.异常:COULD NOT COMPILE! latextools Attempted command:latexmk2.原因:EI中对于/usr/bin的权限限制了,因此mactex在最新的版本中将texbin目录修改了,而LatexTools中的默认配置,并没有修改。3.解决:Packages Setting->LatexTools->Setting user,将osx下面改为:
2015-09-08 09:38:32
2788
转载 创建centos7下的加密移动硬盘
创建centos7下的加密移动硬盘机器山插了一块移动硬盘,为了安全,使用了加密方法:代码如下:cryptsetup luksFormat /dev/sdbcryptsetup luksOpen /dev/sdb crypdd if=/dev/urandom of=/root/keyfile1 bs=1024 count=4chmod 0400 /root/keyfile1cryptsetup
2015-08-27 09:29:37
2819
原创 intellij在jdk1.7和1.8的字体问题
oracle7和8在字体渲染上出现了bug,导致变细。。。至少在mac系统是这样的,anti aliasing的问题。先不管它。说一下解决方案:1.下载并安装苹果的jdk1.6,JavaForOSX2014-001.dmg2.修改intelli的启动文件:vim /Applications/IntelliJ\ IDEA\ 14.app/Contents/Info.plist将 JV
2015-06-17 16:38:54
1907
原创 使用gitolite进行git服务管理
1.在服务器SERVER创建git用户:useradd -m git2.使用git用户登录,并安装gitolite:su - gitmkdir -p ~/bingit clone git://github.com/sitaramc/gitolitegitolite/install -ln ~/bin # please use absolute path
2015-06-17 10:41:39
1192
原创 利用Python3对网易的某个话题进行爬取并保存图片到本地
__author__ = 'tom'import urllib.requestimport jsonimport timebaseDir = '/Users/tom/netease/{0}'request = 'http://url.163.com/{0}-10.html'count = 0for i in range(0, 2000, 10): re
2015-04-26 19:42:30
3095
原创 Docker下玩转Storm
1.起因:构建一个storm集群,由于各种诡异的配置错误和死机无反应,直接放弃。后来看到docker,眼前一亮,搞起来。2.安装docker(参考http://docs.docker.com/installation/centos/#installing-docker-centos-6.5)centos:安装epelrpm -Uvh http://mirrors.ustc.
2015-04-24 15:43:48
4121
转载 mac brew maven更新版本
add the following to your ~/.mavenrc:export JAVA_HOME=/Library/Java/JavaVirtualMachines/{jdk-version}/Contents/Home
2015-02-11 14:45:19
5059
原创 mac安装zsh
git clone git@github.com:robbyrussell/oh-my-zsh.gitcd ~ln -s ~/Documents/source/utils/oh-my-zsh/ .oh-my-zshcp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrcchsh -s /bin/zsh
2015-02-09 21:14:18
1638
原创 给钓鱼邮件最致命的一击
现在的小偷、骗子太多了,被偷的东西需要解除原有的Apple ID才可以绑定新的apple id,于是各种欺骗邮件纷纷到来进行诈骗,今天告诉大家怎么讲该死的诈骗服务器搞死。 1.原理:向诈骗邮件提交各种用户名、密码、验证信息,这些信息看着像那么回事;shell信息,采用多线程,不断将垃圾信息塞到骗子的数据库中,使其应接不暇,最后绝命而死。
2015-01-26 15:46:50
12764
转载 zsh使用小键盘
在zsh的配置文件.zshrc中添加:# Fix numeric keypad# 0 . Enterbindkey -s "^[Op" "0"bindkey -s "^[On" "."bindkey -s "^[OM" "^M"# 1 2 3bindkey -s "^[Oq" "1"bindkey -s "^[Or" "2"bindkey -s "^[Os" "3"# 4 5
2015-01-21 09:02:12
2965
原创 Latex中插入矢量图片(带latex公式)
情景描述:在latex文件中,需要插入一张图片,图片内容包括几个圆圈、几条线和一些特殊的数学公式。方案:1.使用visio作图,然后插入数学公式。问题:导出图片的话,不是矢量,无法放大;导出pdf,进行裁剪,但是,word里的公式不是很美观,可能与latex的公式不兼容。2.使用Inkscape,制作矢量图,在图上可以输入latex格式的公式,然后使用input将文件导入。第2个方
2015-01-05 21:41:00
9009
原创 mactex自动更新tex live utilities错误
错误描述:./runme.sh: Cannot find TeX Live root using kpsewhich --var-value=SELFAUTOPARENT.2014-12-26 02:39:16 +0000 Warning tlu_ipctask[3664] ./runme.sh: Please set your PATH as needed, otherwise it's
2014-12-30 10:53:50
3568
原创 matlab 2014a挂掉 libmwfl
1.环境:mbp,osx10/9/42.描述文件3.reason:The crash during close window is caused on some setups sometime by some bug in Apple's CoreVideo framework. I've spent days not being able to fix it, just confir
2014-07-14 15:06:52
3477
原创 python安装scipy
sudo curl https://bootstrap.pypa.io/ez_setup.py -o - | sudo pythonsudo easy_install pipsudo pip install -U numpysudo pip install -U scipysudo pip install -U pyyaml nltk
2014-07-08 17:17:39
3936
原创 SublimeText3与Latex结合
SublimeText3与Latex结合讲述如何在mac系统使用Latex和SublimeText3进行论文撰写软件安装安装Mactex,4G左右;安装Skim,安装以后个人偏好中,取消自动更新,选择对应的sublimeTex3;安装Package Control,按照页面 https://sublime.wbond.net/installation重启sublimeTex3Ctr
2014-06-12 14:03:19
9860
原创 MATLAB Preparing installation files ... Installing ... Exception in thread "main" com.google.inject.
现象:MATLAB2013a在Mac Book Pro上无法安装,调用
2014-05-24 16:22:41
1599
原创 Gitblit进行Git管理
Gitblit进行Git管理介绍使用Gitbit进行代码管理的工具下载Gitblit,当前版本为1.5.0,下载地址。使用普通的Http在下载完成时会报下载错误,有点奇怪。解决办法,使用下载工具,如迅雷、百度云离线;将下载的文件上传到服务器端,解压到opt/gitblit目录(安装服务的默认路径);由于服务是安装在远程,gitblit需要GUI配置才可以使用,因为其要生成密码和证书文件
2014-05-05 12:21:09
25262
1
原创 Endnot的文献全部转换成BibTex
Endnot的文献全部转换成BibTex从Endnote导出数据模板选择,Edit->Output Styles->Open Style Mamager...->选择BibTex Export.模板修改,Edit->Output Styles->Edit BibTeX Export,定位到Bibliography->Templates,右侧的模板需要修改。将ILabel删除I,只留一个
2014-04-22 21:19:33
7020
原创 ssh卡在/Users/hello/.ssh/id_dsa (0x0),
sudo vim /etc/ssh/sshd_config/ 修改:UseDNS no
2014-04-17 17:39:44
921
原创 中科院计算所博士论文模板(适用于mac系统,支持新logo)
下载地址:http://pan.baidu.com/s/1gdGEVV9主要修改内容:1.修复适用xelatex进行
2014-04-16 15:50:14
3002
转载 ipad通过issh访问自己的系统
ssh 登入到 iphone (可以用 putty,詳細可 google)如果還沒把密碼改掉的話 root 跟 mobile 帳號的密碼是 alpine(少部份的密碼也有可能是 dottie)1) 用 mobile 登入系統後,如果要改密碼 passwd mobile (敲入兩次密碼)2) su 到 root su - (敲入root的密碼,
2014-01-22 14:04:10
3841
转载 贝叶斯分类在邮件分类
贝叶斯过滤算法的基本步骤 主要有以下7个步骤: 1. 收集大量的垃圾邮件垃圾邮件,英文:spam。现在还没有一个非常严格的定义。一般来说,凡是未经用户许可就强行发送到用户的邮箱中的任何电子邮件。更多>>和非垃圾邮件,建立垃圾邮件集和非垃圾邮件集。 2. 提取邮件主题和邮件体中的独立字符串,例如 ABC32,¥234等作为TOKEN串并统计提取出
2013-10-16 21:25:18
1300
原创 mac安装gnuplot
1.下载gnuplot的源代码4.6.42.解压。切换到文件夹:export LDFLAGS=-m32export CFLAGS=-m32./configure --with-readline=builtinmakesudo make install
2013-10-12 18:15:45
3139
原创 macos安装thrift
Install BoostDownload the boost library from boost.org untar compile with./bootstrap.shsudo ./b2 threading=multi address-model=64 variant=release stage installInstall libeventDownload
2013-09-05 13:49:29
1135
原创 C45的.data和.names文件转化成Arff数据
package cn.ac.ict.ics.utils;import lombok.Cleanup;import java.io.BufferedReader;import java.io.BufferedWriter;import java.io.FileReader;import java.io.IOException;import java.nio.charset.Chars
2013-08-21 16:21:26
3672
原创 mysql远程
mysql> use mysql;Reading table information for completion of table and column namesYou can turn off this feature to get a quicker startup with -ADatabase changedmysql> SELECT User, Passwo
2013-08-08 14:24:26
752
原创 new io for Chinse file path
@Test public void testConverter() { Path dir = Paths.get("/Users/tom/Documents/parse"); try (DirectoryStream stream = Files.newDirectoryStream(dir, "*.{json}")) { for
2013-08-02 11:54:32
750
原创 rabbitmq
1.download rabbit-mq server:wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.1.3/rabbitmq-server-3.1.3-1.noarch.rpm download erlang:wget https://download3.vmware.com/software/vfabric/erlan
2013-07-24 20:50:29
960
原创 jdk7 new api
import java.nio.charset.StandardCharsets;import java.nio.file.Files;import java.nio.file.Path;import java.nio.file.Paths;import java.util.ArrayList;import java.util.List; public class WriteText
2013-07-15 11:27:14
2103
原创 matlab basic
1.cputime returns the total CPU time (in seconds) used by your MATLAB® application from the time it was started. This number can overflow the internal representation and wrap around.
2013-07-11 10:20:16
903
原创 FileLock
import org.junit.Ignore;import org.junit.Test;import java.io.File;import java.io.RandomAccessFile;import java.nio.channels.FileLock;public class FileLockTest { @Test public void te
2013-07-03 18:41:48
1099
原创 macos10.8安装cplex
原理:利用matlab的mex,编译生成api interface,调用cplex完成一系列的线性规划等任务。1.matlab:版本号R2013a (8.1.0.604)64bit xcode 5 dp osx 10.8.4 cplex cplex_studio125.prev.macos.bin2.sudo vim /Applications/MATLAB_R2013a
2013-06-24 21:37:30
3189
原创 securecrt删除license
rm -rf /Users/qibaoyuan/Library/Application\ Support/VanDyke/SecureCRT/Config/SecureCRT_eval.lic
2013-06-18 17:47:28
5307
p6spy改造去掉resultset和添加每日归档
2013-07-31
僵尸网络研究
2008-05-04
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人