. It can be run on KDE as well. It's not really a big problem. So, with Linux development is possible, but we are not enough to understand. The original post is here. I changed gtk2theme from OXGEN-GTK to Gnome's default, and I never saw crash again.The only problem now is that I have imported the project and cannot be identified. The package cannot be parsed. When importing other projects, you should create a project and then import something else. D
official website recommended Linux installation method, but the speed is relatively slow, than one of the above method is to have a graphical interface
sudo add-apt-repository ppa:kilian/f.luxsudo apt-get updatesudo apt-get install fluxgui3. Add as Boot startSmall series used is the first program, directly download the Xflux file, but each boot need to lose their own command, which is very troublesome, so did a script xflux.sh, small script plac
//////////////////////////////////////// /////////////////
// Bare bones browser launch //
// Version 1.5 //
// December 10,200 5 //
// Supports: Mac OS X, GNU/Linux, UNIX, Windows XP //
// Example usage ://
// String url = "http://www.centerkey.com /";//
// Barebonesbrowserlaunch. Openurl (URL );//
// Public domain software -- free to use as you like //
//////////////////////////////////////// ////////////
See how many files and folders are in the directory, in the terminal input
ls|wc-w
See how many files are in the directory, enter in the terminal
ls|wc-c
Look at the number of files under the folder, how many subdirectories, in the terminal input
ls-l|wc-l
If you only want to know the number of files, in the terminal input/bin/ls-l|grep^-|wc-l查看每个磁盘的大小,每个目录的所占大小。df -hl 比如mac
1 Go to your home directoryCD ~2 Edit. bashrc fileVI. BASHRC3 Add the following code to the end of the filefunction git_branch { Branch= "' Git branch 2>/dev/null | grep" ^\* "| sed-e" s/^\*\//"'" if ["${bra NCH} "! =" " ];thenif [" ${branch} "=" (No branch) " ];then Branch=" (' Git rev-parse--s Hort HEAD ' ...) ' fi "($branch)" fi}export PS1= ' \[email protected]\h \[\033[01;36m\]\w\[\033[ 01;32m\]$ (git_branch) \[\033[00m\] \$ '4 Save Exit5 Executing the load comman
skip function.""Set to automatically load when files are changedSet Autoread"" Quickfix modeAutocmd FileType c,cpp map "" Code completionSet Completeopt=preview,menuThe shared clipboardSet clipboard+=unnamed"You can use the mouse anywhere in the buffer (similar to the workspace in office, double-click the mouse to navigate)Set Mouse=aSet selection=exclusiveSet Selectmode=mouse,keyFileType plugin indent on"is divided into three parts: file on, file plugin on, and file indent on."Indicates the au
Some places are the network address and the interface card Physical address binding, when changing the network card or other computer may not be on the network, the following describes the change of physical address (MAC addresses) method. Divided into temporary changes and long-term changes in two cases, both methods do not actually change the actual network card properties.
Temporary changes
The so-called temporary change, refers to the system aft
Tags: profile mac usr command ack directory roo compile srcAfter installing the Go language, but also to set the path, if you do not set the path, the execution of Go will prompt Go:command not found, the hint means that there is no command line. This is because the path is not set yet.The way to set the path is vi ~/.bash_profile, go in the first line to add a row of export path= $PATH:/usr/local/go/bin, you can.Then make the profile effective: sourc
Because Mac OS is a UNIX-like system, the basic and Linux system use is not very different, but the user log on automatically execute the environment variable file differencesMac System:VI ~/.bash_profileLinux systems:ls -A. bash*. bash_history. bash_logout. bash_profile . BASHRCThere are BASH_PROFILE,BASHRC in Linux, the following are the differences:
/
I believe that the students who are familiar with Linux have a problem is that if you want to view a file to a level or multilevel to the CD switch directory, which has a convenient way to switch the wood? Just like shortcut keys.This is the configuration of the custom command in the Linux system, very simple??In file/ROOT/.BASHRC, add the following line:Alias mycommand = "Cd/root"Executing mycommand direct
Both Mac and Linux vim reads the local user directory's configuration fileThe current user home directory creates a new file. VIMRC inside the parameter when vim starts, it automatically loadsReprinted from: http://blog.csdn.net/jiankun_wang/article/details/4125157After the installation of Debian, the remote SSH login, VIM has two problems:1. After setting syntax on in the ~/.VIMRC file, run vim and display
the carriage to the beginning of a row, Move the paper up one line up in the vertical direction. The scrolls on the side of the typewriter need to be rotated on an old-fashioned mechanical typewriter:The word header relative to the paper moves down one line, and then continues to enter the next line. These two actions correspond to: carriage return (CR), which is the return, which is 0x0d in the ASCII table, can be represented by the escape character \ rLine Feed (LF), which is also a newline,
Newext specify the old extension and the new extension, respectively. DIR Specifies the directory where the file resides;2. "LS $dir | grep. $oldext "used to get all files with the old extension in the specified directory dir;3. In the loop, first use the Cut command to "." In the file name. The previous string is clipped and assigned to the name variable, and the current file name is renamed to the new file name.With this script, all the photos ' extensions were successfully modified. To make
There are times when you need to update your local DNS cache, and Mac, Linux, Windows system methods, and even versions are different. Make a note here.
OS X 10.10 System
sudo discoveryutil udnsflushcaches
OS X 10.9 System
Dscacheutil-flushcache; sudo killall-hup mdnsresponder
OS X 10.7–10.8 System
sudo killall-hup mdnsresponder
OS X 10.5–10.6 System
sudo dscacheutil-flushcache
Windows system
In t
Welcome to reprint, reprint please indicate the source of http://blog.csdn.net/zengyangtech/article/details/7019350
Because Android requires a cross-compiling environment when there is a library at the underlying layer, C code needs to be compiled using ndk-build, while Java code needs to be compiled using Android SDK. Since I was not familiar with Eclipse IDE, C code is often written in Notepad during compilation, and then the ndk-Build Environment is built with cygwin, use ndk-build to compil
Methods for obtaining IP and MAC Adr in Linux: struct ifreq {char ifr_name [IFNAMSIZ]; union {struct sockaddr ifru_addr; struct sockaddr Dr; short ifru_flags; int ifru_metric; caddr_t ifru_data;} ifr_ifru;}; www.2cto.com # include
Linux shell mac address conversion convert with sed, convertsed
Convert 0024. b20b. 693f address to 00: 24: b2: 0b: 69: 3f
1. Separated by dots
[Root @ hzswtb2-mpc ~] # Echo "0024. b20b. 693f "| sed-r's/\ B (..) (..) \ B/\ 1: \ 2/g; s /\. /:/G'00: 24: b2: 0b: 69: 3f
2. If the values are separated by colons, convert 0024: b20b: 693f to 00: 24: b2: 0b: 69: 3f. replace it with: And you can remove it;
[Roo
This is a creation in
Article, where the information may have evolved or changed.
1, download the corresponding go installation:
Http://golangtc.com/download
2, in the environment configuration Goroot, Gopath
Ps:
Goroot=c:\go
Gopath=c:\users\tantexian\desktop\dev\gopath\
Where Goroot resembles a JDK configuration:
Goroot=c:\go
Gopath for Project path (similar to Gopath with SRC folder to place source code): gopath=c:\users\tantexian\desktop\
The clinical symptom is that the hard disk has a metal hitting sound, which is the back-to-position sound of the head,One BuG. In fact, the bug is only an energy-saving function in hard disk power management. After the head is restored, it is used to stop the hard disk.
Mac OS X solution, InstallationHdpamHttp://mckinlay.net.nz/hdapm
This problem also occurs in Linux. The solution isHdparm-B 254/dev/sdx
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.