Sigx

We are the future in the past.
It is currently Sun Aug 19, 2018 7:08 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 24 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: TclSigX v0.1 beta
PostPosted: Sat Jan 01, 2005 3:18 am 
Offline

Joined: Thu Dec 09, 2004 5:24 am
Posts: 140
Location: Hiding inside my laptop
I have finished the first version of my TclSigX client, and it can now be downloaded from:

EDIT: see next post

TclSigX is designed to be more easily customized than the Perl SigX script but still be hackable (read the comments that start with "Hack Note:" in the TclSigX source find some info on how to do this).

to install TclSigX, make sure you have Tcl installed, extract the TclSigX program to whereever you want (your home directory is an alright place), configure (edit TclSigX in a text editor) and setup a cron job just like you would with the Perl script.

note that the password is stored in a weak encrytion. it is stored all backwords except for the first and last characters (eg "password" becomes "prowssad").

Some plans for the future:
* Have TclSigX split up into several files, redistrobute the development versions in only the split version and the stable versions in both split and single file versions. This will start next version.
* a readme file, probaly in the next version
* Plug-ins. I got this idea from SigX.NET. this wouldnt be such a hard thing to do, but the single file version might be a problem. i might even get this to work with other scripted langauges like Perl, Python and Ruby (btw those SigX.NET screenshots look pretty cool rick ;-) )
* Support more programs when getting status info
* Impliment better ways of getting XMMS info (and other music apps too)
* TkSigX, a frontend to TclSigX. this is a long way off, if it even does happen.

Btw, any feedback from users would be great. :-)

_________________
Image


Last edited by breadcrust on Sun Jan 09, 2005 4:17 am, edited 2 times in total.

Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 02, 2005 8:12 pm 
Offline

Joined: Thu Dec 09, 2004 5:24 am
Posts: 140
Location: Hiding inside my laptop
I now have a Sourceforge project for TclSigX.

http://www.sourceforge.net/projects/tclsigx

TclSigX can now be downloaded from there.

_________________
Image


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 10, 2005 7:32 pm 
Offline

Joined: Wed Apr 07, 2004 10:12 am
Posts: 15
Location: Setting fire to all things evil. Like Bill Gates' pants.
Wow... I don't use XMMS any more, so I'll hack it to work with dcop and amaroK sometime tomorrow. Initial tests are promising.

BTW, TCL isn't one of my best languages, so It'll be messy.

I suppose this also knocks out my previous proposition for a project... never got anywhere, and this is an AWESOME client so far.

Awesome job. Looking for any devel members? I'm not much of a TCL scripter, but from what I've looked at, it's not TOO horribly different from Perl.

*note*
I've got it reading the DCOP info... now I just need to fix the formatting. I'm getting tired, though, so I'll do it tomorrow.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 11, 2005 6:30 am 
Offline

Joined: Thu Dec 09, 2004 5:24 am
Posts: 140
Location: Hiding inside my laptop
Quote:
BTW, TCL isn't one of my best languages, so It'll be messy.


no problem, I'll help you clean up the code after you have got it working

Quote:
Awesome job. Looking for any devel members? I'm not much of a TCL scripter, but from what I've looked at, it's not TOO horribly different from Perl.


yeah, and help would be great. if you dont have a sourceforge account, make yourself one and then tell me your sf username. ill add you to the project.

ive tried hacking some perl myself, and from what ive seen, Perl is pretty similar to Tcl except Tcl doesnt have that tricky string manipulation and other weird syntax stuff, but it is alot more straight forward and i find it easier to read.

btw, you have just reminded me to work on the TclSigX hacking doc I started on sourceforge. /me goes to finish it... :-)

_________________
Image


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 11, 2005 2:45 pm 
Offline

Joined: Wed Apr 07, 2004 10:12 am
Posts: 15
Location: Setting fire to all things evil. Like Bill Gates' pants.
I just registered a sf account. noclue2 is the user name.

I should have this done within an hour or so... Just fixing a few formatting bugs right now.

*Edit*

Done. I had to totally rethink how I wanted to do it. It's more versatile than when the first time I did it.

Hmm... I'm wondering how I should post it. I don't want to post all the code in a message, and I don't have a website. I guess I'll just wait to be added to the sf team.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 11, 2005 9:48 pm 
Offline

Joined: Thu Dec 09, 2004 5:24 am
Posts: 140
Location: Hiding inside my laptop
alright, cool, you are now a project member. :-)

you can submit your modded version of TclSigX to the patches section. Patches, hacks, they are both the same thing. ^_^

