Shared posts

15 Apr 11:24

Asynchronous Functional Testing with Mocha and JQuery

by Juha Paananen

Context

Me and my friends been doing functional testing on our rather large single-page app, using Mocha and JQuery. JQuery is used to drive the system under test (SUT), usually started in an IFrame. JQuery is also used to verify that the application behaves as expected. For instance, in a todo-application, you might
S("#addTodo").click()
expect(S("#tasks").length).to.equal(1)
Here S is a helper function that delegates to the JQuery instance in the SUT window. So the basic pattern is that you perform certain operations on the SUT and then verify that the application ends up in the expected end-state. In mocha, you might do this like
describe("Add todo button", function() {
before(function() {
S("#addTodo").click()
})

it("Adds todo", function() {
expect(S("#todos").length).to.equal(1)
})
})
If the application is synchronous this works just fine.

Problem

You might have guessed this. The minute you add your first asynchronous thing in the application, you enter the world of uncertain test results. That is, if your tests assume that after doing X, the application goes from state A to B. To get past this, you may use asynchronous functions in your before blocks. Like
before(function(done) {
wait.until(function() { return S("#todos").length == 2}, done)
})
This will fix a single test case. Everytime you find that some test is unreliable, you add some kind of an ad-hoc asynchoronous wait. Now step to a situation where you have a hundred tests and you change your application so that something that used to be synchronous is now asynchronous. You'll get some failing tests. You may get tests that fail on some browsers and only sometimes. Horror!
Adding async waits to individual test setup steps doesn't scale. Been there, done that.

Solution

I strongly believe that we need a more systematic solution here. The developer shouldn't need to consider asyncronicity at each test step.
Why not go for a solution where after each before block and before each it, there should be an implicit async wait that would ensure that before the test proceeds, the framework ensures that all AJAX calls, animations, transitions, page loads and whatnot have finished.
Is this hard? Shouldn't be. Just monkey-patch before and it to include these steps. Gonna try this and write more afterwards. What do you think?
10 Jan 17:28

Lettre ouverte d'une musicienne aveugle

by aKa

Robert Douglass qui mène le projet Open Goldberg Variations a fait publier la lettre d’Eunah Choi ci-dessous sur Reddit.

Nous en avions parlé dans ce récent billet : L’un des plus beaux projets qui soit : libérer la musique tout en aidant les malvoyants.

Il reste deux jours pour atteindre la somme demandée sur Kickstarter. On croise les doigts…


Eunah Choi


Lettre ouverte d’une musicienne aveugle

Open letter from a blind musician

Eunah Choi - 6 novembre 2013 - Reddit
(Traduction : Asta, Peekmo, goofy, sinma, audionuma, Scailyna, barbaturc, Sphinx + anonymes)

Bonjour, je m’appelle Eunah Choi. J’ai contribué au projet Open WTC (Well-Tempered Clavier) et j’ai émis une demande pour faire une édition en braille des partitions de l’Open WTC pour les musiciens aveugles. Grâce à la générosité de tous les contributeurs Kickstarter, j’ai le plaisir d’annoncer que nous avons atteint avec succès les 30 000 $ dont nous avions besoin initialement pour ce projet. Merci !

Mais nous avons encore une chose à finir avant que la levée de fonds ne se termine, le 8 novembre. Nous avons besoin d’atteindre au minimum 50 000 $ afin de produire des partitions en braille pour les musiciens aveugles. Si nous n’y parvenons pas, le prochain pianiste aveugle sud-coréen n’aura d’autre choix que de faire ce fastidieux travail de copie manuelle à partir d’une fragile et ancienne partition en braille, à l’aide d’une ardoise et d’un stylet. Pour les musiciens voyants, recopier à la main une partition est seulement une chose démodée dont nous pouvons parler en en riant. Nous voyons des personnes recopier manuellement des partitions de musique dans des romans ou des films du XIXe siècle ou plus anciens encore. Et pourtant aujourd’hui, des malvoyants, dans le monde entier, ne peuvent obtenir la majorité des partitions dont ils ont besoin uniquement par le biais de cet antique, inefficace et long processus. Tout cela, au XXIe siècle !

C’est inacceptable, un point c’est tout. C’est ce à quoi une pénurie de partition ressemble. Or désormais, grâce à de nombreux ingénieurs et développeurs, nous disposons d’un format solide (MusicXML) et pouvons développer des logiciels pour convertir 50 000 partitions MuseScore en braille. Tout ce dont nous avons besoin, c’est une preuve de la générosité des donateurs de la campagne.

Certains se demanderont : « on m’a dit qu’il y avait des bibliothèques de braille fournissant des partitions en braille pour les personnes aveugles. » Oui, il y A des bibliothèques brailles, mais l’offre NE PEUT satisfaire la demande, c’est à dire qu’il y a beaucoup, beaucoup plus de personnes aveugles qui ont besoin de partitions en braille que ces bibliothèques peuvent en satisfaire. Et à cause des graves limitations sur le partage de fichiers sous droits d’auteur en braille entre pays, inscrites dans les lois sur le copyright, les personnes aveugles en Corée du Sud ne sont même pas autorisées à s’inscrire auprès de services de bibliothèques dans les pays soit-disant développés comme les États-Unis, le Royaume Uni ou le Canada. Donc, quand je parle de pénurie à propos des partitions de musique, je ne suis pas en train d’exagérer.

