Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

InfiniteLoop's scratchpad

by InfiniteLoop (Hermit)
on Sep 15, 2004 at 14:36 UTC ( #391188=scratchpad: print w/replies, xml ) Need Help??

  1. another one for later reference: What A Wonderful World: Bitmasks!

  2. After a long search found what I was looking for: Book update: "Exploring Programming Language Architecture in Perl" and Exploring Programming Language.. posting them here, in case I forget.

  3. Recently I enabled the "Free Nodelet". Everytime I wanted to post a question, I couldn't recall the What shortcuts can I use for linking to other information? link and took a lot of digging to get to the page. However, now I have a direct link to the shortcuts page, right under the text area, via this code:
    <script language="javascript"> var lb = "\x5B"; var rb = "\x5D" function getMyTable(){ //get the table var tables = document.getElementsByTagName("table"); var mytable; var evalstr = "tables" + lb + "i" + rb + ".className"; for(var i=0;i<tables.length;i++){ var class = eval(evalstr); if(class == "addnewform"){ mytable = eval("tables" + lb + "i" + rb); return mytable } } return mytable; } function add_shortcut(){ var elements = getMyTable(); if(elements){ var row = elements.insertRow(elements.rows.length); var cell = row.insertCell(0); cell.innerHTML = '[node://43037]'; } } // Execute our snippets after the page is parsed. var old_onload = window.onload; window.onload = function() { if (old_onload != null) old_onload(); add_shortcut(); }; </script> [node://43037]</br><hr> <a href="">Free No +delet Settings</a>
    The code to insert the link, in the html DOM is mine, however I forgot from where I copied the rest of the ideas, especially "lb"/"rb" and the "onload" trick. Credit goes to whoever first created it. Thanks

  4. Found this line in some old files:
    #!/usr/local/bin/perl eval 'exec /opt/perl/5.6.1/bin/perl -S $0 ${1+"$@"}' if 0; # not running under some shell
    was perplexed, till ambrus and corion helped me (over monk chat, no less). The long and short of it is, some shell's might not know what to do with #! , hence the eval. You can read all about it here:

  5. A pop-up menu with list of online IM users for gaim. This menu can be activated by a key board shortcut, which can be coupled to gaim-remote. (
Log In?

What's my password?
Create A New User
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (8)
As of 2017-05-25 12:03 GMT
Find Nodes?
    Voting Booth?