<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-486398466531826618</id><updated>2025-04-16T22:52:51.817+02:00</updated><category term="programming"/><category term="software"/><category term="open-source"/><category term="Java"/><category term="JavaScript"/><category term="web"/><category term="mozilla"/><category term="gss"/><category term="personal"/><category term="startups"/><category term="business"/><category term="GWT"/><category term="databases"/><category term="C++"/><category term="Greece"/><category term="Linux"/><category term="jobs"/><category term="FreeBSD"/><category term="Subversion"/><category term="VC"/><category term="WebDAV"/><category term="economy"/><category term="CVS"/><category term="FireStatus"/><category term="Mac"/><category term="copyright"/><category term="movies"/><title type='text'>Past Midnight</title><subtitle type='html'>...thoughts on people and software</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blog.astithas.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/486398466531826618/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://blog.astithas.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/486398466531826618/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>past</name><uri>http://www.blogger.com/profile/05077555675379961731</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>49</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-486398466531826618.post-5346400151702579489</id><published>2017-01-13T14:50:00.000+02:00</published><updated>2017-01-13T14:50:39.855+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="mozilla"/><category scheme="http://www.blogger.com/atom/ns#" term="software"/><category scheme="http://www.blogger.com/atom/ns#" term="web"/><title type='text'>Feeling safer online with Firefox</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #999999;&quot;&gt;The latest privacy and security improvements in Firefox&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #999999;&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: &amp;quot;arial&amp;quot;; font-size: 21.333333333333332px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 21.333333333333332px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;img height=&quot;340&quot; src=&quot;https://lh5.googleusercontent.com/EAbE5iFT4hkUbY-Z-C5DeTo9hQkQN_RX9aeMdt2ipPsCn6HcRehg7nn_PebrA_b_w4smS6X9qdOw_NfXi7ctXwh73K9vjjBuruIf3rexNFkZaebmf7a7kuMVDDJl-N8waqZvIhb-&quot; style=&quot;border: medium none; transform: rotate(0rad);&quot; width=&quot;640&quot; /&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;div style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;i&gt;[This post originally appeared on &lt;a href=&quot;https://medium.com/@pastith/feeling-safer-online-with-firefox-b9fe13af6600&quot;&gt;Medium&lt;/a&gt;]&lt;/i&gt;&lt;/div&gt;
&lt;h2 id=&quot;docs-internal-guid-75a7c2a1-9791-aa37-ea90-622cc86c1512&quot; style=&quot;line-height: 1.38; margin-bottom: 6pt; margin-top: 18pt; text-align: left;&quot;&gt;
&lt;/h2&gt;
Firefox is the &lt;i&gt;only browser&lt;/i&gt; that answers &lt;i&gt;only to you&lt;/i&gt;, our users; so all of us who work on Firefox spend a lot of effort making your browsing experience more private and secure. We update Firefox every 6 weeks, and every new change ships to you as fast as we can make and verify it. For a few releases now, we have been landing bits and pieces of a broader set of privacy and security changes. This post will outline the big picture of all these changes.&lt;br /&gt;&lt;h3&gt;
 Site Identity and Permissions Panel&lt;/h3&gt;
The main project involved improvements to the way Firefox handles permission requests from sites that want to do things that the web platform doesn&#39;t allow by default - like accessing your laptop&#39;s camera or GPS sensor. To find out how our existing model fares, we ran it through a number of &lt;a href=&quot;https://medium.com/firefox-ux/user-study-new-privacy-permissions-panel-223e61cc7545&quot;&gt;user studies&lt;/a&gt; and gathered feedback from users and web developers alike.&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;img alt=&quot;old-prompt.png&quot; height=&quot;208&quot; src=&quot;https://lh3.googleusercontent.com/1dCWUYHVyQPqdriYtIUCLr22jSYOIQUaV7FzX-8FTtTDudD8qEGpl4N4B4CS8Jh3qHWymdmH_WyCje4GFj25JPJDlN0bcW9oxnn2fnf-nBka0FKMvMO6DWPUiBJhIovSoXyusqbY&quot; style=&quot;border: medium none; transform: rotate(0rad);&quot; width=&quot;353&quot; /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
What we found was clear: users were having trouble making full use of web permissions. Here are some of the observations: &lt;br /&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;It’s easy by design to dismiss a permission prompt, to prevent websites from nagging you. But it’s not so obvious how to get back to an inadvertently dismissed prompt, which users found confusing.&lt;/li&gt;
&lt;li&gt;Managing the permissions of an individual site was hard, due to the multitude of presented options.&lt;/li&gt;
&lt;li&gt;It was cumbersome to grant access to screen sharing. This was because it was difficult to select which area of the screen would be shared and because screen sharing was only permitted on websites included in a manually curated list. &lt;/li&gt;
&lt;/ul&gt;
In order for the open web platform to be on par with the capabilities of native, closed platforms, we needed to fix these issues. So we first focused on putting all privacy and security related information in one place. We call it the Site Identity and Permissions Panel, or more affectionately, the Control Center™.&lt;br /&gt;&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;img alt=&quot;control-center.png&quot; height=&quot;204&quot; src=&quot;https://lh6.googleusercontent.com/1rYXwXQxVscFJTdXMxf3-kCBYfNjWGSaEBpzob9zybt2E-EMS0_VXzxW2yE4PxVbI-pm55xiD-AWqJ_xCz06D70hj7L9dXG4SiA-Z-mOaLYfd-NqPfOp2kZ3KEPHBxD7NjfRhXih&quot; style=&quot;-webkit-transform: rotate(0.00rad); border: none; transform: rotate(0.00rad);&quot; width=&quot;321&quot; /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
The Site Identity panel appears when you click on the circled “i” icon – “i” for “information” – on the left side of the &lt;a href=&quot;https://support.mozilla.org/en-US/kb/awesome-bar-search-firefox-bookmarks-history-tabs&quot;&gt;Awesome Bar&lt;/a&gt;. The panel is designed to be the one-stop shop for all security and privacy information specific to the site you’re on. This includes encrypted connections certificate, mixed content warning messages, tracking protection status, as well as non-default permissions. We were happy to see Chrome adopt a similar UI, too.&lt;br /&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;
 Elevated Privileges for Non-Default Permissions&lt;/h3&gt;
By default, web sites need an elevated level of privilege to access your computer hardware like camera, microphone, GPS or other sensors. When a site requests such a permission and the user grants it, the Site Identity panel will display the allowed item along with an &quot;x&quot; button to revert it. In the case of particularly privacy-sensitive permissions, like microphone or camera access, the icon will have a red hue and a gentle animation to draw attention.&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;img height=&quot;25&quot; src=&quot;https://lh5.googleusercontent.com/SxV2polsb2lmuQ8llUk5eyJg15gEaNcsWuw2JWBicPwK_Tb7_JyY1PXFxsVJa-UfVv9Tk37mnh0ByxlDVQmDLHlEqkj3Z7SYHdw1JIKCys_r3GlxWu8NDuUGGwTlQVdktD7Ta6JB&quot; style=&quot;border: medium none; transform: rotate(0rad);&quot; width=&quot;330&quot; /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
When a site has been granted elevated privileges, the &quot;i&quot; icon in the URL bar is badged with a dot that indicates the additional information present in the Site Identity panel. This lets you assess the security properties of your current session with a quick glance at the awesomebar, where the &quot;i&quot; and lock icons are displayed together.&lt;br /&gt;
&lt;br /&gt;&lt;img src=&quot;https://lh4.googleusercontent.com/WCj6AxZwKEuR67giTUOuXA4kEgs_Pm6viCzqXUQcyM5Q9iiKt6jm8pFY6l9WFl2fRVcIefrBBNac5m8tVquFKh31HnJsuiPAYYbtsR0Edj39y2JdQhu8R2LwtWqvGx9qTFVQzG85&quot; /&gt;&lt;br /&gt;&lt;br /&gt;Users who want even more fine-grained control over all available permissions can go to the Permissions tab in the Page Info dialog (right arrow in the Identity panel -&amp;gt; More Information).&lt;br /&gt;&lt;div style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;img height=&quot;259&quot; src=&quot;https://lh4.googleusercontent.com/Af_Is5a8YJqsdiIULyKeWhFsxfnfOOYPPDbTwFDylbbuSGf6QtbPwCVnDFfItj0evkRLY7uF6o_Fqrzl4qAcwaIUHm1ATFpooVyyuTNokvK8x-Lqa6M0RP16Z0DPRn_uNAZfnw7s&quot; style=&quot;border: medium none; transform: rotate(0rad);&quot; width=&quot;624&quot; /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
Permission Prompt and Dialog&lt;/h3&gt;
Permission dialogs are now more consistent than before, both in terms of available actions and messaging.&lt;br /&gt;
&lt;br /&gt;When a site asks for a permission, a permission prompt appears with a message and iconography specific to the type of permission being requested and the available actions. Most of the time, there will only be two: allow or don’t allow access. The default action will stand out in a blue highlight, making the common action easier to perform.&lt;br /&gt;&lt;br /&gt;
&lt;div style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;img height=&quot;158&quot; src=&quot;https://lh5.googleusercontent.com/O7ERRk-p3ZsA1xseuF47EEzGaZh9M8mPzF6TbV8gQh8o5oWvJH4S_QXzDc1RJgKo9AAGUMnTIqu82w2VtvA-M45-SIHnjmbLFyxr_XT04J_5QkaGjNTzNceVKfEHb-BeqgMSmiyl&quot; style=&quot;-webkit-transform: rotate(0.00rad); border: none; transform: rotate(0.00rad);&quot; width=&quot;289&quot; /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
In the few cases of permission prompts with more than two actions, a drop-down menu will appear next to the secondary action button.&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;img height=&quot;192&quot; src=&quot;https://lh3.googleusercontent.com/erCuIC8nGS48CzbFmM4UzJoF0ngPPYwZWcSwCnVe61V0jIqRwS0f8WfwEiOp3hSL7JJULveHcfw8Pth4rDjcGCYhHrekcOgm3R9k36s_fnL-x2GRFMr_mbXg6hcHmImUvWDSoTjP&quot; style=&quot;-webkit-transform: rotate(0.00rad); border: none; transform: rotate(0.00rad);&quot; width=&quot;288&quot; /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
Permanently allowing or rejecting a permission for a site is done by checking the always present &quot;Remember this decision&quot; option.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;img height=&quot;101&quot; src=&quot;https://lh4.googleusercontent.com/iqL4xv1z7RxKSWU-LphCe-2l2nITyXHGAS7kU8jz3PjgVMADEtsaCwUuIPRXmiiIwsLAK1u04GqxvoQNwbBjU2sNoCOyxxW1uTnKJoyWQLXuU3fLvLZlqhXT9EsLvkD_sU7QJriT&quot; style=&quot;-webkit-transform: rotate(0.00rad); border: none; transform: rotate(0.00rad);&quot; width=&quot;205&quot; /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
We have received a lot of feedback about how these prompts are easy to dismiss and how users often couldn&#39;t figure out how to bring them back. In the new design, permission prompts stay up even when you interact with the page. You can of course ignore it and continue to use the page normally. But thanks to the persistence of the prompt, it’s now easier to associate site misbehavior – webcams that don’t work, locations that won’t display – with an allow/don’t allow button that needs your response.&lt;br /&gt;&lt;br /&gt;Furthermore, disallowed permission requests are now displayed as strikethrough icons in the Awesome Bar to hint at the potential cause of site breakage. For example a video conferencing site will probably not be functioning very well if you reject its camera permission request. So the crossed-out camera icon will remain afterwards, next to the &quot;i&quot; icon, to remind you of that fact.&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;img height=&quot;30&quot; src=&quot;https://lh6.googleusercontent.com/W-PtkhSPvUn0EJqHRYOzlrtzUMYGXk8Wkx2jHKxTWvHhm_wawZarZBI-Ipqif897l3Ahs-i3OBJ4MTQQCu2mrXWPZI8J42OKUVMEEpF510qWEYc_7QNJ59BqjE9SigFpXpQjUTD8&quot; style=&quot;-webkit-transform: rotate(0.00rad); border: none; transform: rotate(0.00rad);&quot; width=&quot;99&quot; /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
Going to a different tab will hide the prompt (because it’s specific to the site you have open on each tab), but when the prior tab is selected again, the prompt will reappear.&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;img height=&quot;260&quot; src=&quot;https://lh3.googleusercontent.com/mw8EY2vRlRh2TpZT63jP2y5yg74z17OCntqul5HArpkmN1Jg_RY4sYbpd89nVQp3zQFxSNrd8ofXAoDw0qqXgz5LIijF8Mqn6uZuYEnkULHC8caBb3GXPLtWWpQ0wX9KOw2R5Cd-&quot; style=&quot;-webkit-transform: rotate(0.00rad); border: none; transform: rotate(0.00rad);&quot; width=&quot;540&quot; /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
Audio, Video and Screen Sharing Permissions&lt;/h3&gt;
WebRTC-related permissions have even more new changes.&lt;br /&gt;&lt;br /&gt;For starters, screen sharing now doesn&#39;t require sites to be added to a separate whitelist. This means that all sites can now use WebRTC screen sharing in Firefox.&lt;br /&gt;&lt;br /&gt;Also, screen sharing now includes a preview of the content that will be shared to make it easier to identify the right screen, application or window to share.&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;img height=&quot;202&quot; src=&quot;https://lh5.googleusercontent.com/lGDPJVxeAxYAWCSGujB7jmCoO7LXJU19Rh2Y2bhaqKdJSj5sqfWaDkx9UNjFsP5d7m6phfkfMun5oMbkVuDj-vTKT1ExyfVs0k0clJr7xvrMS41UK5ZIL6rvRhUDqIOccyoYV5v_&quot; style=&quot;-webkit-transform: rotate(0.00rad); border: none; transform: rotate(0.00rad);&quot; width=&quot;349&quot; /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
In the riskiest of cases, &lt;a href=&quot;https://blog.mozilla.org/webrtc/share-browser-windows-entire-screen-sites-trust/&quot;&gt;such as sharing the entire screen or sharing the Firefox application&lt;/a&gt;, a scary warning message is displayed to ensure you know what you are about to do.&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;img alt=&quot;screen-sharing.png&quot; height=&quot;366&quot; src=&quot;https://lh5.googleusercontent.com/WFkIQLWH9N9uLqNx6oszo_xTCbW1oTJDGJJHCvzuSEm1aTSfnL-BY3u3CQVEqPEpDCWsaod8ObliVkstN1rrOCyDEL1fjEG8dCDeQs8OavQ-W3W5fY2tttEyGYYEcTHoaaYndto_&quot; style=&quot;-webkit-transform: rotate(0.00rad); border: none; transform: rotate(0.00rad);&quot; width=&quot;359&quot; /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;Moreover, when you have granted a video conferencing site access to both your camera and microphone, reverting the permission grant for one permission will also revert it for the other. This will help you avoid accidentally leaking your private data.&lt;br /&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;
 Add-on Panel Improvements&lt;/h3&gt;
While working on these security improvements we fixed some &lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=1206133&quot;&gt;old&lt;/a&gt; &lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=1210328&quot;&gt;platform&lt;/a&gt; &lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=1320341&quot;&gt;panel&lt;/a&gt; &lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=1109868&quot;&gt;bugs&lt;/a&gt; that used to affect all kinds of panels, including those created by add-ons. Therefore if you are using an add-on that displays popup panels you should have an improved experience even if the panels are not related to permission prompts.&lt;br /&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;
 Error Pages&lt;/h3&gt;
And finally, error pages also received some new smarts.&lt;br /&gt;&lt;br /&gt;The &lt;a href=&quot;https://docs.google.com/presentation/d/1Qmpl-5epx0B5C2t4XsUTyjgbwab_rXfK_4iHqX3IC30/pub?start=false&amp;amp;loop=false&amp;amp;delayms=3000#slide=id.gf44795496_0_75&quot;&gt;most common cause&lt;/a&gt; for secure connection errors turns out to be user systems having the wrong time. Firefox will now detect when your clock seems way off and will suggest in the error message how to fix it.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;img height=&quot;360&quot; src=&quot;https://lh4.googleusercontent.com/XDAsI1pw4tBiEV-9fPzaebKMhxUZZqcuMXKkCyr1okGcXlSZhupPY4TApXJ7887n2qgaBmZ5yEyx7SztX9L_ZmjOuTz-iDocyNJDaJGnrRO3up348ik2RAm74hn2cZexJzW9uZrP&quot; style=&quot;-webkit-transform: rotate(0.00rad); border: none; transform: rotate(0.00rad);&quot; width=&quot;624&quot; /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;&lt;a href=&quot;https://docs.google.com/presentation/d/1Qmpl-5epx0B5C2t4XsUTyjgbwab_rXfK_4iHqX3IC30/pub?start=false&amp;amp;loop=false&amp;amp;delayms=3000#slide=id.gf44795496_0_70&quot;&gt;Another common cause&lt;/a&gt; for broken connections is the presence of a captive portal. Firefox will now detect that case and prompt you to log in the captive portal. Even though some operating systems have built-in support for detecting captive portals, if you regularly use social network accounts to log in, the experience with Firefox will be smoother. This change is now in Nightly and Developer Edition versions and should ship soon in the stable release.&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt; text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: &amp;quot;arial&amp;quot;; font-size: 14.666666666666666px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;img height=&quot;367&quot; src=&quot;https://lh6.googleusercontent.com/0azzvzGlk9HX1k4tmAHplzwzqmwJRqSdxCrbBjuKB96pWInAedDrLthX7dxi7rcj7oY8fyuqEAbNKfEYKIXz_v03D6TBjnNhjvIKjtmEBjA4ADqeuwbTJ1zgIZIupUwvN7fakEjY&quot; style=&quot;-webkit-transform: rotate(0.00rad); border: none; transform: rotate(0.00rad);&quot; width=&quot;624&quot; /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;Looking back at what we managed to accomplish in the last few months makes me proud to work with this fabulous team of talented and passionate engineers, designers, user researchers, QA engineers, product and project managers. But of course we are far from being done with privacy and security improvements for our users. Stay tuned for more exciting Firefox privacy and security updates in 2017!&lt;br /&gt;&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;i&gt;[Many thanks to Bram Pitoyo, Nihanth
 Subramanya, Tanvi Vyas, Peter Dolanjski, Florian Quèze, and Johann 
