I was thinking that it ought to be possible to use JavaScript to create a link that takes you to a rickroll youtube page, but also provides the original desired link in some fashion. That is, you get rickrolled, but then the actual link you thought you were clicking on is available to you.
But, I'm not quite sure how to approach that, and I don't find anything like that in a Google search, so I'm putting it out there lazyweb style to see if anyone else knows how to do this.
Aaron DaMommio: husband, father, writer, juggler, and expert washer of dishes. "DaMommio" rhymes with "the Romeo", as in "my parents told me they thought about naming me Romeo DaMommio, and I believed them, when I was ten."
Showing posts with label lazyweb. Show all posts
Showing posts with label lazyweb. Show all posts
Wednesday, August 17, 2016
Wednesday, July 02, 2014
You should be able to change/annotate the subject of an email you've received
Let's face it...lots of the emails we receive have misleading or useless subject lines. This annoys me because my work day is full of emails and often I need to store them and be able to retrieve them later, and that's not easy to do when the subject is bad.
Even if a search turns up the right mail, if there's more than a few search hits, you need a reasonable subject line to find the right one.
That means that every now and then I get an email that I need to file and I would love to amend the title, but I'm not aware of any mail system that allows that.
I'm using gmail. I wanted to put this out there on the lazyweb and see if anyone has tried a feature like this.
Even if a search turns up the right mail, if there's more than a few search hits, you need a reasonable subject line to find the right one.
That means that every now and then I get an email that I need to file and I would love to amend the title, but I'm not aware of any mail system that allows that.
I'm using gmail. I wanted to put this out there on the lazyweb and see if anyone has tried a feature like this.
Sunday, February 07, 2010
Can every app please copy Chrome's search?

There are so many things to like about the search function in the Google Chrome web browser:
- At the touch of Ctrl-F, it appears as an embedded dialog box, tiny, in the upper-right of your window...rarely obscuring what you're searching through.
- As soon as you type some text, it displays the number of hits, and tells you which hit you're on.
- It has two small arrows, up and down. You can immediately go to the next or the previous hit. I love this. So often I search for something, and because I know the text, I know I need to go backwards to find it....something that often isn't easy to do.
Okay, I have to admit that this was a problem for me in Emacs, not because Emacs won't search backwards, but because I'd never learned that keystroke. So I just looked it up right now. I googled for 'emacs search backwards' and the answer was in the text that Google displayed for the first hit; I didn't even have to go to the page. Ctrl-s searches forward, Ctrl-r searches backward. Simple.
Thursday, May 28, 2009
If you bought a caster board and you have failed to learn it
...then you should contact me, because I'd love to get a used caster board. It seems like the sort of thing people would buy and then not actually learn to use and then sell in a garage sale along with the roller blades.
Wednesday, May 27, 2009
I've got a battlesuit and you don't
I came up with this on Monday. It's the title for a video game. I imagine a game in which the player bounces around in a powered-armor suit with blasters and a short-range jet pack. You would buy the game because of it's name, mainly. Therefore I'm done with the creative part of this, anyone wanting to purchase the rights to design a game with this title can contact me.
Wednesday, March 11, 2009
Let's make a jealousy detector

When I saw a jealousy-detecting poodle in "The Princess Planet" webcomic, I wanted one immediately. How can you not be jealous of a dog like that?
But my idea is much more practical, and you could use it for anything: it's just a gadget that buzzes or lights up. For example, it could be set up to look like a scifi sensor, a la a Tricorder. But it has a secret button that makes it go off.
In its simplest form, you hold it over your sibling's head and it buzzes. "See? My loser detector works!"
Friday, February 06, 2009
Make a 'categories' box in Blogger

I love the keyword feature that Blogger added a while back. Blogger calls them labels, but they're just keywords. I like tagging posts with keywords and being able to view all the posts for a keyword. I even spend a little time now and then pruning down my keyword list, realizing that no reader is going to find a huge list useful.
For a personal and wide-ranging blog like this one, the keywords make it easy for me to see what topics I'm blogging about most often. You might learn something about yourself from this. Maybe you're obsessed with potatoes and never knew.
Last week I decided that if I couldn't and wouldn't limit my blogging to one subject, then I could at least present the posts according to a few major categories. So I created a category box and put it up top on my right column.
To make the box, I added a Link List gadget. I gave the box the title Categories, and for the URLs of the links, I used the same URLs that Blogger uses for some of my labels...I just selected one and copied the link address, and got a URL like this
http://aarondamommio.blogspot.com/search/label/reviews
So all I've done here is manually put links to these particular labels at the top of my page.
The alternative would be to use extreme label discipline and limit myself to just a few labels. But that's completely unrealistic. :)
A fun variant on this would be to create a gadget that gets the post count for each label and displays links for the top three labels, say. But that would require code.
Of course with a plugin-like thing like this, someone might have created one, so I did a brief search. I didn't find anything like that, although I see that there are tag-cloud-style gadgets out there, so probably one could simplify the code from one of those (since they have to know how many posts-per-label in order to display a proper tag cloud) into what I'm describing.
That kind of thing would be dynamic content, which I love, but I don't really want that in this case. I'd do this mainly to learn how to write a blogger gadget.
Tuesday, February 03, 2009
I want a paste-plain-text key combo in Windows

