<?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>bunyam.in</title>
	<atom:link href="https://bunyam.in/feed/" rel="self" type="application/rss+xml" />
	<link>https://bunyam.in</link>
	<description>Easy Solutions</description>
	<lastBuildDate>Wed, 16 Apr 2025 11:07:03 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8</generator>
	<item>
		<title>Pushing files between servers via ssh</title>
		<link>https://bunyam.in/pushing-files-between-servers-via-ssh/</link>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Tue, 28 Jul 2020 13:01:18 +0000</pubDate>
				<category><![CDATA[Genel]]></category>
		<guid isPermaLink="false">https://bunyam.in/?p=73</guid>

					<description><![CDATA[Sooner or later every developer needs to migrate files to another server I just had in trouble with this and found very clear solution If you want to push single file And scp can push multiple files and folders , Good luck 😉]]></description>
										<content:encoded><![CDATA[
<p>Sooner or later every developer needs to migrate files to another server</p>



<p>I just had in trouble with  this and found very clear solution</p>



<p>If you want to push single file </p>



<pre class="wp-block-code"><code>scp -P port /home/dir/dir/file.tar.gz root@server_ip:/home/dir/or_new_dir/newfile.tar.gz
</code></pre>



<p>And scp can push multiple files and folders ,</p>



<pre class="wp-block-code"><code>scp -rp  -P port /home/target_folder/ root@server_ip:/home/destination_folder
</code></pre>



<p>Good luck 😉 </p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How to install Redmine Properly on centos 7.5</title>
		<link>https://bunyam.in/how-to-install-redmine-properly-on-centos-7-5/</link>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Wed, 16 Oct 2019 08:37:27 +0000</pubDate>
				<category><![CDATA[Hosting]]></category>
		<category><![CDATA[Server]]></category>
		<guid isPermaLink="false">https://bunyam.in/?p=67</guid>

					<description><![CDATA[Since 8 years i work in several companies, and almost every company using redmine for reasons. Recently i was looking for installation guide on internet but almost every documentation is outdated even on redmine.org Lets start At first you need to install centos 7.5 clearly, minimal configuration is recommended Update... <a href="https://bunyam.in/how-to-install-redmine-properly-on-centos-7-5/">Read more &#187;</a>]]></description>
										<content:encoded><![CDATA[
<p>Since 8 years i work in several companies, and almost every company using redmine for reasons.</p>



<p>Recently i was looking for installation guide on internet but almost every documentation is outdated even on redmine.org</p>



<p>Lets start</p>



<p><strong>At first you need to install centos 7.5 clearly, minimal configuration is recommended</strong></p>



<h2 class="wp-block-heading">Update the system and install necessary packages</h2>



<pre class="wp-block-preformatted">yum update
yum install curl zlib-devel curl-devel openssl-devel httpd-devel apr-devel apr-util-devel mysql-devel ftp wget ImageMagick-devel gcc-c++ patch readline readline-devel zlib libyaml-devel libffi-devel make bzip2 autoconf automake libtool bison subversion sqlite-devel</pre>



<h2 class="wp-block-heading">Installing Mariadb</h2>



<p>To install the MariaDB package, run:</p>



<pre class="wp-block-code"><code>yum install mariadb-server</code></pre>



<p>After this command first-run-installation shoud done by run:</p>



<pre class="wp-block-code"><code>mysql_secure_installation</code></pre>



<p>Last step for database:</p>



<pre class="wp-block-code"><code>mysql -uroot -p
CREATE DATABASE redmine CHARACTER SET utf8;
GRANT ALL PRIVILEGES ON redmine.* TO 'redmine'@'localhost' IDENTIFIED BY 'redmine_passwd';
FLUSH PRIVILEGES;
exit;</code></pre>



<h2 class="wp-block-heading">Redmine user</h2>



<p>To run redmine , you need to add new user for redmine</p>



<pre class="wp-block-code"><code> sudo adduser --home /opt/redmine --shell /bin/bash redmine
sudo install -d -m 755 -o redmine -g redmine /opt/redmine</code></pre>



<p>Impersonalize as redmine:</p>



<pre class="wp-block-code"><code>sudo su - redmine</code></pre>



<h2 class="wp-block-heading">Installing Ruby using RVM</h2>



<pre class="wp-block-code"><code>curl -sSL https://rvm.io/mpapis.asc | gpg --import -
curl -sSL https://get.rvm.io | bash -s stable --ruby</code></pre>



<p>Lets start installed rvm</p>



<pre class="wp-block-code"><code>source ~/.rvm/scripts/rvm
rvm --default use ruby</code></pre>



<p>To check for everything is fine:</p>



<pre class="wp-block-code"><code>ruby --version
ruby 2.6.3p62 (2019-04-16 revision 67580) [x86_64-linux]</code></pre>



<h2 class="wp-block-heading">Installing Redmine</h2>



<p>Following codes are install redmine on home state eg(opt/home) and prepeare config files for you.</p>



<pre class="wp-block-code"><code>cd &amp;&amp; svn co http://svn.redmine.org/redmine/branches/3.4-stable redmine
mkdir -p ./redmine/tmp/pids ./redmine/public/plugin_assets
cp ./redmine/config/configuration.yml.example ./redmine/config/configuration.yml
cp ./redmine/config/database.yml.example ./redmine/config/database.yml</code></pre>



<p>Database.yml file should be filled as given password or root password from mariadb.</p>



<pre class="wp-block-code"><code>vi nsno</code></pre>



<pre class="wp-block-code"><code>production:
  adapter: mysql2
  database: redmine
  host: localhost
  username: redmine
  password: "redmine_passwd"
  encoding: utf8
</code></pre>



<h2 class="wp-block-heading">Installing gems</h2>



<pre class="wp-block-code"><code>cd /opt/redmine/redmine
echo "gem 'puma'" >> Gemfile.local
echo "gem: --no-ri --no-rdoc" >> ~/.gemrc 
gem install bundler
bundle install --without development test postgresql sqlite</code></pre>



<h2 class="wp-block-heading">Migrating and last touch</h2>



<pre class="wp-block-code"><code>rake generate_secret_token
RAILS_ENV=production rake db:migrate
RAILS_ENV=production REDMINE_LANG=en rake redmine:load_default_data</code></pre>



<h2 class="wp-block-heading">Puma installation and configuration</h2>



<p>Create a new configuration file as follows:</p>



<pre class="wp-block-code"><code>vim ./redmine/config/puma.rb</code></pre>



<pre class="wp-block-code"><code>#!/usr/bin/env puma

application_path = '/opt/redmine/redmine'
directory application_path
environment 'production'
daemonize true
pidfile "#{application_path}/tmp/pids/puma.pid"
state_path "#{application_path}/tmp/pids/puma.state"
stdout_redirect "#{application_path}/log/puma.stdout.log", "#{application_path}/log/puma.stderr.log"
bind "tcp://0.0.0.0:5000"</code></pre>



<h2 class="wp-block-heading">Start Puma</h2>



<p>Start the puma server with :</p>



<pre class="wp-block-code"><code>cd /opt/redmine/redmine/ &amp;&amp; bundle exec puma --config config/puma.rb</code></pre>



<p>The output should be similar to the following:</p>



<pre class="wp-block-preformatted">Puma starting in single mode...
* Version 3.11.2 (ruby 2.4.1-p111), codename: Love Song
* Min threads: 0, max threads: 16
* Environment: production
* Daemonizing...
</pre>



<h2 class="wp-block-heading">Do not forget Stop firewall</h2>



<p>I prefer stop firewall at this phase, if you wish only allow port, to stop firewall </p>



<pre class="wp-block-code"><code>sudo firewall-cmd --state
sudo systemctl stop firewalld</code></pre>



<h2 class="wp-block-heading">Lets Test 1.2.3.</h2>



<p>Finally your can start your browser and access your new Redmine installation at: <code>http://your_server_ip:5000</code></p>



<p>Happy coding.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Class &#8220;Twig_Cache_Null&#8221; not found error</title>
		<link>https://bunyam.in/class-twig_cache_null-not-found-error/</link>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Mon, 17 Jun 2019 11:50:52 +0000</pubDate>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Software]]></category>
		<guid isPermaLink="false">https://bunyam.in/?p=63</guid>

					<description><![CDATA[Exceptions are made by hands , some times they are not clear at all. Today i faced one of this &#8220;Twig_Cache_Null&#8221; that was meanless. After Several inspections i found solution: Empty and readable cache folder is not exists. You need to create at &#8220;config&#8221; described: new Twig_Environment($loader, array( &#8216;cache&#8217; =&#62;... <a href="https://bunyam.in/class-twig_cache_null-not-found-error/">Read more &#187;</a>]]></description>
										<content:encoded><![CDATA[
<p>Exceptions are made by hands , some times they are not clear at all. </p>



<p>Today i faced one of this &#8220;Twig_Cache_Null&#8221; that was meanless.</p>



<p>After Several inspections i found solution:</p>



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



<p>Empty and readable cache folder is not exists. You need to create at &#8220;config&#8221; described:</p>



<ol class="wp-block-list"><li><strong>new</strong> Twig_Environment($loader, <strong>array</strong>(</li><li>            &#8216;cache&#8217; =&gt; &#8216;cache/twig&#8217;,</li><li>            &#8216;debug&#8217; =&gt; &#8230;,</li><li>        )</li></ol>



<p>Happy coding.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How To make a hello world Mobile app With Apache cordova</title>
		<link>https://bunyam.in/how-to-make-a-hello-world-mobile-app-with-apache-cordova/</link>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Mon, 17 Jun 2019 08:56:58 +0000</pubDate>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Software]]></category>
		<guid isPermaLink="false">https://bunyam.in/?p=58</guid>

					<description><![CDATA[Hey there; Apache cordova is an excellent tool for generate multiple platforms applications. Lets Make a fast start for it; 1- Install cordova with NPM&#8217;s , thats easy with terminal 2- And lets create a hello app 3- Due to create automatically creating splashscreen images run commands below 4- At... <a href="https://bunyam.in/how-to-make-a-hello-world-mobile-app-with-apache-cordova/">Read more &#187;</a>]]></description>
										<content:encoded><![CDATA[
<p>Hey there;</p>



<p>Apache cordova is an excellent tool for generate multiple platforms applications. Lets Make a fast start for it;</p>



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



<p>1- Install cordova with NPM&#8217;s , thats easy with terminal</p>



<pre class="wp-block-code"><code>$ sudo npm install -g cordova</code></pre>



<p>2- And lets create a hello app</p>



<pre class="wp-block-code"><code>$ cordova create hello com.example.hello HelloWorld</code></pre>



<p>3- Due to create automatically creating splashscreen images run commands below</p>



<pre class="wp-block-code"><code>$ sudo npm install cordova-icon -g
$ sudo npm install cordova-splash -g</code></pre>



<p>4- At this phase we need to have 2 different images ,  First one should 1240x1240px dimension square for icon.png, second one is  2208×2208px dimension has centered image with logo, </p>



<p>5- After creating two images we need to run commands below.</p>



<pre class="wp-block-code"><code>$ cordova-icon --config=config.xml --icon=icon.png
$ cordova-splash --config=config.xml --splash=splash.png</code></pre>



<p>6- I want to test on Ios Simulator but ,  is there simulators available in my repo? Better to check with command below;</p>



<pre class="wp-block-code"><code>$ cordova emulate ios --list</code></pre>



<p>If there is an output like below that looks fine;</p>



<pre class="wp-block-code"><code>Available iOS Simulators:
        iPhone-5s, 12.1
        iPhone-6, 12.1
        iPhone-6-Plus, 12.1
        iPhone-6s, 12.1
        iPhone-6s-Plus, 12.1
        iPhone-7, 12.1
        iPhone-7-Plus, 12.1
......</code></pre>



<p>7- Any of those simulators is available , i want to use 8-Plus , you can use whatever you want </p>



<pre class="wp-block-code"><code>cordova emulate ios --target="iPhone-8-Plus, 12.1" --buildFlag="-UseModernBuildSystem=0"</code></pre>



<p>8- Similar to Ios device lets check android devices:</p>



<pre class="wp-block-code"><code>$ cordova emulate android --list</code></pre>



<p>After checking this find out last application step</p>



<pre class="wp-block-code"><code>cordova platform rm android
cordova platform add android</code></pre>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Disk Performance Test On Linux</title>
		<link>https://bunyam.in/disk-performance-test-on-linux/</link>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Sat, 11 Mar 2017 21:44:44 +0000</pubDate>
				<category><![CDATA[cPanel]]></category>
		<category><![CDATA[Hosting]]></category>
		<category><![CDATA[Server]]></category>
		<guid isPermaLink="false">http://bunyam.in/?p=54</guid>

					<description><![CDATA[As all know disk performance may effect overall performance. Connection performance , ram , cpu have no means if disk perfomance gets low. For example all SQL queries have a weight for returning results for physical disk just as /tmp directory. We can make IO test for what is happening.... <a href="https://bunyam.in/disk-performance-test-on-linux/">Read more &#187;</a>]]></description>
										<content:encoded><![CDATA[<p>As all know disk performance may effect overall performance. Connection performance , ram , cpu have no means if disk perfomance gets low.<br />
For example all SQL queries have a weight for returning results for physical disk just as /tmp directory.<br />
We can make IO test for what is happening. <span id="more-54"></span><br />
Via SSH:<br />
<code>dd if=/dev/zero of=test bs=64k count=16k conv=fdatasync</code></p>
<p>Do not forget:<br />
If test bytes are gets low, and you have single disk; your disk going to die soon,<br />
And if you get unstable results and you are using raid; check your disks status. Maybe one of your disk alredy died.</p>
<p>Happy coding.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Install Nginx for Cpanel &#038; EasyApache4</title>
		<link>https://bunyam.in/install-nginx-cpanel-easyapache4/</link>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Wed, 15 Feb 2017 17:06:11 +0000</pubDate>
				<category><![CDATA[cPanel]]></category>
		<category><![CDATA[Hosting]]></category>
		<category><![CDATA[PHP]]></category>
		<guid isPermaLink="false">http://bunyam.in/?p=44</guid>

					<description><![CDATA[Some Nginx softwares were purely usable for Easy Apache Such as nginxcp , but until EA4 has deployed that is unable to work. There are lots of error returns when you trying to set up such as cp: cannot stat ‘/var/cpanel/templates/apache2/vhost default’: No such file or d irectory or cp: cannot... <a href="https://bunyam.in/install-nginx-cpanel-easyapache4/">Read more &#187;</a>]]></description>
										<content:encoded><![CDATA[<p>Some Nginx softwares were purely usable for Easy Apache Such as nginxcp , but until EA4 has deployed that is unable to work.</p>
<p>There are lots of error returns when you trying to set up such as<br />
<code>cp: cannot stat ‘/var/cpanel/templates/apache2/vhost default’: No such file or d irectory</code><br />
or<br />
<code>cp: cannot create regular file `/var/cpanel/apps/nginxcp.conf': No such file or directory</code><br />
<span id="more-44"></span></p>
<p>There is a solution for now: engintron<br />
easy to install</p>
<pre>
cd /  
rm -f engintron.sh  
wget --no-check-certificate https://raw.githubusercontent.com/engintron/engintron/master/engintron.sh  
bash engintron.sh install
</pre>
<p>Happy codings 🙂</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How to detect request is XHR or Ajax</title>
		<link>https://bunyam.in/how-to-dedect-request-is-xhr-or-ajax/</link>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Tue, 29 Sep 2015 09:14:57 +0000</pubDate>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[dedect ajax]]></category>
		<category><![CDATA[dedect xhr]]></category>
		<category><![CDATA[get request]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[security]]></category>
		<guid isPermaLink="false">http://bunyam.in/?p=25</guid>

					<description><![CDATA[Detecting XHR is a small trick for security procedure nowadays. Today most web application is detecting by bots or spiders. Some of them looking for your security issues. You can handle it with simple moves.  If you filter just like below, there is a one more layer for your critical... <a href="https://bunyam.in/how-to-dedect-request-is-xhr-or-ajax/">Read more &#187;</a>]]></description>
										<content:encoded><![CDATA[<p>Detecting XHR is a small trick for security procedure nowadays.</p>
<p>Today most web application is detecting by bots or spiders. Some of them looking for your security issues. You can handle it with simple moves. <span id="more-25"></span></p>
<p>If you filter just like below, there is a one more layer for your critical procedures. Because lots of spiders or crawlers does not have skill for set request type.</p>
<p>[php]<br />
/* XHR-AJAX check */<br />
if(!empty($_SERVER[&#8216;HTTP_X_REQUESTED_WITH&#8217;]) &amp;&amp; strtolower($_SERVER[&#8216;HTTP_X_REQUESTED_WITH&#8217;]) == &#8216;xmlhttprequest&#8217;){<br />
/*Your Procedures or processes */<br />
}else{<br />
/*Here is a direct call or bot */<br />
die(&#8216;you shall not pass!&#8217;);<br />
}<br />
[/php]<br />
Simple.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
