After nine months of dating, and during a trip to Paris (after EuroPython), I proposed, and she said yes.
After nine months of dating, and during a trip to Paris (after EuroPython), I proposed, and she said yes.
dyork: That Python vs. Scheme page is out of date with respect to Python. Python 2.1 (or 2.2?) added proper closures, with lexical scoping. Python 2.0 added support for collecting cyclical structures, with improvements to the gc API since then. (Eg, you can get a list of all uncollected references, since cycled with object which implement __del__ are not automatically gc'ed.)
In the meanwhile, working on documentation for one of my clients. Yawn, but it pays the mortage.
Thanks Cardinal! I just put a 'return false;' in the bit of code, so there is NO WAY to quit by accident. I'll just close each window one-by-one. See, I agree with Matthew Thomas on this -- there's no reason to even have a 'quit application'.
Anyone know how to disable "Quit" (Ctrl+Q) in Mozilla?
Here's how I work with Mozilla -- when something is interesting, I open it in a new window. When I finish, I close the window. I'm on a laptop and the mouse control is hard, so I press "Ctrl-W" to close the window. On the other hand, if I don't have time for it, I minimize the window, to read for later.
My laptop is up for days on end. Right now I've an uptime of 9 days. I'll leave windows iconified for several days, because I know I'll get back to them given time.
However, about once every 4 or 5 days I accidentally hit "Ctrl-Q" which is RIGHT SMACK DAB NEXT TO "Ctrl-W". This closes *everything*. All those pages (the ones I'm using for work and the ones I've saved) GO AWAY. There's no way to recover them. Plus, on restart I need to refix settings like "wrap-around search."
I can't find a way to disable Ctrl-Q to quit. I did find an essay by Matthew Thomas which says
It annoys people, because occasionally they choose ``Quit'' by accident, losing their careful arrangement of windows, documents, toolboxes, and the like with an instantaneity which is totally disproportionate to how difficult it was to open and arrange them all in the first place.
Matthew is right. Quit sucks. I want it ripped out.
In the meanwhile, I'll try to switch to use Alt-F4 to close a window, so I won't accidentally his Ctrl-W. BLECH. The F4 keys on my laptop are too small, and if I hit it wrong I force my machine into suspend mode. At least that doesn't usually cause massive data loss.
Unbelievable. There are only two google hits for Kirby black beans. These are, IMO, the best canned, preseasoned ("Creole seasoning"), ready-to-eat ("listos para comer") black beans you can buy. I can't find them here in Santa Fe, so I restock when I'm visiting family in Florida. I'm out of beans and won't be back home for a while. Maybe I can get my Mom to send me a care package. Been years since that last happened :)
Mmmm.... Kirby black beans. Soul food for a Miami son.
My apologies in advance for the length. OTOH, I only post every couple months so it evens out.
I don't see anything wrong with our current counter terrorist policy. Rather, I don't see any good way to improve it, and I fear what's likely to happen will end up making things worse. Our policy is (was):
Bush wants a "war against terrorism." What does that mean? Here are the 44 groups the US said in year 2000 are terrorists:
The geographic areas listed under the "external aid" section: Iraq, Libya, Syria, "Islamic extremists in the Middle East and South Asia," Sudan, Lebanon, Nicaragua, Cuba, "reside in South America", Iran, Saudi Arabia, Western Europe, North America, "other Gulf and Islamic states", "Pakistanis and Kashmiris", "Central and South Asia", Europe, Asia, "Laurent Kabila regime in the Democratic Republic of the Congo", "sympathizers in the United States", Balkans, "Afghan Arabs and the Taliban", "Pakistani community in the Persian Gulf and United Kingdom", "Islamic NGOs", "Pakistani and Kashmiri businessmen", "Islamic extremists in the Middle East", "President Charles Taylor of Liberia", Gambia, and Burkina Faso. (elsewhere includes North Korea).
Take a look at the list of countries. Yep, people in the US help fund what the US calls terrorist organizations. Indeed, on May 16, 2001, Bush designated the Real IRA, 32 County Sovereignty Movement, and the Irish Republican Prisoners Welfare Association as "foreign terrorist organisations." Before then it was completely legal for US citizens to give them money.
It is believed that American supporters send hundreds of thousands of dollars to the [Real IRA] each year and that these funds are used to purchase explosives and weapons- Foreign Policy Association
Think the US is going to attack US citizens who fund terrorist organizations in other countries? Think the US will go after terrorist organizations in South Africa? In Ireland?
Hmm, just scanned the Anti-Terrorism and Effective Death Penalty Act. (Went into law in 1996.) Specifically, "SEC. 324. FINDINGS":
Who has power to say that something is a terrorist organization? SEC. 219. DESIGNATION OF FOREIGN TERRORIST ORGANIZATIONS says it's the Secretary of State, but the designation can be overriden by an Act of Congress.
Under Clinton, the designation was a very laborious and difficult process.
So pretty much Bush can declare any foreign group to be a terrorist group and, using some of the $40 ,000,000,000 requested from Congress, attack said group in any fashion whatsover.
What's a terrorist? Go to http://www4.law.cornell.edu/uscode/unframed/8/1182.html and search for "''Terrorist activity'' defined".
Interesting - looks like carjackers are terrorists:
(I) The highjacking or sabotage of any conveyance (including an aircraft, vessel, or vehicle).
Scanning down further:
(V) The use of any - [...] (b) explosive or firearm (other than for mere personal monetary gain), with intent to endanger, directly or indirectly, the safety of one or more individuals or to cause substantial damage to property.
If matters in the US are going the way I think they are, then we need to be very, very careful not to do things that, were they turned about, could be construed in turn as terrorism. Yes, perhaps we are justified, but it wouldn't be American.
One American ideal - treat others as equals. ("Ideal" doesn't always mean reality, sadly ):
As the sole superpower, it's too easy to ignore treaties, policies, and agreements we don't like. If this is indeed a foreign terrorist attack on the US we have to wonder what was the cause for this. Perhaps by not following international rules we end up making things worse.
We've got a justice system which can extradite and prosecute criminals. (Again, assuming foreign terrorists.) If whoever was involve hasn't been extradited, round up the evidence showing who did it and present the result to the world. (I'm reminded of Adlai Stevenson at the U.N. during the Cuban Missile Crisis.) That puts a lot of pressure on the host country.
But could they receive a fair trial in the US? I don't think so. Unlike, say, the trials of the terrorists involved in the American embassy bombings in Kenya or Tanzania in 1998, it will be hard to find unbiased jurors.
(BTW, in that case, two men were found guilty of terrorism and of killing 213 people. Their sentence? Life emprisonment. The jurors said they didn't want to turn the two men into martyrs. Yes, at least one was a follower of Osama bin Laden.)
If there's no chance of getting a fair trial in the US, the only solution I can think of is to prosecute that person in international court, as this would likely be called a "Crime Against Humanity."
But the US doesn't like international courts. (BTW, I'm not all gung ho for a single, world-wide system myself, except for limited circumstances. This counts.)
That idea assumes everyone prosecuted is a foreign national. Question: If a US citizen is prosecuted, is it at all possible to get a fair trial? (The news is estimating 50+ people involved and some having been in the US or some time, so it's possible.) Who could be on the jury but wouldn't have heard or been affected somehow by this disgusting event?
Tell me how I'm wrong. Assuming this was done by foreign terrorists, how can we use our military might (or covert operations, as allowed by law) to get these people? The only way I see would be to use them as police, not as a military.
This all assumed things weren't state sponsored, so everything can be treated as a crime - a heinous crime, but a crime. If it was state sponsored, then it's an act of war, and different rules apply. I really hope it's state sponsored.
Sorry, only states can legitimize crimes through war. In that, all states (or at least those who signed the Geneva Convention) are agreed.
BTW, what ever happened to diversity in Congress? Who can forget Jeannet te Rankin's voting against the US involvement in WWI (1 of 56) and against US involvement in WWII (1 of 1).
In the true spirit of democracy, once war had been declared Rankin promoted Liberty Bonds, which were sold to support the war effort, and she voted for the draft. However, she voted against the Espionage Act, which targeted foreign residents of the United States and suppressed dissent. [...] In 1985 a bronze statue of Rankin was placed in the U.S. Capitol
Regarding gary's comment on The ultimate hacker's car. I program so I can forget about things - I can forget how something is implemented because it just works the right way. I don't want an infinitely adjustable car, just one I like. Knowing how to tweak the "camber, castor and toe angles" simply does not interest me. I don't have a customized .emacs file. I haven't changed my app skins. Only thing window manager setting I've changed is to make the background black and have a "focus follows mouse" - in order to keep things more like the 8 years I spent using SGI's 4DWM.
Watched the Discover channel on cable a few weeks ago. (Don't have cable for fear of being a deeper thrall to the TV Fates. :) Couple of years ago I watched it when a show started on about severe storms. "Cool" I thought, expecting to learn more about how storms are formed. Nope. Sorry. It was a dramatic reenactment of a family who lived through a tornado. No science.
Then, two weeks ago I watched a show about storms on other planets, with ... dramatic reenactments of: "what would happen if we had dust storms like those on Mars?" "Storms like Jupiter's Great Red Spot?" "Flying (in a 727 I think) above a supercell in Jupiter's atmosphere?" Experience a coronal mass ejection 10,000 times greater than any ever experienced?"
Going to be in Cambridge, UK in a couple weeks, visiting EBI. Then to BOSC and ISMB. Bought luggage yesterday because not only is my only other luggage carry on size, but the handle broke just before my last set of trips.
Moths everywhere. Open a door and in come a slew. They love cooking themselves on my halogen lamp. I now know the aroma of toasted bug.
Been looking around for text search engines for the biopython.org project. I want to be able to do fast text searches of multi-gigabyte data sets, like GenBank.
So far what I have is the parser generator, which can identify the semantically important regions of the various formats. These would pull out things like "author", "organism", "accession number" and "description", possibly with the help of some Python code or with XSLT.
People would like to be able to search that data. Some of the searches are easy to implement, like a search for the identifier "100K_RAT." Others are a bit more complicated, like searching for the author named "Smith", as compared to "Smith, D. C." which would be the full text of an author field. Finally, people would like boolean and phrase search capabilities, like searching "'hoof and mouth disease' or 'foot and mouth disease'" in the description field. Some of the fields may allow stemming and some may not, although stemming is not a requirement.
All this data is record oriented and I have full access to the original data files (which may be compressed, so I wouldn't want to require access to the data to do the search).
The data is not in a form which can be handled directly by an indexing engine. For example, every record may have the word "GENE" because that's part of the format definition, but I don't want a search for "gene" to return all records, or ignore all records because "gene" got put on a stop list. ("Gene V" is the name of a specific gene.)
Instead, I can convert the input into a proper form and either call an API to say "here's the text for a new 'description' field" or convert the text into appropriate XML.
I would like to be able to update the database so modified forms of a record replace old entries. (There is a guaranteed unique key for each record.) This is needed for GenBank records which distribute a delta file every day but only do full releases every few months.
Finally, it needs to work on Linux, Solaris and IRIX and hopefully MS Windows and Mac (at least X). Python interface a plus, but I've done plenty of interoperability with command-line programs before, and with calling C APIs using Python.
Oh, and did I mention that fast is good? Ideally, simple lookups for some fields, like record identifier or aliases, should be blisteringly fast, while more complex keyword searches should be a fraction of a second. The system I have now, which only does exact match word searches is built on Sleepycat's BerkelyDB and does the lookup part quite quickly.
I know I'm not asking for all that much, am I? :)
I tried looking around for existing software which does this. I've used Glimpse before, but that was when I didn't worry about being able to search for given subfields. (The price of a couple thousand dollars is okay with me, so long as I can test it out before committing.)
The only program which seems close is Zebra, or rather a Z39.50 system in general. But I know almost nothing about those systems and it doesn't look like all that many people use that specific program.
A completely different one would be eXist which allows searches of XML fields using mySQL. However, I would like not to have a database system running because that makes for a more complicated setup. Plus, it is written in Java, which would put an undo requirement for a bioPYTHON project.
New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.
Keep up with the latest Advogato features by reading the Advogato status blog.
If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!