Slashdot Mirror


User: networkBoy

networkBoy's activity in the archive.

Stories
0
Comments
4,983
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 4,983

  1. Re:it's impossible on Ask Slashdot: Tips On 2D To Stereo 3D Conversion? · · Score: 1

    In theory you can expand the image to 3d by clipping each object and vertically slicing it into layers (for a tree, or horizontally for a bench) then adding 3D effect to the layers, filling in where there is gaps and overlaying where needed, for each object in each frame of the film, then composit all the objects and masks back on to the scene. Now that you've spent ~100 hours on that your first frame is done, time to do the next, but now it's harder because you need to account for motion so your clipping masks are no the same AR as the previous frame and your fill/overlap layers changed as well since the perspective has changed. Wash rinse repeat for the rest of your life to finish a 10 minute clip.
    possible to do right? yes.
    practical? not at all.
    -nB

  2. Re:Oblig XKCD on Ask Slashdot: Tips On 2D To Stereo 3D Conversion? · · Score: 0
  3. Re:Movie rental on Pirate Bay To Offer Physical Item Downloads · · Score: 1

    because they wouldn't make enough money to make it worth it. Redbox is about at the floor of cost at $1/day. Even with all the automation you have to pay people to stock the machines, you get damaged disks from wear and tear, no one rental caused the issue so you can't charge it back to the last renter. You have to pay the cost of the machines, and the maintenance on them.
    Honestly I'm surprised that Redbox is profitable at $1/day. All it takes is someone damaging your machine and you're back in the hole.
    -nB

  4. Re:Well, there goes *that* heroin shipment on Senator Rand Paul Detained By the TSA · · Score: 5, Insightful

    This is a good thing, the more awareness about the TSA from lawmakers will bring about a much needed reigning in.
    -nB

  5. Re:I'd start by shooting the Captain.... on What To Do With a 1,000 Foot Wrecked Cruise Ship? · · Score: 1

    This all would have been different if, instead of refusing to get back on the ship, there was a recording of him demanding the CG find a way to get him back on his ship ASAP... Would have made his "I fell in the lifeboat" spheel a little easier to swallow.

  6. Re:You're not allowed to hate in America on Police Investigate Offensive Wi-Fi Network Name · · Score: 1

    No one said he couldn't change his mind. I take that to be not that he was wrong or misquoted, but rather to mean: You needed those rules then, now you need these.
    FWIW at least, IANAbibleStudiesGuy

  7. Re:Thats given me an idea... on What To Do With a 1,000 Foot Wrecked Cruise Ship? · · Score: 1

    This would work. Worlds biggest tiki candle!

  8. Re:Thats given me an idea... on What To Do With a 1,000 Foot Wrecked Cruise Ship? · · Score: 1

    Besides recovering the oil is profitable, especially when compared to pumping oil out of the ground and transporting the crude and refining to fuel and transporting the fuel. This one only has the first and last steps, cutting out the middle steps: pump oil out of ship, transport to fuel depot.

    Also, the ship may be salvageable. even if it costs $10M to repair and another $5M to salvage it you're still ahead $10M compared to buying a new one.
    -nB

  9. Re:I can't remember my husband's passwords on Teens Share Passwords As a Form of Intimacy · · Score: 1

    To the netflix thing:
    They could fix this easily by allowing sub accounts to stream, but only if another account is not currently streaming. The main account gets the same error, but with the option of bumping the currently playing stream.

    As to PWDs, another excellent reason not to share with anyone other than a priest while confessing, a Lawyer on your retainer, or a spouse is privilege. They can not be forced to divulge the info.

  10. Re:XKCD on Teens Share Passwords As a Form of Intimacy · · Score: 1

    *this*
    The first time I discovered XKCD about a year and a half ago I started at the beginning and went through them all. I decided Randall is not only smarter then me, but smarter than most of those I think of as mentors.
    A week later someone told me that there was alt text that needed to be read as well.
    *sob*
    back to the first comic I went and started over. To be fair I learned stuff from the alt text.

  11. Re:Do While on Visual Studio Gets Achievements, Badges, Leaderboards · · Score: 1

    I know you were not the one to suggest I leave, just decided to ball both responses together.

    I don't actually disagree, it's just that since this is an inherited codebase and the dev team we have in place now is relatively junior, I would rather not futz with the existing code. We avoid introducing any more code like this, but the legacy stuff is still there.

    In the case of point 1 I agree with the provision that I can ram a style guide down people's throat to limit how they do this. I am concerned that once you allow goto's into the code they will find each other and multiply, resulting in summing cithulu or the flying spaghetti monster. Humans beeing what they are, if they think a goto makes it easier to code up, they will, without a thought for maintainability in the future. As it sits now, there are three gotos in the code, all documented, all reviewed. Easy to find when you search for goto. If we use them more openly then it will be harder to find potentially bad uses. I think that is my biggest argument in favor of do while 0.

    In the case of point 2, I'm not sure if we could make that portable enough to fit on the embedded firmware. The host OS application is the bulk of the code, but the smaller portion that exists on the embedded device (and also exists on the host) is severely memory constrained.

    My current job is almost entirely code cleanup, I'm focusing on logic errors and compatibility issues, rather than style issues, largely because the former two impact functionality. If I can clean up style while I'm at it, I do.
    -nB

  12. Re:What real men use.. on Visual Studio Gets Achievements, Badges, Leaderboards · · Score: 1

    so gcc, vim, coffee, and a gun then. Glad we all agree ;)

  13. Re:Gotta get 'em all on Visual Studio Gets Achievements, Badges, Leaderboards · · Score: 1

    meh,
    I'd make a file named achievements.h and .c, then dump all the stuff in there. Link it in once to make all the badges come up, then #IFDEF it out.
    -nB

  14. Re:Do While on Visual Studio Gets Achievements, Badges, Leaderboards · · Score: 2

    To be fair, the code is reliable, stable, and the Do{}while(0);'s are not so long as to be trouble tracing. This is all C code, not C++, and has to be cross compatible with embedded firmware, Windows, and Linux. Also, since that's close to the largest sin in the codebase, I'll not be leaving anytime soon.

    the general layout is of the general style:

    enum tonsOfStatusCodes{PASS=0,FAIL,CUSTOM,foo, bar,baz};
    tonsOfStatusCodes status = FAIL;
    do{
    status=customMalloc(ptr);
    if(status){break;}
    status=populateData(ptr);
    if(status){break;}
    status=transmogrifyData(ptr); ...
    }while(0);

    so at the end of this you either passed everything or you know where you borked.
    Are there better ways? yes.
    Does this work in a very compatible way? yes.
    Is it broken? no.
    Shall I then fix it? no.

    Every time I see an ask /. about "I hate my job" or "My job is asking foo of me but my job is bar", I count my lucky stars that my job is sane, well defined, challenging, and the worst of it is a couple (hundred) thousand lines of code that contain some dailywtf worthy examples.
    -nB

  15. Re:Do While on Visual Studio Gets Achievements, Badges, Leaderboards · · Score: 2

    That's funny. The codebase I inherited is *full* of do{}while(0); with a bunch of breaks inside of the do to jump out at any point something goes haywire. Come work for my team, your day will never suck (at least my that metric).
    -nB

  16. Re:"Cyberwar" on Israel Faces Escalating Cyberwar · · Score: 1

    I'm going with option one based on Occam's razor, however I *really* want to believe option two.

  17. Re:The Great Ethanol Scam on Is E85 Dead Now? · · Score: 1

    I think you have your service interval wrong on the race engines.
    My buddy rebuilds his after every couple races.
    F1 used to swap in a new engine before every race (they made that impossible by limiting them to 12 engines per season). Those get rebuilt after every race and after qualifying.
    -nB

  18. Re:10% Ethanol on Is E85 Dead Now? · · Score: 1

    I heat up my truck just enough to melt the ice on the windshield.
    I have a 5.7 hemi and it doesn't do too much worse on winter gas.
    Same as you, it can run E85, but not on the factory hoses. I ran one tank because I was curious and mileage bailed (and stayed bad for another tank of gas because the computer corrected for the E85).
    -nB

  19. Re:the answer is yes on Do Companies Punish Workers Who Take Vacations? · · Score: 1

    Not always possible.
    We have a greybeard that is currently irreplaceable. He's not an ass, or BOFH, or anything (a bit brash and abrasive, but whatever). Problem is he can do magic in low level code that I can barely follow. Currently he is training me on some of the more obscure components that until now he is the only one to have touched them. This is because until now they have always worked and he did any "minor" maintenance that was needed. Last senior dev to touch the code caused the entire codebase to not compile, or to compile but not work properly.
    Here is the catch: he's dying. On the list for a lung transplant, but he is still smoking, so he won't be getting one. If he died now we'd be fscked.
    People familiar with the codebase can't fix it. I'm a jr dev, but he's making me his protegee, and I in turn will train someone else because I want to be able to leave on vacation.
    -nB

  20. Re:Frettin' over the grindstone on Do Companies Punish Workers Who Take Vacations? · · Score: 1

    Because while we are cogs, some of us fill a niche that is rather unique and not easily done by someone else filling in. When I'm on vacation I have a mail filter running. Only two e-mail addresses get through: My Boss, and my stand-in.
    -nB

  21. Re:If you enjoy your job, then why not? on Do Companies Punish Workers Who Take Vacations? · · Score: 1

    Effect:

     

    high blood pressure and a TIA.

    Trigger:

     

    I work 18 hours a day, because if I don't, the others will screw up any tasks I let them do. I spend 16 hours a day fixing their mistakes so the customers don't find them. Within 5 minutes of walking out of the hospital, my phone was ringing off the hook. Within 10 minutes of getting out of the hospital, I was on my laptop trying to fix the problem, and fielding back to back phone calls.

    Cause:
    Serious Type A. Get a shrink. (seriously, not trolling, I have one and it's done wonders.)
    -nB

  22. Re:If you enjoy your job, then why not? on Do Companies Punish Workers Who Take Vacations? · · Score: 1

    Wow.
    Polar opposite at my company. That said, we are known in the industry for being aggressive and *ahem* direct, even compared to our peer companies. I think my brain (or skull) would break (get broken) working there. It sounds nice, but there would be some sort of decompression period that would be akin to the bends and I'd need a serious pressure chamber...

  23. Re:If you enjoy your job, then why not? on Do Companies Punish Workers Who Take Vacations? · · Score: 1

    To borrow from Rush fans...
    Mega Dittos.

  24. Re:If you enjoy your job, then why not? on Do Companies Punish Workers Who Take Vacations? · · Score: 1

    My employer has never given less than a 2 month severance that I know of (other than termination for cause).

  25. Re:If you enjoy your job, then why not? on Do Companies Punish Workers Who Take Vacations? · · Score: 1

    Yeah, I don't see the contractor life as appealing. I get that the money is better, but I like the group health insurance, 401k match, etc. To each his own I suppose.
    I've got to stick with GP, that I'd stick around and train my replacement. I might be a dick about it and *only* train my replacement, not fight any other fires, but I would train them. Would take almost a year IMHO, I've been doing this one job for 5 years and I still don't know everything about the codebase I inherited (that is still under active dev).

    Also: I have notified all my co-workers that if they ever get a lunch invite to sushi, my treat, at the local hotspot for lunch, they can safely assume I'm not going to be there much longer, as there is no monetary reason to stay.
    -nB