<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>TM Blog &#187; eric</title>
	<atom:link href="http://www.tmprod.com/blog/author/eric/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tmprod.com/blog</link>
	<description>Web Development &#38; Internet Marketing Blog</description>
	<lastBuildDate>Wed, 16 May 2012 16:49:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>What is MVC Architecture in a Web-Based Application?</title>
		<link>http://www.tmprod.com/blog/2012/what-is-mvc-architecture-in-a-web-based-application/</link>
		<comments>http://www.tmprod.com/blog/2012/what-is-mvc-architecture-in-a-web-based-application/#comments</comments>
		<pubDate>Fri, 02 Mar 2012 23:03:08 +0000</pubDate>
		<dc:creator>eric</dc:creator>
				<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.tmprod.com/blog/?p=6577</guid>
		<description><![CDATA[The MVC architecture pattern is a very useful method of software development that can be used in almost any application you are building, no matter how large or small. MVC allows for isolating the three major components of a software application in order to make development and maintenance much easier for the programmers. We will discuss the basic concepts of the MVC pattern so that you can begin to use it in your everyday application development.]]></description>
			<content:encoded><![CDATA[<p>In the past couple of years, my professional life has been blessed with the knowledge of the MVC pattern. What in the world is this MVC I speak of? MVC stands for Model-View-Controller, and it&#8217;s an idea behind application development to separate the 3 main pieces of the application into their own isolated environments.</p>
<p>What does this mean exactly? There are three major components of any given application, be it a desktop application, mobile application, or a web-based application. These three components are the Controller, the View, and the Model. Now let’s get a more concrete idea of what each of these three components actually does within an application.</p>
<p><strong><a href="http://www.tmprod.com/blog/wp-content/uploads/2012/03/Screen-Shot-2012-03-02-at-2.39.09-PM.png"><img class="size-medium wp-image-6620 alignleft" title="MVC-Pattern-Controller" src="http://www.tmprod.com/blog/wp-content/uploads/2012/03/Screen-Shot-2012-03-02-at-2.39.09-PM-300x194.png" alt="" width="300" height="194" /></a>The Controller</strong> is essentially the traffic cop of the application, directing traffic to where it needs to go, figuring out which view it needs to load up, and interacting with the appropriate models. For example, when you go to login to your email on a website, the controller is going to tell the application that it needs to load the login form view. Upon attempting to login, the controller will load the model that handles logins, which will check if the username and password match what exists within the system. If successful, the controller will then pass you off to the first page you enter when logging in, such as your inbox. Once there, the inbox controller will further handle that request.</p>
<p><a href="http://www.tmprod.com/blog/wp-content/uploads/2012/03/Screen-Shot-2012-03-02-at-2.39.34-PM.png"><img class="alignleft size-medium wp-image-6621" title="MVC-Pattern-View" src="http://www.tmprod.com/blog/wp-content/uploads/2012/03/Screen-Shot-2012-03-02-at-2.39.34-PM-300x194.png" alt="" width="300" height="194" /></a>In a web-based application, <strong>the view</strong> is exactly what it sounds like: the visible interface that the user interacts with, displaying buttons, forms, and information. Generally speaking, the controller calls up the view after interacting with the model, which is what gathers the information to display in the particular view.</p>
<p><strong><a href="http://www.tmprod.com/blog/wp-content/uploads/2012/03/Screen-Shot-2012-03-02-at-2.39.12-PM.png"><img class="alignleft size-medium wp-image-6619" title="MVC-Pattern-Model" src="http://www.tmprod.com/blog/wp-content/uploads/2012/03/Screen-Shot-2012-03-02-at-2.39.12-PM-300x194.png" alt="" width="300" height="194" /></a></strong></p>
<p>&nbsp;</p>
<p><strong>The Model</strong> is where data from the controller and sometimes the view is actually passed into, out of, and manipulated. Keeping in mind our last example of logging into your web-based email, the model will take the username and password given to it from the controller, check that data against the stored information in the database, and then render the view accordingly. For example, if you enter in an incorrect password, the model will tell the controller that it was incorrect, and the controller will tell the view to display an error message saying something to the effect of “Your username or password is incorrect.”</p>
<p>Now that you know the basic concepts of the MVC pattern, you&#8217;re probably wondering what makes it so special? Essentially, it allows for the programmer to isolate these very separate pieces of code into their own domain, which makes code maintenance and debugging much simpler than if all of these items were chunked into one massive piece. If I have a problem with an application not displaying an error message when it should, I have a very specific set of locations to look to see why this is not happening. First I would look at the “Login Controller” to see if it is telling the view to display the error. If that&#8217;s fine, I would look at the “Login Model” to see if it is passing the data back to the controller to tell it that it needs to show an error. Then if that&#8217;s correct, the last place it could be happening would be in the “Login View.”</p>
<p>Using this development pattern allows for very easy maintenance, as well as independent development of pieces of the same system by different programmers, which makes for quick turnover of applications all while still maintaining a very high standard of quality for the application.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tmprod.com/blog/2012/what-is-mvc-architecture-in-a-web-based-application/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to post pictures to Google Plus from an iPhone</title>
		<link>http://www.tmprod.com/blog/2011/how-to-post-pictures-to-google-plus-from-an-iphone/</link>
		<comments>http://www.tmprod.com/blog/2011/how-to-post-pictures-to-google-plus-from-an-iphone/#comments</comments>
		<pubDate>Mon, 18 Jul 2011 17:56:02 +0000</pubDate>
		<dc:creator>eric</dc:creator>
				<category><![CDATA[Online Habits]]></category>
		<category><![CDATA[internet applications]]></category>

		<guid isPermaLink="false">http://www.tmprod.com/blog/?p=4543</guid>
		<description><![CDATA[While iPhone users watch their Android counterparts gleefully upload photos to Google+, we've got a workaround for you to get your iPhone uploading photos to Google+ automatically.]]></description>
			<content:encoded><![CDATA[<p>By now we’ve all heard that the App Store may or may not be <a href="http://uk.ibtimes.com/articles/179963/20110714/google-google-g-plus-iphone-ipad-app-application-android-apple-ios-5-4.htm" title="G+ app delayed" rel="external">intentionally delaying the approval of the official Google Plus App</a>, which turns me and presumably hundreds of thousands of other iPhone and Google Plus users into little balls of internet rage. However, it’s the App Store, and there’s really not a thing any one of us can do about their approval process, short of waiting it out and hoping for the best.</p>
<p>So while we’re sitting around twiddling our thumbs, not being able to <em>really use</em> anything on Google Plus via the mobile app on Safari, we wait patiently. Alternatively, we fire up our desktops or laptops and use it normally, which I’m sure is what the great majority of us iPhone users have had to do. Personally, I use my laptop or desktop as little as possible. I bought an iPhone because I liked the fact that I could browse the web and use many services with it. Therein lies the rub—while the Google team have done a fantastic job of developing their mobile version of Google Plus, it lacks in some key features like being able to edit your profile, being able to manage albums, or even upload a photo to an album. The full desktop version of Google Plus on Safari in iOS4x is almost impossible to use to update your profile or…really use at all, as there are far too many UI issues with it to even bother to use it over the mobile version.</p>
<p>So that’s the bridge I’m hoping to help some people cross today (though I can’t help much with not being able to edit your profile). I&#8217;ve found a neat way to work around having absolutely no way to upload photos via mobile. It seems the Google Plus team figured it’d be a great idea to sync your Picasa albums automatically to your Google Plus albums. Great! It also just so happens, there are many already-approved iPhone apps available in the app store to manage and upload your photos to Picasa.</p>
<p><a href="http://www.tmprod.com/blog/2011/how-to-post-pictures-to-google-plus-from-an-iphone/photo-01-2/" rel="attachment wp-att-4549"><img class="alignnone size-full wp-image-4549" title="MyPics" src="http://www.tmprod.com/blog/wp-content/uploads/2011/07/photo-011.png" alt="How to post pictures to Google+ from iPhone step 1" width="299" height="437" /></a></p>
<p>I was never a user of Picasa, so I had to create an account using my existing Google account, but that was really no big deal. The app I’m using in this example is “<a href="http://click.linksynergy.com/fs-bin/stat?id=DiyP1XqihZs&amp;offerid=146261&amp;type=3&amp;subid=0&amp;tmpid=1826&amp;RD_PARM1=http%253A%252F%252Fitunes.apple.com%252Fus%252Fapp%252Fmypics-picasa-web-albums-manager%252Fid351297486%253Fmt%253D8%2526uo%253D4%2526partnerId%253D30" target="itunes_store">MyPics &#8211; Picasa Web Albums Manager</a>”, and is available for $2.99. I assume there are other free apps that do the same thing, but this is the one that I got, so this is the one that I know how to work with!</p>
<p><a href="http://www.tmprod.com/blog/2011/how-to-post-pictures-to-google-plus-from-an-iphone/photo-02-2/" rel="attachment wp-att-4550"><img class="alignnone size-full wp-image-4550" title="photo-02" src="http://www.tmprod.com/blog/wp-content/uploads/2011/07/photo-021.png" alt="Photos to Google+ from iPhone using MyPics step 2" width="320" height="462" /></a></p>
<p>It’s really quite easy. When you’re out on the go, and want to share a picture you just took, you just use MyPics to create a new album (or use an existing one), add a photo from your phone&#8217;s camera roll, and add it to the upload queue. When you’re done adding images to the upload queue, you can just simply tap the upload button in the app, and it will automatically add these photos to your Picasa albums, and thereby adding them to your Google Plus albums as well!</p>
<p><a href="http://www.tmprod.com/blog/2011/how-to-post-pictures-to-google-plus-from-an-iphone/photo-03-2/" rel="attachment wp-att-4551"><img class="alignnone size-full wp-image-4551" title="photo-03" src="http://www.tmprod.com/blog/wp-content/uploads/2011/07/photo-031.png" alt="Adding photos to Google+ from iPhone step 3" width="320" height="462" /></a></p>
<p>The app also allows you to add captions to photos quite easily, and manages to save all of the EXIF data along with each image. There is even a way to manage the image&#8217;s Google Plus privacy settings, however it is not as intuitive as Google Plus itself. Basically each image (or an entire album) can be set to public or private. There is no way to manage which circles can see it and which can’t, because obviously this is a Picasa album manager—but it just so happens that Google Plus automatically pulls these albums for you.</p>
<p><a href="http://www.tmprod.com/blog/2011/how-to-post-pictures-to-google-plus-from-an-iphone/photo-04-2/" rel="attachment wp-att-4552"><img class="alignnone size-full wp-image-4552" title="photo-04" src="http://www.tmprod.com/blog/wp-content/uploads/2011/07/photo-041.png" alt="Photos to Google+ from iPhone step 4" width="320" height="462" /></a></p>
<p>So there you have it, it’s all quite simple really, and right now it’s basically all we have available to us if we want to add photos to our Google Plus accounts while on the go. Now I will politely and patiently keep twiddling my thumbs waiting for Apple to stop being such meanies and approve the G+ app!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tmprod.com/blog/2011/how-to-post-pictures-to-google-plus-from-an-iphone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

