Paul M. Jones

Don't listen to the crowd, they say "jump."

The Longer I Followed The Food Pyramid, The More I Took On Its Shape

Fat Head is a highly entertaining and informative (albeit zero-budget) documentary by a guy named Tom Naughton, who decided to try Spurlock’s experiment for himself. Naughton ate nothing but fast food for 30 days, but with two important caveats:

1. He didn’t eat whatever the clerk suggested, as Spurlock did. In other words, no super-sizing if he didn’t want to.

2. He kept his carbs to under 100 grams a day and his calories to under 2,000, using publicly available nutritional information about all the national fast-food chains.

Why these two important differences? As Naughton puts it, “Because I have a functioning brain.”

via Fat Head: the movie Michael Bloomberg doesn’t want you to see | The Daily Caller.


PHP-FIG: PSR 1 and 2 Accepted

Earlier today, the PHP Framework Interoperability Group accepted two standards recommendations:

  • PSR-1, “Basic Coding Standard”, passed with 17 in favor and none against.

  • PSR-2, “Coding Style Guide”, passed with 13 in favor and 4 against, 1 abstaining.

There’s been a lot of commentary about these proposals over the past two weeks, some of it positive and some of it negative. Here’s a taste:

I’d like to address some of the negative commentary here; I don’t expect to change many minds, but I do want to make sure the comments are answered.

(Full disclosure: I’m a voting member in the group, and have been since its beginning. I did not introduce the original measure that led to PSR-1 and PSR-2; that honor belongs to Klaus Silveira, a non-voting member. However, I did shepherd the PSR-1 and PSR-2 recommendations through the voting process to their acceptance by the group.)

Regarding The Group

Q: What the hell is the “PHP Standards” group? I’ve never heard of it before now.

The name isn’t “PHP Standards” any more; it’s the “Framework Interoperability Group” (FIG). We did start off as “PHP Standards” because, well, we all worked in PHP, but realized pretty quickly that the name was too broad, and renamed it the “Framework Interoperability Group.” (That name turns out to be too narrow, as the group now has representatives from library and CMS projects as well.)

The idea behind the group is for project representatives to talk about the commonalities between our projects and find ways we can work together. Our main audience is each other, but we’re very aware that the rest of the PHP community is watching. If other folks want to adopt what we’re doing, that’s cool, but it’s not what we’re focused on.

Q: Then why is the mailing list called “PHP Standards” instead of “FIG Whatever” ?

The Google Groups mailing list does still bear the original name of “PHP Standards.” It’s a legacy issue. To reduce continued misconception, we need to change that to the reflect the new name, but I don’t know when that will happen. (The Github repository for the group does use the new name.)

Q: Why are you guys so secretive and closed?

Just because you haven’t heard of the list, doesn’t mean we’re keeping it a secret. There’s a lot of discussion groups out there. ;-)

We did start out with a closed list years ago, but we opened it up pretty quickly thereafter. Anyone can join in and make their voice heard.

There’s nothing “closed” about the list or the decision-making process. Anyone who wants to drive the group to open even further is free to join the list and make suggestions for doing so. (I’m looking at you Anthony Ferrara. ;-)

Q: So once I join the list, I can vote on PHP-FIG Standards Recommendations? Sweet!

Sorry, no. The only people who can vote on a measure are the voting members. But anyone can discuss the measures on the list.

Voting is reserved for people who represent a member project. If you want to vote, then participate on the list for a while, and submit your project for membership. If enough other existing members vote in favor of your request, then you’re in and can vote on measures thereafter.

Q: I knew it. You’re a bunch of self-appointed elitist jerks.

“Self-appointed” is probably accurate; “elitist jerks” we can discuss. ;-)

Regardless, the group is currently composed of representatives who have volunteered from the following projects:

  • Agavi
  • CakePHP, CakePHP 2
  • Chisimba, C4
  • Composer, Packagist
  • Doctrine, Doctrine2, et al.
  • Drupal
  • eZ Publish
  • FLOW3
  • Joomla
  • Lithium
  • PEAR, PEAR2
  • phpBB
  • PPI, PPI2
  • Propel, Propel 2
  • SabreDAV
  • Solar Framework, Aura Project
  • Symfony, Symfony2
  • Zend Framework, Zend Framework 2
  • Zikula

