<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><atom:link rel="hub" href="http://tumblr.superfeedr.com/" xmlns:atom="http://www.w3.org/2005/Atom"/><description></description><title>Confessions of a Programmer</title><generator>Tumblr (3.0; @confessionsofaprogrammer)</generator><link>http://confessionsofaprogrammer.tumblr.com/</link><item><title>10 / 04 / 2013 22:48</title><description>&lt;p&gt;OK, might be an idea to start writing some goals for this application, before I get sucked into a black hole of endless development.&lt;/p&gt;
&lt;p&gt;I can get a bit carried away sometimes.&lt;/p&gt;</description><link>http://confessionsofaprogrammer.tumblr.com/post/47647855621</link><guid>http://confessionsofaprogrammer.tumblr.com/post/47647855621</guid><pubDate>Wed, 10 Apr 2013 17:49:07 -0400</pubDate><category>PopOffice</category></item><item><title>10 / 04 / 2013 21:47</title><description>&lt;p&gt;Success! Just did a quick test of the IMAP functionality in PHP. Everything looks pretty straightforward so far. Now I know it&amp;#8217;s possible, it&amp;#8217;s time to start planning out the application.&lt;/p&gt;</description><link>http://confessionsofaprogrammer.tumblr.com/post/47643420618</link><guid>http://confessionsofaprogrammer.tumblr.com/post/47643420618</guid><pubDate>Wed, 10 Apr 2013 16:52:42 -0400</pubDate><category>PopOffice</category></item><item><title>10 / 04 / 2013 20:47</title><description>&lt;p&gt;Project time!&lt;/p&gt;
&lt;p&gt;I have a plan. A grand plan. Basically I want to create a web app for my buddy Raz which will completely encapsulate his day-to-day business activities from a single point. Something along the lines of Salesforce, but more customised to his (and eventually my own) needs.&lt;/p&gt;
&lt;p&gt;The first step, though, is to work out how to do webmail. It&amp;#8217;s not that I want to create something that replaces, say, Outlook. More that I want something to work alongside Raz&amp;#8217;s standard email application to organise important emails on the web. I want Raz to be able to select a client from his database, and view the entire email conversation history with that client.&lt;/p&gt;
&lt;p&gt;Time to get reading.&lt;/p&gt;</description><link>http://confessionsofaprogrammer.tumblr.com/post/47638996216</link><guid>http://confessionsofaprogrammer.tumblr.com/post/47638996216</guid><pubDate>Wed, 10 Apr 2013 15:54:03 -0400</pubDate><category>PopOffice</category></item><item><title>06 / 04 / 2013 01:19</title><description>&lt;p&gt;Database design is already getting ridiculously complex. So many relationships it&amp;#8217;s looking like a piece of modern art.&lt;/p&gt;
&lt;p&gt;Each user has multiple photo albums, which can be liked or commented on. Each photo within the album can also be liked or commented on. The same will need to be done for videos, and pretty much any other content.&lt;/p&gt;
&lt;p&gt;The DBAs at Facebook must be mental&amp;#8230;&lt;/p&gt;</description><link>http://confessionsofaprogrammer.tumblr.com/post/47231807992</link><guid>http://confessionsofaprogrammer.tumblr.com/post/47231807992</guid><pubDate>Fri, 05 Apr 2013 20:12:55 -0400</pubDate><category>OI Social Network</category></item><item><title>06 / 04 / 2013 00:11</title><description>&lt;p&gt;Interesting. I just had a quick read-up on foreign keys in MySQL. Turns out they can be implemented, but only using InnoDB tables (not the standard MyISAM).&lt;/p&gt;
&lt;p&gt;Definitely worth looking into. I expect this site to have a shit-bunch of data being stored, so anything to help keep the integrity will help.&lt;/p&gt;</description><link>http://confessionsofaprogrammer.tumblr.com/post/47227241649</link><guid>http://confessionsofaprogrammer.tumblr.com/post/47227241649</guid><pubDate>Fri, 05 Apr 2013 19:13:02 -0400</pubDate><category>OI Social Network</category></item><item><title>06 / 04 / 2013 00:03</title><description>&lt;p&gt;This is an interesting conundrum. Do I separate user information into two tables - one for the basic info and one for profile data; or do I just stick it all in one table.&lt;/p&gt;
&lt;p&gt;There&amp;#8217;s a voice nagging in the back of my head that I should split the data, but that seems like it would require lots of unnecessary JOIN queries in the application.&lt;/p&gt;
&lt;p&gt;Seems to be a case of optimisation vs. security.&lt;/p&gt;</description><link>http://confessionsofaprogrammer.tumblr.com/post/47226629102</link><guid>http://confessionsofaprogrammer.tumblr.com/post/47226629102</guid><pubDate>Fri, 05 Apr 2013 19:05:03 -0400</pubDate><category>OI Social Network</category></item><item><title>05 / 04 / 2013 23:28</title><description>&lt;p&gt;Just started on the database design. Obviously things are going to be changed along the way, but it helps to get a good start on these things.&lt;/p&gt;</description><link>http://confessionsofaprogrammer.tumblr.com/post/47223879366</link><guid>http://confessionsofaprogrammer.tumblr.com/post/47223879366</guid><pubDate>Fri, 05 Apr 2013 18:29:00 -0400</pubDate><category>OI Social Network</category></item><item><title>05 / 04 / 2013 22:34</title><description>&lt;p&gt;It&amp;#8217;s Friday night. I&amp;#8217;ve had a beer, and I&amp;#8217;m ready to code.&lt;/p&gt;
&lt;p&gt;It&amp;#8217;s been an intense week with all of the OI Community, and after spending the day with a young mum whose daughter has OI, I&amp;#8217;m now more convinced then ever that we need to set up a proper online support network. The information just isn&amp;#8217;t readily available for new parents right now.&lt;/p&gt;
&lt;p&gt;In terms of coding, it&amp;#8217;s a hefty-sized project. Aside from all of the social networking features, there is also the issue of classifying users. Do we even need to classify them?&lt;/p&gt;</description><link>http://confessionsofaprogrammer.tumblr.com/post/47220500540</link><guid>http://confessionsofaprogrammer.tumblr.com/post/47220500540</guid><pubDate>Fri, 05 Apr 2013 17:46:00 -0400</pubDate><category>OI Social Network</category></item><item><title>31 / 03 / 2013 15:18</title><description>&lt;p&gt;Revoked Permissions now enabled.&lt;/p&gt;
&lt;p&gt;Now I need a new task&amp;#8230;&lt;/p&gt;</description><link>http://confessionsofaprogrammer.tumblr.com/post/46758210421</link><guid>http://confessionsofaprogrammer.tumblr.com/post/46758210421</guid><pubDate>Sun, 31 Mar 2013 10:19:31 -0400</pubDate><category>PopMVC v2.0</category></item><item><title>31 / 03 / 2013 15:04</title><description>&lt;p&gt;Basic logout complete. I still need to add code to completely revoke permissions as well (as per Facebook T&amp;amp;Cs).&lt;/p&gt;
&lt;p&gt;Should be fairly straightforward&amp;#8230;&lt;/p&gt;</description><link>http://confessionsofaprogrammer.tumblr.com/post/46757466505</link><guid>http://confessionsofaprogrammer.tumblr.com/post/46757466505</guid><pubDate>Sun, 31 Mar 2013 10:05:31 -0400</pubDate><category>PopMVC v2.0</category></item><item><title>31 / 03 / 2013 14:43</title><description>&lt;p&gt;Happy Easter everybody!&lt;/p&gt;
&lt;p&gt;I&amp;#8217;ve almost written the basics of the OAuth module. Just need to write the logout method, and then I&amp;#8217;ll have a working Facebook authentication library. After that, I&amp;#8217;m not sure if I&amp;#8217;ll integrate Twitter yet, or move onto something else for a while.&lt;/p&gt;</description><link>http://confessionsofaprogrammer.tumblr.com/post/46756463097</link><guid>http://confessionsofaprogrammer.tumblr.com/post/46756463097</guid><pubDate>Sun, 31 Mar 2013 09:45:43 -0400</pubDate><category>PopMVC v2.0</category></item><item><title>25 / 03 / 2013 22:56</title><description>&lt;p&gt;Scrapped the previous attempt at FB OAuth. Gone back to the basics outlined in the Facebook developers page.&lt;/p&gt;
&lt;p&gt;Near as I can tell, it does everything I need (assuming I&amp;#8217;ve understood how it works).&lt;/p&gt;</description><link>http://confessionsofaprogrammer.tumblr.com/post/46287779209</link><guid>http://confessionsofaprogrammer.tumblr.com/post/46287779209</guid><pubDate>Mon, 25 Mar 2013 18:58:04 -0400</pubDate><category>PopMVC v2.0</category></item><item><title>25 / 03 / 2013 21:00</title><description>&lt;p&gt;Constructor written. Now I&amp;#8217;m onto the getUser() function. The FB SDK has this function checking if a user object has already been created. If not, it calls a function called getUserFromAvailableData, which, if I read correctly, tries to get the user info from whatever data it has available (access token, signed request&amp;#8230;).&lt;/p&gt;
&lt;p&gt;I think for now we can get away with just using the access token, but we&amp;#8217;ll see.&lt;/p&gt;
&lt;p&gt;I&amp;#8217;m not looking forward to debugging this. Already we&amp;#8217;re getting into spaghetti code&amp;#8230;&lt;/p&gt;</description><link>http://confessionsofaprogrammer.tumblr.com/post/46277795383</link><guid>http://confessionsofaprogrammer.tumblr.com/post/46277795383</guid><pubDate>Mon, 25 Mar 2013 17:03:36 -0400</pubDate><category>PopMVC v2.0</category></item><item><title>25 / 03 / 2013 20:18</title><description>&lt;p&gt;Interesting so far. The constructor sets the app ID and secret before attempting to get a session variable called &amp;#8216;state&amp;#8217;&amp;#8230;&lt;/p&gt;</description><link>http://confessionsofaprogrammer.tumblr.com/post/46274260259</link><guid>http://confessionsofaprogrammer.tumblr.com/post/46274260259</guid><pubDate>Mon, 25 Mar 2013 16:21:58 -0400</pubDate><category>PopMVC v2.0</category></item><item><title>25 / 03 / 2013 20:00</title><description>&lt;p&gt;Wired in for tonight&amp;#8217;s task. Start development of an OAuth2.0 library for PopMVC. We need to be able to log in with (at least) facebook and twitter accounts, maintain the session, and link either account to a user profile.&lt;/p&gt;
&lt;p&gt;The Facebook SDK provides a couple of base classes to work with, but I need to include all of their function into a single OAuth library.&lt;/p&gt;
&lt;p&gt;Basically it needs to come down to calling a single function to check if a user is logged in etc. That function should then be able to differentiate between a facebook authenticated user and a twitter one.&lt;/p&gt;</description><link>http://confessionsofaprogrammer.tumblr.com/post/46273194001</link><guid>http://confessionsofaprogrammer.tumblr.com/post/46273194001</guid><pubDate>Mon, 25 Mar 2013 16:08:53 -0400</pubDate><category>PopMVC v2.0</category></item><item><title>25 / 03 / 2013 00:32</title><description>&lt;p&gt;It took me a while but I’ve now incorporated two different types of greyscale algorithm. You can choose which one to use by setting a flag in the function call. The default is luminosity, which works by using the following formula:&lt;/p&gt;
&lt;pre&gt;avg = 0.21R + 0.71G + 0.07B &lt;/pre&gt;</description><link>http://confessionsofaprogrammer.tumblr.com/post/46209945953</link><guid>http://confessionsofaprogrammer.tumblr.com/post/46209945953</guid><pubDate>Sun, 24 Mar 2013 20:38:14 -0400</pubDate><category>PopMVC v2.0</category></item><item><title>24 / 03 / 2013 23:21</title><description>&lt;p&gt;It took a bit of faffing with the numbers, but I’ve managed to get the image tint function working correctly. Basically we divide the tint RGB values by 255 and multiply the pixel RGB values by the result.&lt;/p&gt;</description><link>http://confessionsofaprogrammer.tumblr.com/post/46203740103</link><guid>http://confessionsofaprogrammer.tumblr.com/post/46203740103</guid><pubDate>Sun, 24 Mar 2013 19:23:36 -0400</pubDate><category>PopMVC v2.0</category></item><item><title>24 / 03 / 2013 22:12</title><description>&lt;p&gt;I’m trying to work out how to do a basic colour tint. I’ve got a rough idea of how to do it, but I’d need to try it out.&lt;/p&gt;
&lt;p&gt;I think the way to do it would be to calculate an average RGB value, like we would for greyscale, and multiply it by a factor for each component.&lt;/p&gt;</description><link>http://confessionsofaprogrammer.tumblr.com/post/46198318736</link><guid>http://confessionsofaprogrammer.tumblr.com/post/46198318736</guid><pubDate>Sun, 24 Mar 2013 18:19:15 -0400</pubDate><category>PopMVC v2.0</category></item><item><title>24 / 03 / 2013 21:54</title><description>&lt;p&gt;I&amp;#8217;ve transferred to my iPad. Had to take a shower, which means I gotta lie down to take the back brace off etc. It&amp;#8217;s a pain in the arse, but necessary for another two weeks. Either way, I&amp;#8217;m coding on an iPad whilst lying down. Not exactly a recipe for efficiency, but I&amp;#8217;ll survive.&lt;/p&gt;</description><link>http://confessionsofaprogrammer.tumblr.com/post/46196606014</link><guid>http://confessionsofaprogrammer.tumblr.com/post/46196606014</guid><pubDate>Sun, 24 Mar 2013 17:59:13 -0400</pubDate><category>PopMVC v2.0</category></item><item><title>24 / 03 / 2013 20:19</title><description>&lt;p&gt;Got it! The basic algorithm (massively simplified) is shown below:&lt;/p&gt;
&lt;pre&gt;alpha_increment = img_height / 127
running_alpha = 0
nth_row = 0

for (y = 0; y &amp;lt; reflection_height; y++)
{
    if (y == nth_row)
	{
		nth_row = round(alpha_increment + nth_row)
		running_alpha++
	}
	
	for (x = 0; x &amp;lt; image_width; x++)
	{
		setpixelalpha(x, y, running_alpha)
	}
}&lt;/pre&gt;</description><link>http://confessionsofaprogrammer.tumblr.com/post/46187963266</link><guid>http://confessionsofaprogrammer.tumblr.com/post/46187963266</guid><pubDate>Sun, 24 Mar 2013 16:19:46 -0400</pubDate><category>PopMVC v2.0</category></item></channel></rss>
