• pnellesen (unregistered)
    Strolskon:
    Someone clearly needs to create a SaaS user-agent detection infrastructure to harness the power of the cloud and synergize the relationship between browsers and content-authoring and delivery systems.
    My eyes! The goggles, they do NOTHING!
  • Anomymoose (unregistered) in reply to big picture thinker

    CSS/html has you covered. http://www.w3.org/TR/css3-mediaqueries/ Server different sheets, or sections of a style sheet based on media type / screen size. No need to sniff for the user-agent.

  • will (unregistered)

    Yet another win for those who have replaced thier user agent string with "Commodore 64"

  • tablet user (unregistered) in reply to big picture thinker
    big picture thinker:
    You wouldn't want to send a full desktop-based website (800+ pixel wide screen) with high resolution images to an Android or iPhone, would you?

    Please don't ever implement web sites.

    I often use my Android tablet to browse the web. Because of geniuses like you I get content designed pixel perfectly for mobile phones on my device that is 1280 pixels wide. Normal websites would be perfectly usable without any scrolling but I'm served some dumbed down crap that looks awful on that screen.

    Thanks, web developers.

  • (cs)

    It seems to be a very difficult concept to grasp for graphic designers and web developers that the_web_is_not_a_sheet_of_paper. Being a programmer who frequently has to build the web sites that such a graphic genius has designed, I keep having to tell her that she shouldn't bother to design a site for letter-sized paper, nor for 1280x1024 pixels, nor for any fixed amount of pixels, for that matter. Then she looks at me with a blank stare. But the monitor on her desk has 1280x1024 pixels. And the world revolves around her.

  • Soske (unregistered) in reply to will

    I didn't replace it, in came that way and in PETSCII furthermore.

  • L. (unregistered) in reply to J
    J:
    YF:
    I needed to do browser discovery for logging purposes only, but I'm not skilled enough to create this masterpiece...

    ...so I just coded this in Java: http://www.quirksmode.org/js/detect.html

    Time consumed: ~1h

    Fail?

    Yes. That code can't detect the Android browser. It calls it 'Mozilla'.
    [image]

  • L. (unregistered) in reply to ubersoldat
    ubersoldat:
    You're using Safari 5 on an unknown OS!

    lovely

    Safari is TRWTF . and its shipped with the worst OS of all times, where one does not simply maximize a window.

  • L. (unregistered) in reply to smilr
    smilr:
    big picture thinker:
    You wouldn't want to send a full desktop-based website (800+ pixel wide screen) with high resolution images to an Android or iPhone, would you?

    Please stop making websites.

    I specifically jailbroke my iOS devices so that I can put in the UAFaker addon to mobilesafari specifically so I can claim to be a desktop browser in order to prevent what you advocate.

    I have zooming / panning capabilities in my mobile browser that permit me to efficiently view the normal or desktop versions of websites. I prefer them to the "mobile" stripped down versions of websites.

    When in ladscape mode my screen resolution is above 800px wide anyhow and my eyesight is good enough that I can usually read text rendered that small on my phone's screen, and zoom in when necessary anyhow.

    Stop dumbing down the internet. Damnum

    stop dumbing down the internet, said the iOS user... Did you know you could majorly improve your browsing experience by removing safari and installing a real browser ?

  • L. (unregistered) in reply to TheRider
    TheRider:
    It seems to be a very difficult concept to grasp for graphic designers and web developers that the_web_is_not_a_sheet_of_paper. Being a programmer who frequently has to build the web sites that such a graphic genius has designed, I keep having to tell her that she shouldn't bother to design a site for letter-sized paper, nor for 1280x1024 pixels, nor for any fixed amount of pixels, for that matter. Then she looks at me with a blank stare. But the monitor on her desk has 1280x1024 pixels. And the world revolves around her.

    Now now, don't go asking all those fail webdevs to do a fully adaptable website design, they don't have any button for that in their dreamweavers / wordpress / joomla noobtoys.

    Besides, monitor res matters not when a luser installs every available toolbar...

  • fixed (unregistered) in reply to Jay
    Jay:
    PiisAWheeL:
    Strolskon:
    Someone clearly needs to create a SaaS user-agent detection infrastructure to harness the power of the cloud and synergize the relationship between browsers and content-authoring and delivery systems.
    With a comment like that my guess is that you work in a marketing department somewhere.

    You need to add something about "utilizing paradigms".

    And go into more depth on how the broad specifics will be actioned going forward.

  • Lord0 (unregistered)

    Needs more XML

  • frenzic (unregistered) in reply to will

    Great. Did that right away.

  • frenzic (unregistered) in reply to will
    will:
    Yet another win for those who have replaced thier user agent string with "Commodore 64"

    Great. Did that right away.

  • C-J (unregistered)

    You are all wrong, you use 960.gs and adapt.js. Works like a charm.

  • Randompseudonym (unregistered) in reply to L.
    L.:
    Besides, monitor res matters not when a luser installs every available toolbar...

    That's what LARTs are for.

  • ybred (unregistered) in reply to TroelsL
    TroelsL:
    This solution needs more service oriented architecture to facilitate social discovery.

    I'm pretty sure I heard this exact same line from marketing.

  • Shinobu (unregistered) in reply to Tim B-L
    Tim B-L:
    If you're counting pixels you're doing it wrong! A user-agent should be able to resize images so they fit, or let you scroll. Your HTML should also be able to resize so it fits. If it can't, please go shoot yourself now for me, please please!!! YOU ARE THE PROBLEM!!!!!!!!
    THIS. Think about it. The latest iPhone has 640 pixels horizontal resolution. If your content doesn't adapt to that, it will look crappy on a lot of desktops as well, especially if the user has the browser window open side-by-side with some other window, like a word processor or something. The web is not a piece of paper, and a web page must adapt to whatever space is available. And checking the user agent won't tell you that.
  • Jack (unregistered) in reply to Aussie Contractor
    Aussie Contractor:
    The download size to fully display a page in the "desktop" version is 125kb and on the "mobile" version it is <2kb. When you are standing 450Km from the nearest town using my app on your Nokia 6550 you will thank me.
    Perhaps if you give everyone that <2kb version they'd thank you too.
    Aussie Contractor:
    My web apps all have a mobile version detected by the server.
    Nice. So you have to test everything twice, right? Oops. There's more than one "mobile" platform! Dammit! Now we're testing everything 10 times. And next year, when the new $COOL_THING comes out, we'll have to test again. Maybe even rewrite. Sounds like perpetual employment for something that should have been done only once. Sweet revenue stream for you, sucky costs for your employers and sucky experience for your users.

    Oh please can't we go back to the good old days when everyone used Windows 95 on an 800x600 screen and the only way to communicate with someone else was to email them a Word document?

  • Jay (unregistered)

    In the early days of the web, the server sent what was basically a stream of text, with some markup and maybe a few images, and the browser laid it out to fit in the available space. One of the beauties of the system was that the person who created teh content didn't know or care what browser the user had, what their screen resolution was, what size the browser window was, etc. The browser just scaled and flowed text and made it fit.

    Then some genius came along and decided that we needed to have a "richer experience", by which they meant that the server should specify all the formatting details.

    The advantage and wonder of this scheme is that I now routinely visit web sites that have all the content in a narrow band in the middle, with big empty space on either side. Or worse, a web page assumes a screen wider than my browser window, so text falls off the edge and I have to constantly scroll left and right. As a developer trying to accomodate users who want these fixed layouts, getting the content right is now about 30% of the job. The other 70% is tinkering with layout to get everything position on the page just exactly the way they want, with all the fancy borders and icons and dancing bear graphics.

    But all this inconvenience does not come without offsetting advantages. Now we can get exactly the right number of words on each line. Users are no doubt incredibly impressed by the beauty of the border we put around a block of text and how those findly rounded corners all meet just right. Why, I bet if we had square corners on the "Submit Order" button instead of rounded corners, they'd just exit our web site in disgust and go buy from someone else.

    </rant>
  • Real Tim Berner Lee (unregistered) in reply to Tim B-L
    Tim B-L:
    The web is about connecting everything to everything, and everyone to everyone.

    If you're even looking at the User Agent string you're doing it wrong!

    Faker!! I am real Tim Berner Lee!

    But even though you are faker, you are right about not looking at User Agent string. Important things are browser capabilities and window width, both of which can be tested.

    Also to consider: data transfer to mobile is slow and it's a good idea to avoid sending large images if you will only show small ones.

  • OccupyWallStreet (unregistered) in reply to smilr
    smilr:
    I specifically jailbroke my iOS devices so that I can put in the UAFaker addon to mobilesafari specifically so I can claim to be a desktop browser in order to prevent what you advocate.

    There are tons of web browsers available for iOS that let you change the user-agent, no need to jailbreak for that (a lot of features that require jailbreaking are now standard or have alternatives in the app store).

    And most mobile sites had "view full site" links that disabled the mobile version if you really needed it. But there are few of them I really use.

    You'd have to take a LOT of convincing me that say, the full version of amazon.com is far better than the mobile version. Less tapping/scrolling around and zooming, for starters, neverminding that the mobile version loads 10 times quicker.

  • Sanjiiv (unregistered)

    It would probably be easier (and just as enterprisey) to write your own XML parser which converts the properties file to a giant "case / switch" at compile-time.

  • The REAL real Tim Berners-Lee (unregistered) in reply to Real Tim Berner Lee
    Real Tim Berner Lee:
    Faker!! I am real Tim Berner Lee!
    That's funny, i'd have thought the real Tim would be able to spell his own name.
  • (cs)

    There's a class missing. Where's UserAgentAntiPattern.java?

  • Echber the Other (unregistered)

    All this talk about resolution-independence and not checking UAs is missing something that's just a little bit important: size or density-independence. A 1-inch button on a big 800x600 CRT isn't a 1-inch button on a 3.5" phone. Mobile layouts tend to have big, 'friendly' interfaces for a reason.

  • L. (unregistered) in reply to Echber the Other
    Echber the Other:
    All this talk about resolution-independence and not checking UAs is missing something that's just a little bit important: size or density-independence. A 1-inch button on a big 800x600 CRT isn't a 1-inch button on a 3.5" phone. Mobile layouts tend to have big, 'friendly' interfaces for a reason.

    Indeed density is the biggest issue these days, with more tablets and phones using 1080p+ resolutions everyday. The only thing that would make any sense today is considering device type + physical size of browser window + have a resolution independent layout for each category. even more fail for the web coding world.

  • L. (unregistered) in reply to Echber the Other
    Echber the Other:
    All this talk about resolution-independence and not checking UAs is missing something that's just a little bit important: size or density-independence. A 1-inch button on a big 800x600 CRT isn't a 1-inch button on a 3.5" phone. Mobile layouts tend to have big, 'friendly' interfaces for a reason.

    I forgot.. I read this yesterday

    http://www.html5rocks.com/en/mobile/cross-device/

    there's a piece about how high res touch devices report 50% res and render everything at twice the size, thus yielding the same one inch button on both ipad 2 and 3.

  • (cs)

    Dunno if anyone posted this already, but if there is a justitifaction, maybe this is it:

    http://webaim.org/blog/user-agent-string-history/

    TRWTF?

  • Lockwood (unregistered) in reply to frenzic
    frenzic:
    will:
    Yet another win for those who have replaced thier user agent string with "ZX Spectrum"

    Great. Did that right away.

    FTFY

    transverbero. I seem to have transverboed back to not being signed in.

  • (cs) in reply to Jay
    Jay:
    Then some genius came along and decided that we needed to have a "richer experience", by which they meant that the server should specify all the formatting details.

    The advantage and wonder of this scheme is that I now routinely visit web sites that have all the content in a narrow band in the middle, with big empty space on either side.

    I hate to be the harbinger of bad news, but it truly, awesomely sucks to read stuff that's too wide. Get a published book and see how many words there are on a line of prose. Then look on a random webpage, on a line that has prose in the same language. If there are significantly more words, it becomes very hard to read. I don't mind the "narrow strip" formats as long as they maintain a certain number of words per line.

  • CZeke (unregistered)

    If you're Doing It Wrong just by looking at the user-agent string, what's it there for?

  • pikzen (unregistered) in reply to brazzy

    C#:

    String response = new StreamReader(con.GetResponseStream()).ReadToEnd();

    Java:

    BufferedReader br = new BufferedReader(
            new InputStreamReader(
                    new InputStream(con.getInputStream())); // I've seen less wrapping on a gift
    String response = "";
    String lineRead = br.readLine();
     
    while (lineRead != null) {
        response = response + "\n" + lineRead;
            lineRead = br.readLine();
    }
    // etc.

    Most of the bashing is justified. Stop being so goddamn verbose, Java

  • pikzen (unregistered) in reply to Jack
    Nice. So you have to test everything twice, right? Oops. There's more than one "mobile" platform! Dammit! Now we're testing everything 10 times. And next year, when the new $COOL_THING comes out, we'll have to test again. Maybe even rewrite. Sounds like perpetual employment for something that should have been done only once. Sweet revenue stream for you, sucky costs for your employers and sucky experience for your users.

    To be fair, most desktop designs do not go well on a mobile browser. Even if the resolution is good enough, the size of the screen is a problem.

  • waterloomatt (unregistered) in reply to Iscu

    LOL - great!!

  • db (unregistered) in reply to pikzen

    String response = org.apache.commons.io.IOUtils.toString(con.getInputStream()); //or pick any of at least 3 other libs to do it..

  • LouisDab (unregistered)

    skdrlbsdjk37909453

    affinity designer full screen free downloaddragon dictation for pc free downloadwindows 7 desktop themes 2018 free downloadwindows 10 enterprise download 2019 free downloadtoshiba satellite recovery disk download windows 8 freedownload latest directx 12 for windows 10gmetrix practice test for microsoft word 2013 project 3 free downloaddownload do windows 10microsoft sticky notes download for windows xp freedownload google docs for windows 10 https://bit.ly/3AChKHy https://bit.ly/3jN2MYl https://bit.ly/3xBG1LY https://bit.ly/3m0s1ce https://bit.ly/3iDgFcb

    download free dropbox for windows 10 gta 2 download for pc windows 7 audacity software for windows 10 free download ballance game pc download facebook gameroom windows 10 download

Leave a comment on “The Enterprise User Agent”

Log In or post as a guest

Replying to comment #:

« Return to Article