rone: (Default)
[personal profile] rone

The redoubtable Dave Zuckerman writes:

I'm not a huge blog fan.  Every once in a while, just to be contrarian, I think about doing periodic .plan updates, just so I can tell people who ask if I blog that they'll have to finger me to find out!  Bwahahahah!

Now i'm tempted to figure a way to stick my latest LJ entry into my .plan.

Date: 2004-01-14 03:59 pm (UTC)
From: [identity profile] lusercop.livejournal.com
Does anyone still use finger(1)?

I find I tend to log into machines and use w(1).

Date: 2004-01-14 04:07 pm (UTC)
From: [identity profile] wisn.livejournal.com
I was thinking, "Hey, isn't that what John Carmack was doing?" and googled and found http://www.webdog.org which archives .plan messages for a variety of software developers. For what it's worth, Carmack's last archived update was Jan 23 of last year, and finger johnc@idsoftware.com yields 'connection refused'.

Date: 2004-01-14 05:13 pm (UTC)
From: [identity profile] bivaughn.livejournal.com
I'll write you something in PHP if you want.

No problemo!

Date: 2004-01-14 06:37 pm (UTC)
From: [identity profile] fabio-heinz.livejournal.com
perl -MLWP::Simple -e 'getprint "http://www.livejournal.com/users/ronebofh"' > $HOME/.plan

HTH! HAND! SEND ME A DOLLAR!

Date: 2004-01-14 11:52 pm (UTC)
From: [identity profile] eviltofu.livejournal.com
Can you run a python? If so that possibly I can hack an xml-rpc -> ftp script.

Date: 2004-01-15 07:01 am (UTC)
From: [identity profile] eviltofu.livejournal.com
Here is my python version.

---
import xmlrpclib,string,ftplib,os

ljUserName = "put your lj name here"
ljPassword = "put your lj password here"
tempFileName = "MyPlan"
fingerHost = "put the ip or hostname of the ftp site where you want to put your plan"
fingerUserName = "put the account name of the ftp account on the finger site"
fingerPassword = "put the password of the ftp account on the finger site"
fingerFile = ".plan"

server = xmlrpclib.ServerProxy(uri="http://www.livejournal.com/interface/xmlrpc",verbose=False)
result = {}
plan = ""

result = server.LJ.XMLRPC.getevents({"username": ljUserName,"password": ljPassword,"selecttype":"one","itemid":"-1"})
plan = string.join(
[ result['events'][0]['eventtime'],
result['events'][0]['subject'],
"",
result['events'][0]['event']],
"\n")

temp = file(tempFileName,"w+a")
temp.write(plan)
temp.close()

storeCommand = "STOR " + fingerFile

temp = file(tempFileName)
ftpClient = ftplib.FTP(fingerHost, fingerUserName, fingerPassword)
ftpClient.storlines(storeCommand,temp)
ftpClient.quit()
temp.close()

os.remove(tempFileName)
---

Simple no?

Date: 2004-01-15 07:06 am (UTC)
From: [identity profile] eviltofu.livejournal.com
bah! I forgot to take into account how html would warp formatting and Python is formatting sensitive. Here is the URL to the python file.

http://home.earthlink.net/~eviltofu/ljfinger.py

Profile

rone: (Default)
entombed in the shrine of zeroes and ones

December 2022

S M T W T F S
    123
45678910
11121314151617
18192021222324
252627282930 31

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jan. 6th, 2026 10:53 pm
Powered by Dreamwidth Studios