Quand j’étais au lycée, je m’apitoyais souvent sur mon sort faute de pouvoir obtenir des partitions en braille sur le site américain du NLS. Le NLS ne permet qu’aux citoyens américains aveugles de s’inscrire et de créer un profil. Je fus automatiquement rejetée de cette inscription, simplement parce que je suis née en Corée du Sud et pas aux États-Unis. J’irai jusqu’à dire que cela représente une discrimination sur la nationalité et sur le handicap, créée de manière artificielle par des lois sur le copyright !

Certains diront que les aveugles ont souvent l’oreille parfaite et peuvent se contenter d’écouter des enregistrements pour ensuite s’entraîner afin de reproduire les sons le plus fidèlement possible. On peut également penser qu’il y a des vidéos YouTube ou des émissions télé qui présentent des enfants aveugles, jouant de la musique simplement en ayant écouté l’original. Il faut regarder la réalité en face : « pouvoir écouter ne signifie pas pouvoir lire ». Tout comme les enfants qui doivent apprendre à lire et à écrire pour étudier et faire partie de la société, les musiciens aveugles ont besoin de partitions en braille pour pouvoir participer à la musique et jouer les morceaux qu’ils ont envie de jouer. Il est possible de découvrir une fraction de la musique qui vous plaît, juste en écoutant ; mais vous ne pourrez pas découvrir toutes les expressions musicales, les pensées et le processus d’écriture du compositeur juste en écoutant sa musique. Il FAUT des partitions en braille pour le faire ! Et aujourd’hui, moins de 1% de l’ensemble des partitions est disponible en version braille.

Est-ce que cela serait normal pour vous si votre enfant n’avait accès qu’à un très faible pourcentage des livres, ceux en braille ? Nous DEVONS corriger cela ! Nous POUVONS commencer à libérer toutes nos partitions du domaine public et les donner aux musiciens non-voyants dans le monde entier ! Mais, seulement si nous récoltons 50 000 $ (~37 000€) ! Et seulement si nos soutiens diffusent et propagent le message ! S’il vous plaît, essayez de penser à ceux que vous aimez et qui sont aveugles ! Ils méritent de participer à notre merveilleux héritage musical comme n’importe qui d’autre. Nous devons leur donner des partitions en braille faites pour le XXIe siècle !

À travers l’histoire, les aveugles ont trop longtemps chanté sur des accords mineurs. Il est temps de sécher nos larmes et d’offrir aux musiciens non-voyants une fin heureuse, un accord majeur, avec ces 50 000 partitions du domaine public.

Cordialement,
Eunah Choi

01 Dec 14:05

"From the outside, Metal looks very aggressive and...



"From the outside, Metal looks very aggressive and nonconformist. But that’s just because we get all our aggression out in music, and not by doing some other shit. It’s actually a very loving community. No matter where you’re from, or how much money you make, a metalhead is a metalhead."

23 Nov 19:41

« Queens Of The Stone Age » dévoile son clip interactif

by Julien

Après le très bon clip de Bob Dylan, voici un autre clip interactif. Pour son clip The Vampyre Of Time And Memory, le groupe Queens Of The Stone Age propose cette expérience où vous déambulez dans un manoir hanté réalisé par Kii Arens et Jason Trucco et développé par l’agence The Creators Project.

Le clip interactif est ici : Vampyre.thecreatorsproject.vice.com

Vampyre2Vampyre4

 

23 Nov 19:36

"It’s a Spaghetti Monster pin." “How would you...



"It’s a Spaghetti Monster pin."
“How would you describe the Spaghetti Monster?”
“It’s a semi-serious, semi-parody religion. If you substitute the word ‘Spaghetti Monster’ for the word God, it exposes religion to critical thinking. Because of the cultural reverence for the word ‘God,’ so much of religion flies under the radar of critical thinking. But if you think about it— the word ‘God’ is just a noise we make, just like ‘Spaghetti Monster’ is a noise. Both are placeholders for a concept, and neither is more valid than the other. The whole point of the Spaghetti Monster is not necessarily to say that God isn’t real, but to point out the flaws in our conceptualization of him.”

21 Nov 18:03

RSS and the Open Web

Manuel.leduc

Great summary

image

This post is not about the day to day operations of The Old Reader or anything of that nature.  It’s about how our team came to get involved with RSS and how we see the future of this application and technology that we value so highly.

As a long time user of RSS and Google Reader, I’ve long appreciated the benefits of the technology.  Like many people, my use of Google Reader faded a bit as social media platforms took hold.  But, I’d always go back to Google Reader when I wanted to cut through the noise of social networks and focus on things I’m really passionate about.  Google Reader wasn’t my “second screen” application where I’d go to take a break from work.  It filled a much more essential need for me by providing these three features:

1.  Unread items are kept in a queue.  I don’t miss things.  No algorithm chooses what to show me or not show me.

2.  It’s an archive of blogs that I value and posts that I’ve read.

3.  I can follow whatever I want from anywhere on the web.  It embodies the open web.

For my professional career in web research and development, I can’t really live without these features.  I can follow twitter feeds or like Facebook pages, but I’m certain to miss important content from people who I highly value.  I need those items queued, archived, and I need to be able to subscribe to anybody on the entire open web.  I can’t be limited to those authors who choose to enter into private social networks and I don’t want to have to constantly check my accounts for updates.

