<?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: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-1767132837343897252</id><updated>2011-10-23T00:19:44.245+08:00</updated><category term='C#'/><category term='Python'/><category term='Legal'/><category term='Misc'/><category term='Programming'/><category term='Web'/><title type='text'>@i</title><subtitle type='html'>Read! In the name of thy Lord Who createth 
(The Glorious Quran, Chapter 96, Verse 1)</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://ahmedibrahim.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1767132837343897252/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://ahmedibrahim.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>@i</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>5</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1767132837343897252.post-3073965886673569246</id><published>2011-01-22T02:24:00.001+08:00</published><updated>2011-02-08T06:50:15.647+08:00</updated><title type='text'>Blog moved to Wordpress</title><content type='html'>My not so active blog has been moved to Wordpress.&lt;br /&gt;&lt;a href="http://www.blogger.com/goog_1850159380"&gt;&lt;br /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://ahm3dibrahim.wordpress.com/"&gt;http://ahm3dibrahim.wordpress.com&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I have a strong feeling that I will have more posts this year compared to 2010. :P&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1767132837343897252-3073965886673569246?l=ahmedibrahim.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://ahm3dibrahim.wordpress.com' title='Blog moved to Wordpress'/><link rel='replies' type='application/atom+xml' href='http://ahmedibrahim.blogspot.com/feeds/3073965886673569246/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1767132837343897252&amp;postID=3073965886673569246' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1767132837343897252/posts/default/3073965886673569246'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1767132837343897252/posts/default/3073965886673569246'/><link rel='alternate' type='text/html' href='http://ahmedibrahim.blogspot.com/2011/01/blog-moved-to-wordpress.html' title='Blog moved to Wordpress'/><author><name>@i</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1767132837343897252.post-512685142183590752</id><published>2010-05-31T18:31:00.015+08:00</published><updated>2010-06-06T03:05:06.426+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Web'/><category scheme='http://www.blogger.com/atom/ns#' term='Programming'/><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><title type='text'>HTML DOM USING .NET</title><content type='html'>By Ahmed Ibrahim&lt;br /&gt;&lt;br /&gt;Today the software development landscape has evolved significantly with the proliferation of Web technologies. Thus a majority of applications developed have some form of connectivity or integration with another application, web service, web application, remote database, etc.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This article will therefore try to touch one specific area, which is HTML content and DOM. And in doing so will investigate two approaches available in .Net which can be used to fuse these two for some practical purpose.&lt;br /&gt;&lt;br /&gt;Examples provided are based on .Net code and libraries. However, the concepts remain the same for HTML and DOM are independent from any programming language. This article is not exhaustive in any manner however references are provided for those seeking a more in depth coverage.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;img alt="Demo Application Screenshot" height="280" src="http://www.codeproject.com/KB/cs/html-dom-using-dot-net/html_dom_demo_1.JPG" width="448" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.codeproject.com/KB/cs/html-dom-using-dot-net.aspx"&gt;Full Article on Code Project...&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1767132837343897252-512685142183590752?l=ahmedibrahim.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ahmedibrahim.blogspot.com/feeds/512685142183590752/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1767132837343897252&amp;postID=512685142183590752' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1767132837343897252/posts/default/512685142183590752'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1767132837343897252/posts/default/512685142183590752'/><link rel='alternate' type='text/html' href='http://ahmedibrahim.blogspot.com/2010/05/html-dom-using-net.html' title='HTML DOM USING .NET'/><author><name>@i</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1767132837343897252.post-2238062182498709179</id><published>2008-04-21T18:09:00.003+08:00</published><updated>2010-05-28T22:49:56.833+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Legal'/><title type='text'>Free[dom] Licenses</title><content type='html'>If you are interested in distributing or uploading code, documents, etc., under the claim that it's free, you might find the following link interesting.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.codeproject.com/info/Licenses.aspx"&gt;http://www.codeproject.com/info/Licenses.aspx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1767132837343897252-2238062182498709179?l=ahmedibrahim.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ahmedibrahim.blogspot.com/feeds/2238062182498709179/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1767132837343897252&amp;postID=2238062182498709179' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1767132837343897252/posts/default/2238062182498709179'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1767132837343897252/posts/default/2238062182498709179'/><link rel='alternate' type='text/html' href='http://ahmedibrahim.blogspot.com/2008/04/freedom-licenses.html' title='Free[dom] Licenses'/><author><name>@i</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1767132837343897252.post-6658835116964429882</id><published>2008-01-02T10:03:00.002+09:00</published><updated>2010-05-28T22:51:15.569+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Misc'/><title type='text'>Happy Jan.02.2008</title><content type='html'>:)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1767132837343897252-6658835116964429882?l=ahmedibrahim.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ahmedibrahim.blogspot.com/feeds/6658835116964429882/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1767132837343897252&amp;postID=6658835116964429882' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1767132837343897252/posts/default/6658835116964429882'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1767132837343897252/posts/default/6658835116964429882'/><link rel='alternate' type='text/html' href='http://ahmedibrahim.blogspot.com/2008/01/happy-jan022008.html' title='Happy Jan.02.2008'/><author><name>@i</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1767132837343897252.post-2550551629148084874</id><published>2007-12-11T11:01:00.002+09:00</published><updated>2010-05-29T12:58:32.756+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Programming'/><category scheme='http://www.blogger.com/atom/ns#' term='Python'/><title type='text'>My first Py</title><content type='html'>A simple python script to retrieve prayer times form &lt;a href="http://islamicfinder.com/"&gt;islamicfinder.com&lt;/a&gt;. Simply replace the prayerUrl variable to change the location to your preference.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://bp0.blogger.com/_mmorf4W93i8/R14B1Rg7lTI/AAAAAAAAAQc/rn834MjCpDw/s1600-h/Screenshot.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block;" src="http://bp0.blogger.com/_mmorf4W93i8/R14B1Rg7lTI/AAAAAAAAAQc/rn834MjCpDw/s320/Screenshot.jpg" alt="" id="BLOGGER_PHOTO_ID_5142549839249904946" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class="code"&gt;&lt;code&gt;&lt;br /&gt;##   .-`-.   o&lt;br /&gt;## .' .-. `. .&lt;br /&gt;## | (   ) ; |&lt;br /&gt;## `. `-'`'-' `-&lt;br /&gt;##   `---&lt;br /&gt;## PrayerTimes v1.0&lt;br /&gt;## 10.12.07&lt;br /&gt;&lt;br /&gt;import urllib&lt;br /&gt;from sgmllib import SGMLParser&lt;br /&gt;&lt;br /&gt;class TBLParser(SGMLParser):&lt;br /&gt;def reset(self):&lt;br /&gt;   SGMLParser.reset(self)&lt;br /&gt;   self.doit = 0&lt;br /&gt;   self.cols = []&lt;br /&gt;   self.rows = []&lt;br /&gt;&lt;br /&gt;def start_td(self, attrs):&lt;br /&gt;   for k, v in attrs:&lt;br /&gt;        if attrs == [('class', 'IslamicData'), ('bgcolor', '#FFFFFF'), ('align', 'center')] or \&lt;br /&gt;            attrs == [('class', 'IslamicData'), ('bgcolor', '#FFFFCC'), ('align', 'center')]:&lt;br /&gt;           self.doit = 1&lt;br /&gt;&lt;br /&gt;def end_td(self):&lt;br /&gt;   self.doit = 0&lt;br /&gt;&lt;br /&gt;def handle_data(self, text):&lt;br /&gt;   if self.doit == 1:&lt;br /&gt;       self.cols.append(text)&lt;br /&gt;       if len(self.cols)%8 == 0:&lt;br /&gt;           self.rows.append(self.cols)&lt;br /&gt;           self.cols = []&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;prayerUrl = "http://www.islamicfinder.org/prayerDetail.php?country=australia&amp;amp;city=perth_city&amp;amp;state=08&amp;amp;zipcode=&amp;amp;lang="&lt;br /&gt;sock = urllib.urlopen(prayerUrl)&lt;br /&gt;html = sock.read()&lt;br /&gt;sock.close()&lt;br /&gt;&lt;br /&gt;parser = TBLParser()&lt;br /&gt;parser.feed(html)&lt;br /&gt;parser.close()&lt;br /&gt;&lt;br /&gt;for row in parser.rows:&lt;br /&gt;for col in row:&lt;br /&gt;   print "%5.5s" % col,&lt;br /&gt;print "\n"&lt;br /&gt;&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Thanks &lt;a href="http://vishah.blogspot.com/"&gt;Gold Flake Linux&lt;/a&gt; for the inspiration :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1767132837343897252-2550551629148084874?l=ahmedibrahim.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ahmedibrahim.blogspot.com/feeds/2550551629148084874/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1767132837343897252&amp;postID=2550551629148084874' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1767132837343897252/posts/default/2550551629148084874'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1767132837343897252/posts/default/2550551629148084874'/><link rel='alternate' type='text/html' href='http://ahmedibrahim.blogspot.com/2007/12/my-first-py.html' title='My first Py'/><author><name>@i</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://bp0.blogger.com/_mmorf4W93i8/R14B1Rg7lTI/AAAAAAAAAQc/rn834MjCpDw/s72-c/Screenshot.jpg' height='72' width='72'/><thr:total>2</thr:total></entry></feed>
