<?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-305427760261504884</id><updated>2011-10-10T04:16:41.565-07:00</updated><title type='text'>Programming Tricks</title><subtitle type='html'>Programming tricks related to ActionScript, Python, C/C++ and Java. See the comments for answers.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://as3tricks.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/305427760261504884/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://as3tricks.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Kundan Singh</name><uri>http://www.blogger.com/profile/10408946176930869078</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://2.bp.blogspot.com/_j-OZz2I3T5A/SvcMYuHmmeI/AAAAAAAAAAQ/LcfPnZo1uqk/S220/kundansingh.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>15</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-305427760261504884.post-2898939461342761945</id><published>2011-09-12T17:41:00.000-07:00</published><updated>2011-09-12T17:42:58.470-07:00</updated><title type='text'>Eight queen problem in one line of Python</title><content type='html'>Write a one line python code (excluding any imports) that prints all the solutions of the 8-queen problem.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/305427760261504884-2898939461342761945?l=as3tricks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://as3tricks.blogspot.com/feeds/2898939461342761945/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=305427760261504884&amp;postID=2898939461342761945' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/305427760261504884/posts/default/2898939461342761945'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/305427760261504884/posts/default/2898939461342761945'/><link rel='alternate' type='text/html' href='http://as3tricks.blogspot.com/2011/09/eight-queen-problem-in-one-line-of.html' title='Eight queen problem in one line of Python'/><author><name>Kundan Singh</name><uri>http://www.blogger.com/profile/10408946176930869078</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://2.bp.blogspot.com/_j-OZz2I3T5A/SvcMYuHmmeI/AAAAAAAAAAQ/LcfPnZo1uqk/S220/kundansingh.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-305427760261504884.post-1965723289673847162</id><published>2010-01-15T18:26:00.000-08:00</published><updated>2010-01-15T18:27:35.838-08:00</updated><title type='text'>AS3: Remove fractional part in Number</title><content type='html'>Give a one line expression to remove the fraction part from a Number variable in AS3. Hint: should work for positive as well as negative numbers, and more than 32-bit numbers.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/305427760261504884-1965723289673847162?l=as3tricks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://as3tricks.blogspot.com/feeds/1965723289673847162/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=305427760261504884&amp;postID=1965723289673847162' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/305427760261504884/posts/default/1965723289673847162'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/305427760261504884/posts/default/1965723289673847162'/><link rel='alternate' type='text/html' href='http://as3tricks.blogspot.com/2010/01/as3-remove-fractional-part-in-number.html' title='AS3: Remove fractional part in Number'/><author><name>Kundan Singh</name><uri>http://www.blogger.com/profile/10408946176930869078</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://2.bp.blogspot.com/_j-OZz2I3T5A/SvcMYuHmmeI/AAAAAAAAAAQ/LcfPnZo1uqk/S220/kundansingh.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-305427760261504884.post-993704143631983224</id><published>2009-05-05T15:40:00.000-07:00</published><updated>2009-05-05T15:44:16.237-07:00</updated><title type='text'>Python: extract URLs in web pages</title><content type='html'>Given a URL of a web page, extract all the URLs from that web page. Do this in one line. Assume that URLs in the web page are of the form &amp;lt;a href="..."&amp;gt;...&amp;lt;/a&amp;gt;. Bonus Question: also return the text in the &amp;lt;a&amp;gt;text&amp;lt;/a&amp;gt; tag for the given URL.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/305427760261504884-993704143631983224?l=as3tricks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://as3tricks.blogspot.com/feeds/993704143631983224/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=305427760261504884&amp;postID=993704143631983224' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/305427760261504884/posts/default/993704143631983224'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/305427760261504884/posts/default/993704143631983224'/><link rel='alternate' type='text/html' href='http://as3tricks.blogspot.com/2009/05/python-extract-urls-in-web-pages.html' title='Python: extract URLs in web pages'/><author><name>Kundan Singh</name><uri>http://www.blogger.com/profile/10408946176930869078</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://2.bp.blogspot.com/_j-OZz2I3T5A/SvcMYuHmmeI/AAAAAAAAAAQ/LcfPnZo1uqk/S220/kundansingh.jpg'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-305427760261504884.post-8683500661244951010</id><published>2009-05-05T15:13:00.000-07:00</published><updated>2009-05-06T20:55:33.389-07:00</updated><title type='text'>Python: formatting big integers</title><content type='html'>Write a one line Python function to format a big integer into fixed sized byte representation such that 0x0102030405 gets converted to '\x00\x00\x00\x01\x02\x03\x04\x05'. You cannot use struct module as it is limited to 32 bit number. Such functions are useful when dealing with SHA1/MD5 or crypto/RSA routines.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/305427760261504884-8683500661244951010?l=as3tricks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://as3tricks.blogspot.com/feeds/8683500661244951010/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=305427760261504884&amp;postID=8683500661244951010' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/305427760261504884/posts/default/8683500661244951010'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/305427760261504884/posts/default/8683500661244951010'/><link rel='alternate' type='text/html' href='http://as3tricks.blogspot.com/2009/05/python-formating-big-integers.html' title='Python: formatting big integers'/><author><name>Kundan Singh</name><uri>http://www.blogger.com/profile/10408946176930869078</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://2.bp.blogspot.com/_j-OZz2I3T5A/SvcMYuHmmeI/AAAAAAAAAAQ/LcfPnZo1uqk/S220/kundansingh.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-305427760261504884.post-7781854209373760917</id><published>2009-05-05T15:08:00.000-07:00</published><updated>2009-05-05T15:10:40.943-07:00</updated><title type='text'>Python: parsing big integers</title><content type='html'>Write a one line Python function to parse a integer from it's representation, e.g., '\x01\x02\x03\x04\x05' should result in an integer representing 0x0102030405.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/305427760261504884-7781854209373760917?l=as3tricks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://as3tricks.blogspot.com/feeds/7781854209373760917/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=305427760261504884&amp;postID=7781854209373760917' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/305427760261504884/posts/default/7781854209373760917'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/305427760261504884/posts/default/7781854209373760917'/><link rel='alternate' type='text/html' href='http://as3tricks.blogspot.com/2009/05/python-parsing-big-integers.html' title='Python: parsing big integers'/><author><name>Kundan Singh</name><uri>http://www.blogger.com/profile/10408946176930869078</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://2.bp.blogspot.com/_j-OZz2I3T5A/SvcMYuHmmeI/AAAAAAAAAAQ/LcfPnZo1uqk/S220/kundansingh.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-305427760261504884.post-95382579854934617</id><published>2009-05-05T12:03:00.000-07:00</published><updated>2009-05-05T13:02:19.913-07:00</updated><title type='text'>Python: parsing of header:value</title><content type='html'>Give a one line statement in python to parse a HTTP or SIP header value of the form "Header1: Value1\r\nHeader2: Value2:\r\n" by returning a tuple (('Header1', 'Value1'), ('Header2', 'Value2'). Bonus question: what are the problem in returning a dict instead?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/305427760261504884-95382579854934617?l=as3tricks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://as3tricks.blogspot.com/feeds/95382579854934617/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=305427760261504884&amp;postID=95382579854934617' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/305427760261504884/posts/default/95382579854934617'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/305427760261504884/posts/default/95382579854934617'/><link rel='alternate' type='text/html' href='http://as3tricks.blogspot.com/2009/05/python-parsing-of-headervalue.html' title='Python: parsing of header:value'/><author><name>Kundan Singh</name><uri>http://www.blogger.com/profile/10408946176930869078</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://2.bp.blogspot.com/_j-OZz2I3T5A/SvcMYuHmmeI/AAAAAAAAAAQ/LcfPnZo1uqk/S220/kundansingh.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-305427760261504884.post-8698036900204037309</id><published>2009-05-05T11:40:00.000-07:00</published><updated>2009-05-05T12:02:21.112-07:00</updated><title type='text'>Python: convert a list to a dictionary</title><content type='html'>Give a one line Python code to convert a list such as L=['A','B','C'] to a dictionary indexed by the numeric index 0, 1, 2, e.g., {0: 'A', 1: 'B', 2: 'C'}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/305427760261504884-8698036900204037309?l=as3tricks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://as3tricks.blogspot.com/feeds/8698036900204037309/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=305427760261504884&amp;postID=8698036900204037309' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/305427760261504884/posts/default/8698036900204037309'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/305427760261504884/posts/default/8698036900204037309'/><link rel='alternate' type='text/html' href='http://as3tricks.blogspot.com/2009/05/python-convert-list-to-dictionary.html' title='Python: convert a list to a dictionary'/><author><name>Kundan Singh</name><uri>http://www.blogger.com/profile/10408946176930869078</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://2.bp.blogspot.com/_j-OZz2I3T5A/SvcMYuHmmeI/AAAAAAAAAAQ/LcfPnZo1uqk/S220/kundansingh.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-305427760261504884.post-333661998799752595</id><published>2008-09-12T21:23:00.001-07:00</published><updated>2008-09-12T21:23:28.467-07:00</updated><title type='text'>Typed container in AS3</title><content type='html'>In ActionScript3, how can you define and enforce type for an&lt;br /&gt;Array. Something like the following:&lt;br /&gt;  var a:MyArray = new MyArray(NetConnection, 2);&lt;br /&gt;  a[0] = new NetConnection(); // should work&lt;br /&gt;  a[1] = "some string";       // should fail with exception.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/305427760261504884-333661998799752595?l=as3tricks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://as3tricks.blogspot.com/feeds/333661998799752595/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=305427760261504884&amp;postID=333661998799752595' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/305427760261504884/posts/default/333661998799752595'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/305427760261504884/posts/default/333661998799752595'/><link rel='alternate' type='text/html' href='http://as3tricks.blogspot.com/2008/09/typed-container-in-as3.html' title='Typed container in AS3'/><author><name>Kundan Singh</name><uri>http://www.blogger.com/profile/10408946176930869078</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://2.bp.blogspot.com/_j-OZz2I3T5A/SvcMYuHmmeI/AAAAAAAAAAQ/LcfPnZo1uqk/S220/kundansingh.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-305427760261504884.post-3626114598405574918</id><published>2008-09-12T21:22:00.001-07:00</published><updated>2008-09-12T21:23:08.359-07:00</updated><title type='text'>Variable constructor arguments in AS3</title><content type='html'>The new Flex SDK (for Flash Player 10) allows two arguments in&lt;br /&gt;the constructor of NetStream although second is optional,&lt;br /&gt;but the old SDK (for Flash Player 9) allows only one. The following&lt;br /&gt;piece of code tries to allocate NetStream, but cannot be compiled&lt;br /&gt;in old SDK. How would you change it so that it can compile and work&lt;br /&gt;in both old and new SDK?&lt;br /&gt;&lt;br /&gt;if (flashMajorVersion &gt;= 10)&lt;br /&gt;  ns = new NetStream(connection, id);&lt;br /&gt;else&lt;br /&gt;  ns = new NetStream(connection);&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/305427760261504884-3626114598405574918?l=as3tricks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://as3tricks.blogspot.com/feeds/3626114598405574918/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=305427760261504884&amp;postID=3626114598405574918' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/305427760261504884/posts/default/3626114598405574918'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/305427760261504884/posts/default/3626114598405574918'/><link rel='alternate' type='text/html' href='http://as3tricks.blogspot.com/2008/09/variable-constructor-arguments-in-as3.html' title='Variable constructor arguments in AS3'/><author><name>Kundan Singh</name><uri>http://www.blogger.com/profile/10408946176930869078</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://2.bp.blogspot.com/_j-OZz2I3T5A/SvcMYuHmmeI/AAAAAAAAAAQ/LcfPnZo1uqk/S220/kundansingh.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-305427760261504884.post-1516286181598527844</id><published>2008-09-12T21:21:00.002-07:00</published><updated>2008-09-12T21:22:08.913-07:00</updated><title type='text'>Arithmetic in AS3</title><content type='html'>What is wrong in the following ActionScript3 code. It tries to&lt;br /&gt;keep a (bit) vector for high-order and low-order bits of a two-byte&lt;br /&gt;number. Assume somearray is an array of two-byte numbers.&lt;br /&gt;&lt;br /&gt;var a:Array = new Array(256), b:Array = new Array(256);&lt;br /&gt;for each (var n:uint in somearray) {&lt;br /&gt;  a[n/256] = 1;&lt;br /&gt;  b[n%256] = 1;&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/305427760261504884-1516286181598527844?l=as3tricks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://as3tricks.blogspot.com/feeds/1516286181598527844/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=305427760261504884&amp;postID=1516286181598527844' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/305427760261504884/posts/default/1516286181598527844'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/305427760261504884/posts/default/1516286181598527844'/><link rel='alternate' type='text/html' href='http://as3tricks.blogspot.com/2008/09/arithmetic-in-as3.html' title='Arithmetic in AS3'/><author><name>Kundan Singh</name><uri>http://www.blogger.com/profile/10408946176930869078</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://2.bp.blogspot.com/_j-OZz2I3T5A/SvcMYuHmmeI/AAAAAAAAAAQ/LcfPnZo1uqk/S220/kundansingh.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-305427760261504884.post-7098060880032223281</id><published>2008-09-12T21:21:00.001-07:00</published><updated>2008-09-12T21:21:30.299-07:00</updated><title type='text'>a++ for int vs short in C</title><content type='html'>Using a particular C compiler, the expression 'printf("%d\n", (a++ -&lt;br /&gt;--a));' printed '0' if 'a' was int, and '1' if 'a' was short. Why?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/305427760261504884-7098060880032223281?l=as3tricks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://as3tricks.blogspot.com/feeds/7098060880032223281/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=305427760261504884&amp;postID=7098060880032223281' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/305427760261504884/posts/default/7098060880032223281'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/305427760261504884/posts/default/7098060880032223281'/><link rel='alternate' type='text/html' href='http://as3tricks.blogspot.com/2008/09/for-int-vs-short-in-c.html' title='a++ for int vs short in C'/><author><name>Kundan Singh</name><uri>http://www.blogger.com/profile/10408946176930869078</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://2.bp.blogspot.com/_j-OZz2I3T5A/SvcMYuHmmeI/AAAAAAAAAAQ/LcfPnZo1uqk/S220/kundansingh.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-305427760261504884.post-3892224323308977660</id><published>2008-09-12T21:20:00.002-07:00</published><updated>2008-09-12T21:21:04.674-07:00</updated><title type='text'>Binary representation in Python</title><content type='html'>Give a one line expression to convert a number to its binary&lt;br /&gt;representation in Python. For example, 258 to "100000010".&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/305427760261504884-3892224323308977660?l=as3tricks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://as3tricks.blogspot.com/feeds/3892224323308977660/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=305427760261504884&amp;postID=3892224323308977660' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/305427760261504884/posts/default/3892224323308977660'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/305427760261504884/posts/default/3892224323308977660'/><link rel='alternate' type='text/html' href='http://as3tricks.blogspot.com/2008/09/binary-representation-in-python.html' title='Binary representation in Python'/><author><name>Kundan Singh</name><uri>http://www.blogger.com/profile/10408946176930869078</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://2.bp.blogspot.com/_j-OZz2I3T5A/SvcMYuHmmeI/AAAAAAAAAAQ/LcfPnZo1uqk/S220/kundansingh.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-305427760261504884.post-5716823880275923921</id><published>2008-09-12T21:20:00.001-07:00</published><updated>2008-09-12T21:20:40.771-07:00</updated><title type='text'>C++ vs Java</title><content type='html'>Give a numeric expression that is valid in both C++ and Java, but&lt;br /&gt;evaluates to different values.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/305427760261504884-5716823880275923921?l=as3tricks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://as3tricks.blogspot.com/feeds/5716823880275923921/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=305427760261504884&amp;postID=5716823880275923921' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/305427760261504884/posts/default/5716823880275923921'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/305427760261504884/posts/default/5716823880275923921'/><link rel='alternate' type='text/html' href='http://as3tricks.blogspot.com/2008/09/c-vs-java.html' title='C++ vs Java'/><author><name>Kundan Singh</name><uri>http://www.blogger.com/profile/10408946176930869078</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://2.bp.blogspot.com/_j-OZz2I3T5A/SvcMYuHmmeI/AAAAAAAAAAQ/LcfPnZo1uqk/S220/kundansingh.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-305427760261504884.post-3672397439761032508</id><published>2008-09-12T21:19:00.000-07:00</published><updated>2008-09-12T21:20:23.791-07:00</updated><title type='text'>Parse dotted IP string in AS3</title><content type='html'>Give a one line expression in ActionScript 3 to convert a dotted IPv4&lt;br /&gt;address (String) to its numeric (uint) representation. For example,&lt;br /&gt;"10.0.0.1" to 0xa000001.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/305427760261504884-3672397439761032508?l=as3tricks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://as3tricks.blogspot.com/feeds/3672397439761032508/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=305427760261504884&amp;postID=3672397439761032508' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/305427760261504884/posts/default/3672397439761032508'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/305427760261504884/posts/default/3672397439761032508'/><link rel='alternate' type='text/html' href='http://as3tricks.blogspot.com/2008/09/parse-dotted-ip-string-in-as3.html' title='Parse dotted IP string in AS3'/><author><name>Kundan Singh</name><uri>http://www.blogger.com/profile/10408946176930869078</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://2.bp.blogspot.com/_j-OZz2I3T5A/SvcMYuHmmeI/AAAAAAAAAAQ/LcfPnZo1uqk/S220/kundansingh.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-305427760261504884.post-5924653202323530940</id><published>2008-09-12T21:16:00.000-07:00</published><updated>2008-09-12T21:17:18.487-07:00</updated><title type='text'>C vs Python</title><content type='html'>Give a code snippet that is valid in both C and Python, but produces&lt;br /&gt;different results.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/305427760261504884-5924653202323530940?l=as3tricks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://as3tricks.blogspot.com/feeds/5924653202323530940/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=305427760261504884&amp;postID=5924653202323530940' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/305427760261504884/posts/default/5924653202323530940'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/305427760261504884/posts/default/5924653202323530940'/><link rel='alternate' type='text/html' href='http://as3tricks.blogspot.com/2008/09/c-vs-python.html' title='C vs Python'/><author><name>Kundan Singh</name><uri>http://www.blogger.com/profile/10408946176930869078</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://2.bp.blogspot.com/_j-OZz2I3T5A/SvcMYuHmmeI/AAAAAAAAAAQ/LcfPnZo1uqk/S220/kundansingh.jpg'/></author><thr:total>1</thr:total></entry></feed>