For a while, Windows apps have started to implement Paste Special commands that allow you to paste text that you copied with formatting, like HTML or RTF, as plain text, scrubbing out the formatting before the paste. This is handy whenever copying from one document to another.
But it's too slow to go to the menu. Let's make a Windows standard for this. We have Ctrl-V for paste; what about Ctrl-G for Paste-Special-Plain-Text?
I know, I know, I can get a clipboard scrubber app for this. I can even assign the scrubbing to a hotkey using a hotkey utility. I can prove I'm a geek any number of ways; I want this built into my operating system, thank you very much. I want a standard, that is available on any Windows box I sit down at.
Saturday, September 20, 2008
Remove XML/HTML tags using a regular expression
I'm sharing my slow journey through the wonders of regular expressions here. Here's something I learned recently: searching some text for all instances of the regular expression
<.*?>
and replacing it with nothing will quickly remove most XML tags.
(The key item here is the ?, which makes the expression non-greedy. A <.*> would try to grab all text between the first and last angle brackets on a line; the ? makes the expression grab the text up to to the very next angle bracket.)
I used this in emacs with a replace-regexp command, it was like magic...quick and easy.
I haven't tested this exhaustively...maybe someone else can improve it. I noted that when I took a whole file, some tags that extended across lines didn't get removed. But this only applied to some of the meta information at the top of my file.
Monday, September 01, 2008
Can I have my search results as a link list, please?
The classic word processing search function isn't so useful in large documents, and there's a much better way to handle things that I've encountered in a few applications: returning search results as a list or report, with one hit per row, and making the rows clickable links back to the location of the search hit in the text. I'll call this a search report.
I want one of these in every future version of every word processor, please.
You've seen this on any web search page. You're just probably not used to seeing it in a desktop application. This feature is awesome, and I'll tell you why.
Suppose you're editing a document for variations on a term like WebLogic. You want to inspect all the places where it's used and make sure they're correct. Maybe you want to use the longer name "BEA WebLogic" in some places, not in others. A good search report will give you lots of help:
I want one of these in every future version of every word processor, please.
You've seen this on any web search page. You're just probably not used to seeing it in a desktop application. This feature is awesome, and I'll tell you why.
Suppose you're editing a document for variations on a term like WebLogic. You want to inspect all the places where it's used and make sure they're correct. Maybe you want to use the longer name "BEA WebLogic" in some places, not in others. A good search report will give you lots of help:
- It'll display a total of hits, so you know instantly how much editing you've got ahead of you.
- It'll show the hits in context, highlighting the search term.
- You can use this feature to edit incrementally and check your progress. For example, you can make some changes, then rerun the search and see how many items you have left to fix.
UPDATED 9/4/08: I was just using Emacs, and realized another neat aspect of an occur search. I couldn't remember a word I'd used earlier in the file I was working on. I knew it ended in "ium". So I did an occur search for "ium." Emacs then splits the screen and shows me the search hits in the lower half. I could see the information I needed without ever leaving the place where I was writing. Now that's service!
Friday, November 09, 2007
Filtering headings by regexes: the next feature I want from all word processors
I was messing with my Blood of Heroes scenes the other day, and I wanted to make a printout of just one character's scenes. In general I use Word for fiction writing, and the main feature that brings me back to it again and again is its Outline View feature. So long as you use Word's heading styles, you can expand and contract topics by their headings, and that gives a document the equivalent of automatic hyperlinks. It's a great way to see the structure of a document.
Since I had labelled all the scenes with heading names that included the name of the viewpoint character, it wasn't too hard to contract the outline to show just the headings, then delete all the headings I didn't need, leaving a document that just contained the desired scenes.
But I had also recently done an XSL project where I was able to filter out sections of a document based on applying a regular expression to the titles. This kind of thing is super easy to do with XML and XSL. I suppose I should see what Word is supporting in terms of XML these days. If Word XML wraps the text under a heading with a wrapper element of some kind, the way DocBook has [section][title] [/title][para] etc... .... then it would be easy to do.
Anyway, all this led to my brainstorm: there ought to be a way to display and print only those chunks of a document whose headings match a regular expression. This would be a pretty easy thing to implement...a variation on outline view.
I use Excel's built-in filtering all the time. There's nothing more handy than making an ad-hoc list and being able to filter it to show only items that match certain criteria. It's so useful I'd almost like to write a novel in Excel. In fact, it would probably be possible to take a DocBook xml document and convert it to Excel-compatible XML, load that into Excel, and there take advantage of Excel's filtering.
I don't really want to do all that, though. I want someone to add this to a word processor for me.
Since I had labelled all the scenes with heading names that included the name of the viewpoint character, it wasn't too hard to contract the outline to show just the headings, then delete all the headings I didn't need, leaving a document that just contained the desired scenes.
But I had also recently done an XSL project where I was able to filter out sections of a document based on applying a regular expression to the titles. This kind of thing is super easy to do with XML and XSL. I suppose I should see what Word is supporting in terms of XML these days. If Word XML wraps the text under a heading with a wrapper element of some kind, the way DocBook has [section][title] [/title][para] etc... .... then it would be easy to do.
Anyway, all this led to my brainstorm: there ought to be a way to display and print only those chunks of a document whose headings match a regular expression. This would be a pretty easy thing to implement...a variation on outline view.
I use Excel's built-in filtering all the time. There's nothing more handy than making an ad-hoc list and being able to filter it to show only items that match certain criteria. It's so useful I'd almost like to write a novel in Excel. In fact, it would probably be possible to take a DocBook xml document and convert it to Excel-compatible XML, load that into Excel, and there take advantage of Excel's filtering.
I don't really want to do all that, though. I want someone to add this to a word processor for me.
Subscribe to:
Posts (Atom)