http://digitalpbk.blogspot.com/2008/06/ubuntu-compaq-presario-black-white-xorg.html
.Xorg.conf# nvidia-xconfig: X configuration file generated by nvidia-xconfig# nvidia-xconfig: version 1.0 (buildmeister@builder26) Thu Feb 14 18:13:41 PST 2008# nvidia-settings: X configuration file generated by nvidia-settings# nvidia-settings: version 1.0 (buildd@yellow) Tue Mar 4 20:28:57 UTC 2008# xorg.conf (X.Org X Window System server configuration file)## This file was generated by dexconf, the Debian X Configuration tool,
using# values from the debconf database.## Edit this file with caution ...
Published 3 years, 10 months ago
http://digitalpbk.blogspot.com/2007/11/unix-networking-sockets-tcp-transmitter.html
address and open a socket and bind to it.2. Connect to server 3. Send messages4. Close connection when done#include types.h>>#include socket.h>>#include in.h>>#include inet.h>>#include #include #include #include #include #include #include time.h>>#include /*Some are unused, But I read these are general headers
used in a network program:)*/int main(void){ struct sockaddr_in sin; int s; s = socket(AF_INET, SOCK_STREAM, 0); if(!s) { perror("socket()"); return 1 ...
Published 4 years, 6 months ago
http://digitalpbk.blogspot.com/2007/10/xpm-file-format.html
,Height,Number of colors, Characters Per Pixel, optional X & Y Hotspots, optional XPM Extension.The array indexes 1-> number of colors indicates the color section.The strings in these section take the following format : %s %s %sThe first contains the characters that represent the pixels. The number of characters
used to represent a pixel is given by Characters Per Pixel field in array[0].The second string represents control characters that defines what the following field is about.switch(control character ...
Published 4 years, 7 months ago
http://digitalpbk.blogspot.com/2006/12/drag-n-drop-files-from-explorer-to-vb.html
a form or window to accept files.'fAccept = 1 Enables.Private Declare Function DragQueryFile Lib "shell32.dll" Alias "DragQueryFileA" _(ByVal HDROP As Long, ByVal UINT As Long, ByVal lpStr As String, ByVal ch As Long) As Long'DragQueryFile gives the information to us about the dropped file.'lpStr outputs the filename.Private Declare Sub DragFinish Lib "shell32.dll" _(ByVal HDROP As Long)'This function frees the resources
used during the drag operation ...
Published 5 years, 5 months ago
http://digitalpbk.blogspot.com/2008/05/bash-mp3-player-mpg123-sed-playlist.html
BASH Playlist handler and mpg123 interface
My First "somewhat"
USeful BASH scriptThis small script scans your / directory and generates a playlist of mp3 files, and you can play your file by ./juke . You will get a list of songs matching your criteria.InstallationCopy the source code,given below, to a new file named juke# apt-get install mpg123$ chmod 755 juke$ ./juke westSample output and Controlsarun@XiO3:~/bash$ ./juke happy1 happy birthday2 Avril Lavigne - My Happy ...
Published 3 years, 11 months ago
http://digitalpbk.blogspot.com/2006/11/network-traffic-calculator-using-vc-6.html
Network Traffic Calculator
using VC++ 6 on XP
An IntroductionThis is a simple VC++ (made in 6) program that calculates the total number of bytes transfered in a network connection. Made in and tested for Windows XP.main.cpp/*Network Traffic Calculator(c) digitalpbk.blogspot.com*/#include #include #include #include #define REGULAR 0#define BOLD 1#define ITALIC 2#define ULINE 3void getInterfaceList(char list[][17],int max);int ConnectSock(char sck[],int port,HWND hwnd);void process ...
Published 5 years, 5 months ago