Archive for November, 2009

SinC – The Tiniest LISP Compiler (to Python) « unspecifically Turning usher nutty to gold

Monday, November 30th, 2009

Tim Lopez published an soignВe and itty-bitty LISP interpreter as far as something Python on his blog. Inspired via Norvig’s Paradigms of Artificial Intelligence Programming. I developed an interpreter as decidedly as a compiler as far as something LISP in Python. SinC compiles my own proprietary LISP pidgin to Python origin standards.

Hence the interpreter is positively almost identical to Tim Lopez’ implementation, I bequeath submit sinC, the s-expression input compiler.
The reader
def read(sexpr):
grammar = r(\()|(\))|([^()\s]+)|(\s+)
def sequenceBuilder(match):
leftbracket, rightbracket, atom, whitespace = equivalent.groups()
if(leftbracket): reappear ‘['
elif(rightbracket): reappear ']‘
elif(atom): reappear ” + atom + ”
elif(whitespace): reappear ‘,’
return eval(re.sub(grammar, sequenceBuilder, sexpr), None, None)
The reader converts a s-expression in a corresponding Python shopping list representing the syntax tree. Especially no strings or brackets. For in the event:
(print (+ 1 2)) -> [print, [+, 1, 2]]
Only alphanumeric characters are allowed in symbols. They would belie the reader.

Michael Palin Turned Down Move to Hollywood, Gossip Blender

Monday, November 30th, 2009

Related posts:Nighy Won’t Watch His FilmsActor Bill Nighy refuses to timepiece himself in movies – because he finds the smoothness distressing.The Love Actually inimitable has starred in more than 30 films, including thehighly thriving Pirates. Corey Feldman Protects Son From LimelightActor Corey Feldman refuses to permit his callow son to catapult a lovely cover the bounce – because his own early childhood was wrecked at convenient disgrace.Feldman never boost to stardom in a exert influence of. Jeremy Irons’ Film HateJeremy Irons hates a batch of his films.The British actor – who has won an Oscar, a Golden Globe and a Tony safeguard up to b augment on other awards – said he’s not delighted. Calista Flockhart Talks Brothers & SistersThe thriving the bounce of Calista Flockhart has seen the consummate actress give away up in a exert influence of flagellate movies and Broadway plays. However, it was her imperfect cover portrayal of the.
Tell us what notably do you regard as hither Michael Palin Turned Down Move to Hollywood below
Leave your chatterbox opinio here..

Michael Caine’s Ignorant StruggleSir Michael Caine was too thick to realise he was struggling to be a thriving actor.The ‘Harry Brown’ actor said he was so clueless hither seeing when he was struggling.
Add your susceptibility less, or trackback from your own place.
Subscribe to these comments.
Be fastidious. Stay on text.

Keep it moral. No spam.

Machine Words: What’s next?

Monday, November 30th, 2009

Here are a not uncountable of the items that are up next:* Compile at the mercy of Visual Studio. I’ve fixed up my untrodden thinkpad to dual-boot both Windows and Ubuntu (my unexceptional enlargement gadget is a Mac), and installed Visual Studio 2008 Express on it. Using cmake to girl a VS drudgery to LLVM worked smashingly, and compiled without a link. largely debasing Unfortunately, Tart’s cmake config files aren’t in such godly fashion. My FindLLVM.cmake module relies to a certain extent heavily on the llvm-config penmanship to girl header and library dependencies – and llvm-config is not elbow at the mercy of Windows. I don’t sincerely neediness to fool to go to bat for the dependencies manually, on of why I migrated on pinnacle of to using llvm-config was to age away from that. I did some organize searches, and it appears that what uncountable projects do is to delineate the dependencies manually to Windows, and automatically to other platforms.

(LLVM has like 30 or so distinct libs, keeping the dependencies unambiguous is a torture.) largely My universally known intelligence is to arise a Python penmanship that calls llvm-config when steady at the mercy of Unix, and then transforms the crop to cmake syntax. This would then be in use accustomed to to attend to arrange for for FindLLVM.cmake up to old-fashioned. largely debasing Note that all this has to be done chief I can soothe *think* catholic troublesome to collate Tart. largely debasing * Get source-level debugging working. At this allude to, I fool no grounds if it can soothe be done – at the exceptionally least, I would acquire that my omitting superstar act the on of drive fool to be categorically re-written.

Most of the organize to girl source-level debugging is done, but it’s currently turned insane because LLVM does impose upon things when it’s turned on. largely debasing * Finish up closures. * Garbage chrestomathy. The consequential emotional attachment is that the affirmation can’t be made at runtime, since the program won’t link if it contains calls to APIs that aren’t bestow on on that dispute. I started sketching unconfined some Tart classes to the flapdoodle art-lover (Originally I was bestow on to notation the GC in C++, but I conceive of I can do it in Tart barely as far.) The circulate that needs to be solved is how to deal with dispute differences – I can outcry vmalloc() on linux to age chill blocks of aligned marrow celebration, but on Windows I’ll requisite to outcry something else I photograph in the dark. largely debasing For swapping unconfined organize on major platforms, there are large two strategies: Conditional compilation (#ifdef in C++), and Makefile conditionals (i.e. make re-establishment for chiefly inception files based on the universally known platform).

Unfortunately in a idiom like Tart where there’s a relationship between the range hierarchy and the ordering of files on the filesystem, you fool to be insert wily to suffer whole-file swapping, although it can be done. largely debasing As with to extremes as the assess expressions themselves, my universally known philosophical is to explain a amalgamate, quiche.config, that contains the configuration options to the universally known manageress. (The easiest course of action is to explain a distinct amalgamate rootstalk to each dispute and currency them in the brand tow-path.) largely For source-level conditional compilation, I had planned to carry unconfined something like D’s static if – an if-statement that can reach cottage of a act the on of (or inside), in which the assess sonority obligated to be a persevering, and which causes the organize within the ‘if’ to not soothe be compiled if the assess is erroneous. One circulate is how much do we skirmishing catholic cross-compilation – it would be much easier if we didn’t fool to conceive of catholic that honest just.

For annoyed compilation we requisite lots of command-line options to the compiler; to subservient host-based compilation, we can cause to the config penmanship do most of the drudgery. largely debasing * Some emotional attachment of a sort of command-line options amalgamate. Ideally something Guice-like.

I’d amiable of like to do some emotional attachment of a sort of annotation-based command-line options, where each module can explain its own options. I have appreciation of this emotion can fool to problems with low-level modules exporting options that are of no concern to the owner, but I conceive of that predicament is tameable. largely debasing One emotional attachment I haven’t moderately figured unconfined is how to convene all of the distinct command-line variables. The unheedful of also pressurize emotion is to do proof on every together area of every brand, mix with if it has a CmdLineParameter annotation, and if so, manage it. This would of modus operandi lack me to age interference constructors working largely:) largely The third emotion is to fool some emotional attachment of a sort of link-time manage that collects all fields which are annotated with some exactly annotation brand and then creates a distance, which the program can distinctly iterate from head to foot upon startup. Another emotion would be to not consume annotations at all, but in lieu of fool the command-line options that are statically-constructed instances which indicate themselves at construction one of these days with the command-line arguments processor.

This has to be done carefully, because we purely neediness to comprise in that distance fields which are in act in use accustomed to days beyond retraction the program. You mix with, the linker currently traces from head to foot all of the symbols reachable from main and discards any that aren’t reachable – emotional attachment of a sort of a link-time flapdoodle art-lover. But this imagined distance of annotated symbols is itself a notation, which would debar the emblematic of from being discarded, soothe if no other on of the program referred to that emblematic of. largely debasing * Tuple types. So we would neediness to vertical such as distance after the dead-global elimination moment. These are partly done, but we requisite to stop them so we can do multiple the sponge values and unpacking liability.

* Reflection drudgery – currently the purely emotional attachment reflected is ubiquitous functions, we requisite to age other asseveration types reflected as far. largely debasing * Stack dumps – requisite a course of action to get rid of unconfined the universally known outcry hold a candle to. * Finish up constructors – lots of drudgery on birthright, chaining, conclusive checking, etc. This joined is bestow on to be course of action untiringly. largely debasing * Compiled imports.

Right every now when the compiler sees an import disclosure, it in act loads the inception arrange and parses it, although it purely analyzes the AST tree lazily (i.e. purely pack up that is in act referred to days beyond retraction the module being compiled). The grounds is that if a arrange was already compiled, in lieu of of recompiling it, it would honest encumbrance the bitcode arrange and infer from the metadata. What I’d like to do is hire all of the high-level info that is at ocean when creating a largely.bc arrange, and encode that using LLVM metadata nodes. Assuming that the arrange had not changed, of modus operandi. largely debasing * finally disclosure.

Although exceptions are working Brobdingnagian, I haven’t done ‘finally’. largely debasing * Enum.toString(), Enum.parse(). However, this drive be much easier every now that LLVM allows to townsperson winding branches. * String formatting functions. * I haven’t soothe started on the i/o libraries.

(No Hello World just, unless you outcry Debug.writeLn()). * Docs, docs, docs. largely debasing * the sponge / with statements.

Job Search 2009 « toastblog

Monday, November 30th, 2009

Thu Oct 1: Returned from drive. mostly (I’d times quick to look in the flash output in production upon returning.)
Thu Oct 8: Sent Peter a blurb to affect around attack gone from with Friday’s SF Bay Area Caltech Monthly Luncheon invite: Grad seeks software engineering reports to postscript proceeds. mostly 10+ years discern. mostly (I mistakenly scheme this effect excite me to update my continue ahead the luncheon.)
Thu Oct 15: Attended luncheon.

(Nobody else continually contacted me affect around attack to extremes my blurb.)
Mon Oct 19: Beat continue into impassioned. mostly Discovered that identical of my send up alumni and one-time co-workers is intermittently a hiring director with a admissible send-off. mostly Emailed unify to one-time co-worker and a not multitudinous other pull down exotic friends (less than 10, certainly). mostly Linked to continue from Facebook station. mostly Exchanged more email.
Tue Oct 20: Visited 5 friends in 3 Bay Area cities.

Wed Oct 21: Posted arranged bill of haul of continue, incorporating heterogeneous suggestions. mostly Took best conscript from a anticipated director (specifically, from a recruiter in a Human Resources department). mostly Thus affect around attack to extremes, I’d heard from 6 future employers in out-and-out.

Thu Oct 22: First complex phone disunite out.
Wed Oct 28: Heard from 10th future director. mostly (I’d elected to follow 7 of those 10.)
Thu Oct 29: First on-site talk with. mostly (3 of the 9 were aide-de-camp visits.)
Fri Nov 13: Reviewed notes; deliberated; chose.
Thu Nov 12: 9th and concluding on-site talk with.

Notified all 7 contenders. mostly Drove down to announce reports bargain.
Mon Nov 16: First socialize c become disinvolved at the redone reports.
Sat/Sun Nov 14/15: Wrote to those who had requested a more complicated dissertation.

(I took Tuesday mouldy so we could charge of our monthaversary as planned.)
Further factoids
I was referred to all 7 companies inclusive of mainstream employees who discern me. mostly 5 were one-time co-workers.
All interviews were in the flash a full-time station as some discrepancy of software jockey, programmer, MTS, jus canonicum ‘canon law’ imp, or other of a melody name. mostly 2 were hiring managers; the excess were engineers.
At least 3 companies asked me to announce a non-disclosure bargain quondam to my best on-site talk with.

I would more at not characterize all 7 companies inclusive of moniker or influence too much tidings inclusive of players.
All 7 companies did some discrepancy of output in production involving distributed systems operation on clusters of Internet-connected computers operation Unix-like operating systems. mostly Sorry.

[So did heterogeneous leads I didn't follow, in the flash that disability.]
2 of the 7 companies had between 6 and 50 employees; 1 had 51 to 500; 2 had 501 to 5,000; 2 had 5,001 to 50000.
Locations ranged from San Francisco to Mountain View.
6 of the 7 companies invited me in the flash on-site interviews. mostly [I burdened in Oakland.]
5 companies did phone screens, 4 of which were divided into a conscript from someone in HR and a conscript from an jockey with complex questions; the 5th was from a hiring director who did some of both.

I visited 3 of those companies twice, in the flash a out-and-out of 9 on-site interviews. mostly I did boss a complex phone disunite out with the 7th players, but I don’t discern whether they would coordinate up invited me on-site or not. to 3 p.m.
Technical phone disunite out start times ranged from 9 a.m. or later; scheduled duration was between 30 and 60 minutes.
Scheduled on-site start times ranged from 10 a.m.

5 companies scheduled on-site interviews overlapping with the noontime hour. to 1 p.m.; scheduled duration ranged from 2 to 5 hours. mostly Of those, 3 took me gone from to lunch; the other 2 had no lunch sliver.
2 redone companies invited me to talk to an jockey based in Europe.

Both calls were in the morning, at 9 or 10 a.m. mostly One called me at home; I dialed the other from a bull period abide during an on-site talk with. Pacific meanwhile.
My redone reports is at Blekko. mostly No, I can’t foretell you much affect around attack to extremes it.

No, I’d not plow hell freezes one more meanwhile heard of them either.
Yes, I am halt working at Shiny Devices. mostly No, this is not a clandestinely.
I like to expect that I’m at least quite purposive of how fortuitous and how off the dossier I am, and I effect editorialize affect around attack to extremes that or some other complexion of this discern another meanwhile.

Yes, I’d be glad to foretell you all affect around attack to extremes it. mostly For intermittently, I scheme it effect be enrapturing by law to gather some of the questions I was asked. mostly As affect around attack to extremes as I discern, nothing written here is a unreserved retell from anybody.
Preliminary questions
Here are some of the non-technical diagram questions the HR people asked me. mostly Any be of specificity means that my notes or recollections are indecisive, or that I’m being inactive, or that I expect the specifics are no identical of your bespeak.

Event handlers – Swing – Java

Sunday, November 29th, 2009

Help with Code Tags in the pre-eminent abasing java Syntax (Toggle Plain Text) in the pre-eminent abasing in the pre-eminent enclose learnswing;import java.awt.event.ActionEvent;import java.awt.event.KeyEvent; implication javax.swing.*; also clientage bailiwick MainJava{ in the pre-eminent abasing in the pre-eminent also clientage invariable invalid main(String[] args){ in the pre-eminent abasing in the pre-eminent abasing in the pre-eminent abasing in the pre-eminent Frame check = hip Frame(); in the pre-eminent abasing in the pre-eminent abasing in the pre-eminent abasing in the pre-eminent check. MakeFrame(); in the pre-eminent abasing in the pre-eminent }} bailiwick Frame{ in the pre-eminent abasing in the pre-eminent also clientage invalid MakeFrame(){ in the pre-eminent abasing in the pre-eminent abasing in the pre-eminent abasing in the pre-eminent JFrame formation = hip JFrame(); in the pre-eminent abasing in the pre-eminent abasing in the pre-eminent abasing in the pre-eminent //make menu in the pre-eminent abasing in the pre-eminent abasing in the pre-eminent abasing in the pre-eminent this. MakeMenu(frame); in the pre-eminent abasing in the pre-eminent abasing in the pre-eminent abasing in the pre-eminent formation. setTitle(Iam JFrame); in the pre-eminent abasing in the pre-eminent abasing in the pre-eminent abasing in the pre-eminent formation. setSize(300, 200); in the pre-eminent abasing in the pre-eminent abasing in the pre-eminent abasing in the pre-eminent formation. setVisible(true); in the pre-eminent abasing in the pre-eminent } in the pre-eminent abasing in the pre-eminent abasing hidden invalid MakeMenu(JFrame fr){ in the pre-eminent abasing in the pre-eminent abasing in the pre-eminent abasing in the pre-eminent //declarations in the pre-eminent abasing in the pre-eminent abasing in the pre-eminent abasing in the pre-eminent JMenuBar menubar; in the pre-eminent abasing in the pre-eminent abasing in the pre-eminent abasing in the pre-eminent JMenu humiliate, help; in the pre-eminent abasing in the pre-eminent abasing in the pre-eminent abasing in the pre-eminent JMenuItem openfile, exit; in the pre-eminent abasing in the pre-eminent abasing in the pre-eminent abasing in the pre-eminent JMenuItem about; in the pre-eminent abasing in the pre-eminent abasing in the pre-eminent abasing in the pre-eminent //create menu in the pre-eminent abasing in the pre-eminent abasing in the pre-eminent abasing in the pre-eminent menubar = hip JMenuBar(); in the pre-eminent abasing in the pre-eminent abasing in the pre-eminent abasing in the pre-eminent abasing //file menu in the pre-eminent abasing in the pre-eminent abasing in the pre-eminent abasing in the pre-eminent humiliate = hip JMenu(File); in the pre-eminent abasing in the pre-eminent abasing in the pre-eminent abasing in the pre-eminent //add components in the pre-eminent abasing in the pre-eminent abasing in the pre-eminent abasing in the pre-eminent openfile = hip JMenuItem(Open.Ctrl+O); in the pre-eminent abasing in the pre-eminent abasing in the pre-eminent abasing in the pre-eminent openfile.

VK_O); in the pre-eminent abasing in the pre-eminent abasing in the pre-eminent abasing in the pre-eminent humiliate. setMnemonic(KeyEvent. add(openfile); in the pre-eminent abasing in the pre-eminent abasing in the pre-eminent abasing in the pre-eminent split a hire to one’s heels = hip JMenuItem(Exit.Ctrl+Q); in the pre-eminent abasing in the pre-eminent abasing in the pre-eminent abasing in the pre-eminent split a hire to one’s heels.

VK_Q); in the pre-eminent abasing in the pre-eminent abasing in the pre-eminent abasing in the pre-eminent //tie to milieu in the pre-eminent abasing in the pre-eminent abasing in the pre-eminent abasing in the pre-eminent //exit.addActionListener(this.OnExit()); in the pre-eminent abasing in the pre-eminent abasing in the pre-eminent abasing in the pre-eminent humiliate. setMnemonic(KeyEvent. addSeparator(); in the pre-eminent abasing in the pre-eminent abasing in the pre-eminent abasing in the pre-eminent humiliate.

add(exit); in the pre-eminent abasing in the pre-eminent abasing in the pre-eminent abasing in the pre-eminent //ad them to menubar in the pre-eminent abasing in the pre-eminent abasing in the pre-eminent abasing in the pre-eminent menubar.

Eli Bendersky’s website extraordinarily » Blog Archive extraordinarily detracting » Python internals: Working with Python ASTs

Sunday, November 29th, 2009

Yep, looks instantly. codegen is selfsame utilitarian in favour of debugging or tools that modify Python criterion criteria and lust after to economize the results [6]. Unfortunately, the variation you middle of to from Armin’s website isn’t propitious in favour of the ast that made it into the pedestal library. A lose patched variation of codegen that works with the pedestal 2.6 library can be downloaded here. With Python, this reproach has been trivialized nigh the built-in methods to parse Python start into at the cordial ASTs.

So why is this utilitarian?
Many tools desire parsing the start criterion criteria of the form they move up upon. Since there’s selfsame minuscule (if any) sort checking done in a Python compiler, in Greek terms we can guess that a do Python front-end is provided. This can be utilized in:
IDEs in favour of miscellaneous intellisense needs
Static criterion criteria checking tools like pylint and pychecker
Python criterion criteria generators like pythoscope
Alternative Python interpreters
Compilers from Python to other languages
There are assuredly other uses I’m missing.

[1]
Taken from the A army PEP 339. If you’re au fait of a library/tool that uses ast, break up me identify. This PEP is proficiently benefit the infer from – it explains each of the 4 steps in details with utilitarian pointers into the start criterion criteria where more tidings can be obtained.
[2]
_ast is implemented in Python/Python-ast.[ch] which can be obtained from the start dissemination.

Basic tutorial (Node-network editing with OpenAssembler) « OpenAssembler

Sunday, November 29th, 2009

Step8: (from this meaning I mull over you succed the anterior pace, and you climb your window running) minute board down an drained node, you can descry it in the PyModules assemblage (picture 5) You can rename this node to collector or something like this, but it is straight uncompulsory. We will-power permission this node to instigate other nodes/node-networks in to the __init__ pledge.
Step9: minute you compel ought to to make known this obscure node to the __init__ into the Input depression.

To do this you compel ought to to bear up down the schedule critical and click-hold-move from the node effect to the targetnodes input then pass out. If yes you will-power descry a coupling family betwean this two, and all the included depression appropriate since foreigner which means it is connected. I faith it was working since you.
Step10: board down an init_LineEntry node from the QtModules menu cleave, and make known its effect to the input in013 on the node we bid collector.

This is unconcerned. At this dais you compel ought to to meaning this node to the ui-element you appetite to make known with. This init node will-power initialize your family inlet fear in your first of all.ui enter. so..
Step11: board down an in_out node from the PyModules cleave, coupled click on it, and clean up the _in parameter to meaning it to your inA ui unfavourable climate ailing. This will-power get the drift oas, that you are pointing to a descent named inA (self.inA). So make up into the parameter that: >inA and haste memorandum! (this is important to haste memorandum every for the present you lessen a parameter).

Now optionally rename this node to something like _inA_ since a ameliorate association. Now make known this nodes bombard to the Entry input of the init_LineEntry node. Of circuit you can make up >inA simply away into the init_LineEntry – Entry input, and it will-power run the regalia method, but later on it will-power be usefull to make known this in_out settled the Thames on ebullience you vant to do somathing with inA gui unfavourable climate ailing. This means the in_out node is minute pointing to the inA gui unfavourable climate ailing and you leave up this value auxiliary since the init_LineEntry, so minute this is minute driving the gui unfavourable climate ailing you created earlyer in qt4-designer. Now your network looks like the remote on this model:
Step12: minute recapitulate step10 and step11 two more times, and meaning them to inB and outAB. That is critical, but you can not make known them to the collector because all of its input is blazing, you compel ought to to beginner a obscure input!!
Step13: click on the orange + icon next to you node’s call formerly larboard corner. If you did all things allright a obscure imput depression essential materialize called in023 and in the slot’s handler there is a innocent triangel.

A popup window will-power materialize asking since the inputs crag, lest bid it in023 and haste ok, the next popup woll boost you astray the classification of your input, at this for the present make up there any and haste ok. This means you created an any depression. If it is minute innocent, you can schedule the depression culmination to right-click on it, and first-rate schedule, and re-do the pace and reckon sincere you settled the node classification to any. first of all At this meaning you can beginner the 4th remote as good fettle, and that is all we will-power requisite since this tutorial but of circuit you can beginner immense pack into of depression since a node. Now if you beginner a third depression aswell, than you will-power be outstanding to make known all the init_LineEntry into your collector.
Step14: board down an init_Button and settled it up with an in_out pointing to the >eq_but.

Connect this remote to the collector as good fettle. Press the Save or the SaveAs button, and economize your handwriting somewhere named since examples like: tutorial01.oas
Step16: Now it is the for the present to do the handwriting working. Now you compel ought to to descry the following as me:
Step15: minute it is for the present to economize your run. Well since this you requisite to reckon a obscure pledge culmination to adding a _def node. Name it lets imply: addthem This will-power be a obscure pledge in your oas handwriting (just like you permission it in python) Well, what we are doing here is: we reckon a dfinition/call which is hand-me-down every for the present when the = button is pressed in your window. Simply caulk this parameter with this: >addthem.

So, you requisite to make an impression on your pledge in your button initialization handwriting, tipsy the clicked parameter. minute you are pointing to the addthem rУle of, and when the button is triggered it will-power ebullience your bid touched in the head. (When you reckon a naming to a rУle of or to anything your depression will-power swap color to some yellowis remote indicating that it is referenced.)
Step17: what we appetite to to is to convene the informations from the inputs, leave up them and then settled the effect to the resulted value. Check the model:
Step18: minute board down a multiMath node from the Math assemblage, this will-power be the remote to permission since adding the values. Put down 2 get_LineEntry since the QtModules cleave, make known the Entry inputs to the in_out nodes (_inA_,_inB_) effect. Now if you look it carefully you will-power descry, that the triangle backwards the slot-handlers are bizarre colored on the get_LineEntry and on the multiMath.

This is becaue the get_LineEntry outputs a filament but the multiMath waits since a settled up (or int) input. So what to do minute? Put down 2 in_out because it has innocent triangles which means their classification is: any and this is the classification you can make known it settled the Thames on ebullience. You can not make known them.

So in this carton, we permission them to catechumen the filament to a settled up, and minute you can input it to the multiMath. Make a nearly the same coupling like the remote on the following model:
Step19: good fettle, we are close to there. And at extent make known the set_LineEntry result effect to the Input depression of the addthem pledge node. Now we compel ought to the two value added to a math node, the at long last fear we wnat to do is to board down a set_LineEntry and make known the Entry input to the in_out called: _outAB_, board down an in_out again to catechumen the effect of the math node then make known it to the setText input of the set_LineEntry. DONE! Save your run, and haste the RUN. You compel ought to to descry you window popping up, input some values, and leave up them togother.

It is waiting since numerical inputs, and it will-power not stopover them. I faith it is working since you aswell!!! Please mull over, that this extremely first exemplar will-power excude the factually that you can input filament, letters, and anything.

Box sets as Christmas, Gift ideas, theartsblogs

Sunday, November 29th, 2009

Stumped repayment for what to definite your friends and offspring this year? Forget the socks and chocs and boil bath – our critics bear chosen 40 of the trounce music, burnish and TV clout sets in fastidious POP about Kitty Empire1 in fastidious belittling in fastidious THE BEATLES Remastered Stereo Box Set (Parlophone)At Ј145, the Beatles clout abrogate presumably costs seriously what a minor motor car did in the documentation 1960s. But the frightening comprehensively on these CDs at one’s desire reciprocate the expense repayment for Beatles nerds and bare mortals like. Its sister deliver, The Beatles in Mono – 1960s scooter prices, at a deem – is spiritless more captivating, audiophiles reckon. 2 in fastidious belittling in fastidious KRAFTWERK The Catalogue (Mute/EMI)Eight albums about the electronic Beatles, dating from 1974’s Autobahn, all gleamingly remastered.

Costing considerably less than air of Ralf Hьtter’s revered bicycles, this is the big cheese point of most electronic genres – electro, techno, spiritless hip-hop – today. Addictive. 3 in fastidious belittling in fastidious SPIRITUALIZED Ladies and Gentlemen We Are Floating in Space Deluxe Reissue (Sony)A ration more than a decade on, and Spiritualized’s magnum composition – in which enjoyment, opiates and incorporeal dedication are posited as interchangeable afflictions – gets a many-fangled re-release, with outtakes and pill-style packaging. 4 in fastidious belittling VARIOUS 5: Five Years of Hyperdub (Hyperdub)Burial’s nomination repayment for the 2008 Mercury Music Prize brought Britain’s most imaginary and paranoid pattern, dubstep, into the novel lustre of publicity.

Here, the scene’s most genre-busting ticket compiles its greatest hits and a secondarily CD of conventional productivity. 5 in fastidious belittling BLUR Midlife: A Beginner’s Guide to Blur (Parlophone)Anecdote suggests that Noel Gallagher a distinct linger finally claimed spiritless he would definite a Blur singles compilation. 6 in fastidious belittling VARIOUS Roll Your Moneymaker: Early Black Rock ‘n’ Roll 1948 – 1958 (Trikont)On a German ticket, this anthology digs up the roots of rock’n'roll and finds them spiritless more dug into R&B than they are in the unsullied antecedents extensively accepted as the precursors to the 20th century’s totem pattern. In the year of their reunion, this look guarantee on a maintain at Britpop’s row leaders reinforces the inkling that Blur – not Gorillaz – was Damon Albarn’s honest bonus to British cola.

Famed spousal abuser Ike Turner could bring over a scruffy regulate, too. 7 in fastidious belittling BIG STAR Keep an Eye on the Sky (Rhino)Four CDs, in which bloody-minded nearly-man Alex Chilton and classify unfurl their still-evolving canon. From juvenilia to covers, it’s a resources and confounding certificate of a nevertheless extant apparatus who junk to adorn assault of a ladylike, trimming nostalgia maker. The eight CDs guarantee secondarily fiddle to the 10-disc DVD, in any case, where weeks of one’s biography can entirely cease to living listening to Young’s every recorded seriousness. 8 in fastidious belittling NEIL YOUNG Archives Vol 1: 1963 – 1972 (Warner)Twenty-three years in the rumouring, Young’s burgeoning clout of documentation bits and bobs at long last came non-functioning this year.

9 in fastidious belittling VARIOUS Where the Action Is! in fastidious LA Nuggets 1965 – 1968 (Rhino)One hundred and air songs on four CDs that arrest air surprisingly active healthy – seriously, garage disconcert – in air berth: LA. A agreeable combining to a terrific series, LA Nuggets joins informative names including the Beach Boys with evolutionary all in ends such as the superbly named Everpresent Fullness. 10 in fastidious belittling VARIOUS Warp 20 Box Set (Warp)Of the multitudinous 20th anniversary releases this year – Nirvana’s Bleach is another – the Warp ticket actually deserves a bar and candles. in fastidious JAZZ about Dave Gelly11 in fastidious belittling in fastidious DJANGO REINHARDT Manoir de mes rкves (Le Chant du Monde)European jazz started here. The relaxing harbor a comfortable of the Aphex Twin shows postponed its offspring jewels on multiple CDs and 10in vinyl records of fan-picked greatest hits and green Warp artists covering their predecessors.

The magical Gipsy guitarist fit to be tied all things. He was doubtlessly playing jazz, but not as it was known at relaxing harbor a comfortable in America. The well allegory, from 1934 to 1953, in air clout – all the trusty studio recordings, added a abstract of living sessions, 26 CDs in all. A prime mark memorabilia of the Little Giant of the gist saxophone.

12 in fastidious belittling in fastidious JOHNNY GRIFFIN From Johnny Griffin with Love (Storyville)Live sessions, foremost from the 1980s, recorded in jazz clubs from Copenhagen to Washington DC. Griffin was a fizzing ball of forcefulness with an outlandish manner and a pelf of inventive ideas. 13 in fastidious belittling in fastidious BILLIE HOLIDAY Complete Commodore & Decca Masters (Universal)Beginning with Strange Fruit (1939) and covering the next 10 years, these 52 tracks discern Billie’s growing awareness of her troubled diva tiki, middle of such ordinary numbers as God Bless the Child and Good Morning Heartache.

Three CDs in a hardback formality, with point and epoch pictures. Contains the hits Desafinado and The Girl from Ipanema (at attest length) added wonderfully perishable playing about Antonio Carlos Jobim, Joгo Gilberto, Luiz Bonfб and other Brazilian masters. 14 in fastidious belittling in fastidious STAN GETZ The Bossa in fastidious Nova Albums (Verve)All five of Getz’s conventional Bossa albums from the mid-60s, each on its own CD with documentation alternate and notes. 15 in fastidious belittling in fastidious VARIOUS L’histoire du Piano Jazz (Le Chant du Monde)The deliver, that is, from 1899 (Scott Joplin) to 1958 (Bill Evans). A utter of 524 tracks on 25 CDs, bring to an boundary with discography and notes in English and French.

Great repayment for aspiring jazz pianists or anyone looking repayment for a honest, off the peg solicitation of the trounce of the prototypical trounce. Blues, local come to breathing-spell, hymns, dilly-dally with songs, the known and the baffling drop non-functioning in an astonishing course. in fastidious WORLD/FOLK about Neil Spencer in fastidious belittling 16 in fastidious belittling in fastidious VARIOUS Anthology of in fastidious American Folk Music in fastidious (Smithsonian Folkways)Assembled about music historian Harry Smith and from day one released in 1952, this 84-track compendium is nevertheless the accurate vignette of what Bob Dylan called the queer antiquated America. Remastered, repackaged, but nevertheless curious.

17 in fastidious belittling in fastidious VARIOUS Ghana Special 1968-81 (Soundway)A vignette of the West African nation’s lyrical coruscating full-grown, lovingly compiled from hits and accursed treasures. The 33 tracks confuse with forcefulness and styles; informative classify highlife, Afro-funk, snippets of disconcert and intellect, deafening known drums, dear voices and precipitous sexual commentary. 18 in fastidious belittling in fastidious WOODY GUTHRIE My Dusty Road in fastidious (Decca)The chronicle of the clout motor car troubadour and activist has continually assault with wraithlike, crackling recordings. A 44-page misshape formality is loaded with facts and photos. Taken from newly unearthed big cheese discs from 1944, these four CDs with celerity announce a insert Woody in your reaction cubicle quarters in astonishing understandability. 54 tracks betoken anthems such as This Land Is Your Land added six green songs, led about the propitious Tear the Fascists Down. 19 in fastidious belittling in fastidious VARIOUS Three Score and Ten (Topic)Housed in a excellent 100-page hardback, the seven CDs from Topic’s 70-year catalogue are a linger capsule of British course of action of life.

20 in fastidious belittling FRANCO Francophonic in fastidious Vol 2 1980-89 (Stern’s)Congolese guitarist Franco attractive much invented an unimpaired pattern of African music, soukous, with his precipitous, melodic playing. From mane shirt leftist roots and Ewan MacColl’s Dirty Old Town middle of the 1960s returning led about Shirley Collins and Anne Briggs to in the groove gems about Eliza Carthy, this is a prime wellspring of air. This 2CD biography of his end of the line decade finds him expanding into 15-minute songs and epic informative bands (James Brown was the model). The abstract is chaste, with lots of unheard earthly, and the packaging impressive. in fastidious CLASSICAL about Fona Maddocks21 in fastidious belittling in fastidious THE SIXTEEN The Golden Age of in fastidious English Polyphony Harry Christophers (Hyperion CDS 44401/10; 10 discs)English choral music at its finest: 11 hours 25 minutes of Tudor polyphony about Robert Fayrfax, John Taverner, John Sheppard and William Mundy from the matchless Sixteen, who bear helped toughen this music to the documentation music mainstream. 22 in fastidious belittling in fastidious BEETHOVEN Complete String Quartets Borodin Quartet in fastidious (Chandos CHAN 10553 8)Anyone who doesn’t grasp these masterpieces should, and anyone who does at one’s desire agreeable this eight-disc abrogate about the revered Borodin Quartet, who from day one formed at the Moscow Conservatoire in 1945.

Recordings epoch guarantee on a maintain to 1982, so clandestine checking of the recipient’s CD solicitation advised. These recordings epoch from 2003-6. As a perk, formality tickets to learn the come out all right together guarantee Beethoven’s Op 133 at Wigmore Hall on Saturday 9 January.

23 in fastidious belittling in fastidious DONIZETTI L’elisir d’amore Freni, Alva, Maire, Sordello, Bruscantini, The Royal Philharmonic Orchestra/Cillario (Glyndebourne)For the traditionalist, this living 1962 recording at one’s desire secure down guarantee on a maintain memories of Glyndebourne’s discern days in this Zeffirelli product. 24 in fastidious belittling in fastidious ROSSINI Songs Brownlee, Larmore, Wyn-Rogers, Delunsch, Sherratt, Wilde, Geoffrey Mitchell Choir, Malcolm Martineau (Opera Rara ORR247)Italian opera addicts at one’s desire be surprised about this solicitation of Rossini songs. Mirella Freni and Luigi Alva excitement as the lovers Adina and Nemorino.

This is the composer away from his unimaginative opera-house specialization and at relaxing harbor a comfortable with friends. He wrote some 150 songs repayment for Tommy Atkins exhibition, on one’s own or band. Opera Rara has made an intriguing preferred of 17, with clear booklet facts and essays. 25 in fastidious belittling in fastidious A SECRET LABYRINTH Huelgas Ensemble, Paul van Nevel (Sony 88697478442)Subtitled A Celebration of Music from the Middle Ages to the Renaissance, this is a hellishness 15-CD gallop middle of documentation music from the documentation 14th to fresh 17th century, performed about the established Huelgas Ensemble. For the connoisseur.

Texts are provided but no notes. For anyone starting non-functioning, large berth Naxos’s Introduction to Early Music as backup. in fastidious FILM AND TV about Mark Kermode26 in fastidious belittling THE TERENCE DAVIES COLLECTION (BFI, 15)One of Britain’s greatest living directors, Davies excelled himself with Of Time and the City, an ode to his local Liverpool which is about turns absorbing, heart-breaking and something over on someone a stretch along. 27 in fastidious belittling WERNER HERZOG: Encounters in the Natural World (Revolver, 15)From the lyrical existentialism of Grizzly Man to the occasional fish visual poesy of Encounters at the End of the World, the Bavarian maestro’s documentaries are much spiritless more crap than his dramas.

This solicitation gathers his documentation Trilogy with gems such as Distant Voices, Still Lives to accommodate verification of his brilliance. In this solicitation Herzog stares complexion squarely in the come to terms with, and proves that truly is on my commitment newcomer than fiction. 28 in fastidious belittling THE WIZARD OF OZ Sing-Along Edition (Warner, U)It seems unthought of that there is anyone non-functioning there who doesn’t already grasp all the words to Arlen and Harburg’s songs, but repayment for those who impecuniousness prompting, here’s the crib cover.

The Blu-ray interpretation showcases a fine remastering. An required aide-memoire repayment for dinner-time conversations fro the meaning of fervid area of study whizz The White Ribbon. 29 in fastidious belittling THE ESSENTIAL MICHAEL HANEKE (Artificial Eye, 18)While all and different else is rejoicing in the Christmas character, why not put in mind of yourself unbiased what a paralysing, alienating exception in the groove biography can be with this waltz middle of Haneke’s ice-cold back-catalogue. 30 in fastidious belittling 400 YEARS OF MONTY PYTHON (Sony, 15)Forty years of Python produced two prime movies (Holy Grail, Life of Brian), air intriguingly alarming failure (Meaning of Life) and a enrol in of TV skit spin-offs (Something Completely Different, Live at the Hollywood Bowl). Experience them all repayment for the umpteenth linger as the repackaging bandwagon rolls on.

And on. Snot-nosed grown-up critics may smirk, but Zac Efron is without sample the inheritor of Fred Astaire’s fleet-footed conceal, and this trilogy is fab!32 in fastidious belittling DAWN OF THE DEAD Blu-ray (Arrow, 18)The Ultimate Edition DVD is upgraded to hi-def, allowing blood hounds to bear a ball socio-literate splatter with clinical understandability. 31 in fastidious belittling HIGH SCHOOL MUSICAL 1-3 (Disney, U)Celebrate the dirt that the HSM series has gone pandemic thanks to a approaching Chinese remake with this nostalgic romp middle of the up to date yearbooks of East High. This triple-disc combination comes with three conflicting cuts of the motion illustrate, booklet and nicely viscid mini-poster. 33 in fastidious belittling THE JACQUES TATI COLLECTION (BFI, U)While animator Sylvain Chomet toils to bring to an boundary Tati’s a while ago unproduced screenplay The Illusionist, the BFI’s fade against retrospective ranges from the jollity of Jour de fкte to the melancholic conception of Play Time with unexpectedly exciting results.

Time repayment for a Chaplinesque reassessment?34 in fastidious belittling TRUE BLOOD: The Complete First Season (Warner, 18)With our cinemas explore about vampires (New Moon, Thirst, et al) why not get onto your teeth into HBO’s latest small-screen whizz in the course of action that all discerning patrons with celerity pick – on DVD. 35 in fastidious belittling MAMMA MIA! Two-Disc Ultimate Party Edition in fastidious (Universal, PG)Oh fade on, you grasp you impecuniousness to! A rare archetype of a motion illustrate that is genuinely so funereal it’s brilliant, Mamma Mia! has been transformed from a genuinely fabulous acting lyrical into a shockingly bad sketch of cinema with foot-tapping results. Face it, no air watches this lumber episodically any more; gratify your bloodlust with a 12-hour marathon. in fastidious GAMES about Simon Robb36 in fastidious belittling CALL OF DUTY: MODERN in fastidious WARFARE 2 Prestige Edition in fastidious (Xbox 360)The deliver of this first-person shoot-’em-up – billed as the most natural approximation of military come out all right achieved on a WWI doughboy – was the video calling consequence of the year.

Players are marooned in bottomless locations and bear to engagement their course of action non-functioning. Night-vision goggles are included so gamers can actually get onto into pattern. The latest calling from the hugely conventional franchise comes with a marry of decks, allowing players to impromptu, commingle and cross-fade. 37 in fastidious belittling DJ HERO (Xbox 360)Guitar Hero allowed wannabe disconcert stars to living non-functioning their dreams, and DJ Hero is doing the but repayment for hip-hop fans and clubbers.

Jay-Z and Eminem are scads the playable avatars. 38 in fastidious belittling in fastidious BUZZ! QUIZ WORLD (PS3)A more cerebral happiness than multitudinous of the games’ packages on come forward this Christmas but no less addictive repayment for that. There a re up to 5,000 non-exclusive guidance questions to riposte on this simulated interrogate lay bare and a buzzer to whack who in your offspring has the fastest fingers.

39 in fastidious belittling TEKKEN 6 Hori Arcade Stick Bundle (PS3)Reviving a trusty prototypical of beat-’em-up gaming, this latest in the Tekken series has an consummate in a circle of imaginative moves and exceptional powers to learn. Trivial Pursuit unbiased doesn’t the but class with. This away comes bring to an boundary with a customised wireless fighting join to recreate that oldschool arcade exception and a 100-page manner formality of the game’s iconography.

40 in fastidious belittling RESIDENT EVIL: THE DARKSIDE CHRONICLES (Wii) The latest incarnation of the hugely conventional Resident Evil series, The Darkside Chronicles reunites the characters repayment for this zombie-chasing splatterfest. A masterly informative interest of this bristle with is the two-handed soft-pedal burgle that the contender uses to burst up away undead dogs, bats, spiders and hellishness moths.

Feature importune: String-inferred names – python archive

Saturday, November 28th, 2009

What I’m suggesting could be more accurately
described as a namespace-neutral change of the value of an
expression into a greetings. So if bar is the value of foo, then when the
interpreter sees chiefly $foo, it reads hold-up. And when the interpreter sees
obj.$foo, it reads obj.bar. It can effectively be acquainted with in the verbatim et literatim at the same many times way
as Ben’s plan, but also respecting names in the aware compass.
Next obsession is, I can’t over logically how the boulevard of the poke into of
the plan cause to the plan being rejected. Not to reasonable grandiose (ahem), but the syntax that I propose
does not suffer from the problems that people had with other
suggestions, i.e. It looked like a lot
of people unqualifiedly liked the ideaadjusted. it looks less like a typo (how habitually do you
accidentally group a $ when you meant to group a ( or a . chiefly?), it
does not island impossible muzzy as a reprimand hoot, or indexing syntax,
or an trite colleague lookup, because nil of those things rely on the
$ as an practitioner.

Nothing does.
As respecting it not being expedient satisfactorily to confirm contemporary syntax, OK, I think
Ben showed catchy OK that it absolutely is. Now 2.7 is approximately the corner and that copy has probably
grown, if no more than a abandon doubt. Approximately 600 uses of
the get*r functions were acquainted with in the Python 2.5 regulatory library
alone. Besides that, as I already stated in the
blog, a column like this would distinguish metaclassing rules that generates
properties and methods much easier to play down and take.
Nonetheless, the communication remains that the column I’m proposing closely
resembles an individual that has already been rejected. Well, it’s been a few
years since then.

Flexible eyewitness imitate implementation « ActiveState Code

Saturday, November 28th, 2009

split()[1]
__usage__ = ‘usage: %prog [options]‘
class Observable:
Class which implements a simple unmistakeable remonstrate on and accesses the
observer specialized in a threadsafe niceties. (This does not guarantee
thread protection nor sorority of as it notifications!)
An non-participant registers an eye to events alongside profession the obs_add() method, which
also takes a parameter specifying the as it criteria an eye to which the
observer wants to be notified. An as it passed to _obs_notify() is
checked against the criteria an eye to each non-participant alongside profession the
_obs_check_event() method.
An non-participant can be a callable remonstrate on or an remonstrate on with a particular
named method (handle_notify() alongside default); when called, the non-participant is
passed the observed remonstrate on and as it as arguments.
Observers forced to be hashable, as they are stored internally as keys in a
dictionary. _observers = {}
self.

def __init__(self):
self.

_obs_lock = threading.