-
I stumbled upon a very brain-f**k error on Oracle 10g on these days.
Context: the following query [sql]SELECT * FROM (
SELECT TO_NUMBER(CUSTOMER_ID) AS SNDG FROM BAD_CODES_TABLE WHERE
AND I_LIKE=UPPER(‘STATIC_CONDITION’) AND CUSTOMER_ID NOT LIKE ‘%P%’ ) S WHERE TO_NUMBER(S.SNDG) >2000[/sql] could trigger a Invalid number if CUSTOMER_ID column contains invalid numbers.Why?
Well…if you ask to “explain plan”, you will get something like
- a table full scan
- Filter Predicates AND
- I_LIKE=UPPER('STATIC_CONDITION')
- TO_NUMBER(S.SNDG) >2000
- CUSTOMER_ID NOT LIKE '%P%'
- Filter Predicates AND
Read More - a table full scan
-
How I Structure My Flask Applications Flask has been my preferred web framework as of late. I think it has a great core feature set and Armin, the main author, has done well to keep its API minimal and easy to digest even for developers that are relatively new to Python. However, given that it is a rather minimal framework, it can be often difficult to decide on how to structure an application after it reaches a certain level of complexity. It tends to be a common question that comes up in the #pocoo IRC channel.In this article I intend to share how I structure Flask applications. To help support this article Ive written a very basic application that Ive arbitrarily named Overholt. If you plan on following along I recommend having the source code open in your browser or a code editor.
Read More -
Quando frequentavo le medie inferiori nella mia classe si formarono due pseudo bande. I due presunti “capetti” non amavano molto la neutralità: “O sei con noi o sei contro di noi”. Per cui non mi fu possibile stabilire legami stabili con tali loschi figuri. Questa rigidità mentale era giustificata dalla giovane età oltre che dal fatto che si trattava di una scuola di periferia.
Read More -
Did you know? Emacs supports killing rectangles of text!
Issuing “C-x r k” (kill-rectangle) will kill a rectangular area of text. This can be very useful when you have fixed-string text you must process.
yank-rectangle “C-x r y” will paste it where you like.
As usual Emacs rocks!
Read More -
To force Firefox on http 1.0 proceed as follows:
- Open a window and go to "about:config" page
- Hack "network.http.version" property
- restart firefox
-
I hear your heart beat to the beat of the drums Oh what a shame that you came here with someone So while you're here in my arms Let's make the most of the night like we're gonna Code young
We're gonna code young We're gonna code young
Read More -
Ops I did it again. Although I repeatedly said I didn’t love emacs Lisp, I finally managed to learn it. So I want to share with you my tips, to help entering in the Emacs Lisp world in a fast, fun and easy way.
First of all Lisp is a very elegant language, as you may expect. Lisp is so elegant you will have to take your time to learn it, because it is a bit cryptic. To make things even worst, emacs function names are less than intuitive. The solution anyway is here: cookbooks!
Read More -
La rielezione di Giorgio Napolitano come presidente verrà portata storiamente come prova della crisi in cui la seconda repubblica versa in questo periodo. Da un lato il blocco dei partiti tradizionali (PD,PDL,Scelta Civica, SEL, Lega…) ha sempre voluto rifuggire un accordo con il neonato movimento cinque stelle (M5S). Simmetricamente l’M5S ha proposto Rodotà come presidente senza mai aprirsi ad una discussione.
Read More -
Il movimento cinque stelle è entrato in parlamento. Inizia quindi il loro percorso politico.
Inizierò da oggi un’analisi profonda di M5S, dopo essermene occupato superficialmente in tempi non sospetti, ed anche più di una volta
Il risultato netto è che delle persone hanno votato un partito che ha portato in parlamento dei rappresentanti…. E ora il movimento ha il 25% dei consensi.
Read More -
Il governo Monti ha governato per circa un anno.
In Italia succede spesso che i governi (e soprattutto i governissimi da larghe intese) vengano creati non con una investitura popolare ma con un reimpasto di governo, con un retrogusto che sa di inciucio.
Il governo Monti ha rischiato di intraprendere questa china, ma a nostro avviso non si è trattato di un “governissmo”, cioé di un governo incolore o demagogico, per diverse ragioni che vedremo.
Read More -
ZFS is a very innovative file system….
ZFS is a combined file system and logical volume manager designed by Sun Microsystems. The features of ZFS include protection against data corruption, support for high storage capacities, integration of the concepts of filesystem and volume management, snapshots and copy-on-write clones, continuous integrity checking and automatic repair, RAID-Z and native NFSv4 ACLs. ZFS is implemented as open-source software, licensed under the Common Development and Distribution License (CDDL). The ZFS name was a trademark of Oracle[3] until September 20, 2011.[4]
[…]
Read More -
Come alcuni sospettano, il 23 ed il 24 febbraio ci saranno le Elezioni in Italia.
Qui a Gioorgi siamo stati parecchio occupati tra bimbi&lavoro&tasse, ma vorremmo dire la nostra sulla combriccola Monti, Grillo, Bersani,…ecc
Iniziamo con il contesto della chiamata alle elezioni, e poi proseguiamo analizzando i partiti.
Read More -
Git: Version Control for EveryoneI was involved as Book reviewer by the publisher, Packt Publishing. The book is very easy to read, and it is ideal if you need a soft&sharp introduction to Git.
Read More -
So you know I need Emacs on every PC I use.
On windows7 I stick with a linuxVM when possibile, but sometime you need maximum speed, and EmacsWin32 is a good guy. Then I read the exact description of my problem…
Emacs on my Windows 7 work laptop was annoying slow when starting (around 10s). If closed and restarted, startup was immediate until, after about 30 seconds, it was slow again. According to Google, slowness might be due to failing DNS lookups of the laptop's hostname.
and I find out this solution: stop netlogon service via a command likenet stop netlogon
The add also this line to your .emacs...(setq w32-get-true-file-attributes nil)
-
Tool Command Language: il papa’ di Java
Dec 21, 2012 · 5 min read ·In particolatre Tcl 8.6 introduce un motore “stackless”, integra nel linguaggio le estensioni OOP, ed aggiunge le coroutine.
Parliamo quindi diffusamente di Tcl, un linuaggio che ho sempre trascurato perché mi sembrava macchinoso e un po’ brutto/fatto male…ma mi sono dovuto ricredere.
Read More