Recent Notes

Displaying notes 1 - 10
Created by Dr. Xi on January 03, 2015 17:15:47    Last update: January 03, 2015 17:15:47
Corrected.
Created by Dr. Xi on October 14, 2008 22:43:43    Last update: January 03, 2015 17:14:44
With StringCharacterIterator and StringBuilder : import java.text.CharacterIterator; import java...
Created by google.YN9MZ2BJ on December 30, 2014 02:27:40    Last update: December 30, 2014 02:27:40
you're missing some break statements
Created by bvdb on December 11, 2014 06:17:36    Last update: December 11, 2014 06:17:36
Is it safe to say that all new MyInterface() { ... } constructs will result in non-synthetic classes ?
Created by voodoo on September 25, 2012 19:33:02    Last update: October 31, 2014 12:34:25
This a step-by-step example of how to create the files for GNU automake. Put the C source file in directory src ( cat src/hello.c ): #include <config.h> #include <stdio.h> ... Run autoscan to generate configure.scan . Rename configure.scan : mv configure.scan configure.ac Edit configure.ac . Update this line: AC_INIT([FULL-PACKAGE-NAME], [VERSION] , [BUG-REP... Add this line after AC_INIT : AM_INIT_AUTOMAKE([foreign -Wall -Werror]) Add this line before AC_OUTPUT : AC_CONFIG_FILES([Makefile src/Makefile]) Create file Makefile.am ( cat Makefile.am ): SUBDIRS = src Create file src/Makefile.am ( cat src/Makefile.am ): bin_PROGRAMS = hello hello_SOURCES = hello.c Run these commands: $ aclocal $ autoheader $ automake --add-miss... The file configure is generated after autoconf is run. Build with: $ ./configure $ make Create tarball for distribution with: $ make dist...
Created by woolf on October 11, 2014 17:13:16    Last update: October 11, 2014 17:13:16
To use a proxy to git: $ git config --global http.proxy http://proxyuser:... or $ git config --global https.proxy http://proxyuser... To unset proxy: $ git config --global --unset http.proxy $ git ... To see the settings: $ cat ~/.gitconfig
Created by woolf on October 11, 2014 15:02:46    Last update: October 11, 2014 15:03:50
Set these environment variables to make git print verbose info. $ GIT_CURL_VERBOSE=1 GIT_DEBUG_LOOKUP=1 GIT_TRANSL...
Created by magnum on October 08, 2014 11:29:18    Last update: October 08, 2014 11:29:18
Example C code to set the "Type Of Service" (TOS) field, lifted from http://stackoverflow.com/questions/11429403/how-to-set-message-priority-using-tos . #include <string.h> #include <netdb.h> i...
Created by voodoo on September 23, 2014 22:33:08    Last update: September 23, 2014 22:36:21
I upgraded Ubuntu to 14.04 (accepted all defaults when prompted), but then the desktop just refused to start. It's flashing black screen and some desktop image. It won't even boot in recovery mode! I booted in command line to troubleshoot. After a day or two playing with it, I decided that might be caused by an incompatible video driver. Some good information is available here: https://wiki.ubuntu.com/X/Troubleshooting/VideoDriverDetection . I copied some text here for reference cause I can't say it better. Determine the PCI ID of the chip: $ lspci -nn | grep VGA 01:00.0 VGA compatible c... Here, the PCI ID is 1002:71c7 . Now look in the PCI ID registry to see which driver is used. (Drop the colon ':' when doing this.) $ grep -i 100271c7 /usr/share/xserver-xorg/pci/*.i......
Created by voodoo on September 23, 2014 21:27:31    Last update: September 23, 2014 21:27:31
If you downloaded a debian package to the local hard drive, use dpkg to install the package: $ sudo dpkg -i package_name.deb
Previous  1 2 3 4 5 6 7 8 9 10 Next