writing page 3 - Dave's Blog

Search
My timeline on Mastodon

Browse By Author: D - Project Gutenberg

2008 Jan 5, 10:41Project Gutenberg's listing for Cory Doctorow containing all of his CC books in readable HTML formats.PermalinkCommentscory-doctorow gutenberg scifi writing free literature book books

Main Page - Gutenberg

2008 Jan 5, 10:39Project Gutenberg is a directory of public domain literature.PermalinkCommentsarchive books fiction database directory literature writing free gutenberg public-domain

Microcontent: Headlines and Subject Lines (Alertbox)

2007 Oct 22, 2:36How to create good headlines and subjects for webpages and email.PermalinkCommentsblog article design email howto usability tutorial language internet writing web

Two-for Script File

2007 Aug 6, 5:40I was messing with the XSLT to XSL Converter source which is a javascript file that can be run with cscript.exe. I've changed it to be like a very basic version of xsltproc that simply runs an XML file through an XSLT. I also wanted to run this from the command prompt without writing "cscript ..." everytime. I decided to make like perl programmers I've seen and make a JS file that works as a batch file and a JS file at the same time.

Here's a basic version of what I ended doing applied to a 'hello world' script named helloworld.cmd:
/* 2> NUL
@echo off
cscript /e:javascript /nologo "%~f0" %*
@goto :eof

    Hello World
        Says 'Hello world.' when you run it.
*/

var outText = 'Hello world.';
WScript.Echo(outText);
Running this on a command prompt gives the following:
C:\Users\davris>helloworld

C:\Users\davris>/*  2>NUL
Hello world.
However, after a little more experimentation I found this was slightly overkill for my purposes since if I rename the file to helloworld.js and just type its name like a command it is run by cscript:
C:\Users\davris>helloworld
Microsoft (R) Windows Script Host Version 5.7
Copyright (C) Microsoft Corporation. All rights reserved.

Hello world.
So this time I didn't need all that but if ever in the future I need to run a batch file then a JS file I can do it with one file...PermalinkCommentscmd js technical cscript batch xslt xsl javascript

Sorting It All Out : Putting the 'U' in Unicode (and the 'G' in Galacticode)

2007 Jun 11, 2:46Humorous and interesting exchange on the Unicode mailing list concerning the velocity of Unicode character additions and the ability to accomidate alien (as in e.t.) writing systems.PermalinkCommentsblog humor unicode language microsoft article alien et

Richard Ishida

2007 Feb 13, 12:03The home of Richard Ishida who works on internationalization at the W3C. Links to his blog, photos, writings, etc.PermalinkCommentsi18n w3c richard-ishida unicode encoding html blog photos

Retrieving Data Using Script

2006 Nov 27, 3:09This topic includes an example of how to write a script that obtains data through Microsoft Windows HTTP Services (WinHTTP) either synchronously or asynchronously. The concepts demonstrated in this example provide the basis for writing client or middle-tiPermalinkCommentsmsdn development programming reference microsoft http javascript script

What Went Wrong With Polytope Tetris

2006 Oct 6, 4:05In progress article. Note to self: continue writing this.PermalinkCommentsarticle software tetris game

Exploratorium | Ancient Writings Revealed! | Webcast

2006 Sep 28, 8:41PermalinkCommentsscience video language ancient-writings

Pierced Eyeglasses [The Publisher’s Ring]

2006 May 22, 3:46The idea of hanging eyeglasses from a piercing or a combination of piercings or even transdermal implants is something that a lot of us have toyed with — as I was writing this, my old boss Tom Brazda reminded me that almost ten years ago we made a set oPermalinkCommentscool culture hardware glasses piercing design weird bodymod

Omniglot - writing systems and languages of the world

2006 May 3, 2:49Reference for all (?) known writing systems and languages.PermalinkCommentslanguage reference research encyclopedia web

Chapter 2: Mechanics and style of writing

2005 Apr 10, 11:30Dave Barry as Ask Mister Language PersonPermalinkCommentslanguage humor english davebarry

Lazy

2003 Mar 8, 8:15Finals week is closing in quickly. This quarter seemed to go by faster than usual. With the end of the quarter almost here I've got a variety of assignments to finish. Today is supposed to be the day I work on them all, but I'm easily distracted. For instance, I had read Ken Thompson's Reflections on Trusting Trust a few days ago. As the author suggested, I tried writing my own self-reproducing program. Rather than brevity, I went for clarity and good style. That was my intent anyway. Now I'm avoiding work by writing in this journal. Last night I lost my money fairly early on during poker. After that Scott gave me a dollar which, surprisingly, lasted me much longer than the previous five. Though despite that, It was a good time.PermalinkComments

Worry Beads

2003 Mar 1, 5:22Today will produce the Mardi Gras parade in my town. I haven't been the previous two years, but I'm considering it this time around. San Luis Obispo, as a college town, contains many teens and young adults who enjoy occasional festivities accompanied with inebriation. San Luis Obispo, as relatively cheap beach front or at least near beach property, contains many vacationing elderly. As we all know, voting increases proportionally with age and, as such, any person under the age of thirty in public after dark is arrested. Mardi Gras is yet another of the bouts in the battle between the Youngsters and the Old-timers in the SLO ring. I will be very happy when this quarter is over. Chemistry may yet have a happy ending, but I don't know that Technical Writing can. I don't believe any grade in that class would make me think, "I'm glad I spent all those weekends working on that report". The quarter's end will also mean I can devote some time to my attention starved Polytope Tetris project. As a side note, I was tempted to, yet again, not write in the journal on account of my poor attitude tonight. However, a journal of one entry does seems a bit slim.PermalinkComments
Older EntriesNewer Entries Creative Commons License Some rights reserved.