Hofmann for reviewing drafts of this post.]&lt;/i&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://blog.astithas.com/feeds/5346400151702579489/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/486398466531826618/5346400151702579489' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/486398466531826618/posts/default/5346400151702579489'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/486398466531826618/posts/default/5346400151702579489'/><link rel='alternate' type='text/html' href='http://blog.astithas.com/2017/01/feeling-safer-online-with-firefox.html' title='Feeling safer online with Firefox'/><author><name>past</name><uri>http://www.blogger.com/profile/05077555675379961731</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://lh5.googleusercontent.com/EAbE5iFT4hkUbY-Z-C5DeTo9hQkQN_RX9aeMdt2ipPsCn6HcRehg7nn_PebrA_b_w4smS6X9qdOw_NfXi7ctXwh73K9vjjBuruIf3rexNFkZaebmf7a7kuMVDDJl-N8waqZvIhb-=s72-c" height="72" width="72"/><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-486398466531826618.post-1976339770990273906</id><published>2014-12-30T18:14:00.000+02:00</published><updated>2014-12-30T18:14:08.256+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="JavaScript"/><category scheme="http://www.blogger.com/atom/ns#" term="mozilla"/><category scheme="http://www.blogger.com/atom/ns#" term="programming"/><category scheme="http://www.blogger.com/atom/ns#" term="web"/><title type='text'>Valence roadmap</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
A few days ago I &lt;a href=&quot;https://groups.google.com/d/msg/mozilla.dev.developer-tools/LsRLqIwm2MA/Hd5EVSC9R7YJ&quot;&gt;sent the following note&lt;/a&gt; to the &lt;a href=&quot;https://lists.mozilla.org/listinfo/dev-developer-tools&quot;&gt;Firefox devtools mailing list&lt;/a&gt;. The point was to start a discussion about where we want to take &lt;a href=&quot;https://github.com/campd/fxdt-adapters&quot;&gt;Valence&lt;/a&gt; (née Firefox Developer Tools Adapter) in 2015. I am reproducing the message below in an effort to broaden the audience, but I would encourage anyone who wants to participate in the discussion to post to the mailing list. However, if that sounds too intimidating (it really shouldn&#39;t!), I&#39;m always happy to respond to comments in this blog.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hey fellow devtoolers!&lt;br /&gt;
&lt;br /&gt;
I know that eggnog and Christmas trees is all that everyone is thinking about right now, but I&#39;d like to take a minute before we all indulge in our holiday festivities, to talk about Valence. And 2015.&lt;br /&gt;
&lt;br /&gt;
2015 will be the year when Valence becomes something more than a promising experiment. It is the year that will (hopefully) see a version 1.0 that has feature-parity with Firefox, for features where the Safari/Chrome debugging protocol aligns well with the Firefox RDP. This is a proposed roadmap of how we&#39;ll get there from where we are now.&lt;br /&gt;
&lt;br /&gt;
There are two main themes in this roadmap: do more and do better, and I think we should address them in reverse order. Do-things-better contains what I think we need for cutting a 1.0 release:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Improve existing features (do better)&lt;/b&gt;&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Get the bundled ios_webkit_debug_proxy working on Windows &amp;amp; Linux&lt;/li&gt;
&lt;li&gt;Implement support for the network panel&lt;/li&gt;
&lt;li&gt;Handle format specifiers in console.log and friends (%s, %c, etc.)&lt;/li&gt;
&lt;li&gt;Display inferred names for functions&lt;/li&gt;
&lt;li&gt;Evaluate expressions in the selected frame when execution is paused&lt;/li&gt;
&lt;li&gt;Support source-mapped CSS&lt;/li&gt;
&lt;li&gt;Break on DOM events&lt;/li&gt;
&lt;li&gt;Fix some longstring-related bugs that we currently work around by using plain strings&lt;/li&gt;
&lt;li&gt;Fix every XXX and TODO comment in the code&lt;/li&gt;
&lt;li&gt;Implement every todoMethod in the actors&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
Most of these tasks have a well understood scope, so it is just a &quot;small&quot; matter of time and available resources. However, another angle on the do-better theme is not to just fix known problems, but also to make them stay fixed and provide a reliable experience to the user. These tasks belong in that category and should probably be done in parallel with the above:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Improve reliability (do better for realz)&lt;/b&gt;&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Deploy some testing infrastructure (probably based on ted&#39;s work)&lt;/li&gt;
&lt;li&gt;Port existing Firefox devtools tests and/or write new ones&lt;/li&gt;
&lt;li&gt;Fix stability bugs in Valence&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
I believe the above lists should be enough for a v1.0, but there are many more things we could do to provide value to our users. Here are some obvious features we could add for a v2.0:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Expand our feature set (do more)&lt;/b&gt;&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Support for the performance panel (profiler and timeline)&lt;/li&gt;
&lt;li&gt;Support for the storage panel&lt;/li&gt;
&lt;li&gt;Support for the canvas debugger&lt;/li&gt;
&lt;li&gt;Support for debugging embedded web views on iOS and Android, which would let us become a sort of unofficial development environment for Cordova/PhoneGap&lt;/li&gt;
&lt;li&gt;Support Firefox Developer Tools in the pipeline (memory profiler, worker debugger)&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
Not all of these tasks have been scoped or had a feasibility assessment, but there are some indications that we should be able to pull them off with some effort. These features would make the value proposition of Valence and (Firefox Developer Edition by extension) really enticing for many more developers.&lt;br /&gt;
&lt;br /&gt;
But when you have all this, why stop there? The adaptability of Firefox Developer Tools that Valence affords can take us to a whole new level of debugging functionality that developers have always dreamed of:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Full-stack debugging (do way more)&lt;/b&gt;&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Support debugging server-side node.js applications, with console, scratchpad, debugger and profiler&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;(Adding async stack support in Firefox Developer Tools would let us combine server- and client-side stack traces for debugging ecstasy)&lt;/li&gt;
&lt;/ul&gt;
&lt;li&gt;Research the framework ecosystems of languages that compile to JS and can run on node.js and assess the feasibility of supporting them directly via source maps&lt;/li&gt;
&lt;li&gt;Implement adapters for JDWP (to debug Java) and Xdebug (to debug PHP)&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
Only some preliminary research has gone into these tasks, so their feasibility and effort required is still TBD. Most of the above are further out from a priority standpoint and some may well be in the pie-in-the-sky domain, but I think we should at least investigate node.js debugging in 2015. It would be an exciting engineering accomplishment and could provide a concrete value proposition for Valence and Firefox Developer Edition.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Prioritized shortlist&lt;/b&gt;&lt;br /&gt;
Given all of the above, and taking difficulty and usefulness into account, I think a reasonable, prioritized, shortlist of Valence tasks for 2015 would be the following:&lt;br /&gt;
&lt;br /&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Get the bundled ios_webkit_debug_proxy working on Windows &amp;amp; Linux&lt;/li&gt;
&lt;li&gt;Display inferred names for functions&lt;/li&gt;
&lt;li&gt;Implement support for the network panel&lt;/li&gt;
&lt;li&gt;Fix stability bugs in Valence&lt;/li&gt;
&lt;li&gt;Deploy some testing infrastructure&lt;/li&gt;
&lt;li&gt;Port existing Firefox devtools tests and/or write new ones&lt;/li&gt;
&lt;li&gt;Support debugging server-side node.js applications&lt;/li&gt;
&lt;li&gt;Support for debugging embedded web views on iOS and Android&lt;/li&gt;
&lt;li&gt;Handle format specifiers in console.log and friends (%s, %c, etc.)&lt;/li&gt;
&lt;li&gt;Evaluate expressions in the selected frame when execution is paused&lt;/li&gt;
&lt;li&gt;Support source-mapped CSS&lt;/li&gt;
&lt;li&gt;Break on DOM events&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
Of course, depending on broader organizational priorities, this list may be too short or not much of a shortlist, for an entire year. Not to mention that planning that far ahead is usually futile and an exercise in frustration. Still, this should hopefully provide a useful base for a discussion about what we want Valence to be and how we want to go about it.&lt;br /&gt;
&lt;br /&gt;
Any and all feedback is welcome (before or while you enjoy your eggnog)!&lt;br /&gt;
&lt;br /&gt;
Cheers,&lt;br /&gt;
Panos&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://blog.astithas.com/feeds/1976339770990273906/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/486398466531826618/1976339770990273906' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/486398466531826618/posts/default/1976339770990273906'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/486398466531826618/posts/default/1976339770990273906'/><link rel='alternate' type='text/html' href='http://blog.astithas.com/2014/12/valence-roadmap.html' title='Valence roadmap'/><author><name>past</name><uri>http://www.blogger.com/profile/05077555675379961731</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-486398466531826618.post-4873446166519779586</id><published>2014-04-28T13:39:00.000+02:00</published><updated>2014-04-29T08:59:27.940+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="mozilla"/><category scheme="http://www.blogger.com/atom/ns#" term="personal"/><title type='text'>My 3 year mozversary</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
A couple of days ago I started my 4th year at Mozilla and as with all anniversaries, it was a good opportunity to step back and reflect on my accomplishments during this past year and where I&#39;m going next. And since Mozilla practices complete transparency, it also seemed like a good opportunity to sit down and write a blog post, as I never seem to get enough time nowadays to do so. Besides, what&#39;s the point of having a blog if not for embarrassing yourself every once in a while?&lt;br /&gt;
&lt;br /&gt;
For a year with 4 different CEOs, the first thought that came to mind regarding my performance was: &quot;a bunch of code, a ton of reviews&quot;. I didn&#39;t know if that was actually true though, so I set out to collect some evidence. All the code metrics I&#39;ve come across must always be taken with a grain of salt, so I didn&#39;t worry about being completely accurate and I don&#39;t intend to gauge my progress on these metrics alone, but at least I wanted &lt;i&gt;some&lt;/i&gt; quantification of the kind of impact that I had. Besides refactoring and bug fixing, my most useful feature work in this
 period includes break on DOM events, closure inspection, the memory 
actor and improved debugger behavior after a reload (edit: forgot to add the &lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=929349&quot;&gt;tracing debugger&lt;/a&gt; and &lt;a href=&quot;http://fitzgeraldnick.com/weblog/52/&quot;&gt;function re-evaluation&lt;/a&gt; in Scratchpad).&lt;br /&gt;
&lt;br /&gt;
The first interesting observation [1] is that I landed 63 patches last year, down from 139 the previous year, which was way bigger than the 56 patches the year before. This was somewhat disappointing and I believe that partly it was due to the initial debugger landing the year before and general work on an immature code base at that time, which made progress much easier to happen in small chunks. I find that&amp;nbsp; I don&#39;t usually land separate patches for the same bug, so at least the number of commits is closer to the number of distinct bug reports or new features, than just individual code changes. Another reason for the decrease is that I spend significant time prototyping &lt;a href=&quot;https://github.com/past/memory-profiler&quot;&gt;things&lt;/a&gt; that haven&#39;t landed yet, like the &lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=923275&quot;&gt;memory&lt;/a&gt; and &lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=975675&quot;&gt;performance widgets&lt;/a&gt;. Also, lately I find myself diving into SpiderMonkey and Gecko work for our upcoming memory and performance tools, and my lack of experience there slows me down considerably. Nevertheless, this is something that bothers me and I intend to improve upon this year.&lt;br /&gt;
&lt;br /&gt;
The second observation [2] is that I&#39;m doing more reviews as time passes, which is to be expected I guess. Last year I did 240 reviews, compared to 220 reviews the year before and 25 reviews in my first year. Obviously those who are around longer get to do more reviews than those who are new to the project, but what I mostly find interesting about this is that I get to do approximately one review per working day. Since I&#39;m counting these from commit messages, they don&#39;t take into account the back-and-forth between the patch author and reviewer while shaping up the patch. I counted 372 review requests in my email during the past year (not including feedback or needinfo requests), so I seem to be giving reviews or feedback more like twice a day, every day. This must have contributed in part to the diminished number of patches that I landed myself, but on the flip side I get more visibility in incoming changes and can be more up to speed on my own work, which should decrease the turnaround for reviews on my patches. In addition to that, when I&#39;m doing a review I&#39;m looking at the patch from many different angles (from code correctness and code style issues, to API clarity and architectural direction) and that gives me insights into how our architecture should evolve, which in turn results in more followup work (incidentally, I&#39;ve filed precisely 100 bugs last year).&lt;br /&gt;
&lt;br /&gt;
Another very important realization is that even if I had spent exactly zero time reviewing other people&#39;s work, it would have been very unlikely that I could have managed to land all those 303 patches myself (240 plus 63 of my own). Which is another way to say that we all make a bigger impact by enabling others to do better work, than by strictly fine-tuning our own work output. This is particularly important for achieving a high bus factor for the project, but it is also a necessary ingredient if we want to nurture a community of contributors that will keep the project successful in the years to come. I find this sufficiently important and motivating that I don&#39;t plan to be doing less reviews, just try to invest my time more efficiently. We&#39;ll see how that goes.&lt;br /&gt;
&lt;br /&gt;
Speaking of nurturing new contributors, I saw in a relevant &lt;a href=&quot;http://www.joshmatthews.net/mentorwatch/&quot;&gt;dashboard&lt;/a&gt; that I mentored 8 bugs from 6 new contributors. I&#39;m not sure about the time period of that data, but I&#39;ve only heard about this dashboard recently, so I assume it should be relevant to this post. Clearly I need to do better in that department.&lt;br /&gt;
&lt;br /&gt;
This past year I&#39;ve also invested more time in &lt;a href=&quot;http://www.infoq.com/presentations/web-front-end-debugging&quot;&gt;giving&lt;/a&gt; &lt;a href=&quot;http://www.infoq.com/interviews/Mozilla-Software-Engineer-Debugging-Tools&quot;&gt;public&lt;/a&gt; &lt;a href=&quot;https://www.youtube.com/watch?v=nXREfRtSr3o&quot;&gt;talks&lt;/a&gt; and helping with the Firefox OS &lt;a href=&quot;http://www.appdaysathens2013.gr/en/&quot;&gt;launch&lt;/a&gt; in Greece. The social aspect was extremely rewarding and I&#39;ve met a ton of great people, so I&#39;d like to do more of that. Not sure how I could combine this with increased code productivity though.&lt;br /&gt;
&lt;br /&gt;
All in all I feel it was a good year and I can&#39;t wait to see what the future holds. Onwards!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[1]: I used this command to count my patches (omitting the wc invocation allowed me to inspect the commit messages):&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;hg log -u past@mozilla.com -d &quot;2013-04-26 to 2014-04-25&quot; --template &#39;{date|isodatesec} : {desc|strip|firstline}\n&#39;|wc -l&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
[2]:I used the following command to count my reviews. Clearly searching for the right strings is a work of art:&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;hg log -d &quot;2013-04-26 to 2014-04-25&quot; -k &quot;,past&quot; -k &quot;r=past&quot; -k &quot;r=panos&quot;
 -k &quot;,panos&quot; -k &quot;r=pastithas&quot; -k &quot;,pastithas&quot; --template 
&#39;{date|isodatesec} : {desc|strip|firstline}\n&#39;|wc -l&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://blog.astithas.com/feeds/4873446166519779586/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/486398466531826618/4873446166519779586' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/486398466531826618/posts/default/4873446166519779586'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/486398466531826618/posts/default/4873446166519779586'/><link rel='alternate' type='text/html' href='http://blog.astithas.com/2014/04/my-3-year-mozversary.html' title='My 3 year mozversary'/><author><name>past</name><uri>http://www.blogger.com/profile/05077555675379961731</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-486398466531826618.post-7240860963675159001</id><published>2012-11-06T17:39:00.001+02:00</published><updated>2012-11-06T17:42:53.135+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="JavaScript"/><category scheme="http://www.blogger.com/atom/ns#" term="mozilla"/><category scheme="http://www.blogger.com/atom/ns#" term="open-source"/><category scheme="http://www.blogger.com/atom/ns#" term="programming"/><category scheme="http://www.blogger.com/atom/ns#" term="web"/><title type='text'>JavaScript debugging updates</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
There have been a lot of interesting developments in the JavaScript debugging front since my &lt;a href=&quot;http://blog.astithas.com/2012/10/debugging-firefox-os.html&quot;&gt;last update&lt;/a&gt;, so let me give you a brief overview of the most important changes.&lt;br /&gt;
&lt;br /&gt;
Let&#39;s begin with the eagerly awaited Firefox OS. Starting the debugger in Firefox OS has gotten way easier. There is a toggle in the settings app that will set or reset the &lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;devtools.debugger.remote-enabled&lt;/span&gt; pref, so that you don&#39;t have to &lt;a href=&quot;http://blog.astithas.com/2012/10/debugging-firefox-os.html&quot;&gt;mess with files and adb at all&lt;/a&gt;. At least for production builds that have marionette disabled by default. Developer builds will have to keep disabling marionette for a bit longer. You can find the Remote Debugging toggle in Settings -&amp;gt; Device Information -&amp;gt; More Information -&amp;gt; Developer. Note that you will have to reboot the device (or restart the b2g process) for the change to have effect. Also, as you can see in the screenshot, it&#39;s a good idea to disable out-of-process support while debugging, at least &lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=797627&quot;&gt;until the debugger can support it&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3iSUvx6rjlqchgX-aLlFQ8H26ZKaIWrp2SV7xjVIGjxx-iAm-W7qDBLTkHQG-wzQJ2Czq2rWR2nBk1nHworL6ytwwNnThHQ8NTJJUQiuIy0O73FMwhTPXHmcpMLPfC6TNVb624pBNrEIm/s1600/b2g-prefs.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;Firefox OS settings&quot; border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3iSUvx6rjlqchgX-aLlFQ8H26ZKaIWrp2SV7xjVIGjxx-iAm-W7qDBLTkHQG-wzQJ2Czq2rWR2nBk1nHworL6ytwwNnThHQ8NTJJUQiuIy0O73FMwhTPXHmcpMLPfC6TNVb624pBNrEIm/s1600/b2g-prefs.png&quot; title=&quot;Firefox OS settings&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
Firefox OS settings&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
While we are on the subject of debugging JavaScript on mobile, I shouldn&#39;t neglect to mention that &lt;a href=&quot;http://www.robodesign.ro/mihai/blog&quot;&gt;Mihai Sucan&lt;/a&gt; has landed &lt;a href=&quot;http://starkravingfinkle.org/blog/2012/10/firefox-for-android-remote-web-console-is-here/&quot;&gt;web console support for Firefox OS and Firefox for Android&lt;/a&gt;. There are still a few rough edges, particularly in the case of Firefox OS, but now you can connect your desktop Firefox to your mobile device and see the errors and logged messages, as well as evaluate JS code in the context of the mobile page.&lt;br /&gt;
&lt;br /&gt;
Speaking of desktop Firefox, the amazing &lt;a href=&quot;https://twitter.com/victorporof/&quot;&gt;Victor Porof&lt;/a&gt; has landed an obscene number of patches in the last few weeks, with many fixes and tweaks for the debugger frontend. Of those I&#39;d like to highlight the new functionality to search for variables in the current scope chain while the debugger is paused. Prepend your search with a star to search in the variables view. When you deal with large objects with long scope chains, finding the variable you are looking for can be like searching for a needle in a haystack. Now it&#39;s a piece of cake.&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVHQLSj_Yedvh5Sb6dDco0FF-uw-JJBn_shA3z-Pq1myDdmW3NtmgE8Qaus8a6fJDWc2whINlYDP5se3DRPnV8nLc-5vS8LCw2Zq2bHogKAXgxr-baClm6v1a_SQ-Ajnkf-KEvX8IlArnO/s1600/varsearch.png&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;Searching for variables&quot; border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVHQLSj_Yedvh5Sb6dDco0FF-uw-JJBn_shA3z-Pq1myDdmW3NtmgE8Qaus8a6fJDWc2whINlYDP5se3DRPnV8nLc-5vS8LCw2Zq2bHogKAXgxr-baClm6v1a_SQ-Ajnkf-KEvX8IlArnO/s1600/varsearch.png&quot; title=&quot;Searching for variables&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Searching for variables&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
And last, but certainly not least, &lt;a href=&quot;http://blog.astithas.com/2012/10/debugging-firefox.html&quot;&gt;chrome debugging&lt;/a&gt; support has appeared in Nightly this past weekend! This will make debugging add-ons or Firefox itself way easier than ever before. You will need to enable remote debuging (&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;devtools.debugger.remote-enabled&lt;/span&gt;) and browser chrome debugging as well (&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;devtools.chrome.enabled&lt;/span&gt;, the same pref you switch to get Scratchpad to run against chrome).&lt;br /&gt;
&lt;br /&gt;
&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjk7amTcUJD6FxZDrZVWLfTp7_t8pr_MnURTp14UDA_26j2g7hMH9n01oywf0M29r_3cIiSbSS7BzyDJ_z64b8pKO_uwUOo1up2S8yTg_wshzSs3HGcbYR8KQhiWfkD3K_shhNhn8fY4oTB/s1600/prefs.png&quot; style=&quot;clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;Chrome debugging preferences&quot; border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjk7amTcUJD6FxZDrZVWLfTp7_t8pr_MnURTp14UDA_26j2g7hMH9n01oywf0M29r_3cIiSbSS7BzyDJ_z64b8pKO_uwUOo1up2S8yTg_wshzSs3HGcbYR8KQhiWfkD3K_shhNhn8fY4oTB/s1600/prefs.png&quot; title=&quot;Chrome debugging preferences&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Chrome debugging preferences&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
This will get you a nice new Browser Debugger menu item in the Web Developer menu, which launches a separate debugger process to inspect your browser instance.&lt;br /&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYOmgD3OSrKEZa6l5vmUPSqi15ymguKyNizO9RA-_xj10x2DnJJPz7EfPdZAfwFXYJ4Dv3gBeBwfGVr8IOFN99mkubYw7iwlFIVdUFg0kS16uZbCNgfX9bhcn79fMQuAbyWLJZRUNamNrE/s1600/menu.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;Browser Debugger menu item&quot; border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYOmgD3OSrKEZa6l5vmUPSqi15ymguKyNizO9RA-_xj10x2DnJJPz7EfPdZAfwFXYJ4Dv3gBeBwfGVr8IOFN99mkubYw7iwlFIVdUFg0kS16uZbCNgfX9bhcn79fMQuAbyWLJZRUNamNrE/s1600/menu.png&quot; title=&quot;Browser Debugger menu item&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Browser Debugger menu item&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
There has never been a better time to dive into Firefox internals and become a valued contributor. Take a look at &lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=688400&quot;&gt;this&lt;/a&gt; bug, to see how simple debugging has just become. Help us make the web better, by improving the lives of more than 400 million users!&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://blog.astithas.com/feeds/7240860963675159001/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/486398466531826618/7240860963675159001' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/486398466531826618/posts/default/7240860963675159001'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/486398466531826618/posts/default/7240860963675159001'/><link rel='alternate' type='text/html' href='http://blog.astithas.com/2012/11/javascript-debugging-updates.html' title='JavaScript debugging updates'/><author><name>past</name><uri>http://www.blogger.com/profile/05077555675379961731</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3iSUvx6rjlqchgX-aLlFQ8H26ZKaIWrp2SV7xjVIGjxx-iAm-W7qDBLTkHQG-wzQJ2Czq2rWR2nBk1nHworL6ytwwNnThHQ8NTJJUQiuIy0O73FMwhTPXHmcpMLPfC6TNVb624pBNrEIm/s72-c/b2g-prefs.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-486398466531826618.post-1751451904948378195</id><published>2012-10-05T16:18:00.002+02:00</published><updated>2012-10-05T16:18:34.051+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="JavaScript"/><category scheme="http://www.blogger.com/atom/ns#" term="mozilla"/><category scheme="http://www.blogger.com/atom/ns#" term="open-source"/><category scheme="http://www.blogger.com/atom/ns#" term="programming"/><category scheme="http://www.blogger.com/atom/ns#" term="web"/><title type='text'>Debugging Firefox OS</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;A
 few months ago, long before the Firefox debugger had shipped, I had 
tried to see what it would take to get it to debug B2G, or as we call it
 now, &lt;a href=&quot;https://developer.mozilla.org/docs/Mozilla/Firefox_OS&quot;&gt;Firefox OS&lt;/a&gt;. The hack proved &lt;/span&gt;&lt;a href=&quot;http://blog.astithas.com/2012/02/last-week-i-shared-progress.html&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; vertical-align: baseline;&quot;&gt;successful&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt; and with time it grew into an important debugging target for us. I &lt;/span&gt;&lt;a href=&quot;http://blog.astithas.com/2012/04/jsconf-2012.html&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; vertical-align: baseline;&quot;&gt;demoed&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;
 it at JSConf last April, but at that time a lot of the debugger 
frontend functionality had not been available in nightlies. As of &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=755661&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; vertical-align: baseline;&quot;&gt;yesterday&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;,
 however, nightly builds of Firefox can debug nightly builds of Firefox 
OS, both in the device and desktop &lt;a href=&quot;https://developer.mozilla.org/docs/Mozilla/Boot_to_Gecko/Building_and_installing_Boot_to_Gecko&quot;&gt;versions&lt;/a&gt;. Let me give you a quick 
rundown of the necessary steps.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;First of all you need to go to &lt;/span&gt;&lt;a href=&quot;about:config&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; vertical-align: baseline;&quot;&gt;about:config&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;
 on your desktop Firefox and turn &lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;devtools.debugger.remote-enabled&lt;/span&gt; to &lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
true&lt;/span&gt;. After restarting Firefox you will have a new &lt;i&gt;Remote Debugger&lt;/i&gt; menu 
item in your &lt;i&gt;Web Developer&lt;/i&gt; menu.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;You
 need to change the same setting in Firefox OS as well, and that 
requires finding the &lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;prefs.js&lt;/span&gt; file. For desktop builds, this will be in 
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;gaia-repository/profile/prefs.js&lt;/span&gt;. For devices, you should connect it to 
the desktop through a USB cable, use &lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;adb shell&lt;/span&gt; to connect to the 
device, and find the name of the default profile in &lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;/data/b2g/mozilla/&lt;/span&gt;. 
The &lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;prefs.js&lt;/span&gt; file wil be in that subdirectory, which in my case is 
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;/data/b2g/mozilla/ngsweij3.default/prefs.js&lt;/span&gt;. You can get that file off 
the device using:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;adb pull /data/b2g/mozilla/ngsweij3.default/prefs.js prefs.js&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;That
 will store a copy of that file in your current working directory. You 
need to modify this file and then send it back to the device with:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;adb push prefs.js /data/b2g/mozilla/ngsweij3.default/prefs.js&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;The necessary changes to that file are the following two lines:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;user_pref(&quot;devtools.debugger.remote-enabled&quot;, true);&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;user_pref(&quot;marionette.defaultPrefs.enabled&quot;, false);&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;They enable the debugger server and at the same time disable the Marionette server, to avoid a &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=764913&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; vertical-align: baseline;&quot;&gt;conflict&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt; that we haven’t resolved yet. &lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;That
 is all that is necessary for the desktop Firefox OS case, but you need 
to do one more thing for debugging Firefox OS on the device. If you are 
going to debug over a USB connection (which will also provide helpful 
console logs via &lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;adb logcat&lt;/span&gt;) you will need to forward a local port to 
the device using &lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;adb&lt;/span&gt;:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;adb forward tcp:6000 tcp:6000&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Port number 6000 is the default and if you need to change it for some reason, you can do so with the following pref:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;user_pref(&quot;devtools.debugger.remote-port&quot;, 7000);&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;Debugging over WiFi is also possible, although disabled by default, so you will need to change the following pref to do so:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;user_pref(&quot;devtools.debugger.force-local&quot;, false);&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;In that case, you don’t have to do the port forwarding step, but you may change the port number in the same way.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;In order for the new settings to take effect in the device you have to restart it with ‘adb reboot’.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;That’s
 all folks! Now you just start your nightly Firefox and select the 
&lt;i&gt;Remote Debugger&lt;/i&gt; menu item. A dialog will pop up asking for the remote 
address and port number to connect to. The defaults will work for the 
desktop Firefox OS or the device debugging-over-USB cases (unless you 
changed the port number of course!). If you opted for debugging over 
WiFi, you will need to provide the IP address of the device. You can 
find it by tapping on the connection name in the settings.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;After
 the connection is established, you will see a list of the sources 
loaded on the device, giving you the option to inspect the code, set 
breakpoints, step through the execution or even modify the values of 
variables. Here is a screencast that shows the debugger in action:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&#39;allowfullscreen&#39; webkitallowfullscreen=&#39;webkitallowfullscreen&#39; mozallowfullscreen=&#39;mozallowfullscreen&#39; width=&#39;320&#39; height=&#39;266&#39; src=&#39;https://www.youtube.com/embed/DWIZo3G3Yp0?feature=player_embedded&#39; frameborder=&#39;0&#39;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;span id=&quot;goog_1921277582&quot;&gt;&lt;/span&gt;&lt;span id=&quot;goog_1921277583&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;A &lt;/span&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;a href=&quot;https://developer.mozilla.org/docs/Mozilla/Boot_to_Gecko/Debugging_Firefox_OS_apps_using_remote_Firefox_debugging_tools&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; vertical-align: baseline;&quot;&gt;better introductory guide&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt;
 to debugging Firefox OS will be available soon on MDN. This is just the
 first step in supporting Firefox OS development with Firefox developer 
tools. Just around the corner are &lt;a href=&quot;https://twitter.com/robodesign/status/251979600798810112&quot;&gt;web console&lt;/a&gt; support and &lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=795268&quot;&gt;profiling&lt;/a&gt;, 
with more to follow in the near future. If you have issues or 
suggestions for these tools, please get in touch! Post a comment, file a
 bug or pop in &lt;/span&gt;&lt;a href=&quot;irc://irc.mozilla.org/devtools&quot;&gt;&lt;span style=&quot;background-color: transparent; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; vertical-align: baseline;&quot;&gt;#devtools&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: Arial; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; text-decoration: none; vertical-align: baseline;&quot;&gt; for a chat. Let&#39;s make the web the best platform to develop on!&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://blog.astithas.com/feeds/1751451904948378195/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/486398466531826618/1751451904948378195' title='10 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/486398466531826618/posts/default/1751451904948378195'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/486398466531826618/posts/default/1751451904948378195'/><link rel='alternate' type='text/html' href='http://blog.astithas.com/2012/10/debugging-firefox-os.html' title='Debugging Firefox OS'/><author><name>past</name><uri>http://www.blogger.com/profile/05077555675379961731</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>10</thr:total></entry><entry><id>tag:blogger.com,1999:blog-486398466531826618.post-4367206923643954292</id><published>2012-10-01T22:34:00.000+02:00</published><updated>2012-10-01T23:11:17.506+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="JavaScript"/><category scheme="http://www.blogger.com/atom/ns#" term="mozilla"/><category scheme="http://www.blogger.com/atom/ns#" term="open-source"/><title type='text'>Debugging Firefox</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Last week we had a Firefox Developer Tools team get-together at the Mozilla London office. These meetups are an extremely valuable tool for the project to tackle hard problems, because when you put all of the experts on a particular hard problem in the same room, hard problems tend to run away screaming.&lt;br /&gt;
&lt;br /&gt;
We managed to attack a lot of hard problems this week: a profiler, source maps, the developer toolbox, &lt;a href=&quot;https://twitter.com/robodesign/status/251979600798810112&quot;&gt;web console remoting&lt;/a&gt; and chrome debugging, were just a few of them. And not only that, but we also landed a few exciting new features as well, with &lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=794394&quot;&gt;fullscreen scratchpad&lt;/a&gt; and &lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=793725&quot;&gt;markup panel preview&lt;/a&gt; being my personal favorites. I&#39;m sure &lt;a href=&quot;http://antennasoft.net/robcee/2012/10/01/firefox-devtools-hax/&quot;&gt;others&lt;/a&gt; will cover the rest in appropriate detail, but I&#39;d like to say a few things about chrome debugging.&lt;br /&gt;
&lt;br /&gt;
Last March, during the previous team meetup we had managed to get a chrome debugging proof-of-concept working. We were thrilled by it, even though it was a big hack, because the implications were enormous. Something that not many people know is that the Firefox frontend is built in JavaScript, CSS and XUL, which is an HTML derivative with additional capabilities. That is, we use the exact same technologies that power your favorite web applications, to build the browser that displays said web apps to the user. This similarity has always been front and center to our thinking when considering tools for web developers: how can we use these tools to make hacking on Firefox easier?&lt;br /&gt;
&lt;br /&gt;
Without easy to use tools, fixing bugs is time-consuming and adding features demands a very disciplined approach to programming. It hampers our ability to move the project faster and innovate rapidly. Furthermore, having a non-profit foundation to back the development of an open-source browser means that you don&#39;t have the option to simply throw more money at the problem, hiring more engineers than everybody else to increase the pace of innovation in the product. This is a browser created by thousands of contributors to take care of their own interests. We have to make their work easier, by giving them the tools they need to work faster.&lt;br /&gt;
&lt;br /&gt;
When we did the chrome debugging prototype last March, the Firefox Debugger had been in trunk for a short while, disabled by default. No visual styling had been done on it and only the most basic of functionality was there. Six months later we have shipped the first version and we keep iterating on it. &lt;br /&gt;
&lt;br /&gt;
The proof-of-concept couldn&#39;t debug chrome window globals, only modules, and was hijacking the remote debugging protocol in a hackish way that was guaranteed never to make it into a Firefox release. This time we have both kinds of globals supported and a sound protocol design that was agreed upon a few months ago.&lt;br /&gt;
&lt;br /&gt;
This new tool, which we dubbed &quot;Browser Debugger&quot;, will be useful to add-on developers, too. In my demo last week I used it to debug Firebug. We have &lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=743311&quot;&gt;patches&lt;/a&gt; &lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=794941&quot;&gt;under&lt;/a&gt; &lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=740551&quot;&gt;review&lt;/a&gt; or close enough that implement a first draft of the experience we aim to present users with. I want to land that as soon as we can, enable the feature by default (but conditioned on the devtools.chrome.enabled pref like other tools) and keep iterating. &lt;br /&gt;
&lt;br /&gt;
It was without a doubt a very rewarding week. Some might expect us to also treat these rare events as opportunities to hang out, get drunk and take embarrassing pictures of each other. I am not going to either confirm or deny such allegations. At least not until I&#39;m presented with hard, photographic evidence. Preferably on Flickr.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://blog.astithas.com/feeds/4367206923643954292/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/486398466531826618/4367206923643954292' title='10 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/486398466531826618/posts/default/4367206923643954292'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/486398466531826618/posts/default/4367206923643954292'/><link rel='alternate' type='text/html' href='http://blog.astithas.com/2012/10/debugging-firefox.html' title='Debugging Firefox'/><author><name>past</name><uri>http://www.blogger.com/profile/05077555675379961731</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>10</thr:total></entry><entry><id>tag:blogger.com,1999:blog-486398466531826618.post-892637478162851591</id><published>2012-04-06T20:16:00.000+02:00</published><updated>2012-04-06T20:16:58.400+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="JavaScript"/><category scheme="http://www.blogger.com/atom/ns#" term="mozilla"/><title type='text'>JSConf 2012</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
This week I had the opportunity to attend &lt;a href=&quot;http://2012.jsconf.us/&quot;&gt;JSConf&lt;/a&gt;. I&#39;ve been trying to make it to one of these conferences in the past without success and I now realize I was missing a lot! &lt;a href=&quot;http://www.twitter.com/voodootikigod&quot;&gt;Chris&lt;/a&gt; and &lt;a href=&quot;http://www.twitter.com/lwilliams&quot;&gt;Laura Williams&lt;/a&gt; deserve special credit for the excellent job they are doing here. Even though I missed all the parties (because jetlag), the venue, the speakers, the tracks,  and the conversations were all top class. Highly recommended.&lt;br /&gt;
&lt;br /&gt;
If I had to pick the highlights of the conference, an undoubtedly difficult undertaking due to the sheer number of awesome talks, my personal favorites would be these two:&lt;br /&gt;
&lt;br /&gt;
The &lt;a href=&quot;http://www.mozilla.org/b2g/&quot;&gt;B2G&lt;/a&gt; phones given out by &lt;a href=&quot;http://www.mozilla.org/&quot;&gt;Mozilla&lt;/a&gt; to all attendees, a gesture that sparked the creativity of quite a few people, culminating in a few B2G apps after a few hours of hacking. Yes, it&#39;s that easy.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivcqkaT3x-5fxDPvbme-LahkTy5pJ1dzjvdjls2G9jfUZOij1QQoaZSiZwpos9gHawYwFFaBW2dEONmTIygN4emCu2RRubJn4Z57L-_w2zv4xMe1qp8nJ58CFyhhmK4IqcuNMo5d29t-r0/s1600/20120402_100350.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivcqkaT3x-5fxDPvbme-LahkTy5pJ1dzjvdjls2G9jfUZOij1QQoaZSiZwpos9gHawYwFFaBW2dEONmTIygN4emCu2RRubJn4Z57L-_w2zv4xMe1qp8nJ58CFyhhmK4IqcuNMo5d29t-r0/s320/20120402_100350.jpg&quot; width=&quot;240&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
The chance to meet and listen to Dan Ingalls, in my humble opinion one of the greatest programmers of our time, giving his inspirational talk on the &lt;a href=&quot;http://www.lively-kernel.org/&quot;&gt;Lively Kernel&lt;/a&gt;. It would be a failure of our profession if the ideas in Lively Kernel do not find a way to reach mass market at some point. This system, like its predecessors &lt;a href=&quot;http://en.wikipedia.org/wiki/Squeak&quot;&gt;Squeak&lt;/a&gt; and &lt;a href=&quot;http://en.wikipedia.org/wiki/Dynabook&quot;&gt;Dynabook&lt;/a&gt;, represent a more humane way of programming computers that could be a game changer.&lt;br /&gt;
&lt;br /&gt;
My own &lt;a href=&quot;https://docs.google.com/presentation/d/1Fy4N8B5rA7Oxaap8pEaRy2Rx8lajIMjrDm60nIc_XEE/present#slide=id.p16&quot;&gt;Debugging B2G&lt;/a&gt; talk was well-attended, even though a malfunctioning video cable threatened to kill it before it even began. I received lots of comments afterwards and requests for access to the debugger build that I demoed, and even though I pointed people to the &lt;span id=&quot;goog_1866660412&quot;&gt;&lt;/span&gt;patches&lt;span id=&quot;goog_1866660413&quot;&gt;&lt;/span&gt;, I think that the best thing to do for those interested is to wait a few more weeks, until we get all of that work in nightlies. After getting back at the hotel I recorded a screencast of the talk for those who couldn&#39;t attend, but unfortunately you will miss me mumbling while frantically plugging and unplugging a video cable and cursing at thunderbolt ports. Hands down the highlight of the talk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;center&gt;
&lt;iframe frameborder=&quot;0&quot; height=&quot;360&quot; name=&quot;vidly-frame&quot; src=&quot;http://s.vid.ly/embeded.html?link=7o0x1p&amp;amp;autoplay=false&quot; width=&quot;640&quot;&gt;&amp;amp;lt;p&amp;amp;gt;&amp;amp;amp;amp;amp;amp;amp;amp;lt;p&amp;amp;amp;amp;amp;amp;amp;amp;gt;&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;lt;p&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;gt;&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;lt;a target=&#39;_blank&#39; href=&#39;http://vid.ly/7o0x1p&#39;&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;gt;&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;lt;img src=&#39;http://cf.cdn.vid.ly/7o0x1p/poster.jpg&#39; /&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;gt;&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;lt;/a&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;gt;&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;lt;/p&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;gt;&amp;amp;amp;amp;amp;amp;amp;amp;lt;/p&amp;amp;amp;amp;amp;amp;amp;amp;gt;&amp;amp;lt;/p&amp;amp;gt;&lt;/iframe&gt;
&lt;/center&gt;
&lt;br /&gt;
&lt;br /&gt;
All in all it was a great opportunity to meat people, have conversations on the present and future of Firefox developer tools and ride a bull. Too bad I missed that last one.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.astithas.com/feeds/892637478162851591/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/486398466531826618/892637478162851591' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/486398466531826618/posts/default/892637478162851591'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/486398466531826618/posts/default/892637478162851591'/><link rel='alternate' type='text/html' href='http://blog.astithas.com/2012/04/jsconf-2012.html' title='JSConf 2012'/><author><name>past</name><uri>http://www.blogger.com/profile/05077555675379961731</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivcqkaT3x-5fxDPvbme-LahkTy5pJ1dzjvdjls2G9jfUZOij1QQoaZSiZwpos9gHawYwFFaBW2dEONmTIygN4emCu2RRubJn4Z57L-_w2zv4xMe1qp8nJ58CFyhhmK4IqcuNMo5d29t-r0/s72-c/20120402_100350.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-486398466531826618.post-7390405967266302309</id><published>2012-02-19T19:30:00.003+02:00</published><updated>2012-04-06T20:07:34.034+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="JavaScript"/><category scheme="http://www.blogger.com/atom/ns#" term="mozilla"/><category scheme="http://www.blogger.com/atom/ns#" term="open-source"/><category scheme="http://www.blogger.com/atom/ns#" term="programming"/><title type='text'>Debugging mobile phones</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;a href=&quot;http://blog.astithas.com/2012/02/debugging-javascript.html&quot;&gt;Last week&lt;/a&gt; I posted an update on the progress we are making towards a functional JavaScript debugger in Firefox. We still have a ways to go before we get there, but the foundation this is based on, namely the &lt;a href=&quot;https://wiki.mozilla.org/Remote_Debugging_Protocol&quot;&gt;Remote Debugging Protocol&lt;/a&gt;, provides a solid basis for debugging mobile browsers, and as it turns out, even mobile operating systems. Supporting these use cases is still farther down our list, but I decided to spend a few hours the other day trying to estimate how far we are from this goal. It turns out we are not that far, and I have a screencast to prove it.&lt;br /&gt;
&lt;br /&gt;
I had done some prototyping work for Firefox for Android a while back, which was rather straightforward, so I was curious to know what would it take to tackle a more ambitious project: debugging &lt;a href=&quot;https://wiki.mozilla.org/B2G&quot;&gt;Boot to Gecko&lt;/a&gt;. After a few hours of hacking and orienting myself around the B2G and Gaia code base, I got this far:&lt;br /&gt;
&lt;br /&gt;
&lt;iframe allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;438&quot; mozallowfullscreen=&quot;&quot; src=&quot;http://player.vimeo.com/video/36966384?title=0&amp;amp;byline=0&amp;amp;portrait=0&quot; webkitallowfullscreen=&quot;&quot; width=&quot;700&quot;&gt;&lt;/iframe&gt;
&lt;br /&gt;
&lt;br /&gt;
Not too bad I think for a few hours work. Don&#39;t expect this to be ready of course, before we have a working debugger in desktop Firefox. If, however, you&#39;d like to follow along and maybe even lend a hand, you are always &lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=728244&quot;&gt;welcome&lt;/a&gt;!&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.astithas.com/feeds/7390405967266302309/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/486398466531826618/7390405967266302309' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/486398466531826618/posts/default/7390405967266302309'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/486398466531826618/posts/default/7390405967266302309'/><link rel='alternate' type='text/html' href='http://blog.astithas.com/2012/02/last-week-i-shared-progress.html' title='Debugging mobile phones'/><author><name>past</name><uri>http://www.blogger.com/profile/05077555675379961731</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-486398466531826618.post-4655048001149917491</id><published>2012-02-13T10:08:00.000+02:00</published><updated>2012-02-19T19:19:33.895+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="JavaScript"/><category scheme="http://www.blogger.com/atom/ns#" term="mozilla"/><category scheme="http://www.blogger.com/atom/ns#" term="software"/><title type='text'>Debugging JavaScript</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;i&gt;tl;dr: Firefox nightlies now ship with an experimental JavaScript debugger. It&#39;s not ready for end-users yet, but we are feverishly working on filling in the missing bits.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
Debugging is always hard, especially when debugging other people&#39;s code. Adding a bunch of console.log() statements, becomes tedious after a while and that&#39;s assuming that you are familiar enough with the code in question to know where to place them. Tools like &lt;a href=&quot;http://getfirebug.com/&quot;&gt;Firebug&lt;/a&gt; are a tremendous help in this case. Having the ability to pause the execution at any point or inspect variables and stack frames, provides valuable insights into the runtime behavior of a program.&lt;br /&gt;
&lt;br /&gt;
Firebug depends on the traditional &lt;a href=&quot;https://developer.mozilla.org/en/Code_snippets/JavaScript_Debugger_Service&quot;&gt;JSD&lt;/a&gt; API in &lt;a href=&quot;https://developer.mozilla.org/en/SpiderMonkey&quot;&gt;SpiderMonkey&lt;/a&gt; to perform its magic, but nowadays JSD is limiting in a number of ways. In order to overcome these limitations, the new &lt;a href=&quot;https://wiki.mozilla.org/Debugger&quot;&gt;JSDBG2&lt;/a&gt; API was designed and implemented by &lt;a href=&quot;http://www.red-bean.com/jimb/&quot;&gt;Jim Blandy&lt;/a&gt; and &lt;a href=&quot;http://blog.mozilla.com/jorendorff/&quot;&gt;Jason&lt;/a&gt; &lt;a href=&quot;http://jorendorff.blogspot.com/&quot;&gt;Orendorff&lt;/a&gt;, and the first version of this work landed in &lt;a href=&quot;http://www.mozilla.org/firefox/&quot;&gt;Firefox&lt;/a&gt; 8. Jim, being the kind of guy that has forgotten more about debuggers than I will ever know, designed a &lt;a href=&quot;https://wiki.mozilla.org/Remote_Debugging_Protocol&quot;&gt;remote debugging protocol&lt;/a&gt; to separate the debugger from the browser, allowing for debugging desktop browsers, mobile browsers, mail readers and even more exotic software in the future. &lt;a href=&quot;https://twitter.com/campd&quot;&gt;Dave Camp&lt;/a&gt; got a great protocol implementation up and running, but was assigned managerial duties (poor sap!) before having a chance to finish the job, so &lt;a href=&quot;http://students.info.uaic.ro/%7Evictor.porof/&quot;&gt;Victor Porof&lt;/a&gt;, &lt;a href=&quot;http://www.robodesign.ro/mihai/blog&quot;&gt;Mihai Șucan&lt;/a&gt;  and yours truly lined up to carry the torch. The culmination of this work landed in mozilla-central last week, including the remote protocol implementation and a prototype UI (disabled by default). It is now available in &lt;a href=&quot;http://nightly.mozilla.org/&quot;&gt;nightlies&lt;/a&gt; for adventurous souls to play with.&lt;br /&gt;
&lt;br /&gt;
Let me be clear about that last point: what&#39;s in there right now is not useful for day-to-day work, even for experienced developers. There is no UI to add breakpoints besides the experimental Graphical Command Line Interface (whose awesomeness deserves a separate post), no stepping, no variable inspection besides call parameters and &#39;this&#39;, and numerous other limitations. In short: it&#39;s not ready, yet. In the course of the next weeks we will be furiously working to add the missing bits and improve the UI, so that it becomes a worthy addition to our &lt;a href=&quot;http://thenextweb.com/apps/2012/01/31/firefox-adds-new-developer-tools-that-rival-chromes-offerings/&quot;&gt;existing suite&lt;/a&gt; of developer tools.&lt;br /&gt;
&lt;br /&gt;
If, however, you are the kind of person who doesn&#39;t take no for an answer, here is what you need to do to play with it: type &lt;a href=&quot;about:config&quot;&gt;about:config&lt;/a&gt; in the awesomebar and set the preference &lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;devtools.debugger.enabled&lt;/span&gt; to &lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;true&lt;/span&gt;. Also, set &lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;devtools.gcli.enable&lt;/span&gt; to &lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;true&lt;/span&gt; in order to be able to set breakpoints. Restart your browser and select Tools -&amp;gt; Web Developer -&amp;gt; Script Debugger to open it. You will need to reload the page for the debugger to become aware of the scripts in the page (see? It&#39;s not ready!). Browse through the source scripts to find a place where you would like to add a breakpoint, then open the web console and type &lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;break add line &amp;lt;url&amp;gt; &amp;lt;line&amp;gt;&lt;/span&gt;. Don&#39;t worry about memorizing it, GCLI will guide you along the way, suggesting among the available options at each step. When the code hits the breakpoint, the debugger will display the stack frames and the variables in scope (not all of them, it&#39;s not ready, remember?) for inspection. &lt;br /&gt;
&lt;br /&gt;
If you have better things to do with your time than play with experimental, uninished debuggers, but would still like to take a peek into what&#39;s in store already, here is a short screencast that should give you a broad idea. Note that the stepping functionality in the demo is not in the nightlies yet, because, you guessed it, it&#39;s not quite ready.&lt;br /&gt;
&lt;br /&gt;
&lt;iframe allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;517&quot; mozallowfullscreen=&quot;&quot; src=&quot;http://player.vimeo.com/video/35951775?title=0&amp;amp;byline=0&amp;amp;portrait=0&quot; webkitallowfullscreen=&quot;&quot; width=&quot;700&quot;&gt;&lt;/iframe&gt;
&lt;br /&gt;
&lt;br /&gt;
Ready or not, we would love to have any feedback you might have. Drop by &lt;a href=&quot;irc://irc.mozilla.org/devtools&quot;&gt;#devtools&lt;/a&gt; for a chat, or &lt;a href=&quot;https://bugzilla.mozilla.org/enter_bug.cgi?blocked=676586&amp;amp;product=Firefox&amp;amp;component=Developer%20Tools:%20Debugger&quot;&gt;file bugs&lt;/a&gt; to &lt;strike&gt;torture&lt;/strike&gt;help us get things fixed. Rest assured, when it&#39;s done, debugging web apps will never be the same again.  &lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.astithas.com/feeds/4655048001149917491/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/486398466531826618/4655048001149917491' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/486398466531826618/posts/default/4655048001149917491'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/486398466531826618/posts/default/4655048001149917491'/><link rel='alternate' type='text/html' href='http://blog.astithas.com/2012/02/debugging-javascript.html' title='Debugging JavaScript'/><author><name>past</name><uri>http://www.blogger.com/profile/05077555675379961731</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-486398466531826618.post-1874895859765171283</id><published>2011-04-16T21:00:00.002+02:00</published><updated>2011-04-16T21:09:13.310+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="jobs"/><category scheme="http://www.blogger.com/atom/ns#" term="personal"/><title type='text'>Next stop: Mozilla</title><content type='html'>&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0YaDSIcXcpr1F1TPZlaCbrl9Sk1wUbqTo3QTUnJ-Ti9iFwLDK4zPrVa21obBs7aLwY-2uRf3_iQFYIV9B7acmc5IOKiQaFZnkOW6Q3k1MmW-p3jA7vhAFRaFwY9TOaOFyZICi87kCuL5S/s1600/Future-signpost.jpg&quot;&gt;&lt;img style=&quot;float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 400px; height: 268px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0YaDSIcXcpr1F1TPZlaCbrl9Sk1wUbqTo3QTUnJ-Ti9iFwLDK4zPrVa21obBs7aLwY-2uRf3_iQFYIV9B7acmc5IOKiQaFZnkOW6Q3k1MmW-p3jA7vhAFRaFwY9TOaOFyZICi87kCuL5S/s400/Future-signpost.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5596235415273937890&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/td&gt;&lt;td&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiikOjWBzL34F8jDR-x-VkT9zJk86nMY3n6M-0TBGjf4rb1hQrPUDZoLppA8j7WG1J5jWmoCA90NFfmCdJTHJdHoAyUAON0dXGy84f3x_Vde4arGPxAdqkSZDcHvMHJOU1yiaj5wThHeKYB/s1600/mozilla-firefox.jpg&quot;&gt;&lt;img style=&quot;float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 369px; height: 356px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiikOjWBzL34F8jDR-x-VkT9zJk86nMY3n6M-0TBGjf4rb1hQrPUDZoLppA8j7WG1J5jWmoCA90NFfmCdJTHJdHoAyUAON0dXGy84f3x_Vde4arGPxAdqkSZDcHvMHJOU1yiaj5wThHeKYB/s400/mozilla-firefox.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5596235598542789042&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;span style=&quot;font-size:100%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-style: normal; text-decoration: none; vertical-align: baseline; font-family: arial;font-family:Arial;font-size:100%;&quot; id=&quot;internal-source-marker_0.2833058166034962&quot;  &gt;Six  months ago I left my previous job, in order to join a &lt;a href=&quot;http://www.xe.gr/&quot;&gt;product company&lt;/a&gt; and experience  new things. The move was rewarding in many ways, but most importantly, because of the people I&#39;ve met. &lt;/span&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline; font-family: arial;font-family:Arial;font-size:100%;color:#000000;&quot; id=&quot;internal-source-marker_0.2833058166034962&quot;   &gt;We&#39;ve accomplished a lot together and laid out the foundations for much more. As I&#39;ve &lt;a href=&quot;http://blog.astithas.com/2010/10/moving-on.html&quot;&gt;established&lt;/a&gt; before, this is not the right time to be moving on, but while in theory, theory and practice are the same, in practice, they are not. When good fortune knocks on your door,  it&#39;s a fool who does not answer.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline; font-family: arial;font-family:Arial;font-size:100%;color:#000000;&quot; id=&quot;internal-source-marker_0.2833058166034962&quot;   &gt;So I am seizing the opportunity to work with some of the  best hackers in the world, on a product that I adore, with technologies that until now I had to stay up late at night to use. In a few days I’ll be joining  Mozilla to work on Firefox Developer Tools, a passion of mine for quite &lt;a href=&quot;https://github.com/past/despin&quot;&gt;some&lt;/a&gt; &lt;a href=&quot;https://github.com/past/nodify&quot;&gt; time&lt;/a&gt;.&lt;/span&gt;&lt;span style=&quot;font-family:arial;font-size:100%;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-style: normal; text-decoration: none; vertical-align: baseline; font-family: arial;font-family:Arial;font-size:100%;color:#000000;&quot; id=&quot;internal-source-marker_0.2833058166034962&quot;   &gt; I am thrilled with this opportunity to learn from the best, and have an impact on the lives of millions. And to do this with a non-profit organization, whose mission is to promote openness, innovation and opportunity on the web, for the public good.&lt;br /&gt;&lt;br /&gt;I&#39;m almost wishing I gave-up this long-needed vacation.&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.astithas.com/feeds/1874895859765171283/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/486398466531826618/1874895859765171283' title='10 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/486398466531826618/posts/default/1874895859765171283'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/486398466531826618/posts/default/1874895859765171283'/><link rel='alternate' type='text/html' href='http://blog.astithas.com/2011/04/next-stop-mozilla.html' title='Next stop: Mozilla'/><author><name>past</name><uri>http://www.blogger.com/profile/05077555675379961731</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0YaDSIcXcpr1F1TPZlaCbrl9Sk1wUbqTo3QTUnJ-Ti9iFwLDK4zPrVa21obBs7aLwY-2uRf3_iQFYIV9B7acmc5IOKiQaFZnkOW6Q3k1MmW-p3jA7vhAFRaFwY9TOaOFyZICi87kCuL5S/s72-c/Future-signpost.jpg" height="72" width="72"/><thr:total>10</thr:total></entry><entry><id>tag:blogger.com,1999:blog-486398466531826618.post-3771969665423073712</id><published>2010-10-31T01:46:00.002+02:00</published><updated>2010-10-31T01:53:27.824+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="jobs"/><category scheme="http://www.blogger.com/atom/ns#" term="personal"/><category scheme="http://www.blogger.com/atom/ns#" term="startups"/><title type='text'>Moving On</title><content type='html'>&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background-color: transparent; font-family: Times; font-size: medium; &quot;&gt;&lt;span id=&quot;internal-source-marker_0.857190610608086&quot; style=&quot;font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; &quot;&gt;About 10 years ago, I was invited to become employee No1 of &lt;/span&gt;&lt;a href=&quot;http://www.ebs.gr/&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: Arial; color: rgb(0, 0, 153); background-color: transparent; font-weight: normal; font-style: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap; &quot;&gt;a new software startup&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; &quot;&gt;. I didn’t know much about &lt;/span&gt;&lt;a href=&quot;http://www.paulgraham.com/start.html&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: Arial; color: rgb(0, 0, 153); background-color: transparent; font-weight: normal; font-style: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap; &quot;&gt;startups&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; &quot;&gt; back then, besides that they were supposedly cool, and employees weren’t treated like small cogs in a giant machine. Indeed, it felt really fun to build our first product in my 5 year-old laptop, running FreeBSD, of all things. That, and getting praised by our users, too.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; &quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; &quot;&gt;Things got even better as time went by: interesting projects to build, exciting technologies to explore, new colleagues to work with, new challenges to face. I felt my work was making a real impact, getting the team to follow new and exciting technological paths, often far away from the mainstream. I became partner, pushed for launching our first large consumer product, coded, mentored, planned and dreamed about where to go next. I had a 27-inch Mac, a big desk and a great view from my office window.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; &quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; &quot;&gt;And then I left.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; &quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; &quot;&gt;When is it a good time to leave? When everything is over, it’s obviously too late. When things are just starting to take shape, it’s definitely too soon. I used to say, &lt;/span&gt;&lt;span style=&quot;font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: italic; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; &quot;&gt;‘when you are done’&lt;/span&gt;&lt;span style=&quot;font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; &quot;&gt;. But it turns out that, in real life, you are never done. There are always more things to do, unfinished businesses to attend to, and existing plans to follow through. Perhaps a better answer is: &lt;/span&gt;&lt;span style=&quot;font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: italic; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; &quot;&gt;‘when you are too comfortable, almost on the brink of getting bored’&lt;/span&gt;&lt;span style=&quot;font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; &quot;&gt;.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; &quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; &quot;&gt;A friend asked me why would I leave this company in what appears, by all accounts, to be the pinnacle of our accomplishments, &lt;/span&gt;&lt;span style=&quot;font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: italic; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; &quot;&gt;‘now that your work is being recognised and respected’&lt;/span&gt;&lt;span style=&quot;font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; &quot;&gt;, as he put it. Another said that we’re all going through some pretty hard times, and it wouldn’t be wise to take risks. A rather unsettled family member asked: ‘&lt;/span&gt;&lt;span style=&quot;font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: italic; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; &quot;&gt;aren’t you afraid?’&lt;/span&gt;&lt;span style=&quot;font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; &quot;&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; &quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; &quot;&gt;Of course I was.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; &quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;p style=&quot;margin-right: 15pt; margin-top: 0pt; margin-bottom: 0pt; &quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; &quot;&gt;Afraid of leaving behind the tried-and-true for something new and unknown; afraid that the new gig might not live up to the initial impressions; afraid that my work-life balance might deteriorate. However, I’ve learned long ago that fear isn’t something to be afraid of. As Eleanor Roosevelt &lt;/span&gt;&lt;a href=&quot;http://womenshistory.about.com/cs/quotes/a/qu_e_roosevelt.htm&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: Arial; color: rgb(0, 0, 153); background-color: transparent; font-weight: normal; font-style: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap; &quot;&gt;said&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; &quot;&gt; once: ‘&lt;/span&gt;&lt;span style=&quot;font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-weight: normal; font-style: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; &quot;&gt;You gain strength, courage, and confidence by every experience in which you really stop to look fear in the face. You must do the thing which you think you cannot do.’ What I wanted to do, is to become even better at my craft. To have an impact on even more people’s lives through my work. To inspire and be inspired. To be afraid and excited again.&lt;/span&gt;&lt;/p&gt;&lt;span style=&quot;font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; &quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; &quot;&gt;So, as of a few days ago I’ve taken up an offer to work for &lt;/span&gt;&lt;a href=&quot;http://www.xe.gr/&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: Arial; color: rgb(0, 0, 153); background-color: transparent; font-weight: normal; font-style: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap; &quot;&gt;Golden&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; &quot;&gt; &lt;/span&gt;&lt;a href=&quot;http://goldendeals.gr/&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: Arial; color: rgb(0, 0, 153); background-color: transparent; font-weight: normal; font-style: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap; &quot;&gt;Deal&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; &quot;&gt;. It’s a product company, something I’ve always been keen on, with a great track record and an awesome crew that is rapidly expanding (are you a senior dev or admin? we’re hiring!). I’m still getting to know the place around here, but it feels good, and I think we have a shot at becoming one of the greatest Internet companies in Greece. &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; &quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; &quot;&gt;I know that my former teammates will continue to rock on, and I’ll be cheering from the sidelines for their future accomplishments. As for me, I just might find more time to blog again. &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; &quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; &quot;&gt;P.S.: For folks contemplating a career move, here are some tips for choosing your next gig. This is not how I approached my own case, since I wasn’t really on the market for a job. I was more like seduced, from some pretty persuasive folks. However, had I been looking for a new employer, this is what I would have looked out for:&lt;/span&gt;&lt;ul&gt;&lt;li style=&quot;list-style-type: disc; font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; vertical-align: baseline; &quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; &quot;&gt;Product company: this is where you have a better chance at learning the ropes of modern technologies, without doing pure academic exercises that have little to no importance for the business.&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;list-style-type: disc; font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; vertical-align: baseline; &quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; &quot;&gt;Startup mentality: you want to be a part of a group that fights as a whole for the success of the company, not a bunch of bureaucrats isolated in their silos.&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;list-style-type: disc; font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; vertical-align: baseline; &quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; &quot;&gt;Experienced team with a good track record: so you can learn from people better, smarter or wiser than you, and improve your skills.&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;list-style-type: disc; font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; vertical-align: baseline; &quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; &quot;&gt;Teams not afraid to experiment with new and unproven technologies: because innovation is the name of the game, at least for startups and product companies.&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;list-style-type: disc; font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; vertical-align: baseline; &quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; &quot;&gt;A ‘&lt;/span&gt;&lt;a href=&quot;http://www.joelonsoftware.com/articles/GuerrillaInterviewing3.html&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: Arial; color: rgb(0, 0, 153); background-color: transparent; font-weight: normal; font-style: normal; text-decoration: underline; vertical-align: baseline; white-space: pre-wrap; &quot;&gt;getting things done&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; &quot;&gt;’ attitude: because success apparently only comes for the right kind of people.&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;list-style-type: disc; font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; vertical-align: baseline; &quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; &quot;&gt;Honest presentation: this is rather obvious.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style=&quot;font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; &quot;&gt;Bear in mind that people have a tendency to present a rosy picture of their situation, because, if nothing else, it makes them feel better about themselves. Be a little pessimist and assume things are a tad worse, and you’ll be closer to the truth most of the time. Also, do some research on what you’re being told, don’t trust their sales pitch blindly.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; &quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; &quot;&gt;I know I did.&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.astithas.com/feeds/3771969665423073712/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/486398466531826618/3771969665423073712' title='13 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/486398466531826618/posts/default/3771969665423073712'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/486398466531826618/posts/default/3771969665423073712'/><link rel='alternate' type='text/html' href='http://blog.astithas.com/2010/10/moving-on.html' title='Moving On'/><author><name>past</name><uri>http://www.blogger.com/profile/05077555675379961731</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>13</thr:total></entry><entry><id>tag:blogger.com,1999:blog-486398466531826618.post-6975307554232582841</id><published>2010-10-12T22:55:00.000+02:00</published><updated>2010-10-12T23:37:44.747+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="databases"/><category scheme="http://www.blogger.com/atom/ns#" term="gss"/><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><category scheme="http://www.blogger.com/atom/ns#" term="open-source"/><category scheme="http://www.blogger.com/atom/ns#" term="programming"/><category scheme="http://www.blogger.com/atom/ns#" term="software"/><title type='text'>GSS/Pithos update: iPhone, Android, Mongo &amp; getting to 2.0</title><content type='html'>&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8eB04IN53RvUYjZ8W20xD3osN5PwBqlhFQ20D2BuNi1jEouYZDtdTPmwL2ARBeAd7r9XG1-BBKUNRqy-SnW0W_gPl20iuJBzD1iVAWCmD0-sFUYVip-1YYkAdAQp4vlaDaqFjAblz0Ve7/s1600/icon.png&quot;&gt;&lt;img style=&quot;float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 57px; height: 57px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8eB04IN53RvUYjZ8W20xD3osN5PwBqlhFQ20D2BuNi1jEouYZDtdTPmwL2ARBeAd7r9XG1-BBKUNRqy-SnW0W_gPl20iuJBzD1iVAWCmD0-sFUYVip-1YYkAdAQp4vlaDaqFjAblz0Ve7/s400/icon.png&quot; border=&quot;0&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5527276090477666546&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background-color: transparent; font-family: Times; font-size: medium; &quot;&gt;&lt;span id=&quot;internal-source-marker_0.27477506059221923&quot; style=&quot;font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; &quot;&gt;It has been a while since my last post on &lt;a href=&quot;http://code.google.com/p/gss&quot;&gt;GSS&lt;/a&gt;/&lt;a href=&quot;http://pithos.grnet.gr/&quot;&gt;Pithos&lt;/a&gt;, and there have been quite a few important announcements that I have not blogged about, only tweeted:&lt;/span&gt;&lt;ul&gt;&lt;li style=&quot;list-style-type: disc; font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; vertical-align: baseline; &quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; &quot;&gt;a shiny &lt;a href=&quot;http://code.google.com/p/igss/&quot;&gt;native&lt;/a&gt; &lt;a href=&quot;http://itunes.apple.com/app/pithos/id367821572?mt=8&quot;&gt;iPhone client&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;list-style-type: disc; font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; vertical-align: baseline; &quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; &quot;&gt;a brand new &lt;a href=&quot;http://code.google.com/p/gssdroid/&quot;&gt;Android client&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;list-style-type: disc; font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; vertical-align: baseline; &quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; &quot;&gt;a back-office application for statistics and admin tasks&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;list-style-type: disc; font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; vertical-align: baseline; &quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; &quot;&gt;public folders for hosting static web sites&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;list-style-type: disc; font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; vertical-align: baseline; &quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; &quot;&gt;a slew of performance, usability and bug fixes for the web &amp;amp; desktop clients&lt;/span&gt;&lt;/li&gt;&lt;li style=&quot;list-style-type: disc; font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; vertical-align: baseline; &quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; &quot;&gt;new user registration and quota upgrade workflows&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style=&quot;font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; &quot;&gt;And since the code base has been adopted by other European NRNs, we have also improved our release engineering process and &lt;a href=&quot;http://code.google.com/p/gss/w/list&quot;&gt;documentation&lt;/a&gt;. This however was just the tip of the iceberg. What we are now close to completing, is nothing short of an almost complete rewrite of the core GSS server, aiming at even greater performance and scalability. We are about to release GSS 2.0.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; &quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; &quot;&gt;The initial plan was far more modest. We had identified the &lt;a href=&quot;http://www.postgresql.org/&quot;&gt;PostgreSQL&lt;/a&gt; installation that stores all of the the system’s data besides the actual files, as a future bottleneck when user adoption would start to accelerate. In such an event there were a few low-to-medium-cost solutions that we could pursue, like replication and manual sharding, but since the problem seemed best suited for a &lt;a href=&quot;http://en.wikipedia.org/wiki/NoSQL&quot;&gt;NoSQL&lt;/a&gt; solution, we decided to bite the bullet and attempt a transition. &lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; &quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; &quot;&gt;Our field search included lots of products, like &lt;a href=&quot;http://en.wikipedia.org/wiki/MongoDB&quot;&gt;Mongo&lt;/a&gt;, &lt;a href=&quot;http://en.wikipedia.org/wiki/CouchDB&quot;&gt;Couch&lt;/a&gt;, &lt;a href=&quot;http://en.wikipedia.org/wiki/Cassandra_(database)&quot;&gt;Cassandra&lt;/a&gt;, &lt;a href=&quot;https://wiki.basho.com/display/RIAK/Riak&quot;&gt;Riak&lt;/a&gt;, &lt;a href=&quot;http://en.wikipedia.org/wiki/Redis_(data_store)&quot;&gt;Redis&lt;/a&gt;, &lt;a href=&quot;http://en.wikipedia.org/wiki/Hbase&quot;&gt;HBase&lt;/a&gt;, &lt;a href=&quot;http://en.wikipedia.org/wiki/Memcachedb&quot;&gt;MemcacheDB&lt;/a&gt; and others. The basic requirements were high write throughput, sharding, replication and easy migration. Most of the products boasted high performance for writes and lots supported replication. In the end we discarded the ones that didn’t support sharding, which limited the options a lot, and we investigated the various APIs, trying to figure out what it would mean to rewrite GSS for one of these. In the end we chose Mongo for its rich query support, since it was the best fit for our problem at hand, making the transition of the existing code base easier. Although we’d love to have had the opportunity to try different ports for each of those datastores, it is most likely that we would have had to rewrite the entire server from scratch, which was not an option.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; &quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; &quot;&gt;The initial plan was to try to isolate the changes to the data access layer, essentially building a new adapter for the middle tier that would appear almost identical to the existing code. This effort was fruitless however, since we could not find satisfactory solutions for various issues, like transactions, data mapping, entity lifecycle, etc. We came to the conclusion that even if we managed to build a not-too-leaky abstraction for Mongo, it would have probably killed the performance, making the switch from PostgreSQL pointless.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; &quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; &quot;&gt;So we ditched JPA and container-managed transactions and decided to make a simpler POJO mapping to Mongo using &lt;a href=&quot;http://code.google.com/p/morphia/&quot;&gt;Morphia&lt;/a&gt;, a Java data mapper for Mongo that takes care of the nitty-gritty details and repetitive coding, for only a minor performance hit. Since Mongo only supports atomicity for a single query, we reverted to manual transaction handling and decided to ditch the EJBs that formed the backbone of GSS altogether, since they didn’t buy us anything at that point. The new GSS server would be a set of servlets, service and domain objects, wired together via &lt;a href=&quot;http://code.google.com/p/google-guice/&quot;&gt;Google Guice&lt;/a&gt;. Since we could host the new server in a plain servlet container, we went from JBoss to Jetty, which vastly reduced the server startup time from 60 seconds down to 2. As a consequence, development round-trip times went down, and coding was fast again. Lots of object copying and conversions from entities to DTOs and back again were now unnecessary, since there was no more a transaction boundary at the session bean layer. This kept memory usage low, increased cache locality and boosted performance. There are lots of interesting details about our approach, but they would be better discussed in separate blog posts. If you are interested, you can already check out the code in the gss2 branch of the GSS &lt;a href=&quot;http://code.google.com/p/gss/source/checkout&quot;&gt;repository&lt;/a&gt;.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background-color: transparent; font-family: Times; font-size: medium; &quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; &quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background-color: transparent; font-family: Times; font-size: medium; &quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: Arial; color: rgb(0, 0, 0); background-color: transparent; font-weight: normal; font-style: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; &quot;&gt;The next generation GSS server is not production ready yet, but we&#39;ll be getting there soon, and so far it has been a great ride!&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.astithas.com/feeds/6975307554232582841/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/486398466531826618/6975307554232582841' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/486398466531826618/posts/default/6975307554232582841'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/486398466531826618/posts/default/6975307554232582841'/><link rel='alternate' type='text/html' href='http://blog.astithas.com/2010/10/gsspithos-update-iphone-android-mongo.html' title='GSS/Pithos update: iPhone, Android, Mongo &amp; getting to 2.0'/><author><name>past</name><uri>http://www.blogger.com/profile/05077555675379961731</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8eB04IN53RvUYjZ8W20xD3osN5PwBqlhFQ20D2BuNi1jEouYZDtdTPmwL2ARBeAd7r9XG1-BBKUNRqy-SnW0W_gPl20iuJBzD1iVAWCmD0-sFUYVip-1YYkAdAQp4vlaDaqFjAblz0Ve7/s72-c/icon.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-486398466531826618.post-5629015476837849520</id><published>2010-02-19T22:23:00.006+02:00</published><updated>2010-02-20T00:37:50.405+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="open-source"/><category scheme="http://www.blogger.com/atom/ns#" term="software"/><category scheme="http://www.blogger.com/atom/ns#" term="startups"/><category scheme="http://www.blogger.com/atom/ns#" term="web"/><title type='text'>The Cloud Desktop</title><content type='html'>&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEik1jZ04oEXQg1Ts3GcA2PGW_LEWNA0h1XXmNijDQ5ivb0CY4aw63eDnDqEkbsB8fxn2Y6hZuRmq0vuKfEE_nKbEY_rEdcLS87WQC0wmC6DMzqdsgtOuxUi0KueRDVI18qrlVlUs70KBV0P/s1600-h/3-mnf-logo-big%5B1%5D.png&quot;&gt;&lt;img style=&quot;display:block; margin:0 10px 10px 0; text-align:center;cursor:pointer; cursor:hand; width: 400px; height: 63px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEik1jZ04oEXQg1Ts3GcA2PGW_LEWNA0h1XXmNijDQ5ivb0CY4aw63eDnDqEkbsB8fxn2Y6hZuRmq0vuKfEE_nKbEY_rEdcLS87WQC0wmC6DMzqdsgtOuxUi0KueRDVI18qrlVlUs70KBV0P/s400/3-mnf-logo-big%5B1%5D.png&quot; border=&quot;0&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5440085558867166898&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;i&gt;This was originally &lt;/i&gt;&lt;a href=&quot;http://home.mynetworkfolders.com/general/browser-days/&quot;&gt;&lt;i&gt;posted&lt;/i&gt;&lt;/a&gt;&lt;i&gt; in the mynetworkfolders.com &lt;/i&gt;&lt;a href=&quot;http://home.mynetworkfolders.com/blog/&quot;&gt;&lt;i&gt;blog&lt;/i&gt;&lt;/a&gt;&lt;i&gt;.&lt;/i&gt;&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; &quot;&gt;We live in a browser these days. &lt;a href=&quot;http://mail.google.com/&quot;&gt;E-mail&lt;/a&gt;, &lt;a href=&quot;http://docs.google.com/&quot;&gt;word-processing&lt;/a&gt;, &lt;a href=&quot;http://docs.google.com/&quot;&gt;spreadsheets&lt;/a&gt;, &lt;a href=&quot;http://www.facebook.com/&quot;&gt;chat&lt;/a&gt;, are all occupying a browser window in front of me. Maybe not for everyone yet, but the trend is clear, and has been clear for quite some time now. This is a good thing. The Web of today bears little similarity to the Web of the millennium. It&#39;s fast, it&#39;s powerful and it&#39;s ubiquitous. A consequence of that evolution is the simplicity with which I can continue my work when leaving my Linux workstation at work and sit in front of my Mac at home. Since my applications are web-based, they are OS- and browser-agnostic. More importantly, my data are always there when I need them. Readily accessible from my desktop, laptop or mobile phone. I may keep local backups for archival purposes, but my master copies are always online.&lt;/div&gt;&lt;br /&gt;&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; &quot;&gt;Assuming this trend is indeed inescapable, one can&#39;t help but wonder: what are the applications that have not migrated to the cloud, yet? What kind of things would I like to do online, seamlessly, from every device I own? What are the barriers that make our current online experience less powerful than the desktop one?&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; &quot;&gt;One thing that we noticed was missing from the online desktop, was the... desktop! Yes, my spreadsheets are online. Sure, my pictures are online. Yes, I can upload arbitrary files in various storage services. But, I couldn&#39;t find a way to use a familiar file manager interface to work with my data in the cloud, as I do on my computer. This was the need we decided to fulfill with &lt;a href=&quot;http://home.mynetworkfolders.com/&quot;&gt;MyNetworkFolders&lt;/a&gt;.&lt;/div&gt;&lt;br /&gt;&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; &quot;&gt;MyNetworkFolders attempts to provide an answer to the question: how would my desktop look in the cloud? And even though we are nowhere near done yet, the results so far are exciting and very promising.&lt;/div&gt;&lt;br /&gt;&lt;img style=&quot;display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 249px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZDTBDWuVsrkuweCGrRMNGbAY0aOtLk3eXp_LOev-AaYWhAu72uPAnUpoPvyezqT5DztO6gQJGslRGU0j7fzGplpkxIDe6fTkUJNdgh_4vbNGC_4Y0s8q6dVen9s9XaybftZ0KDv6dENoK/s400/mnf-desktop.png&quot; border=&quot;0&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5440062730084709970&quot; /&gt;MyNetworkFolders offers a familiar file manager &lt;a href=&quot;http://home.mynetworkfolders.com/tour/&quot;&gt;interface&lt;/a&gt; for my cloud storage needs, with &lt;a href=&quot;http://home.mynetworkfolders.com/features/&quot;&gt;advanced functionality&lt;/a&gt; and ease of use. Documents can be viewed, modified, searched or sent to the trash. They can be shared with other users or among the members of a group using flexible ACLs, or even be publicly accessible from the whole internet. They can be versioned for tracking changes more effectively. The service can be accessed from a variety of ways, including a web browser, a desktop client, a WebDAV network share or (really soon) a mobile phone. But most importantly, there is no vendor lock-in. There is a REST-like API available, battle-tested from all the above client implementations, giving everyone the opportunity to access his data in his own particular way. Or even get them out of our service altogether.&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; &quot;&gt;Oh, and one other thing. It&#39;s all based on open-source software. The &lt;a href=&quot;http://code.google.com/p/gss/&quot;&gt;core&lt;/a&gt; infrastructure, the &lt;a href=&quot;http://code.google.com/p/gss/&quot;&gt;various&lt;/a&gt; &lt;a href=&quot;http://code.google.com/p/mnf-desktop/&quot;&gt;clients&lt;/a&gt; we have built, even API &lt;a href=&quot;http://code.google.com/p/gss/wiki/APIClients&quot;&gt;helpers&lt;/a&gt; in various programming languages, are all available for anyone and everyone to see, use and modify. Or maybe used to setup and run YourNetworkFolders, if you feel really ambitious.&lt;/div&gt;&lt;br /&gt;&lt;div style=&quot;margin-top: 0px; margin-bottom: 0px; &quot;&gt;If however you just want a true desktop environment, with unparalleled flexibility, and maybe also see how far the cloud desktop rabbit-hole goes, then come along. It&#39;s going to be an exciting ride.&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.astithas.com/feeds/5629015476837849520/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/486398466531826618/5629015476837849520' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/486398466531826618/posts/default/5629015476837849520'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/486398466531826618/posts/default/5629015476837849520'/><link rel='alternate' type='text/html' href='http://blog.astithas.com/2010/02/cloud-desktop.html' title='The Cloud Desktop'/><author><name>past</name><uri>http://www.blogger.com/profile/05077555675379961731</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEik1jZ04oEXQg1Ts3GcA2PGW_LEWNA0h1XXmNijDQ5ivb0CY4aw63eDnDqEkbsB8fxn2Y6hZuRmq0vuKfEE_nKbEY_rEdcLS87WQC0wmC6DMzqdsgtOuxUi0KueRDVI18qrlVlUs70KBV0P/s72-c/3-mnf-logo-big%5B1%5D.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-486398466531826618.post-3460608531914453116</id><published>2009-12-07T23:50:00.002+02:00</published><updated>2015-07-26T18:04:52.710+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="business"/><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><category scheme="http://www.blogger.com/atom/ns#" term="JavaScript"/><category scheme="http://www.blogger.com/atom/ns#" term="programming"/><category scheme="http://www.blogger.com/atom/ns#" term="startups"/><category scheme="http://www.blogger.com/atom/ns#" term="web"/><title type='text'>Lessons from Startup Weekend</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhynsC1Vc58R0xC45D_917sv4RyUVxhr-EmY2vEtCnIqB717EWlkrUS2BngGxsk4D2kbYi5iFtBn-QjaDJQWbRRz3u0Eg9ZF3FzMvptQZ8Y6ycOxJK87ZRP8IHT2z82ZB52X_4KOglXEe72/s1600-h/newspeek3.png&quot; onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5412611316146107234&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhynsC1Vc58R0xC45D_917sv4RyUVxhr-EmY2vEtCnIqB717EWlkrUS2BngGxsk4D2kbYi5iFtBn-QjaDJQWbRRz3u0Eg9ZF3FzMvptQZ8Y6ycOxJK87ZRP8IHT2z82ZB52X_4KOglXEe72/s400/newspeek3.png&quot; style=&quot;cursor: pointer; float: left; height: 64px; margin: 0pt 10px 10px 0pt; width: 64px;&quot; /&gt;&lt;/a&gt;I had an exhausting but fun weekend at the &lt;a href=&quot;http://athens.startupweekend.org/&quot;&gt;Athens Startup Weekend&lt;/a&gt; a few days ago. Along with &lt;a href=&quot;http://chstath.blogspot.com/&quot;&gt;Christos&lt;/a&gt; I joined Yannis, Panagiotis Christakos and Babis Makrinikolas on the Newspeek project. When Yannis pitched the idea on Friday night, the main concept was to create a mobile phone application that would provide a better way to view news on the go. I don&#39;t believe it was very clear in his mind then, what would constitute a &quot;better&quot; experience, but after some chatting about it we all defined a few key aspects, which we refined later with lots of useful feedback and help from &lt;a href=&quot;http://gtziralis.com/&quot;&gt;George&lt;/a&gt;. Surprisingly, for me at least, in only two days we managed to design, build and present a working prototype in front of the judges and the other teams. And even though the demo wasn&#39;t exactly on par with our accomplishments, I&#39;m still amazed at what can be created in such a short time frame. &lt;br /&gt;
&lt;div&gt;
&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5412611677030345106&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOY6hUKVT7DZAm8eAwNdg5zG5oQvOFBiLjOqgCjAm7Gli7relCrvFNNy_Mg0bQ26upkgSOt8ogZanrupUva_I4WK0ruYVmy5gB9aq5XG1dyDkVHOxuNeqe08ZctQu2xa6-xrnl2spoGJeL/s400/newspeek2.png&quot; style=&quot;cursor: pointer; display: block; height: 400px; margin: 0pt auto 10px; text-align: center; width: 213px;&quot; /&gt;&lt;/div&gt;
&lt;div&gt;
Newspeek, our product, had a server-side component that periodically collected news items from various news feeds, stored them and provided them to clients through a simple REST API. It also had an iPhone client that fetched the news items and presented them to the user in a way that respected the UI requirements and established UX norms for that device.&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5412611487211660002&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQJppyV-J10lewwX410q7x2LvsgFl7NGaAv0sHeiTC6YPtIeJ_BaUhr4_t7w5IBVPlam6eTKLftXIlaw0G-j1kv_hqJwE-ZykybbpQ6QmBrTtSatSaJVzgEJQ9onQli5vT01E9L1G16y6P/s400/newspeek1.png&quot; style=&quot;cursor: pointer; display: block; height: 400px; margin: 0pt auto 10px; text-align: center; width: 215px;&quot; /&gt;&lt;/div&gt;
&lt;div&gt;
So, in the interest of informing future participants about what works and what doesn&#39;t work in Startup Weekend, here are the lessons I learned:&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ol&gt;
&lt;li&gt;&lt;b&gt;If you plan to win, work on the business aspect, not on the technology&lt;/b&gt;. Personally, I didn&#39;t go to ASW with plans to create a startup, so I didn&#39;t care that much about winning. I mostly considered the event as a hackathon, and tried my best to end up with a working prototype. Other teams focused more on the business side of things, which is understandable, given the prize. Investors fund teams that have a good chance to return a profit, not the ones with cool technology and (mostly) working demos. Still, the small number of actual working prototypes was a disappointment for me. Even though the developers were the majority in the event, you obviously can&#39;t have too many of them in a Startup Weekend.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;For quick server-side prototyping and hosting, &lt;/b&gt;&lt;a href=&quot;http://code.google.com/appengine/&quot;&gt;&lt;b&gt;Google App Engine&lt;/b&gt;&lt;/a&gt;&lt;b&gt; is your friend&lt;/b&gt;. Since everyone in the team had Java experience, we could have gone with a JavaEE solution and set up a dedicated server to host the site. But, since I&#39;ve always wanted to try App Engine for Java and the service architecture mapped nicely to it, we tried a short experiment to see if it could fly. We built a stub service in just a few minutes, so we decided it was well worth it. Building our RESTful service was really fast, scalability was never a concern and the deployment solution was a godsend, since the hosting service provided for free by the event sponsors was evidently overloaded. We&#39;re definitely going to use it again for other projects.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;jQTouch rocks&lt;/b&gt;! Since our main deliverable would be an iPhone application, and there were only two of us who had ever built an iPhone application (of the Hello World variety), we knew we had a problem. Fortunately, I had followed the jQTouch development from a reasonable distance and had &lt;a href=&quot;http://ajaxian.com/archives/jqtouch-releases-new-version-of-mobile-goodness&quot;&gt;witnessed&lt;/a&gt; &lt;a href=&quot;http://ajaxian.com/archives/jqtouch-a-mobile-webkit-javascript-framework&quot;&gt;the&lt;/a&gt; &lt;a href=&quot;http://twitter.com/joehewitt/status/5906794560&quot;&gt;good&lt;/a&gt; &lt;a href=&quot;http://twitter.com/joehewitt/status/5907177503&quot;&gt;things&lt;/a&gt; people had to say, so I pitched the idea of a web application to the team and it was well received. iPhone applications built with web technologies and &lt;a href=&quot;http://www.jqtouch.com/&quot;&gt;jQTouch&lt;/a&gt; can be almost indistinguishable from native ones. We all had some experience in building web applications, so the prospect of having a working prototype in only two days seemed within the realm of possibility again. The future option of packaging the application with &lt;a href=&quot;http://phonegap.com/&quot;&gt;PhoneGap&lt;/a&gt; and selling it in the App Store was also a bonus point for our modest business plan. &lt;/li&gt;
&lt;li&gt;&lt;b&gt;For ad-hoc collaboration, Mercurial wins&lt;/b&gt;. Without time to set up central repositories, a DVCS was the obvious choice, and Mercurial has both &lt;a href=&quot;http://mercurial.selenic.com/wiki/Bundle&quot;&gt;bundles&lt;/a&gt; and a standalone &lt;a href=&quot;http://mercurial.selenic.com/wiki/Serve&quot;&gt;server&lt;/a&gt; that make collaborative coding a breeze. If we had zeroconf/bonjour set up in all of our laptops, we would have used the &lt;a href=&quot;http://mercurial.selenic.com/wiki/ZeroconfExtension&quot;&gt;zeroconf&lt;/a&gt; extension for dead easy machine lookup, but even without it things worked flawlessly.&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;You can write code with a netbook&lt;/span&gt;. Since I haven&#39;t owned a laptop for the last three years, my only portable computer is an Asus EEE PC 901 &lt;a href=&quot;http://astithas.blogspot.com/2009/06/ubuntu-on-eee-pc.html&quot;&gt;running Linux&lt;/a&gt;. Its original purpose was to allow me to browse the web from the comfort of my couch. Lately however, I&#39;m finding myself using it to write software more than anything else. During the Startup Weekend it had constantly open Eclipse (for server-side code), Firefox (for JavaScript debugging), Chrome (for webkit rendering), gedit (for client-side code) and a terminal, without breaking a sweat.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;When demoing an iPhone application, whatever you do, don&#39;t sweat&lt;/b&gt;. Half-way through our presentation, tapping the buttons didn&#39;t work reliably all the time, so anxiety ensued. Since we couldn&#39;t make a proper presentation due to a missing cable, we opted for a live demo, wherein Yannis held the mic and made the presentation, and I posed as the bimbo that holds the product and clicks around. After a while we ended up both touching the screen, trying to make the bloody buttons click, which ensured the opposite effect. In retrospect, using a cloth occasionally would have made for a smoother demo, plus we could have slipped a joke in there, to keep the spirit up.&lt;/li&gt;
&lt;/ol&gt;
All in all it was an awesome experience, where we learned how far we can stretch ourselves, made new friends and caught up with old ones. Next year, I&#39;ll make sure I have a napkin, too.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://blog.astithas.com/feeds/3460608531914453116/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/486398466531826618/3460608531914453116' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/486398466531826618/posts/default/3460608531914453116'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/486398466531826618/posts/default/3460608531914453116'/><link rel='alternate' type='text/html' href='http://blog.astithas.com/2009/12/lessons-from-startup-weekend.html' title='Lessons from Startup Weekend'/><author><name>past</name><uri>http://www.blogger.com/profile/05077555675379961731</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhynsC1Vc58R0xC45D_917sv4RyUVxhr-EmY2vEtCnIqB717EWlkrUS2BngGxsk4D2kbYi5iFtBn-QjaDJQWbRRz3u0Eg9ZF3FzMvptQZ8Y6ycOxJK87ZRP8IHT2z82ZB52X_4KOglXEe72/s72-c/newspeek3.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-486398466531826618.post-7763781294935709117</id><published>2009-08-20T14:06:00.002+03:00</published><updated>2009-08-25T00:41:55.023+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="JavaScript"/><category scheme="http://www.blogger.com/atom/ns#" term="open-source"/><category scheme="http://www.blogger.com/atom/ns#" term="programming"/><category scheme="http://www.blogger.com/atom/ns#" term="software"/><title type='text'>Spell-checking in JavaScript</title><content type='html'>I just heard of &lt;a href=&quot;http://www.codinghorror.com/blog/archives/000913.html&quot;&gt;Atwood&#39;s Law&lt;/a&gt; a few days ago. Apparently &lt;a href=&quot;http://www.codinghorror.com/&quot;&gt;Jeff Atwood&lt;/a&gt; first published his discovery a couple of years ago, which is like a century in Internet time, but I can&#39;t keep up with everything. The Law states that &quot;any application that &lt;i&gt;can&lt;/i&gt; be written in JavaScript, &lt;i&gt;will&lt;/i&gt; eventually be written in JavaScript&quot;. As Atwood explains, it is based on Tim Berners-Lee&#39;s &lt;a href=&quot;http://www.w3.org/DesignIssues/Principles.html&quot;&gt;Principle Of Least Power&lt;/a&gt;:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;Computer Science spent the last forty years making languages which were as powerful as possible. Nowadays we have to appreciate the reasons for &lt;b&gt;picking not the most powerful solution but the &lt;i&gt;least&lt;/i&gt; powerful&lt;/b&gt;. The less powerful the language, the more you can do with the data stored in that language.&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;I think there is a common theme between Atwood&#39;s Law, &lt;a href=&quot;http://en.wikipedia.org/wiki/Zawinski%27s_law_of_software_envelopment#Quotes&quot;&gt;Zawinski&#39;s Law&lt;/a&gt; (&quot;Every program attempts to expand until it can read &lt;a href=&quot;http://en.wikipedia.org/wiki/E-mail&quot; title=&quot;E-mail&quot;&gt;mail&lt;/a&gt;. Those programs which cannot so expand are replaced by ones which can&quot;) and &lt;a href=&quot;http://en.wikipedia.org/wiki/Greenspun%27s_Tenth_Rule&quot;&gt;Greenspun&#39;s Tenth Rule&lt;/a&gt; (&quot;Any sufficiently complicated &lt;a href=&quot;http://en.wikipedia.org/wiki/C_%28programming_language%29&quot; title=&quot;C (programming language)&quot;&gt;C&lt;/a&gt; or &lt;a href=&quot;http://en.wikipedia.org/wiki/Fortran&quot; title=&quot;Fortran&quot;&gt;Fortran&lt;/a&gt; program contains an ad hoc, informally-specified, &lt;a href=&quot;http://en.wikipedia.org/wiki/Computer_bug&quot; title=&quot;Computer bug&quot; class=&quot;mw-redirect&quot;&gt;bug-ridden&lt;/a&gt;, slow implementation of half of &lt;a href=&quot;http://en.wikipedia.org/wiki/Common_Lisp&quot; title=&quot;Common Lisp&quot;&gt;Common Lisp&lt;/a&gt;&quot;). The inevitability of the specified outcome makes the world seem like a much simpler place. There is no need to argue. Believe and ye shall be redeemed.&lt;br /&gt;&lt;br /&gt;I might have been in this state of mind, when I came across Peter Norvig&#39;s &quot;&lt;a href=&quot;http://norvig.com/spell-correct.html&quot;&gt;How to Write a Spelling Corrector&lt;/a&gt;&quot;, because I knew instantly I had to port the algorithm to JavaScript. The algorithm is quite simple and has already been ported to many different languages, so I seized the opportunity to study the differences in expressiveness, performance and style, between these languages and my latest affection, JavaScript.&lt;br /&gt;&lt;br /&gt;After a few night&#39;s work I have it working and free (as in beer &lt;span style=&quot;font-style: italic;&quot;&gt;and&lt;/span&gt; speech) for anyone to use. Check out the &lt;a href=&quot;http://github.com/past/speller/tree/master&quot;&gt;speller&lt;/a&gt; project on GitHub. If you want to understand how the algorithm works, you should go and read Norvig&#39;s &lt;a href=&quot;http://norvig.com/spell-correct.html&quot;&gt;article&lt;/a&gt;,  although you might get some hints from the &lt;a href=&quot;http://github.com/past/speller/raw/master/lib/speller.js&quot;&gt;comments&lt;/a&gt; in my code. The modestly condensed version of the code is 53 lines:&lt;br /&gt;&lt;br /&gt;&lt;pre class=&quot;brush: js&quot;&gt;&lt;br /&gt;var speller = {};&lt;br /&gt;speller.train = function (text) {&lt;br /&gt;  var m;&lt;br /&gt;  while ((m = /[a-z]+/g.exec(text.toLowerCase()))) {&lt;br /&gt;    speller.nWords[m[0]] = speller.nWords.hasOwnProperty(m[0]) ? speller.nWords[m[0]] + 1 : 1;&lt;br /&gt;  }&lt;br /&gt;};&lt;br /&gt;speller.correct = function (word) {&lt;br /&gt;  if (speller.nWords.hasOwnProperty(word)) return word;&lt;br /&gt;  var candidates = {}, list = speller.edits(word);&lt;br /&gt;  list.forEach(function (edit) {&lt;br /&gt;    if (speller.nWords.hasOwnProperty(edit)) candidates[speller.nWords[edit]] = edit;&lt;br /&gt;  });&lt;br /&gt;  if (speller.countKeys(candidates) &amp;gt; 0) return candidates[speller.max(candidates)];&lt;br /&gt;  list.forEach(function (edit) {&lt;br /&gt;    speller.edits(edit).forEach(function (w) {&lt;br /&gt;      if (speller.nWords.hasOwnProperty(w)) candidates[speller.nWords[w]] = w;&lt;br /&gt;    });&lt;br /&gt;  });&lt;br /&gt;  return speller.countKeys(candidates) &amp;gt; 0 ? candidates[speller.max(candidates)] : word;&lt;br /&gt;};&lt;br /&gt;speller.nWords = {};&lt;br /&gt;speller.countKeys = function (object) {&lt;br /&gt;  var attr, count = 0;&lt;br /&gt;  for (attr in object)&lt;br /&gt;    if (object.hasOwnProperty(attr))&lt;br /&gt;      count++;&lt;br /&gt;  return count;&lt;br /&gt;};&lt;br /&gt;speller.max = function (candidates) {&lt;br /&gt;  var candidate, arr = [];&lt;br /&gt;  for (candidate in candidates)&lt;br /&gt;    if (candidates.hasOwnProperty(candidate))&lt;br /&gt;      arr.push(candidate);&lt;br /&gt;  return Math.max.apply(null, arr);&lt;br /&gt;};&lt;br /&gt;speller.letters = &quot;abcdefghijklmnopqrstuvwxyz&quot;.split(&quot;&quot;);&lt;br /&gt;speller.edits = function (word) {&lt;br /&gt;  var i, results = [];&lt;br /&gt;  for (i=0; i &amp;lt; word.length; i++)&lt;br /&gt;    results.push(word.slice(0, i) + word.slice(i+1));&lt;br /&gt;  for (i=0; i &amp;lt; word.length-1; i++)&lt;br /&gt;    results.push(word.slice(0, i) + word.slice(i+1, i+2) + word.slice(i, i+1) + word.slice(i+2));&lt;br /&gt;  for (i=0; i &amp;lt; word.length; i++)&lt;br /&gt;    speller.letters.forEach(function (l) {&lt;br /&gt;      results.push(word.slice(0, i) + l + word.slice(i+1));&lt;br /&gt;    });&lt;br /&gt;  for (i=0; i &amp;lt;= word.length; i++)&lt;br /&gt;    speller.letters.forEach(function (l) {&lt;br /&gt;      results.push(word.slice(0, i) + l + word.slice(i));&lt;br /&gt;    });&lt;br /&gt;  return results;&lt;br /&gt;};&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;It may not be as succinct as Norvig&#39;s Python version (21 lines), or the record-holding Awk and F# versions (15 lines), but is much better than C (184 lines), C++, Perl, PHP, Rebol and Erlang. There is even a Java version with 372 lines. It must contain some sort of spell-checking framework in there, or something. The condensed version above, although correct, has terrible performance in most JavaScript engines, however. For real-world use you should pick the &lt;a href=&quot;http://github.com/past/speller/raw/master/lib/speller.js&quot;&gt;regular&lt;/a&gt; version which may be slightly longer, but performs &lt;span style=&quot;font-style: italic;&quot;&gt;much&lt;/span&gt; better.&lt;br /&gt;&lt;br /&gt;Since this was a toy project of mine, I wanted to play with &lt;a href=&quot;https://wiki.mozilla.org/ServerJS&quot;&gt;ServerJS&lt;/a&gt; modules as well, in order to run it as a shell script. I turned the code into a securable module, so you can run it from the command line, using &lt;a href=&quot;http://www.narwhaljs.org/&quot;&gt;narwhal&lt;/a&gt;. I have a &lt;a href=&quot;http://github.com/past/speller/raw/master/bin/spellcheck&quot;&gt;couple&lt;/a&gt; &lt;a href=&quot;http://github.com/past/speller/raw/master/tests/test&quot;&gt;of scripts&lt;/a&gt; to that end. Of course since this is JavaScript, you can try it from your browser, by visiting the &lt;a href=&quot;http://past.github.com/speller/&quot;&gt;demo&lt;/a&gt; page, courtesy of GitHub Pages. Be sure to use a modern browser, like Firefox 3.5, Safari 4 or Chrome 3 (beta), otherwise you won&#39;t be able to run the test suite, since I used the brand-new &lt;a href=&quot;http://www.whatwg.org/specs/web-workers/current-work/&quot;&gt;Web Workers&lt;/a&gt; to make the long-running tasks run in the background.&lt;br /&gt;&lt;br /&gt;Norvig&#39;s Python implementation took 16 seconds for test 1 and the best I got was 25 seconds with Safari 4 on my Mac. Narwhal is using &lt;a href=&quot;http://www.mozilla.org/rhino/&quot;&gt;Rhino&lt;/a&gt; by default, so it is definitely not competitive in such tests (139 seconds), but I&#39;m planning to fix support for &lt;a href=&quot;http://code.google.com/p/v8cgi/&quot;&gt;v8cgi&lt;/a&gt; and give that a try.&lt;br /&gt;&lt;br /&gt;And it goes without saying that I&#39;d love to hear about ways to improve the performance or the conciseness of the code. If you have any ideas, don&#39;t be shy, leave a comment or even better fork the code and send me a pull request on GitHub.</content><link rel='replies' type='application/atom+xml' href='http://blog.astithas.com/feeds/7763781294935709117/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/486398466531826618/7763781294935709117' title='9 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/486398466531826618/posts/default/7763781294935709117'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/486398466531826618/posts/default/7763781294935709117'/><link rel='alternate' type='text/html' href='http://blog.astithas.com/2009/08/spell-checking-in-javascript.html' title='Spell-checking in JavaScript'/><author><name>past</name><uri>http://www.blogger.com/profile/05077555675379961731</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>9</thr:total></entry><entry><id>tag:blogger.com,1999:blog-486398466531826618.post-7272064534739273552</id><published>2009-07-07T16:23:00.001+03:00</published><updated>2009-07-08T01:43:55.464+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="gss"/><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><category scheme="http://www.blogger.com/atom/ns#" term="JavaScript"/><category scheme="http://www.blogger.com/atom/ns#" term="open-source"/><category scheme="http://www.blogger.com/atom/ns#" term="programming"/><category scheme="http://www.blogger.com/atom/ns#" term="software"/><category scheme="http://www.blogger.com/atom/ns#" term="web"/><title type='text'>GSS authentication</title><content type='html'>As I&#39;ve described &lt;a href=&quot;http://astithas.blogspot.com/2009/04/introduction-to-gss-api.html&quot;&gt;before&lt;/a&gt;, the &lt;a href=&quot;http://code.google.com/p/gss/wiki/API&quot;&gt;GSS API&lt;/a&gt; is a REST-like interface for interacting with a GSS-based service, like &lt;a href=&quot;http://pithos.grnet.gr/&quot;&gt;Pithos&lt;/a&gt;. Using regular HTTP commands a client can upload, download, browse and modify files and folders stored in the GSS server. These interactions have two important properties: they store no client state to the server and they are not encrypted. I have &lt;a href=&quot;http://astithas.blogspot.com/2009/04/introduction-to-gss-api.html&quot;&gt;already&lt;/a&gt; mentioned the most important benefits from the stateless architecture of the GSS protocol, namely scalability and loose coupling along the client-server boundary. In the same line of thought, SSL/TLS encryption of the transport was avoided for &lt;a href=&quot;http://astithas.blogspot.com/2009/04/gss-architecture.html&quot;&gt;scalability reasons&lt;/a&gt;. Consequently, these two properties of the communication protocol, lead to another requirement: message authentication for each API call.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Since no session state is stored in the server, the client must authenticate each request as if it were the first one. Traditional web applications use an initial authentication interaction between client and server, that creates a unique session ID, which is transmitted with each subsequent request in that same session. While using this ID, the client does not need to authenticate again to the server. Stateless protocols, like &lt;a href=&quot;http://webdav.org/&quot;&gt;WebDAV&lt;/a&gt; for instance, cannot rely on such an ID and have to transmit authentication data in each call. Ultimately the tradeoff is a minor increase in the message payload, in return for a big boost in scalability. The HTTP specification &lt;a href=&quot;http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.8&quot;&gt;defines&lt;/a&gt; an Authorization header for use in such cases and WebDAV uses the &lt;a href=&quot;http://www.ietf.org/rfc/rfc2617.txt&quot;&gt;HTTP Digest Access Authentication&lt;/a&gt; scheme. The GSS API uses a slight variation in that theme, blended with some ideas from &lt;a href=&quot;http://oauth.net/core/1.0a#signing_process&quot;&gt;OAuth request signing&lt;/a&gt;.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Essentially the standard HTTP Authorization header is populated with a concatenation of the username (for identifying the user making the request) and a &lt;a href=&quot;http://en.wikipedia.org/wiki/HMAC&quot;&gt;HMAC-SHA1&lt;/a&gt; signature of the request. The request signature is obtained by applying a secret authentication token to a concatenated string of the HTTP method name, the date and time of the request and the actual requested path. The GSS API &lt;a href=&quot;http://code.google.com/p/gss/wiki/API&quot;&gt;page&lt;/a&gt; has all the details. The inclusion of the date and time helps thwart replay attacks using a previously sniffed signature. Furthermore, a separate header with timestamp information, X-GSS-Date, is used to thwart replay attacks with a full copy of the payload. The authentication token is issued securely by the server to the client and is the time-limited secret that is shared between the client and server. Since it is not the user password that is used as a shared secret, were the authentication token to be compromised, any ill effects would have been limited to the time period the token was valid. There are two ways for client applications to obtain the user&#39;s authentication token, and they are both described in detail in the API documentation.&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;br /&gt;&lt;div&gt;In my experience, protocol descriptions are one thing and working code is a totally different one. In that spirit, I&#39;m closing this post with a few tested implementations of the GSS API signature calculation, for client applications in different languages. Here is the method for signing a GSS API request in Java (full code &lt;a href=&quot;http://code.google.com/p/gss/source/browse/test/gr/ebs/gss/client/TestClient.java&quot;&gt;here&lt;/a&gt;):&lt;br /&gt;&lt;br /&gt;&lt;pre class=&quot;brush: java&quot;&gt;&lt;br /&gt;public static String sign(String httpMethod, String timestamp,&lt;br /&gt;        String path, String token) {&lt;br /&gt;  String input = httpMethod + timestamp + path;&lt;br /&gt;  String signed = null;&lt;br /&gt;&lt;br /&gt;  try {&lt;br /&gt;    System.err.println(&quot;Token:&quot; + token);&lt;br /&gt;    // Get an HMAC-SHA1 key from the authentication token.&lt;br /&gt;    System.err.println(&quot;Input: &quot; + input);&lt;br /&gt;    SecretKeySpec signingKey = new SecretKeySpec(&lt;br /&gt;        Base64.decodeBase64(token.getBytes()), &quot;HmacSHA1&quot;);&lt;br /&gt;&lt;br /&gt;    // Get an HMAC-SHA1 Mac instance and initialize with the signing key.&lt;br /&gt;    Mac hmac = Mac.getInstance(&quot;HmacSHA1&quot;);&lt;br /&gt;    hmac.init(signingKey);&lt;br /&gt;&lt;br /&gt;    // Compute the HMAC on the input data bytes.&lt;br /&gt;    byte[] rawMac = hmac.doFinal(input.getBytes());&lt;br /&gt;&lt;br /&gt;    // Do base 64 encoding.&lt;br /&gt;    signed = new String(Base64.encodeBase64(rawMac), &quot;US-ASCII&quot;);&lt;br /&gt;&lt;br /&gt;  } catch (InvalidKeyException ikex) {&lt;br /&gt;    System.err.println(&quot;Fatal key exception: &quot; + ikex.getMessage());&lt;br /&gt;    ikex.printStackTrace();&lt;br /&gt;  } catch (UnsupportedEncodingException ueex) {&lt;br /&gt;    System.err.println(&quot;Fatal encoding exception: &quot;&lt;br /&gt;                + ueex.getMessage());&lt;br /&gt;  } catch (NoSuchAlgorithmException nsaex) {&lt;br /&gt;    System.err.println(&quot;Fatal algorithm exception: &quot;&lt;br /&gt;                + nsaex.getMessage());&lt;br /&gt;    nsaex.printStackTrace();&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  if (signed == null)&lt;br /&gt;    System.exit(-1);&lt;br /&gt;  System.err.println(&quot;Signed: &quot; + signed);&lt;br /&gt;  return signed;&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Here is a method for signing GSS API requests in JavaScript, that uses the SHA-1 JavaScript &lt;a href=&quot;http://pajhome.org.uk/crypt/md5/sha1.html&quot;&gt;implementation&lt;/a&gt; by Paul Johnston (full code &lt;a href=&quot;http://github.com/past/igss/raw/master/iGSS.dcproj/project/gss.js&quot;&gt;here&lt;/a&gt;):&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;pre class=&quot;brush: js&quot;&gt;&lt;br /&gt;function sign(method, time, resource, token) {&lt;br /&gt;  var q = resource.indexOf(&#39;?&#39;);&lt;br /&gt;  var res = q == -1? resource: resource.substring(0, q);&lt;br /&gt;  var data = method + time + res;&lt;br /&gt;  // Use strict RFC compliance&lt;br /&gt;  b64pad = &quot;=&quot;;&lt;br /&gt;  return b64_hmac_sha1(atob(token), data);&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Here is a Tcl implementation by Alexios Zavras (full code &lt;a href=&quot;http://gssc.svn.sourceforge.net/viewvc/gssc/gssc.vfs/lib/rest/sign.tcl?view=markup&quot;&gt;here&lt;/a&gt;):&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;pre class=&quot;brush: shell&quot;&gt;&lt;br /&gt;proc ::rest::_sign {id} {&lt;br /&gt;  variable $id&lt;br /&gt;  upvar 0 $id data&lt;br /&gt;  set str2sign &quot;&quot;&lt;br /&gt;  append str2sign $data(method)&lt;br /&gt;  append str2sign $data(date)&lt;br /&gt;  set idx [string first ? $data(path)]&lt;br /&gt;  if {$idx &amp;lt; 0} {&lt;br /&gt;    set str $data(path)&lt;br /&gt;  } else {&lt;br /&gt;    incr idx -1&lt;br /&gt;    set str [string range $data(path) 0 $idx]&lt;br /&gt;  }&lt;br /&gt;  # append str2sign [::util::url::encode $str]&lt;br /&gt;  append str2sign $str&lt;br /&gt;  puts &quot;SIGN $str2sign&quot;&lt;br /&gt;  set sig [::base64::encode [::sha1::hmac -bin -key $::GG(gsstoken) $str2sign]]&lt;br /&gt;  set data(signature) $sig&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;I&#39;d love to show implementations of the signature calculation for other languages as well, but since my time is scarce these days, I could use some help here. If you&#39;ve written one yourself and you&#39;d like to share, leave a comment and I&#39;ll update this post, with proper attribution of course.&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.astithas.com/feeds/7272064534739273552/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/486398466531826618/7272064534739273552' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/486398466531826618/posts/default/7272064534739273552'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/486398466531826618/posts/default/7272064534739273552'/><link rel='alternate' type='text/html' href='http://blog.astithas.com/2009/07/gss-authentication.html' title='GSS authentication'/><author><name>past</name><uri>http://www.blogger.com/profile/05077555675379961731</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-486398466531826618.post-1372264105244185506</id><published>2009-06-17T19:25:00.004+03:00</published><updated>2009-06-18T01:49:41.369+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="databases"/><category scheme="http://www.blogger.com/atom/ns#" term="gss"/><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><category scheme="http://www.blogger.com/atom/ns#" term="programming"/><category scheme="http://www.blogger.com/atom/ns#" term="software"/><title type='text'>Retrying transactions with exponential backoff</title><content type='html'>The method I described in my previous post about &lt;a href=&quot;http://astithas.blogspot.com/2009/06/retrying-transactions-in-java.html&quot;&gt;retrying transactions&lt;/a&gt; could use some improvement. A deficiency that will only become relevant in highly congested servers is the constant retry interval. When two or more transactions try to commit at the same time and fail, with the code from the last post they will retry probably simultaneously again. Random runtime events (like process/thread scheduler decisions, JIT compiler invocations, etc.) might help avoid collisions, but in general the collided transactions may well collide again. And again. And then again, until the specified maximum number of retries is reached.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The general method to alleviate such problems is to randomize the retry intervals. The most well-known algorithm in this category is called &lt;a href=&quot;http://en.wikipedia.org/wiki/Exponential_backoff&quot;&gt;exponential backoff&lt;/a&gt;. This is one way to implement it for the utility method in my previous post (full code in &lt;a href=&quot;http://code.google.com/p/gss/source/browse/src/gr/ebs/gss/server/rest/TransactionHelper.java&quot;&gt;gss&lt;/a&gt;):&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;pre class=&quot;brush: java&quot;&gt;&lt;br /&gt;public T tryExecute(final Callable&amp;lt;T&amp;gt; command) throws Exception {&lt;br /&gt;  T returnValue = null;&lt;br /&gt;  // Schedule a Future task to call the command after delay milliseconds.&lt;br /&gt;  int delay = 0;&lt;br /&gt;  ScheduledExecutorService executor = Executors.newScheduledThreadPool(1);&lt;br /&gt;  for (int i = 0; i &amp;lt; TRANSACTION_RETRIES; i++) {&lt;br /&gt;    final int retry = i;&lt;br /&gt;    ScheduledFuture&amp;lt;T&amp;gt; future = executor.schedule(new Callable&amp;lt;T&amp;gt;() {&lt;br /&gt;&lt;br /&gt;      @Override&lt;br /&gt;      public T call() throws Exception {&lt;br /&gt;        return command.call();&lt;br /&gt;      }&lt;br /&gt;    }, delay, TimeUnit.MILLISECONDS);&lt;br /&gt;&lt;br /&gt;    try {&lt;br /&gt;      returnValue = future.get();&lt;br /&gt;      break;&lt;br /&gt;    } catch (ExecutionException e) {&lt;br /&gt;      Throwable cause = e.getCause();&lt;br /&gt;      if (!(cause instanceof EJBTransactionRolledbackException) ||&lt;br /&gt;          retry == TRANSACTION_RETRIES - 1) {&lt;br /&gt;        executor.shutdownNow();&lt;br /&gt;        throw new Exception(cause);&lt;br /&gt;      }&lt;br /&gt;      delay = MIN_TIMEOUT + (int) (MIN_TIMEOUT * Math.random() * (i + 1));&lt;br /&gt;      String origCause = cause.getCause() == null ?&lt;br /&gt;          cause.getClass().getName() :&lt;br /&gt;          cause.getCause().getClass().getName();&lt;br /&gt;      logger.info(&quot;Transaction retry #&quot; + (i+1) + &quot; scheduled in &quot; + delay +&lt;br /&gt;          &quot; msec due to &quot; + origCause);&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;  }&lt;br /&gt;  executor.shutdownNow();&lt;br /&gt;  return returnValue;&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;The notable changes in this version are the delayed invocations of the Callable and the retry interval calculation. The former is accomplished using a &lt;a href=&quot;http://java.sun.com/j2se/1.5.0/docs/api/java/util/concurrent/ScheduledFuture.html&quot;&gt;ScheduledFuture&lt;/a&gt; from the excellent utilities in java.util.concurrent, which gets executed after a random time period. The interval calculation is something that can be implemented in a number of ways, either with monotonically increasing intervals or not. I opted for the formula above since it provided the fastest collision elimination in my tests, much faster than the monotonically increasing interval formulas I tried. The MIN_TIMEOUT constant is more of a black art. It should be tuned to the particular hardware and network setup in order to attain maximum efficiency: the minimum number of retries with the minimum interval between retries.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Another issue raised in a &lt;a href=&quot;http://astithas.blogspot.com/2009/06/retrying-transactions-in-java.html?showComment=1245148011391#c1967231916381453980&quot;&gt;comment&lt;/a&gt; in my previous post was that the exception I am using as guard, &lt;a href=&quot;http://java.sun.com/javaee/5/docs/api/javax/ejb/EJBTransactionRolledbackException.html&quot;&gt;EJBTransactionRolledbackException&lt;/a&gt;, may be too generic for this purpose. This is definitely true, EJBTransactionRolledbackException just wraps an &lt;a href=&quot;http://java.sun.com/javaee/5/docs/api/javax/persistence/OptimisticLockException.html&quot;&gt;OptimisticLockException&lt;/a&gt; as one would expect for this case, which in turn wraps the Hibernate-specific &lt;a href=&quot;https://www.hibernate.org/hib_docs/v3/api/org/hibernate/StaleObjectStateException.html&quot;&gt;StaleObjectStateException&lt;/a&gt; that is thrown initially. However, contention in a database table, index or row might not necessarily result in optimistic locking violations, but in deadlocks as well, when one transaction holds exclusive locks on resources that are needed by the other and vice versa. Deadlock detection is performed by the DBMS, which forces a rollback of both transactions. This time however the initial exception (at least in my testing, might be DBMS or JDBC driver-specific) is &lt;a href=&quot;https://www.hibernate.org/hib_docs/v3/api/org/hibernate/exception/GenericJDBCException.html&quot;&gt;GenericJDBCException&lt;/a&gt; which gets wrapped in a &lt;a href=&quot;http://java.sun.com/javaee/5/docs/api/javax/persistence/PersistenceException.html&quot;&gt;PersistenceException&lt;/a&gt;, which in turn is put inside a EJBTransactionRolledbackException before being received by our call site. Therefore, the generic nature of the guard is not a problem in this case. On the contrary it covers more relevant cases and one might argue even that there is no better service that can be offered to the caller, than retrying in all such occasions.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.astithas.com/feeds/1372264105244185506/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/486398466531826618/1372264105244185506' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/486398466531826618/posts/default/1372264105244185506'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/486398466531826618/posts/default/1372264105244185506'/><link rel='alternate' type='text/html' href='http://blog.astithas.com/2009/06/retrying-transactions-with-exponential.html' title='Retrying transactions with exponential backoff'/><author><name>past</name><uri>http://www.blogger.com/profile/05077555675379961731</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-486398466531826618.post-550396475024477534</id><published>2009-06-15T16:18:00.011+03:00</published><updated>2009-06-18T01:34:54.638+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="databases"/><category scheme="http://www.blogger.com/atom/ns#" term="gss"/><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><category scheme="http://www.blogger.com/atom/ns#" term="programming"/><category scheme="http://www.blogger.com/atom/ns#" term="software"/><title type='text'>Retrying transactions in Java</title><content type='html'>When building a web-based system, the most often encountered persistence solution is the use of a relational DBMS. This provides many benefits, but probably the most important one is that its behavior and usage are widely understood after so many decades of use. The simplicity of the ACID transactional model, coupled with the nice fit of the HTTP request/response protocol, make for a killer combination.&lt;br /&gt;&lt;br /&gt;The simplicity starts to break down however, when the load on the DBMS server increases, causing transactions to start failing. The DBMS can guarantee that no data corruption will occur, but handling such cases is not that simple. The scalable &lt;a href=&quot;http://en.wikipedia.org/wiki/Optimistic_locking&quot;&gt;Optimistic Locking&lt;/a&gt; model requires transactions to be resubmitted when failure occurs. Since this is supposed to be rather rare (otherwise optimistic locking should probably not be used), developers often cheat by not dealing with such errors, letting them bubble up to the user, who is then responsible for resubmitting the transaction. This leads to simple, elegant codebases and unhappy users.&lt;br /&gt;&lt;br /&gt;Adding &lt;a href=&quot;http://en.wikipedia.org/wiki/Object-relational_mapping&quot;&gt;ORM&lt;/a&gt; to the mix only makes things worse. In JavaEE, the &lt;a href=&quot;http://en.wikipedia.org/wiki/Java_Persistence_API&quot;&gt;JPA&lt;/a&gt; API hides much of the complexity of dealing with relational databases, but corner cases become &lt;a href=&quot;http://weblogs.java.net/blog/davidvc/archive/2007/04/jpa_and_rollbac.html&quot;&gt;harder&lt;/a&gt;. Add the container-managed transaction boundaries provided by session EJBs and one might be tempted to raise his hands up in despair.&lt;br /&gt;&lt;br /&gt;However a solution is not as hard as it sounds. Provided that session EJB methods are sufficiently free from side effects, one can replay a transaction for a number of times from the call site (external to the session bean) with a small amount of code and a small added complexity to the call sites. Since I seem to come up against this requirement quite often, I thought I should describe one way to do it. The following tryExecute() helper method, retries any action supplied in a standard &lt;a href=&quot;http://java.sun.com/j2se/1.5.0/docs/api/java/util/concurrent/Callable.html&quot;&gt;Callable&lt;/a&gt; interface for a number of times, in the face of optimistic locking violations:&lt;br /&gt;&lt;br /&gt;&lt;pre class=&quot;brush: java&quot;&gt;&lt;br /&gt;public T tryExecute(Callable&amp;lt;T&amp;gt; command) throws Exception {&lt;br /&gt;  T returnValue = null;&lt;br /&gt;  for (int i = 0; i &amp;lt; TRANSACTION_RETRIES; i++) {&lt;br /&gt;    try {&lt;br /&gt;      returnValue = command.call();&lt;br /&gt;      break;&lt;br /&gt;    } catch(EJBTransactionRolledbackException trbe) {&lt;br /&gt;      if (i == TRANSACTION_RETRIES - 1)&lt;br /&gt;        throw trbe;&lt;br /&gt;      } catch (Exception e) {&lt;br /&gt;        throw e;&lt;br /&gt;      }&lt;br /&gt;      logger.debug(&quot;Transaction retry: &quot; + (i+1));&lt;br /&gt;    }&lt;br /&gt;  return returnValue;&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;By abstracting away the session bean method code in a parameterized class we can reuse this method in every place that needs to retry transactions. Using a Callable as a parameter lets us return any values received from the session bean. For supplying bean methods that do not return values, we could create &lt;a href=&quot;http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Runnable.html&quot;&gt;Runnable&lt;/a&gt; instances and wrap them to Callable using &lt;a href=&quot;http://java.sun.com/j2se/1.5.0/docs/api/java/util/concurrent/Executors.html&quot;&gt;Executors&lt;/a&gt;.callable(). You can see the original code &lt;a href=&quot;http://code.google.com/p/gss/source/browse/src/gr/ebs/gss/server/rest/TransactionHelper.java&quot;&gt;here&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;If you use the above code in a JavaSE environment without EJB, you should probably need to catch &lt;a href=&quot;http://java.sun.com/javaee/5/docs/api/javax/persistence/OptimisticLockException.html&quot;&gt;OptimisticLockException&lt;/a&gt; for JPA, or even &lt;a href=&quot;https://www.hibernate.org/hib_docs/v3/api/org/hibernate/StaleObjectStateException.html&quot;&gt;StaleObjectStateException&lt;/a&gt;, if you don&#39;t mind depending on a Hibernate API. I use the above helper method like this in my code:&lt;br /&gt;&lt;br /&gt;&lt;pre class=&quot;brush: java&quot;&gt;&lt;br /&gt;file = new TransactionHelper&amp;lt;FileHeaderDTO&amp;gt;().tryExecute(new Callable&amp;lt;FileHeaderDTO&amp;gt;() {&lt;br /&gt;  @Override&lt;br /&gt;  public FileHeaderDTO call() throws Exception {&lt;br /&gt;    return sessionBean.createFile(user.getId(), folder.getId(), name, mimeType, uploadedFile);&lt;br /&gt;  }&lt;br /&gt;});&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Java&#39;s verbosity makes this not that easy to understand at first sight, but what happens is very simple indeed: I wrap a one-liner call to the session bean method createFile(), in a Callable and supply it to tryExecute(). The result from the bean method is received in a local variable as usual. One thing to keep in mind though is that since Java doesn&#39;t have closures, the above anonymous function can only receive final variables as parameters. In my example user, folder, name, mimeType and uploadedFile are all final. You might have to resort to using temporary local variables for storing final values on some occasions.</content><link rel='replies' type='application/atom+xml' href='http://blog.astithas.com/feeds/550396475024477534/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/486398466531826618/550396475024477534' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/486398466531826618/posts/default/550396475024477534'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/486398466531826618/posts/default/550396475024477534'/><link rel='alternate' type='text/html' href='http://blog.astithas.com/2009/06/retrying-transactions-in-java.html' title='Retrying transactions in Java'/><author><name>past</name><uri>http://www.blogger.com/profile/05077555675379961731</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-486398466531826618.post-3494681038446811325</id><published>2009-06-04T12:19:00.000+03:00</published><updated>2009-06-05T01:14:53.201+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="open-source"/><title type='text'>Ubuntu on EEE PC</title><content type='html'>&lt;div&gt;A few weeks ago I set out to upgrade Ubuntu on my EEE PC 901 from Intrepid to Jaunty. It was an, um, interesting experience, so I&#39;m jotting down these notes for next time. Upgrading from Update Manager was not an option, because my root partition was not big enough to host the upgrade. The 901 has a 4GB SSD that I&#39;m using as root and an 8GB (or 12GB) SSD that I&#39;ve put /home on. It turns out that 4GB is OK for running a modern operating system, but a little short for updating it. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The usual procedure for upgrading is to use the official ISO images to boot from. As always you need a USB stick, or an external optical drive. I settled for the former, as you can see below.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGvUs3lB4QxSwGohedq39ghTSPAwdqQRqWnU5_0dk0o-KCrKULekH9ThFrDlHRJXJ1ygljEOgM7m13AWXof4F2Edo4GvczcfyK0DzUuoZCJh3HLTurLCYVLq8P_ZfgzPCGlk5e04mvkHF8/s1600-h/%CE%95%CE%B9%CE%BA%CF%8C%CE%BD%CE%B1205.jpg&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 320px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGvUs3lB4QxSwGohedq39ghTSPAwdqQRqWnU5_0dk0o-KCrKULekH9ThFrDlHRJXJ1ygljEOgM7m13AWXof4F2Edo4GvczcfyK0DzUuoZCJh3HLTurLCYVLq8P_ZfgzPCGlk5e04mvkHF8/s400/%CE%95%CE%B9%CE%BA%CF%8C%CE%BD%CE%B1205.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5337445264521448994&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;The good news with Jaunty is that a special netbook edition is available for &lt;a href=&quot;http://www.ubuntu.com/getubuntu/download-netbook&quot;&gt;download&lt;/a&gt;. With previous editions you had to start with the desktop edition and do lots of tweaking, to arrive at a satisfactory result. With the netbook edition however things were unbelievably smooth. Everything worked out of the box with my EEE PC. Well, almost everything, but I will get to that in a while.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The first step after downloading the ISO (for the security paranoid at least) is verifying the download:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;$ md5sum ubuntu-9.04-netbook-remix-i386.img&lt;br /&gt;8f921e001aebc3e98e8e8e7d29ee1dd4  ubuntu-9.04-netbook-remix-i386.img&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;Then, we can write the image to the disk. I used Ubuntu ImageWriter (package usb-imagewriter) from another Ubuntu PC:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiSl7OamNl1xrIFSrNG1W9YVNruKvHRhbPc3lPe61wPVZgU6E2_VOnQDxjtAdc1GxJugVbj0F924Otc6gGCw9loOrIDxu3qoDdPviHeu_YG1e45Gguc07c792cXGpP9U4JL3tzXZz8D8zow/s1600-h/Screenshot-ImageWriter.png&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 183px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiSl7OamNl1xrIFSrNG1W9YVNruKvHRhbPc3lPe61wPVZgU6E2_VOnQDxjtAdc1GxJugVbj0F924Otc6gGCw9loOrIDxu3qoDdPviHeu_YG1e45Gguc07c792cXGpP9U4JL3tzXZz8D8zow/s400/Screenshot-ImageWriter.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5337091531352226738&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;That went very smooth. Next step was booting the EEE PC with the newly formatted USB disk. Hitting ESC on boot, allows one to change the boot drive sequence. If this is the first time you are replacing the original OS, you probably need to disable Boot Booster from the BIOS first. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The installation process is quite simple. The only important thing was partitioning in my case, since I wanted to preserve my /home partition intact. Last time I installed Ubuntu I went with ext2 filesystems, trying to squeeze as much life from my solid state disks as I could. After doing some more research on the subject, I decided that I&#39;ll probably throw away my EEE long before the disks begin to wear out. Either that, or I&#39;ll throw an SD card in the expansion slot. Life is full of choices, particularly on the $300 range.&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;So I selected manual partitioning and chose ext3 for my first SSD. This is a screenshot from my first attempt. No, actually it was my second attempt. I screwed up the first one. Turns out I screwed up this one, too. See if you can spot why.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLBWd7Y8YUdfKsUrZSAWLu-TBpnuQrVHuhk2dRELWG9lwa1aa1UkzPny6yGcHK6IL0PLRxH0Z8LR3hTwxxMVGsa2haBf2aKygRw-jKSdGfL2iiYDZiaApeoP87rY_VXs4pmFZaIkUqBg_c/s1600-h/%CE%95%CE%B9%CE%BA%CF%8C%CE%BD%CE%B1207.jpg&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 320px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLBWd7Y8YUdfKsUrZSAWLu-TBpnuQrVHuhk2dRELWG9lwa1aa1UkzPny6yGcHK6IL0PLRxH0Z8LR3hTwxxMVGsa2haBf2aKygRw-jKSdGfL2iiYDZiaApeoP87rY_VXs4pmFZaIkUqBg_c/s400/%CE%95%CE%B9%CE%BA%CF%8C%CE%BD%CE%B1207.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5337445404101783090&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;It may not be that obvious, but swap should not be on the first disk. If you are using swap at all (and I know many suggest that you don&#39;t), it would be a better choice to put it on the second disk. With 1GB of RAM, swap should be at least 1GB, which leaves only 3GB for Linux. The default installation needs something north of 2GB, so that leaves less than a gig to install software you use. Unless of course you are planning to play symlink tricks, in which case I should probably offer my condolences. Anyway, I ended up chopping 1GB with gparted from the second disk and redoing the installation again, but fortunately you won&#39;t have to.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;What you should definitely do however, is put aside 16MB of space in the first disk for enabling Boot Booster in the BIOS again. This is an ASUS feature that persists the BIOS configuration on the disk, shaving a couple of seconds on each boot. It may not seem much, but think about how many times you are going to boot this thing. If you add them up, it starts to matter. Boot Booster needs only 8MB of disk to function, but I found that the installer&#39;s partition editor would only allocate one cylinder for 8MB, while we need two. Using 16MB did the right thing.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The regular customization I always do is to put /tmp and /var/tmp on tmpfs, so that many common operations don&#39;t touch the disks at all. Put the following lines in fstab to do that:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;tmpfs        /tmp        tmpfs    defaults,noexec,nosuid        0       0&lt;br /&gt;tmpfs        /var/tmp    tmpfs    defaults,noexec,nosuid        0       0&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;After editing &lt;code&gt;/etc/fstab&lt;/code&gt; the proper way to remount these file systems is by following these steps:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Log out of the Ubuntu desktop in order to minimize the number of open temp files.&lt;/li&gt;&lt;li&gt;Press CTRL-ALT-F1 on your keyboard. You should see a login prompt. Login with your usual user/pass.&lt;/li&gt;&lt;li&gt;Clear out the files in the existing /tmp and /var/tmp directories.&lt;br /&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;sudo rm -rf /tmp/* /var/tmp/*&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;Mount the filesystems using tmpfs.&lt;br /&gt;&lt;span style=&quot;font-family:courier new;font-size:85%;&quot;&gt;sudo mount /tmp&lt;br /&gt;sudo mount /var/tmp&lt;/span&gt;&lt;/li&gt;&lt;li&gt;Reboot the EEE PC.&lt;br /&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;sudo shutdown -r now&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;Next, from the boot-as-fast-as-you-can department comes another tweak. In &lt;code&gt;/boot/grub/menu.lst&lt;/code&gt; set &lt;code&gt;&quot;timeout 0&quot;&lt;/code&gt; in order to skip the kernel selection delay. If I ever need to boot a different kernel, I&#39;ll change it back to something larger, thankyouverymuch.&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Log out of the Ubuntu desktop. (Yes.. I said log out. This will go a long way to ensuring the fewest number of temp files are currently open.)&lt;/li&gt;&lt;li&gt;Press CTRL-ALT-F1 on your keyboard.  You should see a login prompt.  Login with your usual user/pass.&lt;/li&gt;&lt;li&gt;Clear out the files in the existing /tmp and /var/tmp directories.&lt;br /&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;sudo rm -rf /tmp/* /var/tmp/*&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;Mount the filesystems using tmpfs.&lt;br /&gt;&lt;span style=&quot;;font-family:courier new;font-size:85%;&quot;&gt;sudo mount /tmp&lt;br /&gt;sudo mount /var/tmp&lt;/span&gt;&lt;/li&gt;&lt;li&gt;Reboot the EEE PC.&lt;br /&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;&lt;span style=&quot;font-family:courier new;&quot;&gt;sudo shutdown -r now&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;Now in order to enable back Boot Booster follow &lt;a href=&quot;https://help.ubuntu.com/community/EeePC/Using&quot;&gt;these instructions&lt;/a&gt; for configuring the small partition we created earlier. When you reboot make sure to enable the option in the BIOS (it will be hidden when the proper partition isn&#39;t found).&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Now you are all set. At least if you have no use for WPA-secured WiFi. Because if you do, you&#39;ll hit a bug with the included rt2860 driver. The details aren&#39;t that interesting, but the available options are two: either use the &lt;a href=&quot;http://array.org/ubuntu/&quot;&gt;array.org kernel&lt;/a&gt; or &lt;a href=&quot;https://bugs.launchpad.net/ubuntu/+source/linux/+bug/339891&quot;&gt;patch the driver&lt;/a&gt;. The former solution used to be necessary with Intrepid, since lots of things were not working with the default kernel. However after trying out both, I don&#39;t see much need for Adam&#39;s kernel in Jaunty, unless you are terrified when encountering &lt;code&gt;patch&lt;/code&gt;, &lt;code&gt;make&lt;/code&gt; and their ilk. Since I&#39;m on first name basis with them, I went with the second option, hoping that a future kernel update will bring along the fixes.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;All in all, the process this time around was very easy. Almost &lt;a href=&quot;http://www.geteasypeasy.com/&quot;&gt;easy peasy&lt;/a&gt;. My EEE PC with Ubuntu Netbook Remix makes me almost forget that I&#39;m not on my beloved Mac.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Almost.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.astithas.com/feeds/3494681038446811325/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/486398466531826618/3494681038446811325' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/486398466531826618/posts/default/3494681038446811325'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/486398466531826618/posts/default/3494681038446811325'/><link rel='alternate' type='text/html' href='http://blog.astithas.com/2009/06/ubuntu-on-eee-pc.html' title='Ubuntu on EEE PC'/><author><name>past</name><uri>http://www.blogger.com/profile/05077555675379961731</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGvUs3lB4QxSwGohedq39ghTSPAwdqQRqWnU5_0dk0o-KCrKULekH9ThFrDlHRJXJ1ygljEOgM7m13AWXof4F2Edo4GvczcfyK0DzUuoZCJh3HLTurLCYVLq8P_ZfgzPCGlk5e04mvkHF8/s72-c/%CE%95%CE%B9%CE%BA%CF%8C%CE%BD%CE%B1205.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-486398466531826618.post-7289725450704667371</id><published>2009-04-23T12:10:00.008+02:00</published><updated>2009-04-25T02:23:51.455+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="gss"/><category scheme="http://www.blogger.com/atom/ns#" term="open-source"/><category scheme="http://www.blogger.com/atom/ns#" term="programming"/><category scheme="http://www.blogger.com/atom/ns#" term="software"/><category scheme="http://www.blogger.com/atom/ns#" term="web"/><title type='text'>An introduction to the GSS API</title><content type='html'>Application Programming Interface or &lt;a href=&quot;http://en.wikipedia.org/wiki/API&quot;&gt;API&lt;/a&gt; design is one of my favorite topics in programming, probably because it is both a science and an art. It is a science because there are widely accepted principles about how to design an API, but at the same time applying these principles within the constraints of a given programming language, requires the finesse of an experienced practicioner. Therefore it is with great pleasure that I&#39;ll try to explain the ins and outs of the &lt;a href=&quot;http://code.google.com/p/gss/&quot;&gt;GSS&lt;/a&gt;  REST-like &lt;a href=&quot;http://code.google.com/p/gss/wiki/API&quot;&gt;API&lt;/a&gt;, as promised &lt;a href=&quot;http://astithas.blogspot.com/2009/04/gss-architecture.html&quot;&gt;before&lt;/a&gt;. As I&#39;ve already &lt;a href=&quot;http://astithas.blogspot.com/2009/04/introducing-gss.html&quot;&gt;mentioned&lt;/a&gt;, GSS is both the name of the source code project in Google Code, as well as the GRNET-sponsored service for the Greek research and academic network (although, it&#39;s official name after leaving the beta stage will be Pithos). Since anyone can use the open-source code to setup a GSS service, in this post I&#39;ll use generic examples, so anyone writing a client for the GRNET service should modify them accordingly.&lt;br /&gt;&lt;br /&gt;When developing an application in a particular programming language, we are used to thinking about the APIs presented to us by the various libraries, which are invariably specified in that same language. For instance, for communicating with an HTTP server from a Java program we might use the &lt;a href=&quot;http://hc.apache.org/httpcomponents-client/index.html&quot;&gt;HttpClient&lt;/a&gt; library &lt;a href=&quot;http://hc.apache.org/httpcomponents-client/httpclient/apidocs/index.html&quot;&gt;API&lt;/a&gt;. This library presents a set of Java classes, interfaces and methods for interacting with web servers. These classes hide the underlying complexity of making the low-level HTTP protocol operations, allowing our mental process to remain constantly in a Java world. We could however interact with a web server without such a library, opting to implement the HTTP protocol interactions ourselves instead. Unfortunately, there is no such higher-level library for GSS yet, wrapping the low-level HTTP communications. Therefore this post will present a low-level API, in the sense that one has to make direct HTTP calls in his chosen programming language. The good news is that the following discussion is useful for programmers with any background, since there is support for the ubiquitus HTTP protocol in every modern programming language.&lt;br /&gt;&lt;br /&gt;A RESTful API models its entities as resources. Resources are identified by Uniform Resource Identifiers, or &lt;a href=&quot;http://en.wikipedia.org/wiki/URI&quot;&gt;URIs&lt;/a&gt;. There are four kinds of resources in GSS: files, folders, users &amp;amp; groups. These resources have a number of properties that contain various attributes. The API models these entities and their properties in the &lt;a href=&quot;http://json.org/&quot;&gt;JSON&lt;/a&gt; format. There is also a fifth entity that is not modeled as a resource, but is important enough to warrant special mention: permissions.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-size:180%;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Users&lt;/span&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt; ·&lt;/span&gt;&lt;/span&gt; Users are the entities that represent the actual users of the system. They are used to login to the service and separate namespaces of files and folders. User entities have attributes like full name, e-mail, username, authentication token, creation/modification times, groups, etc. The URI of a user with username &lt;code&gt;paul&lt;/code&gt; would be:&lt;br /&gt;&lt;blockquote&gt;&lt;code&gt;http://host.domain/gss/rest/paul/&lt;/code&gt;&lt;br /&gt;&lt;/blockquote&gt;The JSON representation of this user would be something like this:&lt;br /&gt;&lt;pre&gt;{&lt;br /&gt;    &quot;name&quot;: &quot;Paul Smith&quot;,&lt;br /&gt;    &quot;username&quot;: &quot;paul&quot;,&lt;br /&gt;    &quot;email&quot;: &quot;paul@gmail.com&quot;,&lt;br /&gt;    &quot;files&quot;: &quot;http://hostname.domain/gss/rest/paul/files&quot;,&lt;br /&gt;    &quot;trash&quot;: &quot;http://hostname.domain/gss/rest/paul/trash&quot;,&lt;br /&gt;    &quot;shared&quot;: &quot;http://hostname.domain/gss/rest/paul/shared&quot;,&lt;br /&gt;    &quot;others&quot;: &quot;http://hostname.domain/gss/rest/paul/others&quot;,&lt;br /&gt;    &quot;tags&quot;: &quot;http://hostname.domain/gss/rest/paul/tags&quot;,&lt;br /&gt;    &quot;groups&quot;: &quot;http://hostname.domain/gss/rest/paul/groups&quot;,&lt;br /&gt;    &quot;creationDate&quot;: 1223372769275,&lt;br /&gt;    &quot;modificationDate&quot;: 1223372769275,&lt;br /&gt;    &quot;quota&quot;: {&lt;br /&gt;        &quot;totalFiles&quot;: 7,&lt;br /&gt;        &quot;totalBytes&quot;: 429330,&lt;br /&gt;        &quot;bytesRemaining&quot;: 10736988910&lt;br /&gt;    }&lt;br /&gt;}&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;font-size:180%;&quot; &gt;Groups&lt;/span&gt; &lt;span style=&quot;font-weight: bold;&quot;&gt;·&lt;/span&gt; Groups are entities used to organize users for easier sharing of files and folders among peers. They can be used to facilitate sharing files to multiple users at once. Groups belong to the user who created them and cannot be shared. The URI of a group named &lt;code&gt;work&lt;/code&gt; created by the user with username &lt;code&gt;paul&lt;/code&gt; would be:&lt;br /&gt;&lt;blockquote&gt;&lt;code&gt;http://host.domain/gss/rest/paul/groups/work&lt;/code&gt;&lt;br /&gt;&lt;/blockquote&gt;The JSON representation of this group would be something like this:&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;[&lt;br /&gt;    &quot;http://hostname.domain/gss/rest/paul/groups/work/tom&quot;,&lt;br /&gt;    &quot;http://hostname.domain/gss/rest/paul/groups/work/jim&quot;,&lt;br /&gt;    &quot;http://hostname.domain/gss/rest/paul/groups/work/mary&quot;&lt;br /&gt;]&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;span style=&quot;font-size:180%;&quot;&gt;Files&lt;/span&gt; ·&lt;/span&gt; Files are the most basic resources in GSS. They represent actual operating system files from the client&#39;s computer that have been augmented with extra metadata for storage, retrieval and sharing purposes. Familiar metadata from modern file systems are also maintained in GSS, like file name, creation/modification times, creator, modifier, tags, permissions, etc. Furthermore, files can be versioned in GSS. Updating versioned files retains the previous versions, while updating an unversioned file replaces irrevocably the old file contents. The URI of a file named &lt;code&gt;doc.txt&lt;/code&gt; located in the root folder of the user with username &lt;code&gt;paul&lt;/code&gt; would be:&lt;br /&gt;&lt;blockquote&gt;&lt;code&gt;http://host.domain/gss/rest/paul/files/doc.txt&lt;/code&gt;&lt;/blockquote&gt;The JSON representation of the metadata in this file would be something like this:&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;{&lt;br /&gt;   &quot;name&quot;: &quot;doc.txt&quot;,&lt;br /&gt;   &quot;creationDate&quot;: 1232449958563,&lt;br /&gt;   &quot;createdBy&quot;: &quot;paul&quot;,&lt;br /&gt;   &quot;readForAll&quot;: true,&lt;br /&gt;   &quot;modifiedBy&quot;: &quot;paul&quot;,&lt;br /&gt;   &quot;owner&quot;: &quot;paul&quot;,&lt;br /&gt;   &quot;modificationDate&quot;: 1232449944444,&lt;br /&gt;   &quot;deleted&quot;: false,&lt;br /&gt;   &quot;versioned&quot;: true,&lt;br /&gt;   &quot;version&quot;: 1,&lt;br /&gt;   &quot;size&quot;: 802,&lt;br /&gt;   &quot;content&quot;: &quot;text/plain&quot;,&lt;br /&gt;   &quot;uri&quot;: &quot;http://hostname.domain/gss/rest/paul/files/doc.txt&quot;,&lt;br /&gt;   &quot;folder&quot;: {&lt;br /&gt;       &quot;uri&quot;: &quot;http://hostname/gss/rest/aaitest@uth.gr/files/&quot;,&lt;br /&gt;       &quot;name&quot;: &quot;Paul Smith&quot;&lt;br /&gt;   },&lt;br /&gt;   &quot;path&quot;: &quot;/&quot;,&lt;br /&gt;   &quot;tags&quot;: [&lt;br /&gt;       &quot;work&quot;,&lt;br /&gt;       &quot;personal&quot;&lt;br /&gt;   ],&lt;br /&gt;   &quot;permissions&quot;: [&lt;br /&gt;       {&lt;br /&gt;           &quot;modifyACL&quot;: true,&lt;br /&gt;           &quot;write&quot;: true,&lt;br /&gt;           &quot;read&quot;: true,&lt;br /&gt;           &quot;user&quot;: &quot;paul&quot;&lt;br /&gt;       },&lt;br /&gt;       {&lt;br /&gt;           &quot;modifyACL&quot;: false,&lt;br /&gt;           &quot;write&quot;: true,&lt;br /&gt;           &quot;read&quot;: true,&lt;br /&gt;           &quot;group&quot;: &quot;work&quot;&lt;br /&gt;       }&lt;br /&gt;   ]&lt;br /&gt;} &lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-size:180%;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Folders&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt; ·&lt;/span&gt; Folders are resources that are used for grouping files. They represent the file system concept of folders or directories and can be used to mirror a client&#39;s computer file system on GSS. Familiar metadata from modern file systems are also maintained in GSS, like folder name, creation/modification times, creator, modifier, permissions, etc. The URI of a folder named &lt;code&gt;documents&lt;/code&gt; located in the root folder of the user with username &lt;code&gt;paul&lt;/code&gt; would be:&lt;br /&gt;&lt;blockquote&gt;&lt;code&gt;http://host.domain/gss/rest/paul/files/documents&lt;/code&gt;&lt;/blockquote&gt;The JSON representation of this folder would be something like this:&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;{&lt;br /&gt;   &quot;name&quot;: &quot;documents&quot;,&lt;br /&gt;   &quot;owner&quot;: &quot;paul&quot;,&lt;br /&gt;   &quot;deleted&quot;: false,&lt;br /&gt;   &quot;createdBy&quot;: &quot;paul&quot;,&lt;br /&gt;   &quot;creationDate&quot;: 1223372795825,&lt;br /&gt;   &quot;modifiedBy&quot;: &quot;paul&quot;,&lt;br /&gt;   &quot;modificationDate&quot;: 1223372795825,&lt;br /&gt;   &quot;parent&quot;: {&lt;br /&gt;       &quot;uri&quot;: &quot;http://hostname.domain/gss/rest/paul/files/&quot;,&lt;br /&gt;       &quot;name&quot;: &quot;Paul Smith&quot;&lt;br /&gt;   },&lt;br /&gt;   &quot;files&quot;: [&lt;br /&gt;       {&lt;br /&gt;           &quot;name&quot;: &quot;notes.txt&quot;,&lt;br /&gt;           &quot;owner&quot;: &quot;paul&quot;,&lt;br /&gt;           &quot;creationDate&quot;: 1233758218866,&lt;br /&gt;           &quot;deleted&quot;:false,&lt;br /&gt;           &quot;size&quot;:4567,&lt;br /&gt;           &quot;content&quot;: &quot;text/plain&quot;,&lt;br /&gt;           &quot;version&quot;: 1,&lt;br /&gt;           &quot;uri&quot;: &quot;http://hostname.domain/gss/rest/paul/files/documents/notes.txt&quot;,&lt;br /&gt;           &quot;folder&quot;: {&lt;br /&gt;               &quot;uri&quot;: &quot;http://hostname.domain/gss/rest/paul/files/documents/&quot;,&lt;br /&gt;               &quot;name&quot;: &quot;documents&quot;&lt;br /&gt;           },&lt;br /&gt;           &quot;path&quot;: &quot;/documents/&quot;&lt;br /&gt;       }&lt;br /&gt;   ],&lt;br /&gt;   &quot;folders&quot;: [],&lt;br /&gt;   &quot;permissions&quot;: [&lt;br /&gt;       {&lt;br /&gt;           &quot;modifyACL&quot;: true,&lt;br /&gt;           &quot;write&quot;: true,&lt;br /&gt;           &quot;read&quot;: true,&lt;br /&gt;           &quot;user&quot;: &quot;paul&quot;&lt;br /&gt;       },&lt;br /&gt;       {&lt;br /&gt;           &quot;modifyACL&quot;: false,&lt;br /&gt;           &quot;write&quot;: true,&lt;br /&gt;           &quot;read&quot;: true,&lt;br /&gt;           &quot;group&quot;: &quot;work&quot;&lt;br /&gt;       }&lt;br /&gt;   ]&lt;br /&gt;}&lt;/pre&gt;&lt;br /&gt;Working with these resources is accomplished by sending HTTP protocol requests to the resource URI with GET, HEAD, DELETE, POST, PUT methods. GET requests retrieve the resource representation, either the file contents, or the JSON representations for the resources specified above. HEAD requests for files return just the metadata of the file and DELETE requests remove the resource from the system. PUT requests upload files to the system from the client, while POST requests perform various modifications to the resources, like renaming, moving, copying, moving files to the trash, restoring them from the trash, creating folders and more. The operations are numerous and I hope to cover them in more detail in a future post.&lt;br /&gt;&lt;br /&gt;One important aspect of every RESTful API is the use of URIs to allow the client to maintain a stateful conversation. For example, fetching the user URI would provide the &lt;code&gt;files&lt;/code&gt; URI for fetching the available files and folders. Fetching the &lt;code&gt;files&lt;/code&gt; URI would in turn return the URIs for the particular files and folders contained in the root folder (along with other folder properties). Returning to the parent of the current folder would entail following the URI contained in the parent property. This mechanism removes the state handling from the server and puts the burden on the client, providing excellent scalability for the service. Furthermore, since the URIs are treated opaquely by the client, the API allows client reuse across server deployments. A client can target multiple GSS services, as long as they speak the same RESTful API. Moreover, links from service A can refer to resources in service B without a problem (in the same authentication domain, e.g. the same Shibboleth federation). This is the same as using a single web browser to communicate with multiple web servers, by following links among them.</content><link rel='replies' type='application/atom+xml' href='http://blog.astithas.com/feeds/7289725450704667371/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/486398466531826618/7289725450704667371' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/486398466531826618/posts/default/7289725450704667371'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/486398466531826618/posts/default/7289725450704667371'/><link rel='alternate' type='text/html' href='http://blog.astithas.com/2009/04/introduction-to-gss-api.html' title='An introduction to the GSS API'/><author><name>past</name><uri>http://www.blogger.com/profile/05077555675379961731</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-486398466531826618.post-1257190549439172023</id><published>2009-04-20T21:01:00.008+02:00</published><updated>2009-04-20T22:29:23.246+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><category scheme="http://www.blogger.com/atom/ns#" term="open-source"/><category scheme="http://www.blogger.com/atom/ns#" term="programming"/><category scheme="http://www.blogger.com/atom/ns#" term="software"/><title type='text'>Reconciling Apache Commons Configuration with JBoss 5</title><content type='html'>There are many ways to configure a JavaEE application. Among the available solutions are DBMS tables, JNDI, &lt;a href=&quot;http://java.sun.com/j2se/1.5.0/docs/guide/jmx/overview/architecture.html&quot;&gt;JMX MBeans&lt;/a&gt; and even plain old files in a variety of formats. While we have used most of the above in various occasions, I find that plain files resonate with all types of sysadmins, when no other administrative interface is available. For such scenarios, &lt;a href=&quot;http://commons.apache.org/configuration/&quot;&gt;Apache Commons Configuration&lt;/a&gt; is undoubtedly the best tool for the job. Recently, I came across an undocumented incompatibility when using Commons Configuration with &lt;a href=&quot;http://www.jboss.org/&quot;&gt;JBoss&lt;/a&gt; 5 and I thought I should describe our solution for the benefit of others.&lt;br /&gt;&lt;br /&gt;Usually we are storing our configuration files in the standard place for JBoss, which is &lt;code&gt;JBOSS_HOME/server/default/conf&lt;/code&gt;, for the default server configuration. This has the disadvantage that is not as easy to remember as &lt;code&gt;/etc&lt;/code&gt; in UNIX/Linux or &lt;code&gt;\Program Files&lt;/code&gt; and &lt;code&gt;\Windows&lt;/code&gt; in Windows systems, but it has the important advantage of being specified as a relative path in our code, making it more cross-platform without cluttering it with platform-specific if/else path resolution checks.&lt;br /&gt;&lt;br /&gt;Commons Configuration can reload the configuration files automatically when changed in the file system, which helps prolong the server uptime. However JBoss 5 has introduced the concept of a virtual file system that caches all file system accesses performed through the context class loaders using relative paths. Unfortunately this generates resource URLs in the form vfsfile:foo.properties that Commons Configuration does not know how to deal with. Fixing this requires extending FileChangedReloadingStrategy, like we do in &lt;a href=&quot;http://code.google.com/p/gss/source/detail?r=266&quot;&gt;gss&lt;/a&gt;. Alternatively, one could patch Commons Configuration with the following &lt;a href=&quot;https://issues.apache.org/jira/browse/CONFIGURATION-381&quot;&gt;change&lt;/a&gt; and use the standard FileChangedReloadingStrategy unchanged:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;Index: FileChangedReloadingStrategy.java&lt;br /&gt;===================================================================&lt;br /&gt;--- FileChangedReloadingStrategy.java    (revision 764760)&lt;br /&gt;+++ FileChangedReloadingStrategy.java    (working copy)&lt;br /&gt;@@ -46,6 +46,9 @@&lt;br /&gt;  /** Constant for the jar URL protocol.*/&lt;br /&gt;  private static final String JAR_PROTOCOL = &quot;jar&quot;;&lt;br /&gt;&lt;br /&gt;+    /** Constant for the JBoss MC VFSFile URL protocol.*/&lt;br /&gt;+    private static final String VFSFILE_PROTOCOL = &quot;vfsfile&quot;;&lt;br /&gt;+&lt;br /&gt;  /** Constant for the default refresh delay.*/&lt;br /&gt;  private static final int DEFAULT_REFRESH_DELAY = 5000;&lt;br /&gt;&lt;br /&gt;@@ -161,7 +164,8 @@&lt;br /&gt;&lt;br /&gt;  /**&lt;br /&gt;   * Helper method for transforming a URL into a file object. This method&lt;br /&gt;-     * handles file: and jar: URLs.&lt;br /&gt;+     * handles file: and jar: URLs, as well as JBoss VFS-specific vfsfile:&lt;br /&gt;+     * URLs.&lt;br /&gt;   *&lt;br /&gt;   * @param url the URL to be converted&lt;br /&gt;   * @return the resulting file or &lt;b&gt;null &lt;/b&gt;&lt;br /&gt;@@ -181,6 +185,18 @@&lt;br /&gt;              return null;&lt;br /&gt;          }&lt;br /&gt;      }&lt;br /&gt;+        else if (VFSFILE_PROTOCOL.equals(url.getProtocol()))&lt;br /&gt;+        {&lt;br /&gt;+            String path = url.getPath();&lt;br /&gt;+            try&lt;br /&gt;+            {&lt;br /&gt;+                return ConfigurationUtils.fileFromURL(new URL(&quot;file:&quot; + path));&lt;br /&gt;+            }&lt;br /&gt;+            catch (MalformedURLException mex)&lt;br /&gt;+            {&lt;br /&gt;+                return null;&lt;br /&gt;+            }&lt;br /&gt;+        }&lt;br /&gt;      else&lt;br /&gt;      {&lt;br /&gt;          return ConfigurationUtils.fileFromURL(url);&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Neither of these solutions covers the case of storing configuration files in zip or jar containers, but since it is something I haven&#39;t found a use for yet, I can&#39;t test a fix for it. If anyone is interested in such a use case, I&#39;d advise extending FileChangedReloadingStrategy, combining the logic in jar: and vfsfile: URL handling.</content><link rel='replies' type='application/atom+xml' href='http://blog.astithas.com/feeds/1257190549439172023/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/486398466531826618/1257190549439172023' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/486398466531826618/posts/default/1257190549439172023'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/486398466531826618/posts/default/1257190549439172023'/><link rel='alternate' type='text/html' href='http://blog.astithas.com/2009/04/reconciling-apache-commons.html' title='Reconciling Apache Commons Configuration with JBoss 5'/><author><name>past</name><uri>http://www.blogger.com/profile/05077555675379961731</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-486398466531826618.post-5462759268406883151</id><published>2009-04-13T22:38:00.006+02:00</published><updated>2009-04-14T00:14:02.283+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="gss"/><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><category scheme="http://www.blogger.com/atom/ns#" term="open-source"/><category scheme="http://www.blogger.com/atom/ns#" term="programming"/><category scheme="http://www.blogger.com/atom/ns#" term="software"/><category scheme="http://www.blogger.com/atom/ns#" term="web"/><title type='text'>GSS architecture</title><content type='html'>Handling a large number of concurrent connections requires many servers. Not only because scaling vertically (throwing bigger hardware at the problem) is very costly, but also because even if an application can be designed to scale vertically, the underlying stack probably can not. Java applications for instance, like &lt;a href=&quot;http://astithas.blogspot.com/2009/04/introducing-gss.html&quot;&gt;GSS&lt;/a&gt;, run on the JVM and although the latter is an excellent piece of engineering, using huge amounts of heap is not something it&#39;s tuned for. Big Iron servers with many cores and 20+ GB of RAM are usually running more than one JVM, since garbage collection is not all that efficient with huge heaps. And since running application instances with a 4-8 GB heap size can be done with cheap off-the-shelf hardware, why spend big bucks on Big Iron?&lt;br /&gt;&lt;br /&gt;So having a large number of servers is a sane choice, but brings it&#39;s own set of problems. Unless one partitions users to servers (having all requests a particular user makes be delivered to the same server), all servers must have a consistent view of the system data, in order to deliver meaningful results. Assigning user requests to particular servers, usually requires expensive application layer load-balancers or customized application code on each server, so it would rarely be your first option. Having all servers work on the same data is a more tractable problem, since it can be solved by having the application state being replicated among server nodes. Usually, only a small part of the application state needs to be replicated, for each user, that is the part which concerns his current session. But even though session clustering solutions have been a well studied field and implementations abound, having no session to replicate is an even better option.&lt;br /&gt;&lt;br /&gt;For &lt;a href=&quot;http://code.google.com/p/gss/&quot;&gt;GSS&lt;/a&gt; we have implemented a stateless architecture for the core server, that should provide us with good scalability in a very cost-effective manner. The most important part in this architecture is the REST-like &lt;a href=&quot;http://code.google.com/p/gss/wiki/API&quot;&gt;API&lt;/a&gt; that moves part of the responsibility for session state maintenance to the client applications, effectively distributing the system load to more systems than the available server pool. Furthermore, client requests can be authenticated without requiring an SSL/TLS transport layer (even though it can be used if extra privacy is required), which would entail higher load on the application servers or require expensive load balancers. In the server side, API requests are being handled by servlets that enlist the services of stateless session beans, for easier transaction management. Our persistence story so far is JPA with a DBMS backing, plus high-speed SAN storage for the file contents. If or when this becomes a bottleneck, we have various contingency plans, depending on the actual characteristics of the load that will be observed.&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjbcHZBPIqfa0RtptbV6z1onlgZ-wDTt-4rFW4Eqi0IsKgvA_up9f61KFx8FVtPHUP1Vn7Esc4semS0BiZ70QRy7W7EULQ0ME7ignCNDb2nChPHP4O5k57EqpXng86xs8K6fuyzWTZCGPhP/s1600-h/gss-request.png&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 202px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjbcHZBPIqfa0RtptbV6z1onlgZ-wDTt-4rFW4Eqi0IsKgvA_up9f61KFx8FVtPHUP1Vn7Esc4semS0BiZ70QRy7W7EULQ0ME7ignCNDb2nChPHP4O5k57EqpXng86xs8K6fuyzWTZCGPhP/s400/gss-request.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5324282108482582242&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;The above image depicts the path user requests will travel along, while various nodes interact in order to serve them. A key element in this diagram is the number of different servers that can be found, effectively specializing in their own particular domain. Although the system can be deployed on a single physical server (and regularly is, for development and testing), consisting of a number of standalone sub-services instead of a big monolithic service is a boon to scalability.&lt;br /&gt;&lt;br /&gt;This high-level overview of the GSS architecture should help those interested to find their way around the open-source &lt;a href=&quot;http://code.google.com/p/gss/&quot;&gt;codebase&lt;/a&gt; and explain some of the design decisions. But the most interesting part from a user&#39;s point of view would be the REST-like API, that allows one to take advantage of the service for scratching his own itch.&lt;br /&gt;&lt;br /&gt;So that will be the subject of my next post.</content><link rel='replies' type='application/atom+xml' href='http://blog.astithas.com/feeds/5462759268406883151/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/486398466531826618/5462759268406883151' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/486398466531826618/posts/default/5462759268406883151'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/486398466531826618/posts/default/5462759268406883151'/><link rel='alternate' type='text/html' href='http://blog.astithas.com/2009/04/gss-architecture.html' title='GSS architecture'/><author><name>past</name><uri>http://www.blogger.com/profile/05077555675379961731</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjbcHZBPIqfa0RtptbV6z1onlgZ-wDTt-4rFW4Eqi0IsKgvA_up9f61KFx8FVtPHUP1Vn7Esc4semS0BiZ70QRy7W7EULQ0ME7ignCNDb2nChPHP4O5k57EqpXng86xs8K6fuyzWTZCGPhP/s72-c/gss-request.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-486398466531826618.post-2075472722580003312</id><published>2009-04-08T16:40:00.000+02:00</published><updated>2009-04-08T23:46:41.317+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="gss"/><category scheme="http://www.blogger.com/atom/ns#" term="GWT"/><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><category scheme="http://www.blogger.com/atom/ns#" term="JavaScript"/><category scheme="http://www.blogger.com/atom/ns#" term="open-source"/><category scheme="http://www.blogger.com/atom/ns#" term="programming"/><category scheme="http://www.blogger.com/atom/ns#" term="software"/><category scheme="http://www.blogger.com/atom/ns#" term="web"/><category scheme="http://www.blogger.com/atom/ns#" term="WebDAV"/><title type='text'>Introducing GSS</title><content type='html'>&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKDCssYDW_JCe2fOckf8vyur-29lunsL-6VgbkICYacHD3k8khA4JYVXPCF-boFbK5QsheJ_0bl6LkarVs1ibMNglhnCDUXY5_lu4tijjK5M0t0py6LMhCjdWDJC1xjqA5DfkBg19ezrsQ/s1600-h/gss-logo.png&quot;&gt;&lt;img style=&quot;margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 69px; height: 44px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKDCssYDW_JCe2fOckf8vyur-29lunsL-6VgbkICYacHD3k8khA4JYVXPCF-boFbK5QsheJ_0bl6LkarVs1ibMNglhnCDUXY5_lu4tijjK5M0t0py6LMhCjdWDJC1xjqA5DfkBg19ezrsQ/s400/gss-logo.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5321666415092021970&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;During my recent work-induced blog hiatus, I&#39;ve been working on a new software system, called GSS. I&#39;ve been more than enjoying the ride so far and since we have released the code as open-source, I thought discussing some of the experience I&#39;ve gained might be interesting to others as well.&lt;br /&gt;&lt;br /&gt;GSS is a network, er grid, er I mean cloud service, for providing access to a file system on a remote storage space. It is the name of both a &lt;a href=&quot;http://gss.grnet.gr/&quot;&gt;service&lt;/a&gt; (currently in beta) for the Greek research and academic community and the open source &lt;a href=&quot;http://code.google.com/p/gss/&quot;&gt;software&lt;/a&gt; used for it, that can also be used by others for deploying such services. It is similar in some ways to services like &lt;a href=&quot;http://www.idrive.com/&quot;&gt;iDrive&lt;/a&gt;, &lt;a href=&quot;https://www.getdropbox.com/&quot;&gt;DropBox&lt;/a&gt; and &lt;a href=&quot;http://drop.io/&quot;&gt;drop.io&lt;/a&gt;, but it can also be regarded as a more high-level &lt;a href=&quot;http://aws.amazon.com/s3/&quot;&gt;Amazon S3&lt;/a&gt;. Its purpose is to let the desktop computer&#39;s file system meet the cloud. The familiar file system metaphors of files and folders are used to store information in a remote storage space, that can be accessed from a variety of user and system interfaces, from any place in the world that has an Internet connection. All usual file manager operations are supported and users can share their files with selected other users or groups, or even make them public. Currently there are four user interfaces available, a web-based application, a desktop client, a WebDAV interface and an iPhone web application, in various stages of development. Underlying these user interfaces is a common REST-like API that can be used to extend the service in new, unanticipated ways.&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyLkcadMrSBqgTLiiRNLaAmnAEWaTOwRjhLVIo6GPs6uDqx36gTQt85GVAVA0pTBoPTqZ0X6myHRaY4RcQQSBloIDTz5Dk9_B24V_6Hr4TtFe7Xxa51JwCUprepwVA4FeQgT5tCb9Zv1Au/s1600-h/webclient.png&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 256px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyLkcadMrSBqgTLiiRNLaAmnAEWaTOwRjhLVIo6GPs6uDqx36gTQt85GVAVA0pTBoPTqZ0X6myHRaY4RcQQSBloIDTz5Dk9_B24V_6Hr4TtFe7Xxa51JwCUprepwVA4FeQgT5tCb9Zv1Au/s400/webclient.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5319788597931662882&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;The main focus of this service was to provide the users of the Greek research and academic community with a free, large storage space that can be used to store, access, backup and share their work, from as many computer systems as they want. Since the available user base is close to half a million (although the expected users of the service are projected to the low ten thousands), we needed a scalable system, that would be able to accommodate high network traffic and a high storage capacity at the same time. A Java Enterprise Edition server coupled with a GWT-based web client and a stateless architecture were our solution. In future posts I will describe the system architecture with all the gory details. The exposed virtual file system features file versioning, trash bin support, access control lists, tagging, full text search and more.&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEipQydZ2et7ahZ5ozrdkbcNexebk680T_smK7ryxkV75i8Df0CooW0WSCz7CEDgV4iqv94DcLMKhPtNf4n5eYNL458CIuWX2YxSQjqIubdjPkBVxQf8PG3jvDlJc0cK7lIFeMxiUPtUSlka/s1600-h/webdav.png&quot;&gt;&lt;img style=&quot;margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 400px; height: 221px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEipQydZ2et7ahZ5ozrdkbcNexebk680T_smK7ryxkV75i8Df0CooW0WSCz7CEDgV4iqv94DcLMKhPtNf4n5eYNL458CIuWX2YxSQjqIubdjPkBVxQf8PG3jvDlJc0cK7lIFeMxiUPtUSlka/s400/webdav.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5319444841557597522&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;All of these features are presented through an &lt;a href=&quot;http://code.google.com/p/gss/wiki/API&quot;&gt;API&lt;/a&gt; for third party developers to create scripts, applications or even full blown services that will fulfill their own particular needs or serve other niches. This API has a REST-like design and though it will probably fail a formal RESTful definition, it sports many of the advantages of such architectures:&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;system resources such as users, groups, files and folders are represented by URIs&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;GET, HEAD, POST, PUT and DELETE methods on resources have the expected semantics&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;HTTP caching is explicitly supported via Last-Modified, ETag &amp;amp; If-* headers&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;resource formats for everything besides files are simple JSON representations&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;only authenticated requests are allowed, except for public resources&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;Users are authenticated through the GRNET Shibboleth infrastructure. User passwords are never transmitted to the GSS service. Instead GSS-issued authentication tokens are used by both client and server to sign the API requests after the initial user login. SSL transport can provide even stronger privacy guarantees, but it is not required, nor enabled by default.&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgAoCfSjhZXu7vzUZyfCIix7qP1ymglT-SPIFEcL7qRQFmEKdhJRHlwCJ-iXUpGsM4tj1pDCh4RbxMjurlC8-BPrdxM6uKtegQqHjhGUW7ArRThhR1bCY1EgOTdonam-26Vae0C8CFZMFhV/s1600-h/igss.png&quot;&gt;&lt;img style=&quot;margin: 0pt 0pt 10px 10px; float: right; cursor: pointer; width: 208px; height: 400px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgAoCfSjhZXu7vzUZyfCIix7qP1ymglT-SPIFEcL7qRQFmEKdhJRHlwCJ-iXUpGsM4tj1pDCh4RbxMjurlC8-BPrdxM6uKtegQqHjhGUW7ArRThhR1bCY1EgOTdonam-26Vae0C8CFZMFhV/s400/igss.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5319442116152263794&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;The GSS code base is GPL-licensed and therefore anyone can use it as a starting point to implement his own file storage service. We have yet to provide binary downloads, due to the various dependencies, but the build instructions should be enough to get someone started. We are always interested in source or documentation patches, of course (did I mention it&#39;s open source?). Most importantly, the REST API will ensure that clients developed for one such service can be reused for every other one.&lt;br /&gt;&lt;br /&gt;I will have much more to say about the API in a future post. In the meantime you can peruse the code and documentation, or even try it out yourself. I&#39;d be very interested in any comments you might have.</content><link rel='replies' type='application/atom+xml' href='http://blog.astithas.com/feeds/2075472722580003312/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/486398466531826618/2075472722580003312' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/486398466531826618/posts/default/2075472722580003312'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/486398466531826618/posts/default/2075472722580003312'/><link rel='alternate' type='text/html' href='http://blog.astithas.com/2009/04/introducing-gss.html' title='Introducing GSS'/><author><name>past</name><uri>http://www.blogger.com/profile/05077555675379961731</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKDCssYDW_JCe2fOckf8vyur-29lunsL-6VgbkICYacHD3k8khA4JYVXPCF-boFbK5QsheJ_0bl6LkarVs1ibMNglhnCDUXY5_lu4tijjK5M0t0py6LMhCjdWDJC1xjqA5DfkBg19ezrsQ/s72-c/gss-logo.png" height="72" width="72"/><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-486398466531826618.post-2412064422038285889</id><published>2009-03-14T15:00:00.001+02:00</published><updated>2009-03-14T15:00:42.935+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="personal"/><category scheme="http://www.blogger.com/atom/ns#" term="software"/><title type='text'>Applications meme</title><content type='html'>It&#39;s been a while since my last post, but I&#39;ve been wanting to write about the interesting stuff that I&#39;ve been working on. Unfortunately it took longer than anticipated, but now we&#39;re almost done and I&#39;ll be posting soon with the gory details. However, since I got &lt;a href=&quot;http://blog.postmaster.gr/2009/03/14/re-applications-meme/&quot;&gt;tagged&lt;/a&gt;, I suppose I can throw in a not-so-interesting post, about my Linux application preferences.&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;ol&gt;&lt;li&gt;Which desktop manager do you use more often ? &lt;p&gt;Gnome. It&#39;s the only one that reminds me of OS X somewhat (appearance- and functionality-wise). &lt;/p&gt;&lt;/li&gt;&lt;li&gt;Which desktop application you would not like to see implemented again on linux? And why? &lt;p&gt;A desktop manager. If you are going to provide yet another incarnation of a 30-year old idea, please don&#39;t bother. The concept is pretty well understood: icons/workspace/file manager/drag&#39;n&#39;drop/mouse/menus/launcher/whatever, it&#39;s been done before. Like a million times. If you want to be useful, try to fix some of the shortcomings of the existing ones (notification mechanisms, translucent effects, faster access patterns, application integration, etc.).&lt;br /&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;Which desktop application you definitely would like to see implemented on linux? Describe it briefly or point out to a similar application. &lt;p&gt;Adobe Premiere, or iMovie, or any other semi-decent video editing software. This was the main reason I bought a Mac.&lt;br /&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;Write the name of the last project (not the very best, the last!) that made you wish to thank their developers so you can thank them now! &lt;p&gt;&lt;a href=&quot;http://git-scm.com/&quot;&gt;Git&lt;/a&gt;. You guys rock! (And if you improve on the UI, you will jazz!)&lt;br /&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;(Optional) Link the blogs of 1-3 people you’d like to take part to this meme. (no more than three). you can skip this question if you like. &lt;p&gt;Let&#39;s hear from &lt;a href=&quot;http://chstath.blogspot.com/&quot;&gt;chstath&lt;/a&gt;, &lt;a href=&quot;http://kotsokalis.wordpress.com/&quot;&gt;ckotso&lt;/a&gt; and &lt;a href=&quot;http://keramida.wordpress.com/&quot;&gt;keramida&lt;/a&gt; (who may s/Linux/FreeBSD/ at his discretion).&lt;br /&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.astithas.com/feeds/2412064422038285889/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/486398466531826618/2412064422038285889' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/486398466531826618/posts/default/2412064422038285889'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/486398466531826618/posts/default/2412064422038285889'/><link rel='alternate' type='text/html' href='http://blog.astithas.com/2009/03/applications-meme.html' title='Applications meme'/><author><name>past</name><uri>http://www.blogger.com/profile/05077555675379961731</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-486398466531826618.post-8099319830657571760</id><published>2008-10-07T23:30:00.000+02:00</published><updated>2008-10-07T23:32:37.274+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="FireStatus"/><category scheme="http://www.blogger.com/atom/ns#" term="JavaScript"/><category scheme="http://www.blogger.com/atom/ns#" term="open-source"/><category scheme="http://www.blogger.com/atom/ns#" term="programming"/><category scheme="http://www.blogger.com/atom/ns#" term="web"/><title type='text'>Programming for fun</title><content type='html'>&lt;div&gt;I&#39;ve been in a hiatus from blogging lately, mainly because free time has been in short supply. It&#39;s not just the very busy days at work, nights have been even busier. Instead of churning out long blog posts, I&#39;ve been banging on code instead, day and night. Unfortunately I only get paid for the code I write during the day, but surprisingly (or not) I enjoy the code I write at night the most. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;I have written code for banks, multinational corporations, the kind of places where the phrase &quot;professional dress code&quot; is not used strictly in jokes. I&#39;ve helped build software that was resilient, scalable, secure and intuitive, although granted, not all those at the same time. This was mainly Custom Enterprise Software, or to put it more plainly, Software That Runs On Computers At Work. So I thought I&#39;d try a different angle in my spare time: write software that people use at work, or at home. Or at a coffee shop. Or at the airport. Or wherever they feel like using a computer, anyway. This is sometimes called  End-User Software, or to put it in layman&#39;s terms, Software People May Actually Like. After trying out some ideas that didn&#39;t seem worthwhile, I discovered that &lt;a href=&quot;http://chstath.blogspot.com/&quot;&gt;some of&lt;/a&gt; &lt;a href=&quot;http://synodinos.net/&quot;&gt;my buddies&lt;/a&gt; had similar thoughts. This is how &lt;a href=&quot;https://addons.mozilla.org/en-US/firefox/addon/8973&quot;&gt;FireStatus&lt;/a&gt; was born.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;FireStatus is a Firefox extension that aims to be a swiss army knife for dealing with various social networks, right from your browser, without visiting any particular website. &lt;a href=&quot;http://facebook.com/&quot;&gt;Facebook&lt;/a&gt;, &lt;a href=&quot;http://twitter.com/&quot;&gt;Twitter&lt;/a&gt; and &lt;a href=&quot;http://friendfeed.com/&quot;&gt;FriendFeed&lt;/a&gt; are currently supported, but more are in the pipeline. For starters, it allows you to simultaneously update your status to all or some of these services, so that all your friends see it, no matter what they are using. The notion of a status that is occasionally updated is familiar to Twitter and Facebook users, since the text field that asks &#39;What are you doing?&#39; is prominent in their user pages. FriendFeed does not have the notion of a status, but its users can post short (or long) messages, just like Twitter&#39;s. FriendFeed also allows posting links to web pages, accompanied with a short description, something that many Twitter and Facebook users have been doing by constructing status updates that start with the description text and are followed by an appended link, usually shortened.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;FireStatus can ease the task of posting these messages or status updates, by being always available, instead of needing to have the service pages open and without a large memory footprint, like other similar applications, since it takes advantage of the fact that most people nowadays always have one browser open. I know I do. Come to think of it, I don&#39;t know anyone who uses computers that does not keep a browser running most of the time. At least untile the darned thing crashes, which fortunately is something I haven&#39;t experienced in Firefox for quite some time.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBbn1ZGWwASZ6OZbqRA8qq87Oj4N_PB3_cFs25ALPPXiZvoCeKntIj_s4kuE7dFq2SmXvx-FzwI69w8WnGCddzQS7SrRnBg6SeYivg1yBIQl45wnVUSGvJqmDR28bpVwmdzFRFlLHRPSG5/s1600-h/post-screenshot.png&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBbn1ZGWwASZ6OZbqRA8qq87Oj4N_PB3_cFs25ALPPXiZvoCeKntIj_s4kuE7dFq2SmXvx-FzwI69w8WnGCddzQS7SrRnBg6SeYivg1yBIQl45wnVUSGvJqmDR28bpVwmdzFRFlLHRPSG5/s400/post-screenshot.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5253051041007301650&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:78%;&quot;&gt;Posting a message or status update&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;Clicking on the FireStatus icon, pops up a small toolbar window just above the status bar and below the window document. It is similar to the Firefox findbar that pops up when one searches for text in a page, albeit slightly larger. That was a deliberate design decision that aimed to imitate the success in the usability of the findbar. Lots of little details like this one have been carefully thought out and occasionally debated at length among the team and our &lt;a href=&quot;http://broadbandprime.blogspot.com/&quot;&gt;beta testers&lt;/a&gt;:&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;Enabling the spell checker in the status message field, for catching those typos when hastily typing a message.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Having the URL inclusion unchecked by default, while the shortening checked, since most posts do not include URLs (and it might be embarrassing if done inadvertently), but those that do usually want them short.&lt;/li&gt;&lt;li&gt;Adding a character counter to help guard against the maximum message length imposed by some services (e.g. Twitter).&lt;/li&gt;&lt;li&gt;Tightly placing the available services in a way that allows for an unambiguous selection. &lt;/li&gt;&lt;li&gt;Using the Escape and Enter keys as shortcuts for canceling and sending the update respectively.&lt;/li&gt;&lt;/ul&gt;As one reviewer in addons.mozilla.org so eloquently put it, &quot;the simplicity &amp;amp; minimal design are the key components here&quot;.&lt;br /&gt;&lt;br /&gt;Posting is not the whole story, though. These services provide continuous streams of updates from friends that we need to monitor. Sifting through the updates in every service, while very useful, becomes tedious after a while. It is like making a mental note to check your e-mail every once in a while for new messages. It&#39;s one way to do it for sure, but mail notifiers have been around for ages and provide more of a &quot;live&quot; experience. &lt;/div&gt;&lt;img style=&quot;margin: 0pt 0pt 10px 10px; float: right; cursor: pointer;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPvc7b6Vw9Ps1qZz5Vv1fho9izzjhFKtatH7_lcUnyQhGYUCBO7DSznfWmgj-vZSiPj8ZQ0AzDogry2tBXlONnanNwoSV00qEahWQytHV3J-csj1y_f47eQA5W3t6j-N5eLg6c3p5VDRfr/s400/twitter-screenshot.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5253051270839256530&quot; border=&quot;0&quot; /&gt;&lt;div&gt;FireStatus imitates their success in making e-mail conversations &quot;alive&quot;, for conversations in the social network space. Every time a new incoming update is received, a notification popup appears, so I can continue using whatever application I was using, but being instantly aware of the news. Twitter notifications contain the name and the picture of the message author as well as the message sent. Low-priority or uninteresting messages can be just glanced at and then automatically dismissed, while important ones can be clicked on, so that the message can be viewed in the browser. FriendFeed notifications can be of various flavors, since FriendFeed aggregates updates from a large variety of online services.&lt;/div&gt;&lt;img style=&quot;margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9nqlmz0G9HhpNT8f8rCP1uiu5wYZFqzOW5afgSz4d2HHBqAkE66Rk3FJKD6D-EV_7h1KoE9pKb0uVK_8bL6eLGuKtju-UHhl8qnq2chNX825xYyywA-cbcbD1NVuAreOSqeCmYQeTJoEx/s400/ff-screenshot.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5253051475907180610&quot; border=&quot;0&quot; /&gt;&lt;div&gt; Therefore FriendFeed updates display the service icon along with the author&#39;s name for quick identification of the type of update. Clicking on an interesting update opens a browser window to the link contained in the message. Facebook notifications currently contain new message counts, pokes and shares, but work for getting more data is underway.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Although the notifications appear instantaneous, as with e-mail notifications there is a polling process involved underneath. The polling frequency for each service can be separately tuned in the preferences window. The preference window can be opened by right-clicking on the FireStatus icon and selecting the appropriate option in the popup menu. Along with the time intervals between polling for updates, one can enable posting and/or receiving updates for the various services, as well as the authentication credentials where appropriate. For Facebook the user logs in in a Facebook-supplied browser window that pops up, similar to regular Facebook use. No credentials need to be stored separately by FireStatus. For FriendFeed the username and remote key have to be stored locally in the extension preferences. The remote key is not the same as the user password, but is provided by FriendFeed specifically for use by third-party applications, like ours. It can be found by clicking on the link displayed in the explanatory note. Twitter can work either way. If a username and password are entered in the preference window, they will be stored locally in the extension preferences and used for subsequent authentication. If, on the other hand, the fields are blank, FireStatus will consult the browser&#39;s Password Manager for any stored Twitter credentials. This will probably cause the master password dialog to pop up once, but the credentials will remain stored only in the Password Manager.&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtfR2YBVEMa1LSPY7AIC9daX5lbUtvV7L6gzNwcCuJ3shqIk80ofpICYEn32PFeJ9tuBAHgqwHpL7LgOCN5Zo7Zg1LXc4Y7c5_9UtDV5yNPMyll8EHImk3Co3ePumW9r7WIgXCKEs_0B6l/s400/prefs-screenshot.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5253051637241264370&quot; border=&quot;0&quot; /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:78%;&quot;&gt;FireStatus preferences&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Since we built this thing for our own personal use, pleasure and self-punishment, and as we don&#39;t plan to ever get rich out of it, we have released it from the beginning as open-source software through the permissive BSD license. You are most welcome to come by the &lt;a href=&quot;http://code.google.com/p/firestatus/&quot;&gt;project&#39;s home&lt;/a&gt; at Google Code, study the code, fix a bug (or two), help with the (embarrassingly outdated) documentation, &lt;a href=&quot;https://addons.mozilla.org/en-US/firefox/reviews/add/8973&quot;&gt;contribute a review&lt;/a&gt; (otherwise it will remain an experimental extension forever) or just chat with us at the mailing list. Heck, if you feel like it, you can grab the whole code and use it in your own lucrative business and you don&#39;t owe us a dime.&lt;br /&gt;&lt;br /&gt;With the shape the world economy currently is in, you probably couldn&#39;t afford it, anyway.&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://blog.astithas.com/feeds/8099319830657571760/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/486398466531826618/8099319830657571760' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/486398466531826618/posts/default/8099319830657571760'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/486398466531826618/posts/default/8099319830657571760'/><link rel='alternate' type='text/html' href='http://blog.astithas.com/2008/10/programming-for-fun.html' title='Programming for fun'/><author><name>past</name><uri>http://www.blogger.com/profile/05077555675379961731</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBbn1ZGWwASZ6OZbqRA8qq87Oj4N_PB3_cFs25ALPPXiZvoCeKntIj_s4kuE7dFq2SmXvx-FzwI69w8WnGCddzQS7SrRnBg6SeYivg1yBIQl45wnVUSGvJqmDR28bpVwmdzFRFlLHRPSG5/s72-c/post-screenshot.png" height="72" width="72"/><thr:total>0</thr:total></entry></feed>