<?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>Sam Moffatt @ Pasamio.com &#187; microsoft</title>
	<atom:link href="http://pasamio.com/category/microsoft/feed/" rel="self" type="application/rss+xml" />
	<link>http://pasamio.com</link>
	<description>Sam Moffatt's Tech Blog: Writings on Technology</description>
	<lastBuildDate>Tue, 20 Jul 2010 14:25:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Today: 12-Jul-2010: Just a little bit further</title>
		<link>http://pasamio.com/2010/07/12/today-12-jul-2010-just-a-little-bit-further/</link>
		<comments>http://pasamio.com/2010/07/12/today-12-jul-2010-just-a-little-bit-further/#comments</comments>
		<pubDate>Sun, 11 Jul 2010 21:07:03 +0000</pubDate>
		<dc:creator>pasamio</dc:creator>
				<category><![CDATA[joomla]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[today]]></category>

		<guid isPermaLink="false">http://pasamio.com/?p=682</guid>
		<description><![CDATA[One of the nice things about Linux is the smooth way that the package management system operates. It just happens. The problem with Windows is that it doesn&#8217;t really happen &#8211; which is a painful experience. So Microsoft has released a beta of their WebMatrix tool with integration into the Web Platform Installer. Funky! Being [...]]]></description>
			<content:encoded><![CDATA[<p>One of the nice things about Linux is the smooth way that the package management system operates. It just happens. The problem with Windows is that it doesn&#8217;t really happen &#8211; which is a painful experience.<br />
<span id="more-682"></span><br />
So Microsoft has released a beta of their WebMatrix tool with integration into the Web Platform Installer. Funky! Being the geek that I am I was kind of curious to play with it &#8211; even though I&#8217;m not particularly a Microsoft person having a Mac laptop as my primary machine, multiple Linux servers at home, personal dedicated Linux servers hosted in data centres and at work deploying on HP-UX, Solaris and RHEL5 machines.</p>
<p>So I tried at home on my favourite Windows XP VM and it installed fine. Fine is of course subjective because it required three restarts to actually install itself (one for .Net 4.0, one for Windows Installer 4.5 and the final for Visual Studio Web Developer Express) &#8211; I&#8217;m not quite sure why these couldn&#8217;t have been bundled together into one restart (which is reasonable) or even what VS Web Dev Express was doing to require a restart. But I&#8217;ll live. I fired it up and did a Joomla! install and everything worked nicely. I tried the VS Web Dev integration and found it loaded everything up except that Web Dev doesn&#8217;t do PHP &#8211; back to the drawing board. As an aside why Microsoft doesn&#8217;t support PHP in VS Web Dev directly is a wonder &#8211; PHP as a language appears to be more popular than either of Microsoft&#8217;s according to <a href="http://www.langpop.com/">langpop.com&#8217;s</a> view of the world. To be fair, langpop.com is a mildly biased view towards open source areas (Google Code, Slashdot, IRC, Ohloh, Freshmeat) which would explain the dominance of languages such as PHP or Python. In any case, it worked and it had a funky editor with highlighting and not a lot else as well as a database editor that handled MySQL &#8211; and all in one package.</p>
<p>So I try to install it at work. First hurdle: I need Windows XP SP3. Ok, bummer. File a job, wait for ICT Service Delivery (yes that is their real department name) to get back and install SP3. They call me back in a week and say &#8220;when do you want this? is now a good time?&#8221; and I say sure. A few hours later and 64+ updates my computer has SP3 on it. Let&#8217;s try Web PI 3 beta again and see how we go. Much better, we&#8217;re off installing WebMatrix and all sorts of shiny. I ticked the Joomla! box as well and that is also installing. Everyone is happy. It then goes to try and configure IIS on my XP box. It pops up a component install view window and eventually gets to the point of asking me for an XP install CD. Except this is a corporate box and I don&#8217;t have one. I don&#8217;t have an i386 directory handy to just copy files from. I have local admin so installing stuff isn&#8217;t an issue but I don&#8217;t have those files. Bummer. I go hunting for them and I can&#8217;t readily find them locally and I don&#8217;t even know where to find them on the network. Sheepishly I hit cancel and WebPI keeps installing without configuring IIS 5 on my local machine. I thought I&#8217;d selected to use the WebMatrix server so I&#8217;m not entirely sure what is going on anyway. .Net 4.0 installs uneventfully (no restart this time) and Windows Installer 4.5 requires a restart. This time I&#8217;m not installing Web Dev so I don&#8217;t need to restart for that, yay! The rest went relatively smoothly which is good however at the end it complained IIS5.1 failed thus items dependent upon it (e.g. FastCGI for IIS5.1, PHP5.2.13, WinCache 1.1 for PHP 5.2) failed to install. MySQL Windows Essential 5.1 didn&#8217;t work because a service entry couldn&#8217;t be created, possibly because a MySQL service entry already exists.  Joomla! didn&#8217;t work either but since both IIS 5.1 and MySQL failed to work I&#8217;ve got a selection of options.</p>
<p>Curiously I had an XAMPP install of MySQL set up and WebPI didn&#8217;t detect this properly opting to install its own version, perhaps a check on port 3306 to see if something speaks MySQL would be more appropriate to check. Improvements for next time.</p>
<p>So I fire up WebMatrix Beta and use its installer to install Joomla!. This one works better. It presents me with the same dialogue and insists I can&#8217;t have a blank password (my insecure XAMPP MySQL install insists otherwise but I secure it and both my security office and WebMatrix are happy). Joomla! appears to install perfectly fine now. Go figure. It also appears to have used the XAMPP MySQL install which is nice. </p>
<p>So some quirks in no particular order:</p>
<ul>
<li>Requests has an images filter which is nice but if you enable it, go from requests into something else and back again the filter button is depressed but the list isn&#8217;t filtered. Clicking on it filters the requests but messes up the state.</li>
<li>Requests has an images filter which is a good start but no JS filter or CSS filter.</li>
<li>The built in DB tool connects to MySQL fine however if you try to create a table with a column as both an &#8220;identity&#8221; (Microsoft SQL Server version of &#8220;auto_increment&#8221;) and a &#8220;primary key&#8221; it complains about multiple keys. Setting the field to just be identity appears to resolve the issue</li>
<li>Perhaps most annoyingly the font choice is harsh, at least for me. Compared to Monaco on my Mac, it just looks disgusting. Unfortunately there doesn&#8217;t appear to be a way to change it either. After coding for half the morning in Smultron whilst my desktop was updating, WebMatrix was just garish and jutting in comparison.</li>
<li>Whilst there is no autocomplete for the PHP as far as I could see, it would be nice to include a reasonable formatter. At least something that fixed indentation by default. Mind you, Smultron doesn&#8217;t have this but I do miss it at times.</li>
</ul>
<p>I also at one point managed to get WebMatrix to terminate however you need to remember that WebMatrix is still in beta as a product so it is understandable that there might be some issues that will hopefully get fixed. All in all it looks like a good tool. As a cut down editor it seems to fit the bill quite nicely as well as being one of the easier ways to get up and running on Windows with a web development environment and PHP.</p>
]]></content:encoded>
			<wfw:commentRss>http://pasamio.com/2010/07/12/today-12-jul-2010-just-a-little-bit-further/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Understanding versus Knowing</title>
		<link>http://pasamio.com/2009/06/28/understanding-versus-knowing/</link>
		<comments>http://pasamio.com/2009/06/28/understanding-versus-knowing/#comments</comments>
		<pubDate>Sun, 28 Jun 2009 08:33:13 +0000</pubDate>
		<dc:creator>pasamio</dc:creator>
				<category><![CDATA[filesystems]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://pasamio.com/?p=531</guid>
		<description><![CDATA[When I went through high school we had three segments for our maths and physics exams: we had the basic knowledge part that tested if we new a given fact and could apply it to a straight forward problem, we had the understanding part that tested if we could understand a fact and apply it [...]]]></description>
			<content:encoded><![CDATA[<p>When I went through high school we had three segments for our maths and physics exams: we had the basic knowledge part that tested if we new a given fact and could apply it to a straight forward problem, we had the understanding part that tested if we could understand a fact and apply it to a slightly more complex problem and we had a complex reasoning section of the exam which tested a combination of the items we knew and took a large number of steps to get to the final answer. Today I&#8217;m hunting around to look for file system permissions and I&#8217;ve read something that makes me wonder if there should be that distinction.</p>
<p><span id="more-531"></span>The article in question is entitled &#8220;<a href="http://www.windowsecurity.com/articles/Understanding-Windows-NTFS-Permissions.html">Understanding Windows NTFS Permissions</a>&#8221; and covers the basics of permissions for NTFS. It covers the fact you have read which is really made up of List Folder/Read Data, Read Attributes, Read Extended Attributes and Read Permissions. It also covers that NTFS permits permissions to be inherited but appears to miss the distinction of &#8220;This folder, subfolders and files&#8221;, &#8220;This folder only&#8221;, &#8220;Subfolders and files only&#8221;, &#8220;This folder only&#8221; when applied to permissions. Each of these actually impacts how permissions are inherited and applied, surely if you&#8217;re trying to understand this then explaining the distinctions here would be great and how they apply. He finishes with an interesting observation on the &#8220;precedence&#8221; of permissions. Now I find this curious because this is something I&#8217;ve been looking at late and I&#8217;ve been trying to find something that adequately explains it. Perhaps the author of the particular article is dumbing it down for his readers but it just strikes me as wrong. The author comments the following:</p>
<blockquote><p>The scenario proves that there is a hierarchy of permissions for NTFS 5.0 resources. The hierarchy of precedence for the permissions can be summarized as follows, with the higher precedence permissions listed at the top of the list:</p></blockquote>
<blockquote><p>Explicit Deny<br />
Explicit Allow<br />
Inherited Deny<br />
Inherited Allow</p></blockquote>
<p>Ok, so its an interesting way of explaining it, but to mimic an annoying kid: why? Microsoft says in a dialog just previous that deny overrules allow so why would they so blatantly change the mind? To do so would mean that you would have to understand how NTFS evaluates permissions and calculates the permissions &#8211; but weren&#8217;t we reading an article about understanding?</p>
<p>This is the core of my gripe, the article doesn&#8217;t particularly give you a depth of insight or understanding in permissions that you couldn&#8217;t get by clicking things on and off to observe their behaviour. It treats one mildly non-obvious behaviour but doesn&#8217;t explain why NTFS would do this. To be honest I stumbled across this behaviour on another web site which had run into the pitfall of believing that deny overruled everything and was trying to understand why his security model was broken. His article hypothesised something much simpler: the algorithm finds the first explicit permission and uses it, if both are set then use the deny. No complex precedence model, something quite simple. And as Ockham&#8217;s Razor goes &#8220;the simplest answer is often the best&#8221;. But interestingly this also fits into the way NTFS appears to have been designed. For container objects, a permission can be set at a level and it can be determined just how deep it should apply: should it apply to just this container, just to subfolders or just to files? Or should it apply to a combination of those?</p>
<p>Interestingly I&#8217;m on the hunt for something that formally explains how NTFS permission inheritance works, I had thought this article would tell me but it doesn&#8217;t. It tells me a lot of what I know already but doesn&#8217;t actually enhance my understanding. I had read an article a while back that informed me of this &#8216;quirk&#8217; in the behaviour but at the time didn&#8217;t think much of bookmarking it &#8211; and it is in fact this article that I&#8217;m looking for, and thankfully I just found it.</p>
<p>The article in question is &#8220;<a href="http://technet.microsoft.com/en-us/magazine/2005.11.howitworksntfs.aspx">How IT works: NTFS Permissions</a>&#8221; from the November/December 2005 issue of TechNet Magazine. It introduces the concept of &#8220;discretionary access control lists&#8221; (DACL) and also explains how they work. It explains that the DACL is checked in order until a match is found with the DACL created with denies first, then allows starting with the object and then incrementally for each item it looks for a match until it gets to the end at which point it denies. The single article just cleared up exactly how it worked, why it works and how it behaves explaining the behaviour. At this point I understand how and why it works, not just know that it works in a particular way &#8211; this is the difference between understanding and knowing.</p>
]]></content:encoded>
			<wfw:commentRss>http://pasamio.com/2009/06/28/understanding-versus-knowing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Redmond, start your photocopiers</title>
		<link>http://pasamio.com/2008/11/09/redmond-start-your-photocopiers/</link>
		<comments>http://pasamio.com/2008/11/09/redmond-start-your-photocopiers/#comments</comments>
		<pubDate>Sun, 09 Nov 2008 04:13:36 +0000</pubDate>
		<dc:creator>pasamio</dc:creator>
				<category><![CDATA[apple]]></category>
		<category><![CDATA[microsoft]]></category>

		<guid isPermaLink="false">http://pasamio.com/?p=74</guid>
		<description><![CDATA[I must admit reading the article this morning on Slashdot about how Microsoft is building their own &#8220;App Store&#8221; really did sound of Microsoft copying yet again. Now I don&#8217;t believe that everything Apple has done is necessarily new or unique, they&#8217;ve got their own photocopiers somewhere but you have to wonder after Steve Job&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>I must admit reading the article this morning on Slashdot about how Microsoft is building their own &#8220;App Store&#8221; really did sound of Microsoft copying yet again. Now I don&#8217;t believe that everything Apple has done is necessarily new or unique, they&#8217;ve got their own photocopiers somewhere but you have to wonder after Steve Job&#8217;s WWDC keynote comparing features of Vista to Mac OS X you start to wonder where Microsoft is really innovating. A lot of its infrastructure to be honest is copied from previous implementations and there rarely appears to be something new coming from Microsoft. When I look at the Vista desktop is a mashup of what I have available from Compiz Fusion on Linux, parts from Mac OS X and some parts from a Sun research project called &#8216;<a href="http://www.sun.com/software/looking_glass/">Project Looking Glass</a>&#8216;.</p>
<p>But if you look at an old <a href="http://gizmodo.com/archives/wwdc-apple-takes-potshots-at-microsoft-016871.php">Gizmodo</a> article you&#8217;ll see that Apple have been cheeky for a long time now, even suggesting two years before Vista&#8217;s release date that Tiger was it. Funnily enough by the time that Microsoft got around to releasing Vista for retail in early 2007, Apple had already released Tiger in April 2005 and was on its way to Leopard already releasing a beta of it at WWDC2006 and a feature complete edition for WWDC2007, releasing later in 2007. Apple haven&#8217;t stopped there and are already releasing betas of Snow Leopard at WWDC2008 with <a href="http://news.worldofapple.com/archives/2008/10/25/latest-snow-leopard-build-10a190-now-available-seed-notes/">new and interesting features</a>, some of which copied themselves and some interesting approaches at doing things as well as interoperability features including primitive Exchange support.</p>
<p>And now we&#8217;re seeing Microsoft push forward their plans for &#8220;Windows 7&#8243; which from all accounts appears to internally think that its Windows 6.1 (you can Google for comments on the general confusion on which Microsoft appears to determine that this is version &#8220;7&#8243; of their product as well as people doing the maths and not finding &#8217;7&#8242; as the number). With any luck we&#8217;ll see Snow Leopard and Windows 7 come out at around the same time and we can do a comparison between the two without much difficulty.</p>
]]></content:encoded>
			<wfw:commentRss>http://pasamio.com/2008/11/09/redmond-start-your-photocopiers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
