<?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>Linux Admin Steps Into Management &#187; wiki</title>
	<atom:link href="http://yonitg.com/category/wiki/feed/" rel="self" type="application/rss+xml" />
	<link>http://yonitg.com</link>
	<description></description>
	<lastBuildDate>Fri, 03 Feb 2012 15:08:57 +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>Exporting MediaWiki sites to Google sites</title>
		<link>http://yonitg.com/exporting-mediawiki-sites-to-google-sites/</link>
		<comments>http://yonitg.com/exporting-mediawiki-sites-to-google-sites/#comments</comments>
		<pubDate>Fri, 03 Feb 2012 15:08:57 +0000</pubDate>
		<dc:creator>yonitg</dc:creator>
				<category><![CDATA[Online Tools]]></category>
		<category><![CDATA[scripting]]></category>
		<category><![CDATA[sys admin]]></category>
		<category><![CDATA[web admin]]></category>
		<category><![CDATA[wiki]]></category>
		<category><![CDATA[export]]></category>
		<category><![CDATA[Google sites]]></category>
		<category><![CDATA[Google sites API]]></category>
		<category><![CDATA[mw2html]]></category>
		<category><![CDATA[wikimedia]]></category>

		<guid isPermaLink="false">http://yonitg.com/?p=627</guid>
		<description><![CDATA[   In the last post I&#8217;ve talked about moving files from SharePoint to Google Site, what about a Mediawiki site? how to export it and upload it? I&#8217;ve already covered the uploading files to Google sites via the Google sites API, you can use java or python to write a script to mass upload all your files [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.amazon.com/Mediawiki-Wikipedia-Beyond-Daniel-Barrett/dp/0596519796%3FSubscriptionId%3DAKIAJOT3JJ24F6GO7IGQ%26tag%3Dyonitgcom-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3D0596519796"><img src="http://ecx.images-amazon.com/images/I/51LKkJAd89L._SL160_.jpg" alt="" /></a> <a href="http://www.amazon.com/Wikis-Dummies-Dan-Woods/dp/0470043997%3FSubscriptionId%3DAKIAJOT3JJ24F6GO7IGQ%26tag%3Dyonitgcom-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3D0470043997"><img src="http://ecx.images-amazon.com/images/I/51osPuFjCVL._SL160_.jpg" alt="" /></a> <a href="http://www.amazon.com/MediaWiki-1-1-Beginners-Mizanur-Rahman/dp/1847196047%3FSubscriptionId%3DAKIAJOT3JJ24F6GO7IGQ%26tag%3Dyonitgcom-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3D1847196047"><img src="http://ecx.images-amazon.com/images/I/51BPSDIBtoL._SL160_.jpg" alt="" /></a></p>
<p>In the last post I&#8217;ve talked about moving files from SharePoint to Google Site,<br />
what about a Mediawiki site?<br />
how to export it and upload it?<br />
I&#8217;ve already covered the uploading files to Google sites via the Google sites API,<br />
you can use java or python to write a script to mass upload all your files and htmls to your new google site,<br />
but first you need to export everything out of the Mediawiki site.</p>
<p>here is a working method to export your site, these are the steps:</p>
<ol>
<li>install python</li>
<li>download the mw2html script</li>
<li>export the mediawiki site</li>
</ol>
<p>so lets start :</p>
<h2>Installing python</h2>
<p>If you are working from a linux distro with yum its as easy as typing:<br />
yum install python</p>
<p>for windows &#8211; you will need to download and install from the python site:<br />
<a title="Python for Microsoft Windows" href="http://www.python.org/getit/windows/" target="_blank">the main python download page for windows</a><br />
or you can just grab the latest version for <a title="python 3.2.2" href="http://www.python.org/ftp/python/3.2.2/python-3.2.2.msi" target="_blank">September 4 2011 Python 3.2.2</a><br />
Download and install the msi package.</p>
<p>next step is to add the installation to the computer&#8217;s path,<br />
in windows 7  open the start panel and type in the search panel:<br />
&#8220;view advance system settings&#8221;</p>
<p><a href="http://yonitg.com/blog/wp-content/uploads/2012/02/sys.png"><img class="alignnone size-full wp-image-628" title="sys" src="http://yonitg.com/blog/wp-content/uploads/2012/02/sys.png" alt="" width="409" height="208" /></a></p>
<p>press the &#8220;Environment Variables&#8221;</p>
<p><a href="http://yonitg.com/blog/wp-content/uploads/2012/02/env.png"><img class="alignnone size-full wp-image-629" title="env" src="http://yonitg.com/blog/wp-content/uploads/2012/02/env.png" alt="" width="426" height="474" /></a></p>
<p>in the System Variables section search for the &#8220;Path&#8221; line and choose edit:</p>
<p><a href="http://yonitg.com/blog/wp-content/uploads/2012/02/path.png"><img class="alignnone size-full wp-image-630" title="path" src="http://yonitg.com/blog/wp-content/uploads/2012/02/path.png" alt="" width="394" height="436" /></a></p>
<p>now to the end of the line add the path of where you have installed the python,<br />
for example I have installed it to  C:\Python27 , and so i will add at the end of the Path line this:<br />
;C:\Python27<br />
notice the &#8220;;&#8221;  - this separates between the items on the Path line.</p>
<p>Now if you will type &#8220;python -V&#8221; on your command line it will run the python binary and will show you your version</p>
<p><a href="http://yonitg.com/blog/wp-content/uploads/2012/02/cmd.png"><img class="alignnone size-full wp-image-631" title="cmd" src="http://yonitg.com/blog/wp-content/uploads/2012/02/cmd.png" alt="" width="154" height="34" /></a></p>
<p>now that we have the python working lets move to the next step:</p>
<h2>Download the mw2html script</h2>
<p>you can find it here:</p>
<p><a title="mw2html" href="http://barnesc.blogspot.com/2005/10/mw2html-export-mediawiki-to-static.html" target="_blank">from Connelly Barnes blog</a></p>
<p>this script will crawl all over your media wiki site and will grab all the html files and all the attachments there.</p>
<h2>Exporting the mediawiki site</h2>
<blockquote><p>usage:<br />
url &#8211; URL of mediawiki page to convert to static HTML.<br />
outdir &#8211; Output directory.</p>
<p>-f, &#8211;force &#8211; Overwrite existing files in outdir.<br />
&#8211;no-flatten &#8211; Do not flatten directory structure.<br />
&#8211;no-lower &#8211; Retain original case for output filenames and dirs.<br />
&#8211;no-clean &#8211; Do not clean up filenames (clean replaces<br />
non-alphanumeric chars with _, renames math thumbs).<br />
&#8211;no-hack-skin &#8211; Do not modify skin CSS and HTML for looks.<br />
&#8211;no-made-by &#8211; Suppress &#8220;generated by&#8221; comment in HTML source.<br />
&#8211;no-move-href &#8211; Disable &lt;movehref&gt; tag. [1]<br />
&#8211;no-remove-png &#8211; Retain external link PNG icons.<br />
&#8211;no-remove-history &#8211; Retain image history and links to information.<br />
-l, &#8211;left=a.html &#8211; Paste HTML fragment file into left sidebar.<br />
-t, &#8211;top=a.html &#8211; Paste HTML fragment file into top horiz bar.<br />
-b, &#8211;bottom=a.html &#8211; Paste HTML fragment file into footer horiz bar.<br />
-i, &#8211;index=filename &#8211; Move given filename in outdir to index.html.</p>
<p>Example Usage:<br />
mw2html http://127.0.0.1/mywiki/ out -f -i main_page.html -l sidebar.html</p></blockquote>
<h3> Important note:</h3>
<p>this script will crawl all over your wiki site, but it does ignore all the files that do not have a link to them,<br />
all the  &#8221;orphan&#8221; pages, to solve this issue, instead of pointing to the main page, you can run the mw2html script while pointing to the orphans page,<br />
it will get all the regular files from your site and the Orphan pages.<br />
the link looks like:</p>
<p><a href="http://yourwikisite/wiki/index.php?title=Special:Lonelypages&amp;limit=500&amp;offset=0">http://yourwikisite/<wbr>wiki/index.php?title=Special:</wbr><wbr>Lonelypages&amp;limit=500&amp;offset=0</wbr></a><wbr><br />
</wbr></p>
<p>now that you have a folder with all your wiki page, you can edit the content of the folder,<br />
remove all the files staring with the word &#8220;image_&#8221;<br />
remove all the un-needed js files,<br />
and do internal changes in the html files like change the links pointing to the original wiki site and point them to the new Google site URL.</p>
<p>now you can use the <a title="Google Sites API" href="http://code.google.com/apis/sites/" target="_blank">Google sites API</a> to upload all your html to your new site.</p>
<p><a href="http://www.amazon.com/Wikis-Dummies-Dan-Woods/dp/0470043997%3FSubscriptionId%3DAKIAJOT3JJ24F6GO7IGQ%26tag%3Dyonitgcom-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3D0470043997"><img src="http://ecx.images-amazon.com/images/I/51osPuFjCVL._SL160_.jpg" alt="" /></a> <a href="http://www.amazon.com/MediaWiki-1-1-Beginners-Mizanur-Rahman/dp/1847196047%3FSubscriptionId%3DAKIAJOT3JJ24F6GO7IGQ%26tag%3Dyonitgcom-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3D1847196047"><img src="http://ecx.images-amazon.com/images/I/51BPSDIBtoL._SL160_.jpg" alt="" /></a> <a href="http://www.amazon.com/Mediawiki-Wikipedia-Beyond-Daniel-Barrett/dp/0596519796%3FSubscriptionId%3DAKIAJOT3JJ24F6GO7IGQ%26tag%3Dyonitgcom-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3D0596519796"><img src="http://ecx.images-amazon.com/images/I/51LKkJAd89L._SL160_.jpg" alt="" /></a></p>

<!-- start wp-tags-to-technorati 1.02 -->

<p class='technorati-tags'>Technorati Tags: <a class='technorati-link' href='http://technorati.com/tag/export' rel='tag' target='_self'>export</a>, <a class='technorati-link' href='http://technorati.com/tag/Google+sites' rel='tag' target='_self'>Google sites</a>, <a class='technorati-link' href='http://technorati.com/tag/Google+sites+API' rel='tag' target='_self'>Google sites API</a>, <a class='technorati-link' href='http://technorati.com/tag/mw2html' rel='tag' target='_self'>mw2html</a>, <a class='technorati-link' href='http://technorati.com/tag/wikimedia' rel='tag' target='_self'>wikimedia</a></p>

<!-- end wp-tags-to-technorati -->
<img src="http://yonitg.com/blog/?ak_action=api_record_view&id=627&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://yonitg.com/exporting-mediawiki-sites-to-google-sites/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Best Wiki Ever: WikiMapia</title>
		<link>http://yonitg.com/wikimapia-best-wiki-ever/</link>
		<comments>http://yonitg.com/wikimapia-best-wiki-ever/#comments</comments>
		<pubDate>Wed, 20 Jan 2010 21:53:01 +0000</pubDate>
		<dc:creator>yonitg</dc:creator>
				<category><![CDATA[wiki]]></category>
		<category><![CDATA[google]]></category>

		<guid isPermaLink="false">http://yonitg.com/?p=362</guid>
		<description><![CDATA[So I though I realy love WordPress, But lately I get to see more and more sites based on wiki, and I&#8217;m realy impressed with what wiki apps can offer. In my post about implementing wiki I have given some samples of regular sites using wiki as their CMS (Content Management System), but this map [...]]]></description>
			<content:encoded><![CDATA[<p>So I though I realy love WordPress,<br />
But lately I get to see more and more sites based on wiki,<br />
and I&#8217;m realy impressed with what wiki apps can offer.</p>
<p>In my post about <a title="Different ways to use wiki" href="http://yonitg.com/implementing-mediawiki/" target="_blank">implementing wiki</a> I have given some samples of regular sites using wiki as their <a title="Content management system" href="http://en.wikipedia.org/wiki/Content_management_system" target="_blank">CMS</a> (Content Management System), but this map site i&#8217;ve found today is using wiki for a whole new way,<br />
by letting people mark specific spots and locations on a joined map.</p>
<h2><a title="wikimapia main page" href="http://wikimapia.org/wiki/Main_Page" target="_blank">Wikimapia</a></h2>
<p>This is the site&#8217;s description from its own front page:</p>
<blockquote><p><span style="color: #000000;">WikiMapia is an editable interactive map.<br />
The Goal of Wikimapia is to create and maintain a free,<br />
complete, multilingual, up-to-date map of the whole world.</span></p></blockquote>
<p>But i think images will do the work best -<br />
here are a few views you can use to watch a specific area:</p>
<h3><strong>The Classic view &#8211; with areas marked on the map</strong></h3>
<p><a href="http://yonitg.com/blog/wp-content/uploads/2010/01/Area_selection.jpg"><img class="alignnone size-full wp-image-363" title="Area_selection" src="http://yonitg.com/blog/wp-content/uploads/2010/01/Area_selection.jpg" alt="Classic wikimapia view Area_selection" width="400" height="288" /></a></p>
<h3></h3>
<h3>In the case of New-York, People have even marked<br />
each building with its name</h3>
<p><a href="http://yonitg.com/blog/wp-content/uploads/2010/01/marked_buildings.jpg"><img class="alignnone size-full wp-image-367" title="marked buildings" src="http://yonitg.com/blog/wp-content/uploads/2010/01/marked_buildings.jpg" alt="marked buildings" width="400" height="288" /></a></p>
<h3>The wiki has a drop down category list of interesting<br />
views to use</h3>
<p><a href="http://yonitg.com/blog/wp-content/uploads/2010/01/Categories.jpg"><img class="alignnone size-full wp-image-364" title="Wikimapia drop down Categories menu" src="http://yonitg.com/blog/wp-content/uploads/2010/01/Categories.jpg" alt="Categories" width="400" height="288" /></a></p>
<h3>I can choose a close restaurant to go to</h3>
<p><a href="http://yonitg.com/blog/wp-content/uploads/2010/01/Restourants.jpg"><img class="alignnone size-full wp-image-368" title="Restourants" src="http://yonitg.com/blog/wp-content/uploads/2010/01/Restourants.jpg" alt="Restourants" width="400" height="288" /></a></p>
<h3>Or to create a list of interesting spots by their distance<br />
from each other and plan my visit days by areas</h3>
<p><a href="http://yonitg.com/blog/wp-content/uploads/2010/01/Interesting_Places.jpg"><img class="alignnone size-full wp-image-365" title="Interesting Places" src="http://yonitg.com/blog/wp-content/uploads/2010/01/Interesting_Places.jpg" alt="Interesting Places" width="400" height="288" /></a></p>
<h3>And I can see the exact same category on the regular map view</h3>
<p><a href="http://yonitg.com/blog/wp-content/uploads/2010/01/Map_view.jpg"><img class="alignnone size-full wp-image-366" title="Google Map view" src="http://yonitg.com/blog/wp-content/uploads/2010/01/Map_view.jpg" alt="Google Map view" width="400" height="288" /></a></p>
<p>I&#8217;m very pleased with this site, it can help you plan your travels, choose activities by their walking distance from each other, search for shops near by.</p>
<p>and of course &#8211; its all updated by the poeple for the poeple.</p>
<p>amazing work, cheers!</p>

<!-- start wp-tags-to-technorati 1.02 -->

<p class='technorati-tags'>Technorati Tags: <a class='technorati-link' href='http://technorati.com/tag/google' rel='tag' target='_self'>google</a>, <a class='technorati-link' href='http://technorati.com/tag/wiki' rel='tag' target='_self'>wiki</a></p>

<!-- end wp-tags-to-technorati -->
<img src="http://yonitg.com/blog/?ak_action=api_record_view&id=362&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://yonitg.com/wikimapia-best-wiki-ever/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

