Shared posts

16 Jun 07:06

Stop Doing Internet Wrong.

by Scott Hanselman
firehose

"You know my Zip Code, why am I entering my State?"
Fuck flyover haters. About 300 ZIP codes cross state borders, notably several dozen in Cincinnati and El Paso; edge cases, sure, but no, you cannot rely on ZIP codes to match states.

"Your browser is announcing what languages you speak with every web request."
Fuck the poor and kiosks. Not everyone can control what's sent in the header because not every computer is owned by its user.

Some days...some days it's frustrating to be on the web. We're compiling C++ into JavaScript and running Unreal in the browser but at the same time, here in 2013, we're still making the same mistakes. And by we, I mean, the set of web developers who aren't us, right Dear Reader? Because surely you're not doing any of these things. ;)

All of these are solvable problems. They aren't technically hard, or even technically interesting. I consider these "will-required" problems. You need the knowledge that it's wrong and the will to fix it. As users - and web developers - we need to complain to the right people and help fix it.

Redirecting a deep desktop link to a mobile home page

Google has decided that the practice of taking perfectly good deep links like foo.com/something/deep, detecting a mobile device, then redirecting to m.foo.com is user-hostile. In fact, the GoogleBot is going to declare these "faulty redirects" and ding sites in the search result ranking. Stated simply:

Avoiding irrelevant redirects is very easy: Simply redirect smartphone users from a desktop page to its equivalent smartphone-optimized page. If the content doesn't exist in a smartphone-friendly format, showing the desktop content is better than redirecting to an irrelevant page.

For example, if I want to go to the http://www.mcmenamins.com/Pubs page, but I do it on mobile, they ALWAYS redirect me to /mobile. Always. Even though I have a quad-processor pocket supercomputer with gigs of space I've still surfing a second-class internet.

image image

I don't want your crappy app

That means you Quora. I am in my browser, unless I'm going to the App Store, let's assume if I'm in the browser, I want to be on the web.

You suck Quora

Giant Interstitial Ads

I'm looking at you, Forbes.com. I GET IT. YOU HAVE ADS.

Interstitial Ads are Evil

Stay classy.

Labels for Input Forms

I hate seeing a checkbox and only being able to click on that exact checkbox.

<p>Which fruit would you like for lunch?</p>

<form>
<input type="radio" name="fruit" id="banana" />
<label for="banana">Banana</label>
<input type="radio" name="fruit" id="None" />
<label for="none">None</label>
</form>

It's so easy to just associate a label with an input. Please do  it, then we can all have something larger to click on.

Breaking Hyperlinks

We're still doing this. Haven't we learned that Cool URIs Don't Change? It was true in 1998 when that was written and it's true now. The web as we know it was created in 1990 and made truly open in 1993 and the link to the First Web Page (yes, Capital Letters) is still http://info.cern.ch/hypertext/WWW/TheProject.html. I love that they've done the work to keep that link alive.

There's just no excuse for this. With .htaccess files and web.config files, maintain a list of redirects and do your best to test them. Maintaining deep and complex links can be complex, but if you're companyname.com/about link dies because you switch from PHP to Rails, there's just no excuse for that. I'm your User and I have always typed /about. Don't' give me a To Do like "Update your bookmarks!" I didn't come here for a To-Do, I came her for your damn about page. YOU figure it out.

image

Click the Flag that represents your Language

I've often been asked to "select my language" from a list of country flags, and ended up clicking on the Union Jack to represent "English." I'm sure the actual English don't appreciate an American declaring they speak English. ;)

Nothing says pick a language like all the United Nations Flags

but I know I'm not the only one who realizes that a Flag is a lousy representation of a language, especially since your browser is announcing what languages you speak with every web request.

Accept:text/html

Accept-Encoding:gzip,deflate,sdch
Accept-Language:en-US,en;q=0.8

There can be a whole list of languages in the Accept-Language header, in the order the user prefers them!  Use that data, it's there for you to use.

You know my Zip Code, why am I entering my State?

For folks living in the states, we're always asked to enter our postal code (ZIP code) and our city and state, even though there are dozens of great APIs and Databases that can give you that information.

Don't make me enter my state

The meta-point is this: If you can reliably determine something from the user (language, location, country, preference) without invading their privacy, do it! Save them a little time!

Resizing Giant Images with width and height attributes