So this leads me to how we got involved in The Old Reader.  When Google Reader shut it’s doors, my business partner Jim did some research and tried several services and suggested I’d like The Old Reader the best.  So we both moved on over.  I read some articles trying to understand why Google Reader would shut down and one really stuck with me.  It hypothesized that Google had been following the lead of companies like Facebook and Twitter by turning their backs on the open web and trying to build their own private/closed social networks.  It’s frankly hard to argue against this theory.

However, we see this trend of migrating from the open web to private networks as cyclical.  How long will it be before your Facebook stream is so full of promoted content, bizarre algorithmic decisions, and tracking cookie based shopping cart reminders that you won’t be getting any valuable information?  For as little as $60, a business can promote a page to Facebook users.  It won’t be long before your news feed is worthless.  So we jumped at the opportunity to get involved with developing and managing The Old Reader.  We believe in it.

As we’ve been looking to grow our engineering team at Levee Labs and The Old Reader we’ve met with a number of bright young people that are surprisingly unaware of RSS.  They say “I recognize the RSS icon, but haven’t really ever used it.”  Is it possible that there is a lost generation of internet users that are completely unfamiliar with RSS?  Are they unfamiliar with the idea of the open web too?  We believe that’s the case and we’ve been working hard to come up with ideas that’ll expose that generation to RSS, The Old Reader, and the open web.  It’s what made the internet great to begin with and it’s coming back.

Thanks for using The Old Reader!

20 Nov 18:56

Street Art in Lisboa, Portugal

by Vidar

In Lisboa, Portugal Thanks to Sara Dias for the photo!

The post Street Art in Lisboa, Portugal appeared first on STREET ART UTOPIA.

18 Nov 21:12

“If you shoot this man, you die next.” Reservoir...



“If you shoot this man, you die next.”

Reservoir Dogs (1992)

16 Nov 12:10

Shoot for the Moon

Manuel.leduc

Attention, la pleine lune c'est demain !!!

Shoot for the Moon. If you miss, you'll end up co-orbiting the Sun alongside Earth, living out your days alone in the void within sight of the lush, welcoming home you left behind.
16 Nov 12:05

ask professor science: the earth, is it weird or what

archive - contact - sexy exciting merchandise - cute - search - about
← previous November 12th, 2013 next

November 12th, 2013: Remember all last week how I was all "hey I wrote a cartoon, go watch it!"? WELL GOOD because now you can see the behind-the-scenes video!

One year ago today: feelings are boring / and somebody's in here

– Ryan

14 Nov 10:04

We're hiring!

For those of you that don’t follow us on Twitter, we’d like to pass along the news that our development team at Levee Labs is hiring.  Let us know if you or anybody you know might be interested!

Rails Engineer - https://weworkremotely.com/jobs/30

Web Designer - https://weworkremotely.com/jobs/32

13 Nov 10:55

“Take it easy and avoid excitement.”Modern Times (1936)

“Take it easy and avoid excitement.”Modern Times (1936)
12 Nov 10:04

"I just try to have fun.""What’s the most fun you’ve...



"I just try to have fun."
"What’s the most fun you’ve ever had?"
"Can’t talk about it. I’m still waiting on my court date."

11 Nov 17:56

In mémoriam

by Zythom
Cédric "Sid" Blancher s'est tué dimanche 10 novembre 2013 lors d'un saut en parachute.

J'ai reçu cette information par Twitter, dimanche soir, alors que je travaillais sur un rapport d'expertise. Mon sang s'est glacé.

J'ai rencontré Sid sur la toile, il y a quelques années, et son blog m'a tout de suite intéressé. J'y trouvais des articles sur la sécurité informatique intéressant, un style d'écriture sans langue de bois.

Un jour de juin 2008, il m'a contacté parce que l'univers de l'expertise judiciaire l'intriguait, et il m'avait alors proposé d'écrire un billet sur son blog. J'avais apprécié la démarche et nos échanges constructifs.

C'est à lui que je dois mon invitation comme conférencier invité au SSTIC 2012 car il avait glissé mon nom aux oreilles des organisateurs. C'est d'ailleurs là que je l'ai rencontré IRL et qu'on a pu discuter de manière plus approfondie, le soir dans la rue de la soif de Rennes. Et rebelote au SSTIC 2013...

Il m'a parlé de sa passion du parachutisme et c'est lui qui m'a donné envie d'essayer, non pas avec un saut d'initiation, mais en faisant un stage PAC.

Il m'a aussi ouvert la porte de son entreprise EADS en faisant circuler mon CV quand j'ai essayé de changer de carrière. C'est dire sa gentillesse...

"Ma petite parcelle d'Internet..." est orpheline ce soir.

Mes pensées vont à sa famille et à ses amis.

[EDIT]
@niCRO sur Twitter nous informe que la cérémonie aura lieu jeudi 14 novembre à 14h en l'église Ste Jeanne d'Arc - 50, rue d'Isle - 87000 Limoges.

Si vous désirez envoyer des fleurs, merci de le faire à cette adresse avant 14h.

Les commentaires de ce billet sont maintenant fermés. Si vous souhaitez envoyer des photos, des anecdotes, des commentaires, des prières, des textes, vous pouvez le faire à l'adresse cedric@crashdump.net
@niCRO m'assure que l'ensemble sera transmis aux parents de Cédric en fin de semaine.



10 Nov 13:46

In the Loop: MediacenterJS – a Node.js-based Media Center for your Browser

by Dave Whiteley

