Slashdot Mirror


User: damien_kane

damien_kane's activity in the archive.

Stories
0
Comments
1,019
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 1,019

  1. Re:My PHP tips on Elegant PHP Architectures? · · Score: 2, Informative

    use base.php instead of base.inc

    Not only that, but in case you have some code in base.php that is not called as a function (for example your DB link), put something like this at the top of base.php:

    if (!isset($somekeyvar)) die();

    Then make sure you set $somekeyvar in everypage. This will make sure that code isn't accidentally run when some (non-)malicious user goes looking around.
    Alternatively, include base.php from a path which the webserver does not serve, but still has access to. For example, create a path /htdoc-includes, give the $webserver read access to the files inside it, and put base.php in there.In this way there is no whay that a user could call it from a browser independant of your main page(s).

  2. Re:Why emulate windows? on Ximian's Back · · Score: 1

    I do everything from graphic design to web development to app coding and I rarely have more than 10 windows open.
    My Job is web development and db admin.
    I am usually logged into 7 servers, most of them twice, some three times. Sometimes I am logged into as many as 10 servers.
    As a result, I normall have anywhere from 10 to 25 terminal windows open.
    On top of that add Mozilla, Evolution, my timesheet (Gnucleus), a VNC viewer (gotta watch compatibility with IE), gkrellm, and XMMS; and I'm sitting at a base of at least 15 windows open at any given time at work; normally closer to 20 or 25.
    As well, I usually have 5 or 10 stickynotes open, but I don't count those as windows, they just don't get lost as easily as paper.
    I run multi-head moreso than multi-desktop, and I don't have a problem with using Alt-Tab, it really doesn't take as long.
    As well, I name all my terminal windows according to which server they are connected to. Makes finding the right terminal a breeze.
    So no, it has nothing to do with 'mad skillz', and everything to do with what I need to do my job efficiently.
    Btw, at home I almost never have more than 5 windows open, I just don't need it there.

  3. Re:Look at the economies of scale though on Nucular Hydrogen Economy · · Score: 2, Informative

    Water is infinitely cheaper, and more abundant, than natural gas.

    Water may be cheaper, but it is in shoter supply. To make H2 from water, you need fresh water, not only that but it has to be distilled.
    Cracking ocean water will leave you with some nasty sodium hydroxide, hydrochloric steam, a buch of other messy chemicals, and a bit of hydrogen.

  4. Re:It was Wile E Coyote on Investigating Artificial Black Holes · · Score: 1

    Really, what else would you expect from A Company Making Everything ??

  5. Re:What would be really cool.. on Old Hard Drives = Free Electricity · · Score: 1

    inversely proportional to the age of the HDD

    Sorry, directly proportional... older drive=higher potential voltage/amperage (depending on how you set it up)

  6. Re:What would be really cool.. on Old Hard Drives = Free Electricity · · Score: 2, Interesting

    also is teh amount of electricity produced from the HDD directly proportional to the size of the HDD??

    I think it would have nothing to do with the size (capacity?) of the harddrive, other than coincidentally.
    Since recent 100+GB harddrives use less power, their coils and magnets are smaller and not as strong.

    I think the amount of electricity generated would more likely be inversely proportional to the age of the HDD, (as well the size^H^H^H^Hdisplacement) as the old ones were absolutely huge and probably have very strong magnets and voice coils.
    Hell, rather than winding your own coil as this guy did, you could use one out of one of one of those old drives that were used to move the arm.

  7. Re:cron, anyone? on How to Fake A Hard Day at the Office · · Score: 1

    "Go away or I shall replace you with a tiny shell script..."

    Wow, you already wrote it for me... how nice
    What's that? You think that's a reason for me to let you keep your job, do you?

    Mwah-ha-ha-ha

  8. This is old news on Lyric Sites In Trouble With The MPA · · Score: 1

    This is most definitly not new, and is not related to all the RIAA P2P crap.

    I have met the person who setup lyricfind.com initially.
    He set it up back in 2000 when I was in college.
    It was shortly after that that he was contacted about legal issues and had to withdraw the results from the search.

  9. Re:Facelift extends to e-moeny too on New US $20 bills Released, Colors & Layout Change · · Score: 1

    In Capitalist America...

    Credit-card transactions validate YOU

  10. Re:because... on Why is Everyone Still Stuck in QWERTY? · · Score: 1

    I didn't say I could compose faster than I can type. I said I can think faster than I can type.
    I can type faster than I can write.
    Therefore, the easiest (and fastest) way for me to get my ideas out of my head is to type them.

  11. Re:because... on Why is Everyone Still Stuck in QWERTY? · · Score: 2, Interesting

    5% is quit a marginal increase, not minimal.
    Consider as such:
    Person A types 8 hours a day.
    In these 8 hours, (s)he averages about 70wpm (while typing). 70wpm * 4 chars (4 chars/wd + 1 space) = 350 keystrokes/min.
    In those 8 hours, assuming 1 hr break (30 min lunch, 15 min * 2 breaks, legal minimum, YMMV) this means 7hrs*60min/hr*350cpm = 147000 chars (/5cpw) = 29,400 words typed in a day.
    This is, of course, theoretical.
    In any case, a 5% increas in speed now puts you at 30,870 wpd. This is over 1000 words difference.
    I can think a lot faster than 70wpm. the faster I can type, the faster I can get my code into the box before its forgetten.
    If I get my code in faster, i have one of two choices:
    a) more time for testing before production roll-out (assuming enough time)
    b) actually making the deadline (if it is a really restrictive deadline)

    Of course, you think 5% is minimal, so why bother?

  12. Re:Maybe as a corollary? on Light-Producing Nanotubes Could Mean Faster Chips · · Score: 2, Interesting

    Would it stand to reason that these devices would _generate_ electricity when bombarded by photons?

    Nope, they explode

  13. Re:Explain Please? on Available To The Right Buyer: Sun Microsystems · · Score: 1

    ...a difference of two clock cycles doesn't appear so appalling when you're running a system with a clock speed of 5000 cycles/sec. Granted that's not today...

    No, that's not today, we surpassed 5kHz at least 30 years ago.
    Today we run processors in GHz, i.e. 3,000,000,000 cycles/sec.
    As an aside, CPU-level functions (like increment and integer) aren't timed in cycles/sec, they're timed in instructions, hence a processor's IPC count. That is what matters, moreso than the clock speed.
    AMD has known this for years which is why they try to push their IPC count, as opposed to pushing clock speed.
    More cycles, same IPC=higher speed, much higher heat;
    same cycles, more IPC=higher speed, marginally higher heat.

  14. Re:GPRS Suppository on The Wristphones are Coming · · Score: 1

    And just think of the fun when you get a call and the vibrate function kicks in...

  15. Re:Intel motherboards have "Hard Disk Pre-Delay". on Hardware For Bulk IDE Hard Drive Burn-In? · · Score: 1

    What your parents are talking about, however, is not pre-delay detection.

    They are talking about actually delaying the spin-up sequentially to save your system from the initial power draw of the drives all spinning up at once.
    First one drive starts, drawing about an amp. Then, once it is spun-up, the next one starts. This continues for each of your hard drives.
    In this way you do not have a 5-10 amp draw when you turn on your system, as that is a very good way to cook your power supply.

  16. Re:All this talk... on Hydrogen Fuel Station in Iceland · · Score: 1, Offtopic

    theres a theory tht says that if you jumped off of a building that you would accelerate at an appx rate of 9.8m/s^2 .
    want to test it?


    Sure...
    *pushes EnderWiggnz off of a building...
    Yep, looks like you're accelerating at approximately 9.8m/(s)^2

  17. Re:Whats the difference?! on RIAA, MPAA Lose Suit Against Streamcast and Grokster · · Score: 2, Insightful

    So should Cable be sued too?

    No, cable companies only broadcast one of two things:
    1) Programming and movies which they own the rights to (i.e. Fox airs The Simpsons)
    2) Programming which they have paid an exhorbitant fee to the license/copyright owners to allow rebroadcast of the material (HBO/Skinemax airing movies).

    You then pay the cable companies, either directly (you get cable from AOL/Time-Warner, et.al) or indirectly (i.e. through a content provider such as DirectTV) for the programming.
    As such, you have paid for the programming, just as you would pay for a CD, Tape, or DVD.
    Therefore, whatever you want to do with this signal is fair use, subject to the terms of the contract you signed when the cable/satellite was installed (usually you may record it for personal viewing at a later date but you may not re-broadcast it publicly or make a profit in any way from it).

  18. Re:Probably umount... on How Would You Move Mount Fuji? · · Score: 1

    No, IN SOVIET RUSSIA... Mt. Fuji doesn't exist...

    lol

  19. Re:Manhole Covers... on How Would You Move Mount Fuji? · · Score: 1

    That is not a valid assumption, as anyone that has seen NYC driving.

    Those aren't manholes, they're potholes...

  20. Re:Probably umount... on How Would You Move Mount Fuji? · · Score: 1

    But with that syntax, mount Fuji would live on you...

  21. Re:What??? on Clean Needles for Hackers · · Score: 1

    I always thought that was what firearms were for.

    No, firearms are for hunting large animals, and keeping the king of France out of your backyard.
    (paraphrased from 'The Simpsons', I believe)

    Alternatively, for protection from 'zee Germans'... (Snatch)

  22. Re:Fallout on Nuke-Lobbing · · Score: 1

    However, if you encase a bunch of radioactive material around a conventional bomb, and, instead of carrying it around, dropped it it from a plane or launched it in a missile and airbursted it, you could irradiate a large area very quickly with very little actual damage.

    That's twice now you either didn't read or misinterpreted the comment, the first being the one I replied to, and the second time being your reply to me.
    Hopefully this response is in simple enough terms for you to understand so you don't get it wrong again.

  23. Re:Those Wacky 50s on Nuke-Lobbing · · Score: 1

    Why is that? With a conventional land mine, the person who set off the mine usually doesn't die... Land mines are meant to wound, not kill, requiring more 'enemy' forces to run through the minefield, endagering their own lives, to rescue their fallen comrade.
    A nuclear landmine would kill you (overkill I'd say).

    Personally I'd prefer to be vaporized then have my legs blown off...

  24. Re:Fallout on Nuke-Lobbing · · Score: 2, Informative

    40-50 bombs, even of megaton size, do not produce enough fallout to render three large states uninhabitable

    Only if you're speaking only of 'normal' thermonuclear or purely fissile weapons.
    Remember back around 9/11 all the talk of 'dirty bombs'? This is what your parent is talking about. 40-50 high-yeild dirty bombs would create a lot of radioactive fallout, as the radioactive elements inside would not be destroyed by fission, but vaporized and spread over a large area by a conventional explosion.

  25. Re:Physics on Nuke-Lobbing · · Score: 1

    did someone drop out of the "Mutual Assured Destruction pact" and not send out a memo?

    Yeah... North Korea; and as a result Iran...
    Of course I'm sure neither of them were actually in it in the first place, but still...

    Even those in the pact didn't follow it. The US still has hundreds, if not thousands, of thermonuclear ICBMs sitting in silos. USSR still has some, altho most of theirs went with the small countries that broke off during the 90's.

    In any case, there's more than enough (currently) dormant nuclear ordinance to vaporize a few layers of the earth's surface...