Fork me on GitHub

  2014年3月25日
摘要: 先装扩展包。vbox 所在的用户组比如要包括当前用户才行。查看当前用户名:sharl@sharl-laptop:~$ whoamisharl查看vbox 所在的组:sharl@sharl-laptop:~$ cat /etc/group | grep vboxvboxusers:x:125:sharl将当前用户加入vbox组:usermod -a -G vboxusers sharl即可。此时,重启系统。再次打开虚拟机,果然,USB设备都已经被识别、访问到了。这些,在“设备”菜单下就可以看到。 阅读全文
posted @ 2014-03-25 20:16 huashiyiqike 阅读(3722) 评论(1) 推荐(1) 编辑
  2014年3月24日
摘要: sudo apt-get install nbd-server nbd-client qemu-kvm# rmmod nbd# modprobe nbd max_part=8# qemu-nbd--connect=/dev/nbd0 test.vdi# mount /dev/nbd0p1 file(挂载点)其他地方看到的其他方法没试过# qemu-nbd -c /dev/nbd0 test.vdi# qemu-nbd -d /dev/nbd0 virtualbox-fuse需要卸载 virtualbox 阅读全文
posted @ 2014-03-24 14:16 huashiyiqike 阅读(2318) 评论(0) 推荐(0) 编辑
  2014年3月23日
摘要: debug=1;diary offif debugdelete('log.txt');!del log.txtdiary('log.txt');diary ONenddiary OFF 阅读全文
posted @ 2014-03-23 14:38 huashiyiqike 阅读(639) 评论(0) 推荐(0) 编辑
  2014年3月22日
摘要: 将gnome改成xfce xfce-session 即可2013-01-30 14:45:34|分类:Ubuntu|标签:ubuntu12.04unityvncserverssh远程桌面|举报|字号订阅 本文只适用于Ubuntu 11.04 Desktop以后的桌面环境,由于Ubuntu从11.04开始默认采用Unity作为它的桌面环境,因此之前网上对于Ubuntu早期版本的GNOME桌面环境的VNC配置都不适用。网上费了好大的功夫终于找到一篇能用的博客,首先感谢Minqiang Chen网友的博文,链接送上:http://blog.ptpt52.info/2012/08/ubuntu-120 阅读全文
posted @ 2014-03-22 22:18 huashiyiqike 阅读(929) 评论(0) 推荐(0) 编辑
  2014年3月21日
摘要: Chris HoffmanUbuntu的启动速度非常快,按了开机键之后很快就进入桌面。但我们仍然可以充分利用内存,通过多种方法让开机速度更快。某些方法真的可以提速,对于旧电脑的效果尤其明显。选用轻量级的桌面环境,关闭不必要的应用程序,可以让一台旧电脑如释重负。如果强行在旧电脑上运行Ubuntu的Unity桌面环境,系统的速度会拖得很慢很慢。预载(Peload)预载是一个后台服务,可监控系统上使用的程序。它能找出程序使用的库(libraries)和二进制文件(binaries),预先加载到内存中,使程序的启动速度更快。例如,你可能经常在开机后打开Firefox浏览器和LibreOffice,那么 阅读全文
posted @ 2014-03-21 08:50 huashiyiqike 阅读(1774) 评论(0) 推荐(0) 编辑
  2014年3月20日
摘要: sudo fdisk -l查看硬盘情况1:新建一个目录,例:old2:mount /dev/sdb1 old3:cd old4:ls (就可以看到新硬盘的内容了)取消挂载:umountold挂载虚拟卷的方法1:sudo vgchange -ay /dev/ubuntu2:sudo mount /de... 阅读全文
posted @ 2014-03-20 22:54 huashiyiqike 阅读(3307) 评论(0) 推荐(0) 编辑
摘要: ubuntu让我明白,没有什么完美的东西,要想完美必须付出代价。要么花时间折腾,要么花时间赚钱买系统。人生也是一样,所以不要期待什么完美。哪有那么好的人,在合适的时间合适的地点让你遇见,还对你有感觉。凑合凑合过吧,nnd,需要时才找你,你就是个备胎。ubuntu很漂亮,但是很难伺候。xp很丑,但是很... 阅读全文
posted @ 2014-03-20 22:26 huashiyiqike 阅读(6524) 评论(0) 推荐(0) 编辑
  2014年3月19日
