11 ms·
I solved the embedded Chrome OS ad equation and won a Cr-48
- pavs 16y agoNow its time to figure out how to set up a server that can handle few thousand viewers. Cache: http://webcache.googleusercontent.com/search?q=cache:http://www.sylvainzimmer.com/2010/12/10/first-to-decode-the-chrome-os-video-equation-won-a-cr-48/&hl=en&strip=1 http://webcache.googleusercontent.com/search?q=cache:http://...
- deleted 16y ago[deleted]
- 9ec4c12949a4f3 16y agoNow I'm curious how you got that cache, I tried to grab it from google also but the link was missing..
- jlongster 16y agoI still really don't understand what's so hard about a couple thousand views. I've had a couple posts hit the front page (even #1 on HN and #5 on prog.reddit), and my server was fine. I use Apache to serve the resources and Clojure to handle web requests. Nothing fancy.
- cd34 16y agoWordpress without caching on a VPS that is probably not configured well. w3tc or wp-super-cache would probably fix his issues. Installing it while the site is hammered.... will be fun. Perhaps as challenging as solving the easter egg.
- sudont 16y agoApache redirect to a static page, while he gets the cache plugin set up?
- sylvinus 16y agoexactly what I did... tried to switch apache to port 81 to be able to configure the cache plugin. But even this way, all the disk accesses were taking 30 seconds each... The real error was posting it there in the first place and not directly on the Jamendo blog... Never again! :)
- patio11 16y agoAny out-of-the-box Apache setup on, e.g., Ubuntu will, with absolute certainty, appear to crash if you subject it to several thousand pageviews in a short amount of time. KeepAlive is on by default, and that essentially amounts to turning any group of five or more interested people who share a 3 second window into denial of service attack. This used to drive me freaking bonkers -- I was installing caching plugins, offloading static resources to other domains, tweaking the number of worker processes, etc etc. Nothing worked, and my blog regularly crashed almost every time it hit an audience larger than HN's. Turned off KeepAlive, bam, no problems since.
- jackowayed 16y agoHow hard would it be for them to make it degrade by default? ie. Use KeepAlive until it starts having heavy load, and then disable it when the load becomes a problem.
- cd34 16y agoab with 500 concurrent, no keepalives: Requests per second: 13428.16 [#/sec] (mean) ab with 500 concurrent, keepalives: Requests per second: 14403.98 [#/sec] (mean) Keepalives allow the browser to maintain a socket between the browser and server and request multiple objects. So, rather than having to do a connect/teardown for each object, you remove that overhead. Some versions of Apache in conjunction with php and mysql_pconnect had issues in the past that might explain the OP's issues with keepalives, but, it has piqued my curiosity. In general, keepalives should reduce communication handling and allow more throughput.
- cd34 16y agoIf keepalive fixed it, your configuration had other problems especially if you were using mpm-worker. email me at hnusername@hnusername.com - I'd be interested in talking further. Ubuntu and Debian distribute configs meant for home users/developers - those configs are certainly not made for production webserving.
- ra 16y agoYou mis-understand keep-alive. Keep-alive is good and should be used. The real problem is elsewhere in your configuration. Perhaps I should write a blog post about this.
- blantonl 16y agoVarnish, ahead of time?
- deleted 16y ago[deleted]
- johnrdavisjr 16y agoI can only view the cached version. Looks like he needs a mirror.
- loire280 16y agoOr he needs to implement caching on his Wordpress site. Almost every day there's a popular blog post that misses a large portion of its audience because the author wasn't caching. You'd think that more authors would plan for a traffic spike from aggregators, since that's sort of the holy grail of blogging.
- chaosmachine 16y agoIt's hard to plan for a problem you've never had before. Most people expect it's just going to work.
- johnrdavisjr 16y agoOr that their host can handle the stress.
- Jach 16y agoIn the same vein as caching (and why caching is good) but the less DB activity each page request can generate, the better. Shared hosts seem to be very conservative with how many concurrent DB connections are allowed to be open at any one time, HostGator's limit is I believe 25. But persistent connections are usually available; PHP has mysql_pconnect and mysqli_connect('p:' . $host).
- calloc 16y agoI've always had a lot of issues with mysql_pconnect in PHP. Hung connections, connection reuse causing data corruption, and various other random issues. Generally using just mysql_connect is faster than using mysql_pconnect. On the server I admin for a large website with millions of hits a day we don't use mysql_pconnect.
- 16y ago
- jacquesm 16y agoFrom the article: > most people I know including myself couldn’t live without Chromium/V8 anymore. Is this a common sentiment ?
- thenduks 16y agoThe statement is definitely a bit sensationalist. That said, yes. Even non-techy people I've seen checking out chrome comment on the speed and how much they like the UI.
- jacquesm 16y agoI'll spend some more time with Chrome then, I have it installed but normally only use it for compatibility tests. thanks!
- thenduks 16y agoIt takes a bit to get used to if you're a Firefox 'poweruser' and I'm not sure 'Web Inspector' is quite to the maturity of Firebug yet... Still, it's my primary browser. One cool thing not to miss is in the unified location bar, it does some search stuff via the 'manage' button in the basics pref pane. It auto-senses search fields on various websites and lists them there, then you can go in and setup a trigger for it (eg, wikipedia => W, google images => gi, etc).
- knackers 16y agoSir you have just made my day.
- joshuacc 16y agoI'm not sure how common it is, but I share the sentiment. I find it incredibly painful to use any browser besides Chrome because of how slowly they run (even with all extensions turned off).
- simonsarris 16y agoI can relate, though maybe he is being a tad sensationalist. I expect (say) my bookmarks to be synced between all my computers. I'm sure plugins do this on other browsers, though. The biggest reason I don't consider Opera or FF for daily use anymore: Non-chrome browsers drive me crazy due to the way they close tabs. It is very stressful compared to mouse-closing tabs in Chrome and its "smart positioning."
- Soupy 16y agoThe equation - http://img545.imageshack.us/i/chromeequation.jpg/ http://img545.imageshack.us/i/chromeequation.jpg/
- cosgroveb 16y agoThanks for the link but the first few times I tried to load this page the image was broken. imgur is awesome, give it a try sometime!
- riobard 16y agoSome symbols are hard to see, but I hope it is right. LaTeX'ed version: http://yfrog.com/gyegnp http://yfrog.com/gyegnp
- jonovos 16y agoYes, this is what I saw. HOWEVER, when you run he numbers, you can NOT get the same values that Google represents. The value for "C" is WRONG! It should be 8338041. This changes everything. ===> http://goo.gl/fpJsJ http://goo.gl/fpJsJ
- daok 16y agoI dont get that : "we realized “900.91″ did actually reference the goo.gl url shortener" I do not see how he did that?
- deleted 16y ago[deleted]
- deleted 16y ago[deleted]
- watty 16y agoYou don't see any similarities between "900.91" and "goo.gl" ?
- thenduks 16y agoJust tilt your head a bit :) 9 -> g 0 -> o 1 -> l
- daok 16y agooh thank you! haven't realise that!
- thasmin 16y agoThere isn't one standard way to convert a latitude / longitude coordinate into a x/y coordinate for a map. Google Maps was the first to use the Spherical Mercator projection. The EPSG (?) number used to reference the Spherical Mercator was originally 900913. EPSG:3785 now refers to the Spherical Mercator too. http://docs.openlayers.org/library/spherical_mercator.html http://docs.openlayers.org/library/spherical_mercator.html
- flawawa2 16y agoWell, now please make Jamendo a joy to use...
- sylvinus 16y agotrue... we're not happy with the current state of the jamendo.com website. 2010 was mostly focused on getting close to breakeven thanks to jamendo.pro (which we did). We also did a management buyout from our former VCs, laid of a lot of staff, so all in all, we're just happy to still be there, growing, and hiring again :) Now we have several ongoing usability projects, we released a HTML5 player a few weeks ago (replacing the old Flash crap) and are now working on layout and stability improvements on the main pages. It will definitely make Jamendo a complete joy to use again, if we can just spare some time from breaking Google easter eggs ;-) cheers!
- p206 16y agoI think the site is great! One minor annoyance: the volume gets reset to about 75% when I close the player completely and re-open it (but not when I switch to a new album with the player still open). The problem with that is that it is too loud for my setup, and I end up having to lower it each time. It would be great if it could remember its last value.
- sylvinus 16y agothanks p206.. we'll fix that ASAP :) Hope you found some music you love! cheers
- sraquo 16y agoWhile you're fixing UI please consider fixing Jamendo PRO search interface. Your database seems to have more information than you allow to filter by (I really need to filter by tags, e.g. I want something fast, dark and agressive). I spent days trying to find music for my game on multiple websites and I can definitely say that pretty much everyone's music search sucks. If you make yours awesome, you'll definitely stand out.
- kilovoltaire 16y ago24 occurrences of ";-)" — true happiness!
- mcav 16y agoKudos. Too bad that special page didn't also include a job interview offer.
- sylvinus 16y agohi guys. I'm Sylvain who solved the thing, thanks for relaying the info here! :) The blog indeed crashed, it's on a very small VM with a remote filesystem and even with a WP cache plugin.. not so much luck, even with apache stopped. However our company blog has a proper sysadmin ;-) So after I setup a redirect there no more issues... until we get on slashdot maybe ? :) Cheers!
- nategraves 16y agoFrom the screenshot of the form you got after solving the equation, it looks like you need to have a U.S. address to receive the Cr-48, and it would appears poor you're located in Paris/Luxembourg. You need someone to forward it on to you? ;)
- sylvinus 16y agoyes that's also a funny side of the story. As I was going trough the border on tethering, with barely any cellphone reception, I was trying to fill out the "one-time" form without any U.S. address in mind ;-) Luckily I have a cousin in Houston so gave him a quick call to get his address and I submitted the form as soon as I got my data link back up :) generally speaking, it's extremely frustrating for an european startup to see these regular U.S. only launches from Google. (come to mind Google Voice, ebookstore, google music, and now Cr-48...) But well, small price to pay to enjoy living in Paris most of the time :)
- jlees 16y agoAs a European working at Google (and there are plenty of us), I feel your pain. However, although so many things are easy to scale internationally, products with licensing and regulations are not in that category. We do work actively on making this less and less the case, though.
- sylvinus 16y agoyes, indeed. I can imagine carrier or licensing deals being complex... that's why I said we were just frustrated, not angered against Google :) Cool that you work on the Chrome team. Can you share more insider info with us about this story and its makeof ? ;-) thanks!
- deleted 16y ago[deleted]
- codeglomeration 16y agoFrom the screenshot of the secret page: "Also, we can only give you a Chrome notebook if you live in the United States and ... " I find it such a shame that these types of conditions are so popular for most contests / easter eggs, etc. Are the legal issue regarding this that complex? I'm assuming Google is not really that cheap regarding postage costs, since we're also only talking about 1 notebook here. Also interested how it all worked out for Jamendo, since (from what I see) they're based in Luxembourg.
- chris24 16y agoIt appears to be an issue with wireless regulations.
- jonhendry 16y agoI doubt it. It applies to most giveaways of any kind (free posters, free calendars, etc). They usually only accept entrants from one country or equivalent legal entity. I expect it's because of variation in contest-related laws between countries, tax laws, etc.
- crocowhile 16y agoYes, in some countries if you advertise a public contest you first have to register it and vet it with your government, who then make sure everything is done fairly. That is something google simply cannot afford to do. I am sure they will find a way to reward jamendo somehow. They'll invite the guys for a formal visit and give them business cards in the shape of netbooks, at the very least.
- deleted 16y ago[deleted]
- duck 16y agoIf I figured that out and won a Cr-48 I would be all smiles too.
- xaverius 16y agoGoogle Chrome blog has a post about this. Congrats to the Jamendo guys. http://chrome.blogspot.com/2010/12/x-g-chrom-3.html http://chrome.blogspot.com/2010/12/x-g-chrom-3.html
- jonovos 16y agoGoogle's blog should be read carefully. There are errors in this. ==> http://goo.gl/fpJsJ http://goo.gl/fpJsJ
- jonovos 16y agoUh-oh. No you didn't. The value for "C" is INCORRECT. ==> http://goo.gl/fpJsJ http://goo.gl/fpJsJ