http://digitalpbk.blogspot.com/2008/11/ubuntu-remove-old-kernel-grub-list-long.html
Remove old kernels in Ubuntu
Whenever a new kernel is applied ubuntu keeps the old one. This clogs up the grub and hard disk space and ends up having a lot of kernels to boot in the grub.To know the version that is currently running:uname -rand to remove all other kernels usesudo apt-get remove --purge 2.6.24-16-*change the 2.6.2x-xx- parts to remove those kernel. Make sure you dont remove the kernel you are
using, or you will end up breaking the system. It is wise to keep a recent kernel ...
Published 3 years, 6 months ago
http://digitalpbk.blogspot.com/2008/11/masm-assembly-factorial-program-big.html
34020262992581378423147276636643647155396305352541105541439434840109915068285430675068591638581980604162940383356586739198268782104924614076605793562865241982176207428620969776803149467431386807972438247689158656000000000000000000000000000000000000000000000000000000000000000for the Faint HeartedThe program calculates and computes big numbers by simulating the traditional way of multiplication and division of numbers. Hence it can do this upto any number of digits as much as the memory can hold. In this example, I have
used 512 digited numbers, which is more than enough for holding 255!.The key parts of the following program is bignum_mul and bignum_add macro which simulates the traditional method of multiplying and adding numbers (not
using any ...
Published 3 years, 6 months ago
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, 11 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/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.com/laptop/restore-power-plan-missing-saver-high-performance-balanced-windows-7
Power plans missing - Restore power plans on Windows 7
Power saver plan on Windows helps you to give longer battery backup by reducing performance of certain hardware components like processor, graphics card, wireless network card etc and turning off devices which are not
used. One sudden day my power saver option went missing on my sony vaio running Windows 7. Since the battery backup is drastically reduced when the power saver option is missing, I had to desperately find a fix and here ...
Published 2 years, 1 month ago