If you're new here, you may want to subscribe to my RSS feed. So that you can read the latest updates about Web2.0 tools, Making Money Online, Tips in SEO, Ajax and many more. Thanks for visiting ProgramimiCOM!
Strange But True Facts (Part 1)
Strange But True Facts (Part 2)
Strange But True Facts (Part 1)
Strange But True Facts (Part 2)
Strange But True Facts (Part 3)
Strange But True Facts (Part 5) — Coming Soon
Strange But True Facts (Part 1)
Strange But True Facts (Part 2)
Strange But True Facts (Part 4) — Coming Soon
Strange But True Facts (Part 5) — Coming Soon
Strange But True Facts (Part 1)
Strange But True Facts (Part 3) — Coming Soon
Strange But True Facts (Part 4) — Coming Soon
Strange But True Facts (Part 5) — Coming Soon
• A fine of $25 can be levied for flirting. This old law specifically prohibits men from turning around on any city street and looking “at a woman in that way.” A second conviction for a crime of this magnitude calls for the violating male to be forced to wear a “pair of horse-blinders” wherever and whenever he goes outside for a stroll.
• A license must be purchased before hanging clothes on a clothesline.
• A person may not walk around on Sundays with an ice cream cone in his/her pocket.
• Before the enactment of the 1978 law that made it mandatory for dog owners in New York City to clean up after their pets, approximately 40 million pounds of dog excrement were deposited on the streets every year.
• Citizens may not greet each other by “putting one’s thumb to the nose and wiggling the fingers”.
• Donkeys are not allowed to sleep in bathtubs in Brooklyn, N.Y.
• In Carmel, N.Y., a man can’t go outside while wearing a jacket and pants that do not match.
• In Greene, New York, During a concert, it is illegal to eat peanuts and walk backwards on the sidewalks.
• In New York, you can teach your pet parrot to speak, but not to squawk.
• In New York City you need a permit to transport carbonated beverages.
• In New York City it is illegal for a man to give ‘The Standard Lear’ to a woman. Violators are forced to wear horse blinders.
• In New York City, it’s illegal to throw swill into the street.
• In New York City it’s illegal to shake a dust mop out a window.
• In New York State it is still illegal to shoot a rabbit from a moving trolley car.
• In Ocean City, New York It is illegal to eat in the street in residential neighborhoods, and the only beverage you can drink on the beach is water in a clear plastic bottle.
• In Ocean City New York, It is illegal for men to go topless in the center of town.
• In Staten Island, New York, It is illegal for a father to call his son a “faggot” or “queer” in an effort to curb “girlie behavior.”
• In Staten Island, New York, You may only water your lawn if the hose is held in your hand.
• In Tonawanda, New York homeless people may not start a fire in the park unless they intend to cook food.
• It is against the law to throw a ball at someone’s head for fun.
• It is illegal for a woman to be on the street wearing “body hugging clothing.”
• It is illegal to jump off the Empire State building.
• It’s illegal in New York to start any kind of public performance, show, play, game or what have you, until after 1:05 p.m.
• Jaywalking is legal, as long as it’s not diagonal. That is, you can cross the street out of the crosswalk, but you can’t cross a street diagonally.
• Members of nine New York Indian tribes are exempt from the city’s eight percent parking tax.
• New York and a handful of other states require that toilets be evenly divided among men and women in public theaters or arenas.
• You may not smoke within 100 feet of the entrance to a public building.
• Women may go topless in public, providing it is not being used as a business.
• New York City may be the theater capital of the country, but it’s illegal to have a puppet show in your window and a violation can land you in the snoozer for 30 days.
• New Yorkers cannot dissolve a marriage for irreconcilable differences, unless they both agree to it.
• Ocean City: It is illegal to eat in the street in residential neighborhoods, and the only beverage you can drink on the beach is water in a clear plastic bottle.
• Slippers are not to be worn after 10:00 P.M.
• Staten Island: You may only water your lawn if the hose is held in your hand.
• The New York City Transit Authority has ruled that women can ride the city subways topless. New York law dictates that if a man can be somewhere without a shirt, a woman gets the same right. The decision came after arrests of women testing the ordinance on the subways. A transit police spokesman said they would comply with the new rule, but “if they were violating any other rules, like sitting on a subway bench topless smoking a cigarette, then we would take action.” Smoking is not allowed in the subways.
• The New York State Senate passed a resolution to commemorate the 25th anniversary of the Brooklyn Dodgers’ 1955 world championship and expressed a longing that someday the Dodgers will return to “their one and only true home.”
• The penalty for jumping off a building is death.
• To cut down on its once-horrific graffiti problem, New York City several years ago made it illegal to carry an open can of spray paint.
• While riding in an elevator, one must talk to no one, and fold his hands while looking toward the door.
Peter B. was an out-of-work PHP developer looking for contract work in early 2005. A recruiter he’d worked with in the past emailed him some information regarding a possible position. Reading the job description, Peter thought he’d be a good fit, so he submitted his resume and got a response via email a few days later.
The hiring manager described their typical process; Peter would have to answer a screening question to determine his skill level, and if his answer was satisfactory, they’d schedule a face-to-face interview. With a little trepidation, Peter said he was ready for the question. He was concerned that it could be about a complex topic that he wasn’t very familiar with. A few hours later, an email arrived with the subject “SCREENING QUESTION,” flagged with high importance.
His mouse hovering over the email, he expected to open it and have to answer “on a PB349 microprocessor, if memory address 0xa9f00c contains a MOV instruction to memory address 0×8ad9da, what is the magnetic force dispensed by a 64KB memory module for the next 600 instructions? You have thirty seconds.”
Peter took a deep breath and clicked on the email. Here is the exact question he was asked: “Describe what concatenation is, how it applies to PHP, and how you’ve used it in the past.”
Peter was surprised. It was a question that anyone with any basic exposure to any modern programming language could answer. It would’ve been harder to describe what multiplication was and how he’d used it in the past.
Still, he wanted to show that he understood the concept, so he played along. He typed up a detailed response.
Concatenation is the process to sequentially join multiple pieces of data, usually literal strings with non-string-literal data (most commonly, variables or other literals). The concatenation operator varies from language to language. Javascript, for example, overloads the plus-sign (+) as it is both the concatenation operator as well as the arithmetic addition operator. PHP uses the period (.) as the concatenation operator.
String concatenation is often used in PHP to build a string of HTML for output to the client (browser). This is common in prodecural-based PHP code. However, I should note that oftentimes, that using concatenation for HTML generation is inefficient or can be better served by some other design pattern - particulary if the developer is using concatention during an echo operation (in this case, comma-separating the tokens is faster).
Another common use for string concatenation is the generation of dynamic SQL queries. For example, if I had a CMS that was to pull all articles written by a certain user, the code might look something like this
<?php
$sql = “SELECT article_id, article_body FROM Articles WHERE author_id = ” . $User->getID() . ” ORDER BY article_date DESC”;
?>As you can see, the above code combines three tokens to generate a complete SQL query.
- A SQL fragment
- The user’s ID as pulled from a custom User object
- A SQL fragment
SQL queries are rarely generated without some sort of dynamic data to alter their structure, so this is a very common task that I’ve used in just about every web application I’ve written. Some other simple examples include cookie generation, error message generation, email headers, and dynamic URL construction.
I hope this sufficiently explains concatenation in general, how it relates to PHP, and my experience with using this basic operator.
Peter sent the email and got a phone call a few days later.
Peter: Hello?
Lisa: Hi, Peter? This is Lisa from Concatcorp.
Peter: Oh, hi! Good to hear from you! I hope you have news about the job.
Lisa: Well, yes, but…
Peter: Yes?
Lisa: We’re going to offer the position to another candidate.
Peter: I see… may I ask why? I thought I did a pretty thorough job answering the screening question…
Lisa: Well, that’s just it. The problem is that they think your answer was too good. They think you plagiarized it. I’m sorry.
It was then that Peter realized he was probably better off without that job.
20 Aug
Posted by ProCOM
on August 20, 2007 – 8:30 pm - 695 views
This represents, to my opinion the “Web 2.0 Concept”. As always; “A photo is worth a million words”.
I’ve downloaded this photo some months ago, for the funny & laughs section, but I think it is more appropriate to represent the “Web 2.0 Concept”. I don’t know who’s that car is,so I can’t credit a single person for the photo. It was an anonymous posting somewhere.
Comments are welcome!