teleren/devto huggingface dataset:
Final week
Published: 2022-04-23 17:11:37

##Overview
It has been a long run for my second journey to Open Source. It is time for the release 3.0 to land. I am happy that finally, we already had a mobile app with posts service, which is the main feature of Telescope. On top of that, student quotes and Telescope's about screen (which is all about Telescope) has been finished with an integration of Supabase. This contains a really hard word of James, Kevan and I. I would like to say thanks to all reviewers who gave us a lot of useful feedback.

##Last [PR](https://github.com/Seneca-CDOT/telescope/pull/3534) for this semester
This PR is about styling post component for the post service timeline.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5ji98770bw0yu32dbx42.png)
A header has been added to each post. Now we can see that they will contain the name of the author, and also the title is now more similar to the original post in Telescope web app. Not only that, if you click on the author's name, the app will redirect to author's blog timeline, where you can find other blogs of that author. Based on some feedback, I still have to fix the text font and padding for the page. 

## Final thought
This semester is great, I have more chance to contribute open source community, especially Telescope. Also, I have more chance to work with React Native which is really new to me. Although it is the end of the semester, the app still need to have some improvement, so if I have some times, I will definitely keep working on it.
Learning Rust
Tags: rust
Published: 2022-04-23 16:29:43

Publishing the syntax I learn in rust, so I can keep my thinking as clear as possible.

I will update the article whenever I learn new syntax

Rust playground: https://play.rust-lang.org/

### Strings
- Rust has 2 types for strings, `str` and `String`. `String` is a growable, heap-allocated data structure. `str` is an immutable fixed-length string somewhere in memory.
```rs
let word1: &str = "vidya mandir";
let word2: String = "sahyadri parvat".to_string();
println!("{:?} {:?}", word1, word2);
```

### print
`println!("{:?}", variable_name)` prints integers, strings, vectors

### Array/Vector
```rs
let mut vector1 = vec![34,35,60,40,15];  // create vector, mut == vector1 is mutable/modifiable
vector1[3]; // get element at index 3
vector1.push(47);  // push element to vector
vector1.pop(); // remove last element of the vector
vector1.len(); // get length of vector
println!("{:?}", vector1);  // print vector

// array with length 50 and all elements equal to 0
let vector2: [u16; 50] = [0; 50]; 
```

### Convert
- Number to String
```rs
let num1: u128 = 34034;
let num1_str: String = num1.to_string();
```

- String to Number
```rs
let num2_str: String = "40304".to_string();
let num2: u128 = num2_str.parse().unwrap();
```

- Combine strings
```rs
let a = "a";
let line = format!("{} + {}", a, "b");
println!("{:?}", line); // a + b
```

- String to number-array
```rs
// split string to form a array of vectors
let numsInStr = "3 4 25 90 233".to_string();
let numsInVec: Vec<u32> = numsInStr
      .trim().split(' ')
      .map(|s| s.parse().unwrap())
      .collect();
println!("{:?}", numsInVec);
```

### Loops
- for loop
```rs
let arr1 = vec![34, 50, 90, 110];
for i in 0..arr1.len() {
    println!("{:?}", i);
}
```
Push Commit From Github Action
Tags: beginners, git
Published: 2022-04-24 06:33:00

