Sunday, December 6, 2009

Cap job runtime: Debugging periodic job policy in a Condor pool

Job policy includes a set of periodic expressions; PeriodicHold, PeriodicRelease, and PeriodicRemove. Periodic expressions on a job are evaluated in the context of the job’s ad. They should evaluate to a boolean; if PeriodicRemove is TRUE, then remove the job. They are evaluated by the Schedd and a Shadow. The Schedd evaluates them as frequently as PERIODIC_EXPR_INTERVAL, which defaults to 60 seconds in condor 7.4 and 300 before. The Shadow evaluates them periodically, based on PERIODIC_EXPR_INTERVAL, and every time it receives an update from the Starter running the job. Updates occur periodically, controlled by STARTER_UPDATE_INTERVAL on the Starter.

Say you want to put a job on hold if it runs for more than 60 seconds. To do this you need job policy and two points of reference; the start time of the job, and the current time.

The job policy you want to use is PeriodicHold.

For the two time references you need to look at a job’s ad to see what is available. You can see a job’s ad with condor_q -long. The start time is available as JobCurrentStartDate, seconds since Epoch, and it would appear that ServerTime is the current time, seconds since Epoch.

Here’s a job you might write:

executable = /bin/sleep arguments = 29m notification = never periodic_hold = (ServerTime - JobCurrentStartDate) >= 60 queue 1

If you submit it and wait a minute you will see it is on Hold.

$ condor_q -- Submitter: robin.local : : robin.local ID OWNER SUBMITTED RUN_TIME ST PRI SIZE CMD 1.0 matt 11/5 19:03 0+00:00:19 H 0 2.0 sleep 29m 1 jobs; 0 idle, 0 running, 1 held

But, it only ran for 19 seconds. Check why.

$ condor_q -hold -- Submitter: robin.local : : robin.local ID OWNER HELD_SINCE HOLD_REASON 1.0 matt 11/5 19:04 The UNKNOWN (never set) PeriodicHold expres 1 jobs; 0 idle, 0 running, 1 held

The hold reason is truncated, but you can use condor_q -long to see all of it.

$ condor_q -long | grep ^HoldReason HoldReason = "The UNKNOWN (never set) PeriodicHold expression '' evaluated to UNDEFINED" HoldReasonCode = 5 HoldReasonSubCode = 0

This is saying that something went wrong and your PeriodicHold expression evaluated to UNDEFINED. You wanted it to evaluate to a boolean. The way expression evaluation in ClassAds happens, if part of an expression evaluates to UNDEFINED then chances are the entire expression will. For instance, the expression A + 1 will evaluate to the value of the A attribute plus 1. When A is a number like 2, the expression evaluates to 2 + 1 => 3. When A is not defined, the expression evaluates to UNDEFINED + 1 => UNDEFINED.

There is a handy way to debug expression in Condor, use the debug() ClassAd function.

Your job becomes:

executable = /bin/sleep arguments = 29m notification = never periodic_hold = debug((ServerTime - JobCurrentStartDate) >= 60) queue 1

When you submit the job and look in either the SchedLog or ShadowLog you will see “Classad debug” messages.

ShadowLog:

...: Classad debug: ServerTime --> UNDEFINED ...: Classad debug: JobCurrentStartDate --> ERROR ...: Classad debug: JobCurrentStartDate --> 1257476798 ...: Classad debug: debug((ServerTime - JobCurrentStartDate) >= 60) --> UNDEFINED

Very clearly, ServerTime is evaluating to UNDEFINED. That may seem strange because it looked like it was part of the job ad. However, ServerTime is somewhat special. Likely buggy. It is only added to a job ad in response to a query, e.g. condor_q. It is not actually part of the job ad. Annoying.

There is a solution. Another special attribute is CurrentTime. It is available to all expressions, but it is not a visible attribute on a job ad. Also annoying. You have to know it is there. Using it we can rewrite the job as follows.

executable = /bin/sleep arguments = 29m notification = never periodic_hold = debug((CurrentTime - JobCurrentStartDate) >= 60) queue 1

After submitting the job and waiting a minute you can see that it has been put on hold.

$ condor_q -- Submitter: robin.local : : robin.local ID OWNER SUBMITTED RUN_TIME ST PRI SIZE CMD 3.0 matt 11/5 19:09 0+00:01:00 H 0 0.0 sleep 29m 1 jobs; 0 idle, 0 running, 1 held

The details of the hold are also much more what you would expect.

