360doc--dzh1121的文章 360doc--dzh1121的文章 http://m.ahfyzs.com/rssperson/175261.aspx 360doc (http://m.ahfyzs.com) zh-cn 360doc--個(gè)人圖書館 FIX: SUDO: PORT: COMMAND NOT FOUND http://m.ahfyzs.com/content/16/0314/06/175261_541995462.shtml 2016/3/14 6:12:12
FIX: SUDO: PORT: COMMAND NOT FOUND.On Mac OSX, I’m on Yosemite, if you’ve installed MacPorts with the package installer and have the same issues that I encountered I’ve got the fix. Part of the problem is that MacPorts binaries are installed in /opt/local/bin, so you just need to add this path to your PATH environment variable. Example with your user, add to your $HOME/.profile:
Mac Install PyQt 4 (not 5) http://m.ahfyzs.com/content/16/0314/03/175261_541989189.shtml 2016/3/14 3:02:47
因此更改為: echo ''import site; site.addsitedir("/usr/local/lib/python3.5/site-packages")'' >>/Users/Tiger/Library/Python/3.5/lib/python/site-packages/homebrew.pth依然不行。
How to Setup Hadoop 2.6.0 (Single Node Cluster) on CentOS/RHEL and Ubuntu http://m.ahfyzs.com/content/16/0227/15/175261_537798285.shtml 2016/2/27 15:39:46
How to Setup Hadoop 2.6.0 (Single Node Cluster) on CentOS/RHEL and Ubuntu。export HADOOP_HOME=/home/hadoop/hadoopexport HADOOP_INSTALL=$HADOOP_HOMEexport HADOOP_MAPRED_HOME=$HADOOP_HOMEexport HADOOP_COMMON_HOME=$HADOOP_HOMEexport HADOOP_HDFS_HOME=$HADOOP_HOMEexport YARN_HOME=$HADOOP_HOMEexport HADOOP_COMMON_LIB_NATIVE_DIR=$HADOOP_HOME/lib/nativeexport PATH=$PATH:$HADOOP_HOME/sbin:$HADOOP_HOME/bin.
CentOS as a Guest OS in VirtualBox http://m.ahfyzs.com/content/16/0227/14/175261_537778727.shtml 2016/2/27 14:13:55
CentOS as a Guest OS in VirtualBoxInstalling Guest Additions.If DKMS (Dynamic Kernel Module Support) is installed it will be used and will simplify kernel upgrades.Replace "kernel-devel" with "kernel-PAE-devel" if using a PAE kernel on CentOS-5.If you are not using a standard CentOS kernel, you must acquire and install the source for your kernel from wherever you got the kernel.
前蘋果副總裁:如果你做的事情毫不費(fèi)力,就是在浪費(fèi)時(shí)間! http://m.ahfyzs.com/content/16/0102/19/28255891_524872545.shtml 2016/1/7 10:27:12
前蘋果副總裁:如果你做的事情毫不費(fèi)力,就是在浪費(fèi)時(shí)間!
lizherui的程序世界 http://m.ahfyzs.com/content/16/0104/11/175261_525346481.shtml 2016/1/4 11:55:18
第一部:http://v.youku.com/v_show/id_XNTk4MjM1MDUy.html.第二部:http://v.youku.com/v_show/id_XNTk5NTU5NzIw.html.第三部:http://v.youku.com/v_show/id_XNjA0MjMwMDYw.html.附加篇:http://v.youku.com/v_show/id_XNjA2NDc4OTgw.html.Please enable JavaScript to view the &a href="http://disqus.com/?ref_noscript"&
How to use Latex in Blogger http://m.ahfyzs.com/content/15/1119/17/175261_514358799.shtml 2015/11/19 17:30:39
How to use Latex in Blogger.<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js">MathJax.Config({ extensions: ["tex2jax.js","TeX/AMSmath.js","TeX/AMSsymbols.js"], jax: ["input/TeX", "output/HTML-CSS"], tex2jax: { inlineMath: [ [''$'',''$''], ["\\(","\\)"] ], displayMath: [ [''$$'',''$$''], ["\\[","\\]"] ], }, "HTML-CSS": { availableFonts: ["TeX"] }});
ipython reads wrong python version, (ipython3 Mac OS) http://m.ahfyzs.com/content/15/1017/15/175261_506287659.shtml 2015/10/17 15:29:54
ipython reads wrong python version, (ipython3 Mac OS)and I bet that''ll be /usr/local/bin/ipython./usr/bin/python# EASY-INSTALL-ENTRY-SCRIPT: ''ipython==0.12.1'',''console_scripts'',''ipython''__requires__ = ''ipython==0.12.1''import sysfrom pkg_resources import load_entry_pointif __name__ == ''__main__'': sys.exit( load_entry_point(''ipython==0.12.1'', ''console_scripts'', ''ipython'')() )
html中文亂碼 http://m.ahfyzs.com/content/15/0923/13/175261_501017760.shtml 2015/9/23 13:52:05
html中文亂碼<head><meta charset="UTF-8"></head>
activate/ deactive Django virtualEnv on Mac http://m.ahfyzs.com/content/15/0907/10/175261_497428804.shtml 2015/9/7 10:53:49
activate/ deactive Django virtualEnv on Mac學(xué)習(xí)鏈接在這里。建立好了django_env之后,我們每次要激活的時(shí)候。$source bin/activate反之,則直接在目錄下 deactivate即可。因此,可能需要重新install django- Activate virtualenv: using $ source bin/activate- Install Django: using (yourenvnamehere)$ pip install django.
Install Python3 on OS X, virtualenv &amp; virtualenvwrapper http://m.ahfyzs.com/content/15/0907/10/175261_497421378.shtml 2015/9/7 10:21:51
Install Python3 on OS X, virtualenv &virtualenvwrapper.However, there is one important remark about the version of pyvenv you have installed: only if you installed Python 3.4 or latter, pyvenv will also install pip when creating a new virtual environment.$ mkvirtualenv --python=python3_path myenvwhere python3_path is the path of python3, which can be found with.$ pythonyou activate python 3!
The Best Free Screen Recorder - Ubuntu http://m.ahfyzs.com/content/15/0826/01/175261_494758704.shtml 2015/8/26 1:48:51
The Best Free Screen Recorder - Ubuntusudo add-apt-repository ppa:maarten-baert/simplescreenrecordersudo apt-get updatesudo apt-get install simplescreenrecordersudo apt-get install simplescreenrecorder-lib:i386to uninstall : sudo apt-get remove --purge simplescreenrecorder.
Does Mikogo run with 64bit Linux? http://m.ahfyzs.com/content/15/0816/11/175261_492060290.shtml 2015/8/16 11:35:01
Does Mikogo run with 64bit Linux?If you get an error such as:./mikogo: error while loading shared libraries: libXtst.so.6: cannot open shared object file: No such file or directoryyou have to to install the 32bit libraries with the following command:sudo apt-get install ia32-libs.sudo apt-get install libgtk2.0-0:i386 libnss3:i386 libcurl3-gnutls:i386 libidn11:i386 libpango1.0-0:i386 libpangox-1.0-
How to install Mikogo in Ubuntu 12.04 http://m.ahfyzs.com/content/15/0815/13/175261_491782728.shtml 2015/8/15 13:19:42
How to install Mikogo in Ubuntu 12.04Note;wget http://download.mikogo4.com/mikogo.tar.gz.sudo mv mikogo4.5 /usr/lib/sudo ln -s /usr/lib/mikogo4.5/mikogo /usr/bin/mikogo.Now, every time you want to open Mikogo from terminal, just type “mikogo” and hit enter.Save as this icon and move it to /usr/lib/mikogo4.5/:sudo gedit /usr/share/applications/mikogo.desktop.Icon=/usr/lib/mikogo4.5/mikogo.png.
Virtualbox not seeing any usb devices in the usb filters settings http://m.ahfyzs.com/content/15/0815/04/175261_491717532.shtml 2015/8/15 4:52:11
Virtualbox not seeing any usb devices in the usb filters settingsThis may help you access the USB devices in your guest OS hosted in Ubuntu。sudo apt-get install gnome-system-tools。Click Manage Groups, find vboxusers, click properties, add your own user name and any other desired users to the vboxusers group.
How to deploy Web-CAT automatic grading system on Ubuntu 14.04 http://m.ahfyzs.com/content/15/0813/14/175261_491388122.shtml 2015/8/13 14:42:02
Configuration: /etc/tomcat7/Logs: /var/logs/tomcat7/Cache: /var/cache/tomcat7/Default apps root (where to place your apps): /var/lib/tomcat7/webapps/Tomcat Admin app: /usr/share/tomcat7-admin/Go to tomcat admin interface, upload the war file and deploy the app:After the tomcat admin finishes processing web-CAT war file successfully, you should see this message at the top:
Mac技巧之給蘋果電腦換 SSD 固態(tài)硬盤和遷移數(shù)據(jù)的教程 http://m.ahfyzs.com/content/15/0611/09/175261_477311832.shtml 2015/6/11 9:03:53
前兩天給我的老 MacBook Pro 升級了一下,從機(jī)械硬盤換成 SSD,固態(tài)硬盤就是爽啊。找個(gè)硬盤盒,把 SSD 插在里面,接入 Mac 的 USB 口。用 Carbon Copy Cloner(官網(wǎng)下載)把原硬盤的數(shù)據(jù)鏡像到 SSD,左邊選原硬盤,右邊選新硬盤,左下角可以去掉一些不想被鏡像過去的文件以節(jié)省空間和時(shí)間(比如電影)。SSD 比原硬盤小也沒問題,被鏡像過來數(shù)據(jù)小于 SSD 容量就行。
java提高篇(二三)-----HashMap http://m.ahfyzs.com/content/15/0610/13/175261_477129964.shtml 2015/6/10 13:54:38
void addEntry(int hash, K key, V value, int bucketIndex) { //獲取bucketIndex處的Entry Entry<K, V> e = table[bucketIndex]; //將新創(chuàng)建的 Entry 放入 bucketIndex 索引處,并讓新的 Entry 指向原來的 Entry table[bucketIndex] = new Entry<K, V>(hash, key, value, e); //若HashMap中元素的個(gè)數(shù)超過極限了,則容量擴(kuò)大兩倍 if (size++ >= threshold) resize(2 * table.length); }
Mac firefox不能播放 (Safari可以) http://m.ahfyzs.com/content/15/0524/10/175261_472857336.shtml 2015/5/24 10:58:53
intellij idea hadoop mapreduce 開發(fā)調(diào)試 http://m.ahfyzs.com/content/15/0505/16/175261_468257891.shtml 2015/5/5 16:29:48
intellij idea hadoop mapreduce 開發(fā)調(diào)試。在idea中的hadoop程序開發(fā)(MAC或Linux)4.配置構(gòu)件(artifacts):名稱(name),類型(Type),構(gòu)件時(shí)重新編譯打包(Build on make),輸出目錄(Output directory),輸出規(guī)劃(Output Layout),選擇當(dāng)前模塊的輸出構(gòu)件。8.配置運(yùn)行參數(shù):main函數(shù)為RunJar,運(yùn)行參數(shù)為(①wordcount.jar構(gòu)件的的jar包,②主類,③參數(shù)一:輸入,④參數(shù)二:輸出),保存,OK。