Search Results: "erich"

4 February 2007

Erich Schubert: GUI for mp3, the MP3 validator and repair utility

mp3val is a tiny command line utility (for Windows and Unix) that knows a lot about the MP3 format and is quite good at detecting and repairing common problems. Depending on the encoder and tagging tools you used, your MP3s might be more or less broken; sometimes it's just an incorrect length information (which might then cause incorrect playing time calculations). Mp3val can correct most of these errors. Since mp3val operates on the MP3 frames and not on the decoded audio, it's fast; the operation is mostly I/O bound so it's probably as fast as your disk. Anyway, mp3val is a command line utility, and I know that some people aren't too comfortable with command line tools. Here's a screenshot of the GUI: Screenshot of mp3val GUI Download source code As you can see, it's a three button application. Select the "Fix files" toggle if you want files to be repaired, then press "Add" (while the added files are processed, the "fix" button is greyed out). Then wait for the progress bar to finish. The scrolling window below will print the warnings and errors emitted by mp3val. As you can see I have a few files with incorrect size information. There are still some improvements that could be made. For example, the application could keep track of the "broken" files, so that they could be processed using mp3val in a second run without having to recheck all the "good" files. Brokenness-statistics and an sortable list view of the detected errors would also be interesting. But I consider none of these features to be important; I'll just let mp3val run over my collection and fix the files. It never trashed a file for me so far (but fixed some that didn't work), and I can still re-rip the songs when needed (but I'll choose Ogg Vorbis then as audio format). The application is a tiny PyGTK script; that and mp3val is all you need. It should work on Windows, too, but I can't help you with that. Another "Pymp of the day" - "Python mini project", done in just an hour. :-) Python and PyGTK are great for protoyping and mini applications. I love your work. Thank you!

2 February 2007

MJ Ray: Bad Tech Links for 2007-02-02

"Guidelines for the Secure Operation of the Internet" (RFC1281)
Read it and weep.
Techblogging: DoSing spammers
I've done this in the past, by having a CGI rabbit-hole in a semi-hidden link near the start of the page which just generated 1000s of invalid email addresses. For bonus points, use addresses with MX servers which will never be online again, or maybe with a MX that tarpits and rejects all mail eventually. Get enough points and the spammer will either stop scanning your site or waste a lot of time on you.
Google scanned by spammers [Techblogging]
I don't use pingomatic, but a few of my pages are ranked high enough to attract spammers every time I update them. I think blog spammers probably are using subscription tools to find the most active/most syndicated sites to spam. Can we redesign the tools to defeat them?
BBC News Technology UK Edition: Ads help Google profits triple
But hey, why should Google care about spammers when their externalisation to date is making Google rich?
Techblogging: Web 2.0 security issues incoming
I dislike Web 2.0 so far because it is often inaccessible - this suggests it's often insecure too.
Software Patents Petition
Need more brains... come on, sign the petition, even if it has a bit of hyperbole/invective and a typo or two. Last I heard, it's behind adopting Spandau Ballet's Gold as national anthem, for crying out loud!
The Irascible Professor-commentary of the day 06-07-06. Calculator dependence.
Parents, don't let your children grow up to be calculator junkies!
Zugschlusbeobachtungen: Which kind of software suspend?
I think I heard Matthew Garrett give an interview somewhere (LUG Radio?) which summarised the suspend situation as something like "it works well except when it doesn't." My computer usually software-suspends, but sometimes it crashes and sometimes is often enough to deter me from suspending it often. I really ought to debug it, but it's not a priority yet.
'Cheap and tacky' wedding email that went global - 19 Nov 2006 - National
"The marquee company's CEO, Klaus Jorgensen, said he had sacked the employee responsible - who turned out to be his wife"
NoDaddy.Com - Exposing the Many Reasons Not to Trust GoDaddy with Your Domain Names
"They didn't give me a chance to dispute or resolve the problem -- just a voicemail saying my domain was scheduled for suspension , followed up by a Domain Suspension Notice exactly 52 seconds later. Note that neither of these included a phone number for the abuse department or a reason for the shutdown."
The 'Ow' starts now / freedom bits / greve / Fellows / The Fellowship - Fellowship of FSFE
FSFE's Georg Greve won't be upgrading to Vista, which I saw called "Windows Fista" on the BBC's site - disgruntled journo, over-aggressive MS PR or typo?
BBC NEWS Have Your Say Will you be getting Microsoft Vista?
Nearly 2000 comments, most "No" AFAIS
Microsoft files for patent on "modular operating system"
Microsoft patents Linux?
Hacking gadflies: Marechal, A dystopian future''
Another comment on the MS patent.
BBC NEWS Technology Triple threat targets Word users
While I'm boggling at Microsoft, I hope all their customers saw this little Christmas present from 20 December.
BBC News Technology UK Edition: Sony CD compensation agreed
No Christmas for Sony, remember? They pay out a year or so late.
BBC Trust - On-demand Services' consultation
A remarkable consultation that includes a question "How important is it that the proposed seven-day catch-up service over the internet is available to consumers who are not using Microsoft software?", but the questionnaire doesn't work in all browsers. Do you think this biases the responses? Yes, yes or yes?
Digg - Pressure the BBC to embrace open standards, not just Microsoft technology!
Digg is the new slashdot. Just add hot grits.
BBC News Technology UK Edition: Vista has speech recognition hole
"for the flaw to be exploited the speech recognition feature would need to be activated and configured and both microphone and speakers would have to be switched on." Well, my speakers are embedded in the screen, my microphone doesn't have an on/off switch and I leave it switched on in the mixer so that I can answer the softphone quickly... I doubt I'm the only one who doesn't switch the mic off after every use. Are Microsoft living in the real world any more?

