The Daily WTF: Curious Perversions in Information Technology
Welcome to TDWTF Forums Sign in | Join | Help
in Search

Undo files

Last post 11-25-2008 10:56 AM by Zecc. 28 replies.
Page 1 of 1 (29 items)
Sort Posts: Previous Next
  • 11-20-2008 2:43 PM

    • Zecc
    • Top 50 Contributor
    • Joined on 06-12-2007
    • Location, Location, Location
    • Posts 658

    Undo files

    A coworker of mine just lost a couple of files he had been working on.

    Apparently, in the IDE we use, if you copy and paste files through the explorer-like tree that shows the project's working directoy, and then inocently press "Ctrl+Z" while your mouse is hovering the tree, the IDE will erase those files.

    Never mind if you had been furiously typing and doing some heavy work on those "copied" files for the past few minutes..

    If mixed metaphors were illegal, I'd be having an indigestion.
    typeof NaN == 'number'
  • 11-20-2008 7:59 PM In reply to

    Re: Undo files

     So, what's the name of that IDE so we can avoid it?

    http://www.devcorner.nl
  • 11-20-2008 8:49 PM In reply to

    Re: Undo files

    Zecc:

    A coworker of mine just lost a couple of files he had been working on.

    Apparently, in the IDE we use, if you copy and paste files through the explorer-like tree that shows the project's working directoy, and then inocently press "Ctrl+Z" while your mouse is hovering the tree, the IDE will erase those files.

    Never mind if you had been furiously typing and doing some heavy work on those "copied" files for the past few minutes..

    I recall an IDE like that... except :s/minutes/hours, days, or weeks/. The only things that would protect those files from "Ctrl+Z" was exiting and restarting the IDE, or performing more actions in the explorer-like tree. (Once, I went on vacation for two weeks, shortly after having pasted a file. I left the app running, with the screen locked. About a day after I returned, having performed no file-level changes, I hit Ctrl+Z after having bumped the mouse without noticing it. Bam!)

    I cannot remember the name of the IDE. However, IIRC, it was a proprietary, highly specialized program. As a general rule, one wouldn't accidentally wander into it without a change of job. At least, I'd assume such a gratuitous bug would show up in anyone's evaluation testing.

    tharpa:
    The "Reveal Codes" feature alone makes it better than Word.

    QFT.


  • 11-21-2008 4:54 AM In reply to

    • Zecc
    • Top 50 Contributor
    • Joined on 06-12-2007
    • Location, Location, Location
    • Posts 658

    Re: Undo files

    RobIII:

     So, what's the name of that IDE so we can avoid it?

    Zecc isn't sayingd.

     

    Aaah.. aah...  Shhtudio !!

    Oh my, looks like I caught a cold. 

    If mixed metaphors were illegal, I'd be having an indigestion.
    typeof NaN == 'number'
  • 11-21-2008 4:56 AM In reply to

    • Daid
    • Top 75 Contributor
    • Joined on 01-30-2007
    • Posts 348

    Re: Undo files

    Reminds me of the painful IAR embedded systems AVR IDE bug. In version 3 you could have the same file open twice, which resulted in "change is saved, changed is not saved"? actions when you pressed save all, or compile. Version 4 release not long after that, which fixed the bug. Still, countless hours of work lost because of it.
  • 11-21-2008 6:59 AM In reply to

    • Kemp
    • Top 500 Contributor
    • Joined on 09-21-2006
    • Posts 125

    Re: Undo files

    tgape:
    (Once, I went on vacation for two weeks, shortly after having pasted a file. I left the app running, with the screen locked. About a day after I returned, having performed no file-level changes, I hit Ctrl+Z after having bumped the mouse without noticing it. Bam!)
     

    You left your PC on for two weeks with no one using it? Glad I don't pay your power bill. Though those greenhouse gasses aren't going to help much...

  • 11-21-2008 7:54 AM In reply to

    • tster
    • Top 10 Contributor
    • Joined on 04-11-2006
    • Natick, MA
    • Posts 1,765

    Re: Undo files

    Kemp:

    tgape:
    (Once, I went on vacation for two weeks, shortly after having pasted a file. I left the app running, with the screen locked. About a day after I returned, having performed no file-level changes, I hit Ctrl+Z after having bumped the mouse without noticing it. Bam!)
     

    You left your PC on for two weeks with no one using it? Glad I don't pay your power bill. Though those greenhouse gasses aren't going to help much...

     

    how much does it cost to run a computer for 2 weeks in sleep mode? Computer use 1-20 watts in sleep mode.  Lets say his is bad and uses 50 watts. 50 watt/hours * 24 hours/day * 7 days/week * 2 weeks = 16800 watt hours is about 17 kilowat hours.  The average cost of electricity here in the US is about 7-8 cents/kilowatt/hour.  Lets say he lives in one of the most expensive states, like California where it is 12 So the total cost of running the computer that two weeks is 17 * 12 =  $2.04.  

    Compared to the cost to the company of shutting down the computer.  When tgape gets to work he starts up his computer.  Lets say it takes 5 minutes to start up and be ready to go.  Lets say tgape makes on the low end of programmers at about $50,000/year.  That means the company's expense is probably about $80,000-$100,000/year.  Lets say it is low ($75,000).  Lets further say tgape has 13 holiday days, 2 weeks of vacation and 5 personal days.  That means he works 52*5-(13+2+5) = 240 day/year.  That means the company expense per day is $312.50.   A work day is 8 hours (480 minutes).  That means his time is worth $0.65/minute to the company.  5 minutes at 65 cents is $3.25.  So he saved the company over a dollar using extremely conservative numbers. 

    I'm glad I don't pay your paycheck.

    The pig go. Go is to the fountain. The pig put foot. Grunt. Foot in what? ketchup. The dove fly. Fly is in sky. The dove drop something. The something on the pig. The pig disgusting... see bio for the earth shattering ending.
  • 11-21-2008 9:48 AM In reply to

    • NSCoder
    • Top 500 Contributor
    • Joined on 07-24-2005
    • Geneva, Switzerland
    • Posts 93

    Re: Undo files

    tster:

    Kemp:

    tgape:
    (Once, I went on vacation for two weeks, shortly after having pasted a file. I left the app running, with the screen locked. About a day after I returned, having performed no file-level changes, I hit Ctrl+Z after having bumped the mouse without noticing it. Bam!)
     

    You left your PC on for two weeks with no one using it? Glad I don't pay your power bill. Though those greenhouse gasses aren't going to help much...

     

    how much does it cost to run a computer for 2 weeks in sleep mode? Computer use 1-20 watts in sleep mode.  Lets say his is bad and uses 50 watts. 50 watt/hours * 24 hours/day * 7 days/week * 2 weeks = 16800 watt hours is about 17 kilowat hours.  The average cost of electricity here in the US is about 7-8 cents/kilowatt/hour.  Lets say he lives in one of the most expensive states, like California where it is 12 So the total cost of running the computer that two weeks is 17 * 12 =  $2.04.  

    Compared to the cost to the company of shutting down the computer.  When tgape gets to work he starts up his computer.  Lets say it takes 5 minutes to start up and be ready to go.  Lets say tgape makes on the low end of programmers at about $50,000/year.  That means the company's expense is probably about $80,000-$100,000/year.  Lets say it is low ($75,000).  Lets further say tgape has 13 holiday days, 2 weeks of vacation and 5 personal days.  That means he works 52*5-(13+2+5) = 240 day/year.  That means the company expense per day is $312.50.   A work day is 8 hours (480 minutes).  That means his time is worth $0.65/minute to the company.  5 minutes at 65 cents is $3.25.  So he saved the company over a dollar using extremely conservative numbers. 

    I'm glad I don't pay your paycheck.

    Now let's say that he lost a day of work due to leaving the computer on and then pressing ctrl+Z. That works out at about $312.50.
  • 11-21-2008 1:45 PM In reply to

    Re: Undo files

    Kemp:
    You left your PC on for two weeks with no one using it?

    Fundamental assumption error.

    The software I was using didn't run on a PC (Intel or otherwise) at that time.  I said nothing about whether other people used said computer while I was gone.  (In fact, it was in use - but that's an entirely separate WTF which has been covered well here in prior peoples' posts.)

    tharpa:
    The "Reveal Codes" feature alone makes it better than Word.

    QFT.


  • 11-21-2008 2:06 PM In reply to

    Re: Undo files

    tster:
    how much does it cost to run a computer for 2 weeks in sleep mode?
    ...
    tster:
    Compared to the cost to the company of shutting down the computer.
    ...

    Interesting line of thought.  Let's flesh out some numbers, there...  Computer wasn't in sleep mode, due to some fool's decision to create a tangled mess of NFS shares.  I think it used something like 80 watts normally (this was some time ago, and all.)  This was Texas, so that puts the first price at something like $2.45.

    I was a contractor.  My bill rate was $130/hr1, boot time was 1m2.  That readily works out to $2.17.  So if I could have turned off the computer while I was gone, I would've saved the company some money.

    Of course, it would've saved the company even more money for me to not have shut down if I hadn't saved the file multiple times between copying the file and undoing the file.  (In fact, I'd actually saved it right before the undo.  I'd then ran a test, which failed, so I undid the change.  So the cost was restarting the app3 and manually undoing the change.


    1  Of course, I saw little of this money.  Something on the order of 16%.
    2  Assuming, of course, that all of the proper other systems were up.  Add 5m for each NFS share which was not available.  Since this was Christmas, that could'a been a big number.
    3  Re-opening a file took this PoS 3-4 times longer than exiting, restarting, and opening an entire project (many files).
    tharpa:
    The "Reveal Codes" feature alone makes it better than Word.

    QFT.


  • 11-21-2008 10:54 PM In reply to

    • tster
    • Top 10 Contributor
    • Joined on 04-11-2006
    • Natick, MA
    • Posts 1,765

    Re: Undo files

    electricity in texas is 9.6 cents/Kwh

    The pig go. Go is to the fountain. The pig put foot. Grunt. Foot in what? ketchup. The dove fly. Fly is in sky. The dove drop something. The something on the pig. The pig disgusting... see bio for the earth shattering ending.
  • 11-22-2008 12:38 AM In reply to

    Re: Undo files

    tster:
    electricity in texas is 9.6 cents/Kwh
    Yes of course.  Texas is such a small state that if you know the price in one area is like the price across the state.  Good one.

    Also, Let me not show in any way how that affects any of the calculations.  I'll just spout some bullshit and it'll prove my point.  Eveyone'll believe that!

    SpectateSwamp exposing aliens. Obviously the World needs SSDS


    [10:07] <fatdog> so from now on.. be sure to wear nice clean underwear
    [10:07] <mps> fatdog: That is simply not going to happen
  • 11-22-2008 8:23 AM In reply to

    • pjt33
    • Not Ranked
    • Joined on 12-06-2005
    • Posts 35

    Re: Undo files

     I've had an old version of Eclipse do that to me, although I think it was still possible to recover the file with its history feature.

  • 11-22-2008 12:36 PM In reply to

    Re: Undo files

    tgape:

    Interesting line of thought.  Let's flesh out some numbers, there...  Computer wasn't in sleep mode, due to some fool's decision to create a tangled mess of NFS shares.  I think it used something like 80 watts normally (this was some time ago, and all.)  This was Texas, so that puts the first price at something like $2.45.

    I was a contractor.  My bill rate was $130/hr1, boot time was 1m2.  That readily works out to $2.17.  So if I could have turned off the computer while I was gone, I would've saved the company some money.

    There are so, so many things wrong from an economic point of view here.  For one, your rates for electricity are too high.  As you said, this was some time ago but you are using current residential rates.  Rates for commercial electricity 10 years ago would be half of that.  You also ignore that turning computers on and off wears out components faster, compared to leaving them on all the time.

     

    Even if tster was wrong about the numbers of your particular situation, he is right overall as your situation represents an odd outlier.  Kemp's criticism was silly.

     

    However your biggest mistakes show a stunning ignorance of business.  An employer does not pay you to turn on a computer.  Your billable rate is not what an employer pays you for just sitting around.  The employer pays you because it makes them a profit.  In this sense, the cost of that 1 minute could potentially be quite a bit more than your billable rate.  You also fail to factor in the work involved in shutting down and starting a computer.  It may take 1 minute to boot, but if you are anything like me you have dozens of apps and web pages open at any one time and taking the time to save your position in each of these and then resume it later will certainly add up.

     

    Overall, it's difficult to really calculate what the cost of turning on and off a computer is for a company, but to broadly claim that turning off a computer for 2 weeks saves enough money for a company to justify it (as Kemp said) is simply retarded.

  • 11-23-2008 2:20 PM In reply to

    • tster
    • Top 10 Contributor
    • Joined on 04-11-2006
    • Natick, MA
    • Posts 1,765

    Re: Undo files

    belgariontheking:

    tster:
    electricity in texas is 9.6 cents/Kwh
    Yes of course.  Texas is such a small state that if you know the price in one area is like the price across the state.  Good one.

    Also, Let me not show in any way how that affects any of the calculations.  I'll just spout some bullshit and it'll prove my point.  Eveyone'll believe that!

     

    what the fuck is wrong with you?  I can see that you are just spouting bullshit and not proving anything by the fact that that's exactly what you just did.  Electricty prices (residential, which is the highest of all the sectors) in texas average 9.6 cents and hour. I seriously doubt the company was paying 33% more than the average in their state for electricity.

    He then makes crazy assumtions:

    1.  That computers a long time ago used somewhere between 4 and 80 times more electricity in sleep mode than they do currently.

    2.  That his old computer somehow takes only 1 minute to go from the off state to the ready-to-work state.  As morbius already pointed out, I'm not talking about the time it takes for the computer to show the operating system.  I'm talking about from off to having the IDE up and regular programs open and running.

    3.  That his bill rate is the only expense to the company for him working.  

    BTW, since belgariontheking seem to be unable to multiply numbers and has to have me spell out the entire computation again:

    9.6 cents/kwH * 17 kwH =  $1.63 which is less than $2.17.

    The pig go. Go is to the fountain. The pig put foot. Grunt. Foot in what? ketchup. The dove fly. Fly is in sky. The dove drop something. The something on the pig. The pig disgusting... see bio for the earth shattering ending.
  • 11-23-2008 2:22 PM In reply to

    • tster
    • Top 10 Contributor
    • Joined on 04-11-2006
    • Natick, MA
    • Posts 1,765

    Re: Undo files

     As a follow up, sometimes it is cost efficient to restart your computer because it might make the computer run faster once it has restarted (especially old versions of Windows).  But this has NOTHING to do with electricity costs.

     

    Lets put it this way:  If you are worried about electricity costs of developer workstations, you are worried about the wrong thing.

    The pig go. Go is to the fountain. The pig put foot. Grunt. Foot in what? ketchup. The dove fly. Fly is in sky. The dove drop something. The something on the pig. The pig disgusting... see bio for the earth shattering ending.
  • 11-23-2008 5:30 PM In reply to

    Re: Undo files

    tster:
    Lets put it this way:  If you are worried about electricity costs of developer workstations, you are worried about the wrong thing.

    QFT.  That's what this really comes down to.  All this jerking off about the cost of electricity is meaningless because it ignores the opportunity cost of lost productivity.  One lost minute of productivity a day for every employee can be the difference between life and death for a company in an economy where product cycles are measured in months.  Obviously, you can't sit and tabulate every expense like some kind of OCD beancounter; that kind of micro-management is counter-productive and harmful to morale.  However, trying to argue that a few dollars per employee per year lost on electricity is comparable to hours of lost productivity is idiotic.  Anyone who thought "Oh Jeez, how wasteful of company resources to leave a developer workstation on for two weeks!" should reconsider any ambitions of management or starting a small business because you clearly suck at doing cost-benefit analysis.

  • 11-23-2008 5:37 PM In reply to

    • Feek
    • Not Ranked
    • Joined on 03-08-2008
    • The Bottom of the Barrel
    • Posts 14

    Re: Undo files

    tster:

     As a follow up, sometimes it is cost efficient to restart your computer because it might make the computer run faster once it has restarted (especially old versions of Windows).  But this has NOTHING to do with electricity costs.

     

    Lets put it this way:  If you are worried about electricity costs of developer workstations, you are worried about the wrong thing.

     

    I agree. My input was going to be "Who gives a shit?" Do we realize we're arguing over the difference of about a dollar here? Sometimes I think I want to hang out with programmers more to keep in touch with the people in my industry. Then I read threads like this and realize that I'd have to hang out with programmers more. :)

    On a side note, why are there so many of us Massholes that frequent this board? It's not like Alex advertises on the T...

     

    Edit: ...and what morbius said, too.

  • 11-23-2008 10:18 PM In reply to

    Re: Undo files

    tster:
    what the fuck is wrong with you?
    I'm drunk.  Well I was at the time. 

    I think that your original calculation of how much it cost to do A vs B was the very definition of a waste of time in the first place.  Any further discussion of it merely sends the thread into a spiral.

    SpectateSwamp exposing aliens. Obviously the World needs SSDS


    [10:07] <fatdog> so from now on.. be sure to wear nice clean underwear
    [10:07] <mps> fatdog: That is simply not going to happen
  • 11-23-2008 10:34 PM In reply to

    Re: Undo files

    Feek:
    On a side note, why are there so many of us Massholes that frequent this board? It's not like Alex advertises on the T...
    There seems to be an anomalously high proportion of Aussies here as well, at least amongst the active members.
  • 11-23-2008 10:35 PM In reply to

    • tster
    • Top 10 Contributor
    • Joined on 04-11-2006
    • Natick, MA
    • Posts 1,765

    Re: Undo files

    belgariontheking:

    tster:
    what the fuck is wrong with you?
    I'm drunk.  Well I was at the time. 

    I think that your original calculation of how much it cost to do A vs B was the very definition of a waste of time in the first place.  Any further discussion of it merely sends the thread into a spiral.

     

    That explains it.  I have a rule about # drinks and the visiting of thedailywtf.com.

     Also, internet forums mostly exist to waste time, so I'm not too concerned about wasting my time proving that someone else is a moron.

    The pig go. Go is to the fountain. The pig put foot. Grunt. Foot in what? ketchup. The dove fly. Fly is in sky. The dove drop something. The something on the pig. The pig disgusting... see bio for the earth shattering ending.
  • 11-24-2008 6:14 AM In reply to

    • Kemp
    • Top 500 Contributor
    • Joined on 09-21-2006
    • Posts 125

    Re: Undo files

     Wow, you guys really get riled up by random comments =P I know, interwebs, serious business, and all that. Besides, in your rush to prove me wrong you forgot something important. He's not going to come into work and sit there staring at the screen while the computer boots (thus wasting the money you mentioned), he'll be grabbing a drink from the water cooler, or checking his voicemail, or saying hi to someone, or checking the notes people have left scattered around for all the "IMPORTANT" and "URGENT" things that they want doing (he *has* been away two weeks). Either way, I think the time you spent trying to prove me wrong was far more than he would have spent waiting for the computer to finish booting.

  • 11-24-2008 6:46 AM In reply to

    • Feek
    • Not Ranked
    • Joined on 03-08-2008
    • The Bottom of the Barrel
    • Posts 14

    Re: Undo files

    Kemp:

    Besides, in your rush to prove me wrong you forgot something important. He's not going to come into work and sit there staring at the screen while the computer boots (thus wasting the money you mentioned), he'll be grabbing a drink from the water cooler, or checking his voicemail, or saying hi to someone, or checking the notes people have left scattered around for all the "IMPORTANT" and "URGENT" things that they want doing (he *has* been away two weeks).

     

    In your rush to get the last word in, it you forgot something important: "Who the fuck cares?!?"

  • 11-24-2008 7:53 AM In reply to

    Re: Undo files

    tster:
    That explains it.  I have a rule about # drinks and the visiting of thedailywtf.com.
    I do to.  I'll explain it in algorithmic form

    while (numDrinks < 3)

    {   haveADrink();}

    gotoWork();

    while (numDrinks < 6)

    {   haveADrink();}

    wasteMyTimeAndOthersOnTDWTF();

    Yes, numDrinks is a global variable.

    gotoWork is defined to check whether it's time to be at work.  It doesn't send me to work at 1am on a Friday night.

    doWork() is not defined.  neither is doAllTheWork().

    also,  wasteMyTimeAndOthersOnTDWTF() is named with bad English (should be wasteMyAndOthersTimeOnTDWTF) but it's a legacy enterprise function and would require a lot of changes just so I can have good English in my function names.

    SpectateSwamp exposing aliens. Obviously the World needs SSDS


    [10:07] <fatdog> so from now on.. be sure to wear nice clean underwear
    [10:07] <mps> fatdog: That is simply not going to happen
  • 11-24-2008 6:55 PM In reply to

    • tster
    • Top 10 Contributor
    • Joined on 04-11-2006
    • Natick, MA
    • Posts 1,765

    Re: Undo files

    belgariontheking:

    Yes, numDrinks is a global variable.

     

    Your problem might be that you have multiple threads accessing this function at once and you end up calling haveADrink 10 to 12 times before calling the time wasting lagacy function.  You might want to add semaphores.

    The pig go. Go is to the fountain. The pig put foot. Grunt. Foot in what? ketchup. The dove fly. Fly is in sky. The dove drop something. The something on the pig. The pig disgusting... see bio for the earth shattering ending.
  • 11-24-2008 7:17 PM In reply to

    Re: Undo files

    tster:

    belgariontheking:

    Yes, numDrinks is a global variable.

     

    Your problem might be that you have multiple threads accessing this function at once and you end up calling haveADrink 10 to 12 times before calling the time wasting lagacy function.  You might want to add semaphores uppers.

    FTFY. 

  • 11-24-2008 9:31 PM In reply to

    Re: Undo files

    tster:
    Your problem might be that you have multiple threads accessing this function at once and you end up calling haveADrink 10 to 12 times before calling the time wasting lagacy function.  You might want to add semaphores.

    Not only that but the haveADrink function has been known to corrupt memory, and sometimes when called often enough it leaves your program thinking numDrinks is a much lower number than it really is...

  • 11-25-2008 7:50 AM In reply to

    Re: Undo files

    fyjham:
    Not only that but the haveADrink function has been known to corrupt memory, and sometimes when called often enough it leaves your program thinking numDrinks is a much lower number than it really is...
    And let us not forget that it also causes unexpected system shutdowns, which lowers access requirements to private members, resulting in an increase in viruses and dialog boxes saying, "Where am I?  What did I do last night?"

  • 11-25-2008 10:56 AM In reply to

    • Zecc
    • Top 50 Contributor
    • Joined on 06-12-2007
    • Location, Location, Location
    • Posts 658

    Re: Undo files

    And now the following prompt appeared:

    Yes, No, Cancel

    I pressed N.

    The Cancel button highlighted in darker grey.

    Nothing else happened.


    In case you're wondering: 'Yes' means "save again", 'No' means "close without saving", 'Cancel' means "keep it open".

    If mixed metaphors were illegal, I'd be having an indigestion.
    typeof NaN == 'number'
Page 1 of 1 (29 items)
Powered by Community Server (Non-Commercial Edition), by Telligent Systems