Every week or two we spread the word of Node.js and the incredible things it can do by profiling creative, interesting and fun uses of Node.js in various products and projects. We call it “In the Loop.”

This time we are looking at MediacenterJS,  a fully functional media center application that runs in your browser. We spoke with Jan Smolders about MediacenterJS and how you can view your movies and listen to your music with it –  all from the comfort of your favourite browser on your favourite device. Before we get into our questions, here’s a quick bio of Jan:

“I’m a 27 year old frontend developer working for a company called ISAAC in Eindhoven, the Netherlands. Before that I was working as a graphic designer for various companies. I studied Interactive Media Design (also in Eindhoven).”

Can you tell us about MediacenterJS? Why did you build this with Node.js??

Jan Smolders: The basic premise of MediacenterJS is that it should be equivalent to something like XBMC but easier to customize and easier to use cross device – for example, with PCs, NAS, ARM and mobile devices. I started working on it after using XBMC on my Raspberry Pi. Although it worked just fine, it was quite slow and building a custom skin or adding content was quite a hassle. Also viewing movies on a Chromebook and Android tablet wasn’t as easy as I would like it to be. So being a front-end developer I started looking for ways to build a similar application that fits my needs in a language I felt comfortable with. Which led me to Node.js.

Coincidentally, the company I work for was looking into Node.js at the time as well, so I jumped at the opportunity to be the first in the company to learn Node.js. MediacenterJS started as a study into Node.js but got way out of hand.

Did you experience any challenges or limitations with Node.js?

Jan Smolders: Although pretty familiar with javascript, I have to be honest, Node.js still was pretty challenging for me at first. Probably mostly because as a frontend developer I hardly ever have to think about the backend. Luckily Node.js has a huge community and there are loads of tutorials on the web to get you started.

The biggest problem I had with Node.js is the dependency to Node-gyp. Don’t get me wrong, it’s great that it exists and it expands the capabilities of Node.js tremendously, it is a enormous pain to get it working on Windows and ARM based systems. So for instance for the database I use DBlite, a great module for SQlite that does not depend on Node-gyp.

But probably the biggest issue I have had during the development wasn’t Node.js related. It was the HTML5 video support of browsers. There are still so many bugs and limitations it makes my head spin.

How did you keep your development on track?

Jan Smolders: To keep the development on track I used Trello to keep a clear view of the things that still needed doing. But mostly sheer enthusiasm for the project, spending loads of lunch breaks talking about the implementation of features with colleagues.

MediacenterJS is coming this Fall and it is completely free. Why did you choose to make this available free? 

Jan Smolders: First of all this is a pet project and I’ve gotten so much help for communities like Stackoverflow, colleagues and friends, I could not sell this and keep a straight face. Also I hope people will try MediacenterJS and decide to build amazing apps and themes for it. So I encourage people to contribute. When the project goes beta, I’ll include as much documentation as possible to make it easy to get started. Even if you have limited Node knowledge.

Currently the project is almost at the alpha stage. But people can already check it out on Github and NPM and try it out. Although currently buggier than the final product of course.

Are there future plans to enhance MediacenterJS?

Jan Smolders: So basically I plan to release a beta version this fall. giving people a chance to get to know the project and use it in there homes. After that I plan to add several features I currently have on my wishlist, such as a Remote Control app and UPNP.  Ideally, by the time the project hits the final release, there will be several apps and themes available. Eventually there will also be a Linux kiosk distro with MediacenterJS preinstalled. So you can put it on a flash drive or on a Raspberry Pi.

Do you have any other Node.js projects in the works?

Jan Smolders: As side from additional apps for the MediacenterJS framework I do not have any Node.js projects in development. Building this project is pretty time consuming as it is. That being said, I’m so thrilled by the possibilities Node.js offers I’m looking forward to new Node.js project.

MediaServerJS's Github stats as of October 3, 2013.

MediaServerJS’s Github stats as of October 3, 2013.

Thanks for chatting with us, Jan.

You can check out MediacenterJS via the web page, or check out Jan and the project on Github or via NPM registry.

If you have a cool Node.js project or product you think we should profile, reach out to us at callback@strongloop.com and we’d be happy to get you In the Loop.

What’s next?

07 Nov 13:08

Dispuesto a hacerse cargo de esta congregación

Manuel.leduc

violence !



Dispuesto a hacerse cargo de esta congregación

06 Nov 13:54

Surreal Photo Manipulations by Caras Ionut

by Christopher Jobson

Surreal Photo Manipulations by Caras Ionut surreal digital conceptual

Surreal Photo Manipulations by Caras Ionut surreal digital conceptual

Surreal Photo Manipulations by Caras Ionut surreal digital conceptual

Surreal Photo Manipulations by Caras Ionut surreal digital conceptual

Surreal Photo Manipulations by Caras Ionut surreal digital conceptual

Surreal Photo Manipulations by Caras Ionut surreal digital conceptual

Surreal Photo Manipulations by Caras Ionut surreal digital conceptual

Surreal Photo Manipulations by Caras Ionut surreal digital conceptual

Photo artist Caras Ionut lives in the world of Photoshop where he digitially assembles surreal landscapes and portraits using largely his own photography. These are some of my favorites but you can see much more over on 500px. Ionut also offers all kinds of tutorials and workshops available through his website. (via So Super Awesome)

06 Nov 11:19

bloodredorion: slavicinferno: What SciFi Movies Would REALLY...





















