tag:blogger.com,1999:blog-91156446058333841382024-03-13T21:16:17.380+01:00X de XavierUnos y ceros. A veces, en el orden adecuado.-Xvhttp://www.blogger.com/profile/12954073038736466058noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-9115644605833384138.post-73017729548916926492008-04-15T21:46:00.006+01:002008-04-24T09:16:33.994+01:00A simple way to manage Firefox privilegesIf you are familiar with the 'enhanced abilities' Firefox security prompt, and you ever clicked on the 'Remember this decision' check box<br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp3.blogger.com/_T679aggANRU/SAUV47MdTXI/AAAAAAAAAEE/btI4u5w6n4I/s1600-h/securityprompt.png"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://bp3.blogger.com/_T679aggANRU/SAUV47MdTXI/AAAAAAAAAEE/btI4u5w6n4I/s400/securityprompt.png" alt="" id="BLOGGER_PHOTO_ID_5189578213321166194" border="0" /></a><br />you may want to check <a href="http://firefoxprivileges.tiddlyspot.com/">http://firefoxprivileges.tiddlyspot.com</a>.<br /><br />When this prompt appears as a result of loading a file from your hard drive, you may not be aware of the exact meaning of the 'Remember this decision' check box. While you probably mean "I trust this file and I don't want you to annoy me anymore", Firefox understands "I trust every html file loaded from the hard drive". This broad trust is not a good idea from the security point of view.<br /><br />This tool allows to easily cancel that effects of "remember this", and tell Firefox that you only trust some specific files (<a href="http://www.mozilla.org/projects/security/components/per-file.html">per-file permissions</a>). Before hacking it, I used to have to mess with the <a href="http://kb.mozillazine.org/User.js_file">user.js</a> file, much less convenient.<br /><br />The tool is implemented as a TiddlyWiki plugin. If you are not familiar with <a href="http://firefoxprivileges.tiddlyspot.com/#TiddlyWiki">TiddlyWiki</a>s (super cool wikis in a single file), this is a good chance to get to know them.<br /><br /><span style="font-weight: bold;">Edit:</span><br /><span style="font-size:78%;">Some strings to make this post googleable for the right people:<br />UniversalXPConnect UniversalBrowserRead UniversalBrowserWrite UniversalFileRead CapabilityPreferencesAccess UniversalPreferencesRead UniversalPreferencesWrite<br />netscape.security.PrivilegeManager.enablePrivilege signed.applets.codebase_principal_support</span>-Xvhttp://www.blogger.com/profile/12954073038736466058noreply@blogger.com0tag:blogger.com,1999:blog-9115644605833384138.post-63059799618048678252007-08-04T01:04:00.000+01:002007-08-04T17:55:03.219+01:00SendTo Clipboard coolness (TiddlyWiki links to your files)The SendTo folder is a simple and powerful tool to customize Windows Explorer to simplify some recurring tasks. If you often want to link to files in your PC from your TiddlyWikis, you'll like this hack. It creates two new items in the "Send To" menu:<br /><ul><li><span style="font-family:courier new;">clipboard - file url</span>: Copies to the clipboard the file: url of the file or folder that was showing the "Send To" menu</li><li><span style="font-family:courier new;">clipboard - new tiddler javascript url</span>: Copies to the clipboard a javascript: url that, when pasted into the address bar of a Firefox tab showing a TiddlyWiki, will create a tiddler with the contents of the file that was showing the "Send To" menu<br /></li></ul><br />You can jump and just download and run the thing, <a href="http://xdexavier.googlepages.com/path2twlink.hta">a small .hta file</a>, or take less than three minutes watching it in action in one of the lamest screencasts ever:<br /><object type="application/x-shockwave-flash" data="http://vimeo.com/moogaloop.swf?clip_id=261215&server=vimeo.com&fullscreen=1&show_title=1&show_byline=1&show_portrait=0&color=00ADEF" height="300" width="400"> <param name="quality" value="best"> <param name="allowfullscreen" value="true"> <param name="scale" value="showAll"> <param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=261215&server=vimeo.com&fullscreen=1&show_title=1&show_byline=1&show_portrait=0&color=00ADEF"></object><br /><span style="font-size:78%;"><a href="http://vimeo.com/261215">SendTo Clipboard Screencast</a> from <a href="http://vimeo.com/xdexavier">Xavier Vergés</a> and <a href="http://vimeo.com/">Vimeo</a></span><br /><br /><span style="font-weight: bold;">Using it<br /></span><ul><li>Just download the .hta file and open it. No, wait! Never open .hta files unless you trust its author or you have taken a look at the code.</li><li>Provided that you trust me or that you have checked the code, you can now open it. Maybe a double click will be enough (your Windows associates .hta files to <span style="font-family:courier new;">mshta.exe</span>, a version of IE with high security privileges in your machine). Maybe you need to use the command line and type <span style="font-family:courier new;">mshta path2twlink.hta</span>.</li><li>Follow the simple steps described in the .hta file, and you can start using your new shinny Send To menu items.</li><li>You are expected to edit the file to customize what gets copied into the clipboard. It should be easy. You may get ideas to push the sendto+clipboard+javascript urls concept further; adding them to the tool should not be too hard.</li><li>You are also expected to do some dancing, since this is <a href="http://xdexavier.blogspot.com/2007/08/upcoming-dancelikematthardingware-half.html">DanceLikeMattHardingWare</a>.<br /></li></ul><span style="font-weight: bold;">Lessons learned while hacking<br /></span><ul><li>I initially wanted to use just a .js file. Getting access to the clipboard from a .js file is hard, so I went for an .hta. It turned out to be a good thing, because it ended up providing a way to avoid to the users the trouble of creating the shortcuts by hand and to me the trouble of documenting the recipe.</li><li>The problem of using an .hta file is that I found no way to keep it invisible, that it has an unusual way to receive its params, and that I had to warn you about its dangerousness.</li><li>I think that I've spent more time recording the lousy screencast and comparing video hosting services that coding. The number of times that I rerecorded the #@%! thing will remain undisclosed; I have my pride. Regarding the hosting services, after reading <a href="http://pascal.vanhecke.info/2006/10/31/screencasting-online-video-sharing-sites-compared-2">about</a> <a href="http://209.85.135.104/search?q=cache:a5H_UzfisBsJ:www.gnurou.org/blog/gnurou/2007/07/30/comparing_google_video_vimeo_and_blip_tv&hl=en&amp;amp;amp;amp;amp;amp;amp;amp;amp;ct=clnk&cd=10" title="sorry, cached version">them</a>, I posted the video to <a href="http://video.google.es/videoplay?docid=1620076739328504497">google</a>, <a href="http://blip.tv/file/327653/">blip.tv</a> and <a href="http://www.vimeo.com/261215">vimeo</a>. <del><br />I still have no winner, but google's video quality was awfull, so I had to drop it despite its super cool feature of letting you link to a specific point of the video.</del> <span style="font-weight: bold;">Update</span>: looks like the winner is <a href="http://viddler.com">http://viddler.com</a>: links, comments and tags on specific points of the video, plus the best player of all (in full screen mode, showing the original size, the quality was just perfect): <a href="http://www.viddler.com/explore/xdexavier/videos/1">http://www.viddler.com/explore/xdexavier/videos/1</a><br /></li></ul>-Xvhttp://www.blogger.com/profile/12954073038736466058noreply@blogger.com2tag:blogger.com,1999:blog-9115644605833384138.post-36171151279229827012007-08-02T13:37:00.000+01:002007-08-06T08:53:42.199+01:00Upcoming DanceLikeMattHardingWare (half cooked hacks)I have a longish backlog of hacks worth cleaning up and publishing<br /><ul><li><span style="font-weight: bold;">FoxyHistory</span>, a better Firefox History Manager. Having the ability to include urls when searching, and to sort the history by date of first visit has already saved me some time trying to restore some foggy memories.<br /></li><li><span style="font-weight: bold;">TiddlyWiky SendTo Shortcuts</span>, that allow to easily create customized links to files in a tiddlywiki and tiddlers with the contents of a file <span style="font-size:85%;">(Thanks for that <a href="http://groups.google.com/group/TiddlyWiki/browse_frm/thread/fa8a27d2f13f94fd/e26f38c207160ceb?#e26f38c207160ceb">first implementation</a>, <a href="http://groups.google.com/groups/profile?enc_user=cfb74xEAAADNzp8KVNaUwGY7xBgmxhfBIZ6HvvJW0y4Pue0pYgAOJQ">-- F.</a>!)</span><br /></li><li><span style="font-weight: bold;">MultiTiddlyWiki</span>, that allows to have a bunch of tiddlywikis in a single Firefox tab. Specially nice when used with the terrific <a href="http://wiki.mozilla.org/WebRunner">WebRunner</a>, a XULRunner based <a href="http://www.hawkwings.net/2006/05/13/a-dedicated-distraction-free-browser-for-gmail/">distraction-free browser</a> <span style="font-size:85%;">(Thanks for <a href="http://groups.google.com/group/GTD-TiddlyWiki/browse_frm/thread/c7a877fbd76a4363">the link</a>, <a href="http://groups.google.com/groups/profile?enc_user=EZKFZB4AAAAiViFfWiEmN7zhal_9mEZS3PARwrFCXyGvkdrowEPjtw">schilke</a>!)</span></li></ul>I also had a <a href="http://xkcd.com/">xkdc</a> (<span style="font-style: italic;">a webcomic of romance, sarcasm, math, and language</span>) specific bookmarklet, but I just learned about the <a href="https://addons.mozilla.org/en-US/firefox/addon/1715">Long Titles Firefox extension</a> that obsoletes it.<br /><br />I think that I'll make the hacks available as <span style="font-weight: bold;">DanceLikeMattHardingWare</span>:<br /><blockquote>You are free to do with this whatever you fancy, but you are expected to do some small <a href="http://video.google.com/videoplay?docid=4333821212636205852#2m53s">à la Matt Harding dancing steps</a> now and then.<br /><br />If you are too serious to dance, consider changing some things in your life, or just use it under some form of <a href="http://en.wikipedia.org/wiki/Beerware">beerware</a> or <a href="http://creativecommons.org/">Creative Commons</a> licensing.</blockquote><br /><a title="Matt Harding in Berlin" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.wherethehellismatt.com/"><img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;" src="http://bp1.blogger.com/_T679aggANRU/RrbS6EOtDsI/AAAAAAAAACk/lPAMwz74sK0/s320/matt_in_berlin.jpg" border="0" alt="Matt Harding in Berlin" id="BLOGGER_PHOTO_ID_5095491923425955522" /></a>-Xvhttp://www.blogger.com/profile/12954073038736466058noreply@blogger.com0tag:blogger.com,1999:blog-9115644605833384138.post-26935901836794157132007-06-09T20:58:00.000+01:002007-08-02T12:47:31.415+01:00Infectado por el baile tontorrónTodo todo el día marcándome ridículos pasitos de baile, sin quitaremde la cabeza la música del <a href="http://www.youtube.com/watch?v=7WmMcqp670s">vídeo</a> de <a href="http://www.wherethehellismatt.com/">Matt Hardin</a> bailando alrededor del mundo. Y encantado de la vida.<br /><br />¿La culpa? De Malaprensa, por <a href="http://personales.ya.com/josumezo/malaprensa/2007/06/bailar.html">mencionar el formidable CPI (Curioso pero inútil)</a>, de <a href="http://curiosoperoinutil.com/2006/10/24/desafio-cpi-10/">CPI (Curisoso pero inútil) por su fantástico vídeo de homenaje a Matt</a>, del "Sweet Lullaby Dancing Remix" y, por supuesto, de Matt por sus bailes. Gracias a todos.-Xvhttp://www.blogger.com/profile/12954073038736466058noreply@blogger.com0