<?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>tips &amp; tricks Archivi - Cesare Bordi | Innovation Manager &amp; Back-end Developer</title>
	<atom:link href="https://www.cesarebordi.it/tag/tips-tricks/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.cesarebordi.it/tag/tips-tricks/</link>
	<description>Innovare con soluzioni software efficaci e gioco di squadra</description>
	<lastBuildDate>Thu, 21 May 2020 15:34:19 +0000</lastBuildDate>
	<language>it-IT</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>

<image>
	<url>https://www.cesarebordi.it/wp-content/uploads/2016/02/CB-logo-88x88.png</url>
	<title>tips &amp; tricks Archivi - Cesare Bordi | Innovation Manager &amp; Back-end Developer</title>
	<link>https://www.cesarebordi.it/tag/tips-tricks/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Raspberry Pi: scrivere immagine su SD card con OSX</title>
		<link>https://www.cesarebordi.it/raspberry-pi-immagine-sd-card-osx/</link>
					<comments>https://www.cesarebordi.it/raspberry-pi-immagine-sd-card-osx/#respond</comments>
		
		<dc:creator><![CDATA[cesarebordi]]></dc:creator>
		<pubDate>Sat, 24 Sep 2016 18:15:10 +0000</pubDate>
				<category><![CDATA[Apple OSX / iOS]]></category>
		<category><![CDATA[Miscellanea]]></category>
		<category><![CDATA[TechNerd]]></category>
		<category><![CDATA[Tips & tricks]]></category>
		<category><![CDATA[makeit]]></category>
		<category><![CDATA[orange pi]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[raspberry pi]]></category>
		<category><![CDATA[technerd]]></category>
		<category><![CDATA[tips & tricks]]></category>
		<guid isPermaLink="false">http://www.cesarebordi.it/?p=392</guid>

					<description><![CDATA[<p>Appunto valido per Raspberry Pi, Orange Pi, &#8230; su come scrivere in OSX la SD card&#160; con l&#8217;immagine del sistema operativo che ci occorre per il nostro porgetto....</p>
<p>L'articolo <a href="https://www.cesarebordi.it/raspberry-pi-immagine-sd-card-osx/">Raspberry Pi: scrivere immagine su SD card con OSX</a> sembra essere il primo su <a href="https://www.cesarebordi.it">Cesare Bordi | Innovation Manager &amp; Back-end Developer</a>.</p>
]]></description>
										<content:encoded><![CDATA[


<p class="wp-block-paragraph">Appunto valido per <strong>Raspberry Pi</strong>, <strong>Orange Pi</strong>, &#8230; su come scrivere in OSX la <strong>SD card</strong>&nbsp; con l&#8217;<strong>immagine</strong> del sistema operativo che ci occorre per il nostro porgetto. Funziona con i più diffusi file immagine come <strong>Raspbian</strong>, <strong>Armbian</strong>, <strong>Arch Linux</strong>, <strong>Volumio</strong>, <strong>RuneAudio</strong>, <strong>Retropie</strong>, <strong>RetrOrangePi</strong>, &#8230;</p>



<p class="wp-block-paragraph">Di seguito i comandi da lanciare, uno dopo l&#8217;altro.</p>



<p class="wp-block-paragraph"><strong>diskN</strong> deve essere sostituito con il disco che rappresenta la nostra SD. Il comando diskutil list mostrerà infatti la lista dei dispositivi montati dal osx. Conoscendo la dimensione della memory card, individueremo facilmente l&#8217;alias assegnato alla SD, ad esempio &#8220;<strong>disk2</strong>&#8220;.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; title: ; notranslate">
diskutil list 
diskutil unmountDisk /dev/diskN 
sudo dd if=/dev/zero of=/dev/diskN bs=1024 count=1 
sudo dd bs=4m if=/Users/XXX/YYY/nome-immagine.img of=/dev/diskN
</pre></div>


<p class="wp-block-paragraph">Per creare un&#8217;immagine da SD invece usare:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
sudo dd if=/dev/rdiskN of=/Users/XXX/YYY/nome-immagine.img bs=1m
</pre></div><p>L'articolo <a href="https://www.cesarebordi.it/raspberry-pi-immagine-sd-card-osx/">Raspberry Pi: scrivere immagine su SD card con OSX</a> sembra essere il primo su <a href="https://www.cesarebordi.it">Cesare Bordi | Innovation Manager &amp; Back-end Developer</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.cesarebordi.it/raspberry-pi-immagine-sd-card-osx/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>MySql: cerca e sostituisci in una query per web developer</title>
		<link>https://www.cesarebordi.it/mysql-cerca-e-sostituisci-query-web-developer/</link>
					<comments>https://www.cesarebordi.it/mysql-cerca-e-sostituisci-query-web-developer/#respond</comments>
		
		<dc:creator><![CDATA[cesarebordi]]></dc:creator>
		<pubDate>Fri, 12 Aug 2016 17:21:18 +0000</pubDate>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programmazione]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[programmazione]]></category>
		<category><![CDATA[query]]></category>
		<category><![CDATA[tips & tricks]]></category>
		<category><![CDATA[web developer]]></category>
		<category><![CDATA[web master]]></category>
		<category><![CDATA[web project]]></category>
		<guid isPermaLink="false">http://www.cesarebordi.it/?p=381</guid>

					<description><![CDATA[<p>Scenario: nel routine di un web developer o di un web master capita spesso di dover fare un cerca e sostituisci con il database MySql. Credo che qualsiasi...</p>
<p>L'articolo <a href="https://www.cesarebordi.it/mysql-cerca-e-sostituisci-query-web-developer/">MySql: cerca e sostituisci in una query per web developer</a> sembra essere il primo su <a href="https://www.cesarebordi.it">Cesare Bordi | Innovation Manager &amp; Back-end Developer</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><span style="text-decoration: underline;">Scenario</span>: nel routine di un <strong>web developer</strong> o di un <strong>web master </strong>capita spesso di dover fare un <strong>cerca e sostituisci</strong> con il <strong>database MySql</strong>. <span id="more-381"></span></p>


<p class="wp-block-paragraph">Credo che qualsiasi <strong>programmatore</strong> si sia trovato nella condizione di dover <strong>cercare</strong> un determinato <strong>valore di un campo</strong> ricorrente in molteplici<strong> record</strong> per <strong>sostituirlo</strong> con uno diverso.</p>



<p class="wp-block-paragraph">Diciamo ad esempio di voler <strong>sostituire in una tabella</strong> di dati anagrafici il termine &#8220;maschio&#8221; con &#8220;M&#8221; nel campo &#8220;genere&#8221;.</p>



<p class="wp-block-paragraph">Problema: come fare quindi per eseguire un &#8220;<strong>cerca e sostituisci</strong>&#8221; in massa su tutti i <strong>record interessati</strong> della tabella MySql?</p>



<p class="wp-block-paragraph">Soluzione: detto fatto, basta sfruttare l&#8217;apposita <strong><a href="http://dev.mysql.com/doc/refman/5.7/en/string-functions.html" target="_blank" rel="noreferrer noopener">string function REPLACE</a> di MySQL</strong> opportunatamente combinata con un <a href="http://dev.mysql.com/doc/refman/5.7/en/update.html" target="_blank" rel="noreferrer noopener"><strong>UPDATE</strong></a>:</p>



<p class="wp-block-paragraph"><strong>UPDATE</strong> `<em>nomeTabella`</em> <strong>SET</strong> `<em>nomeCampo`</em> = <strong>REPLACE</strong>(`<em>nomeCampo`</em>, &#8216;<em>cosaTrovare</em>&#8216;, &#8216;<em>cosaSostituire</em>&#8216;);</p>



<p class="wp-block-paragraph">Se l&#8217;applichiamo al nostro esempio otterremo:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: sql; title: ; notranslate">
UPDATE `Anagrafica` SET `genere` = REPLACE(`genere`, 'maschio', 'M');
</pre></div><p>L'articolo <a href="https://www.cesarebordi.it/mysql-cerca-e-sostituisci-query-web-developer/">MySql: cerca e sostituisci in una query per web developer</a> sembra essere il primo su <a href="https://www.cesarebordi.it">Cesare Bordi | Innovation Manager &amp; Back-end Developer</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.cesarebordi.it/mysql-cerca-e-sostituisci-query-web-developer/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Apple MacBook: errore DL001 &#8211; problema bluetooh non disponibile</title>
		<link>https://www.cesarebordi.it/apple-macbook-errore-dl001-problema-bluetooh-non-disponibile/</link>
					<comments>https://www.cesarebordi.it/apple-macbook-errore-dl001-problema-bluetooh-non-disponibile/#respond</comments>
		
		<dc:creator><![CDATA[cesarebordi]]></dc:creator>
		<pubDate>Mon, 27 Jun 2016 14:50:44 +0000</pubDate>
				<category><![CDATA[Apple OSX / iOS]]></category>
		<category><![CDATA[TechNerd]]></category>
		<category><![CDATA[Tips & tricks]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[bluetooth]]></category>
		<category><![CDATA[hardware]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[macbook]]></category>
		<category><![CDATA[tips & tricks]]></category>
		<guid isPermaLink="false">http://www.cesarebordi.it/?p=344</guid>

					<description><![CDATA[<p>Scenario: accendete il vostro Mac, muovete il magic mouse e non accade nulla quando notate qualcosa di diverso nell&#8217;iconcina del bluetooth, ci cliccate sopra e&#8230; &#8220;bluetooth non disponibile&#8220;!...</p>
<p>L'articolo <a href="https://www.cesarebordi.it/apple-macbook-errore-dl001-problema-bluetooh-non-disponibile/">Apple MacBook: errore DL001 &#8211; problema bluetooh non disponibile</a> sembra essere il primo su <a href="https://www.cesarebordi.it">Cesare Bordi | Innovation Manager &amp; Back-end Developer</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img decoding="async" class="aligncenter size-full wp-image-345" src="http://www.cesarebordi.it/wp-content/uploads/2016/06/apple-error-ndl001-bluetooth.problem.png" alt="apple-error-ndl001-bluetooth.problem" width="100%" srcset="https://www.cesarebordi.it/wp-content/uploads/2016/06/apple-error-ndl001-bluetooth.problem.png 800w, https://www.cesarebordi.it/wp-content/uploads/2016/06/apple-error-ndl001-bluetooth.problem-300x96.png 300w, https://www.cesarebordi.it/wp-content/uploads/2016/06/apple-error-ndl001-bluetooth.problem-768x246.png 768w, https://www.cesarebordi.it/wp-content/uploads/2016/06/apple-error-ndl001-bluetooth.problem-508x163.png 508w" sizes="(max-width: 800px) 100vw, 800px" /><span style="text-decoration: underline;">Scenario</span>: accendete il vostro <strong>Mac</strong>, muovete il magic mouse e non accade nulla quando notate qualcosa di diverso nell&#8217;iconcina del bluetooth, ci cliccate sopra e&#8230; &#8220;<strong>bluetooth non disponibile</strong>&#8220;!</p>
<p><span id="more-344"></span>La periferica non è disponibile neppure verificando fra le periferiche in &#8220;informazioni su questo Mac&#8221;&#8230;</p>
<p><a href="http://www.cesarebordi.it/wp-content/uploads/2016/06/bluetooth_unavailable.png" rel="attachment wp-att-346"><img decoding="async" class="size-full wp-image-346 aligncenter" src="http://www.cesarebordi.it/wp-content/uploads/2016/06/bluetooth_unavailable.png" alt="bluetooth_unavailable" width="58" height="62" /></a></p>
<p><span style="text-decoration: underline;">Problema</span>: chiaramente è un problema legato al bluetooth, nella maggior parte dei casi di natura software. Ho mandato in assistenza il <strong>Mac</strong> (nel mio caso <strong>MacBook</strong> Pro R9) al quale è stata <strong>sostituita la scheda AirPort</strong> che fornisce le connettività bluetooth e wifi, ma con quest&#8217;ultima non avevo probemi e l&#8217;inconveniente si è ripresentato.</p>
<p>Ora, <strong>se fosse stato difettoso qualche componente </strong>della parte<strong> del bluetooth</strong>, il problema si sarebbe dovuto risolvere con il <strong>cambio di AirPort</strong> , diversamente, se fosse stato un <strong>difetto del connettore della scheda madre</strong>, allora avrebbe dovuto dare problemi anche il wifi.<br />
Inutile dire che ho tentato anche la cancellazione dei file di configurazione dal plist e ogni altro trick trovato in rete. Nulla.</p>
<p><span style="text-decoration: underline;">Soluzione</span>: visto che il problema si presenta sporadicamente, ho trovato un <strong>sistema per riattivare il bluetooh</strong>: è sufficiente <strong>scollegare il mac da qualsiasi periferica </strong>e <strong>riavviarlo</strong>.<br />
Se al riavvio si dovesse presentare ancora il problema &#8220;<strong>bluetooth non disponibile</strong>&#8221; eseguire nuovamente il riavvio <strong> premendo il tasto D</strong> prima del bong, per entrare in modalià diagnosi. Attendere circa un minuto e mezzo per il check hardware, nel caso doveste ricevere l&#8217;<strong>errore DL001: problema all&#8217;hardware bluetooth,</strong> ripetete l&#8217;operazione.</p>
<p>Riavviando il mac ora il bluetooth dovrebbe funzionare nuovamente!</p>
<p>L'articolo <a href="https://www.cesarebordi.it/apple-macbook-errore-dl001-problema-bluetooh-non-disponibile/">Apple MacBook: errore DL001 &#8211; problema bluetooh non disponibile</a> sembra essere il primo su <a href="https://www.cesarebordi.it">Cesare Bordi | Innovation Manager &amp; Back-end Developer</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.cesarebordi.it/apple-macbook-errore-dl001-problema-bluetooh-non-disponibile/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
