Load Image from Local Drive



  • Now, I can't specifically blame the person who did this, since this forum's got the wysiwyg post input and maybe it can be a little confusing, but I found this in the source of a post on this forum and I had to have myself a little chuckle. 

    <FONT face="Courier New" size=2>...<FONT color=#a9a9a9>IDs, etc.  As is usual for this type of list, you can click on the
    headers to sort the list by different columns.</FONT><br>
    <br>
    <img src="</FONT><FONT face="Courier New" color=#0000ff size=2>file:///C:/Documents%20and%20Settings/keppelst/My%20Documents/My%20Pictures/cr1.png</FONT><FONT face="Courier New" size=2>" alt=""><br>
    <FONT color=#a9a9a9>Now let's try to sort by "Time in State":</FONT><br>
    <br>
    <img src="</FONT><FONT face="Courier New" color=#0000ff size=2>file:///C:/Documents%20and%20Settings/keppelst/My%20Documents/My%20Pictures/cr2.png</FONT><FONT face="Courier New" size=2>" alt=""><br>
    <FONT color=#a9a9a9>Not only does it not sort chronologically, which is almost excusable,</FONT>...</FONT>

    Now, I've looked and I don't even have keppelst in my Documents and Settings folder...ok, I didn't really look. 



  • No wonder I was so insulting when reading the site earlier - my name is
    keppelst, and i have many pictures of crap in my my pictures folder
    named cr1-cr99.



    I thought someone had stolen my crap pictures and posted them on the interweb, but it turns out it was just a mistake! hahaha!



  • @flobi said:

    Now, I can't specifically blame the
    person who did this, since this forum's got the wysiwyg post input and
    maybe it can be a little confusing, 



    A little confusing!  Just a little, you think?  This one is my fault, and I think you are right, you can't blame me (too much)!

    So I'd have to guess, with a bit of hindsight, that the only way to post an image is with a reference to an URL, and not inline, the latter of which is what I was trying to accomplish, with the results that you see.




  • Ha ha... ok, how about doing it in the HTML view.






  • Alright, that's more promising except that the link isn't to an actual image... how about this way?






  • OK, now we're cooking with gas.  So the original post was supposed to go something like this:



    The software we're using for code reviewing, by Smart Bear Software,
    isn't so smart when it comes to sorting.  It can show a list of
    code reviews, in columns, and each column header can be clicked on to
    sort.  This is a standard sorting UI.




    So we can see that the time column is in a human readable format, which
    is nice - but who wants to bet that it's using an underlying numerical
    format for sorting?  Let's click on it and see.




    Nope!




  • Checkout the 'Time in State' column...
    seems to be a String sort on that column... a WTF none the less, but thats the only sorting i can see going on there.



  • @sao said:

    Checkout the 'Time in State' column...
    seems to be a String sort on that column... a WTF none the less, but thats the only sorting i can see going on there.


    sorry - i admit i didnt read / interpret your post correctly.

    but using a string sort on a numerical column happens all the time!



  • @sao said:


    but using a string sort on a numerical column happens all the time!


    Yes, indeed it does - if not all the time, at least on a distressingly regular basis.  That was pretty much my point with this posting.

    I don't know too much about the toolkit that would have been used to display this tabular data, so I don't know how little thought the original developers actually put into it, and whether it's even possible for them to have done a better job with just a few more minutes' effort.  But no matter how you look at it, it's definitely a WTF.


Log in to reply
 

Looks like your connection to What the Daily WTF? was lost, please wait while we try to reconnect.