AppleScript to extract data from a message in Mail.app
Newer more betterer version out now! Check it.
This is used to take selected e-mails, the contents of which are auto generated web form submissions, and parse them for the mailing address using AppleScript’s text item delimiters.
Continue reading
Hide thumbnails of certain users content on Flickr
Using CSS you can identify and hide thumbnails from users. Makes it a bit easier to skip past or ignore people who can’t help but taint your favorite groups with inappropriate or offensive material or idiotic political themed collages. Nothing kills my buzz like having the local flora, fauna, and other interesting things interrupted with fear mongering hate rhetoric.
/**** A-holes on Flickr ****/
a[href*="/USER_ID/"]:before {
content: "NUTJOB ";
}
a[href*="/USER_ID/"] img {
display:none !important;
}
This does not hide the actual content on its own page or disable any links. It just lets you easily identify items to avoid while hiding the thumbnail.
The USER_ID can be culled from the URL the item resides at. For instance my ID in context: http://www.flickr.com/photos/strawhousepig/ Keep in mind that not all IDs are human readable. The default value is a seemingly random string.
No results found for “infinite scroll is ass”.
Don’t give me that malarky. Infinite scroll IS ass!
Netflix search bookmarklet
Drag this link to your bookmarks, or copy paste the URL.
What it does: Takes the current selected text and sends it to Netflix.com as a search string. If no text is selected a prompt window will pop-up allowing you to manually enter a term. Also, if you are browsing The Internet Movie Database (IMDb) when you select it the title of the page will be used as the search string.
What it is:
is_imdb=/\.imdb\.com/;
if(is_imdb.test(document.domain)){
q=document.title.split(' - IMDb',1);
}else{
if(getSelection()!=''){
q=getSelection();
}else{
void(q=prompt('Enter search term (Netflix)',''));
}
}
if(q){
window.open('http://netflix.com/WiSearch?v1='+escape(q));
}
Mac ready “lightbox” close widget
I use a Mac, you use a Mac. Our close window button is in the top left corner of the window so it’s convenient when a JavaScript pop-over puts the “button” there, though most don’t. A few I run into I’ve decided to throw some CSS at to fix them.
/**** Mac ready "close" widget ****/
/* WordPress admin "More info..." */
div#TB_ajaxWindowTitle {
position:absolute;
top:0px;
left:25px;
float:none !important;
display:inline !important;
}
div#TB_closeAjaxWindow {
display:inline !important;
float:left !important;
clear:left !important;
}
/* Amazon */
div.ap_close {
left: 24px !important;
}
span.ap_closebutton {
float:left;
clear:left;
}
/* "Fancybox" */
a#fancybox-close {
left:-15px !important;
}
/* "MultiBox" */
div.MultiBoxClose {
left:-26px !important;
}
/* Disqus profile */
a.dsq-modal-close-btn {
position:absolute !important;
top:10px !important;
left:10px !important;
}
This would of course go into your user defined CSS file. Which in Safari can be added at Safari > Preferences | Advanced – Style sheet:
Post from Nokia N8 (WordPress app)
Nintendo’s Tech Support Forums: How do I get what I pay you for? [UPDATE]
[UPDATE]The “November Update” of 2011 has rectified this situation. You can now add only the amount necessary to make a single purchase. Way to go Nintendo. Very happy to be able to use it again. My wallet not so much.
………………
Nintendo’s Tech Support Forums: How do I get what I pay you for?.
Me bitching about the way the 3DS eShop works.
Continue reading
AppleScripted file contents search using grep
This is a workaround for the Finder insisting on starting a search of the entire HDD on every new search rather than the good ol’ days of 10.3 which was to search in the directory you were staring at. I know you can click a button to switch it, but every time? No, I like the old way better.
Continue reading
Redirect old URI’s to new WordPress posts using PHP
In my case I migrated from a custom blog to WordPress. My old one used a GET string in the URL to define which post to load and now I’d like to redirect one and maybe others to their WordPress counterparts.
Continue reading