teleren/devto huggingface dataset:
DB Administration tools on Linux
Tags: discuss, linux, database, sql
Published: 2020-12-03 16:29:08

I've been using HeidiSQL on Windows pretty extensively to work with mysql, and have gotten to love its simple-yet-powerful design. I've been looking left and right for a similar tool under Linux, but there seems to be none available. I'm not a fan of MySQL Workbench, and DBeaver was a little underwhelming for me as well. I've tried DataGrip from JetBrains, and while it's a lot nicer to use than some of the other alternatives, I still found myself missing HeidiSQL. I believe I'll just have to continue using it with wine, even though the graphics are a *little* wonky.

Are there any great alternatives that run smoothly on linux? Is there anything that can be recommended?
9 cool tips/tricks for Web Developers
Tags: javascript, webdev, codenewbie, beginners
Published: 2020-12-03 16:25:53

### 1. Search for files on GitHub repository
Press **`t`** in the repo to enter **`search mode`** for the project's file structure

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/4g5zqeskl0ybifiximc2.gif)

### 2. Highlight/Reply shortcut in Github
- When in an issue, Highlight the line which needs a reply.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/ico4fu84bcyqp5lcd1km.png)

- Then press `r` to reply to that from the comment

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/l04qk0j9zdxyjexumpzw.png)

### 3. Shortcut to use Lodash
- Go to the Lodash homepage
- Open devtools
- Lodash library is available for use from `_` variable

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/obags6jwggutm0pzpr6k.png)

### 4. Nullish coalescing operator
```jsx
const height = 0;
console.log(height || 100); // 100
console.log(height ?? 100); // 0
```

`Nullish coalescing operator` (??) returns the right-hand side value only if the left-hand side value is `undefined` or `null`

### 5. Convert a number from decimal to binary

`toString()` can be used to convert numbers to different bases. It takes a param, which specifies the base to convert to.
To convert a number to binary, the base would be `2`.

```jsx
const decimal = 5;
const binary = decimal.toString(2);
console.log(binary); // 101
```

### 6. Add Properties to functions

```js
function greetings() {
  console.log("hello world");
  greetings.counter++;
}
greetings.counter = 0;

greetings();
greetings();

console.log(`Called ${greetings.counter} times`); // Called 2 times
```

### 7. Change array size using the length property
```js
const arr = [1, 2, 3, 4, 5];
arr.length = 2;
console.log(arr); // [1, 2]
```

### 8. Prevent an object's properties value from updating
```js
const obj = {name: 'Codedrops'};
console.log(obj.name); // Codedrops

/* Set the 'writable' descriptor to false for the 'name' key  */
Object.defineProperty(obj, 'name', {
		writable: false
});

obj.name = 'ABC';
console.log(obj.name); // Codedrops
```

### 9. Maps can store any type of key
```js
const myMap = new Map([]);

const numberKey = 1;
const stringKey = "str";
const arrayKey = [1, 2, 3];
const objectKey = { name: "abc" };

myMap.set(numberKey, "Number Key");
myMap.set(stringKey, "String Key");
myMap.set(arrayKey, "Array Key");
myMap.set(objectKey, "Object Key");

myMap.forEach((value, key) => console.log(`${key} : ${value}`));

/*
Output:
1 : Number Key
str : String Key
1,2,3 : Array Key
[object Object] : Object Key
*/
```
---

