Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - ax0n

#1
I mentioned http://www.h-i-r.net/2009/01/twitter-followersfriends-from-cli.html">getting newLISP working with twitter in passing on HiR, and it came up to use wget when you need user/password pairs for HTTP Basic Auth. I came up with this to create a working Basic Auth header for get-url.  You must set 'url 'user and 'pass first, obviously.



(set 'hedr (append "Authorization: Basic " (base64-enc (append user ":" pass)) "rnrn"))
(set 'contents (get-url url 5000 hedr))
 


Hopefully, this helps some people. I don't like relying on external programs if I can avoid it.
#2
I'm having some trouble figuring out some stuff.



The first thing is netmask.  If I have 192.168.0.49/24, I'm tempted to try this to turn /24 into a network mask:



(link posted to log because I can't get the code to show up right)



http://stuff.h-i-r.net/nl2.txt">http://stuff.h-i-r.net/nl2.txt





How do I limit hex to only 32 bits (i.e. 0xffffff00 instead of 0xffffffff00) ???



Also, do you know of a good way to take a 32-bit number and make it into an IP address in dotted decimal notation?



T.I.A.



--ax0n

http://www.h-i-r.net/">http://www.h-i-r.net/
#3
I'm wondering if anyone has bothered to mess with the Google Data APIs, specifically http://code.google.com/apis/spreadsheets/reference.html">Spreadsheets.



I'm kind of at a loss for where to get started.  Zend Framework has a class for PHP which I've managed to figure out how to use, but that's pretty much cheating.  Basically, once you authenticate and get a session to work with, google data is just a bunch of XML, but I'm still having trouble figuring out where to start.



I don't want anyone to go write something from scratch, but if anyone has messed with it and has some pointers for me, I'd appreciate it.



Thx :)



--Noah
#4
I turned 0x1c years old today.  And I feel every bit of it.  Ugh.



#!/usr/bin/newlisp

(while (and(> (date-value) 1179723600) (< (date-value) 1179809999))

 (print "happy birthdayn")

)

(exit)
#5
I rode from downtown KCMO on my bicycle to the Trek Store near where Lutz and I used to work. Trek Store hosts a monday night group ride that's nice and slow, and loads of fun. Looks like I got busted wearing my NewLISP shirt in public again!



I'm pretty much right in the middle of the picture:

http://www.localcycling.com/photogalleries/nodrop/images/trek_store_043007_003.jpg">http://www.localcycling.com/photogaller ... 07_003.jpg">http://www.localcycling.com/photogalleries/nodrop/images/trek_store_043007_003.jpg



Then I rode home to Olathe.  I rode a bicycle 38 miles that day, showing everyone just how fun NewLISP is.  :)
#6
Is there any way to securely erase a file in place with newLISP?  I mean, a way to access the actual blocks on the device to make sure that you are over-writing the location where the file was stored, instead of simply making a new file with the same time?