<?xml version="1.0" encoding="UTF-8" standalone="no"?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" version="2.0">

<channel>
	<title>Agron Merseli</title>
	<atom:link href="http://merseli.com/en/feed/" rel="self" type="application/rss+xml"/>
	<link>http://merseli.com/en/</link>
	<description>Electronics, Programming &amp; Automation</description>
	<lastBuildDate>Mon, 20 Apr 2026 12:11:55 +0000</lastBuildDate>
	<language>en-GB</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://merseli.com/wp-content/uploads/2020/03/cropped-Favicon-1-32x32.png</url>
	<title>Agron Merseli</title>
	<link>http://merseli.com/en/</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">140384660</site>	<itunes:explicit>no</itunes:explicit><itunes:subtitle>Electronics, Programming &amp; Automation</itunes:subtitle><item>
		<title>Home Assistant set up VM Wi-Fi connection via CLI</title>
		<link>http://merseli.com/en/2026/04/20/home-assistant-set-up-vm-wi-fi-connection-via-cli/</link>
					<comments>http://merseli.com/en/2026/04/20/home-assistant-set-up-vm-wi-fi-connection-via-cli/#respond</comments>
		
		<dc:creator><![CDATA[agron.merseli]]></dc:creator>
		<pubDate>Mon, 20 Apr 2026 11:47:29 +0000</pubDate>
				<category><![CDATA[Home Assistant]]></category>
		<guid isPermaLink="false">https://merseli.com/?p=1666</guid>

					<description><![CDATA[<p>2026-04-20 &#8211; Agron Merseli Open Virtual Network Editor from VMware Workstation. Set up the network as bridged to the Wi-Fi card. Enter the VM settings. Select the virtual network. Restart the machine. Check if the router has not give any ip address. Note the name of the network interface, in this case is enp2s0, this [&#8230;]</p>
The post <a href="http://merseli.com/en/2026/04/20/home-assistant-set-up-vm-wi-fi-connection-via-cli/">Home Assistant set up VM Wi-Fi connection via CLI</a> first appeared on <a href="http://merseli.com/en/">Agron Merseli</a>.]]></description>
										<content:encoded><![CDATA[<p class="has-text-align-right"><strong><em>2026-04-20 &#8211; Agron Merseli</em></strong></p>



<p>Open Virtual Network Editor from VMware Workstation.</p>



<figure class="wp-block-image size-full"><img fetchpriority="high" decoding="async" width="1050" height="715" src="https://merseli.com/wp-content/uploads/2026/04/image.png" alt="" class="wp-image-1667" style="aspect-ratio:2.2341353945892033;object-fit:contain" srcset="https://merseli.com/wp-content/uploads/2026/04/image.png 1050w, https://merseli.com/wp-content/uploads/2026/04/image-768x523.png 768w, https://merseli.com/wp-content/uploads/2026/04/image-18x12.png 18w, https://merseli.com/wp-content/uploads/2026/04/image-500x340.png 500w, https://merseli.com/wp-content/uploads/2026/04/image-800x545.png 800w" sizes="(max-width: 1050px) 100vw, 1050px" /></figure>



<p>Set up the network as bridged to the Wi-Fi card.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="707" height="678" src="https://merseli.com/wp-content/uploads/2026/04/image-1.png" alt="" class="wp-image-1668" srcset="https://merseli.com/wp-content/uploads/2026/04/image-1.png 707w, https://merseli.com/wp-content/uploads/2026/04/image-1-13x12.png 13w, https://merseli.com/wp-content/uploads/2026/04/image-1-500x479.png 500w" sizes="(max-width: 707px) 100vw, 707px" /></figure>



<p></p>



<p>Enter the VM settings.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="671" height="550" src="https://merseli.com/wp-content/uploads/2026/04/image-2.png" alt="" class="wp-image-1672" srcset="https://merseli.com/wp-content/uploads/2026/04/image-2.png 671w, https://merseli.com/wp-content/uploads/2026/04/image-2-15x12.png 15w, https://merseli.com/wp-content/uploads/2026/04/image-2-500x410.png 500w" sizes="(max-width: 671px) 100vw, 671px" /></figure>



<p></p>



<p>Select the virtual network.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="905" height="578" src="https://merseli.com/wp-content/uploads/2026/04/image-3.png" alt="" class="wp-image-1673" srcset="https://merseli.com/wp-content/uploads/2026/04/image-3.png 905w, https://merseli.com/wp-content/uploads/2026/04/image-3-768x491.png 768w, https://merseli.com/wp-content/uploads/2026/04/image-3-18x12.png 18w, https://merseli.com/wp-content/uploads/2026/04/image-3-500x319.png 500w, https://merseli.com/wp-content/uploads/2026/04/image-3-800x511.png 800w" sizes="auto, (max-width: 905px) 100vw, 905px" /></figure>



<p></p>



<p>Restart the machine.</p>



<p>Check if the router has not give any ip address.</p>



<p>Note the name of the network interface, in this case is enp2s0, this will not change also if you move the Vm to another machine.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1196" height="822" src="https://merseli.com/wp-content/uploads/2026/04/image-5.png" alt="" class="wp-image-1675" srcset="https://merseli.com/wp-content/uploads/2026/04/image-5.png 1196w, https://merseli.com/wp-content/uploads/2026/04/image-5-768x528.png 768w, https://merseli.com/wp-content/uploads/2026/04/image-5-18x12.png 18w, https://merseli.com/wp-content/uploads/2026/04/image-5-500x344.png 500w, https://merseli.com/wp-content/uploads/2026/04/image-5-800x550.png 800w" sizes="auto, (max-width: 1196px) 100vw, 1196px" /></figure>



<p></p>



<p>Now type the follow lines to permit to HA to connect to the existing Wi-Fi connection.</p>



<pre class="wp-block-code"><code>network info</code></pre>



<p>Check if network interface has no ip</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="646" height="798" src="https://merseli.com/wp-content/uploads/2026/04/image-7.png" alt="" class="wp-image-1677" srcset="https://merseli.com/wp-content/uploads/2026/04/image-7.png 646w, https://merseli.com/wp-content/uploads/2026/04/image-7-10x12.png 10w, https://merseli.com/wp-content/uploads/2026/04/image-7-500x618.png 500w" sizes="auto, (max-width: 646px) 100vw, 646px" /></figure>



<p></p>



<p>Now type the following command (remember to rename the interface)</p>



<pre class="wp-block-code"><code>network update enp2s0 --ipv4-method auto --ipv6-method disabled</code></pre>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="602" height="61" src="https://merseli.com/wp-content/uploads/2026/04/image-8.png" alt="" class="wp-image-1678" srcset="https://merseli.com/wp-content/uploads/2026/04/image-8.png 602w, https://merseli.com/wp-content/uploads/2026/04/image-8-18x2.png 18w, https://merseli.com/wp-content/uploads/2026/04/image-8-500x51.png 500w" sizes="auto, (max-width: 602px) 100vw, 602px" /></figure>



<p></p>



<p>This means the IPv6 is disabled you need only IPv4 set to auto that means DHCP.</p>



<p>If you need to set up a fixed IP you need to set method static and set the ip address, using the highlighted commands.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1097" height="798" src="https://merseli.com/wp-content/uploads/2026/04/image-9.png" alt="" class="wp-image-1679" srcset="https://merseli.com/wp-content/uploads/2026/04/image-9.png 1097w, https://merseli.com/wp-content/uploads/2026/04/image-9-768x559.png 768w, https://merseli.com/wp-content/uploads/2026/04/image-9-16x12.png 16w, https://merseli.com/wp-content/uploads/2026/04/image-9-500x364.png 500w, https://merseli.com/wp-content/uploads/2026/04/image-9-800x582.png 800w" sizes="auto, (max-width: 1097px) 100vw, 1097px" /></figure>



<p></p>



<p> Finally you have to set the Wi-Fi SSID and Wi-Fi password using the following command.</p>



<p>Remember to change the network interface, name SSID and password.</p>



<pre class="wp-block-code"><code>network update enp2s0 --wifi-auth wpa-psk --wifi-ssid WIFIXYZ123 --wifi-psk pwdwifi123</code></pre>



<p>After that type </p>



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



<p>to return the the top of the CLI.</p>



<p>And check ip the router has give a new ip address to the HA server.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="590" height="525" src="https://merseli.com/wp-content/uploads/2026/04/image-10.png" alt="" class="wp-image-1680" srcset="https://merseli.com/wp-content/uploads/2026/04/image-10.png 590w, https://merseli.com/wp-content/uploads/2026/04/image-10-13x12.png 13w, https://merseli.com/wp-content/uploads/2026/04/image-10-500x445.png 500w" sizes="auto, (max-width: 590px) 100vw, 590px" /></figure>



<p></p>



<p>Finally you can enter the webserver running locally at the following address.</p>



<pre class="wp-block-code"><code>http:&#47;&#47;homeassistant.local:8123</code></pre>



<p>or, using the actual ip:</p>



<pre class="wp-block-code"><code>http:&#47;&#47;192.168.X.Y:8123</code></pre>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="352" height="786" src="https://merseli.com/wp-content/uploads/2026/04/image-11.png" alt="" class="wp-image-1683" srcset="https://merseli.com/wp-content/uploads/2026/04/image-11.png 352w, https://merseli.com/wp-content/uploads/2026/04/image-11-5x12.png 5w" sizes="auto, (max-width: 352px) 100vw, 352px" /></figure>



<p></p>



<p class="has-text-align-right"></p>The post <a href="http://merseli.com/en/2026/04/20/home-assistant-set-up-vm-wi-fi-connection-via-cli/">Home Assistant set up VM Wi-Fi connection via CLI</a> first appeared on <a href="http://merseli.com/en/">Agron Merseli</a>.]]></content:encoded>
					
					<wfw:commentRss>http://merseli.com/en/2026/04/20/home-assistant-set-up-vm-wi-fi-connection-via-cli/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1666</post-id>	</item>
		<item>
		<title>Lavalamp menu using CSS3</title>
		<link>http://merseli.com/en/2020/03/19/lavalamp-menu-using-css3/</link>
					<comments>http://merseli.com/en/2020/03/19/lavalamp-menu-using-css3/#respond</comments>
		
		<dc:creator><![CDATA[agron.merseli]]></dc:creator>
		<pubDate>Thu, 19 Mar 2020 19:00:00 +0000</pubDate>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[lavalamp]]></category>
		<category><![CDATA[menu]]></category>
		<guid isPermaLink="false">https://merseli.com/?p=1343</guid>

					<description><![CDATA[<p>Example of a simple menu in lavalamp style written using only CSS attributes and properties. CSS3 HTML Lavalamp Menu CSS3 Home About Blog Portefolio Contact</p>
The post <a href="http://merseli.com/en/2020/03/19/lavalamp-menu-using-css3/">Lavalamp menu using CSS3</a> first appeared on <a href="http://merseli.com/en/">Agron Merseli</a>.]]></description>
										<content:encoded><![CDATA[<p>Example of a simple menu in lavalamp style written using only CSS attributes and properties.</p>



<h3 class="wp-block-heading">CSS3</h3>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: css; first-line: 2; title: ; notranslate">
nav.lavalamp {
	margin: 27px auto 0;
	position: relative;
	width: 590px;
	height: 50px;
	background-color: #34495e;
	border-radius: 8px;
	font-size: 0;
}
nav.lavalamp a {
	line-height: 50px;
	height: 100%;
	font-size: 15px;
	display: inline-block;
	position: relative;
	z-index: 1;
	text-decoration: none;
	text-transform: uppercase;
	text-align: center;
	color: white;
	cursor: pointer;
}
nav.lavalamp .animation {
	position: absolute;
	height: 100%;
	top: 0;
	z-index: 0;
	transition: all .5s ease 0s;
	border-radius: 8px;
}
nav.lavalamp a:nth-child(1) {
	width: 100px;
}
nav.lavalamp a:nth-child(2) {
	width: 110px;
}
nav.lavalamp a:nth-child(3) {
	width: 100px;
}
nav.lavalamp a:nth-child(4) {
	width: 160px;
}
nav.lavalamp a:nth-child(5) {
	width: 120px;
}
nav.lavalamp .start-home, a:nth-child(1):hover~.animation {
	width: 100px;
	left: 0;
	background-color: #1abc9c;
}
nav.lavalamp .start-about, a:nth-child(2):hover~.animation {
	width: 110px;
	left: 100px;
	background-color: #e74c3c;
}
nav.lavalamp .start-blog, a:nth-child(3):hover~.animation {
	width: 100px;
	left: 210px;
	background-color: #3498db;
}
nav.lavalamp .start-portefolio, a:nth-child(4):hover~.animation {
	width: 160px;
	left: 310px;
	background-color: #9b59b6;
}
nav.lavalamp .start-contact, a:nth-child(5):hover~.animation {
	width: 120px;
	left: 470px;
	background-color: #e67e22;
}
</pre></div>


<h3 class="wp-block-heading">HTML</h3>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: xml; title: ; notranslate">
&lt;h1&gt;Lavalamp CSS Menu&lt;/h1&gt;

&lt;nav class=&quot;lavalamp&quot;&gt;
	&lt;a href=&quot;#&quot;&gt;Home&lt;/a&gt;
	&lt;a href=&quot;#&quot;&gt;About&lt;/a&gt;
	&lt;a href=&quot;#&quot;&gt;Blog&lt;/a&gt;
	&lt;a href=&quot;#&quot;&gt;Portefolio&lt;/a&gt;
	&lt;a href=&quot;#&quot;&gt;Contact&lt;/a&gt;
	&lt;div class=&quot;animation start-home&quot;&gt;&lt;/div&gt;
&lt;/nav&gt;
</pre></div>


<style>

nav.lavalamp {
	margin: 27px auto 0;

	position: relative;
	width: 590px;
	height: 50px;
	background-color: #34495e;
	border-radius: 8px;
	font-size: 0;
}
nav.lavalamp a {
	line-height: 50px;
	height: 100%;
	font-size: 15px;
	display: inline-block;
	position: relative;
	z-index: 1;
	text-decoration: none;
	text-transform: uppercase;
	text-align: center;
	color: white;
	cursor: pointer;
}
nav.lavalamp .animation {
	position: absolute;
	height: 100%;
	top: 0;
	z-index: 0;
	transition: all .5s ease 0s;
	border-radius: 8px;
}
nav.lavalamp a:nth-child(1) {
	width: 100px;
}
nav.lavalamp a:nth-child(2) {
	width: 110px;
}
nav.lavalamp a:nth-child(3) {
	width: 100px;
}
nav.lavalamp a:nth-child(4) {
	width: 160px;
}
nav.lavalamp a:nth-child(5) {
	width: 120px;
}
nav.lavalamp .start-home, a:nth-child(1):hover~.animation {
	width: 100px;
	left: 0;
	background-color: #1abc9c;
}
nav.lavalamp .start-about, a:nth-child(2):hover~.animation {
	width: 110px;
	left: 100px;
	background-color: #e74c3c;
}
nav.lavalamp .start-blog, a:nth-child(3):hover~.animation {
	width: 100px;
	left: 210px;
	background-color: #3498db;
}
nav.lavalamp .start-portefolio, a:nth-child(4):hover~.animation {
	width: 160px;
	left: 310px;
	background-color: #9b59b6;
}
nav.lavalamp .start-contact, a:nth-child(5):hover~.animation {
	width: 120px;
	left: 470px;
	background-color: #e67e22;
}
</style>

<h1>Lavalamp Menu CSS3</h1>

<nav class="lavalamp">
	<a href="#">Home</a>
	<a href="#">About</a>
	<a href="#">Blog</a>
	<a href="#">Portefolio</a>
	<a href="#">Contact</a>
	<div class="animation start-home"></div>
</nav>The post <a href="http://merseli.com/en/2020/03/19/lavalamp-menu-using-css3/">Lavalamp menu using CSS3</a> first appeared on <a href="http://merseli.com/en/">Agron Merseli</a>.]]></content:encoded>
					
					<wfw:commentRss>http://merseli.com/en/2020/03/19/lavalamp-menu-using-css3/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1343</post-id>	</item>
		<item>
		<title>CSS smart use of the Background-Position property</title>
		<link>http://merseli.com/en/2020/03/19/css-smart-use-of-the-background-position-property/</link>
					<comments>http://merseli.com/en/2020/03/19/css-smart-use-of-the-background-position-property/#respond</comments>
		
		<dc:creator><![CDATA[agron.merseli]]></dc:creator>
		<pubDate>Thu, 19 Mar 2020 18:52:00 +0000</pubDate>
				<category><![CDATA[Tip & Tricks]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Background-Position]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[html]]></category>
		<guid isPermaLink="false">https://merseli.com/?p=1332</guid>

					<description><![CDATA[<p>Introduction Generally this property is used to move a background image or a gradation of color inside its container. Code example: For more information about this property, refer to the link of W3Schools. How to insert multiple images into a web page with a single image file using the CSS Background-Position property. In my case [&#8230;]</p>
The post <a href="http://merseli.com/en/2020/03/19/css-smart-use-of-the-background-position-property/">CSS smart use of the Background-Position property</a> first appeared on <a href="http://merseli.com/en/">Agron Merseli</a>.]]></description>
										<content:encoded><![CDATA[<h3 class="wp-block-heading">Introduction</h3>



<p>Generally this property is used to move a background image or a gradation of color inside its container.</p>



<p>Code example:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: css; title: ; notranslate">
html {
  background-position: 100px 5px; 
}
</pre></div>


<p>For more information about this property, refer to the link of <a rel="noreferrer noopener" aria-label="W3School (opens in a new tab)" href="https://www.w3schools.com/cssref/pr_background-position.asp" target="_blank">W3Schools</a>.</p>



<h3 class="wp-block-heading">How to insert multiple images into a web page with a single image file using the CSS Background-Position property.</h3>



<p>In my case I used it to move an image that contains several icons at the same size (32px x 32px), I aligned them with Photoshop in order to create a rectangle 3 x 4 icons with a total size of 96px x 128px with this final result.</p>



<figure class="wp-block-image size-large"><a href="https://merseli.com/wp-content/uploads/2020/03/1-sw_96_128.png"><img loading="lazy" decoding="async" width="96" height="128" src="https://merseli.com/wp-content/uploads/2020/03/1-sw_96_128.png" alt="" class="wp-image-1333"/></a></figure>



<p>At this point in the HTML I created several divs as many as the icons to show, I associated the div elements with the .sw-item class with these style parameters.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: css; title: ; notranslate">
.item-sw{
	width: 32px; 
	height: 32px; 
	margin: 10px 10px;
	display: inline-block; 
	background-repeat: no-repeat; 
	vertical-align: middle; 
	background-image: url(&#039;sw_96_128.png&#039;);
}
</pre></div>


<p>Note in the code the div element is a block of fixed height and width of 32px as much as the individual icons in the image file will be.</p>



<p>In each div I moved giving an html style attribute in x and y of the correct size to frame the icon concerned, the origin x = 0 and y = 0 of the image is in the upper left corner.</p>



<figure class="wp-block-image size-large"><a href="https://merseli.com/wp-content/uploads/2020/03/2-sw_96_128_count.png"><img loading="lazy" decoding="async" width="128" height="161" src="https://merseli.com/wp-content/uploads/2020/03/2-sw_96_128_count.png" alt="" class="wp-image-1334"/></a></figure>



<p>The HTML code is written in this way.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: xml; title: ; notranslate">
&lt;!doctype html&gt;

&lt;html lang=&quot;en&quot;&gt;
	&lt;head&gt;
  &lt;meta charset=&quot;utf-8&quot;&gt;

  &lt;title&gt;Test CSS Background-Position&lt;/title&gt;
  &lt;meta name=&quot;description&quot; content=&quot;TestCSS Background-Position&quot;&gt;
  &lt;meta name=&quot;author&quot; content=&quot;Agron Merseli&quot;&gt;

	&lt;style type=&quot;text/css&quot;&gt;
		.item-sw{
			width: 32px; 
			height: 32px; 
			margin: 10px 10px;
			display: inline-block; 
			background-repeat: no-repeat; 
			vertical-align: middle; 
			background-image: url(&#039;sw_96_128.png&#039;);
		}
	&lt;/style&gt;
&lt;/head&gt;

&lt;body&gt;
	
	&lt;div class=&quot;item-sw&quot; style=&quot;background-position: 0 0;&quot;&gt;&lt;/div&gt;
	&lt;div class=&quot;item-sw&quot; style=&quot;background-position: -32px 0;&quot;&gt;&lt;/div&gt;
	&lt;div class=&quot;item-sw&quot; style=&quot;background-position: -64px 0;&quot;&gt;&lt;/div&gt;
	&lt;br&gt;
	&lt;div class=&quot;item-sw&quot; style=&quot;background-position: 0 -32px;&quot;&gt;&lt;/div&gt;
	&lt;div class=&quot;item-sw&quot; style=&quot;background-position: -32px -32px;&quot;&gt;&lt;/div&gt;
	&lt;div class=&quot;item-sw&quot; style=&quot;background-position: -64px -32px;&quot;&gt;&lt;/div&gt;
	&lt;br&gt;
	&lt;div class=&quot;item-sw&quot; style=&quot;background-position: 0 -64px;&quot;&gt;&lt;/div&gt;
	&lt;div class=&quot;item-sw&quot; style=&quot;background-position: -32px -64px;&quot;&gt;&lt;/div&gt;
	&lt;div class=&quot;item-sw&quot; style=&quot;background-position: -64px -64px;&quot;&gt;&lt;/div&gt;
	&lt;br&gt;
	&lt;div class=&quot;item-sw&quot; style=&quot;background-position: 0 -96px;&quot;&gt;&lt;/div&gt;
	&lt;div class=&quot;item-sw&quot; style=&quot;background-position: -32px -96px;&quot;&gt;&lt;/div&gt;
	&lt;div class=&quot;item-sw&quot; style=&quot;background-position: -64px -96px;&quot;&gt;&lt;/div&gt;

&lt;/body&gt;
&lt;/html&gt;
</pre></div>


<p>The final result after the browser processing.</p>



<figure class="wp-block-image size-large"><a href="https://merseli.com/wp-content/uploads/2020/03/3-Webpage.png"><img loading="lazy" decoding="async" width="952" height="636" src="https://merseli.com/wp-content/uploads/2020/03/3-Webpage.png" alt="" class="wp-image-1335" srcset="https://merseli.com/wp-content/uploads/2020/03/3-Webpage.png 952w, https://merseli.com/wp-content/uploads/2020/03/3-Webpage-300x200.png 300w, https://merseli.com/wp-content/uploads/2020/03/3-Webpage-768x513.png 768w" sizes="auto, (max-width: 952px) 100vw, 952px" /></a></figure>



<h3 class="wp-block-heading">Conclusion</h3>



<p>The main reason to use this method of grouping images is when the icons to be shown are many and of the same size and are to be shown in various parts of the site. In this way the server will not be not overloaded by multiple requests for all the individual image files, and in the cache memory only one single image file will be stored which will speed up the opening and displaying of the web pages in the client.</p>The post <a href="http://merseli.com/en/2020/03/19/css-smart-use-of-the-background-position-property/">CSS smart use of the Background-Position property</a> first appeared on <a href="http://merseli.com/en/">Agron Merseli</a>.]]></content:encoded>
					
					<wfw:commentRss>http://merseli.com/en/2020/03/19/css-smart-use-of-the-background-position-property/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1332</post-id>	</item>
		<item>
		<title>Python Scripts for Notepad++</title>
		<link>http://merseli.com/en/2020/03/19/python-scripts-for-notepad/</link>
					<comments>http://merseli.com/en/2020/03/19/python-scripts-for-notepad/#respond</comments>
		
		<dc:creator><![CDATA[agron.merseli]]></dc:creator>
		<pubDate>Thu, 19 Mar 2020 14:43:00 +0000</pubDate>
				<category><![CDATA[Tip & Tricks]]></category>
		<category><![CDATA[Notepad++]]></category>
		<category><![CDATA[Plugin]]></category>
		<category><![CDATA[Python Script]]></category>
		<guid isPermaLink="false">https://merseli.com/?p=757</guid>

					<description><![CDATA[<p>Sometimes working on different platforms happens to move sources from one place to another, usually this simple copy-paste operation does not cause problems, but if you work with Eclipse, the sources are treated as simple text files so the file encoding becomes important to avoid surprises especially if there are many sources. Usually in Eclipse [&#8230;]</p>
The post <a href="http://merseli.com/en/2020/03/19/python-scripts-for-notepad/">Python Scripts for Notepad++</a> first appeared on <a href="http://merseli.com/en/">Agron Merseli</a>.]]></description>
										<content:encoded><![CDATA[<p>Sometimes working on different platforms happens to move sources from one place to another, usually this simple copy-paste operation does not cause problems, but if you work with <a href="https://www.eclipse.org/" target="_blank" rel="noreferrer noopener" aria-label="Eclipse (opens in a new tab)">Eclipse</a>, the sources are treated as simple text files so the file encoding becomes important to avoid surprises especially if there are many sources.</p>



<figure class="wp-block-image size-large"><a href="https://merseli.com/wp-content/uploads/2020/03/1.png"><img loading="lazy" decoding="async" width="1128" height="571" src="https://i2.wp.com/merseli.com/wp-content/uploads/2020/03/1.png?fit=1024%2C518&amp;ssl=1" alt="" class="wp-image-758" srcset="https://merseli.com/wp-content/uploads/2020/03/1.png 1128w, https://merseli.com/wp-content/uploads/2020/03/1-300x152.png 300w, https://merseli.com/wp-content/uploads/2020/03/1-1024x518.png 1024w, https://merseli.com/wp-content/uploads/2020/03/1-768x389.png 768w" sizes="auto, (max-width: 1128px) 100vw, 1128px" /></a><figcaption>Wrong text encoding</figcaption></figure>



<p>Usually in Eclipse the text files are encoded as &#8220;Cp1252&#8221;, therefore if you use the classic Latin characters it is necessary that the files are encoded in &#8220;UTF-8&#8221; and the first option to modify in the IDE is the following.</p>



<p>In <em>Windows &#8211; Preferences &#8211; General &#8211; Workspace &#8211; Text file encoding</em>, select <em>Other: UTF-8</em></p>



<figure class="wp-block-image size-large"><a href="https://merseli.com/wp-content/uploads/2020/03/2.png"><img loading="lazy" decoding="async" width="1680" height="1011" src="https://i1.wp.com/merseli.com/wp-content/uploads/2020/03/2.png?fit=1024%2C616&amp;ssl=1" alt="" class="wp-image-759" srcset="https://merseli.com/wp-content/uploads/2020/03/2.png 1680w, https://merseli.com/wp-content/uploads/2020/03/2-300x181.png 300w, https://merseli.com/wp-content/uploads/2020/03/2-1024x616.png 1024w, https://merseli.com/wp-content/uploads/2020/03/2-768x462.png 768w, https://merseli.com/wp-content/uploads/2020/03/2-1536x924.png 1536w" sizes="auto, (max-width: 1680px) 100vw, 1680px" /></a></figure>



<p>At this point proceed importing the sources into the project.</p>



<p>If the sources have already been imported, it is necessary to convert them to the correct encoding.</p>



<p>Here you can use a very useful tool to run macros and scripts written in Python on <a rel="noreferrer noopener" aria-label="Notepad++ (opens in a new tab)" href="https://notepad-plus-plus.org/" target="_blank">Notepad++</a>, the plugin is called Python Script and it can be installed from the Notepad++ Plugin Manager.</p>



<figure class="wp-block-image size-large"><a href="https://merseli.com/wp-content/uploads/2020/03/3.png"><img loading="lazy" decoding="async" width="941" height="689" src="https://merseli.com/wp-content/uploads/2020/03/3.png" alt="" class="wp-image-760" srcset="https://merseli.com/wp-content/uploads/2020/03/3.png 941w, https://merseli.com/wp-content/uploads/2020/03/3-300x220.png 300w, https://merseli.com/wp-content/uploads/2020/03/3-768x562.png 768w" sizes="auto, (max-width: 941px) 100vw, 941px" /></a></figure>



<p>To create a new script from the <em>Plugin &#8211; Python Script &#8211; New Script menu</em>, give a name to the script you want to create.</p>



<p>In this case, the script to convert the encoding of files into UTF-8 with BOM is as follows.</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: python; auto-links: false; gutter: false; title: ; notranslate">
import os;
import sys;
filePathSrc=&quot;D:\\eclipse\\eclipse-workspace\\LibroJava11\\src\\LibroJava*11&quot;
for root, dirs, files in os.walk(filePathSrc):
    for fn in files:
      if fn&#x5B;-4:] != &#039;.jar&#039; and fn&#x5B;-5:] != &#039;.ear&#039; and fn&#x5B;-4:] != &#039;.gif&#039; and fn&#x5B;-4:] != &#039;.jpg&#039; and fn&#x5B;-5:] != &#039;.jpeg&#039; and fn&#x5B;-4:] != &#039;.xls&#039; and fn&#x5B;-4:] != &#039;.GIF&#039; and fn&#x5B;-4:] != &#039;.JPG&#039; and fn&#x5B;-5:] != &#039;.JPEG&#039; and fn&#x5B;-4:] != &#039;.XLS&#039; and fn&#x5B;-4:] != &#039;.PNG&#039; and fn&#x5B;-4:] != &#039;.png&#039; and fn&#x5B;-4:] != &#039;.cab&#039; and fn&#x5B;-4:] != &#039;.CAB&#039; and fn&#x5B;-4:] != &#039;.ico&#039;:
        notepad.open(root + &quot;\\&quot; + fn)
        console.write(root + &quot;\\&quot; + fn + &quot;\r\n&quot;)
        #Does not work --&gt; notepad.runMenuCommand(&quot;Encoding&quot;, &quot;Character sets&quot;, &quot;Chinese&quot;, &quot;GB2312 (Simplified)&quot;)
        # notepad.menuCommand(MENUCOMMAND.FORMAT_GB2312)
        # notepad.runMenuCommand(&quot;Encoding&quot;, &quot;Convert to UTF-8-BOM&quot;)
        notepad.menuCommand(MENUCOMMAND.FORMAT_CONV2_UTF_8)
        # Reference: https://github.com/bruderstein/PythonScript/blob/master/PythonScript/src/NotepadPython.cpp
        notepad.save()
        notepad.close()
</pre></div>


<p>Note that I entered the path containing the sources in the &#8220;<em>filePathSrc</em>&#8221; string and with the &#8220;<em>notepad.menuCommand</em>&#8221; method I passed the &#8220;<em>MENUCOMMAND.FORMAT_CONV2_UTF_8</em>&#8221; command which encodes the file.</p>



<p>Save the script once complete.</p>



<figure class="wp-block-image size-large"><a href="https://merseli.com/wp-content/uploads/2020/03/4.png"><img loading="lazy" decoding="async" width="951" height="578" src="https://merseli.com/wp-content/uploads/2020/03/4.png" alt="" class="wp-image-761" srcset="https://merseli.com/wp-content/uploads/2020/03/4.png 951w, https://merseli.com/wp-content/uploads/2020/03/4-300x182.png 300w, https://merseli.com/wp-content/uploads/2020/03/4-768x467.png 768w" sizes="auto, (max-width: 951px) 100vw, 951px" /></a></figure>



<p>To launch the script from the <em>Plugins &#8211; Python Scripts &#8211; Script</em> menu and select the script created.</p>



<figure class="wp-block-image size-large"><a href="https://merseli.com/wp-content/uploads/2020/03/5.png"><img loading="lazy" decoding="async" width="730" height="623" src="https://merseli.com/wp-content/uploads/2020/03/5.png" alt="" class="wp-image-762" srcset="https://merseli.com/wp-content/uploads/2020/03/5.png 730w, https://merseli.com/wp-content/uploads/2020/03/5-300x256.png 300w" sizes="auto, (max-width: 730px) 100vw, 730px" /></a></figure>



<p>At this point, reloading the source into Eclipse it can be verified that the file encoding is now correct.</p>



<figure class="wp-block-image size-large"><a href="https://merseli.com/wp-content/uploads/2020/03/6.png"><img loading="lazy" decoding="async" width="1263" height="623" src="https://i0.wp.com/merseli.com/wp-content/uploads/2020/03/6.png?fit=1024%2C505&amp;ssl=1" alt="" class="wp-image-763" srcset="https://merseli.com/wp-content/uploads/2020/03/6.png 1263w, https://merseli.com/wp-content/uploads/2020/03/6-300x148.png 300w, https://merseli.com/wp-content/uploads/2020/03/6-1024x505.png 1024w, https://merseli.com/wp-content/uploads/2020/03/6-768x379.png 768w" sizes="auto, (max-width: 1263px) 100vw, 1263px" /></a></figure>



<p>For more information about the Python Scripts plugin and for many other useful scripts visit the developer&#8217;s GitHub page.</p>



<div class="wp-block-button is-style-outline is-style-outline--1"><a class="wp-block-button__link has-background has-very-light-gray-background-color" href="https://notepad-plus-plus.org/">Notepad++ Download</a></div>



<p></p>



<div class="wp-block-button is-style-outline is-style-outline--2"><a class="wp-block-button__link has-background has-very-light-gray-background-color" href="https://github.com/bruderstein/PythonScript/tree/master/PythonScript">Python Script GitHub</a></div>



<p> </p>



<div class="wp-block-button is-style-outline is-style-outline--3"><a class="wp-block-button__link has-background has-very-light-gray-background-color" href="https://merseli.com/wp-content/uploads/2020/03/ConvertToUFT-8-BOM.txt">ConvertToUFT-8-BOM.py</a></div>



<p>Rename <em>ConvertToUFT-8-BOM.txt</em> to <em>ConvertToUFT-8-BOM.py </em></p>The post <a href="http://merseli.com/en/2020/03/19/python-scripts-for-notepad/">Python Scripts for Notepad++</a> first appeared on <a href="http://merseli.com/en/">Agron Merseli</a>.]]></content:encoded>
					
					<wfw:commentRss>http://merseli.com/en/2020/03/19/python-scripts-for-notepad/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">757</post-id>	</item>
		<item>
		<title>Posters of fundamentals electronics</title>
		<link>http://merseli.com/en/2020/03/18/posters-of-fundamentals-electronics/</link>
					<comments>http://merseli.com/en/2020/03/18/posters-of-fundamentals-electronics/#respond</comments>
		
		<dc:creator><![CDATA[agron.merseli]]></dc:creator>
		<pubDate>Wed, 18 Mar 2020 14:40:32 +0000</pubDate>
				<category><![CDATA[Electronics]]></category>
		<category><![CDATA[fundamental]]></category>
		<category><![CDATA[Posters]]></category>
		<guid isPermaLink="false">https://merseli.com/?p=660</guid>

					<description><![CDATA[<p>Two posters of 2726x3652px dimensions containing the fundamental references of the electronic components and the basic symbols.</p>
The post <a href="http://merseli.com/en/2020/03/18/posters-of-fundamentals-electronics/">Posters of fundamentals electronics</a> first appeared on <a href="http://merseli.com/en/">Agron Merseli</a>.]]></description>
										<content:encoded><![CDATA[<p>Two posters of 2726x3652px dimensions containing the fundamental references of the electronic components and the basic symbols.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="5452" height="3652" src="https://i2.wp.com/merseli.com/wp-content/uploads/2020/03/TinkrPostr.png?fit=1024%2C686&amp;ssl=1" alt="" class="wp-image-661" srcset="https://merseli.com/wp-content/uploads/2020/03/TinkrPostr.png 5452w, https://merseli.com/wp-content/uploads/2020/03/TinkrPostr-300x201.png 300w, https://merseli.com/wp-content/uploads/2020/03/TinkrPostr-1024x686.png 1024w, https://merseli.com/wp-content/uploads/2020/03/TinkrPostr-768x514.png 768w, https://merseli.com/wp-content/uploads/2020/03/TinkrPostr-1536x1029.png 1536w, https://merseli.com/wp-content/uploads/2020/03/TinkrPostr-2048x1372.png 2048w" sizes="auto, (max-width: 5452px) 100vw, 5452px" /></figure>



<div class="wp-block-button is-style-outline is-style-outline--4"><a class="wp-block-button__link has-text-color has-very-dark-gray-color has-background has-very-light-gray-background-color" href="http://merseli.com/wp-content/uploads/2020/03/TinkrPostr.png">Download</a></div>The post <a href="http://merseli.com/en/2020/03/18/posters-of-fundamentals-electronics/">Posters of fundamentals electronics</a> first appeared on <a href="http://merseli.com/en/">Agron Merseli</a>.]]></content:encoded>
					
					<wfw:commentRss>http://merseli.com/en/2020/03/18/posters-of-fundamentals-electronics/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">660</post-id>	</item>
		<item>
		<title>Arduino CLI is now live</title>
		<link>http://merseli.com/en/2020/03/14/arduino-cli-is-now-live/</link>
					<comments>http://merseli.com/en/2020/03/14/arduino-cli-is-now-live/#respond</comments>
		
		<dc:creator><![CDATA[agron.merseli]]></dc:creator>
		<pubDate>Sat, 14 Mar 2020 15:00:00 +0000</pubDate>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[CLI]]></category>
		<guid isPermaLink="false">https://merseli.com/?p=604</guid>

					<description/>
										<content:encoded><![CDATA[<figure class="wp-block-image size-large"><img decoding="async" src="https://blog.arduino.cc/wp-content/uploads/2020/03/blogpost_arduino-cli-1024x549.png" alt=""/></figure>



<figure class="wp-block-embed-youtube wp-block-embed is-type-video is-provider-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
<iframe loading="lazy" title="Arduino CLI: An Introduction" width="1032" height="581" src="https://www.youtube.com/embed/95IhOp5NOJc?feature=oembed" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div><figcaption>Introduction to Arduino Command Line Interface</figcaption></figure>



<figure class="wp-block-gallery columns-1 is-cropped wp-block-gallery-5 is-layout-flex wp-block-gallery-is-layout-flex"><ul class="blocks-gallery-grid"><li class="blocks-gallery-item"><figure><img decoding="async" src="https://blog.arduino.cc/wp-content/uploads/2020/03/arduino-cli-help-carbon-1024x817.png" alt=""/></figure></li></ul></figure>



<div class="wp-block-button alignleft is-style-outline is-style-outline--6"><a class="wp-block-button__link has-background has-very-light-gray-background-color" href="https://arduino.github.io/arduino-cli/installation/" style="border-radius:36px" target="_blank" rel="noreferrer noopener">Download Installer</a></div>



<p></p>



<div class="wp-block-button alignleft is-style-outline is-style-outline--7"><a class="wp-block-button__link has-background has-very-light-gray-background-color" href="https://blog.arduino.cc/2020/03/13/arduino-cli-an-introduction/" style="border-radius:36px" target="_blank" rel="noreferrer noopener">Source Article</a></div>The post <a href="http://merseli.com/en/2020/03/14/arduino-cli-is-now-live/">Arduino CLI is now live</a> first appeared on <a href="http://merseli.com/en/">Agron Merseli</a>.]]></content:encoded>
					
					<wfw:commentRss>http://merseli.com/en/2020/03/14/arduino-cli-is-now-live/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">604</post-id>	</item>
	</channel>
</rss>