<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
 
 <title>Yavuz Ege Ozcan</title>
 <link href="http://egeozcan.github.com/atom.xml" rel="self"/>
 <link href="http://egeozcan.github.com"/>
 <updated>2012-05-22T01:16:37-07:00</updated>
 <id>http://egeozcan.github.com</id>
 <author>
   <name>Yavuz Ege Ozcan</name>
   <email>egecan@gmail.com</email>
 </author>

 
 <entry>
   <title>Parsing Time Manually</title>
   <link href="http://egeozcan.github.com/code/2012/05/15/parsing-time-manually"/>
   <updated>2012-05-15T00:00:00-07:00</updated>
   <id>hhttp://egeozcan.github.com/code/2012/05/15/parsing-time-manually</id>
   <content type="html">&lt;p&gt;How do you get the minute difference between two 12-hour dates encoded in a string like&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;quot;12:05am-02:55pm&amp;quot;&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;?&lt;/p&gt;

&lt;h2 id='short_answer'&gt;Short Answer&lt;/h2&gt;

&lt;p&gt;You shouldn&amp;#8217;t. Get your data properly!&lt;/p&gt;

&lt;h2 id='but_still'&gt;But Still&amp;#8230;&lt;/h2&gt;
&lt;script src='https://gist.github.com/2701255.js'&gt; &lt;/script&gt;
&lt;p&gt;I hate myself.&lt;/p&gt;</content>
 </entry>
 
 <entry>
   <title>Seventh Problem On Project Euler</title>
   <link href="http://egeozcan.github.com/code/2012/03/14/seventh-problem-on-project-euler"/>
   <updated>2012-03-14T00:00:00-07:00</updated>
   <id>hhttp://egeozcan.github.com/code/2012/03/14/seventh-problem-on-project-euler</id>
   <content type="html">&lt;h2 id='the_problem'&gt;The Problem&lt;/h2&gt;

&lt;p&gt;I hate clichés but there we go:&lt;/p&gt;

&lt;p&gt;What is the 10 001st prime number?&lt;/p&gt;

&lt;h2 id='the_solution'&gt;The Solution&lt;/h2&gt;

&lt;p&gt;Let&amp;#8217;s try a one-liner this time:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;var a=[],b;for(b=2;10001&amp;gt;a.length;b++)a.some(function(c){return 0==b%c})||a.push(b);console.log(a.pop());&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;yay.&lt;/p&gt;</content>
 </entry>
 
 <entry>
   <title>Sixth Problem On Project Euler</title>
   <link href="http://egeozcan.github.com/code/2012/03/12/sixth-problem-on-project-euler"/>
   <updated>2012-03-12T00:00:00-07:00</updated>
   <id>hhttp://egeozcan.github.com/code/2012/03/12/sixth-problem-on-project-euler</id>
   <content type="html">&lt;h2 id='the_problem'&gt;The Problem&lt;/h2&gt;

&lt;p&gt;Find the difference between the sum of the squares of the first one hundred natural numbers and the square of the sum.&lt;/p&gt;

&lt;h2 id='the_solution'&gt;The Solution&lt;/h2&gt;
&lt;script src='https://gist.github.com/2020770.js'&gt; &lt;/script&gt;
&lt;p&gt;Supposed to be harder, or?&lt;/p&gt;</content>
 </entry>
 
 <entry>
   <title>Fifth Problem On Project Euler</title>
   <link href="http://egeozcan.github.com/code/2012/02/10/fifth-problem-on-project-euler"/>
   <updated>2012-02-10T00:00:00-08:00</updated>
   <id>hhttp://egeozcan.github.com/code/2012/02/10/fifth-problem-on-project-euler</id>
   <content type="html">&lt;h2 id='the_problem'&gt;The Problem&lt;/h2&gt;

&lt;p&gt;What is the smallest positive number that is evenly divisible by all of the numbers from 1 to 20?&lt;/p&gt;

