teleren/devto huggingface dataset:
An Open Source project on job search engine
Tags: django, python, react, opensource
Published: 2022-02-02 17:54:00

We all learn new skills everyday, but making something out of that is the most happiest thing and making into a product gives us much more happiness and motivation to create more things.

But, do you all know how I made this and what's behind the seen of this application?

Hi, my name is Akhil pursuing Btech in Electronics and Computer Engineering at Amrita Vishwa Vidyapeetham, Amritapuri campus Kollam.

## Idea!

The Idea behind this application is quite simple, since I'm a YouTuber I have a large community of people who are in search of jobs. So, the problem is that going through every notification and reading through 8 - 10 pages sounds very hard. As a results I figured out various things they wanted to know in order to submitting an application for a Job.

## Technologies I used to build the product

1. Python-Django for Backend.
2. React-JS for frontend (WebApp)
3. React-Native for Mobile Application
4. GraphQL for API

## Open Source?

Yes, the project is an open source. You can simply contribute to its Web Application and make a pull request. [Click here](https://github.com/akhil-s-kumar/apnicareer-webapp) to start contributing.

Soon, the backend and mobile app will be made open source.

## Have a look at the project

Website: https://www.apnicareer.com/
Android: https://play.google.com/store/apps/details?id=apnicareer.com
random num in js
Tags: codepen
Published: 2022-02-02 17:49:26

1-use document.write for output
2- remember that document.write is the print command in other languages
3- you need to floor (round down) the random value to get a valid integer.
4- random is just that, random. it's totally unpredictable. you need to multiply it by a number in order to get a value within the desired range.

{% codepen https://codepen.io/Mountebanking-Cormorant/pen/LYOZErQ %}
My practices of writing Unit-tests
Tags: phpunit, unittesting, php, testing
Published: 2022-02-02 17:41:39

For my whole life I have written about 2700 unit tests. For example [here](https://github.com/alexdodonov/mezon) are about 1300 unit-tests and code coverage is almost 100%.

I am not the most skillfull person but I have some tricks wich helpms to write more tests and easier maintain them. Hope they will be usefull for you.

Examples will be written for PHPUnit and PHP but you can implement all advices for any other unit-testing framework for any language you want.

## Strict structure for all unit-tests

All my tests have absolutely the same structure (excepti for tests wich test exception )) ) and it looks like this:

```php
// setup
here we have setup commands

// test body
here we call testing method

// assertions
here we validate the result
```

And here is some real life example:

```php
/**
 * Testing method addPostRoute
 */
public function testAddPostRoute(): void
{
	// setup
	$router = $this->getRouter();
	$route = 'route';
	RouterUnitTestUtils::setRequestMethod('POST');

	// test body
	$router->addPostRoute($route, $this, 'actionRoute');

	// assertions
	$this->assertEquals(1, $router->callRoute($route));
}
```

Here strict structure of unit-test will help you easyly understand what is happening. And also prevents your tests from becoming a mess.

In some cases unit-test's structure can be a little different, but it consists of the same three parts: setup, test body and assertions. Just look at hte example:

```php
/**
 * Testing exception while getting existing file
 */
public function testExceptionWhileGettingFileContent(): void
{
	// assertions
	$this->expectException(\Exception::class);
	$this->expectExceptionCode(- 1);
	$this->expectExceptionMessage('File unexisting does not exists');

	// setup
	InMemory::clearFs();

	// test body
	Layer::existingFileGetContents('unexisting');
}
```

This trick can be used for Selenium tests also, but it can be modified like this:

```php
// prepare test data

// move our web app to the necessary state

// test body

// assertions
```

Here "move our web app to the necessary state" are steps wich need to be perfomed before testing functionality. For example you want to display data grid. So your selenium test will look like this (in pseudo code):

```bash
// prepare test data
create records for the grid
create testing user
grant permissions for him

// move our web app to the necessary state
login with the created user
open menu

// test body
click on the link in the menu to open testing grid

// assertions
verify that all created records are displayed
```

That's all for now. Hope this article will be usefull for you. If so - please press "STAR" for my [project](https://github.com/alexdodonov/mezon).
Richpresence in discord using pypresence - Tutorial
Tags: discord, tutorial, python, beginners
Published: 2022-02-02 17:38:39

# Custom Rich presence in Discord using pypresence

Guide for custom RPC in Discord using pypresence.

## Getting Started
_You need Python 3.8 or later_
1. Download the code from the [DiscordCustomRPC.py Repository](https://github.com/InvalidLenni/DiscordCustomRPC.py).
2. Open your command prompt.
3. Write `pip install requirements.txt` in your command prompt.
4. Edit [VAR.X] (ex: VAR.details = "I like to code stuff, playing games, listening to the music and relaxing.") In the basic-presence.py or advanced-presence.py file to the specification you want to have. (I will add a config.json soon)
5. Save it

## Getting Started with the application

1. Navigate to https://discord.com/developers/applications.
2. Create an application.
3. Copy the Client ID for later.
4. Replace the actual client ID with the client ID of your application.

Then it should look like this example:
![Example - Basic Presence](http://cdn.invalidlenni.de/DiscordPTB_FmGKiJFzw2.png)

**Optional**
### Getting Started with setup the Advanced Rich presence

1. Navigate to https://discord.com/developers/applications.
2. Navigate to Rich presences / Art assets.
3. Upload your rich presence images and then click on "Save".
_You need to use the advanced rich presence code for making an advanced rich presence!_

Then it should look like:
![Example - Advanced Presence](http://cdn.invalidlenni.de/DiscordPTB_qJXlGXz0ZS.png)
Day 4 of 100 Days Of Code
Tags: 100daysofcode, extensions, discord, challenge
Published: 2022-02-02 17:37:44

## Day 4 of 100 Days Of Code Challenge

Here can you find what I learned (& published) today.

### What I published / coded / updated today?
* Day 4 started with coding my first public Chrome extension for deleting your cookies on a respective web page you enter (or the URL then) in the menu of the extension, unfortunately not yet available in the Chrome Web store, GitHub link: https://github.com/InvalidLenni/cookieclearer
* I published a blog post about DiscordCustomRPC.py, you can read the post here: https://dev.to/invalidlenni/richpresence-in-discord-using-pypresence-tutorial-48ed
[OPINIÃO] Os 3 R's da Engenharia de Dados
Tags: bigdata, dataengineering, tips
Published: 2022-02-02 17:28:12


Tobias Macey é host do popular [_Data Engineering Podcast_](https://www.dataengineeringpodcast.com/) e organizador do livro [_97 Things Every Data Engineer Should Know_](https://www.oreilly.com/library/view/97-things-every/9781492062400/) publicado pela O'Reilly, a editora queridinha da área de Dados.


![97 Things Every Data Engineer Should Know](https://m.media-amazon.com/images/I/51QO1kgDpeS.jpg)

Em um dos artigos publicados por Macey ele enfatiza 3 competências que ele considera imprescindíveis no dia a dia da Engenharia de Dados.

## _Reliability_ (Confiabilidade)

A confiabilidade está relacionada às características dos dados que contribuem para um alto grau de confiança das análises que você está realizando, ou seja, dessas análises serem consideradas corretas. Da mesma maneira, a confiabilidade está atrelada ao fato de que os algoritmos sofisticados de Machine Learning necessitam de consistência dos dados.

## _Reproducibility_ (Reprodutibilidade)

A reprodutibilidade é uma competência crítica ao trabalhar com
sistemas. Se não existir a possibilidade de outro membro do time ou unidade de negócios verificar e recriar independentemente seus conjuntos de dados e análises, não há maneira de ter certeza que os resultados originais eram válidos. Isso tem um impacto direto no conceito de confiabilidade, pois se você é capaz de reproduzir consistentemente um determinado conjunto de dados, você pode ter a certeza de que é confiável.

## _Repeatability_ (Repetibilidade)
Se todos os seus servidores morrerem ou o datacenter em que seus sistemas estão sendo executados estiver destruído ou incapacitado por um desastre natural, você precisa de um plano de recuperação. É aqui que entra em jogo o terceiro R, repetibilidade. Está tudo bem em construir um cluster Spark ou instalar um banco de dados PostgreSQL, mas pode você conseguiria fazer isso rapidamente e repetidamente? 
__________________________________________________________________
E aí? O que você achou dos 3 R's propostos por Macey? Você concorda com todos eles? Acrescentaria outros pontos que você considera mais que necessários no cotidiano da área de Engenharia de Dados?

Comenta aí embaixo o que você achou e não esqueça de curtir, salvar e compartilhar esse post. (:
Cloudways Review: WordPress Cloud Hosting mit großen Ambitionen
Tags: wordpress, hosting
Published: 2022-02-03 10:51:27

---
title: Cloudways Review: WordPress Cloud Hosting mit großen Ambitionen
published: true
date: 2022-02-02 17:24:38 UTC
tags: WordPress,hosting
canonical_url: https://bloggerpilot.com/cloudways/
---

![Cloudways - Schnelles WordPress-Hosting in der Cloud](https://bloggerpilot.com/wp-content/uploads/2022/01/cloudways-desktop.png)

Cloudways ist eine Managed-Cloud-Hosting-Plattform, die dich bei der Bereitstellung, Skalierung und Verwaltung von Anwendungen in der Cloud unterstützt. Es dauert nur wenige Minuten, um mit Cloudways loszulegen, und du kannst Anwendungen mit wenigen Klicks bereitstellen.

Der Original-Artikel erschien auf [Cloudways Review: WordPress Cloud Hosting mit großen Ambitionen](https://bloggerpilot.com/cloudways/).

Cloudways ist der führende Anbieter von Managed-Cloud-Hosting-Services mit mehr als 50000 Kunden weltweit. Cloudways ist das stärkste und am schnellsten wachsende Cloud-Hosting-Unternehmen, das seinen Kunden ermöglicht, ihre Websites, Anwendungen und IT-Infrastruktur in der Cloud zu hosten.
CSS or A Framework?
Tags: javascript, css, html
Published: 2022-02-02 17:23:14

I was once in this dilemma and it was crazy but after some research, I figured it out which is the main reason I'm writing this guide to help others in this similar situation.

First of all CSS is an entity on its own, and any CSS framework is built upon it as a subordinate, that is, it's depending on it(CSS) to function. It's like a root and branch relationship.

Vanilla CSS gives you full control of your styling without restrictions, while framework only gives you components to work with.

You might be importing a lot of codebases you don't need when using a framework which will bloat your pages and slow down your website,  while vanilla CSS is minimalistic to the core, you only create styles that you'll use. 

Most frame-work styled pages look the same, meaning they can't be customized as most of the components styling are similar, hence giving a site an ordinary feel,  while vanilla CSS gives you the freedom to customize your elements however you want. 

Learning vanilla CSS is the best way to learn CSS for absolute beginners, you'll understand how frame-works, understand the styling underneath the styling components, and you can pick it up quickly, if you know CSS, you can learn bootstrap or any CSS framework in an evening.

Well, after you learn CSS, frameworks can come in handy and it can also save you the stress of styling from scratch especially if you just want to make a quick UI without any fancy stuff.
Cool React Projects To Build in 2022 | 10 Projects 
Published: 2022-02-02 17:09:59

Cool React Projects To Build in 2022 | 10 Projects | Frontend Everything | 

![A pie chart showing 40% responded "Yes", 50% responded "No" and 10% responded "Not sure"](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/o1xkw6cm0xm0poc961xb.jpg)
Hello Everyone 👋Welcome to My New Post, here I am showing some cool projects you should build with REACT JS. 
<h1>9: Projects To Make On React JS </h1>

- Calculator 
- E-commerce Website
- Productivity Tools
- Weather Web Application
- Entertainment Website
- Cryptocurrency Website
- Password Generator
- Photo Gallery Website
- Real-time Chat Application

## Calculator 

![
A pie chart showing 40% responded "Yes", 50% responded "No" and 10% responded "Not sure"](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sp2kgmre2v146ogu3v58.jpg)
##E-commerce Website

![A pie chart showing 40% responded "Yes", 50% responded "No" and 10% responded "Not sure"](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/j6j07bh0iq3359lt6xcc.jpg)
##Productivity Tools

![A pie chart showing 40% responded "Yes", 50% responded "No" and 10% responded "Not sure"](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0x1xd1ucwlcjgcf5xh2e.jpg)
## Weather Web Application

![A pie chart showing 40% responded "Yes", 50% responded "No" and 10% responded "Not sure"](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tb6bd1ujub4vm9tb18l8.jpg)
## Entertainment Website


![A pie chart showing 40% responded "Yes", 50% responded "No" and 10% responded "Not sure"](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vtfm6jke9ce0hrh1njxx.jpg)
## Cryptocurrency Website

![A pie chart showing 40% responded "Yes", 50% responded "No" and 10% responded "Not sure"](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/n4f50iem6utaeto6nevh.jpg)
## Password Generator

![A pie chart showing 40% responded "Yes", 50% responded "No" and 10% responded "Not sure"](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6676b9okzv07sec9d5j7.jpg)
##Photo Gallery Website

![A pie chart showing 40% responded "Yes", 50% responded "No" and 10% responded "Not sure"](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ksww4uom2osolmpo5svz.jpg)
## Real-time Chat Application

![A pie chart showing 40% responded "Yes", 50% responded "No" and 10% responded "Not sure"](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/btkwe9hjp19h174ye31b.jpg)
Thank You For Scrolling Till here 😊. If you like my post please like share.

More blogs you should give a check.

- [Simple Calculator with Dark Mode](https://dev.to/harshitkhaladk1/simple-calculator-with-dark-mode-5gpp)

- [How TO - Responsive Top Navigation](https://dev.to/harshitkhaladk1/how-to-responsive-top-navigation-3p81)

.





Follow me

1. [Twitter](https://twitter.com/HarshitKhaladk1)

2. [Quora](https://www.quora.com/profile/Harshit-Khaladkar)
How to Fix QuickBooks Error 6000, -77 when opening a company file?
Tags: webdev
Published: 2022-02-02 17:07:37

QuickBooks error code 6000 77 is often seen when the file is stored in the incorrect folder. This is basically a 6000 series error that appears on the screen stating “We are sorry. QuickBooks encountered a problem. The support contains information about this type of error”. There can be a couple of reasons causing such an error, which we will be discussing later in this post. 

Thus, if you are interested to [resolve the QuickBooks error 6000, -77](https://qbsenterprisesupport.com/quickbooks-error-6000-77/) by your own, then make sure to read this post till the end. However, if there is any query, or if the user is facing difficulty at any point of time, then contacting our technical support team is suggested. 

**

## Why QuickBooks error code 6000 77 shows up?
**

Below are the reasons why QuickBooks error code 6000 77 appears on the screen. 

•	One of the most common reason be if you are using inappropriate password to access the company file 
•	If the company file is being opened by QuickBooks by referencing a mapped drive 
•	Another factor causing such an error can be if QuickBooks running in multi-user mode when communicating the issue 
•	Also, if the company file itself is damaged 

**Steps to resolve QuickBooks error code 6000 77**

The user needs to fix the error code 6000 77 in QuickBooks desktop by using the UNC path.

•	The very first step is to right click the QuickBooks icon on the desktop 
•	And then, press ctrl key and also choose run as admin 
•	The next step is to press ctrl until you have the no company open window 
•	From the file menu, choose open or [restore company](https://qbsenterprisesupport.com/restore-backup-files-in-quickbooks/) 
•	After that click on open a company file and hit next 
•	The user should then select network option and head to the company file location 
•	In case the user is unable to find the folder where the company file is saved, then setting the folder permissions is recommended 
•	The last step is to choose the company file and also click on open tab 

Fixing the QuickBooks error code 6000 77 becomes easy, once the user performs the steps mentioned in above. However, for any query, the user simply needs to contact our support team using our number i.e., 1-800-761-1787. Our [QuickBooks desktop error support](https://qbsenterprisesupport.com/quickbooks-error-support/) professionals will provide the user with immediate assistance, and will definitely fix the issue on their behalf.
Solved: Laravel Cors Issue
Tags: laravel, cors
Published: 2022-02-02 16:59:24

Updated 2024-04-16

Create a middleware at `app\Http\Middleware\SecurityHeaders.php`:

```
<?php

namespace App\Http\Middleware;

use Closure;

class SecurityHeaders
{
    private $unwantedHeaders = ['X-Powered-By', 'server', 'Server'];

    /**
     * @param $request
     * @param  Closure  $next
     * @return mixed
     */
    public function handle($request, Closure $next)
    {
        $response = $next($request);

        if (env('APP_ENV') === 'production'
            || env('APP_ENV') === 'develop'
            || env('APP_ENV') === 'staging' ) {
            $response->headers->set('Referrer-Policy', 'no-referrer-when-downgrade');
            $response->headers->set('Strict-Transport-Security', 'max-age=31536000; includeSubDomains');
            /*
             * WARNING: This exposes the document to many exploits.
             * You must update 'Content-Security-Policy'
             */
            $response->headers->set('Content-Security-Policy', "default-src * self blob: data: gap:; style-src * self 'unsafe-inline' blob: data: gap:; script-src * 'self' 'unsafe-eval' 'unsafe-inline' blob: data: gap:; object-src * 'self' blob: data: gap:; img-src * self 'unsafe-inline' blob: data: gap:; connect-src self * 'unsafe-inline' blob: data: gap:; frame-src * self blob: data: gap:;");
            $response->headers->set('Permissions-Policy', 'autoplay=(self), camera=(), encrypted-media=(self), fullscreen=(), geolocation=(self), gyroscope=(self), magnetometer=(), microphone=(), midi=(), payment=(), sync-xhr=(self), usb=()');
            $response->headers->set('X-Frame-Options', 'SAMEORIGIN');
            $response->headers->set('X-Content-Type-Options', 'nosniff');

            $this->removeUnwantedHeaders($this->unwantedHeaders);
        }

        return $response;
    }

    /**
     * @param $headers
     */
    private function removeUnwantedHeaders($headers): void
    {
        foreach ($headers as $header) {
            header_remove($header);
        }
    }
}


```


---

## Laravel 10

If `config/cors.php` not working, then simply add following to your `public/index.php`:

```php
header('Access-Control-Allow-Origin: *');
header('Access-Control-Allow-Methods: *');
header("Access-Control-Allow-Headers: *");
```

and update `config/cors.php` to
```php
'allowed_origins' => [],
```


## Laravel 9 and lower

Step 1. Add `\Fruitcake\Cors\HandleCors::class,` in `app/Http/Middleware/Kernel.php` in `$middleware` array

eg:
```php
protected $middleware = [
        ...
        \Fruitcake\Cors\HandleCors::class,
        ...
    ];
```

Step 2. Add `cors.php` file in `config` folder and write following code:
```php
<?php

return [
    'paths' => ['api/*', 'sanctum/csrf-cookie'],

    'allowed_methods' => ['*'],

    'allowed_origins' => ['*'],

    'allowed_origins_patterns' => [],

    'allowed_headers' => ['*'],

    'exposed_headers' => [],

    'max_age' => 0,

    'supports_credentials' => false,

];

```
FREE React Chakra UI Dashboard (Open Source)
Tags: opensource, react, css, productivity
Published: 2022-02-02 16:56:55

Start your Development with an innovative admin template for Chakra UI and React. If you like the look & feel of the hottest design trend right now, Argon Dashboard Chakra, you will fall in love with this dashboard! It features a huge number of components built to fit together and look amazing.

https://www.creative-tim.com/product/argon-dashboard-chakra


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nesdjh3qron5hhsai2cr.png)
4 Tools Kaggle Grandmasters use to win $100,000s in competitions
Tags: competition, kaggle, tips, tricks
Published: 2022-02-03 18:06:18

---
title: 4 Tools Kaggle Grandmasters use to win $100,000s in competitions
published: true
date: 2022-02-02 16:33:00 UTC
tags: competition,kaggle,tips,tricks
canonical_url: https://dramsch.net/posts/4-tools-kaggle-grandmasters-use-to-win-100000s-in-competitions/
---

![](https://dramsch.net/images/banner/banner-bullseye.thumbnail.jpg)

 

4 Tools Kaggle Grandmasters use to win $100,000s in competitions

Expertise is figuring out what works and what doesn't.

Why not let the experts tell you?

Rather than experiment from the ground up for a decade!

1. Pseudolabelling
2. Negative Mining
3. Augmentation Tricks
4. Test-time augmentation

## 🎨 Pseudolabelling

Some competitions don't have a lot of data.

Pseudo labels are created by building a good model on the training data.

Then predict on the public test data.

Finally, use labels with high confidence as additional training data!

## 📉 Hard Negative Mining

This works best on classifiers with a binary outcome.

The core idea:

1. Take misclassified samples from your training data.
2. Retrain the model on this data specifically.

Sometimes this is specifically applied to retraining on false positives as negatives.

## 🏁 Finish training unaugmented

Data augmentation is a way to artificially create more data by slightly altering the existing data.

This trains the ML model to recognize more variance in the data.

Finishing the last training epochs unaugmented usually increases accuracy.

## 🔃 Test-Time Augmentation (TTA)

Augmentation during training? Classic.

How about augmenting your data during testing though?

You can create an ensemble of samples through augmentation.

Predict on the ensemble and then use the average prediction from our model!

## Conclusion

Kaggle can teach you some sweet tricks for your machine learning endeavours.

This article was about these four:

- Create extra training data
- Train on bad samples
- Top of training with original data
- Test on an ensemble of your data
Phase 1 Completed
Tags: javascript, beginners, programming, career
Published: 2022-02-02 16:18:35

Hello Everyone,

This post is for myself and anyone who wants to follow my progress. I have completed Phase 1 at Flatiron and boy, was it a trip. I was sick the first two weeks of the camp thus I had a lot of catch up to do. I only knew the basics of javascript such as functions, variables, conditionals, and all the other java basics. The week I finally was able to show up I had to learn all about DOM and how to really create a dynamic web application. This sparked a fire into me to learn everything I need to pass the phase. I learned all about DOM manipulation and how users are able to interact with websites. Also, I learned about JSON servers and how to fetch information from them to display on a webpage. I also learned some HTML and CSS. I learned how to bring all together and was and create my own project on my own that met the requirements to pass the phase. All in that one week I was able to pull it off. It took a lot of work and determination but I did it. I am currently in Phase 2 and hungry for more programming knowledge.