Erich Schubert: Non-systemwide proxy settings

Uwe Hermann asked about per-application proxy settings for GNOME apps. I don't think this is currently supported in the UI; a majority of users won't want to have to configure the proxy for each application independently. That would suck even more. I agree that it would be nice to be able to use different proxy settings for single apps. But from an UI perspective it somewhat sucks. I didn't check galeon gconf, only epiphany. There were no override settings for the proxy. One thing you can definitely try is using about:config. Maybe you can even use a javascript:foo bookmarklet to change proxy settings; these probably won't be persistent. On the long run, I suggest someone to work out a scheme on doing these overrides in gconf, and then providing patches for Epiphany and Galeon. I bet this has been on the radar for GNOME people, but just on a low priority. My suggestion for such as scheme would be to use proxy profiles. If there is only one profile, the proxy settings dialog will be as it is right now; all applications default to the "Default" proxy settings. An "advanced" button in the dialog allows me to setup multiple proxy profiles (e.g. no proxy, proxy at work, privox+tor) and the UI in applications should consist solely of this profile chooser.

Enrico Zini: pmdraft

Second generation package manager I have created many prototypes for advanced package manager features. Erich Schubert also made a tag cloud prototype. Recently, I wrote:
We have lots of interesting, usable metadata; we have algorithms; we have prototypes; we have ideas for lots of cool, implementable features. The question is, are we able to write applications that just combines what is needed from all this treasure to provide the right interface(s) for our base(s) of users?
Most of the back-end code is already implemented in Python, and I'm thinking of putting it together into a working prototype for a new concept of a file manager. This could be even implemented quickly, if someone joins me who is good at: What follows is a sketch description of what I have in mind. The user
Debora is 34, working as a web designer in a small enterprise. She has a laptop running Debian which she uses both for work and at home. She likes Debian for the wide range of software, that allows her to be always able to access the best tools for the job, even in a highly changing environment like the one of web design. At home she enjoys the various tools for photo editing and management, and of course, having a husband and a 6 years old son, the selection of games.
The tasks Looking for new software Use the smart tag search for searching: it allows a Google-like search interface, which afterwards allows categories to be used to semantically refine the results. This last step is conceptually very simple, as it maps to a sequence of "more like this" and "less like this". The search results can be sorted using popcon suggestions, that are very effective at showing software not in the system that many other people use. Looking at what is installed Let's see if this package does what I need Given an installed pacakge, show the contents of its bin/ directories and showing manpages as the details for the bin/ file: thanks to the Debian Policy, executables are all in /(usr/)?s?bin/ and they must have manpages. For packages that are tagged as interface::3d, interface::text-mode or interface::x11, allow to run them directly from the interface. Also show the contents of /usr/share/doc/pkgname and /usr/share/doc/suggested-and-recommended-pkgnames and allow to open documentation with the appropriate software. If there is an html directory which contains an index.html, only show that and not all the other HTML files. Find info documentation and allow to open it into a proper info browser. If there are manpages that don't have a corresponding executable, show them as extra documentation. What was that nice package I installed yesterday? List installed packages sorted by when was the last time they have been installed. Let's get rid of the cruft There are also some "unusefulness" scores one can compute, but I haven't yet been playing with them yet: Task filter Have a look at the popcon suggestion page: there is a "Suggestion type" box. Of course the same idea can be used in a package manager to restrict it to a significant subset of the packages. More filters, as you can imagine, can be easily created. This is how it is implemented:
case "any": $filter = "'!role::shared-lib'"; break;
case "gui": $filter = "'!role::shared-lib && role::program && (interface::x11   interface::3d)'"; break;
case "devel": $filter = "'!role::shared-lib && devel::*'"; break;
case "game": $filter = "'!role::shared-lib && role::program && game::*'"; break;
default: $filter = ""; break;
The same filter can be gived to Debtags:
debtags search '!role::shared-lib'
debtags search '!role::shared-lib && role::program && (interface::x11   interface::3d)'
debtags search '!role::shared-lib && devel::*'
debtags search '!role::shared-lib && role::program && game::*'
Conclusion As I said:
There is so much really cool stuff to be written, just within reach.
So?

