<?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>GS Design &#187; Windows</title>
	<atom:link href="http://www.gsdesign.ro/blog/category/windows/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gsdesign.ro/blog</link>
	<description>Just another developer blog</description>
	<lastBuildDate>Thu, 06 Jan 2011 22:28:20 +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>Advanced guide to Aspire one</title>
		<link>http://www.gsdesign.ro/blog/advanced-guide-to-aspire-one/</link>
		<comments>http://www.gsdesign.ro/blog/advanced-guide-to-aspire-one/#comments</comments>
		<pubDate>Sun, 28 Dec 2008 12:06:04 +0000</pubDate>
		<dc:creator>Gabi Solomon</dc:creator>
				<category><![CDATA[hardware]]></category>
		<category><![CDATA[tech-solutions]]></category>
		<category><![CDATA[aspire one]]></category>
		<category><![CDATA[gadgets]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.gsdesign.ro/blog/?p=312</guid>
		<description><![CDATA[A friend of mine just bought a e-pc from acer that runs a custom linux OS called aspire one. At first sight it seems like it a great solution for basic users since it has a very friendly interface, and it comes preinstalled with a a pack of software that is generally used like IM [...]]]></description>
			<content:encoded><![CDATA[<p>A friend of mine just bought a e-pc from acer that runs a custom linux OS called aspire one.<br />
At first sight it seems like it a great solution for basic users since it has a very friendly interface, and it comes preinstalled with a a pack of software that is generally used like IM client, email reader, browser, office suite and much more. </p>
<p><a href="http://www.gsdesign.ro/blog/advanced-guide-to-aspire-one/aspire_one_10/" rel="attachment wp-att-313"><img src="http://www.gsdesign.ro/blog/wp-content/uploads/2008/12/aspire_one_10-300x175.png" alt="aspire one 10 OS" title="aspire one 10" width="300" height="175" class="aligncenter size-medium wp-image-313" /></a></p>
<p>But although this looks nice, it becomes a problem when you want more from your epc, when you want to install new apps or want to customize something. You dont even have a right menu on the desktop.</p>
<h3>How to enable advanced menu [small hack]</h3>
<p>To do this you will need to go to Files > My Documents. In the window opened go to  the File Menu and click on Terminal.<br />
In the terminal window input <strong>xfce-setting-show</strong> and hit <strong>enter</strong>.<br />
This will bring up the Xfce Settings Manager.</p>
<p>Click on the Desktop link and you will get the Desktop Preferences window where you must select the Behavior tab.<br />
Now mark under Menus the Show desktop menu on right click option and close the window.</p>
<p>Now you will bring up the normal desktop menu when you right click somewhere on the desktop which contains more options than the limited user interface on the Aspire One.</p>
<h3>Changing the root password</h3>
<p>Now for even more advanced usage you will need to use the root user. But after a lot of searching i came to the conclusion that you cant find out what the password for the root is, instead you can change it.</p>
<p>To do so you must click on the desktop and open a terminal window ( you can find it under System > Terminal ).<br />
In the terminal window first type &#8220;<strong>Sudo –su</strong>&#8221; and hit Enter.<br />
Then type &#8220;passwd&#8221; and hit Enter.<br />
You will now be prompted to enter the new password. After typing press enter and retype it.<br />
That is it. You have successfully changed the root password <img src='http://www.gsdesign.ro/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<h3>Installing new applications</h3>
<p>Now that you have enabled the advanced menu and have the root password you can proceed to installing new applications.<br />
This is quite simple, you just right click on the desktop and select System > Add/Remove Software.<br />
You will be prompted to enter the root password and after you enter it the package manager will launch.<br />
And now the install should be easy as cake and is similar to any Linux based OS.</p>
<h3>Adding new shortcuts to your desktop</h3>
<p>Even though you have enabled the new advanced menu and you can access your new installed software from that menu, it just doesn&#8217;t feel right. I bet you want them to be included in the shortcuts from the desktop. Well that is just a bit tricky, you will need to edit an xml config file.<br />
The address for it is :</p>
<blockquote><p>
/home/user/.config/xfce4/desktop/group-a pp.xml
</p></blockquote>
<p>Hope this was helpfull,<br />
Cheers</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gsdesign.ro/blog/advanced-guide-to-aspire-one/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to optimize the RAM on your PC</title>
		<link>http://www.gsdesign.ro/blog/how-to-optimize-the-ram-on-your-pc/</link>
		<comments>http://www.gsdesign.ro/blog/how-to-optimize-the-ram-on-your-pc/#comments</comments>
		<pubDate>Sun, 24 Aug 2008 17:32:13 +0000</pubDate>
		<dc:creator>Gabi Solomon</dc:creator>
				<category><![CDATA[hardware]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[optimize]]></category>
		<category><![CDATA[pc]]></category>
		<category><![CDATA[ram]]></category>
		<category><![CDATA[rambooster]]></category>

		<guid isPermaLink="false">http://www.gsdesign.ro/blog/?p=165</guid>
		<description><![CDATA[I am a really &#8220;power&#8221; user of computers, not because i am an expert at them but because i have the problem that i opened a lot of programs at once &#8230; and i mean a lot, which sometimes puts my computer into a sluggish state, because it runs out of RAM memory. I do [...]]]></description>
			<content:encoded><![CDATA[<p>I am a really &#8220;power&#8221; user of computers, not because i am an expert at them but because i have the problem that i opened a lot of programs at once &#8230; and i mean a lot, which sometimes puts my computer into a sluggish state, because it runs out of RAM memory. I do admit an update of my RAM is in order but until then i found a small software to <strong>optimize my PC RAM</strong> usage just a little to make it work a little faster. </p>
<p>Its called <strong>RamBooster 2</strong> and its available for <a href="http://www.download.com/RAMBooster/3000-2086_4-10028673.html">download here</a>.</p>
<p>Below is a video review of the software from <a href="http://www.cnet.com/">cnet.com</a></p>
<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/-ogTpzH830A&#038;hl=en&#038;fs=1"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/-ogTpzH830A&#038;hl=en&#038;fs=1" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="344"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.gsdesign.ro/blog/how-to-optimize-the-ram-on-your-pc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>boxee &#8211; the new generation in media centers</title>
		<link>http://www.gsdesign.ro/blog/boxee-the-new-generation-in-media-centers/</link>
		<comments>http://www.gsdesign.ro/blog/boxee-the-new-generation-in-media-centers/#comments</comments>
		<pubDate>Sat, 23 Aug 2008 22:23:17 +0000</pubDate>
		<dc:creator>Gabi Solomon</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[boxee]]></category>
		<category><![CDATA[last.fm]]></category>
		<category><![CDATA[media center]]></category>
		<category><![CDATA[social]]></category>
		<category><![CDATA[youtube]]></category>

		<guid isPermaLink="false">http://www.gsdesign.ro/blog/?p=156</guid>
		<description><![CDATA[Just a few minutes ago i happened to tune into Chris Pirillo Ustream Chanel that was showing the GnomeDex conference, and it caught my attention right away. It was a presentation of a new media center software called boxee. boxee is a social media center. with boxee you can play videos, music and pictures from [...]]]></description>
			<content:encoded><![CDATA[<p>Just a few minutes ago i happened to tune into <a href="http://chris.pirillo.com/">Chris Pirillo</a> Ustream Chanel that was showing the <a href="http://www.gnomedex.com/">GnomeDex</a> conference, and it caught my attention right away.</p>
<p>It was a presentation of a new media center software called <a href="http://boxee.tv/">boxee</a>.</p>
<blockquote><p>
boxee is a social media center. with boxee you can play videos, music and pictures from your PC or from the Internet. you can also share with your friends what albums you&#8217;re listening to, what movies and TV shows you&#8217;re watching, send recommendations and more.</p>
<p>boxee is designed to work with a remote control (it looks great on a big screen TV), but you can also control it using your keyboard.</p>
<p>once installed boxee will start scanning your local Movies, Music and Pictures folders automatically. boxee will attempt to bring artwork, reviews, cast, etc. for your media, so browsing your library becomes more useful and fun than looking at a list of files.</p>
<p>boxee is based on the best media center on the planet, xbmc.
</p></blockquote>
<p>If you havent figure it out what the fuss is about, well this media center will drive content right to your screen from services like youtube and last.fm and display it right on your screen, and above all it will let you know your friend activity on those services, get recomandation from your friends on what videos, shows to watch or what music to listen too.</p>
<p>Plus it can connect to other devices on your home network being computers, file storing servers or even mobile devices ( that have a way to comunicate on the network ) and pull in content from them as well : pictures, music or video.</p>
<p>I dont know if this has caught your attention, so i am going to add another BIG + &#8230; its OPEN-SOURCE, yes you heard right &#8230; open-source, plus it has versions for windows, mac and linux &#8230; how cool is that.</p>
<p>The only bad side is its in alpha state and hasnt opened download to everybody, you must register on the site to get a download link ( hope i receive one soon ).</p>
<p>Enjoy the screenshots and videos below.<br />
Cheers.</p>
<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/NzXu05ZuvII&#038;hl=en&#038;fs=1"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/NzXu05ZuvII&#038;hl=en&#038;fs=1" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="344"></embed></object></p>
<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/MwQG-4kT7FE&#038;hl=en&#038;fs=1"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/MwQG-4kT7FE&#038;hl=en&#038;fs=1" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="344"></embed></object></p>

<a href='http://www.gsdesign.ro/blog/boxee-the-new-generation-in-media-centers/boxee-album-view-screenshot/' title='boxee-album-view-screenshot'><img width="150" height="150" src="http://www.gsdesign.ro/blog/wp-content/uploads/2008/08/boxee-album-view-screenshot-150x150.png" class="attachment-thumbnail" alt="boxee-album-view-screenshot" title="boxee-album-view-screenshot" /></a>
<a href='http://www.gsdesign.ro/blog/boxee-the-new-generation-in-media-centers/boxee-click-on-an-album/' title='boxee-click-on-an-album'><img width="150" height="150" src="http://www.gsdesign.ro/blog/wp-content/uploads/2008/08/boxee-click-on-an-album-150x150.png" class="attachment-thumbnail" alt="boxee-click-on-an-album" title="boxee-click-on-an-album" /></a>
<a href='http://www.gsdesign.ro/blog/boxee-the-new-generation-in-media-centers/boxee-flickr-browsing-screenshot/' title='boxee-flickr-browsing-screenshot'><img width="150" height="150" src="http://www.gsdesign.ro/blog/wp-content/uploads/2008/08/boxee-flickr-browsing-screenshot-150x150.png" class="attachment-thumbnail" alt="boxee-flickr-browsing-screenshot" title="boxee-flickr-browsing-screenshot" /></a>
<a href='http://www.gsdesign.ro/blog/boxee-the-new-generation-in-media-centers/boxee-home-screenshot/' title='boxee-home-screenshot'><img width="150" height="150" src="http://www.gsdesign.ro/blog/wp-content/uploads/2008/08/boxee-home-screenshot-150x150.png" class="attachment-thumbnail" alt="boxee-home-screenshot" title="boxee-home-screenshot" /></a>
<a href='http://www.gsdesign.ro/blog/boxee-the-new-generation-in-media-centers/boxee-music-browsing-screenshot/' title='boxee-music-browsing-screenshot'><img width="150" height="150" src="http://www.gsdesign.ro/blog/wp-content/uploads/2008/08/boxee-music-browsing-screenshot-150x150.png" class="attachment-thumbnail" alt="boxee-music-browsing-screenshot" title="boxee-music-browsing-screenshot" /></a>
<a href='http://www.gsdesign.ro/blog/boxee-the-new-generation-in-media-centers/boxee-video-browsing-screenshot/' title='boxee-video-browsing-screenshot'><img width="150" height="150" src="http://www.gsdesign.ro/blog/wp-content/uploads/2008/08/boxee-video-browsing-screenshot-150x150.png" class="attachment-thumbnail" alt="boxee-video-browsing-screenshot" title="boxee-video-browsing-screenshot" /></a>

]]></content:encoded>
			<wfw:commentRss>http://www.gsdesign.ro/blog/boxee-the-new-generation-in-media-centers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Open-source FTP client</title>
		<link>http://www.gsdesign.ro/blog/open-source-ftp-client/</link>
		<comments>http://www.gsdesign.ro/blog/open-source-ftp-client/#comments</comments>
		<pubDate>Sun, 27 Jul 2008 18:58:03 +0000</pubDate>
		<dc:creator>Gabi Solomon</dc:creator>
				<category><![CDATA[software]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[client]]></category>
		<category><![CDATA[filezilla]]></category>
		<category><![CDATA[ftp]]></category>

		<guid isPermaLink="false">http://www.gsdesign.ro/blog/?p=87</guid>
		<description><![CDATA[I have tried and tested a few FTP clients in search for one that would be to my liking, but couldnt really find one. So i revert back to using Total Commander as my ftp client. A few dayas ago I stumbled across FileZilla. It’s an open-source FTP client for Windows and i find it [...]]]></description>
			<content:encoded><![CDATA[<p>I have tried and tested a few FTP clients in search for one that would be to my liking, but couldnt really find one. So i revert back to using Total Commander as my ftp client.</p>
<p>A few dayas ago I stumbled across <a href="http://filezilla.sourceforge.net/">FileZilla</a>. It’s an open-source FTP client for Windows and i find it to be really good. It’s fast, reliable, and user-friendly.</p>
<p>I think i finally found something to replace old Total Commander with <img src='http://www.gsdesign.ro/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . </p>
<p>What FTP clients do you use ?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gsdesign.ro/blog/open-source-ftp-client/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>the first real windows OS competitor</title>
		<link>http://www.gsdesign.ro/blog/the-first-real-windows-os-competitor/</link>
		<comments>http://www.gsdesign.ro/blog/the-first-real-windows-os-competitor/#comments</comments>
		<pubDate>Thu, 24 Jul 2008 19:02:12 +0000</pubDate>
		<dc:creator>Gabi Solomon</dc:creator>
				<category><![CDATA[software]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[alternatives]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[OS]]></category>

		<guid isPermaLink="false">http://www.gsdesign.ro/blog/?p=122</guid>
		<description><![CDATA[Yes i know there are other competitors for Windows, that are very real such as Linux or MacOS , but you have to admit that they are pretty exclusive. I mean this in the way that some software that you run on windows, cant use on the other OS because there is not version of [...]]]></description>
			<content:encoded><![CDATA[<p>Yes i know there are other competitors for Windows, that are very real such as Linux or MacOS , but you have to admit that they are pretty exclusive. I mean this in the way that some software that you run on windows, cant use on the other OS because there is not version of that software that suports the OS.<br />
I believe this is one of the reasons why people use windows a lot, this and the fact that people got used to the windows feel and look.</p>
<h3> Free alternative to windows</h3>
<p>Today i found out through the youtube chanel of  <a href="http://chris.pirillo.com/">chris pirillo</a> about a new alternative to windows called <a href="http://www.reactos.org/en/index.html">ReactOS</a> </p>
<blockquote><p>
    ReactOS is a free, modern operating system based on the design of Windows XP/2003. Written completely from scratch, it aims to follow the Windows architecture designed by Microsoft from the hardware level right through to the application level. This is not a Linux based system, and shares none of the unix architecture.<br />
    The main goal of the ReactOS project is to provide an operating system which is binary compatible with Windows. This will allow your Windows applications and drivers to run as they would on your Windows system. Additionally, the look and feel of the Windows operating system is used, such that people accustomed to the familiar user interface of Windows would find using ReactOS straightforward. The ultimate goal of ReactOS is to allow you to remove Windows and install ReactOS without the end user noticing the change.</p>
<p>    Please bear in mind that ReactOS 0.3.5 is still in alpha stage, meaning it is not feature-complete and is not recommended for everyday use.
</p></blockquote>
<p>Below you can find his review of this new OS.<br />
Hope you find this usefull</p>
<p>Cheers</p>
<p><object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/U9pICtFavMs"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/U9pICtFavMs" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.gsdesign.ro/blog/the-first-real-windows-os-competitor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Extracting text from Word Documents in PHP with COM objects</title>
		<link>http://www.gsdesign.ro/blog/extracting-text-from-word-documents-in-php-with-com-objects/</link>
		<comments>http://www.gsdesign.ro/blog/extracting-text-from-word-documents-in-php-with-com-objects/#comments</comments>
		<pubDate>Thu, 29 May 2008 10:08:41 +0000</pubDate>
		<dc:creator>Gabi Solomon</dc:creator>
				<category><![CDATA[Programing]]></category>
		<category><![CDATA[Web Aplications]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.gsdesign.ro/blog/?p=62</guid>
		<description><![CDATA[dont know if you know but i have a pet project called infostud.ro that is a university teacher grading website. It also has a students essay section where members can download various essay and papers written by other members for there inspiration with there own projects. Almost all those papers are in the word format. [...]]]></description>
			<content:encoded><![CDATA[<p>dont know if you know but i have a pet project called <a title="catalogul profesorilor" href="http://www.infostud.ro/" target="_blank">infostud.ro</a> that is a university teacher grading website. It also has a students essay section where members can download various essay and papers written by other members for there inspiration with there own projects. Almost all those papers are in the word format. In the hope to help them i wanted to have a description of each file so they can preview some of the contents of the files before downloading it, so they know if its going to help them or not. Until recently that description was entered manually by the users, but i decided to give them a hand and make php read the files and have the first X characters from the file as the description.</p>
<p>So i start googling for ways to read the word files, since simple opening the file would return a buch of strange code. On my browsing in the past i remembered reading something about COM objects and how you can read word documents with it.</p>
<p>As i discovered <a href="http://en.wikipedia.org/wiki/Component_Object_Model"><strong>COM</strong> </a>( Component Object Model ) is a interface standard for <span class="mw-redirect">software componentry</span> introduced by Microsoft.  Sounds pretty fancy, but what that means is that using COM objects any other application can communicate with any Microsoft application ( Word, Excel, IE ) and perform various commands as if a user would use it.</p>
<p>Now that i knew what i was looking for, i started to look for documentation on how i could use a COM object in php to open a word document. Even if i thought i would have to read tons of documentation, turns out that using a com object is pretty straight forward.</p>
<p>For my needs i actulay found to ways of reading the text from a word document.</p>
<p>The first way was to convert the word document to a TXT file.</p>
<div class="igBar"><span id="lphp-3"><a href="#" onclick="javascript:showCodeTxt('php-3'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-3">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$filename</span>=<span style="color:#FF0000;">"file.doc"</span>;</div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$TXTfilename</span> = <span style="color:#0000FF;">$filename</span> . <span style="color:#FF0000;">".txt"</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$word</span> = <span style="color:#000000; font-weight:bold;">new</span> COM<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">"word.application"</span><span style="color:#006600; font-weight:bold;">&#41;</span> or <a href="http://www.php.net/die"><span style="color:#000066;">die</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">"Unable to instantiate Word object"</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$word</span>-&amp;gt;Documents-&amp;gt;Open<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$filename</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF9933; font-style:italic;">// the '2' parameter specifies saving in txt format</span></div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$word</span>-&amp;gt;Documents<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#CC66CC;color:#800000;">1</span><span style="color:#006600; font-weight:bold;">&#93;</span>-&amp;gt;SaveAs<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$TXTfilename</span> ,<span style="color:#CC66CC;color:#800000;">2</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$word</span>-&amp;gt;Documents<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#CC66CC;color:#800000;">1</span><span style="color:#006600; font-weight:bold;">&#93;</span>-&amp;gt;Close<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#000000; font-weight:bold;">false</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$word</span>-&amp;gt;Quit<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$word</span>-&amp;gt;Release<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$word</span> = <span style="color:#000000; font-weight:bold;">NULL</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/unset"><span style="color:#000066;">unset</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$word</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$content</span> = <a href="http://www.php.net/file_get_contents"><span style="color:#000066;">file_get_contents</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$TXTfilename</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/unlink"><span style="color:#000066;">unlink</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$TXTfilename</span><span style="color:#006600; font-weight:bold;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Although this method worked pretty good,  as i was about to close the google found pages i saw a different approach to the problem that i liked more then the above ( ans showed me new COM commands - i couldnt find a list of it anywhere )</p>
<div class="igBar"><span id="lphp-4"><a href="#" onclick="javascript:showCodeTxt('php-4'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-4">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$word</span> = <span style="color:#000000; font-weight:bold;">new</span> COM<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">"word.application"</span><span style="color:#006600; font-weight:bold;">&#41;</span> or <a href="http://www.php.net/die"><span style="color:#000066;">die</span></a> <span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">"Could not initialise MS Word object."</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$word</span>-&amp;gt;Documents-&amp;gt;Open<span style="color:#006600; font-weight:bold;">&#40;</span><a href="http://www.php.net/realpath"><span style="color:#000066;">realpath</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">"Sample.doc"</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF9933; font-style:italic;">// Extract content.</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$content</span> = <span style="color:#006600; font-weight:bold;">&#40;</span>string<span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#0000FF;">$word</span>-&amp;gt;ActiveDocument-&amp;gt;Content;</div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#0000FF;">$content</span>;</div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$word</span>-&amp;gt;ActiveDocument-&amp;gt;Close<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#000000; font-weight:bold;">false</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$word</span>-&amp;gt;Quit<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:IG_LINE_COLOUR_2;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$word</span> = <span style="color:#000000; font-weight:bold;">null</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:IG_LINE_COLOUR_1;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/unset"><span style="color:#000066;">unset</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$word</span><span style="color:#006600; font-weight:bold;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>As the author points out <a href="http://www.developertutorials.com/blog/php/extracting-text-from-word-documents-via-php-and-com-81/">here</a> this uses a small trick, if you would check $word-&gt;ActiveDocument-&gt;Contentyou would find that it is an empty object (variant). If you assign the value to a variable you’ll get an empty string, as the variant object has no real __toString(). The workaround in PHP is to explicitly type cast the value as a string and make PHP/COM take care of finding the real value.</p>
<p>As a last pointer, if you look at the script you would see the 3 last commands that are meant to destroy any the COM object and release the memory taken by it, since it takes about 10-15MB upon initialization because it opens a full instance of WINWORD.exe.</p>
<p>So, in just ten lines of code you can get the text out of an MS Word document, easy as ever!</p>
<p>Hope this helped you,</p>
<p>Cheers</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gsdesign.ro/blog/extracting-text-from-word-documents-in-php-with-com-objects/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How do I Open or Mount a Bin File Without a Cue File ?</title>
		<link>http://www.gsdesign.ro/blog/how-do-i-open-or-mount-a-bin-file-without-a-cue-file/</link>
		<comments>http://www.gsdesign.ro/blog/how-do-i-open-or-mount-a-bin-file-without-a-cue-file/#comments</comments>
		<pubDate>Mon, 05 Nov 2007 18:15:59 +0000</pubDate>
		<dc:creator>Gabi Solomon</dc:creator>
				<category><![CDATA[tech-solutions]]></category>

		<guid isPermaLink="false">http://www.gsdesign.ro/blog/2007/11/05/how-do-i-open-or-mount-a-bin-file-without-a-cue-file/</guid>
		<description><![CDATA[You downloaded a CD image in a bin format. However, nothing will read it. Here's what you do. You just downloaded the latest, baddest program from some torrent somewhere. However, it's just a bunch of bin files. You realize these are CD images or ISOs... but you don't know how to run them. You just [...]]]></description>
			<content:encoded><![CDATA[<p>You downloaded a CD image in a bin format. However, nothing will read it. Here's what you do.</p>
<p>You just downloaded the latest, baddest program from some torrent somewhere. However, it's just a bunch of bin files. You realize these are CD images or ISOs... but you don't know how to run them.</p>
<p>You just create a text file that is named the exact same thing as your bin file except with a cue extension. In this text file you need this information:</p>
<p>FILE "yourbinfilenamehere.bin" BINARY<br />
TRACK 01 MODE1/2352<br />
INDEX 01 00:00:00</p>
<p>Step-by-step:</p>
<p>Say you have a file called gameiso.bin</p>
<p>1. Right click on a blank space in the same folder<br />
2. Select new text document<br />
3. Double click to open your New Text Document.txt<br />
4. Paste this into the file:<br />
FILE "gameiso.bin" BINARY<br />
TRACK 01 MODE1/2352<br />
INDEX 01 00:00:00</p>
<p>Make sure you edit gameiso.bin to the exact name of your bin file.</p>
<p>5. Click File menu<br />
6. Click Save<br />
7. Click the Red X to close it<br />
8. Right click the New Text Document.txt and select Rename<br />
9. Rename it like your bin file except with a cue extension:<br />
gameiso.cue<br />
10. Now any program that can read CD-rom ISOs (nero, alcohol, etc) should be ready to read the file.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gsdesign.ro/blog/how-do-i-open-or-mount-a-bin-file-without-a-cue-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

