teleren/devto huggingface dataset:
How do YOU customize your desktop Linux experience?
Tags: linux, archlinux, discuss, eyecandies
Published: 2021-04-27 05:45:39

I happened to [vanilla installed Arch Linux](https://wiki.archlinux.org/index.php/Installation_guide) + incomplete KDE and several eye candies.

## Caveat to installing

- Remove [secure boot](https://wiki.archlinux.org/index.php/Unified_Extensible_Firmware_Interface/Secure_Boot)
- `rfkill unblock wifi`
- Install [btrfs](https://wiki.archlinux.org/index.php/Btrfs), i.e. "better fs"
- Install NetworkManager. No, there won't be [iwctl](https://wiki.archlinux.org/index.php/Iwd#iwctl) or `NetworkManager`, if you don't install it.
- User management and install `sudo`
- Install GRUB, but switch to [refind](https://wiki.archlinux.org/index.php/REFInd) later, with `cp /etc/os-release /boot/etc/os-release`
- Install [yay](https://github.com/Jguer/yay). I know that Ubuntu / Debian do have `apt search`, but `yay -Ss`, `yay -Qs` searches the whole [AUR](https://wiki.archlinux.org/index.php/Arch_User_Repository) and looks more powerful
- [Install missing drivers](https://wiki.archlinux.org/index.php/Mkinitcpio#Possibly_missing_firmware_for_module_XXXX)
- Install not only [plasma](https://wiki.archlinux.org/index.php/KDE#Plasma), but also `kde-applications`, just to uninstall many later. (Also installed `sddm`. Liked better than `lightdm`)

```sh
yay -Rc $(pacman -Qsq kde game) konsole dolphin konquerer kmail
yay -S terminator thunar chromium vscodium-bin vscodium-bin-marketplace
```

- Does anyone really use Konquerer / [Epiphany](https://wiki.archlinux.org/index.php/GNOME/Web), BTW?
- Editing Plasma desktop (KDE) to look like GNOME / Xfce.
- Edit SDDM with Arch theme
- Edit icons as deem fit, by editing `~/.local/share/application/**/*.desktop` and finding the icons

```sh
find /usr/share/icons -iname '*.png'
```

- Change Mail application to

```toml
[Desktop Entry]
Comment[en_US]=
Comment=
Exec=xdg-open https://mail.zoho.com/zm/#compose
GenericName[en_US]=
GenericName=
Icon=internet-mail
MimeType=
Name[en_US]=Email in browser
Name=Email in browser
Path=
StartupNotify=true
Terminal=false
TerminalOptions=
Type=Application
X-DBUS-ServiceName=
X-DBUS-StartupType=
X-KDE-SubstituteUID=false
X-KDE-Username=
```

## What about your desktop?

Doesn't have to be Arch. Might be i3wm or Openbox or something else. Care to share your customization?

(BTW, I don't know if I will survive if I tried non-`systemd`, like Artix.)

![Arch desktop](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1u2h4rstna7d5owat9zh.png)

![Arch icons](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fs0wad3kmrvvz6frqnsd.png)
It's Okay to Change Your Mind
Tags: growth, learning, mindset
Published: 2021-05-18 13:20:27

---
title: It's Okay to Change Your Mind
published: true
date: 2021-04-27 04:54:37 UTC
tags: growth,learning,mindset,mindset
canonical_url: https://x-team.com/blog/its-okay-to-change-your-mind/
---
Today's world is too complex to stick to one point of view for too long. If you want to be right a lot of the time, you need to change your mind a lot of the time. In an [interview with the Wall Street Journal](https://www.wsj.com/articles/dinner-with-charlie-the-world-according-to-mr-munger-11556896281), Charlie Munger, Warren Buffett's business partner, said the following:

> “_Part of the reason I’ve been a little more successful than most people is I’m good at destroying my own best-loved ideas. [...] I’m pleased when I can destroy an idea that I’ve worked very hard on over a long period of time.”_

It's hard to change your mind. Firstly, it means admitting, even if only to yourself, that you were wrong and might have made a mistake. Secondly, other people are often critical of those who change their minds. Society still sees consistency of thought as a positive virtue even though it's probably not.

Thirdly, some people stick so heavily to a particular opinion that it becomes part of their identity. This is particularly prominent in politics, where you _are_ a Democrat or a Republican. It's much harder to change your mind about something if it's part of who you are.

But your opinions change. You act on imperfect information. You read things online that are [biased or misinformed](https://x-team.com/blog/the-internet-makes-you-dumber/). You live in a world that changes so fast it's hard to keep up. All these factors mean that it's not just okay, but necessary to change your mind.

Because isn't the truth important? Aren't you doing yourself and the world a disservice if you believe something that isn't true? Set aside your ego and don't let others dictate what you should think. It's amazing how much freer you'll feel when you give yourself permission to change your mind.
Software development and custom development company.
Published: 2021-04-27 03:49:45

Software development in New York is the best option for those who need quality software. Some of the best programmers at  in the world work here, so it's no surprise that customers from all over the world come here. They want to get the highest quality software that can be created by programmers.

How the software can be used custom software development services
https://develux.com/custom-software-development. Typically, software is required for both production equipment and personal or business needs. Almost any economic problem can be solved with the help of software. Software development is the process of creating programs that are required to meet a customer's needs. In order for this process to be as successful as possible, it is necessary to involve not only programmers, but also testers, web designers and representatives of other professions.

Software development - custom software development is also team work. Only in rare cases can a single programmer cope with this task. Usually he needs the help of the team. Only then the result of the work can suit the customer of the project. The issue of testing deserves special attention. Only after it is completed, you can present your product to customers.

Software development in the USA. How is it done

1. Software development by specialists from the United States is the best option when you need to cope with the implementation of some particularly complex tasks. All conditions have been created in this country for the professional growth of specialists working in the field of high technologies. It is not for nothing that many of them have been doing everything possible for several years to improve their professional level as soon as possible and get even more complex and interesting tasks.

2. The colossal experience of local programmers is another quality that should never be ignored. The most successful global IT projects have been created by the Americans. It is not surprising that to this day they are entrusted with the most complex projects that developers from other countries cannot afford. Software development - https://pnnsoft.com/mobile-development, this is the lot of only the most advanced "IT specialists" with extensive experience.

3. Complete absence of problems with delays. The ordered software will be delivered on time. This is a matter of the business reputation of every American high-tech company, so customers don't even have to worry about their order being delayed or not completed on time.
Effective Java: Avoid Strings When Other Types Are More Appropriate
Tags: java, effective, string, architecture
Published: 2021-04-27 04:39:11

---
title: Effective Java: Avoid Strings When Other Types Are More Appropriate
published: true
description: A dive into chapter 62 of Effective Java
tags: java, effective, string, architecture
cover_image: https://images.unsplash.com/photo-1619133080807-a9e3266b3449?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=80
series: Effective Java Review
canonical_url: https://blog.scaledcode.com/blog/effective-java/avoid_string_when_other_types_better/
---

Often when receiving data from files, HTTP requests, keyboard input, etc. we receive that data as a _String_. Often we just keep these variables as a `String` even if a different variable type is more appropriate. The most appropriate type depends on what we are trying to represent; if we are trying to represent a finite set of items we may use a _enum_, true/false means boolean, numbers could be an `int`, `long`, or even `BigInteger`. The benefits of using the appropriate type are as follows:

* Performance improvements with not having to convert back and forth between the _String_ type.
* The built in functions of the type work correctly for that type such as `equals`, `hashcode`, etc. 
* Less error prone.

It can sometimes take a little more effort to save our variables as the correct type, especially if they are provided as a `String` initially. The payoff is worth it and will keep your code much cleaner.
What are sockets in computer networks?
Tags: sockets, computer, networks
Published: 2021-04-27 04:18:25

Two processes that run on the same machine, or different machines, communicate through sockets. **Sockets** are seen as the end of the two-way communication between two processes; they allow processes to communicate with each other ​using a file descriptor and are commonly used in client-server applications that allow ​for ​communication between multiple applications.

**How sockets are created**

A socket is created by concatenating the IP number of a system and a software port number (not a ​hardware port number). This allows the process to know the address of the system (the IP address) and the address where the information needs to be sent (the port number). The IP number and the port number are separated by a ​`:`.
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9eb9r8ceocvqvb4vyzoi.png)
The diagram above shows two different applications communicating with one another through sockets.

In this diagram, application 1 sends the data to IP number `192.168.16.21` of application 2, port `100`, while application 2 sends the data to ​IP number `192.168.1.1` of application 1, port ​`80`.
npm으로 사이트맵 쉽게 만들기
Published: 2021-04-27 04:10:01

사이트를 만들면 구글이나 네이버에 사이트맵을 제출하여 사이트 방문자를 늘릴 수 있습니다.
온라인에서 사이트맵을 일정 크기까지 무료로 만들어주는 사이트가 많이 있지만
직접 만들 수 있습니다.

## npm으로 사이트맵 만들기

1. 터미널 프로그램을 실행합니다. (Power SHell, Git bash,....)
2. npm으로 사이트맵 생성기를 설치합니다.
```
$ npm install -g sitemap-generator-cli
```
3. npx명령을 이용하여 사이트맵을 만듭니다. (npm v5.2이상)
```
$ npx sitemap-generator-cli https://example.com
```
4. 검색엔진(구글, 네이버,...)에 sitemap.xml 제출
LeetCode 96. Unique Binary Search Trees
(javascript solution)
Tags: algorithms, javascript
Published: 2021-04-27 03:53:18

###Description:
Given an integer n, return the number of structurally unique BST's (binary search trees) which has exactly n nodes of unique values from 1 to n.

###Solution:
Time Complexity : O(n^2)
Space Complexity: O(n)

```javascript
var numTrees = function(n) {
    // Create dp array
    let dp = new Array(n+1).fill(0);
    // Set base cases
    dp[0] = 1;
    dp[1] = 1;
    
    // dp[i] represents each subtree (left and right) of the root node
    for (let i = 2; i <= n; i++) {
        for (let j = 0; j < i; j++) {
            // dp[j] is the left side and dp[i-j-1] is the right side
            // Example: n = 2
            // i = 2 & j = 0, there are 2 nodes, nodes on left of root = j = 0 and nodes on right of root = 2 - j (because we are using j nodes on the left) - 1 (1 to account for the root node itself), dp[i] += dp[0] * dp[1] = 1 * 1 = 1 
            // Final iteration dp[2] += dp[1] * dp[0] = 2
            dp[i] += dp[j] * dp[i-j-1];
        }
    }
    return dp[n];
}
```
Sinatra project blog 
Published: 2021-04-27 01:46:28

The whirlwind of activity in my life surrounding my construction of this project made for a bit of an overwhelming backdrop to what in theory should have been a relatively simple task.
So the tale of this project revolves around the need to ask for help when help is required, not letting pride or shame get the best of you.
Especially when attempting to learn something you gave never done before, while dealing with more of life's problems than is normal for you. 
Having the strength to ask for help when you have made nowhere near the progress you should have made, and being able to admit you are out of your depth is an important quality to have and one that can be difficult to cultivate.
I fell far behind in my course due to a stream of personal crises that seemed almost endless, and so I found myself at the end of project week with not much to show for my efforts as I struggled to understand the material. 
I am a very hands on learner, and while there are a lot of projects in the coursework they are all just pieces to the puzzle and i was struggling to understand how to put them together. 
I have an inkling that i will be struggling with that issue the entire time I am a flatiron student as it has been true in both phases I have completed so far. 
I have trouble gleaning the knowledge required to complete the final projects from the online courses as they never seem to give me the context I need to make sense of everything. 
The only thing that seems to help me put it together is seeing someone build a project. 
Then I can see all the pieces slide together, and it finally makes sense. 
Hopefully I can start to make sense of things a bit more as the course goes on, but right now I am exhausted from the stress of barely putting together this project. 
I think I'll take a nap now.
Rebuilding CityScape App
Tags: ios, swift, apple, appdevelopment
Published: 2021-04-27 03:25:48

Cityscape Apps goal is to be a one-stop resource for users to receive the most accurate city information. 

An app that analyzes data from cities such as populations, cost of living, rental rates, crime rates, park (walk score), and many other social and economic factors that are important in deciding where someone would like to live. This app will present such important data in an intuitive and easy to understand interface.

Use data to find a place right for you to live.

## Before Rebuild
![Before Rebuild](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0chf5r2pq0amnkrivrbv.png)

At start of project authentication was functional but displaying data (frontend), maps, persistence were not functional.


##After Rebuild

Rebuilt a fully responsive iOS app that showcases a lot of the user stories implemented by the backend team but optimized for a more native mobile feel. 

* Sleek/ user friendly dashboard that shows revised endpoints
    - Build out visualizations and link to City Data Endpoints
    - User flow - User searches for a city > Clicks on city > * Sees dashboard for city analytics > Toggle to map (mapkit)
    - Show top cities on the apps landing page
    - Ability to pin/store favorite cities to profile for easy access
* Display relevant and salient information about City
* Parlaying those visual artifacts to build a compelling story for the user to consider
* General interface and user interactivity design
* Build a list of cities for quick and easy access

![Landing Page - Search Screen](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/z2qmhh2lzso37yvxfhm3.png)

![Results Collectionview](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ajfbqn1l90rju8yambp3.png)
The Interactive and Productive Terminal [pt3]
Tags: linux, shell
Published: 2021-04-27 02:35:54

In this last article in which I promised to do on the theme The Power of Production Linux , we arrived at part 3 (final). But to end with great style, I come with a very interesting subject: The Fish Shell, The Interactive and Productive Terminal linux.

Besides being very productive, the Fish Shell is implemented with bash and zhs, intelligent and very easy to use. So if you want to make your command line more productive, more useful and more fun, without the need to learn various mysterious syntax and configuration options. Fish is the ideal tool.

About More: https://bit.ly/2QBNGuf
Toradex: Linux embarcado
Tags: linux, toradex
Published: 2021-04-27 02:32:31

Toradex é uma empresa Suíça que projeta e desenvolve Computadores em Módulos (COM) ou Sistemas em Módulo (SOM) juntamente com placas base e acessórios compatíveis para o mercado de sistemas embarcados.

Para saber mais: https://bit.ly/3eNXTfl
Linux SCP for file transfer
Tags: linux, scp, file
Published: 2021-04-27 02:26:43

SCP Linux was developed based on Berkeley Software Distribution (BSD) Remote Copy Protocol,  SCP  ( Secure Copy ) is a network protocol that was created for file transfers using command lines. In addition to being one of the safest alternatives for you to upload or download files from remote or local machines.

About More: https://bit.ly/3ewjgl7
Reverse switch?
Tags: javascript, typescript, node, programming
Published: 2021-04-27 02:19:23

I recently saw something that caught my attention and I called it **Reverse Switch**. Probably there's a better name.

> A conditional switch where the expression takes boolean constants (`true` or `false`) and the switch cases take expressions.

Some like this:

```js
switch (true) {
  case isEven(x):
    console.log('x is even!')
    break
  case isPrime(x):
    console.log('x is prime!')
    break
  case x > 10:
    console.log('x is greater than 10')
    break
  default:
    console.log('x is not even, is not prime and is not greater than 10')
}
```

My head exploded because I never thought about it. 
I always did it as follows:

```js
if (isEven(x)) {
  console.log('x is even!')
} else if (isPrime(x)) {
  console.log('x is prime!')
} else if (x > 10) {
  console.log('x is greater than 10')
} else {
  console.log('x is not even, is not prime and is not greater than 10')
}
```

And here comes my question:

1. Have you seen or done something like that?
2. Do you think it is good practice?
3. Which one is more readable?

Let's talk about it!
Introducing Truffle Solidity Data Seeder
Tags: etheruem, javascript, blockchain, truffleframework
Published: 2021-04-27 02:17:12

The Truffle framework is an awesome toolkit for every solidity and dapp developer, we at [LibertyPie] (https://libertypie.com) make advanced use of the truffle framework.  
During [LibertyPie's P2P](https://github.com/LibertyPie/libertypie-p2p) protocol development, we needed a simple way to seed initial data to different contracts similar to database seeding. <br />
Truffle has great migration support but no seeding of data out of the box.  
So we decided to build a simple CLI tool as an npm package for seeding initial data out of the box with 0 configurations.   <br>

Introducing [Liberty Pie's Truffle Seeder](https://github.com/LibertyPie/truffle-seeder), your easy way to seed initial data to any smart contract. Kindly help us improve it by giving us your feedback

Project: [https://github.com/LibertyPie/truffle-seeder](https://github.com/LibertyPie/truffle-seeder)
How to Buy a Website Domain Name at 65% Discount Free Coupon Code from GoDaddy Where is the best place to buy a domain name?
Tags: webdev, html, design, devops
Published: 2021-04-27 02:05:32


Welcome to HMA Webdesign, in this tutorial we are going to learn the step-by-step process to buy a cheap domain name with a 65% discount and free coupon code 2021 from GoDaddy.com

**STEPS**

1- Got to the following GoDaddy website link to get a free coupon promo code for a discount. 
Link:  https://pk.godaddy.com/promos/coupon-promo-codes
2-  Choose the domain option and click on the Show Code button.
3-  Search your domain name from the GoDaddy website and click Add to Cart button.
4-  Choose a 1-year registration option and click continue to cart.
5-  Click on 'have a promo code?' and copy and paste the promo code.
5-  Congratulations! you have got a 65% discount on your domain registration.

**Full Guide**

{% youtube PYRVgT_Oey0 %}

------------------------------------------------------------------
- Please have a look at my website for more details!
         https://hmawebdesign.com
- Place an order for any Web Development work!
         https://www.fiverr.com/haaddison1?up_rollout=true
--------------------------------------------------------------------
#100DaysOfCode #javascriptode #webdev #php #webdevelopment #developer #codingisfun #phpdeveloper #html #CSS3 #wordpress #webdeveloper #javascript #mysql #database #programming #java #domainname #GoDaddy 
Suggested Videos:
10 Input Types in HTML Every Web Developer Must Know in 2021 | HTML5 Input Types Tutorials
https://youtu.be/8qBPKXRUOnk
How to  Design a Responsive HTML Email Template from Scratch 2021 | Create HTML Newsletter
https://youtu.be/c8GwsCZcBIc
How to Send Email to Client Using PHP Mail Function | Sending Email in PHP 2021 Tutorial
https://youtu.be/DeqOVJ-aXkg
$_POST | What is the Post Variable in PHP | How to Use Post Variables in PHP 2021
https://youtu.be/HO-TrXY4a1A
How to Define Variables in PHP | How to Create PHP Variables | (PHP tutorial-3) - 2021
https://youtu.be/bfqAa0Gm3YY
How to Start First PHP Web Project on Local Server/Localhost PHP Tutorial-2
https://youtu.be/18I7U4-nJb0
How to Start Web Project with Microsoft Visual Studio 2021 | Visual Studio Project
https://youtu.be/MLzuQ_pH9Ew
How to Get Start PHP Hello World Page on Live Web Server  |  PHP Tutorial - 1
https://youtu.be/Uc7uLD7Ur6M
------------------------------------------------------------------
Contact me through social media for web development work:
- Fiverr             https://www.fiverr.com/haaddison1?up_rollout=true
-  witter:          https://twitter.com/HmaWebdesign
- Facebook:    https://web.facebook.com/HmaWebdesign
- LinkedIn:      https://www.linkedin.com/in/engrmianayub/
- Instagram     https://www.instagram.com/hmawebdesign/
How to make your vscode become a seamless markdown writer like typora
Tags: vscode, markdown, typora, wysiwyg
Published: 2021-04-27 01:55:15

---
title: How to make your vscode become a seamless markdown writer like typora
published: true
description: A full-featured WYSIWYG markdown editor extension for vscode, just like typora
tags: vscode,markdown,typora,wysiwyg
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/z6hlviaclvutxifk05ru.png
---

Writing markdown is a daily work for most programers. Switch between your favorate code editor or IDE and a nice markdown editor like typora, marktext, iA Writer, Ulysses or obsidian.md could be annoying. That's why I make this extension.

![demo](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2to6q8w6p5clkucfykhy.gif)
## Features

* What You See Is What You Get (WYSIWYG)
* Auto sync changes between vsc editor and webview
* Copy markdown/html
* Upload/paste/drag-drop images will auto save to `assets` folder
* Multi-theme support
* Shortcut keys
* Instant Rendering mode(**Recommand!**) & Wysiwyg mode & split screen mode
* Markdown extensions
* Multiple graph support including KaTeX / Mermaid / Graphviz / ECharts / abc.js(notation) / ...
* For more usage please see [vditor](https://github.com/Vanessa219/vditor)

## Install

[https://marketplace.visualstudio.com/items?itemName=zaaack.markdown-editor](https://marketplace.visualstudio.com/items?itemName=zaaack.markdown-editor)

## Support syntax

[demo article](https://ld246.com/guide/markdown)

## Usage

### 1. Command mode in markdown file

* open a markdown file
* type `cmd-shift-p` to enter command mode
* type `markdown-editor: Open with markdown editor`

### 2. Explorer Context menu

* right click on markdown file
* then click `Open with markdown editor`

### 3. Editor title context menu

* right click on a opened markdown file's tab title
* then click `Open with markdown editor`

## Acknowledgement

* [vscode](https://github.com/microsoft/vscode)
* [vditor](https://github.com/Vanessa219/vditor)

## Todo

* [ ] Using [Custom Text Editor](https://code.visualstudio.com/api/extension-guides/custom-editors#custom-text-editor) ([demo](https://github.com/gera2ld/markmap-vscode))

## License

MIT