Erich Schubert: DRM just doesn't work

You might have read that several new DRMs were broken already. Given that cryptographers such as Bruce Schneier always said that DRM won't work the way it is supposed to be, unless taking all control over your computer away from you. Crypto-Gram: the futility of digital copy prevention Shortly after reports that the AACS copy protection scheme was broken, first HD-DVD movies started appearing on the net. I didn't verify that they aren't fake (my computer somehow doesn't play full HD resolution anyway: I couldn't playback the full quality version of the free movie Elephants Dream, and I don't want to download a dozen gigabytes either). And now I read that the DRM system in Vista was also bypassed, allowing you to copy full quality protected media in Vista. (BoingBoing: Vista DRM cracked) "Vista launched this week, and it's already broken." - nice headline.

29 January 2007

Erich Schubert: Great music

I've just discovered this song: Koop Islands [amazon.de, with video] by Koop. The amazon page has a flash video of the song "Come to me" - check it out. "'Cause my love just has left me, and I need someone new." It has some smooth swing in it, it flows and somehow makes me happy. I love the bass line and the singers voice. I need to get this album and dance some swing to it.

Erich Schubert: Automatic image tank software?

Dear Lazyweb, do you know of an automatic "image tank" software? When doing a larger social event, say, like a dancing seminar or a conference or just about anything where people are eager to take photos, it would be nice to have an easy way of collecting all the photos. Also giving people the option to store the image from their camera somewhere without having to bring along a larger memory card or their own laptop. It should be fairly easy to setup a computer which just Does anyone know of an application already doing that? I don't want to go through all the UI that you have in Gnome, it should be automatic.

Erich Schubert: Google Unbombing?

