HNHacker News
TopNewBestAskShowJobs

treyp

696 karma · joined January 24, 2009

https://www.treyp.com
submissionscomments
treyp··on H.264 Already Won—Makes Up 66 Percent Of Web Videos
sorry, but that doesn't mean that there's a war with a single winner who has already won. people are encoding videos like this because the popular ways of playing videos are through flash and through the iphone.

once HTML5 video picks up, if a major browser (firefox) doesn't support h.264, we'll probably see people encode more than one format, unless something else gains widespread player support fast (vp8, i'm looking at you).

i don't think h.264 is going away, but i don't think it's surely a lone winner going forward.

treyp··on The curious case of equidistant boxes, a CSS fail
gotta agree -- a table with spacer TDs is going to be your best solution here. like mbrubeck mentioned, justified blocks are going to require a hack since it's the last line of content.

perhaps the design can be thought out again, though. instead of getting the first flush with the left and last flush with the right, you could just create a bunch of blocks with centered content (think: floated list items in a list). there will be a little extra spacing on the left and right, but you can design it so that it's not too bothersome. i'm thinking

  (_A_)_(___B___)_(__C__)_(_D_)
instead of

   (A_______B________C______D)
your point about CSS having not really solved this problem yet is a valid one, but solutions are in the works (namely, the flexible box model).
treyp··on Coding Horror: What's Wrong With CSS
you don't necessarily have to duplicate code blocks all the time since you can declare a definition for multiple styles:

  .uno {
    color: green;
    font-size: 18px;
    text-align: center;
  }
  .dos {
    color: green;
    font-size: 18px;
  }
can become

  .uno, .dos {
    color: green;
    font-size: 18px;
  }
  .uno {
    text-align: center;
  }
also, as others have pointed out, nesting is kind of there in the form of a hierarchy. child elements will get parent styles for most properties.
treyp··on Single Line CSS
decent IDEs like Aptana will make browsing stylesheets much easier. like methods in an object, it lists all definitions and allows for alphabetizing and clicking to jump to that specific definition.

...not that there isn't a use for organizing a certain way (like this article describes) in the first place.

treyp··on Ask HN: Who is already sick of all of these "Like" buttons plastered everywhere?
or you can just adblock the iframe url with a filter:

  |http://www.facebook.com/plugins/like.php?*
treyp··on First they came for Hitler... Youtube takes down Hitler parodies
I can offset your lack of seeing it. I rented it via Netflix solely because of the parodies. I wanted to see the real context, and for what it's worth, it was a good movie.
treyp··on HTML5 Readiness : A visualisation of HTML5/CSS3 browser support
really? can't the same be said about any language with graphics support? it's not a consumer-facing product; it's a language. it's what you make of it.
treyp··on HTML5 presentation
yeah, i thought the same thing. it must have been an error on the part of the author.

here it is in the CSS2.1 spec -- http://www.w3.org/TR/CSS2/visuren.html#display-prop

it looks like it was introduced in CSS 2.1 because it is missing in CSS2 and CSS1: http://www.w3.org/TR/2008/REC-CSS2-20080411/visuren.html#dis... http://www.w3.org/TR/REC-CSS1/#display

treyp··on [dead]
Yeah, isn't this a straw man? Nobody has claimed Apple owes them anything. They're just voicing their opinions to make the community a better place.
treyp··on Daring Fireball: The Kids Are All Right
But Apple would never let me install a radio that would tune into adult shows like Howard Stern. And they'd block all Sirius XM radios because of this possibility.

And if someone created a radio that used too much battery life, I wouldn't be able to install it either.

I can go on if you'd like, but you get the point.

treyp··on Apple featuring HTML5 sites
I would argue that canvas is another HTML5 technology that is notable for its ability to replace Flash.
treyp··on Quora Has The Magic: BenchMark Invests at $86 Million Valuation
quora is one of the most impressive sites i've seen in a while. here are a few of the details that really impressed me:

* pretty much everything is real time and extremely fast. even if you have 10+ quora tabs open.

* try logging out and having a friend log in. notice how you can log out all current sessions on remote computers, and how boxes are created for each user that has logged in on that computer. logging in then takes just one click (if it was set to remember).

* have a friend look at your profile. start editing your bio or title. the friend will see these changes in real time.

* start typing a response to a question. everyone can see who is responding to a question in real time. (imagine in HN had this amount of integration of real time data)

* the site search at the top is incredibly responsive and returns results for relevant questions, topics, and people all together in a dropdown

* site notifications additionally appear on the pages to which they are related. for example, if i visit a question where i have 3 outstanding notifications, they will all appear at the top of the page. if i visit a user's profile that has recently started following me, i will see that notification at the top of the user's profile.

* they already have a complete mobile site.

* on the implementation side, the html (html5) is already compacted, the js is combined and minified, and Steve Souders' best practices are already taken into account. this is expected for major web applications, but startups and non web-app sites (like blogs) often ignore it for a very long time or never do it at all.

treyp··on "HTML" the Song (by The Hot Toddies)
lyrics: http://lyrics.wikia.com/The_Hot_Toddies:HTML
treyp··on Status of every startup incubated by Y Combinator and other seed accelerators
it should be noted that even though i submitted this, i'm not its creator or editor. for corrections, you can email Jed Christiansen as detailed on the first sheet.
treyp··on Best Bet CSS Practices
hate to be a dissenter, but just want to put out another opinion. i work on stylesheets every day, and i've found neither one very helpful. i'd spend more time indenting and alphabetizing than working on styles. i don't know where indenting would be too useful since you'd still have to scan the entire document manually. ordering these in sections of the site in which they're used has been most helpful for me.

my tip: use a decent IDE, like Aptana. it'll outline the stylesheet and make definitions searchable and orderable. use whatever order you find most logical for definitions and properties.

the TOC and commenting is probably useful for other members on your team, though.

treyp··on Facebook has surpassed Google.com (just visits, just USA)
i wouldn't call that meaningless. i'd call that "facebook still has a lot of catching up to do."
treyp··on 20 Percent Of TechCrunch Readers Are Already Browsing With Chrome
not sure what you mean by "real" ad block support. the chrome extension API isn't mature enough yet to block ads before they're downloaded. it basically just hides them afterwards.

they're working on that, though, apparently.

treyp··on Learn CSS Positioning
it's pretty surprising how prevalent `clear: both` is. yes, it works, but you're putting presentational code in your markup more than you need to.

let me put it in simple terms for people:

you probably don't need to use `clear: both`. almost all of the time, you can use `overflow: hidden` on the parent element instead of `clear: both`.

(the exception of course is when you've got elements with negative margins that would actually be hidden with `overflow: hidden`)

edit: relevant link - http://www.quirksmode.org/css/clearing.html

treyp··on Google's Parisian Love Superbowl Ad
yep, that definitely must be it.

if the reason they're advertising is to sell the brand, and it's a brand competition with Bing who claims Google has sometimes irrelevant search results, then of course they need the most relevant search results possible in this ad

even though the focus was on the flight status up top, the search results for sound parts are bad results. so i guess they switched it up in case anyone noticed that.

interesting find!

treyp··on Firebug website just got a super gorgeous facelift
perhaps that's because saying "yep, looks great" doesn't contribute anything and would get downvoted.

if you agree that it looks great, you'll upvote the article, which more people have done than upvoting hate comments. (although obviously there are other reasons people might upvote the article.)

treyp··on Facebook fan page with contact form, dialogs, navigation & AJAX with static FBML
this is exactly the type of thing you would build a facebook application for, though. if the Page uses a tab, when someone clicks the application tab on their profile, facebook requests a page on your server and just puts it in the tab.

so, while you still wouldn't be able to use JS on the tab load, because it was just requested from your server, it could show the last few images on their account.

treyp··on All style tags after the first 30 style tags are not applied in IE (4-8)
Developers on the Facebook Platform ran into this problem a few years ago. Facebook had a bunch of style tags in their source already -- it seems like they put them in different pieces all over the place.

When you would write an application (your FBML is put into their layout) and use even more, you'd eventually run into this limit.

I think they fixed it by combining all style tags in applications into one, since they had to parse them for security reasons anyway.

treyp··on Firefox 4.0: New Design Changes Revealed
which parts are so Chromish?

the new Firefox button comes from Microsoft Office.

the space between tabs comes from either Opera or Microsoft Office.

the tabs on top, which is only a possibility at this point, comes from Opera first, but was implemented by Google Chrome down the line.

the use of so much transparency in the menu may come from Microsoft Office or Chrome.

the non-flat buttons can come from Opera or Chrome.

the use of only three buttons on the left, however, comes from Chrome. it should be mentioned that Firefox is playing with the idea of getting rid of a refresh button on the left by building it into the location bar. https://wiki.mozilla.org/Firefox/Projects/3.7_and_4.0_Theme_...

just want to give credit where credit is due.

treyp··on Why Introverts Can Make The Best Leaders
Yeah, so the article is very pro-introvert. I just wanted to point out that I don't think it's the case that introverts are better at leadership than extroverts. The article isn't claiming this, but I have a feeling that the HN audience might up-vote this because that's how they interpret it. I was just trying to give a friendly reminder that there are different qualities that make people good leaders. Both of them can excel.

But the article still serves its purpose. In the business world, there's a tendency to assume you must be extroverted to be a great leader. There's an assumption that introverts should be doing other things like engineering, that introverts don't have the "people skills" necessary to be great leaders. The article makes a good case that this just isn't so.

treyp··on Why Introverts Can Make The Best Leaders
Even as an introvert, I think that extroverts can sometimes come to the same well-planned decisions through more of a conversational process, deliberating out loud and with the help of others.

But the title and point of the article are simply why introverts can make good leaders, not necessarily why extroverts aren't just as good.

treyp··on Check the Redesigned Google (With Always-Visible Sidebar) Yourself
My first thought when I saw this was Bing.

My second thought was that it looks more like Facebook's search with the filter labels on the left: http://www.insidefacebook.com/wp-content/uploads/2009/08/fac...

My third thought is that I should stop making comparisons. They're just trying to organize the types of search in a way that's usable, and my first assumption shouldn't be that they just ripped it off of another site.

treyp··on Odeo Releases Twttr [2006]
(and 3jam, http://www.3jam.com/group-phone-number.php , although they've moved into the google voice space recently)
treyp··on Fancy Buttons - Customize Buttons Effortlessly with CSS3 & Compass [video]
It should be noted that CSS gradients are not yet supported in Firefox (3.5). As such, this demo uses transparent PNGs instead of of CSS3 properties. It works fine in this case, but of course images aren't as flexible as CSS properties would be.

However, Firefox 3.6, which should be released within a few weeks, will support custom gradients, so things are looking up.

treyp··on Google to Acquire AdMob for $750 Million
it's interesting how google's page puts the price right in the first sentence, but it's nowhere in the admob notice.
treyp··on Firefox finally passes IE6
that's for the visitors of w3schools, which are more technical people. my mom, who would use IE if it wasn't for me tricking her into using firefox, would never be a w3schools visitor.

from the bottom of the page: W3Schools is a website for people with an interest for web technologies. These people are more interested in using alternative browsers than the average user. The average user tends to use Internet Explorer, since it comes preinstalled with Windows. Most do not seek out other browsers.

← PreviousPage 3 of 5Next →