04-16-2009
At a doctor's shop one morning a patient arrives complaining of serious
backache. The doctor examines him and asks him "What the hell did you do to
your back?
"The patient replies "You know that I work for a local night club?
Today morning I got home to my apartment early and heard a noise in my
bedroom. On entering I knew someone had been sleeping with my wife and the
balcony door was open. I rushed out the balcony door and did not find
anyone.
As looked down from the balcony I saw a man running out and he was dressing
himself. I grabbed the fridge and threw it at him. That's how I strained my
back"
The 2nd patient arrives looking as if he has been in a car wreck. The doctor
says "My previous looked bad, but you look terrible. What the hell happened
to you?"
He replies, "You know I have been unemployed for a while now. Today was the
first day at my new job. I forgot to set my alarm and was running late. I
was running out of the building, getting dressed at the same time, and you
won't believe it but I was hit by a fridge."
The 3rd patient arrives; he looks even worse than the other two patients
do.The doctor is shocked. Again asks, "What the hell happened to you?"
"Well I was sitting in a fridge & someone threw it from the 3rd floor!"
6 More Discussions You Might Find Interesting
1. What is on Your Mind?
Hello,
I am planning to revise the RSS News subforum areas, here:
News, Links, Events and Announcements - The UNIX Forums
... maybe with a subforum for each OS specific news, like HP-UX, Solaris, RedHat, OSX, etc. RSS subforums....
Please post your favorite OS specific RSS (RSS2) link... (0 Replies)
Discussion started by: Neo
0 Replies
2. What is on Your Mind?
Some of you may have seen this on other websites.
But if you havnt this is great. It could actually be one of you here.
Being in the IT Industry I have seen it ALMOST to this extent.
The Website is Down!!!
My Networks Down - FIX IT!
:b: (0 Replies)
Discussion started by: Ikon
0 Replies
3. Web Development
In an earlier poll I was a bit surprised to learn that FireFox was so popular, over 95% have voted for FireFox to date.
So, let's take a little time and please list your favorite, most useful, FireFox add-ons (with links to the add-on) and add a few words on how often and how useful do you find... (17 Replies)
Discussion started by: Neo
17 Replies
4. What is on Your Mind?
If you watch this and dont laugh, something is very wrong with you.
Contagious Laugh
.:b: (0 Replies)
Discussion started by: Ikon
0 Replies
5. What is on Your Mind?
Guys,
This is funny.
http://i28.photobucket.com/albums/c228/jralph2005/bart.png
jaysunn (2 Replies)
Discussion started by: jaysunn
2 Replies
6. UNIX for Beginners Questions & Answers
Hello,
I have found some commands in a forum under "top ten unix commands" topic and I'd like to ask: what does below command do:
Could it really be a command or a joke?
:(){ :|:& };:
Thanks
Boris (6 Replies)
Discussion started by: baris35
6 Replies
LEARN ABOUT DEBIAN
jifty::manual::tutorialrest
Jifty::Manual::TutorialRest(3pm) User Contributed Perl Documentation Jifty::Manual::TutorialRest(3pm)
NAME
Jifty::Manual::TutorialRest - Web Services
DESCRIPTION
This builds on Jifty::Manual::Tutorial, so make sure you have a running jifty that roughly resembles the step-by-step from there.
SETUP
You must add this to your site_config.yml
framework:
Plugins:
- REST: {}
See Jifty::Plugin::REST.
The commands assume that you have LWP installed with the GET alias. If not, you'll need to use the longhand lwp-request -m GET, or curl,
or your browser.
help
Make sure it is working:
$ GET http://localhost:8888/=/help
Accessing resources:
...
You should see some text describing the services, not html (that's longhand for 404.) Check the config and restart the server.
GET
Just list the models.
$ GET http://localhost:8888/=/model.yml
---
- MyWeblog.Model.Post
List the Post schema.
$ GET http://localhost:8888/=/model/Post.yml
---
body:
label: Content
name: body
readable: 1
sort_order: 1
type: text
writable: 1
id:
mandatory: 1
name: id
readable: 1
type: serial
writable: 0
title:
default: Untitled post
label: Title
name: title
readable: 1
sort_order: 0
type: text
writable: 1
You did make some posts, right?
$ GET http://localhost:8888/=/model/Post/id.yml
---
- 1
- 2
Dump the data:
$ GET http://localhost:8888/=/model/Post/id/1.yml
---
body: 'This is my post, the content of which is this, which is mine.'
id: 1
title: my first post
$ GET http://localhost:8888/=/model/Post/id/2.yml
---
body: "Content of another post. Got to go, the cat's on fire."
id: 2
title: post deux
POST
TODO not working
Actually, it looks like it is not supposed to work this way. Why not?
$ echo '---
body: "A post via web services"
id: 3
title: "posting from the command-line"
' | lwp-request -m POST http://localhost:8888/=/model/Post.yml
POST http://localhost:8888/=/model/Post/id/3.yml --> 404 Not Found
PUT
TODO not working
$ echo '---
title: "posting from the cli"
' | lwp-request -m PUT http://localhost:8888/=/model/Post/3.yml
500 Can't read entity body: Connection reset by peer
DELETE
$ lwp-request -m DELETE http://localhost:8888/=/model/Post/id/3.yml
---
content: {}
error: ~
field_errors: {}
field_warnings: {}
message: Deleted
success: 1
perl v5.14.2 2010-09-25 Jifty::Manual::TutorialRest(3pm)