Slashdot Mirror


User: Diclophis

Diclophis's activity in the archive.

Stories
0
Comments
72
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 72

  1. php's built-in template engine on PHP Template Engines? · · Score: 1

    sprintf: http://us3.php.net/sprintf

    example in use...

    /* define the functions args... then for each loop in the function define an outer and inner format string */
    function something($arg, $outer1, $inner1) {
    //stupid loop
    for ($i=0; $i<10; $i++) {
    $innerLoop .= sprintf($inner1, strrev($arg), $i);
    }

    return sprintf($outer1, $innerLoop);
    }

    echo something('cheese', '<ul>%1$s</ul>', '<li class=%2$d>%1$s</li>');

    Now you can put whatever you want for the format strings... and the html is never inside anyfunction... its only passed TO the function

  2. Re:Why? its a bomb of course... on Second Test of X-43A Scramjet Tomorrow · · Score: 1

    What...?

    the point is hat this bomb could be delivered to any point on the surface of this planet, without the target knowing, and or having enough time to react. e.g. launch rocket... 1 hour later USA to (uncooperating nation) "You have 1 hour to comply to our demands or your building (capitol, army facility, stock pile of tnt) will explode.". There is know way they could evacuate a army facility or remove the sensitive materials from the target before the bomb got there... if they comply to our demands... the bomb flys over there heads, into the ocean somewhere. And of course if we anticipated that they werent going to comply... every 30 minutes we launch another one.

    This is what most people dont understand about atomic weapons. A. Everyone is afraid of them being used... look at the facts, USA is the only nation to use atomic weapons to harm humans on purpose. B. When we bombed hiroshima, the japanese did not comply, 1 week later we bombed another nagasaki they got the point that time... if the japanese had not complied then... the USA would have built even more bombs, quicker faster and bigger (its the american way you know)... Little Boy (the first atomic weapon dropped on hiroshima) weighed ~10,000 lbs... the b-29 bomber that carried the bomb has a max load of 20,000... so thats 2 bombs / b-29... according to the wikipedia site in 1940 the govt contracted for 1200 b-29s... thats 2400 hiroshimas... a day... USA has had the ability to bomb this planet into non-existance ever since we built the first damn device ('I am death destroyer of worlds'). And now, not only do we have the technology to nuke earth to hell and back... we can send bombs to mars, jupiter, the moon... any point in our solar system. "HELLO WORLD" if you think your going to be somewhere, where you cannot be nuked to hell by the united states of fucking america, you are sadly mistaken. And to think that every redwhiteblue blood is running around afraid of towelheads hijacking aircraft... the only terrorists we should be afraid of are ourselves (and fucking idiots driving with cellphones).

  3. Re:Why? its a bomb of course... on Second Test of X-43A Scramjet Tomorrow · · Score: 2, Insightful

    Like everything else the govt pays for... its an offensive weapon. take a look at the calculations

    ((1 / 2) * (1 000 kg)) * ((7 000 mph)^2) = 4.89619666 x 10^09 Joules

    a 20 kiloton bomb is ~10^13 joules...

    What these means is... if they can put these engines on largers chunks of mass (i.e. increase the mass of the object flying at 7 times the speed of sound). They could have a bomb, with the explosive power of an atomic weapon... without using atomic methods. There is no need to strap a atomic warhead to this missle.... the missile is the warhead. And the best thing is... you would never hear it coming (radar wouldnt give you enough time to react (bleep bleep boom)).

  4. Re:one word on Nasty New Virus Variants · · Score: 1

    pine (or mutt)

  5. one word on Nasty New Virus Variants · · Score: 3, Insightful

    pine (or mutt)

  6. Bah.... on DARPA Offers No Food for Thought · · Score: 2, Funny

    Like all technological advances in history, it will first be used to kill people, then used in the porno industry... 5 day long gang bangs... go USA!

  7. Re:I started looking through the google links... on Best Way To Beat A Caffeine Addiction? · · Score: 1

    You know your addicted when you need a Mt Dew at 4am inorder to smooth your nerves so you can get to sleep... Also the headaches and what not could be from diabetes... the intenst amount of sugar that is often consumed with caffeine can make anyones glucose levels whacky.

  8. Re:Shoot. on Lunar Polar Ice Not Present · · Score: 1

    In russia the space program is drunk on you.

  9. Re:I have a quick and dirty solution. on Spam Rapidly Increasing In Weblog Comments · · Score: 1

    How about a simplier one... the main reason people spam comments is to raise their page rank, they do this by adding links back to their own content... in your code that handles your comment parsing just have it change all hrefs uris urls etc to a url redirector (e.g. /goto.php?url=blah, blah could even be rot13ed or referenced by a simple index or something depending on how indepth you want the system) ... that way the actual link that shows up on the page will be to a page on your own site, you add a denial directive in robots.txt so that the google bot does not follow those links into your url redirector and they will never be indexed or cared about by google, while at the same time still allowing people to post whatever they want that links to whatever they want.

  10. Re:Permanent URL on ALA 3 Goes Online · · Score: 1

    Typically in CMS systems the software will create a 'hardcopy' of the dynamic content and store it in a seperate 'archive' dir or something... that way you can always get to the information even if the db server is dead, or the id numbers of the articles have been reset etc.

  11. unite(developers); on Half Life 2 Source Code Leaked · · Score: 1

    Lets get this thing running on linux, or a toaster or a beowoulf cluster.

  12. just great on Gyroscope Gives CellPhones 'Tilt Control' · · Score: -1, Redundant

    this is exactly what we need, people having problems keeping their video game car on the road, while trying to keep their real car from killing anyone. Does anyone else think that the real terrorists are out on the street everyday.

  13. In other news on Microsoft Wins Homeland Security Contract · · Score: 5, Funny

    The Homeland Security Advisory System's current threat level has been elevated to 'blue' (Immanent threat of terrorism due to blue screen)

  14. Re:slashdotted in 3.2 seconds... on World's Smallest Desktop Pentium4? · · Score: 1
  15. This is news? on Contractor Proposes Laser Rifles for US Military · · Score: 1

    The document submitted to the govt. is dated 7/2/1999 Link to pdf of doc

  16. man... on Tetris AI System · · Score: 1, Insightful

    that site is a true hack, with a complete analysis of tetris and its clone... good job

  17. in soviet russia on Build Your Own Mac · · Score: 1

    the mac builds you

  18. The real reason this made it to the front page on Doom 3 Alpha Leaked · · Score: 1

    hmmm radeon ad on the same page as the doom 3 newspost... conspiracy?

  19. SearchKing... of ads on Google Sued over Page Ranking · · Score: 5, Interesting

    results for "php" on searchking Note that the first page of results has nuthin to do with php, or its development, hell it doesnt even return php.net (php's homepage). Meanwhile Google's results return very informational and useful sites, and clearly define which results are paid for. I suppose this is just a window into the obviuos.

  20. what if on Predicting User Behavior to Improve Security · · Score: 4, Funny

    the first action you take breaches security?

  21. So they have invented on Self-Cleaning Glass · · Score: 1

    Perma-Rain-X ? and what is to keep a bird or your pet animal from scratching this coating from the glass

  22. I present you evidence on Paging Eliza: Patenting IM Bots · · Score: 1

    A: http://www.madville.com/aimbot/
    B: http://sourceforge.net/tracker/?atid=390395&group_ id=235&func=browse

  23. Shall we play a game? on Men vs. Machines · · Score: 1, Interesting

    Why not put the best 2 chess playing machines against one another... will they both short circuit like the 'WHOPPER' in wargames?

  24. Re:Riddle on Tech-Interview Riddles · · Score: 1

    That riddle was nothing ...

  25. Re:Me6 on Mozilla 0.9.6 Released · · Score: 1

    Not sure why i do it, but i do it everywhere.. the desktop around icons, when i am in windows explorer i end up randomly selecting files by window... very strange... i typically start from the bottom right and goto the upper left.. which way do you people go?

    -Jon