摘要: Check UUID sudo blkidThen sudo gedit /etc/default/grub & to pull up the boot loader configurationLook for the line GRUB_CMDLINE_LINUX="" and make sure it looks like this (using your UUID of course) GRUB_CMDLINE_LINUX="resume=UUID=41e86209-3802-424b-9a9d-d7683142dab7" and save 阅读全文
posted @ 2014-03-19 17:41 huashiyiqike 阅读(498) 评论(0) 推荐(0) 编辑
  2014年3月18日
摘要: alsamixer安装驱动http://www.realtek.com/downloads/downloadsCheck.aspx?Langid=1&PNid=24&PFid=24&Level=4&Conn=3&DownTypeID=3&GetDown=falsehttp://www.cnblogs.com/bigmengzi/archive/2011/11/22/2259601.html 阅读全文
posted @ 2014-03-18 16:23 huashiyiqike 阅读(1199) 评论(0) 推荐(0) 编辑
  2014年3月17日
摘要: 可以 : echo "yourpasswd" |sudo -S yourcommand但是不安全,因为密码都显示在shell脚本里面了-_-引自http://hi.baidu.com/mgqw/blog/item/2824bb01ccd5570a7aec2cd9.htmlsuspend#!/bin/bashecho "123" |sudo -S s2ram --forcehibernate#!/bin/bashecho "123" |sudo -S s2disk 阅读全文
posted @ 2014-03-17 21:18 huashiyiqike 阅读(32763) 评论(0) 推荐(0) 编辑
摘要: LECTURE ONEInternational crime court(ICC) came into being after the Second World War. The Nuremberg tribunal.No excuse as simply obedience for orders.Being chief leaders is no excuse for impunity.Not all countries are parties to the ICC statute.China is not a member. America has signed it but not ra 阅读全文
posted @ 2014-03-17 19:15 huashiyiqike 阅读(254) 评论(0) 推荐(0) 编辑
摘要: 安装uswsuspUbuntu gnu/linux只需代码:sudo aptitude install uswsuspArch gnu/linux系统代码:sudo pacman -S uswsusp下面两段Ubuntu跳过, 直接看最后的让gnome(或者Hal)改用uswsusp方式休眠修改配置/etc/suspend.conf(Ubuntu已经自动配置好了且Ubuntu下的文件是/etc/uswsusp.conf)把代码:resume device = 中的改成你的swap分区如代码:resume device = /dev/sda2uswsusp还可以压缩内存镜像, 不仅能使swape 阅读全文
posted @ 2014-03-17 13:46 huashiyiqike 阅读(1897) 评论(1) 推荐(1) 编辑
摘要: (2010-12-02 09:58:30)转载▼标签:帐号权限杂谈分类:Linux测试环境:CentOS 5.51、添加用户,首先用adduser命令添加一个普通用户,命令如下:#adduser tommy//添加一个名为tommy的用户#passwd tommy//修改密码Changing password for user tommy.New UNIX password://在这里输入新密码Retype new UNIX password://再次输入新密码passwd: all authentication tokens updated successfully.2、赋予root权限方法 阅读全文
posted @ 2014-03-17 12:23 huashiyiqike 阅读(354) 评论(0) 推荐(0) 编辑
  2014年3月14日
摘要: http://www.mathworks.cn/cn/help/distcomp/advanced-topics.htmlPARFOR loops work by dividing the iterations of the loop among manyworkers. Things work best when the inputs to the loop and outputs fromthe loop can also be divided in the same way. The simplest example mightbe:N = 10;in1 = rand(1, N);in2 阅读全文
posted @ 2014-03-14 21:48 huashiyiqike 阅读(270) 评论(0) 推荐(0) 编辑
  2014年3月11日