$ condor_q -long | grep ^HoldReason HoldReason = "The job attribute PeriodicHold expression 'debug((CurrentTime - JobCurrentStartDate) >= 60)' evaluated to TRUE" HoldReasonCode = 3 HoldReasonSubCode = 0

In the ShadowLog you can see that CurrentTime is available as expected.

ShadowLog:

...: Classad debug: CurrentTime --> 1257477062 ...: Classad debug: JobCurrentStartDate --> ERROR ...: Classad debug: JobCurrentStartDate --> 1257477002 ...: Classad debug: debug((CurrentTime - JobCurrentStartDate) >= 60) --> 1

Remember to remove debug() from your expressions.

[Via http://spinningmatt.wordpress.com]

Saturday, December 5, 2009

Cd Tutorial Php - On The Job Training Sesuatu Anda Kana (tm) t Mampu Skip

cd tutorial

cd tutorial

Karyawan terlatih lebih produktif karyawan tidak ada keraguan
tentang itu. Apakah Anda hanya anda karyawan atau apakah Anda telah Tumbuh
punya staf meletakkan OJT On the Job Training di bagian atas
Anda To-Do list.

Setiap pekerjaan tidak peduli apa itu dilakukan lebih baik dan lebih cepat ketika
mereka yang bertanggung jawab untuk melakukannya dengan benar terlatih. Dalam teori
ini terdengar bagus. Namun dalam kenyataannya perusahaan-perusahaan semakin kecil jarang
memiliki uang dalam anggaran operasional untuk menutupi biaya pelatihan.

Pelatihan yang berkaitan dengan pekerjaan baik untuk diri sendiri atau untuk karyawan Anda
adalah mahal dalam jangka pendek. Tetapi dalam jangka panjang tidak menawarkan Pelatihan sering
biaya lebih. Kabar baiknya adalah bahwa berkaitan dengan pekerjaan Pelatihan
tidak lagi berarti bepergian untuk seminar dan mahal
kursus. Berbagai alat pelatihan terjangkau tersedia
hari ini. Sebagian dari pelatihan ini adalah tersedia tanpa meninggalkan
meja.

Apakah itu belajar untuk menggunakan perangkat lunak yang Anda beli untuk
menjalankan bisnis Anda atau untuk tetap mengikuti hukum yang selalu berubah
meliputi segala sesuatu mulai dari pelecehan seksual ke tanah air keamanan Anda akan menemukan
biaya materi pelatihan yang efektif sesuai untuk Anda
situasi.

E-learning tools pelatihan berbasis komputer software tutorial
CD-ROMS audio dan video tape buku-buku dan pelatihan yang dipimpin instruktur
kursus pelatihan adalah beberapa alat.

E-learning melibatkan semua jenis materi pelatihan yang
disampaikan secara elektronik. Apakah disampaikan dalam format yang dapat dibaca
oleh sebuah komputer atau dikirimkan melalui Internet atau melalui satelit atau
melalui televisi interaktif e-learning adalah biaya-cara yang efektif untuk
kereta api.

Intranets perusahaan sedang digunakan untuk cd tutorial pelatihan pegawai lengkap
dengan pengujian dan kemajuan pelacakan. Metode ini memberikan kecil Pemilik bisnis
kendali penuh atas materi yang sedang diajarkan. Bahan Pelatihan
lakukan perlu dikembangkan dan dipelihara
tapi ini investasi awal waktu adalah sebanding dengan usaha.

Internet adalah sumber tak berujung materi pelatihan.
sederhana pencarian di topik yang dikehendaki Anda akan menghasilkan kelimpahan
materi pelatihan. Penelitian bahan ini dengan hati-hati dan
tahu persis apa yang Anda bayar.

Anda dan karyawan Anda bahkan dapat belajar saat perjalanan pulang-pergi ke dan dari
bekerja. Bayangkan muncul dalam sebuah kursus pelatihan kaset atau CD-ROM
dan belajar saat terjebak dalam kemacetan. Tentu saja karyawan Anda
mungkin ingin dibayar untuk waktu ini

Dan untuk setiap paket perangkat lunak baru untuk membantu Anda membeli
menjalankan bisnis menemukan panduan pelatihan yang cocok Cd Tutorial Photoshop dan memerlukan semua orang yang akan
Cd Tutorial Komputer dapat menggunakannya untuk belajar bagaimana benar menggunakan semua perangkat lunak
fitur. Itu termasuk Anda juga. Anda tidak akan pernah mendapatkan uang Anda senilai
keluar dari perangkat lunak Anda membeli jika Anda tidak belajar bagaimana
menggunakannya.

Sebagian besar perangkat lunak pada pasar termasuk on-line membantu on-line
demonstrasi tutorial atau beberapa alat belajar lainnya. Software pembuat
juga memiliki situs web di mana pengguna dapat pergi untuk belajar
lebih lanjut tentang produk. Sebagai paket perangkat lunak tumbuh di
popularitas demikian juga akan jumlah judul buku yang tersedia untuk
perangkat lunak tersebut.

Dan satu metode pengajaran yang belum keluar dari gaya
dipimpin instruktur pelatihan. Apakah terdaftar dalam kelas nyata
lingkungan atau ruang kelas virtual semua akan memperoleh manfaat dengan belajar
langsung dari seorang ahli.

Kenyataannya adalah hanya terlatih karyawan dan pemilik
bisnis dapat membantu Cd Tutorial Proactive bisnis Anda tumbuh. cd tutorial Kelas mulai sekarang jadi jangan
terlambat

[Via http://cdtutorialmurah.wordpress.com]

Jesaja Sport

Just over a week ago I shot a series of tshirts for a company called Jesaja Sport. It was an improvised product shoot since I don’t have access to a studio now, but the images turned out pretty much like I wanted them. The only thing that was a bit off was that one of the flashes gave up during the shoot and I had to rely on ambient lighting. I used the flash to lit up the background which was important that it was perfectly white for the client…
However I measured the white-balance and did everything I could at the shoot to get it as perfect as possible, and when I got home I spent about half an hour per image to get it as good as I could. With all the images it’s over 10 hours of work but for the sake of arguement I say 10 hours. The images was suppose to be used at Jesaja Sports webshop so they were commercial images. The client wanted all rights to the images, fine by me. The only problem is that the one running Jesaja Sport is an old classmate of mine. When I did the shooting and when I sent the samples the images was very good according to Andreas Lindh, the founder of Jesaja Sport, but when I had to state some price I got a bit of trouble. I checked what the images should be worth in a pricelist for professional photographers, then I asked for a 10% of that price and he thought that was a bit much, I know this guy and went down to 5% of the recommended price, which is a stretch I would normally never do. Then he started finding faults on the images, they were too bright on one side, they was blue and the light should be softer and so on and on… He called back a few days later and said that he could not pay 5% of the recommended price because I wasn’t good enough, basically…

So I thought about it for some hours and then I drew back everything, what bothers me the most is that asking a fraction of the price made the guy think I was ripping him off, and that there seems to be people that are doing this kind of job for a so small amount of money they can’t possible live on it… In a web-shop, like Jesaja Sport, the image is the only thing that are selling, it wouldn’t matter if you wrote a long essay about how good the product is the image is what attracts the customer… I told him this and he later used it against me, this images will apparently scare away the customers… I recommended him to go look for some studio that are specialized in product photography and not a landscape photographer next time, I’m still pissed off at Andreas Lindh and Jesaja Sport, it’s been a week, I was expecting an apologie or at least an angry email, but nothing, I though greed was one of the seven deadly sins… =)
These are the horrible images that are not good enough to sell for 5% of the recommended price… If you get some kind of eye infection from looking at them please let me know…

I will never have any more business with Jesaja Sport, at least I hope not…

Jesaja Sport T-Shirt - Front

Jesaja Sport T-Shirt - Backside

[Via http://enzeth.wordpress.com]

Thursday, December 3, 2009

Job 28

1 “There is a mine for silver
and a place where gold is refined.

2 Iron is taken from the earth,
and copper is smelted from ore.

3 Man puts an end to the darkness;
he searches the farthest recesses
for ore in the blackest darkness.

4 Far from where people dwell he cuts a shaft,
in places forgotten by the foot of man;
far from men he dangles and sways.

5 The earth, from which food comes,
is transformed below as by fire;

6 sapphires [a] come from its rocks,
and its dust contains nuggets of gold.

7 No bird of prey knows that hidden path,
no falcon’s eye has seen it.

8 Proud beasts do not set foot on it,
and no lion prowls there.

9 Man’s hand assaults the flinty rock
and lays bare the roots of the mountains.

10 He tunnels through the rock;
his eyes see all its treasures.

11 He searches [b] the sources of the rivers
and brings hidden things to light.

12 “But where can wisdom be found?
Where does understanding dwell?

13 Man does not comprehend its worth;
it cannot be found in the land of the living.

14 The deep says, ‘It is not in me’;
the sea says, ‘It is not with me.’

15 It cannot be bought with the finest gold,
nor can its price be weighed in silver.

16 It cannot be bought with the gold of Ophir,
with precious onyx or sapphires.

17 Neither gold nor crystal can compare with it,
nor can it be had for jewels of gold.

18 Coral and jasper are not worthy of mention;
the price of wisdom is beyond rubies.

19 The topaz of Cush cannot compare with it;
it cannot be bought with pure gold.

20 “Where then does wisdom come from?
Where does understanding dwell?

21 It is hidden from the eyes of every living thing,
concealed even from the birds of the air.

22 Destruction [c] and Death say,
‘Only a rumor of it has reached our ears.’

23 God understands the way to it
and he alone knows where it dwells,

24 for he views the ends of the earth
and sees everything under the heavens.

25 When he established the force of the wind
and measured out the waters,

26 when he made a decree for the rain
and a path for the thunderstorm,

27 then he looked at wisdom and appraised it;
he confirmed it and tested it.

28 And he said to man,
‘The fear of the Lord—that is wisdom,
and to shun evil is understanding.’ “

[Via http://gypr.wordpress.com]

Enhancing Job Titles

http://positivesharing.com/wp-content/uploads/2007/12/businesscard.jpgThis sort of thing drives me mad. To give you a brief description of what I mean, I’m talking about the practice of society in which we declare “They’re not a mailman, they’re a postal worker!“

Instead of picking nits upon each refinement like this, I’ve decided to come up with a few American job name changes of my own. Enjoy.
Current Job                    New Title
Garbageman………………..Debris Extraction Specialist
Dogcatcher………………….Canine Relocation Engineer
Secretary…………………….Information and Data Administrator
Fast Food Worker………….National Economy Stabilization Agent
Forums Moderator………..Archivist
Blog Writer…………………Scribner
Tier 1 Tech Support………Soon to be Outsourced
Chief Executive Officer…..Bankrupt
Pony Express Rider……….Deceased
FBI Director……………….FBI Director
President…………………..Carrier of Country’s Every Hope and Dream

I amuse myself sometimes.
Let Enhancing Job Titles Die

Photo Credits: Here

[Via http://thingsthatneedtodie.wordpress.com]

Tuesday, December 1, 2009

My new boyfriend, (it delivers excellence).

Today, I finally joined you.
We have met at last.
I am amazed with your profile.
I didn’t expect that you’re so much better. Way way way better.
I know I’ll have a brighter future with you.
I’ll just enjoy everything now.
Wish myself luck and success while being in your hands.
I am happy and ecstatic.
I am motivated to give my 100% effort in order for you to appraise me with a good performance.
I know I’ll have a lot to learn from you.
I’ll see you again tomorrow.

Before I go, I am going to introduce you to my new boyfriend. (Boyfriend, because work is as demanding as the real boyfriend). I posted his face here for you to be more familiarized since at first, even I don’t know much about it:

NorthgateArinso is a leading global Human Resources software and services provider offering innovative HR business solutions to employers of all sizes, including Global Fortune™ 500 companies and many public sector organisations. BRITISH HUMAN RESOURCE solutions company, NorthgateArinso is adding at least 200 employees within the year, as it prepares to expand its operations in the country. The Philippines houses NorthgateArinso’s global delivery center and Asia-Pacific headquarters.NorthgateArinso has recognized the Filipino talent in the HR BPO sector, launching this expertise in the international business arena.

NorthgateArinso. Delivering HR excellence.

[Via http://carlajill.wordpress.com]

What is success?

Okay, before you get all bummed out over this week’s Dustinland, let me just say that I’m not in the midst of some deep depression or anything. This is just something I think about sometimes. You know, usually I try (try being the key word here) to make my comics funny, but once in a while I like to touch on something more serious. I know the depressing stuff is not quite as “entertaining,” but hopefully it touches on something you can relate to.

In terms of this week’s comic, I think what I’m really getting at here is that while it’s very hard to define success, there is some sort of notion we all have of an average life and an extraordinary one, and nobody wants to wind up in that first category. Of course what is considered average in a country like the US would be a fantastic life to a majority of people around the world, or throughout the history of mankind, at least in terms of financial security and quality of life. But somehow that doesn’t necessarily translate to happiness because it’s all relative to what you know, blah blah etc… let’s not get into that boring discussion. Boy this topic really leads to rambling.

I guess I’m not really sure what I’m trying to say here. Maybe I already said it as simply as I could and too many words just complicates it. Maybe it’s just that we all want to be somebody, and the older you get, the more you realize how hard that can be, and how little time you have to do it.

[Via http://dustinland.wordpress.com]