So google has finally changed their algorithm somehow to remove Googlebombs. I wonder which approach they chose. Maybe they require the search term to actually occur on the destination page? Anyway, I wonder if we could now do the opposite - rank down pages by Googlebombing them. I wonder if we could e.g. all setup links to Windows (microsoft.com) and maybe even mention the word "Googlebomb", and Google will think we're trying to Googlebomb Microsoft this way? So at the end maybe the Wikipedia article becomes hit #1? That would be cool. P.S. Ever noticed that Google blocks lynx and wget by their user-agent string? (well, I get error 400 with lynx, which might be different, but I can use the --user-agent option of wget to bypass their filter, so at least that filter exists and is kind of pointless...)

Erich Schubert: On 3D Desktops

So Mandriva apparently is including a new 3D desktop named "Metisse" in their next release. It seems to be a real 3D thing, not like Compiz and Beryl which are just about some fancy effects for your 2D desktop. However, I'm not convinced that this is a good idea. First of all, many people have problems with thinking in 3D. "Engineers" like us are used to thinking in 3D, but many people are not. They might be better off with a 2D thing. Also supposedly 2D perception is easier for the mind, and should better allow us to focus on other things. Secondly, optimizing display for 2D is much better. Many people won't want to miss the crisp and sharp fonts we have today. Subpixel Antialiasing together with hinting does a good job at optimizing fonts for readability. Don't exepct a 3D desktop to be able to offer this, as soon as you turn perspective you'll end up with blurred fonts. Instead I'd consider doing mostly away with the concept of resizable and moveable windows. Most of my applications (except my terminal windows) are running full-screen. If I'd be working a next generation Desktop thing, I'd be investigating application switching (Expose for example seems to be good), some intuitive way of automatically tiling windows (ion sucks, sorry) and making the concept of multiple desktops easier for users. IMHO that is one of the most powerful (and yet often unused) functions on our systems. Note that metisse does seem to enable people to use multiple desktop a bit easier; I like their overview screen. I also like the "folding away" concept when temporarily marking text in a different window, but how is it supposed to know I'm going back to the previous window again afterwards? Most of what they show off is totally useless and has bad usability. Where is the actual use of being able to 3D-turn two windows? I can barely read the location bar of the browser afterwards! Just like Compiz and Beryl, they're just showing off fancy effects, but I don't see the usability benefit. (I havn't tried metisse, this opinion is solely from watching their demo videos.) For example, I never need to move my windows around on a pixel-level. If I ever resize my windows away from their default size, it's about having two windows visible at the same time. I could imagine having a window chooser such as Expose, and by selecting multiple windows with the right mouse button I can get a tiled view of them, as opposed to selecting a single window with the left mouse button.

28 January 2007

Erich Schubert: How Microsoft might already have lost the desktop wars

I was recently asked to help someone understand the OpenSource movement, and the effects it might have on companies such as Oracle or SAP. I talked a bit that these companies can benefit from being independant of big vendors like Microsoft, while still not having to do everything themselves. But also on how opensource alternatives to their products will threaten their business in the long run and force them to be more innovative and constantly improve their product. I then talked about the 'viral' aspects in OpenSource; not about that GPL licensing bullshit (just read the licenses of stuff you want to use, and don't use them if you don't like the license...; this virality is highly overrated due to Microsofts FUD), but a very different kind of virality: Let's say you are supposed to evaluate different CMS solutions. So you install one or another that sounds promising. Most likely you'll install an opensource database like MySQL or Postgresql. And when you've decided upon a solution, you are quite likely to go with this database, and say to yourself: "if MySQL doesn't scale up well enough for our needs, we can still but an Oracle license". This would be probably different if you had had installed Oracle in the first place. Say a demo or so. But the demo versions of the CMS you tried already made you comfortable in using MySQL; it's easy to install (most likely included with your system anyway), and it just works. But would you have tried a CMS in first place that actuall required you to setup Oracle? Anyway, this "social" virality brought me to another point: developers and administrators. When you see numbers on the market share of Microsoft, they're still huge. Some 95% of users are using Microsoft as their primary operation system (I'm discounting the fact that a huge share of DSL modems here is running Linux, so actually many people are Linux users, and I'm also discounting the use of www.google.com, which would make 99.9% of people Linux users...). But these are the average users. But they aren't on their own. The software choice of the "average user" is influenced by a couple of factors, including: But if you look at the computer geeks around you, what are they using? A huge share of the people I know are using Linux. Not everyone is using Linux as their main desktop system, but many are. Others are using Linux just for their development stuff, some only on servers. It doesn't really matter, Linux is huge with the geeks. When I look at the sofware my mom has installed on her Windows system (which also dual-boots Linux, and interestingly is the primary choice for watching a movie - Windows doesn't playback sound with some videos...): half of it is opensource. There is OpenOffice.org, Gimp, Gaim, Firefox, Thunderbird, Inkscape, LyX, Mplayer and a couple others. He favourite game? PySol. My dad already has switched to Linux as his main operating system. So why did they switch to so much opensource software? Because it's what I recommended them, and where I can help them. My mom needed a software to record something for her blog (yes, she's "podcasting" now) - of course I recommended her an opensource application, audacity. My mom is giving private lessons in math and physics; she's very successful at that. When one of her students got herself a laptop, she of course was given all kinds of (opensource!) software. For her highschool thesis she needed a vector graphics program - she ended up with inkscape. Now if my parents have some problem with Windows, who are they going to ask? I didn't manage to solve the video playback issues, my mom by herself switched to Linux for watching movies. It didn't work with Windows, I couldn't help her - she switched to something where she knews she'd get more support (and where the problem by chance didn't occur). Now let's have a look at the university. Our computer pool for the students is all Linux. There are a few windows systems for legacy purposes, I never found out if they are accessible to regular students; I only know they're supposed to exist. When doing some assignment, you're very often required to use some opensource software. For a thesis, you'll very likely be building upon some opensource system. The mathematics institute is still on solaris, but recently Gnome was installed there. Physics and electrical engineering also have mostly Linux systems, I've heard. For software development, it's pretty much a "develop on Linux, run anywhere", whereas Windows-only developers usually need to port their applications (or trust on Wine being able to run them good enough on Linux). So more and more people start developing on Linux, and get to love it's great development environment (after all, Linux was pretty much completely done by software developers...). And that is how Microsoft might already have lost the desktop war: developers, technical students and administrators (who usually also love their Linux boxes). They're only a small share of the userbase, but they're influential. In fact, other users rely on them being able to eventually fix their systems for them. But since these are using Windows much less already, they will be less capable of assisting others with Windows. They'll be putting Linux systems everywhere, and keep on encouraging them to make the switch. Of course it will still take some years, but you can expect more and more companies (and cities) to switch over, like the city of Munich. Windows support staff on the other hand might even become more expensive. I don't know of any numbers on the MCSE programme (Minesweeper Consultant, Solitaire Expert) - does anyone have numbers on "graduates" for that?

25 January 2007

Erich Schubert: DBus inspector 0.2

I've extended and cleaned up DBus inspector some more. It will now show the signature of methods and signals (I didn't see any properties, I guess that none of my DBus enabled apps uses them yet?) So by now (with just a few hours of development, Python rocks!) it's already a really useful tool if you want to use DBus to listen to or trigger all kind of system events. I could listen for song changes, disconnect or connect my wireless network, log in and out of instant messaging... DBus inspector 0.2 Screenshot Download from people.debian.org for now. Needs only "apt-get install python-glade2 python-dbus", no installation required. Just unpack and run "dbus-inspector".

