2009-10-29

WtF AJAX

This has got to be the sickist piece of Javascript ever, in the bitniverse. A True Manifestation of The Overmind. Or is that Infestation? Must use this code. http://www.thomasfrank.se/easier_than_ajax.html

AJAX Javascript Includes as RPC

A really great blog post about how to do javascript includes using "asynchronous javascript" XMLHTTP requests to server-side PHP scripts.

The article shows how to do 'include_once' and 'on-demand' loading of javascript code, which can be executed by the browser to modify the current document, including by use of HTTP GET request results assigned to the DOM.

2009-10-28

bitvise ftp bridge for Windows

A new Windows SSH client has come onto the radar: Bitvise

Of particular interest is the FTP <-> SFTP (SSH) client-side bridging functionality of the Tunnelier SFTP software. This widget creates transparent, secured, tunneled bridging between standard Windows FTP client applications and SFTP (SSH) servers. This is something that's been needed for quite some time, imo.

See Using Tunnelier to Connect to an SFTP Server with an FTP Client (from bitvise).

AJAX PHP Javascript MySQL XML

Wacka-wacka DOOOO!

Today's brain teaser is AJAX + PHP + Javascript + XML + MySQL ... and there may be some others I've left out CSS, XHTML, stuff like that.

Nevertheless, we will prevail. Links to follow.^

Nothing specific to the MySQL side of this, for now.

2009-10-26

Fix Emacs Backspace Ctl-H

Put this in your .emacs file...

(global-set-key "\C-h" 'backward-delete-char)

2009-10-24

Dokan: FUSE SSHFS for Cygwin

Dokan appears to be a work in progress. Basically it is intended to allow users of Cygwin to connect a [secure] remote file system (using SSHFS) under Windows just as is possible under the *nixish operating systems & MacOS.

Note that the version of SSHFS we downloaded has a dependency on Microsoft Visual C++ 2005 SP1 Redistributable Package (x86)/ This dependency is documented on the Dokan Download Page.

Note that we are installing this under WinXP w/ all current service packs, Cygwin, and ActiveState Perl.

2009-10-19

WinXP and cPanel WebDisk

Connect a cPanel WebDisk under WinXP

The procedure describes how to add a "Network Place" to the "Network Places" folder under WinXP, using the SSL WebDisk utility description from and installed cPanel. The hostname given in the URL given shown here is 'host.example.com'. In order for this to work, you must have a real hostname OR an IP address for a server running whatever SSL WebDisk protocol WinXP understands, AND the server has installed. More information about this when it becomes available...

  1. On the "Map Network Drive" dialog, there is a link at the bottom, just above the buttons called "Sign up for online storage or connect to a network server" - use that -
  2. In the "Add Network Place Wizard select "Connect to another network server" to specify the URL of the web disk; click "Next"
  3. Provide the URL of the WebDisk as the "Internet or Network address" – the URL should be of the form https://host.example.com:2078/; Click "Next"
  4. Accept the security certificate; click "Next"
  5. Provide Login Credentials (Username & Password)
  6. Provide a name for the network place [I typically use something like username@hostname]; Click "Next"
  7. Click "Finish" on the "A network place has successfully been created" dialog. [this is the final dialog of the Wizard]

This will create a "Network Place" in your Network Places folder.

UPDATE

While this procedure did create a "Network Place", I later found that the filesystem of the remote computer was not writable by the Windows file system API calls (made by Windows Apps) [WinXP we're talking about]. No solution found, yet. -pdw 2009.10.28

2009-10-13

Sticky Bits

4000 (the setuid bit)
Executable files with this bit set will run with effective uid set to the uid of the file owner. Directories with this bit set will force all files and sub-directories created in them to be owned by the directory owner and not by the uid of the creating process, if the underlying file system supports this feature

see chmod(2) and the suiddir option to mount(8).