<?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>Javaz Blog</title>
	<atom:link href="http://javaz.org/feed/" rel="self" type="application/rss+xml" />
	<link>http://javaz.org</link>
	<description>My tech blog in my horrible english</description>
	<lastBuildDate>Sun, 05 Feb 2012 16:43:22 +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>We&#8217;re sorry, but your DNA contains violations of our intellectual property</title>
		<link>http://javaz.org/2012/02/were-sorry-but-your-dna-contains-violations-of-our-intellectual-property/</link>
		<comments>http://javaz.org/2012/02/were-sorry-but-your-dna-contains-violations-of-our-intellectual-property/#comments</comments>
		<pubDate>Fri, 03 Feb 2012 18:17:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://javaz.org/?p=180</guid>
		<description><![CDATA[First of all, I&#8217;m not native English spoken person. I&#8217;m writing/reading in English with purpose of learning. So, you warned, my sentences could be awful &#160; Current situation in digital data world is sad, and ridiculous. Why ridiculous? Because Big companies told us what to do, how to live. Why sad? Because if you not [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>First of all, I&#8217;m not native English spoken person. I&#8217;m writing/reading in English with purpose of learning. So, you warned, my sentences could be awful <img src='http://javaz.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p></blockquote>
<p>&nbsp;</p>
<blockquote><p>Current situation in digital data world is sad, and ridiculous. Why ridiculous? Because Big companies told us what to do, how to live. Why sad? Because if you not obey, you can go to jail. Long time ago, when knowledge was almost as valued as gold, peoples likes to hear bards, musicians,  singers, sages. No one cared about copyrighting as now. You could write down someone&#8217;s music and words and try to perform it. If you was not decent the only reward you could got &#8212; rotten tomatoes and laughs. First books required crazy amount of work, and was mostly knowledge, not entertainment. Copying was not much concern of authors, because initially it was difficult and expensive. Then appeared movies, and world begin to be more care about money axis. And somewhere there, &#171;art&#187; lost it&#8217;s value, replaced by $ signs and many zeros. So, let me present to you some hypothetical situation, which can have it&#8217;s place in some near future:</p></blockquote>
<p>&#8230; All happens in some court room, while trial processing. This all happens in world where government allowed media companies to make arrest.</p>
<p>- Your Honor, can you look at this evidence? &#8212; said tall attorney, giving to judge a paper sheet. Judge took it, put his glasses on, and calmly said:</p>
<p>- Hmm, seems here only three numbers. Let me read it to you all: 64, 48, 0. That&#8217;s all. What this means? &#8212; anticipatively he asked.</p>
<p>- Your Honor, let me &#8230; But attorney was interrupted by two guys wearing white tuxedo came into court room, swinging some stamped paper.</p>
<p>- Judge Trelawney, you&#8217;re under arrest for copyright violating. You just distributed part of book &#171;<strong>Howling Pecker and Half-Ink Printer</strong>&#171;. The numbers you&#8217;ve read are belong to this best selling book, and you have no right to redistribute it, wholly or partially in any way. So, our estimate of losses is approximately 115 millions, plus minus 10%.</p>
<p>-Whaa?.. Eyes of judge were almost so wide as he mouth became. &#8212; It&#8217;s only three numbers!.. How you claim it&#8217;s from your book?</p>
<p>- We don&#8217;t need to claim or prove this. As law states very clearly, citing: &#171;&#8230; redistribution prohibited wholly or partially&#8230; &#171;. You sir just broke the law, and your punishment will be lawful, be sure.</p>
<p>Judge skin whitened, and at these moments, doors burst ajar and two guys wearing havana shirts came in. One with big mouth briefly show some paper with big stamp, and claimed:</p>
<p>-  Judge Trelawney, you&#8217;re under arrest for copyright violating. You just distributed part of our property &#8212; popular song &#171;Even Numbers&#187;. The numbers you&#8217;ve read are belong to this song, and fully licensed from book  &#187;Howling Pecker and Half-Ink Printer&#187;. Our estimate of losses is approximately 865 millions, and counting.</p>
<p>At this moment, doors of court once opened and three guys appeared, all in black tuxedo with black sunglasses. Center one stepped forward, and stated:</p>
<p>-  Judge Trelawney, you are under arrest for copyright violating.  You just distributed part of each of 232 411 movies for which we held the rights. You said aloud three numbers, of course it was width and height of movie frame, and it&#8217;s background color. As you can guess, we are used this frame in beginning and in end, sometimes in middle of almost any movie you ever seen. As law makes no difference in any part of &#171;product of art&#187; in favor of other, these black screen frames as valuable for our company as any others. And you make for us colossal losses, estimate is near to 1400 billions, and counting. Please, come with &#8230; at this words glass windows broke, and some voice said in loudspeaker:</p>
<p>- This is F.B.I.! Please all remain at your places, do not move, we coming!</p>
<p>After these words few field agents quickly rushed inside, all with gun trailed at judge. Judge standing with ashe skin, and hand near heart. One of agents loudly said:</p>
<p>- This is agent <strong>Sherman</strong>, IP division! You&#8217;re violating our super secret innovating patent US PT Number 239,965,<strong>1984</strong>,758,359 (&#171;Representing video frames with only three numbers &#8212; width, height and pixel color&#187;). Besides, we stored our program which can do conversion in CIA servers, so you are accused in hacking them too. How else you could convert those movies in our format?..</p>
<p>After these words, judge passed out.</p>
<p>He found himself in comfortable bed in white room. Neat nurse stand near him, smiling.</p>
<p>- Hello Mr. Trelawney! How are you feeling now?</p>
<p>- How do I feel? Damn, didn&#8217;t know that some stupid numbers could make me some problems. I&#8217;m out of my mind?</p>
<p>- Of course not, &#8212; said smiling nurse, treating him as child. &#8212; You&#8217;re just fine. For at least 2 minutes more.</p>
<p>- What do you mean? What will be after two minutes pass?</p>
<p>- I&#8217;m sorry, Mr. Trelawney, but we unfortunately have to sleep you. For good.</p>
<p>- Emm&#8230; Are you joking? This is killing!!!</p>
<p>- Technically no. You see, when you passed out, we made for you blood analysis, and&#8230; I&#8217;m really, really sorry, but your DNA contains patented bit-sequences. You know, it&#8217;s like bytes in computer, of course you know, you are smart one. We contacted patent holder, and this company not interested in licensing these bit-sequences to you. Thus we as a government medical health care center had to remove this little violation.</p>
<p>- Little??? Violation?.. My god, you got to be crazy. What kind of law is this???</p>
<p>- It&#8217;s above law, it&#8217;s <strong>ACTA</strong>, Sir.</p>
<p>These whole madness ended with <strong>Silent Hiss</strong> of injection.</p>
<blockquote><p>Of course, this all is hyperbola. My point here is not &#171;Let&#8217;s stole music/video/books!&#187;, but &#171;Where&#8217;s exact and thoroughly thought rules regarding informational content.&#187; In current patent/IP/author rights world, soon or later such important questions will arise:</p>
<ul>
<li>Where is the border after which my bytes can be treated as patented/copyrighted by anyone? Is it 1Mb? 1Kb? or 3 bytes?</li>
<li>Imagine that this border is X bytes (X &gt;=2). What prevent me to distribute one sequence of them (of length less than X)?</li>
<li>Am I allowed (as written in many Constitutions) to freely post to internet some bytes? Who decides which bytes are allowed, which not? Speaking figuratively, which &#171;words&#187; I can speak, which not.</li>
</ul>
<p>Assume that someone split any file to bytes, and distribute information in bits to 8 peoples. Each people have only information about one single bit in each byte, and no information about whole file. So you can distribute some bytes, even don&#8217;t know what&#8217;s there. This like torrents, but difference is that there&#8217;s no one with full file, so you can&#8217;t be technically accused of distributing some licensed content, as you have no such.</p>
<p>With this sad <del>copyrighted</del> note I end this post, in hope that there will be hope.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://javaz.org/2012/02/were-sorry-but-your-dna-contains-violations-of-our-intellectual-property/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FFmpeg convert 3D Video for Nintendo 3DS</title>
		<link>http://javaz.org/2011/12/ffmpeg-convert-3d-video-for-nintendo-3ds/</link>
		<comments>http://javaz.org/2011/12/ffmpeg-convert-3d-video-for-nintendo-3ds/#comments</comments>
		<pubDate>Fri, 09 Dec 2011 16:03:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[3D video]]></category>
		<category><![CDATA[convert video for 3ds]]></category>
		<category><![CDATA[ffmpeg]]></category>
		<category><![CDATA[Nintendo 3DS]]></category>

		<guid isPermaLink="false">http://javaz.org/?p=170</guid>
		<description><![CDATA[There&#8217;s already manuals, but either they aren&#8217;t splitting, or splitting and &#171;forgetting&#187; about 2nd Video, or they producing files which Nintendo 3DS not seeing. I&#8217;m proposing here short info about how to make 3D Video for Nintendo 3DS 1. First of all, you get somewhere 3d-video file, open it, and look, if it top/bottom or [...]]]></description>
			<content:encoded><![CDATA[<p>There&#8217;s already manuals, but either they aren&#8217;t splitting, or splitting and &#171;forgetting&#187; about 2nd Video, or they producing files which <strong>Nintendo 3DS</strong> not seeing.</p>
<p>I&#8217;m proposing here short info about how to make <strong>3D Video</strong> for <strong>Nintendo 3DS</strong> <img src='http://javaz.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>1. First of all, you get somewhere 3d-video file, open it, and look, if it top/bottom or left/right. Anaglyph variants are not supposed to be splitted, so dump them.</p>
<p>2. Supposing you got <strong>&#171;super-video-3d.mkv&#187;</strong>, and it&#8217;s top-bottom variant. First step &#8212; convert it to required size:</p>
<blockquote><p>ffmpeg -y -i &#171;super-video-3d.mkv&#187; -s 400&#215;480 -r 20 -aspect 10:6 -vcodec mjpeg -qscale 1 -vf crop=400:240:0:0 -acodec pcm_s16le -ac 2 &#171;new_l.avi&#187;<br />
ffmpeg -y -i &#171;super-video-3d.mkv&#187; -s 400&#215;480 -r 20 -aspect 10:6 -vcodec mjpeg -qscale 1 -vf crop=400:240:0:240 -an &#171;new_r.avi&#187;</p></blockquote>
<p>If you have side-by-side video, then you need to run these commands:</p>
<blockquote><p>ffmpeg -y -i &#171;super-video-3d.mkv&#187; -s 800&#215;240 -r 20 -aspect 10:6 -vcodec mjpeg -qscale 1 -vf crop=400:240:0:0 -acodec pcm_s16le -ac 2 &#171;new_l.avi&#187;<br />
ffmpeg -y -i &#171;super-video-3d.mkv&#187; -s 800&#215;240 -r 20 -aspect 10:6 -vcodec mjpeg -qscale 1 -vf crop=400:240:400:0 -an &#171;new_r.avi&#187;</p></blockquote>
<p>If you need mirror left-right videos, simply exchange &#171;new_l.avi&#187; and &#187;new_r.avi&#187;.</p>
<p>Explaining parameters. <strong>-i</strong> specified input file; <strong>-s</strong> specified rescale size;  <strong>-r 20</strong> meant that video must be 20 FPS (<strong>3DS</strong> doesn&#8217;t support more than that)</p>
<p><strong>-vcodec mjpeg -qscale 1</strong> specifies that video stream will be recoded with best quality. You can change quality here (1=best, 31=worst).</p>
<p><strong>-vf  crop</strong> specified part of screen that need to be cuted (to get needed frame). Audio converted to <strong>PCM</strong> format (which is pretty big), but it&#8217;s better to have it, than to have some weird problems with audio (For example, if you recode video, and copy <strong>aac</strong> audio, you pretty sure will have broken file). And also make 2 channels with <strong>-ac 2</strong> (If there <strong>5.1</strong> or more)</p>
<p>3. After we got two files  <strong>&#171;new_l.avi&#187;</strong> and <strong>&#171;new_r.avi&#187;</strong>, we need to find out how many parts we need: simply divide length of movie by 10 minutes. For example, you need 10 parts.</p>
<p>4. Splitting + converting is as simple as cuting, here&#8217;s command example:</p>
<blockquote><p>ffmpeg -y -i &#171;new_l.avi&#187; -i &#171;new_r.avi &#187; -vcodec copy -acodec adpcm_ima_wav -ar 22050 -ab 32 -ac 2 -vcodec copy -map 0:0 -map 0:1 -map 1:0 -ss 00:00:00 -t 00:09:59.90 &#171;HTD_0001.AVI&#187;<br />
ffmpeg -y -i &#171;new_l.avi&#187; -i &#171;new_r.avi &#187; -vcodec copy -acodec adpcm_ima_wav -ar 22050 -ab 32 -ac 2 -vcodec copy -map 0:0 -map 0:1 -map 1:0 -ss 00:10:00 -t 00:09:59.90 &#171;HTD_0002.AVI&#187;<br />
&#8230;</p>
<p>ffmpeg -y -i &#171;new_l.avi&#187; -i &#171;new_r.avi &#187; -vcodec copy -acodec adpcm_ima_wav -ar 22050 -ab 32 -ac 2 -vcodec copy -map 0:0 -map 0:1 -map 1:0 -ss 01:30:00 -t 00:09:59.90 &#171;HTD_0010.AVI&#187;</p></blockquote>
<p>5. In this example, I&#8217;ve got encoded <strong>How To Train Your Dragon 3D</strong> for mine <strong>Nintendo 3DS</strong>. Totally cool picture, maybe not so cool in dark places (strong banding), but looks great with scenes with tiny details, and/or with fresh colors.</p>
<p>Cheers!</p>
<p>P.S. I updated this post, to cover side-to-side video as well.</p>
]]></content:encoded>
			<wfw:commentRss>http://javaz.org/2011/12/ffmpeg-convert-3d-video-for-nintendo-3ds/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Residual with Russian Grim Fandango</title>
		<link>http://javaz.org/2011/08/residual-with-russian-grim-fandango/</link>
		<comments>http://javaz.org/2011/08/residual-with-russian-grim-fandango/#comments</comments>
		<pubDate>Sat, 20 Aug 2011 18:32:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://javaz.org/?p=148</guid>
		<description><![CDATA[If you want to play Grim Fandango with russian subtitles (this is not about horrible voice, available in internet, only translation), then you need get latest Residual, and two more files. Here, you can download archive with translation file GRIM.TAB and font file, you need to extract it where your GRIM.TAB placed. This translation made [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a href="http://javaz.org/fotos/grim-fandango-screenshot.png" target="_blank"><img class="aligncenter" title="Grim Fandango Russian" src="http://javaz.org/fotos/grim-fandango-screenshot.png" alt="" width="400" height="320" /></a></p>
<p>If you want to play <strong>Grim Fandango</strong> with russian subtitles (this is not about horrible voice, available in internet, only translation), then you need get latest Residual, and two more files.</p>
<p>Here, you can download <a title="Grim Fandango russian translate" href="http://javaz.org/files/grim-russian-residual.zip" target="_blank">archive</a> with translation file <strong>GRIM.TAB</strong> and font file, you need to extract it where your <strong>GRIM.TAB</strong> placed. This translation made by well-known group, <a title="Enpy translation group" href="http://www.enpy.net/" onclick="pageTracker._trackPageview('/outgoing/www.enpy.net/?referer=');"><strong>Enpy</strong></a>, kudos and credits to them!</p>
<p>After this, you need to get <strong>Residual</strong>, either download from their <a title="Residual home page" href="http://residual.sourceforge.net/" onclick="pageTracker._trackPageview('/outgoing/residual.sourceforge.net/?referer=');">site</a>, or build from git.</p>
<p>Git way:</p>
<blockquote><p>git clone https://github.com/residual/residual.git</p>
<p>cd residual</p>
<p>./configure</p>
<p>gmake</p></blockquote>
<p>After you built <strong>residual</strong> executable, you should try to add your game directory and play. If all went good, you can enjoy one of the greatest games ever with Russian translation, and great original voices <img src='http://javaz.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://javaz.org/2011/08/residual-with-russian-grim-fandango/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FreeBSD Java Plugin x64</title>
		<link>http://javaz.org/2011/01/freebsd-java-plugin-x64/</link>
		<comments>http://javaz.org/2011/01/freebsd-java-plugin-x64/#comments</comments>
		<pubDate>Fri, 28 Jan 2011 09:45:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://javaz.org/?p=137</guid>
		<description><![CDATA[Here&#8217;s manual how to make installed diablo java x64 work in browsers, like in Opera for example. If you installed JDK or JRE via PC-BSD PBI, then you should make soft-links /usr/Programs/JavaJDK/diablo-jdk1.6.0 -&#62; /usr/local/diablo-jdk1.6.0 Also, you need create additional link: /usr/local/diablo-jdk1.6.0/jre/lib/amd64/server -&#62; /usr/local/diablo-jdk1.6.0/jre/lib/amd64/client After this, Opera will find installed JRE automatically, and enable it. To [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s manual how to make installed diablo java x64 work in browsers, like in Opera for example.</p>
<p>If you installed JDK or JRE via PC-BSD PBI, then you should make soft-links</p>
<blockquote><p>/usr/Programs/JavaJDK/diablo-jdk1.6.0 -&gt; /usr/local/diablo-jdk1.6.0</p></blockquote>
<p>Also, you need create additional link:</p>
<blockquote><p>/usr/local/diablo-jdk1.6.0/jre/lib/amd64/server -&gt; /usr/local/diablo-jdk1.6.0/jre/lib/amd64/client</p></blockquote>
<p>After this, Opera will find installed JRE automatically, and enable it.</p>
<p>To play some games/launch some apps, you need to tweak java permissions (to allow sound, graphics, filesystem access, etc).</p>
<p>For Opera:</p>
<p>edit (under root) file /&#8230;. opera.policy</p>
<p>and add there some of this lines (the choice is yours!):</p>
<blockquote><p>grant {</p>
<p>permission java.net.SocketPermission  #to allow applets access whole internet</p>
<p>permission java.awt.AWTPermission &#171;accessClipboard&#187;;</p>
<p>permission java.net.SocketPermission &#171;localhost:5577&#8243; ,  &#171;accept, connect, listen&#187;;</p>
<p>permission java.lang.RuntimePermission &#171;loadLibrary.&lt;library name&gt;&#187;;</p>
<p>permission javax.sound.sampled.AudioPermission &#171;﻿﻿play&#187;</p>
<p>permission java.security.AllPermission; #Not recommended at all <img src='http://javaz.org/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>}</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://javaz.org/2011/01/freebsd-java-plugin-x64/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How’s there FreeBSD</title>
		<link>http://javaz.org/2011/01/hows-there-freebsd/</link>
		<comments>http://javaz.org/2011/01/hows-there-freebsd/#comments</comments>
		<pubDate>Wed, 26 Jan 2011 15:51:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://javaz.org/?p=133</guid>
		<description><![CDATA[FreeBSD Quarterly Status Report is out &#8212; now it&#8217;s time to check what&#8217;s new in Q4 2010 happened. BSDInstall is on going &#8212; not rewritten sysinstall, but new program to replace it. It&#8217;s pretty good with advanced features, like gpt, PXE install, live CD as installation media, etc. In few weeks from Jan 2011, Chromium [...]]]></description>
			<content:encoded><![CDATA[<p>FreeBSD Quarterly Status Report is <span style="color: #888888;"><a href="http://www.freebsd.org/news/status/report-2010-10-2010-12.html" onclick="pageTracker._trackPageview('/outgoing/www.freebsd.org/news/status/report-2010-10-2010-12.html?referer=');">out</a></span> &#8212; now it&#8217;s time to check what&#8217;s new in Q4 2010 happened.</p>
<p>BSDInstall is on going &#8212; not rewritten sysinstall, but new program to replace it. It&#8217;s pretty good with advanced features, like gpt, PXE install, live CD as installation media, etc.</p>
<p>In few weeks from Jan 2011, Chromium could conquer FreeBSD&#8217;s minds as well as other OSes. Great work, porters!</p>
<p>ZFS v28 which will bring a lot of use, and probably a lot of license problems, almost done. Eager to wait for it <img src='http://javaz.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Also, I glad that FreeBSD is on it&#8217;s way for wider audience - FreeBSD as Home Theater PC will be GGrrreat feature as for me.</p>
<p>And of course, EC2 ans PS3 platforms. One of them is for fun, while other &#8212; for mature and efficient products. Honestly, I&#8217;m lacking of some FreeBSD solution like DRBD, Heartbeat or whatever. Or maybe it&#8217;s just me.</p>
<p>Resource containers, interesting project which is very close to its release, will bring to platform even more stability, allowing to give some level of access to untrusted users. Or to unexperienced ones <img src='http://javaz.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Many, many other small things which maybe didn&#8217;t even mentioned in report are important too. The rain it&#8217;s not a ten big or cool drops, it&#8217;s all of them.</p>
<p>FreeBSD Rocks! Go, Beastie, Go!</p>
]]></content:encoded>
			<wfw:commentRss>http://javaz.org/2011/01/hows-there-freebsd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

