Entries:
Comments:
Posts:

Loading User Information from Channel 9

Something went wrong getting user information from Channel 9

Latest Achievement:

Loading User Information from MSDN

Something went wrong getting user information from MSDN

Visual Studio Achievements

Latest Achievement:

Loading Visual Studio Achievements

Something went wrong getting the Visual Studio Achievements

Discussions

jsampsonPC jsampsonPC SampsonBlog.​com Sampson​Videos.com
  • Storing text for online article database...

    ZippyV wrote:
    
    jh71283 wrote:
     What about compressing the html that you're storing?

    would that do the trick?


    How would that solve his problem?


    I'm not looking for compression so much as covenience. I want to get away from mixed-data, and stick with some a bit more pleasing to the eyes and expandable.

    Markdown is extremely great, and seems to solve all of my problems while keeping the text completely readable.

    Markdown + Clean CSS, that is.

  • Subscribing to an RSS feed on the local network

    Maybe you could trick IE with some clever host-file manipulation?

  • Storing text for online article database...

    W3bbo wrote:


    Oh looky-there...this is neat.

    Thanks W3bbo.

  • Storing text for online article database...

    Strip out markup? I don't want to do that. I'm asking this: if it's wrong to have markup in your data-field, then how do you apply formatting for articles that need it.

    ...or maybe it's not wrong at all to do basic HTML in the data-field, such as P, STRONG, U, EM, BLOCKQUOTE, etc... any input guys?

  • Where do you store single pieces of information?

    In the past I've had to do some things like this for small client sites. I wanted to give them the ability to change "the front page paragraph", "the about us column", and "our slogans on different pages."

    Of course I wouldn't learn of this until things were pretty much finished being developed, so I went with a simple two-column table:

    location
    text

    Examples:

    frontPageParagraph | Hello World
    aboutUsColumn | Hello World Again
    totalMembers | 2878
    websiteCreatedDate | 2008-01-01

    That way I could simply "SELECT text FROM oneLiners WHERE location = 'frontPageParagraph'".

    Again, probably not very elegant, but it worked. Like a previous niner said too, any solution of this type won't give you history, so you could simply toss in an isActive field of type bool, and rather than updating the text field, just insert a new record and give it the exclusive isActive value of True.

    Then it's merely "SELECT text FROM oneLiners WHERE (location = 'frontPageParagraph') AND (isActive = true)"

    Take it with a grain of salt Smiley

  • Storing text for online article database...

    Hey Niners,

    I'm working on an article database right now, and have introduced a bit of frustration into my day when I decided to offer the web-article as on-the-fly PDF's too.

    The article were all stored in the database as HTML. It's ugly, trust me. So I'm deciding what I want to do with them. The HTML is all wrong also, so I do have to go through and do some clean up regardless.

    But I recall being told in the past that articles should never contain ANY markup or css, but if that is the case, how would you write 238Pa without using the SUP tag?

    Just curious how you guys would design an article database beyond simply making a field for the title, author and text Smiley

  • "​Searching ​'Samson'....​..did you mean ​'Sampson'?​"

    I'm about to start writing a small search engine within my site and I'm wanting to get more into assisting the user in finding the results they want.

    I have considered soundex() operations, but heard that they aren't always reliable, since longer more complex soundex() results may be truncated.

    I've also looked into Levenshtein Distance, but again have problems. Seems like to get a search-engine to find suggestions based upon their levenshtein-distance from the original search-term, you need to have a list of terms waiting to be compared to everybody's search term, and that could be nasty on the server forcing a levenshtein equation 1,000+ times everytime somebody submits a search.

    Even if you do the tiresome lookups, you'll get dozens of alternatives for each word - how do you decide which to suggest? Seems almost like I need to store search terms, and the number of their returned results in the database, and do levenshtein-comparisons against those, and sort the close ones by their number of last returned results...make sense?

    So I humble myself and come before you all today Wink anybody know how to do this in an efficient way?

  • It' Time to To clarify the situation Windows 7

    AndyC wrote:
    
    PaoloM wrote:
    
    Blue pearl = Windows Vista
    White pearl = Windows Live
    Green pearl = Media Center


    Black pearl = Pirates!



    Black Velvet!

  • It' Time to To clarify the situation Windows 7

    Charles wrote:
    
    jsampsonPC wrote:
    
    Charles wrote:
    What is the obsession lately with Windows 7? How many of you actually run Vista?

    C


    I run Vista on three machines, and XP on one. I love Vista. My fascination with Windows 7 is, it's Windows 7...why else wouldn't I be fascinated with it?

    That's like asking doctors why they would be fascinated in the next generation of medical instruments and devices Or what your question simply rhetorical?


    Well, no. Obsession is not the same thing as being curious and genuinely very interested. Obsession implies that it's all you think about, you know, obsessively


    Ah, I didn't now you were being literal with "obsession" Smiley I'm not necessarily "obsessed". But yeah, interested and curious Tongue Out Besides, if it keeps people talking about UX, and ideas, then that is cool Smiley

  • It' Time to To clarify the situation Windows 7

    Charles wrote:
    What is the obsession lately with Windows 7? How many of you actually run Vista?

    C


    I run Vista on three machines, and XP on one. I love Vista. My fascination with Windows 7 is, it's Windows 7...why else wouldn't I be fascinated with it? Smiley

    That's like asking doctors why they would be fascinated in the next generation of medical instruments and devices Smiley Or what your question simply rhetorical? Tongue Out