Perhaps take a moment and remind your boss that the 6 megapixel photo that he or she took with their new Canon EOS is not a good background image for your corporate site...especially if it's a 4 megabyte JPGs.

Oh, that's OK, we can just <img src="bigassfile.jpg" width="100" height="100"> and that will make it smaller. No, that just downloads the giant file and then makes your browser do the work to resize it on the client.

Big ass picture

Resize first, and squish often. Also run all your PNGs through PNGGauntlet or PNGOut.

Serving pages from both www. and naked domains

If you've got example.com/something AND www.example.com/something both serving up the same content, consider "canonicalizing" your URLs. You can do this with rel="canonical" in your META tags, but that only hides the problems and makes the Googlebot happy. Instead, why not PICK ONE and serve a 301 redirect to the other? Did you know that there are rules built into IIS7 that will set this up for you? You can even remove your .aspx extension if that makes you happy. You can do it!

image

The same is true if you do the same thing for / and /default.html. Pick one if you can, and redirect the other.

<system.webServer>

<rewrite>
<rules>
<rule name="CanonicalHostNameRule1" stopProcessing="true">
<match url="(.*)" />
<conditions>
<add input="{HTTP_HOST}" matchType="Pattern" pattern="^hanselman\.com$" ignoreCase="true" negate="false" />
</conditions>
<action type="Redirect" url="http://www.hanselman.com/{R:1}" redirectType="Found" />
</rule>
<match url="blog/default.aspx" />
<action type="Redirect" url="blog/" redirectType="Found" />
</rule>
<rules>
<rewrite>
<system.webServer>

Others?

What are some great examples that you think Break The Internet...but that are easily fixed if we have the will?


Sponsor: Big thanks to RedGate for sponsoring the feed this week! Check out Deployment Manager – app deployment without the stress. Deploy .NET code & SQL Server databases in one simple processfrom a web-based UI. Works with local, remote and cloud servers. Try it free.


© 2013 Scott Hanselman. All rights reserved.
     
16 Jun 06:57

Ortiz-Heymann: the Prior Generation

by Soulskill
firehose

everything is terrible

theodp writes "Two decades before the White House was petitioned to remove U.S. Attorney Carmen Ortiz and her Assistant U.S. Attorney Stephen Heymann from their jobs for the allegedly overzealous prosecution of Aaron Swartz, the Boston Globe reported on allegations of 'sometimes heavy-handed tactics and inaccuracies' of an NFL investigation into sexual harassment charges made by a sportswriter against the New England Patriots that was led by Watergate prosecutor Philip Heymann (Stephen's father) and included Ortiz. 'From the day Philip Heymann and his colleagues walked into Foxboro Stadium to investigate Lisa Olson's charges of sexual harassment,' the Globe reported, 'the New England Patriots were on the defensive, and apparently, they stayed there to the end. One day after conducting a preliminary six-hour interview with Olson, Heymann introduced each investigator to the Patriots and outlined their backgrounds at a meeting he later called benign. Yet he also said two weeks ago, "They were frightened from the beginning by the way I introduced people. I said that Jerry O'Sullivan had been US Attorney. I said Jim Ring had been FBI special agent in charge of organized crime."' Regarding Ortiz, the Globe reported, 'Heymann investigator Carmen Ortiz wrote in a memo of her Oct. 18, 1990, interview with [Lisa Olson] that she took no notes and did not tape-record the conversation. Yet she used direct quotes when writing up her 15-page report on the session. When asked to explain, she referred the Globe to Heymann.' Aside from transcripts of two interviews (the tapes of which were destroyed), the Globe reported the NFL kept no notes on its interviews with 89 other people. '"It was contemplated that there would be a motion such as this [a lawsuit by Olson] and we did not want to create that type of document," an NFL attorney explained. According to the Globe, an attorney representing the Patriots said that 'one reason the tapes were destroyed may be that the NFL did not want anyone to hear raised voices or pounding of tables. He said some of those interviewed were not allowed to leave the room and had their livelihoods threatened if they did not cooperate.' Curiously, the elder Heymann featured prominently in a recently-upheld DOJ motion to keep the names of key people involved in the Aaron Swartz case secret — a postcard threat received by Philip Heymann was cited by Ortiz's office as evidence of why such secrecy was necessary."

Share on Google+

Read more of this story at Slashdot.



16 Jun 06:38

Pitchfork editor Brandon Stosuy tweets about Yeezus