bloodredorion:

slavicinferno:

What SciFi Movies Would REALLY Be Like…

Source

Im laughing so hard

30 Oct 10:45

Il déssine Astérix à la manière de Naruto

by Julien

Astérix : Le Domaine des Dieux réalisé par Alexandre Astier (Kaamelott) et Louis Clichy sort demain 26 novembre. Voici un travail de style amusant signé Mooloozone qui imaginait les aventures de nos célèbres compères Gaulois avec le style graphique de Naruto (manga).

Asterix-naruto-Mashup0

Asterix-naruto-Mashup2 Asterix-naruto-Mashup4 Asterix-naruto-Mashup5 Asterix-naruto-Mashup6 Asterix-naruto-Mashup7 Asterix-naruto-Mashup8 Asterix-naruto-Mashup9 Asterix-naruto-Mashup10

25 Oct 09:39

"I’m an interactive designer." “You mean...



"I’m an interactive designer."
“You mean websites?”
“Well, yes, but I’m also interested in installations and physical computing.”
“So how would you describe good design?”
“I try to design a playful experience for the user.”
“How do you do that? By being playful?”
“Oh no. It’s a painful process to make something playful.”

18 Oct 17:10

Locher’s : la mode vintage irrévérencieuse

by admin

Après les bijoux gros mots de la marque Felicie Aussi, voici une autre marque qui joue la carte du 20eme degré avec ses petits messages cachés et acides. Toute la collection temporaire est à découvrir sur l’agréable site de Locher’s Paris. Votre grand-mère va trouver cela A-do-rable.

lochers5

lochers1

lochers12

lochersParis-01

lochers2

lochers4

lochers7

lochers8

lochers9

lochers10

lochers11

Lochersparis-PetiteCoquine

Lochersparis100

lochers

lochers13

details_jewelry5

 

16 Oct 07:25

Expanding Earth

by xkcd

Expanding Earth

How long would it take for people to notice their weight gain if the mean radius of the world expanded by 1cm every second? (Assuming the average composition of rock were maintained.)

Dennis O'Donnell

The Earth is not, currently, expanding.[1]Yes, I have a citation for this.

"In conclusion, no statistically significant present expansion rate is detected by our study within the current measurement uncertainty of 0.2 mm yr−1."

Wu, X., X. Collilieux, Z. Altamimi, B. L. A. Vermeersen, R. S. Gross, and I. Fukumori (2011), Accuracy of the International Terrestrial Reference Frame origin and Earth expansion, Geophys. Res. Lett., 38, L13304, doi:10.1029/2011GL047450.

People have long suggested that it might be. Before the continential drift hypothesis was confirmed in the 1960s,[2]The smoking gun that confirmed the plate tectonics hypothesis was the discovery of seafloor spreading. The way seafloor spreading and magnetic pole reversal neatly confirmed each other is one of my favorite examples of scientific discovery at work. people had noticed that the continents fit together. Various ideas were put forward to explain this, including the idea that the ocean basins were rifts that opened in the surface of a previously-smooth Earth as it expanded. This theory was never very widespread,[3]It turns out it's kind of dumb. although it still periodically makes the rounds on YouTube.

To avoid the problem of rifts in the ground, let's imagine all the matter in the Earth, from the crust to the core, starts expanding uniformly. To avoid another Drain the Oceans scenario, we'll assume the ocean expands, too.[4]As it turns out, the ocean is expanding, since it's getting warmer. This is (currently) the main way global warming is raising the sea level. All human structures will stay.

t = 1 second:

As the Earth started expanding, you'd feel a slight jolt, and might even lose your balance for a moment. This would be very brief. Since you're moving steadily upward at 1 cm/s, you woudn't feel any kind of ongoing acceleration. For the rest of the day, you wouldn't notice much of anything.

t = 1 day:

After the first day, the Earth would have expanded by 864 meters.

Gravity would take a long time to increase. If you weighed 70 kilograms when the expansion started, you'd weigh 70.01 at the end of the day.

What about our roads and bridges? Eventually, they would have to break up, right?

Not as quickly as you might think. Here's a puzzle I once heard:

Imagine you tied a rope tightly around the Earth, so it was hugging the surface all the way around.
Now imagine you wanted to raise the rope one meter off the ground.
How much extra length will you need to add to the rope?

Though it may seem like you'd need miles of rope, the answer is 6.28 meters. Circumference is proportional to radius, so if you increase radius by 1 unit, you increase circumference by 2π units.

Stretching a 40,000-kilometer line an extra 6.28 meters is pretty negligible. Even after a day, the extra 5.4 kilometers would be handled easily by virtually all structures. Concrete expands and contracts by more than that every day.[5]Lawrence Grybosky, Thermal Expansion and Contraction

After the initial jolt, one of the first effects you'd notice would be that your GPS would stop working. The satellites would stay in roughly the same orbits, but the delicate timing that the GPS system is based on would be completely ruined within hours. GPS timing is incredibly precise; of all the problems in engineering, it's one of the only ones in which engineers have been forced to include both special and general relativity in their calculations.

Most other clocks would keep working fine. However, if you have a very precise pendulum clock, you might notice something odd—by the end of the day, it would be three seconds ahead of where it should be.

t = 1 month:

