<?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>golang &#8211; Selman Tunc</title>
	<atom:link href="https://selmantunc.com.tr/tag/golang/feed/" rel="self" type="application/rss+xml" />
	<link>https://selmantunc.com.tr</link>
	<description></description>
	<lastBuildDate>Tue, 11 May 2021 21:43:30 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>

<image>
	<url>https://selmantunc.com.tr/wp-content/uploads/2023/07/cropped-tumblr_inline_oglumuMbgO1tyldvk_540-150x150-1-32x32.jpg</url>
	<title>golang &#8211; Selman Tunc</title>
	<link>https://selmantunc.com.tr</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>golang code</title>
		<link>https://selmantunc.com.tr/golang/golang-code/</link>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Tue, 11 May 2021 21:43:30 +0000</pubDate>
				<category><![CDATA[golang]]></category>
		<category><![CDATA[software]]></category>
		<guid isPermaLink="false">http://selmantunc.com.tr/2021/05/11/golang-code/</guid>

					<description><![CDATA[https://www.geeksforgeeks.org/minimum-number-of-bottles-required-to-fill-k-glasses/ Given N glasses having water, and a list A of each of their capacity. The task is to find the minimum number of bottles required to fill out exactly&#8230;]]></description>
										<content:encoded><![CDATA[<p><a href="https://www.geeksforgeeks.org/minimum-number-of-bottles-required-to-fill-k-glasses/">https://www.geeksforgeeks.org/minimum-number-of-bottles-required-to-fill-k-glasses/</a>
<br></p>
<p>Given N glasses having water, and a list A of each of their capacity. The task is to find the minimum number of bottles required to fill out exactly K glasses. The capacity of each bottle is 100 units.<br></p>
<p>

solution </p>
<p><a href="https://play.golang.org/p/31vrx6pzXUs">https://play.golang.org/p/31vrx6pzXUs

</a></p>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Sevdiğim go projeleri</title>
		<link>https://selmantunc.com.tr/golang/sevdigim-go-projeleri/</link>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Tue, 06 Apr 2021 19:37:59 +0000</pubDate>
				<category><![CDATA[golang]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[go]]></category>
		<guid isPermaLink="false">http://selmantunc.com.tr/2021/04/06/sevdigim-go-projeleri/</guid>

					<description><![CDATA[https://docs.gitea.io/en-us/ https://github.com/oxequa/realize#config-sample DOCKER  bunu upload ın silmesinde kullanablirm yada api işlerinde https://github.com/avelino/awesome-go#job-scheduler]]></description>
										<content:encoded><![CDATA[<h2><a href="https://docs.gitea.io/en-us/">https://docs.gitea.io/en-us/</a>
<br></h2>
<p><a href="https://github.com/oxequa/realize#config-sample">https://github.com/oxequa/realize#config-sample</a>
<br></p>
<p>DOCKER </p>
<p>bunu upload ın silmesinde kullanablirm yada api işlerinde </p>
<p><a href="https://github.com/avelino/awesome-go#job-scheduler">https://github.com/avelino/awesome-go#job-scheduler</a></p>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Golang tutorials web site</title>
		<link>https://selmantunc.com.tr/golang/golang-tutorials-web-site/</link>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Sat, 05 Dec 2020 14:24:29 +0000</pubDate>
				<category><![CDATA[golang]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[go]]></category>
		<guid isPermaLink="false">http://selmantunc.com.tr/2020/12/05/golang-tutorials-web-site/</guid>

					<description><![CDATA[https://go101.org/article/101.html https://softwaredevvideos.tumblr.com/ go clean code  https://github.com/Pungyeon/clean-go-article  Tour of Go How to Write Go Code Effective Go —- Notes on the book Clean Code &#8211; A Handbook of Agile Software Craftsmanship&#8230;]]></description>
										<content:encoded><![CDATA[<p><a href="https://go101.org/article/101.html">https://go101.org/article/101.html</a>
<br></p>
<p><a href="https://softwaredevvideos.tumblr.com/">https://softwaredevvideos.tumblr.com/</a>
<br></p>
<p>go clean code </p>
<p><a href="https://github.com/Pungyeon/clean-go-article">https://github.com/Pungyeon/clean-go-article</a> </p>
<p><br></p>
<p><a href="https://tour.golang.org/">Tour of Go</a></p>
<p><a href="https://golang.org/doc/code.html">How to Write Go Code</a></p>
<p><a href="https://golang.org/doc/effective_go.html">Effective Go</a></p>
<p>—-</p>
<p>Notes on the book Clean Code &#8211; A Handbook of Agile Software Craftsmanship by Robert C. Martin<br></p>
<p><a href="https://github.com/jbarroso/clean-code#error-handling">https://github.com/jbarroso/clean-code#error-handling</a>
<br></p>
<p>—–</p>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>golang Numeric Conversions</title>
		<link>https://selmantunc.com.tr/golang/golang-numeric-conversions/</link>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Wed, 25 Nov 2020 21:27:18 +0000</pubDate>
				<category><![CDATA[golang]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[go]]></category>
		<guid isPermaLink="false">http://selmantunc.com.tr/2020/11/25/golang-numeric-conversions/</guid>

					<description><![CDATA[Atoi (string to int) i, err := strconv.Atoi(“-42”) ——————————- Itoa (int to string). s := strconv.Itoa(-42)   ——————— int64 to string str:= strconv.FormatInt(int64(165), 10) ——————————- uint64 to string  lastID :=&#8230;]]></description>
										<content:encoded><![CDATA[<h2><b>

Atoi (string to int)

</b></h2>
<p>i, err := strconv.Atoi(“-42”)</p>
<p><b>——————————-</b></p>
<h2><b>

 Itoa (int to string).

</b></h2>
<p>s := strconv.Itoa(-42)</p>
<p>  ———————</p>
<h2><b>int64 to string</b></h2>
<p>str:= strconv.FormatInt(int64(165), 10)<br></p>
<p><b>——————————-</b></p>
<h2><b>

uint64 to string </b></h2>
<p>lastID := strconv.FormatUint(uint64(5656556666), 10) <br></p>
<p><b>——————————–</b></p>
<h2><b>string to 

<b>uint64 </b></b></h2>
<p>catID, _ := strconv.ParseUint(“string”, 10, 64)</p>
<pre></pre>
<h2><b>interface return to string </b></h2>
<p>session.Get(key).(string)</p>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>php kötü yanları</title>
		<link>https://selmantunc.com.tr/article/php-kotu-yanlari/</link>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Thu, 02 Jul 2020 19:53:42 +0000</pubDate>
				<category><![CDATA[article]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[golang]]></category>
		<category><![CDATA[mimari]]></category>
		<category><![CDATA[yazilim mimarisi]]></category>
		<guid isPermaLink="false">http://selmantunc.com.tr/2020/07/02/php-kotu-yanlari/</guid>

					<description><![CDATA[BU YAZI BİTMEMİŞ YAZIDIR…. kimisi liseyi terk eder kimisi üniversiteyi kimi sevgilisini ben ise php yi terk ettim  en son php ile çalıştığım yer davutpaşa teknopark da bir firmaydı yaptıkları&#8230;]]></description>
										<content:encoded><![CDATA[<p>BU YAZI BİTMEMİŞ YAZIDIR….</p>
<p>kimisi liseyi terk eder kimisi üniversiteyi kimi sevgilisini ben ise php yi terk ettim </p>
<p>en son php ile çalıştığım yer davutpaşa teknopark da bir firmaydı yaptıkları yazılımın mimarisi güzeldi maaş da fena değildi ama ofis olarak internet kafe ye benzeyen saçma sapan bir ofisleri vardı üstüne birde vue.js öğrenmem gerekiyordu ki, onların kullandığı statement yönetiminden ve<a href="https://twitter.com/fkadev/status/1284793820564070400"> vue.js nin bazı şeylerinden</a> nefret ettim, beni başka işten soğutan şeylerde oldu ama konumuz bu değil,  bizim binanın karşında ziraat teknoloji vardı orada çalışan arkadaşımın yanına gittiğimde orası çok daha güzeldi, herkesin mola verip çay-kahve içebileceği bir alanları kendine özel masaları vardı benim çalıştığım yere göre daha  ferah  bir ortamı vardı, yani php ile startup dan firmadan ufak maaşlardan öteye gidemezsiniz yazılım ve mimari olarak size çok fazla bir şey sunmaz diğer dillerde native olan özellikleri php de sympny bundle yada composer paketleri ile yaparsınız sadece web dilidir alanınız kısıtlıdır, günümüzde çıkan diller daha geniş kapsamlıdır.</p>
<p><b>güzel yanları </b></p>
<p>laravel yada composer paketleri çok hızlı web uygulama yapabilirsiniz, </p>
<p>wordpress ile hiç kodlama bilmeden web sitesi yaparsınız php biliyorsanız wp ye takla attırabilir istediğinizi yazabilirsiniz. </p>
<p>php de çok temel kodlama ile fonksiyon dahi kullanmadan web sitesi yapılabilir ki çok fazla insan gördüm değişken tanımlama, if ve for dolgusu kullanarak basit işlerini görecek web siteleri yapabiliyor.</p>
<p>php composer ile anlamlı </p>
<p>ama c# yada go ile karşılaştırınca yetersiz (go farklı tabi  daha güzel syntax gereksizlik yok minimalist ) </p>
<p>php nin eksik olan kısımlarını symfony kütüphanesi kapatıyor en çok yenilik oradan çıkıyor  ama benim düşüncem

symfony

yada zend fw öğrenme eğrisi ile yeni bir dil öğrenme eğrisi hemen hemen aynı ve maaş konusunda bir değişiklik olmuyor  o zaman insan düşünüyor bu kadar emeğe değer mi diye ben bu nedenlerden dolayı php yi bıraktım go öğrendim sonra react native şimdi ise asp.net core ve her öğrendiğim dilde katmanlı mimari ve design pattern konusunu da öğrenmeye çalışıyorum. </p>
<p><a href="https://medium.com/@selmantunc/neden-golang-d9067ced7e83">https://medium.com/@selmantunc/neden-golang-d9067ced7e83</a>
<br></p>
<p><a href="https://selmantunc.com.tr/post/157787530542/facebook-neden-php-ile-yaz%C4%B1ld%C4%B1">https://selmantunc.com.tr/post/157787530542/facebook-neden-php-ile-yaz%C4%B1ld%C4%B1</a>
<br></p>
<p>php çekirdek ki hataları toplamış </p>
<p><a href="http://phpsadness.com/">http://phpsadness.com/</a>
<br></p>
<p>php de consol nedir nasıl efektif kullanılır bilemezsiniz çünkü php den başka consol tabanlı kullanmadğınız dil yoksa tek başına php sizi çok yönlü yazılımcı yapmaz consol tabanlı dil için örnek go ve c# ruby </p>
<p>php için kullanılcak en iyi IDE phpstrom dur </p>
<p>php dinamik bir dil o yuzden güvensiz örneğin hata loglaması yapacaksınız burada alttaki değişkeni nasıl anlarısn …… aslında yazılımcı hatası senden önceki yazılımcı error log açmadan yazmış sen dikkat etmiyorsun ve kredi kartı post bilgilerinde hata kaynağını çözemiyorsun </p>
<p><br></p>
<p><a href="https://gist.github.com/stnc/13d6f97ef0bfa87f4aa4ed17869e1ee6">https://gist.github.com/stnc/13d6f97ef0bfa87f4aa4ed17869e1ee6</a>
<br></p>
<p><br></p>
<p><a href="https://medium.com/bulutyazilim/sc%C3%B6b%C3%B6l%C3%B6ty-php-%C3%A7%C3%B6k-k%C3%B6t%C3%BC-ve-gelecek-51bd019d6932">https://medium.com/bulutyazilim/sc%C3%B6b%C3%B6l%C3%B6ty-php-%C3%A7%C3%B6k-k%C3%B6t%C3%BC-ve-gelecek-51bd019d6932</a>
<br></p>
<p><br></p>
<p><a href="https://siberci.com/php-oluyor-mu/">https://siberci.com/php-oluyor-mu/</a>
<br></p>
<p>
Programlama dillerinin popülerliği ile ilgili olarak, C # ve Java&#8217;nın yanı sıra, yaygın olarak kullanılan diğer bir dil PHP&#8217;dir.  Küçük web siteleri ve web uygulamaları geliştirmek için uygundur, ancak büyük ve karmaşık yazılım sistemlerini uygularken ciddi zorluklara neden olur.  Yazılım endüstrisinde PHP her şeyden önce küçük projeler için kullanılır, çünkü geliştiricileri kötü, düzensiz ve bakımı zor olan kodlar yazmaya kolayca yönlendirebilir ve bu da onu daha önemli projeler için elverişsiz hale getirir.  Bu konu da tartışmalıdır, ancak yaygın olarak kabul edilen bir dildir ki, eskimiş kavramları ve kökenleri ve çeşitli evrimsel nedenlerden dolayı, düşük kaliteli programlama, kötü kod yazma ve zor yaratma eğilimi gösteren bir dildir.  yazılımın bakımı.  PHP, kavram olarak yordamsal bir dildir ve modern nesne yönelimli programlama paradigmalarını desteklese de, çoğu PHP programcısı yordamsal olarak yazmaktadır.  PHP, yazılım mühendisliği mesleğinde “kod maymunlarının” dili olarak bilinir, çünkü çoğu PHP programcısı korkunç derecede düşük kaliteli kod yazar.  Düşük kaliteli, kötü yapılandırılmış ve kötü organize edilmiş programlama kodu yazma eğilimi nedeniyle, PHP dili ve platformu kavramının tamamı yanlış kabul edilir ve ciddi şirketler (Microsoft, Google, SAP, Oracle ve ortakları gibi) bundan kaçınır.  Bu nedenle, ciddi bir yazılım mühendisi olmak istiyorsanız, C # veya Java ile başlayın ve PHP&#8217;den kaçının (mümkün olduğunca).  Kesinlikle, PHP&#8217;nin programlama dünyasında kullanımları vardır (örneğin WordPress ile bir blog, Joomla veya Drupal ile küçük bir web sitesi veya PhpBB ile bir tartışma panosu oluşturmak), ancak PHP platformunun tamamı büyük sistemler için iyi organize edilmemiş ve tasarlanmamıştır.  .NET ve Java gibi.  Web tabanlı olmayan uygulamalar ve büyük endüstriyel projeler söz konusu olduğunda, PHP mevcut seçenekler arasında uzun bir atış değildir.  PHP&#8217;yi doğru kullanmak ve onunla yüksek kaliteli profesyonel projeler geliştirmek için çok fazla deneyim gereklidir.  PHP geliştiricileri genellikle öğreticilerden, makalelerden ve düşük kaliteli kitaplardan öğrenirler ve daha sonra ortadan kaldırılması zor olan kötü uygulamaları ve alışkanlıkları alırlar.  Bu nedenle, PHP&#8217;yi ilk geliştirme diliniz olarak öğrenmeyin.  C # veya Java ile başlayın.  Yazarların kolektifinin geniş deneyimine dayanarak, programlamaya C # ile başlamanızı ve C, C ++ ve PHP gibi dilleri kullanmak zorunda olduğunuz ana kadar göz ardı etmenizi tavsiye ederiz.</p>
<p><br></p>
<p><br></p>
<p><a href="https://www.jesuisundev.com/en/why-developers-hate-php/">https://www.jesuisundev.com/en/why-developers-hate-php/</a>
<br></p>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>my gopher</title>
		<link>https://selmantunc.com.tr/uncategorized/my-gopher/</link>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Mon, 18 May 2020 02:56:12 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[go]]></category>
		<category><![CDATA[golang]]></category>
		<category><![CDATA[gopher]]></category>
		<guid isPermaLink="false">http://selmantunc.com.tr/2020/05/18/my-gopher/</guid>

					<description><![CDATA[Gopher is one of the go programmer mascots. And finally he became a gopher in me TR Gopher,  go programcısı maskotlarından biridir. Ve sonunda benimde bir gopher ım  oldu]]></description>
										<content:encoded><![CDATA[<p>Gopher is one of the go programmer mascots. And finally he became a gopher in me</p>
<p>TR</p>
<p>Gopher,  go programcısı maskotlarından biridir. Ve sonunda benimde bir gopher ım  oldu<br></p>
<figure class="tmblr-full" data-orig-height="768" data-orig-width="1024"><figure id="attachment_mmd_2159" class="wp-block-image "><img decoding="async" width="1024" height="405" src="https://selmantunc.com.tr/wp-content/uploads/2023/07/125d3093fe75dd70f4da76cc8bbc6b3336e80e46.jpg" class="attachment-full size-full" alt="" loading="lazy" /></figure></figure>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>golang ubuntu install</title>
		<link>https://selmantunc.com.tr/uncategorized/golang-ubuntu-install/</link>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Sun, 16 Dec 2018 16:12:29 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[golang]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">http://selmantunc.com.tr/2018/12/16/golang-ubuntu-install/</guid>

					<description><![CDATA[https://fabianlee.org/2018/05/09/golang-installing-the-go-programming-language-on-ubuntu-16-04/ https://tecadmin.net/install-go-on-ubuntu/ https://www.digitalocean.com/community/tutorials/how-to-install-go-on-ubuntu-18-04 https://hurriyetlabs.com/visual-studio-code-ile-5-dakika-da-golang-geli%C5%9Ftirme-ortam%C4%B1-5e3ace9e404a nice tut https://ewanvalentine.io/microservices-in-golang-part-1/ https://kylewbanks.com/blog/tutorial-opengl-with-golang-part-1-hello-opengl]]></description>
										<content:encoded><![CDATA[<p><a href="https://fabianlee.org/2018/05/09/golang-installing-the-go-programming-language-on-ubuntu-16-04/">https://fabianlee.org/2018/05/09/golang-installing-the-go-programming-language-on-ubuntu-16-04/</a>
<br></p>
<p><a href="https://github.com/golang/go/wiki/SettingGOPATH"></a>
<a href="https://tecadmin.net/install-go-on-ubuntu/">https://tecadmin.net/install-go-on-ubuntu/</a>
<br></p>
<p><a href="https://www.digitalocean.com/community/tutorials/how-to-install-go-on-ubuntu-18-04">https://www.digitalocean.com/community/tutorials/how-to-install-go-on-ubuntu-18-04</a>
<br></p>
<p><a href="https://hurriyetlabs.com/visual-studio-code-ile-5-dakika-da-golang-geli%C5%9Ftirme-ortam%C4%B1-5e3ace9e404a">https://hurriyetlabs.com/visual-studio-code-ile-5-dakika-da-golang-geli%C5%9Ftirme-ortam%C4%B1-5e3ace9e404a</a>
<br></p>
<p><br></p>
<p>nice tut</p>
<p><a href="https://ewanvalentine.io/microservices-in-golang-part-1/">https://ewanvalentine.io/microservices-in-golang-part-1/</a>
<br></p>
<p><a href="https://kylewbanks.com/blog/tutorial-opengl-with-golang-part-1-hello-opengl">https://kylewbanks.com/blog/tutorial-opengl-with-golang-part-1-hello-opengl</a>
<br></p>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Install Golang on Raspberry Pi</title>
		<link>https://selmantunc.com.tr/uncategorized/install-golang-on-raspberry-pi/</link>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Thu, 11 Jan 2018 23:56:44 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[go]]></category>
		<category><![CDATA[golang]]></category>
		<category><![CDATA[pi]]></category>
		<category><![CDATA[raspberry]]></category>
		<guid isPermaLink="false">http://selmantunc.com.tr/2018/01/11/install-golang-on-raspberry-pi/</guid>

					<description><![CDATA[———————————–1.9.2——————————— wget https://storage.googleapis.com/golang/ go1.9.2.linux-armv6l.tar.gz tar -C /usr/local -xzf go1.9.2.linux-armv6l.tar.gz export PATH=$PATH:/usr/local/go/bin wget https://storage.googleapis.com/golang/go1.8.linux-armv6l.tar.gz  tar -C /usr/local -xzf go1.8.linux-armv6l.tar.gz  export PATH=$PATH:/usr/local/go/bin Compiler (Examples)  your file   -&#62; stnc.go Terminal write  mkdir -p&#8230;]]></description>
										<content:encoded><![CDATA[<p>———————————–1.9.2———————————</p>
<p>wget <a href="https://storage.googleapis.com/golang/">https://storage.googleapis.com/golang/</a>

<a href="https://dl.google.com/go/go1.9.2.linux-armv6l.tar.gz">go1.9.2.linux</a>-armv6l.tar.gz </p>
<p>tar -C /usr/local -xzf

<a href="https://dl.google.com/go/go1.9.2.linux-armv6l.tar.gz">go1.9.2.linux</a>-armv6l.tar.gz </p>
<p>export PATH=$PATH:/usr/local/go/bin</p>
<p>wget <a href="https://storage.googleapis.com/golang/go1.8.linux-armv6l.tar.gz%C2%A0">https://storage.googleapis.com/golang/go1.8.linux-armv6l.tar.gz </a></p>
<p>tar -C /usr/local -xzf go1.8.linux-armv6l.tar.gz </p>
<p>export PATH=$PATH:/usr/local/go/bin</p>
<p><b>Compiler (Examples) </b></p>
<p>
your file   -&gt; stnc.go</p>
<p>Terminal write </p>
<p>
mkdir -p $GOPATH/src/stnc <br>
cd $GOPATH/src/stnc <br>
go get<br>
go build<br>
./stnc<br></p>
<p>—-CRON </p>
<pre><code>sudo crontab -e</code></pre>
<p>

<code>*/25 * * * * /</code>

/src/stnc/stnc<br></p>
<p>My packages cd /root/go/src/stnc  </p>
<p><br></p>
<p>

Debian / UBUNTU Start cron service

<br><code>sudo /etc/init.d/cron start</code>
<br>OR</p>
<p><code>&nbsp;sudo service cron start</code>

<br></p>
<p><b>Mysql </b></p>
<ul><li>sudo apt-get update
</li>
<li>sudo apt-get install mysql-server
</li>
<li>mysql_secure_installation<br><br></li></ul>
<p> mysql -u root -pyourpassword</p>
<p>

CREATE DATABASE crawler;

</p>
<p>mysqldump -u root -p crawler &lt; raspi_.sql </p>
<p>OR</p>
<p>mysql -u root -p crawler &lt; raspi_.sql</p>
<p>MYSQL BACKUP (bash )</p>
<p>mysqldump -u root -pyourpassword crawler &gt; tut_backup.sql</p>
<p>mkdir $(date +%Y_%m_%d-%H%M%S)</p>
<p>// ornek klasor açmak için  <code>mkdir /home/john/$(date +%M)&nbsp;</code></p>
<p><code>&lt;b&gt;Raspian and Diet PI my.cnf file&nbsp;&lt;/b&gt;</code></p>
<p><code>

nano /etc/mysql/mariadb.conf.d/50-server.cnf

&lt;br&gt;</code></p>
<p><code>&lt;a href=&quot;https://dba.stackexchange.com/questions/83125/mysql-any-way-to-import-a-huge-32-gb-sql-dump-faster&quot;&gt;https://dba.stackexchange.com/questions/83125/mysql-any-way-to-import-a-huge-32-gb-sql-dump-faster&lt;/a&gt;
&lt;br&gt;</code></p>
<h2><code>&lt;b&gt;mysql dump&nbsp;&lt;/b&gt;</code></h2>
<p>This error has nothing to do with the php.ini, its clearly an error message from the DBMS.<br></p>
<p>You can increase the value of the max_allowed_packet in the my.cnf file:</p>
<pre><code>[mysqld]
max_allowed_packet = 128M</code></pre>
<p>After restarting your mysqld it should work (for larger data increase the value more)</p>
<p>If you try to “import with putty”, i guess your are using mysql from command line, in this case you can start mysql with the –max_allowed_packet parameter e.g:</p>
<pre><code>mysql --max_allowed_packet=256M -u root -p sampledb &lt; dump.sql</code></pre>
<p>Alternatively if you source the file from within a running mysql session you can set the parameter by:</p>
<pre><code>set global max_allowed_packet=256M;</code></pre>
<p>last example only is effective till next restart of mysqld, for a permanent solution stick to my first example.</p>
<p><br></p>
<p><br></p>
<p><br></p>
<p><br></p>
<h2><b>

Reset your root MySQL password &#8211; Linux</b></h2>
<p>Difficulty: 1<br>Time: 30 minutes</p>
<p>If you’ve forgotten the root user’s password you created for your MySQL database, you can reset it.</p>
<p>It’s important to note that this user and its password are limited to administrator use. This is not the user or password you should use for everyday use.</p>
<h2>Turn off MySQL</h2>
<p> Warning: If you have any sites or application that rely on MySQL to function, these will stop working until you turn MySQL back on.</p>
<p>You must turn the MySQL service off to reset the root password. The command you use to turn MySQL off varies depending on your Linux distribution. Choose the command from the table below for the Linux version you are using:</p>
<p>DistributionsCommand</p>
<p>Ubuntu, Debian</p>
<p><code>sudo service mysql stop</code></p>
<p>Fedora, CentOS 6</p>
<p><code>sudo service mysqld stop</code></p>
<p>CentOS 7</p>
<p><code>sudo systemctl stop mariadb.service</code></p>
<p>Arch Linux</p>
<p><code>sudo systemctl stop mysqld.service</code></p>
<h2>Reset the root password through safe mode</h2>
<p>MySQL safe mode lets you change system settings without using the root password.</p>
<ul><li>Start up safe modesudo mysqld_safe –skip-grant-tablesYou may need to type Enter twice.<br></li></ul>
<p><br></p>
<ul><li>Log into MySQL as root:mysql -u root<br></li></ul>
<p><br></p>
<ul><li>Change to the mysql database, which handles the settings for MySQL itself:use mysql;</li></ul>
<p><br></p>
<ul><li>Update the password for the root user:update user set password=PASSWORD(“the new password you want to use”) where User=‘root’;<br></li></ul>
<p><br></p>
<ul><li>Refresh the MySQL user privileges:flush privileges;<br></li></ul>
<p><br></p>
<ul><li>Exit MySQL:exitIf this doesn’t work, you can try force the application to quit by pressing CTRL-C on your keyboard.<br></li></ul>
<p><br></p>
<h2>Stop and Start MySQL</h2>
<p>Now that the password has been reset, you need to stop and start the MySQL service.</p>
<ol><li>Stop MySQL. Use the table in the “Turn off MySQL section” to find the command.</li>
<li>Start MySQL:DistributionsCommand<br>Ubuntu, Debian<code>sudo service mysql start</code>
<br>Fedora, CentOS 6<code>sudo service mysqld start</code>
<br>CentOS 7<code>sudo systemctl start mariadb.service</code>
<br>Arch Linux<code>sudo systemctl start mysqld.service</code>
<br></li>
<li>Connect to MySQL again with your root user:mysql -u root -p</li>
<li>Enter your new password.</li></ol>
<p>That’s it! You should now be able to log into your MySQL console with the root password.</p>
<p><br></p>
<p><br></p>
<p><br></p>
<p>Olası bir sorun </p>
<p>grant all privileges on *.* to &#8216;root’@&#8217;localhost’ identified by &#8216;passprd gelecek’ with grant option;</p>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>golang Method receivers</title>
		<link>https://selmantunc.com.tr/uncategorized/golang-method-receivers/</link>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Tue, 02 Jan 2018 19:35:32 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[go]]></category>
		<category><![CDATA[golang]]></category>
		<guid isPermaLink="false">http://selmantunc.com.tr/2018/01/02/golang-method-receivers/</guid>

					<description><![CDATA[güzel örnek Türkçeye çevrilecek https://nathanleclaire.com/blog/2014/08/09/dont-get-bitten-by-pointer-vs-non-pointer-method-receivers-in-golang/]]></description>
										<content:encoded><![CDATA[<p>güzel örnek Türkçeye çevrilecek</p>
<p><a href="https://nathanleclaire.com/blog/2014/08/09/dont-get-bitten-by-pointer-vs-non-pointer-method-receivers-in-golang/">https://nathanleclaire.com/blog/2014/08/09/dont-get-bitten-by-pointer-vs-non-pointer-method-receivers-in-golang/</a>
<br></p>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>golang ile exe çalıştırma ve parametre gönderme</title>
		<link>https://selmantunc.com.tr/uncategorized/golang-ile-exe-calistirma-ve-parametre-gonderme/</link>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Tue, 02 Jan 2018 19:30:07 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[go]]></category>
		<category><![CDATA[golang]]></category>
		<guid isPermaLink="false">http://selmantunc.com.tr/2018/01/02/golang-ile-exe-calistirma-ve-parametre-gonderme/</guid>

					<description><![CDATA[Ben aşağıdaki örnekde not defterini çağırdım ve file.txt isimli dosya oluşturmasını istedim.  package mainimport (   "bufio"   "fmt"   "os/exec")func main() {   calc := exec.Command("notepad", "/a file.txt ")&#8230;]]></description>
										<content:encoded><![CDATA[<p>Ben aşağıdaki örnekde not defterini çağırdım ve file.txt isimli dosya oluşturmasını istedim. </p>
<pre>package main<br><br>import (<br>   "bufio"<br>   "fmt"<br>   "os/exec"<br>)<br><br>func main() {<br>   calc := exec.Command("notepad", "/a file.txt ")<br>   pipe, err := calc.StderrPipe()<br>   if err != nil {<br>      panic(err)<br>   }<br>   calc.Start()<br>   outputStream := bufio.NewScanner(pipe)<br>   outputStream.Scan()<br>   fmt.Println(outputStream.Text())<br>}</pre>]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