**Thanks for reading 💙**  
Follow **@codedrops.tech** for daily posts.  
[Instagram](https://www.instagram.com/codedrops.tech/) ● [Twitter](https://twitter.com/codedrops_tech) ● [Facebook](https://www.facebook.com/codedrops.tech/)

Micro-Learning ● Web Development ● Javascript ● MERN stack ● Javascript  
**[codedrops.tech](https://www.codedrops.tech/)**
HTTP overview and its request methods
Tags: beginners, http, httprequests
Published: 2020-12-03 16:17:05

**What is HTTP?**
Hypertext Transfer Protocol is a set of rules which allows us to retrieve data from servers. It is the underlying format that is used to structure request and responses for effective communication between a client and a server. A complete document is constructed by making different calls to server. 

![alt text](https://media.prod.mdn.mozit.cloud/attachments/2016/08/09/13677/d031b77dee83f372ffa4e0389d68108b/Fetching_a_page.png)

So like in communication we have sender and receiver, same is the case here. The former being the client i.e. browser(most of the times) and latter being the server here.

Clients and servers communicate with each other through messages.The messages sent by the client are called *requests* and the messages sent by the server in reply are called *responses*.
Formally put through:
>HTTP is a client-server protocol: requests are sent by one entity (client) and response by the other entity (server).

#HTTP Request Methods#
There are many methods for the browser to make request to the server. It depends on the following operations. 
**CRUD: Create, Read, Update and Delete**.

##GET
GET is used to fetch data from a server. GET is one of the most popular HTTP request techniques. It does the operation of **Read** in the browser.

##HEAD
The HEAD method requests a reaction that is similar to that of GET request, but it doesn’t have a message-body in the response.

##POST
It is used to create a resource. It performs the operation of **Create** in the browser. It results in some changes in the server. A typical example for it would be uploading a photo on social media.

##PUT
It is used to update a resource. It performs the operation of **Update** in the browser.

The difference between POST and PUT is that PUT requests are *idempotent*. This means that if you call the same PUT requests multiple times, the results will always be the same. But the same is not true for POST. POST will result in changes in the server every time we do this.

##DELETE
It is used to delete a resource.It performs the operation of **Delete** in the browser. This method is also idempotent.

*Note:* There are some other methods as well but these are the commonly used ones.
Localazy is on ProductHunt. Can you help?
Tags: localazy, productivity, showdev
Published: 2020-12-03 15:44:46

Hello, everybody,

we've just launched [Localazy](https://www.producthunt.com/posts/localazy) on Product Hunt. Would be so kind and upvote it?

There's 75% discount for all hunters! ❤️

The link: https://www.producthunt.com/posts/localazy

Thanks in advance and thanks for this amazing community!
Kubernetes is NO LONGER Supporting Docker Runtime - What Does This Mean?
Tags: docker, kubernetes, code, cicd
Published: 2020-12-03 14:49:04

There's been A LOT of talk lately around #kubernetes dropping support for #docker, What does it mean? It's a lot less harsh than you may think.... 

Check out my latest video explaining EXACTLY what's happening.

https://www.youtube.com/watch?v=RvkdAJOwC-0
Play with polylines in Ruby, 300x faster
Tags: ruby, cpp, performance
Published: 2020-12-03 14:41:57

Hello community!

At Klaxit, we have had historical problems serializing and deserializing polylines at speed. As our improvements proposal to the main gem (namely "polylines") was rejected, we decided to built our own. We have been running it for years in production now and it is 300 times faster than the original one. Enjoy ;-)

https://github.com/klaxit/fast-polylines
DEV LUA
Published: 2020-12-03 14:39:15

Bonjour, je poste ce message car nous recherchons un développeur LuA sur five m pour notre serveur GTA RP pour corriger des bug et compléter certains scripts , ce travail est évidement rémunéré, toutes personnes intéressé contactez moi sur discord RTFuNo#8945
Cordialement
免費下載 fritzing 軟體
Tags: fritzing
Published: 2020-12-03 14:38:50

[fritzing](https://fritzing.org/) 是個很棒的軟體, 許多人都使用這個軟體繪製接線圖, 但在下載該軟體的時候,你會看到這個需要付錢的畫面：

![](https://i.imgur.com/BeQT3kC.png)

許多人都在問是不是一定要付錢才能下載？根據[這一篇問答](https://github.com/fritzing/fritzing-app/issues/3548#issuecomment-545421808), friting 的開發者提到 fritzing 的維護, 包含網站等等已經快要支撐不下去, 所以才會嘗試用付費方案, 但是如果你登入註冊, 就會看到下載網頁多了一個選項：

![](https://i.imgur.com/H87mzx4.png)

你可以勾選**I already paid**, 還是可以直接下載軟體, 提供給大家參考 \(8 歐元還是建議大家去抖內一下\)。

![](https://i.imgur.com/63BGoti.png)
My physical and mental fitness momentum heading into 2021
Tags: mentalhealth, watercooler, productivity
Published: 2020-12-03 14:32:57

I wrote a quick post on @leewynne's new Forem [Flowstate](https://www.flowstate.to) on how I'm doing with personal health and fitness, and I'll be keeping up with my progress there.

Here is the post: https://www.flowstate.to/ben/heading-into-2021-with-some-momentum-d6h

I can correlate my personal wellness and productivity fairly directly with my physical fitness, and yet I allow myself to let it slide.

When people ask me what my main hobbies outside of computers, I _want_ to talk about sports and fitness, which is my favorite type of hobby, but for most of the past decade it's always come a distant second to sitting in front of a computer.

So with that, I'm happy to say I have gained a lot of momentum on this front in the second half of the pandemic, after the first half was definitely _the worst_ stretch for me in this regard.

{% tweet 1314561564264009734 %}

I have the stuff, I have the desire and enthusiasm, and I think I'm excited to show off some results in 2021.

Follow me on [Flowstate](https://www.flowstate.to/ben) and let's get fit together.

(I'm [@ben](https://www.flowstate.to/ben) on Flowstate too 😅)
EB Daily - 03 Dec 2020
Tags: ebdaily, startupnews, latesttechnews, fundingnews
Published: 2020-12-03 17:38:04

---
title: EB Daily - 03 Dec 2020
published: true
date: 2020-12-03 14:35:20 UTC
tags: ebdaily,startupnews,latesttechnews,fundingnews
canonical_url: https://www.explorebit.io/article/EB%20Daily%20-%2003%20Dec%202020
---

EB Daily is a daily newsletter focused on the Technology and Startup ecosystem. The Newsletter is published daily at 8 AM PT and covers all important news related to technology and the startup ecosystem from across the globe. The newsletter is divided in four sections. First three sections provide funding news from AMER, EMEA and APAC regions. Whereas, the last sections incorporate global news on M&A, Acquisition, Exists, New fund launch etc.
Tag on Git
Tags: tag, git, version
Published: 2020-12-03 14:34:43

Tag is a nice way to keep system versions clear and arranged. 
I like to tag my commits after I did them so I do tag like that:

First I run:

`git log` to see the commit checksum that I'll tag. 

After I run:

`git tag -a v1.2 9fceb02` 

Where `9fceb02` is my commit checksum. 

So we have a new tag but it's only locally yet. Then I run:

`git push --tags`

Done! 

If you need to see which tags were created you can run:

`git tag`

UPDATE I:
So some day you want to see the source code to the tag v1.2 what you need to do is that:

`git checkout tags/v1.2` 

Now you're going to be able see the source code from tag v1.2.

UPDATE II:
You can see the log for a tag as well:

`git log v1.2`

Do you want to know more? Look at: https://git-scm.com/book/en/v2/Git-Basics-Tagging

UPDATE III:

I needed to remove a tag which I related with the wrong commit reference so I did that:

`git push origin :tag_name` 

and also: 

`git tag --delete tag_name` (it goes to delete locally)
Critique de livre : "Perl pour l'impatient"
Tags: perl, books, french
Published: 2020-12-03 14:14:38

![Perl pour l'impatient](https://dev-to-uploads.s3.amazonaws.com/i/ypnaaxlaaz2u8ilmav6j.jpg)

# Perl pour l'impatient
This is a french book, my review will be in French :smile:

## Introduction qui donne envie
![Jojo](https://dev-to-uploads.s3.amazonaws.com/i/3ljssfim72xafef3fb8n.jpg)

J'ai bien aime la facon d'introduire le langage Perl :
* Perl ce langage de programmation hors norme
* Roi de l’analyse des données
* "Tronçonneuse suisse"
* Spécialité : optimiser votre temps
* Humilité en toutes circonstances
* Redondance et contextualite
* Ressources déplacées du "hardware" au "brainware", il faut simplifier la vie du "brainware"
* Ce qui se conçoit aisément doit s’écrire simplement

## Ce n'est pas tout jeune
Plusieures références a des logiciels disparus depuis comme **IndigoStar** ou **Open Perl IDE** ou encore **PerlBuilder**...
Ou d'autres logiciels que je connais pas comme **Qmail** ou **FCheck** (c'est quoi ?).

J'aime bien ces vieilles références, je suis toujours curieux à ce sujet.

Et ce n'est pas étonnant pour un livre dont la dernière édition date de **2005**.

## Bon
Bonnes explications sur les scalaires. 
Les boucles sont bien expliquées, tout comme les tableaux et hashs egalement.

L'auteur amène gentiment vers les **idioms Perl** (`print if`, `unless`, or `die`)

Le chapitre regex est très bien : explication douce évolutive et pointue.

Le style est bien écrit.

### De bons conseils
![Conseil](https://dev-to-uploads.s3.amazonaws.com/i/8kbtudp5fivfvsy6uj1v.png)

* "N’abusez pas des conversions automatiques, elles obscurcissent le code" 
* Ne pas tester un float contre 0 mais inférieur à `1E-6` 
* Comparer des chaînes avec `le` ou `gt` -> utiliser plutôt `sort`
* Attention à ne pas écrire sur un répertoire
* `use diagnostics`

### Les annexes sont top
De bons conseils dans l'annexe pour debugger :smile:

L'annexe est tres bien ca parle meme des signaux etc...

## Bof
J'ai relevé un mauvais conseil "on peut utiliser une variable sans la déclarer avant"

## Bizarreries
* Plutôt marrant ces exemples en français avec les guillemets Francais...
* ... et le nom des variables en francais 
* Savez vous qu'on peut parler le *perlien* (la langue) ?
* Connaissez vous le programme qui se lit lui meme ? `open PROG, $0`

## Conclusion 

Tres bon petit livre, je recommande :smile:
Machine Learning: Visual Introduction
Tags: machinelearning, showdev, beginners, codenewbie
Published: 2020-12-03 14:26:30

While researching machine learning, I came across this cool article that has a visual representation for a beginner-level introduction to the concept. So, just wanted to share with the community here.<p>&#128512;</p> Do check out this link [here](http://www.r2d3.us/visual-intro-to-machine-learning-part-1/)

Just wanted to appreciate the efforts of the team behind http://www.r2d3.us/
led matrix nedir
Tags: ledmatrix, matrixfar, led, ledmatrixnedir
Published: 2020-12-03 14:23:10

led matrix teknolojisinin gelişimi nasıl oldu?
led matrix nedir
matrix led nedir
matrix far
led matrix far
led far
led nedir
led
all-led
  <a href="https://www.otoizmir.net/led-ve-led-matrix-nedir/">led matrix far</a>
Fix cURL error 60 in WampServer
Tags: php, laravel, curl
Published: 2020-12-03 14:04:41

---
title: Fix cURL error 60 in WampServer
published: true
description: Steps to add self-signed certificate correctly in WampServer
tags: php, laravel, curl
//cover_image: 
---

It is frustrating to see *cURL error 60: SSL certificate problem: self signed certificate in certificate chain* error while calling external APIs from your PHP project. Well, the fix is easy. But, sometimes, especially when multiple PHP versions are available in WampServer, extra care should be taken to install it correctly. Follow along:

1. [Download](https://curl.haxx.se/docs/caextract.html) the latest cacert.pem file.
2. Move the file to the desired location. I keep it inside the wamp64 folder. My path to the file is *D:/wamp64/cacert.pem*
3. Now we need to add this path in ```php.ini``` files located in different folders.
4. Left-click the wampserver icon in the system tray. Select PHP > php.ini. (This file is located inside the Apache folder.) And add the path to *curl.cainfo* setting as below.

```bash
; A default value for the CURLOPT_CAINFO option.
; This is required to be an absolute path.
curl.cainfo="D:/wamp64/cacert.pem"
```

**Don't forget** to uncomment the line by removing **;** at the beginning of the line.

5. Now go to D:/wamp64/bin/php folder. You can see all the available PHP versions. You need to change the same line in two php.ini files. One in the php5.6.40 folder and the other in your latest version / the version you are using.
6. Go to php5.6.40 folder and find and open ```php.ini``` file, change *curl.cainfo* setting as above.
7. Go to the latest php version, as of this writing, the latest version on my system is 7.4.6. Find and open ```php.ini``` file, change *curl.cainfo* setting as above.
8. Restart the wamp server and you are done.

---

Originally [published](https://insidert.com/snippets/fix-c-url-error-60-in-wamp-server/) on my blog.
Announcement: Hasura Cloud Available In 8 Regions
Tags: hasuracloud
Published: 2020-12-04 10:08:37

---
title: Announcement: Hasura Cloud Available In 8 Regions
published: true
date: 2020-12-03 14:04:26 UTC
tags: HasuraCloud
canonical_url: https://hasura.io/blog/announcement-hasura-cloud-available-in-3-more-regions/
---

![Announcement: Hasura Cloud Available In 8 Regions](https://hasura.io/blog/content/images/2020/12/hasura_cloud_three_new_regions.png)

Last month, we announced that you could deploy your Hasura Cloud projects to [5 different regions](https://hasura.io/blog/use-hasura-cloud-in-5-regions/).  Today we have added 3 new regions - Sydney, Montreal, and London.  Here's a list of the 8 regions we now support:

- Asia Pacific (Mumbai)
- Asia Pacific (Singapore)
- _Asia Pacific (Sydney) - **NEW** _ **💥** 
- _Canada East (Montreal)_ _- **NEW** _ **💥** 
- Europe (Frankfurt)
- _Europe (London) - **NEW** _ **💥** 
- US East (Ohio)
- US West (Northern California)

Region selection has the potential to improve the performance of your applications by reducing data latency between your web front-end, your Hasura Cloud GraphQL endpoint, and the databases and services you’re connecting.  Deploying your app closer to your user base will also reduce response time and create a better experience for your users.  Deploying your Hasura Cloud project in a specific region may help with requirements you have for data residency or data localization.

### Try It Out

Selecting a region is very easy.  Just go to [cloud.hasura.io](https://hasura.io/cloud/) - create a project and then you can select a region to deploy to.  Free projects will only be able to deploy to US-East, but if you upgrade to a commercial plan you can deploy to any region.

Migrating existing projects to different regions is just as easy - just go to the project settings!  In the future we’ll continue to add new regions.

![Announcement: Hasura Cloud Available In 8 Regions](https://lh6.googleusercontent.com/C3H2lJQGU36SH1tgK8hXSgLG4sK7jAhxn0AHhr34qy6mzFQ813JamoYZGkjr-6-ll19EkQQtdCSbj3-Cxq6JXaGc8GC2jxYHCAc-bosPYsnQB52C4DgfaRieWmFTKo8973nI8Jwr)<figcaption>Easily select a region in the Hasura Cloud dashboard</figcaption>

### Get Started

If you haven’t tried [Hasura Cloud](https://hasura.io/cloud/), I encourage you to give it a try and see how quickly you can create a GraphQL API from an existing database.  Check out our [Getting Started](https://hasura.io/docs/1.0/graphql/cloud/getting-started/index.html) guide, as well as our [online tutorials](https://hasura.io/learn/graphql/hasura/introduction/)!
What is technical debt?
Tags: software, cleancode, technicaldebt
Published: 2020-12-03 13:52:33

---
title: "What is technical debt?"
description: "What is technical debt? Anything that slows you down, unreadable code, lack of tests, automation, deployment, duplicate code, tangled software architecture, complex dependencies, long lived branches, out of date technical documentation"
tags:
  - software
  - cleancode
  - technicaldebt
cover_image: https://images.unsplash.com/photo-1528659882437-b89a74bc157f?ixlib=rb-1.2.1&ixid=MXwxMjA3fDB8MHxzZWFyY2h8Mnx8ZGVidHxlbnwwfHwwfA%3D%3D&auto=format&fit=crop&w=600&q=60
published: true
canonical_url: https://cri.dev/posts/2020-11-25-What-is-technical-debt/
---

**Originally posted on [cri.dev](https://cri.dev/posts/2020-11-25-What-is-technical-debt/)**

In a sentence:

Anything about your code and development environment that slows you down.

Other points about technical debt

- unclear, unreadable code
- lack of
  - test automation
  - build automation
  - deployment automation
  - and anything else that could be automated but you do manually today
- duplicate code
- tangled architecture and unnecessarily complex dependencies
- slow, ineffective tools
- uncommitted code and long-lived branches (hides problems that will slow you down later)
- important technical documentation that is missing or out-of-date
- unnecessary technical documentation that is being maintained and kept up-to-date
- lack of test environments
- long build-test cycle and lack of continuous integration
Right way of storing and fetching files with s3 privately?
Tags: s3, aws, node, backend
Published: 2020-12-03 13:50:16

Hello,

I am developing a rest api using nodejs,express and mongodb which is consumed by frontend (a spa using angular), and an android app. So, in the app(web or android) user has to upload multiple images/files and it needs to be stored on s3(privately).
My current flow of image/file upload is:
- Image is uploaded through multipart form data from frontend.
- Backend server receives the file buffer and uploads it to s3 bucket using aws-sdk.
- the key return by aws-sdk to the file is stored in the db with concerned object.

Now, the problem is, i don't want to make the bucket publicly accessible. The images needs to be be shown on web as well as app to the owner of the file or admin. 

If i choose to create pre-signed url for every object after fetching the records from db, i am not sure is it the right way of doing it? what if there are 100s or 1000s of images are uploaded, then i have to iterate over and make pre-signed url for each file?
How to fill your contribution on GitHub  
Tags: github, commit, vscode, push
Published: 2020-12-03 13:48:42

Have you ever found yourself sick or just way too busy to commit any changes to your GitHub repo and felt upset for that white box that isn't green?  I found a way to commit to any date.

At first, we will have to submit any changes to our code. next, we will need to go to our pc control panel and click the time and date settings. afterward, select the desired date and click ok. 

Now, let's get back to our IDE and push the changes. next, we will have to refresh our browser (notice that you might get an error related to an un-updated date) and you'll see that the selected date is now a green box.
Getting Started with React Native
Tags: javascript, webdev, react, reactnative
Published: 2020-12-03 13:39:59

## React Native and react ecosystem

To be really clear react is a Javascript library for building User interfaces, ReactDOM.render(...) adds web support otherwise React itself is platform-independent.  
So what's react-native? It is a collection of special react components that are compiled to native app widgets. It acts as a bridge between Javascript and native platform code(java...).

Hence ``React + React Native = Real Native Mobile Apps (Android+IOS)``

For Example 
```
function comp() {
  return (
    <View>
      <Text> Hello !!! </Text>
    </View>
  );
}
```
**Note: here View and Text are special components provided by react native and hence compiled into native widgets but the syntax is still react.**

**How React Native works :-**
![react-native-working](https://dev-to-uploads.s3.amazonaws.com/i/2x0nfdbpooeifx9flx38.PNG)

Now since we have a introduction about react native now we can start working on react native. There are two ways to start working with react native 

* Expo Client CLI = For beginners
* React Native CLI (barebone) = For advance people

Expo is an extra wrapper on React native CLI which makes react native development workflow easy and effective. To get started visit https://docs.expo.io/ and follow the expo documentation.
There is one more special feature of the expo, even if your system doesn't have good ram then you can go to https://snack.expo.io/ and start creating react native apps on your browser itself and you even don't need a mobile phone. With that said go ahead and setup expo and react native so that we can start coding apps. 

*Note: this is the first blog from my upcoming blog series on React Native and aiming to strengthen React Native community. So if you already know react native contribute with me or if you are new show some love.*