Some of these projects are large, and some are small (for various definitions of “large” and “small”). They’re all very different from each other in lots of ways, and have very different ideas on how to approach various problems.

Q: Whatever. I don’t need you guys telling me what to do. If I don’t want to follow your so-called “standards” then you can’t make me.

We’re not trying to make anyone do anything. Hell, not even all of the member projects subscribe to all of the standards recommendations. What we’re trying to do is find commonalities between the projects so that we (the members) can all eventually share similar practices and techniques.

Regarding PSR-1 and PSR-2

Q: Who the hell are you to define a “standard” for coding style?

It bears repeating: the primary audience for the recommendations is the group itself. If others in the wider PHP community want to adopt the recommendations, I think that’s a positive outcome, but it’s certainly not mandatory in any way.

Q: Coding style is all personal preferences. How can you make a “standard” out of them?

On one hand, you’re right: a style guide is a collection of preferences. On the other hand, it’s not exactly personal when a lot of different projects run by a lot of different people indpendently arrive at a similar set of rules.

Q: How did you come up with this stupid “standard” ?

Somebody on the list mentioned that it would be nice to have a single style guide for member projects, code in different projects would look similar. He included an initial set of guidelines. Several of the voting members agreed that it was a good idea, and we expanded on that initial set of rules.

After some back-and-forth, someone else brought up the idea of doing a survey among the member projects, to see exactly how many projects are following which points of style. We ended up with 22 projects in the survey. The results made it pretty clear what the majority of projects were using for their standards.

Q: Only 22 projects, out of the whole world of PHP code? That’s not a valid sample size!

Recall that our primary audience is the group itself. If you have the time, energy, and inclination to do a survey of defined coding styles across the entire PHP community and analyze the results using a statistically valid methodology, I will be very interested to see your report on it.

Q: Where’s this survey at? I bet you’re hiding it so nobody can see the results.

Here is the original Google spreadsheet. It is also incorporated into the PSR-2 document as an appendix.

Q: Oh my God, you’re saying we MUST use spaces and not tabs? But I hate spaces!

If the majority of surveyed projects had used tabs, the recommendation would have been to use tabs. A super-majority (two to one!) use spaces, so that’s the recommendation.

Neither tabs nor spaces has any moral superiority over the other. If you hate spaces so much that you simply cannot adjust to them, that’s fine. Your project won’t adhere to PSR-2, but then, nobody says you have to.

Q: Why can’t the rule be “use either tabs or spaces, as long as you’re consistent within a project?”

The focus of these recommendations is not “indivudal projects by themselves.” The focus is on “working with/on lots of different projects.” If one project wants to use tabs, cool; if another wants to use spaces, fine; but if you end up working on both, you want the rules to be the same for each one. Thus, we have to pick something to apply identically across lots of projects at the same time.

Q: The standard is inconsistent: braces in one place sometimes, and in another place at other times. Dumb!

I’ll refer you back to the survey; the brace rules are what the majority of member projects have already picked for themselves. (A minority of projects consistently put braces on the same line, and a different minority consistently put braces on the next line, but there was no majority that consistently put them in the same place.)

Q: Wait, you mean the rules are defined by a survey, and there’s no design involved at all? Brain-dead!

The “design” portion happened in the individual member projects. The survey identified common elements of design across those projects. The follow-up discussions refined the broad commonalities, and the proposal codified them.

Q: There are lots of other standards out there. Why not just pick one of those?

In a way, we did, although in a very roundabout way. The survey revealed that the majority of member projects are already adhering to a large subset of the PEAR standard (itself the oldest existing common standard in PHP land.)

Conclusion

If you have other questions or comments, please leave them below. I know this kind of topic inflames passion, so please, follow the example of the FIG members: be civil and constructive. I reserve the right to police comments according to my own whims. ;-)



Continuing the March to Fascism: Congressmen Seek To Lift Propaganda Ban

An amendment that would legalize the use of propaganda on American audiences is being inserted into the latest defense authorization bill, BuzzFeed has learned.

The amendment would “strike the current ban on domestic dissemination” of propaganda material produced by the State Department and the Pentagon, according to the summary of the law at the House Rules Committee's official website.

