michaelfox + search 132
List.js - Add search, sort and flexibility to plain HTML lists with cross-browser native JavaScript by @javve
october 2011 by michaelfox
Do you want a 7 KB cross-browser native JavaScript that makes your plain HTML lists super flexible, searchable, sortable and filterable? Yeah!
Do you also want the possibility to add, edit and remove items by dead simple templating? Hell yeah!
https://github.com/javve/list
resources
library
javascript
lists
bookmarklet
ul
li
html
sort
search
Do you also want the possibility to add, edit and remove items by dead simple templating? Hell yeah!
https://github.com/javve/list
october 2011 by michaelfox
joshaven/string_score - GitHub
april 2011 by michaelfox
What is it
Simple - Adds a .score() method to the JavaScript String object... "String".score("str");
Fast - fastest that I can find, often drastically faster... run the tests yourself
Small - We are talking (431 bytes)
Portable - Works in 100% of the browsers I've tested on multiple platforms
Independent - Doesn't require any other JavaScript - should work with any framework.
Tested - Not everyone writes tests (silly people). Testing using Qunit
Proper - Passes jslint as well as meets the coding practices and principles of opinionated developers :-)
Fuzzyable - Optional paramater for fuzziness (allows mismatched info to still score the string)
See it in action
Check it out http://joshaven.com/string_score
Installation Notes
Simply include one of the string score JavaScript files and call the .score() method on any string.
Examples
(results are for example only... I may change the scoring algorithm without updating examples)
"hello world".score("axl") //=> 0
"hello world".score("ow") //=> 0.35454545454545455
"hello world".score("e") //=>0.1090909090909091 (single letter match)
"hello world".score("h") //=>0.5363636363636364 (single letter match plus bonuses for beginning of word and beginning of phrase)
"hello world".score("he") //=>0.5727272727272728
"hello world".score("hel") //=>0.6090909090909091
"hello world".score("hell") //=>0.6454545454545455
"hello world".score("hello") //=>0.6818181818181818
...
"hello world".score("hello worl") //=>0.8636363636363635
"hello world".score("hello world") //=> 1
// And then there is fuzziness
"hello world".score("hello wor1") //=>0 (the "1" in place of the "l" makes a mismatch)
"hello world".score("hello wor1",0.5) //=>0.5581818181818182 (fuzzy)
// Considers string length
'Hello'.score('h') //=>0.52
'He'.score('h') //=>0.6249999999999999 (better match becaus string length is closer)
// Same case matches better than wrong case
'Hello'.score('h') //=>0.52
'Hello'.score('H') //=>0.5800000000000001
// Acronyms are given a little more weight
"Hillsdale Michigan".score("HiMi") > "Hillsdale Michigan".score("Hills")
"Hillsdale Michigan".score("HiMi") < "Hillsdale Michigan".score("Hillsd")
github
javascript
search
string
language
natural
matching
Simple - Adds a .score() method to the JavaScript String object... "String".score("str");
Fast - fastest that I can find, often drastically faster... run the tests yourself
Small - We are talking (431 bytes)
Portable - Works in 100% of the browsers I've tested on multiple platforms
Independent - Doesn't require any other JavaScript - should work with any framework.
Tested - Not everyone writes tests (silly people). Testing using Qunit
Proper - Passes jslint as well as meets the coding practices and principles of opinionated developers :-)
Fuzzyable - Optional paramater for fuzziness (allows mismatched info to still score the string)
See it in action
Check it out http://joshaven.com/string_score
Installation Notes
Simply include one of the string score JavaScript files and call the .score() method on any string.
Examples
(results are for example only... I may change the scoring algorithm without updating examples)
"hello world".score("axl") //=> 0
"hello world".score("ow") //=> 0.35454545454545455
"hello world".score("e") //=>0.1090909090909091 (single letter match)
"hello world".score("h") //=>0.5363636363636364 (single letter match plus bonuses for beginning of word and beginning of phrase)
"hello world".score("he") //=>0.5727272727272728
"hello world".score("hel") //=>0.6090909090909091
"hello world".score("hell") //=>0.6454545454545455
"hello world".score("hello") //=>0.6818181818181818
...
"hello world".score("hello worl") //=>0.8636363636363635
"hello world".score("hello world") //=> 1
// And then there is fuzziness
"hello world".score("hello wor1") //=>0 (the "1" in place of the "l" makes a mismatch)
"hello world".score("hello wor1",0.5) //=>0.5581818181818182 (fuzzy)
// Considers string length
'Hello'.score('h') //=>0.52
'He'.score('h') //=>0.6249999999999999 (better match becaus string length is closer)
// Same case matches better than wrong case
'Hello'.score('h') //=>0.52
'Hello'.score('H') //=>0.5800000000000001
// Acronyms are given a little more weight
"Hillsdale Michigan".score("HiMi") > "Hillsdale Michigan".score("Hills")
"Hillsdale Michigan".score("HiMi") < "Hillsdale Michigan".score("Hillsd")
april 2011 by michaelfox
Google Ngram Viewer
december 2010 by michaelfox
When you enter phrases into the Google Books Ngram Viewer, it displays a graph showing how those phrases have occurred in a corpus of books (e.g., "British English", "English Fiction", "French") over the selected years. Let's look at a sample graph:
This shows trends in three ngrams from 1950 to 2000: "nursery school" (a 2-gram or bigram), "kindergarten" (a 1-gram or unigram), and "child care" (another bigram). What the y-axis shows is this: of all the bigrams contained in our sample of books written in English and published in the United States, what percentage of them are "nursery school" or "child care"? Of all the unigrams, what percentage of them are "kindergarten"? Here, you can see that use of the phrase "child care" started to rise in the late 1960s, overtaking "nursery school" around 1970 and then "kindergarten" around 1973. It peaked shortly after 1990 and has been falling steadily since.
(Interestingly, the results are noticeably different when the corpus is switched to British English.)
books
culture
language
search
This shows trends in three ngrams from 1950 to 2000: "nursery school" (a 2-gram or bigram), "kindergarten" (a 1-gram or unigram), and "child care" (another bigram). What the y-axis shows is this: of all the bigrams contained in our sample of books written in English and published in the United States, what percentage of them are "nursery school" or "child care"? Of all the unigrams, what percentage of them are "kindergarten"? Here, you can see that use of the phrase "child care" started to rise in the late 1960s, overtaking "nursery school" around 1970 and then "kindergarten" around 1973. It peaked shortly after 1990 and has been falling steadily since.
(Interestingly, the results are noticeably different when the corpus is switched to British English.)
december 2010 by michaelfox
Rich snippets testing tool - Webmaster Tools Help
october 2010 by michaelfox
Rich snippets testing tool
Share
* Twitter
* Gmail
* Blogger
* Buzz
* Orkut
* Google Reader
* Bookmarks
* » More
Comment Print
The rich snippets testing tool lets you check your markup and make sure that Google can extract the structured data from your page. This tool will display the markup found on a specific web page, as well as a preview of how that page might appear in Google search results.
This tool is still a work in progress, so there are a few points to note:
* The tool doesn't currently display a preview of breadcrumbs content. We're working on it!
* The tool interface is currently available in English only. The tool will correctly test markup in other languages; however, the results will not look like they will look in an actual non-English search results page.
* The tool will only display extracted information that is officially supported for rich snippets. Supported RDFa attributes are xmlns, typeof, property, rel, and content.
"Insufficient data to generate preview"
In general, the goal of rich snippets is to display the most relevant content on the page to users. If you see an "insufficient data to generate preview" message, it is generally for one of two reasons:
* The marked-up content doesn't appear to be the main subject of the page. This can happen if the marked-up content is very low down on the page, is found in boilerplate elements such as headers, footers, and navigation, or is included in a hidden HTML element.
* The marked-up content is missing important tags. For example, a Person item must include organization, location, or role, as well as name.
This is an early release of the testing tool, and feedback is welcome. Please submit feedback or bugs on the Webmaster Tools forum. For tips and tricks, check out the Rich snippets knol (English only).
markup
microformats
search
rdfa
resources
google
seo
semantic
semantics
html
html5
data
microdata
Share
* Gmail
* Blogger
* Buzz
* Orkut
* Google Reader
* Bookmarks
* » More
Comment Print
The rich snippets testing tool lets you check your markup and make sure that Google can extract the structured data from your page. This tool will display the markup found on a specific web page, as well as a preview of how that page might appear in Google search results.
This tool is still a work in progress, so there are a few points to note:
* The tool doesn't currently display a preview of breadcrumbs content. We're working on it!
* The tool interface is currently available in English only. The tool will correctly test markup in other languages; however, the results will not look like they will look in an actual non-English search results page.
* The tool will only display extracted information that is officially supported for rich snippets. Supported RDFa attributes are xmlns, typeof, property, rel, and content.
"Insufficient data to generate preview"
In general, the goal of rich snippets is to display the most relevant content on the page to users. If you see an "insufficient data to generate preview" message, it is generally for one of two reasons:
* The marked-up content doesn't appear to be the main subject of the page. This can happen if the marked-up content is very low down on the page, is found in boilerplate elements such as headers, footers, and navigation, or is included in a hidden HTML element.
* The marked-up content is missing important tags. For example, a Person item must include organization, location, or role, as well as name.
This is an early release of the testing tool, and feedback is welcome. Please submit feedback or bugs on the Webmaster Tools forum. For tips and tricks, check out the Rich snippets knol (English only).
october 2010 by michaelfox
Rich snippets (microdata, microformats, RDFa) - Webmaster Tools Help
october 2010 by michaelfox
Rich snippets (microdata, microformats, RDFa)
o Rich snippets (microdata, microformats, and RDFa)
o Breadcrumbs
o About microdata
o About microformats
o About RDFa
o Nested items
o Recipes
o Reviews
o Review ratings
o People
o Events
o Businesses and organizations
o Products
o Videos: Facebook Share and RDFa
o Rich snippets testing tool
markup
microformats
search
rdfa
reference
resources
google
seo
semantic
semantics
html
html5
data
microdata
semanticweb
snippets
o Rich snippets (microdata, microformats, and RDFa)
o Breadcrumbs
o About microdata
o About microformats
o About RDFa
o Nested items
o Recipes
o Reviews
o Review ratings
o People
o Events
o Businesses and organizations
o Products
o Videos: Facebook Share and RDFa
o Rich snippets testing tool
october 2010 by michaelfox
Use Google Web History Without Installing Google Toolbar
july 2010 by michaelfox
If you want to use Google Web History and save your browser's history on Google's servers, you generally need to go to this page and select "Enable Web History and install the toolbar". This procedure installs Google Toolbar, a plug-in available only for Internet Explorer and Firefox, and enables the PageRank feature, which displays the ranking of any site you visit while sending the URL to Google in the process.
If you use another browser or if you don't like Google Toolbar, there's an alternative way to send all the web pages you visit to Google: a script that asks Google for the PageRank of any web pages you load in your browser. To install the script you need:
* Greasemonkey, an extension for Firefox. Make sure to restart the browser before trying to add the script.
* Trixie, one of the best Greasemonkey-like plug-ins for Internet Explorer
* SIMBL and GreaseKit for Safari
* no additional software for Opera, but you need to enable the feature from Opera's interface
* Konqueror Userscript for Konqueror
The script is taken from this site, that also adapted it from other scripts. I mirrored the script to an easily-accessible location.
Once you've added the script, you only need to enable Google Web History: go to this page and select "Enable Web History and install the toolbar", but cancel the downloading process (you don't need the toolbar).
This feature only works when you're logged in to your Google Account. To disable it, remove the script from Greasemonkey or from another plug-in you've installed.
firefox
google
search
greasemonkey
userscript
history
tracking
lifelogging
track
If you use another browser or if you don't like Google Toolbar, there's an alternative way to send all the web pages you visit to Google: a script that asks Google for the PageRank of any web pages you load in your browser. To install the script you need:
* Greasemonkey, an extension for Firefox. Make sure to restart the browser before trying to add the script.
* Trixie, one of the best Greasemonkey-like plug-ins for Internet Explorer
* SIMBL and GreaseKit for Safari
* no additional software for Opera, but you need to enable the feature from Opera's interface
* Konqueror Userscript for Konqueror
The script is taken from this site, that also adapted it from other scripts. I mirrored the script to an easily-accessible location.
Once you've added the script, you only need to enable Google Web History: go to this page and select "Enable Web History and install the toolbar", but cancel the downloading process (you don't need the toolbar).
This feature only works when you're logged in to your Google Account. To disable it, remove the script from Greasemonkey or from another plug-in you've installed.
july 2010 by michaelfox
Create Smarter Keyword Bookmarks - Firefox - Lifehacker
april 2010 by michaelfox
if('%s') location.href='http://lifehacker.com/search/%s';else location.href='http://lifehacker.com/';
firefox
keyword
search
bookmarklets
april 2010 by michaelfox
RulesofThumb.org - Homepage
april 2010 by michaelfox
Every rule of thumb on earth in one place
community
entertainment
information
reference
data
search
culture
ruleofthumb
lookup
april 2010 by michaelfox
Userstyles.org
february 2010 by michaelfox
userstyles.org is a collection of styles that puts you in control of the appearance of websites and of Mozilla applications.
Search
february 2010 by michaelfox
Userscripts.org
october 2009 by michaelfox
Thousands of userscripts to enhance your browsing experience
Search
october 2009 by michaelfox
related tags
*todo ⊕ addons ⊕ advanced ⊕ ajax ⊕ analytics ⊕ api ⊕ app ⊕ appliance ⊕ apps ⊕ archive ⊕ audio ⊕ autocomplete ⊕ awk ⊕ batch ⊕ bookmarklet ⊕ bookmarklets ⊕ bookmarks ⊕ books ⊕ boxes ⊕ browse ⊕ browser ⊕ brushes ⊕ charactersets ⊕ chrome ⊕ code ⊕ codeigniter ⊕ community ⊕ control ⊕ crawler ⊕ css ⊕ css3 ⊕ culture ⊕ customization ⊕ data ⊕ database ⊕ datamining ⊕ db ⊕ design ⊕ desktopsearch ⊕ development ⊕ discover ⊕ documentation ⊕ domain ⊕ domains ⊕ dropdown ⊕ droplist ⊕ ebooks ⊕ email ⊕ engine ⊕ english ⊕ entertainment ⊕ extension ⊕ facebook ⊕ farmers ⊕ filter ⊕ filters ⊕ find ⊕ finder ⊕ firefox ⊕ font ⊕ food ⊕ forms ⊕ framework ⊕ fulltext ⊕ gallery ⊕ generator ⊕ git ⊕ github ⊕ gmail ⊕ google ⊕ googlebot-mobile ⊕ googledesktop ⊕ googlesearchappliance ⊕ googlewave ⊕ gradients ⊕ graphics ⊕ greasemonkey ⊕ green ⊕ grep ⊕ gtd ⊕ guidelines ⊕ gzip ⊕ hack ⊕ hacks ⊕ health ⊕ highlight ⊕ history ⊕ howto ⊕ html ⊕ html5 ⊕ hub ⊕ icons ⊕ images ⊕ index ⊕ indexing ⊕ information ⊕ inputs ⊕ inspiration ⊕ interface ⊕ ios ⊕ iphone ⊕ itunes ⊕ javascript ⊕ jqtouch ⊕ jquery ⊕ jsawk ⊕ json ⊕ keyboard ⊕ keyword ⊕ keywordbookmarks ⊕ kohana ⊕ language ⊕ launchbar ⊕ li ⊕ library ⊕ lifehacker ⊕ lifelogging ⊕ list ⊕ lists ⊕ local ⊕ locator ⊕ logs ⊕ lookup ⊕ lucene ⊕ mac ⊕ mapreduce ⊕ maps ⊕ markup ⊕ matching ⊕ media ⊕ meta ⊕ metadata ⊕ microdata ⊕ microformats ⊕ miniapp ⊕ mobile ⊕ modal ⊕ mongo ⊕ mongodb ⊕ movies ⊕ mp3 ⊕ music ⊕ mysql ⊕ natural ⊕ node ⊕ node.js ⊕ nutrition ⊕ opensearch ⊕ opensource ⊕ organic ⊕ organization ⊕ osx ⊕ paleo ⊕ parse ⊕ parser ⊕ people ⊕ perl ⊕ phone ⊕ phonenumber ⊕ photos ⊕ photoshop ⊕ php ⊕ plugin ⊕ plugins ⊕ podcast ⊕ programming ⊕ projects ⊕ quix ⊕ rdfa ⊕ recording ⊕ reference ⊕ removal ⊕ remove ⊕ repos ⊕ research ⊕ resources ⊕ rest ⊕ reverse ⊕ robot ⊕ robots ⊕ robots.txt ⊕ rss ⊕ ruleofthumb ⊕ scripting ⊕ scripts ⊕ search ⊖ searchbar ⊕ searchengine ⊕ searchplugins ⊕ sem ⊕ semantic ⊕ semantics ⊕ semanticweb ⊕ seo ⊕ settings ⊕ shopping ⊕ shortcuts ⊕ sitemap ⊕ sitesearch ⊕ snippets ⊕ social ⊕ software ⊕ sort ⊕ sphinx ⊕ spider ⊕ spoken ⊕ spotlight ⊕ stackoverflow ⊕ standards ⊕ stock ⊕ stopwords ⊕ string ⊕ tag ⊕ tags ⊕ tar ⊕ terminal ⊕ text ⊕ textmate ⊕ tgz ⊕ tips ⊕ tools ⊕ track ⊕ tracking ⊕ transcripts ⊕ tutorial ⊕ twitter ⊕ typography ⊕ ui ⊕ ul ⊕ ultimatebuild ⊕ unicode ⊕ usability ⊕ userscript ⊕ utf8 ⊕ utilities ⊕ ux ⊕ video ⊕ voice ⊕ wave ⊕ web ⊕ webdesign ⊕ webdev ⊕ webmaster ⊕ window ⊕ word ⊕ xml ⊕ xslt ⊕ zend ⊕ zend.framework ⊕ zip ⊕Copy this bookmark: