
The screenshot’s message reads:
OKI-LPR service program is active
and it asks me: Yes or No?
Where the heck is question in this message???
The screenshot’s message reads:
OKI-LPR service program is active
and it asks me: Yes or No?
Where the heck is question in this message???
Momentan bin ich “gezwungen”, Software in Python zu schreiben. Und nach einigen Programmierer-Tagen bin ich immer mir noch nicht sicher, ob ich Python mag oder nicht. Einige Sachen sind cool, andere nicht und allzu häufig muss ich feststellen, dass Python ein riesiger Flickenteppich ist. (Allein schon, dass es “alte” und “neue” Klassen gibt – von der Syntax her – und dass diese nicht kompatibel sind, spricht Bände.)
Heute bin ich dafür mal wieder auf ein Konstrukt gestoßen, dass krass und cool zugleich ist:
for i in foo: ... else: ...
Es gibt hier also for-Schleifen mit else-Block. Und zwar wird der else-Block ausgeführt, wenn die Schleife komplett durchgelaufen ist (d.h. nicht durch ein break
vorzeitig beendet wurde). Ziemlich praktisch.
I’m currently participating on a software development project using the Google Web Toolkit (GWT). While developing the GUI for a certain part of this project, I came across the need of a group box panel.
For those who don’t know what a group box is; here is an example:
Fortunately this type of panel is directly supported by HTML throught the <fieldset>
tag. Unfortunately it isn’t supported by GWT (yet). However, it’s very simple to implement this using the SimplePanel
class provided by GWT.
import com.google.gwt.user.client.DOM; import com.google.gwt.user.client.Element; import com.google.gwt.user.client.ui.SimplePanel; /** * A group box panel (i.e. a frame where to which a caption can be * attached). The caption can be set via {@link #setCaption(String)}. * The content can be set via {@link SimplePanel#setWidget()}. * * @author Sebastian Krysmanski */ public class GroupBoxPanel extends SimplePanel { private final Element m_caption = DOM.createLegend(); public GroupBoxPanelImpl() { super(DOM.createFieldSet()); DOM.appendChild(getContainerElement(), this.m_caption); } public GroupBoxPanelImpl(String caption) { this(); setCaption(caption); } public String getCaption() { return DOM.getInnerText(this.m_caption); } public void setCaption(String caption) { DOM.setInnerText(this.m_caption, caption); } }
This code is released as public domain.
If you want Outlook 2011 (for Mac) to display the actual email address for the sender or recipient of an email:
Hover your mouse cursor over the name in the contact card. The email address will apear in a tooltip.
Yet another bug in Mono for Android: The app doesn’t terminate on uncaught exceptions in OnCreate()
.