YATB (Yet Another Tech Blog)

I wanted to change my machine’s Grub default boot partition and didn’t know how. After googling, I learned that the default boot partition is controlled by the file:
/boot/grub/grub.conf
Just change the default setting inside and reboot.

Read more...

§245 · January 10, 2010 · Ubuntu · Comments Off ·


I’m currently using C1Component FlexGrid. To enable a cell to popup a list of allowed values, create a pipe-delimited string (ex: “Red|Green|Orange”) and set it to the Cols(index).ComboList property. Setting the ComboList property causes C1FlexGrid to display a dropdown box next to the cell.
To allow a user to select from a [...]

Read more...

§243 · January 7, 2010 · C# · Comments Off ·


sudo umount /media/doit
sudo mkdir /media/doit2
sudo mount -t vfat -w /dev/sdb1 /media/doit2

Read more...

§240 · December 6, 2009 · Linux, Ubuntu · Comments Off ·


To add a new control to the Toolbox in Visual Studio, click Tools -> Choose Toolbox Items.

Read more...

§238 · December 4, 2009 · C# · Comments Off ·


C#’s event handling takes event handling notification on a twist from Java’s tried-and-true broadcast-subscription mechanism. Using events, disguised in the form of delegates, event subscribers can similarly subscribe to event notification. The event source notifies all event subscribers to calling back on the delegate method they initially sent for subscribing to the event [...]

Read more...

§231 · December 2, 2009 · C# · (No comments) ·


Click on the window or control
Right click for properties
Click the Events (looks like lightning icon) button
Select the list of events to generate an event handler

Read more...

§225 · November 25, 2009 · C#, DotNet · Comments Off ·


The leftmost column in a default C1FlexGrid has always bothered me.  How to turn it off?  This consumed me about half a day a month ago.  To turn off the left most column, click on the Property page of the C1FlexGrid.  Look for the Cols property.  Set the “Fixed” setting to 0.  This does the [...]

Read more...

§224 · November 25, 2009 · C# · Comments Off ·


The key is located on the installation CD disk, in the file:
/i386/WINNT.SIF

Read more...

§219 · September 30, 2009 · Windows · (No comments) ·


Newegg is currently offering 100 4.7GB DVDs at a taxfree price of $23 with free shipping.  At a fill-rate of 90%, or 4.2GB per disc,  this option comes out to 18.26 GB. per dollar.
Newegg is also offering an external hard drive, a Fantom Drives G-Force G1000EU 1TB for $95, $75 with rebate.   This option [...]

Read more...

§216 · June 12, 2009 · Hardware · Comments Off ·


I just encountered a problem where I needed a job to run if the the same job ran ran over an hour ago.  I stored the last run time in a cookie, poll it, and compare the last run time using SQL’s datediff() function.  I check the number of hours since the job last ran [...]

Read more...

§215 · June 11, 2009 · SqlServer · Comments Off ·