10 stories
·
4 followers

Linus Torvalds: Detecting integer constant expressions in macros

1 Comment and 2 Shares

Comments

Read the whole story
ojiikun
969 days ago
reply
oh, C.
ridingsloth
969 days ago
hoboy, that is something :\
RAddisonJones
955 days ago
reply
Atlanta, Georgia
Share this story
Delete

Walking New York

3 Comments and 7 Shares

Walking New York

Could a person walk the entire city of NY in their lifetime? (including inside apartments)

Asaf Shamir

Like the answer to Paint the Earth, the answer to the first part of this question is pretty straightforward to look up.

But what if it weren't? Can we figure out the answer from things we already know? Let's look at a few ways of estimating it.

First of all, how wide is a street? I've never seen one of those flashing crosswalk countdowns signs start with less than 10 seconds; if people walk at a meter per second, most roads are probably at least 10 meters wide.[1]There's a table from the 1892 World Almanac listing the widths of all avenues and streets in Manhattan, as well as the lengths of all the blocks, confirming that even in 1892 the streets were at least 20 meters wide. I found a copy of the table over at the blog Stuff Nobody Cares About.

Most people wouldn't have trouble walking 10 kilometers (6 miles) in a day. If the city were covered in kilometer-long streets laid down edge-to-edge, with no space between them, you could fit a thousand roads side-by-side in 10 kilometers. That means a person could walk back and forth across an entire 10km by 10km grid in, at most, 3 years.[2]On the streets. You have to add another 3 years for the avenues.

I don't know how many 10 km square swatches it takes to cover New York City, but it's probably not very many.[3]Turns out it's a little more than 1 to cover the land and water. And since NYC has some space not occupied by streets, this tells us that the answer to the first part of Asaf's question is almost certainly "yes"—purely from a geometry standpoint.[4]Another way to come at this calculation is to remember that Manhattan streets are numbered, and you never see four-digit numbers.

Here's another approach: I happen to remember that the US Postal Service employs about half a million people. NYC's population is almost 10 million people,[5]The city itself is about 8.5 million, and the metro area is about 20 million. so almost 1 out of every 35 Americans lives there.[6]I remember seeing some California politician boast that California had 14% of the country's millionaires. But 1 in 8 Americans live in California, so that's pretty close to what you'd expect. If New York also has 1 out of every 35 postal employees, that's about 15,000 people.

If all those employees were letter carriers, and they visit every address in the city every workday, that would mean it takes a total 15,000 x 8 hours = 14 person-years to traverse the city—much less than a lifetime! Since lots of postal employees are not letter carriers, and real letter carriers stop frequently, this estimate is probably still much higher than the reality.

Another way: Imagine that each person lives alone in a square room measuring 10 meters by 10 meters, which is about the size of a typical two-bedroom apartment. Furthermore, let's assume that everyone's apartment is on the ground floor with at least one side facing a street. In that case, at a walking speed of 2.5 mph, it would take only 2.4 years to walk past every apartment—which Wolfram|Alpha helpfully points out is roughly 1.4 elephant gestation periods.

Any way we come at this problem, it looks like the answer is "yes"—you can walk down all the streets in New York City. And, indeed, it turns out there are 6,074 miles of road in NYC, which would take a total of a little over 100 days of walking.

Now, what about the second part of Asaf's question—walking through all the apartments?

This one is trickier. As a rule of thumb, a household is overcrowded if it has more people than rooms. [7] [8] There are a bunch of definitions for different family sizes and methodologies, but they all end up in a pretty narrow range. , but But at the same time, most households don't have more than two rooms per person. Let's assume all households have 1.5 rooms per person.

Let's assume it takes 20 seconds to get from the door of a room to the door of the next non-visited room. (Most of the time it will be much less, but sometimes the next non-visited room is on another floor or down the stairs, so it's good to give ourselves some extra time.)

If it takes 5 seconds to walk into a room and back out, then you can visit every room in New York City in 10 years. Even if you only visit rooms for eight hours a day, that's totally plausible to fit into one lifetime.

However, a word of warning to Asaf:

Under NY Penal Code §104.15, entering a dwelling without permission is a class A misdemeanor punishable by up to a year in prison.

So while it might take only 30 years to visit every apartment in New York City ...

... it could take you 2,000 millennia to serve out the resulting prison sentence.

