|
RyanDev wrote: Food left out in the break room would often be considered public domain, at least in the US. In the UK it might be considered public demesne, but that's because we speak English.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
RyanDev wrote: would often be considered public domain That's one hell of a way to justify taking other people's stuff.
Does everyone "know" that it's limited to food? How do you know?
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Really? Have you never worked in an office? People bring in cakes, cookies, vegetables from the garden, etc, and leave it out in the break room for everyone. It's been very common everywhere I have worked.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
RyanDev wrote: People bring in cakes, cookies, vegetables from the garden, etc, and leave it out in the break room for everyone. It's been very common everywhere I have worked. That's common here too. The difference being that no-one will touch it without express permission.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Quote: The difference being that no-one will touch it without express permission. Well, you're just not very friendly then.
If it's in the fridge, it's off limits. But if it is sitting on the table, it's in public domain.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
But that is a bogus claim. Food stored in the break-room belongs to the owner not to the scavenger in every State I have worked. The truly sad part is that no matter how nice the company or big or professional, human nature always reveals itself.
|
|
|
|
|
I agree. In our office it's there for anyone unless it has a name written on it.
|
|
|
|
|
Try putting some loud buzzer, a luggage alarm perhaps, inside the jar and have it connected to the cover.
When somebody will open it... (I leave it to your imagination)
Simple and no harm done. 
|
|
|
|
|
Check Sue-de-Nime's cubicle he just bragged about nicking a can.
|
|
|
|
|
Why not just label your jar with your name? Did your coworkers know it was your personal jar of coffee?
/ravi
|
|
|
|
|
They knew it was somebody's personal jar of coffee, because as I explained, the company only provides one, cheap brand of coffee, and it is contained in well known containers.
|
|
|
|
|
Let me know if you decide to go ahead with the Datura approach. I can harvest it by the ton near here and ship you the seeds.
Will Rogers never met me.
|
|
|
|
|
I can also get it by the ton, in the veld just across the road. Every now and again I swallow a few seeds.
|
|
|
|
|
Brady Kelly wrote: I will fill an empty Jacobs jar with cheap coffee and loads of strong purple,
pink, or green dye. The thief will have to explain to their boss when they ask
to go home, or remain at work with a brightly coloured face, with everyone
having being emailed as to why.
Sounds funny but probably not a good idea. They might be allergic to the dye. And your employer might not care for the humor. And in neither case do you want it traceable to you.
|
|
|
|
|
Argg! Argg! And thrice Argg!
I have an expression evaluator; see me articles if you care. I am adding in function support so you can define a function [as an expression or an external class] that will can then be used in further expressions. Examples of built in functions are trig - sin, cos, tan and pi - and a simple null function to return null .
Simples, simples, simples or so it bloody should be. I have now hit a problem that to create the function library, you need to be able to parse expressions and to parse expressions you need the functions.
So I decided there should be a single point to start construction. Now, does the expression use the function or the function the expression? I am going in stupid circles here, so for now I have taken the decision to go to the pub.
speramus in juniperus
|
|
|
|
|
Backup first - then go to the pub.
That way, tomorrow it is easy to throw away the drunken garbage you thought was good code at the time...
The only instant messaging I do involves my middle finger.
|
|
|
|
|
Unless you are doing this for fun, it strikes me Java isn't you best place to start and these types of things generally sail close to the "Inner-Platform effect" anti-pattern (at least where I've been involved), albeit one that replicates another platform rather than Java itself in this case.
I'm just gonna leave this here[^]
Nagy Vilmos wrote: I have taken the decision to go to the pub
Good call. I wish I could make the same one.
|
|
|
|
|
I'm using it, mostly, for quite simple stuff that needs to be parametrised and is driven from configuration. When I get my finger out, I'll write some more articles explaining more how and why.
For the time being, I've decided that the expressions will be built from the functions and so my load order is decided. Thank you goes to my muse[^].
speramus in juniperus
|
|
|
|
|
I was in a team helping crack a similar problem (actually, defining mortgage acceptability criteria for multiple mortgage types) a few years back.
The idea we were close to implementing an XML-based language was was always at the back of our minds. Greenspun's tenth rule was discussed as well, we considered writing it all in LISP (or f# if it got out of beta quickly enough) but the accepted wisdom was we'd never get it past the IT manager.
If it is any help, my inspiration normally comes here[^].
|
|
|
|
|
This is a fun project. Even though I am using it in several bits of work I'm doing, the idea is a flexible framework. The evaluator is used mostly in the server but going forward I will be using it to provide customisable functionality to the user as well.
As an example, to set the colour of a row depending on if it has a positive or negative amount, something like:
background = (balance < 0) ? "#FF0000" : ((balance > 0) ? "#0000FF" : "#00FF00"))
Simples!
The functions provide parametrised evaluations, so the above could use a function like:
background = [colorByValue balance "#FF0000" "#0000FF" "#00FF00"]
#Function:
colorByValue {
description - return the colour depending on if the value is negative, positive or zero
arguments - value negative positive zero
expression - (value < 0) ? negative : ((value > 0) ? positive : zero))
}
Added onto that, it allows for functions to be defined that don't use expressions but call out to standard java classes added into the function library. Hence I've plugged in maths support for sine, cosine, tangents and pi as well as a few other bobs and bits. Loops are next
speramus in juniperus
|
|
|
|
|
Nagy Vilmos wrote: I have taken the decision to go to the pub
Correct decision. Order some GIN and get back to the project..
The signature is in building process.. Please wait...
|
|
|
|
|
I come to work by train and then bus. The bus is linked to the train. It costs R6 one way if used within an hour of getting off the train, and R20 one way otherwise. So, a trip to the pub would cost just less than two pints, and the buses only run every forty minutes off-peak, so my half hour lunch time would be one and a half hours.

|
|
|
|
|
The pub is only a five minute walk. But lunch can still extend to two hours.
speramus in juniperus
|
|
|
|
|
Google says the nearest pub is a fifteen minute walk. That's two pints if I stretch lunch to an hour. 
|
|
|
|
|
Oi! No programming questions in the Lounge!
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|