Wednesday, 25 May 2011
artepupper source code
People are asking me about artepupper's source code, so here it is. It's in C#, under VS2008. Of course artepupper doesn't do much, other than presenting a usable interface and scanning a couple of html/xml files with regexes, the real magic is in RTMPDUMP...
Saturday, 14 May 2011
Voodoo COM Interop
It is unlikely, but non entirely impossible. You might have a VB6 app using the fine, open sourced vbAccelerator controls. You might have a Rebar control, a few Toolbarcontrols, and a Popupmenu control, to overcome the limitations of the obsolete VB6 standard controls.
And everything would seem to work just fine: a workaround to overcome GPF on exit (attributed to a COMCTRL32.DLL bug) is in place, but it works flawlessly. One day, you might start to use .NET modules with COM Interop. In the IDE, everything would still works just fine, but outside it… a GPF on exit. Only when the COM Interop modules are called. And only from VB6 consumers with the vbaccelerator controls.
You might solve the mistery, at the expense of a mild case of sleep deprivation. But not if you’re reading this, because the culprit is the lack of the .RemoveAllRebarBands method from the vbAccelerator Rebar Control. Yes, the good working sample code doesn’t use it and specifically states it isn’t needed. And it isn’t, but only up to a particular level of rebar crowding.Yes, it doesn’t particularly make sense, but it works.
How is it feasible to finally solve, practically and without spending days or weeks, these nasty problems? vbAccelerator components are fine, but, being legacy code to say the least, there isn’t much support or discussion space around. Com Interop is not particularly well covered or supported by MS (event though it works, and it’s a lifesaver in the real world). You go by exclusion: I found out that a VB6 consumer without those controls worked just fine, and I started disabling code in the othe consumer, until the problem stopped appearing. At that point, I had identified the problem in the Rebar area: I started moving switches and changing properties and method around, until I hit the RemoveAllRebarBands. Not very orthodox, but probably quicker than debugging everything at a low level..
And everything would seem to work just fine: a workaround to overcome GPF on exit (attributed to a COMCTRL32.DLL bug) is in place, but it works flawlessly. One day, you might start to use .NET modules with COM Interop. In the IDE, everything would still works just fine, but outside it… a GPF on exit. Only when the COM Interop modules are called. And only from VB6 consumers with the vbaccelerator controls.
You might solve the mistery, at the expense of a mild case of sleep deprivation. But not if you’re reading this, because the culprit is the lack of the .RemoveAllRebarBands method from the vbAccelerator Rebar Control. Yes, the good working sample code doesn’t use it and specifically states it isn’t needed. And it isn’t, but only up to a particular level of rebar crowding.Yes, it doesn’t particularly make sense, but it works.
How is it feasible to finally solve, practically and without spending days or weeks, these nasty problems? vbAccelerator components are fine, but, being legacy code to say the least, there isn’t much support or discussion space around. Com Interop is not particularly well covered or supported by MS (event though it works, and it’s a lifesaver in the real world). You go by exclusion: I found out that a VB6 consumer without those controls worked just fine, and I started disabling code in the othe consumer, until the problem stopped appearing. At that point, I had identified the problem in the Rebar area: I started moving switches and changing properties and method around, until I hit the RemoveAllRebarBands. Not very orthodox, but probably quicker than debugging everything at a low level..
Tuesday, 10 May 2011
Lamento di un Fiorentino
Vista e fotografata oggi all'entrata di FS Rifredi (lato via de Gama).
"Lamento di un Fiorentino: se nella notte che concepì Matteo i Renzi si metta la "protezione" un ci sarebbe in giro per Firenze uno che parla tanto ma non combina niente, è.. Aimè, persino il libro FUORI! gli ho comprato oddio quanta ARIA FRITTA c'ho trovato."
Fossi i' Renzi (jr.) ci rifletterei sopra un minuto.
Sunday, 8 May 2011
artepupper 0.2
A small update to my artepupper rtmpdump gui wrapper to download arte liveweb video files. In 0.2 there's an option to download 'SD' video files ('HD', often not true HD at all anyway, was and is the default), and another checkbox to see what URL/Options are passed to rtmpdump itself. Download it here.
Update: there's a new version.. http://delendanet.blogspot.it/2012/04/artepupper-03.html
Monday, 2 May 2011
Disk read error occurred. Press Ctrl Alt Canc to continue
I have a rather old, but beefed up HP nx6110 Windows XP notebook I use especially when I'm travelling by train, since it still has a good battery life and it doesn't weigh much. Last year I changed the original 40gb hard drive with a bigger 140 gb unit.
The other day, rebooting, I received this message "A disk error occurred. Press Ctrl Alt Canc to continue". I backup the unit daily, so it wasn't particularly worrying, except for the fact that reinstalling everything on that notebook takes at least a day. The data on the disk was intact (I check taking the drive out and using it in an enclosure on another pc). I tried an XP boot CD with FIXBOOT, FIXMBR. I tried the freeware utility MbrFix. I tried repairing the Windows Installation. As a matter of fact this post on Tom's Hardware describes best my situation. Reimaing the disc would surely work, but what actually - in my case at least - allowed the disk to boot again bypassing the error was simply a defragmenting of the main partition, using the standard disk defragmenter on another pc. The disk was badly fragmented, but it should result only in slower reads. Tight timeouts? In the bios? NTLDR? Amazing windows...
Anyway, now I've reimaged the notebook's disc with Clonezilla, and virtualized the whole machine with VMWare Converter, just in case.
The other day, rebooting, I received this message "A disk error occurred. Press Ctrl Alt Canc to continue". I backup the unit daily, so it wasn't particularly worrying, except for the fact that reinstalling everything on that notebook takes at least a day. The data on the disk was intact (I check taking the drive out and using it in an enclosure on another pc). I tried an XP boot CD with FIXBOOT, FIXMBR. I tried the freeware utility MbrFix. I tried repairing the Windows Installation. As a matter of fact this post on Tom's Hardware describes best my situation. Reimaing the disc would surely work, but what actually - in my case at least - allowed the disk to boot again bypassing the error was simply a defragmenting of the main partition, using the standard disk defragmenter on another pc. The disk was badly fragmented, but it should result only in slower reads. Tight timeouts? In the bios? NTLDR? Amazing windows...
Anyway, now I've reimaged the notebook's disc with Clonezilla, and virtualized the whole machine with VMWare Converter, just in case.
Tuesday, 26 April 2011
Comastes meos
Per qualche giorno, navigando sulla pagina web del secondo quotidiano italiano, sono stato afflitto da un trafiletto relativo all’apparizione, in una chiesa di Montalcino, del coro ‘Komos’.
L’ensemble vocale si presenta come un coro composto esclusivamente da omosessuali. Dal sito noto in Italia per le numerose raccolte di foto softcore e per sbattere in prima pagina ogni sei mesi un presunto nazi-anti-semita cercato con google (ultima vittima, la povera Cloro, cui va, FWIW, la mia solidarietà), si apprende che ‘Komos’ aveva già provato più volte a cantare in chiesa, senza riuscirci Questa volta sono stati accettati, e ‘due hanno pure fatto la comunione’.
Sorvoliamo pure sul senso che può avere un coro ‘gay’. Per me ha più o meno lo stesso razionale di una squadra di calcio composta esclusivamente da giocatori biondi, o di una orchestra composta esclusivamente da sofferenti di sindrome del colon irritabile. Certo, con la propensione odierna ad inquadrare l’omosessualità nella sua brava nicchia o nelle sue brave nicchie di mercato, nelle sua brava sottocultura, nei suoi preconfezionati ‘lifestyle’, non c’è molto da stupirsi.
Non c’è da stupirsi che Repubblica, il quotidiano italiano noto per dare risalto anche ai gay pride dell’Ingiuscezia, abbia messo la notizia in prima pagina. Non c’è molto da stupirsi che l’apparizione del coro ‘Komos’ sia letta come l’ennesima battaglia, vittoriosa, contro la Chiesa Cattolica. Questa volta una battaglia combattuta in modo morbido, ma pur sempre una rivalsa contro il nemico di sempre. La prossima volta ci sarà una manifestazione no-vat. La volta ancora qualche storia piccante di preti pervertiti.
Ora, quelli di ‘Komos’ almeno sono credenti? ‘Due hanno fatto la comunione’. Vogliono riformare la chiesa con gesti esemplari, un po’ come quell’amatissimo (e coltissimo) prete di periferia delle mie parti? Sono dei credenti esclusi dal tradizionalismo imperante della C.C. – un po’ come i picchiatelli delle ‘veglie di preghiera contro l’omofobia’?
Lo trovo un po’ dubbio. Cercando su YT, trovo questa pregevole esecuzione di ‘Hallelujah’ di Leonard Cohen. Canzone memorabile, ma non esattamente con un profondo afflato, non dico cattolico, non dico cristiano, ma neanche religioso.
Inoltre c’è il particolare del nome del coro. Forse i religiosi che in passato avevano rifiutato l’accesso al gruppo se ne erano accorti, di sicuro non l’hanno fatto quelli di Montalcino. Il κῶμος era un festival pagano, nella grecia antica, dove perdipiù ci si abbandonava a riti orgiastici.
Un po’ come chiamare Eminem a una festa dell’arcigay, oppure un gruppo tipo ‘NS-88’ in un centro sociale.
Ma forse si è trattato solo di una malcelata ripetizione delle imprese dei 5 madrigalisti moderni, e sono io che prendo tutto troppo seriamente…
Subscribe to:
Posts (Atom)