The tweak to the bill would essentially neutralize two previous acts--the Smith-Mundt Act of 1948 and Foreign Relations Authorization Act in 1987--that had been passed to protect U.S. audiences from our own government’s misinformation campaigns.

via Congressmen Seek To Lift Propaganda Ban.


Under Asset Forfeiture Law, Wisconsin Cops Confiscate Families' Bail Money

When the Brown County, Wis., Drug Task Force arrested her son Joel last February, Beverly Greer started piecing together his bail.

She used part of her disability payment and her tax return. Joel Greer's wife also chipped in, as did his brother and two sisters. On Feb. 29, a judge set Greer's bail at $7,500, and his mother called the Brown County jail to see where and how she could get him out. "The police specifically told us to bring cash," Greer says. "Not a cashier's check or a credit card. They said cash."

So Greer and her family visited a series of ATMs, and on March 1, she brought the money to the jail, thinking she'd be taking Joel Greer home. But she left without her money, or her son.

Instead jail officials called in the same Drug Task Force that arrested Greer. A drug-sniffing dog inspected the Greers' cash, and about a half-hour later, Beverly Greer said, a police officer told her the dog had alerted to the presence of narcotics on the bills -- and that the police department would be confiscating the bail money.

"I told them the money had just come from the bank," Beverly Greer says. "We had just taken it out. If the money had drugs on it, then they should go seize all the money at the bank, too. I just don't understand how they could do that."

via Under Asset Forfeiture Law, Wisconsin Cops Confiscate Families' Bail Money.


Open Office Plans: Bad For Privacy and Meaningful Conversation

The original rationale for the open-plan office, aside from saving space and money, was to foster communication among workers, the better to coax them to collaborate and innovate. But it turned out that too much communication sometimes had the opposite effect: a loss of privacy, plus the urgent desire to throttle one’s neighbor.

“Many studies show that people have shorter and more superficial conversations in open offices because they’re self-conscious about being overheard,” said Anne-Laure Fayard, a professor of management at the Polytechnic Institute of New York University who has studied open offices. “Everyone is still experimenting with ways to balance the need for collaboration and the need for privacy.”

Take Mr. Udeshi’s office, at the N.Y.U.-Poly business incubator, a SoHo loft with dozens of start-up companies housed in low cubicles. The entrepreneurs there say they sometimes get useful ideas from overheard conversations but also find themselves retreating to a bathroom or a broom closet for private chats. When they have to discuss a delicate matter with someone sitting next to them, they often use e-mail or instant messaging.

“You talk to more people in an open office, but I think you have fewer meaningful conversations,” said Jonathan McClelland, an energy consultant working in the loft. “You end up getting interrupted a lot by people’s random thoughts.”

via From Cubicles, Cry for Quiet Pierces Office Buzz - NYTimes.com.


Invisible Bank Runs

We have entered the age of the invisible bank run and are waiting for the first virtual panic.

An invisible bank run is a hard thing to watch; not only is it less telegenic than the old-fashioned kind, one relies on numbers from official government agencies for statistics. How much money left the banking system today? How many banks need emergency liquidity to meet the tide of withdrawals? In the old days, reporters could and did watch lines form outside the banks and watch the armored trucks arrive with cash. These days it is happening anonymously and you only know what they tell you.

They are very unlikely to tell you the truth. Officials lie like rats in times of financial panic; they do it out of a sense of duty. They will insist that a given country will never leave the euro until the moment that it does; they will say that a deposit freeze is unthinkable until they announce that they’ve done it; they will tell you a bank is rock solid until the moment they padlock its doors. This is all for your own good, of course. They don’t want you to panic -- and they want to make sure that your money is trapped when they take it away or turn it from gold into straw.

Emphasis mine. Via Ratcheting Up The Crisis In Europe | Via Meadia.


Gay Marriage, Like All Marriage, Not Worth Celebrating - Reason.com

The idea that the state should promote, sanction, and regulate monogamous relationships gained currency in the 16th century as a reaction to Europe’s first sexual revolution. Public, group, and what we now call homosexual sex were commonplace, prostitution was rampant and generally unpunished, pornographic books and pamphlets were widely popular, and laws against adultery and divorce went unenforced. Martin Luther and other leaders of the Protestant Reformation seized upon marriage as a means though which to curb unchristian freedoms and bring about social order. 

