自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

宝宝

明月饰窗

  • 博客(535)
  • 资源 (4)
  • 收藏
  • 关注

原创 使用百度深度学习模型ERNIE对输入的字符串做分类预测(基于fluid)

#! /usr/bin/env python# author: qibaoyuan - [email protected] 2019.08.01# just demo, no guranteesimport collectionsimport timeimport paddle.fluid as fluidimport numpy as np#可以参考ernie的re...

2019-08-01 17:18:37 1038 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 2306 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 1877

原创 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 2703

转载 创建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 2731

原创 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 1829

原创 使用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 1143

原创 利用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 3033

原创 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 4068 2

转载 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 4951

原创 mac安装zsh

git clone [email protected]: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 1588

原创 给钓鱼邮件最致命的一击

现在的小偷、骗子太多了,被偷的东西需要解除原有的Apple ID才可以绑定新的apple id,于是各种欺骗邮件纷纷到来进行诈骗,今天告诉大家怎么讲该死的诈骗服务器搞死。 1.原理:向诈骗邮件提交各种用户名、密码、验证信息,这些信息看着像那么回事;shell信息,采用多线程,不断将垃圾信息塞到骗子的数据库中,使其应接不暇,最后绝命而死。

2015-01-26 15:46:50 11830

转载 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 2884

原创 Latex中插入矢量图片(带latex公式)

情景描述:在latex文件中,需要插入一张图片,图片内容包括几个圆圈、几条线和一些特殊的数学公式。方案:1.使用visio作图,然后插入数学公式。问题:导出图片的话,不是矢量,无法放大;导出pdf,进行裁剪,但是,word里的公式不是很美观,可能与latex的公式不兼容。2.使用Inkscape,制作矢量图,在图上可以输入latex格式的公式,然后使用input将文件导入。第2个方

2015-01-05 21:41:00 8759

原创 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 3483

原创 macbook升级scipy和numpy

系统自带的scipy和numpy的版本比较低,编译scikit learn出现numpy.dtype

2014-08-05 23:40:31 5879

原创 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 3304 1

原创 使用Maven进行lib管理带来的问题

小项目用起来肯定很爽,项

2014-07-09 16:17:37 792

原创 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 3881

原创 IntelliJ 13,pom报错cannot reconnect

通过查看help->view log in Finder,发现缺少

2014-06-21 11:08:45 7367

原创 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 9780

原创 MATLAB Preparing installation files ... Installing ... Exception in thread "main" com.google.inject.

现象:MATLAB2013a在Mac Book Pro上无法安装,调用

2014-05-24 16:22:41 1541

原创 Gitblit进行Git管理

Gitblit进行Git管理介绍使用Gitbit进行代码管理的工具下载Gitblit,当前版本为1.5.0,下载地址。使用普通的Http在下载完成时会报下载错误,有点奇怪。解决办法,使用下载工具,如迅雷、百度云离线;将下载的文件上传到服务器端,解压到opt/gitblit目录(安装服务的默认路径);由于服务是安装在远程,gitblit需要GUI配置才可以使用,因为其要生成密码和证书文件

2014-05-05 12:21:09 25145 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 6825

原创 ssh卡在/Users/hello/.ssh/id_dsa (0x0),

sudo vim /etc/ssh/sshd_config/ 修改:UseDNS no

2014-04-17 17:39:44 895

原创 中科院计算所博士论文模板(适用于mac系统,支持新logo)

下载地址:http://pan.baidu.com/s/1gdGEVV9主要修改内容:1.修复适用xelatex进行

2014-04-16 15:50:14 2897

转载 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 3757

转载 贝叶斯分类在邮件分类

贝叶斯过滤算法的基本步骤  主要有以下7个步骤:   1. 收集大量的垃圾邮件垃圾邮件,英文:spam。现在还没有一个非常严格的定义。一般来说,凡是未经用户许可就强行发送到用户的邮箱中的任何电子邮件。更多>>和非垃圾邮件,建立垃圾邮件集和非垃圾邮件集。   2. 提取邮件主题和邮件体中的独立字符串,例如 ABC32,¥234等作为TOKEN串并统计提取出

2013-10-16 21:25:18 1236

原创 mac安装gnuplot

1.下载gnuplot的源代码4.6.42.解压。切换到文件夹:export LDFLAGS=-m32export CFLAGS=-m32./configure --with-readline=builtinmakesudo make install

2013-10-12 18:15:45 3048

原创 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 1081

原创 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 3539

原创 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 710

原创 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 716

原创 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 904

原创 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 2052

原创 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 847

原创 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 1062

原创 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 3099

原创 securecrt删除license

rm -rf /Users/qibaoyuan/Library/Application\ Support/VanDyke/SecureCRT/Config/SecureCRT_eval.lic

2013-06-18 17:47:28 5108

转载 Solutions to big data

2013-05-28 19:04:49 888

p6spy改造去掉resultset和添加每日归档

附件中就是p6spy改造去掉resultset和添加每日归档的jar。 方法:打开eclipse,导入-eclipse,进行自己的修改(已改完) 将src复制到-src下面,运行ant命令即可在dist生成p6spy.jar文件 参照sp6.properties进行修改即可

2013-07-31

基于Web的高校田径运动会管理系统的设计.pdf

基于Web的高校田径运动会管理系统的设计.pdf

2008-05-06

僵尸网络研究

介绍了僵尸网络的演化<br>过程和基本定义,深入剖析了僵尸网络的功能结构与工作机制,讨论了僵尸网络的命令与控制机制和传播模型,并归<br>纳总结了目前跟踪、检测和防御僵尸网络的最新研究成果,最后探讨了僵尸网络的发展趋势和进一步的研究方向.

2008-05-04

JavaClass文件的结构分析及其校验.pdf

上海计算所分析的关于java字节码的结构组成

2008-05-04

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除