<?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>w3it.org - Internet Helper Blog &#187; mediawiki</title>
	<atom:link href="http://www.w3it.org/blog/tag/mediawiki/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.w3it.org/blog</link>
	<description>help for internet people</description>
	<lastBuildDate>Tue, 04 May 2010 17:01:06 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Mediawiki: exadecimal values for archived mysql data</title>
		<link>http://www.w3it.org/blog/2009/05/20/media-wiki-couriosity-exadecimal-values-for-archived-mysql-values/</link>
		<comments>http://www.w3it.org/blog/2009/05/20/media-wiki-couriosity-exadecimal-values-for-archived-mysql-values/#comments</comments>
		<pubDate>Wed, 20 May 2009 21:29:57 +0000</pubDate>
		<dc:creator>axew3</dc:creator>
				<category><![CDATA[Do you know?]]></category>
		<category><![CDATA[0x]]></category>
		<category><![CDATA[hexadecimal]]></category>
		<category><![CDATA[mediawiki]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://www.w3it.org/blog/?p=173</guid>
		<description><![CDATA[Many of the values archived on /for the Media Wiki software on a default installation and that constitute the environment data sources for this application written in php are encoded in hexadecimal, so for example the field related to the users options look like this sequence (the string need to be considered on one single [...]]]></description>
			<content:encoded><![CDATA[<p>Many of the values archived on /for the Media Wiki software on a default installation and that constitute the environment data sources for this application written in php are encoded in hexadecimal, so for example the field related to the users options look like this sequence (the string need to be considered on one single line without spaces and tabs: it has been split on several lines to do not breack out html tables):</p>
<p><span id="more-173"></span><br />
<code><span style="color:#FF0000"> 0x</span>717569636b6261723d310a756e6465726c696e653<br />
d320a636f6c733d38300a726f77733d32350a<br />
7365617263686c696d69743d32300a636f6e7<br />
46578746c696e65733d350a636f6e74657874<br />
63686172733d35300a64697361626c6573756<br />
7676573743d300a736b696e3d0a6d6174683d<br />
310a7573656e657772633d300a72636461797<br />
33d370a72636c696d69743d35300a776c6c69<br />
6d69743d3235300a686964656d696e6f723d30<br />
0a686967686c6967687462726f6b656e3d310a<br />
737475627468726573686f6c643d300a707265<br />
766965776f6e746f703d310a707265766965776<br />
f6e66697273743d300a6564697473656374696f<br />
6e3d310a6564697473656374696f6e6f6e72696<br />
76874636c69636b3d300a656469746f6e64626<br />
c636c69636b3d300a6564697477696474683d3<br />
00a73686f77746f633d310a73686f77746f6f6c6<br />
261723d310a6d696e6f7264656661756c743d3<br />
00a646174653d64656661756c740a696d61676<br />
573697a653d320a7468756d6273697a653d320<br />
a72656d656d62657270617373776f72643d300<br />
a6e6f63616368653d300a646966666f6e6c793d<br />
300a73686f7768696464656e636174733d300a<br />
6e6f726f6c6c6261636b646966663d300a656e6<br />
f74696677617463686c69737470616765733d3<br />
00a656e6f7469667573657274616c6b7061676<br />
5733d310a656e6f7469666d696e6f7265646974<br />
733d300a656e6f74696672657665616c616464<br />
723d300a73686f776e756d6265727377617463<br />
68696e673d310a66616e63797369673d300a65<br />
787465726e616c656469746f723d300a657874<br />
65726e616c646966663d300a666f7263656564<br />
697473756d6d6172793d300a73686f776a756d<br />
706c696e6b733d310a6a7573746966793d300a<br />
6e756d62657268656164696e67733d300a7573<br />
656c697665707265766965773d300a77617463<br />
686c697374646179733d330a657874656e6477<br />
617463686c6973743d300a77617463686c6973<br />
74686964656d696e6f723d300a77617463686c<br />
69737468696465626f74733d300a7761746368<br />
6c697374686964656f776e3d300a7761746368<br />
6c69737468696465616e6f6e733d300a776174<br />
63686c697374686964656c69753d300a776174<br />
63686372656174696f6e733d300a7761746368<br />
64656661756c743d300a77617463686d6f7665<br />
733d300a776174636864656c6574696f6e3d30<br />
0a6e6f636f6e766572746c696e6b3d300a76617<br />
269616e743d656e0a6c616e67756167653d656<br />
e0a7365617263684e73303d31</code><br />
while this is the text translation of the hexadecimal:</p>
<blockquote><p>quickbar=1<br />
underline=2<br />
cols=80<br />
rows=25<br />
searchlimit=20<br />
contextlines=5<br />
contextchars=50<br />
disablesuggest=0<br />
skin=<br />
math=1<br />
usenewrc=0<br />
rcdays=7<br />
rclimit=50<br />
wllimit=250<br />
hideminor=0<br />
highlightbroken=1<br />
stubthreshold=0<br />
previewontop=1<br />
previewonfirst=0<br />
editsection=1<br />
editsectiononrightclick=0<br />
editondblclick=0<br />
editwidth=0<br />
showtoc=1<br />
showtoolbar=1<br />
minordefault=0<br />
date=default<br />
imagesize=2<br />
thumbsize=2<br />
rememberpassword=0<br />
nocache=0<br />
diffonly=0<br />
showhiddencats=0<br />
norollbackdiff=0<br />
enotifwatchlistpages=0<br />
enotifusertalkpages=1<br />
enotifminoredits=0<br />
enotifrevealaddr=0<br />
shownumberswatching=1<br />
fancysig=0<br />
externaleditor=0<br />
externaldiff=0<br />
forceeditsummary=0<br />
showjumplinks=1<br />
justify=0<br />
numberheadings=0<br />
uselivepreview=0<br />
watchlistdays=3<br />
extendwatchlist=0<br />
watchlisthideminor=0<br />
watchlisthidebots=0<br />
watchlisthideown=0<br />
watchlisthideanons=0<br />
watchlisthideliu=0<br />
watchcreations=0<br />
watchdefault=0<br />
watchmoves=0<br />
watchdeletion=0<br />
noconvertlink=0<br />
variant=en<br />
language=en<br />
searchNs0=1</p></blockquote>
<p>An useful, well done and simple Php function grabbed from <a title="php" href="http://www.php.net/">php.net</a> that convert hexadecimal to binary-string is this:<br />
<code>// Convert a hex-string to binary-string (the way back from bin2hex) - by Chaos79</code><br />
function hex2bin($h)<br />
{<br />
if (!is_string($h)) return null;<br />
$r=&#8221;;<br />
for ($a=0; $a &lt; strlen($h); $a+=2) { $r.=chr(hexdec($h{$a}.$h{($a+1)})); }<br />
return $r;<br />
}</p>
<p>echo bin2hex(&#8216;Hello&#8217;); // result: 48656c6c6f<br />
echo hex2bin(&#8216;48656c6c6f&#8217;); // result: Hello</p>
<p>Note: you need to cut off the initial 0x characters from the passed hexadecimal value or the conversion will return nothing.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.w3it.org/blog/2009/05/20/media-wiki-couriosity-exadecimal-values-for-archived-mysql-values/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