Read the whole story
RAddisonJones
2279 days ago
reply
.
Atlanta, Georgia
Share this story
Delete
2 public comments
rclatterbuck
2280 days ago
reply
.
Askew
2279 days ago
Okay, there's no point to share a post with just a "." because sharing a post without a comment will still allow people to comment directly from your blurblog, just sayin...
pyrona
2275 days ago
....no? Unless this is well hidden or recently changed? If you don't add a comment at share time, there's no way to reply when reading in newsblur. If you've figured out a way, please for the love of science share a screenshot, because it makes me crazy.
Askew
2275 days ago
When you share a story on your blurblog, people can comment on it. Try opening your blurblog in a private tab and you can see that you can add comments to the shared story.
Skotte
2272 days ago
Was not aware of this, askew. I am a better person now!
drspam
2271 days ago
my understanding was that the only way to comment on a story without also sharing it to your own blurblog is to "reply", which is unavailable without a garbage comment like "." if that's changed, you would make me the happiest dude. also, rclatterbuck: thanks for sharing this in the first place! it's great.
Askew
2271 days ago
drspam, I actually believe you might be right, and with that, the whole commenting system is questionable. In one sense I do understand the fact that if it's good enough to comment, then it's good enough to share, but on the other end, you should have the freedom of commenting on a blog without sharing since we do have a community here. Has this question/suggestion even come up to Samuel?
drspam
2271 days ago
" Has this question/suggestion even come up to Samuel?" oh boy, has it ever! i highly encourage you to contribute to these threads here. the more voices for a sane commenting system, the better: https://getsatisfaction.com/newsblur/topics/allow_comments_on_shared_items_with_no_comments and.... https://getsatisfaction.com/newsblur/topics/allow_for_comments_on_a_shared_post_that_does_not_have_a_comment (apologies, rclatterbuck, for the thread tangent. i'll refrain from further posts)
JayM
2280 days ago
reply
.
Atlanta, GA
Askew
2279 days ago
Okay, there's no point to share a post with just a "." because sharing a post without a comment will still allow people to comment directly from your blurblog, just sayin...
JayM
2279 days ago
A habit from the early days of Newsblur when something needed to be there for someone else to reply to.

Sustainability

1 Comment and 2 Shares

(Don Boudreaux) In my (Don Boudreaux) My latest column in the Pittsburgh Tribune-Review I discuss discusses the emptiness of typical proclamations in support of economic practices that are allegedly “sustainable.”  A slice:

A good way to test if someone is speaking in platitudes is to ask yourself if you can imagine a normal human adult believing the opposite.

Suppose someone informs you that he favors policies that promote human happiness. Can you imagine, say, your neighbor responding, “I disagree. I favor policies that promote human misery”? Probably not.

If you cannot imagine any normal person disagreeing with some proclamation, then that proclamation is a platitude. It tells you nothing of substance.

Consider today’s fashionable calls for “sustainability.” The academy, media, cyberspace are full of people proclaiming support for policies that promote economic and environmental “sustainability.” So whenever you hear such proclamations, ask if you can envision a sane adult sincerely disagreeing.

You’ll discover, of course, that you can’t imagine anyone seriously supporting “unsustainability.” Therefore, you should conclude that mere expressions of support for “sustainability” are empty. And they can be downright harmful if they mislead people into supporting counterproductive government policies.

Read the whole story
RAddisonJones
2295 days ago
reply
I disagree with the premise here. In the specific case of both happiness and sustainability, the catch is that it usually costs more. If someone says "I support sustainable farming" the usually understood, but unsaid, follow up statement is "...and I pay more for it."

It is complete reasonable to imagine a person or corporation stating that they've made decisions that are best for the bottom line, while we all understand that to mean that it cost some sustainability or worker happiness.
Atlanta, Georgia
ojiikun
2295 days ago
reply
Share this story
Delete

Preferred Chat System

