cc.byexamples.com
July | 2008 | c/c++ programming by examples
http://cc.byexamples.com/2008/07
C/c programming by examples. We share the c/c coding by examples. Skip to primary content. Skip to secondary content. Monthly Archives: July 2008. Calling Lua function from C. July 15, 2008. Calling Lua function from c is very simple. Value passing between c and Lua goes through stack, Lua C API provides a convenience ways for you to call Lua function from C. To call Lua function, you need to specify:. 2 Parameters of function call. 3 Return values expected ( Lua function support multiple results reture).
linux.byexamples.com
Remove all .svn directories at once » Linux by Examples
http://linux.byexamples.com/archives/195/remove-all-svn-directories-at-once
We explain every GNU/Linux command by examples in this blog! Remove all .svn directories at once. January 19th, 2007 toydi Posted in Common. Hits: 88164 8 Comments. When you check out a project code base from a. Repository, each downloaded directory (from top to the deepest) contains a. Hidden directory that keeps svn’s necessary metadata. If you want to remove them all at once, here’s one way to do it:. Project dir $ find -name .svn -print0 xargs -0 rm -rf. Find -name .svn. Xargs -0 rm -rf. 8 Responses ...
linux.byexamples.com
xmllint » Linux by Examples
http://linux.byexamples.com/archives/category/text-manipulation/xmllint
We explain every GNU/Linux command by examples in this blog! Your XML friend XPATH command line xmllint. March 5th, 2011 mysurface. Do you have a large XML to analyze? To query for info? Maybe you are using a XML viewer, a string search for that. But if your XML have a proper structure and you have understand enough for the structure, you may want to consider to use XPATH. [Q] What is XPATH? XPath is a […]. Posted in Text Manipulation. Hits: 257525 100 Comments. Subscribe LBE by Email. News [17 Feb 2008].
linux.byexamples.com
How to trigger xchat from firefox? » Linux by Examples
http://linux.byexamples.com/archives/318/how-to-trigger-xchat-from-firefox
We explain every GNU/Linux command by examples in this blog! How to trigger xchat from firefox? October 4th, 2007 mysurface Posted in firefox. Hits: 57303 8 Comments. When you hitting irc url such as irc:/ irc.freenode.net/lbe. In firefox, is it possible to open up in xchat? The answer is yes. How? You need to add two lines of firefox config. Insert the line below into filter text bar to check. Network.protocol-handler.app.irc. Network.protocol-handler.external.irc. Set it to true. And set the string as.
linux.byexamples.com
easily extract a column of data from multiple columns » Linux by Examples
http://linux.byexamples.com/archives/81/easily-extract-a-column-of-data-from-multiple-column
We explain every GNU/Linux command by examples in this blog! Easily extract a column of data from multiple columns. October 2nd, 2006 mysurface Posted in cut. Hits: 98101 5 Comments. To extract a column of data from multiple column, we can use cut. Usually cut use to extract value from huge trace file or data file such as /etc/passwd. To extract all available user name from /etc/passwd, you can do this. Cut -d":" -f1 /etc/passwd. Cut extract value line by line, to put all into 1 line, you can use xargs.
linux.byexamples.com
GNU Bourne-Again SHell BASH, a well known shell for linux. » Linux by Examples
http://linux.byexamples.com/archives/category/bash
We explain every GNU/Linux command by examples in this blog! Export environment variable from a bash script. February 1st, 2011 mysurface. You may want to create a bash script that export some environment variable for your shell, but infect every execution of bash script is a unique session, where the variable export within it can’t be carry backward back to the bash shell. For example you have a env.sh which contains some environment variables export HELLO=hello […]. Hits: 153767 13 Comments. You may al...
linux.byexamples.com
copy files and create the directories if it doesn’t exist » Linux by Examples
http://linux.byexamples.com/archives/569/copy-files-and-create-the-directories-if-it-not-exist
We explain every GNU/Linux command by examples in this blog! Copy files and create the directories if it doesn’t exist. June 3rd, 2011 mysurface Posted in dirname. Hits: 136270 24 Comments. It always have a need for this simple operation. I wanna copy certain files to a destination, but I wanna preserved the sub directories structure, any cp option to set? By just using cp command, until today, I do not see such option for it. You need additional commands, dirname and mkdir. Make directory on demand.
linux.byexamples.com
KMess, a msn messenger client for linux » Linux by Examples
http://linux.byexamples.com/archives/362/kmess-a-msn-messenger-client-for-linux
We explain every GNU/Linux command by examples in this blog! KMess, a msn messenger client for linux. January 25th, 2008 mysurface Posted in kmess. Hits: 57970 10 Comments. Majority of the linux users who have msn account will use pidgin. Me myself using pidgin as an IM client for my MSN account. There are few features of Windows Live Messenger that I wish to have it but its not with pidgin, such as P2P file transferring, personal emoticon, offline message etc. You may also download it from here. DonR...
linux.byexamples.com
Setting Environment Variable » Linux by Examples
http://linux.byexamples.com/archives/35/setting-environment-variable
We explain every GNU/Linux command by examples in this blog! August 29th, 2006 liewsheng Posted in echo. Hits: 42100 2 Comments. You may wonder how you knowing the hostname or machine type you are log in. Actually we have a lot way to do so, one of them is print out the environment variable set. How we can set this variable? Export is the command used in bash shell, example:. Export VARIABLE NAME="any data you want to put in". To display the variable set, echo can be use to display it:. News [17 Feb 2008].
linux.byexamples.com
setting up http proxy at console » Linux by Examples
http://linux.byexamples.com/archives/187/setting-up-http-proxy-at-console
We explain every GNU/Linux command by examples in this blog! Setting up http proxy at console. December 30th, 2006 mysurface Posted in Admin. Hits: 301592 29 Comments. Setting up proxy at Firefox do not have effects at console, which means your wget, ssh, apt-get, yum etc do not access through the proxy you set at Firfox browser. To setup http proxy at console, you can do as bellow, assume the proxy IP is 219.93.2.113 and port 3128. Export http proxy='http:/ 219.93.2.113:3128/'. May 28th, 2009 at 7:39 pm.