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. I am Geek

I am Geek

Scheduled Pinned Locked Moved The Lounge
csharpc++visual-studiocomregex
43 Posts 29 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.
  • C Chris Maunder

    So who else would rather spend 30 mins perfecting a regular expression search and replace in Visual Studio's Find/Replace dialog than spend the 30 seconds it would take to do it manually. We need a 'flexing skinny, white geek muscles' emoticon

    cheers, Chris Maunder

    CodeProject.com : C++ MVP

    P Offline
    P Offline
    pietpap
    wrote on last edited by
    #23

    Well I spent an hour yesterday making an application that dumps my hardcoded constants into my local database and another that dumps my local database values to an INSERT script for the official test server database. sad. I could have just copied and pasted it into the VS2008 Edit table view and keep an extra excel copy but where's the fun in that?.

    1 Reply Last reply
    0
    • C Chris Maunder

      So who else would rather spend 30 mins perfecting a regular expression search and replace in Visual Studio's Find/Replace dialog than spend the 30 seconds it would take to do it manually. We need a 'flexing skinny, white geek muscles' emoticon

      cheers, Chris Maunder

      CodeProject.com : C++ MVP

      L Offline
      L Offline
      Lee Humphries
      wrote on last edited by
      #24

      - hear me belch. Anyway love Reg Ex, nice bloke, but he can be a bit obscure when he's had a skinful (or I have). Actually in my experience Geeks come in three shapes: 1. Skinny, shy of the sun complexion, 2. Obtuse and sweaty, and the much rarer, 3. Fit as anything, sometimes suave, and embarrasing to the rest of us.

      I just love Koalas - they go great with Bacon.

      1 Reply Last reply
      0
      • C Chris Maunder

        So who else would rather spend 30 mins perfecting a regular expression search and replace in Visual Studio's Find/Replace dialog than spend the 30 seconds it would take to do it manually. We need a 'flexing skinny, white geek muscles' emoticon

        cheers, Chris Maunder

        CodeProject.com : C++ MVP

        Steve EcholsS Offline
        Steve EcholsS Offline
        Steve Echols
        wrote on last edited by
        #25

        Chris Maunder wrote:

        We need a 'flexing skinny, white geek muscles' emoticon

        You are McLovin!


        - S 50 cups of coffee and you know it's on! A post a day, keeps the white coats away!

        • S
          50 cups of coffee and you know it's on!
          Code, follow, or get out of the way.
        1 Reply Last reply
        0
        • R Rama Krishna Vavilala

          Who will spend 10 minutes to use his iPhone order a pizza on Pizzahut web site rather than making a simple 2 minute call to the Pizzahut.

          C Offline
          C Offline
          CheWasEre2006
          wrote on last edited by
          #26

          You have an iPhone. You are not geek. Geeks understand that the iPhone is technologically impressive to those who don't know technology. MMS anyone?

          XML is not a development language

          1 Reply Last reply
          0
          • C Chris Maunder

            So who else would rather spend 30 mins perfecting a regular expression search and replace in Visual Studio's Find/Replace dialog than spend the 30 seconds it would take to do it manually. We need a 'flexing skinny, white geek muscles' emoticon

            cheers, Chris Maunder

            CodeProject.com : C++ MVP

            S Offline
            S Offline
            Stuart Dootson
            wrote on last edited by
            #27

            Chris Maunder wrote:

            perfecting a regular expression search and replace in Visual Studio's Find/Replace dialog

            Find/Replace dialog? - pah! - real geeks would be using grep and sed! ;P

            1 Reply Last reply
            0
            • _ _Damian S_

              Hear me roar? (err, squeak?)

              -------------------------------------------------------- Knowledge is knowing that the tomato is a fruit. Wisdom is not putting it in fruit salad!!

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #28

              Hmm... mouse sounds.

              Visit http://www.notreadytogiveup.com/[^] and do something special today.

              1 Reply Last reply
              0
              • C Chris Maunder

                So who else would rather spend 30 mins perfecting a regular expression search and replace in Visual Studio's Find/Replace dialog than spend the 30 seconds it would take to do it manually. We need a 'flexing skinny, white geek muscles' emoticon

                cheers, Chris Maunder

                CodeProject.com : C++ MVP

                R Offline
                R Offline
                realJSOP
                wrote on last edited by
                #29

                I avoid regex whenever possible. In fact, I have exactly one instance of using it, and that's to verify email address formats.

                "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
                -----
                "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

                1 Reply Last reply
                0
                • C Chris Maunder

                  So who else would rather spend 30 mins perfecting a regular expression search and replace in Visual Studio's Find/Replace dialog than spend the 30 seconds it would take to do it manually. We need a 'flexing skinny, white geek muscles' emoticon

                  cheers, Chris Maunder

                  CodeProject.com : C++ MVP

                  R Offline
                  R Offline
                  randomusic
                  wrote on last edited by
                  #30

                  Who else would rather spend days memorizing Pi with thousands of decimals, instead of just using Pi stored to a sufficient accuracy in your calculator? http://bigparadox.wordpress.com/[^] And I am not planning to calculate the circumference of the observable universe down to the planck length or something like that. And even if I would, I wouldn't need more than perhaps 50 decimals. Magnus

                  D 1 Reply Last reply
                  0
                  • C Chris Maunder

                    So who else would rather spend 30 mins perfecting a regular expression search and replace in Visual Studio's Find/Replace dialog than spend the 30 seconds it would take to do it manually. We need a 'flexing skinny, white geek muscles' emoticon

                    cheers, Chris Maunder

                    CodeProject.com : C++ MVP

                    F Offline
                    F Offline
                    Fabio Franco
                    wrote on last edited by
                    #31

                    Who would get more excited when you receive a software engineering book at home rather than a hooker inside a cake?

                    1 Reply Last reply
                    0
                    • C Chris Maunder

                      So who else would rather spend 30 mins perfecting a regular expression search and replace in Visual Studio's Find/Replace dialog than spend the 30 seconds it would take to do it manually. We need a 'flexing skinny, white geek muscles' emoticon

                      cheers, Chris Maunder

                      CodeProject.com : C++ MVP

                      G Offline
                      G Offline
                      Gary Wheeler
                      wrote on last edited by
                      #32

                      I would. Because if I can get the regular expression find/replace thing working properly, I can put it in a macro and use it again. For example: I have a macro that uses two regex find/replace operations to line up the columns in resource.h for my native Win32 apps. Visual Studio screws up the columns if your resource ID's have long names, and I've got some that are 70 characters or more.

                      Chris Maunder wrote:

                      We need a 'flexing skinny, white geek muscles' emoticon

                      Given that CP is an international site, how about one of Bob in a 'most muscular' bodybuilding pose :-D?

                      Software Zen: delete this;

                      1 Reply Last reply
                      0
                      • C Chris Maunder

                        So who else would rather spend 30 mins perfecting a regular expression search and replace in Visual Studio's Find/Replace dialog than spend the 30 seconds it would take to do it manually. We need a 'flexing skinny, white geek muscles' emoticon

                        cheers, Chris Maunder

                        CodeProject.com : C++ MVP

                        S Offline
                        S Offline
                        SimonRigby
                        wrote on last edited by
                        #33

                        Yeah I'm down with that .. I'd spend the 30 minutes doing that (but only if I could spend the 30 seconds posting on here to show you how clever I am) :)

                        The only thing unpredictable about me is just how predictable I'm going to be.

                        C 1 Reply Last reply
                        0
                        • R randomusic

                          Who else would rather spend days memorizing Pi with thousands of decimals, instead of just using Pi stored to a sufficient accuracy in your calculator? http://bigparadox.wordpress.com/[^] And I am not planning to calculate the circumference of the observable universe down to the planck length or something like that. And even if I would, I wouldn't need more than perhaps 50 decimals. Magnus

                          D Offline
                          D Offline
                          daniilzol
                          wrote on last edited by
                          #34

                          I'm kind of wondering about his technique. I also wonder how he can tell what digit is at certain position, that seems wicked.

                          R 1 Reply Last reply
                          0
                          • S SimonRigby

                            Yeah I'm down with that .. I'd spend the 30 minutes doing that (but only if I could spend the 30 seconds posting on here to show you how clever I am) :)

                            The only thing unpredictable about me is just how predictable I'm going to be.

                            C Offline
                            C Offline
                            Charvak Karpe
                            wrote on last edited by
                            #35

                            Often, investing the time to automate something up front instead of doing it manually in less time makes sense because of managers. How many times have you been asked to do something 5 times, done it manually, and then had your boss come back and ask for 60 more? It's even worse when managers keep coming back for 5 more at a time because then you can't tell when they're going to stop and whether it is still optimal to write a script for the task.

                            1 Reply Last reply
                            0
                            • D daniilzol

                              I'm kind of wondering about his technique. I also wonder how he can tell what digit is at certain position, that seems wicked.

                              R Offline
                              R Offline
                              randomusic
                              wrote on last edited by
                              #36

                              Well, I wasn't very clear about it, but the guy is me :-D My method is described there to quite a detailed level. But basically, to answer your question, I have an imaginary walk in my home town, Stockholm. The walk is imaginary in one sense, but real in the sense that I have walked along those paths many times in real life, so it is ingrained into my memory very firmly and naturally. Anyway, along this imaginary walk I have what could be called stations. I lump those stations into chunks of 10 stations, and super-chunks of 10 chunks and so on, so I can do random access to any station I like, given a decimal position in Pi. In each station I store 10 digits (so a chunk of 10 stations can store 100 digits). To store 10 digits in one station I need 4 words, mnemonics. 2 mnemoncis make 5 digits, so 4 mnemonics (or 2 mnemonic pairs) make 10 digits. So, if someone asks me what is the digit at position 2342, I just go to chunk 234 (with the help of super-chunk orientation if I need), and find digit 2 there, which is represented by the first letter of the second word. The translation from letters to digits is simple, a letter represents the digit it looks like, basically, with a couple of exceptions. So, an A is a 4, and I is a 1, etc. So, knowing what station 234 is in Stockholm, I have a small micro story there consisting of 4 words which more or less automatically pops up in my mind when I think of the place. I design the stories almost like headlines, for example "Bread-spread establishes Mexican food" (that is a micro story I have inside a restaurant I sometimes eat at). As you see, the stories can be designed to fit not only the digits that need to be stored at that station, but also to fit the place as such, like in this case a restaurant. It is a very easy and efficient way to memorize this kind of things. Magnus

                              M C 2 Replies Last reply
                              0
                              • R randomusic

                                Well, I wasn't very clear about it, but the guy is me :-D My method is described there to quite a detailed level. But basically, to answer your question, I have an imaginary walk in my home town, Stockholm. The walk is imaginary in one sense, but real in the sense that I have walked along those paths many times in real life, so it is ingrained into my memory very firmly and naturally. Anyway, along this imaginary walk I have what could be called stations. I lump those stations into chunks of 10 stations, and super-chunks of 10 chunks and so on, so I can do random access to any station I like, given a decimal position in Pi. In each station I store 10 digits (so a chunk of 10 stations can store 100 digits). To store 10 digits in one station I need 4 words, mnemonics. 2 mnemoncis make 5 digits, so 4 mnemonics (or 2 mnemonic pairs) make 10 digits. So, if someone asks me what is the digit at position 2342, I just go to chunk 234 (with the help of super-chunk orientation if I need), and find digit 2 there, which is represented by the first letter of the second word. The translation from letters to digits is simple, a letter represents the digit it looks like, basically, with a couple of exceptions. So, an A is a 4, and I is a 1, etc. So, knowing what station 234 is in Stockholm, I have a small micro story there consisting of 4 words which more or less automatically pops up in my mind when I think of the place. I design the stories almost like headlines, for example "Bread-spread establishes Mexican food" (that is a micro story I have inside a restaurant I sometimes eat at). As you see, the stories can be designed to fit not only the digits that need to be stored at that station, but also to fit the place as such, like in this case a restaurant. It is a very easy and efficient way to memorize this kind of things. Magnus

                                M Offline
                                M Offline
                                Mike Marynowski
                                wrote on last edited by
                                #37

                                Just give this guy the damn geek award already.

                                1 Reply Last reply
                                0
                                • C Chris Maunder

                                  So who else would rather spend 30 mins perfecting a regular expression search and replace in Visual Studio's Find/Replace dialog than spend the 30 seconds it would take to do it manually. We need a 'flexing skinny, white geek muscles' emoticon

                                  cheers, Chris Maunder

                                  CodeProject.com : C++ MVP

                                  H Offline
                                  H Offline
                                  Henry Minute
                                  wrote on last edited by
                                  #38

                                  No! I am Geek.

                                  Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?"

                                  C 1 Reply Last reply
                                  0
                                  • T Tom Delany

                                    Who would spend 15 minutes trying to figure out how to post a lounge reply on his new Blackberry, rather than spending 2 minutes waking up the desktop PC and doing it properly?

                                    WE ARE DYSLEXIC OF BORG. Refutance is systile. Your a$$ will be laminated. There are 10 kinds of people in the world: People who know binary and people who don't.

                                    C Offline
                                    C Offline
                                    cerec
                                    wrote on last edited by
                                    #39

                                    that's me. After working for more than an hour en mi AT&T Tilt to do a task that I can do on my PC en 5 seconds am starting to believe that I am nuts!

                                    1 Reply Last reply
                                    0
                                    • C Chris Maunder

                                      So who else would rather spend 30 mins perfecting a regular expression search and replace in Visual Studio's Find/Replace dialog than spend the 30 seconds it would take to do it manually. We need a 'flexing skinny, white geek muscles' emoticon

                                      cheers, Chris Maunder

                                      CodeProject.com : C++ MVP

                                      C Offline
                                      C Offline
                                      cpkilekofp
                                      wrote on last edited by
                                      #40

                                      Me :D

                                      1 Reply Last reply
                                      0
                                      • R randomusic

                                        Well, I wasn't very clear about it, but the guy is me :-D My method is described there to quite a detailed level. But basically, to answer your question, I have an imaginary walk in my home town, Stockholm. The walk is imaginary in one sense, but real in the sense that I have walked along those paths many times in real life, so it is ingrained into my memory very firmly and naturally. Anyway, along this imaginary walk I have what could be called stations. I lump those stations into chunks of 10 stations, and super-chunks of 10 chunks and so on, so I can do random access to any station I like, given a decimal position in Pi. In each station I store 10 digits (so a chunk of 10 stations can store 100 digits). To store 10 digits in one station I need 4 words, mnemonics. 2 mnemoncis make 5 digits, so 4 mnemonics (or 2 mnemonic pairs) make 10 digits. So, if someone asks me what is the digit at position 2342, I just go to chunk 234 (with the help of super-chunk orientation if I need), and find digit 2 there, which is represented by the first letter of the second word. The translation from letters to digits is simple, a letter represents the digit it looks like, basically, with a couple of exceptions. So, an A is a 4, and I is a 1, etc. So, knowing what station 234 is in Stockholm, I have a small micro story there consisting of 4 words which more or less automatically pops up in my mind when I think of the place. I design the stories almost like headlines, for example "Bread-spread establishes Mexican food" (that is a micro story I have inside a restaurant I sometimes eat at). As you see, the stories can be designed to fit not only the digits that need to be stored at that station, but also to fit the place as such, like in this case a restaurant. It is a very easy and efficient way to memorize this kind of things. Magnus

                                        C Offline
                                        C Offline
                                        cpkilekofp
                                        wrote on last edited by
                                        #41

                                        You are a MEDIEVAL Geek...and most of those were satisified with just a HOUSE of memory, not a Swedish capital of memory...geesh

                                        R 1 Reply Last reply
                                        0
                                        • C cpkilekofp

                                          You are a MEDIEVAL Geek...and most of those were satisified with just a HOUSE of memory, not a Swedish capital of memory...geesh

                                          R Offline
                                          R Offline
                                          randomusic
                                          wrote on last edited by
                                          #42

                                          cpkilekofp wrote:

                                          You are a MEDIEVAL Geek...and most of those were satisified with just a HOUSE of memory, not a Swedish capital of memory...geesh

                                          Ha ha, yeah, I know.

                                          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