Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. CodeProject challenges

CodeProject challenges

Scheduled Pinned Locked Moved The Lounge
csharpjavascriptasp-netdatabasequestion
71 Posts 28 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Lost User

    Is it just me or is this just a semi-respectable way of getting us to do your work? ;P "Gee Huck, Gee Becky... whitewashing this fence sure is fun!"

    Government is not reason; it is not eloquent; it is force. Like fire, it is a dangerous servant and a fearful master. ~ George Washington

    C Offline
    C Offline
    Chris Maunder
    wrote on last edited by
    #61

    Let's just remove the "semi-respectable" and be done with it, eh?

    cheers Chris Maunder

    1 Reply Last reply
    0
    • Sander RosselS Sander Rossel

      Chris Maunder wrote:

      I'm not after spell-ckecking

      Obviously :rolleyes:

      It's an OO world.

      public class SanderRossel : Lazy<Person>
      {
      public void DoWork()
      {
      throw new NotSupportedException();
      }
      }

      C Offline
      C Offline
      Chris Maunder
      wrote on last edited by
      #62

      Oh, you get a 5 for that :D

      cheers Chris Maunder

      1 Reply Last reply
      0
      • Sander RosselS Sander Rossel

        So "gimme code plz" will be auto-corrected to "Give me code please"? That will be an improvement :rolleyes: Seriously though, I wonder how much can really be corrected? Such a library has to be very 'smart' to fix some of the stuff I read on CP (luckily there's more good than bad though!). If someone doesn't value grammar can they form correct sentences? im sure this sentence couldve been fixed. but this sentense may it can be fixed, srry for my bad english?

        It's an OO world.

        public class SanderRossel : Lazy<Person>
        {
        public void DoWork()
        {
        throw new NotSupportedException();
        }
        }

        C Offline
        C Offline
        Chris Maunder
        wrote on last edited by
        #63

        I was thinking we start simple. "i have a problem. can someone help me?" goes to "I have a problem. Can someone help me?". We then look to see common issues and do some simple stuff. cant => can't, Sql => SQL. Treading softly. Keeping it simple.

        cheers Chris Maunder

        P 1 Reply Last reply
        0
        • D Dan Neely

          I'm not going to make a full submission; but want to suggest that anyone serious about it be sure to implement this family of fixes (only one example given because I'm a slacker):

          str.replace("I have got", "I've <b>GOTTEN</b>");

          Did you ever see history portrayed as an old man with a wise brow and pulseless heart, waging all things in the balance of reason? Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful? --Zachris Topelius Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies. -- Sarah Hoyt

          C Offline
          C Offline
          Chris Maunder
          wrote on last edited by
          #64

          May the wrath of Bob descend on thee.

          cheers Chris Maunder

          1 Reply Last reply
          0
          • C Chris Maunder

            I've mentioned before an idea I had about getting the smartest and brightest (yeah, that means you lot) to come up with solutions to day to day issues we have that will, ultimately, save the community as a whole some time and pain. A challenge I'm facing at the moment is in correcting grammar and punctuation. Many, many, MANY times I see questions or articles that have things like "i then did" or "im not sure" or the punishable-by-death "ur mileage may vary". Even Sql instead of SQL and Asp.Net instead of ASP.NET keep popping up. Is anyone interested in a challenge to write a Javascript library that will auto-correct bad spelling and punctuation? It'll be a formal contest with prizes (and maybe even some better specs). Yay or nay: any interest?

            cheers Chris Maunder

            S Offline
            S Offline
            StatementTerminator
            wrote on last edited by
            #65

            Why JavaScript? Are you wanting to plug it into this text editor we type in? I did a quick search and such libraries already exist, though they probably don't get into punctuation. English punctuation is complex and sometimes inconsistent, coming up with the logic would be tougher than the programming. Think about how you would design an algorithm to determine whether or not "its" or "it's" is correct in a given sentence, you're probably going to need to build trees of sentence diagrams and I got enough of that in the fifth grade. Plural possessives are even worse, and speaking of plurals you're in a world of hurt with things like "attorneys general." I'll consider it but I'm not sure I'm up for that. Can't you just find some desperate English major to "intern" and proof everything for free leftover pizza?

            1 Reply Last reply
            0
            • C Chris Maunder

              I've mentioned before an idea I had about getting the smartest and brightest (yeah, that means you lot) to come up with solutions to day to day issues we have that will, ultimately, save the community as a whole some time and pain. A challenge I'm facing at the moment is in correcting grammar and punctuation. Many, many, MANY times I see questions or articles that have things like "i then did" or "im not sure" or the punishable-by-death "ur mileage may vary". Even Sql instead of SQL and Asp.Net instead of ASP.NET keep popping up. Is anyone interested in a challenge to write a Javascript library that will auto-correct bad spelling and punctuation? It'll be a formal contest with prizes (and maybe even some better specs). Yay or nay: any interest?

              cheers Chris Maunder

              D Offline
              D Offline
              dg6yhw11
              wrote on last edited by
              #66

              So as I'm reading this up pops an ad offering to help me "Check your arrest record". I would think that we "smartest and brightest" would know if we had been arrested :laugh: On the topic, I feel there's little need. The typos etc. sort of add character and are more representative of what we actually type all day long {var foo} etc. Also, many of our brethren are not native English speakers. Perhaps correcting their grammar might change the meaning of their posts. For instance... As a American, I often find the "Queen's" English somewhat confusing. I will never forget a lecture on computing I gave in England back in the 80's. The audience began tittering when I used the word "backslash". The tittering increased to the point that I had to stop the lecture and ask what was so amusing. It seems the word "slash" was slang for urinating outdoors. Who knew? I (stupidly) asked for their word to describe the character and, after some discussion, it was decided I should use "reverse oblique stroke". So, despite your probably justifiable (my son is an editor and takes great offense when he encounters similar wrongs) editorial umbrage at poor grammar, malapropisms and the like, I think you should keep them. Murray

              C 1 Reply Last reply
              0
              • C Chris Maunder

                I was thinking we start simple. "i have a problem. can someone help me?" goes to "I have a problem. Can someone help me?". We then look to see common issues and do some simple stuff. cant => can't, Sql => SQL. Treading softly. Keeping it simple.

                cheers Chris Maunder

                P Offline
                P Offline
                PIEBALDconsult
                wrote on last edited by
                #67

                It's my wont to cant my monitor to the left.

                1 Reply Last reply
                0
                • D dg6yhw11

                  So as I'm reading this up pops an ad offering to help me "Check your arrest record". I would think that we "smartest and brightest" would know if we had been arrested :laugh: On the topic, I feel there's little need. The typos etc. sort of add character and are more representative of what we actually type all day long {var foo} etc. Also, many of our brethren are not native English speakers. Perhaps correcting their grammar might change the meaning of their posts. For instance... As a American, I often find the "Queen's" English somewhat confusing. I will never forget a lecture on computing I gave in England back in the 80's. The audience began tittering when I used the word "backslash". The tittering increased to the point that I had to stop the lecture and ask what was so amusing. It seems the word "slash" was slang for urinating outdoors. Who knew? I (stupidly) asked for their word to describe the character and, after some discussion, it was decided I should use "reverse oblique stroke". So, despite your probably justifiable (my son is an editor and takes great offense when he encounters similar wrongs) editorial umbrage at poor grammar, malapropisms and the like, I think you should keep them. Murray

                  C Offline
                  C Offline
                  Chris Maunder
                  wrote on last edited by
                  #68

                  dg6yhw11 wrote:

                  So as I'm reading this up pops an ad offering to help me "Check your arrest record".

                  Can you please click the "X" on the top left and report it? If no "X" appears please get a copy of the click through URL and email us at webmaster@codeproject.com and we'll block that ad. Back on topic: Again, my goal is a simple, basic remedy for the worst offenses only.

                  cheers Chris Maunder

                  S D 2 Replies Last reply
                  0
                  • C Chris Maunder

                    dg6yhw11 wrote:

                    So as I'm reading this up pops an ad offering to help me "Check your arrest record".

                    Can you please click the "X" on the top left and report it? If no "X" appears please get a copy of the click through URL and email us at webmaster@codeproject.com and we'll block that ad. Back on topic: Again, my goal is a simple, basic remedy for the worst offenses only.

                    cheers Chris Maunder

                    S Offline
                    S Offline
                    StatementTerminator
                    wrote on last edited by
                    #69

                    Chris Maunder wrote:

                    Back on topic: Again, my goal is a simple, basic remedy for the worst offenses only.

                    Oh, well that's easy:

                        if(submission.Contains("plz"))
                        {
                            File.Move(Server.MapPath("/submission.txt"), Server.MapPath("/dev/null/reject.txt"));
                        }
                    
                    1 Reply Last reply
                    0
                    • C Chris Maunder

                      I've mentioned before an idea I had about getting the smartest and brightest (yeah, that means you lot) to come up with solutions to day to day issues we have that will, ultimately, save the community as a whole some time and pain. A challenge I'm facing at the moment is in correcting grammar and punctuation. Many, many, MANY times I see questions or articles that have things like "i then did" or "im not sure" or the punishable-by-death "ur mileage may vary". Even Sql instead of SQL and Asp.Net instead of ASP.NET keep popping up. Is anyone interested in a challenge to write a Javascript library that will auto-correct bad spelling and punctuation? It'll be a formal contest with prizes (and maybe even some better specs). Yay or nay: any interest?

                      cheers Chris Maunder

                      U Offline
                      U Offline
                      User 8120651
                      wrote on last edited by
                      #70

                      I'll like to be a part of this interesting project. I'm a MSCS student and working hard to learn JavaScript.

                      1 Reply Last reply
                      0
                      • C Chris Maunder

                        dg6yhw11 wrote:

                        So as I'm reading this up pops an ad offering to help me "Check your arrest record".

                        Can you please click the "X" on the top left and report it? If no "X" appears please get a copy of the click through URL and email us at webmaster@codeproject.com and we'll block that ad. Back on topic: Again, my goal is a simple, basic remedy for the worst offenses only.

                        cheers Chris Maunder

                        D Offline
                        D Offline
                        dg6yhw11
                        wrote on last edited by
                        #71

                        Thanks for the reply Chris. That ad hasn't reappeared thankfully. Returning to the topic, the devil remains in the definition of "worst offense". Personally, I'm not at all offended by typos and the "trim doubles and vowels" type of abbreviations. (I'm not even offended by Comic Sans which professional editors seem to find really bad :-D ) Enjoy. Murray.

                        1 Reply Last reply
                        0
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • World
                        • Users
                        • Groups