23 January 2007

Erich Schubert: Boycott adea solutions

... for being stupid spammers. Obviously they polled some blog search engine (maybe Google's blogsearch) for some keywords like Java, tried to guess the name from that and grabbed email addresses they could find. I just received this stupid "job application offer":
Good Afternoon Planet,

I represent a major Airline in Dallas, TX. We have 3 openings for C Developers with Java, Unix, Sybase and Oracle skills. Basically our client is doing a 2 year migration from C to Java and needs C language Guru's.
This "major Airline in Dallas" (Southwest? Amerian Airways? I don't know.) should maybe be looking for a different company to do their development. The company they are using right now, Adea Solution, obviously: One more quote:
**I apologize if you are not looking. We have a system here that pulls information from the web and does not distingish between those who are current and those who are not.**
If you know that your system is crap, just don't use it. Instead of spamming. If I were looking, I wouldn't put "I'm currently not looking for a job" on my homepage. And I'd probably try to get in touch with someone professional.

Erich Schubert: Boycott adea solutions

... for being stupid spammers. Obviously they polled some blog search engine (maybe Google's blogsearch) for some keywords like Java, tried to guess the name from that and grabbed email addresses they could find. I just received this stupid "job application offer":
Good Afternoon Planet,

I represent a major Airline in Dallas, TX. We have 3 openings for C Developers with Java, Unix, Sybase and Oracle skills. Basically our client is doing a 2 year migration from C to Java and needs C language Guru's.
This "major Airline in Dallas" (Southwest? Amerian Airways? I don't know.) should maybe be looking for a different company to do their development. The company they are using right now, Adea Solution, obviously: One more quote:
**I apologize if you are not looking. We have a system here that pulls information from the web and does not distingish between those who are current and those who are not.**
If you know that your system is crap, just don't use it. Instead of spamming. If I were looking, I wouldn't put "I'm currently not looking for a job" on my homepage. And I'd probably try to get in touch with someone professional. [Update: their homepage appears to be unreachable... looks like someone else was even more annoyed than I...]

Erich Schubert: How Skype cheats

Ever noticed the following with Skype: Go offline while several of your friends are online. Suspend your computer. A few hours later, resume your computer and go back online with Skype. Notice how it claims all the buddys that were online when you disconnected just came online? And a few seconds later, some of them all go offline? And several minutes later, they even come back? Skype (well, at least version 1.3.0.53, YMMV) obviously caches which users it has seen and just assumes they are still online. When it then has actually connected to the Skype network, it notice that none of its peers has them and decides that they maybe aren't online after all. Then it actually searches them throughout the network, and when it has found them puts them back online again. Thats what I call cheating. Other IM services are much more reliable here. And other IM services - at least ICQ and many Jabber servers, though not Google Talk - also have offline messages. I.e. you can write messages that will reach the receipient once he goes online again. Skype again cheats on these: if you send such a message, it will after some time display the notice that sending it failed. The next time both of you are online, it will actually be delivered. This can result in suprisingly old messages, and makes connecting to people much harder: for putting someone onto your list, you also have to be online at the same time. Assuming that you are using Skype only during work hours and going offline inbetween, this makes communicating with people in different timezones a pain. File transfers with Skype are also a game of chance: If both of you are somewhat firewalled (e.g. behin a DSL-modem-router combo), it often can't transfer directly. Instead it picks a random "super node" with large bandwith for transferring the files. However, the super nodes bandwidth isn't always as good as expected by Skype, so sometimes file transfers with Skype are awfully slow, even when your line isn't busy. MSN for example (though I do NOT suggest using MSN), is using it's own, well-powered servers to handle such file transfers (or maybe all; thats why I don't really suggest using MSN, since I've only seen it transfer my files through microsofts servers...). But usually file transfers via MSN - especially in firewalled situations - are much faster than with Skype. (A drawback of them is the short timeout) So consider using XMPP/Jabber (= Google Talk) instead. They are more reliable, and an open, well-defined, extensible standard.

Erich Schubert: How Skype cheats

Ever noticed the following with Skype: Go offline while several of your friends are online. Suspend your computer. A few hours later, resume your computer and go back online with Skype. Notice how it claims all the buddys that were online when you disconnected just came online? And a few seconds later, some of them all go offline? And several minutes later, they even come back? Skype (well, at least version 1.3.0.53, YMMV) obviously caches which users it has seen and just assumes they are still online. When it then has actually connected to the Skype network, it notice that none of its peers has them and decides that they maybe aren't online after all. Then it actually searches them throughout the network, and when it has found them puts them back online again. Thats what I call cheating. Other IM services are much more reliable here. And other IM services - at least ICQ and many Jabber servers, though not Google Talk - also have offline messages. I.e. you can write messages that will reach the receipient once he goes online again. Skype again cheats on these: if you send such a message, it will after some time display the notice that sending it failed. The next time both of you are online, it will actually be delivered. This can result in suprisingly old messages, and makes connecting to people much harder: for putting someone onto your list, you also have to be online at the same time. Assuming that you are using Skype only during work hours and going offline inbetween, this makes communicating with people in different timezones a pain. File transfers with Skype are also a game of chance: If both of you are somewhat firewalled (e.g. behin a DSL-modem-router combo), it often can't transfer directly. Instead it picks a random "super node" with large bandwith for transferring the files. However, the super nodes bandwidth isn't always as good as expected by Skype, so sometimes file transfers with Skype are awfully slow, even when your line isn't busy. MSN for example (though I do NOT suggest using MSN), is using it's own, well-powered servers to handle such file transfers (or maybe all; thats why I don't really suggest using MSN, since I've only seen it transfer my files through microsofts servers...). But usually file transfers via MSN - especially in firewalled situations - are much faster than with Skype. (A drawback of them is the short timeout) So consider using XMPP/Jabber (= Google Talk) instead. They are more reliable, and an open, well-defined, extensible standard.

Erich Schubert: DBus inspector

I've been working a bit more on DBus inspector. Python is so much fun and PyGTK just rocks. I love you, guys. :-) Ok, not everything is working right yet. I tried making the app multithreaded, and putting the DBus handling into a second thread, but failed at that so far. Getting threading work right with Python and GTK and DBus is just too much, I guess. :-) Here's a screenshot: DBus inspector screenshot You can grab the code temporarily from this location. It's rather crude, undocumented (fortunately Python code is quite easy to read) and still lacks some interesting parts (e.g. icons to differentiate between services, interfaces, methods, signals, ... and of course actually displaying method signatures or even allowing you to invoke them...) - but it's a start. Note that DBus using applications support introspection at varying levels - NetworkManager doesn't have a useful introspection description, and gaim goes the other way by apparently exposing every single method during DBus, so you can do the craziest stuff (but it's hard to find the method you are actually looking for).

Erich Schubert: DBus inspector

I've been working a bit more on DBus inspector. Python is so much fun and PyGTK just rocks. I love you, guys. :-) Ok, not everything is working right yet. I tried making the app multithreaded, and putting the DBus handling into a second thread, but failed at that so far. Getting threading work right with Python and GTK and DBus is just too much, I guess. :-) Here's a screenshot: DBus inspector screenshot You can grab the code temporarily from this location. It's rather crude, undocumented (fortunately Python code is quite easy to read) and still lacks some interesting parts (e.g. icons to differentiate between services, interfaces, methods, signals, ... and of course actually displaying method signatures or even allowing you to invoke them...) - but it's a start. Note that DBus using applications support introspection at varying levels - NetworkManager doesn't have a useful introspection description, and gaim goes the other way by apparently exposing every single method during DBus, so you can do the craziest stuff (but it's hard to find the method you are actually looking for).

Erich Schubert: Limiting inbound traffic

... is far from trivial: you are not on the senders side, and not every protocol (in fact very few) allow rate limiting. Not to speak of limiting the total of multiple connections. Basically you'll have to accept that the sender is sending the data at it's own pace. However, the TCP part of "TCP/IP" is designed in a way that it does a fairly good job at detecting bottlenecks. The basic principle is this: when a packet is received at the destination, a confirmation will be sent back. By adjusting the rate of packets going out to match the rate of incoming "received" message (and to minimize the number of lost packets that need to be resent), TCP/IP connection can adopt to the slowest link in the chain. This is how incoming traffic shaping works: incoming packets are held back (or even dropped; however holding back packets might also lead to dropped packets somewhere up the stream), which in turn will limit the speed "ACKs" go out, and thus (hopefully) the speed data is pushed down to us. It's not perfectly reliable, and by design won't work well with short-lived connections and non-TCP-traffic. But it can still come in handy. We have a shared internet connection with 2 mBit. That usually is fine, but our router isn't very smart. When I'm using up all bandwidth for a longer timeframe (say, apt-get upgrade with new openoffice and tetex), the other users will suffer from a serious performance impact. One of them is often playing games online, and eventually gets kicked out of a game server because of his bad roundtrip times. By limiting my incoming traffic rate, I can hopefully keep the connection useful enough for him. In my tests, it worked pretty good at keeping my bandwidth useage down. The remaining unused bandwidth should allow his game data to pass through without larger extra delays. Here's the short script I'm using:
tc qdisc replace dev ethWIFI handle ffff: ingress
tc filter replace dev ethWIFI parent ffff: protocol ip prio 50 \
  u32 match ip src 0.0.0.0/0 police rate 1500kbit \
  burst 10k drop flowid :1
tc qdisc replace dev ethWIFI root tbf \
  rate 1500kbit latency 25ms burst 10k
Don't forget to adopt it to your needs, you probably havn't renamed your interface to ethWIFI and might want a different valye than 1500kbit.

Erich Schubert: Limiting inbound traffic

... is far from trivial: you are not on the senders side, and not every protocol (in fact very few) allow rate limiting. Not to speak of limiting the total of multiple connections. Basically you'll have to accept that the sender is sending the data at it's own pace. However, the TCP part of "TCP/IP" is designed in a way that it does a fairly good job at detecting bottlenecks. The basic principle is this: when a packet is received at the destination, a confirmation will be sent back. By adjusting the rate of packets going out to match the rate of incoming "received" message (and to minimize the number of lost packets that need to be resent), TCP/IP connection can adopt to the slowest link in the chain. This is how incoming traffic shaping works: incoming packets are held back (or even dropped; however holding back packets might also lead to dropped packets somewhere up the stream), which in turn will limit the speed "ACKs" go out, and thus (hopefully) the speed data is pushed down to us. It's not perfectly reliable, and by design won't work well with short-lived connections and non-TCP-traffic. But it can still come in handy. We have a shared internet connection with 2 mBit. That usually is fine, but our router isn't very smart. When I'm using up all bandwidth for a longer timeframe (say, apt-get upgrade with new openoffice and tetex), the other users will suffer from a serious performance impact. One of them is often playing games online, and eventually gets kicked out of a game server because of his bad roundtrip times. By limiting my incoming traffic rate, I can hopefully keep the connection useful enough for him. In my tests, it worked pretty good at keeping my bandwidth useage down. The remaining unused bandwidth should allow his game data to pass through without larger extra delays. Here's the short script I'm using:
tc qdisc replace dev ethWIFI handle ffff: ingress
tc filter replace dev ethWIFI parent ffff: protocol ip prio 50 \
  u32 match ip src 0.0.0.0/0 police rate 1500kbit \
  burst 10k drop flowid :1
tc qdisc replace dev ethWIFI root tbf \
  rate 1500kbit latency 25ms burst 10k
Don't forget to adopt it to your needs, you probably havn't renamed your interface to ethWIFI and might want a different valye than 1500kbit.

Erich Schubert: More DBus: DBus-inspector

Hi folks, I've been hacking up a DBus inspector, since dbus-viewer was removed from the Debian package (to get rid of the QT dependency). Using python, it's not too hard. Enumeration of methods and similar already works, the basic UI also is in place (Glade rocks!) but I still need to feed the data into a TreeModel for GTK and do all the difficult parts of the UI. I'll post an update when I have some screenshot and code ready for you.

Next.

Previous.