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

Messages - 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
Anything else we might add? /
March 04, 2008, 03:28:47 PM
I posted the following article.  Thanks for your help, guys!



http://www.h-i-r.net/2008/03/ip-subnetting-more-fun-with-newlisp.html">http://www.h-i-r.net/2008/03/ip-subnett ... wlisp.html">http://www.h-i-r.net/2008/03/ip-subnetting-more-fun-with-newlisp.html
#3
Anything else we might add? /
March 04, 2008, 09:21:13 AM
Awesome, I didn't even think to AND it against 0xffffffff even though as part of this calculator I will have to AND the IP against the netmask to come up with the network address, so I'm not sure why that logic did 't come to me earlier.  



That helps leaps and bounds.
#4
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/
#5
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
#6
Anything else we might add? /
December 07, 2007, 09:42:11 PM
I worked with Lutz for a few months, and I've been hooked ever since :)
#7
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)
#8
Anything else we might add? /
May 13, 2007, 02:51:32 PM
The Trek Store is near Kansas City, in Merriam.  It's about 2 miles west of the office complex where Kozoru used to be.  For whose who know the area, it's a few blocks east of Neiman and Shawnee Mission Parkway.



Tomorrow is the beginning of Bike to work week, and I'll probably put about 60 miles on my bicycle tomorrow.  It will be far too hot to be wearing a black t-shirt, though.
#9
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.  :)
#10
newLISP newS /
May 12, 2007, 04:22:10 PM
Hey Lutz...



I'm just about ready to move to Wholesale Internet.  They're a competitor of NetStandard.  Their main data center facility is downtown KC, and I'll have physical access.  I think you can get off the ground with a colocated (not dedicated) box for about $40 per month with 100GB transfer.   I'd be willing to be your hands in KC as I'm already preparing to put a system of my own up there.



If all goes as planned, I'll also have tape backup on-site for my own stuff.  Depending on the size of your data, I might be able to help you out with backups, too.



I still have one or two of those old Supermicro nodes laying around, too...
#11
Anything else we might add? /
February 09, 2007, 04:34:06 PM
Quote from: "cormullion"nice blog, ax0n. Keep it up! In my experience, starting a blog is easier than keeping it going... :-)


I've been keeping this one up with an average of two posts per day on weekdays.



http://kc-bike.blogspot.com/">http://kc-bike.blogspot.com/



And prior to this blog, my friends and I that are writing on this blog kept a bi-monthly e-zine up (mad textfiles, yo!) for a few years.  I'm very, very random though, so I can't promise tons of newlisp articles.  I have fallen in love with the language though.  I just have to find time to play with it and ideas for implementing it.



There will still be another newlisp article soon.  I will probably post it this evening or tomorrow.
#12
Anything else we might add? /
February 08, 2007, 05:16:13 PM
That's nice, I'm actually using OS X most of the time.  I didn't realize it had that feature.  And actually Wietse Venema (I think it was him) said that absolutely no software could ever recover data that was simply overwritten one time.  Data recovery methods beyond that scale have to occur on an electron microscope.



In the other thread I've been posting in, you can see that I'm dealing with cryptography (simple, but cryptography all the same).  So it's not that I have anything to hide or worth hiding, however, remnants of the files related to the encryption can create a vulnerability if recovered from media.
#13
Anything else we might add? /
February 08, 2007, 02:32:06 PM
Quote from: "nigelbrown"Actually wiping data can be quite complex e.g. see http://www.usenix.org/publications/library/proceedings/sec96/full_papers/gutmann/">http://www.usenix.org/publications/libr ... s/gutmann/">http://www.usenix.org/publications/library/proceedings/sec96/full_papers/gutmann/ . And smart drives with cache and file systems that will sideline old data and write a new block under some conditions are problematical.

It depends on how secure you want to put the effort in to become.

Maybe call a proven utility to do it.

Nigel


I know the problems, it's kind of why I asked.  Simply writing data to a file before erasing won't always overwrite the physical location on the disk.  Matter of fact, it usually won't overwrite those blocks, it will just write the file out wherever convenient and change the catalog to match.



I have a whole host of "wipe" utilities at my disposal.
#14
Anything else we might add? /
February 08, 2007, 12:19:36 PM
Here's the code I'll be using for my next article.  It works the same but is more compact, with all of the core logic on one line, and a second line to write the pad remainder file out.



#!/usr/bin/newlisp
(set 'params (main-args))
(if (< (length params) 5)
  (begin
    (println "USAGE: crypt.lsp [pad] [file] [output] [pad-remainder]")
    (exit)
  )
)
(set 'pad (params 2))
(set 'target (params 3))
(set 'output (params 4))
(set 'remainder (params 5))
(write-file output (encrypt (read-file target) (read-file pad)))
(write-file remainder (slice (read-file pad) (length (read-file target))))
(exit)
#15
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?