After a month, the Earth would have expanded by 26 kilometers—an increase of 0.4%—and its mass would have increased by 1.2%. Surface gravity would only have gone up by 0.4%, rather than 1.2%, since surface gravity is proportional to radius.[6]Mass is proportional to radius cubed, and gravity is proportional to mass times inverse square of radius, so radius3 / radius2 = radius.

You might notice the difference in weight on a scale, but it's not a big deal. Gravity varies by this much between different cities already. This is a good thing to keep in mind if you buy a digital scale. If your scale has a precision of more than two decimal places, you need to calibrate it with a test weight—the force of gravity at the scale factory isn't necessarily the same as the force of gravity at your house.

While you might not notice the increased gravity just yet, you'd notice the expansion. After a month, you'd see a lot of cracks opening up in long concrete structures and the failure of elevated roads and old bridges. Most buildings would probably be ok, although those anchored firmly into bedrock might start to behave unpredictably.[7]Just what you want in a skyscraper.

At this point, astronauts on the ISS would start getting worried. Not only would the ground (and atmosphere) be rising toward them, but the increased gravity would also cause their orbit to slowly shrink. They'd need to evacuate quickly; they'd have at most a few months before the station reentered the atmosphere and deorbited.

t = 1 year:

After a year, gravity would be 5% stronger. You'd probably notice the weight gain, and you'd definitely notice the failure of roads, bridges, power lines, satellites, and undersea cables. Your pendulum clock would now be ahead by five days.

What about the atmosphere?

If the atmosphere isn't growing like the land and water are, air pressure would start dropping. This is due to a combination of factors. As gravity increases, then air gets heavier. But since that air is spread out over a larger area, the overall effect would be decreasing air pressure.

On the other hand, if the atmosphere is also expanding, surface air pressure would rise. After years had passed, the top of Mt. Everest would no longer be in the "death zone".[8]See What-If #64. On the other hand, since you'd be heavier—and the mountain would be taller—climbing would be more work.

t = 5 years:

After five years, gravity would be 25% stronger. If you weighed 70 kg when the expansion started, you'd weigh 88 kg now.

Most of our infrastructure would have collapsed. The cause of the collapse would be the expanding ground below them, not the increased gravity. Surprisingly, most skyscrapers would hold up fine under much higher gravity.[9]Although I wouldn't trust the elevators. For most of them, the limiting factor isn't weight, but wind.

t = 10 years:

After 10 years, gravity would be 50% stronger. In the scenario where the atmosphere isn't expanding, the air would become thin enough to be difficult to breathe even at sea level. In the other scenario, we'd be ok for a little while longer.

t = 40 years:

After 40 years, Earth's surface gravity would have tripled.[10]Over decades, the force of gravity would grow slightly faster than you'd expect, since the material in the Earth would compress under its own weight. The pressure inside planets is roughly proportional to the square of their surface area, so the Earth's core would be squeezed tightly. At this point, even the strongest humans would only be able to walk with great difficulty. Breathing would be difficult. Trees would collapse. Crops wouldn't stand up under their own weight. Virtually every mountainside would see massive landslides as material sought out a shallower angle of repose.

Geologic activity would also accelerate. Most of the Earth's heat is provided by radioactive decay of minerals in the crust and mantle,[12]Although some radioactive elements, like uranium, are heavy, they get squeezed out of the lower layers because their atoms don't mesh well with the rock lattices at those depths. For more, see this chapter and this article. and more Earth means more heat. Since the volume expands faster than the surface area, the overall heat flowing out per square meter will increase.

It's not actually enough to substantially warm the planet—Earth's surface temperature is dominated by the atmosphere and the Sun—but it would lead to more volcanoes, more earthquakes, and faster tectonic movement. This would be similar to the situation on Earth billions of years ago, when we had more radioactive material and thus a hotter mantle.

More active plate tectonics might be good for life. Plate tectonics play a key role in stabilizing the Earth's climate, and planets smaller than Earth (like Mars) don't have enough internal heat to sustain long-term geologic activity. A larger planet would allow for more geologic activity, which is why some scientists think that exoplanets slightly larger than Earth ("super-Earths") could be more friendly to life than Earth-sized ones.[11]Sasselov, Dimitar D.. The life of super-Earths: how the hunt for alien worlds and artificial cells will revolutionize life on our planet. New York: Basic Books, 2012.

t = 100 years:

After 100 years, we'd be experiencing over six gees of gravity. Not only would we be unable to move around to find food, but our hearts would be unable to pump blood to our brains. Only small insects (and sea animals) would be physically able to move around. Perhaps humans could survive in specially-built controlled-pressure domes, moving around by keeping most of our bodies submerged in water.

Breathing in this situation would be difficult. It's hard to suck in air against the weight of the water, which is why snorkels can only work when your lungs are near the surface.

Outside of low-pressure domes, the air would become unbreathable for a different reason. At somewhere around 6 atmospheres, even ordinary air becomes toxic.[13]R.M. Franz and P.C. Schutte, Barometric hazards within the context of deep-level mining, The Journal of The South African Institute of Mining and Metallurgy Even if we'd managed to survive all the other problems, by 100 years, we'd be dead from oxygen toxicity. Toxicity aside, breathing dense air is difficult simply because it's heavy.

Black hole?

When would the Earth eventually become a black hole?

It's hard to answer that, because the premise of the question is that the radius is steadily expanding while the density stays the same—whereas a black hole, the density increases.

The dynamics of really huge rocky planets aren't often analyzed, since there's no obvious way that they could form; anything that large will have enough gravity to gather hydrogen and helium during planet formation and become a gas giant.