by gguillotte
I think this is the first time Bon Iver's been involved in a song that mentions fisting. Bret Easton Ellis has to be listed as "spiritual guru" somewhere on this thing. I just pictured Bruce Jenner listening to Yeezus. Happy Father's Day.
16 Jun 06:23

Updated Debian 7: 7.1 released

The Debian project is pleased to announce the first update of its stable distribution Debian 7 (codename wheezy). This update mainly adds corrections for security problems to the stable release, along with a few adjustments for serious problems. Security advisories were already published separately and are referenced where available.
16 Jun 06:22

@gguillotte >> @failgunner: Ugh : http://www.macstories.net/news/automattic-acquires-poster-for-ios/

firehose

"Following the acquisition, Poster has been removed from the App Store and is no longer available for sale. According to Witkin, the best features of the app will be incorporated into the official WordPress app over time."

16 Jun 06:21

hardcoregurlz: Virginia Hankins

by joanna-molloy


hardcoregurlz:

Virginia Hankins

16 Jun 06:21

Yes, you really can make complex webapps responsive

by gguillotte
'In my haste to get the new design live, I had implemented a lot of responsive half-measures that had left the site completely unusable and broken on mobile devices. This article explains how we refactored an interface that wasn’t originally built with mobile in mind, to have a decent mobile experience. All while avoiding that dreaded term, complete rebuild.'
16 Jun 06:20

Retro-Bit's wireless N64 controllers are just smashing

by Richard Mitchell
RetroBit's wireless N64 controllers are just smashing
Everyone was talking about the PlayStation 4, Xbox One and Wii U during E3 this year, but the highlight of the Innex booth wanted nothing to do with these newfangled gadgets. I'm talking about Retro-Bit's Wireless Hypermode controllers for the N64.

I got a chance to try out one of these controllers with the original Super Smash Bros - serendipitously right before my interview with its creator, Masahiro Sakurai - and it seemed to work swimmingly. I didn't notice any significant input latency, and was able to perform smash attacks without any trouble (as Samus, obviously).

I doubt I spent more than five minutes with it, so I can't speak to longterm concerns like connectivity issues or battery life, but the initial impression was definitely a positive one. The build quality felt good, though not as high as official Nintendo controllers. The analog stick in particular felt like it didn't have as much weight or resistance to it as an official pad - more or less how you would expect a third-party controller to feel.

Connection is achieved via a receiver plugged into the console's controller ports. The receiver has a connection button and a slot for a memory card or Rumble Pak. Obviously you won't be feeling any of those rumbles from across your living room, but at least the option is there for any games that require the Rumble function (like finding secrets in Ocarina of Time, etc).

The Wireless Hypermode N64 controller is slated to arrive this summer for $30. A Genesis version and an NES / SNES hybrid version are panned for this fall at the same price.

JoystiqRetro-Bit's wireless N64 controllers are just smashing originally appeared on Joystiq on Sat, 15 Jun 2013 16:30:00 EST. Please see our terms for use of feeds.

Permalink | Email this | Comments
16 Jun 06:18

Image-based SVG Masking

by Mihai Parparita

Image-based masking was first introduced by WebKit a few years ago, and has proven to be a useful CSS feature. Unfortunately browsers without a WebKit lineage do not support it, which makes it a less than appealing option for cross-browser development. There is however the alternative of SVG-based masking, introduced by Firefox/Gecko at least partly in response to WebKit's feature. My goal was to find some way to combine the two mechanisms, so that I could use the same image assets in both rendering engines to achieve the masking effect. My other requirement was that the masks had to be provided as raster images (WebKit can use SVG file as image masks, but some shapes are complex enough that representing it as a bitmap is preferable).

SVG supports an <image> element, so at first glance this would just be a matter of something like:

<style>
.mask {
  -webkit-mask: url("mask.png");
  mask: url(#svgmask);
}
</style>

<svg>
  <mask id="svgmask">
    <image xlink:href="mask.png" />
  </mask>
</svg>

Unfortunately, depending on your mask image, when trying that, you will most likely end up with nothing being displayed. A more careful reading shows that WebKit's image masks only use the alpha channel to determine what gets masked, while SVG masks use the luminance. If your mask image has black in the RGB channels, then the luminance is 0, and nothing will show through.

SVG 2 introduces a mask-type="alpha" property that is meant to solve this very problem. Better yet, code to support this feature in Gecko landed 6 months ago. However, the feature is behind a layout.css.masking.enabled about:config flag, so it's not actually useful.

After more exploration of what SVG can and can't do, it occurred to me that I could transform an alpha channel mask into a luminance mask entirely within SVG (I had initially experimented with using <canvas>, but that would have meant that masks would not be ready until scripts had executed). Specifically, SVG Filters can be used to alter SVG images, including masks. The feColorMatrix filter can be used to manipulate color channel data, and thus a simple matrix can be used to copy the alpha channel over to the RGB channels. Putting all that together gives us:

<style>
.mask {
  -webkit-mask: url("mask.png");
  mask: url(#svgmask);
}
</style>

<svg>
  <filter id="maskfilter">
    <feColorMatrix in="SourceAlpha"
                   type="matrix"
                   values="0 0 0 1 0
                           0 0 0 1 0
                           0 0 0 1 0
                           0 0 0 1 0" />
  </filter>

  <mask id="svgmask">
    <image xlink:href="mask.png" filter="url(#maskfilter)" />
  </mask>
</svg>

I've put up a small demo of this in action (a silhouette of the continents is used to mask various textures). It seems to work as expected in Chrome, Safari 6, and Firefox 21.

16 Jun 06:17

Photo



16 Jun 06:17

Photo



16 Jun 06:17

Mysterious death of Yuri Gagarin, the first person in space, possibly solved after 45 years

by Jacob Kastrenakes

The mysteries surrounding the death of Yuri Gagarin — the first human to ever travel into outer space — may finally have been solved thanks to fellow Russian astronaut Alexey Leonov. Gagarin's death in 1968 was the result of a plane crash, but just how he came to crash has been subject to conspiracies and speculation for decades. Previous theories have suggested that while piloting a test flight Gagarin made a poor maneuver or blacked out. But according to Russia Today, Leonov was there that day, and he's finally spoken out to say that he believes a supersonic jet knocked Gagarin's plane into a tailspin that he couldn't recover from.

Why Leonov didn't speak until now underscores why the cause of Gagarin's crash was covered up. According to RT, the military jet was supposed to be flying quite high in the air — over six miles up — but it was instead incredibly close to land, only about one-third of a mile high. The slip up may have been an embarrassment that the government didn't want publicized, especially following the death of an important national figure. Leonov was only recently given clearance to see the original incident reports, finally allowing him to put together what actually happened. RT reports that between Leonov's memories, some computer simulations, and peer review, this account could be the final word on Gagarin's death.

16 Jun 06:16

Last night I joined Ali at the wedding of his boss’s,...

firehose

via Snorkmaiden



Last night I joined Ali at the wedding of his boss’s, neighbour’s, daughter’s wedding in Spandau, with approximately 380 guests. Ali met me at the cafe after my shift and we left from there, and this is what he wore! 

16 Jun 06:14

Tumblr

by saripipicamasiripi
firehose

via Rickatyahoodotcom

16 Jun 06:13

Metal from 12 year olds

by Cory Doctorow
firehose

via Snorkmaiden

Unlocking the Truth is an an awesome heavy metal band made up of 12-year-old schoolkids who've been playing together since they were five. They totally, utterly rock.

Videos - Unlocking the Truth (Thanks, Lachlan!)

    


16 Jun 06:13

Photo

firehose

via Rickatyahoodotcom







16 Jun 06:13

Photo

firehose

via Tadeu
attn: saucie



16 Jun 06:11

Photo

firehose

via Toaster Strudel



16 Jun 06:10

Why you should care about surveillance

by Cory Doctorow
firehose

via Tadeu

I got tired of people savvying me about the revelations of NSA surveillance and asking why anyone would care about secret, intrusive spying, so I wrote a new Guardian column about it, "The NSA's Prism: why we should care."

We're bad at privacy because the consequences of privacy disclosures are separated by a lot of time and space from the disclosures themselves. It's like trying to get good at cricket by swinging the bat, closing your eyes before you see where the ball is headed, and then being told, months later, somewhere else, where the ball went. So of course we're bad at privacy: almost all our privacy disclosures do no harm, and some of them cause grotesque harm, but when this happens, it happens so far away from the disclosure that we can't learn from it.

You should care about privacy because privacy isn't secrecy. I know what you do in the toilet, but that doesn't mean you don't want to close the door when you go in the stall.

You should care about privacy because if the data says you've done something wrong, then the person reading the data will interpret everything else you do through that light. Naked Citizens, a short, free documentary, documents several horrifying cases of police being told by computers that someone might be up to something suspicious, and thereafter interpreting everything they learn about that suspect as evidence of wrongdoing. For example, when a computer programmer named David Mery entered a tube station wearing a jacket in warm weather, an algorithm monitoring the CCTV brought him to the attention of a human operator as someone suspicious. When Mery let a train go by without boarding, the operator decided it was alarming behaviour. The police arrested him, searched him, asked him to explain every scrap of paper in his flat. A doodle consisting of random scribbles was characterised as a map of the tube station. Though he was never convicted of a crime, Mery is still on file as a potential terrorist eight years later, and can't get a visa to travel abroad. Once a computer ascribes suspiciousness to someone, everything else in that person's life becomes sinister and inexplicable.

The NSA's Prism: why we should care

    


16 Jun 06:08

Photo

firehose

via Tadeu



16 Jun 06:07

Prince Of Persia Code Review

firehose

via Tadeu

On Apr 17, 2012 Jordan Mechner released the source code of Prince of Persia. I immediately took at look at it!
16 Jun 06:06

Brian Eno Caturday

by Xeni Jardin
firehose

via multitasksuicide

Did you know that ambient electronic music pioneer Brian Eno starred in an ad for Purina brand cat food, in an alternate universe? Richard Metzger at Dangerous Minds has an exclusive, here. Also large size version of this spectacular find.
    


16 Jun 06:05

Photo



16 Jun 06:04

yes relax i cook for u 

firehose

via Rickatyahoodotcom



yes relax i cook for u 

16 Jun 05:20

The Little Known Cult Hit Show on Netflix

by Brad
firehose

via Rickatyahoodotcom

Example-show
16 Jun 05:12

Evil Spirits

by NixonSixx
firehose

via Snorkmaiden
great packaging wasted on vodka

16 Jun 00:33

Photo



15 Jun 20:30

Sarah Palin On Syria: 'Let Allah Sort It Out'

firehose

amercia

Former GOP vice presidential candidate and Alaska governor Sarah Palin told a Washington audience Saturday that the U.S. should not get involved in the Syrian civil war. Then she offered her own solution.
15 Jun 20:29

Metal Massacre #1 (Germany) 1984

by J Neth.
firehose

via Snorkmaiden
attn: multitasksuicide, Russian Sledges, Overbey, etc.

Metal Massacre #1 (Germany) 1984 (in German/auf Deutsch). Editors: “Dieter Machleid” and “Mario Erceg”

A relic from the German heavy metal scene circa 1984. I did not see an actual date printed anywhere, but judging by the albums featured, I can safely say this was put together in the latter half of ’84, and might have seen an early 1985 release. Printed “auf Deutsch,” it covers a healthy number of German bands at the time, as well as international, including: Avenger (PRE-Rage), Grave Digger, Iron Maiden, one of the German Overkills (yes, there were two, popular name!), Running Wild, Savage (UK), Steeler (GER), Stormwitch, The Rods, Tokyo Blade, Trance, WARLOCK(!) and more. If you can not read German, have fun with the imagery…or use their playlists as a reference for your vinyl-hunting ‘must have’ exploits- cheers and thanks to B.B. for the contrib!

Cover Editorial Playlists Playlist - Contact Info Avenger 1 - Cutty Sark 2 Avenger 2 Fact 1 - No Bros 2 Fact 2 Grave Digger 1 Grave Digger 1 Iron Maiden 1 - Steeler 2 Iron Maiden 2 No Bros 1 Overkill 1 (Ger) Overkill 2 (Ger) Picture 1 Reviews 1 - Picture 2 Reviews 2 Running Wild 1 Running Wild 2 - Overdose 1 Overdose 2 Savage 1 The Rods 1 - Savage 2 The Rods 2 Steeler 1 Steeler 2 Stormwitch 1 Stormwitch 2 Tokyo Blade Trance Warlock 1 Warlock 2 - Cutty Sark 1
15 Jun 20:27

inspector-pervert: OH GOD IT’S TOO TINY OH GODDDD

firehose

via Snorkmaiden



inspector-pervert:

OH GOD IT’S TOO TINY OH GODDDD