sour page 8 - Dave's Blog

Search
My timeline on Mastodon

LA Weekly - Art+Books - Murakami REVOKed - Shelley Leopold - The Essential Online Resource for Los Angeles

2008 Feb 5, 2:02From BB's article: "In December, graffiti writers AUGER and REVOK modified a billboard advertising the wonderful Takashi Murakami exhibit ... Murakami himself saw online photos of the graffitied billboard and thought it to be "so wonderful, he had to havePermalinkCommentsart graffiti cultural-disobediance murakami via:boingboing

Wget for Windows

2008 Feb 2, 12:19Another essential for setting up a new computer.PermalinkCommentswget download opensource gnu windows tool free internet setupnewcomputer

Reusing Internet Explorer's Builtin CSS

2008 Jan 29, 9:32

When throwing together an HTML page at work that other people will view, I stick the following line in for style. Its IE's error page CSS and contaits a subtle gradient background that I like.

This uses the res URI scheme. You can see the other interesting IE resources using my resource list tool.PermalinkCommentsresource technical css internet-explorer ie res

download : vim online

2008 Jan 16, 2:48The place to download GVIM.PermalinkCommentsvim gvim windows install download free opensource pc software tool tools setupnewcomputer

OpenAerialMap Is Ready For Your Data

2007 Dec 7, 9:45FTA: "OpenAerialMap is a site for collecting, hosting, and mapping freely available aerial imagery. "PermalinkCommentsaerial geo map opensource photography social data via:felix42

SIMILE | Timeplot

2007 Dec 3, 10:41An AJAX library for plotting timepoints on a graph.PermalinkCommentsajax graph javascript mit open-source opensource html datetime timeline time api chart

Exuberant Ctags

2007 Nov 12, 12:52Program that generates tags for VIM.PermalinkCommentsc++ vim programming syntax tag tags ctags windows linux opensource

Ninja Parade Slips Through Town Unnoticed Once Again | The Onion - America's Finest News Source

2007 Oct 31, 4:41ONN piece on ninja parade.PermalinkCommentshumor onion news video ninja

In The Know: Is The Government Spying On Paranoid Schizophrenics Enough? | The Onion - America's Finest News Source

2007 Oct 31, 4:41ONN has a piece on how the government can help paranoid schizophrenics.PermalinkCommentsonion privacy humor video satire government

chumby

2007 Oct 17, 10:49Chumby is a hackable little wifi computer. Its like an expensive alarm clock that also shows you stuff off the Internet. I kind of want one.PermalinkCommentspurchase shopping wifi wireless opensource flash design hardware chumby

FoaF on my Homepage

2007 Oct 14, 3:12I've updated my homepage by moving stuff about me onto a separate About page. Creating the About page was the perfect opportunity to get FoaF, a machine readable way of describing yourself and your friends, off my to do list. I have a base FoaF file to which I add friends, projects, and accounts from delicious using an XSLT. This produces the FoaF XML resource on which I use another XSLT to convert into HTML and produce the About page.

I should also mention a few FoaF pages I found useful in doing this: PermalinkCommentstechnical xml foaf personal xslt xsl homepage

go ahead, mac my day : the Microsoft fallacy

2007 Sep 28, 11:10"The Microsoft fallacy has the following components: If a company has a lot of money, this means that they have sufficient resources to do anything. If a company has a lot of money, every piece of that company has access to all of it. Every large companyPermalinkCommentsarticle microsoft humor mac blog

Nine Inch Nails Open Source Remixes at Painful Convictions

2007 Sep 16, 11:01A remix album of Nine Inch Nails latest album.PermalinkCommentsnin nine-inch-nails mp3 free download remix music torrent open-source opensource

ErrorZilla err ErrorSoft

2007 Aug 21, 4:04Seeing ErrorZilla I realized I could easily do a similar thing to the IE7 404 page using the same technique I used for the XML view and the feed view.

So that's what I did: I made a new 404 page for IE7. There's not much new here technically if you've read the previous blog entries to which I linked. My 404 page change adds links to the Internet Archive, the Coral Cache, and Whois Tool.PermalinkCommentsarchive personal res cache resource ie7 technical browser whois 404 error extension

Native Win32 ports of some GNU utilities

2007 Aug 9, 1:33Win32 versions of many common Unix commands.PermalinkCommentsunix linux tool tools download windows sourceforge shell software free

Which which - Batch File Hackiness

2007 Aug 9, 5:41To satisfy my hands which have already learned to type *nix commands I like to install Win32 versions of common GNU utilities. Unfortunately, the which command is a rather literal port and requires you to enter the entire name of the command for which you're looking. That is 'which which' won't find itself but 'which which.exe' will. This makes this almost useless for me so I thought to write my own as a batch file. I had learned about a few goodies available in cmd.exe that I thought would make this an easy task. It turned out to be more difficult than I thought.

for /F "usebackq tokens=*" %%a in ( `"echo %PATH:;=& echo %"` ) do (
    for /F "usebackq tokens=*" %%b in ( `"echo %PATHEXT:;=& echo %"` ) do (
        if exist "%%a"\%1%%b (
            for  %%c in ( "%%a"\%1%%b ) do (
                echo %%~fc
            )
        )
    )
)
The environment variables PATH and PATHEXT hold the list of paths to search through to find commands, and the extensions of files that should be run as commands respectively. The 'for /F "usebackq tokens=*" %%a in (...) do (...)' runs the 'do' portion with %%a sequentially taking on the value of every line in the 'in' portion. That's nice, but PATH and PATHEXT don't have their elements on different lines and I don't know of a way to escape a newline character to appear in a batch file. In order to get the PATH and PATHEXT's elements onto different lines I used the %ENV:a=b% syntax which replaces occurrences of a with b in the value of ENV. I replaced the ';' delimiter with the text '& echo ' which means %PATHEXT:;=& echo% evaluates to something like "echo .COM& echo .EXE& echo .BAT& ...". I have to put the whole expression in double quotes in order to escape the '&' for appearing in the batch file. The usebackq and the backwards quotes means that the backquoted string should be replaced with the output of the execution of its content. So in that fashion I'm able to get each element of the env. variable onto new lines. The rest is pretty straight forward.

Also, it supports wildcards:
C:\Users\davris>which.cmd *hi*
C:\Windows\System32\GRAPHICS.COM
C:\Windows\System32\SearchIndexer.exe
D:\bin\which.exe
D:\bin\which.cmd
PermalinkCommentswhich cmd technical batch for

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

Open Library (Open Library)

2007 Jul 26, 12:12The folks at the Internet Archive have created a user modifiable Open Library that intends to catalog all books. As in all of them. Includes links to the books online (Internet Archive for ex.), where to buy (Amazon for ex.), reviews, etc.PermalinkCommentsarchive library opensource wiki research book books literature catalog reference

Breaking News: All Online Data Lost After Internet Crash | The Onion - America's Finest News Source

2007 Jul 12, 8:40ONN news story on the crash of the Internet. I blame that Mac the guy was using.PermalinkCommentshumor news onion video internet

Tired Of Traffic? A New DOT Report Urges Drivers: 'Honk' | The Onion - America's Finest News Source

2007 Jun 26, 1:14Onion report on DOT study suggesting honking to alleviate trafficPermalinkCommentsonion humor video car driving traffic honk
Older EntriesNewer Entries Creative Commons License Some rights reserved.