teleren/devto huggingface dataset:
CSS Battle #1 - Simply Square
Tags: html, css, challenge, webdev
Published: 2024-03-12 01:57:14


![Image css battle target #1 - Simply Square](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/imowbv991gz0s5i7dajp.png)
[see the target](https://cssbattle.dev/play/1)

### Challenge Overview

The goal of this challenge is to create a design resembling a square using HTML and CSS. The provided target image features a square shape against a contrasting background.

### Method 1 - Box Model Approach

**YouTube Video** : [see video](https://www.youtube.com/watch?v=Z0Asqy0dcvU)
**GitHub Repo** : [see code](https://github.com/jithesh-poojari/css-battles/blob/main/battles/%231%20-%20Pilot%20Battle/%231_Simply_Square.md#method-1---box-model-approach)

**Stats:**
- **Match:** 100%
- **Score:** 779.62{84}

###code
```html
<style>
  * {
    background: #5d3a3a;
    margin: 0;
    > * {
      background: #b5e0ba;
      width: 200;
      height: 200;
    }
  }
</style>
```

**Code Explanation:**
- **Background (`*`):** The `*` selector targets the entire page, setting its background to a warm golden shade `#5d3a3a`.
- **Container (`>`):** The `>` selector targets all child elements, ensuring they have a white background `#b5e0ba` and fixed dimensions of 200x200 pixels.

### Method 2 - Box Shadow Technique

**YouTube Video** : [see video](https://www.youtube.com/watch?v=i9WFFFbxYNc)
**GitHub Repo** : [see code](https://github.com/jithesh-poojari/css-battles/blob/main/battles/%231%20-%20Pilot%20Battle/%231_Simply_Square.md#method-2---box-shadow-technique)

**Stats:**
- **Match:** 100%
- **Score:** 839.08{54}

###code
```html
<a style=box-shadow:0+0+0+2in#b5e0ba,0+0+0+5in#5d3a3a>
```

**Code Explanation:**
- **Box Shadow (`box-shadow`):** The `box-shadow` property is applied to an anchor (`<a>`) element. Two shadows are defined:
  - A 2-inch inner shadow with a white color (`#b5e0ba`).
  - A 5-inch outer shadow with a contrasting dark color (`#5d3a3a`).

### Conclusion

Both methods effectively create a square design, meeting the challenge's requirements. Method 1 utilizes the box model approach, setting background colors and dimensions. Method 2 achieves a similar result using the `box-shadow` property to simulate the square shape.
Top Cryptocurrency Exchange Platforms
Tags: cryptocurrency, blockchain
Published: 2024-03-12 07:25:47

Please remember that the cryptocurrency world is constantly evolving, and new apps may have emerged since the last update. It's crucial to double-check the most recent information and user reviews before deciding on a trading app. Below are some of the popular [cryptocurrency exchange in India](https://www.bitnasdaq.com/) as of my last update:

## Binance

• Beginner-friendly interface
• Supports a wide variety of cryptocurrencies
• Offers advanced trading features
• Allows spot, futures, and options trading
• Binance Coin (BNB) can be used for fee discounts

## Coinbase

• Easy-to-use interface suitable for beginners
• Regulated and compliant with US laws
• Enables buying, selling, and storing various cryptocurrencies
• Coinbase Pro provides advanced trading features

## BitNasdaq

• Well-established exchange known for security
• Supports various cryptocurrencies
• Provides advanced trading features, including futures trading
• High liquidity
• [Best app for trading cryptocurrency](https://www.bitnasdaq.com/)

## Gemini

• Founded by the Winklevoss twins and regulated in the US
• User-friendly platform with a focus on security
• Supports a range of cryptocurrencies
• Gemini Earn allows users to earn interest on their crypto holdings

## Robinhood

• Known for commission-free stock and crypto trading
• Simple and intuitive interface
• Offers a Cash Card for easy spending of crypto holdings
• Limited selection of supported cryptocurrencies

## eToro

• Social trading platform allowing users to copy successful investors' trades
• Supports various assets, including cryptocurrencies
• User-friendly interface
• Allows both crypto trading and investment in stocks and other assets

## KuCoin

• User-friendly interface with a wide variety of cryptocurrencies
• Offers various trading pairs and products
• KuCoin Shares (KCS) provide additional benefits for users
• Allows staking of certain cryptocurrencies

## OKEx

• Comprehensive exchange with spot and futures trading
• High liquidity and support for a wide range of cryptocurrencies
• OKB token offers fee discounts and other perks
• Options and futures trading available
These apps offer a combination of user-friendly interfaces, security features, and support for various cryptocurrencies. When selecting a trading app, consider factors like your experience level, the range of cryptocurrencies you intend to trade, fees, security features, and any additional services offered by the platform. Also, make sure to stay updated with the latest reviews and news about the app to gauge its performance and reputation accurately.
The Guo farm is a financial scam
Tags: webdev
Published: 2024-03-12 07:47:46

   #WenguiGuo#WashingtonFarm 
Guo Wengui lied to hundreds of thousands of his online followers, promising them huge profits if they invested in GTV Media Group, Himalayan Farm Alliance, G| Club and Himalayan Exchange. Since at least March 2018, Guo Wengui has been the mastermind behind the complex financial scam, in which he and his financial adviser Kin Ming Je defrauded thousands of people and made more than $1 billion. Guo Wengui's success has a "cult" flavor. Calling believers in the name of "anti-communist", creating a community with closed information, while bullying or threatening to punish those who are not firm in their beliefs. After packaging himself as a "master" type of figure, it is natural to harvest the wealth of believers.
Stash changes in a git repository with VS Code
Tags: git, vscode, webdev, programming
Published: 2024-03-12 09:57:39

`git stash` is a useful command that temporarily stores current changes in a Git repository without committing them, making it possible to return to them later.

## Stash using VS Code

Visual Studio Code (VS Code) is a highly capable code editor that offers many well-thought-out functionalities. Even after using it for years, I still find new things about it.

Using in-built **Source Control**, you can quickly view the modified files and temporarily save them by stashing them:

- In VS Code, go to the Source Control tab.
- Click the three-dotted menu (`...`) next to Source Control to open a dropdown menu.
- In the menu, select **Stash** > **Stash (Include Untracked)**.
- That's it. The file changes are now stashed locally.

![Stashing changes locally using VS Code](https://amanhimself.dev/_next/image/?url=%2Fimages%2Fstash-option-vscode.png&w=1920&q=100)

## Bring the latest stashed changes to a branch

Let's assume you've now created a new branch where you want to bring those changes that are saved temporarily.

- In VS Code's Source Control, open the dropdown menu.
- Select **Stash** > **Apply Latest Stash**.

![Stashing changes locally using VS Code](https://amanhimself.dev/_next/image/?url=%2Fimages%2Fapply-stash-in-branch.png&w=1920&q=100)

You can now bring those changes to the current branch and commit them.

## Conclusion

Stashing is particularly useful when you want to fix something and keep those changes around so you can return to them later. Collecting the stashed changes can result in a new branch, where local changes can be brought later.
Revolutionize Your Website with the Best AI Generator For WordPress 🪄
Tags: aigenerator, imagegenerator, chatgpt, ai
Published: 2024-03-12 13:13:20

**Experience the future of content creation with our advanced AI technology. Enhance your online presence and captivate your audience with high-quality, AI-generated content. #website #AIgenerator #WordPress #contentcreation #SEO**

> Unlock Superior Content Creation with **[UltimateAI](https://ultimateai.io/)** – The Best AI Generator for WordPress. Elevate content creation, refine code effortlessly, engage in seamless chats, and achieve stunning image generation. Explore a curated template library for a revolutionary content strategy.

## [AI Writing Tools](https://ultimateai.io/app/ai_writing_tools/)

**Write & Rewrite ANY Content at Lightning Pace**

Stop staring at that blank screen again. Our AI text generator can help you tackle any writing challenge effortlessly.

- Write keyword-optimized website content to increase SEO ranking.
- Empower your visitors with compelling ad copy that drives them to take action.
- Each copy is freshly created to match your desired structure, length, tone, and keywords.
- Real-Time Data, Dynamic Content.

## [Chatbot Personalization](https://ultimateai.io/app/ai_chatbot/)

**Meet UltimateChat— Your AI Copilot is Now on Your Platform.**

Get immediate solutions for yourself, your clientele, or your colleagues with artificially intelligent chatbots specifically trained with your own content and documentation. Ideal for customer support, automated query resolution, knowledge maintenance, coaching, and employee development. It is comparable to constructing your own ChatGPT with your company’s data or your client’s.

- Custom Bot Builder
- Extensive Prompt Library
- Real-time Trending AI Generations
- Chatbot Personalization

## [Image Generator](https://ultimateai.io/app/ai_images/)

**Unleash Your Creativity with the Power of AI Art Generation.**

Unlock your creativity and unleash your potential to create advanced images effortlessly. Don’t limit yourself, your imagination has no boundaries.

- Text to Images
- Image Remix
- Stabule Diffusion & Dall-E
- Enhance Prompts
- Negative Prompt
- Upscale & Enhance
- Private Generation
- Maximun Scale 1024x1024

## [Code Generator](https://ultimateai.io/app/ai_code/)

**Meet UltimateCode, Your AI Assistant**

Empowered by the Ultimate AI editor, you have the ability to effortlessly transform your ideas into reality. With just one click, you can debug, autocomplete, and effortlessly turn natural language into code. Let your imagination soar with the ease of Ultimate AI.

- Code faster with AI
- Find, fix and explain code
- Generate unit tests
- Generate unit tests
- AI-powered chat for you code
- Build custom commands
Setting up My WSL and Neovim Environment
Tags: beginners, vim, linux, tutorial
Published: 2024-03-12 13:29:06

Introduction:
In my ongoing journey of the 100DaysOfCode challenge, Day 4 marked a significant milestone as I decided to level up my coding environment. Inspired by fellow developer [Craftzdog (Takuya)](https://github.com/craftzdog), I took the plunge to enhance my setup. In this blog post, I'll share my experience of setting up WSL Ubuntu, Fish Shell, and configuring Neovim with LazyVim, revolutionizing my coding workflow.

Setting up WSL Ubuntu and Fish Shell:
Setting up WSL Ubuntu was surprisingly straightforward. After enabling WSL in Windows features and installing Ubuntu from the Microsoft Store, I opted for the Fish Shell for its powerful features and intuitive syntax. To manage Fish plugins, I chose Fisher, a lightweight package manager that simplifies plugin installation and management.

Configuring Neovim with LazyVim:
Neovim has been gaining popularity among developers for its extensibility and performance. Inspired by [Craftzdog's (Takuya)](https://github.com/craftzdog/dotfiles-public) setup, I decided to configure Neovim with LazyVim, a plugin manager that simplifies the setup process and provides a curated set of plugins for productivity and efficiency. With LazyVim, I customized Neovim to suit my preferences, including syntax highlighting, auto-completion, and code navigation features.

Taking Inspiration from Craftzdog (Takuya):
Craftzdog (Takuya) has been a source of inspiration for many developers, including myself. His approach to configuring Neovim and Fish Shell has inspired me to elevate my own coding environment.

Future Plans and Conclusion:
As I continue my coding journey, I'm excited to explore the possibilities offered by my enhanced coding environment. Whether it's building web applications, diving into data science projects, or contributing to open-source software, I'm confident that my WSL Ubuntu, Fish Shell, and Neovim with LazyVim setup will support me every step of the way. Stay tuned for more updates as I embark on new coding adventures!

Images of My Development Environment:

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5htyzwq3iz35k1u9tex5.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/u0tbo2r3ohmof51hpa1f.png)

Conclusion:
Day 4 of #100DaysOfCode was a game-changer as I upgraded my coding environment with WSL Ubuntu, Fish Shell, and Neovim with LazyVim. By harnessing the power of Linux, Fish Shell, and optimizing my code editor, I'm ready to tackle coding challenges with confidence and efficiency. Here's to embracing new tools and technologies in the pursuit of coding excellence!
If you want a full tutorial or have any questions feel free to ask :)
JS core concepts
Published: 2024-03-12 13:54:02

**_Closures example:_**

The closure is a javascript nested function where we can access outerfunction variables inside the inner function by calling the innerfunction inside the outer function.

let outerfunction = ()=>{
var count = 0
let innerFunction=()=>{
  count++;
  console.log(count)
}
return innerFunction;
}

let increment = outerfunction()
increment();
increment();
increment();
increment();
How to see someone's first post on Instagram
Published: 2024-03-12 14:36:20

Most times we are just curious to see the earliest posts of a person on Instagram. Seeing the old posts becomes a nightmare, especially if the person is an active user. In this article, you get to know different ways of carrying out that interesting sneaky act😂😎

1. The first approach involves using a physical object on your keyboard's space bar and returning after a while. Damn, I shouldn't be telling you that🤦‍♀️😝.

2. You can long press the scrolling wheel of your mouse(if you are using one) and scroll to the end of the page which automatically continues scrolling till it reaches the end of the user's post.

3. The third approach which is the best approach for a programmer like me is the use of codes that run in the browser's console. I mean this saves your space bar and mouse scrolling wheel from extensive work😅🤦‍♀️. To achieve this you need to right-click on your laptop or desktop and inspect the page before accessing the console or use the appropriate shortcut(I think it is CTRL+shift+I🤔🤔). You then paste this code there.

```
window.setInterval(function(){window.scrollTo(0,document.body.scrollHeight);},1000);
```

The downside of this method is that it can't be done on a mobile phone except you are smart enough to find your way around that. If you can, Please share with others in the comment section. Also, ensure that the rate limiter does not mess with your progress🤦‍♀️(You can't even stop that if it occurs. Can you?).

I remain Henry Fasakin, a software engineer who loves clean UI and designs. You can reach out to me on [Twitter](https://twitter.com/henqsoft) or [LinkedIn](https://linked.com/in/fasakin-henry).

I am most active on my Github. Do well to check that out. [GitHub](https://github.com/fasakinhenry)
Disorder (scramble algorithm)
Published: 2024-03-12 15:11:51

```
#include <iostream>

int *arreglo (int n){
  int *a = new int[n];
  for (int i=0; i<n; i++) a[i] = rand() % (n*10) + 1;
  return a;
}

void print(int *a, int n){
  for (int i=0; i<n; i++)
    std::cout << a[i] << " ";
  printf("\n");
}

void swap(int &a, int &b){
  int c = a;
  a = b;
  b = c;
}

void bsort (int *a, int n){
  for (int k = n - 1; k > 0; k--)
    for(int i = 0; i < k; i++)
      if (a[i] > a[i+1]) swap(a[i], a[i+1]);
}

void shuffle(int *a, int n){
  for (int k = n - 1; k > 0; k--)
    swap(a[rand() % (k + 1)], a[k]);  
}

int main(){

srand((unsigned) time(nullptr));

int n = 10;
int *a = arreglo(n);
print(a,n);
  printf("\n");
for (int i = 0; i < 24; i++){

shuffle(a,n);
print(a,n);
  
  }
delete [] a;
return 0;
}
```
List Comprehension em Python
Published: 2024-03-12 16:27:41

A List Comprehension é uma característica poderosa e elegante do Python que permite criar listas de maneira concisa e eficiente. Essa construção sintática simplifica o processo de criação de listas a partir de iteráveis, como listas, tuplas, conjuntos, ou mesmo strings. Neste artigo, vamos explorar em detalhes o conceito de List Comprehension em Python, entender sua sintaxe e descobrir como aproveitá-la ao máximo em seu código.

**Entendendo a List Comprehension**

Em sua forma mais simples, uma List Comprehension em Python segue a seguinte estrutura:

`[expressão for item in iterável]`

Essa expressão cria uma nova lista aplicando uma expressão a cada item em um iterável, como uma lista, e adicionando o resultado à nova lista. A expressão pode ser qualquer operação ou cálculo que você deseja aplicar a cada item do iterável.

**Sintaxe**

- A sintaxe básica de uma List Comprehension inclui os seguintes elementos:
- A parte inicial, dentro dos colchetes, é a expressão que define cada elemento da nova lista.
- Em seguida, vem a cláusula for, seguida de uma variável (ou variáveis) que representam os itens do iterável.
- Por fim, especificamos o iterável do qual estamos retirando os elementos.

Vamos examinar um exemplo simples para ilustrar como isso funciona:

```
# Criando uma lista de números pares de 0 a 9
pares = [num for num in range(10) if num % 2 == 0]
print(pares)  # Saída: [0, 2, 4, 6, 8]
```

Neste exemplo, estamos criando uma lista de números pares de 0 a 9. A expressão num for num in range(10) itera sobre os números de 0 a 9, e a condição if num % 2 == 0 verifica se o número é par. Se for, ele é adicionado à lista.

**Usos Avançados**

A List Comprehension em Python também suporta múltiplas iterações e condições, permitindo uma maior flexibilidade. Por exemplo:

```
# Criando uma lista de tuplas com todas as combinações de pares (x, y) onde x é um número de 1 a 3 e y é um número de 1 a 3
combinacoes = [(x, y) for x in range(1, 4) for y in range(1, 4)]
print(combinacoes)  # Saída: [(1, 1), (1, 2), (1, 3), (2, 1), (2, 2), (2, 3), (3, 1), (3, 2), (3, 3)]
```

Neste exemplo, estamos criando uma lista de tuplas representando todas as combinações possíveis de pares (x, y), onde x e y são números de 1 a 3.

**List Comprehension vs Loop Tradicional**

Embora List Comprehensions possam tornar o código mais conciso e legível em muitos casos, é importante entender que nem sempre são a melhor escolha. Às vezes, um loop tradicional pode ser mais claro, especialmente quando a lógica é complexa ou envolve múltiplas etapas.

**Por fim**

Com a List Comprehension podemos criar listas de maneira concisa e eficiente em Python. Ao dominar essa construção sintática, você pode escrever código mais limpo e expressivo, economizando tempo e tornando seu código mais legível. No entanto, lembre-se de que a clareza do código é fundamental, e use List Comprehensions apenas quando elas tornarem o código mais compreensível e eficiente.
Vardhman amrante showrooms for sale in Ludhiana | Vardhman Amrante
Published: 2024-03-13 05:17:57

Invest wisely with [showrooms for sale in Ludhiana](https://www.vardhmanamrante.com/amrante-boulevard) at Vardhman Amrante Boulevard. Enjoy an unparalleled location boasting an elite pin code, with approximately 60,000 daily commuters on canal road. The area is home to around 2,00,000 inhabitants on canal road and approximately 6,00,000 residents in nearby areas. Choose Vardhman Amrante Boulevard for a strategic investment opportunity in a prime location with high footfall and a thriving community. For more project details visit at 
https://www.vardhmanamrante.com/amrante-boulevard
SMTP Relay Service Provider
Tags: smtprelayserviceprovider, smtp, buysmtpserver, smtprelayservices
Published: 2024-03-13 07:15:03

Empower your email delivery with a trusted **[smtp relay service provider](https://medium.com/@vikaspanache0/boosting-deliverability-the-impact-of-a-reliable-smtp-relay-service-provider-fd71968fd4d4)**. Unlock seamless communication and unparalleled reliability as we streamline your messages to their destination. With our expertise, your emails will soar past spam filters, ensuring maximum deliverability and engagement. Trust in our proven track record to enhance your sender reputation and elevate your email marketing strategy. Experience the difference with our tailored solutions designed to meet your unique business needs. Partner with us today and discover the power of efficient email delivery.
Nebular Express - devlog #4 - This is the end of the beginning
Tags: godot, gamedev, development, beginners
Published: 2024-03-13 09:39:57

Hi,

I started this game for the [Minigame a month - FEBRUARY 2024 Game Jam](https://itch.io/jam/minigame-a-month-february-2024).

Unfortunately, I didn’t finish it on time and I’ve been ranked 88th over 95…

![Final result](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/a32fqo9vfun6s4rj24c0.png)

## What went right?

- I got motivated by participating to this Game Jam
- I have defined a clear plan to create a game
- I started to dive seriously into GameDev

## What went wrong?

![GIrl covering her face](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dtfze1a21mpf64nr4bqk.jpg)

- I lost a lot of time watching video tutorials for versions of Godot that I’m not using.
- I lost a lot of time polishing minor elements instead of working on the game mechanics.
- Even if I didn’t fall into the «scope creep», the initial scope was too large for a beginner.
- I didn’t dedicate enough time to work on this game.

## What I learned?

![brown wooden blocks on white table](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4x7x42hmyex4smq5i016.jpg)

- I have a lot to learn before participating to a Game Jam.
- I had a clear vision of what the game should look like and for a beginning, I had too high expectations based on my skills.
- Communication is the key, I should have take more time on Marketing to engage more potential fans and have more feedback.
- I should used the same processes I use professionally to stay organized and transparent to gamers.

## Next steps

![man sitting on mountain cliff facing white clouds rising one hand at golden hour](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qzvkhqutuugjoy4rzvy8.jpg)

For me it’s just the end of the beginning, I wanted to start GameDev as a software engineer and I think this goal is reached because I want to finish what I have started.

I’m sorry for people who try this game and didn’t have the fun I was expected they have by playing this game.

If you accept, I’ll be please to have a second chance to finish this game with a reasonable and realistic timeline. I’ll share with you more informations on the next steps

Thank you all! Stay tuned, see you soon 👋

> Originally publish on [Itch.io](https://darkelda.itch.io/nebular-express/devlog/694382/devlog-4-this-is-the-end-of-the-beginning)
How To Fix Samsung SSD Not Detected Mac book
Published: 2024-03-13 09:46:55

In case you’ve got yourself the new samsung SSD T7, T9 etc like myself. you might encounter a problem during the initial setup. in the empty SSD you’ll find a setup file for macbook called “SamsungPortableSSD_Setup_Mac_1.0.pkg” that is used to install “samsung portable SSD” application for samsung SSD external device.

**T9 Not Detected**
Even if you connect/disconnect the usb cable you might encounter the samsung portable ssd problem . even if you try to restart your mac or re-install the software samsung portable ssd the error will remain.


**Solution**
Simply follow the next steps to fix the problem and continue setup of T7, T9 ssd external drives.
[Read More](https://lior.live/general/how-to-fix-samsung-ssd-not-detected-mac-book/)
useRef in react for beginners
Tags: react, dom, reacthooks, webdev
Published: 2024-03-13 15:12:08

UseRef will create a reference of a react element, by using that we can mutate the DOM element or a value that is used across the component. Also, we can store some data and that won’t cause a re-render on update.

Steps to use UseRef Hook:

step 1: import it from react

step2: declare it as a ref variable

step 3:pass the ref as an attribute to the JSX .