At some point, our growing Earth would reach the point where adding more mass causes it to contract, rather than expand. After this point, it would collapse into something like a sputtering white dwarf or neutron star, and then—if its mass kept increasing—eventually become a black hole.

But before it gets that far ...

t = 300 years:

It's a shame humans wouldn't live this long, because at this point, something really neat would happen.

As the Earth grows, the Moon would, like all our satellites, gradually spiral inward.[14]Plummer, H. C., Note on the motion about an attracting centre of slowly increasing mass, Monthly Notices of the Royal Astronomical Society, Vol. 66, p.83 After several centuries, it would be close enough to the swollen Earth that the tidal forces between Earth and the Moon would be stronger than the gravitational forces holding the Moon together.

When the Moon passed this boundary—called the Roche limit—it would gradually break apart ...

... and Earth would, for a short time, have rings.

15 Oct 03:04

quand je suis le seul à obtenir les droits d'accès root

by nlecointre

/* by tekkharibo */

09 Oct 21:09

500 MPH

by xkcd

500 MPH

If winds reached 500 mph, would it pick up a human?

Grey Flynn, age 7, Stoneham, MA

Absolutely!

Some things don't work like they do in the movies. Getting shot doesn't really make someone fly backward. The vacuum of space doesn't make your skin explode.

But high wind can definitely pick up a person. In fact, if you were standing in the parking lot, the wind wouldn't just pick you up—it would also peel the pavement from the ground!

It wouldn't be strong enough to peel your skin off. Humans can survive blasts of 500 mph wind, which is important because pilots sometimes need to eject from airplanes at those speeds.

In the 1940s, the US government put pilots in wind tunnels to learn how they reacted to high winds. Have you ever been curious what happens to a person's face in 457 mph winds? Well, you can watch a video of one of those wind tunnel tests here. (That test was conducted at NASA Langley Research Center, where I worked before I started drawing internet comics for a living.)

It doesn't look very comfortable—I didn't know cheeks could flap like that—but the pilot appears to stay alive.

Luckily, he's strapped into that chair. He wouldn't be able to stand up in those winds! If he tried, he would go flying backward down the tunnel.

High wind is really powerful. In a paper in the journal Weather, J. F. R. McIlveen showed how to calculate the force of wind on the human body.[1]McIlveen, J. F. R.. "The Everyday Effects Of Wind Drag On People." Weather 57, no. 11 (2002): 410-413. The calculations on page 2 show how far you'd have to lean to stay upright in wind of various speeds.

When wind speed rises above about 120 mph, it's no longer possible to stay upright no matter how far you lean; you'll start to slide backward across the ground,[2]When Hurricane Isabel hit Virginia in 2003, I had the bright idea of standing on a skateboard with a poncho held up like a sail, so the wind would blow me down the street. But the moment I got the sail up, the wind fell quiet.

Later, I learned that people die from doing that. Oops. then quickly go head over heels and start to tumble.

You wouldn't necessarily be thrown very high. If the wind were perfectly level, you'd tumble along the surface, bouncing against the ground. However, if there were any updrafts, you could easily be lifted up and carried away.

The good news is that 500 mph winds are rare. The strongest hurricanes have wind speeds around 200 mph with gusts up to 250.[3]Courtney, J.; Buchan, S.; Cerveny, R.S.; Bessemoulin, P.; Peterson, T.C.; Rubiera Torres, J.M.; Beven, J.; King, J.; Trerwin, B.; Rancourt, K.. 2012 "Documentation and verification of the world extreme wind gust record: 113.3 m s–1 on Barrow Island, Australia, during passage of tropical cyclone Olivia." Australian Meterological and Oceanographic Journal, 62 (1). 1-9. Tornadoes can reach 300 mph.[4]It's difficult to get accurate measurements of surface winds since those tornadoes destroy most measuring equipment! 300 is a far cry from 500; the force from a 500 mph wind is several times stronger than the force from a 300 mph wind.

There are a few ways you could experience wind speeds faster than 500 mph. One is to stand on top of a volcano when it erupts. When Mount St. Helens exploded in 1980, the column of ash was blasted outward at 700 mph, which is close to the speed of sound.[5]Kieffer, S. W., 1981, Fluid dynamics of the May 18 blast at Mount St. Helens, in Lipman, P.W., and Mullineux, D.R., eds., The 1980 Eruptions of Mount St. Helens, Washington: U.S. Geological Survey Professional Paper 1250, p. 379-400.

Another way to experience 500 mph winds is to trigger a hypercane.[6]Limits on Hurricane Intensity A hypercane is an exotic type of hurricane with 500 mph winds spinning in a very tight vortex just a few miles across.

Hypercanes can't exist on Earth right now. To form, they require ocean temperatures of about 50°C. No matter how much we warm the planet, we're not going to get the temperature that high any time soon.

However, there's one way these storms might happen.

