August 11th, 2000

belize

Windows can blow me.

So, I'm redoing the Windows installation program for LiveJournal and the install system I'm using (NSIS) kicks ass, but it lacks a function to create new directories for certain types of things. The source to NSIS is open, so I was going to add it ... but it's an incredible mess, as Justin admits in the documentation.

However, NSIS has the ability to launch other programs and wait on them, so I thought--- no prob, I'll call "mkdir". Except you can't call shell built-ins. So I wrote a DOS batch file wrapper around mkdir ...

@echo off
if !%1==! goto skipit
if exist %1 goto skipit
mkdir %1
:skipit

But for some reason, it doesn't work on Win9x and the "if exist" line doesn't work, thus causing mkdir to generate an error and freeze the installation process with an ugly black command box showing. I'm not going to pretend I'm a expert batch file programmer, nor do I want to be. They're sick. So, I wrote a little Win32 C program to do it .... no more ugly DOS window during the installation:

#include "stdafx.h"
int APIENTRY WinMain
(HINSTANCE hInstance, HINSTANCE hPrevInstance,
 LPSTR lpCmdLine, int nCmdShow)
{ CreateDirectory(lpCmdLine, NULL); return 0; }
Both solutions suck. I mailed Justin and asked him to include the functionality.
belize

Hahahah...

Saw this is some guy's signature:
    "One World, one Web, one Program" - Microsoft promotional ad
    "Ein Volk, ein Reich, ein Fuhrer" - Adolf Hitler
Heh.
belize

Damnit.

Mom woke me up, yelling no less. Guess she wants me to help clean the house. Great.
  • Current Mood
    pissed off pissed off
belize

rafting

Going white-water rafting again ... big group this time: me, blythe, nick, paula, mike, jenny, dan, my aunt & uncle, and some 18 year old girl I don't know from Iowa. We're going Sunday morning. Anybody else want to come?
  • Current Music
    Modest Mouse - The Moon and Antartica - 03 - Dark Center of the Universe
belize

Wish Line

Upon opening Microsoft Visual C++, my Tip of the Day is:
    Did you know...
    In the U.S. or Canada, you can call the Microsoft Wish Line to make suggestions about features you would like to see in any Microsoft product or service.

    The number for the Wish Line is (425) 936-WISH

That's so cool. I'm going to request "not crashing"... or maybe them open sourcing all their products (is that a feature? :-))
belize

Linux is a Mac?

I was browsing the web in Mozilla on Linux (very usable lately!) and I went to download some software and got an error messaging saying it was only available for Windows 95, 98, and NT but a Macintosh version would be out soon so check back in a bit. Heheh ... morons. More people use Linux than Macs I thought.
belize

Mom's 40.

Just got back from my mom's 40th birthday surprise party. Was kinda nice seeing some of the old family friends, but not too exciting. Blythe and I are going to watch a movie or something now.