<?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>Development, Solutions, Data Mining &amp; Architecture</title>
	<atom:link href="http://dsda.ru/feed/" rel="self" type="application/rss+xml" />
	<link>http://dsda.ru</link>
	<description></description>
	<lastBuildDate>Sun, 17 Nov 2019 20:00:34 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.3.3</generator>
	<item>
		<title>How to install and use mozilla/TTS</title>
		<link>http://dsda.ru/2020/04/30/how-to-install-and-use-mozilla-tts/</link>
				<comments>http://dsda.ru/2020/04/30/how-to-install-and-use-mozilla-tts/#respond</comments>
				<pubDate>Thu, 30 Apr 2020 05:34:00 +0000</pubDate>
		<dc:creator><![CDATA[codebyzen]]></dc:creator>
				<category><![CDATA[notes]]></category>
		<category><![CDATA[ai]]></category>
		<category><![CDATA[deeplearning]]></category>
		<category><![CDATA[machinelearning]]></category>
		<category><![CDATA[ml]]></category>
		<category><![CDATA[mozilla]]></category>
		<category><![CDATA[neuralnetwork]]></category>
		<category><![CDATA[TTS]]></category>

		<guid isPermaLink="false">http://dsda.ru/?p=2073</guid>
				<description><![CDATA[My first experiment with machine learning. I show you how to get and setup Mozilla Text To Speech neural network. How to learn it, and how to use. I try to setup mozilla/tts (TTS &#8211; text to speech) to my MacBook Pro 2017. And I need to say, learning TTS can take few days&#8230; And [&#8230;]]]></description>
								<content:encoded><![CDATA[
<p>My first experiment with machine learning. I show you how to get and setup Mozilla Text To Speech neural network. How to learn it, and how to use.</p>



<span id="more-2073"></span>



<p>I try to setup mozilla/tts (TTS &#8211; text to speech) to my MacBook Pro 2017. And I need to say, learning TTS can take few days&#8230; And if you have same laptop as I, you need more powerfull computer.</p>



<p>So. At first I make new VirtualBox instance of Debian 9 or 10 and x64. I think no need to explain how to do it. All you need it&#8217;s standard utilities and ssh server to install while you install debian  Go to next step <img src="https://s.w.org/images/core/emoji/12.0.0-1/72x72/1f609.png" alt="😉" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>



<p>Let&#8217;s clone from git. </p>



<p>We need to correct environment var PATH. Execute <code>cat .profile > .bash_profile</code> after that our ~./bash_profile must be same as lower block.</p>



<pre class="wp-block-code"><code>alias python='python3'
alias python2='python2'

# if running bash
if &#91; -n "$BASH_VERSION" ]; then
    # include .bashrc if it exists
    if &#91; -f "$HOME/.bashrc" ]; then
	. "$HOME/.bashrc"
    fi
fi

# set PATH so it includes user's private bin if it exists
if &#91; -d "$HOME/bin" ] ; then
    PATH="$HOME/bin:$PATH"
fi

# set PATH so it includes user's private bin if it exists
if &#91; -d "$HOME/.local/bin" ] ; then
    PATH="$HOME/.local/bin:$PATH"
fi</code></pre>



<p>Let&#8217;s make some additional setup</p>



<pre class="wp-block-code"><code>cd # Just to go to our home directory
su # To install GIT
apt-get update
apt-get upgrade
apt-get install git # Say Y to all questions

apt-get install pkg-config # for matplotlib
apt-get install python3-pip # To use python3 package manager
apt-get install python-dev python3-dev
apt-get install build-essential libssl-dev libffi-dev libxml2-dev libxslt1-dev zlib1g-dev
apt-get install libsndfile1
apt-get install python3-cairo
apt-get install setuptools

exit # Return to our non-privileged user

pip3 install freetype-py
pip3 install pypng

cat requirements.txt 
pip3 install numpy==1.14.3
pip3 install 'torch>=0.4.1'
pip3 install librosa==0.5.1
pip3 install Unidecode==0.4.20
pip3 install tensorboard
pip3 install tensorboardX
pip3 install Pillow
pip3 install flask
pip3 install tqdm
pip3 install soundfile
pip3 install matplotlib==2.0.2 # 2.2.2 with no errors


wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
chmod 755 ./Miniconda3-latest-Linux-x86_64.sh
./Miniconda3-latest-Linux-x86_64.sh
unlink ./Miniconda3-latest-Linux-x86_64.sh
~/miniconda3/bin/conda install -c ilastik scipy

su -c 'chmod -R 755 ./TTS/'

cd ./TTS

su -c 'python3 ./setup.py develop' # we have error but i'ts ok

pip3 install segments
pip3 install attrs

delete all rows from setup.py in dependency block except phonemizer

get models or learn

python3 ./synthesize.py </code></pre>



<p>Now we need to setup default python version to 3 or higher. Read article in my blog &gt; <a rel="noreferrer noopener" href="https://dsda.ru/2019/11/13/how-to-set-python-default-version/" target="_blank">How to set Python&#8217;s default version</a></p>



<p>Next step is clone TTS from mozilla git repository.</p>



<pre class="wp-block-code"><code>git clone https://github.com/mozilla/TTS.git</code></pre>



<p>Wait some time wile all files downloaded&#8230;</p>



<pre class="wp-block-code"><code>cd TTS # it's our main neural network directory
su root -c 'python3 ./setup.py develop'</code></pre>



<p>After we try to install by setup.py we have error. </p>



<pre class="wp-block-code"><code>* The following required packages can not be built:
* freetype, png</code></pre>



<p>We need to install it by hands.</p>



<pre class="wp-block-code"><code>pip3 install freetype-py
pip3 install pypng</code></pre>



<p>After we install all missed libraries try to setup another once</p>



<pre class="wp-block-code"><code>segments
attrs
joblist
su -c 'apt-get install python3-matplotlib'</code></pre>



<p>Version of matplotlib you can get from requirements.txt&nbsp;by command <code>cat requirements.txt</code></p>



<p>Before we start install all things from requirements.txt or use setup.py like in README.md we need to install some additional things not listed in instructions. </p>



<p></p>



<p>Now we have python3 by default and we can start setup out environment for TTS.</p>



<p></p>
]]></content:encoded>
							<wfw:commentRss>http://dsda.ru/2020/04/30/how-to-install-and-use-mozilla-tts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
							</item>
		<item>
		<title>How to set Python&#8217;s default version?</title>
		<link>http://dsda.ru/2019/11/13/how-to-set-python-default-version/</link>
				<comments>http://dsda.ru/2019/11/13/how-to-set-python-default-version/#respond</comments>
				<pubDate>Wed, 13 Nov 2019 18:09:37 +0000</pubDate>
		<dc:creator><![CDATA[codebyzen]]></dc:creator>
				<category><![CDATA[notes]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[python3]]></category>

		<guid isPermaLink="false">http://dsda.ru/?p=2067</guid>
				<description><![CDATA[Changing the default python version system-wide would break some applications that depend on python2. You can alias the commands in most shells, Mac OS X uses bash by default. If you also do, put this into your ~/.bash_profile: python&#160;command now refers to&#160;python3. If you want the original python (that refers to&#160;python2), you can escape the [&#8230;]]]></description>
								<content:encoded><![CDATA[
<p>Changing the default python version system-wide would break some applications that depend on python2.</p>



<p>You can alias the commands in most shells, Mac OS X uses bash by default. If you also do, put this into your <code>~/.bash_profile</code>:</p>



<pre class="wp-block-code lang:sh decode:true"><code>alias python='python3'</code></pre>



<p><code>python</code>&nbsp;command now refers to&nbsp;<code>python3</code>. If you want the original python (that refers to&nbsp;<em>python2</em>), you can escape the alias i.e. doing&nbsp;<code>\python</code>&nbsp;will launch&nbsp;<em>python2</em>&nbsp;leaving the alias untouched)</p>



<p>If you launch interpreters more often&nbsp;<em>(I do)</em>, better is to:</p>



<pre class="wp-block-code lang:sh decode:true"><code>alias 2='python2'
alias 3='python3'</code></pre>



<p>Open a new shell session and these aliases will be available. If you want it to be effective in current session then you&#8217;ll have to source it:</p>



<pre class="wp-block-code lang:sh decode:true"><code>source ~/.bash_profile</code></pre>



<hr class="wp-block-separator"/>



<p>Tip for executable right way:</p>



<pre class="wp-block-code lang:sh decode:true"><code>#!/usr/bin/env python</code></pre>



<p>use:</p>



<pre class="wp-block-code lang:sh decode:true"><code>#!/usr/bin/env python3</code></pre>



<p>the system will use python3 for running python&nbsp;<strong><em>executables</em></strong>.</p>
]]></content:encoded>
							<wfw:commentRss>http://dsda.ru/2019/11/13/how-to-set-python-default-version/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
							</item>
		<item>
		<title>How to denied go back to Splash screen</title>
		<link>http://dsda.ru/2018/08/21/how-to-denied-go-back-to-splash-screen/</link>
				<comments>http://dsda.ru/2018/08/21/how-to-denied-go-back-to-splash-screen/#respond</comments>
				<pubDate>Tue, 21 Aug 2018 11:44:17 +0000</pubDate>
		<dc:creator><![CDATA[codebyzen]]></dc:creator>
				<category><![CDATA[notes]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[kotlin]]></category>

		<guid isPermaLink="false">http://iteye.ru/?p=2005</guid>
				<description><![CDATA[Just simple Manifest.xml parameter do denied go back to splash screen or just kick from history for back android button. To denied back button to previous activity you need to add this string to Manifest Activity. android:noHistory="true" Activity must be like that: [crayon-5eaa94a4743aa901043692/] &#160;]]></description>
								<content:encoded><![CDATA[<p>Just simple Manifest.xml parameter do denied go back to splash screen or just kick from history for back android button.<br />
To denied back button to previous activity you need to add this string to Manifest Activity.<br />
<code>android:noHistory="true"</code><br />
Activity must be like that:</p><pre class="crayon-plain-tag">&lt;activity
    android:name=".mvp.splash.SplashActivity"
    android:theme="@style/Theme.AppCompat.Light.NoActionBar"
    android:noHistory="true"&gt;
    &lt;intent-filter&gt;
        &lt;action android:name="android.intent.action.MAIN" /&gt;
        &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
    &lt;/intent-filter&gt;
&lt;/activity&gt;</pre><p>&nbsp;</p>
]]></content:encoded>
							<wfw:commentRss>http://dsda.ru/2018/08/21/how-to-denied-go-back-to-splash-screen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
							</item>
		<item>
		<title>Cannot set LC_CTYPE to default locale: Solution!</title>
		<link>http://dsda.ru/2017/01/15/cannot-set-lc_ctype-to-default-locale-solution/</link>
				<comments>http://dsda.ru/2017/01/15/cannot-set-lc_ctype-to-default-locale-solution/#respond</comments>
				<pubDate>Sun, 15 Jan 2017 19:20:37 +0000</pubDate>
		<dc:creator><![CDATA[codebyzen]]></dc:creator>
				<category><![CDATA[notes]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[errors]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[locale]]></category>
		<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://iteye.ru/?p=1970</guid>
				<description><![CDATA[Sometimes while I setup new server I have following errors: [crayon-5eaa94a47468b061417423/] And I have simple solution to fix this issue! [crayon-5eaa94a474690769157710/] After last command select UTF-8 as default. Then [crayon-5eaa94a474691698368018-i/]  then edit [crayon-5eaa94a474693546007041-i/] and comment out [crayon-5eaa94a474695340043864-i/]  line. That&#8217;s all! Enjoy!]]></description>
								<content:encoded><![CDATA[<p>Sometimes while I setup new server I have following errors:</p><pre class="crayon-plain-tag">perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LC_CTYPE = "UTF-8",
	LANG = "C"
    are supported and installed on your system.</pre><p>And I have simple solution to fix this issue!<br />
<span id="more-1970"></span></p><pre class="crayon-plain-tag">sudo locale-gen en_US en_US.UTF-8
sudo dpkg-reconfigure locales</pre><p>After last command select UTF-8 as default.<br />
Then <pre class="crayon-plain-tag">export LC_ALL="en_US.UTF-8"</pre>  then edit <pre class="crayon-plain-tag">/etc/ssh/ssh_config</pre> and comment out <pre class="crayon-plain-tag">SendEnv LANG LC_*</pre>  line.<br />
That&#8217;s all! Enjoy!</p>
]]></content:encoded>
							<wfw:commentRss>http://dsda.ru/2017/01/15/cannot-set-lc_ctype-to-default-locale-solution/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
							</item>
		<item>
		<title>How to compile/make Shallot on MacOSX?</title>
		<link>http://dsda.ru/2016/07/20/how-to-compilemake-shallot-on-macosx/</link>
				<comments>http://dsda.ru/2016/07/20/how-to-compilemake-shallot-on-macosx/#respond</comments>
				<pubDate>Wed, 20 Jul 2016 16:36:36 +0000</pubDate>
		<dc:creator><![CDATA[codebyzen]]></dc:creator>
				<category><![CDATA[notes]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[macos]]></category>
		<category><![CDATA[macosx]]></category>
		<category><![CDATA[onion]]></category>
		<category><![CDATA[shallot]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[tor]]></category>

		<guid isPermaLink="false">http://iteye.ru/?p=1963</guid>
				<description><![CDATA[If you want to compile Shallot on MacOSX and have the same error [crayon-5eaa94a4747bf991179708-i/] , this small todo is for you. At first you must install openssl by brew. [crayon-5eaa94a4747c4036066927/] Make simlink: [crayon-5eaa94a4747c5256650848/] After that just execute next command [crayon-5eaa94a4747c7741610139/] If you already have openssl installed, try to [crayon-5eaa94a4747c8457753952-i/] If you have other errors try to exec [crayon-5eaa94a4747c9993275130-i/] And [&#8230;]]]></description>
								<content:encoded><![CDATA[<p>If you want to compile <a href="https://github.com/katmagic/Shallot">Shallot</a> on MacOSX and have the same error <pre class="crayon-plain-tag">fatal error: 'openssl/bn.h' file not found</pre> , this small todo is for you.<br />
<span id="more-1963"></span><br />
At first you must install openssl by <a href="http://brew.sh/">brew</a>.</p><pre class="crayon-plain-tag">brew install openssl</pre><p>Make simlink:</p><pre class="crayon-plain-tag">cd /usr/local/include
ln -s ../opt/openssl/include/openssl .</pre><p>After that just execute next command</p><pre class="crayon-plain-tag">brew link openssl --force</pre><p>If you already have openssl installed, try to <pre class="crayon-plain-tag">brew remove openssl --ignore-dependences</pre><br />
If you have other errors try to exec <pre class="crayon-plain-tag">xcode-select --install</pre><br />
And if after that you have error, try to take control over compilation in your hands.<br />
Add path to openssl as cc directive:</p><pre class="crayon-plain-tag">cc -std=c99 -O2 -fPIC -finline-functions -Wall -W -Wunused -pedantic -Wpointer-arith -Wreturn-type -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wcast-qual -Wextra -o eschalot eschalot.c -lpthread -lssl -lcrypto -I/usr/local/opt/openssl/include</pre><p>If You have same error in Debian just exec <pre class="crayon-plain-tag">sudo apt-get install libssl-dev</pre></p>
]]></content:encoded>
							<wfw:commentRss>http://dsda.ru/2016/07/20/how-to-compilemake-shallot-on-macosx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
							</item>
		<item>
		<title>Parse useragentstring.com by JavaScript</title>
		<link>http://dsda.ru/2015/11/12/parse-useragentstring-com-by-javascript/</link>
				<comments>http://dsda.ru/2015/11/12/parse-useragentstring-com-by-javascript/#respond</comments>
				<pubDate>Thu, 12 Nov 2015 12:16:16 +0000</pubDate>
		<dc:creator><![CDATA[codebyzen]]></dc:creator>
				<category><![CDATA[notes]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[parse]]></category>
		<category><![CDATA[useragent]]></category>

		<guid isPermaLink="false">http://iteye.ru/?p=1954</guid>
				<description><![CDATA[On one forum I see question about parse www.useragentstring.com/pages/All/ with PHP. I see it simple with XML manipulation and/or regular expression. And I write JavaScript to collect all UserAgents with Versions and Browser names. [crayon-5eaa94a47490a305183735/] With this script I can collect all UA to structure like same: You can open www.useragentstring.com/pages/All/ then open DeveloperConsole and copy [&#8230;]]]></description>
								<content:encoded><![CDATA[<p>On one forum I see question about parse www.useragentstring.com/pages/All/ with PHP. I see it simple with XML manipulation and/or regular expression. And I write JavaScript to collect all UserAgents with Versions and Browser names.<br />
<span id="more-1954"></span></p><pre class="crayon-plain-tag">function getParse() {
	var uas = {};
	var currentNode;
	var currentUA;
	var currentVersion;
	var uaTxt = '';
	var domTree = document.getElementById('liste').getElementsByTagName("*");
	for (currentNodeKey in domTree) {
		currentNode = domTree[currentNodeKey];
		// if node is next UA
		if (currentNode.tagName == 'H3') {
			currentUA = currentNode.innerText.replace(" ","_");
			uas[currentUA] = {};
		};
		// if node is UA version
		if (currentNode.tagName == 'H4') {
			currentVersion = currentNode.innerText;
			uas[currentUA][currentVersion] = [];
		};
		if (currentNode.tagName == 'UL') {
			var liInUl = currentNode.getElementsByTagName("LI");
			for (liInUlKey in liInUl) {
				if (liInUl[liInUlKey].innerText !== undefined) {
					uas[currentUA][currentVersion].push(liInUl[liInUlKey].innerText);
					uaTxt += liInUl[liInUlKey].innerText+'&lt;br&gt;';
				}
			};
		};
	}
	console.log(uas);
	document.body.innerHTML = uaTxt;
};
document.addEventListener("DOMContentLoaded", getParse);</pre><p>With this script I can collect all UA to structure like same:<br />
<img class="alignnone wp-image-2032 size-full" src="http://dsda.ru/wp-content/uploads/2019/04/Screen-Shot-2015-11-12-at-15.12.45-.png" alt="" width="813" height="325" srcset="http://dsda.ru/wp-content/uploads/2019/04/Screen-Shot-2015-11-12-at-15.12.45-.png 813w, http://dsda.ru/wp-content/uploads/2019/04/Screen-Shot-2015-11-12-at-15.12.45--300x120.png 300w, http://dsda.ru/wp-content/uploads/2019/04/Screen-Shot-2015-11-12-at-15.12.45--768x307.png 768w" sizes="(max-width: 813px) 100vw, 813px" /><br />
You can open www.useragentstring.com/pages/All/ then open DeveloperConsole and copy this code to it. And then just type getParse()<br />
This script collect all useragents and place it as text on web page and output it in console like Object.</p>
]]></content:encoded>
							<wfw:commentRss>http://dsda.ru/2015/11/12/parse-useragentstring-com-by-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
							</item>
		<item>
		<title>Get current path with Automator</title>
		<link>http://dsda.ru/2015/11/01/get-current-path-with-automator/</link>
				<comments>http://dsda.ru/2015/11/01/get-current-path-with-automator/#respond</comments>
				<pubDate>Sun, 01 Nov 2015 15:19:05 +0000</pubDate>
		<dc:creator><![CDATA[codebyzen]]></dc:creator>
				<category><![CDATA[notes]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[applescript]]></category>
		<category><![CDATA[automator]]></category>
		<category><![CDATA[macosx]]></category>

		<guid isPermaLink="false">http://iteye.ru/?p=1950</guid>
				<description><![CDATA[Just little AppleScript to get current working path with Automator. [crayon-5eaa94a4749ed080237989/] P.S. I wrote another note about it. But this note is better and more compact.]]></description>
								<content:encoded><![CDATA[<p>Just little AppleScript to get current working path with Automator.</p><pre class="crayon-plain-tag">on run {input, parameters}
	set aFile to path to me
	tell application "Finder"
		set parentpath to POSIX path of (parent of (aFile) as string)
	end tell
	return parentpath
end run</pre><p>P.S. I wrote <a href="http://iteye.ru/1794/how-to-get-the-application-folder-from-automator-application" target="_blank" rel="noopener noreferrer">another note</a> about it. But this note is better and more compact.</p>
]]></content:encoded>
							<wfw:commentRss>http://dsda.ru/2015/11/01/get-current-path-with-automator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
							</item>
		<item>
		<title>fluidPaginator jQuery Plugin</title>
		<link>http://dsda.ru/2015/04/05/fluidpaginator-jquery-plugin/</link>
				<comments>http://dsda.ru/2015/04/05/fluidpaginator-jquery-plugin/#respond</comments>
				<pubDate>Sun, 05 Apr 2015 18:48:48 +0000</pubDate>
		<dc:creator><![CDATA[codebyzen]]></dc:creator>
				<category><![CDATA[notes]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[github]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[UI]]></category>

		<guid isPermaLink="false">http://iteye.ru/?p=1935</guid>
				<description><![CDATA[I&#8217;ve been looking for a nice paginator for one of my projects and found nothing intresting. And yes I know about Paginator 3000, but I would like something new, in the end, I found Slider Pagination Concept by Mary Lou from tympanus, it was beautiful, but I do not want to include the jquery ui [&#8230;]]]></description>
								<content:encoded><![CDATA[<p>I&#8217;ve been looking for a nice paginator for one of my projects and found nothing intresting.<br />
And yes I know about Paginator 3000, but I would like something new, in the end, I found <a href="http://tympanus.net/codrops/2012/12/21/slider-pagination-concept/" title="slider pagination concept" target="_blank" rel="noopener noreferrer">Slider Pagination Concept</a> by <a title="Mary Lou" href="http://tympanus.net/codrops/author/crnacura/" target="_blank" rel="noopener noreferrer">Mary Lou</a> from <a title="tympanus" href="http://tympanus.net/" target="_blank" rel="noopener noreferrer">tympanus</a>, it was beautiful, but I do not want to include the jquery ui for one paginator, and I decided to do something similar, but simpler.<br />
<span id="more-1935"></span></p>
<p class="aligncenter"><img src="https://std3.ru/28/5e/1428259169-285e5e3d61fee73faf1205fe3ef78d7c.gif" alt="fluidPafinator" /></p>
<p><a title="fluidPaginator on GitHub" href="https://github.com/ugputu/fluidPaginator" target="_blank" rel="noopener noreferrer">fluidPaginator on GitHub</a></p>
]]></content:encoded>
							<wfw:commentRss>http://dsda.ru/2015/04/05/fluidpaginator-jquery-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
							</item>
		<item>
		<title>Геолокация онлайн</title>
		<link>http://dsda.ru/2014/12/06/geolokaciya-onlajn/</link>
				<comments>http://dsda.ru/2014/12/06/geolokaciya-onlajn/#comments</comments>
				<pubDate>Fri, 05 Dec 2014 20:52:22 +0000</pubDate>
		<dc:creator><![CDATA[codebyzen]]></dc:creator>
				<category><![CDATA[notes]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[геолокация]]></category>
		<category><![CDATA[геопозиция]]></category>
		<category><![CDATA[онлайн]]></category>

		<guid isPermaLink="false">http://iteye.ru/?p=1931</guid>
				<description><![CDATA[Небольшой пример того, как можно показывать пользователю где он находится, на примере Яндекс Карт. Вот ссылка на пример геолокации (геопозиции) онлайн А вот сам код. (Работает только с реального домена, в виде локального файла работать не будет) [crayon-5eaa94a474ac9300028025/]]]></description>
								<content:encoded><![CDATA[<p>Небольшой пример того, как можно показывать пользователю где он находится, на примере Яндекс Карт.<br />
<span id="more-1931"></span><br />
Вот <a href="http://jsfiddle.net/dsda/LanmLgkj/" target="_blank" rel="noopener noreferrer">ссылка на пример</a> геолокации (геопозиции) онлайн<br />
А вот сам код. (Работает только с реального домена, в виде локального файла работать не будет)</p><pre class="crayon-plain-tag">&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
    &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
    &lt;script src="http://api-maps.yandex.ru/2.1/?lang=ru_RU" type="text/javascript"&gt;&lt;/script&gt;
	&lt;script&gt;
		navigator.geolocation.getCurrentPosition(showMap, handleError);
		function handleError(err) {
			document.getElementById('map').innerHTML = err.message;
			myCoords = [55.76, 37.64];
			myZoom = 10;
			ymaps.ready(init);
			console.log(err);
		}
		var myMap;
		var myCoords = [];
		var myZoom = 10;
		function init () {
			myMap = new ymaps.Map('map', {
				center: myCoords,
				zoom: 10
			});
		}
		function showMap(position) {
			if (position == undefined) {
				myCoords = [55.76, 37.64];
				myZoom = 10;
			} else {
	            myCoords.push(position.coords.latitude);
    	        myCoords.push(position.coords.longitude);
    	        myZoom = 16;
    	    }
            ymaps.ready(init);
		}
	&lt;/script&gt;
	&lt;style&gt;
        body, html {
            padding: 0;
            margin: 0;
            width: 100%;
            height: 100%;
        }
        #map {
            width: 100%;
            height: 90%;
        }
    &lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div id="map"&gt;Loading...&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;</pre><p></p>
]]></content:encoded>
							<wfw:commentRss>http://dsda.ru/2014/12/06/geolokaciya-onlajn/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
							</item>
		<item>
		<title>How to cleanup macports</title>
		<link>http://dsda.ru/2014/10/17/how-to-cleanup-macports/</link>
				<comments>http://dsda.ru/2014/10/17/how-to-cleanup-macports/#respond</comments>
				<pubDate>Fri, 17 Oct 2014 19:00:36 +0000</pubDate>
		<dc:creator><![CDATA[codebyzen]]></dc:creator>
				<category><![CDATA[notes]]></category>
		<category><![CDATA[macos]]></category>
		<category><![CDATA[macosx]]></category>
		<category><![CDATA[macports]]></category>
		<category><![CDATA[port]]></category>
		<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://iteye.ru/?p=1928</guid>
				<description><![CDATA[After few years of using macports I think, that they have a huge size on my HDD. And i start to look for simple way to cleanup local repositories of macports and commands to flush and purge inactive/unused ports. Five useful terminal commands to cleanup ports. [crayon-5eaa94a474d03931441679/] Remove leftover build files (this is done automatically [&#8230;]]]></description>
								<content:encoded><![CDATA[<p>After few years of using macports I think, that they have a huge size on my HDD. And i start to look for simple way to cleanup local repositories of macports and commands to flush and purge inactive/unused ports.<br />
Five useful terminal commands to cleanup ports.<br />
<span id="more-1928"></span></p><pre class="crayon-plain-tag">port clean --all all
sudo port -f uninstall inactive</pre><p>Remove leftover build files (this is done automatically by default):</p><pre class="crayon-plain-tag">sudo rm -rf /opt/local/var/macports/build/*</pre><p>Remove download files:</p><pre class="crayon-plain-tag">sudo rm -rf /opt/local/var/macports/distfiles/*</pre><p>Remove archives (these aren&#8217;t created by default):</p><pre class="crayon-plain-tag">sudo rm -rf /opt/local/var/macports/packages/*</pre><p></p>
]]></content:encoded>
							<wfw:commentRss>http://dsda.ru/2014/10/17/how-to-cleanup-macports/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
							</item>
	</channel>
</rss>
