Archive: Java
July 10, 2007
Server-side Javascript/DOM - search friendly AJAX?
John Resig posted yesterday about his experiments with creating a full Javascript/DOM pseudo-browser environment that runs from the command line:
This weekend I took a big step in upping the ante for JavaScript as a Language. At some point last Friday evening I started coding and didn't stop until sometime mid-Monday. The result is a good-enough browser/DOM environment, written in JavaScript, that runs on top of Rhino; capable of running jQuery, Prototype, and MochiKit (at the very least).
The really nice touch is that you can issue PUT and DELETE requests on the XMLHttpRequest object to manipulate files on the local file system! Here's an example script that scrapes post titles from alistapart.com and stores them in a file (remember, this runs on the server like a shell script):
load("env.js");
window.location = "http://alistapart.com/";
window.onload = function(){
load("dist/jquery.js");
var str = "Newest A List Apart Posts:\n";
$("h4.title").each(function(){
str += " - " + this.textContent + "\n";
});
var out = new XMLHttpRequest();
out.open("PUT", "file:/tmp/alist.txt");
out.send( str );
};
Read full storyPosted by Jason Striegel |
Jul 10, 2007 10:23 PM
Ajax, Java, Web |
Permalink
| Comments (0)
| TrackBack
| Digg It
| Tag w/del.icio.us
January 30, 2007
Make Java-based Apps Play Nice with Vista

If you've tried to run certain Java-based applications on Vista with the Aero user interface eye candy enabled, you might have received the following error message: "The color scheme has been changed to Windows Vista Basic". This is because older versions of Java don't play well with Vista's Aero Glass user interface.
If you'd like to eliminate this annoyance, you have a couple of choices, but the first thing you need to do is install the latest and greatest version of the JRE (Java Runtime Environment) from java.sun.com. Then:
- If the software you're using has a "Java not included" option, install that instead. You might have to follow some extra instructions to set it up (such as setting a JAVA_HOME environment variable), but when you're done, everything should work fine.
- Dig into the software you've installed, and look for a java or jre subfolder. You'll need to find your JRE installation (check C:\Program Files\Java\jre1.6.0). Copy everything from there into the misbehaving software's (Processing in the following example) jre folder. Here's how it's done at the command prompt, but you could rename java to java.old and copy the new JRE in using Windows Explorer as well:
C:\>cd \processing-0123C:\processing-0123>ren java java.old
C:\processing-0123>xcopy /s "\Program Files\Java\jre1.6.0" java
Does java specify a file name
or directory name on the target
(F = file, D = directory)? D
\Program Files\Java\jre1.6.0\COPYRIGHT
\Program Files\Java\jre1.6.0\LICENSE
\Program Files\Java\jre1.6.0\README.txt
...
However you decide to do it, the next time you run the troublesome app, it should now appear in all its Aero-enabled glory!
Posted by Brian Jepson |
Jan 30, 2007 04:06 PM
Java, Windows |
Permalink
| Comments (0)
| TrackBack
| Digg It
| Tag w/del.icio.us
Bloggers
Welcome to the Hacks Blog!
Categories
- Ajax
- Amazon
- AppleTV
- Astronomy
- BlackBerry
- Blogging
- Body
- Cars
- Cryptography
- Data
- Education
- Electronics
- Energy
- Events
- Excel
- Excerpts
- Firefox
- Flash
- Flickr
- Flying Things
- Food
- Gaming
- Gmail
- Google Earth
- Google Maps
- Government
- Greasemonkey
- Hacks Series
- Hackszine Podcast
- Halo
- Hardware
- Home
- Home Theater
- iPhone
- iPod
- IRC
- iTunes
- Java
- Kindle
- Knoppix
- Language
- LEGO
- Life
- Lifehacker
- Linux
- Linux Desktop
- Linux Multimedia
- Linux Server
- Mac
- Mapping
- Math
- Microsoft Office
- Mind
- Mind Performance
- Mobile Phones
- Music
- MySpace
- MySQL
- NetFlix
- Network Security
- olpc
- OpenOffice
- Outdoor
- Parenting
- PDAs
- Perl
- Philosophy
- Photography
- PHP
- Pleo
- Podcast
- Podcasting
- Productivity
- PSP
- Retro Computing
- Retro Gaming
- Science
- Screencasts
- Shopping
- Skype
- Smart Home
- Software Engineering
- Sports
- SQL
- Statistics
- Survival
- TiVo
- Transportation
- Travel
- Ubuntu
- Video
- Virtualization
- Visual Studio
- VoIP
- Web
- Web Site Measurement
- Windows
- Windows Server
- Wireless
- Word
- World
- Xbox
- Yahoo!
- YouTube
Archives
Recent Posts
- iNoteBook: repurpose an old laptop
- Safari single window mode
- Run Safari in Ubuntu
- Easter egg anemometer
- Easiest cross-browser CSS min-height
- Visualization API for Google Docs
- From Nand to Tetris in 12 Steps
- Paper cameras - old and new
- CryoPID: hibernation for Linux processes
- Art Bots 2008
www.flickr.com
|