摘要: http://askubuntu.com/questions/235507/xconfig-xrandr-badmatch先装驱动再说。今天开机发现ubuntu分辨率不正常只有1024×768, Displays选项卡下面最大的分辨率是1024×768。元芳,此事你怎么看?1.sun@ubuntu:~$ xrandrScreen 0: minimum 320 x 200, current 1024 x 768, maximum 8192 x 8192VGA1 connected 1024x768+0+0 (normal left inverted right x axis 阅读全文
posted @ 2014-03-11 23:19 huashiyiqike 阅读(3474) 评论(0) 推荐(0) 编辑
摘要: http://www.ubuntugeek.com/fix-for-cant-login-after-upgrading-from-ubuntu-13-04-to-ubuntu-13-10.htmlI had the same problem and found a thread elsewhere that solved the problem in a different way.As above, at the login screen use Cntrl+Alt+F1 to open a terminal window and login at the command line ins 阅读全文
posted @ 2014-03-11 17:56 huashiyiqike 阅读(497) 评论(0) 推荐(0) 编辑
  2014年3月7日
摘要: layer_dimensions = [11 22 33 22 11]';ld_size = size(layer_dimensions , 1);% what is deal[x rx dx rdx y ry dy rdy dphi] = deal( cell( ld_size , 1 ) );[W rW dW rdW] = deal( cell( ld_size-1 , 1 ) );numsamples = 100;%initialize weight and x,y, always allo... 阅读全文
posted @ 2014-03-07 19:54 huashiyiqike 阅读(452) 评论(0) 推荐(0) 编辑
  2014年3月6日
该文被密码保护。 阅读全文
posted @ 2014-03-06 10:06 huashiyiqike 阅读(6) 评论(0) 推荐(0) 编辑
  2014年3月5日
摘要: sudo/etc/init.d/xrdp restart 阅读全文
posted @ 2014-03-05 19:12 huashiyiqike 阅读(3995) 评论(0) 推荐(0) 编辑
摘要: #skill -KILL -u user1 杀死并注销user1。#skill -CONT -u user1 恢复user1。在Windows 2003默认情况下,三个以上就远程不了,必须强制登录把已登录的人踢出来。在已登录的用户中,可以通过任务管理器->用户->右键注销其他在线用户,你有没有想过在Linux如何实现呢。先用w查看在线用户。goface~#w11:53:14up53min,3users,loadaverage:0.00,0.01,0.05USERTTYFROMLOGIN@IDLEJCPUPCPUWHATrootpts/0192.168.1.811:110.00s0. 阅读全文
posted @ 2014-03-05 11:42 huashiyiqike 阅读(10182) 评论(0) 推荐(0) 编辑
  2014年3月2日
摘要: http://mathesaurus.sourceforge.net/matlab-numpy.htmlHelpMATLAB/OctavePythonDescriptiondochelp -i % browse with Infohelp()Browse help interactivelyhelp helpordoc dochelpHelp on using helphelp plothelp(plot)or?plotHelp for a functionhelp splinesordoc splineshelp(pylab)Help for a toolbox/library packag 阅读全文
posted @ 2014-03-02 11:37 huashiyiqike 阅读(539) 评论(1) 推荐(0) 编辑
  2014年2月27日
摘要: http://stackoverflow.com/questions/17797922/how-to-calculate-bits-per-character-of-a-string-bpcup vote1down votefavoriteA paper I was reading,http://www.cs.toronto.edu/~ilya/pubs/2011/LANG-RNN.pdf, uses bits per character as a test metric for estimating the quality of generative computer models of t 阅读全文
posted @ 2014-02-27 15:46 huashiyiqike 阅读(618) 评论(0) 推荐(0) 编辑
  2014年2月24日
摘要: 后台运行:命令+&例如 sleep 60 &jobs -l显示job的pid和状态ps 显示用户进程将第一个job切换回前台:fg 1放到后台:bg 1cltr + z 挂起进程退出shell exit直接关闭好像也可以问题:使用新的session怎样找回后台进程。更好的办法,使用screen1、新建一个screen 直接screen或者screen -S XXX(XXX是你为这个screen指定的名字)2、在screen中新建一个虚拟终端(此时你的screen中就有了两个虚拟终端了)ctrl+a+c(先按ctrl+a,然后再按c,下面的命令也一样)3、在虚拟终端之间切换s前一 阅读全文
posted @ 2014-02-24 09:27 huashiyiqike 阅读(1806) 评论(0) 推荐(0) 编辑
  2014年2月22日
