page had some great info Inlining Thanks to this I learned that you CANNOT put registers in both the input and clobber registers Immediates AT T: $ prefix ...
Intro Want to write better? I make this promise: train yourself to never use the following words and experience a writing transformation to new heights of greatness ...
Purchasing Certs from Godaddy are only ~$19 But the $19 cert ONLY gives you ( www.boxaroo.com / boxaroo.com). You cannot just say I also want img. /app. /etc ...
Defining strings In the data segment, you can rather conveniently 'stack' up your definition. Below is an example where I've made a string that starts with time ...
There are a number of routines in 'C' that convert ascii to int/long/etc. for you. Very useful. Problem is, they return '0' when there's an error! Here's where ...
Remember 4DOS? They had this great feature: if you typed a directory all by itself on a command line, it would jump to that directory. It saved you typing all that ...
complete reference at http://www.linuxdoc.org/LDP/abs/html How to trace a bash script Either launch it with the v parameter, or include it in the #!/bin ...
Corvette Connection in Campbell 408 379 1313. Ask for Kevin. 'Couple hundred' to install shocks sways if I give him the parts. 270 Cimino St # C San Jose, CA 95125 ...
BikeLog2009 te Date Venue Minutes Notes Mon 1 4 10 To PDI 54 Smelled coffee roasting near Old County and Center. Over weekend installed new faucets ...
Here's where I found it... http://www.delorie.com/djgpp/doc/brennan/brennan att inline djgpp.html Brennan's Guide to Inline Assembly by Brennan "Bas" Underwood ...
Browsershots.org will render your page for you in many different browsers and show you if it looks ok IE chokes on variables assigned to array elements of lists ...
IE event handler functions Say you set up an event handler like this... element.onmouseover handle mouse over(); The following works in Firefox, but not IE... ...
article helped a lot #!/bin/csh set IPP DIR "/opt/intel/ipp/6.1.0.017/em64t" set IPP LIBS " lippdcem64t lippsem64t lippcoreem64t" gcc g I{$IPP DIR}/include c ...
Proper template design template inline void doMax(const T a, const T b) { f(a b ? a : b); } How do I compile a C program under linux? Make sure to use g ...
This is a topic that has always consufed me, especially since I really cut my teeth on OOP with Java. In Java, you really don't think much about making object copies ...
JC Lawrence wrote this many years ago. It was popular then and seems to continue to help peope tracking pointer nesting and function pointers: int j func(); ...
Wow, THIS had the answer. I messed with pam chroot , but it would work only with a console login, not ssh. Gave up on that approach. The instructions at said ...
In the search page script I found myself having all these global arrays one for each thing I needed to store about the sets of results. There are (currently) 6 ...
@all Macbook pro (Unibody) users After much struggle and gotta zapped by the wisdom of God, I manage to get my TripleHead2Go Digital to work up to 2 x 1920×1080. This ...
site had a great nuts and bolts explanation of MySQL permissions. The UI is nice but it seems to get lost if you get your permissions too tangled, at least if you ...
from 'eWeek' 2 25 02 by Timothy Dyck. I got this article as a handout at Linuxworld in general, driver tuning doubled throughput Oracle9i's many separate ...
#include #include #include #include #include #include void divide time(float min before reset, float reset to value) { float num reset to value; clock ...
Inspired by how rsync works, I sliced and diced a bunch of music files to see if they have hash commonality. sample 1 stats (mp3 '2001'): 1.875 GB of files ...
Links site has Ajax code (that only works with Firefox/Netscape) but also the PHP receptor script page had a short and sweet code snippet showing you how to ...
TODO: clean up... from here: The only difference between multidimensional Fortran and C arrays is the order in which the subscripts appear. Fortran multidimensional ...
This program DOES return 'BIT SET'. It would NOT for BTEST(2,0) , and would for BTEST(1,0) The docs I found were a bit consufing for this intrinsic as to ...
#!/usr/local/bin/php An error occurred on line ', $line, ': ', WandGetExceptionString($wand), ''; exit(); } return $result; } function addText($drw ...
Good science predicts the future. We know enough about biology to know that what we can to do grow more food; and we bet our lives on that...if that science let us ...
Catmull subdivision surface modeling technique generalization of bi cubic (?) uniform B spline (?) surfaces to arbitrary topology Curve Types B spline ...
Seeing is Believing There is great value in seeing something work that was thought to be impossible. The simple act of seeing a highly successful operation or process ...
Make text appear just to browsers w/o IFrame support Info for browsers that don't support iframes. (more on IFRAME here) Disable image toolbar in IE/Firefox meta ...
Handy linux text slicing and dicing: http://dsl.org/cookbook/cookbook 16.html#SEC234 get list of words from a bunch of text files cat .txt tr ' ' '\n' ...
Hall Painting Area: (just walls, not doors or baseboard) 204 sq feet one gallon of Benjamin Moore did 2 coats with just a bit left over Abby's Room ...
Quick start 1. For now, I have this all working via the command line. There are some UI tools, but they cost money or don't seem to work, and I don't want to spend ...
Say you have a page, and you want to submit a form without disturbing the page. You can do this by making the target a hidden IFRAME . The code in the IFRAME ...
This is a great image manipulation program. From a command line it can do things like combine images, crop, resize, etc. Think of it as a command line photoshop ...
Source #include #include #include / ImageMagick header / #include static inline int max(int a, int b) { return a b ? a : b; } / simple container struct for ...
#!/usr/bin/perl # # Name: thumb.pl # Purpose: Demonstrate how to make a thumbnail # # Author: Matt Walsh (mr walsh #64;yahoo.com) use strict; use warnings; use Image ...
Ron Savage has a great set of Perl tutorials here How to make a simple X program that uses ImageMagick see ImageMagickXSlideShow Making an MPEG from JPEGs If ...
Credits Thanks to George Peter Staplin his example was invaluable and can be found at http://www.xmission.com/~georgeps/Xlib JPEG tutorial.html . As you'll see ...
Info Spec here, tutorial Defined in http://www.opengl.org/documentation/current version/ OpenGL 2.0 Also known as glslang nVidia's cG also compatible ...
see slashdot thread and report. Here's a great comparison of the 2. Thoughts: John could run MySQL on Windows too " Mysql might require changing the database ...
This was a little program I wrote for Dale Riley when I started Nuron. It converted an Intel hex file to some format Dale wanted. Probably useless, but it's fun ...
Hey, I put processes to sleep but they don't wake up probably, the ISR or routine that wakes them happens between when you tell the device to do its thing and when ...
Thanks to Adam Powers for the framework used for this demo program #include #include #include #include / see http://www.dinkumware.com/htm cl/signal.html for ...
I really liked the code here and used it for my test rig see also here for a class based example see also here for a c based client and more Unix infrastructure ...
Nice beginners linux site with Emacs help too... http://www.djefer.com/info/linux/index.htm This is a nice summary of basic linux tricks. How do I see a list ...
I've tried to make a really simple, easy way to get logging info from Javascript. The log debug function will either stick in logging data at a place where you have ...
Alert() leaves much to be desired. Here's a simple way to get much better logging. Somewhere on your page, stick this: Then stick this function somewhere in your ...
#include #include #include #include #include / Note, on my machine strerror r does not return int nor does it fill the passed in buffer, so I had to use ...
This is really handy for doing staging of CDROMs and such before burning them. You are creating a filesystem that runs of a flat file 1. Make a 20MB file of zeroes ...
Turn key to ON position. Make sure Odo comes up. Turn to off. Press in odo. Reset switch turn key to ON. The odo. will flash and count down. Keep holding it ...
This makefile demonstrates some neat ways to generalize things which should make maintenance easier... CC gcc SRCS getopts.c OBJS $(SRCS:.c .o) LIBPATH ...
(from http://www.xmission.com/~georgeps/compilation and makefiles.html ) Understanding Compilation Flags and Makefiles This document may be copied and distributed ...
Here's the results I get on a Westville Prestonia 2.8. Starting Tests with order 700 Brute force checksum: 5.608342e 18 3.520000 secs Ddot multiply checksum ...
If you do ping f s data size host ip address Between two hosts you can get it to pound the other guy pretty hard. Then when you CTRL C the app, ping will ...
A Launcher Script #!/bin/bash loops to do 10 loop 0 my file `mktemp p . seprun.XXXXX` exit 1 rm $my file echo "writing to file $my file.txt" while $loop lt ...
MispredictedBranchesTest was used for tests (random case) Counter random case random % predictable case predictable % RESOURCE STALLS.ANY 822738037 ...
connect('localhost', 11211) or die ('no memcached'); // connect to mysql $link mysql connect('localhost', 'msw', ''); assert($link); $db mysql select db('test ...
index ia(1) do i 1,n num ia(index) index num end do ia(n) contains the integers 1 to n in random order, causing memory loads in random order. Because each ...
Texel element of a texture Mipmap pre calculated impages that accompany a main image (MIP multum in parvo latin for much in a small space) Anisotropic ...
#!/bin/bash TARGET "" if $1 then TARGET $1 fi make j 8 $TARGET 2 1 tee build.out grep color iE "error warning undefined reference to $" exit $? MattWalsh ...
Getting the job Wow, what an experience this was. You see, getting the job at Williams was a major achievement to me in the first place. I had been bouncing emails ...
Walkthrough of creating a database and some tables (only first time, enables 'db user' on a local connection to do anything) GRANT ALL PRIVILEGES ON . TO 'db user ...
Replication Must enable binary logging on master server (do we have this on?) When backing up the slave (smart to do, easier than the master), also backup up ...
for the heck of it, here's the dump of my results. This is on a 1Ghz PIII machine with gobs of RAM and a 2 column, 908500 row database (containing the words from ...
I wanted to find out how to interface with SHA through OpenSSL, so I wrote this little program below and ran some tests. Turns out SHA1 runs faster than SHA ...
ParsingCertsWithOpenSSL: Using openSSL to view the contents of a cert. This can be used, for instance, to see the public key. CreatingCertsWithOpenSSL: Using openSSL ...
A hack listing files in one directory use DirHandle; my $test dir "/some dir/somewhere"; my $dump out ""; my $ftt null; if ( e "$test dir") { my $dh new ...
Courtesy of Randal L. Schwartz, in http://www.sysadmin.org, July 2003 Hit the US Time website via the daytime protocol #!/usr/bin/perl use strict; use IO::Socket ...
This requires you use the package...also, replace it with your latitude and longitude! You can also play with an online sunrise calculator here #!/usr/bin/perl w ...
see also: RegularExpressions for more specifics on Perl regular expressions How to recursively get all files starting in a directory How to do file uploading ...
opendir(DIR,"TWiki"); while($file readdir(DIR)) { next if ($file ~ /^\./); next if ($file !~ /\.txt$/); open(thisFile, "TWiki/$file") die "Can't open ...
see getting started doc creating users, creating a db # su postgres bash 3.1$ createuser root could not change directory to "/root" Shall the new role be a superuser ...
Povray seems to need to have you spawn at least 1 more process than you have processors...my guess is that it uses one as a master that doesn't do computation. The ...
On a RHEL4 U2 system, you have to do this to help the configure and make scripts ln s /usr/X11R6/lib64/libX11.so.6 /usr/X11R6/lib64/libX11.a I configured ...
Dell 30" use 94W MacBook Pro uses 37W normally, ~60W playing MAME Matt's Core 2 Duo desktop peaks at 140W playing HL2, otherwise around 94W MattWalsh ...
With my trusty auto ranging Radio Shack multimeter I deduced the following info... DP Pentium D Idle: 188W Playing HL2: Peak: 305...average 280 Energy cost ...
#pragma pack(2) struct test type packed { short int var; double double var2; short int var2; }; #pragma pack() struct test type unpacked { short int var; double ...
Here's how to do it. Introduction There are 2 methods each shown below. NOTE: using profiling with really slow down a program. We're talking 4 10x. So, you may ...
#include #include #define NUM THREADS 5 void thread routine(void data) { // you can't just access 'data' directly it is changing down below! // 'num' ...
great info from https://computing.llnl.gov/tutorials/pthreads/ see also: IntelThreadingToolsExamples 3 Major pieces Thread management create ( pthread create ...
Here's a sample. It's a script I wrote to parse lilo.conf import re import os import popen2 import sys import string # Function to parse out the... # # append ...
Part 1 from an article on IBM's site Now that we've shown you two ways to do it right, we'll provide some code that shows how this random number generation stuff ...
Note: if you don't wait to do this after the page loads, it often doesn't work...hence I use the onload() event (which I learned from John) function test() { ...
Sometimes, you want to play with assembly language without coding it all yourself. Below I use a program which I wanted to analyze to see how its assembly code was ...
This page (partially) represents my personal notetaking from the excellent O'Reilly book, 'Mastering Regular Expressions' by Jeffrey Freidl see also: this on multi ...
This was much harder than I expected. You'd think there'd by an element.removeAllChildren() function. Note you have to remove the children in reverse order as ...
I always find sentences where you repeat a word twice in a row interesting Bob is the one to talk to to find out about auto parts. MattWalsh 17 Mar 2004 ...
How to create a table create table table name ( column 1 name data 1 type , column 2 name data 2 type , ... ) constraints ; ...where the constraints can ...
Misc queries Because MattWalsh still barely can remember to do queries, he keeps a list of ones he figures out for later. Select e.CategoryID, d.eBayCatDesc ...
The source code needs some cleanup as it includes a ton of OpenSSL files. These are notes from Adam Powers, the author of the code the idea is to have a daemon ...
see http://sunsite.utk.edu/gnu/screen/screen toc.html for a comprehensive guide ( C x means CTRL x ) Config file (~/.screenrc) stuff Put in these lines to bind ...
(from notes from our SEO talk at PATCA 1 10 08) XML Site Map Don't use Auditmypc.com, except maybe Windows works Figure out how to generate one Figure ...
Simply enough, a tool like your normal (unix) `cp` command, or (Windows) `copy` command that copies files between systems in a secure encrypted manner. The basic ...
Prepending a header file # sed script to put header.txt above first line # run with sed i f this script filename(s) 1{h; r header.txt D; } 2{x; G; } changes ...
Sometimes you might want to send back data from JavaScript in XML format...maybe you're sending back some really complex data. You can parse it just as easily as ...
great DNS tools here How to close an 'open' DNS server like ours: http://member.dnsstuff.com/info/opendns.php I did allow recursion {216.224.124.98 ...
ShA1Info OpenSSLSHA1ExampleCode shows how to integrate OpenSSL with an application, and how to compute SHA1 TripleDESProject FundamentalDESInfo TripleDESTestProgram ...
To have multiple private keys so you can connect to multiple linux boxes without having to specify i for each one... Create a ~/.ssh/config file Put ...
ExtrA512BitHunt Here's the story of a hunt for a seemingly extraneous 512 bit key Here a site program that monitors SSL traffic and dumps it. This might be a great ...
Migrating a repository (I had to do this with the new eng server) on machine with old repo, do sudo svnadmin dump . boxaroo svn dump on new machine: ...
Kernel Get Kernel debug info from here: http://debuginfo.centos.org/5/x86 64/ For Xen, need kernel debuginfo common 2.6.18 92.1.22.el5.x86 64.rpm and kernel ...
TWiki Administrator User The nop TWikiAdminUser has been added to TWiki to make it possible to login without needing to create a TWiki User, or to temporarily login ...
TWiki Contributor Not an actual user of this site, but a person devoting some of his/her time to contribute to the Open Source TWiki project. TWikiContributor lists ...
TWiki Groups These groups can be used to define fine grained TWikiAccessControl in nop TWiki: New Group: Note: A group topic name must be a WikiWord ...
The nop TWikiGuest User A guest of this TWiki web, not unlike yourself. You can leave your trace behind you, just add your name in TWikiRegistration and create your ...
" }% Site Specific Site wide Preferences Final Preferences FINALPREFERENCES locks site level preferences that are not allowed to be overridden by or ...
The nop TWikiRegistrationAgent User This is a TWiki user used by TWiki when it registers new users. This user has special access to write to , and does not have ...
List of nop TWiki users Below is a list of users with accounts. If you want to edit topics or see protected areas of the site then you can get added to the list by ...
( from here ) Templatized Function You can almost think of templates as macros. In this case, 'T' is just a placeholder for the type or class used. First, 'T' ...
History 8086 designed to mimic 8080 for porting ease 8080 had 16 bits (64k) of addressing, 8 bits per address for up to 64k of memory. (You put 16 bit address ...
of course, this is not a comprehensive list; just some notes of fun/interesting things I discovered See also SSE guide nice annotated SSE example Memory ...
Notes Located at the start of real memory (0000:0000 through 0000:0x3FF) 256 entries each is a complete 32 bit address (segment and offset) no code or ...
Improved Hi res timer timespec diff(timespec start, timespec end) { timespec temp; if ((end.tv nsec start.tv nsec) Hi res timer #include #include // .. ...
Where do the bulk and hashing operations get called? Within funciton do ssl3 write() , file ssl/s3 pkt.c Which Cipher Suites use SHA1 and 3DES? (see ssl3 ...
ssh o 'StrictHostKeyChecking yes' log in to a host and ignore the complaint about it now knowing the host key signature gnused in place old 's/assert(/b ...
The nop UnknownUser User UnknownUser is a reserved name in TWiki. If the UnknownUser appears, it is probably because author information for a topic could not be recovered ...
from Rich Kendall alias clearlog 'rm /var/log/kernel/ ; kill HUP `cat /var/run/syslog.pid`' alias shell 'xterm fn 7x14bold bg grey fg black ' alias blackshell ...
Header of User Homepages Note: This is a maintenance topic, used by the TWiki administrator. The part between the horizontal rules gets included at the top of ...
User List showing all photographs " size "large" title " $topic "}% If TWiki:Plugins.ImageGalleryPlugin is installed this page will show photos and names of all ...
First, to see how you've got things configured for, say the primary master IDE drive, type... hdparm /dev/hda ...or... hdparm I /dev/hda ...for really detailed ...
Find files (not dirs) but skip /proc, /dev and so on find / type f mount (the mount command is the key it prevents descending down into other mounted filesystems ...
Basic remote backup command rsync backup, using ssh as the transport via port 292, and the private key id pub to account joe on machine somemachine ...
Compile the following program like this: gcc g env var test.c o env var test #include int main(int argc, char argv ) { char env read back; if (argc ...
The latest pre built drivers can be found here Install driver /opt/intel/vtune/vdk/insmod vtune (or ...rmmod vtune to remove) Delete entire project and activities ...
Vectorizer Lab Take a look at the file vec demo.c. It does a simple summation of integers stored in an array. We store the element number in the array, then do a ...
vim tricks thanks to site for turning me on to these tricks. They have a nice reference card you can print out for vi and vim editors .vimrc handy tricks ...
Ranges See :help :range :.,$/s/from/to/gc Searching across lines Use \n . See also How to do new line in a replace? Do CTRL v, then hit enter. MattWalsh ...
Welcome to the nop web Congratulations, you have finished installing TWiki. This site is running TWiki version , Plugin API version To learn more about TWiki ...
This is a subscription service to be automatically notified by e mail when topics change in this nop Main old web. This is a convenient service, so you do not have ...
nop Main old Web Preferences The following settings are web preferences of the Main old web. These preferences overwrite the site level preferences in . ...
Javascript encoding Very handy when you have PHP writing out Javascript code that could contain user entered data (like carriage returns). It will look ugly in the ...
Image Breakdown Here's how I'm setting up my Xen images. Concept: Hypervisor box is not itself on the internet (except thru VPN? Make it the VPN checkpoint?) Image ...