When an asteroid or comet—coincidentally, one about the size of the recently-named 4942 Munroe—hit Mexico 65 million years ago, it punched a hole in the crust and left behind a sea of lava.[7]Christeson, Gail L., Gareth S. Collins, Joanna V. Morgan, Sean P.S. Gulick, Penny J. Barton, and Michael R. Warner. "Mantle Deformation Beneath The Chicxulub Impact Crater." Earth and Planetary Science Letters 284, no. 1-2 (2009): 249-257. When water flowed back in to fill the hole, it would have been heated by contact with the molten rock. This might have created the conditions for hypercanes to form, and one paper suggests that these storms could have lifted a large amount of dust and debris into the upper atmosphere—thus contributing to a global winter and extinction of the dinosaurs.[8]Emanuel, Kerry A., Kevin Speer, Richard Rotunno, Ramesh Srivastava, and Mario Molina. "Hypercanes: A Possible Link In Global Extinction Scenarios." Journal of Geophysical Research 100, no. D7 (1995): 13755-13765.

In short, the answer to Grey's question is yes—500 mph winds would send you flying through the air. But don't worry about that. Instead, worry about is the thing that created the 500 mph winds. Odds are, that's what's going to kill you.

09 Oct 09:51

int(pi)

If replacing all the '3's doesn't fix your code, remove the 4s, too, with 'ceiling(pi) / floor(pi) * pi * r^floor(pi)'. Mmm, floor pie.
09 Oct 09:50

Notre Toyota était Fantastique

by boulet












09 Oct 08:01

Hardware hacking for all

by virtualabs

[MAJ du 8/10/2013] Le projet est financé à 170%, vous êtes vraiment cools ! J'ai ajouté des achievements, vu qu'il reste encore une vingtaine de jours pour la campagne.

[MAJ du 15/10/2013] Le projet est financé à 226%, wow !!! Pour le coup je cale sur un achievement pour les 250%, mais je vais essayer de trouver un truc fou, promis. Encore merci aux soutiens, et si vous souhaitez encore participer sachez qu'il reste des Super Minitel Entertainment System =)

Comme certains d'entre vous le savent (ou ont pu s'en rendre compte), je me suis replongé il y a peu de temps dans le domaine fou et super passionnant du hardware hacking. Le recyclage d'un minitel, l'étude des tickets de métro, les bidouilles sur msp430 ou mon projet de piratebox basée sur Raspberry Pi, j'ai essayé de m'intéresser un peu à tout, et ça m'a éclaté. Alors j'ai eu une idée.

Crowdfunding for all

Lors de la réalisation de ces projets, j'ai du faire face à plusieurs problèmes, en vrac :

  • schémas faux ou incomplets disponibles sur Internet
  • manque de documentation
  • improvisation avec le matériel du bord
  • achat du matériel réparti sur plusieurs mois, dans le cas de certains projets (Ratbox par exemple)

Depuis mon hack de minitel, j'ai plein d'autres idées qui nécessiterait d'être creusées et que vous pourriez trouver intéressantes :

  • création de périphériques USB maison à base d'Atmega
  • étude de trucs bizarre comme les boîtiers affichant les prix dans les supermarchés
  • module de monitoring réseau électronique à base de micro-contrôleur
  • hacking d'impression 3D (modding, amélioration)
  • étude de matériel divers, des STB aux machins électroniques bizarres

Je ne vous cache pas que pour le coup, je ne suis pas en mesure d'acheter tout ce dont j'ai besoin ou de tenter de les réaliser ... Et là, une petite révélation : pourquoi ne pas faire appel au financement participatif (crowdfunding) ? Bien sûr, l'idée n'est pas de m'acheter tout plein de trucs avec l'argent des autres, loin de là. Par contre, documenter complètement l'ensemble des projets (chose que je fais en partie sur ce blog), partager des documents opensource permettant de reproduire mes bidouilles, ça je sais faire. Et distribuer des trucs et bidules que j'ai créé, ça serait cool.

Open It !

C'est comme cela que le projet "Open It !" est né. Mon premier projet de financement participatif. L'objectif fixé est de 400€, histoire de couvrir les frais d'achat de matériel, et de pouvoir entamer les projets dans le pipe rapidement.

Je vous invite donc à jeter un oeil à ce projet sur Ulule, et si l'initiative vous plaît à la soutenir et en parler autour de vous ! Promouvons l'Open Source Hardware ! Hackons du matériel et faisons des trucs geekesques et fun !

Pour soutenir le projet Open It, c'est par ici =)

06 Oct 20:51

Decoding the mysteries of 'Codex Seraphinianus,' possibly the weirdest book in the world

by Xeni Jardin


A page from Codex Seraphinianus, first published in 1981, an encyclopedia of an imaginary world.

Dangerous Minds interviews Rizzoli publishing house chief Charles Miers about a forthcoming new edition of "Codex Seraphinianus" and about Serafini himself. Miers himself is a long-term fan of the Codex, and so are we.

In October Rizzoli will be republishing what is regarded by many to be the strangest book in the world, the Codex Seraphinianus. The Codex is unlike other historically well-known strange books (such as the Voynich Manuscript), in that the author of the book is not only known (Luigi Serafini is his name), he’s still alive. But the book is just so damned strange that it has accumulated a veritable industry of speculation about its meaning, deeper origins, and whether the language in which it is written actually has any syntax or not. Serafini has said relatively little about it himself over the years, and denies that the script has any meaning, but no one really believes that, including me.

Read the rest of Dangerous Minds' exploration of this strange book, and their conversation with the guy behind its re-publication.

And previously on Boing Boing (2011): "Codex Seraphinianus: semi-licit copy of a semi-legendary book of the weird"

    






28 Sep 21:49

Functional

Functional programming combines the flexibility and power of abstract mathematics with the intuitive clarity of abstract mathematics.
28 Sep 21:45

A Softer World