
Auf der Suche nach einem rauchfreien Lokal für unseren Stammtisch, habe ich folgende Listen gefunden:
Muenchen.de Cafes, Muenchen.de Restaurants
Mein Blog hat (absichtlich) keine Kommentarfunktion. Wenn ihr Empfehlungen habt (insbesondere sollte es nicht zu "übertrieben elegant"/ elitär sein, gemnütlich und keinesfalls laut - wir wollen uns unterhalten können ohne nacher heiser zu sein...), schickt sie mir doch per Mail (erich AT debian DOT org) oder meldet sie bei den oben genannten Seiten.
Ich hoffe ja, dass das Gesetz wirklich gemacht wird (und nicht im letzten Moment zwecks Populismus alles nur wischiwaschi), und die Suche so bald erheblich einfacher wird... sonst sind halt weiterhin WG- und Wohnheim-Treffen die bevorzugte Lösung.
From Dojo Toolkit (a very powerful AJAX toolkit), but should probably go to The Daily WTF...
_getAdjustedDay: function(/*Date*/dateObj)
//summary: used to adjust date.getDay() values to the new values based on the current first day of the week value
var days = [0,1,2,3,4,5,6];
if(this.weekStartsOn>0){
for(var i=0;i<this.weekStartsOn;i++){
days.unshift(days.pop());
}
}
return days[dateObj.getDay()]; // Number: 0..6 where 0=Sunday
}
That code is inefficient and stupid on so many levels. For example the if
statement... you might be aware that 0 < 0 is false.Yep. I'd prefer something along the lines of
return (dateObj.getDay() - this.weekStartsOn) % 7;No arrays were abused during the making of this function.
I always thought PHP programmers were the worst, but apparently some JavaScript "coderz" are up to par.
I've been using Python to automate some tasks. A common thing with automation is to somehow notify yourself when it's completed.
Here's an elegant way to do that in Python (at least for GNOME users):
#!/usr/bin/python
import dbus
sesbus = dbus.SessionBus()
notify_obj = sesbus.get_object('org.freedesktop.Notifications',
'/org/freedesktop/Notifications')
notify_if = dbus.Interface(notify_obj, 'org.freedesktop.Notifications')
notify_if.Notify('HelloWorld',0,'','Summary','Body',[],{},-1)
For details, see pydoc dbus and the Notification Daemon API.