teleren/devto huggingface dataset:
SSGo 0.4 and git rebase
Published: 2022-10-12 06:48:11

Hey! Thanks for coming by. Today, I worked on refactoring the code for [SSGo](https://github.com/devils2ndself/SSGo) a bit, and eventually added a couple features that are making the 0.4 pre-release.

## What's in 0.4

This update brings a couple more features for Markdown, as well as config file support:

- Markdown **bold**, *italics*, and [link](#) are now converted to respective HTML tags
- JSON config file support is added

## Refactoring and rebase

So, my main goal for today wasn't exactly publishing a new release, initially I simply needed to refactor bits of my code.

What I did is, I split `utils` module into smaller files for easier maintainability, refactored file type check, name and extension conversion, and markdown inline parsing.

The project now looks much more neat and allows for better maintainability.

For example, I wasn't able to add bold and links to SSGo with my previous approach, but when I switched to using regular expressions, those changes took me around 10 minutes to add.

After I was done, I did `git rebase master -i` and squashed all commits into [one](https://github.com/devils2ndself/SSGo/commit/1bbc92d653de8ae6b004b2fc6bfa5f4a420ece34), so the git tree looks much cleaner now.
PostgreSQL unit-11
Tags: postgres, sql, database, mysql
Published: 2022-10-12 06:44:42


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



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

```
SELECT id, make, model, price, ROUND(price * .10) FROM car;
```


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


```
SELECT id, make, model, price, ROUND(price * .10, 2) FROM car;
```


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

```
SELECT id, make, model, price, ROUND(price * .10, 2), ROUND(price - ROUND(price * .10),2) FROM car;
```

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


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


```
SELECT id, make, model, price AS original_price, ROUND(price * .10, 2) AS chegirma, ROUND(price - ROUND(price * .10),2) AS aksiyadagi_narx FROM car;
```

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/p31rb9s9vj9ppqw9ex1f.png)
How to handle file upload(images, documents etc.) in nuxt.js and vue.js with vuex and axios API.
Published: 2022-10-12 06:40:37


Handling files is always a hurdle especially if it is your first time. This is because files are not stored the same way normal data is. You would need to handle the files correctly first.
You need to use your formdata.

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

Here is an extract of the function for your upload files.
If you are adding this to your vuex store, then you would need to add this to your action as done above.
After which you can call the API and then dispatch the form in the appropriate pages.
It becomes easy from here after you have added it to your action.

For an image, to ensure that the image is gotten from the API and also previewed, you need to use the @change event .

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

Next, you need to add this function to your input field so you can be able to preview the image.

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

Next, to preview this image, you need to add this to an image tag that enables you view images stored in the database.

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

The v-bind:src is obtained from the API. the previewFiles is from the handle function you created.

Lastly, you need to dispatch the image to the API.

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


This is a step by step process on uploading files and sending files to the database with vuex and axios.

My Twitter Handle: https://twitter.com/mchelleOkonicha

My LinkedIn Handle: https://www.linkedin.com/in/buchi-michelle-okonicha-0a3b2b194/
Arctic Blast Reviews: Real Truth Highlight From Official!
Published: 2022-10-12 06:39:02

I'd like to briefly touch on a concern often voiced as this regards to Arctic Blast. They have good management. That will certainly light a fire under them. When it relates to doing this, reading the labels and the fine print can save characters a ton of grief. Of course, you can't do that. Here's your proof. You can't judge a book by its cover, but I have nothing better to do. By definition, this is too bad we won't ever know. I'm searching for new wisdom


https://www.outlookindia.com/outlook-spotlight/arctic-blast-pain-relief-drops-new-reports-exposed-the-untold-truth-news-228209
Value-based data assignment from json.
Tags: laravel, json, programming, php
Published: 2022-10-12 06:19:29

The scenario is as follows, the student takes the exam and according to the exam result, the system defines it to the training package. To do this, we define the score and package number in the database beforehand.

The json structure we saved in the database is as follows.

```
[
{"score":"-35-39","package":"a1","price":"7500"},
{"score":"40-49","package":"a2","price":"6000"},
{"score":"50-59","package":"a3","price":"4500"},
{"score":"60-69","package":"a4","price":"3000"},
{"score":"70-79","package":"a5","price":"1500"},
{"score":"80-89","package":"a6","price":"free"},
{"score":"90-100","package":"a7","price":"free"}
]
```

The first thing we need is a variable where we will specify the student's score.

`$point // Student score`

```
$points = json_decode(getSiteOptions('sbsJson'), true); 
// It is getting the above mentioned json data from my setting.
$point = 45; // Student score
```


```
$data = [];
$points = json_decode(getSiteOptions('sbsJson'), true);
$point = 45;
 
foreach ($points as $a) {
        $parcala = explode('-', $a['score']);
        if ($parcala[0] !== "") {
            $parcala[0] = ((int) trim($parcala[0])) === 0 ? -1 : $parcala[0];
            if ($parcala[0] < $point && $point <= $parcala[1]) 
            {
                $data = [
                    'sbs_package' => $a['package'],
                    'sbs_price' => $a['price']
                ];
            }
        } else {
            if ($point <= $parcala[1]) {
               $data = [
                    'sbs_package' => $a['package'],
                    'sbs_price' => $a['price']
                ];
            }
        }
}

return $data;
```

> It's working pretty well for me now, I'm waiting for your comments if we can fix it with a shorter code.. :)
Pass Your Microsoft Azure Security AZ-500 Exam Easy!
Published: 2022-10-12 06:36:26

You <b>AZ-500 Dumps</b> can absolutely believe our AZ-500 Exam Dumps query solutions, and we assure you a hundred% fulfillment in our landfill. We have a massive consumer base. Our clients are happy with the outcomes, which suggests the reliability of our Microsoft examination AZ-500 Exam Dumps pdf questions. We additionally have discounted promotions that upload a promo code at checkout. a hundred% Money-Back Guarantee: Exams Hero additionally gives a a hundred% cash-returned assure on all our AZ-500 Exam Dumps questions and solutions. If you do now no longer  <b>AZ-500 Exam Dumps</b> the examination after the usage of our AZ-500 Exam Dumps examination dumps, you could speedy get your cash returned. 

Click Here More Info >>>>> https://dumpsarena.com/microsoft-dumps/az-500/
Javascript: Array exercise Explained
Tags: javascript, array, exercise, programming
Published: 2022-10-12 06:13:36



**>  **Create a function that takes in an array of numbers. Return a new array containing every even number from the original array (do not use map or filter)****

```
function onlyEvens(nums){
let evens=[]
nums.forEach( n => {
    if(n % 2 === 0){             
  evens.push(n)              
    }
    
});
return evens
}
console.log(onlyEvens([1,2,3,4,5,6]))
```

//If is divided by 2 and is = 0 we know is even.
//Wherever we see nums is an array with 6 elements in it.
//We setup an empty array called evens.
//Then we loop through our array.Each times it runs(.forEach loop will run 6 times because are 6 elements in the array)
//When n=1, 1%2? NO 
n=2, 2%2? YES Since is a true statement,we do the next line evens.push(n) . What will do,will push the (n) that now is 2,and push it into that empty array called evens.
//Same goes for 4 and 6.
//Will return the even [2,4,6]
Hon'ble Guest of Honor Air Mshl Sandesh Prabhakar Wagle, VM, DCIDS (DOT) at GAISA'22
Tags: news, go, dotnet, performance
Published: 2022-10-12 06:12:23

Hon'ble Guest of Honor Air Mshl Sandesh Prabhakar Wagle, VM, DCIDS (DOT) at Global AI Summit & Awards'22 on 07th Oct.'22 at Vigyan Bhawan, New Delhi, inauguration of GAISA'22, 3rd edition.

[https://www.youtube.com/watch?v=5cJARTwOfB0](https://www.youtube.com/watch?v=5cJARTwOfB0)
Weekly web development resources #119
Tags: weekly, webdev
Published: 2022-10-12 05:45:36



______

##[Jsx Mail](https://jsx-mail.org/)
[![Jsx Mail](https://wweb.dev/weekly/content/119/jsx-mail.jpg)](https://jsx-mail.org/)
An email framework that uses React to create email templates.

______

##[Scribbble](https://scribbble.co/)
[![Scribbble](https://wweb.dev/weekly/content/119/scribbble.jpg)](https://scribbble.co/)
A simple text editor for MacOS that creates a simple blog.

______

##[Satori](https://github.com/vercel/satori)
[![Satori](https://wweb.dev/weekly/content/119/satori.jpg)](https://github.com/vercel/satori)
A cool library to convert HTML and CSS to SVG .

______

##[Templating in HTML](https://kittygiraudel.com/2022/09/30/templating-in-html/)
[![Templating in HTML](https://wweb.dev/weekly/content/119/templating.jpg)](https://kittygiraudel.com/2022/09/30/templating-in-html/)
A nice post about the <template> HTML element and how to use it.

______

##[Lit](https://lit.dev/)
[![Lit](https://wweb.dev/weekly/content/119/lit.jpg)](https://lit.dev/)
A simple library for building fast, lightweight web components.

______

##[DFlex](https://github.com/dflex-js/dflex)
[![DFlex](https://wweb.dev/weekly/content/119/dflex.jpg)](https://github.com/dflex-js/dflex)
A Javascript library for modern Drag and Drop apps.

______

##[Wavy Shapes](https://css-tricks.com/how-to-create-wavy-shapes-patterns-in-css/)
[![Wavy Shapes](https://wweb.dev/weekly/content/119/wavy.jpg)](https://css-tricks.com/how-to-create-wavy-shapes-patterns-in-css/)
An good in-depth article describing how to create wavy shapes with CSS.

______

##[kill-sticky](https://github.com/t-mart/kill-sticky)
[![kill-sticky](https://wweb.dev/weekly/content/119/kill-sticky.jpg)](https://github.com/t-mart/kill-sticky)
A bookmarklet to remove sticky elements and restore scrolling to web pages.

______

##[sharing](https://github.com/parvardegr/sharing)
[![sharing](https://wweb.dev/weekly/content/119/sharing.jpg)](https://github.com/parvardegr/sharing)
A command-line tool to share files from the CLI to iOS and Android devices.

______

##[FilePond](https://pqina.nl/filepond/)
[![FilePond](https://wweb.dev/weekly/content/119/filepond.jpg)](https://pqina.nl/filepond/)
A JavaScript library that can upload anything and optimizes images for faster uploads.

______

##[resource.fyi](https://resource.fyi/)
[![resource.fyi](https://wweb.dev/weekly/content/119/resource-fyi.jpg)](https://resource.fyi/)
Handpicked free tools, resources and products for developers and designers.

______

##[Pixelfika](https://pixelfika.com/)
[![Pixelfika](https://wweb.dev/weekly/content/119/pixelfika.jpg)](https://pixelfika.com/)
A website with handpicked designs, color palettes and copywriting.

______

To see all the weeklies check: [wweb.dev/weekly](https://wweb.dev/weekly)
Laravel Inertia JS Portfolio Project Full tutorial | Laravel Vue tutorial
Tags: laravel, vue, beginners, tutorial
Published: 2022-10-12 05:32:01

{% embed https://youtu.be/M9n8rjmUz28 %}
This video will show you how to build a full portfolio project with Laravel 9 and InertiaJS.
Learn how to build a Portfolio project with Laravel Inertiajs and Vuejs.
Laravel Portfolio project.
VueJS portfolio project.
Laravel tutorial.
Laravel vuejs tutorial.
Laravel inertia tutorial.

Setup VS CODE for Laravel: https://youtu.be/EliywWn4IK4
Setup Mac for development: https://youtu.be/yxuR5myrVi4
Laravel API Vue 3 CRUD: https://youtu.be/kFw1uRvJwIg
Laravel REST API: https://youtu.be/Jqm1jgHWO_c
150 Days Learning Python - Day 1
Tags: python, programming, productivity, beginners
Published: 2022-10-12 05:18:57

It was early in the morning, my usual time of arranging my activities for the day and scheduling up the necessary tutorials and courses that I’d take for the day. Usual notifications, alerts, pop-ups, messages, many of the usuals that happen in the everyday life of an ever-learning developer. I was done with the scheduling (I usually prefer doing this with paper and pen, even though I am a Software Developer. 🤗 Yes, I know). I picked my phone to attend to some of these messages, a few from the team, from slack, and then a popup; the popup that change the course of my diving into Truly Understanding Python and Coding with it. 

>>>It was a notification update for a Django course by Dennis Ivy on the FreeCodeCamp YouTube Channel. (Link in the description). 🤗 As always, I simply added it to save to watch later but I felt pricked to go back and watch it. Two hours later, I came back to my Email, search for the link again, and saw, clicked on the link to open 7 hours plus course tutorial. Seven hours plus? Of course, this would take not less than 18 – 22 hours to implement, looking at the fact that I am yet to even have a deep rooting in python before implementing a project with Django. Thirty minutes into this, I was like, wow! Do you mean Django can do this? Do you mean python? I was bewildered! 

I remembered a conversation I had with a good friend of mine and a senior software developer on how it will be important that I look into other programming languages since I was then well grounded in one. I refused, skepticism never let me, until now, and that conversation hit.

Right before now, I have always been so inquisitive about how I can expand my horizon of understanding and implementation of programmable solutions with other high-level programming languages without diving into Java (😢). However, I had not developed anything serious using the python language until that moment.

I paused the video, about forty-five minutes in, after understanding within myself that to really get the best out of this course tutorial for myself and even my clients, I did need to ground myself on truly understanding the python language’s fundamentals: syntax, data types, functions, packages, working with APIs, developing applications, it’s pros and cons, etc. Then and there, I picked it up as a challenging journey to understand and begin coding-in-python in 30 days.

>>>Starting from the crash, I began with a course tutorial by Tech Nana on Python Programming language. Alongside one of the recommended books, amongst others, for learning the python language. It was Head-First Python – A Brain-Friendly Guide by Paul Barry.


>>>>Updates coming...
150 DAYS LEARNING PYTHON.
Tags: python, tutorial, productivity, programming
Published: 2022-10-12 05:11:54


### 8th of October, 2022, I began the challenge to Learn Python in 150 days.

---

I will be sharing my challenges and journey process.

Follow this series through to learn more.

--- 
### 🤗 As always, I am committed to sharing interesting thoughts and processes in solving problems and truly understanding programming.

---

**Connect on Twitter**: twitter.com/mrpaulishaili
Re-posting For Better Reach : You are front-end developer? This is for you, Sample Data API
Tags: javascript, webdev, beginners, programming
Published: 2022-10-12 05:06:06

Hello,

Today i am making this post for my new website which is based on sample data.

Here, I have created for the front-end developer. 

It can be useful to new beginners who has started learning new front-end tech, But they are not having ready to use APIs. Sampledataapi is providing a ready to use APIs.

It can be also get used to practice for APIs calls.

Test your front-end against a Real / Fake APIs

1. 24 / 7 Available
2. SSL Enabled
3. CORS Enabled
4. Sample Data API / Fake Data API
5. Real Response

A hosted ready to use REST-APIs.
Ready to respond to your mobile app / react-native / AJAX or any other requests

Complete signup and user profile APIs


Hey Guys please visit the site and share your valuable thoughts here.

Thanks.

Here is the link for it [Sample Data APIs](https://sampledataapi.com/)
pyscript : run python in HTML
Tags: python, html, css, javascript
Published: 2022-10-12 04:57:42



PyScript is a framework that allows users to create rich Python applications in the browser using HTML's interface and the power of Pyodide, WASM, and modern web technologies.

**What is PyScript?**
PyScript is a Python front-end framework that enables users to construct Python programs using an HTML interface in the browser.

How to Get Started with PyScript
PyScript is fairly easy and straightforward to learn. To get started, you can either follow the instructions on the website or download the .zip file.
Just Follow the steps that i have given on the next pages.


**1. Create an HTML file**

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial
scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Title: PyScript</title>
</head>
<body>
</body>
</html>

**2.Link PyScript**

<link rel="stylesheet"
href="https://pyscript.net/alpha/pyscript.css" /> <script defer src="https://pyscript.net/alpha/pyscript.js"> </script>

**3.Print to browser**
Now that you've linked PyScript to the HTML file, you can print your "Hello World".
You can do this with the <py-script> tag. The <py-script> tag allows you to run multi-line Python programs and have them printed on the browser page. Place the tag in between the <body> tags.

<body> <py-script> print("Hello, World!") </py-script> </body>

**4.The full code for the HTML file is below:**

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial
scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet"
href="https://pyscript.net/alpha/pyscript.css" />
<script defer src="https://pyscript.net/alpha/pyscript.js">
</script>
<title>Title: PyScript</title>
</head>
<body>
<py-script> print("Hello, World!") </py-script>
</body>
</html>

**5.On your browser, you should see this:**
Hello, World!
Only 7 lines python code to remove background with rembg
Tags: python, image
Published: 2022-10-12 04:51:41

{% github danielgatis/rembg %}


We can run gpu version on Google colab


```
!pip install rembg[gpu]
```

If you want to run the script on your local machine without a gpu, you will need to install 2 packages. If you have OpenCV, you can use it instead of Pillow.

```
pip install rembg 
pip install -U Pillow
```

```
from rembg import remove
from PIL import Image

input_path = 'input.jpg' # input image path
output_path = 'output.png' # output image path

input = Image.open(input_path) # load image
output = remove(input) # remove background
output.save(output_path) # save image
```

Incredibly easy!!!
Exam 134 Chapter 3-5
Published: 2022-10-12 04:48:29

on **servera**

`lab 134-ch46-fix start|grade|finish`

1. Activated tuned service on SERVERA and change profile mode powersave
2. create group guru and siswa
3. create user 'gandi, euis' member group guru
4. create user 'elshanum, raline, asyifa' member group siswa
5. set acl on  to recursively update the  /shared/laporan directory, granting the guru group read, write, and conditional execute permissions.
6. set acl on  to recursively update the /shared/laporan directory, granting the siswa group read permissions.


7. Research and identify the SELinux issue that is preventing Apache from serving web content. you can use curl command on workstation and browse to http://servera/index.html. You will see the error message: You do not have permission to access /index.html on this server.
976. Leetcode solution in python3
Tags: challenge, chiki1601, python3
Published: 2022-10-12 04:28:25

```python

class Solution:
  def largestPerimeter(self, A: List[int]) -> int:
    A = sorted(A)

    for i in range(len(A) - 1, 1, -1):
      if A[i - 2] + A[i - 1] > A[i]:
        return A[i - 2] + A[i - 1] + A[i]

    return 0
```

#Leetcode
#challenge
Here is the link for the problem:
https://leetcode.com/problems/largest-perimeter-triangle/
The LGBTQIA Community
Tags: lgbtq, inclusion, diversity
Published: 2022-10-12 04:09:12

**Please fill out this form. I am collecting data on how well people understand the LGBTQIA+ community and the discrimination they face.**
 
https://bit.ly/dtplgbtqia

**Support LGBTQIA - Support the LGBTQ**  **#wattpad** https://wattpad.com/1276536331-support-lgbtqia-support-the-lgbtq?utm_source=web&utm_medium=twitter&utm_content=share_reading&wp_uname=eternaldarkness007&wp_originator=rpEMYMeyz6MzkkN7D8%2BZUwYpbnLDJ37X59B%2FPvpzE46FxtMBeL9w40lN7C21emKwc7%2BJGTkUkZLBUVyv%2BcB1lJqexdKXMCN3PW519pI%2FsOPo0suzp7NJ%2BEaGwp81f9sP 

--

{% twitter 1579756199280803842 %}

{% twitter 1579752439120818176 %}

{% twitter 1579756297616248833 %}

{% twitter 1579752836900212736 %}

Please support this cause as it is very important and follow

[@ch4sethatdream](https://twitter.com/Ch4seThatDream), [@ moranaambrosia](https://twitter.com/moranaambrosia), [@ hiplzdontbully](https://twitter.com/hiplzdontbully)
Git Refactoring Code
Tags: webdev, git, github
Published: 2022-10-12 04:03:24

I've always had problems in terms of fixing multiple things with my code. Whenever I make multiple changes, I always thought that having my commit message explaining everything would be the best choice or I can simply commit and then push every single time.

Refactoring and rebase makes my life much easier for I can simply commit onto multiple bug fixes and addition and combining them all into a singular push.

>Adding new functionalities

When writing my code, I noticed that when working with my `replaceDirectory` and `changeLanguage` function, that they have the same format with only a slight difference

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

With this thought, I realized that instead of simply repeating the code over and over again when working with the `.env` file, I can simply create a function that will do this for me thus `readFileEnv` was created. It takes 3 arguments and uses these values in terms of the **message** display, **value** to change, and which **key** to use


>Finding bugs

I noticed that my `output` always creates a folder when the command line is used. This is a problem, because the user can simply change the output and a substantial amount of empty folder will be created. I fixed this by removing the `createFolder` when the command line is used, and simply overwrite the value of the `.env` file