Greenbelt here we come!
Posted in faith on August 27, 2009 at 8:18 am
A quick post to say I’m not around for a bit as I’m off to
http://www.greenbelt.org.uk
hopefully I’ll come back fired up about faith, art and (kind of suprisingly) technology!
If you’re going you might find
http://www.greenbelt.org.uk/system/data/maps/GB09-Campsite-Map.pdf
useful
whether you are or not
http://www.photoglow.co.uk/greenbelt_2009_setup/slideshow#h16096d67
is cool!
Exactly the same - only different
Posted in QT, Coding, Microsoft on August 21, 2009 at 11:47 am
I built a snapshot the other day. That is I created separate copy of all the current source code and built it to give a stable image to some testers. It crashed, just didn’t want to run.
OK, I thought, double check the sources are identical to my development area. Yes & it runs.
OK, I normally build a debug version - the snapshot will be a release build. Build a release build in my development area - it runs.
OK, I build with MSVS work bench but the snapshot is built from the command line so build it from the same command but in my development are. It runs.
Compare the binaries - different sizes, different contents… ?
Clean all objects etc and rebuild everything from scratch in both areas - same results one runs one doesn’t. Do it again in case I got it wrong, check the sources are the same (in case I got it wrong). Do it all over, and again. Phone a friend, search the web, bang head on desk, …
Finally I did what any novice would tell me to do. I switched the PC on and off, then cleaned and re-built the snapshot - it runs.
But why would a build from one command line differ from one in another DOS box (both started from the same Visual Studio command)??? And why didn’t I just try a reset earlier?
In Black and White - Stephen Hawking & the NHS
Posted in Funny, In the news, media, language, Coding, the web, Blogs on August 17, 2009 at 9:43 am
I’m a bit late in slagging Investors Business Daily (and all Americans by implication) in their announcement that Stephen Hawking would be dead if he were British. A great story for national stereotyping (racism?) in that it uses American stereotypes of Brits (accusing us of having a naff health system) whilst conforming to British stereotypes of Americans (being ill informed and assuming anything good must be American). I’m sure the father from Goodness Gracious Me is even now saying “Stephen Hawking? He’s Indian!”.
However, with the power of the web over paper and ink the article has been miraculously changed. IBDeditorials.com: Editorials, Political Cartoons, and Polls from Investor’s Business Daily — How House Bill Runs Over Grandma
A fine example of why software should be released via the web rather than committing to hundreds of CD’s before realising there is a minor glitch.
Maybe all that being able to hand your course work in then get it back and fix it is good training for the real world after all.
Pleas come back and read this entry again next week - I may have changed it to make it more interesting by then…
One rule for you, common sense for us
Posted in In the news on August 12, 2009 at 9:03 am
Over at http://www.independent.co.uk/opinion/commentators/mary-wakefield-i-want-to-help-ndash-but-im-not-allowed-to-1769197.html Mary Wakefield is having a well placed bash at the CRB requirements. For years I have been moaning that regulations that make it so hard to look after kids that it they aren’t looked after at all aren’t a good thing and now it looks like even the clots who brought in the rules think they are best ignored.
Yes, we need to be careful of who is in charge of any vulnerable individuals but making it hard (and expensive) for volunteers means that many people just don’t bother. Holiday clubs, scout groups, youth clubs just close leaving kids the safe option of staying in watching internet porn or hanging about the park after dark (OK, they do have other options but plenty of them will choose these two). The real peril is anyone who has criminal intent can probably fool the system anyway - it “just” requires false id.
And the law makers that brought in these regs? Well John Battle is arguing that the new checks should be applied to all MP’s but Harriet Harman reckons “common sense” should mitigate the requirement for MP’s to be on the vetting register. Gorden Brown is famously volunteering over his summer break but is he submitting himself to CRB checks? Number 10 refuses to say.
So one rule for us sick, evil people but common sense for those nice MP’s?
Re-inventing the wheel, argv / argc in windows
Posted in Coding, Microsoft on August 10, 2009 at 3:48 pm
I had to write a quick utility today - just passing a few options in on the command line. I used MSVC to create a console app and Robert was my parental sibling. However, when I ran it a MSDOS box popped up and disappeared - a bit messy. So I started a new app as a simple windows app & pasted the code in, but whoops, a windows app doesn’t start from main(argv, argc) it starts from
int APIENTRY WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
So I spent half the day writing a parser to convert a command line into argv argc - easy enough until you allow for “this is just one param because it’s in quotes” etc.
I finally switched to unicode just so that I could use
argv = CommandLineToArgvW(GetCommandLineW(), &argc);
but why isn’t there an ascii version? The argv / argc convention has been in use since the dawn of C, it is intrinsic to most C programs, not having it is a right pain. Yes, I know the project was C++ not C but that is only because good old MSVC doesn’t even have a C project type.
Whilst I hate re-inventing the wheel and coding what has been coded a thousand times before I guess in these hard economic times it’s good to know there will always be work even if in a perfect world it would be pointless.
Tag cloud
Archives
- July 2010
- June 2010
- May 2010
- April 2010
- March 2010
- February 2010
- January 2010
- December 2009
- November 2009
- October 2009
- September 2009
- August 2009
- July 2009
- June 2009
- May 2009
- April 2009
- March 2009
- February 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- February 2008
- January 2008
- December 2007
- November 2007
- October 2007
- September 2007
- August 2007
- July 2007
- June 2007
- May 2007
- April 2007
- March 2007
- February 2007
- January 2007
- December 2006
- November 2006
- October 2006
- September 2006
Most commented posts
Highest Rated Blog Posts
- PC Advance Required (100%)
- No excuse - it's free to encrypt! (100%)
- Virtualization's Dark Side - or stating the obvious for beginners (100%)
- Tabs - I might change my mind? (100%)
- Which Linux do you drink? (100%)
- Sat Nag (100%)
- How to be a Guitar Hero (100%)
- Home working - a tale of freedom, loneliness and slippers (100%)
- Vertigo (100%)
- Is your back door open? (90%)

