C++ References Reference of the C++ Language Library, with detailed descriptions of its elements and examples on how to use its functions: http://www.cplusplus.com/reference/ C++ reference: http://www.cppreference.com/w/ C++ Styles I compile a list of C++ styles on the Internet. http://geosoft.no/development/cppstyle.html http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml http://www.mactech.com/articles/develop/issue_02/C%2B%2B_Style_Guide_v007.html http://www.cs.uga.edu/~dkl/1302/Fall99/style.html
Tag: Tutorial
Outlook-style Email Reply Header in Thunderbird
Posted onThunderbird’s email reply header is short and not like the ones in Outlook and other email clients. Thunderbird provides several integrated reply headers. However, the Outlook-style reply header with sender, receiver, date, and other information are clear and useful (e.g. my boss cc’ed an email to me to let me handle a request and I
Read more
How to Activate Windows 7 using MAK Activation
Posted onThe Windows 7 Multiple Activation Key (MAK) can be used to activate Windows 7 Enterprise installed with the Windows 7 Volume Licence DVD provided by Microsoft to enterprise/university customers. How to activating Windows 7 with MAK: Make sure your system is connecting to the Internet. During Windows 7 activation, Windows will connect to Microsoft.com for
Read more
How to Print Notes on a PDF File with Acrobat, Adobe Reader and Foxit Reader
Posted onPrint PDF with notes is not that straightforward, especially when you want specific styles of the printed notes/comments. In this post, we introduce how to print notes on a PDF file with Acrobat, Adobe Reader and Foxit Reader. Acrobat The detailed method is posted on Adobe’s blog: Printing Sticky Notes on a PDF. Excerpt of
Read more
HP Compaq BIOS Crisis Recovery from a Failed BIOS Flashing Using a USB Flash Disk
Posted onI tried to flash my HP Compaq CQ35-240TX’s BIOS to F.15 but unfortunately failed. The computer turned to white screen. When I restarted (powered off then boot again), this is no response any more: the hard disk and caps lock’s LED keep blinding. I thought “Oh my God! I must send it to HP to
Read more
Setting Up POP3/IMAP Email Box on Nokia E71
Posted onThe software in Nokia E71 already support POP3 and IMAP email box. But we may lead to install Nokia messaging and setting up account of Nokia messaging. Storing our emails in remote servers isn’t a secure way. And why not use IMAP directly if it is supported by the system software? How to set up
Read more
Thunderbird Tips: Default Descending Email Sort Order and Inline Quote When Reply
Posted onThunderbird is a great email client and what make it special is deeply configurable like Firefox. For me, I like to view email in the descending sort order and inline quote relied email content when replying emails. Let’s look at how to set the default order as descending sort order and quote mode as inline
Read more
Floating Point in Bash Shell
Posted onIntegers are natively supported in Bash shell. However, what if we use floating point in Bash shell? The short and direct answer is using ‘bc‘ command – “An arbitrary precision calculator language.” Just run bc and enter some floating point calculation expression, such as “1.2+8.2”, bc will give the result. In a script, we certainly
Read more
Makefile Tutorials
Posted onMake is a utility that automatically builds executable programs and libraries from source code by reading files called makefiles which specify how to derive the target program. Make is widely used, especially in Unix/Linux world. More introductions to Make and it’s history can be found on Wikipedia. In this post, I list articles for Makefile
Read more
x86-64 ISA / Assembly Programming References
Posted onThis post collect the reference resource for x86-64 (also know as Intel 64, AMD 64) ISA / assembly language programming. x86-64 is a 64-bit extension of the Intel x86 instruction set. ==x86-64 Assembly Programming== Introduction to Computer Systems Resources (15-213 Introduction to Computer Systems Resources from CMU) Lots materials for learning machine-level programming on the
Read more
Inline Assembly with GCC on Linux
Posted onOne cool feature of gcc is that it can inline assembly into C code. With inline assembly, the programmer can precisely control the execution of the processor, such as forcing variables to use registers, getting special processor state efficiently, and writing critical efficient code in assembly by hand. I compile a list of tutorials from
Read more
GNU C Reference Manual
Posted onWhen we program in C, a C reference by hand is usually useful. The GNU C Reference Manual provides us a good reference for the C programming language implemented by the GNU C Compiler. “This manual is strictly a reference, not a tutorial. Its aim is to cover every linguistic construct in GNU C.” GNU
Read more
How to Generate Mixed Source and Assembly List from Source Code using GCC
Posted onWhen debugging and optimizing programs, developers sometimes need to generate and investigate into the assembly generated by the compiler. Generating a mixed source and assembly list will help a lot for debugging and optimization. gcc can achieve this by working with the assembler. Generate assembly list mixed with the source code Just add these gcc
Read more
OCaml Learning Materials
Posted onOCaml is an interesting functional language. There are lots learning materials on the Internet. I compile a list of resources for OCaml learning and reference. Recommended OCaml learning and reference material Online book of Real World OCaml by Yaron Minsky, Anil Madhavapeddy, Jason Hickey. A very good tutorial by Jason Hickey: http://www.cs.caltech.edu/courses/cs134/cs134b/book.pdf. The OCaml system
Read more
4 Ways of Converting String to Int in C++
Posted onIt is common to convert a string (std::string) to integer (int) in C++ programs. Because of the long history of C++ which has several versions with extended libraries and supports almost all C standard library functions, there are many ways to convert a string to int in C++. This post introduces how to convert a
Read more
Java Calling Native Functions in .DLL on Windows
Posted onHow to call a function in .dll from Java on Windows is introduced in this post with an example. Platforms used: OS: Microsoft Windows XP [5.1.2600] C to .dll compiler: MS Visual Studio 2008 JDK: java -version java version “1.6.0_05” Java(TM) SE Runtime Environment (build 1.6.0_05-b13) Java HotSpot(TM) Client VM (build 10.0-b19, mixed mode, sharing)
Read more
How to Connect to MySQL in JSP
Posted onWe use tomcat as the container used for instructions in the post. 1) Download the driver mysql-connector-java-*.*.*-bin.jar and put it into WEB-INF/lib/, and remember to restart tomcat. 2) The example code as follows. String driverName=”com.mysql.jdbc.Driver”; String userName=”username”; String userPasswd=”password”; String dbName=”dbname”; String tableName=”tablename”; String url=”jdbc:mysql://localhost/”+dbName+”?user=”+userName+”&password=”+userPasswd; Class.forName(“com.mysql.jdbc.Driver”).newInstance(); Connection conn=DriverManager.getConnection(url); Statement statement = conn.createStatement(); String sql=”SELECT *
Read more
How to Disable WordPress Visual Editor
Posted onThe visual editor provides a visual editor to write and format posts. However, it tries to format the HTML tags written in the HTML editor when turning to the visual editor, and may delete some HTML tags and screw up HTML tags. Even when we set the editor to HTML editor, WordPress may automatically turn
Read more
Controlling Display of WordPress Widget with PHP Code
Posted onI am always wondering how to display different Widgets in WordPress depending on the page/post/category etc. I ever tried some plugins that is for specific purpose. However, they are not flexible enough for all my needs. For example, I want a widget that contains AdSense ad not display on certain posts that I selected and
Read more
BBCode Support in WordPress
Posted onBBCode is another markup language to format posts widely by forums, which is easier and clearer than HTML. WordPress provides a visual editor and some easy-to-use tools, but no built-in BBCode support. Let’s see how to add BBCode support in WordPress. We can add BBCode support to WordPress with the BBCode plugin by bOingball that
Read more