November 11th, 2009

ronin

Programming problem: Given an integer N, find the smallest prime >= N.


http://www.gully.org/~mackys/findprime.c.txt

http://www.reddit.com/r/coding/comments/a3659/a_coding_challenge_given_an_integer_n_find_the/c0fmqtf

This was mostly interesting to me from a mathematical perspective. I was surprised and gratified to find out that there was such a simple and easy upper bound for pi(x). Also, the 6k+1/6k+5 optimization.

When I first read this problem, my intuition told me that there was a prime between N and 2N. Couldn't prove it if my life depended on it, but somehow I just knew... and lo and behold: http://en.wikipedia.org/wiki/Bertrand%27s_postulate !
Trajedy... for YOUUUUUUUUUUUU!!!!

Dear Google: QUIT REDIRECTING MY DROID TO YOUR MOBILE SITE.


QUIT USING MY USER-AGENT: HEADER TO SEND ME TO A SHITTY, NON-FUNCTIONAL PAGE FULL OF FUCKING JAVASCRIPT (WHICH I DISABLED WITHIN THE FIRST TEN SECONDS OF PICKING THIS THING UP!). I DON'T WANT TO SEE YOUR FUCKING USELESS, LOSING, FAILURE, PIECE OF SHIT "MOBILE" SITE!

I type in http://google.com, I get a blank page on my Droid. Laying down a bookmark reveals that I've been redirected to "http://www.google.com/m?client=ms-android-verizon".

Google: Stop this worthless-ass bullshit NOW.

You stupid-ass, fuck-tarded morons. You really did this? REALLY?

Nobody wants a "mobile" web browser. Nobody wants to see your ugly-ass, half-broken "mobile" site. IT CHOKES ON TEN THOUSAND BUCKETS OF COCK.

AND EVERYBODY IN THE ENTIRE WORLD KNOWS THIS. EXCEPT (APPARENTLY) YOU.


...

Been a while since I used <font size=9>...

The bigger question is, do you think Google and Verizon will give a goddamn? I, myself, do not. I believe Google has some kind of backroom deal going with Verizon to redirect Droid traffic to certain pages. And they don't give a damn if nobody likes it, or if it ruins people's ability to use Google, because there's big bucks involved.

So, as usual, I'm just howling at the moon here... because I just enjoy howling at the moon.

I guess my Droid goes back to the Verizon store TOMORROW.


Edit: I recommend Droid owners set a bookmark at:

http://www.google.com/search?q=FuckYouGoogleAndFUCKYourUsabilityDestroyingAndroidUser-AgentRedirection

That will allow you to use Google search without getting redirected to the broken-ass Javascript-required mobile page. It will also leave a big pile of shit in the search text box. Just click on said box, then do ALT-DEL to clear it all out.

Now that I have workaround, I'll give Google a little more time to fix this problem...

(In the mean time: The physical keyboard space bar will go down a page in the web browser. Shift-Space goes back a page.)