16 Comments and 42 Shares
If you call my regular number, it just goes to my pager.
Read the whole story
RAddisonJones
2652 days ago
reply
He forgot smoke signal...
Atlanta, Georgia
rjstegbauer
2652 days ago
And telegrams...but I guess you would need a time machine for that now.
jbondjr
2650 days ago
This hits a little close to home
Share this story
Delete
15 public comments
VioletGray
2647 days ago
reply
Sounds about right
Gent/Bucharest
jhamill
2651 days ago
reply
I do my best work through voicemail.
California
chrisrosa
2651 days ago
reply
xkcd continues to speak the truth. #communication
San Francisco, CA
tedder
2651 days ago
reply
I don't answer unknown calls. I'm about to stop accepting voicemail.
Uranus
jezbian
2651 days ago
reply
YES YES YES. this is one reason it's hard to plan anything for more than 2 people these days - everyone communicates in so many varied ways!!!
FarrelBuch
2651 days ago
reply
And I thought I was the only one who had these issues
Pittsburgh, PA, USA
MSex
2652 days ago
reply
Isso tem acontecido comigo. Particularmente com uma combinação de SMS, Viber e WhatsApp.
galmeida
2651 days ago
nem me fala, WhatsApp should die
aaronwe
2652 days ago
reply
I resemble that comic.
Denver
lrwrp
2652 days ago
reply
I think this is what it's like trying to contact me.
??, NC
mrobold
2652 days ago
reply
This sounds pretty accurate these days.
Orange County, California
NickDegens
2652 days ago
reply
Nice!
adamgurri
2652 days ago
reply
LOL
New York, NY
euser
2652 days ago
reply
Last one is RFC1149 in action :)
Berlin
codersquid
2652 days ago
I don't think owls would make good carriers. You need to be able to change the magic axiom in our reality.
barajas
2652 days ago
reply
Since switching to Windows Phone two weeks ago, this is pretty much my life.
Rochester, NY
aaronwe
2652 days ago
Welcome to why I dumped my Lumia 900.
ghling
2652 days ago
reply
Alt text: "If you call my regular number, it just goes to my pager."
jimwise
2652 days ago
(Thank you!)
wffurr
2652 days ago
Another RSS reader I used on Android had a neat feature for xkcd. Alt text would appear if you tapped on the image. Press is the app.
jimwise
2652 days ago
Yeah -- Reeder (google reader client for iOS) did similar. One thing I missed since switching to NB. Guess I should put in a feature request...
2652 days ago
You're a god amongst men.
cbenard
2652 days ago
Hey guys, I created a Yahoo Pipe RSS feed you can subscribe to with the alt text below it. http://pipes.yahoo.com/pipes/pipe.run?_id=b3b7b8405296690257c7c311cc4fc2fd&_render=rss
cbenard
2652 days ago
You can look at the source of the Pipe here (but don't try to subscribe to this url; use the rss url I previously posted): http://pipes.yahoo.com/pipes/pipe.info?_id=b3b7b8405296690257c7c311cc4fc2fd
reconbot
2651 days ago
The problem with the pipes feed is that all the comments are on this feed
cbenard
2651 days ago
@reconbot, yeah I will stay subscribed to this as well. I just made it to make it easy to see on a mobile device without having to rely on people to post the alt text in the comments. :)

Anti-Glass

2 Comments and 7 Shares
'Why don't you just point it at their eye directly?' 'What is this, 2007?'
Read the whole story
RAddisonJones
2658 days ago
reply
It's strips like this that make me feel the black hat character was based on Daniel.
Atlanta, Georgia
mpontes
2656 days ago
He's based on Aram from Men In Hats, a webcomic. Randall stated that himself before.
Share this story
Delete
1 public comment
ashtonbt1
2659 days ago
reply
Title text for the mobile readers: "'Why don't you just point it at their eye directly?' 'What is this, 2007?'"

And on Friday, Mario Balotelli Struggled to Locate his New Pet Piglet's Genitalia

1 Comment
Italian forward Mario Balotelli celebrat

Gabriel Bouys/AFP

Eccentric Italian striker Mario Balotelli—who has, in the past, thrown a dart a youth team player, set his house on fire after letting off fireworks indoors, drawn copious red cards, and dedicated a goal to Drake—finally received the infant piggy he apparently ordered after what was clearly days or perhaps weeks of waiting:

Well, she’s certainly adorable. But are we sure she’s a she?

Seems like as good a methodology as any for determining such things.

Though he has had issues in the past with responsibility both on and off the pitch, Balotelli claims that he’s taken steps to mature. Here’s hoping that is indeed the case, and that this animal-owner relationship does not take a dark and confiscatory turn like that of Justin Bieber and his monkey.

[H/T Deadspin]


Read the whole story
RAddisonJones
2663 days ago
reply
Dammit - if only he still played for City, then when they played we could just yell "pig dick!" whenever he got the ball...
Atlanta, Georgia
Share this story
Delete
Next Page of Stories