_________________
Image


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 12, 2005 1:45 pm 
Offline

Joined: Wed Apr 07, 2004 10:12 am
Posts: 15
Location: Setting fire to all things evil. Like Bill Gates' pants.
Will do as soon as I reboot... I'm on windows right now, and I've always had trouble with the ext3 drivers for windows I've found.

Anyone else interested in joining?

_________________
Image
TclSigX is t3h BESTEST!


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 12, 2005 6:10 pm 
Offline

Joined: Mon Mar 15, 2004 1:48 pm
Posts: 1395
Location: Los Angeles
glad to see some work done on your project.

_________________
Image

Image

Image


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 12, 2005 6:51 pm 
Offline

Joined: Thu Dec 09, 2004 5:24 am
Posts: 140
Location: Hiding inside my laptop
I've just looked through your code, and can see how it works.

and.. im thinking of totally changing the way TclSigX creates the listeningTo data items and including and extending your hack into the next version (v0.1.1).

oh and noclue, is there any language you prefer to program in. im planning to start on plugin support for multiple langauges in v0.2.0 so if there is any language you want me to support, just tell me.

and by the way, the reason dcop wont work on cronjobs is because the cron jobs are run as a different user (i think...). ill have to make a workaround for this in TclSigX.

thanks yuriy, and and by the way did you read my Unix clients on Download page thread?

_________________
Image


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 12, 2005 9:01 pm 
Offline

Joined: Mon Feb 16, 2004 9:44 pm
Posts: 16
oi! il help.. but.. lol forgot my SF login..

btw.. other langauges i know
1) english (british)
2) slang
3) 1337?

lol.. ya.. il see if i can make a good hack for that uptime shiza.. its realy driving me nuts saying "4users loged on ect ect ect"


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 13, 2005 1:31 pm 
Offline

Joined: Wed Apr 07, 2004 10:12 am
Posts: 15
Location: Setting fire to all things evil. Like Bill Gates' pants.
I read through the dcop manual again and noticed something that completely missed me before... the --user option.

I'm working on a hack to exploit this presently. This new hack of mine will also include an if statement to get rid of "Now Playing: " entries when used with amaroK. Hopefully, anyway.

_________________
Image
TclSigX is t3h BESTEST!


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 13, 2005 1:36 pm 
Offline

Joined: Mon Mar 15, 2004 1:48 pm
Posts: 1395
Location: Los Angeles
do you guys url encode your submissions?

_________________
Image

Image

Image


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 13, 2005 1:46 pm 
Offline

Joined: Wed Apr 07, 2004 10:12 am
Posts: 15
Location: Setting fire to all things evil. Like Bill Gates' pants.
*Finishes his new hack*

Let me check... I didn't originally write it...

*examines*

Yes, we do.

Also, on my new hack, I changed the retrieval method a bit... and the if statement didn't get done... it just wasn't working... I'm not sure why.

_________________
Image
TclSigX is t3h BESTEST!


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 13, 2005 4:54 pm 
Offline

Joined: Thu Dec 09, 2004 5:24 am
Posts: 140
Location: Hiding inside my laptop
yeah i was also playing around with that --user option on dcop too last night. a problem that might come up with dcop is if the user has more than one session. however i think we will leave that now (why would you run two kde sessions under one user anyway?)

yuriy, if by url encoding you mean this:

