I got bored tonight and decided to play with it and the results are kinda neato.
Some links to an awesome tutorial on XSLT (and XPath):
XSLT Tutorial
XPath Tutorial
Anyhoo, check it out:
Thu, 19 Feb 2004XML/XSLT
XSLT is pretty neato. You can do basic operations (looping, comparisions, math, etc) with the intention of translating XML into something else, such as HTML.
I got bored tonight and decided to play with it and the results are kinda neato. Some links to an awesome tutorial on XSLT (and XPath): XSLT Tutorial XPath Tutorial Anyhoo, check it out:
Comments: 0 (view comments)
Mon, 16 Feb 2004Java JSSE SSLSocket/SSLServerSocket
Holy christ... I've never had so much trouble getting something to work in my
life. For the past several hours of scouring google and online book resources I
was left without any working means by which to use
javax.net.ssl
usefully - and by usefully I mean without requiring a pregenerated key
certificate, etc. After looking at SSLSocket.getSupportedCipherSuites() and
seeing DH_ prefixes on some of the supported ciphers but not on
the enabled-by-default ciphers, I looked into what the DH stood for. Turns out
it stands for Diffie-Hellman which I knew to be a secret key generation method:
My salvation was at hand. For those who are still in the dark, Diffie-Hellman
key exchange allows both parties (server and client) to negotiate a secret key
across the wire, cancelling my need for a stored, pregenerated key certificate.
Anyhoo, so the past few hours have been totally not awesome. Here's the fix to get SSLSockets to play kosher with eachother without the need for a certificate:
socket.setEnabledCipherSuites(socket.getSupportedCipherSuites()); Do this for both sockets (server AND client) and they will eventually negotiate upon the Diffie-Hellman key exchange, and you can go about your merry way on the happy SSLSocket-land.
I'm so tired :(
Want a good example? Here
Comments: 2 (view comments)
Sat, 14 Feb 2004vim autoindenting
My hatred for other people's indenting habbits has now been calmed by the awesomeness that is vim. The command, =, will let you reindent the current line (or the whole file, or whatever) to the settings you use in vim already.
So, instead of dealing with people being dumb and using spaces for *everything* this magical keystroke series will fix my woes: 1G=GThis will cause reindentation of every line in the file you are editing. Woot.
Comments: 0 (view comments)
Tue, 03 Feb 2004Array enumeration in perl
I got bored and thought this atleast marginally useful:
my @foo = qw(just another perl monkey);
my $x = 0;
print join("\n",map { $x++ . ": $_" } @foo);
The output is:
0: just 1: another 2: perl 3: monkeyIf you don't know how to use map() then learn, it makes doing large operations on hashes or arrays brutally simple.
Comments: 0 (view comments)
|
Search this siteNavigationMetadataHome About Resume My Code (SVN)ArticlesARP Security Dynamic DNS with DHCP OpenLDAP+Kerberos+SASL PPP over SSH SSH Security: /bin/false Week of Unix Tools Work EfficiencyProjectsfex firefox tabsearch firefox urledit grok keynav liboverride newpsm (FreeBSD) nis2ldap pam_captcha poor man's backup Solaris audio utility xboxproxy xdotool xmlpresenter xpathtool misc scriptsPresentationsYahoo! Hack Day '08 Yahoo! Hack Day '06 Unix Essentials Vi/Vim Essentials SSH Tunneling (Video)Tag CloudCalendar
FriendsBarCamp Kent Brewster Tantek Çelik John Resig Wesley Shields Tyler ShieldsTechnorati |
|||||||||||||||||||||||||||||||||||||||||||||||||