&lt;h2 id='the_solution'&gt;The Solution&lt;/h2&gt;
&lt;script src='https://gist.github.com/1788752.js'&gt; &lt;/script&gt;
&lt;p&gt;I know this can be calculated very easily with pen and paper but overcomplicating stuff is just fun, I guess =)&lt;/p&gt;</content>
 </entry>
 
 <entry>
   <title>Answering The Fourth Problem On Project Euler</title>
   <link href="http://egeozcan.github.com/code/2012/02/09/answering-the-fourth-problem-on-project-euler"/>
   <updated>2012-02-09T00:00:00-08:00</updated>
   <id>hhttp://egeozcan.github.com/code/2012/02/09/answering-the-fourth-problem-on-project-euler</id>
   <content type="html">&lt;p&gt;Yet another Project Euler problem, solved with rather brute force. I simply became too business process oriented to develop clever solutions to mathematical problems, maybe? =)&lt;/p&gt;

&lt;h2 id='the_problem'&gt;The Problem&lt;/h2&gt;

&lt;p&gt;Finding the largest palindrome made from the product of two 3-digit numbers.&lt;/p&gt;

&lt;h2 id='the_solution'&gt;The Solution&lt;/h2&gt;
&lt;script src='https://gist.github.com/1788749.js'&gt; &lt;/script&gt;
&lt;p&gt;Sorry for the lack of elegance. The most interesting thing to learn while coding this was finding out that &lt;code&gt;parseInt([x,y,z,z,y,x].join(&quot;&quot;))&lt;/code&gt; was much faster than &lt;code&gt;(x*100001) + (y*10010) + (z*1100)&lt;/code&gt; in JavaScript. Hmm.&lt;/p&gt;</content>
 </entry>
 
 <entry>
   <title>Wasting Time On Project Euler</title>
   <link href="http://egeozcan.github.com/code/2012/02/08/wasting-time-on-project-euler"/>
   <updated>2012-02-08T00:00:00-08:00</updated>
   <id>hhttp://egeozcan.github.com/code/2012/02/08/wasting-time-on-project-euler</id>
   <content type="html">&lt;p&gt;I wanted to share my boring solution to &lt;a href='http://projecteuler.net/problem=3'&gt;Problem 3&lt;/a&gt; on &lt;a href='http://projecteuler.net/'&gt;Project Euler&lt;/a&gt;.&lt;/p&gt;

&lt;h2 id='the_problem'&gt;The Problem&lt;/h2&gt;

&lt;p&gt;What is the largest prime factor of the number 600851475143?&lt;/p&gt;

&lt;h2 id='solution'&gt;Solution&lt;/h2&gt;
&lt;script src='https://gist.github.com/1788732.js'&gt; &lt;/script&gt;
&lt;p&gt;That should do it. There could be some room to improve, however.&lt;/p&gt;</content>
 </entry>
 
 <entry>
   <title>There Is No Spoon</title>
   <link href="http://egeozcan.github.com/about/2012/02/07/there-is-no-spoon"/>
   <updated>2012-02-07T00:00:00-08:00</updated>
   <id>hhttp://egeozcan.github.com/about/2012/02/07/there-is-no-spoon</id>
   <content type="html">&lt;h2 id='so_here_we_go'&gt;So, here we go&lt;/h2&gt;

&lt;p&gt;I&amp;#8217;d like to gather my thoughts about JavaScript and other technologies around web development, here. Hope it all goes well and I can wrap my head around this Jekyll stuff&lt;/p&gt;</content>
 </entry>
 
 <entry>
   <title>By The Way</title>
   <link href="http://egeozcan.github.com/about/2012/02/07/by-the-way"/>
   <updated>2012-02-07T00:00:00-08:00</updated>
   <id>hhttp://egeozcan.github.com/about/2012/02/07/by-the-way</id>
   <content type="html">&lt;p&gt;There is, actually, a very important thing I should note before starting to publish anything here on this blog: I love JavaScript and I&amp;#8217;ll probably be biased for it. Not a big deal if you think that you actually don&amp;#8217;t have to read anything I write.&lt;/p&gt;

&lt;p&gt;On the other hand, &amp;#8220;loving JavaScript&amp;#8221; also means, in some way, loving Node.js (I know you people hate these kind of conclusive statements but, I can&amp;#8217;t help myself.) Which is cool, because Node.js is cool and it gives us, the JavaScript programmers, the ability to come up with great server-side stuff and create awesome tools that work on various platforms.&lt;/p&gt;

&lt;p&gt;So, what about someone offering me a topic to discuss on Node.js? If I can find some time to share the knowledge I gained while developing stuff with Node.js, I&amp;#8217;d make sure that some need &lt;em&gt;that&lt;/em&gt; information.&lt;/p&gt;</content>
 </entry>
 
 
</feed>