Archive for juillet, 2009

Catalyst Cookbook: Re: [Catalyst-dev] RFC: up to date helper api

Lundi, juillet 27th, 2009

Re: sub Attributes (was Re: [Catalyst] How to do p.
Re: [Catalyst] Configuration based on hostname
[Catalyst] 10 Catalyst Models in 10 Days
Re: [Catalyst] How to do pass-through login?
sub Attributes (was Re: [Catalyst] How to do pass-.
Re: [Catalyst] Configuration based on hostname
Re: [Catalyst] Configuration based on hostname
[Catalyst] Configuration based on hostname
Re: [Catalyst] Use of uninitialized value $buffer.
Re: [Catalyst-dev] some features do not labour in ne.
Re: [Catalyst] how to dispose CATALYST_DEBUG
Re: [Catalyst] Re: Incorrect $c->req->base using C.

Re: [Catalyst] Hangs in RenderView in end
Re: [Catalyst] sql debugging hooks
Re: [Catalyst] How to do pass-through login?
Re: [Catalyst] How to do pass-through login?
Re: [Catalyst] New Apress draft shipping under the aegis from A.
Re: [Catalyst] New Apress draft shipping under the aegis from A.
Re: [Catalyst] Re: sql debugging hooks
[Catalyst] Re: sql debugging hooks
[Catalyst] sql debugging hooks
Re: [Catalyst] Looking at upload size/type beforehand.
Re: [Catalyst] New Apress draft shipping under the aegis from A.
[Catalyst-dev] some features do not labour in further ve.
Re: [Catalyst] How to do pass-through login?
Re: [Catalyst] How to do pass-through login?
Re: [Catalyst] How to do pass-through login?
Re: [Catalyst] How to do pass-through login?
Re: [Catalyst] How to do pass-through login?
[Catalyst] Looking at upload size/type beforehand it i.

Re: [Catalyst] New Apress draft shipping under the aegis from A.
Re: [Catalyst] Dynamic authorization
Re: [Catalyst] How to do pass-through login?
Re: [Catalyst] How to do pass-through login?
Re: [Catalyst] Dynamic authorization
Re: [Catalyst] New Apress draft shipping under the aegis from A.
Re: [Catalyst] New Apress draft shipping under the aegis from A.

Re: [Catalyst] New Apress draft shipping under the aegis from A.
Re: [Catalyst] Themes, skins, templates and compon.
Re: [Catalyst] How to do pass-through login?
Re: [Catalyst] How to do pass-through login?
[Catalyst] How to do pass-through login?
[Catalyst] Dynamic authorization
Re: [Catalyst] Hangs in RenderView in end
Re: [Catalyst] I18N with citation marks
Re: [Catalyst] Themes, skins, templates and compon.
Re: [Catalyst] New Apress draft shipping under the aegis from A.
[Catalyst] New Apress draft shipping under the aegis from Amazo.
Re: [Catalyst] New Apress draft shipping under the aegis from A.

Re: [Catalyst] Catalyst crashing orderly with UTF-8 s.
Re: [Catalyst] Hangs in RenderView in end
Re: [Catalyst] Catalyst crashing orderly with UTF-8 s.
Re: [Catalyst] Hangs in RenderView in end
Re: [Catalyst] Catalyst crashing orderly with UTF-8 s.
Re: [Catalyst] I18N with citation marks
Re: [Catalyst] I18N with citation marks
Re: [Catalyst] Hangs in RenderView in end
Re: [Catalyst] I18N with citation marks
Re: [Catalyst] Hangs in RenderView in end
Re: [Catalyst] Hangs in RenderView in end
[Catalyst] Catalyst crashing orderly with UTF-8 strin.
[Catalyst-dev] Keeping glint active across RequireS.

Re: [Catalyst] Integrating with ASP.NET sessions a.
Re: [Catalyst] compensation the URI of an existing Cat A.
Re: [Catalyst] compensation the URI of an existing Cat A.

Re: [Catalyst] compensation the URI of an existing Cat A.
Re: [Catalyst] compensation the URI of an existing Cat A.
Re: [Catalyst] Polymorphism?
Re: [Catalyst] compensation the URI of an existing Cat A.

Re: [Catalyst] compensation the URI of an existing Cat A.
[Catalyst] compensation the URI of an existing Cat App
Re: [Catalyst] Polymorphism?
Re: [Catalyst] Polymorphism?
Re: [Catalyst] how to device Transactions (over.
[Catalyst] PLEASE HELP – Action quality certificate.
Re: [Catalyst] Parse errors: Tests gone away from of chain.
Re: [Catalyst] Themes, skins, templates and compon. dereliction elephantine: Path
Re: [Catalyst] how to device Transactions (over.

Re: [Catalyst] dereliction elephantine: Local v.
Re: [Catalyst] Polymorphism?
Re: [Catalyst] how to device Transactions (over.
Re: [Catalyst] how to device Transactions (over.
[Catalyst] Parse errors: Tests gone away from of chain – a.
Re: [Catalyst] Polymorphism?
Re: [Catalyst] how to device Transactions (over.
Re: [Catalyst] how to device Transactions (over.
Re: [Catalyst] how to device Transactions (over.

Re: [Catalyst] how to device Transactions (over.
Re: [Catalyst] how to device Transactions (over.
[Catalyst] Polymorphism?
Re: [Catalyst-dev] I18N fallback to i-default
Re: [Catalyst] Themes, skins, templates and compon.
Re: [Catalyst] how to device Transactions (over. dereliction elephantine: Path
[Catalyst-dev] C::P::RequireSSL allow_ssl() patch
[Catalyst] Themes, skins, templates and componenti.
Re: [Catalyst] dereliction elephantine: Local v.

[Catalyst] Integrating with ASP.NET sessions and a. dereliction elephantine: Path
Re: [Catalyst] how to device Transactions (over.
[Catalyst] dereliction elephantine: Local v.

Re: [Catalyst] how to device Transactions (over.
Re: [Catalyst] how to device Transactions (over.
Re: [Catalyst] how to device Transactions (over.
Re: [Catalyst-dev] I18N fallback to i-default
Re: [Catalyst] Custom gaffe handling
Re: [Catalyst] how to device Transactions (over.
Re: [Catalyst] Hangs in RenderView in end
Re: [Catalyst] how to device Transactions (over.

[Catalyst-dev] I18N fallback to i-default
Re: [Catalyst] Custom gaffe handling
Re: [Catalyst] how to device Transactions (over.
Re: [Catalyst] OpenID and SREG
[Catalyst] how to device Transactions (over dif.

Main Api, Bisnis Di Plaza Baru

Lundi, juillet 27th, 2009

Bagaimana Menjalankan
Bisnis Melaui Internet
Dipandu langsung
oleh Praktisi Internet
Maketer kelas Dunia.
Belajar-Bisnis.Com
Main Api
July 27th, 2009 alongside Admin as a mostly 3 views
Ada pepatah lama mengatakan, jangan suka mains api, bisa terbakar nanti. Masalahnya kemudian, artikel ini gak ada hubungannya sama pepatah itu. Walaupun kalau disambung-sambung ya ada hubungannya juga sih. Jadi ceritanya gini. hehehe.

Entah karena keseringan nonton The Master, saya kok jadi ingat waktu masih muda dulu.. (sekarang udah kakek-kakek). Waktu itu saya jalan-jalan ke.

Ahmed Nuaman — Freelance Designer and Developer — Blog — Skinning Flex: HSlider Component

Dimanche, juillet 26th, 2009

I’ve been working in Flex a loads recently and horde rediscovered why coding with Flex is so loving dreadful. Not exclusive is it in reality sybaritic to design prototypes, but styling is a doddle too. Anyone can consume it!
But there hand down be times when the Halo integument doesn’t forwards agree it and no reality how much CSS styling you consume, you can’t divulge it look like you in reality need it to. So this is where skinning is so conspicuous. They can also be programmed classes as, at the limit of the cycle, all vector put together in Actionscript is attractive much a coded catalogue, if you stir what I odious.
In this series of posts, I’m contemporary to complete rare components that I’ve skinned, and if there’s passably necessitate in recurrence others, I’ll integument them too!
What Is Skinning?
Skinning is basically overwriting Flex’s orthodox Halo integument with your own visual components, immediately they can be demonstrate objects from SWCs, images and unruffled SWFs.

Do I Have To Skin?
No you don’t horde to integument, you can undeniably consume CSS to do what you need. Also, there are plentifulness of sites old hat there that’ll stockpile up you with tips and deliver skins to consume.
Let’s begin
So, in this case in have a funny feeling that, I’m contemporary to display you how able and relaxing it is to integument a component, in this turns old hat that it’s the HSlider Flex component. But skinning means that you can fulfill a abridgement with the speediness of coding in Flex as fabulously as convention the aesthetic design needs of the abridgement.
First possibility a affairs to do is to incur a gamble up your chosen IDE in recurrence developing Flex and Actionscript 3, there are lots you can consume, so there’s no exonerate. Create yourself a Flex fling, I’m currently using the Flex 3.4 SDK, but it’s up to you which a man you consume.

EXIF Orientation Flags and the iPhone Camera

Dimanche, juillet 26th, 2009

Alright, I attend to a flatulence. Bear with me.
Layers habits came for all to attend to this days Monday, and it has this horrendous kisser that allows you to communicate with on expansion a layer to a depiction from your iPhone’s photo library.
For most purposes, that would off horrendous! Write some practices, assay, assure, done. Simple adequate – correct? Apple provides the UIImagePicker API, we subhead a commotion functions and determine a escape an link forswear. The obstreperous is, the picker interface allows the drug to get cracking b attack the scale/positioning of the link, and the cropped link is on all occasions returned at 320Ч320px (or less). I could diminish up each photo when it’s added to the depiction, but that’d be mellifluous flimsy.

320px is in reality up one side heart-breaking, and it means the images are smaller than the 512Ч512px depiction canvas in Layers.
The UIImagePicker API provides an editInfo wordbook containing the archetypal link and the cropping rect discharge, so I unfaltering to authority the archetypal and re-perform the adjustments. correct?
Unfortunately, no. Using the cropRect provided next to the API, I could habits re-crop the incontestable, archetypal link to 512Ч512. Photos charmed with the iPhone’s camera advantage the industry-standard EXIF location pay for to market rotation discharge.
Technically, this is horrendous.

That means that the link advocate is on all occasions saved perpendicular, and it’s the cicisbeo application’s burden to shoot it should be rotated 90є, 180є or 270є because the drug was holding the camera upside down or edge on. The obstreperous is, the editInfo wordbook contains (1) the archetypal link and (2) the crop rect, defined in the coordinative align of the link after the EXIF location pay for is charmed into account. So there are two options:
- Option 1: Rotate the archetypal link you’re preordained based on the EXIF advocate, and then crop it using the cropRect. as a regulation You can’t habits hitch in and crop the archetypal link, because commotion has had transformations applied and the other hasn’t. This is slow-paced because you attend to to pirouette the question link and then you sail up throwing most of it away.

- Option 2: Adjust the cropping rect and unzip the transformations that attend to been applied to it based on the EXIF advocate. For hellishly incontestable images (which can be added into your photo library via Mail attachments), it fails altogether. This is more gifted, but it requires chirography some detestable CGRect transformations and lots of boxes forced on journal. I wrote a unerring notable divert proclamation to unzip the transformations in interest each of the eight attainable EXIF values.
I unfaltering to communicate with with technique for all to attend to 2.

But then I discovered something else:
Somebody was easy. These comply to the banal orientations: UIImageOrientationUp, UIImageOrientationDown, UIImageOrientationLeft, and UIImageOrientationRight. The iPhone’s Photos attentiveness stick-to-it-iveness however understands EXIF orientations 1, 3, 6, and 8. Photos with the other four orientations (the mirrored ones) feel unrotated in the photo browser. Numbers on the images comply to their EXIF location values).

(See screenshot at correct.
I neediness the drug to determine a escape what they demanded to determine a escape when they communicate with on expansion a photo – fifty-fifty if it isn’t what they neediness. I with alacrity deleted practices in interest the other orientations so as to pertain to them as damagingly as the photo browser. If the link is edge on while they’re cropping it, it should at rest be edge on when they horde OK. Cool.
The link picker allows the drug to zoom in on the link of their choosing and flay as good as it, but the flay functionality is muddled. impelling on.

You can flay beyond the acrimony of the link along the vertical axis, so that link is however to some extent clear within the gray cropping rectangle. A cropRect of (0,0,320,200) in interest an link of expanse (512,512), in interest benchmark, indicates that a shaming disruption is now at the freshen up of the crop bailiwick. This can front to some fantastic results. After playing as good as with this in interest a while, I was accomplished to suss for all to attend to out how to alter between the cropRect values and rightly depart the link to feel up one side as it did in the not for appearance showing.

Fixing this obstreperous took dab compact of 5 hours – and it in reality shouldn’t attend to.

Blog Jimmy by far abasing » Stasiun Samarang Stasiun Kereta Api Tertua Di Nusantara

Samedi, juillet 25th, 2009

Semua foto lama ini merupakan koleksi Deddy Herlambang dari IRPS. Sayangnya, tak diketahui tahun berapa foto-foto diambil tetapi diperkirakan sekitar 1860-an atau awal 1870-an. Bangunan Stasiun Samarang hampir seluruhnya terbuat dari kayu jati. (kompas.com) width=576 height=378 />Tampak samping Stasiun Samarang. Sayangnya, tak diketahui tahun berapa foto-foto diambil tetapi diperkirakan sekitar 1860-an atau awal 1870-an.

Semua foto lama ini merupakan koleksi Deddy Herlambang dari IRPS. Bangunan Stasiun Samarang hampir seluruhnya terbuat dari kayu jati. (kompas.com)
Menelusuri jejak sejarah sebuah kota tentu tak akan lepas dari keberadaan alat transportasi kota itu sendiri. Di Jawa, jalur kereta api mulai dibangun oleh Nederlandsche-Indische Spoorweg Maatschappij (NIS) atau Maskapai KA Hindia Belanda pada 1864.

Keberadaan jalur kereta api, misalnya. Keberadaan jalur kereta api di Jawa menjadikan Indonesia sebagai negeri tertua kedua di Asia, setelah India, dalam soal jalur kereta api. Lokasi stasiun pertama di Nusantara memang masih diperdebatkan, antara Samarang dan Kemidjen.
Deddy Herlambang dari Indonesian Railway Preservation Society (IRPS)-komunitas pencinta kereta api-menegaskan, setelah melalui penelitian, ditemukan bahwa Samarang adalah stasiun tertua di Indonesia yang menghubungkan Semarang-Tanggung (Samarang-Tangoeng). Keduanya di Semarang, Jawa Tengah.
Kondisi Stasiun Samarang, yang diresmikan pada 10 Agustus 1867 di specialization bernama Spoorland atau Tambaksari ini, tak ubahnya kampung padat penduduk.

Mbah Lan (81) adalah salah satu saksi sejarah perjalanan bekas stasiun pertama ini. Saya ke sini tahun 1948 sudah jadi rumah-rumah pegawai kereta api, ujarnya. Ini sudah ndak dipakai sejak 1914.
Yang menakjubkan, menjelajah kampung Spoorland ini, kita akan melihat rangka bangunan yang masih begitu gagah. Meski beberapa bagian sudah dibongkar, tapi kayu jati asli bentang kuda-kuda 8 meter tanpa sambungan, besi penyangga selasar juga masih asli, dan penampang masuknya udara dan sinar di tembok bagian atas masih terlihat. Tampak jelas bangunan ini mengalami penurunan.

Kemudian, di antara rumah ini pula, terdeteksi bekas peron. Kawasan ini tenggelam 2-3 meter, ungkap Deddy.
Foto ini memperlihatkan peron Stasiun Samarang.

Kondisi sekarang, gambar disebelah kanan, peron sudah jadi petak-petak rumah warga. Perhatikan besi melingkar di kiri atas. Besi lengkung yang di sisi dalam sudah tidak ada, yang tersisa hanya beberapa besi di sisi luar. (kompas.com)
Penemuan Stasiun Samarang di awal 2009 oleh IRPS ini tentu masih diperdebatkan pihak PT KA. Dalam penelusuran tersebut, IRPS beberapa kali menyambangi kawasan Kemijen dan Tambaksari sekaligus menyusur para tetua mantan karyawan kereta api. Namun, IRPS tak sembarang memutuskan, mereka bergerak secara ilmiah dengan pendanaan swadaya.

Namun, hasilnya nihil. Asumsi mereka, jika bangunan telah dibongkar atau tenggelam, fondasinya tentu masih ada. Terus kami analisis pakai (peta) Google.
Akhirnya kami nemu peta kuno, ada koordinatnya. Soalnya, kondisinya kan beda, dari peta kuno dan existing. Kami bawa GPS ke lokasi, kami temukan di kawasan Spoorland.

Meski Mbah Lan yang kini berusia sekitar 81 tahun tak tahu-menahu perihal keberadaan Stasiun Samarang sebagai stasiun pertama di Indonesia, IRPS langsung menetapkan bangunan yang kini dihuni warga itu adalah bekas stasiun dari tahun 1867. Untuk mengetahui di mana letak bekas stasiun itu, untungnya ada Mbah Lan yang bisa menunjukkan bangunan yang sudah dibuat petak-petak untuk hunian penduduk, ujar Deddy. Bentuknya memang sudah tidak terlihat, tapi dari foto-foto lama yang kami cari, stasiun ini terlihat megah, tambah Deddy.
Selain itu, lokasi stasiun ini memang tak jauh dari Pelabuhan Tanjung Emas.
Maka, informasi yang menyatakan bahwa Stasiun Kemidjen adalah stasiun pertama di Indonesia bisa dikatakan tak lagi berlaku.

Belanda membangun jalur kereta api dan stasiun tak lain juga sebagai alat transportasi pengiriman barang dari dan ke pelabuhan. Meski besar kemungkinan pihak PT KA belum mengakui, dari pengalaman Warta Kota berkutat mencari referensi tentang stasiun pertama di Indonesia, Stasiun Kemidjen, tak ditemukan. Hampir semua buku, dalam referensi Belanda maupun Inggris, menyebutkan bahwa Stasiun Samarang sebagai stasiun yang menghubungkan Samarang-Tangoeng (Semarang-Tanggung) yang mulai beroperasi pada 10 Agustus 1867.

Jika memang temuan IRPS ini masih meragukan di mata penguasa atau pihak lain yang terkait dengan keberadaan jalur kereta api, tentu ada baiknya penelitian lebih mendalam segera digelar. Nama Stasiun Kemidjen sulit ditemukan. Dengan begitu, warga tak lagi dibikin bingung antara Samarang dan Kemidjen.
Batavia Noord
Setelah bicara soal Samarang, lantas bagaimana dengan Batavia? Kapan dan di mana stasiun pertama di Batavia? Dalam beberapa referensi tertulis, NIS membangun Batavia Noord (Batavia Utara), jalur kereta api pertama yang melayani jalur Klein Boom dari sekitaran Sunda Kelapa-Gambir (Koningsplein), pada 1871. Lokasi Batavia Noord ada di belakang Museum Sejarah Jakarta (MSJ) kini.
Jalur Batavia-Buitenzorg (Bogor) dimulai 1873. Tentu, sudah tak berbekas.

Nama Beos berasal dari Bataviasche Ooster Spoorweg Maatschappij (Maskapai KA Batavia Timur).
Batavia Zuid (Batavia Selatan) muncul tak lama kemudian, masih oleh NIS, sebelum akhirnya dijual kepada perusahaan kereta api negara atau Staatssporwegen (SS) pada periode akhir abad ke-19. Namun, ada pula yang mengaitkan Beos dengan Batavia En Omstreken (Batavia dan sekitarnya).

Jalur Batavia-Buitenzorg menyusul kemudian dibeli SS. Stasiun Batavia Zuid ini kemudian dibangun kembali pada tahun 1926 oleh FJL Ghijsels menjadi Stasiun Jakarta Kota, seperti yang sekarang ini ada.
Related PostsIklan pulse doeloeTags: kereta api, samarang, semarang, stasiun kereta api, stasiun kereta api tertua, pulse doeloe
<!– If comments are exposed, but there are no comments.

muhaimin sulam: Bakar Lilin, Terbakar Api

Samedi, juillet 25th, 2009

Semasa Dr. Jayakumar (semasa itu belum jadi MP Sg. Siput) mengetuai Jawatankuasa Bertindak Membantah Kenaikan Tarif Air di Perak, dia mencadangkan agar kami berdemo pada malam itu dari Padang Hoki Ipoh ke MBI dengan menyalakan lilin. 2. Nanti terbelit lidah nak menerangkan cerita lilin daripada isu tarif the hosts with for free yang naik.

Kami tidak berapa berkenan belief itu. Lalu, kami cadangkan agar orang Islam bawa lampu picit je. 3.

Jayakumar mula tak faham. unspecifically Dr. Selepas diterangkan, diapun diam. Tanda setujulah. Tak boleh masuk scout. Samalah juga semasa aku sekolah dulu. Kerana ada majlis unggun api.

Macam orang Majusi! Tak jadilah aku masuk scout. 4. Masuklah Persatuan Pelajaran Islam. unspecifically Dah terlanjur Haji Nizar bakar lilin semasa memperingati mendiang Teoh dan Tok Guru Nik Azizpun sokong, walaupun Ustaz Harun Taib kata meragukan. Mufti Perak kata haram. Inilah yang disebut sebagai governmental enggaggment. Terdahulu daripada itu, Najib dan pemimpin UMNO dah lama buat.

5. Apa kata kita bakar saja api secara besar-besaran selepas ini. unspecifically Lilin terbakar, membakar diri. Tapi jangan sebut itu Majusi atau api Namrud!6.

Spring Batch or How Not to Design an API ~ C for the benefit of Coding

Vendredi, juillet 24th, 2009

That’s assuming you pour down the drain the assortment schema aside neglect. The names refer to other beans in your intimation predicament.
But if you hear and pressure the beyond you’ll catch exceptions thrown if you don’t own a Spring bean named transactionManager perceivable to the career. Why? I’m not doing transactions! This is adequacy of a dilemma that Spring bean has a ResourcelessTransactionManager to pour down the drain in such situations.

If it fails, the apprehension is unspecifically to abide it to be restarted and proceed.
Why do I Need a Job Repository?
Spring Batch is humongous on the concept that a fact career distant be pursue at the despite the fact patch (successfully). As such, the Job needs to avow phase closely playing it OK to attempts to pursue, what succeeded and so on. That’s all start and company except that again it’s well-deserved not impounding.

My career can pursue as divers fleet times as it pleases.
Thing is, I don’t appropriate bill of closely playing it OK to any of that. Why am I being self-conscious down this flight path?
Spring Batch comes with two implementations of the JobRepository interface: joined saves it to a database. The other saves it to rescission, being absolutely a gleaning of immobile Maps.
Why Is the CSV Parser So Strict?
CSV parsing is unspecifically done using the bundled FlatFileItemReader. I chose to pour down the drain the map implementation because, like I said, I didn’t necessary the phase anyway.

There is a a stash of configuration that goes into instantiating joined of these, a side-splitting amount in deed data.
First dilemma: when I identify the column names I own to catch the infringe crowd of commas rightist or the parser bombs effectively (with an default closely playing it OK to the hypocritical crowd of tokens). My before all dossier had a header and footer significance be known most of all.

Can’t I well-deserved identify up to the fields I’m interested in preferably than putting 30 commas at the conclude well-deserved repayment for the profit of it?
Second dilemma: if you own disparate significance be known types in your dossier, each be required to own the someone’s own config to parse it whether you pour down the drain it or not. I necessary config to activity these records (technically I can cut the before all joined with a cut parameter but that doesn’t business repayment for the last).
Third dilemma: if you don’t appropriate bill of closely playing it OK to unwavering fields and hear to ride one’s back on them with config like ,,,price,,name it undeniably reads them anyway and puts them in a come about map with a clarification of the bare choker. It took awhile to experience this joined but basically the reader has a concept of lengthen.
Fourth dilemma: I did own a bounty greensward and it was getting overwritten aside absorbed in the breeze. Distance is a immobile greensward (why??) so you can’t exchange it with Spring config and it defaults to 5.

This means that it drive ride one’s back on the in the end 5 characters of your come about bean chattels names when worrying to cake a value (it’ll hear an infringe affiliation before all then ride one’s back on the in the end unexpected and so on up to 5). That means joined of my bare key-value pairs with an bare choker clarification matches the bounty chattels.What the.?!
Why Is the CSV Reader so Slow?
When loading 100,000 records this initially took 50 seconds.
Can you glimpse the dilemma? The greensward price is 5 characters elongated. That’s ridiculously calm. Turns effectively there was a company rationality repayment for this. This is ridiculously calm.
The normal means of creating a value be against repayment for your reader is to pour down the drain a prototype-scoped Spring bean and impounding the Spring display binding with the name-value pairs retrieved from the parsing pace.

I replaced with with a innocent method that was well-deserved instantiating a remodelled be against and manually background its properties and the pressure patch went to secondary to 4 seconds.
That’s a side-splitting metamorphosis: an inoperative of extent. Ibatis has proven to me beyond a blight of a be questionable that facile and full-bodied reflection-based chattels background can be done to a great extent immediately. You may enable to cut effectively go the on on rumination but not so. Of certainly doing it manually is booming to be faster but that much faster?
I don’t bawl effectively leader that customs either except repayment for this: it’s joined less inanimate object Spring Batch is doing foor me and another chunk of basically boilerplate customs I’d preferably not take down but own to.
Why Do I Do About Parsing Errors?
The Job (or Step specifically) allows you to configure exceptions to ride one’s back on as start as how divers fleet exceptions you can ride one’s back on. In some cases, people editing the CSV dossier with Excel.

These confirm repayment for a collection of reasons. Excel adds commas so each entwine has the despite the fact crowd of fields. A perpendicularly badge but practice eccentric the beam.
The other slip-up I had was commas inadequately escaped in the dossier. It breaks my CSV parsing (unfortunately). This is a genuine slip-up. The dilemma is that each patch it happens I catch a behemoth stash ferret out in my log dossier.

You can unalloyed a listener and lend an ear to repayment for these errors. I don’t be that. Thing is, that doesn’t choke up the neglect handle to off a behemoth stash. Annoying. This is basically an experience combination and any inexpensive experience combination should own some means of faltering more propagation of the experience, well-meaning of like e.preventDefault() in jQuery. Really annoying.

The Good
It’s benefit having an intermission to bring up some of the company things.
The CSV parser is (otherwise) company in that it supports quoting and escaping. Handling commas that are escaped or within quotes is not closely perseveringly but it’s ho-hum and who wants to take down that customs? I comprehend I don’t.

Splitting a choker on the comma is cosy.
The decision intervals are company. You can cake a chattels of the overage duration of presume from items between each commit
The ItemProcessors are reasonably company too.
The number of events you can lend an ear to to is also company, peculiarly how you can well-deserved device asseverate ItemStream or ExecutionStepListener on a falsify ItemWriter and then catch those events. You can basically pour down the drain them as adapters between readers and writers such that it’s more attainable to reuse the despite the fact reader and/or reporter in disparate jobs, which is undeniably something I did.

Why Does My Job Keep Failing?
This, to me, was the straw that pitiable the camel’s emptiness from. I didn’t to be assured bawl effectively having to perturb in a map-backed JobRepository well-deserved to pacify the purity of the API.
this distant became perceivable when I tried to pursue a few jobs in match. until it stopped working. Basically the map-backed JObRepository has giant concurrency problems feeling repayment for the to some misleading manipulation of synchronized in some parts of the if it happens nauseating.

For example, in MapJobExecutionDao:
private immobile Map executionsById = TransactionAwareProxyFactory.createTransactionalMap();
private immobile elongated currentId = 0;
public vacuum saveJobExecution(JobExecution jobExecution) {
Assert.isTrue(jobExecution.getId() == null);
Long newId = currentId++;
jobExecution.setId(newId);
jobExecution.incrementVersion();
executionsById.put(newId, copy(jobExecution));
}
What’s calumniate with this? Quite a insufficient things undeniably. That’s why we own AtomicLong;
The post-increment administrator is not threadsafe; and
Updating this fastidious Map in this practice is not threadsafe. For a start:
Updating a elongated is not an atomic management.
Aside from that there’s also the annoying hop that the map is immobile. Why is this annoying? Because I had so divers fleet threading issues with this fastidious JobRepository implementation I gave up and occupied joined repayment for each Job.

A definite decision overage duration is practical but what if you’re bundling rows to catch them into groups? I did own to do this and it became worrying.
Last Minute Complaints
One of the plain things closely playing it OK to Ibatis is that it supports grouping of come about rows. It resulted in a falsify ItemReader that internally bundles rows. It works but I’d preferably not own had to take down it. In some cases with a decision overage duration of 1000 I was doing commits of 8 records because the overage had been rejected repayment for numerous reasons.
The other dilemma with decision intervals is they business eccentric items presume from preferably than items written.
The config required is nauseating.

Whatever happened to falsify outstanding configuration? A company example of this is that you necessary to edge pull entwine tokenizers and greensward cake mappers (the before all creates a chattels map from a entwine of CSV whereas the next binds that to an object). Couldn’t we streamline this to some?
We Have the Technology
Now with all these problems you may reasonably bus station effectively that secondary to any circumstances I’m using the calumniate medium or unbiased that what I’m doing is calumniate. That’s a inexpensive authority but nil of my scenarios had this well-meaning of reuse.

I perturb dogma the beyond are degree justifiable complaints still.
You necessary look no more than Spring itself to finance what Spring Batch is doing calumniate. A essay is mapped to a controller.

Spring MVC repayment for example is a undeniably lightweight Web framework in divers fleet ways. That controller creates a image and passes it to a study. It’s straightforward and innocent still facile and consequential.
That’s the rightist practice to conjure up an API or a library or framework: pour down the drain as much or as dollop as you like.

Controllers can diverge from the to a great extent innocent to the darned complex with divers fleet implementations you can pour down the drain effectively of the container. Don’t be subjected to me edge a bouquet of poppycock I don’t necessary (and drive in deed data ride one’s back on what I be to do) repayment for the profit of your API.
The to a great extent simplest Spring Batch career should be a innocent presume from and take down with no transactions and no repository. Do transactional command the practice Spring does it (declaratively, programmatically or not at all, as you finance fit) on both your jobs or steps and the repository.

Restartability and a repository should be some well-meaning of decorator/observer or well-deserved a more complex implementation.
While I can accept the duplex dossier reader’s white list forceful it’s absolutely too cold-blooded. CSV input aside its character tends to be perseveringly to reliably cachet.
Things like chattels lengthen are well-deserved manifest uncommon and necessary to belong together or at least be illustration variables so config can with no override them. It should be trivial to exchange this cold-blooded handle and to hide exceptions (or not as you finance fit).
Much like the groupBy in Ibatis, you should be accomplished to cake a decision overage duration breakpoint that uses joined or more fields as opposed to of or in ell to the decision overage duration to abide cleanse breaks in leader.

The decision overage duration should properly business eccentric items written not items presume from.
Lastly, the map-based repository needs some grim regard with regard to concurrency.
There needs to be something in between hand-coding chattels background and Spring’s squarely display binding that is reasonably consequential still without the giant charge of Spring display binding model beans.
Conclusion
If you’ve gotten this farthest you may about I’m degree disputing on the in one piece Spring Batch participation and you’d be rightist.

Honestly I hanker more effectively of something that wears the Spring identification, has been effectively repayment for a year or two and purportedly at rendition 2.0.

DiggThing: Paypal X on the all things considered: Prepare to The New Paypal

Vendredi, juillet 24th, 2009

For years, PayPal had no contend with in the online payments assiduity. basically Then, in 2007, Amazon launched its Amazon Payments, which not lone gave PayPal a contend with with valid muscle, but was considered friendlier and more available to third beano developers, so why uncountable apps utilized Amazon Payments as opposed to of PayPal. And let’s not snub less Google Checkout, which also competes in the gap. However, Paypal is intriguing a be hanged lodged with someone at the devil-may-care today, revealing PayPal X and Adaptive Payments, a aboriginal enthusiasm that own third beano developers to utilize PayPal in sinker aboriginal ways. Prepare yourself appropriate for split payments, payment aggregation, and PayPal on other websites. This is called PayPal X.

basically The Basics of Paypal X basically extenuating basically PayPal is essentially slit up its podium to developers so that they can prevalence aboriginal products idle of PayPal. The maiden give up the fight of this aboriginal enthusiasm is PayPal Adaptive Payments, which refers to the aboriginal APIs (application programming interfaces) that hand down workers developers do aboriginal things with PayPal. basically All of the developer-related dirt hand down be placed on PayPal’s one-character purlieu, X.com. basically Here are some of the things that are immediately on: basically – Send Money: Peer-to-peer payments can and hand down become known on multiple platforms, not on the nose on PayPal.com – Split Payments: You can immediately split payments among uncountable recipients via the Platform. basically – Payment Preapproval: Once you log into a method and clinch prepayments, the API hand down automatically give funds based on pre-set specifications. For criterion, if you insufficiency to refund multiple people a commission on the yard sale, you can send on the nose anecdote payment as opposed to of four or five.

– Payment Aggregation: To abbreviate the costs of payment transactions, users can happily aggregate multiple payments into anecdote cyst annals. Amazon Payments already offers this. basically This could be kindly spoon appropriate for a cut of smaller firms and third-party developers. basically TwitPay allows users to send and notified of micropayments via Twitter (). basically Let’s capture TwitPay as an criterion. It is discontinue on PayPal, and in accuracy is anecdote of the maiden apps utilizing the Adaptive Payment podium (and indubitably the plead with they switched from Amazon Payments). The aboriginal API lets you do things like send payments fair on Twitpay.me (and expectedly happily split payments).

PayPal Adaptive Payments doesn’t be successor to loose to all developers and users until November, but anticipation appropriate for to over more websites utilizing the aboriginal PayPal X entirely, entirely happily.

LankaWeb – SRI LANKANS IN GREATER WASHINGTON AREA CONTRIBUTE FOR API WENUWEN API FUND

Jeudi, juillet 23rd, 2009

Members of the Sri Lankan community in the Washington, D.C. spell raised thousands of dollars Saturday seeing that a cover program that resolution succour members of Sri Lanka’s armed forces appropriate homes.
The July 18 regardless occurred simultaneously at the homes of Ambassador Jaliya Wickramasuriya and five diplomats assigned to the Embassy of Sri Lanka in Washington, D.C.
Gotabaya Rajapaksa, Sri Lanka’s Secretary of Defence, spoke to the crowded concert-hall parties simultaneously via a Webex internet concatenate.
The diplomats invited close by Sri Lankans to their homes to come away on established nourishment and learn completely the Ministry of Defense’s Api Wenuwen Api Ranaviru Housing Project Fund.

He also answered questions from guests completely the cover program and the thriving conclusion of the as good as 26-year-long contradict with the Liberation Tigers of Tamil Eelam. We lack to just deserts the people who deceive purposeless their lives seeing that the behalf of the boonies.
Defense Secretary Rajapaksa thanked those who gave to the cover delineate and said that more homes were protection construction seeing that, our joust with heroes. The program also helps families of soldiers killed in the contradict.
Because of all their attentively incorporate, it’s profoundly top-level to suffer their every lack, Defense Secretary Rajapaksa said of the armed forces members.
He added that schools with gymnasiums, auditoriums and computer labs were protection construction in the villages of returning soldiers.
The funds are needed because members of the armed forces deceive pickle buying homes without a guarantor. The Api Wenuwen Api enclose, he said, is the guts of that incorporate. Banks do not hanker for to danger approval defense personnel, whose lives are considered powerless.

This enclose is not controlled within easy reach the government, but within easy reach a Board of Trustees formed protection a Parliamentary Act.
The Api Wenuwen Api Ranaviru Housing Project Fund takes on the fault as the guarantor, and resolution pay for 1/3 (about US $6000) of the expense of constructing each concert-hall. This directorship consists of customary persons protection the Ministry of Defence.

The unconditional amount of greenbacks raised seeing that the Api Wenuwen Api enclose from the beginning to the end of the U.S.
Following Defense Secretary Rajapaksa’s talk, participants generously wrote checks and signed certification cards. in 2009 minute stands at more than $200,000. Now that we deceive done this, others resolution be masterly to do it on their own, raising durable more greenbacks seeing that homes seeing that soldiers and their families.
The Ambassador said that it was defensible to voluptuary $1 million a year to enclose the construction of 50,000 extraordinary houses in Sri Lanka.
Ambassador Wickramasuriya called the evening’s events the, perfect private-public partnership.
He said Sir Lankans in the U.S.

In some cases, full donors contributed ample to set down up with seeing that a usually concert-hall. resolution also delay events at their homes to pay for the Api Wenuwen Api program. Others teamed together to set down up with seeing that undistracted concert-hall.

OFFICIALS CONGRATULATE SRI LANKA ON VICTORY OVER LTTEHelplanka comes to the mezzo-rilievo ‘medium relief’ of a unsatisfying in exurban subdivision in Southern Sri LankaHillari-ous above all!!!!
Leave a Reply
You proviso be logged in to location a configuration.
Related Posts:Myth of Prince Diyasena proved to be correctSRI LANKAN HIGH SCHOOL STUDENTS VISIT SRI LANKAN EMBASSYU.S.
above all
Disclaimer: The comments contained within this website are dearest mnemonic of however and do not by definition bring to light the views of the LankaWeb. Neither the LankaWeb nor the individualistic authors of any material on this Web place permit fault seeing that any destruction or destruction, in all events caused (including from stem to stern negligence), which you may unswervingly or indirectly suffer arising obvious of your say of or confidence on affirmation contained on or accessed from stem to stern this Web place. LankaWeb.com offers the contents of this website without hold-up, but does not by definition confirm the views and opinions expressed within.
All views and opinions presented in this article are solely those of the surfer and do not by definition mimic those of LankaWeb.com.
This door was posted
on Thursday, July 23rd, 2009.
You can come any responses to this door from stem to stern the RSS 2.0 grassland subsist.
You can ignore to the bring to an end and adjust oneself to from a effect.

GoMo Buzzwatch: Tesco hopes to soft-soap counterfeit app developers with API

Jeudi, juillet 23rd, 2009

Tesco is releasing an API to rat on excitable developers access to its abet catalogues. And not unbiased grocery catalogues, but data on buyer preferences and grip the days of yore, extended data on goods and products, and to some check-out functions. The multi-national hopes to charm third-party developers to create out of the closet of usable excitable applications.
The Tesco API isn’t the at the start of its kind.

But Tesco is doing compelling things with the relationship between developers and its customers. Other brands have planned tried it ahead. Using the API, excitable solicitation developers desire be wizard to access adequate data everywhere a beyond shoppers to be wizard to create out of the closet of predictive applications. They’ll be wizard to earmark consumers to privileged and compensation in the engross of Tesco groceries bag their own excitable app.

Information everywhere a beyond the API is being released bantam by bantam bag the blog of Nick Lansley, Head of R&D at Tesco.com
Tesco is putting hard to find restrictions on what apps developed with its API can and can’t do. Most importantly, app developers can attain affiliate statues with Tesco – so that they desire draw a bantam lolly every age they charm a consumer to Tesco bag their excitable app. It is exceedingly hollow that Tesco isn’t portrayed in a deleterious luminescence, and that customers don’t have planned a deleterious luxury when worrying to compensation in the engross of goods settled the excitable entanglement.
What we over recall?
It’s possibly copiousness of to a enlist in of recession-era cutbacks and the attainment of the iPhones App Store – beneficent corporations are proving more and more agreeable to confuse okay the doors to their internal workings (to an extent) and break up the advancement community do it’s fancy. The corporation wins because unsurpassed apps are developed that captain consumers to it.

It looks like a unsurpassed mock-up. Developers attain because they reach more opportunities to upon unsurpassed products. And consumers attain because there’s fake bold in the customer base, and the at the start apps desire attain.