<?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>Crawl, Walk, Run &#187; Uncategorized</title>
	<atom:link href="http://adam.yanalunas.com/blog/archives/category/uncategorized/feed" rel="self" type="application/rss+xml" />
	<link>http://adam.yanalunas.com/blog</link>
	<description>The complete &#38; uncut edition</description>
	<lastBuildDate>Fri, 28 Oct 2011 02:17:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Emulating the native shadow on UIMenuController</title>
		<link>http://adam.yanalunas.com/blog/archives/178</link>
		<comments>http://adam.yanalunas.com/blog/archives/178#comments</comments>
		<pubDate>Mon, 22 Aug 2011 20:42:59 +0000</pubDate>
		<dc:creator>adam</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://adam.yanalunas.com/blog/?p=178</guid>
		<description><![CDATA[I&#8217;m an iOS developer! I still love and will continue doing front-end dev for web but I&#8217;m adding another feather to my cap in the way of working on some pretty cool iOS apps. One app I&#8217;ve worked on is Constellation, an eBook reader developed for Ashford Education. It&#8217;s pretty cool. One of the things [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m an iOS developer! I still love and will continue doing front-end dev for web but I&#8217;m adding another feather to my cap in the way of working on some pretty cool iOS apps. One app I&#8217;ve worked on is <a href="http://itunes.apple.com/us/app/constellation-for-ashford/id444832035?mt=8">Constellation</a>, an eBook reader developed for <a href="http://ashford.edu">Ashford Education</a>. It&#8217;s pretty cool.</p>
<p>One of the things we do is emulate the UIMenuController with our own more powerful view controller. And one of the neat things about a UIMenuController is that you get a slick, subtle drop shadow wherever it is placed. Being the guy I am I spent some time to analyze the drop shadow in Photoshop and do my best to emulate it. Here&#8217;s what I came up with. Have a better solution? Tell me in the comments!</p>
<pre class="brush: objc; title: ; notranslate">
- (void) viewDidLoad
{
	[super viewDidLoad];

	self.view.layer.shadowColor = [[UIColor blackColor] CGColor];
	self.view.layer.shadowOffset = CGSizeMake(0, 2.0f);
	self.view.layer.shadowOpacity = .55f;
	self.view.layer.shadowRadius = 2.0f;
	self.view.layer.shouldRasterize = YES;
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://adam.yanalunas.com/blog/archives/178/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using CSS transforms to mimic Safari&#8217;s find word selection</title>
		<link>http://adam.yanalunas.com/blog/archives/169</link>
		<comments>http://adam.yanalunas.com/blog/archives/169#comments</comments>
		<pubDate>Fri, 27 May 2011 03:56:17 +0000</pubDate>
		<dc:creator>adam</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://adam.yanalunas.com/blog/?p=169</guid>
		<description><![CDATA[Here&#8217;s a quick one for you kids. I&#8217;ve just started playing with CSS3 and I needed something simple but useful to implement. Say what you will about Safari as a browser but I think its find feature has the best UI for showing matching results on the page and what item is currently selected. Wait, [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a quick one for you kids. I&#8217;ve just started playing with CSS3 and I needed something simple but useful to implement. Say what you will about Safari as a browser but I think its find feature has the best UI for showing matching results on the page and what item is currently selected. Wait, you don&#8217;t use Safari? Okay, check out the picture below.</p>
<p class="center"><a href="http://adam.yanalunas.com/blog/wp-content/uploads/2011/05/Safari-find-screnshot.png"><img src="http://adam.yanalunas.com/blog/wp-content/uploads/2011/05/Safari-find-screnshot.png" alt="" title="Safari find screnshot" width="454" height="186" class="alignnone size-full wp-image-171" /></a></p>
<p>See what I&#8217;m saying? Fade out what isn&#8217;t important, lighten all matches, put some special pizazz on the current item. As an added bonus each time you switch the current item it &#8220;pops&#8221; a bit to help pull your eye to where the next item is. Pretty slick. </p>
<p>I set out not to duplicate the styles but to get a feel for CSS3 animation and transitions. With that in mind the animation tweens and colors aren&#8217;t exact but they&#8217;ll work for the project I have in mind. If you have improvements go ahead and share them in the comments.</p>
<p><strong>[Ninja edit]</strong> I forgot to mention that in order for CSS transformations to be hardware accelerated by devices that do so you have to include the &#8220;translate3d&#8221; property. If you don&#8217;t need to translate, use the meaningless zeroed out setting like I did below.</p>
<p><strong>[Ninja edit 2}</strong> Also, I didn&#8217;t bother putting in all the different vendor prefixes. If you&#8217;re interested in this code your Google-fu will be strong enough to look up the different vendor settings and adjust accordingly.</p>
<pre class="brush: plain; title: ; notranslate">
@-webkit-keyframes pulseFocusedOverlay {
	0%, 100% {
		-webkit-transform: scale(1) translate3d(0px, 0px, 0px);;
	}
	15% {
		-webkit-transform: scale(1.35) translate3d(0px, 0px, 0px);;
	}
}

.searchMatch {
	display: inline-block;
	padding: 0 4px;
	margin: 0 -3px;
	-webkit-box-shadow: 0 1px 5px #333;
	box-shadow: 0 1px 5px #333;
	color: #222;
	background-image: -webkit-gradient(linear, left bottom, left top, color-stop(.5, rgb(222, 222, 222)), color-stop(1, rgb(255, 255, 255)));
}

.searchMatch_selected {
	display: inline-block;
	padding: 0 4px;
	border-radius: 5px;
	border: 1px solid #EFDB13;
	margin: -1px -4px;
	-webkit-box-shadow: 0 1px 3px #333;
	box-shadow: 0 1px 5px #333;
	color: #000;
	-webkit-animation: pulseFocusedOverlay 185ms ease-in-out 0;
	background-image: -webkit-gradient(linear, left bottom,left top,color-stop(.5, rgb(238, 207, 0)),color-stop(1, rgb(242, 237, 19)));
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://adam.yanalunas.com/blog/archives/169/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Uninstalling Active Technology&#8217;s ODBC drivers</title>
		<link>http://adam.yanalunas.com/blog/archives/96</link>
		<comments>http://adam.yanalunas.com/blog/archives/96#comments</comments>
		<pubDate>Mon, 04 Jan 2010 18:21:07 +0000</pubDate>
		<dc:creator>adam</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://adam.yanalunas.com/blog/?p=96</guid>
		<description><![CDATA[Since my upgrade to Snow Leopard I&#8217;ve been fighting a few very particular issues in my development environment. It should be noted that I think nearly all regular consumers and a large percentage of developers will be satisfied with the development environment provided by Apple. However, some developers need more. While able to run in [...]]]></description>
			<content:encoded><![CDATA[<p>Since my upgrade to Snow Leopard I&#8217;ve been fighting a few very particular issues in my development environment. It should be noted that I think nearly all regular consumers and a large percentage of developers will be satisfied with the development environment provided by Apple. However, some developers need more.</p>
<p>While able to run in 64-bit, I was running <a href="http://blog.dev360.com/2009/01/08/running-apache-in-32-bit-mode-on-mac-os-x/">Apache in 32-bit mode</a> under my Leopard install. This is because the ODBC drivers I was running from Actual Technologies only supported 32-bit Apache. In Leopard land that was fine. Now that I&#8217;m in Snow Leopard and <a href="http://adam.yanalunas.com/blog/archives/62">everything else</a> is in 64-bit I thought my ODBC drivers ought be as well. </p>
<p>My problem is that I had the 32-bit Actual Technologies drivers, compiled in the FreeTDS drivers for my MSSQL support when compiling PHP and then installed a 64-bit beta build from Actual Technologies. Somewhere between the Snow Leopard upgrade and all these other installs things have gone a bit wonky. Best bet is to clean out all ODBC drivers and start anew.</p>
<p>Small hiccup: Actual Technologies does not provide an uninstaller. Well, not that you&#8217;d be able to find. I emailed their support and received a link to a script bundled up in a dmg. By request I&#8217;m not going to post a link to the script or the script itself and I think that&#8217;s fair. Looking at the script it is no more than a series of <code>rm -rf</code> commands that blindly erase whole directories. Even existing iODBC data and settings you may have from other products or drivers. </p>
<p>I&#8217;m going to run the uninstaller, recompile FreeTDS, rebuild PHP and see where that gets me. Hopefully not towards a fresh Snow Leopard install.</p>
]]></content:encoded>
			<wfw:commentRss>http://adam.yanalunas.com/blog/archives/96/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

