Archive for May, 2007

Several improvments for gnome-schedule needs testing

Thursday, May 24th, 2007

I write this in the hope to get the current code tested, it has been undergoing heavy development and definetly needs to be tried out. Including that a lot of bugs have been fixed recently, yet a new ‘at’ parser has been implemented and smaller, but important, features have been implemented. I have also started the work on a refined user interface, based on the suggestions laid forth by Satoshi Tanabe in bug 419392 . So far this means the main window, but as you can observe a little further down in this post the suggestions include changes to the editor window and other details aswell.

The new interface and latest code is located under the new-ui branch and can be checked from the anonymous subversion repository through the following commands:

svn checkout http://svn.gnome.org/svn/gnome-schedule/branches/new-ui gnome-schedule-new-ui # where the latest argument represents the destination directory.

Refer to the README for compilation instructions, and refer to your distributions documentation for information about the installation of subversion and the additional dependencies for gnome-schedule. I suggest you check if adequate packages allready exists before you try to compile dependencies directly from gnome.

Also available is a snapshot from revision 852 avaialable if you dont feel like using subversion.


Finished proposal.


Propsed main window.


One time task editor.


Periodical task.

- gaute

Tags:

Schwarzfahrer

Sunday, May 6th, 2007

Ein kortfilm i frä 1994, laga av Pepe Danquart i Berlin. Tips i frä kollega pä skulen.

Her er eit eksemplar med engelsk undertittel og uten undertittel.

Tags:

Python, check if a character is escaped, and if the escapor is escaped

Wednesday, May 2nd, 2007

While working on gnome-schedule I wrote this to check if a command contains the character ‘%’ since it directs everything behind the it to the command before it. Check man 5 crontab for more information.

The code checks for the character, then if it is escaped, if it is, then it checks if the escaped character is escaped. If the number of escapors in a line is a even number then the escapor is escaped, otherwise it is fine. Then it goes on and checks if the character appears again and verifies the escapor.

def check_command (command):
	# check if % is part of the command and if it is escaped,
	# and that the escapor is not escaped.
	i = command.find ("%")
	while i != -1:
		escaped = 0
		part = command[0:i]
		command = command[i + 1:]
		e = part.rfind ("\\\\")
		while (e != -1) and (e == len(part) - 1):
			escaped = escaped + 1
			part = part[0:len(part) - 1]
			e = part.rfind ("\\\\")

		if (escaped % 2 == 0):
			return False
		i = command.find ("%")
	return True
Tags: ,
  • Viagra ordre
  • Cialis en ligne
  • Levitra en ligne
  • Propecia acheter
  • Viagra acheter
  • Acheter cialis
  • Ordre levitra
  • Ordre propecia
  • En ligne viagra
  • Vente cialis
  • Levitra bon marche
  • Propecia en ligne
  • Viagra online
  • Buy cialis
  • Order Levitra
  • Buy propecia
  • Buy viagra
  • Cheap cialis
  • Cheap Levitra
  • propecia online
  • Viagra prescription
  • Cialis online
  • Buy Levitra
  • Order propecia