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. The joy of being a programmer

The joy of being a programmer

Scheduled Pinned Locked Moved The Lounge
salesquestioncareerlearning
29 Posts 22 Posters 4 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 Losinger

    devj wrote:

    Have you ever used your programming skills, outside of your job, to automate mundane tasks such as these?

    all the time. on of my favorites is a little app that i used to help me figure out my top 100 favorite albums. it reads album names from a file, then does a std::sort on them, where the sorting function is:

    bool compareRecords(const string &a, const string &b)
    {
    printf(“\n \”%s\” > \”%s\” ?”, a.c_str(), b.c_str());
    string yns;
    cin >> yns;
    return (toupper(yns.at(0))==’Y');
    }

    so, it asks me questions of the form: "Spoon, Kill The Moonlight" > "The Beatles, Help!" ? and i just press Y or N and it moves to the next pair. asking until it's done sorting. takes forever, but it works.

    image processing toolkits | batch image processing

    P Offline
    P Offline
    Phil Martin
    wrote on last edited by
    #9

    Nifty, I like it. The trouble with that of course is that humans being fickle creatures won't necessary answer all the questions according to what the C++ standard requires for sorting. Therefore I officially proclaim everyone who buys Spice Girls music to have to read the entire C++ standard before they can listen to any of it. :)

    C 1 Reply Last reply
    0
    • P Phil Martin

      Nifty, I like it. The trouble with that of course is that humans being fickle creatures won't necessary answer all the questions according to what the C++ standard requires for sorting. Therefore I officially proclaim everyone who buys Spice Girls music to have to read the entire C++ standard before they can listen to any of it. :)

      C Offline
      C Offline
      Chris Losinger
      wrote on last edited by
      #10

      Phil Martin... wrote:

      The trouble with that of course is that humans being fickle creatures won't necessary answer all the questions according to what the C++ standard requires for sorting.

      nope. but the function chugs right along nevertheless.

      Phil Martin... wrote:

      Therefore I officially proclaim everyone who buys Spice Girls music to have to read the entire C++ standard before they can listen to any of it

      cruel !

      image processing toolkits | batch image processing

      R D 2 Replies Last reply
      0
      • C Chris Losinger

        devj wrote:

        Have you ever used your programming skills, outside of your job, to automate mundane tasks such as these?

        all the time. on of my favorites is a little app that i used to help me figure out my top 100 favorite albums. it reads album names from a file, then does a std::sort on them, where the sorting function is:

        bool compareRecords(const string &a, const string &b)
        {
        printf(“\n \”%s\” > \”%s\” ?”, a.c_str(), b.c_str());
        string yns;
        cin >> yns;
        return (toupper(yns.at(0))==’Y');
        }

        so, it asks me questions of the form: "Spoon, Kill The Moonlight" > "The Beatles, Help!" ? and i just press Y or N and it moves to the next pair. asking until it's done sorting. takes forever, but it works.

        image processing toolkits | batch image processing

        C Offline
        C Offline
        Christian Graus
        wrote on last edited by
        #11

        Why not have them played as mp3s and then sort on the number of plays ?

        Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

        C 1 Reply Last reply
        0
        • C Christian Graus

          Why not have them played as mp3s and then sort on the number of plays ?

          Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

          C Offline
          C Offline
          Chris Losinger
          wrote on last edited by
          #12

          that would miss plays in the car and at work. plus, i've had to rebuild my iTunes library so many times, i don't have good stats.

          image processing toolkits | batch image processing

          1 Reply Last reply
          0
          • T thisraja

            Ten of my programmer friends (including me) planned a trip to Australia. Jetstar airlines were having a great sale yesterday. When sales prices are so good you will expect the website to have increased traffic and often it is impossible to get the tickets at the discounted price. So, we wrote an application that automated the process of booking the ticket from Jetstar. I am happy to say that we got tickets at a great price. The time and effort spent on writing the application paid off. I feel so sorry for non-programmers who might have tried to manually book the tickets and failed to do so as the web site may have crashed on them. Have you ever used your programming skills, outside of your job, to automate mundane tasks such as these?

            E Offline
            E Offline
            El Corazon
            wrote on last edited by
            #13

            devj wrote:

            Have you ever used your programming skills, outside of your job, to automate mundane tasks such as these?

            Well, there was a game I wrote a script to automate.... It was an AtariBBS (yes, BBS, pre-internet!)... we had a small little town that kept having our planets raided from Ohio, New York, Florida, and California.... So I wrote a script, gave it to everyone in town who played the game. It was real simple, it sent maximum number of agents to start political unrest on the solar system of choice, followed by the maximum number of terrorist operatives to the same solar system, then followed with an attack to steal the planets back.... Prior to the attack which run at 9600baud was quite effective in an hour's real-time game playing limit, a message was sent.... "You are about to be attacked by the SATAN script, Samuraicat's Automated Terrorist Attack Network..." (followed by a whole bunch of drivel and more acronyms) then " You have a choice: shut down your computer and stop playing, or continue and watch everything you have lost. Your choice, do it now." Unfortunately, when we all upgraded to 28800baud modems because of local seller selling to us at cost (he was also a player) -- an hours gameplay caused the crash of competing atari BBS servers all across the nation. But we managed to take half of all the planets from all the competing BBS's and bring them back to our server before the whole network collapsed under the weight of attack scripts. :-D Somewhere I am infamous. :-D

            _________________________ John Andrew Holmes "It is well to remember that the entire universe, with one trifling exception, is composed of others." Shhhhh.... I am not really here. I am a figment of your imagination.... I am still in my cave so this must be an illusion....

            1 Reply Last reply
            0
            • T thisraja

              Ten of my programmer friends (including me) planned a trip to Australia. Jetstar airlines were having a great sale yesterday. When sales prices are so good you will expect the website to have increased traffic and often it is impossible to get the tickets at the discounted price. So, we wrote an application that automated the process of booking the ticket from Jetstar. I am happy to say that we got tickets at a great price. The time and effort spent on writing the application paid off. I feel so sorry for non-programmers who might have tried to manually book the tickets and failed to do so as the web site may have crashed on them. Have you ever used your programming skills, outside of your job, to automate mundane tasks such as these?

              Y Offline
              Y Offline
              Yusuf
              wrote on last edited by
              #14

              Shhhhh. Don't tell that to CG

              Yusuf May I help you?

              1 Reply Last reply
              0
              • L Lost User

                I cheat at text-based online RPGs that way :) And at some of those "click ads for money" things that don't care about/don't notice such cheating.

                W Offline
                W Offline
                wout de zeeuw
                wrote on last edited by
                #15

                harold aptroot wrote:

                And at some of those "click ads for money" things that don't care about/don't notice such cheating.

                Give me my adwords money back!

                Wout

                L 1 Reply Last reply
                0
                • W wout de zeeuw

                  harold aptroot wrote:

                  And at some of those "click ads for money" things that don't care about/don't notice such cheating.

                  Give me my adwords money back!

                  Wout

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

                  Hm.. adwords cares about such cheating, right? anyway it's not adwords An other undeserved 1-vote.

                  modified on Monday, August 30, 2010 12:29 PM

                  1 Reply Last reply
                  0
                  • T thisraja

                    Ten of my programmer friends (including me) planned a trip to Australia. Jetstar airlines were having a great sale yesterday. When sales prices are so good you will expect the website to have increased traffic and often it is impossible to get the tickets at the discounted price. So, we wrote an application that automated the process of booking the ticket from Jetstar. I am happy to say that we got tickets at a great price. The time and effort spent on writing the application paid off. I feel so sorry for non-programmers who might have tried to manually book the tickets and failed to do so as the web site may have crashed on them. Have you ever used your programming skills, outside of your job, to automate mundane tasks such as these?

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

                    The radio station to which my wife listens has "no repeat workdays" -- they don't repeat songs Mon-Fri, 8-6 (or whatever). Last spring (I think) they had a contest -- they would play a song during the morning rush hour and repeat it later in the day -- be the nth caller and win a prize! They have a Website that lists the played songs, so I wrote a simple console app to scrape the site once a minute, detect the repeat (Cthulhu-wise), and raise an alarm (internal speaker beeps). It worked well enough; there were a few false-positives and missed repeats because the Website wasn't 100% accurate. But mainly I didn't have to listen to commercial radio. X|

                    1 Reply Last reply
                    0
                    • C Chris Losinger

                      Phil Martin... wrote:

                      The trouble with that of course is that humans being fickle creatures won't necessary answer all the questions according to what the C++ standard requires for sorting.

                      nope. but the function chugs right along nevertheless.

                      Phil Martin... wrote:

                      Therefore I officially proclaim everyone who buys Spice Girls music to have to read the entire C++ standard before they can listen to any of it

                      cruel !

                      image processing toolkits | batch image processing

                      R Offline
                      R Offline
                      Rob Grainger
                      wrote on last edited by
                      #18

                      ...and anyone silly enough to read the entire C++ standard should be "rewarded" by having to listen to the entire Spice Girls back catalogue.

                      1 Reply Last reply
                      0
                      • C Christian Graus

                        So YOU'RE the reason I had to fight that website for 15 minutes to get flights to Soundwave ?

                        Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

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

                        So Decepticons are playing concerts now?[^]

                        Software Zen: delete this;

                        1 Reply Last reply
                        0
                        • A AspDotNetDev

                          devj wrote:

                          Ten of my programmer friends (including me)

                          You are a programmer and you have a whole ten friends!? Suuuuuure you do.

                          [Forum Guidelines]

                          E Offline
                          E Offline
                          Edgar Prieto
                          wrote on last edited by
                          #20

                          so... now Imaginary friends count?

                          Edgar Prieto Software Engineer

                          A B 2 Replies Last reply
                          0
                          • C Chris Losinger

                            Phil Martin... wrote:

                            The trouble with that of course is that humans being fickle creatures won't necessary answer all the questions according to what the C++ standard requires for sorting.

                            nope. but the function chugs right along nevertheless.

                            Phil Martin... wrote:

                            Therefore I officially proclaim everyone who buys Spice Girls music to have to read the entire C++ standard before they can listen to any of it

                            cruel !

                            image processing toolkits | batch image processing

                            D Offline
                            D Offline
                            DragonsRightWing
                            wrote on last edited by
                            #21

                            Chris Losinger wrote:

                            Phil Martin... wrote: Therefore I officially proclaim everyone who buys Spice Girls music to have to read the entire C++ standard before they can listen to any of it cruel !

                            Which one is cruel - reading the entire C++ standard, or listening to Spice Girls music?

                            1 Reply Last reply
                            0
                            • E Edgar Prieto

                              so... now Imaginary friends count?

                              Edgar Prieto Software Engineer

                              A Offline
                              A Offline
                              AspDotNetDev
                              wrote on last edited by
                              #22

                              In that case, I have HUNDREDS of friends!

                              [Forum Guidelines]

                              1 Reply Last reply
                              0
                              • T thisraja

                                Ten of my programmer friends (including me) planned a trip to Australia. Jetstar airlines were having a great sale yesterday. When sales prices are so good you will expect the website to have increased traffic and often it is impossible to get the tickets at the discounted price. So, we wrote an application that automated the process of booking the ticket from Jetstar. I am happy to say that we got tickets at a great price. The time and effort spent on writing the application paid off. I feel so sorry for non-programmers who might have tried to manually book the tickets and failed to do so as the web site may have crashed on them. Have you ever used your programming skills, outside of your job, to automate mundane tasks such as these?

                                L Offline
                                L Offline
                                Larry G Grimes
                                wrote on last edited by
                                #23

                                Back in the late 90's a DOT COM start up named TixToGo.com (they sold tickets online for other people's events) was giving away a Porsche Boxter (worth about $60,000 at the time) to someone who picked a new company domain name for them. I wrote a program to take a list of names and search each one on Network Solutions (to see if it was available), the USPTO (to see if it was trademarked) and the five top search engines at the time to see how and how much the name was used. I submitted 248 names that met all the constraints of my software. Then I emailed the CEO about why all my names were clean. They were doing all the searching manually and wanted my software desperately. Anyway, they had received over 55,000 names and were able to sift through them in short order and just pick a good one. By the way, they changed the name to acteva.com. activa.com was one of my names, but as a temporary sub-contractor of the company, my names were invalid.

                                1 Reply Last reply
                                0
                                • C Chris Losinger

                                  devj wrote:

                                  Have you ever used your programming skills, outside of your job, to automate mundane tasks such as these?

                                  all the time. on of my favorites is a little app that i used to help me figure out my top 100 favorite albums. it reads album names from a file, then does a std::sort on them, where the sorting function is:

                                  bool compareRecords(const string &a, const string &b)
                                  {
                                  printf(“\n \”%s\” > \”%s\” ?”, a.c_str(), b.c_str());
                                  string yns;
                                  cin >> yns;
                                  return (toupper(yns.at(0))==’Y');
                                  }

                                  so, it asks me questions of the form: "Spoon, Kill The Moonlight" > "The Beatles, Help!" ? and i just press Y or N and it moves to the next pair. asking until it's done sorting. takes forever, but it works.

                                  image processing toolkits | batch image processing

                                  E Offline
                                  E Offline
                                  englebart
                                  wrote on last edited by
                                  #24

                                  Does std:sort call you a liar if during something like this happens. a > b ? Y b > c ? Y a > c ? N ERROR: You are a liar! The answer must be Y!

                                  C 1 Reply Last reply
                                  0
                                  • E englebart

                                    Does std:sort call you a liar if during something like this happens. a > b ? Y b > c ? Y a > c ? N ERROR: You are a liar! The answer must be Y!

                                    C Offline
                                    C Offline
                                    Chris Losinger
                                    wrote on last edited by
                                    #25

                                    nope. it just keeps on going.

                                    image processing toolkits | batch image processing

                                    1 Reply Last reply
                                    0
                                    • E Edgar Prieto

                                      so... now Imaginary friends count?

                                      Edgar Prieto Software Engineer

                                      B Offline
                                      B Offline
                                      BrainiacV
                                      wrote on last edited by
                                      #26

                                      If you include Rosy Palm and her five sisters...

                                      Psychosis at 10 Film at 11

                                      F 1 Reply Last reply
                                      0
                                      • T thisraja

                                        Ten of my programmer friends (including me) planned a trip to Australia. Jetstar airlines were having a great sale yesterday. When sales prices are so good you will expect the website to have increased traffic and often it is impossible to get the tickets at the discounted price. So, we wrote an application that automated the process of booking the ticket from Jetstar. I am happy to say that we got tickets at a great price. The time and effort spent on writing the application paid off. I feel so sorry for non-programmers who might have tried to manually book the tickets and failed to do so as the web site may have crashed on them. Have you ever used your programming skills, outside of your job, to automate mundane tasks such as these?

                                        T Offline
                                        T Offline
                                        typeRice
                                        wrote on last edited by
                                        #27

                                        All the time, as necessary. Here are a few:

                                        • screen recognition bot to automate tedious repetitive tasks in 2D Java based MMORPG game. (based on wxWidgets / OpenCV)
                                        • Mutual Fund data aggregation with graphs to aid in choosing Mutual Funds for investment.
                                        • Chore tracker to track which roommates are doing chores, with custom features not available on any online chore tracker I could find.
                                        • Financial tracker similar to the chore tracker to track and encourage equal share in expenses by roommates.
                                        • A quick little web app to allow entry and search of recipes by ingredients they use.
                                        • A brute force tool to determine the most optimized set of folders (or files) to burn to a DVD and waste as little space as possible.
                                        • An app to quickly sort duplicate files into good/bad folders from a music folder which is constantly filled with new files most of which are the same name as ones that were previously deleted. Names are stored in a database and user is queried to manually tag new names as good or bad for the next run on a new set of files.

                                        And if you want to go really far back, how about autoexec.bat and config.bat files with built in menus to allow boot time selection of unique memory configurations for various DOS based games so they would actually run.

                                        1 Reply Last reply
                                        0
                                        • B BrainiacV

                                          If you include Rosy Palm and her five sisters...

                                          Psychosis at 10 Film at 11

                                          F Offline
                                          F Offline
                                          Faddel
                                          wrote on last edited by
                                          #28

                                          I am a programmer since 1 year, and still having tens of friends, I see them regularly, communicate using emails, I don't know things might become after some years, but I expect to stay in a good relationships with people,

                                          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