Belligero Productions

  • Increase font size
  • Default font size
  • Decrease font size
Open Source

Python is Some Sort of Wonder Drug

E-mail Print PDF

Do I know python?  No, no I do not.  Do I like coding in it?  You bet your britches I do!

Bet your britches...?  Does anybody say that anymore?  Well, I guess they do, since I just said it, but really, when did you last hear it said?  Does anybody even wear britches anymore, and if they do, why would they want to bet them in th first place?  Just to get another pair to wear over top their first pair?  That would just be weird, and likely, uncomfortable.  Now, once I figure out why I'm talking about wearing two pairs of britches at a time, I should be set.

Anyways, enough about britches, and on to the point of this post: Python is like somesort of wonder drug after drudging my way around through C all semester.  Messing around with it earlier in the semester (trying to learn DBus through a language you don't know is NOT a good way to do it), I was able to get a few things done, rather quickly.  With this in mind, I set out to use it again, in the hopes of learning it, and using it to very quickly build up what I need done.

I have not been let down.

Last Updated on Wednesday, 03 December 2008 14:32 Read more...
 

NetworkManager Automatic Web Authentication 0.2

E-mail Print PDF

Well, it's been a few weeks since my 0.1, and while I've been busy with other assignments, I've managed to get my 0.2 working.

Changes since 0.1:

  • Memory management is now proper (releases the DBus Connection)
  • dbusClient now requires more verbose naming
    • used to just pass "inside" and full name would become "org.freedesktop.nmautologin.inside", now full string has to be passed
    • sendSignal requires object name, interface name, message name, and message to be sent, rather than just message name and message.  the first two were built-in to the client
  • With the above, dbusClient has been split into its own extension, allowing others to make easier use of it withoutthe nmAutologin extension installed
    • Better compiler settings for output.  Verbose and silent, currently compiled with verbose output
  • Sent a message to the NetworkManager mailing list about the idea, and got replies
    • They do not want the information stored in NM itself
    • Will be using a daemon to be the in-between
  • The nmAutologin extension has pushed the dbusClient processing into a background thread
    • Now able to use Firefox/Minefield while it islistening for incoming signals
    • Pops up alert box when message received
    • Makes sure listener is stopped when last browser window closed
  • For simplicity's sake, this is being released x86 only.  It has not been tested on a 64-bit system
Last Updated on Wednesday, 03 December 2008 14:35 Read more...
 

NetworkManager Automatic Web Authentication updates

E-mail Print PDF

From  my previous blog post for my 0.1 release...

Stated 0.2 expectations:

  • Submit a bug report for NetworkManager about the automatic web authentication
  • Start hacking the NM code to allow signals to be sent to the extension for various events
  • Get the extension to be more like an event listener for the signals being sent

 Hopefuls/What I was thinking would be good:

  • Double-check that my memory management is proper
  • Make the dbusClient constructor accept arguments for DBus interface and object paths, to make it better for others to use
  • Along with the above, change extension settings for the XPCOM side to let it be compiled without the name "nmautologin" alowing for the components to be used without the other half
  • get the XPCOM to work on all systems (that part of the article simply has "TODO" there)
Last Updated on Wednesday, 03 December 2008 14:33 Read more...
 

Modifying mozilla Source Lab

E-mail Print PDF

Well, now that I know this is the one I should have done last week, I've done this lab.  It was a lab, not much to say, other than like last time, it would have bee more useful earlier in the course, and kinda useless after doing the Thunderbird one.

My patch is posted here.

 

Dive Into Mozilla Labs

E-mail Print PDF

Ok, so, apparently I looked at the wrong lab last week, and did the extension one rather than the modifying the source one.  Apparently I broke my source directory (mercurial update killed it), and don't want to waste my bandwidth, so I will work on the source code lab later today when I can get a new clone from the school's internet.

Anyways, for my last post, realize the idea of already knowing it was for the extensions, not for modifying the source, and now that the submission requirements have been posted, here is my *.xpi file for the extension lab.

 


Page 2 of 6

User Login

RSS Feed

feed-image Global