Code:
proc urlEncode {string} {
  return [string map [list \n "*<*" " " "%20" \; "%3b" / "%2f" ? "%3f" : "%3a" @ "%40" & "%26" = "%3d" + "%2b" \$ "%24" , "%2c" % "%25" < "%3c" > "%3e" # "%23" \" "%22" \{ "%7b" \} "%7d" | "%7c" \\ "%5c" ^ "%5e" \[ "%5b" \] "%5d" ` "%60"] $string]
}


than yeah :-)

_________________
Image


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 25, 2005 3:14 am 
Offline

Joined: Thu Dec 09, 2004 5:24 am
Posts: 140
Location: Hiding inside my laptop
TclSigX v0.1.1 is close to finished, just currently testing it atm.

data items aviable in v0.1.1 for the curious:

Code:
# Output Line strings.
# You can put any text you like here and stat variables.
#
# Stat variables :
# @customTextX - Custom text strings (where X is custom string number)
# @customCommandX - Custom commands (where X is custom command number)
# @linuxCounter @linuxCounterWithURL - Linux Counter Number
# @status - Your current status
# @xServerScreenRes0 - Resolution of screen. Adjust 0 to wanted screen if needed
# @opSysSummary @opSysName @opSysVersion @opSysPlatform @opSysDistrobution - Operating System
# @tclSigXInfoLong @tclSigXInfoShort - Info about this program
# @uptime - Displays uptime info
# @tclVersion @tclVersionPatch - The version of Tcl being used to execute this script
# @usernameSigX @usernameComputer - Your SigX username and local computer username
# @serverSideClientIP - Your computers internet IP address (processed on SigX server)
# @listeningToFile - Get currently listening to info from file (specified bove in config)
# @clockTime @clockDate - Computer Date & Time
# @@ - Insert an @
#
# @listeningToAmarok-songTitle - Current song title in Amarok
# @listeningToAmarok-songName @listeningToAmarok-songArtist - Current name and artist in Amarok
#
# @listeningToInfopipe-pluginVersion - Version of the Infopipe plugin you are using
# @listeningToInfopipe-status - Current status of music player
# @listeningToInfopipe-playlistLength - Playlist song length
# @listeningToInfopipe-playlistCurrent - Current song (number) in playlist
# @listeningToInfopipe-songTimeLength @listeningToInfopipe-songTimeCurrent - Song time
# @listeningToInfopipe-songChannels - Number of channels on current song
# @listeningToInfopipe-songTitle @listeningToInfopipe-songFilename - Current song title and filename
# @listeningToInfopipe-songFiletypeShort @listeningToInfopipe-songFiletypeLong - Song filetype
# @listeningToInfopipe-songSamplerate @listeningToInfopipe-songBitrate - Song samplerate and bitrate
#
# @hardwareCpuArch @hardwareCpuByteOrder @hardwareCpuSummary - CPU Architecture, Byteorder, Summary
# @hardwareCpuHertz @hardwareCpuModel @hardwareCpuBogomips - CPU Hertz, model, bigomips (Linux Only)
#
# @hardwareMemoryFreePhysical @hardwareMemoryFreeSwap @hardwareMemoryFreeAll - Free system memory
# @hardwareMemoryUsedPhysical @hardwareMemoryUsedSwap @hardwareMemoryUsedAll - Used system memory
# @hardwareMemoryCachedPhysical - Cached Phyiscal memory
# @hardwareMemoryTotalPhysical @hardwareMemoryTotalSwap @hardwareMemoryTotalAll - Total system memory
# @hardwareMemoryFreePercentPhysical @hardwareMemoryFreePercentSwap - Free memory in percent
# @hardwareMemoryFreePercentAll - Total free memory in percent
# @hardwareMemoryUsedPercentPhysical @hardwareMemoryUsedPercentSwap - Used memory in percent
# @hardwareMemoryUsedPercentAll - Total used memory in percent
#
# @hardwareDiskFreeAll @hardwareDiskUsedAll @hardwareDiskTotalAll - Free, used and total space of all disks
# @hardwareDiskFreeDev-hdx0 @hardwareDiskUsedDev-hdx0 @hardwareDiskTotalDev-hdx0 - As above for a perticular device
# @hardwareDiskFreeMnt-/home @hardwareDiskUsedMnt-/home @hardwareDiskTotalMnt-/home - As above for a mount point
# @hardwareDiskFreePercentAll @hardwareDiskFreePercentDev-hdx0 @hardwareDiskFreePercentMnt-/home - Free space in %
# @hardwareDiskUsedPercentAll @hardwareDiskUsedPercentDev-hdx0 @hardwareDiskUsedPercentMnt-/home - Used space in %
#
# @networkInputBytes @networkOutputBytes - Input and output of network in (mega/kila/whatever)bytes
# @networkInputPackets @networkOutputPackets - Input and output of network in packets
#
# @hostnameName @hostnameDomain @hostnameLong - Computer Hostname, DNS Domain, FQDN
# @hostnameYp @hostnameTcl - Yellow Pages/NIS Domain, Hostname according to Tcl (usually FQDN)
#
# The following are processed on the SigX server and are only on premium accounts
# @serverSideReferral @serverSideUserOS - Shows currently viewed page, viewers OS
# @serverSideUserBrowser @serverSideUserIP - Shows viewers browser, viewers IP address
# @serverSideTime @serverSideUserISP - Shows SigX server time, viewers ISP
# @serverSideCounter - Shows sig counter
#
# @alignCenter @alignCentre - Insert at start of line to center align text (only on premium)
# @alignRight - Insert at start of line to right align text (only on premium)
#

_________________
Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 24 posts ]  Go to page 1, 2  Next

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group