Image 01
profile-image

accumulator

Sander van Grieken
Kood Morning

Plasma 4 Extensions by DeepDiver 26 comments

maybe it's best to make them granular options (i.e. checkboxes) and have the view layout adapt to these settings. If you make several views, with fixed settings, it might not become as tweakable as some might like.

example: if you want to option of a label with the button, and you have both a horizontal and a vertical layout, it would result in 4 views, as opposed to 2 options. - Nov 05 2010
Kood Morning

Plasma 4 Extensions by DeepDiver 26 comments

Can I boldly throw in a feature request? (I have become a fan after all ;) )

I'd like the aspect-ratio constraint to be removed, and an option to put the name of the host next to the indicator

thanks! - Nov 04 2010
Kood Morning

Plasma 4 Extensions by DeepDiver 26 comments

I did some checking on the code, and it seems python more or less always crashes when running in a Plasma context.

So I rewrote the ping_async method for you, so it uses nonblocking process calling. Every time the ping_async method is called, it will either

1) start a ping process for that IP
2) query an existing ping process

so calling it on a 5s interval will yield a status update interval of at least 10s

here's the code for ping.py:

Quote:
pingprocs = dict()

def ping_async(ip, result):
"""Pings given ip async"""
if ip in pingprocs:
# ping is running for ip, check process
process = pingprocs[ip]
process.poll()
if process.returncode != None:
# ping finished, submit result
result(ip, process.returncode == 0)
del pingprocs[ip]
else:
process = subprocess.Popen(["/bin/ping","-c","1","%s" % ip],
stdout=open("/dev/null","w"),
stderr=subprocess.STDOUT)
pingprocs[ip] = process


and for main.py:

Quote:
def updateStatus(self):
ping_async(self.ip, self.statusCB)
# end if
# end def updateStatus
def statusCB(self, ip, status):
if status:
self.status = "Online"
else:
self.status = "Offline"
- Nov 04 2010
Kood Morning

Plasma 4 Extensions by DeepDiver 26 comments

.. or use some async method to check for the ping replies.

It's a very nice plasmoid, but with these slowdowns it's also an almost useless plasmoid. - Nov 03 2010
Kood Morning

Plasma 4 Extensions
by DeepDiver

7 .6
Nov 04 2010
MandrubuntuKDE

Wallpapers KDE Plasma
by shinigamimota

4 .6
3   Jul 06 2013
Deep Blue (KDE)

Wallpapers KDE Plasma
by HDStephan

5 .5
3   Jul 06 2013
USU Notifications

Plasma 4 Extensions
by lokster

8 .0
9   Apr 22 2013
6 .7
9   Aug 22 2011
Kood Morning

Plasma 4 Extensions
by DeepDiver

7 .6
9   Nov 08 2010