making Freeow work with jQuery 1.2.6
Hi,
I was able to make this lib work with jQuery 1.2.6 by making only this one-liner change:
//this.element.hover(this.options.onHover); this.element.hover(this.options.onHover, this.options.onHover); |
Hi,
I was able to make this lib work with jQuery 1.2.6 by making only this one-liner change:
//this.element.hover(this.options.onHover); this.element.hover(this.options.onHover, this.options.onHover); |
I ran across this list, entitled Top 10 Best Free Online Project Management Application Services
While most of these products do offer free versions, I think that they are not functional for a team of five people working on serious projects without paid subscriptions.
Many of these were not found in my original analysis; check them out.
Just read today about using Data URLs to include images inline, skipping an HTTP lookup for each item. Nifty!
The world of Time Tracking and Project Management is a vast one. For small businesses like ours, there are seemingly endless time tracking solutions and a good number of project management answers. I spent nearly two weeks evaluating options in my spare time, so hopefully this data will help save you some time.
Dustin Diaz wrote a nice, efficient version of getElementByClassName(), which searches HTML elements and retrieves all the items with a given CSS class specified.
Of course, if you use a lib like extjs, jQuery, et al, then you have no need of this. But if you’re trying to hack out a greasemonkey script or insert some minimalist code, here it is.
And here it is, for my own archives:
function getElementsByClass(searchClass,node,tag) { var classElements = new Array(); if ( node == null ) node = document; if ( tag == null ) tag = '*'; var els = node.getElementsByTagName(tag); var elsLen = els.length; var pattern = new RegExp("(^|\\s)"+searchClass+"(\\s|$)"); for (i = 0, j = 0; i < elsLen; i++) { if ( pattern.test(els[i].className) ) { classElements[j] = els[i]; j++; } } return classElements; } |
Here’s another alternative I found on Glazblog, using xpath to search the document:
document.getElementByClassName = function(needle) { var xpathResult = document.evaluate('//*[@class = needle]', document, null, 0, null); var outArray = new Array(); while ((outArray[outArray.length] = xpathResult.iterateNext())) { } return outArray; } |
I don’t really know which is more efficient, though I suspect the xpath search could be taxing in very large documents. I’m positive, based on IE’s fake implementation of key/value pairs in the DOM, that they both suck in IE, even if you specify a specific tag type to search. Obviously, providing a node makes the regular expression search faster, by virtue of having less content to parse.
Today I was unable to start Apache using a new install of XAMPP. A quick netstat -o in cmd showed something was blocking port 80.
After about an hour of searching, I discovered that port 80 was in use by Skype. No kidding. There is an advanced setting in skype to “Use port 80 and 443 as alternate incoming connections.” If this is checked (which it is by default) then a service is started on port 80 that blocks Apache. Ungh for bad ideas and even worse defaults.
Here is a great little tut on getting started in Bash. I’d recommend it to anyone trying to hack their way into a shell script.
Here is a quick script for sending an email:
#!/bin/bash # Subject of email SUBJECT="Test email with attachment from a bash script" # Where to send it TO_ADDRESS="your@email.com" # Where the attachment is ATTACHMENT_FILE="/tmp/attachment.txt" # For fun, let's put something into the attachment echo "This goes into the file." > $ATTACHMENT_FILE echo "This appends to the file." >> $ATTACHMENT_FILE # send the message /bin/mail -s "$SUBJECT" "$TO_ADDRESS" < $ATTACHMENT_FILE |
Great color scheme program for creating themes and complimentary designs:
Today I needed to manually remove a service from windows. I found this command line approach, which worked great for me. Be sure to use the service name and not the display name:
sc delete ServiceName |
You can find the service name by going to Control Panel -> Administrative Tools -> Services, right click the service and choose properties, the service name is shown there.
http://www.sitepoint.com/blogs/2010/02/09/debug-php-firebug-firephp/