<?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>admin, Author at Info Spot</title>
	<atom:link href="https://info-spot.net/author/admin/feed/" rel="self" type="application/rss+xml" />
	<link>https://info-spot.net/author/admin/</link>
	<description>Info Spot blog</description>
	<lastBuildDate>Sun, 08 Dec 2024 15:41:23 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.2</generator>

<image>
	<url>https://info-spot.net/wp-content/uploads/2024/11/cropped-icon-32x32.png</url>
	<title>admin, Author at Info Spot</title>
	<link>https://info-spot.net/author/admin/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Top 10 Best Linux Games You Can Play for FREE</title>
		<link>https://info-spot.net/top-10-best-linux-games-you-can-play-for-free/</link>
					<comments>https://info-spot.net/top-10-best-linux-games-you-can-play-for-free/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Sun, 08 Dec 2024 15:41:19 +0000</pubDate>
				<category><![CDATA[Gaming]]></category>
		<category><![CDATA[Linux]]></category>
		<guid isPermaLink="false">https://info-spot.net/?p=852</guid>

					<description><![CDATA[<p>Linux is not generally the first operating system that comes to mind when you think about gaming. But&#8230;</p>
<p>The post <a href="https://info-spot.net/top-10-best-linux-games-you-can-play-for-free/">Top 10 Best Linux Games You Can Play for FREE</a> appeared first on <a href="https://info-spot.net">Info Spot</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Linux is not generally the first operating system that comes to mind when you think about gaming. But in recent years, Linux has gained a lot of really good and free games thanks to continuous efforts by the open-source community and Valve’s Proton compatibility layer. So let’s dive deep into the Top 20 best games available on Linux for FREE.</p>



<h2 class="wp-block-heading" id="top-20-best-free-linux-games-you-can-play">Top 20 Best FREE Linux Games You Can Play</h2>



<p>Table of Content</p>



<ul class="wp-block-list">
<li><a href="https://www.geeksforgeeks.org/top-20-best-linux-games-you-can-play-for-free/#1-dota-2">1. Dota 2</a></li>



<li><a href="https://www.geeksforgeeks.org/top-20-best-linux-games-you-can-play-for-free/#2-counterstrike-global-offensive">2. Counter-Strike: Global Offensive</a></li>



<li><a href="https://www.geeksforgeeks.org/top-20-best-linux-games-you-can-play-for-free/#3-team-fortress-2">3. Team Fortress 2</a></li>



<li><a href="https://www.geeksforgeeks.org/top-20-best-linux-games-you-can-play-for-free/#4-xonotic">4. Xonotic</a></li>



<li><a href="https://www.geeksforgeeks.org/top-20-best-linux-games-you-can-play-for-free/#5-war-thunder">5. War Thunder</a></li>



<li><a href="https://www.geeksforgeeks.org/top-20-best-linux-games-you-can-play-for-free/#6-super-tux">6. Super Tux</a></li>



<li><a href="https://www.geeksforgeeks.org/top-20-best-linux-games-you-can-play-for-free/#7-fishing-planet">7. Fishing Planet</a></li>



<li><a href="https://www.geeksforgeeks.org/top-20-best-linux-games-you-can-play-for-free/#8-wakfu">8. WAKFU</a></li>



<li><a href="https://www.geeksforgeeks.org/top-20-best-linux-games-you-can-play-for-free/#9-super-tux-kart">9. Super Tux Kart</a></li>



<li><a href="https://www.geeksforgeeks.org/top-20-best-linux-games-you-can-play-for-free/#10-awesomenauts">10. Awesomenauts</a></li>



<li><a href="https://www.geeksforgeeks.org/top-20-best-linux-games-you-can-play-for-free/#11-dead-maze">11. Dead Maze</a></li>



<li><a href="https://www.geeksforgeeks.org/top-20-best-linux-games-you-can-play-for-free/#12-the-battle-for-wesnoth">12. The Battle for Wesnoth</a></li>



<li><a href="https://www.geeksforgeeks.org/top-20-best-linux-games-you-can-play-for-free/#13-0-ad">13. 0 A.D</a></li>



<li><a href="https://www.geeksforgeeks.org/top-20-best-linux-games-you-can-play-for-free/#14-urban-terror">14. Urban Terror</a></li>



<li><a href="https://www.geeksforgeeks.org/top-20-best-linux-games-you-can-play-for-free/#15-assaultcube">15. AssaultCube</a></li>



<li><a href="https://www.geeksforgeeks.org/top-20-best-linux-games-you-can-play-for-free/#16-no-more-room-in-hell">16. No More Room in Hell</a></li>



<li><a href="https://www.geeksforgeeks.org/top-20-best-linux-games-you-can-play-for-free/#17-albion-online">17. Albion Online</a></li>



<li><a href="https://www.geeksforgeeks.org/top-20-best-linux-games-you-can-play-for-free/#18-hedgewars">18. HedgeWars</a></li>



<li><a href="https://www.geeksforgeeks.org/top-20-best-linux-games-you-can-play-for-free/#19-mr-rescue">19. Mr. Rescue</a></li>



<li><a href="https://www.geeksforgeeks.org/top-20-best-linux-games-you-can-play-for-free/#20-adventure-capitalist">20. Adventure Capitalist</a></li>
</ul>



<h2 class="wp-block-heading" id="1-dota-2"><strong>1. Dota 2</strong></h2>



<p><strong>Overview:&nbsp;</strong>Dota 2 is one of the most famous multiplayer online battle arena (MOBA) games worldwide. Developed by Valve Corporation, it is the sequel to the popular &#8220;Defense of the Ancients&#8221; mod for Warcraft III. As a staple in the esports world, Dota 2 continues to attract millions of players.</p>



<p><strong>Gameplay:</strong>&nbsp;In Dota 2, two teams of five players each compete to destroy the &#8220;Ancient&#8221; located in the enemy&#8217;s base. With over&nbsp;<strong>120 unique</strong>&nbsp;<strong>heroes</strong>, each with distinct abilities, players must work together, strategize, and use their skills to gain an edge over their opponents.</p>



<h3 class="wp-block-heading" id="why-play-dota-2">Why Play Dota 2?</h3>



<ul class="wp-block-list">
<li>Massive esports presence and regular updates.</li>



<li>Diverse roster of heroes and countless strategies.</li>



<li>Free to play with cosmetic microtransactions.</li>
</ul>



<figure class="wp-block-image"><img decoding="async" src="https://media.geeksforgeeks.org/wp-content/uploads/20230921061119/dota-660.jpg" alt="dota"/><figcaption class="wp-element-caption">Dota 2</figcaption></figure>



<p><strong>Installation:</strong>&nbsp;It is free to play on Linux via&nbsp;<strong>Steam</strong>.</p>



<h2 class="wp-block-heading" id="2-counterstrike-global-offensive"><strong>2. Counter-Strike: Global Offensive</strong></h2>



<p><strong>Overview:&nbsp;</strong>CS: GO is a classic tactical FPS game known for its intense gameplay and strategic team-based matches. Originally launched in 2012, it remains a staple in the competitive gaming scene.</p>



<p><strong>Gameplay:&nbsp;</strong>Players join either the Terrorists or Counter-Terrorists, completing objectives like planting or defusing bombs, rescuing hostages, or eliminating the enemy team. In-game currency is earned through performance, allowing players to purchase weapons and equipment between rounds.</p>



<h3 class="wp-block-heading" id="why-play-cs-go">Why Play CS: GO?</h3>



<ul class="wp-block-list">
<li>Thriving community and esports scene.</li>



<li>Multiple game modes including competitive, casual, and deathmatch.</li>



<li>Highly replayable due to the depth of strategy.</li>
</ul>



<figure class="wp-block-image"><img decoding="async" src="https://media.geeksforgeeks.org/wp-content/uploads/20230921061617/cs-660.jpg" alt="cs"/><figcaption class="wp-element-caption">CS: GO</figcaption></figure>



<p><strong>Installation:</strong>&nbsp;Similar to Dota 2, CS: GO is also free to play on Linux via&nbsp;<strong>Steam</strong>.</p>



<h2 class="wp-block-heading" id="3-team-fortress-2"><strong>3. Team Fortress 2</strong></h2>



<p><strong>Overview:&nbsp;</strong>Team Fortress 2 (TF2) is a multiplayer FPS with a unique art style and a variety of game modes. Developed by Valve, it combines fast-paced action with a touch of humor.</p>



<p><strong>Gameplay:</strong>&nbsp;Players choose from nine character classes, each with unique abilities and weapons, to battle it out in various modes such as Capture the Flag, Control Points, and King of the Hill. The game emphasizes teamwork, with each class playing a specific role in achieving the team&#8217;s objectives.</p>



<h3 class="wp-block-heading" id="why-play-team-fortress-2">Why Play Team Fortress 2?</h3>



<ul class="wp-block-list">
<li>Fun, cartoony graphics with humorous elements.</li>



<li>Diverse game modes and player classes.</li>



<li>Active community and frequent updates.</li>
</ul>



<figure class="wp-block-image"><img decoding="async" src="https://media.geeksforgeeks.org/wp-content/uploads/20230921061903/team-660.jpg" alt="team"/><figcaption class="wp-element-caption">Team Fortress 2</figcaption></figure>



<p><strong>Installation</strong>: It is available on Linux via the&nbsp;<strong>Steam Store</strong>.</p>



<h2 class="wp-block-heading" id="4-xonotic"><strong>4. Xonotic</strong></h2>



<p><strong>Overview:&nbsp;</strong>Xonotic is a fast-paced, free, and open-source FPS game. Inspired by classic arena shooters like Quake, it offers various modes and maps for an adrenaline-pumping experience.</p>



<p><strong>Gameplay:&nbsp;</strong>Players engage in high-speed combat across multiple modes, including Deathmatch, Capture the Flag, and Clan Arena. The game focuses on movement and accuracy, with players using a range of weapons and physics-based movement to outplay their opponents.</p>



<h3 class="wp-block-heading" id="why-play-xonotic">Why Play Xonotic?</h3>



<ul class="wp-block-list">
<li>Over 16 different game modes and numerous maps.</li>



<li>Open-source and community-driven development.</li>



<li>High-paced action for fans of classic FPS games.</li>
</ul>



<figure class="wp-block-image"><img decoding="async" src="https://media.geeksforgeeks.org/wp-content/uploads/20230921063637/xono-660.jpg" alt="xono"/><figcaption class="wp-element-caption">Xonotic</figcaption></figure>



<p><strong>Installation</strong>: It can be downloaded from directly their&nbsp;<strong>website</strong>.</p>



<h2 class="wp-block-heading" id="5-war-thunder"><strong>5. War Thunder</strong></h2>



<p><strong>Overview:</strong>&nbsp;War Thunder is a massively multiplayer online (MMO) war game that covers air, land, and sea battles. It offers an extensive range of vehicles from different historical periods.</p>



<p><strong>Gameplay:&nbsp;</strong>Players control aircraft, tanks, or naval vessels and engage in combat against other players in historically-themed battles. The game includes over 1,700 vehicles, ranging from World War II-era planes to modern military hardware.</p>



<h3 class="wp-block-heading" id="why-play-war-thunder">Why Play War Thunder?</h3>



<ul class="wp-block-list">
<li>Multiple modes including realistic battles and arcade-style gameplay.</li>



<li>Wide selection of vehicles from different nations.</li>



<li>Constant updates and new content.</li>
</ul>



<figure class="wp-block-image"><img decoding="async" src="https://media.geeksforgeeks.org/wp-content/uploads/20230921062220/war-660.jpg" alt="war"/><figcaption class="wp-element-caption">War Thuder</figcaption></figure>



<p><strong>Installation</strong>: War Thunder is available on&nbsp;<strong>Steam</strong>.</p>



<h2 class="wp-block-heading" id="6-super-tux"><strong>6. Super Tux</strong></h2>



<p><strong>Overview:</strong>&nbsp;Super Tux is a free and open-source 2D platformer inspired by classic games like Super Mario Bros. The main character is Tux, the Linux mascot penguin.</p>



<p><strong>Gameplay:</strong>&nbsp;The game features side-scrolling action where players guide Tux through various levels filled with enemies and obstacles. Players can collect coins, jump over enemies, or stomp on them to progress.</p>



<h3 class="wp-block-heading" id="why-play-super-tux">Why Play Super Tux?</h3>



<ul class="wp-block-list">
<li>Nostalgic gameplay reminiscent of classic platformers.</li>



<li>Cute and family-friendly art style.</li>



<li>Simple but addictive mechanics.</li>
</ul>



<figure class="wp-block-image"><img decoding="async" src="https://media.geeksforgeeks.org/wp-content/uploads/20230921063847/tux-660.jpg" alt="tux"/><figcaption class="wp-element-caption">Super Tux</figcaption></figure>



<p><strong>Installation</strong>: It is available to download from your respective&nbsp;<strong>Linux repositories</strong>&nbsp;or their&nbsp;<strong>website</strong>.</p>



<h2 class="wp-block-heading" id="7-fishing-planet"><strong>7. Fishing Planet</strong></h2>



<p><strong>Overview:</strong>&nbsp;Fishing Planet is an online multiplayer fishing simulator with realistic graphics and gameplay. It provides a relaxing break from action games, focusing on the joys of angling.</p>



<p><strong>Gameplay:</strong>&nbsp;Players can fish in various locations, catching over 170 species of fish using realistic fishing techniques. The game features changing weather conditions, fish behavior influenced by AI, and different fishing equipment.</p>



<h3 class="wp-block-heading" id="why-play-fishing-planet"><strong>Why Play Fishing Planet?</strong></h3>



<ul class="wp-block-list">
<li>Beautiful, realistic visuals.</li>



<li>Challenging but relaxing gameplay.</li>



<li>Frequent updates with new fishing locations and species.</li>
</ul>



<figure class="wp-block-image"><img decoding="async" src="https://media.geeksforgeeks.org/wp-content/uploads/20230921062622/fish-660.jpg" alt="fish"/><figcaption class="wp-element-caption">Fishing Planet</figcaption></figure>



<p><strong>Installation:&nbsp;</strong>Fishing Planet is available on&nbsp;<strong>Steam</strong>.</p>



<h2 class="wp-block-heading" id="8-wakfu"><strong>8. WAKFU</strong></h2>



<p><strong>Overview:&nbsp;</strong>WAKFU is a tactical MMORPG with turn-based combat and an expansive world. It features a unique art style and deep lore.</p>



<p><strong>Gameplay:&nbsp;</strong>Players choose from a variety of character classes, each with unique abilities. The game involves strategic turn-based battles, exploration, crafting, and community-driven politics.</p>



<h3 class="wp-block-heading" id="why-play-wakfu">Why Play WAKFU?</h3>



<ul class="wp-block-list">
<li>Strategic combat with a focus on tactics and positioning.</li>



<li>Expansive world filled with quests, dungeons, and social activities.</li>



<li>Vibrant, colorful art style</li>
</ul>



<figure class="wp-block-image"><img decoding="async" src="https://media.geeksforgeeks.org/wp-content/uploads/20230921063118/wakfu-660.jpg" alt="wakfu"/><figcaption class="wp-element-caption">WAKFU</figcaption></figure>



<p><strong>Installation:</strong>&nbsp;WAKFU is available to play via&nbsp;<strong>Steam</strong>.</p>



<h2 class="wp-block-heading" id="9-super-tux-kart"><strong>9. Super Tux Kart</strong></h2>



<p><strong>Overview:</strong>&nbsp;Super Tux Kart is a 3D open-source racing game featuring mascots from popular open-source projects as characters. It offers fun, arcade-style racing.</p>



<p><strong>Gameplay:</strong>&nbsp;Players race through various tracks, collecting power-ups, and using items like nitro boosts and weapons to gain an advantage. The game includes multiple modes such as Grand Prix, Time Trial, and Multiplayer.</p>



<h3 class="wp-block-heading" id="why-play-super-tux-kart">Why Play Super Tux Kart?</h3>



<ul class="wp-block-list">
<li>Fun and engaging racing mechanics.</li>



<li>Variety of tracks and game modes.</li>



<li>Ideal for family gaming and casual play.</li>
</ul>



<figure class="wp-block-image"><img decoding="async" src="https://media.geeksforgeeks.org/wp-content/uploads/20230921062426/super-660.jpg" alt="super"/><figcaption class="wp-element-caption">Super Tux Kart</figcaption></figure>



<p><strong>Installation:</strong>&nbsp;Super Tux Kart is available via your&nbsp;<strong>Linux distro&#8217;s official repositories</strong>&nbsp;or its&nbsp;<strong>website</strong>.</p>



<h2 class="wp-block-heading" id="10-awesomenauts"><strong>10. Awesomenauts</strong></h2>



<p><strong>Overview</strong>: Awesomenauts is a 2D side-scrolling MOBA that blends platforming action with team-based strategy. It has a charming cartoonish art style and unique character designs.</p>



<p><strong>Gameplay</strong>: In each match, two teams of three players each fight to destroy the opposing team’s base. Players choose from a roster of characters with different abilities and playstyles.</p>



<h3 class="wp-block-heading" id="why-play-awesomenauts">Why Play Awesomenauts?</h3>



<ul class="wp-block-list">
<li>Combines the best elements of platformers and MOBAs.</li>



<li>Vibrant visuals and appealing character designs.</li>



<li>Fun and casual approach to team-based gameplay.</li>
</ul>



<figure class="wp-block-image"><img decoding="async" src="https://media.geeksforgeeks.org/wp-content/uploads/20230921064535/astro-660.jpg" alt="astro"/><figcaption class="wp-element-caption">Awesomenauts</figcaption></figure>



<p><strong>Installation:&nbsp;</strong>Awesomenauts is available on Steam.</p>
<p>The post <a href="https://info-spot.net/top-10-best-linux-games-you-can-play-for-free/">Top 10 Best Linux Games You Can Play for FREE</a> appeared first on <a href="https://info-spot.net">Info Spot</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://info-spot.net/top-10-best-linux-games-you-can-play-for-free/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Uninstall one or multiple Instances of SQL Server? (with demo)</title>
		<link>https://info-spot.net/uninstall-instances-sql-server/</link>
					<comments>https://info-spot.net/uninstall-instances-sql-server/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Fri, 06 Dec 2024 08:35:15 +0000</pubDate>
				<category><![CDATA[Databases]]></category>
		<category><![CDATA[remove instance]]></category>
		<category><![CDATA[sql server]]></category>
		<category><![CDATA[uninstall instance]]></category>
		<guid isPermaLink="false">https://info-spot.net/?p=842</guid>

					<description><![CDATA[<p>You must have local administrator permissions in order to uninstall SQL Server. Next, Make a backup of your&#8230;</p>
<p>The post <a href="https://info-spot.net/uninstall-instances-sql-server/">How to Uninstall one or multiple Instances of SQL Server? (with demo)</a> appeared first on <a href="https://info-spot.net">Info Spot</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>You must have local administrator permissions in order to uninstall SQL Server. Next, Make a backup of your data. You can either manually move the.mdf and.ldf files to a different location or make complete copies of all databases, including system databases. Additionally, halt all SQL Server services before uninstalling.</p>



<ol class="wp-block-list"></ol>



<p>Go to the Control Panel and choose Programs and Features to begin the uninstallation process from Windows Server versions 2008 and 2012. Select Uninstall from the menu when you right-click Microsoft SQL Server (Version) (Bit).</p>



<p>Go to Settings from the Start menu, then select Apps to begin the removal process from Windows 10, Windows Server 2016, and Windows Server 2019. In the search box, type SQL, then choose Microsoft SQL Server (Version) (Bit). For instance, the 64-bit version of Microsoft SQL Server 2016 is displayed below:</p>


<div class="wp-block-image">
<figure class="aligncenter is-resized"><img decoding="async" src="https://media.geeksforgeeks.org/wp-content/uploads/20210603154452/remove-660x526.png" alt="" style="width:385px;height:auto"/></figure></div>


<p>Choose &#8220;Uninstall.&#8221; then choose Remove to start the Microsoft SQL Server wizard in the SQL Server pop-up dialog box.</p>


<div class="wp-block-image">
<figure class="aligncenter is-resized"><img decoding="async" src="https://media.geeksforgeeks.org/wp-content/uploads/20210603154616/step1.png" alt="" style="width:777px;height:auto"/></figure></div>


<ul class="wp-block-list">
<li>Choose Instance from the drop-down menu, mark the name of the SQL Server instance, or choose to eliminate just the administrative tools and shared features of SQL Server. Click Next to proceed.</li>



<li>Select the features that need to be deleted from the SQL Server instance on the Select Features screen.</li>
</ul>


<div class="wp-block-image">
<figure class="aligncenter is-resized"><img decoding="async" src="https://media.geeksforgeeks.org/wp-content/uploads/20210603154842/step2.png" alt="" style="width:719px;height:auto"/></figure></div>


<ul class="wp-block-list">
<li>View the list of features and components that will be removed on the Remove page. To begin the uninstallation process, click Remove.</li>
</ul>


<div class="wp-block-image">
<figure class="aligncenter is-resized"><img decoding="async" src="https://media.geeksforgeeks.org/wp-content/uploads/20210603154943/step3.png" alt="" style="width:594px;height:auto"/></figure></div>


<p>To confirm that the SQL Server instance has been successfully uninstalled, try refreshing the Apps and Features box in Windows 10, Windows Server 2016, Windows Server 2019, or Programs and Features in Windows Server 2008, Windows Server 2012, and Windows 2012 R2.</p>



<p>You can watch this process in the below video</p>



<figure class="wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
<iframe title="How to remove/uninstall one or multiple SQL Server instances" width="1380" height="776" src="https://www.youtube.com/embed/pSe5VfA831s?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
</div></figure>
<p>The post <a href="https://info-spot.net/uninstall-instances-sql-server/">How to Uninstall one or multiple Instances of SQL Server? (with demo)</a> appeared first on <a href="https://info-spot.net">Info Spot</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://info-spot.net/uninstall-instances-sql-server/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to remove a property from an object in Javascript</title>
		<link>https://info-spot.net/how-to-remove-a-property-from-an-object-in-javascript/</link>
					<comments>https://info-spot.net/how-to-remove-a-property-from-an-object-in-javascript/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Thu, 05 Dec 2024 11:27:46 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[delete property from JS object]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[js]]></category>
		<category><![CDATA[remove property from javascript object]]></category>
		<guid isPermaLink="false">https://info-spot.net/?p=829</guid>

					<description><![CDATA[<p>Working with objects is an essential component of creating apps with JavaScript. Whether it&#8217;s to clean up data&#8230;</p>
<p>The post <a href="https://info-spot.net/how-to-remove-a-property-from-an-object-in-javascript/">How to remove a property from an object in Javascript</a> appeared first on <a href="https://info-spot.net">Info Spot</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Working with objects is an essential component of creating apps with JavaScript. Whether it&#8217;s to clean up data or get an object ready for a particular use case, you may frequently need to delete properties from an object. This article examines several methods for deleting properties from a JavaScript object, going over each one&#8217;s benefits and drawbacks. We&#8217;ll also go over how to effectively remove several properties from a single object.</p>



<h2 class="wp-block-heading" id="methods-for-removing-properties-from-a-javascript-object">1. Using the <code>delete</code> Operator</h2>



<p>The delete operator is the simplest method for deleting a property from a JavaScript object. Although this operator is simple and easy to use, developers should be aware of some of its limitations.</p>



<pre class="wp-block-code"><code>const employee= {
  name: 'John Doe',
  age: 33,
  job: 'Manager'
}

delete employee.age

console.log(employee) // Output: { name: 'John Doe', job: 'Manager' }</code></pre>



<p>A JavaScript object&#8217;s given property can be deleted using the delete operator. The property can no longer be accessed within the original object after deletion. However, if a property is present in the prototype, it can still be accessed because the delete operator has no effect on the object&#8217;s prototype chain.</p>



<p>While the <code>delete</code> operator is easy to use, it has a few downsides:</p>



<ul class="wp-block-list">
<li>Performance Problems: In applications where performance is crucial, the delete operator may result in a decline in performance. JavaScript engines optimize objects for speed; nevertheless, de-optimization may occur if a property is removed.</li>



<li>Mutating Objects: By eliminating the designated property, the delete operator modifies the original object. Unexpected side effects may result from this, particularly when working with shared objects in a global scope.</li>
</ul>



<h3 class="wp-block-heading" id="2-setting-the-property-to-undefined-or-null">2. Setting the Property to&nbsp;<code>undefined</code>&nbsp;or&nbsp;<code>null</code></h3>



<p>Setting a property&#8217;s value to undefined or null is an additional method for eliminating properties from a JavaScript object. This shows that the property has no value but does not physically delete it from the object.</p>



<pre class="wp-block-code"><code>const employee= {
  name: 'John Doe',
  age: 33,
  job: 'Manager'
}

employee.age = undefined

console.log(employee) // Output: { name: 'John Doe',  age: undefined, job: 'Manager' }</code></pre>



<p><strong>Differences Between&nbsp;<code>undefined</code>&nbsp;and&nbsp;<code>null</code></strong></p>



<ul class="wp-block-list">
<li><code>Undefined</code>: Indicates a property or variable that has not yet been given a value.</li>



<li><code>null</code>: Indicates that there is no object value present on purpose.</li>
</ul>



<p>When you wish to communicate that a property has no value but yet need to preserve the original object&#8217;s structure, this method can be helpful. When a property is set to null or undefined, it indicates that the property is still present in the object. If other sections of your code require the property to be totally absent, this could cause confusion.</p>
<p>The post <a href="https://info-spot.net/how-to-remove-a-property-from-an-object-in-javascript/">How to remove a property from an object in Javascript</a> appeared first on <a href="https://info-spot.net">Info Spot</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://info-spot.net/how-to-remove-a-property-from-an-object-in-javascript/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Is Java &#8220;pass-by-reference&#8221; or &#8220;pass-by-value&#8221;?</title>
		<link>https://info-spot.net/is-java-pass-by-reference-or-pass-by-value/</link>
					<comments>https://info-spot.net/is-java-pass-by-reference-or-pass-by-value/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Wed, 04 Dec 2024 07:25:50 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[java programming]]></category>
		<category><![CDATA[pass by reference]]></category>
		<category><![CDATA[pass by value]]></category>
		<guid isPermaLink="false">https://info-spot.net/?p=801</guid>

					<description><![CDATA[<p>A lot of Java programmers wonder if Java is passable by reference or by value. The reason Java&#8230;</p>
<p>The post <a href="https://info-spot.net/is-java-pass-by-reference-or-pass-by-value/">Is Java &#8220;pass-by-reference&#8221; or &#8220;pass-by-value&#8221;?</a> appeared first on <a href="https://info-spot.net">Info Spot</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>A lot of Java programmers wonder if Java is passable by reference or by value. The reason Java is always pass by value is summed up in this article. First, what are the meanings of pass by reference and pass by value?</p>



<ul class="wp-block-list">
<li>Pass by value: The copied object is supplied to the method after the method parameter values have been transferred to another variable. The copy is used in the technique.</li>
</ul>



<ul class="wp-block-list">
<li>Pass by reference: The method receives an alias or reference to the real parameter. The actual parameter is accessed by the method.</li>
</ul>



<p>The idea of the object reference in Java is frequently the cause of the misunderstanding surrounding these concepts. Although a variable may contain a reference to an object, the object reference is actually a value that indicates the object&#8217;s position in memory, therefore technically, Java is always pass by value. As a result, object references are supplied by value.</p>



<p>Primitive and reference data types are both provided by value. Study up on Java&#8217;s data types. Because reference data types and basic data types are stored differently, it&#8217;s crucial to comprehend memory allocation in Java in addition to data types.</p>



<h3 class="wp-block-heading" id="demonstrating-pass-by-value">pass by value Example<a href="https://www.digitalocean.com/community/tutorials/java-is-pass-by-value-and-not-pass-by-reference#demonstrating-pass-by-value"></a></h3>



<p>The following example demonstrates how values are passed in Java. </p>



<pre class="wp-block-code"><code>public class Car{
	private String color;
	public Car() {}	
	public Car(String c) {
		this.color = c;
	}	
	public String getColor() {
		return color;
	}
	public void setColor(String color) {
		this.color = color;
	}
}</code></pre>



<p>The following example program uses a generic method, <code>swap()</code>, that swaps two variables. Another method, <code>changeValues()</code>, attempts to change the variable values.</p>



<pre class="wp-block-code"><code>public class Test {
	public static void main(String&#91;] args) {
		Car red = new Car("Red"); // memory reference = 50
		Car blue = new Car("Blue"); // memory reference = 100
		
		swap(red, blue);
		System.out.println("After the swap method executes:");
		System.out.println("`red` color value = " + red.getColor());
		System.out.println("`blue` color value = " + blue.getColor());
		
		changeValues(blue);
		System.out.println("After the changeValues method executes:");
		System.out.println("`blue` color value = " + blue.getColor());		
	}
	// Generic swap method
	public static void swap(Object o1, Object o2){
		Object temp = o1;
		o1 = o2;
		o2 = temp;
	}
	private static void changeValues(Car car) { // car= 100
		car.setColor("Red"); // car= 100
		car = new Car("Green"); // car = 200
		car.setColor("Blue"); // car = 200
	}
}</code></pre>



<p>When you execute the example program, you get the following output:</p>



<pre class="wp-block-code"><code>OutputAfter the swap method executes:
'red' color value = Red
'blue' color value = Blue
After the changeValues method executes:
'blue' color value = Red</code></pre>



<p>The result demonstrates that the color values of the original objects were not changed by the <code>swap</code>() method. Because the <code>swap</code>() function only works with copies of the original object reference values, it helps demonstrate that Java is pass by value. Any programming language can be used to determine whether a method is pass by reference or pass by value using the <code>swap</code>() method test.</p>



<h3 class="wp-block-heading" id="the-example-swap-method-explained"><code>swap()</code> Method Explained<a href="https://www.digitalocean.com/community/tutorials/java-is-pass-by-value-and-not-pass-by-reference#the-example-swap-method-explained"></a></h3>



<p>When you use the&nbsp;<code>new</code>&nbsp;operator to create an instance of a class, the object is created and the variable contains the location in memory where the object is saved.</p>



<pre class="wp-block-code"><code>Car red = new Car("Red");
Car blue = new Car("Blue");</code></pre>



<p>Here’s a step-by-step breakdown of what happens when the&nbsp;<code>swap()</code>&nbsp;method executes:</p>



<ul class="wp-block-list">
<li>Suppose that both car objects&#8217; memory addresses are 50 and 100, respectively, and that red and blue are pointing to these locations.</li>



<li>Two new object variables, o1 and o2, are produced when the class invokes the swap() function with the red and blue variables as parameters.Additionally, memory locations 50 and 100 are indicated by o1 and o2, respectively.</li>



<li>The snippet of code that follows describes what occurs in the swap() method:swap(Object o1, Object o2) and public static void // o2 = 100, o1 = 50 Assign the object reference value of o1 to temp by using the formula temp = 50, o1 = 50, o2 = 100. temp = 50, o1 = 100, o2 = 100 o1 = o2; // assign the object reference value of o2 to o1: o2 = temp; // assign the object</li>
</ul>



<p>Java is pass by reference, so it&#8217;s a common misconception to think that you&#8217;re passing the reference because the variables hold the reference to the objects. It is pass-by value, though, because you are providing a value that is a copy of the reference.</p>



<h3 class="wp-block-heading" id="the-example-changevalue-method-explained"><code>changeValues()</code> Method Explained<a href="https://www.digitalocean.com/community/tutorials/java-is-pass-by-value-and-not-pass-by-reference#the-example-changevalue-method-explained"></a></h3>



<p>The next method in the example program changes the color value of the object referenced by the&nbsp;<code>blue</code>&nbsp;variable:</p>



<pre class="wp-block-code"><code>private static void changeValues(Car car) { // car = 100
	car.setColor("Red"); // car = 100
	car = new Car("Green"); // car = 200
	car.setColor("Blue"); // car = 200
}</code></pre>



<p>Here’s a step-by-step breakdown of what happens within the <code>changeValues()</code> method:</p>



<ul class="wp-block-list">
<li>The blue variable that points to memory address 100 is called by the class using the <code>changeValues</code>() method. A reference that also points to memory address 100 is created in the first line. The item at memory address 100 now has the color value &#8220;Red&#8221; instead.</li>



<li>The new object (with color value &#8220;Green&#8221;) is created in the second line. Memory location 200 is where the new object is located. The object at memory address 200 is affected by any additional operations performed on the car variable, while the object at memory location 100 is unaffected. The reference made in line 1 is overwritten by the new car variable, and this method no longer makes the car reference available.</li>



<li>The old object that blue references at memory address 100 remains unaltered, but the third line adds &#8220;Blue&#8221; as the color value of the new car object at memory location 200. This explains why the example program output&#8217;s last line, which represents the change from line 1, prints blue color value = Red.</li>
</ul>
<p>The post <a href="https://info-spot.net/is-java-pass-by-reference-or-pass-by-value/">Is Java &#8220;pass-by-reference&#8221; or &#8220;pass-by-value&#8221;?</a> appeared first on <a href="https://info-spot.net">Info Spot</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://info-spot.net/is-java-pass-by-reference-or-pass-by-value/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>MS SQL Server &#8211; How to get Date only from the datetime value?</title>
		<link>https://info-spot.net/sql-get-date-from-datetime/</link>
					<comments>https://info-spot.net/sql-get-date-from-datetime/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Tue, 03 Dec 2024 16:51:51 +0000</pubDate>
				<category><![CDATA[Databases]]></category>
		<category><![CDATA[convert date]]></category>
		<category><![CDATA[get date only]]></category>
		<category><![CDATA[sql cast]]></category>
		<category><![CDATA[sql dateadd]]></category>
		<category><![CDATA[sql server]]></category>
		<guid isPermaLink="false">https://info-spot.net/?p=792</guid>

					<description><![CDATA[<p>To get the current date and time: And we have a datetime value: 2024-12-03 18:13:07.271 From the datetime&#8230;</p>
<p>The post <a href="https://info-spot.net/sql-get-date-from-datetime/">MS SQL Server &#8211; How to get Date only from the datetime value?</a> appeared first on <a href="https://info-spot.net">Info Spot</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>To get the current date and time:</p>



<pre class="wp-block-code"><code>SELECT getdate();</code></pre>



<p>And we have a datetime value: 2024-12-03 18:13:07.271</p>



<p>From the datetime value above, you want to extract the date value only. There are several ways to do that:</p>



<ul class="wp-block-list">
<li><strong>Use CONVERT to VARCHAR:</strong></li>
</ul>



<p>CONVERT syntax:</p>



<pre class="wp-block-code"><code>CONVERT ( data_type &#91; ( length ) ] , expression &#91; , style ] )  </code></pre>



<p>In this case, date only, you we are gonna run this query:</p>



<pre class="wp-block-code"><code>SELECT CONVERT(VARCHAR(10), getdate(), 111);</code></pre>



<p>It returns <code>2024/12/03</code> for my test.</p>



<p>The style we used just now is 111, which is yyyy/mm/dd. There are many other style you can choose from. Here are some common types:</p>



<figure class="wp-block-table"><table class="has-fixed-layout"><thead><tr><th>Style</th><th>How it’s displayed</th></tr></thead><tbody><tr><td>101</td><td>mm/dd/yyyy</td></tr><tr><td>102</td><td>yyyy.mm.dd</td></tr><tr><td>103</td><td>dd/mm/yyyy</td></tr><tr><td>104</td><td>dd.mm.yyyy</td></tr><tr><td>105</td><td>dd-mm-yyyy</td></tr><tr><td>110</td><td>mm-dd-yyyy</td></tr><tr><td>111</td><td>yyyy/mm/dd</td></tr><tr><td>106</td><td>dd mon yyyy</td></tr><tr><td>107</td><td>Mon dd, yyyy</td></tr></tbody></table></figure>



<p>Because each type generates a different length, so you should define the right varchar length then.</p>



<ul class="wp-block-list">
<li><strong>You can also convert to date:</strong></li>
</ul>



<pre class="wp-block-code"><code>SELECT CONVERT(date, getdate());</code></pre>



<p>It will return the current date value along with starting value for time. For example, the result for my case is:</p>



<pre class="wp-block-code"><code>Dec  3 2024 12:00:00:AM</code></pre>



<p>For older version than SQL Server 2008, you should use this instead:</p>



<pre class="wp-block-code"><code>SELECT DATEADD(dd, 0, DATEDIFF(dd, 0, GETDATE()));</code></pre>



<p>And it returns the same result.</p>



<ul class="wp-block-list">
<li><strong>Use CAST</strong></li>
</ul>



<p>CAST syntax:</p>



<pre class="wp-block-code"><code>CAST ( expression AS data_type &#91; ( length ) ] )  </code></pre>



<p>For the example above, you can use:</p>



<pre class="wp-block-code"><code>SELECT CAST(getdate() AS date);</code></pre>



<p>Or you can cast it to varchar:</p>



<pre class="wp-block-code"><code>SELECT CAST(getdate() AS varchar(10));</code></pre>
<p>The post <a href="https://info-spot.net/sql-get-date-from-datetime/">MS SQL Server &#8211; How to get Date only from the datetime value?</a> appeared first on <a href="https://info-spot.net">Info Spot</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://info-spot.net/sql-get-date-from-datetime/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Add a Column with a Default Value to an Existing Table in SQL Server</title>
		<link>https://info-spot.net/add-column-with-default-value-sql-server/</link>
					<comments>https://info-spot.net/add-column-with-default-value-sql-server/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Tue, 03 Dec 2024 16:15:45 +0000</pubDate>
				<category><![CDATA[Databases]]></category>
		<category><![CDATA[add column sql server]]></category>
		<category><![CDATA[add column to table]]></category>
		<category><![CDATA[column with default value]]></category>
		<guid isPermaLink="false">https://info-spot.net/?p=780</guid>

					<description><![CDATA[<p>Let’s use the following table of Employees as an example: How do we add a new column,&#160;Gender, with&#8230;</p>
<p>The post <a href="https://info-spot.net/add-column-with-default-value-sql-server/">How to Add a Column with a Default Value to an Existing Table in SQL Server</a> appeared first on <a href="https://info-spot.net">Info Spot</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Let’s use the following table of Employees as an example:</p>



<pre class="wp-block-code"><code>CREATE TABLE Employee
(
    Id INT PRIMARY KEY,
    Name VARCHAR(255)
);

INSERT INTO Employee(Id, Name)
VALUES
    (1, 'Salim'),
    (2, 'Sara'),
    (3, 'John'),
    (4, 'Andy'),
    (5, 'Mohamed'),
    (6, 'Salma'),
    (7, 'Amir'),
    (8, 'Tayeb');</code></pre>



<p>How do we add a new column,&nbsp;<code>Gender</code>, with no null values allowed and a default value of</p>



<p>If no null values are allowed for a new column, you can specify a default value for the column. The query below will add the new <code>Gender</code> column:</p>



<pre class="wp-block-code"><code>ALTER TABLE
    Employee
ADD
    Gender VARCHAR(20) NOT NULL DEFAULT 'Undefined';</code></pre>



<p>However, it is better to name both the constraints so you can refer to them by name if you want to change them in the future:</p>



<pre class="wp-block-code"><code>ALTER TABLE
    Employee
ADD
    Gender VARCHAR(20)
        CONSTRAINT cnstrt_not_null_gender NOT NULL
        CONSTRAINT cnstrt_default_gender DEFAULT 'Undefined';</code></pre>



<p>Here are the contents of the altered table:</p>



<pre class="wp-block-code"><code>SELECT * FROM Employee;</code></pre>



<figure class="wp-block-table"><table class="has-fixed-layout"><thead><tr><th>Id</th><th>Name</th><th>Gender</th></tr></thead><tbody><tr><td>1</td><td>Salima</td><td>Undefined</td></tr><tr><td>2</td><td>Sara</td><td>Undefined</td></tr><tr><td>3</td><td>John</td><td>Undefined</td></tr><tr><td>4</td><td>Andy</td><td>Undefined</td></tr><tr><td>5</td><td>Mohamed</td><td>Undefined</td></tr><tr><td>6</td><td>Salma</td><td>Undefined</td></tr><tr><td>7</td><td>Amir</td><td>Undefined</td></tr><tr><td>8</td><td>Tayeb</td><td>Undefined</td></tr></tbody></table></figure>



<h3 class="wp-block-heading" id="how-to-allow-null-values">How To Allow Null Values</h3>



<p>If you want to add a default value of <code>Undefined</code> to existing rows and new rows, but still want to allow entering <code>NULL</code> for gender if explicitly specified, you can do this:</p>



<pre class="wp-block-code"><code>ALTER TABLE
    Employee
ADD
   Gender VARCHAR(20)
   CONSTRAINT cnstrt_default_gender DEFAULT 'Undefined' WITH VALUES;</code></pre>



<p>In this new&nbsp;<code>ALTER</code>&nbsp;statement, we no longer require&nbsp;<code>Gender</code>&nbsp;to be NOT NULL. We specify that a&nbsp;<code>DEFAULT</code>&nbsp;value is set only when no value is given, by the WITH VALUES phrase.</p>



<p>Now if we enter the following:</p>



<pre class="wp-block-code"><code>INSERT INTO Employee(Id, Name, Gender)
VALUES (20, 'Farid', NULL);</code></pre>



<p>Farid will have <code>NULL</code> gender.</p>



<p>But if we enter:</p>



<pre class="wp-block-code"><code>INSERT INTO Employee(Id, Name)
VALUES (20, 'Sofia');</code></pre>



<p>Sofia will have an <code>Undefined</code> gender.</p>



<p></p>
<p>The post <a href="https://info-spot.net/add-column-with-default-value-sql-server/">How to Add a Column with a Default Value to an Existing Table in SQL Server</a> appeared first on <a href="https://info-spot.net">Info Spot</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://info-spot.net/add-column-with-default-value-sql-server/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Backup and Restore of Docker Volumes</title>
		<link>https://info-spot.net/backup-restore-docker-volumes/</link>
					<comments>https://info-spot.net/backup-restore-docker-volumes/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Tue, 03 Dec 2024 09:24:55 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[docker]]></category>
		<category><![CDATA[docker backup]]></category>
		<category><![CDATA[docker restore]]></category>
		<category><![CDATA[docker volumes]]></category>
		<guid isPermaLink="false">https://info-spot.net/?p=768</guid>

					<description><![CDATA[<p>Knowing how to backup and restore a volume in Docker is becoming more and more crucial as more&#8230;</p>
<p>The post <a href="https://info-spot.net/backup-restore-docker-volumes/">Backup and Restore of Docker Volumes</a> appeared first on <a href="https://info-spot.net">Info Spot</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Knowing how to backup and restore a volume in Docker is becoming more and more crucial as more developers use it to expedite their development processes. This article will discuss the problems associated with volume backup and restoration, the rationale behind them, and offer a complete solution that will make the process simple for you.<br><a href="https://headingtag.com/how-to-take-backup-and-restore-a-volume-in-docker#heading-what" target="_blank" rel="noreferrer noopener"></a></p>



<p>Because it makes it easy to construct and manage containerized apps, Docker has become a vital tool for many developers in recent years. One of Docker&#8217;s biggest benefits is its capacity to control data volumes, which lets you store data that lasts longer than a container. Docker&#8217;s volume control can occasionally be difficult, despite its many advantages. Specifically, creating backups and recovering volumes can be difficult and prone to mistakes. We&#8217;ll look at why you might need to backup your volumes in this post, as well as how to do it properly. <a href="https://headingtag.com/how-to-take-backup-and-restore-a-volume-in-docker#heading-why" target="_blank" rel="noreferrer noopener"></a>There are many compelling reasons to do so. Here are a few reasons why you might need to take backups of your Docker volumes:</p>



<h3 class="wp-block-heading" id="-1"><a href="https://headingtag.com/how-to-take-backup-and-restore-a-volume-in-docker#heading-disaster-recovery" target="_blank" rel="noreferrer noopener"></a><strong>Disaster Recovery</strong></h3>



<p>The most evident justification for backing up your Docker volumes is to guard against data loss in the case of an emergency. You can make sure that your important data is secure and recoverable in an emergency by regularly backing up your volumes.</p>



<h3 class="wp-block-heading" id="-2"><a href="https://headingtag.com/how-to-take-backup-and-restore-a-volume-in-docker#heading-testing-and-development" target="_blank" rel="noreferrer noopener"></a><strong>Testing and Development</strong></h3>



<p>Making backups of your Docker volumes is also necessary for testing and development. You may quickly revert to a previous state in case of issues or the need to test new features by making backups of your volumes at various points during the development process.</p>



<h3 class="wp-block-heading" id="-3"><a href="https://headingtag.com/how-to-take-backup-and-restore-a-volume-in-docker#heading-replication" target="_blank" rel="noreferrer noopener"></a><strong>Replication</strong></h3>



<p>Replicating data across different environments might also benefit from backing up your Docker volumes. You may guarantee that your data is consistent throughout all of your development, staging, and production environments by making backups of your volumes and restoring them in different settings.</p>



<h2 class="wp-block-heading" id="-4"><a href="https://headingtag.com/how-to-take-backup-and-restore-a-volume-in-docker#heading-how" target="_blank" rel="noreferrer noopener"></a><strong>Detailed steps</strong></h2>



<p>After discussing the issues and justifications for backups and volume restoration in Docker, let&#8217;s see how to accomplish it properly. The following procedures should be followed in order to create backups of your volumes:</p>



<h3 class="wp-block-heading" id="-5"><a href="https://headingtag.com/how-to-take-backup-and-restore-a-volume-in-docker#heading-step-1-identify-the-volume" target="_blank" rel="noreferrer noopener"></a><strong>Step 1: Identify the Volume</strong></h3>



<p>Selecting the volume you wish to backup is the first step in creating a copy of that volume. This can be accomplished by executing the subsequent command:</p>



<pre class="wp-block-code"><code>docker volume ls</code></pre>



<p>This will show you a list of all the volumes that are currently available on your Docker host. Note down the name of the volume that you want to back up.</p>



<h3 class="wp-block-heading" id="-6"><a href="https://headingtag.com/how-to-take-backup-and-restore-a-volume-in-docker#heading-step-2-create-a-backup" target="_blank" rel="noreferrer noopener"></a><strong>Step 2: Create a Backup</strong></h3>



<p>To create a backup of the volume, you can use the&nbsp;<code>docker run</code>&nbsp;command to start a container that mounts the volume you want to back up and a separate container that writes the backup data to a file.</p>



<p>Here’s an example of how to do this:</p>



<pre class="wp-block-code"><code>docker run --rm \
--mount source=&lt;volume-name&gt;,target=&lt;target&gt; \
-v $(pwd):/backup \
busybox \
tar -czvf /backup/&lt;backup-filename&gt;.tar.gz &lt;target&gt;</code></pre>



<p>In this command, replace&nbsp;<code>&lt;volume-name&gt;</code>&nbsp;with the name of the volume you want to back up,&nbsp;<code>&lt;target&gt;</code>&nbsp;with the mount point inside the docker container, and&nbsp;<code>&lt;backup-filename&gt;</code>&nbsp;with a name for the backup file.</p>



<h3 class="wp-block-heading" id="-7"><a href="https://headingtag.com/how-to-take-backup-and-restore-a-volume-in-docker#heading-step-3-move-the-backup-file-to-an-external-server" target="_blank" rel="noreferrer noopener"></a><strong>Step 3: Move the Backup File to an External Server</strong></h3>



<p>To make sure your backup file is safe and secure, it&#8217;s a good idea to relocate it to an external server or storage device after creating it. In the event of a calamity, such as a server failure or security breach, the backup file can be better protected by being stored on a different server or storage device. <strong>SCP </strong>can be used to transfer the backup file to an external server.</p>



<p>Using <strong>SSH</strong>, you can move files between servers using Secure Copy (SCP), a secure file transfer protocol. You must have SSH access to the source and destination servers in order to utilize SCP. The backup file can be copied to the external server using the following command:</p>



<pre class="wp-block-code"><code>scp /path/to/backupfile user@external-server:/path/to/destination</code></pre>



<h3 class="wp-block-heading" id="-8"><a href="https://headingtag.com/how-to-take-backup-and-restore-a-volume-in-docker#heading-step-4-restore-the-volume" target="_blank" rel="noreferrer noopener"></a><strong>Step 4: Restore the Volume</strong></h3>



<p>If you need to restore the volume from the backup, you can use the&nbsp;<code>docker run</code>&nbsp;command to start a container that mounts the backup file and a separate container that writes the backup data to the volume.</p>



<p>Here’s an example of how to do this:</p>



<pre class="wp-block-code"><code>docker run --rm \
--mount source=&lt;volume-name&gt;,target=&lt;target&gt; \
-v $(pwd):/backup \
busybox \
tar -xzvf /backup/&lt;backup-filename&gt;.tar.gz -C /</code></pre>



<p>In this command, replace&nbsp;<code>&lt;volume-name&gt;</code>&nbsp;with the name of the volume you want to back up,&nbsp;<code>&lt;target&gt;</code>&nbsp;with the mount point inside the docker container, and&nbsp;<code>&lt;backup-filename&gt;</code>&nbsp;with a name for the backup file.</p>



<p></p>
<p>The post <a href="https://info-spot.net/backup-restore-docker-volumes/">Backup and Restore of Docker Volumes</a> appeared first on <a href="https://info-spot.net">Info Spot</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://info-spot.net/backup-restore-docker-volumes/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Store app logs in AWS Cloudwatch using Log4J (or Logback) appender</title>
		<link>https://info-spot.net/logs-aws-cloudwatch-log4j-logback/</link>
					<comments>https://info-spot.net/logs-aws-cloudwatch-log4j-logback/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Tue, 03 Dec 2024 08:39:02 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[AWS]]></category>
		<category><![CDATA[cloudwatch]]></category>
		<category><![CDATA[log4j]]></category>
		<category><![CDATA[logback]]></category>
		<guid isPermaLink="false">https://info-spot.net/?p=751</guid>

					<description><![CDATA[<p>One of the most important diagnostic tools available to us for locating problems with our apps is logging.&#8230;</p>
<p>The post <a href="https://info-spot.net/logs-aws-cloudwatch-log4j-logback/">Store app logs in AWS Cloudwatch using Log4J (or Logback) appender</a> appeared first on <a href="https://info-spot.net">Info Spot</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>One of the most important diagnostic tools available to us for locating problems with our apps is logging. Logging has historically involved writing text lines to a local filesystem file. This leads to a number of problems. In addition, it is now necessary to search through multiple backend servers to determine which one handled the request we were trying to find. Naturally, it should be noted that different backend instances may receive requests from the same session. The fact that any persistent data on an instance in a cloud environment expires along with the instance itself is even more serious. Furthermore, we no longer have active control over when certain instances are terminated in the case of auto-scaling. We must examine <strong>centralized logging</strong> as a novel answer for this. A central service receives all logs, aggregates them, stores them, and makes them searchable. For this, AWS provides a feature known as <strong>CloudWatch Logs</strong>.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><img fetchpriority="high" decoding="async" width="1010" height="847" src="https://info-spot.net/wp-content/uploads/2024/12/image-4.png" alt="" class="wp-image-754" style="width:611px;height:auto" srcset="https://info-spot.net/wp-content/uploads/2024/12/image-4.png 1010w, https://info-spot.net/wp-content/uploads/2024/12/image-4-300x252.png 300w, https://info-spot.net/wp-content/uploads/2024/12/image-4-768x644.png 768w" sizes="(max-width: 1010px) 100vw, 1010px" /></figure></div>


<p>The images of those applications automatically reroute both <code>stdout </code>and <code>stderr </code>to the application&#8217;s CloudWatch Logs <strong>LogStream </strong>within the CloudWatch Logs <strong>LogGroup </strong>for the current environment using the open-source <strong>CloudCaptain </strong>CloudWatch Logs agent. </p>


<div class="wp-block-image">
<figure class="aligncenter"><img decoding="async" src="https://cloudcaptain.sh/assets/img/logback.jpg" alt=""/></figure></div>

<div class="wp-block-image">
<figure class="aligncenter size-full"><img decoding="async" width="363" height="139" src="https://info-spot.net/wp-content/uploads/2024/12/image-6.png" alt="" class="wp-image-760" srcset="https://info-spot.net/wp-content/uploads/2024/12/image-6.png 363w, https://info-spot.net/wp-content/uploads/2024/12/image-6-300x115.png 300w" sizes="(max-width: 363px) 100vw, 363px" /></figure></div>


<p>Providing a brand-new open-source appender for both <strong>Logback</strong> and <strong>Log4J</strong>, is one step further today for JVM apps. By natively integrating with the chosen logging framework and having the choice on how to route the logs, this provides a far more fine-grained control.</p>



<h2 class="wp-block-heading">Installation</h2>



<p>Simply include the dependency in your build file to incorporate the CloudCaptain Java log appender for AWS CloudWatch Logs into your application.</p>



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



<p>Start by adding the CloudCaptain Maven repository to your list of repositories in your&nbsp;<code>pom.xml</code>:</p>



<pre class="wp-block-code"><code>&lt;repositories&gt;
    &lt;repository&gt;
        &lt;id&gt;central&lt;/id&gt;
        &lt;url&gt;https://repo1.maven.org/maven2/&lt;/url&gt;
    &lt;/repository&gt;
    &lt;repository&gt;
        &lt;id&gt;boxfuse-repo&lt;/id&gt;
        &lt;url&gt;https://files.cloudcaptain.sh&lt;/url&gt;
    &lt;/repository&gt;
&lt;/repositories&gt;</code></pre>



<p>Then add the dependency:</p>



<pre class="wp-block-code"><code>&lt;dependency&gt;
    &lt;groupId&gt;com.boxfuse.cloudwatchlogs&lt;/groupId&gt;
    &lt;artifactId&gt;cloudwatchlogs-java-appender&lt;/artifactId&gt;
    &lt;version&gt;1.0.2.17&lt;/version&gt;
&lt;/dependency&gt;</code></pre>



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



<p>Start by adding the <strong>CloudCaptain </strong>Maven repository to your list of repositories in your <code>build.gradle</code>:</p>



<pre class="wp-block-code"><code>repositories {
    mavenCentral()
    maven {
        url "https://files.cloudcaptain.sh"
    }
}</code></pre>



<p>Then add the dependency:</p>



<pre class="wp-block-code"><code>dependencies {
    compile 'com.boxfuse.cloudwatchlogs:cloudwatchlogs-java-appender:1.0.2.17'
}</code></pre>



<h2 class="wp-block-heading">Usage</h2>



<p>To use the appender you must add it to the configuration of your logging system.</p>



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



<p>Add the appender to your&nbsp;<code>logback.xml</code>&nbsp;file at the root of your classpath. In a Maven or Gradle project you can find it under&nbsp;<code>src/main/resources</code>:</p>



<pre class="wp-block-code"><code>&lt;configuration&gt;
    &lt;appender name="CloudCaptain-CloudwatchLogs" class="com.boxfuse.cloudwatchlogs.logback.CloudwatchLogsLogbackAppender"/&gt;

    &lt;root level="debug"&gt;
        &lt;appender-ref ref="CloudCaptain-CloudwatchLogs" /&gt;
    &lt;/root&gt;
&lt;/configuration&gt;</code></pre>



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



<p>Add the appender to your&nbsp;<code>log4j2.xml</code>&nbsp;file at the root of your classpath. In a Maven or Gradle project you can find it under&nbsp;<code>src/main/resources</code>:</p>



<pre class="wp-block-code"><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
    &lt;Configuration packages="com.boxfuse.cloudwatchlogs.log4j2"&gt;
    &lt;Appenders&gt;
        &lt;CloudCaptain-CloudwatchLogs/&gt;
    &lt;/Appenders&gt;
    &lt;Loggers&gt;
        &lt;Root level="debug"&gt;
            &lt;AppenderRef ref="CloudCaptain-CloudwatchLogs"/&gt;
        &lt;/Root&gt;
    &lt;/Loggers&gt;
&lt;/Configuration&gt;</code></pre>



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



<p>And that&#8217;s all the setup you need! With <strong>SLF4J </strong>or your preferred api, you can now begin using it from code as you typically would.</p>



<p>Logging a message like this:</p>



<pre class="wp-block-code"><code>private static final Logger LOGGER = LoggerFactory.getLogger(MyClazz.class);
...
LOGGER.info("This is a log message ...");</code></pre>



<p>will now be automatically sent as a structured <strong>JSON </strong>document to <strong>CloudWatch </strong>Logs. Important metadata is also automatically added to the document by the <strong>CloudCaptain </strong>CloudWatch Logs appender, making it appear as follows:</p>



<pre class="wp-block-code"><code>{
    "image": "myuser/myapp:123",
    "instance": "i-607b5ddc",
    "level": "INFO",
    "logger": "org.mycompany.myapp.MyClazz",
    "message": "This is a log message ...",
    "thread": "main"
}</code></pre>



<p>This is very useful as this will allow us to query and filter the logs later.</p>



<p>Keep in mind that these are only the automatically sent properties. you can also utilize the MDC to fill in a lot of additional ones (such current user, session id, request id, etc.).</p>



<h2 class="wp-block-heading">Displaying the Logs</h2>



<p>To display the logs simply open a new terminal and show the logs for your app in your desired environment:</p>



<pre class="wp-block-preformatted">&gt; boxfuse logs myapp -env=prod</pre>



<h3 class="wp-block-heading">Live tailing</h3>



<p>And if you want to follow along in real time you can use log tailing:</p>



<pre class="wp-block-code"><code>&gt; boxfuse logs myapp -env=prod <strong>-logs.tail</strong></code></pre>



<p>And new logs will now automatically be displayed as soon as they are sent from the application to CloudWatch Logs.</p>



<h3 class="wp-block-heading">Log filtering</h3>



<p>But this can yield a lot of results. CloudCaptain also offers robust log filtering to help discover the needle in the haystack, both on old logs and when a log stream is being tailed live.</p>



<p>The structured logs&#8217; properties can be used to precisely filter them as you see fit. For instance, you can only display the logs for a particular instance and tail the logs live on the production environment on AWS by doing the following:</p>



<pre class="wp-block-code"><code>&gt; boxfuse logs myapp -env=prod -logs.tail <strong>-logs.filter.instance=</strong>i-607b5ddc</code></pre>



<p>And if you aren&#8217;t quite sure what you are looking for you can also simply filter by time. For example to show all the logs created in the last minute (60 seconds) you could do:</p>



<pre class="wp-block-code"><code>&gt; boxfuse logs myapp -env=prod -logs.tail <strong>-logs.filter.start=</strong>-60</code></pre>



<p>source: <a href="https://cloudcaptain.sh/blog/logback-log4j2-appender">https://cloudcaptain.sh/blog/logback-log4j2-appender</a></p>
<p>The post <a href="https://info-spot.net/logs-aws-cloudwatch-log4j-logback/">Store app logs in AWS Cloudwatch using Log4J (or Logback) appender</a> appeared first on <a href="https://info-spot.net">Info Spot</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://info-spot.net/logs-aws-cloudwatch-log4j-logback/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Database engine service failed in SQL server 2022 in windows 11</title>
		<link>https://info-spot.net/service-failed-sql-2022-win11/</link>
					<comments>https://info-spot.net/service-failed-sql-2022-win11/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Mon, 02 Dec 2024 07:32:50 +0000</pubDate>
				<category><![CDATA[Databases]]></category>
		<category><![CDATA[database engine failed]]></category>
		<category><![CDATA[sql 2022]]></category>
		<category><![CDATA[sql server]]></category>
		<guid isPermaLink="false">https://info-spot.net/?p=741</guid>

					<description><![CDATA[<p>Method 1 You can try to uninstall it cleanly and install it again. Please follow the below steps&#8230;</p>
<p>The post <a href="https://info-spot.net/service-failed-sql-2022-win11/">Database engine service failed in SQL server 2022 in windows 11</a> appeared first on <a href="https://info-spot.net">Info Spot</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h3 class="wp-block-heading">Method 1</h3>



<p>You can try to uninstall it cleanly and install it again.</p>



<p>Please follow the below steps to remove all components of previous installed SQL Server completely:</p>



<ol class="wp-block-list">
<li>Remove all SQL Server components from &#8216;Programs and Features&#8217;</li>



<li>Backup the registry</li>



<li>Delete the following keys in regedit:</li>
</ol>



<p>&#8211;HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server</p>



<p>&#8211;HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSSQLServer</p>



<ol start="4" class="wp-block-list">
<li>Go to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall and delete all the sub-keys referencing SQL Server</li>



<li>Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services and delete all the keys referencing SQL Server</li>



<li><strong>Reboot</strong> the machine</li>
</ol>



<p>In addition, please use an administrator account to reinstall SQL Server on your computer(Right click-&gt;run as administrator).</p>



<p>You can check the installation conditions before installation by referring to the following link.</p>



<p>refer to below link on Microsoft website for more information</p>



<p><a target="-blank" href="https://learn.microsoft.com/en-us/answers/questions/1193890/how-do-i-fix-mssql-server-2022-database-engine-ser">https://learn.microsoft.com/en-us/answers/questions/1193890/how-do-i-fix-mssql-server-2022-database-engine-ser</a></p>



<h3 class="wp-block-heading">Method 2</h3>



<figure class="wp-block-image size-full"><img decoding="async" width="709" height="278" src="https://info-spot.net/wp-content/uploads/2024/12/image-3.png" alt="" class="wp-image-749" srcset="https://info-spot.net/wp-content/uploads/2024/12/image-3.png 709w, https://info-spot.net/wp-content/uploads/2024/12/image-3-300x118.png 300w" sizes="(max-width: 709px) 100vw, 709px" /></figure>
<p>The post <a href="https://info-spot.net/service-failed-sql-2022-win11/">Database engine service failed in SQL server 2022 in windows 11</a> appeared first on <a href="https://info-spot.net">Info Spot</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://info-spot.net/service-failed-sql-2022-win11/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How Do I Use Ipconfig In the Command Prompt or Terminal?</title>
		<link>https://info-spot.net/use-ipconfig-command-prompt/</link>
					<comments>https://info-spot.net/use-ipconfig-command-prompt/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Sun, 01 Dec 2024 07:11:55 +0000</pubDate>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[cmd ipconfig]]></category>
		<category><![CDATA[ipconfig]]></category>
		<category><![CDATA[ipconfig command]]></category>
		<guid isPermaLink="false">https://info-spot.net/?p=724</guid>

					<description><![CDATA[<p>To view details about your network setup and update your DHCP and DNS settings, use the ipconfig command.&#8230;</p>
<p>The post <a href="https://info-spot.net/use-ipconfig-command-prompt/">How Do I Use Ipconfig In the Command Prompt or Terminal?</a> appeared first on <a href="https://info-spot.net">Info Spot</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>To view details about your network setup and update your DHCP and DNS settings, use the ipconfig command. via default, your IP address, subnet mask, and default gateway are displayed via the ipconfig command. However, you can get a lot more information from it if you set the right parameters. Here are instructions for using it.</p>



<ul class="wp-block-list">
<li>To run the command, open the <strong>Command prompt </strong>on Windows PC or <strong>Terminal </strong>on Mac. </li>
</ul>



<ul class="wp-block-list">
<li>Type <strong>ipconfig </strong>and press <strong>Enter</strong>. This will display information about each network adapter on your computer. including any VPN connection that you might have.</li>
</ul>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="443" height="441" src="https://info-spot.net/wp-content/uploads/2024/12/image-1.png" alt="" class="wp-image-734" srcset="https://info-spot.net/wp-content/uploads/2024/12/image-1.png 443w, https://info-spot.net/wp-content/uploads/2024/12/image-1-300x300.png 300w, https://info-spot.net/wp-content/uploads/2024/12/image-1-150x150.png 150w" sizes="(max-width: 443px) 100vw, 443px" /></figure></div>


<ul class="wp-block-list">
<li>Type <strong>ipconfig /all</strong> and press <strong>Enter</strong>. This will show all the information about your network adapter:
<ul class="wp-block-list">
<li><strong style="font-size: 1.6rem;">Physical Address:</strong><span style="font-size: 1.6rem;"> This is the MAC address of your network adapter.</span></li>



<li><strong>DHCP Enabled:</strong> Indicates if the network connection is using DHCP or Static IP Address</li>



<li><strong>IPv4 Address:</strong> The IP Address of your computer</li>



<li><strong>Default Gateway:</strong> The router to which your computer is connected</li>



<li><strong>DHCP Server:</strong> Router/server that hands out IP Addresses in your network</li>



<li><strong>DNS Servers:</strong> Servers used to translate domain names to IP Addresses</li>



<li><strong>Link-Local IPv6 Address:</strong> IPv6 address of your computer (often not used)</li>



<li><strong>Lease Obtained:</strong> Date-time when your computer received the IP Address</li>
</ul>
</li>
</ul>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="425" height="424" src="https://info-spot.net/wp-content/uploads/2024/12/image-2.png" alt="" class="wp-image-735" srcset="https://info-spot.net/wp-content/uploads/2024/12/image-2.png 425w, https://info-spot.net/wp-content/uploads/2024/12/image-2-300x300.png 300w, https://info-spot.net/wp-content/uploads/2024/12/image-2-150x150.png 150w" sizes="(max-width: 425px) 100vw, 425px" /></figure></div>


<p class="has-text-align-center"></p>



<ul class="wp-block-list">
<li>When you have DHCP enabled on your network card, you can request a new IP Address from the DHCP server. To do this:
<ul class="wp-block-list">
<li>Type <strong>ipconfig /release adapter_name</strong> </li>



<li>Then type <strong>ipconfig /renew adapter_name</strong> </li>
</ul>
</li>



<li>Your computer keeps a local cache of DNS records of websites it has visited. This cache is used to convert domain names into IP Addresses. If you want to see the content of the DNS cache on your computer just type <strong>ipconfig /displayDNS</strong>.</li>
</ul>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="439" height="585" src="https://info-spot.net/wp-content/uploads/2024/12/image.png" alt="" class="wp-image-733" srcset="https://info-spot.net/wp-content/uploads/2024/12/image.png 439w, https://info-spot.net/wp-content/uploads/2024/12/image-225x300.png 225w" sizes="(max-width: 439px) 100vw, 439px" /></figure></div><p>The post <a href="https://info-spot.net/use-ipconfig-command-prompt/">How Do I Use Ipconfig In the Command Prompt or Terminal?</a> appeared first on <a href="https://info-spot.net">Info Spot</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://info-spot.net/use-ipconfig-command-prompt/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
