Monthly Archive for March, 2004
Here’s a neat bit of code that, when embedded in a webpage, will pop all links into a new window when the form box is checked:
<script language="JavaScript"><!--
// thanks to randomwalks.com for this code
function targetLinks(boNew) {
if (boNew)
where = "_blank";
else
where = "_self";
for (var i=0; i< =(document.links.length-1); i++) {
document.links[i].target = where;
}
}
// -->
</script>
<form name="targeter">
<input type="checkbox" name="targetbox" id="tcheck" onclick="targetLinks(this.checked);">
<label for="tcheck">
Check box to open links in a new window
</label>
</form>
>
Here’s a link to the software that many of us have been searching for. It does what uControl does for your trackpad and scrolling, without the bothersome key modifier.
here’s a synopsis of what I’ve found, and how I got things working as desired (I know there are others in similar situations with VLAN that might find this useful) Continue reading ‘Setting MAC address on a VLAN interface, source-based routing, and kernel set routes’
I picked the name ‘barnyard’ for my monkey - see if you can beat him!
1. Create the file you want to load into the value as plain text and scp it to your destination server.
2. Create an applescript with the following text:
set the text_file to open for access file “Remote HD:path:to:file”
set text_of_file to read text_file
do shell script “niutil -createprop -t radmind/network /computer_lists/Peds\ Managed\ Classic mcx_settingss ‘” & text_of_file & “‘”
3. Save the applescript local, then scp it to the destination server
4. ssh to the destination server as root and run `osascript name_of_applescript`
5. Check with NetInfo Manager to see how things went.
It’s recommended to make the property you add to a non-critical one, then rename it later (example, mine uses mcx_settingss instead of the real mcx_settings value).
Your milage may vary, playing with NetInfo may make your machine very sick and unable to boot. You have been warned.
I’m now running WordPress, packaged as WuhWuh 0.1 - hope you like the new look. I’ll be rearranging the default structure of things shortly so bear with it!
