自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(96)
  • 收藏
  • 关注

原创 install matlab iso on ubuntu

1. Create a mount lacationsudo mkdir /media/iso2. Mount isosudo mount -o loop ~/Downloads/Matlab2012/Matlab.iso /media/iso3. Installcd /media/iso/Matlab2012/sudo ./install4. Activate by

2015-02-01 04:45:05 969

转载 VirtualBox NS_ERROR_FAILURE (0x80004005)

http://www.stumiller.me/fixing-vagrant-osx-mavericks-update/sudo /Library/StartupItems/VirtualBox/VirtualBox restart

2015-01-20 01:40:15 8046

转载 How to copy values of an array into another array

http://www.itcsolutions.eu/2010/12/29/tutorial-java-6-4-2-how-to-copy-values-of-an-array-into-another-array/Based on this assumption, it is important to understand that the elements of an arrayare

2014-12-16 13:47:16 767

原创 Intersection of Two Linked Lists

/* Write a program to find the node at which* the intersection of two singly linked lists begins.* This solution runs O(n) time.** Basic idea:* 1. Traverse the two li

2014-12-14 23:26:40 557

转载 how do I delete an Eclipse project when I've already deleted the folder and contents?

http://superuser.com/questions/253831/how-do-i-delete-an-eclipse-project-when-ive-already-deleted-the-folder-and-contTry removing directly the project within your workspace, within:\.met

2014-12-14 08:05:04 645

转载 How to create an RMI system

http://patriot.net/~tvalesky/easyrmi.htmlhttp://userpages.umbc.edu/~tarr/dp/lectures/RMI.pdfhttp://www1.cs.columbia.edu/dcc/nestor/presentations/java-rmi/java-rmi-handouts.pdf

2014-11-21 04:24:21 711

转载 Fix git “not currently on any branch” after merge conflicts

Not sure what happened, but you could fix it easily by creating a new branch and then merging it:git branch lost_changesgit checkout mastergit merge lost_changesgit branch lost_changesgit che

2014-11-21 03:54:29 1559

转载 # Not currently on any branch. nothing to commit (working directory clean)

http://stackoverflow.com/questions/1745464/git-commit-problemsShort answer:git push -u origin masterLonger answer:You're most likely trying to push commits to a branch that wasn't create

2014-11-21 03:35:04 6504

转载 Restore a deleted file in a Git repo

Find the last commit that affected the given path. As the file isn't in the HEAD commit, this commit must have deleted it.git rev-list -n 1 HEAD -- Then checkout the version at the commit before.

2014-11-21 03:00:21 609

转载 10 Example of Hashtable in Java – Java Hashtable Tutorial

http://javarevisited.blogspot.com/2012/01/java-hashtable-example-tutorial-code.html

2014-11-21 01:15:23 620

转载 Split a string using String.split()Tag(s): String/Number

http://www.rgagnon.com/javadetails/java-0438.htmlThe String class has a split() (since 1.4) method that will return a String array.public class StringSplit { public static void main(Stri

2014-11-21 00:54:29 521

转载 Parsing Strings with split

http://pages.cs.wisc.edu/~hasti/cs302/examples/Parsing/parseString.html

2014-11-21 00:29:50 612

转载 Simple Queue Impliment in C

http://ben-bai.blogspot.com/2012/04/simple-queue-data-structure-in-ansi-c.html

2014-11-13 13:37:32 667

转载 did you run git # update-server-info on the server?

https://help.github.com/articles/generating-ssh-keys/

2014-11-13 13:10:29 2508

转载 How to create folder in github repository?

http://stackoverflow.com/questions/12258399/how-to-create-folder-in-github-repositoryFirst you have to clone the repository to you local machine git clone github_url local_directoryThen y

2014-10-29 12:26:28 1088

转载 int and char conversion

http://stackoverflow.com/questions/5029840/convert-char-to-int-in-c-and-cDepends on what you want to do:to read the value as an ascii code, you can writechar a = 'a';int ia = (int)a; /* note

2014-10-01 21:52:18 638

转载 How to create a bootable USB stick on OS X

http://www.ubuntu.com/download/desktop/create-a-usb-stick-on-mac-osx

2014-09-24 11:59:51 800

转载 Installation/FromUSBStick

https://help.ubuntu.com/community/Installation/FromUSBStick

2014-09-24 11:58:27 624

转载 Adding new Code to your GitHub Repository

http://annasob.wordpress.com/2009/10/18/adding-new-code-to-your-github-repository/

2014-09-18 11:22:45 600

转载 “did you run git update-server-info” error on a Github repository

http://stackoverflow.com/questions/9343189/did-you-run-git-update-server-info-error-on-a-github-repository

2014-09-18 11:20:50 671

转载 How to get the current time in milliseconds in C Programming?

http://stackoverflow.com/questions/8558625/how-to-get-the-current-time-in-milliseconds-in-c-programming#include #include int main() { clock_t t1, t2; t1 = clock(); int i; fo

2014-03-24 09:39:59 1104

转载 Determinant and area of a parallelogram

https://www.khanacademy.org/math/linear-algebra/matrix_transformations/determinant_depth/v/linear-algebra---determinant-and-area-of-a-parallelogram

2014-03-21 01:26:08 992

转载 Why iperf dual traffic in 100Mbps envrionment is much less than 100M?

http://archive.ncsa.illinois.edu/lists/iperf-users/apr06/msg00011.htmlhttp://archive.ncsa.illinois.edu/lists/iperf-users/apr06/msg00012.htmlI cant be sure, but that sounds like you might be

2014-03-10 22:03:57 672

转载 iperf网络测试工具的使用

http://blog.csdn.net/wolongzhumeng/article/details/8859085公司最近测试一个产品, 是linux的VPN服务器,需要测试该VPN服务器的吞吐量性能,由于Avalanche与我们的VPN服务器不能完全兼容,又不允许我们对VPN服务器进行改动,所以只能借助其他的工具。找来找去,发现Iperf是个既简单又有点知名度的的工具,决定

2014-03-07 12:44:25 1670

转载 Tee Command Usage Examples

http://linux.101hacks.com/unix/tee-command-examples/Tee command is used to store and view (both at the same time) the output of any other command.Tee command writes to the STDOUT, and to a

2014-03-07 12:06:41 967

转载 Why do you need to put #!/bin/bash at the beginning of a script file?

http://stackoverflow.com/questions/8967902/why-do-you-need-to-put-bin-bash-at-the-beginning-of-a-script-file46 down vote favorite20I have made Bash scripts before and t

2014-03-07 11:14:54 763

转载 In Wired Connection settings save option is getting grayed out

http://askubuntu.com/questions/258876/in-wired-connection-settings-save-option-is-getting-grayed-outI faced the same problem, the way around is to do it from command line.Go to the file/et

2014-03-07 04:39:25 774

转载 How to make a KML/KMZ file in Google Earth?

First, a KMZ is just a KML file inside a .ZIP file (despite the .kmz extension) so you can open the file in a program that opens zip files, then open the kml file in a text editor.https://produc

2014-03-06 02:56:39 1549

转载 How to set number of threads in OpenMP?

http://software.intel.com/sites/products/documentation/doclib/iss/2013/compiler/cpp-lin/GUID-371AAA48-F691-4F8A-998C-4BD761817B12.htmUsing the OpenMP* APIThe OpenMP* API specification provides t

2014-03-05 10:35:29 1540

原创 How to run OpenMP on Linux?

gcc -fopenmp foo.cFor Bash Shell:export OMP_NUM_THREADS=4./a.out

2014-03-04 12:00:12 758

转载 How to Debug C Program using gdb in 6 Simple Steps

http://www.thegeekstuff.com/2010/03/debug-c-program-using-gdb/Earlier we discussed the basics of how to write and compile a C program with C Hello World Program.In this article, let us dis

2014-02-27 01:43:45 832

转载 python中的try/except/else/finally语句

http://www.cnblogs.com/windlazio/archive/2013/01/24/2874417.html与其他语言相同,在python中,try/except语句主要是用于处理程序正常执行过程中出现的一些异常情况,如语法错误(python作为脚本语言没有编译的环节,在执行过程中对语法进行检测,出错后发出异常消息)、数据除零错误、从未定义的变量上取值等;而

2014-02-13 04:50:46 1463

转载 socket.error: [Errno 48] Address already in use

http://stackoverflow.com/questions/19071512/socket-error-errno-48-address-already-in-use$ ps -fA | grep python 501 81651 12648 0 9:53PM ttys000 0:00.16 python -m SimpleHTTPServer

2014-02-12 12:46:40 2147

原创 通过浏览器浏览本机文件夹

在浏览器地址栏输入:file:///Users/

2014-02-12 04:51:51 938

转载 How to enable syntax highlighting and other options in VIM

http://geekology.co.za/article/2009/03/how-to-enable-syntax-highlighting-and-other-options-in-vimHow to enable syntax highlighting and other options in vim10 Mar 2009Vim is a popular com

2014-02-12 04:45:19 1100

转载 MATLAB小技:从文本数据第N行开始读取

http://www.eetop.cn/blog/html/03/6503-23236.html因为用ocnprint从Cadence导出的文本数据中第一行会有留白,很多人介绍的方法都是手工删除前面的空白或空白和文字。个人觉得比较麻烦。其实如果在MATLAB中可以用textread命令来控制从第N行开始读取数据。比如输出的原始数据,第1行是空白数据,第2行是数据名称,第3行是空

2014-01-28 11:11:17 10869

转载 C argc and argv Examples to Parse Command Line Arguments

http://www.thegeekstuff.com/2013/01/c-argc-argv/Whenever you execute a program on a terminal, you can pass some arguments that are expected by the program, which can be used during the executi

2014-01-25 01:07:24 2853

转载 Code a network packet sniffer in python for Linux

http://www.binarytides.com/python-packet-sniffer-code-linux/Basic SnifferSniffers are programs that can capture/sniff/detect network traffic packet by packet and analyse them for various r

2014-01-24 02:49:34 2364

转载 使用iperf测试网络性能

http://blog.csdn.net/evenness/article/details/7371845iperf 是一个 TCP/IP 和 UDP/IP 的性能测量工具,能够提供网络吞吐率信息,以及震动、丢包率、最大段和最大传输单元大小等统计信息;从而能够帮助我们测试网络性能,定位网络瓶颈。iperf是开源的,源代码可以从http://sourceforge.net/pro

2014-01-22 21:40:56 1229

转载 HowTo: Use cat Command In Linux / UNIX

http://www.cyberciti.biz/faq/howto-use-cat-command-in-unix-linux-shell-script/cat command SyntaxThe syntax is as follows: cat filenamecat options filenamecat file1 file2cat file1 file2 >

2014-01-16 03:56:56 836

空空如也

空空如也

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

TA关注的人

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