teleren/devto huggingface dataset:
Today's Daily Humor For Devs - Daily Developer Jokes
Tags: jokes, dailydeveloperjokes
Published: 2022-02-10 08:00:06

---
title: "Today's Daily Humor For Devs - Daily Developer Jokes"
description: "Check out today's daily developer joke! (a project by Fred Adams at xtrp.io)"
series: "Daily Developer Jokes"
published: true
tags: #jokes, #dailydeveloperjokes
---

Hi there! Here's today's Daily Developer Joke. We hope you enjoy it; it's a good one.

![Joke Image](https://private.xtrp.io/projects/DailyDeveloperJokes/public_image_server/images/5e1258e619778.png)

---

For more jokes, and to submit your own joke to get featured, check out the [Daily Developer Jokes Website](https://dailydeveloperjokes.github.io/). We're also open sourced, so feel free to view [our GitHub Profile](https://github.com/dailydeveloperjokes).

### Leave this post a ❤️ if you liked today's joke, and stay tuned for tomorrow's joke too!

_This joke comes from [Dad-Jokes GitHub Repo by Wes Bos](https://github.com/wesbos/dad-jokes) (thank you!), whose owner has given me permission to use this joke with credit._

<!--
Joke text:
___Q:___ A SQL query goes into a bar, walks up to two tables and asks:

___A:___ Can I JOIN you?
 -->
Next-Generation ORM for Node.js
Tags: node, typescript, opensource, database
Published: 2022-02-10 07:56:40

## [prisma](https://github.com/prisma/prisma)
<span><strong><i class="fa fa-star">Star 20.4k</i> <i class="fa fa-eye">Watch 187</i> <i class="fa fa-code-fork">Fork 716</i></strong></span>

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

Prisma is a next-generation ORM that consists of these tools:

- Prisma Client: Auto-generated and type-safe query builder for Node.js & TypeScript

- Prisma Migrate: Declarative data modeling & migration system

- Prisma Studio: GUI to view and edit data in your database

Prisma Client can be used in any Node.js or TypeScript backend application (including serverless applications and microservices). This can be a REST API, a GraphQL API a gRPC API, or anything else that needs a database.

#### Example

```javascript
import { PrismaClient } from '@prisma/client'

const prisma = new PrismaClient()

// A main function so that you can use async/await
async function main() {
  const allUsers = await prisma.user.findMany({
    include: { posts: true },
  })
  // use console.dir to print nested objects
  console.dir(allUsers, { depth: null })
}

main()
.catch((e) => {
  throw e
})
.finally(async () => {
  await prisma.$disconnect()
})
```
Copying multiple code blocks together and paste them one by one
Tags: vs2022, visualstudio
Published: 2022-02-10 07:51:18

How many times do you navigate from one file to another multiple times to copy and paste small parts of code?
Especially during a refactoring?

There is a feature in Visual Studio 2022 called "Clipboard Ring" that can really help you.

## How it works
You can start to copy (or cut) the code blocks with the usual key combination **Ctrl+C** or **Ctrl+V**

Instead of paste the code with the key combination Ctrl+V, paste them using **Ctrl+Shift+V**.

A dropdown appears close to the cursor with the list of your clipboard history from Visual Studio.
Now you can click directly to an item or you can use the number of the line that you want to paste.

That's all!

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hhjupjkn4bnricphep8y.gif)
Como Ler Mensagens Do Whatsapp Em Segredo
Tags: android, ios
Published: 2022-02-10 07:50:53


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/c8tnv8r96twc22wv644t.jpg)
Quer saber como você pode [ler as mensagens do WhatsApp de qualquer pessoa secretamente](https://www.spymasterpro.com/pt/blog/como-ler-mensagens-do-whatsapp-em-segredo/) sem entrar no telefone. Aguentar! O Spymaster Pro é a solução rápida para todas as suas necessidades de rastreamento. Funciona de forma eficaz no Android e no iPhone com 100% seguro e protegido de usar. Permite que você leia as mensagens do WhatsApp de qualquer pessoa, sejam membros da sua família, filhos ou outros. Experimente o Spymaster Pro para obter mais experiência com rastreamento.
Gói cước MAX79V của VinaPhone nhận 9GB+ miễn phí MyTV
Published: 2022-02-10 07:49:13

[Gói MAX79V của VinaPhone](https://dichvudidong.vn/goi-max79v-vinaphone) là một trong những gói 3G/4G không giới hạn được quan tâm nhất hiện nay. Phí đăng ký chỉ 79.000đ. Thuê bao sau khi đăng ký gói sẽ có ngay 9GB data tốc độ cao để truy cập mạng 3G/4G suốt 1 tháng. Bên cạnh đó còn có thể tha hồ trải nghiệm miễn phí các nội dung giải trí, truyền hình trên ứng dụng MyTV.
**Đăng ký gói MAX79V VinaPhone có 9GB + Xem miễn phí MyTV**

Chú ý: Gói MAX79V không thể dùng song song với các gói data khác. Nếu tại thời điểm đăng ký gói, thuê bao đang sử dụng gói cước 3G/4G khác thì cần hủy gói đang dùng trước rồi sau đó hãy soạn tin đăng ký gói MAX79V.

» Xem thêm: [Cách đăng ký 3G VinaPhone theo tháng](https://dichvudidong.vn/dang-ky-cac-goi-cuoc-3g-cua-vinaphone), kèm phút gọi miễn phí

**Quy định sử dụng gói MAX79V VinaPhone cần nắm rõ**
Dùng hết data ưu đãi tốc độ cao của gói thì chỉ được truy cập mạng tốc độ thường.
Data của gói chỉ dùng trong 30 ngày. Không bảo lưu, cộng dồn kể cả khi tiếp tục gia hạn ở chu kỳ sau.
Ưu đãi data tốc độ cao không tính vào dung lượng truy cập dịch vụ nội dung số truyền hình MyTV.
Cú pháp hỗ trợ dùng gói cước MAX79V VinaPhone cần biết
Kiểm tra dung lượng của gói MAX79V Vina: soạn DATA gửi 888 (Miễn phí).
Hủy gói cước MAX79V VinaPhone soạn HUY MAX79V gửi 888 (Miễn phí).

» Xem thêm: Các gói 3G VinaPhone rẻ nhất dành cho Sim di động
Lowongan Kerja PT Patra Badak Arun Solusi
Tags: job, jobs, jobseeker
Published: 2022-02-10 07:49:08

LOWONGAN KERJA PT PATRA BADAK ARUN SOLUSI(PBAS) 

HSE Engineer / HSE Specialist / Safety Process

Kualifikasi
Pendidikan Teknik Kimia
Pengalaman Min. 3 tahun di industri Migas Mampu melakukan kalkulasi water demand, foam chamber, water spray, fire suppression system, Hazardous area clasiffication Berpengalaman untuk kegiatan PSSR Commisioning Dapat mengoperasikan software fire & explosion seperti phast atau sejenisnya
Dapat bergabung segera
Mampu berkomunikasi dalam Bahasa Inggris baik lisan maupun tulisan

Kirimkan CV Anda ke :

recruitment@pbasolusi.com

Deadline: Senin, 14 Februari 2022

Hanya kandidat yang memenuhi kualifikasi yang akan diproses ke tahap selanjutnya.

Source : https://www.dunialoker.com/
Testing PySpark & Pandas in style
Tags: spark, pandas, testing, opensource
Published: 2022-02-10 07:49:05

---
title: Testing PySpark & Pandas in style
published: true
description: Introducing markdown-frames - package for testing Dataframes.
tags: spark,pandas,testing,opensource
---
Today we'd like to share a small utility package for testing Dataframes on PySpark and Pandas.

If you are a fan of test-driven development and had a chance to work on PySpark (or Pandas) projects, you've probably had written tests similar to this one:

```python
from datetime import datetime
from pyspark_test import assert_pyspark_df_equal
from your_module import calculate_result

def test_event_aggregation(spark):
    schema = ["user_id", "even_type", "item_id", "event_time", "country", "dt"]
    expected_df = spark.createDataFrame(
        [
            (123456, 'page_view', None, datetime(2017,12,31,23,50,50), "uk", "2017-12-31"),
            (123456, 'item_view', 68471513, datetime(2017,12,31,23,50,55), "uk", "2017-12-31")
        ], 
        schema
    )

    result_df = calculate_result()

    assert_pyspark_df_equal(expected_df, result_df)

```

It works OK for small applications, but when your project gets bigger, data gets more complicated and the amount of tests starts to grow, you might want a less tedious way to define test data.

Exacaster alumni [Vaidas Armonas](https://www.linkedin.com/in/vaidasarmonas) came up with an idea to represent Spark DataFrames as markdown tables. This idea materialized to a testing package [markdown-frames](https://pypi.org/project/markdown-frames/). With this package the test, which was shown before, can be replaced with this one:

```python
from pyspark_test import assert_pyspark_df_equal
from markdown_frames.spark_dataframe import spark_df
from your_module import calculate_result

def test_event_aggregation(spark):
    input_data = """ 
        |  user_id   |  even_type  | item_id  |    event_time       | country  |     dt      |
        |   bigint   |   string    |  bigint  |    timestamp        |  string  |   string    |
        | ---------- | ----------- | -------- | ------------------- | -------- | ----------- |
        |   123456   |  page_view  |   None   | 2017-12-31 23:50:50 |   uk     | 2017-12-31  |
        |   123456   |  item_view  | 68471513 | 2017-12-31 23:50:55 |   uk     | 2017-12-31  |
    """
    expected_df = spark_df(input_data, spark)

    result_df = calculate_result()

    assert_pyspark_df_equal(expected_df, result_df)
```

It makes tests more readable and self-explanatory.

Everything looks almost the same, when you need to build a Dataframe for Pandas, you just need to use different function:

`from markdown_frames.pandas_dataframe import pandas_df`

Share in the comments, if you know any other convienient tips & tricks when writing PySpark (and Pandas) Unit tests.
A python 3 DOM for creating HTML
Tags: pyhton, html, javascript, webdev
Published: 2022-02-10 07:47:19

### htmlx

In response to emails I've been receiving about a lightweight version of domonic that uses no parsing packages. (Purely for html creation.) Here is htmlx...

https://github.com/byteface/htmlx/

It will have the same aims as domonic but without including other packages and is just a stripped down version.


### domonic

Is pure python...

It has lots of features due to being 2 years old now and geared towards creating html content.

https://github.com/byteface/domonic/

Generally use this for rapid prototypes.


### adom

Is not pure python. It uses cython and c++ libraries under the hood...

It has less features and will be more geared towards parsing html...

https://github.com/byteface/adom/
How to run  a react-native app on a real device using terminal
Tags: javascript, reactnative, ios
Published: 2022-02-10 07:47:06

👋🏿Jambo folks,
Constantly opening Xcode to build your app on a real device is a pain, open your terminal and lets' dive right in.

**Step 1**
- For whatever weird reason you don't have it yet, install [homebrew](https://brew.sh/)
```/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"```

**Step 2**
- install ios-deploy
```brew install ios-deploy```

now what you have been waiting for 😛
- connect your device via usb (of-course) then in terminal,
```ios-deploy -c``` 
The result will be
```Found 7875****************** (D20AP, <iphone version>, iphoneos, arm64, 1543) a.k.a. '<device name>' connected through USB.```
- copy the 7875******************
- now lets build the app with 
```npx react-native run-ios --udid 7875******************```

Hope it helps😊
Does anyone know how to cope with Virtual Box 6.0.24 software download issue? 
Tags: serverless
Published: 2022-02-10 07:42:10

Since I have download Virtual Box 6.0.24 for building the server on Owncloud, however, i can't move on to step 2 of of set-up process. Please let me know if there have any solutions to move on to next step. 

Thanks a lot.
[Azure Trial Hackathon Submission Post Placeholder Title]
Published: 2022-02-10 07:33:14

[Instructions]: # (To submit to the Microsoft Azure Trial Hackathon on DEV, please fill out all sections.)


### Overview of My Submission
[Note]: # (Please make sure the project links to the appropriate GitHub repository, and includes the [Apache-2 permissive license](https://www.apache.org/licenses/LICENSE-2.0)  and README.)


### Submission Category: 

[Note]: # (AI Aces, Computing Captains, Low-Code Legends, Java Jackpot, or Wacky Wildcards:)


### Link to Code on GitHub

[Note]: # (Our markdown editor supports pretty embeds. Try this syntax: `{% github link_to_your_repo %}` to share a GitHub repository)
[Note]: # (Your repository must include a README)
[Note]: # (You must use and list a permissive license for your code: MIT, Apache-2)


### Additional Resources / Info

[Note:] # Screenshots/demo videos are encouraged!

[Note]: # (Be sure to include the DEV usernames of your collaborators, if any. Prizes for winning projects with multiple collaborators will be sent to the person who posts this submission and they will distribute the prize evenly. DEV will not split prizes as per our rules)

[Reminder]: # (Submissions are due on March 8, 2022 @ 11:59 PM UTC)
Day 17/100 Java
Tags: 100daysofcode
Published: 2022-02-10 07:26:28

Feel this challenge to have helped me become consisten in the code that I type, additionally type cleaner code in itself.

Day 17/100

**Language:**
JAVA

**Time Period Spent:**
2hrs

**Course Taken:**
Udemy: Java Programming Masterclass - Tim Buchalka

**Todays Learning:**
- Encapsulation

- Challenges: 
	- Real-world Printer

**Additional Notes:**
Today was a constructive day. After learning encapsulation, I can now safely say that there is functional use for this as we can lockdown a class and only display what we wish the user to use from.

As written by Throben Jenssen:
-
By definition, encapsulation describes the idea of bundling data and methods that work on that data within one unit, like a class in Java. This concept is also often used to hide the internal representation, or state of an object from the outside. This is called information hiding.
The general idea of this mechanism is simple. For example, you have an attribute that is not visible from the outside of an object. You bundle it with methods that provide read or write access. Encapsulation allows you to hide specific information and control access to the internal state of the object.
If you’re familiar with any object-oriented programming language, you probably know these methods as getter and setter methods.
De Typescript a Java
Tags: typescript, java
Published: 2022-02-10 06:56:24

Hace poco he leído el comentario de un programador comentando que en su trabajo ha tenido que pasar de Typescript a Java, que es un atraso en su carrera pero bueno, que java tampoco está tan mal

Y tú? También consideras que es un atraso? Ves a Java como el COBOL de los 90?
How to create simple chrome extension
Tags: chrome, javascript
Published: 2022-02-10 06:51:51

I am developing a notepad application by personal development. In the process, I needed to create a chrome extension.
So in this post, I want to introduce the way to develop a simple chrome extension.

# Result
In this case, the extension shows an alert message when you visit `*.google.com`.

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

The codes are [Here](https://github.com/takitsuba/chrome-ext-sample/tree/main/alert).

# What you need
You have to create only two files; `manifest.json` and `show_alert.js`.

## manifest.json
Every extension needs `manifest.json`, which provides essential information. ([ref](https://developer.chrome.com/docs/extensions/mv3/manifest/) )This time the content of it is as follows. 

```
{
  "name": "Alert Sample",
  "description": "Chrome Extension Alert Sample",
  "version": "1.0.0",
  "manifest_version": 3,
  "content_scripts": [
    {
      "matches": ["*://*.google.com/*"],
      "js": ["show_alert.js"]
    }
  ]
}
```

`manifest_version` must be set to 2 or 3 now. ([ref](https://developer.chrome.com/docs/extensions/mv3/manifest/manifest_version/))

When you want to automatically run a script on some site, it is good to use `content_scripts`. ([ref](https://developer.chrome.com/docs/extensions/mv3/content_scripts/#static-declarative))
You can specify sites by `matches` consisting of `scheme`, `host`, and `path`. ([ref](https://developer.chrome.com/docs/extensions/mv3/match_patterns/))

Injected scripts into matching pages can be specified by `js`.

I omitted it this time, but other settings such as extension icon settings are also available in `manifest.json`.

## show_alert.js
This contains a simple alert script like this.

```
window.alert("You visit 'google.com'.");
```

# How to load the extension
After you create `manifest.json` and `show_alert.js`, you can load it in your chrome browser.

- Visit `chrome://extensions/` and push `Load unpacked` button (if it does not show, you have to turn on `Developer mode`).


![load unpacked](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kgfd6f8ur33qjb2068ki.png)
 


- Select the directory contains two files.
![select directory](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pjut8glqls8ef9uv99y0.png)




- After that, alert Sample is displayed in Extensions.

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


- When you visit `"*://*.google.com/*"` an alert message is displayed.

![visit](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0345h8tefsyniymddojs.png)
 

# Summary
I introduced the way to create a simple chrome extension.
I'd like to explain a little more complicated processing in the future.
Thanks.


# Reference
Japanese: [Chrome拡張の作り方 (超概要)](https://qiita.com/RyBB/items/32b2a7b879f21b3edefc)
Brief History of Frontend Web Technologies
Tags: jokes, webdev, react
Published: 2022-02-10 06:51:29

In the beginning there was **HTML**. But it was dull and lifeless until the `<blink>` tag came along and made it come alive. Then came **JavaScript** to meet our increasingly sophisticated text blinking needs. A year later **CSS** arrived to separate the concerns of document structure and text blinking in an elegant way. It helped us survive the browser wars relatively unscathed.

In 2006, **Sass** (and a little later **Less** and **Stylus**) appeared to make text blinking less painful. But the real highlight of the year was the grandiose entrance of **jQuery**, which was, until quite recently, *the* way to make text blink through DOM manipulation. The defiant `$` function was the Spartacus which led JavaScript to a successful revolution that would end up enslaving their former master HTML.

Then began the dark age of **IE6 compatibility**. IE6 made consistent cross-browser text blinking unnecessarily complicated. All the other browsers had nicer blinking features, but people kept using the damn thing until big names abandoned it and took a firm stand ("we want blink!") to put the final nail in its coffin in 2010.

2010 was also the year **AngularJS** came along to make us question the ways of the one true JS library, the Holy jQuery. The mighty `$` was challenged by `ng-`, but stood its ground and still survives today.

Three years later, in 2013, came `<React />` along with its **JSX syntax**. By this time you needed JavaScript programs to compile your JavaScript programs into JavaScript programs... to make nicer and better performing blinking texts. Some thought of JSX as a counter-revolution by HTML loyalists, and some as the final blow to HTML's hegemony over JavaScript. Whichever is true, it did save the web: This was also the year that Firefox decided to kill the mighty `<blink`> tag! If it wasn't for React, the PascalCase offspring of the long forgotten originator of all things web would not exist: the shiny new `<Blink>` component!¹

> Did I forget what? Come on, need I mention the **F word**? To its credit, it was the best way to make *images* blink for quite a long while though!

¹ The implementation thereof is left as an exercise for the reader.
What are the Top Signs of an Outdated Website
Tags: web, development
Published: 2022-02-10 05:30:20

Today’s consumers are techier than ever before, and you should never risk your business with your outdated website. Now consumers are changing as they will not tolerate any information about the stone age as they always want to stay updated. If you cannot meet their needs, they won’t hesitate to shift their gear and move to your competitors. We hope that you don’t want them to shift, right?

If you are not sure if your website is outdated, here are some signs and symptoms that show your website development needs a refreshing look.

###Website Loading

“Don’t judge a book by its cover”, this might not be true in the case of the website. Liking or disliking your website at first look is a game of a few seconds only. Your brand should be able to engage visitors within a few seconds of landing on your website. Going by fact, an eCommerce website is making $100,000 per day, and a 1-second page delay costs potentially $2.5 million in lost sales. Unbelievable right, but true.

With all these statistics, you can understand how a second can make or break your business. Based on the type of your website, you can find an ideal loading time to see where you stand. There are various online tools available that can help to measure the speed of a website, and Google PageSpeed Insights is one such reliable tool.

Here comes a quick tip: font replacement techniques, image resolution, web optimization, outdated codes, hosting options, and CMS platforms can slow down a website.


###Not mobile-friendly website

We all know that the majority of people get glued to their smartphones, and if your website is not mobile-friendly, then you might lose a sizable chunk of stake. According to GSMA Intelligence, there are 5.15 billion unique mobile users in the world, and smartphone use is growing at an annual rate of 8 percent.

Make your website mobile-responsive, otherwise, you lose out as Google enabled mobile-first indexing by default for every website. You can contact our mobile app development team for a mobile-friendly website. Does your website have a responsive design?

###Missing Call to Actions on the Home page

Really? Who forgot CTA? With people having a short attention span, it is essential to put a CTA on your home page. You can use single or several CTAs on your main page to inspire visitors to take action.

###404 errors

If your users are getting 404 errors, that means they are landing on pages that do not exist. 404 errors can lead to an unpleasant experience and sometimes a loss of users forever. To solve this problem, you can see direct feedback through Google Search Console. You can double-check the 404 reports and redirect the URL to the most relevant and live URL of your website. Even you can create a custom 404 page for dead links to redirect users to other services or pages of the website.

Read Now: **[https://multipztechnology.medium.com/what-are-the-top-signs-of-an-outdated-website-beb85361672b](https://multipztechnology.medium.com/what-are-the-top-signs-of-an-outdated-website-beb85361672b)**
InShot Pro Apk MOD Unlocked No Water Mark Free 2022V1.780
Published: 2022-02-10 06:01:43

InShot- Powerful Music Video Editor and Photo Editor with pro features- trim & cut video/movie, add music, text, stickers and glitch effects, blur the background, and No Crop! HD status editor for Instagram!You can download Inshot Pro apk ios for here.
https://apkvest.com/inshot-pro-apk/
Day 11 of 100DaysOfCode
Tags: 100daysofcode, todayilearned
Published: 2022-02-10 05:53:17

## Day 11 of 100 Days Of Code
_I was too tired for writing a post yesterday._

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

### What I published / coded (/ updated) yesterday?
* Day 11 of 100DaysOfCode started with...
* Writing the [Hello World!] (https://t.co/UH8k8lKXjU) Wiki
* Improving my knowledge about github actions 
* the day ended with a post about day 11