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.comBlogger11125tag:blogger.com,1999:blog-9115644605833384138.post-22992039334772395932009-01-19T17:30:00.006+01:002009-01-19T17:57:27.493+01:00A button to make it simpler to paste notes: urlsI often paste links to Lotus Notes documents (mostly mail messages) in my tiddlywikis. Creating a toolbar button that puts the notes: url in a field makes it simpler. Unfortunately, LotusScript does not provide a way to access the clipboard, so you have to manually select the text and copy it there.<br />Create a new toolbar button and paste this code inside:<br /><div style="overflow: scroll;"><pre><br />dn := @Subset(@DbName; 1);<br />linkType:= "Document";<br />nsfPath := @WebDbName;<br />qualifiedHost := @If(@Length(dn) = 0; ""; @DbLookup("":""; dn:"names.nsf"; "($ServersLookup)"; dn; "SMTPFullHostDomain"));<br />dbUrl := "Notes://" + qualifiedHost+ "/" + nsfPath;<br />viewUrl := dbUrl + "/";<br />docUrl := viewUrl + "/" + @Text(@DocumentUniqueID);<br />docTitle := @If(@IsAvailable(Subject);Subject;@IsAvailable(Title);Title;@IsAvailable(FullName);FullName;@Name([CN];@Author));<br />clipboardTxt := "[[" + docTitle + "|" + docUrl + "]]";<br />@Prompt([OkCancelEdit]; "TiddlyWiki link"; "Copy the text below to the clipboard."; clipboardTxt)<br /></pre></div><br />I posted this long ago in my intranet blog, and looks that can also be useful outside. The code was adapted from something that <a href="http://mrfeinberg.com/">Jonathan Feinberg</a>, of <a href="http://www.wordle.net/">Wordle</a> fame, wrote for a then young and great <a href="http://www.ibm.com/software/lotus/products/connections/dogear.html">Dogear</a>, a bookmarking service that ended up being one of the key components of <a href="http://www.ibm.com/software/lotus/products/connections/">Lotus Connections</a>.-Xvhttp://www.blogger.com/profile/12954073038736466058noreply@blogger.com0tag: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-58303891730042521362007-12-14T14:46:00.000+01:002007-12-15T10:13:21.962+01:00Social Note Taking<a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.ripplerap.com/"><img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://www.ripplerap.com/images/ripplerap_logo.png" alt="" border="0" /></a><br />I just played a bit with <a href="http://www.ripplerap.com/">Ripplerap</a>, a tool to take and share notes during conferences<span style="font-style: italic;"></span>. Brilliant. If downloading and unziping is too much for you to get an impression, take a look at <a href="http://philwhitehouse.blogspot.com/2007/11/introducing-ripplerap.html">Phil Whitehouse's ripplerap-is-about-to-be-born post</a>.<br /><br />It is in its infancy, and there are several things that need some ironing, but I believe that its simplicity gives it a huge potential. Good news for us compulsive note takers and/or conference-life-blogging addicts.<br /><br />And I must confess that I did not see much of a point in one of Ripplerap bulding blocks, <a href="http://jaybyjayfresh.com/2007/09/24/tiddlychatter-decentralized-collaboration/">TiddlyChatter</a>...<br /><br /><span style="font-weight: bold;">Update:</span> It is a funny coincidence that the very same day that I played with Ripplerap for the first time, fellow IBMer <a href="http://sachachua.com/">Sacha Chua</a> - <span style="font-style: italic;">tech evangelist, storyteller, geek</span> - <a href="http://www.theorangechair.com/blog/2007/12/14/tips-for-conference-bloggers/">made me aware</a> of <a href="http://www.lunchoverip.com/conferencebloggers.html">this collecton of tips for conference bloggers</a>.-Xvhttp://www.blogger.com/profile/12954073038736466058noreply@blogger.com0tag:blogger.com,1999:blog-9115644605833384138.post-37437362899269517532007-11-02T21:35:00.000+01:002007-11-02T21:53:21.086+01:00Introducing... TiddlyWiki!<a href="http://www.giffmex.org/blog/?p=23">Dave Gifford created a very nice intro to TiddlyWiki</a>. Going over the 20 first slides will take you less than a minute and will give you good reasons to read further and start using tiddlywiks.<br /><br /><div style="width: 425px; text-align: left;" id="__ss_152394"><object style="margin: 0px;" height="355" width="425"><param name="movie" value="http://s3.amazonaws.com/slideshare/ssplayer2.swf?doc=an-introduction-to-tiddlywiki-revised-1193924841420239-1"><param name="allowFullScreen" value="true"><param name="allowScriptAccess" value="always"><embed src="http://s3.amazonaws.com/slideshare/ssplayer2.swf?doc=an-introduction-to-tiddlywiki-revised-1193924841420239-1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" height="355" width="425"></embed></object><div style="font-size: 11px; font-family: tahoma,arial; height: 26px; padding-top: 2px;"><a href="http://www.slideshare.net/?src=embed"><img src="http://s3.amazonaws.com/slideshare/logo_embd.png" style="border: 0px none ; margin-bottom: -5px;" alt="SlideShare" /></a> | <a href="http://www.slideshare.net/guest102a23/an-introduction-to-tiddlywiki-revised" title="View 'An Introduction to TiddlyWiki, revised' on SlideShare">View</a> | <a href="http://www.slideshare.net/upload">Upload your own</a><br /></div></div>-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-64232092752173199742007-05-27T17:32:00.000+01:002007-05-27T18:12:11.201+01:00Bookmarking things within gmailRestoring a Firefox session accidentally told me that, when you open messages/chats in a new window, you get an url that you can bookmark/copy to another file. Nice.<br /><br />Exploring things a bit further showed that gmail uses frames, so you can use the url of the inner frame to bookmark contacts, labels, filters, searches or any other thing that does not have the "New Window" link. In Firefox, use the popup menu, and "This Frame > Open frame in new tab".<br /><br />Very handy for those of us that run our lifes in tiddlywikis.<br /><br />Of course, Google is perfectly free to change these misterious urls not likely intended for public consumption...-Xvhttp://www.blogger.com/profile/12954073038736466058noreply@blogger.com0tag:blogger.com,1999:blog-9115644605833384138.post-91761754399576670492007-05-11T21:35:00.000+01:002007-05-11T21:43:50.770+01:00Tiddlywiki YourSearch bookmarkletWant to use the <a href="http://xdexavier.blogspot.com/2007/04/tiddlywiki-yousearch-plugin.html">terrific</a> <a href="http://tiddlywiki.abego-software.de/#YourSearchPlugin">YourSearch plugin</a> even when visiting a <a href="http://tiddlywiki.com/">TiddlyWiki</a> that does not have it installed?<br /><a href="http://xdexavier.googlepages.com/yoursearch.html">A bookmarklet will make it simple</a>.-Xvhttp://www.blogger.com/profile/12954073038736466058noreply@blogger.com2tag:blogger.com,1999:blog-9115644605833384138.post-59893084901197586422007-04-11T14:58:00.000+01:002007-04-11T17:39:00.921+01:00Tiddlywiki YourSearch pluginIf you are a tiddlywiki user and you have not installed the <a href="http://tiddlywiki.abego-software.de/#YourSearchPlugin">YourSearch</a> plugin, you don't know what you are missing. Serious.-Xvhttp://www.blogger.com/profile/12954073038736466058noreply@blogger.com0tag:blogger.com,1999:blog-9115644605833384138.post-16162012660920317632007-01-09T23:44:00.000+01:002007-01-10T10:35:10.857+01:00My browser, my rules, my chrome<span style="font-weight: bold;">Summary:</span> there are times when Firefox security gets in your way. Having a directory where you can place xul, html and scripts to run with chrome privileges enables you to shoot yourself in the foot and to create nice and handy hacks.<br /><br /><span style="font-weight: bold;">The itch that called for scratching:</span> I wanted to hack something to let me upload several files at once to <a href="http://googlepages.com/">googlepages</a> [1]. The problem is that, for very good reasons, you can not use JavaScript to change the value of input fields of type file: you usualy don't want scripts reading files in your disk. So, a bookmarklet, that to the browser looks as if it were part of the page, wouldn't cut it. Greasemonkey userscripts do <a href="http://diveintogreasemonkey.org/etech2006/#slide31">run sandboxed, but not under chrome privilege</a> [2], so I did not try that. I tried to give the page <a href="http://citebite.com/q6m6j4u5uvqh">UniversalFileRead privilege</a> [3][4], but failed.<br /><br /><span style="font-weight: bold;">A chrome folder.</span> From <a href="http://xulblog.de/xul/archives/7-Under-chromes-influence.html">Under chrome's influence</a>, slightly modified,<br /><blockquote><br />In the browser's installation directory, create a new file <code>chrome/mychrome.manifest</code> and put a single line into it:<br /><pre>content mychrome file:///D:/whatever/mychrome/<br /></pre>Note that the trailing slash is significant. Then create the file <code>D:\whatever\mychrome\hello.txt</code> and add some text:<br /><pre>hello world!<br /></pre>After a complete restart of your browser, you can open that file using <code>chrome://mychrome/content/hello.txt</code>.<br /></blockquote>You need to keep in mind that chrome is catched, so you may not see the changes you make immediately. Setting <a href="http://kb.mozillazine.org/Nglayout.debug.disable_xul_cache"><code>nglayout.debug.disable_xul_cache</code></a> to <code>true</code> [5] or the <a href="http://ted.mielczarek.org/code/mozilla/extensiondev/">Extension Developer's Extension</a> ability to reload chrome without restarting the browser are helpful here.<br /><br /><span style="font-weight: bold;">Future plans:</span><br /><ul><li>the bulk upload to googlepages is working nicely; needs some docu before uploading it.</li><li>I want to have a browser window with chrome privileges so that I can have more freedom of what I can do with some file: urls. Specifically<br /></li><ul><li>have known tiddlywikis granted <code>UniversalXPConnect</code> privilege <a href="http://groups-beta.google.com/group/TiddlyWikiDev/browse_frm/thread/5a8ddb015a6e738/97a25887d760a7d3?hl=en#97a25887d760a7d3">without having to grant it to everything from file:</a> and without having to mess with the <code>capability.principal.codebase</code> annoyance.</li><li>have local files use a script loaded from the web, or have a remote file load a script from my disk, so that I don't have to upload files while writing/debugging javascript.<br /></li></ul></ul><span style="font-weight: bold;">Footnotes:</span><br /><span style="font-size:85%;"><span style="font-weight: bold;">[1]</span> googlepages: yeah, I know, I'm cheap!<br /><span style="font-weight: bold;">[2]</span> Mark Pilgrim's slides on sandboxing greasemonkey have a wonderful <a href="http://diveintogreasemonkey.org/etech2006/#slide10">"how to become an expert" detour</a>. Don't miss it.<br />And, just in case you are a powerpoint author, consider <a href="http://meyerweb.com/eric/tools/s5/">S5</a> (a Simple Standards-Based Slide Show System), the tool used for Mark's slides.<br /><span style="font-weight: bold;">[3]</span> UniversalFileRead: I added to my <a href="http://kb.mozillazine.org/User.js_file">user.js</a><br /><pre>user_pref("capability.principal.codebase.googlepages1.granted", "UniversalFileRead");<br />user_pref("capability.principal.codebase.googlepages1.id", "http://pages.google.com/");<br /></pre>but still got a security exception.<br /><span style="font-weight: bold;">[4]</span> Highlighted link thanks to <a href="http://citebite.com/">http://citebite.com</a>.<br /><span style="font-weight: bold;">[5]</span> <code>nglayout.debug.disable_xul_cache</code>: I haven't tried it. As I write this,I realize that my <code>user.js</code> sets it to <code>true</code> while my <code>prefs.js</code> ignores it and keeps it to <code>false</code>. <del>I'm clueless here.</del> <span style="font-weight: bold;">Update:</span> A ";" was missing at the end of its user_pref line. Life is much better with this setting enabled!<br /></span>-Xvhttp://www.blogger.com/profile/12954073038736466058noreply@blogger.com2tag:blogger.com,1999:blog-9115644605833384138.post-62711855803325967082006-12-15T13:03:00.001+01:002006-12-18T13:06:58.127+01:00Exporting to plain html from a TiddlyWiki<a href="http://www.tiddlywiki.com/">TiddlyWikis</a> are my main note taking device. But what happens when I want to share my notes on some topic with someone?<br /><a href="http://www.tiddlytools.com/#NewDocumentPlugin">TiddlyTools' NewDocumentPlugin</a> can do lots of things, but one of them is to export to a simple html file the tiddlers that you are viewing at any time, without the side bars or the header. So, in my SideBarOptions tiddler, I have added <span style="font-family:courier new;"><<newDocument ask snap tiddlerDisplay>></span> and it shows as a "create a snapshot" button. <span style="font-family:courier new;">tiddlerDisplay</span> is the id of the div that displays the main tiddlers; it could be any other id if you wanted to have a different snapshot.-Xvhttp://www.blogger.com/profile/12954073038736466058noreply@blogger.com1tag:blogger.com,1999:blog-9115644605833384138.post-54780136087634448212006-12-11T01:18:00.000+01:002006-12-11T01:22:06.667+01:00Tab Mix Plus + TiddlyWiki = [productivity | guilt]<ul><li>I'm a big fan of the <a href="http://tmp.garyr.net/">Tab Mix Plus</a> Firefox extension. I have a hard time when using a browser without it and I cannot duplicate tabs, undo tab closing, store several browsing sessions, list all the opened tabs in a dropdown menu...</li><li>I'm an even bigger fan of <a href="http://tiddlywiki.com/">TiddlyWikis</a>(*), personal wikis that are self-contained in a single html file that can be in your hard drive or usb stick, or hosted in the terrific and free <a href="http://tiddlyspot.com/">tiddlyspot</a> service. I use them to record personal knowledge, to write docs and "microtag" at the paragraph level, to write checklists, to keep my to-do lists...<br /></li></ul><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://simonbaird.com/images/monkeygtd/revLogo2.gif"><img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://simonbaird.com/images/monkeygtd/revLogo2.gif" alt="" border="0" /></a><br />I just changed a Tab Mix Plus preference to switch to my left tab whenever I close a tab. And my left tab always hosts my to-do list in the shape of a <a href="http://monkeygtd.blogspot.com/">MonkeyGTD tiddlywiki</a>.<br /><br />Will this change mean that my browsing parties will end up being shorter and I'll be pushed to Get Thing Done instead of following yet another interesting link?<br /><br />Or am I just adding guilty feeling drops to some future pointless browsing?<br /><br />(*) aside: It was the former IBM Rational <a href="http://radio.weblogs.com/0100945/">Doug Landauer</a> that pointed me to TiddlyWikis (among the endless list of interesting links that he always posted in his intranet blog(**)). It was the magic of seeing a wiki run in my browser that changed my perception of JavaScript and got me interested in it.<br /><br />(**) See? I just checked <a href="http://del.icio.us/scruzia">Doug's delicious bookmarks</a> and see a link to <a href="http://tarekziade.wordpress.com/2006/11/06/how-to-prevent-drowning-in-the-huge-rss-daily-feed-you-receive/">the Atomisator</a>, some Python scripts that I'd like to check closer to help me avoid drowning in the rss tide... (***)<br /><br />(***) The pattern of me getting lost following links should be quite obvious at this point :-)-Xvhttp://www.blogger.com/profile/12954073038736466058noreply@blogger.com2