View previous topic :: View next topic |
Author |
Message |
Paranoid Apprentice
Joined: 07 Jan 2004 Posts: 290 Location: Portland, ME
|
Posted: Thu Sep 02, 2004 5:05 pm Post subject: |
|
|
killfire wrote: | open up you background with gimp, and draw a solid color block (or it could be partially transparent) in the spot where torsmo resides, and then it will look like it has a background color |
LMAO! _________________ A paranoid is someone who knows a little of what's going on.
William S. Burroughs |
|
Back to top |
|
|
theBlackDragon l33t
Joined: 23 Nov 2002 Posts: 768 Location: Belgium
|
Posted: Thu Sep 02, 2004 5:22 pm Post subject: |
|
|
Paranoid wrote: | killfire wrote: | open up you background with gimp, and draw a solid color block (or it could be partially transparent) in the spot where torsmo resides, and then it will look like it has a background color |
LMAO! |
I don't know what's so funny... lot's of thing were done this way before and it looks really good after all... _________________ Fvwm|Fvwm forum |
|
Back to top |
|
|
killfire l33t
Joined: 04 Oct 2003 Posts: 618
|
Posted: Thu Sep 02, 2004 6:16 pm Post subject: |
|
|
theBlackDragon wrote: | Paranoid wrote: | killfire wrote: | open up you background with gimp, and draw a solid color block (or it could be partially transparent) in the spot where torsmo resides, and then it will look like it has a background color |
LMAO! |
I don't know what's so funny... lot's of thing were done this way before and it looks really good after all... |
thanks
its also a hell of a lot easier to do than recoding torsmo.... especially because i dont even want it that way, i was just trying to show an option.
--killfire _________________ my website, built in HAppS: http://dbpatterson.com
an art (oil painting) website I built a pure python backend for: http://www.lydiajohnston.com |
|
Back to top |
|
|
Paranoid Apprentice
Joined: 07 Jan 2004 Posts: 290 Location: Portland, ME
|
Posted: Thu Sep 02, 2004 7:33 pm Post subject: |
|
|
Relax people, I just found that rather creative solution funny. To each his own. _________________ A paranoid is someone who knows a little of what's going on.
William S. Burroughs |
|
Back to top |
|
|
killfire l33t
Joined: 04 Oct 2003 Posts: 618
|
Posted: Thu Sep 02, 2004 11:54 pm Post subject: |
|
|
Paranoid wrote: | Relax people, I just found that rather creative solution funny. To each his own. |
_________________ my website, built in HAppS: http://dbpatterson.com
an art (oil painting) website I built a pure python backend for: http://www.lydiajohnston.com |
|
Back to top |
|
|
Paranoid Apprentice
Joined: 07 Jan 2004 Posts: 290 Location: Portland, ME
|
Posted: Fri Sep 03, 2004 12:04 am Post subject: |
|
|
BTW killfire thanks for getting my ass in gear. Been talking about learning C for some time but now I'm actually doing it.... _________________ A paranoid is someone who knows a little of what's going on.
William S. Burroughs |
|
Back to top |
|
|
syscrash Guru
Joined: 14 Apr 2003 Posts: 541
|
Posted: Fri Sep 03, 2004 12:49 am Post subject: |
|
|
lol to be honest i thought of doing that
But i was thinking something more like css divs, where you can set the colour of the div and give it a border
Your idea works too, though (lol) _________________ Play ET? Come by #gentoo.et on freenode!
http://syscrash.ca |
|
Back to top |
|
|
killfire l33t
Joined: 04 Oct 2003 Posts: 618
|
Posted: Fri Sep 03, 2004 1:35 am Post subject: |
|
|
syscrash2k wrote: | lol to be honest i thought of doing that
But i was thinking something more like css divs, where you can set the colour of the div and give it a border
Your idea works too, though (lol) |
Paranoid wrote: | BTW killfire thanks for getting my ass in gear. Been talking about learning C for some time but now I'm actually doing it.... |
sort of the same thing with me. except ive been learning c for a while, and finally i had something to use it with.... _________________ my website, built in HAppS: http://dbpatterson.com
an art (oil painting) website I built a pure python backend for: http://www.lydiajohnston.com |
|
Back to top |
|
|
killfire l33t
Joined: 04 Oct 2003 Posts: 618
|
Posted: Fri Sep 03, 2004 1:47 am Post subject: |
|
|
Im thinking about writing a FAQ for torsmo, because it seems there are a lot of little things that can, and have been done.
If anyone has something, like a workaround, or a patch not already mentioned in this thread (little things, like I use mutt for mail, and mutt doesnt update mbox access times, so i have to add an execi touch to make the mailcount accurate, those kind of things) can you either post here or PM me?
hopefully ill have a copy of it finished soon, and maybe we can get it into gentoo docs... hopefully
-killfire _________________ my website, built in HAppS: http://dbpatterson.com
an art (oil painting) website I built a pure python backend for: http://www.lydiajohnston.com |
|
Back to top |
|
|
killfire l33t
Joined: 04 Oct 2003 Posts: 618
|
Posted: Mon Sep 06, 2004 4:07 am Post subject: |
|
|
killfire wrote: | Im thinking about writing a FAQ for torsmo, because it seems there are a lot of little things that can, and have been done.
If anyone has something, like a workaround, or a patch not already mentioned in this thread (little things, like I use mutt for mail, and mutt doesnt update mbox access times, so i have to add an execi touch to make the mailcount accurate, those kind of things) can you either post here or PM me?
hopefully ill have a copy of it finished soon, and maybe we can get it into gentoo docs... hopefully
-killfire |
i have a beta of it, wrote it just now, tell me what you think / what to add or change:
http://www.sover.net/~ljohnstn/torsmo_faq.txt
if anyone would like to turn it into pretty html, youre welcome to, and if you want me to, ill host it on my site. i dont have time for it now, so its just ugly plain text.
--killfire--[/url] _________________ my website, built in HAppS: http://dbpatterson.com
an art (oil painting) website I built a pure python backend for: http://www.lydiajohnston.com |
|
Back to top |
|
|
dmr n00b
Joined: 09 Aug 2004 Posts: 10 Location: Wroclaw, Poland
|
Posted: Mon Sep 06, 2004 5:23 pm Post subject: |
|
|
Maybe a link to this topic? As a place of live discussion, ideas and questions? _________________ Szymon |
|
Back to top |
|
|
Dracnor Guru
Joined: 08 Jun 2003 Posts: 397 Location: Pennsylvania
|
Posted: Mon Sep 06, 2004 7:47 pm Post subject: |
|
|
I wrote a patch to show the CPU frequency. It is already merged into the cvs version, so the ebuild should pick it up. I still have the patch for version .17 though. _________________ Registered Linux User #335028 |
|
Back to top |
|
|
killfire l33t
Joined: 04 Oct 2003 Posts: 618
|
Posted: Tue Sep 07, 2004 2:21 am Post subject: |
|
|
dmr wrote: | Maybe a link to this topic? As a place of live discussion, ideas and questions? |
done.
well, considering its plain text, a link is not there, but the url is. _________________ my website, built in HAppS: http://dbpatterson.com
an art (oil painting) website I built a pure python backend for: http://www.lydiajohnston.com |
|
Back to top |
|
|
eSinner Tux's lil' helper
Joined: 13 Mar 2004 Posts: 89 Location: Australia
|
Posted: Tue Sep 07, 2004 6:10 am Post subject: Not happy.. |
|
|
Hi, I love gkrellm. Though recently I saw torsmo mentioned in a "which monitor app is better" type thread and decided to give it a go. I loved it, pure and simple. Though there was one problem I found with it which made me stick with gkrellm.
Seeing this is the place for torsmo discussion (or so it seems) can anyone tell me how to stop the insane flicker you get with more regular refresh times. I had torsmo updating once per second, and when it was redrawn to the root window you'd get screen flicker. I don't understand why this would be happening, or how to rectify the situation, but it's basically the only thing stopping me from using torsmo. I'd like to have an update interval of at the very minimum 1 second. Gkrellm can do this no probs without flicker.
Any ideas? _________________ =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
http://www.esinner.com/
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= |
|
Back to top |
|
|
CybeRDukE Tux's lil' helper
Joined: 16 Jul 2002 Posts: 92
|
Posted: Tue Sep 07, 2004 9:25 am Post subject: |
|
|
i just tried 1 second as update interval and no flickering at all.
if you use fvwm, then try "BugOpts FlickeringMoveWorkaround True". this stopped flickering when moving gnome-terminal for me and is probably the reason that my torsmo updates smooth. |
|
Back to top |
|
|
killfire l33t
Joined: 04 Oct 2003 Posts: 618
|
Posted: Wed Sep 08, 2004 2:44 am Post subject: Re: Not happy.. |
|
|
eSinner wrote: | Hi, I love gkrellm. Though recently I saw torsmo mentioned in a "which monitor app is better" type thread and decided to give it a go. I loved it, pure and simple. Though there was one problem I found with it which made me stick with gkrellm.
Seeing this is the place for torsmo discussion (or so it seems) can anyone tell me how to stop the insane flicker you get with more regular refresh times. I had torsmo updating once per second, and when it was redrawn to the root window you'd get screen flicker. I don't understand why this would be happening, or how to rectify the situation, but it's basically the only thing stopping me from using torsmo. I'd like to have an update interval of at the very minimum 1 second. Gkrellm can do this no probs without flicker.
Any ideas? |
the reason i can give you, relatively easily.
when torsmo updates, it gets rid of the old drawing, and draws a new one. the flicker is the time after the old one has been destroyed while the new one is being drawn.
the solution is obvious, but slightly dificult to implement (if anyone has experiance in C and x programming, this might be a good project .
its called double buffering. what it means, is the update is drawn into the memory (could be video, could be regular) and then once its finished, the existing drawing is removed and instantly replaced with the new one = no flicker.....
something to work on...
killfire _________________ my website, built in HAppS: http://dbpatterson.com
an art (oil painting) website I built a pure python backend for: http://www.lydiajohnston.com |
|
Back to top |
|
|
dmr n00b
Joined: 09 Aug 2004 Posts: 10 Location: Wroclaw, Poland
|
Posted: Wed Sep 08, 2004 12:16 pm Post subject: |
|
|
A quick note to IMAP checking.
To prevent long delays when waiting for fechmail's output you can split the process. The bash script is invoked by cron every minute and writes output to a text file. You can then insert the results from the file to torsmo. _________________ Szymon |
|
Back to top |
|
|
Shai'tan n00b
Joined: 23 Dec 2003 Posts: 27
|
Posted: Wed Sep 15, 2004 1:01 pm Post subject: |
|
|
Nice tips here, but because I didn't want to install fetchmail for IMAP and I don't have Thunderbird for POP, I've written a small python script to check my emails. Maybe it is also useful for you.
.mailchck.py
Code: |
#!/usr/bin/python
#Very simple mail checking programm (e.g to use in torsmo)
#
#Adrian Frei <adrian[d]frei[a]freesurf[d]ch>
import sys, imaplib, re, socket, base64, csv, poplib, mailbox
class StatusError(Exception): pass
#Usage-message
def usage():
print "Usage: ./.mailchck.py configfile\n"
#Adding two "vecors"
def add(list1, list2):
return [list1[0]+list2[0],list1[1]+list2[1]]
#Collect infos from pop-mailbox
def pop(server,user,passwd):
try:
session = poplib.POP3(server)
session.user(user)
session.pass_(base64.decodestring(passwd))
messages = session.stat()[0]
session.quit()
return [int(messages),int(messages)]
except socket.gaierror, e:
print "Error: " +e[1]
sys.exit()
except poplib.error_proto, e:
print "Error: " +e[0]
session.quit()
sys.exit()
#Collect infos from mbox
def mbox(path):
try:
mb = mailbox.PortableUnixMailbox(file(path))
i=0
for mail in mb:
i=i+1
return [i,0]
except IOError,e:
print "Error: "+e[1]
sys.exit()
#Collect infos from imap-mailbox
def imap(server, protocol, user, passwd, box):
try:
if protocol != 'imap':
session = imaplib.IMAP4_SSL(server) #Connect to server
else:
session = imaplib.IMAP4(server) #Connect to server
session.login(user,base64.decodestring(passwd))
#Total mails in selected folder
resp=session.select(box)
if resp[0]!='OK':
raise StatusError(resp);
else:
messages=resp[1][0]
#New mails
resp=session.status(box,'(UNSEEN)')
if resp[0]!='OK':
print "Error: "+resp[1][0]
else:
p = re.compile('\(UNSEEN (\d*)\)')
m = p.search(resp[1][0])
newmessages=m.group(1)
#Leaving Server
session.logout()
session.shutdown()
return [int(messages),int(newmessages)]
except socket.gaierror, e:
print "Error: " +e[1]
sys.exit()
except session.error, e:
print "Error: " +e[0]
session.logout()
session.shutdown()
sys.exit()
except StatusError, e:
print "Error: " +e[0][1][0]
session.logout()
session.shutdown()
sys.exit()
#Main program
arg = sys.argv[1:]
if 0<len(arg)<2:
config=[]
configFile = csv.reader(file(arg[0]))
#Get rid of the comments
for row in configFile:
if row[0][0] !='#':
config.append(row)
#Collect all data
mailCount=[0,0]
for row in config:
if row[1]=='imap' or row[1]=='imap-ssl':
m=imap(row[0], row[1], row[2], row[3], row[4])
elif row[1]=='pop':
m=pop(row[0], row[2], row[3])
elif row[1]=='mbox':
m=mbox(row[4])
else:
m=[0,0]
mailCount=add(m, mailCount)
print str(mailCount[1]) +" / "+str(mailCount[0])
sys.exit()
else:
usage()
sys.exit()
|
.mailchck.conf
Code: |
#mailchck configfile:
#format (one mailbox per line):
#host,protocol,user,password,location
#
#host: imap/pop-server
#protocol: pop,imap,imap-ssl,mbox
#user: Username
#password: Base64 encoded password (not secure!)
# -> perl -e 'use MIME::Base64;print encode_base64($ARGV[0])' password
#location: imap-directory or mbox path
#
imap.server.com,imap-ssl,user,cGFzc3dvcmQ=,INBOX
pop.server.com,pop,user,cGFzc3dvcmQ=,none
none,mbox,none,none,/home/myuser/evolution/local/Inbox/mbox
|
It is my first python program so many things aren't very beautiful, but it works (at least for me)... |
|
Back to top |
|
|
Tommm Apprentice
Joined: 06 Feb 2004 Posts: 159 Location: Warsaw, Poland
|
Posted: Thu Sep 16, 2004 3:14 pm Post subject: flicker |
|
|
i'm also experiencing the unpleasant flicker please do something about it, because (imvho) it's the only flaw
cheers! |
|
Back to top |
|
|
killfire l33t
Joined: 04 Oct 2003 Posts: 618
|
Posted: Sun Sep 19, 2004 5:08 pm Post subject: |
|
|
Shai'tan wrote: | Nice tips here, but because I didn't want to install fetchmail for IMAP and I don't have Thunderbird for POP, I've written a small python script to check my emails. Maybe it is also useful for you.
.mailchck.py
Code: |
#!/usr/bin/python
#Very simple mail checking programm (e.g to use in torsmo)
#
#Adrian Frei <adrian[d]frei[a]freesurf[d]ch>
import sys, imaplib, re, socket, base64, csv, poplib, mailbox
class StatusError(Exception): pass
#Usage-message
def usage():
print "Usage: ./.mailchck.py configfile\n"
#Adding two "vecors"
def add(list1, list2):
return [list1[0]+list2[0],list1[1]+list2[1]]
#Collect infos from pop-mailbox
def pop(server,user,passwd):
try:
session = poplib.POP3(server)
session.user(user)
session.pass_(base64.decodestring(passwd))
messages = session.stat()[0]
session.quit()
return [int(messages),int(messages)]
except socket.gaierror, e:
print "Error: " +e[1]
sys.exit()
except poplib.error_proto, e:
print "Error: " +e[0]
session.quit()
sys.exit()
#Collect infos from mbox
def mbox(path):
try:
mb = mailbox.PortableUnixMailbox(file(path))
i=0
for mail in mb:
i=i+1
return [i,0]
except IOError,e:
print "Error: "+e[1]
sys.exit()
#Collect infos from imap-mailbox
def imap(server, protocol, user, passwd, box):
try:
if protocol != 'imap':
session = imaplib.IMAP4_SSL(server) #Connect to server
else:
session = imaplib.IMAP4(server) #Connect to server
session.login(user,base64.decodestring(passwd))
#Total mails in selected folder
resp=session.select(box)
if resp[0]!='OK':
raise StatusError(resp);
else:
messages=resp[1][0]
#New mails
resp=session.status(box,'(UNSEEN)')
if resp[0]!='OK':
print "Error: "+resp[1][0]
else:
p = re.compile('\(UNSEEN (\d*)\)')
m = p.search(resp[1][0])
newmessages=m.group(1)
#Leaving Server
session.logout()
session.shutdown()
return [int(messages),int(newmessages)]
except socket.gaierror, e:
print "Error: " +e[1]
sys.exit()
except session.error, e:
print "Error: " +e[0]
session.logout()
session.shutdown()
sys.exit()
except StatusError, e:
print "Error: " +e[0][1][0]
session.logout()
session.shutdown()
sys.exit()
#Main program
arg = sys.argv[1:]
if 0<len(arg)<2:
config=[]
configFile = csv.reader(file(arg[0]))
#Get rid of the comments
for row in configFile:
if row[0][0] !='#':
config.append(row)
#Collect all data
mailCount=[0,0]
for row in config:
if row[1]=='imap' or row[1]=='imap-ssl':
m=imap(row[0], row[1], row[2], row[3], row[4])
elif row[1]=='pop':
m=pop(row[0], row[2], row[3])
elif row[1]=='mbox':
m=mbox(row[4])
else:
m=[0,0]
mailCount=add(m, mailCount)
print str(mailCount[1]) +" / "+str(mailCount[0])
sys.exit()
else:
usage()
sys.exit()
|
.mailchck.conf
Code: |
#mailchck configfile:
#format (one mailbox per line):
#host,protocol,user,password,location
#
#host: imap/pop-server
#protocol: pop,imap,imap-ssl,mbox
#user: Username
#password: Base64 encoded password (not secure!)
# -> perl -e 'use MIME::Base64;print encode_base64($ARGV[0])' password
#location: imap-directory or mbox path
#
imap.server.com,imap-ssl,user,cGFzc3dvcmQ=,INBOX
pop.server.com,pop,user,cGFzc3dvcmQ=,none
none,mbox,none,none,/home/myuser/evolution/local/Inbox/mbox
|
It is my first python program so many things aren't very beautiful, but it works (at least for me)... |
very slick, i will add it to the tutorial, if i get time (schools eating up a bit of my time
[EDIT] well i decided to procrastinate a little, and its up there now,
http://www.sover.net/~ljohnstn/torsmo_faq.txt
[/EDIT]
much better idea then fetchmail (i always thought that was overkill, btu i didnt have a better idea)...
you may have just made me learn python, looks nice and effective, and in this case makes more sense than C..... gotta broaden myself
killfire _________________ my website, built in HAppS: http://dbpatterson.com
an art (oil painting) website I built a pure python backend for: http://www.lydiajohnston.com |
|
Back to top |
|
|
pem Guru
Joined: 29 Aug 2004 Posts: 390 Location: France
|
Posted: Sat Sep 25, 2004 9:59 am Post subject: |
|
|
I've tried to get Torsmo integrated into an FvwmButton. The effect is nice but at its first refresh, torsmo disappear. If someone has a working conf that he is willing to share ... _________________ Registered user #30505 |
|
Back to top |
|
|
Shai'tan n00b
Joined: 23 Dec 2003 Posts: 27
|
Posted: Mon Sep 27, 2004 10:08 am Post subject: |
|
|
killfire wrote: |
very slick, i will add it to the tutorial, if i get time (schools eating up a bit of my time
[EDIT] well i decided to procrastinate a little, and its up there now,
http://www.sover.net/~ljohnstn/torsmo_faq.txt
[/EDIT]
much better idea then fetchmail (i always thought that was overkill, btu i didnt have a better idea)...
you may have just made me learn python, looks nice and effective, and in this case makes more sense than C..... gotta broaden myself
killfire |
Cool, thanks. And yes, python is just great. It is easy to use and very effective.
But now I have two improvements for my script. First, to get rid of the newline on the script's output, just replace all print-statements with sys.stdout.write(). And second, if you don't have perl, you don't need to emerge it, just use the script below.
Code: |
#!/usr/bin/python
import base64, sys
arg = sys.argv[1:]
if 0<len(arg)<2:
print base64.encodestring(arg[0])
sys.exit()
else:
print "Usage: ./base64encode.py password"
sys.exit()
|
And then I have modified killfires awk-program to show my WLAN link-quality:
Code: |
#!/bin/sh
/usr/sbin/iwconfig eth1|awk '{split($29,x,/=/);printf x[2];exit;}' RS="/f"
|
|
|
Back to top |
|
|
pharaoh Apprentice
Joined: 20 Nov 2003 Posts: 211 Location: Pennsylvania
|
Posted: Thu Sep 30, 2004 6:09 am Post subject: |
|
|
I'm curious...is there a way to show the temps of a dual cpu system using i2c and such? I have it working now, but I'm getting only 1 cpu temp and it's 94C. So I'm guessing that's either supposed to be F and not C, or else it's maybe combining the two readings (since CPU Usage gets combined...showing 196% while running two instances of F@H). Any clues? _________________ RYZEN 5 3600 Matisse (Zen 2) 6-Core 3.6 GHz Socket AM4 65W
ASRock B550M PRO4
Crucial Ballistix 3200 MHz DDR4 DRAM 16GB
EVGA GeForce GTX 1060 6GB |
|
Back to top |
|
|
nadir-san Apprentice
Joined: 29 May 2004 Posts: 174 Location: Ireland
|
Posted: Fri Oct 08, 2004 10:02 pm Post subject: |
|
|
works fine for meh man.
i have sensors installed the usual way,
Code: |
eeprom 6408 0
w83781d 31872 6
i2c_sensor 2560 2 eeprom,w83781d
i2c_algo_bit 9096 0
i2c_i801 7184 0
i2c_isa 1920 0
i2c_dev 7808 0
i2c_core 19348 7 eeprom,w83781d,i2c_sensor,i2c_algo_bit,i2c_i801,i2c_isa,i2c_dev
nvidia 4818356 12
|
im using the basic config, made some small alterations, and im setting up the mail checker atm
here is my .torsmorc if you are interesed
heres a screeeie http://frink.nuigalway.ie/~nadir/screenie1.jpg
nice app ok, I think i will stop using gkrellm now.[/code] |
|
Back to top |
|
|
pharaoh Apprentice
Joined: 20 Nov 2003 Posts: 211 Location: Pennsylvania
|
Posted: Sat Oct 09, 2004 2:18 pm Post subject: |
|
|
I think the problem is this whacky Tyan server board. I have had problems with it for as long as I've had it, so I'm not going to worry that the cpu temps are being reported as 85-99C each. I have no stablity problems, I'm not overclocking, and I'm using the fan/sinks they came boxed with. But thanks for the .torsmorc, gave me some ideas _________________ RYZEN 5 3600 Matisse (Zen 2) 6-Core 3.6 GHz Socket AM4 65W
ASRock B550M PRO4
Crucial Ballistix 3200 MHz DDR4 DRAM 16GB
EVGA GeForce GTX 1060 6GB |
|
Back to top |
|
|
|
|
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 You cannot vote in polls in this forum
|
|