<?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>Skeith Blog</title>
	<atom:link href="http://suyalynx.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://suyalynx.com</link>
	<description>when dream comes to reality</description>
	<lastBuildDate>Sun, 18 Dec 2011 15:47:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Batch script to do backup</title>
		<link>http://suyalynx.com/2011/12/batch-script-to-do-backup/</link>
		<comments>http://suyalynx.com/2011/12/batch-script-to-do-backup/#comments</comments>
		<pubDate>Sun, 18 Dec 2011 15:44:15 +0000</pubDate>
		<dc:creator>Skeith Cora</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[batch]]></category>

		<guid isPermaLink="false">http://suyalynx.com/?p=69</guid>
		<description><![CDATA[Backup system is a must thing to have if your files are important. Based on Wikipedia, in information technology, a backup or the process of backing up is making copies of data which may be used to restore the original after a data loss event. With having backups, we can recover files from data loss (deletion or corruption).]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft  wp-image-73" style="margin-left: 10px; margin-right: 10px; margin-top: 5px; margin-bottom: 5px;" title="backup" src="http://suyalynx.com/wp-content/uploads/2011/12/backup-150x150.jpg" alt="" width="120" height="120" />Backup system is a must thing to have if your files are important. Based on <a href="http://en.wikipedia.org/wiki/Backup" target="_blank">Wikipedia</a>, in information technology, a backup or the process of backing up is making copies of data which may be used to restore the original after a data loss event. With having backups, we can recover files from data loss (deletion or corruption).</p>
<p>On this post, I&#8217;ll share about making a <strong>simple</strong> backup script with batch programming (<a href="http://ss64.com/nt/" target="_blank">Windows CMD</a>) &#8211; no need third party app. It will copy your files (you can modify whether to copy files or folders) to a new folder with time stamps and a <strong>very simple</strong> log file. What you need to do is, copy the codes below to your text editor (preferably notepad or notepad++ <em>recommended</em>) and save it as anyname.bat (<strong>the extension is .BAT <span style="color: #ff0000;">not .TXT</span></strong>)</p>
<p><a name="code"></a>Copy the codes below</p>
<pre class="brush: bat; title: ; notranslate">
:init
@echo off
color 02
SETLOCAL
REM -- ©SkeithLabs - 2010-2011
REM -- http://suyalynx.com
REM -- you are free to use this script, but not to sell it
REM -- and please leave this comment/credit intact

REM -- set vars
set tgl=%DATE:~0,2%
set bln=%DATE:~-7,2%
set thn=%DATE:~-4,4%
set jam=%TIME:~0,2%
if &quot;%time:~0,1%&quot;==&quot; &quot; set jam=0%TIME:~1,1%
set menit=%TIME:~3,2%
set detik=%TIME:~6,2%

echo backup system
echo initiating Bot
ping -6 localhost&gt;nul
REM -- change drc value with any drive letter (a-z)
set drc=d

cls
echo intializing 	[OK]
echo copy files 	[ ]
echo archiving	[ ]
echo.
ping -4 localhost&gt;nul
REM -- start backup
echo.

:copy
echo copying ...
REM -- add more folders as backup as you see fit
xcopy /e /y &quot;c:\my files&quot; &quot;%drc%:\drc\backup\&quot;
echo.
echo backup successfully created
cls
echo intializing 	[OK]
echo copy files 	[OK]
echo archiving	[ ]
echo.
echo.
ping -4 localhost&gt;nul

cls
echo intializing 	[OK]
echo copy files 	[OK]
echo archiving	[ ]
echo.
echo.
ping -4 localhost&gt;nul
echo now archiving ...
echo.

:archive
cd /d &quot;%drc%:\drc&quot;
ren &quot;backup&quot; &quot;BACKUP-[%jam%.%menit%]-%tgl%-%bln%-%thn%&quot;
echo archiving - OK
cls
echo intializing 	[OK] &gt; &quot;%drc%:\drc\logBACKUP-[%jam%.%menit%]-%tgl%-%bln%-%thn%.txt&quot;
echo copy files 	[OK] &gt;&gt; &quot;%drc%:\drc\logBACKUP-[%jam%.%menit%]-%tgl%-%bln%-%thn%.txt&quot;
echo archiving	[OK] &gt;&gt; &quot;%drc%:\drc\logBACKUP-[%jam%.%menit%]-%tgl%-%bln%-%thn%.txt&quot;
echo.
echo.
echo all done~!
echo copyright(c) [SC] 2010-2011
echo contact me through : gtalk, google+
pause
goto eof

:eof
ENDLOCAL
exit
</pre>
<p>you will need to modify few lines:</p>
<ol>
<li>On line 23, set the drc to your desired drive letter.</li>
<li>On line 37, modify the C:\my files to your own folder which need to be reserved as backup</li>
</ol>
<p>That&#8217;s it, now just execute the batch file (double click) and your backup system is running. You can also add this backup system to your scheduled task, so it will run every day or every week.</p>
<p>To do:</p>
<ol>
<li>Add archiving (rar or zip) function</li>
<li>Add automated deleting of old backup</li>
<li>Port to delphi or another language</li>
</ol>
<div class='et-learn-more clearfix'>
					<h3 class='heading-more'><span>Bahasa Indonesia</span></h3>
					<div class='learn-more-content'>Translasi artikel dalam Bahasa Indonesia segera menyusul</div>
				</div>
]]></content:encoded>
			<wfw:commentRss>http://suyalynx.com/2011/12/batch-script-to-do-backup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FBCMD Helper</title>
		<link>http://suyalynx.com/2011/06/fbcmd-helper/</link>
		<comments>http://suyalynx.com/2011/06/fbcmd-helper/#comments</comments>
		<pubDate>Sun, 05 Jun 2011 03:47:25 +0000</pubDate>
		<dc:creator>Skeith Cora</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[batch]]></category>

		<guid isPermaLink="false">http://suyalynx.com/?p=42</guid>
		<description><![CDATA[I finally get FBCMD installed and working. It was a great tool to help posting facebook status faster without opening internet browser or heavy facebook desktop application.

It was a little bit confusing at first when I try to get it working. Windows 7 seems does not update the environment variables even when I click OK after editing it on system properties]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-47" style="margin-right: 5px; margin-left: 5px; margin-top: 0px; margin-bottom: 0px;" title="fbcmd" src="http://suyalynx.com/wp-content/uploads/2011/06/fbcmd.jpg" alt="" width="130" height="130" />I finally get <a title="FBCMD" href="http://fbcmd.dtompkins.com/" target="_blank">FBCMD</a> installed and working. It was a great tool to help posting <a title="Facebook" href="http://www.facebook.com" target="_blank">facebook</a> status faster without opening internet browser or heavy facebook desktop application.</p>
<p>It was a little bit confusing at first when I try to get it working. Windows 7 seems does not update the environment variables even when I click OK after editing it on system properties. The solution is to update the variables through windows command prompt.</p>
<p>Now, about the FBCMD. The syntax is not hard to remember, but there  are no easy way to remember that many syntax available, unless you have a cheat sheet. Based on that idea, I create a simple batch file to help people posting status without remembering any syntax. However this script can only post status and you need to make sure that FBCMD is already configured (auth and addperm). In the future, I plan to make it more powerful yet still simple</p>
<p>Straight to the poin, here is the code</p>
<pre class="brush: bat; title: ; notranslate">
@echo off
color 1b
title FBCMD Status Poster by SC

:init
echo FBCMD Status Poster by SC
echo only a simple status command is currently coded
echo more to come soon
echo.
pause
rem changing dir
rem change to your fbcmd installation dir
c:
cd fbcmd
cls

:start
echo make sure you have set auth and addperm
echo.
echo write your status below
echo.
set /p status=
echo.
echo your status is
echo &quot;%status%&quot;
echo press enter to post
pause.

:post
echo posting ...
php fbcmd.php status &quot;%status%&quot;
if errorlevel 1 goto error
goto success

:success
cls
echo your status:
echo &quot;%status%&quot;
echo is succesfully posted
echo.
pause

:loop
cls
goto start

:error
echo cannot post status
echo exiting
pause.
exit
</pre>
]]></content:encoded>
			<wfw:commentRss>http://suyalynx.com/2011/06/fbcmd-helper/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting root Access to MySQL Database</title>
		<link>http://suyalynx.com/2010/12/getting-root-access-to-mysql-database/</link>
		<comments>http://suyalynx.com/2010/12/getting-root-access-to-mysql-database/#comments</comments>
		<pubDate>Thu, 09 Dec 2010 16:58:45 +0000</pubDate>
		<dc:creator>Skeith Cora</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[root]]></category>

		<guid isPermaLink="false">http://suyalynx.com/?p=20</guid>
		<description><![CDATA[Let's put it this way, you have a software that use a MySQL database that use a complicated password method to access it's database, but however you desperately need access to the database (same level with root) or perhaps you forgot your root password. Rest assured, because on this post I will try to explain a way to access it]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter size-medium wp-image-26" title="mysql connection" src="http://suyalynx.com/wp-content/uploads/2010/12/sshot-2-300x244.jpg" alt="" width="300" height="244" /></p>
<p>Let&#8217;s put it this way, you have a software that use a MySQL database that use a complicated password method to access it&#8217;s database, but however you desperately need access to the database (same level with root) or perhaps you forgot your root password. Rest assured, because on this post I will try to explain a way to access it. However I cannot guarantee that my tutorial will always working (in my case, it works like a charm)</p>
<ul>
<li>First you need to know which port the MySQL server is listening, by default it will listen on port 3306. You <em>may (not always)</em> find this information on the *.ini file (usually my.ini) inside mysql folder.</li>
<li>Next you need to stop all the services made by the MySQL Database / Software</li>
<li>Open a command prompt window then navigate to the <strong><em>bin</em></strong> folder (example: c:\mysql\bin\)</li>
<li>Type <em>mysqld.exe -u root &#8211;skip-grant-tables </em>(note: there are 2 (two) hyphens (-) before the word skip)</li>
<li>Then open your MySQL explorer (such as SQLyog or HeidiSQL), make a connection with a root user without password</li>
<li>Next step, add new user with all privilege (this will be your way to access the database on the future)</li>
<li>Last step, close the command prompt window, kill the<strong><em> mysqld.exe</em></strong> process (with task manager) and start all the MySQL services</li>
</ul>
<p>That&#8217;s it. Now you have a root access to the database.</p>
]]></content:encoded>
			<wfw:commentRss>http://suyalynx.com/2010/12/getting-root-access-to-mysql-database/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Skeithlabs Reborn</title>
		<link>http://suyalynx.com/2010/10/reborn/</link>
		<comments>http://suyalynx.com/2010/10/reborn/#comments</comments>
		<pubDate>Mon, 04 Oct 2010 13:07:43 +0000</pubDate>
		<dc:creator>Skeith Cora</dc:creator>
				<category><![CDATA[Notes]]></category>

		<guid isPermaLink="false">http://suyalynx.com/?p=1</guid>
		<description><![CDATA[Dear visitor/reader A week ago, something real bad happened to my website (hosting server). It was so bad that most of my web content is badly damaged. Therefore, all of my blog post is gone. I&#8217;m currently trying to restore the posts, however only few posts will be restored, I forgot to save the Google [...]]]></description>
			<content:encoded><![CDATA[<p>Dear visitor/reader</p>
<p>A week ago, something real bad happened to my website (hosting server). It was so bad that most of my web content is badly damaged. Therefore, all of my blog post is gone.</p>
<p>I&#8217;m currently trying to restore the posts, however only few posts will be restored, I forgot to save the Google cache version and I&#8217;m not going to restore it from database backup.</p>
<p>All my website subdomain are still inactive (not recreated yet &#8211; sorry to mataminus)</p>
<p>Regards</p>
<p>Skeith</p>
]]></content:encoded>
			<wfw:commentRss>http://suyalynx.com/2010/10/reborn/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