...

On this side of the Atlantic, shortly after the ratification of the Constitution, the newly-formed states, acting in their own professed self-interest, enacted laws that made it more difficult to end marriages. Typical was the view of Georgia state legislators, who in 1802 responded to their inability to stop the “dissolution of contracts founded on the most binding and sacred obligations” by drafting a law regulating divorce. According to the lawmakers, the “dissolution [of a marriage] ought not to be dependent on private will, but should require legislative interference; inasmuch as the republic is deeply interested in the private business of its citizens.”

Other state governments followed that lead. By the end of the 19th century it was nearly impossible in all the states to dissolve a marriage unless one upheld what one historian has called “ideal spousal behavior” and one’s spouse was adulterous, sexually dysfunctional, or chronically absent. No longer could an unhappy wife or husband simply walk away from a marriage.

...

Dissolving a marriage became slightly less onerous in the 20th century, thanks largely to the aforementioned counter-cultural left, but the institution’s state-sanctioned moral apparatus continued to keep most of us from pursuing our individual desires. As of the most recent count [pdf], 48 percent of married couples are willing to pay lawyers bundles of cash to disentangle from relationships they no longer see as serving their interests. Even today, we pay dearly for that option, not just in legal fees but also from the stigma of having “failed” at what all good Americans are expected to do.

So let us say to our gay brothers and sisters fighting for the “freedom to marry,” who once led the fight for freedom from marriage: be careful what you wish for--you’ll probably get it.

via Gay Marriage, Like All Marriage, Not Worth Celebrating - Reason.com.


This Is Not How A Free Society Treats People

This is where Eduardo Saverin comes in. The Facebook co-founder, who finds himself a few billion dollars richer this week, recently renounced his US citizenship. And, to the intelligentsia, it’s not ‘fair’.

‘Saverin needs to pay his fair share! He owes America more,’ they whine, completely ignorant that the 30-year old is already forking over a $500+ million exit tax which may end up in the billions.

Apparently it’s not good enough that the company Saverin co-founded has created tens of thousands of jobs, spawned entire industries, and produced oodles of new millionaires. Oh yeah, it’s also made things damn easy for the CIA, NSA, and FBI. You’d think Uncle Sam would pin a medal on his chest.

But no. Saverin left behind a lot of value and decided to move on to greener pastures in Singapore. Now the do-gooders in Congress are cooking up new legislation the EX-PATRIOT Act designed to permanently bar ‘renunciants’ like Saverin from re-entering the United States.

It’s interesting that, rather than change their ways of doing business and introducing legislation that provides incentives for productive people to come here and stay here, they maintain policies that chase people away, and introduce new ones to lock the door after they’re gone.

via Guest Post: Regardless Of What The Propaganda Says, This Is Not How A Free Society Treats People | ZeroHedge.


Policeman Takes $22K From Innocent Driver

Reby was driving down Interstate 40, heading west through Putnam County, when he was stopped for speeding.

A Monterey police officer wanted to know if he was carrying any large amounts of cash.

"I said, 'Around $20,000,'" he recalled. "Then, at the point, he said, 'Do you mind if I search your vehicle?' I said, 'No, I don't mind.' I certainly didn't feel I was doing anything wrong. It was my money."

That's when Officer Larry Bates confiscated the cash based on his suspicion that it was drug money.

"Why didn't you arrest him?" we asked Bates.

"Because he hadn't committed a criminal law," the officer answered.

Bates said the amount of money and the way it was packed gave him reason to be suspicious.

"The safest place to put your money if it's legitimate is in a bank account," he explained. "He stated he had two. I would put it in a bank account. It draws interest and it's safer."

"But it's not illegal to carry cash," we noted.

"No, it's not illegal to carry cash," Bates said. "Again, it's what the cash is being used for to facilitate or what it is being utilized for."

NewsChannel 5 Investigates noted, "But you had no proof that money was being used for drug trafficking, correct? No proof?"

"And he couldn't prove it was legitimate," Bates insisted.

Say it with me, everyone: "Officer, I do not consent to searches." The fact that you have done nothing wrong does not mean the cops cannot take your stuff. Via Man Loses $22,000 In New 'Policing For Profit' Case - NewsChannel5.com | Nashville News, Weather & Sports.