background preloader

News & articles

Facebook Twitter

Google Glass

REGEX et PREG - assertions avant-arrière (lookahead & lookbehind assertions) : récupérer les chaînes qui ne contiennent pas un mot particulier. Par Albin - le 09/05/2010 à 16:28 Comment écrire une expression régulière qui n'accepte que les chaînes de caractères qui ne contiennent pas tel mot ou telle expression. Une réponse avec les assertions avant-arrière (lookahead & lookbehind assertions) Commentaires : 5 C'est un problème récurrent sur les forums de développeurs : comment écrire une expression régulière qui n'accepte que les chaînes de caractères qui ne contiennent pas tel mot ou telle expression. 1. '/element(?

Cette assertion "? Preg_match_all('/\b\w+\b(? L'élément ici est "\b\w+\b", c'est-à-dire un seul mot quelconque, le pattern ", mais". 2. '/element(?! Cette assertion "?! " preg_match_all('/\b\w{3}\b(?! L'élément ici est "\b\w{3}\b", le pattern ", mais". 3. '/(? Cette assertion "? Preg_match_all('/(? L'élément ici est "\b\w{4}\b", le pattern "oui, ". 4. '/(? Cette assertion "? Preg_match_all('/(? L'élément ici est "\b\w{2}\b", le pattern toujours "oui, ". Les choses sont plus claires maintenant? Echo preg_match('/^((?! Indique 1. Styleguide - Style guides for Google-originated open-source projects. Styleguide. Www.linux-france.org/article/these/cathedrale-bazar/cathedrale-bazar.html#toc11. The Internet map. The map of the Internet Like any other map, The Internet map is a scheme displaying objects’ relative position; but unlike real maps (e.g. the map of the Earth) or virtual maps (e.g. the map of Mordor), the objects shown on it are not aligned on a surface.

Mathematically speaking, The Internet map is a bi-dimensional presentation of links between websites on the Internet. Every site is a circle on the map, and its size is determined by website traffic, the larger the amount of traffic, the bigger the circle. Users’ switching between websites forms links, and the stronger the link, the closer the websites tend to arrange themselves to each other. Charges and springs To draw an analogy from classical physics, one may say that websites are electrically charged bodies, while links between them are springs. Springs pull similar websites together, and the charge does not let the bodies adjoin and pushes websites apart if there is no link between them.

Semantic web The Internet Phenomenon. Expérience de Milgram. Un article de Wikipédia, l'encyclopédie libre. Reconstitution de l'expérience de Milgram (extrait)[1] L’expérimentateur (E) amène le sujet (S) à infliger des chocs électriques à un autre participant, l’apprenant (A), qui est en fait un acteur. La majorité des participants continuent à infliger les chocs jusqu'au maximum prévu (450 V) en dépit des plaintes de l'acteur. L'expérience de Milgram est une expérience de psychologie réalisée entre 1960 et 1963 par le psychologue américain Stanley Milgram. Cette expérience cherchait à évaluer le degré d'obéissance d'un individu devant une autorité qu'il juge légitime et à analyser le processus de soumission à l'autorité, notamment quand elle induit des actions qui posent des problèmes de conscience au sujet.

Les résultats ont suscité beaucoup de commentaires dans l’opinion publique, mais la méthode utilisée a fait naître critiques et controverses chez les psychologues et les philosophes des sciences. Fac-similé de l'annonce. Tech news & articles. Things You Should Never Do, Part I. By Joel Spolsky Thursday, April 06, 2000 Netscape 6.0 is finally going into its first public beta. There never was a version 5.0. The last major release, version 4.0, was released almost three years ago.

It's a bit smarmy of me to criticize them for waiting so long between releases. Well, yes. They decided to rewrite the code from scratch. Netscape wasn't the first company to make this mistake. We're programmers. There's a subtle reason that programmers always want to throw away the code and start over. It’s harder to read code than to write it. This is why code reuse is so hard. As a corollary of this axiom, you can ask almost any programmer today about the code they are working on.

Why is it a mess? "Well," they say, "look at this function. Before Borland's new spreadsheet for Windows shipped, Philippe Kahn, the colorful founder of Borland, was quoted a lot in the press bragging about how Quattro Pro would be much better than Microsoft Excel, because it was written from scratch. Next: Mozilla may make Flash click-to-play by default in future Firefox. Firefox developers are considering making Web plugins like Adobe Flash an opt-in feature. Although there is still a long way to go before it’s ready for Firefox proper, switching to an opt-in, "click-to-play" approach for plugins could help make Firefox faster, more secure, and a bit easier on the laptop battery.

A very early version of the "click-to-play" option for plugins is now available in the Firefox nightly channel. Once that’s installed you’ll need to type about:config in your URL bar and then search for and enable the plugins.click_to_play flag. Once that’s done, visit a page with Flash content and it won’t load until you click on it. While HTML5 reduces the need for Flash and other plugins, they’re still a big part of the Web today. Another popular solution is the click-to-play approach that Mozilla developers are considering. Whether or not the click-to-play approach that Mozilla is considering will ever become the default behavior for Firefox remains to be seen. Pluto Scarab — Hash Functions. SMAC - Publications. Anatomy of Facebook. Don't give away your product for free...

…unless you plan to keep it free forever. The Cost of Free Doughnuts, a story on NPR shows what happens when you make something paid that was once free. During WWII, the Red Cross, which used to give away free coffee and doughnuts started charging servicemen for doughnuts at the behest of the US Government. Veterans still remember this 70 years later! The reporter goes and finds some veterans and asks about the Red Cross and they go OFF about having to pay for doughnuts. Now, any time there is an event for veterans, the Red Cross brings free doughnuts but their reputation is still tarnished in the memories of these vets. The reason that it sticks in someone’s mind is because going from free to paid is a “Categorical Change”. The psychological difference between $1 and $2 is minuscule compared to the difference between ZERO and $1. Zero isn’t a pricing strategy, it’s a different category A popular strategy for SaaS products is to be free until you figure out pricing.

Here’s why: (28) How to master your time - Leading a better life - Quora. Imagine you were a Jedi master called Bob (your parents, whilst skilled in the ways of the force weren’t the best at choosing names). The love of your life - Princess Lucia – is trapped in a burning building as you hurry to save her. You might think of Lucia as the embodiment of your dreams, your aspirations – she is your most important thing. Unfortunately, before you can reach her an army of stormtroopers open fire. The incoming stream of lasers demand your attention – if you fail to dodge them, you’re dead. We all know how a hero resolves this dilemma. The secret to mastering your time is to systematically focus on importanceand suppress urgency. {*style:<ul>*}{*style:<li>*}{*style:<b>*}Schedule your priorities.

The “Unhyped” New Areas in Internet and Mobile. Editor’s note: Legendary investor Vinod Khosla is the founder of Khosla Ventures. You can follow him on Twitter at @vkhosla. All Khosla Ventures investments, as well as ventures related to Vinod Khosla, are italicized. We are in a whole new world of platforms, a post-PC era, which I’d more aptly describe as the always/everywhere era, finally, and that means a whole new set of opportunities.

Add to it the fact that because of a variety of factors too numerous to cover here, the cost of experimentation has gone down dramatically (one can start a web startup or write an Android app with no more than a student credit card!) What you get as a result are the recent successes in the Internet/mobile space like Facebook, Twitter, LinkedIn, Zynga, Groupon and others, all of which have reenergized both entrepreneurs and investors. A few will be successful, many will fail, some will be acquired for a piece of technology or for the team (acqui-hires). So, what have I left out?

Open source

Metcalfe's law. Two telephones can make only one connection, five can make 10 connections, and twelve can make 66 connections. Metcalfe's law states that the value of a telecommunications network is proportional to the square of the number of connected users of the system (n2). First formulated in this form by George Gilder in 1993,[1] and attributed to Robert Metcalfe in regard to Ethernet, Metcalfe's law was originally presented, circa 1980, not in terms of users, but rather of "compatible communicating devices" (for example, fax machines, telephones, etc.)[2] Only more recently with the launch of the Internet did this law carry over to users and networks as its original intent was to describe Ethernet purchases and connections.[3] The law is also very much related to economics and business management, especially with competitive companies looking to merge with one another.

Network effects[edit] Limitations[edit] Business practicalities[edit] Modified models[edit] See also[edit] References[edit] RFC 3501 - INTERNET MESSAGE ACCESS PROTOCOL - VERSION 4rev1 (RFC3501) Why programmers work at night. [This essay has been expanded into a book, you should read it, here] Image via Wikipedia A popular saying goes that Programmers are machines that turn caffeine into code. And sure enough, ask a random programmer when they do their best work and there’s a high chance they will admit to a lot of late nights. Some earlier, some later. A popular trend is to get up at 4am and get some work done before the day’s craziness begins. Others like going to bed at 4am. At the gist of all this is avoiding distractions. I think it boils down to three things: the maker’s schedule, the sleepy brain and bright computer screens. The maker’s schedule Paul Graham wrote about the maker’s schedule in 2009 – basically that there are two types of schedules in this world (primarily?).

On the other hand you have something PG calls the maker’s schedule – a schedule for those of us who produce stuff. This is why programmers are so annoyed when you distract them. The sleepy brain Because being tired makes us better coders.