February 25, 2005

Search now works beotches.

Use the search at the right side or click here.

Search +10 Knowledge

The index is updated once a week.

February 24, 2005

Opening and writing to sockets with cfscript

I think I'm pretty close.

<cfscript>
myString = javacast("string","test=Some crazy stuff here");
s = createObject("java", "java.net.Socket");
os = createObject("java", "java.io.OutputStream");
osw = createObject("java", "java.io.OutputStreamWriter");
s.init("127.0.0.1", 80);
os = s.getOutputStream();
osw.init(os);
osw.write(myString);
osw.flush();
osw.close();
s.close();
</cfscript>

<cfdump var=#s#>
<cfdump var=#os#>
<cfdump var=#osw#>

February 11, 2005

Booting raid1 second drive in rh9

You have to use grub to install the mbr and set the active boot partition on the second drive

grub

device (hd0) /dev/sdb
root (hd0,1)
setup (hd0)

This should get it down...unplug the primary drive and reboot.

February 4, 2005

Simple non-bloated pop-up div info box for text links

Style Sheet Code:


<style>
.HoverNote
{
BORDER-RIGHT: black thin solid;
BORDER-TOP: black thin solid;
FONT-SIZE: 10px;
VISIBILITY: hidden;
BORDER-LEFT: black thin solid;
COLOR: #333333;
BORDER-BOTTOM: black thin solid;
POSITION: absolute;
BACKGROUND-COLOR: #fcfcfc
}
</style>


Javascript Functions:


<script>
function Show(notes)
{
x = event.clientX + document.body.scrollLeft;
y = event.clientY + document.body.scrollTop + 15;
Popup.style.visibility="visible";
Popup.style.left = x;
Popup.style.top = y;
Popup.innerHTML = notes;
}
function Hide()
{
Popup.style.visibility="hidden";
}
</script>


Default Div:


<div id="Popup" class="HoverNote" style="padding: 6px; "></div>


Link Code To Display Text In Box:


<a href="#" onmouseover="Show(this.notes);" onmouseout="Hide();" notes="Text to display in box">Link Text </a>