<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title>Kopretinka</title>
  <link rel="alternate" type="text/html" href="http://www.jacek.cz/blog/" />
  <link rel="self" type="application/atom+xml" href="http://www.jacek.cz/blog/atom.xml" />
  <id>tag:www.jacek.cz,2012:/blog//1</id>
  <updated>2012-04-03T12:59:13Z</updated>
  <subtitle>Jacek&apos;s blog homepage.</subtitle>
  <generator uri="http://www.sixapart.com/movabletype/">Movable Type 3.31</generator>
 
<entry>
  <title>Dreaming about...</title>
  <link rel="alternate" type="text/html" href="http://www.jacek.cz/blog/archives/2012/04/dreaming_about/" />
  <link rel="replies" type="application/atom+xml" href="http://www.jacek.cz/blog/archives/000105-comments.xml" />
  <id>tag:www.jacek.cz,2012:/blog//1.105</id>
  
  <published>2012-04-03T12:47:57Z</published>
  <updated>2012-04-03T12:59:13Z</updated>
  
  <content type="html"><![CDATA[<p>I just had a vivid day dream about my future computer: a 12+ inch hi-res tablet with an open OS (Android is good, something with full support for GNU would be even better), with wireless power/charging (e.g. on table top), and with wireless connection to a big external display (say 27" 2560x1440) as a second screen.</p>

<p>Then I could be ready to give up a real computer. And it would be a step towards the paperless office: I could finally review papers (say in PDF) on the computer, as opposed to printing them out and scribbling notes on paper, which is clearly slow and wasteful.</p>

<p>Estimated time of arrival: 2015-2020 for mass-market hardware. If Steve Jobs was still alive and kicking, I'd be expecting Apple to do it.</p>]]>

</content>

  <author>
      <name>jacek</name>
      <uri>http://jacek.cz/</uri>
  </author>
        <category term="Ideas" />
  
</entry>
<entry>
  <title>Dear Hollywood</title>
  <link rel="alternate" type="text/html" href="http://www.jacek.cz/blog/archives/2012/02/dear_hollywood/" />
  <link rel="replies" type="application/atom+xml" href="http://www.jacek.cz/blog/archives/000104-comments.xml" />
  <id>tag:www.jacek.cz,2012:/blog//1.104</id>
  
  <published>2012-02-03T14:19:29Z</published>
  <updated>2012-02-03T14:24:42Z</updated>
  
  <content type="html"><![CDATA[<p>The EFF has published <a href="https://www.eff.org/deeplinks/2012/02/dear-hollywood-open-letter-hardworking-men-and-women-entertainment-industries">"Dear Hollywood: An Open Letter to the Hardworking Men and Women in the Entertainment Industries"</a>, which is well written and worth reading, especially if you're in the entertainment industry (not that I'd expect to have readers from the entertainment industry, but that's all right on the internet). This matters, and I care about the issue.</p>]]>

</content>

  <author>
      <name>jacek</name>
      <uri>http://jacek.cz/</uri>
  </author>
        <category term="Links" />
  
</entry>
<entry>
  <title>Information wants to be free (and services don&apos;t)</title>
  <link rel="alternate" type="text/html" href="http://www.jacek.cz/blog/archives/2011/12/information_wants_to_be_free/" />
  <link rel="replies" type="application/atom+xml" href="http://www.jacek.cz/blog/archives/000103-comments.xml" />
  <id>tag:www.jacek.cz,2011:/blog//1.103</id>
  
  <published>2011-12-05T14:10:11Z</published>
  <updated>2011-12-05T14:18:11Z</updated>
  
  <content type="html"><![CDATA[<p>Tim Bray just posted <a href="http://www.tbray.org/ongoing/When/201x/2011/12/04/Information-wants-to-be-free">a blog post on how information wants to be free</a> and how that's not actually a problem, economically speaking.</p>

<p>Two choice quotes: "the distinction between bits-as-bits and bits-as-a-service may not always be obvious. But it’s crucial, because people will pay for only one of the two." and "» I don’t sell information ... I sell services. «"</p>

<p>This is the kind of thing that Web services ultimately should be about.</p>]]>

</content>

  <author>
      <name>jacek</name>
      <uri>http://jacek.cz/</uri>
  </author>
        <category term="Work" />
  
</entry>
<entry>
  <title>AppleScript to export all Stickies to text files</title>
  <link rel="alternate" type="text/html" href="http://www.jacek.cz/blog/archives/2011/11/applescript_to/" />
  <link rel="replies" type="application/atom+xml" href="http://www.jacek.cz/blog/archives/000102-comments.xml" />
  <id>tag:www.jacek.cz,2011:/blog//1.102</id>
  
  <published>2011-11-01T14:48:23Z</published>
  <updated>2011-11-01T15:02:24Z</updated>
  
  <content type="html"><![CDATA[<p>I was looking for a way to put my Mac Stickies on my Android phone, as as the first solution, I just save the text of all the stickies into a bunch of text files that I can then copy to the phone.</p>

<p>To save the stickies on OSX Lion, I found an <a href="http://hints.macworld.com/article.php?story=20060202122453543">AppleScript script</a> that does that, except it has problems with double quotes in the stickies, so I tweaked it, see below.</p>

<p>One remaining limitation is that it can't handle spaces, so I run the script manually on every space that has some stickies on it - the script creates new files for all the stickies. This also means that if you already saved some stickies and you rerun the script on the same screen, you'll get duplicates. If you know how to fix the access to stickies on all spaces, please let me know.</p>

<p>Here's the script: </p>

<pre>
set theName to ""
set i to 0
set n to {}
set L to {}
set destFldr to ""
set mydestFldr to ""
if destFldr = "" then
	set destFldr to (choose folder with prompt "Choose a destination folder:") as text
	set mydestFldr to POSIX path of destFldr
end if
tell application "Stickies"
	activate
	tell application "System Events"
		tell application process "Stickies"
			set L to name of windows
			try
				repeat with awindow in L
					set m to value of text area 1 of scroll area 1 of window awindow
					set end of n to m
				end repeat
			end try
			repeat with acontent in n
				repeat
					set i to i + 1
					set theName to mydestFldr & "stickies" & "_" & (i as string) & ".txt"
					set existsFlag to ""
					tell application "Finder" to if exists theName as POSIX file then set existsFlag to "yes"
					if (existsFlag = "") then exit repeat
				end repeat
				try
					set theFileReference to open for access theName with write permission
					write acontent to theFileReference
					close access theFileReference
				end try
			end repeat
		end tell
	end tell
	tell application "Finder"
		activate
		open destFldr
	end tell
end tell
</pre>]]>

</content>

  <author>
      <name>jacek</name>
      <uri>http://jacek.cz/</uri>
  </author>
        <category term="Work" />
  
</entry>
<entry>
  <title>WSMO-Lite W3C Submission</title>
  <link rel="alternate" type="text/html" href="http://www.jacek.cz/blog/archives/2010/09/wsmo-lite_submission/" />
  <link rel="replies" type="application/atom+xml" href="http://www.jacek.cz/blog/archives/000101-comments.xml" />
  <id>tag:www.jacek.cz,2010:/blog//1.101</id>
  
  <published>2010-09-21T12:18:18Z</published>
  <updated>2010-09-21T12:34:13Z</updated>
  
  <content type="html"><![CDATA[<p>The <a href="http://w3.org/">W3C</a> has acknowledged <a href="http://w3.org/Submission/WSMO-Lite">WSMO-Lite</a>, a lightweight set of terms for describing the semantics of Web services that builds on the standard <a href="http://w3.org/TR/sawsdl">SAWSDL</a>. According to the W3C's own <a href="http://www.w3.org/Submission/2010/05/Comment/">Team comment</a>, WSMO-Lite "is a useful addition to SAWSDL for annotations of existing services and the combination of both techniques can certainly be applied to a large number of semantic Web services use cases." </p>

<p>So now, if you were interested in what SAWSDL could be useful for, here's an answer. We are using WSMO-Lite for semantic Web services automation in the project <a href="http://soa4all.eu">SOA4All</a>, and especially in the SWS registry <a href="http://iserve.kmi.open.ac.uk">iServe</a>.</p>

<p>We also apply WSMO-Lite to RESTful Web services - through the microformat <a href="http://jacek.cz/publications/2008-12-wi-hrests.pdf">hRESTS</a> we structure the HTML documentation that every RESTful API has, and then it's easy to add SAWSDL/WSMO-Lite annotations.</p>

<p>So that's what's been keeping me busy.</p>]]>

</content>

  <author>
      <name>jacek</name>
      <uri>http://jacek.cz/</uri>
  </author>
        <category term="Links" />
        <category term="Work" />
  
</entry>
<entry>
  <title>What are virtual worlds good for?</title>
  <link rel="alternate" type="text/html" href="http://www.jacek.cz/blog/archives/2010/05/what_are_virtual_worlds_good_for/" />
  <link rel="replies" type="application/atom+xml" href="http://www.jacek.cz/blog/archives/000100-comments.xml" />
  <id>tag:www.jacek.cz,2010:/blog//1.100</id>
  
  <published>2010-05-18T10:55:14Z</published>
  <updated>2010-05-18T11:01:00Z</updated>
  
  <content type="html"><![CDATA[<p>If you've ever wondered about what virtual worlds (like Second Life) are good for, beside games, <a href="http://perilsofparallel.blogspot.com/2010/05/living-in-it-tale-of-learning-in-second.html">Greg Pfister</a> describes a better way to do presentations:</p>

<blockquote src="http://perilsofparallel.blogspot.com/2010/05/living-in-it-tale-of-learning-in-second.html">Living in a presentation. It cannot be done in two dimensions. You cannot even do it in real life. It's something virtual worlds are, uniquely, good for.</blockquote>]]>

</content>

  <author>
      <name>jacek</name>
      <uri>http://jacek.cz/</uri>
  </author>
        <category term="Links" />
  
</entry>
<entry>
  <title>Erik Naggum, R.I.P.</title>
  <link rel="alternate" type="text/html" href="http://www.jacek.cz/blog/archives/2009/06/erik_naggum_rip/" />
  <link rel="replies" type="application/atom+xml" href="http://www.jacek.cz/blog/archives/000099-comments.xml" />
  <id>tag:www.jacek.cz,2009:/blog//1.99</id>
  
  <published>2009-06-23T20:54:32Z</published>
  <updated>2009-06-23T21:18:57Z</updated>
  
  <content type="html"><![CDATA[<p>Apparently, Erik Naggum died. I never knew him, but words of his death reached me and I've learned a lot. Two excerpts from <a href="http://en.wikiquote.org/wiki/Erik_Naggum">his entry on wikiquote</a> (these are his signatures, not necessarily quotes):</p>

<ul>
<li>In a fight against something, the fight has value, victory has none. In a fight for something, the fight is a loss, victory merely relief.</li>
<li>Act from reason, and failure makes you rethink and study harder. Act from faith, and failure makes you blame someone and push harder.</li>
</ul>

<p>Rest in peace, Erik Naggum.</p>]]>

</content>

  <author>
      <name>jacek</name>
      <uri>http://jacek.cz/</uri>
  </author>
        <category term="Links" />
  
</entry>
<entry>
  <title>XSPARQL W3C Submission</title>
  <link rel="alternate" type="text/html" href="http://www.jacek.cz/blog/archives/2009/06/xsparql_w3c_sub/" />
  <link rel="replies" type="application/atom+xml" href="http://www.jacek.cz/blog/archives/000098-comments.xml" />
  <id>tag:www.jacek.cz,2009:/blog//1.98</id>
  
  <published>2009-06-23T18:51:36Z</published>
  <updated>2009-06-23T19:11:21Z</updated>
  
  <content type="html"><![CDATA[<p>Over a year and a half after <a href="http://axel.deri.ie/~axepol/">Axel</a> first told me about this idea, and over a year since it was presented at <a href="http://www.eswc2008.org/">ESWC 2008</a>, <a href="http://xsparql.deri.org/">XSPARQL</a> has reached the next step: it was now <a href="http://www.w3.org/Submission/2009/01/">acknowledged</a> by the <a href="http://www.w3.org/">W3C</a>, the Web's standardization body. </p>

<p>XSPARQL is a fusion of SPARQL and XQuery, a query/transformation language able to process RDF and XML data sources and return RDF or XML. It's great for transforming data from XML to RDF or vice versa, and more. Finally the worlds of XML and RDF might be getting closer, yay!</p>

<p>Now go check out the <a href="http://xsparql.deri.org/XSPARQLer/">online demo</a>. 8-)</p>]]>

</content>

  <author>
      <name>jacek</name>
      <uri>http://jacek.cz/</uri>
  </author>
        <category term="Work" />
  
</entry>
<entry>
  <title>Web is 20 years old</title>
  <link rel="alternate" type="text/html" href="http://www.jacek.cz/blog/archives/2009/03/web_is_20_years/" />
  <link rel="replies" type="application/atom+xml" href="http://www.jacek.cz/blog/archives/000097-comments.xml" />
  <id>tag:www.jacek.cz,2009:/blog//1.97</id>
  
  <published>2009-03-12T22:32:32Z</published>
  <updated>2009-03-12T22:37:12Z</updated>
  
  <content type="html"><![CDATA[<p>This month, the Web reaches 20 years since <a href="http://www.w3.org/History/1989/proposal.html">its conception</a> and there will be <a href="http://info.cern.ch/www20/">celebrations</a>! Boy, am I happy not to be too much older than the Web.</p>

<p>Happy birthday, Web. Thanks, Sir Tim.</p>]]>

</content>

  <author>
      <name>jacek</name>
      <uri>http://jacek.cz/</uri>
  </author>
        <category term="Links" />
  
</entry>
<entry>
  <title>Focusing on the Bad</title>
  <link rel="alternate" type="text/html" href="http://www.jacek.cz/blog/archives/2009/01/focusing_on_the_bad/" />
  <link rel="replies" type="application/atom+xml" href="http://www.jacek.cz/blog/archives/000096-comments.xml" />
  <id>tag:www.jacek.cz,2009:/blog//1.96</id>
  
  <published>2009-01-21T12:57:08Z</published>
  <updated>2009-01-21T14:04:13Z</updated>
  
  <content type="html"><![CDATA[<p>In relationships, it seems sometimes that people only see the bad things and never notice the good ones. I just formed a theory for why this is. (I'll use Adam and Eve to explain, but I don't see any reason that it has to be these genders in particular, just two people.)</p>

<p>When Adam does something good, such as buying flowers or cleaning the bathroom, Eve can thank him, smile, and it's done, off everybody's mind, a small pleasant memory. </p>

<p>When Adam does something bad, such as forgetting to clean the bathroom or burping loudly, but it's not so bad that Eve would feel like raising it as a criticism (fearing that would be creating a bad feeling), Adam may not notice that it was perceived as bad, and Eve will be left with this unfinished matter on her mind, waiting in the back ready to pop up, souring her mood. When enough of these small unfinished matters accumulate, the last straw (just as insignificant as the others) leads to an outburst of criticism, which focuses on all those small bad things left not-dealt-with, and ignores all the small good things that were closed with a thanks and a smile.</p>

<p>I believe this is a natural course of life &mdash; we can't really bring up every small bad thing that someone does.</p>

<p>If the partners keep this natural course of things in mind, it could lessen the violence of the outbursts without keeping any pent-up issues waiting to explode later and with more strength.</p>

<p>This should apply in situations other than couple relationships as well (e.g. in a workplace), but it seemed easiest to describe in terms of two people.</p>

<p>It's not likely to be a new insight, but it's new to me. 8-)</p>]]>

</content>

  <author>
      <name>jacek</name>
      <uri>http://jacek.cz/</uri>
  </author>
        <category term="Ideas" />
  
</entry>
<entry>
  <title>HATEOS</title>
  <link rel="alternate" type="text/html" href="http://www.jacek.cz/blog/archives/2008/11/hateos/" />
  <link rel="replies" type="application/atom+xml" href="http://www.jacek.cz/blog/archives/000095-comments.xml" />
  <id>tag:www.jacek.cz,2008:/blog//1.95</id>
  
  <published>2008-11-04T08:39:47Z</published>
  <updated>2008-11-04T12:36:32Z</updated>
  
  <content type="html"><![CDATA[<p>HATEOS stands for Hypermedia As The Engine Of State transfer, one of the principles of <a href="http://en.wikipedia.org/wiki/Representational_State_Transfer">REST</a>.</p>

<p>Saw it over at <a href="http://jim.webber.name/2008/09/17/595957ef-63a2-4ff9-a477-43ea8db51cdd.aspx">Jim Webber's blog</a>, couldn't easily find it with google, so maybe this will help others. </p>

<p><i>Update:</i> See the comment - it was a typo at Jim's blog (should be HATEOAS), but it's not unique there anyway. 8-)</p>]]>

</content>

  <author>
      <name>jacek</name>
      <uri>http://jacek.cz/</uri>
  </author>
  
</entry>
<entry>
  <title>First photos from Thailand</title>
  <link rel="alternate" type="text/html" href="http://www.jacek.cz/blog/archives/2008/10/new_photos/" />
  <link rel="replies" type="application/atom+xml" href="http://www.jacek.cz/blog/archives/000094-comments.xml" />
  <id>tag:www.jacek.cz,2008:/blog//1.94</id>
  
  <published>2008-10-28T13:08:18Z</published>
  <updated>2008-10-28T13:11:53Z</updated>
  
  <content type="html"><![CDATA[<p>Added the first <a href="http://flickr.com/photos/kopretinka/sets/72157608443253866/">batch of pictures from Thailand</a>. I'll be here until the end of December, so expect more.</p>]]>

</content>

  <author>
      <name>jacek</name>
      <uri>http://jacek.cz/</uri>
  </author>
        <category term="Photos" />
  
</entry>
<entry>
  <title>David Booth on RDF and SOA</title>
  <link rel="alternate" type="text/html" href="http://www.jacek.cz/blog/archives/2008/09/dbooth_on_rdf_soa/" />
  <link rel="replies" type="application/atom+xml" href="http://www.jacek.cz/blog/archives/000093-comments.xml" />
  <id>tag:www.jacek.cz,2008:/blog//1.93</id>
  
  <published>2008-09-04T23:03:09Z</published>
  <updated>2008-11-03T15:48:02Z</updated>
  
  <content type="html"><![CDATA[<p><a href="http://dbooth.org/">David Booth</a> of <a href="http://hp.com/">HP</a> has an article online called <a href="http://www.dbooth.org/2007/rdf-and-soa/rdf-and-soa-paper.htm">RDF and SOA</a>. Summary quoted (emphasis mine):</p>

<blockquote>
The following seem to be key principles for leveraging RDF-enabled services in an SOA.
<ul>
<li>Define interface contracts as though message content is RDF
<ul>
<li>Permit custom XML/other serializations as needed</li>
<li>Provide machine-processable mappings to RDF</li>
<li>Treat the RDF version as authoritative</li>
</ul></li>
<li><b>Each data producer supplies a validator for data it creates</b></li>
<li><b>Each data consumer supplies a validator for data it expects</b></li>
<li>Choose RDF granularity that makes sense</li>
</ul>
</blockquote>

<p>Apart from suggesting that RDF can be a good internal view on the data exchanged by Web services, with benefits especially in versioning, David suggests that validation has two faces - the producer should say how to validate that the data makes sense, and the consumer should say how to validate that the data is fit for the use by this particular consumer.</p>

<p>Further, David wonders about the mapping between XML and RDF - XSLT seems good enough for lifting from XML to RDF, and SPARQL seems to be a good start for transforming from RDF to XML. I can heartily suggest <a href="http://xsparql.deri.org">XSPARQL</a>, a fusion of XQuery and SPARQL, for both mapping directions, but especially for lowering. (I'm a minor coauthor of XSPARQL.)</p>]]>

</content>

  <author>
      <name>jacek</name>
      <uri>http://jacek.cz/</uri>
  </author>
        <category term="Links" />
        <category term="Work" />
  
</entry>
<entry>
  <title>Sessionless resources</title>
  <link rel="alternate" type="text/html" href="http://www.jacek.cz/blog/archives/2008/07/sessionless/" />
  <link rel="replies" type="application/atom+xml" href="http://www.jacek.cz/blog/archives/000092-comments.xml" />
  <id>tag:www.jacek.cz,2008:/blog//1.92</id>
  
  <published>2008-07-30T18:22:31Z</published>
  <updated>2008-11-03T15:48:58Z</updated>
  
  <content type="html"><![CDATA[<p>A part of REST is the "client-stateless-server" part, abbreviated as "stateless". RESTful interactions are stateless. But that does not mean the resources are stateless (as said in what looks to be an otherwise nice <a href="http://netzooid.com/presentations/Effective RESTful services.pdf">presentation</a> by Dan Diephouse, via <a href="http://www.innoq.com/blog/st/">Stefan Tilkov</a>). On the contrary, resources are an embodiment of state. They have state that can be manipulated. They should not do per-client sessions, that's what stateless means. There should be no state but resource state between two client requests.</p>

<p>Repeat after me: <b>Resources should be sessionless!</b></p>]]>

</content>

  <author>
      <name>jacek</name>
      <uri>http://jacek.cz/</uri>
  </author>
        <category term="Work" />
  
</entry>
<entry>
  <title>Added comment feeds</title>
  <link rel="alternate" type="text/html" href="http://www.jacek.cz/blog/archives/2008/07/added_comment_feed/" />
  <link rel="replies" type="application/atom+xml" href="http://www.jacek.cz/blog/archives/000091-comments.xml" />
  <id>tag:www.jacek.cz,2008:/blog//1.91</id>
  
  <published>2008-07-24T13:54:38Z</published>
  <updated>2008-11-04T05:02:41Z</updated>
  
  <content type="html"><![CDATA[<p>In a spur of enjoyable procrastination, I added atom feeds for <a href="/blog/comments.xml">recent comments</a> and for per-entry comments. Now a blog reader client can directly show the comments on each entry, and my readers, if interested in the comments (as I am on other blogs), can subscribe to them as well. Hope it helps. 8-)</p>]]>

</content>

  <author>
      <name>jacek</name>
      <uri>http://jacek.cz/</uri>
  </author>
        <category term="Personal" />
  
</entry>

</feed> 

