Why do I get the urge to add:
One ring to bring them all, and in the darkness bind them.
Why do I get the urge to add:
One ring to bring them all, and in the darkness bind them.
Strange, it seems to work for me... Even on a different computer. They are both running IE6, though.
Sorry for the necropost, but I've just started to use a related website to locate a house.
This one lets you skip the application process (They're actually using PAPER!) but it does let you view the properties you're able to apply for... in a way.
Just a sample of the source code for a flat's page:
http://www.nottinghamhomelink.org.uk/projector/page/prop-info?pro_refno=398925
<FONT size=-1><tr class="not-empty" id="row9"> <td class="details">Heating</td> <td class="details-info">Full Electric District Heating</td> </tr> <tr class="empty" id="row10"> <td class="details"></td> <td class="details-info"></td> </tr> <tr class="not-empty" id="row11"> <td class="details">Pets?</td> <td class="details-info">No Pets</td> </tr> <tr class="not-empty" id="row12"> <td class="details">Back Garden</td> <td class="details-info">Medium</td> </tr> <tr class="empty" id="row13"> <td class="details">Parking</td> <td class="details-info"></td> </tr> <tr class="not-empty" id="row14"> <td class="details">Void Reference Number</td> <td class="details-info">59949</td> </tr> </FONT>
There's 180 of these rows, and more of the same to display some icons at the top of the page...
@Zecc said:
Actually, I was refering to the
if not criteria:bit.
return criteria.getDataBeanContainer()I suppose you can call getDataBeanContainer on an empty string, or something like that?
In python, it's easy to overwrite the nonzero method on classes, to control their value in a boolean context, for instance:
class Criteria(object):
def nonzero(self):
return self.hasDataBeanContainer()
# other methods not shown
@amischiefr said:
I just found this code in some legacy crap I am trying to replace. I am not sure what this person was thinking, but they obviously didn't test it.
protected static ArrayList getIExecutableObjects(Connection con, IExecutable criteria)
{
if (criteria == null)
return criteria.getDataBeanContainer();
return executeSQL(criteria, con, criteria.getSelect());
}
An easy guess would be something like the python idiom
def getIExecutableObjects(con, criteria)
if not criteria:
return criteria.getDataBeanContainer()
return executeSQL(criteria, con, criteria.getSelect())
I'd be tempted to add a delimited list as a column to the table listing the available careers, referencing primary keys on an attributes table.
Attributes
1 => grade
2 => subject
3 => school
4 => favourite language
5 => favourite IDE
Occupations
Teacher => 1,2,3
Programmer => 4,5
Then if you add new attributes, just add them to the attributes table, and append its number to any relevant occupations. It also gives has DRY advantages, if you also had "University Lecturer", for instance, you could re-use the subject attribute.
I don't know database construction too well, so this could be completely the wrong way of doing this.
@AlpineR said:
Wait, isn't the French Open played on clay, not grass? And isn't Federer playing some other guy, not Nadal? Hey, this looks like Wimbeldon! The final game from 2008, I'd say. That's a strange definition of "LIVE" that NBC is using.
This probably explains it... For some reason Opera decided to cut this paragraph off. Posted here for other opera users' convenience.
I really don't see what the wtf is here.
Edit:
Never mind. I don't follow tennis, and a quick check of the BBC sport website explained it.
Only goes to prove that time IS money...
[url=http://img33.imageshack.us/my.php?image=failedcompleted.png][img]http://img33.imageshack.us/img33/6222/failedcompleted.th.png[/img][/url]
I got this somewhat baffling message from Adobe Encore while trying to burn a DVD.
Did it fail, succeed, fail to complete, or completely fail?
Apparently, it failed, and wasted a DVD-R while it was at it.