<?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-6257428138644582699</id><updated>2025-07-21T15:39:23.427+03:00</updated><category term="snippets"/><category term="web"/><category term="beauty"/><category term="other"/><category term="Java"/><category term="math"/><category term="tutorials"/><category term="CSED Alex Bloggers"/><category term="iphone"/><category term="windows"/><category term="music"/><category term="objective-c"/><category term="Ubuntu"/><category term=".Net"/><category term="C++"/><category term="JavaScript"/><category term="note to programmers"/><category term="games"/><category term="mechanics"/><category term="troubleshooting"/><category term="Islam"/><category term="PHP"/><category term="Symbian"/><category term="TA"/><category term="Wi-Fi"/><category term="security"/><category term="utilities"/><title type='text'>The Lost Beauty</title><subtitle type='html'>searching everywhere...</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://the-lost-beauty.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6257428138644582699/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://the-lost-beauty.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/6257428138644582699/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Ahmed Abdelkader</name><uri>http://www.blogger.com/profile/01141303576931872803</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3SP7thuv60HE7XSTL7XsjS0pkLo1l7173XO_JFkkWX--kjci6uneFzv_Q8G-yo7cEbTRUh0cc-LWjLdSnAeCEwFy653YXKmGSiOMtM8Q3BjGzlNi8DOi_KeJtLodrrw/s1600/*'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>62</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6257428138644582699.post-3547305330743840141</id><published>2016-01-23T09:21:00.000+02:00</published><updated>2016-01-23T09:29:53.723+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="other"/><category scheme="http://www.blogger.com/atom/ns#" term="tutorials"/><category scheme="http://www.blogger.com/atom/ns#" term="web"/><title type='text'>Creating scalable images on the cheap</title><summary type="text">
I just finished working on a banner for my univeristy. The design involves three logos for the three entities involved in this activity: the school mascot, the student organization and the house of representatives. I preferred the mascot vs the seal since I believe it&#39;s more natural for students to identify with. And to keep things light and informal I also preferred an easily recognizable </summary><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6257428138644582699/3547305330743840141' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6257428138644582699/posts/default/3547305330743840141'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6257428138644582699/posts/default/3547305330743840141'/><link rel='alternate' type='text/html' href='http://the-lost-beauty.blogspot.com/2016/01/creating-scalable-images-on-cheap.html' title='Creating scalable images on the cheap'/><author><name>Ahmed Abdelkader</name><uri>http://www.blogger.com/profile/01141303576931872803</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3SP7thuv60HE7XSTL7XsjS0pkLo1l7173XO_JFkkWX--kjci6uneFzv_Q8G-yo7cEbTRUh0cc-LWjLdSnAeCEwFy653YXKmGSiOMtM8Q3BjGzlNi8DOi_KeJtLodrrw/s1600/*'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-eFZXFD8EPvdWugO2An1G9HZ0iZ78TEFNabZ-GklRcWKCuI-PLTUqQp0FkDfiQwEWRn54Bmr7gB5DfPoMNIyWfNpUnHt1UpHsd5shqBLcK3hLwd74kaEcZ6vX0gL8VSQaUzEbH5XpaFU/s72-c/houseLogoPrint+%2528copy%2529.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6257428138644582699.post-4106625365691350784</id><published>2015-11-29T05:56:00.000+02:00</published><updated>2016-04-24T21:01:45.406+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="beauty"/><category scheme="http://www.blogger.com/atom/ns#" term="math"/><category scheme="http://www.blogger.com/atom/ns#" term="mechanics"/><title type='text'>Shortest path touching a circle</title><summary type="text">
   MathJax.Hub.Config({tex2jax: {inlineMath: [[&#39;$&#39;,&#39;$&#39;], [&#39;\\(&#39;,&#39;\\)&#39;]]}});   


This came up a week or so ago in a discussion with a lab mate. The governing principle is well-known from physics, but I was too lazy to find a derivation online. Later on, I had an idea and wanted to give it a try, so here goes.






We&#39;re interested in the shortest path starting at point $a$ to point $b$ with the</summary><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6257428138644582699/4106625365691350784' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6257428138644582699/posts/default/4106625365691350784'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6257428138644582699/posts/default/4106625365691350784'/><link rel='alternate' type='text/html' href='http://the-lost-beauty.blogspot.com/2015/11/shortest-path-touching-circle.html' title='Shortest path touching a circle'/><author><name>Ahmed Abdelkader</name><uri>http://www.blogger.com/profile/01141303576931872803</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3SP7thuv60HE7XSTL7XsjS0pkLo1l7173XO_JFkkWX--kjci6uneFzv_Q8G-yo7cEbTRUh0cc-LWjLdSnAeCEwFy653YXKmGSiOMtM8Q3BjGzlNi8DOi_KeJtLodrrw/s1600/*'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh73ECreA6Egco-zFKBD_LYeQAOkjR4ZXhhQ6pYZFnPguWmaL994jnm26BnqZLQv1TfNkz3cXhYo0qWw-oxuKqTDqTj1jCf4jt8WMdzJXlXJmxDVcCuHDQMWQy701o8wVyD6TKaoaYA2Og/s72-c/phy.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6257428138644582699.post-2638733250573498751</id><published>2014-03-23T19:06:00.001+02:00</published><updated>2014-03-23T19:06:50.421+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="snippets"/><category scheme="http://www.blogger.com/atom/ns#" term="Ubuntu"/><category scheme="http://www.blogger.com/atom/ns#" term="utilities"/><title type='text'>PS to PDF: convert and crop</title><summary type="text">
I&#39;ve done this task once before and forgot how. It took me a while to do it again, so I&#39;m posting this here in case somebody else needs it. It might not be the best way to do it so if you can make it better, I&#39;d love to hear from you.

I&#39;m using pstill_dist&amp;nbsp;and&amp;nbsp;pdfcrop with two subdirectories for all input and output files.
#!/bin/bash
for FILE in $(find ./input -name &#39;*.ps&#39;); do
    </summary><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6257428138644582699/2638733250573498751' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6257428138644582699/posts/default/2638733250573498751'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6257428138644582699/posts/default/2638733250573498751'/><link rel='alternate' type='text/html' href='http://the-lost-beauty.blogspot.com/2014/03/ps-to-pdf-convert-and-crop.html' title='PS to PDF: convert and crop'/><author><name>Ahmed Abdelkader</name><uri>http://www.blogger.com/profile/01141303576931872803</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3SP7thuv60HE7XSTL7XsjS0pkLo1l7173XO_JFkkWX--kjci6uneFzv_Q8G-yo7cEbTRUh0cc-LWjLdSnAeCEwFy653YXKmGSiOMtM8Q3BjGzlNi8DOi_KeJtLodrrw/s1600/*'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6257428138644582699.post-6614577054417698730</id><published>2011-05-08T07:02:00.017+02:00</published><updated>2014-09-17T22:12:17.181+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="JavaScript"/><category scheme="http://www.blogger.com/atom/ns#" term="snippets"/><category scheme="http://www.blogger.com/atom/ns#" term="TA"/><category scheme="http://www.blogger.com/atom/ns#" term="web"/><title type='text'>Sorting Facebook feeds in chronological order</title><summary type="text">
College students spend lots of time on Facebook and virtually use it to share and organize their shcedules and course materials. Obviously, things get out of control and you end up with a very long and entangled feed that you might find yourself in a real need to explore or even worse, scan for something important.

So, one day a student of mine posted (!), wondering if there were any group </summary><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6257428138644582699/6614577054417698730' title='21 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6257428138644582699/posts/default/6614577054417698730'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6257428138644582699/posts/default/6614577054417698730'/><link rel='alternate' type='text/html' href='http://the-lost-beauty.blogspot.com/2011/05/sorting-facebook-group-feed-in.html' title='Sorting Facebook feeds in chronological order'/><author><name>Ahmed Abdelkader</name><uri>http://www.blogger.com/profile/01141303576931872803</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3SP7thuv60HE7XSTL7XsjS0pkLo1l7173XO_JFkkWX--kjci6uneFzv_Q8G-yo7cEbTRUh0cc-LWjLdSnAeCEwFy653YXKmGSiOMtM8Q3BjGzlNi8DOi_KeJtLodrrw/s1600/*'/></author><thr:total>21</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6257428138644582699.post-7573084542431042042</id><published>2011-01-26T14:55:00.006+02:00</published><updated>2011-01-26T15:38:09.039+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="beauty"/><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><category scheme="http://www.blogger.com/atom/ns#" term="snippets"/><title type='text'>A lightweight anonymous visitor for Java collections</title><summary type="text">I got myself into a situation where I really wished that Java collections accepted a visitor interface of some kind so I could define one on the fly and get my job done. Alas, I decided to implement the utility myself and here&#39;s the result.public interface IVisitor&amp;lt;T&amp;gt; { void visit(T item);}public class CollectionUtils { public static&amp;lt;T&amp;gt; void applyVisitor(Collection&amp;lt;T&amp;gt; collection</summary><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6257428138644582699/7573084542431042042' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6257428138644582699/posts/default/7573084542431042042'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6257428138644582699/posts/default/7573084542431042042'/><link rel='alternate' type='text/html' href='http://the-lost-beauty.blogspot.com/2011/01/lightweight-anonymous-visitor-for-java.html' title='A lightweight anonymous visitor for Java collections'/><author><name>Ahmed Abdelkader</name><uri>http://www.blogger.com/profile/01141303576931872803</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3SP7thuv60HE7XSTL7XsjS0pkLo1l7173XO_JFkkWX--kjci6uneFzv_Q8G-yo7cEbTRUh0cc-LWjLdSnAeCEwFy653YXKmGSiOMtM8Q3BjGzlNi8DOi_KeJtLodrrw/s1600/*'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6257428138644582699.post-3010251846936305835</id><published>2010-10-24T23:48:00.007+02:00</published><updated>2010-10-25T00:51:59.286+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="beauty"/><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><category scheme="http://www.blogger.com/atom/ns#" term="math"/><category scheme="http://www.blogger.com/atom/ns#" term="snippets"/><title type='text'>Efficient enumeration of all integers with a given pop count</title><summary type="text">Population count is the number of &#39;1&#39; bits in the binary representation of an integer.The basic trick we employ is to get the next higher number with the same number of 1-bits, which we borrow from the Hacker&#39;s Delight (whole book). Below is a Java implementation of all 4 version of the snoob function.public static int snoob1(int x) {    int r = x + (x &amp; -x);    return r | ((x ^ r) &gt;&gt;&gt; (2 + </summary><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6257428138644582699/3010251846936305835' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6257428138644582699/posts/default/3010251846936305835'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6257428138644582699/posts/default/3010251846936305835'/><link rel='alternate' type='text/html' href='http://the-lost-beauty.blogspot.com/2010/10/efficient-enumeration-of-all-integers.html' title='Efficient enumeration of all integers with a given pop count'/><author><name>Ahmed Abdelkader</name><uri>http://www.blogger.com/profile/01141303576931872803</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3SP7thuv60HE7XSTL7XsjS0pkLo1l7173XO_JFkkWX--kjci6uneFzv_Q8G-yo7cEbTRUh0cc-LWjLdSnAeCEwFy653YXKmGSiOMtM8Q3BjGzlNi8DOi_KeJtLodrrw/s1600/*'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6257428138644582699.post-8914970660550019924</id><published>2010-07-17T15:32:00.005+03:00</published><updated>2010-07-17T15:58:28.334+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="beauty"/><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><category scheme="http://www.blogger.com/atom/ns#" term="math"/><category scheme="http://www.blogger.com/atom/ns#" term="snippets"/><title type='text'>Generating combinations in lexicographical order using Java</title><summary type="text">Below is a Java port of the algorithm by James McCaffrey as presented in the MSDN article Generating the mth Lexicographical Element of a Mathematical Combination.Please do take into consideration that this implementation only uses int as Java does not allow array indexing with long. This means that the valid input range is more restricted. Watch out for overflows!/** * Based on the Combinadic </summary><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6257428138644582699/8914970660550019924' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6257428138644582699/posts/default/8914970660550019924'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6257428138644582699/posts/default/8914970660550019924'/><link rel='alternate' type='text/html' href='http://the-lost-beauty.blogspot.com/2010/07/generating-combinations-in.html' title='Generating combinations in lexicographical order using Java'/><author><name>Ahmed Abdelkader</name><uri>http://www.blogger.com/profile/01141303576931872803</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3SP7thuv60HE7XSTL7XsjS0pkLo1l7173XO_JFkkWX--kjci6uneFzv_Q8G-yo7cEbTRUh0cc-LWjLdSnAeCEwFy653YXKmGSiOMtM8Q3BjGzlNi8DOi_KeJtLodrrw/s1600/*'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6257428138644582699.post-7866780764247313633</id><published>2010-06-21T06:48:00.011+03:00</published><updated>2010-07-21T00:21:22.042+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="beauty"/><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><category scheme="http://www.blogger.com/atom/ns#" term="math"/><category scheme="http://www.blogger.com/atom/ns#" term="snippets"/><title type='text'>G/G/1 Queue Model Simulation in Java</title><summary type="text">In this post, we present an object-oriented design and implementation of an event-driven G/G/1 queue model simulation using Java. The lecture notes on Computer System Analysis by Raj Jain were very helpful and are highly recommended. In particular, we would like to reference the introductory lectures on Simulation Modeling and Queueing Theory.Please note that this implementation is provided as a </summary><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6257428138644582699/7866780764247313633' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6257428138644582699/posts/default/7866780764247313633'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6257428138644582699/posts/default/7866780764247313633'/><link rel='alternate' type='text/html' href='http://the-lost-beauty.blogspot.com/2010/06/gg1-queue-model-simulation-in-java.html' title='G/G/1 Queue Model Simulation in Java'/><author><name>Ahmed Abdelkader</name><uri>http://www.blogger.com/profile/01141303576931872803</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3SP7thuv60HE7XSTL7XsjS0pkLo1l7173XO_JFkkWX--kjci6uneFzv_Q8G-yo7cEbTRUh0cc-LWjLdSnAeCEwFy653YXKmGSiOMtM8Q3BjGzlNi8DOi_KeJtLodrrw/s1600/*'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6257428138644582699.post-4105008839605399417</id><published>2010-04-28T07:17:00.007+02:00</published><updated>2010-04-29T17:56:51.981+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="beauty"/><category scheme="http://www.blogger.com/atom/ns#" term="tutorials"/><category scheme="http://www.blogger.com/atom/ns#" term="web"/><title type='text'>GeoTraffic &amp; GeoKeywords: Google Analytics custom reports for fun and profit</title><summary type="text">I&#39;ve been using Google Analytics for 2 years to track the traffic on this blog. It&#39;s really interesting to see which posts receive more attention and what traffic sources and keywords generated how much traffic on any one day. This is specially important to me since the majority of the traffic to my blog comes from search engines a.k.a. google (organic).However, when you really look into the </summary><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6257428138644582699/4105008839605399417' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6257428138644582699/posts/default/4105008839605399417'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6257428138644582699/posts/default/4105008839605399417'/><link rel='alternate' type='text/html' href='http://the-lost-beauty.blogspot.com/2010/04/geotraffic-geokeywords-google-analytics.html' title='GeoTraffic &amp; GeoKeywords: Google Analytics custom reports for fun and profit'/><author><name>Ahmed Abdelkader</name><uri>http://www.blogger.com/profile/01141303576931872803</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3SP7thuv60HE7XSTL7XsjS0pkLo1l7173XO_JFkkWX--kjci6uneFzv_Q8G-yo7cEbTRUh0cc-LWjLdSnAeCEwFy653YXKmGSiOMtM8Q3BjGzlNi8DOi_KeJtLodrrw/s1600/*'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6257428138644582699.post-807084143824690761</id><published>2010-02-05T00:44:00.007+02:00</published><updated>2010-02-10T01:14:49.145+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="beauty"/><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="other"/><category scheme="http://www.blogger.com/atom/ns#" term="web"/><title type='text'>Introducing Google App Engine - All in One</title><summary type="text">Google App Engine lets you run your web applications on Google&#39;s infrastructure e.g. GFS and BigTable. App Engine applications are easy to build, easy to maintain, and easy to scale as your traffic and data storage needs grow. With App Engine, there are no servers to maintain: You just upload your application, and it&#39;s ready to serve your users... more docs. An alternative introduction is </summary><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6257428138644582699/807084143824690761' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6257428138644582699/posts/default/807084143824690761'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6257428138644582699/posts/default/807084143824690761'/><link rel='alternate' type='text/html' href='http://the-lost-beauty.blogspot.com/2010/02/introducing-google-app-engine-all-in.html' title='Introducing Google App Engine - All in One'/><author><name>Ahmed Abdelkader</name><uri>http://www.blogger.com/profile/01141303576931872803</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3SP7thuv60HE7XSTL7XsjS0pkLo1l7173XO_JFkkWX--kjci6uneFzv_Q8G-yo7cEbTRUh0cc-LWjLdSnAeCEwFy653YXKmGSiOMtM8Q3BjGzlNi8DOi_KeJtLodrrw/s1600/*'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6257428138644582699.post-6581953160300309071</id><published>2010-01-28T07:15:00.008+02:00</published><updated>2011-08-26T03:24:20.935+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="iphone"/><category scheme="http://www.blogger.com/atom/ns#" term="objective-c"/><category scheme="http://www.blogger.com/atom/ns#" term="snippets"/><title type='text'>Auto-formatting phone number UITextField on the iPhone</title><summary type="text">In this post, we&#39;ll use our PhoneNumberFormatter to implement an auto-formatting phone number text field in an attempt to mimic the behavior of iPhone&#39;s native apps, like Phone and Contacts.So, let&#39;s call the text field in question myTextField. We start by calling addTarget on the text field to make it call the autoFormatTextField method in our view controller whenever it gets updated, either </summary><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6257428138644582699/6581953160300309071' title='15 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6257428138644582699/posts/default/6581953160300309071'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6257428138644582699/posts/default/6581953160300309071'/><link rel='alternate' type='text/html' href='http://the-lost-beauty.blogspot.com/2010/01/auto-formatting-phone-number.html' title='Auto-formatting phone number UITextField on the iPhone'/><author><name>Ahmed Abdelkader</name><uri>http://www.blogger.com/profile/01141303576931872803</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3SP7thuv60HE7XSTL7XsjS0pkLo1l7173XO_JFkkWX--kjci6uneFzv_Q8G-yo7cEbTRUh0cc-LWjLdSnAeCEwFy653YXKmGSiOMtM8Q3BjGzlNi8DOi_KeJtLodrrw/s1600/*'/></author><thr:total>15</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6257428138644582699.post-3253901515560988451</id><published>2010-01-23T06:46:00.011+02:00</published><updated>2011-09-10T10:13:41.476+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="beauty"/><category scheme="http://www.blogger.com/atom/ns#" term="math"/><title type='text'>On the Fairness of Reservoir Sampling</title><summary type="text">Reservoir sampling is a family of randomized algorithms for randomly choosing K samples from a list of S items, where S is either a very large or unknown number.A very elegant algorithm titled Algorithm R by Alan G. Waterman, is summarized as follows:Fill up the &#39;reservoir&#39; with the first k items from SFor every item S[j] where j &amp;gt; K Choose an integer r between 0 and j If r &amp;lt; K then replace</summary><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6257428138644582699/3253901515560988451' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6257428138644582699/posts/default/3253901515560988451'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6257428138644582699/posts/default/3253901515560988451'/><link rel='alternate' type='text/html' href='http://the-lost-beauty.blogspot.com/2010/01/on-fairness-of-reservoir-sampling.html' title='On the Fairness of Reservoir Sampling'/><author><name>Ahmed Abdelkader</name><uri>http://www.blogger.com/profile/01141303576931872803</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3SP7thuv60HE7XSTL7XsjS0pkLo1l7173XO_JFkkWX--kjci6uneFzv_Q8G-yo7cEbTRUh0cc-LWjLdSnAeCEwFy653YXKmGSiOMtM8Q3BjGzlNi8DOi_KeJtLodrrw/s1600/*'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6257428138644582699.post-8420675734041185543</id><published>2010-01-22T14:38:00.031+02:00</published><updated>2015-02-06T23:19:21.359+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="iphone"/><category scheme="http://www.blogger.com/atom/ns#" term="objective-c"/><category scheme="http://www.blogger.com/atom/ns#" term="snippets"/><category scheme="http://www.blogger.com/atom/ns#" term="web"/><title type='text'>Locale-aware phone number formatting on the iPhone</title><summary type="text">iPhone developers often find themselves trying to stick to the standards set by Apple. Most of the time, doing so is facilitated by the SDK and the results are better. Sometimes though, it&#39;s not easy at all, mainly because some APIs are not open.

One example is phone number formatting. The Contacts application utilizes an auto-formatting UITextField for phone number entry. Many business </summary><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6257428138644582699/8420675734041185543' title='22 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6257428138644582699/posts/default/8420675734041185543'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6257428138644582699/posts/default/8420675734041185543'/><link rel='alternate' type='text/html' href='http://the-lost-beauty.blogspot.com/2010/01/locale-sensitive-phone-number.html' title='Locale-aware phone number formatting on the iPhone'/><author><name>Ahmed Abdelkader</name><uri>http://www.blogger.com/profile/01141303576931872803</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3SP7thuv60HE7XSTL7XsjS0pkLo1l7173XO_JFkkWX--kjci6uneFzv_Q8G-yo7cEbTRUh0cc-LWjLdSnAeCEwFy653YXKmGSiOMtM8Q3BjGzlNi8DOi_KeJtLodrrw/s1600/*'/></author><thr:total>22</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6257428138644582699.post-4141249552410196355</id><published>2010-01-22T13:39:00.008+02:00</published><updated>2010-01-23T16:54:35.158+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="iphone"/><category scheme="http://www.blogger.com/atom/ns#" term="note to programmers"/><category scheme="http://www.blogger.com/atom/ns#" term="web"/><title type='text'>Testing against a web server that doesn&#39;t respond, aka infinite delay</title><summary type="text">I wanted to simulate the situation when the server doesn&#39;t respond, without changing much. A friend of mine suggested I use any of the unassigned IPs on our LAN. Exactly what I was looking for! The request timed-out and I was able to see how my application would act in this case. We may also add an entry in the hosts file to name this black-hole-server, so it can be used later as needed. The </summary><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6257428138644582699/4141249552410196355' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6257428138644582699/posts/default/4141249552410196355'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6257428138644582699/posts/default/4141249552410196355'/><link rel='alternate' type='text/html' href='http://the-lost-beauty.blogspot.com/2010/01/testing-against-web-server-that-doesnt.html' title='Testing against a web server that doesn&#39;t respond, aka infinite delay'/><author><name>Ahmed Abdelkader</name><uri>http://www.blogger.com/profile/01141303576931872803</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3SP7thuv60HE7XSTL7XsjS0pkLo1l7173XO_JFkkWX--kjci6uneFzv_Q8G-yo7cEbTRUh0cc-LWjLdSnAeCEwFy653YXKmGSiOMtM8Q3BjGzlNi8DOi_KeJtLodrrw/s1600/*'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6257428138644582699.post-7982920608424711052</id><published>2010-01-14T01:35:00.004+02:00</published><updated>2012-11-18T11:52:58.956+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="note to programmers"/><category scheme="http://www.blogger.com/atom/ns#" term="other"/><category scheme="http://www.blogger.com/atom/ns#" term="web"/><title type='text'>Daniel Pink on the surprising science of motivation - TEDTalks</title><summary type="text">A friend of mine recommended this video and I liked it so much I shared it immediately with other friends. As some of them were very busy to watch the whole thing, they asked for a summary. And since the topic was still active on my mind, I decided to do it for them and later I decided to make it available to everybody on this blog.I have to emphasize that this text is based entirely and solely </summary><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6257428138644582699/7982920608424711052' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6257428138644582699/posts/default/7982920608424711052'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6257428138644582699/posts/default/7982920608424711052'/><link rel='alternate' type='text/html' href='http://the-lost-beauty.blogspot.com/2010/01/daniel-pink-on-surprising-science-of.html' title='Daniel Pink on the surprising science of motivation - TEDTalks'/><author><name>Ahmed Abdelkader</name><uri>http://www.blogger.com/profile/01141303576931872803</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3SP7thuv60HE7XSTL7XsjS0pkLo1l7173XO_JFkkWX--kjci6uneFzv_Q8G-yo7cEbTRUh0cc-LWjLdSnAeCEwFy653YXKmGSiOMtM8Q3BjGzlNi8DOi_KeJtLodrrw/s1600/*'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6257428138644582699.post-261573262144361816</id><published>2009-12-31T00:05:00.017+02:00</published><updated>2010-05-10T18:22:44.544+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><category scheme="http://www.blogger.com/atom/ns#" term="math"/><category scheme="http://www.blogger.com/atom/ns#" term="other"/><category scheme="http://www.blogger.com/atom/ns#" term="snippets"/><category scheme="http://www.blogger.com/atom/ns#" term="tutorials"/><title type='text'>Simulation and Kalman filter for a 3rd order kinematic model</title><summary type="text">Using a Discrete Wiener Process Acceleration (DWPA) model, we illustrate the usage of the Java implementation of the Kalman filter we presented in the previous post. The model we employ here is taken from Estimation with Applications to Tracking and Navigation.We start by building the Kalman filter using this method:public static KalmanFilter buildKF(double dt, double processNoisePSD, double </summary><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6257428138644582699/261573262144361816' title='12 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6257428138644582699/posts/default/261573262144361816'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6257428138644582699/posts/default/261573262144361816'/><link rel='alternate' type='text/html' href='http://the-lost-beauty.blogspot.com/2009/12/simulation-and-kalman-filter-for-3rd.html' title='Simulation and Kalman filter for a 3rd order kinematic model'/><author><name>Ahmed Abdelkader</name><uri>http://www.blogger.com/profile/01141303576931872803</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3SP7thuv60HE7XSTL7XsjS0pkLo1l7173XO_JFkkWX--kjci6uneFzv_Q8G-yo7cEbTRUh0cc-LWjLdSnAeCEwFy653YXKmGSiOMtM8Q3BjGzlNi8DOi_KeJtLodrrw/s1600/*'/></author><thr:total>12</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6257428138644582699.post-1986316146471907015</id><published>2009-12-06T00:28:00.010+02:00</published><updated>2010-05-10T18:21:22.710+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><category scheme="http://www.blogger.com/atom/ns#" term="math"/><category scheme="http://www.blogger.com/atom/ns#" term="other"/><category scheme="http://www.blogger.com/atom/ns#" term="snippets"/><title type='text'>Java implementation of the Kalman Filter using JAMA</title><summary type="text">This is a very clear and straight forward implementation of the Discrete Kalman Filter Algorithm in the Java language using the JAMA package. I wrote this code for testing and simulation purposes.import Jama.Matrix;/** * This work is licensed under a Creative Commons Attribution 3.0 License. *  * @author Ahmed Abdelkader */public class KalmanFilter { protected Matrix X, X0; protected Matrix F, B,</summary><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6257428138644582699/1986316146471907015' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6257428138644582699/posts/default/1986316146471907015'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6257428138644582699/posts/default/1986316146471907015'/><link rel='alternate' type='text/html' href='http://the-lost-beauty.blogspot.com/2009/12/java-implementation-of-kalman-filter.html' title='Java implementation of the Kalman Filter using JAMA'/><author><name>Ahmed Abdelkader</name><uri>http://www.blogger.com/profile/01141303576931872803</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3SP7thuv60HE7XSTL7XsjS0pkLo1l7173XO_JFkkWX--kjci6uneFzv_Q8G-yo7cEbTRUh0cc-LWjLdSnAeCEwFy653YXKmGSiOMtM8Q3BjGzlNi8DOi_KeJtLodrrw/s1600/*'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6257428138644582699.post-5519870283421003199</id><published>2009-12-03T19:10:00.004+02:00</published><updated>2009-12-04T04:44:04.180+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="iphone"/><category scheme="http://www.blogger.com/atom/ns#" term="objective-c"/><category scheme="http://www.blogger.com/atom/ns#" term="snippets"/><category scheme="http://www.blogger.com/atom/ns#" term="web"/><title type='text'>Parsing a simple XML node on iPhone</title><summary type="text">I wanted to parse some simple XML response from a server and I really wouldn&#39;t bother to use NSXMLParser or libxml2 as discussed here on stackoverflow. I get a single node and I just wanted to get the content. I ended up with this utility method:+ (NSString *)xmlNodeContent:(NSData *)xmlData { NSString *node = [[NSString alloc] initWithData:xmlData encoding:NSUTF8StringEncoding]; NSString *</summary><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6257428138644582699/5519870283421003199' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6257428138644582699/posts/default/5519870283421003199'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6257428138644582699/posts/default/5519870283421003199'/><link rel='alternate' type='text/html' href='http://the-lost-beauty.blogspot.com/2009/12/parsing-simple-xml-node-on-iphone.html' title='Parsing a simple XML node on iPhone'/><author><name>Ahmed Abdelkader</name><uri>http://www.blogger.com/profile/01141303576931872803</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3SP7thuv60HE7XSTL7XsjS0pkLo1l7173XO_JFkkWX--kjci6uneFzv_Q8G-yo7cEbTRUh0cc-LWjLdSnAeCEwFy653YXKmGSiOMtM8Q3BjGzlNi8DOi_KeJtLodrrw/s1600/*'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6257428138644582699.post-4347691473181183723</id><published>2009-11-23T20:01:00.009+02:00</published><updated>2011-09-10T09:51:15.693+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="iphone"/><category scheme="http://www.blogger.com/atom/ns#" term="objective-c"/><category scheme="http://www.blogger.com/atom/ns#" term="snippets"/><title type='text'>Multi-line UITableViewCell using UILabel</title><summary type="text">No need for UITextViews or custom UITableViewCells. You can use standard UITableViewCellStyles and make the detailTextLabel accept multiple lines and specify its line break mode. The code would be:static NSString *CellIdentifier = @&quot;MyCell&quot;; UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];if (cell == nil) { cell = [[[UITableViewCell alloc] </summary><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6257428138644582699/4347691473181183723' title='15 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6257428138644582699/posts/default/4347691473181183723'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6257428138644582699/posts/default/4347691473181183723'/><link rel='alternate' type='text/html' href='http://the-lost-beauty.blogspot.com/2009/11/multi-line-uitableviewcell-using.html' title='Multi-line UITableViewCell using UILabel'/><author><name>Ahmed Abdelkader</name><uri>http://www.blogger.com/profile/01141303576931872803</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3SP7thuv60HE7XSTL7XsjS0pkLo1l7173XO_JFkkWX--kjci6uneFzv_Q8G-yo7cEbTRUh0cc-LWjLdSnAeCEwFy653YXKmGSiOMtM8Q3BjGzlNi8DOi_KeJtLodrrw/s1600/*'/></author><thr:total>15</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6257428138644582699.post-4984916202721146200</id><published>2009-11-12T21:26:00.011+02:00</published><updated>2009-11-23T20:01:43.132+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="iphone"/><category scheme="http://www.blogger.com/atom/ns#" term="objective-c"/><category scheme="http://www.blogger.com/atom/ns#" term="snippets"/><title type='text'>Moving UITextFields over the keyboard without a UIScrollView</title><summary type="text">I had a UIViewController with a couple of UITextFields attached to its default UIView and everything was fine. Later on, I added a couple more text fields, so I had to make sure all text fields are displayed properly when the keyboard shows up. I thought about using a UIScrollView or maybe a UITableView which scrolls naturally, but I thought I didn&#39;t have to change my controller just for that. I </summary><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6257428138644582699/4984916202721146200' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6257428138644582699/posts/default/4984916202721146200'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6257428138644582699/posts/default/4984916202721146200'/><link rel='alternate' type='text/html' href='http://the-lost-beauty.blogspot.com/2009/11/moving-uitextfields-over-iphone.html' title='Moving UITextFields over the keyboard without a UIScrollView'/><author><name>Ahmed Abdelkader</name><uri>http://www.blogger.com/profile/01141303576931872803</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3SP7thuv60HE7XSTL7XsjS0pkLo1l7173XO_JFkkWX--kjci6uneFzv_Q8G-yo7cEbTRUh0cc-LWjLdSnAeCEwFy653YXKmGSiOMtM8Q3BjGzlNi8DOi_KeJtLodrrw/s1600/*'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6257428138644582699.post-8631497546782375044</id><published>2009-05-05T03:19:00.007+03:00</published><updated>2009-05-05T04:35:46.072+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="other"/><category scheme="http://www.blogger.com/atom/ns#" term="web"/><title type='text'>Tracking swine flu with Google Maps</title><summary type="text">FluTracker is a website that tracks the progress of swine flu using data from official sources, news reports and user-contributions*. The site was built using technology provided by Rhiza Labs and Google. This post on Mashable also has great information about tracking swine flu online.Tracking epidemics was one of the first applications of geospatial information. In 1854, John Snow depicted a </summary><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6257428138644582699/8631497546782375044' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6257428138644582699/posts/default/8631497546782375044'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6257428138644582699/posts/default/8631497546782375044'/><link rel='alternate' type='text/html' href='http://the-lost-beauty.blogspot.com/2009/05/tracking-swine-flu-on-web.html' title='Tracking swine flu with Google Maps'/><author><name>Ahmed Abdelkader</name><uri>http://www.blogger.com/profile/01141303576931872803</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3SP7thuv60HE7XSTL7XsjS0pkLo1l7173XO_JFkkWX--kjci6uneFzv_Q8G-yo7cEbTRUh0cc-LWjLdSnAeCEwFy653YXKmGSiOMtM8Q3BjGzlNi8DOi_KeJtLodrrw/s1600/*'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6257428138644582699.post-4034094783494874853</id><published>2009-04-28T23:22:00.006+03:00</published><updated>2014-11-21T05:42:57.767+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><category scheme="http://www.blogger.com/atom/ns#" term="math"/><category scheme="http://www.blogger.com/atom/ns#" term="snippets"/><title type='text'>Moore-Penrose Pseudoinverse in JAMA</title><summary type="text">
import Jama.Matrix;
import Jama.SingularValueDecomposition;

public class Matrices {
 /**
  * The difference between 1 and the smallest exactly representable number
  * greater than one. Gives an upper bound on the relative error due to
  * rounding of floating point numbers.
  */
 public static double MACHEPS = 2E-16;

 /**
  * Updates MACHEPS for the executing machine.
  */
 public static void</summary><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6257428138644582699/4034094783494874853' title='13 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6257428138644582699/posts/default/4034094783494874853'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6257428138644582699/posts/default/4034094783494874853'/><link rel='alternate' type='text/html' href='http://the-lost-beauty.blogspot.com/2009/04/moore-penrose-pseudoinverse-in-jama.html' title='Moore-Penrose Pseudoinverse in JAMA'/><author><name>Ahmed Abdelkader</name><uri>http://www.blogger.com/profile/01141303576931872803</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3SP7thuv60HE7XSTL7XsjS0pkLo1l7173XO_JFkkWX--kjci6uneFzv_Q8G-yo7cEbTRUh0cc-LWjLdSnAeCEwFy653YXKmGSiOMtM8Q3BjGzlNi8DOi_KeJtLodrrw/s1600/*'/></author><thr:total>13</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6257428138644582699.post-1988931046025545871</id><published>2009-01-22T10:00:00.005+02:00</published><updated>2009-01-23T03:22:08.956+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="web"/><category scheme="http://www.blogger.com/atom/ns#" term="windows"/><title type='text'>EU charges Microsoft with antitrust again</title><summary type="text">I was really pissed off when I read about the new antitrust charges Microsoft is facing from the EU. It was mentioned in the news article published under &quot;EU: Microsoft &#39;shields&#39; IE from competition&quot; how EU looks at the case:The evidence gathered during the investigation leads the commission to believe that the tying of Internet Explorer with Windows, which makes Internet Explorer available on 90</summary><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6257428138644582699/1988931046025545871' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6257428138644582699/posts/default/1988931046025545871'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6257428138644582699/posts/default/1988931046025545871'/><link rel='alternate' type='text/html' href='http://the-lost-beauty.blogspot.com/2009/01/eu-charges-microsoft-with-antitrust.html' title='EU charges Microsoft with antitrust again'/><author><name>Ahmed Abdelkader</name><uri>http://www.blogger.com/profile/01141303576931872803</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3SP7thuv60HE7XSTL7XsjS0pkLo1l7173XO_JFkkWX--kjci6uneFzv_Q8G-yo7cEbTRUh0cc-LWjLdSnAeCEwFy653YXKmGSiOMtM8Q3BjGzlNi8DOi_KeJtLodrrw/s1600/*'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6257428138644582699.post-8583064294739826029</id><published>2009-01-14T15:01:00.007+02:00</published><updated>2009-02-02T01:29:14.530+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Wi-Fi"/><title type='text'>Indoor RF Propagation Simulation Software</title><summary type="text">I was looking for a free program to help me simulate Wi-Fi signal propagation for indoor environments. I wanted a program that could take a floor map and do some ray tracing or apply some known propagation model. I was disappointed when I couldn&#39;t find any open source software in that area. All the free programs I found were very naive and targeted radio hobbyists. On the other hand, I found a </summary><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6257428138644582699/8583064294739826029' title='11 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6257428138644582699/posts/default/8583064294739826029'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6257428138644582699/posts/default/8583064294739826029'/><link rel='alternate' type='text/html' href='http://the-lost-beauty.blogspot.com/2009/01/indoor-rf-propagation-simulation.html' title='Indoor RF Propagation Simulation Software'/><author><name>Ahmed Abdelkader</name><uri>http://www.blogger.com/profile/01141303576931872803</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3SP7thuv60HE7XSTL7XsjS0pkLo1l7173XO_JFkkWX--kjci6uneFzv_Q8G-yo7cEbTRUh0cc-LWjLdSnAeCEwFy653YXKmGSiOMtM8Q3BjGzlNi8DOi_KeJtLodrrw/s1600/*'/></author><thr:total>11</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6257428138644582699.post-1908443110653683144</id><published>2009-01-07T13:36:00.007+02:00</published><updated>2009-01-07T14:29:23.168+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><category scheme="http://www.blogger.com/atom/ns#" term="troubleshooting"/><title type='text'>Netbeans modified web.xml when it shouldn&#39;t</title><summary type="text">A couple of days ago, I was working on a J2EE project using EJB 3.0 and plain JSP/Servlets. I used Netbeans 6.0.1 with GlassFish 9.1 on my XP Professional PC. For some reason, the project build kept on failing, without any changes in the configuration files which I barely touched. After digging through the stack traces and log files I got, I found this message &quot;The ResourceConfig instance does </summary><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6257428138644582699/1908443110653683144' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6257428138644582699/posts/default/1908443110653683144'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6257428138644582699/posts/default/1908443110653683144'/><link rel='alternate' type='text/html' href='http://the-lost-beauty.blogspot.com/2009/01/netbeans-messed-up-my-webxml-file.html' title='Netbeans modified web.xml when it shouldn&#39;t'/><author><name>Ahmed Abdelkader</name><uri>http://www.blogger.com/profile/01141303576931872803</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3SP7thuv60HE7XSTL7XsjS0pkLo1l7173XO_JFkkWX--kjci6uneFzv_Q8G-yo7cEbTRUh0cc-LWjLdSnAeCEwFy653YXKmGSiOMtM8Q3BjGzlNi8DOi_KeJtLodrrw/s1600/*'/></author><thr:total>0</thr:total></entry></feed>