<?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>Ivan Najman</title>
	<atom:link href="http://dfstudio.co.rs/inajman/feed/" rel="self" type="application/rss+xml" />
	<link>http://dfstudio.co.rs/inajman</link>
	<description>Software engineer</description>
	<lastBuildDate>Mon, 02 Apr 2012 17:43:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Eclipse, IntelliJ &#8211; color schemes</title>
		<link>http://dfstudio.co.rs/inajman/color-schemes/</link>
		<comments>http://dfstudio.co.rs/inajman/color-schemes/#comments</comments>
		<pubDate>Mon, 02 Apr 2012 17:40:16 +0000</pubDate>
		<dc:creator>inajman</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[IntelliJ]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[intellij]]></category>
		<category><![CDATA[syntax coloring]]></category>

		<guid isPermaLink="false">http://dfstudio.co.rs/inajman/?p=195</guid>
		<description><![CDATA[Color schemes I&#8217;m currently using (Eclipse and IntelliJ) eclipse &#8211; color scheme intellij &#8211; color scheme intellij &#8211; eclipse alike keymaps]]></description>
			<content:encoded><![CDATA[<p>Color schemes I&#8217;m currently using (Eclipse and IntelliJ)</p>
<p><a href="http://dfstudio.co.rs/inajman/wp-content/uploads/2012/04/Capture.png"><img class="alignnone size-thumbnail wp-image-200" title="Eclipse, IntelliJ color schemes" src="http://dfstudio.co.rs/inajman/wp-content/uploads/2012/04/Capture-150x150.png" alt="" width="150" height="150" /></a></p>
<p><a title="eclipse - color scheme" href="http://www.eclipsecolorthemes.org/?view=theme&amp;id=4960" target="_blank">eclipse &#8211; color scheme</a></p>
<p><a href="http://dfstudio.co.rs/inajman/wp-content/uploads/color_themes/intellij_color.jar">intellij &#8211; color scheme</a></p>
<p><a href="http://dfstudio.co.rs/inajman/wp-content/uploads/color_themes/intellij_key_maps.jar">intellij &#8211; eclipse alike keymaps</a></p>
]]></content:encoded>
			<wfw:commentRss>http://dfstudio.co.rs/inajman/color-schemes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Forcing lazy loading on JPA entity</title>
		<link>http://dfstudio.co.rs/inajman/forcing-lazy-loading-on-jpa-entity/</link>
		<comments>http://dfstudio.co.rs/inajman/forcing-lazy-loading-on-jpa-entity/#comments</comments>
		<pubDate>Thu, 01 Dec 2011 21:21:11 +0000</pubDate>
		<dc:creator>inajman</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[JPA]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[jpa]]></category>

		<guid isPermaLink="false">http://dfstudio.co.rs/inajman/?p=176</guid>
		<description><![CDATA[The entity returned from a lazy-loading relationship can actually be a proxy that waits until a method is invoked on the proxy before the entity is faulted in. We have to invoke a method on the entity to guarantee that it is actually retrieved from the database. If this were a collection-valued relationship, the size() [...]]]></description>
			<content:encoded><![CDATA[<p>The entity returned from a lazy-loading relationship can actually be a proxy that waits until<br />
a method is invoked on the proxy before the entity is faulted in. We have to invoke a method on the<br />
entity to guarantee that it is actually retrieved from the database. If this were a collection-valued<br />
relationship, the size() method of the Collection would be commonly used to force eager loading.</p>
<pre>

public class BaseUser
{
...

@OneToMany(mappedBy=&quot;user&quot;,cascade=CascadeType.ALL, orphanRemoval=true)
public Collection&lt;Authority&gt; authorities;
...
}

//Some point in code under transcational

Query q = em.createQuery(&quot;SELECT v FROM User v WHERE v.username = &#039;&quot; + username + &quot;&#039;&quot;);

if (users.size() != 0)
{
User user = (User) q.getResultList().get(0);

//this will trigger lazy loading
user.getAuthoritys().size();
}

...
</pre>
]]></content:encoded>
			<wfw:commentRss>http://dfstudio.co.rs/inajman/forcing-lazy-loading-on-jpa-entity/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Formula</title>
		<link>http://dfstudio.co.rs/inajman/the-formula/</link>
		<comments>http://dfstudio.co.rs/inajman/the-formula/#comments</comments>
		<pubDate>Wed, 21 Sep 2011 17:31:16 +0000</pubDate>
		<dc:creator>inajman</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://dfstudio.co.rs/inajman/?p=159</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><iframe width="560" height="315" src="http://www.youtube.com/embed/rWj7oWlVtag?rel=0" frameborder="0" allowfullscreen></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://dfstudio.co.rs/inajman/the-formula/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hiding ActionBar from ViewNavigator</title>
		<link>http://dfstudio.co.rs/inajman/hiding-actionbar-from-viewnavigator/</link>
		<comments>http://dfstudio.co.rs/inajman/hiding-actionbar-from-viewnavigator/#comments</comments>
		<pubDate>Mon, 12 Sep 2011 20:53:05 +0000</pubDate>
		<dc:creator>inajman</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[blackberry]]></category>
		<category><![CDATA[Flash platform]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[ipad]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[mobile]]></category>

		<guid isPermaLink="false">http://dfstudio.co.rs/inajman/?p=142</guid>
		<description><![CDATA[In order to hide action bar from the ViewNavigator all you have to do is create custom ViewNavigatorSkin and override its createChildren method.There you have several options, set includeInLayout to false or just don&#8217;t add actionbar as a child at all.Simple as that. override protected function createChildren():void { contentGroup = new Group(); contentGroup.id = "contentGroup"; [...]]]></description>
			<content:encoded><![CDATA[<p>In order to hide action bar from the ViewNavigator all you have to do is create custom ViewNavigatorSkin and override its createChildren method.There you have several options, set includeInLayout to false or just don&#8217;t add actionbar as a child at all.Simple as that.</p>
<pre>
  override protected function createChildren():void
    {
        contentGroup = new Group();
        contentGroup.id = "contentGroup";

        actionBar = new ActionBar();
        actionBar.id = "actionBar";

        addChild(contentGroup);

        //either you can comment this line out
        //addChild(actionBar);

        //or you can simply do this
        actionBar.visible = actionBar.includeInLayout = false;
        addChild(actionBar);
    }
</pre>
]]></content:encoded>
			<wfw:commentRss>http://dfstudio.co.rs/inajman/hiding-actionbar-from-viewnavigator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sitting is killing you</title>
		<link>http://dfstudio.co.rs/inajman/sitting-is-killing-you/</link>
		<comments>http://dfstudio.co.rs/inajman/sitting-is-killing-you/#comments</comments>
		<pubDate>Sat, 03 Sep 2011 23:36:56 +0000</pubDate>
		<dc:creator>inajman</dc:creator>
				<category><![CDATA[Development]]></category>

		<guid isPermaLink="false">http://dfstudio.co.rs/inajman/?p=134</guid>
		<description><![CDATA[Via: Medical Billing And Coding]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.medicalbillingandcoding.org/sitting-kills"><img src="http://images.medicalbillingandcoding.org.s3.amazonaws.com/sitting-is-killing-you.jpg" alt="Sitting is Killing You" width="500"  border="0" /></a><br />Via: <a href="http://www.medicalbillingandcoding.org">Medical Billing And Coding</a></p>
]]></content:encoded>
			<wfw:commentRss>http://dfstudio.co.rs/inajman/sitting-is-killing-you/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Eddie Vedder Society with Johnny Depp</title>
		<link>http://dfstudio.co.rs/inajman/eddie-vedder-society-with-johnny-depp/</link>
		<comments>http://dfstudio.co.rs/inajman/eddie-vedder-society-with-johnny-depp/#comments</comments>
		<pubDate>Thu, 01 Sep 2011 17:03:15 +0000</pubDate>
		<dc:creator>inajman</dc:creator>
				<category><![CDATA[Music]]></category>

		<guid isPermaLink="false">http://dfstudio.co.rs/inajman/?p=130</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><iframe width="560" height="345" src="http://www.youtube.com/embed/hcgtTrMBMEU?rel=0&amp;hd=1" frameborder="0" allowfullscreen></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://dfstudio.co.rs/inajman/eddie-vedder-society-with-johnny-depp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sharing my cool playlists</title>
		<link>http://dfstudio.co.rs/inajman/sharing-my-cool-playlists/</link>
		<comments>http://dfstudio.co.rs/inajman/sharing-my-cool-playlists/#comments</comments>
		<pubDate>Tue, 30 Aug 2011 20:21:04 +0000</pubDate>
		<dc:creator>inajman</dc:creator>
				<category><![CDATA[Music]]></category>

		<guid isPermaLink="false">http://dfstudio.co.rs/inajman/?p=124</guid>
		<description><![CDATA[I&#8217;ve created new page where i will share some cool music i listen Check it out &#160;]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve created new page where i will share some cool music i listen</p>
<p><a title="Music i like" href="http://dfstudio.co.rs/inajman/about-me/music-is-my-first-love-and-it-will-be-my-last/">Check it out</a></p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://dfstudio.co.rs/inajman/sharing-my-cool-playlists/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to create DPI-aware splash screen</title>
		<link>http://dfstudio.co.rs/inajman/how-to-create-dpi-aware-splash-screen/</link>
		<comments>http://dfstudio.co.rs/inajman/how-to-create-dpi-aware-splash-screen/#comments</comments>
		<pubDate>Tue, 23 Aug 2011 11:05:55 +0000</pubDate>
		<dc:creator>inajman</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[Flash platform]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[air]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[desktop]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[iphone]]></category>

		<guid isPermaLink="false">http://dfstudio.co.rs/inajman/?p=112</guid>
		<description><![CDATA[If you are developing Adobe AIR for multiple devices and mobile (Desktop, Android, iPhone, iPad), most definetely you will need to define splash screen for specific DPI. It is pretty simple in Flex all you have to do is create your own preloader and override initialize method. For mobile there is special class SplashScreen->Sprite which [...]]]></description>
			<content:encoded><![CDATA[<p>If you are developing Adobe AIR for multiple devices and mobile (Desktop, Android, iPhone, iPad), most definetely you will need to define splash screen for specific DPI.<br />
It is pretty simple in Flex all you have to do is create your own preloader and override initialize method.<br />
For mobile there is special class SplashScreen->Sprite which implements IPreloaderDisplay.The most convinent way is to extend this class.</p>
<pre>
package preloader
{
import mx.core.DPIClassification;

import spark.preloaders.SplashScreen;

import mx.managers.SystemManager;
import mx.utils.DensityUtil;

public class DPIAwarePreloader extends SplashScreen
{
	[Embed(source="/../asset/160dpi/splashScreen.png")]
	private var splashScreen160dpi : Class;

	[Embed(source="/../asset/240dpi/splashScreen.png")]
	private var splashScreen240dpi : Class;

	[Embed(source="/../asset/320dpi/splashScreen.png")]
	private var splashScreen320dpi : Class;

	public function DPIAwarePreloader()
	{
		super();
	}

override public function initialize() : void
{
	var runtimeDPI : Number = DensityUtil.getRuntimeDPI();
	var sysManager : SystemManager =
	this.parent.loaderInfo.content as SystemManager;

	var splashImage : Class;

	switch(runtimeDPI)
	{
		case DPIClassification.DPI_160:
			splashImage = splashScreen160dpi;
			break;

		case DPIClassification.DPI_240:
			splashImage = splashScreen240dpi;
			break;

		case DPIClassification.DPI_320:
			splashImage = splashScreen320dpi;
			break;
	}

	sysManager.info()["splashScreenImage"] = splashImage;

	super.initialize();
}
}
}
</pre>
<p>This will check for runtimeDPI property of your device and set the splash screen designed for specific DPI.</p>
<p>The last step is to add your preloader to the root Application by setting the preloader property in the mxml.</p>
]]></content:encoded>
			<wfw:commentRss>http://dfstudio.co.rs/inajman/how-to-create-dpi-aware-splash-screen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flex AIR multi-device development</title>
		<link>http://dfstudio.co.rs/inajman/flex-air-multi-device-development/</link>
		<comments>http://dfstudio.co.rs/inajman/flex-air-multi-device-development/#comments</comments>
		<pubDate>Fri, 24 Jun 2011 19:59:11 +0000</pubDate>
		<dc:creator>inajman</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[Flash platform]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[mobile]]></category>

		<guid isPermaLink="false">http://dfstudio.co.rs/inajman/?p=101</guid>
		<description><![CDATA[Application DPI The DPI of the application. By default, this is the DPI of the device that the application is currently running on. When set in MXML, Flex will scale the Application to match its DPI to the runtimeDPI. This property cannot be set by ActionScript code; it must be set in MXML code. Runtime [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_102" class="wp-caption alignleft" style="width: 160px"><a href="http://dfstudio.co.rs/inajman/wp-content/uploads/2011/06/images.jpg"><img class="size-thumbnail wp-image-102" title="Adobe AIR" src="http://dfstudio.co.rs/inajman/wp-content/uploads/2011/06/images-150x150.jpg" alt="Adobe AIR" width="100" height="100" /></a><p class="wp-caption-text">Adobe AIR</p></div>
<p><strong>Application DPI</strong><br />
The DPI of the application. By default, this is the DPI of the device that the application is currently running on. When set in MXML, Flex will scale the Application to match its DPI to the runtimeDPI. This property cannot be set by ActionScript code; it must be set in MXML code.</p>
<p><strong>Runtime DPI</strong><br />
The DPI of the device the application is currently running on. Flex rounds the value to one of the DPIClassification choices.</p>
<p>Find out more<br />
<a href="http://www.andrewdaceyphotography.com/articles/dpi/" target="_blank">DPI and PPI Explained</a></p>
<p><a href="http://www.rictus.com/muchado/wp-content/uploads/2011/04/multiscreen-dev-with-flex-360flex-2011.pptx.pdf" target="_blank">Building Multi-Density and Multi-Platform UIs with Flex</a> by Narciso (nj) Jaramillo</p>
<p><a href="http://help.adobe.com/en_US/as3/mobile/flashplatform_optimizing_content.pdf" target="_blank">Optimizing Performance for the ADOBE® FLASH® PLATFORM</a></p>
<p><a href="http://opensource.adobe.com/wiki/display/flexsdk/DPI+Auto+Scaling+for+Density+Independent+Mobile+Apps">DPI Auto Scaling for Density Independent Mobile Apps &#8211; Functional and Design Specification</a></p>
]]></content:encoded>
			<wfw:commentRss>http://dfstudio.co.rs/inajman/flex-air-multi-device-development/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simple flex filter editor with source code</title>
		<link>http://dfstudio.co.rs/inajman/simple-flex-filter-editor-with-source-code/</link>
		<comments>http://dfstudio.co.rs/inajman/simple-flex-filter-editor-with-source-code/#comments</comments>
		<pubDate>Tue, 07 Jun 2011 21:56:59 +0000</pubDate>
		<dc:creator>inajman</dc:creator>
				<category><![CDATA[Flash platform]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[filter editor]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[flex4]]></category>

		<guid isPermaLink="false">http://dfstudio.co.rs/inajman/?p=82</guid>
		<description><![CDATA[Here is the really simple flex filter editor that can be use as a foundation for exploring filter capabilities in flex. All of the flex filters are pretty much just a wrappers for filters supported by flash player.And this is simple editor of these wrappers. Filter editor with source code]]></description>
			<content:encoded><![CDATA[<p>Here is the really simple flex filter editor that can be use as a foundation for exploring filter capabilities in flex.<br />
All of the flex filters are pretty much just a wrappers for filters supported by flash player.And this is simple editor of these wrappers.</p>
<p style="text-align: left;"><a title="Flex Filter Editor" href="http://dfstudio.co.rs/inajman/wp-content/uploads/2011/06/sparkling" target="_blank"><img class="alignnone size-medium wp-image-83" title="Flex filter editor" src="http://dfstudio.co.rs/inajman/wp-content/uploads/2011/06/Capture-300x144.png" alt="" width="300" height="144" /></a></p>
<p style="text-align: left;"><a title="Flex Filter Editor" href="http://dfstudio.co.rs/inajman/wp-content/uploads/2011/06/sparkling" target="_blank">Filter editor with source code</a></p>
]]></content:encoded>
			<wfw:commentRss>http://dfstudio.co.rs/inajman/simple-flex-filter-editor-with-source-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic (Feed is rejected)
Page Caching using disk: enhanced

Served from: dfstudio.co.rs @ 2012-05-20 05:29:23 -->
