<?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>&#160;&#160;Praeda &#38; Co.</title>
	<atom:link href="http://senior.ceng.metu.edu.tr/2009/praeda/feed/" rel="self" type="application/rss+xml" />
	<link>http://senior.ceng.metu.edu.tr/2009/praeda</link>
	<description>Just another Design project team</description>
	<lastBuildDate>Wed, 09 Sep 2009 13:31:54 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>A Late Goodbye</title>
		<link>http://senior.ceng.metu.edu.tr/2009/praeda/2009/09/09/a-late-goodbye/</link>
		<comments>http://senior.ceng.metu.edu.tr/2009/praeda/2009/09/09/a-late-goodbye/#comments</comments>
		<pubDate>Wed, 09 Sep 2009 13:16:26 +0000</pubDate>
		<dc:creator>Praeda</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[cansin]]></category>
		<category><![CDATA[contest]]></category>
		<category><![CDATA[eray]]></category>
		<category><![CDATA[gokhan]]></category>
		<category><![CDATA[goodbye]]></category>
		<category><![CDATA[murat]]></category>

		<guid isPermaLink="false">http://senior.ceng.metu.edu.tr/2009/praeda/?p=435</guid>
		<description><![CDATA[It&#8217;s a bit late to tell this but at June&#8217;09 we have finished the development of MuzikMekan and won the 3rd prize at Middle East Technical University, Computer Engineering Department, Senior Design Projects Contest.
Today all members of Praeda&#38;Co. has gone in separate directions, Eray and Murat at Europe for Msc. study, Cansin is still at [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s a bit late to tell this but at June&#8217;09 we have finished the development of MuzikMekan and won the <strong>3rd prize</strong> at <a href="http://www.metu.edu.tr" target="_blank">Middle East Technical University</a>, <a href="http://www.ceng.metu.edu.tr">Computer Engineering Department</a>, Senior Design Projects Contest.</p>
<p>Today all members of Praeda&amp;Co. has gone in separate directions, <a href="http://ceng.metu.edu.tr/~e1448950/" target="_blank">Eray</a> and <a href="mailto:e1449008@ceng.metu.edu.tr">Murat</a> at Europe for Msc. study, <a href="http://www.ceng.metu.edu.tr/~e1449271" target="_blank">Cansin</a> is still at Ankara,Turkey for Msc. study and <a href="mailto:e1449172@ceng.metu.edu.tr">Gokhan</a> is at Istanbul,Turkey to work for a national bank.</p>
<p>Please feel free to use the <a href="http://senior.ceng.metu.edu.tr/2009/praeda/contact/">Contact</a> section if you want to contact with one of us.</p>
]]></content:encoded>
			<wfw:commentRss>http://senior.ceng.metu.edu.tr/2009/praeda/2009/09/09/a-late-goodbye/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Selection of the Preferred Locations for Suggestion on Google Maps</title>
		<link>http://senior.ceng.metu.edu.tr/2009/praeda/2009/05/28/selection-of-the-preferred-locations-for-suggestion-on-google-maps/</link>
		<comments>http://senior.ceng.metu.edu.tr/2009/praeda/2009/05/28/selection-of-the-preferred-locations-for-suggestion-on-google-maps/#comments</comments>
		<pubDate>Thu, 28 May 2009 09:03:02 +0000</pubDate>
		<dc:creator>Eray</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[area selection]]></category>
		<category><![CDATA[eray]]></category>
		<category><![CDATA[google maps]]></category>
		<category><![CDATA[gpolygon]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[praeda maps]]></category>

		<guid isPermaLink="false">http://senior.ceng.metu.edu.tr/2009/praeda/2009/05/28/selection-of-the-preferred-locations-for-suggestion-on-google-maps/</guid>
		<description><![CDATA[This week I completed the location selection(actually areaS selection) module for clients. This module will be used by clients for indicating their preferred locations when getting venue suggestions or seeing their friends inside these areas.
The main features of this component is that it supports multiple location adding / updating / deleting. This means clients can [...]]]></description>
			<content:encoded><![CDATA[<p>This week I completed the location selection(actually areaS selection) module for clients. This module will be used by clients for indicating their preferred locations when getting venue suggestions or seeing their friends inside these areas.</p>
<p>The main features of this component is that it supports multiple location adding / updating / deleting. This means clients can indicate more than one location and adjust the size of those areas whatever and whenever they want.</p>
<p>I plan to write a how to for handling polygons on Google Maps asap.</p>
]]></content:encoded>
			<wfw:commentRss>http://senior.ceng.metu.edu.tr/2009/praeda/2009/05/28/selection-of-the-preferred-locations-for-suggestion-on-google-maps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How-to: File Uploading Using JSP/Servlet</title>
		<link>http://senior.ceng.metu.edu.tr/2009/praeda/2009/05/28/how-to-file-uploading-using-jspservlet/</link>
		<comments>http://senior.ceng.metu.edu.tr/2009/praeda/2009/05/28/how-to-file-uploading-using-jspservlet/#comments</comments>
		<pubDate>Wed, 27 May 2009 23:54:04 +0000</pubDate>
		<dc:creator>Cansin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[cansin]]></category>
		<category><![CDATA[file upload]]></category>
		<category><![CDATA[form-data]]></category>
		<category><![CDATA[jsp]]></category>
		<category><![CDATA[multipart]]></category>
		<category><![CDATA[oreilly]]></category>
		<category><![CDATA[request]]></category>
		<category><![CDATA[servlet]]></category>

		<guid isPermaLink="false">http://senior.ceng.metu.edu.tr/2009/praeda/?p=399</guid>
		<description><![CDATA[As a surprise, I saw that JSPs are not capable of handling multipart form data. So, I have spent some time on figuring out how to upload a file to the server using JSP/Servlet.
There are two known libraries to use to be able to handle multipart form data; Apache Commons&#8217; FileUpload and OReilly&#8217;s COS. I [...]]]></description>
			<content:encoded><![CDATA[<p>As a surprise, I saw that JSPs are not capable of handling multipart form data. So, I have spent some time on figuring out how to upload a file to the server using JSP/Servlet.</p>
<p>There are two known libraries to use to be able to handle multipart form data; <a href="http://commons.apache.org/fileupload/" target="_blank">Apache Commons&#8217; FileUpload</a> and <a href="http://www.servlets.com/cos/" target="_blank">OReilly&#8217;s COS</a>. I have found latter easy to use. At COS, there are two approaches to handle multipart request; <em>push</em> and <em>pull</em> model. You can either use <a href="http://www.servlets.com/cos/javadoc/com/oreilly/servlet/MultipartRequest.html" target="_blank">MultipartRequest</a> class  to handle the request (<em>push model</em>) just like you do at a regular request (i.e. using <em>req.getParameter()</em>); or use <a href="http://www.servlets.com/cos/javadoc/com/oreilly/servlet/multipart/MultipartParser.html" target="_blank">MultipartParser</a> class to do the job by iterating among request objects (<em>pull model</em>).<span id="more-399"></span></p>
<blockquote><p>You can download the .war file which contains source codes and classes mentioned below at <a href="http://senior.ceng.metu.edu.tr/2009/praeda/wp-content/uploads/2009/05/fileupload.war">here</a>.</p></blockquote>
<p>For today&#8217;s example, I will use MultipartRequest class to do the uploading, since it has the same logic as <a href="http://java.sun.com/javaee/5/docs/api/javax/servlet/http/HttpServletRequest.html" target="_blank">HttpServletRequest</a> class. But first we need to include COS&#8217;s jar to our war project. You can do it easily at Netbeans by right-clicking at <em>Libraries</em> at <em>Projects</em> view under your project and hitting <em>Add JAR/Folder&#8230;</em>. That&#8217;s it, you&#8217;re ready to go now.</p>
<blockquote><p>If you want to be able to see javadocs of COS, you should hit <em>Add Library&#8230;</em> and <em>Create&#8230;</em> a new <em>Class Library</em>, then you can give the path of COS&#8217;s <em>jar, j</em><em>avadoc</em> and <em>source</em>. A little bit trickier than adding just a jar, but really worth it.</p></blockquote>
<p>To be able to upload a file, we need to have a JSP to render the upload form, and a Servlet to handle incoming requests. Lets first start with our servlet. At this servlet, Upload, we&#8217;re receiving incoming request at processRequest(req,res) method. At this method, incoming HttpServletRequest is cast to MultipartRequest. If casting can be done, it means form is submitted (i.e an actual multipart request has arrived) and we&#8217;re ready to handle our uploaded file. If casting throws an IOException, it means our form is not yet submitted (i.e user just tries to see upload form) and we should show upload form to the user.</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">protected</span> <span style="color: #000066; font-weight: bold;">void</span> processRequest<span style="color: #009900;">&#40;</span>HttpServletRequest request, HttpServletResponse response<span style="color: #009900;">&#41;</span>
        <span style="color: #000000; font-weight: bold;">throws</span> ServletException, <span style="color: #003399;">IOException</span> <span style="color: #009900;">&#123;</span>
    response.<span style="color: #006633;">setContentType</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;text/html;charset=UTF-8&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000000; font-weight: bold;">try</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #008000; font-style: italic; font-weight: bold;">/**
         * Parse request using MultiparRequest since it is a multipart/form-data
         * throws IOException if request is not multipart
         *
         * So, if form is not yet submitted Upload servlet will show upload.jsp as response
         * if form is submitted Upload servlet will process the request at upload() function
         */</span>
        MultipartRequest multipartRequest <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> MultipartRequest<span style="color: #009900;">&#40;</span>request, getServletContext<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #006633;">getRealPath</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;/tmp/&quot;</span><span style="color: #009900;">&#41;</span>, <span style="color: #666666; font-style: italic;">/* 1MB */</span> <span style="color: #cc66cc;">1024</span> <span style="color: #339933;">*</span> <span style="color: #cc66cc;">1024</span>, <span style="color: #000000; font-weight: bold;">new</span> DefaultFileRenamePolicy<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>multipartRequest.<span style="color: #006633;">getParameter</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;save&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">!=</span> <span style="color: #000066; font-weight: bold;">null</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            upload<span style="color: #009900;">&#40;</span>request, response, multipartRequest<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">else</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #000000; font-weight: bold;">throw</span> <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">IOException</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Display Upload Dialogue&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
    <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">catch</span> <span style="color: #009900;">&#40;</span><span style="color: #003399;">IOException</span> ex<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        displayUpload<span style="color: #009900;">&#40;</span>request, response<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>Showing the upload form is trivial, we&#8217;re just forwarding the Servlet&#8217;s response to <em>upload.jsp</em> file. The form element at <em>upload.jsp</em> is a minimal file upload form (i.e. you should always include <em>method</em> and <em>enctype attributes</em> as it is, and have at least one <em>file typed input</em>).</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000066; font-weight: bold;">void</span> displayUpload<span style="color: #009900;">&#40;</span>HttpServletRequest request, HttpServletResponse response<span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">throws</span> ServletException, <span style="color: #003399;">IOException</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #008000; font-style: italic; font-weight: bold;">/**
     * Display upload.jsp as response.
     * It is a good convention to use JSPs as Views (i.e. to show response)
     * and Servlets as Controllers (i.e. to catch request and process)
     */</span>
    getServletContext<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #006633;">getRequestDispatcher</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;/WEB-INF/jspf/upload.jsp&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #006633;">forward</span><span style="color: #009900;">&#40;</span>request, response<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;form</span> <span style="color: #000066;">action</span>=<span style="color: #ff0000;">&quot;Upload&quot;</span> <span style="color: #000066;">enctype</span>=<span style="color: #ff0000;">&quot;multipart/form-data&quot;</span> <span style="color: #000066;">method</span>=<span style="color: #ff0000;">&quot;post&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;input</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;uploaded&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;file&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;input</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;save&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;submit&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;Upload&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/form<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

<p>Now all we have to do is to handle incoming uploaded file. MultipartRequest, when first initialized, stores every uploaded file to a temporary location that you gave (In our case it&#8217;s under <em>tmp/</em> folder). Than you can manipulate those temporary files by any way you want. In this example we&#8217;re just moving the uploaded file from <em>tmp/</em> folder to <em>data/</em> folder, and changing it&#8217;s name to <em>uploaded</em> while keeping the original file format.</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000066; font-weight: bold;">void</span> upload<span style="color: #009900;">&#40;</span>HttpServletRequest request, HttpServletResponse response, MultipartRequest multipartRequest<span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">throws</span> <span style="color: #003399;">IOException</span> <span style="color: #009900;">&#123;</span>
&nbsp;
    <span style="color: #008000; font-style: italic; font-weight: bold;">/**
     * Get uploaded file
     */</span>
    <span style="color: #003399;">File</span> tmpFile <span style="color: #339933;">=</span> multipartRequest.<span style="color: #006633;">getFile</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;uploaded&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #008000; font-style: italic; font-weight: bold;">/**
     * Do whatever adjustment you want to this temporary file
     * .
     * .
     * .
     */</span>
&nbsp;
    <span style="color: #008000; font-style: italic; font-weight: bold;">/**
     *  Move temporary file to actual destination
     */</span>
    <span style="color: #003399;">File</span> dirToMove<span style="color: #339933;">=</span><span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">File</span><span style="color: #009900;">&#40;</span>getServletContext<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #006633;">getRealPath</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;/data&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #003399;">String</span> newFileName<span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;uploaded&quot;</span><span style="color: #339933;">+</span>tmpFile.<span style="color: #006633;">getName</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #006633;">substring</span><span style="color: #009900;">&#40;</span>tmpFile.<span style="color: #006633;">getName</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #006633;">lastIndexOf</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'.'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #003399;">File</span> fileToMove<span style="color: #339933;">=</span><span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">File</span><span style="color: #009900;">&#40;</span>dirToMove,newFileName<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    tmpFile.<span style="color: #006633;">renameTo</span><span style="color: #009900;">&#40;</span>fileToMove<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #008000; font-style: italic; font-weight: bold;">/**
     * Delete temporary file
     */</span>
    tmpFile.<span style="color: #006633;">delete</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #008000; font-style: italic; font-weight: bold;">/**
     * Display newly uploaded file
     */</span>
    response.<span style="color: #006633;">sendRedirect</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;data/&quot;</span><span style="color: #339933;">+</span>newFileName<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>I think I have covered some basics of file uploading. If you need more information (especially about pulling method which I didn&#8217;t cover at all), I recommend you to look at O&#8217;Reily&#8217;s COS&#8217;s javadocs at <a href="http://www.servlets.com/cos/" target="_blank">here</a>.</p>
<p>Have a good day.</p>
]]></content:encoded>
			<wfw:commentRss>http://senior.ceng.metu.edu.tr/2009/praeda/2009/05/28/how-to-file-uploading-using-jspservlet/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Testing and Debugging</title>
		<link>http://senior.ceng.metu.edu.tr/2009/praeda/2009/05/24/testing-and-debugging/</link>
		<comments>http://senior.ceng.metu.edu.tr/2009/praeda/2009/05/24/testing-and-debugging/#comments</comments>
		<pubDate>Sun, 24 May 2009 08:26:50 +0000</pubDate>
		<dc:creator>Gokhan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[gokhan]]></category>
		<category><![CDATA[turkcell]]></category>

		<guid isPermaLink="false">http://senior.ceng.metu.edu.tr/2009/praeda/2009/05/24/testing-and-debugging/</guid>
		<description><![CDATA[Last week, as a whole team we focused on the last updates on database and determined the friendship and the suggestion system functions.
Then each member tried on to patch the failures because of the changes. I focused on the comment part. Next week, I am going to try to implement turkcell support for our project.
]]></description>
			<content:encoded><![CDATA[<p>Last week, as a whole team we focused on the last updates on database and determined the friendship and the suggestion system functions.</p>
<p>Then each member tried on to patch the failures because of the changes. I focused on the comment part. Next week, I am going to try to implement turkcell support for our project.</p>
]]></content:encoded>
			<wfw:commentRss>http://senior.ceng.metu.edu.tr/2009/praeda/2009/05/24/testing-and-debugging/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Friendship and Networking</title>
		<link>http://senior.ceng.metu.edu.tr/2009/praeda/2009/05/21/friendship-and-networking/</link>
		<comments>http://senior.ceng.metu.edu.tr/2009/praeda/2009/05/21/friendship-and-networking/#comments</comments>
		<pubDate>Thu, 21 May 2009 00:47:12 +0000</pubDate>
		<dc:creator>Murat</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[friend]]></category>
		<category><![CDATA[friendship]]></category>
		<category><![CDATA[murat]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[request]]></category>

		<guid isPermaLink="false">http://senior.ceng.metu.edu.tr/2009/praeda/?p=387</guid>
		<description><![CDATA[I&#8217;ve just finished the networking part of the MuzikMekan application. Now, users are able to send friendship request to others, display them and accept or reject them. This is implemented using two database tables: Friend and FriendRequest. First table consists of user pairs who are friends in the system. If user with id=1 and id=2 [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve just finished the networking part of the MuzikMekan application. Now, users are able to send friendship request to others, display them and accept or reject them. This is implemented using two database tables: Friend and FriendRequest. First table consists of user pairs who are friends in the system. If user with id=1 and id=2 are friends, Friend table include two entries as (1,2) and (2,1). This technique is used to facilitate database operations when checking friends of a user. Second table is used to keep friendship requests. If user with id=3 asks for friendship to user with id=4, an entry with columns (3,4) will be exists in the FriendRequest table.</p>
]]></content:encoded>
			<wfw:commentRss>http://senior.ceng.metu.edu.tr/2009/praeda/2009/05/21/friendship-and-networking/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tag Cloud &amp; Signup</title>
		<link>http://senior.ceng.metu.edu.tr/2009/praeda/2009/05/21/tag-cloud-signup/</link>
		<comments>http://senior.ceng.metu.edu.tr/2009/praeda/2009/05/21/tag-cloud-signup/#comments</comments>
		<pubDate>Thu, 21 May 2009 00:04:57 +0000</pubDate>
		<dc:creator>Cansin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[cansin]]></category>
		<category><![CDATA[edit]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[jsp]]></category>
		<category><![CDATA[signup]]></category>
		<category><![CDATA[tag cloud]]></category>

		<guid isPermaLink="false">http://senior.ceng.metu.edu.tr/2009/praeda/?p=389</guid>
		<description><![CDATA[This week, we needed to make a huge database refinement for our system. After modifications, system can now achieve all features that is intended. 
One of these features was Tag Cloud. Before this week, our tags had no importance values so they are all treated equally. But now, thanks to database modifications, I have implemented [...]]]></description>
			<content:encoded><![CDATA[<p>This week, we needed to make a huge database refinement for our system. After modifications, system can now achieve all features that is intended. </p>
<p>One of these features was Tag Cloud. Before this week, our tags had no importance values so they are all treated equally. But now, thanks to database modifications, I have implemented a Tag Cloud logic for tags. I used <a href="http://plugins.jquery.com/project/TagCloud">jquery tagcloud</a> to represent the information. </p>
<p>Also, our sign-up system had still some issues that are needed to be fixed. And I decided that it will be easier to re-implement it than try to bug-fix, since we have some flow control modifications as well. So, I have implemented sign-up again. Hopefully next week, I will finish EditProfile, EditNetworkAccounts and EditVenue features.</p>
]]></content:encoded>
			<wfw:commentRss>http://senior.ceng.metu.edu.tr/2009/praeda/2009/05/21/tag-cloud-signup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Star Rating</title>
		<link>http://senior.ceng.metu.edu.tr/2009/praeda/2009/05/21/star-rating/</link>
		<comments>http://senior.ceng.metu.edu.tr/2009/praeda/2009/05/21/star-rating/#comments</comments>
		<pubDate>Wed, 20 May 2009 23:56:16 +0000</pubDate>
		<dc:creator>Eray</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[eray]]></category>
		<category><![CDATA[rating]]></category>
		<category><![CDATA[star-rating]]></category>
		<category><![CDATA[suggestion]]></category>

		<guid isPermaLink="false">http://senior.ceng.metu.edu.tr/2009/praeda/2009/05/21/star-rating/</guid>
		<description><![CDATA[This week I have integrated a star rating widget into our project that is a plugin of jquery. I have integrated it into 2 screen. One is comment venue screen that we get the rating for a venue from the user and the another one is venue profile screen that we monitors the average rating [...]]]></description>
			<content:encoded><![CDATA[<p>This week I have integrated a star rating widget into our project that is a plugin of jquery. I have integrated it into 2 screen. One is comment venue screen that we get the rating for a venue from the user and the another one is venue profile screen that we monitors the average rating of a venue.</p>
<p>You can get the plugin and its documentation by following:<br />
<a href="http://www.fyneworks.com/jquery/star-rating">http://www.fyneworks.com/jquery/star-rating</a></p>
<p>Moreover we, as all of the group members, did a meeting and we have adjusted database that can handle our new plans. And also we have decided into detailed suggestion system. Next week I am going to work on the suggestion algorithm</p>
]]></content:encoded>
			<wfw:commentRss>http://senior.ceng.metu.edu.tr/2009/praeda/2009/05/21/star-rating/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Search Feature</title>
		<link>http://senior.ceng.metu.edu.tr/2009/praeda/2009/05/14/search-feature/</link>
		<comments>http://senior.ceng.metu.edu.tr/2009/praeda/2009/05/14/search-feature/#comments</comments>
		<pubDate>Thu, 14 May 2009 00:32:19 +0000</pubDate>
		<dc:creator>Cansin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[cansin]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[event]]></category>
		<category><![CDATA[jsp]]></category>
		<category><![CDATA[representation]]></category>
		<category><![CDATA[search]]></category>

		<guid isPermaLink="false">http://senior.ceng.metu.edu.tr/2009/praeda/?p=379</guid>
		<description><![CDATA[I have been working on search feature of MuzikMekan for about two weeks now. Last week I have added the intended functionality, but representation of search results were weak.
So this week I have worked on this issue. After fixing a tiny css bug, I have finalized the representation aspects of search results for Users, Venues [...]]]></description>
			<content:encoded><![CDATA[<p>I have been working on search feature of MuzikMekan for about two weeks now. Last week I have added the intended functionality, but representation of search results were weak.</p>
<p>So this week I have worked on this issue. After fixing a tiny css bug, I have finalized the representation aspects of search results for Users, Venues and Events. I believe it is much more informative now.</p>
]]></content:encoded>
			<wfw:commentRss>http://senior.ceng.metu.edu.tr/2009/praeda/2009/05/14/search-feature/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Summary of The Last Week</title>
		<link>http://senior.ceng.metu.edu.tr/2009/praeda/2009/04/22/summary-of-the-last-week/</link>
		<comments>http://senior.ceng.metu.edu.tr/2009/praeda/2009/04/22/summary-of-the-last-week/#comments</comments>
		<pubDate>Wed, 22 Apr 2009 10:07:12 +0000</pubDate>
		<dc:creator>Eray</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[add event]]></category>
		<category><![CDATA[add venue]]></category>
		<category><![CDATA[eray]]></category>
		<category><![CDATA[google maps]]></category>
		<category><![CDATA[integration]]></category>
		<category><![CDATA[update status]]></category>
		<category><![CDATA[validator]]></category>
		<category><![CDATA[venue selection]]></category>

		<guid isPermaLink="false">http://senior.ceng.metu.edu.tr/2009/praeda/2009/04/22/summary-of-the-last-week/</guid>
		<description><![CDATA[It was really a busy week for the project. I have completed the Venue Selection, Add Venue and Update Status parts with the help of Gokhan. I also helped our team for integration tasks. I added some new features to Google Maps component and also helped Cansin to improve capabilities of it. I also worked [...]]]></description>
			<content:encoded><![CDATA[<p>It was really a busy week for the project. I have completed the Venue Selection, Add Venue and Update Status parts with the help of Gokhan. I also helped our team for integration tasks. I added some new features to Google Maps component and also helped Cansin to improve capabilities of it. I also worked on AddEvent part and its client side has totally been completed. I am going to complete server side of it when some conflicts be solved.</p>
]]></content:encoded>
			<wfw:commentRss>http://senior.ceng.metu.edu.tr/2009/praeda/2009/04/22/summary-of-the-last-week/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Major Fixes</title>
		<link>http://senior.ceng.metu.edu.tr/2009/praeda/2009/04/22/major-fixes/</link>
		<comments>http://senior.ceng.metu.edu.tr/2009/praeda/2009/04/22/major-fixes/#comments</comments>
		<pubDate>Wed, 22 Apr 2009 01:17:24 +0000</pubDate>
		<dc:creator>Cansin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[bug fix]]></category>
		<category><![CDATA[cansin]]></category>
		<category><![CDATA[servlet]]></category>
		<category><![CDATA[venue selection]]></category>

		<guid isPermaLink="false">http://senior.ceng.metu.edu.tr/2009/praeda/?p=374</guid>
		<description><![CDATA[This week was mostly about bug fixing and integration. The url flow of venue selection facility was different than our current approach. Also there were some major bugs, which we got aware of by testing use cases. I have fixed these problems at venue selection. 
Also I have finished Venue Profile View. What I did [...]]]></description>
			<content:encoded><![CDATA[<p>This week was mostly about bug fixing and integration. The url flow of venue selection facility was different than our current approach. Also there were some major bugs, which we got aware of by testing use cases. I have fixed these problems at venue selection. </p>
<p>Also I have finished Venue Profile View. What I did was basically to provide insiders information which was missing, to add a view which shows a map of the current venue and to provide links to &#8217;see event&#8217;, &#8216;read comment&#8217; views.</p>
<p>I think that we now have a solid, well integrated application; the only missing part of the project is edit views (user profile, venue etc.) and friendship,networking issues.</p>
]]></content:encoded>
			<wfw:commentRss>http://senior.ceng.metu.edu.tr/2009/praeda/2009/04/22/major-fixes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
