
<?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>Mental Pandiculation &#187; mac dev</title>
	<atom:link href="http://mentalpandiculation.com/tag/mac-dev/feed/" rel="self" type="application/rss+xml" />
	<link>http://mentalpandiculation.com</link>
	<description>One Man's Attempt To Find Elegant Code Through Big Words</description>
	<lastBuildDate>Mon, 27 Jun 2011 23:31:03 +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>Changing System Variables in MySQL</title>
		<link>http://mentalpandiculation.com/2011/02/changing-system-variables-in-mysql/</link>
		<comments>http://mentalpandiculation.com/2011/02/changing-system-variables-in-mysql/#comments</comments>
		<pubDate>Fri, 18 Feb 2011 22:55:22 +0000</pubDate>
		<dc:creator>Niklaus Wirth's Ghost</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[mac dev]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://mentalpandiculation.com/?p=329</guid>
		<description><![CDATA[Lots of fun today, dealing with what feels like the innards of MySQL but probably just barely scratches the epidermis. What I did learn today though was how to set MySQL system variables using a configuration file on Mac OSX. I figure that this will come up again and I&#8217;ll have to learn it all [...]]]></description>
			<content:encoded><![CDATA[<p>Lots of fun today, dealing with what feels like the innards of MySQL but probably just barely scratches the epidermis.  What I did learn today though was how to set MySQL system variables using a configuration file on Mac OSX.  I figure that this will come up again and I&#8217;ll have to learn it all over again unless I write it down, thus, I&#8217;m writing it down while a 22 minute query runs on the other machine.</p>
<p>Today, I needed to increase the innodb_buffer_pool_size value from the default 8MB to something useful for my purposes like 2 GB.  You can&#8217;t do that from SqlYog or from the command line as it happens to be a readonly variable.  So you need to create a configuration file.  That file lives in root directory at /etc/my.cnf.  I first tried to create this file using vi, got it all typed up and then when I saved it, was told that wasn&#8217;t going to fly, you don&#8217;t have the requisite permissions.  Stupid *nix operating system.  Not that I&#8217;m complaining but after the day I&#8217;ve had, I would have liked to have just created the file.</p>
<p>So back to the command prompt and try sudo vi my.cnf.  Lo and behold that works like a champ.  The file looked like this when I was done:<br />
[mysqld]<br />
innodb_buffer_pool_size=2G</p>
<p>Saved that, restarted the MySQL server and it had updated correctly as seen using SHOW VARIABLES;</p>
<p>Probably all very elementary stuff but for a guy who prefers not to get his hands dirty with database stuff, good to know for the future.  Also learned about profiling which you can enable in a script in SqlYog with a SET profiling=1; at the beginning of your script and a SHOW profiles; at the end.  </p>
]]></content:encoded>
			<wfw:commentRss>http://mentalpandiculation.com/2011/02/changing-system-variables-in-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mac Computers, Microsoft Keyboards and a Lost 3 Hours</title>
		<link>http://mentalpandiculation.com/2010/05/mac-computers-microsoft-keyboards-and-a-lost-3-hours/</link>
		<comments>http://mentalpandiculation.com/2010/05/mac-computers-microsoft-keyboards-and-a-lost-3-hours/#comments</comments>
		<pubDate>Wed, 12 May 2010 14:45:56 +0000</pubDate>
		<dc:creator>Niklaus Wirth's Ghost</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Bad UI Design]]></category>
		<category><![CDATA[F Lock]]></category>
		<category><![CDATA[Function Keys]]></category>
		<category><![CDATA[mac dev]]></category>
		<category><![CDATA[Microsoft keyboards]]></category>

		<guid isPermaLink="false">http://mentalpandiculation.com/?p=287</guid>
		<description><![CDATA[I do my primary development at work on a Mac computer using a Microsoft Natural 4000 ergonomic keyboard. Because I&#8217;m predominantly a Microsoft .Net developer, function keys are reasonably integral to my day to day life, not just in the Visual Studio IDE but also in SqlYog, the MySQL client we use. Having to execute [...]]]></description>
			<content:encoded><![CDATA[<p>I do my primary development at work on a Mac computer using a Microsoft Natural 4000 ergonomic keyboard.  Because I&#8217;m predominantly a Microsoft .Net developer, function keys are reasonably integral to my day to day life, not just in the Visual Studio IDE but also in SqlYog, the MySQL client we use.  Having to execute queries or debugging steps using menus with the mouse drives me insane.  I&#8217;m no <a href="http://blog.perfecting.me/">shortcut master</a> but I know the main ones that I run into in my daily life.  So when the function keys stopped working in an expected way, I pretty much had to shut down work and fix it.  </p>
<p>For those following along at home, you can get function keys to work on a Mac by going to System Preferences -> Keyboard and then checking the &#8220;Use F1, F2, etc as standard function keys.&#8221;  I had done that early on and everything worked fine.  Suddenly, last Friday, those keys started opening up the Start menu in Parallels and Finder on the Mac.  Not good.  So I started digging around and didn&#8217;t really run into much on the interwebs.  I then decided to use my extensive Twitter network and luckily, with some long distance debugging, <a href="http://blog.davidohara.net/">David O&#8217;Hara</a> got me to the right solution which was to turn off the <a href="http://en.wikipedia.org/wiki/F-Lock">F Lock key</a> on the Microsoft keyboard.  </p>
<p>Somewhere along the way, I guess that I had managed to hit that key and what that did was disable function keys from the Microsoft keyboard&#8217;s perspective.  When that happened, the &#8220;Use F1, F2, etc. . .&#8221; checkbox in System Preferences disappeared because Mac OS thought the keyboard didn&#8217;t support it.  Even reinstalling the keyboard software didn&#8217;t help.  Once I hit that key (which is dangerously close to the Backspace key in my unbalanced UI design opinion), all bets were off.</p>
<p>So if you are having trouble with function keys on a Mac, try toggling the F Lock key and quietly curse whoever thought it was a good idea to have a key that changed the behavior of 12 other keys.  This is terrible UI design in my opinion, you should have to work to change something like that, i.e. put this in the control panel.  There are also ways to <a href="http://jtsang.mvps.org/flock.html">disable</a> it should you so choose.</p>
]]></content:encoded>
			<wfw:commentRss>http://mentalpandiculation.com/2010/05/mac-computers-microsoft-keyboards-and-a-lost-3-hours/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Learning MySql 45 Minutes at a Time</title>
		<link>http://mentalpandiculation.com/2010/02/learning-mysql-45-minutes-at-a-time/</link>
		<comments>http://mentalpandiculation.com/2010/02/learning-mysql-45-minutes-at-a-time/#comments</comments>
		<pubDate>Mon, 15 Feb 2010 15:06:25 +0000</pubDate>
		<dc:creator>Niklaus Wirth's Ghost</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[mac dev]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://mentalpandiculation.com/?p=245</guid>
		<description><![CDATA[This and all future MySql posts are really for my own record keeping so that when dumb things happen that take me 45 minutes to fix, I have a record of them for future such incidents. Today, for some reason, I couldn&#8217;t log in remotely to the MySql instance running on my Mac. This has [...]]]></description>
			<content:encoded><![CDATA[<p>This and all future MySql posts are really for my own record keeping so that when dumb things happen that take me 45 minutes to fix, I have a record of them for future such incidents.</p>
<p>Today, for some reason, I couldn&#8217;t log in remotely to the MySql instance running on my Mac.  This has been working just fine for the past month so needless to say, I had no idea what happened.  As it turned out, the IP address of my Parallels instance had changed, rendering all the entries in my user table pointless.  I had to update the user table with the new IP, restart the MySql instance and boom, up and running again.</p>
<p>Login from the terminal first: </p>
<pre name="code" class="sql">mysql -u root -p</pre>
<p>Then:</p>
<pre name="code" class="sql">USE mysql; 

select Host, User from user;

update user Set Host = 'NEW IP' where Host = 'OLD IP';

select Host, User from user;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://mentalpandiculation.com/2010/02/learning-mysql-45-minutes-at-a-time/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