摘要: sudo apt-get install samba(4)mkdir /home/用户名/share (新建share文件夹)sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backupsudo gedit /etc/samba/smb.conf搜寻这一行文字 代码:; security = user用下面这几行取代代码:security = userchmod 777 /home/用户名/share (设置该文件夹的权限使其让所有用户可读可写可运行)[Share]path = /home/用户名/sharepublic = yeswr... 阅读全文
posted @ 2014-02-22 13:24 huashiyiqike 阅读(2455) 评论(0) 推荐(0) 编辑
摘要: 远程登录时,不是ssh登陆:xrdp 可以修改并添加 /etc/xrdp/startwm.sh代码:#!/bin/shif [ -r /etc/default/locale ]; then . /etc/default/locale export LANG LANGUAGEfi. /etc/profile. /etc/X11/Xsession转自http://hi.baidu.com/sujinsujin/item/f3fd3bed56a408ddeb34c9eb/etc下:(bash.bashrc[Ubuntu]或bashrc[CentOS]);environment;profile普通用户 阅读全文
posted @ 2014-02-22 10:33 huashiyiqike 阅读(867) 评论(0) 推荐(0) 编辑
  2014年2月21日
摘要: cd pycudapython ./configure.py –cuda-root=/usr/local/cuda –cudadrv-lib-dir=/usr/lib –boost-inc-dir=/usr/include –boost-lib-dir=/usr/lib –boost-python-libname=boost_python-mt26 –boost-thread-libname=boost_thread-mtmake -j 4sudo python setup.py install 阅读全文
posted @ 2014-02-21 22:31 huashiyiqike 阅读(1423) 评论(0) 推荐(0) 编辑
摘要: 1 from scipy import io2 dataset = io.loadmat("a.mat")3 exclude = ['__globals__', '__header__', '__version__']4 for obj in dataset.keys():5 if obj not in exclude:6 print obj+'=dataset["'+obj+'"]'7 exec(obj+'=dataset["'+obj+' 阅读全文
posted @ 2014-02-21 17:12 huashiyiqike 阅读(3255) 评论(0) 推荐(0) 编辑
摘要: sudo apt-get install eclipse下载pydev for eclipse 2.8,如果是jre6解压。sudo nautilus 复制相应的文件夹到/usr/share/eclipse/dropins/对应的 features 和plugin文件夹里面查找安装目录find / ... 阅读全文
posted @ 2014-02-21 14:58 huashiyiqike 阅读(239) 评论(0) 推荐(0) 编辑
  2014年2月19日
摘要: http://research.microsoft.com/en-us/um/people/simonpj/papers/giving-a-talk/writing-a-paper-slides.pdf先写文章再做研究?hard to understand and practice... um....不要在前面专门用一段介绍related work,赶走读者。give credit as you go by.可以放在最后 give the literature for core reader.不用section 2 is... section 3 is about... section 4 c 阅读全文
posted @ 2014-02-19 22:46 huashiyiqike 阅读(272) 评论(0) 推荐(0) 编辑
  2014年2月17日
摘要: scan函数theano.scan(fn,sequences=None,outputs_info=None,non_sequences=None,n_steps=None,truncate_gradient=-1,go_backwards=False,mode=None,name=None,profile=False)outputs_infois the list of Theano variables or dictionaries describing the initial state of the outputs computed recurrently.fn是每一步所用的函数,seq 阅读全文
posted @ 2014-02-17 22:11 huashiyiqike 阅读(7598) 评论(0) 推荐(0) 编辑
  2014年2月11日
摘要: 2011-09-01 03:424626人阅读评论(3)收藏举报eigenvalue矩阵的基础内容以前已经提到,今天我们来看看矩阵的重要特性——特征向量。矩阵是个非常抽象的数学概念,很多人到了这里往往望而生畏。比如矩阵的乘法为什么有这样奇怪的定义?实际上是由工程实际需要定义过来的。如果只知道概念不懂有何用处,思维就只有抽象性而没有直观性,实在是无法感受矩阵的精妙。直观性说明我们先看点直观性的内容。矩阵的特征方程式是:A * x = lamda * x这个方程可以看出什么?上次我们提到矩阵实际可以看作一个变换,方程左边就是把向量x变到另一个位置而已;右边就是把向量x作了一个拉伸,拉伸量是lamd 阅读全文
posted @ 2014-02-11 22:14 huashiyiqike 阅读(4362) 评论(0) 推荐(0) 编辑
摘要: 没有完全看懂,以后再看,特别是hmm,CRF那里,以及生成模型产生的数据是序列还是一个值,hmm应该是序列,和图像的关系是什么。【摘要】 - 生成模型(Generative Model) :无穷样本==》概率密度模型 = 产生模型==》预测 - 判别模型(Discriminative Model):有限样本==》判别函数 = 预测模型==》预测【简介】简单的说,假设o是观察值,q是模型。如果对P(o|q)建模,就是Generative模型。其基本思想是首先建立样本的概率密度模型,再利用模型进行推理预测。要求已知样本无穷或尽可能的大限制。这种方法一般建立在统计力学和bayes理论的基础之上。如果 阅读全文
posted @ 2014-02-11 15:12 huashiyiqike 阅读(261) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2014-02-11 15:08 huashiyiqike 阅读(3) 评论(0) 推荐(0) 编辑
  2014年2月8日
摘要: 有向图模型:directed acyclic graph DAG 贝叶斯网络对称的,无向图,UGM: undirected graphic model UGM, 更有名的名称是MRF,markov random field 马尔科夫随机场discriminative UGM: 高大上的名字是,条件随机场,CRF, conditional random fieldsMRF的特例:hopfield networkhopfield network的特例Boltsmann machine,在hopfield基础上加入了隐层节点Restricted Boltsmann machine 隐层和显层之间有连 阅读全文
posted @ 2014-02-08 16:06 huashiyiqike 阅读(665) 评论(0) 推荐(0) 编辑
  2014年2月7日
摘要: 单层rnn的bptt:每一个时间点的误差进行反向传播,然后将delta求和,更新本层weight。多层时:1、时间1:T 分层计算activation。2、时间T:1 利用本时间点的误差,分层计算weight delta,和之前时间点的计算结果相加。最后得到的delta用来更新weight。 阅读全文
posted @ 2014-02-07 16:18 huashiyiqike 阅读(4677) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: gb2312 -*- 阅读全文
posted @ 2014-02-07 12:06 huashiyiqike 阅读(116) 评论(0) 推荐(0) 编辑
  2014年2月5日
该文被密码保护。 阅读全文
posted @ 2014-02-05 21:52 huashiyiqike 阅读(1) 评论(0) 推荐(0) 编辑
  2014年1月28日
该文被密码保护。 阅读全文
posted @ 2014-01-28 18:43 huashiyiqike 阅读(0) 评论(0) 推荐(0) 编辑
  2014年1月24日
摘要: 原文发表于2012年12月31日梦里江河的话: 作者WSY是上海人,上海交大2001级本科生,现在美国即将拿到生物学博士学位。他在微博自称“古典音乐铁杆粉丝,尤爱莫扎特和舒伯特。业余中提琴手,摄影爱好者,军迷,旅游爱好者,尤爱独行,以及骑车远行。科研菜鸟,坑爹博士生”查看大图博士这条船作者:WAMozart(含泪微笑的天使) (2012年12月17日15:50:49 星期一)一. 前言原先我是准备等到毕业的那一天,痛痛快快地哭过了之后,一口气写掉这篇文章的。其实一直在零散时间打腹稿,差不多已经煲熟了。刚才有同样读博士读得凄凄惨惨切切的师兄表示期待,于是一横心决定现在就写了。何况,早点让更多.. 阅读全文
posted @ 2014-01-24 22:38 huashiyiqike 阅读(3043) 评论(0) 推荐(0) 编辑
摘要: rnnlib helphttp://sourceforge.net/apps/mediawiki/rnnl/index.php?title=Main_Pageboost:http://blog.chinaunix.net/uid-12226757-id-3427282.htmlNetCDF:http://blog.sciencenet.cn/blog-237238-547593.html安装低版本gcchttp://blog.sina.com.cn/s/blog_6cee149d010129bl.html 阅读全文
posted @ 2014-01-24 21:10 huashiyiqike 阅读(513) 评论(0) 推荐(0) 编辑