Tuesday, 1 August 2006

Murrumbeena Cricket Club Captains appointed

Just received the following from Club Secretary David Hardham

All

Following the committee meeting last night, the following have been
appointed capts for 2006-07
1sts - Troy Lamb
2nds - Stephen Hay
3rds - John Hindmarsh
4ths - Phil Carter

Congratulations to all

For information, we have negotiated with the Glen Eira Council that will ensure that the 3rds will play on Sat (2-day comp), we are still sorting out which ground it will be, either Centennary Park or Ormond oval no 3 (southern end)

A notification on general club matters will be distributed in the next day or so as well

David


Which reminds me, I probably should endeavour to get to the gym a little more frequently. Those first few practice sessions are always painful.

Tuesday, 25 July 2006

Samsung Shipping 1-Gbyte Flash Chip; 8-GB Stack Planned

Samsung Shipping 1-Gbyte Flash Chip; 8-GB Stack Planned

NAND flash chipmaker Samsung Electronics says it has entered into mass production of an 8 gigabit NAND flash memory chip aimed at mobile phones, MP3 players, gaming consoles, and other consumer devices.




Monday, 24 July 2006

Programmatically printing reports ... SP2 = Ouch!

I've been doing some more hack development work with SQL 2000 Reporting Services. I really like the programmability available via the web service.

Courtesy of some code provided on Reporting Service stalwart Bryan Keller's blog, I've been playing around with sending reports rendered via the web service direct to the printer. Now for some reason the reporting server I was testing against was only the RTM version and everything was working terrific. That was 3 days ago, my how things change in three days.

Come today we wanted to run out our 2500+ reports, which was going to save our Backoffice staff hours of manually printing individual printouts, we find that the production reporting server has SP2 installed and for some reason this causes the footer of the report to be dropped and the right-hand margin to be cut-off.

I have a feeling it might be something to do with rendering the reports with Letter sizing rather than A4 sizing. I'll post later when I discover the culprit. Meanwhile we're running our production report printing off an RTM Report Server, oh joy!

 

Wednesday, 19 July 2006

Print PDF from command line and make Acrobat go away

Some C# code that this "hack developer" of a DBA put together. Put in a console app in Visual Studio. When executing the compiled program just pass the full path and filename as the argument. One bug that's surfaced already is that it doesn't like mapped drives, but UNC paths work fine. Otherwise … enjoy !!!

    using System;
    using System.Diagnostics;
    using System.Threading;
    using System.ComponentModel;

    namespace PDFPrinter
    {
    class PDFPrinter
    {
    [STAThread]
    static void Main(string[] args)
    {
    if(args.Length > 0)
    {
    try
    {
    Process myProcess = new Process();
    myProcess.StartInfo.Verb = "Print";
    myProcess.StartInfo.CreateNoWindow = true;
    myProcess.StartInfo.FileName = args[0].ToString();
    myProcess.Start();
    myProcess.WaitForInputIdle();
    Thread.Sleep(5000);
    if(!myProcess.CloseMainWindow())
    {
    myProcess.Kill();
    }
    }
    catch (Exception ex)
    {
    string excepMsg = "";
    Exception current = ex;

    while( current != null)
    {
    excepMsg = current.Message;
    current = current.InnerException;
    }
    Console.WriteLine(excepMsg);
    }
    }
    else
    {
    Console.WriteLine("You need to specify the name of the PDF file to print.");
    }
    }
    }
    }

Big deals means big purchases

It's strange what huge discounts can do for a customers purchasing plans.

I wasn't planning to buy a large Plasma or LCD TV and I already have a large 21" Compaq CRT monitor for the computer. Thanks to a great deal (almost 50% off) through work we're lashing out and buying a LCD TV for the lounge and a 19" UltraSharpTM LCD Monitor for the computer.

New toys ... and it's not even Christmas ....