---
title: Push Commit From Github Action
published: true
date: 2022-04-23 17:00:01 UTC
tags: Beginner,git
series: "Sunday Snippet"
canonical_url: https://clavinjune.dev/en/blogs/push-commit-from-github-action/
---

 ![Sunday Snippet #14 push commit from github action](https://clavinjune.dev/img/sunday-snippet/image.png "Sunday Snippet #14 push commit from github action")

```yaml
name: example
on: push
jobs:
  example:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - run: |
        git config --global user.name '<user.name>'
        git config --global user.email '<user.email>'
        git add .
        git commit -snm "<commit message>" || true
        git push origin <branch> || true
```
2/ 100DaysOfFlutter: Dart Control Startment/ Ternary Operator.
Tags: flutter, dart, tutorial, mobile
Published: 2022-04-23 16:33:47



## Dart Control Startment
Controlling the flow of your application is a key part of the any programme,
controlling flow means handling, what you programme can perform, do, and act.
## (Decision making) 🧠

### if/else

```dart
if (condition) {
  // do something
} else {
  // do something else
}
```

### Switch
switch statement means when the value of expression is equal to one of the case values, it will do that action.
```dart
switch (expression) {
  case value1:
    // do something
    break;
  case value2:
    // do something
    break;
  default:
    // do something
}
```



## (Loop/ Iteration) 🤹🏾



### While Loop

which means until the condition is true the loop with continue the task,
dont' over-complicate the code,

```dart
while (condition) {
  // do something
}
```

### For Loop

```dart
//for loop is modified while loop; in for loop you know when to stop.
for (int i = 0; i < 10; i= i+1) {
  // do something
}
// same 😁
int i = 0;
while(i < 10) {
  // do something
  i= i+1;
}
```

## if/else (Ternary Operator)

```dart
condition ? value1 : value2;
// if the condition is true, return value1, else return value2.
```

acces the github repo:
[`Repos`](https://github.com/theabhayprajapati/100DaysOfFlutter)
**🤝🏾Connect me on:**
**Twitter**: 🕊️[`@Abhayprajapati_`](https://twitter.com/Abhayprajapati_)
**Github**: 🐧[`@theabhayprajapati`](https://github.com/theabhayprajapati)
**Linkedin**: 📌[`@abhayprajaapati`](https://www.linkedin.com/in/abhayprajaapati/)
**Youtube**: 📺[`@Abhayprajapati`](https://www.youtube.com/channel/UCUrQHSjXEAyboKLN_M0w0Mg)
New Crossword-like game
Tags: javascript, html, design, help
Published: 2022-04-23 15:59:05

I have designed a word game similar to a traditional crossword puzzle. The difference is I use 1-4 letter words each word has a value. No clues. The board should be 10 squares across and 10 squares down. The player will select a square, a direction and a word from the list. The word will populate the board, and add to the total score. There must be 1 blank square between words. The highest score wins. I will call it Towers Matrix. Any and all help will be appreciated. Thanks...bob
How to learn Azure Architectures
Tags: azure, webdev, mobile, architecture
Published: 2022-04-23 15:43:40

Are you interested to learn Azure Architectures for artificial intelligence, machine learning, web applications, mobile applications, cloud applications, etc. if you want to learn the azure architecture diagrams and technology for your reference architectures, a sample of cloud architectures, and solutions  ideas for azure product and services.

We can have more numbers of categories with reference architectures

- AI + Machine Learning
- Analytics
- Compute
- Containers
- Databases
- Developer Tools
- DevOps
- Hybird + Multicloud
- Identity
- Integration
- Internet of Things
- Management and Governance
- Media
- Migration
- Mixed Reality
- Mobile
- Networking
- Security
- Storage
- Web
- Windows Virtual Desktop


We can have idea for the various technology and specific area to provide the solutions for a secure, performance, optimized way. 

you can find the sample architecture for the following link
https://docs.microsoft.com/en-us/azure/architecture/browse/?skip=24
Hello. I am a SEO Specialist and Web Developer.
Published: 2022-04-23 15:40:28

I am an SEO specialist. Recently I have been practicing in web development.
Now I am actively looking for a job.

My SEO Skills:
Knowledge of ranking factors (Google);
Technical audit of sites;
Participant analysis;
Monitoring and analysis of meetings of participants;
Assembly skills, semantic core clustering;
Writing technical specifications for programmers and content managers;
Improving the relevance of landing pages;
Developing a link building plan and implementing it to achieve results;
Advanced User: Google Analytics, Webmaster Tools, Ahrefs, Screaming Frog, Google Spreadsheet.
I work with all CMS users:
Wordpress;
MODx;
Drupal;
Jumla;
Opencart (ocStore);
Self-written.
Experience in SEO 8 years.

My development skills:
HTML;
CSS;
SCSS;
Adobe Photoshop;
Figma;
In the near future I plan to learn JS (React).
No development experience yet.
Python challenge_18🐍💪
Tags: python, beginners, tutorial, programming
Published: 2022-04-23 15:23:44

## Solution validation

- The aim of this challenge is to write code that can analyze code submissions. 
- We'll simplify things a lot to not make this too hard.
- Write a function named validate that takes code represented as a string as its only parameter.
- Your function should check a few things:
the code must contain the def keyword otherwise return `missing def`

- the code must contain the : symbol otherwise return `missing :`
- the code must contain ( and ) for the parameter list otherwise return `missing paren`
- the code must not contain () otherwise return `missing param`
- the code must contain four spaces for indentation otherwise return `missing indent`
- the code must contain validate otherwise return `wrong name`
- the code must contain a return statement otherwise return `missing return`
- if all these conditions are satisfied, your code should return True.
- Here comes the twist: your solution must return True when validating itself.

### [Test your solution here](https://pythonprinciples.com/challenges/Solution-validation/)  

####My Solution
```

def validate(code):

    if "def" not in code:
        return "missing def"
    if ":" not in code:
        return "missing :"
    if "(" not in code or ")" not in code:
        return "missing paren"
    if "(" + ")" in code:
        return "missing param"
    if "    " not in code:
        return "missing indent"
    if "validate" not in code:
        return "wrong name"
    if "return" not in code:
        return "missing return"
    return True
```

All The best.

### Connect with Me 😊
- [LinkedIn](https://www.linkedin.com/in/mahmoud-el-kariouny-822719149/)
- [Twitter](https://twitter.com/Mahmoud42275)
Auto-Commiter. Controls your commits and GitHub.
Published: 2022-04-23 15:03:45

Auto-committer. 

https://github.com/aserputov/auto

This is simple, but I think exciting project idea to make auto commits into your GitHub.

How does it work?

Small story.

I use git a lot, it helps me manage projects, and I know that making small but meaningful commits is essential to you in future or for your team members. 

But, it's tough to do that every small block of code changes.

There are many things you can do with Git and even more with API.

I decided to create something that would commit for me.

My problems:

How to commit only the correct code that can be built. 

- We need to check the code before committing.

Can we add a feature to check if we already have a repo there we want to commit, or should we create a new repo with the same name as a folder?

- Yes, we can, but there will be problems with it because Github Api asks for a token to authenticate.

Currently, I'm working with Node.js and kind of made a prototype. `npm commit`

I will add more in progress.

### Conclusion


⚠️ Computer Architecture Blog Post: Link

### Links

🖇 Follow me on [GitHub](https://github.com/aserputov) 

🖇 Follow me on [Twitter](https://twitter.com/aserputov)

_p.s This post was made for Telescope.
👋 Introducing ourselves [plus we want YOUR opinion on our logo...😍 or 🤮]
Tags: webdev, firstpost, showdev, a11y
Published: 2022-04-23 15:00:29

Hi everyone, great to be here! 

We are Wordsmith, we are building tools to make your content creation faster, rank higher, convert better and follow best practices for inclusivity and accessibility. 

We know that getting your message out (and not just "shouting into the void") is becoming more and more difficult. 

You need to make sure your content is search engine friendly, easy to read and above all, engages **all** of your readers!

That is where we come in! 

We are building the tools you need to turn your writing from "meh" to "my gosh it is beautiful". 

Tools to turn you into a wordsmith!

> **WORDSMITH**
> defn: a skilful writer

Now, it will be a few weeks before we have a Minimal Viable Product (MVP) to show you...and we have no fixed milestone dates yet, so all we can say is we will launch "soonish™".

So in the meantime we thought we would write a quick post to say hello and share our draft logo with you, to see if we can get some valuable feedback from you all! 🙏

## Our Logo Draft

![W and S combined and stylised into the shape of an anvil. The "feet" of the anvil are replaced with a pencil nib and a fountain pen nib. The logo is white on a charcoal background with the word "wordsmith" underneath in block capitals](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nwj42vpg0a5usbmxb3lm.jpg)


Now it still needs a little caressing, a gentle polish and some love from a professional graphic designer, but overall I think it works!

But what I think is not important, I want to know what **you** think!

So do you:
- 😍 think it is beautifully aligned, designed and refined? 
- 🤮 hate it and really don't rate it!

We want to know either way!

## It is lovely to meet you all!
We look forward to interacting with you all over the next few weeks, months and years!

If you create content (on DEV or anywhere else!) or are trying to promote your own product through content creation, then it might be worth giving us a follow!

We promise it will be interesting as we share all the trials and tribulations of creating a SAAS product designed for writers! 

We will share the whole process "warts and all" with you so you can learn from our mistakes too!

👇 We look forward to connecting 👇

{% user wordsmithcloud %}
 
Enjoy the rest of your weekend and thanks for reading!
Python 101:The ultimate Python Tutorial
Published: 2022-04-23 14:45:49

**Introduction**
Python is a high level programming language and an interpreted programming language. 

(#)Printing hello world.
    print('Hello world')
      output:Hello world
The extension of python is (.py)
**Comments**
They explain how a code works.

Unlike other programming language python uses whitespace and indentation to construct the code structure.

**Keywords**
Are words that have special meaning in python.
To find current keywords you use;
    import keyword
    print(keywords.kwlist)

Python uses(''),(""),("""),(''')to denote a string literal.

**Variables**
Used to store values.

`message='Hello world'
print(message)
                       
message='Good bye'
print(message)            #message is a variable

output:
Hello world
Good bye`

**To define a variable you use the following syntax:**
variable_name=value

**Guidelines to define variables**
(i)Variables name should be concise and descriptive
(ii)Use underscore to separate multiple words.
(iii)Avoid using letter I and uppercase O cause they look like numbers.

**Strings**
In python anything inside quotes is a string.
eg: 
   name='Ashly'

**Control flow**

a.if statement
    syntax:     
           if condition:
              if block
eg.
  age=input("Enter you age:")
    if int(age>18):
       print("You are an adult")

b.if...else statement

   performs an action when condition is true and another action when condition is false.
syntax: 
      ` if condition:
          if block;
        else:
             else block;`

c.for loop

    syntax:     
        for index in range(n):
            statements;
   use the **range**(start,stop,step) to customize loop.

d.while loop

 Executes statement when condition is true.
      syntax:   
             while condition:
                        body;

Use **break** to terminate loop in while or for loop

  **lists**
Is an ordered collection of items.
Python uses[]to indicate a list and to separate items you use comma(,).
   **Tuples**
Is a list that cannot change.
Uses parentheses().

**append** is used to add elements to the existing list.
**insert** adds new element at any position.
**del** allow you to remove element from a list.**
**pop** removes last element from a list.
Chmod +x by Git on Windows
Tags: chmod, windows, git
Published: 2022-04-23 14:44:50

TL;DR The following Git command is `chmod +x` equivalent. You can run it on your Windows machine and the permission is reflected to git repo once you commit the change.

```
git update-index --chmod=+x script.sh
```

# Background
I've been a mac user for long time since I started coding. However, I'm Windows system recently for machine learning / 3DGC. Windows OS has the different file permission management system and it's not compatible to Linux / macOS.

I use Github Actions to run tests and build on Ubuntu. Sometimes bash script is used to pack complicated commands into scripts used in Actions. I found that the bash scripts can be run on Windows with [Git for Windows terminal](https://gitforwindows.org/) even the Linux execution permission is not set. However, once I push my scripts and try to run it on Ubuntu on Github Actions, it does not work because of a lack of permission.

# Change permission and check if it has changed

As I put at the top of this article, the following command gives the execution permission to a script.

```
git update-index --chmod=+x script.sh
```

`git ls-tree head` command shows the permissions like the below when a script file `script.sh` is created on Windows. It says the permission is `644`.

```
100644 blob <hash> script.sh
```

After we have used the `chmod` equivalent command, Git automatically stages the change. Once, we commit the change, the permission changes to like the below. Now we see `755` permission of the file.
```
100755 blob <hash> script.sh
```


That's it ! Hope this helps who are working on cross platforms.
Discussion - What blogging tools are you using?
Published: 2022-04-23 14:31:18

---
title: Discussion - What blogging tools are you using?
published: true
description: Appreciation post for useful tools for your blog e.g. StackEdit :)
tags: 
//cover_image: https://direct_url_to_image.jpg
---

I recently came across [StackEdit](https://stackedit.io/app#) - an awesome online markdown editor that syncs to your Github, Google account etc. 

This will make writing new blogs so much easier for me in the future. Previously I had to create new article using the built in markdown editor in Vscode which required me to write on my PC all the time.

This got me thinking that I need to start exploring other awesome tools out there to make my blogging process easier. If you have encountered other productivity tools similar to StackEdit please share on the comments below.
Types of Blockchains inside the Bitcoin Network
Tags: blockchain, crypto, cryptocurrency
Published: 2022-04-23 14:16:45

**Hey Guys, what's up?**

Hope all are doing well.

**Today we will discuss the types of blockchains inside the bitcoin network.**

Interesting right?

**Great!**

Before starting this I am assuming you are aware of bitcoin and blockchain technology. If not, please read my previous articles here

Cool :)

You know bitcoin right? And also you know that bitcoin is powered by blockchain technology. You might be surprised to know that, there is more than one bitcoin blockchain. The "main" blockchain, the one created by Satoshi Nakamoto on Jan 3rd, 2009, is called the mainnet. There are other bitcoin blockchains that are used for the testing purpose are also available, those are testnet, segnet, and regtest.

Let's look at each :)

## Testnet

Testnet (_or Bitcoin's Testing Playground_) is the name of the test blockchain, network, and currency that is used for testing purposes. As you know bitcoin is a decentralized system, once data is added to bitcoin it can't be modified or deleted. For that reason, we need to do the test before adding to bitcoin.

**Got some idea?**

let's look in more depth!

The testnet is a fully featured live P2P network, with wallets, test bitcoin, mining, and all the other feature of the mainnet. There are only two differences: testnet coins are meant to be worthless and mining difficulty should be low enough that everyone can mine testnet coins relatively easily.

Any software development that is intended for production use on bitcoin's mainnet should first be tested on the testnet with test coins, so that, it protects both the developers from monetary losses due to bugs and the network from unintended behavior due to bugs.

Eg:- testnet3(_current version of testnet_)

## Segnet

Segnet or The Segregated Witness Testnet in launched in 2016. It is a special purpose testnet to aid in the development and testing of Segregated Witness. This test blockchain is called segnet and can be joined by running a special version(_branch_) of Bitcoin Core(_original bitcoin_).

## Regtest

Regtest, which stands for Regression Testing, is a Bitcoin Core feature that allows you to create a local blockchain for testing purposes. Unlike testnet3, which is a public and shared test blockchain, the regtest blockchain is intended to run as a closed system for local testing.

_I hope you got some idea about testing bitcoin blockchains._

**Conclusion**

Bitcoin's various blockchains (_regtest, segnet, testnet3, mainnet_) offer a range of testing environments for bitcoin development. Use the test blockchains whether you are developing for Bitcoin Core or an application such as a wallet, exchange, e-commerce site, etc.

This is a simple overview of testing blockchains inside the bitcoin network. I hope you got some idea like, what is a testnet, to regtest, and for what purpose we should use them.

**Awesome**!

Thanks for reading this article. See you soon with a new one!
Paracetamol.js💊| #107: Explica este código JavaScript
Tags: javascript, webdev, beginners, spanish
Published: 2022-04-23 13:49:03

## **<center>Explica este código JavaScript</center>**
#### <center>**Dificultad:** <mark>Intermedio</mark></center>

```js
const arr = [
  {
    nombre:"Cris",
    edad:26
  },
  true,
  Symbol("desc"),
  1_000n,
  [false, () => "Hi"]
];

console.log(arr.at(-1)[1]()); // 🤔?
```

A. `SyntaxError`
B. `ReferenceError`
C. `Hi`
D. `false`

Respuesta en el primer comentario.

---
Why Pursue a Career in Machine Learning
Published: 2022-04-23 13:29:18

Along with  AI, machine learning is the fuel required to power robots. With [machine learning course](https://www.igmguru.com/machine-learning-ai/machine-learning-certification-training/), you can control programs that can simply be up-to-date and modified to change with new conditions and projects to complete things quickly and productively.

Right here are a few advantages of pursuing a career in machine learning:

**Machine Learning is a skill of the future**

Whatever the impressive development in machine learning, area faces expertise insufficiency. If you can fulfill the needs of enormous organizations by acquiring the necessary machine learning skills, you will have a safe future in an innovation that is on the increase.

**Tackling challenges and grow**

Machine learning promises to fix issues faced by businesses every day. As a machine learning engineer, you will deal with many challenges and foster arrangements that profoundly affect how organizations and individuals flourish. A position that allows you to work and street address various challenges offers the highest satisfaction. Every day, you will get new opportunities to learn and grow in this field. An individual can observe movements firsthand that will help you raise your relevance in the marketplace, thus augmenting your value to the workplace.

**Building an amazing future**

Machine learning is still in the earlier stage, so that as the innovation develops and propels, you may have the insight and ability to follow an effective career and build the near future for yourself. The average salary of a machine learning engineer is one of the top reasons why machine learning seems to be a lucrative career to young minds.

Know more : https://youtu.be/8jpwLVJiYmM