teleren/devto huggingface dataset:
Why doesn't the python package manager (PIP) have package signing feature?
Tags: python, productivity, security, discuss
Published: 2019-06-08 09:54:29

I'm using the [Python Package Manager (PyPi)](https://pypi.org/) since a very long time and I couldn't help but notice that package signing feature isn't there at all ([According to this reddit thread](https://www.reddit.com/r/Python/comments/8r9qby/pypi_has_removed_pgp_signatures_of_package/), it used to be there many years ago but they removed it sometime back for some unknown reasons). 

That means, if I install some package by running `pip install xyz`, there is no way for me to ensure whether its the same one uploaded by the author of that package. Which means that if the PyPI server got compromised any time in the future, millions of users could be affected because of this, not just one or two.

I've [authored and published several packages on PyPi myself](https://pypi.org/user/prahladyeri/) and hence, this makes me concerned. There is no way to upload the GPG signature file of my package anywhere, nor does `pip` check the GPG signatures. So the user who installs my package has no way of knowing that it was me who uploaded it there.

This is a serious security concern and I hope the Python team comes up with some kind of solution soon.
Live-streaming working on a Rails app.
Tags: rails, ruby, react, video
Published: 2019-06-08 09:32:40

---
title: Live-streaming working on a Rails app.
published: true
description: I did a quick trial of live-streaming some work and if people find it useful, I'll do more! 
tags: rails, ruby, react, video
---

**Hi! 👋 I originally posted this on [Reddit](https://www.reddit.com/r/rails/comments/bxgcft/livestreaming_working_on_a_rails_app/) and it seemed to get a decent response so I've re-posted it here in case other people want to leave feedback. You can see examples of feedback so far in the comments of [this post](https://www.reddit.com/r/rails/comments/bxgcft/livestreaming_working_on_a_rails_app/) and [this one](https://www.reddit.com/r/rubyonrails/comments/bxt8oh/livestreaming_working_on_a_rails_app/).**

I find that I don't get the time to write-up the things I'm working on in Rails, but still want to talk about them. I'd seen some people recently live-streaming their workflow and found it interesting, so I thought I'd try out a dummy run, I enjoyed doing it and showed it to a couple of people who suggested I post it.


I didn't have time to do a tutorial or anything like that, I tried to provide some context as best I could, but pretty much something wasn't working as expected while I was building a feature, so I just recorded me tracking it down and tried to narrate as best I could.

[https://youtu.be/MpvHZ-f4s4k](https://youtu.be/MpvHZ-f4s4k)


Is this useful or interesting to anyone? If so, I'd love to know what specifically is useful/interesting about this or watching coding in general so I know what I could focus on to make sure I was providing some value. If not, what kind of Rails content do you prefer? Thanks!


Context: I work on [an app](https://www.echoleft.com) that helps organisations (especially good causes), run events, fundraise and run campaigns.
Driven development 
Tags: designpatterns, testing
Published: 2019-06-08 09:03:42

if you have been in the scenario of translating business needs into an actual feature and wanted to go the right way of implementing this, I think this blog is for you.
in this blog, I talk about TDD / BDD / DDD in-details.
Read More: https://aa-ahmed-aa.github.io/Driven-Development/
RE:Creation - Intermediate - Google.com
Tags: html, css, recreation, frontend
Published: 2019-06-08 09:00:39

## Recap from Basic

In the Basic level of recreating Google.com, we have approached it in a 3-step manner:

1. Convert content into Plain Text
  * We limited the content inventory to its 1st level grouping only—not digging deeper for subgroups
  * We did not bother with interaction to reveal other content and UIs
2. Markup the Plain Text in HTML
  * We used simple HTML elements like &lt;a&gt;, &lt;img&gt;, &lt;button&gt;, &lt;input&gt;
  * We used SVG via data URI (instead of an absolute URL)—we can actually use any image type like PNG or JPG—we just have to encode it
3. Style the HTML elements in CSS
  * We limited the use of CSS properties within the following: padding, margin, width, height, background-color, color
  * Font properties were left to the default browser styles
  * Styling which involves interaction such as hover were not yet tackled

The result is a rather "unfinished-looking" web page. [See for yourself](https://codepen.io/briandys/pen/eaaKyq):

![](https://thepracticaldev.s3.amazonaws.com/i/w5y6uurobkf35v22pwoo.png)

Still, not bad for someone who is just beginning to gain knowledge in HTML and CSS—that's why we're pushing this to Intermediate level!

---

## Ready? Let's Begin!

Recreating Google.com basically has 3 steps:
1. Convert content into Plain Text
2. Markup the Plain Text in HTML
3. Style the HTML elements in CSS

This is the mockup that we are recreating:

![](https://thepracticaldev.s3.amazonaws.com/i/yfn1orsd33xw3yppxhnf.png)

Each step has 3 rounds, so there's a total of 9 examples I made in CodePen:

## Step 1: Plain Text

### Step 1, Round 1: Content Inventory
{% codepen https://codepen.io/briandys/pen/JqQpMo default-tab=html,result %}

### Step 1, Round 2: Grouping and Labelling
{% codepen https://codepen.io/briandys/pen/jojxyM default-tab=html,result %}

### Step 1, Round 3: Structure
{% codepen https://codepen.io/briandys/pen/rgEKgB default-tab=html,result %}

## Step 2: HTML

### Step 2, Round 1: Structure Markup
{% codepen https://codepen.io/briandys/pen/vwqzro default-tab=html,result %}

### Step 2, Round 2: Group Markup
{% codepen https://codepen.io/briandys/pen/ZNdqER default-tab=html,result %}

### Step 2, Round 3: Individual Markup
{% codepen https://codepen.io/briandys/pen/XwLxOr default-tab=html,result %}

## Step 3: CSS

### Step 3, Round 1: Individual Style
{% codepen https://codepen.io/briandys/pen/ZNdddp default-tab=css,result %}

### Step 3, Round 2: Group Style
{% codepen https://codepen.io/briandys/pen/ZNgBYo default-tab=css,result %}

### Step 3, Round 3: Structure Style
{% codepen https://codepen.io/briandys/pen/VOopWV default-tab=css,result %}

---

Here's the screenshot of the final state of our activity:

![](https://thepracticaldev.s3.amazonaws.com/i/vgmwy0qaaycv0z0cjn6u.png)

Again, there are still lots of room for improvement and we will tackle those in Advanced level.

---

## What's Next?

We'd probably go straight to Advanced level in the next post.

Thanks for reading!

~ [Brian Dys](http://briandys.com)
How to grow a small business without trying
Tags: business, analytics, automation, marketing
Published: 2019-06-08 07:35:12

---
title: How to grow a small business without trying
published: true
description: A few small tips to not overthink your business approach
tags: business, analytics, automation, marketing
---

I'm a fan of this dude who calls himself "The Tech Lead". He's been a guiding force to growing myself as I engage with the coding community. Late at night on a Friday, I find myself watching an old video, seeking inspiration to grow my own business:

[Secrets to grow a small business without spending money](https://www.youtube.com/watch?v=TnUO6tdmscI)

1. If you try to speak to everybody, you speak to nobody
2. Reach out to social influencers to advertise your product
3. Be genuine
	- Write with a conversational, friendly tone without being too formal
4. Optimize your conversion funnel
	- Optimize landing page, minimize clicks to purchase

I can really only talk about what I can talk about. Sure, there is a ton of stuff that I want to learn, but I can only speak with confidence about the topics that I've solidified in my knowledge banks. Isn't that true for everyone?

I do need to make a better effort of making friends with big names and just connecting with people. I like Twitter way more than Facebook for this end.

Truthfully, sometimes it seems that I am forcing myself out there, but it is kind of important to demonstrate what you know if you hope to receive any sort of recognition for your talents. Not everyone was meant to do the same thing, especially in the IT world. When I am writing like this, I feel engaged with my purpose, and that is a powerful feeling to move forward with.

I have a lot of optimization to do myself...making sure my links work and are spammed everywhere...generating new content to spam...making sure what content I do spam is high-quality spam (by my standards)...I want my spam to be useful-spam...

Now, to go forth and spam this article.

-----

# [If you need a Computer Science tutor, code reviewer, or just someone to pair program with, click here](https://codementor.io/mikebell66)
Best Practices for Receiving Files via REST API 
Tags: rest, drf, django, filetransfer
Published: 2019-06-08 07:29:00

---
title: Best Practices for Receiving Files via REST API 
published: true
description: Looking for best practices to receive, validate and respond to requests sending files via REST API 
tags: REST, DRF, Django, FileTransfer
---

I am looking for best practices for receiving zip or text files via DRF based REST based API:

- small files < 1MB to be stored on the file system (with authentication of course) 

- traffic will start at 25 to 100 clients a day growing later

- What responses do I send back?

- Any Performance issues that I will have to think about?

- How do I verify the multipart files are actually received without corruption?
R Language : How to Export Data to CSV in R
Tags: rdatascience, rlanguage, datascience
Published: 2019-06-08 06:00:20

Let's learn How to Export Data to R. When we acquire the data, we do it with intention of processing it and then exporting it for the user. Here user can either use it to visualize to make decision. And in some other cases the user can use that output to read through other software. 

So in such case we are going to take a look at one use case where we basically export the dataframe to CSV file. 

You can take a look at the Video instruction of the tutorial - [How to Export Data to CSV File in R](https://www.youtube.com/watch?v=H-sx_axnltA). 

{% youtube H-sx_axnltA  %}

Let's create a data frame before we can export the data. 

       df <- data.frame("No" = 1:2, "Age" = c(21,31), "Name" = c("Abbey","Bob"))

Here we have df as our dataframe variable name. And we have this data of two people where we have number, age and name of those people. You can add more if you wish but I am limiting this to two for simplicity. You can also make use of the external data source. 

Now let's export this data to CSV. 

    write.csv(df,'D\csvData.csv', row.names = FALSE)

Here we are making use of the ***write.csv()*** method. And this is built into the R language. So we are not using any external library to accomplish this. We are also passing the path where the file is stored. 

So say you have D: drive where you want this file named ***csvdata.csv*** to be stored there. And finally **row.names = FALSE** is set that way because we are already passing the row specific data through dataframe so no need to specify them. 

If you check the path, you'd find the file named *csvdata.csv*. 

That's it. You have now managed to export the data from the dataframe to the CSV file using R language.
ファイル名の文字化け: Windows で圧縮したファイルを Linux で解凍する時に発生する文字化けを解決する方法
Tags: linux, windows, garbled, japanese
Published: 2019-06-08 05:09:21

---
title: ファイル名の文字化け: Windows で圧縮したファイルを Linux で解凍する時に発生する文字化けを解決する方法
published: true
description: Windows で圧縮したファイルを Linux で解凍すると、日本語を含むファイル名が文字化けすることが起こります。この事象は、ファイル圧縮時におけるファイル名のエンコード方法の違いに起因します。Linux で解凍する際に文字化けをコマンドラインで解決するための方法を記述します。
tags: linux, windows, garbled, japanese
cover_image: https://thepracticaldev.s3.amazonaws.com/i/7up69j1x19nnxe69lcep.jpg
series: Text Garbling Between Linux And Windows
---

## ファイル名の文字化けについて

Windows で圧縮したファイルを Linux で解凍すると、日本語を含むファイル名が文字化けすることが起こります。
逆の Linux -> Windows の場合でも同様です。

この事象は、ファイル圧縮時におけるファイル名のエンコード方法の違いに起因します:

- Linux: UTF-8
- Windows: CP932 (Shift JIS)

Linux で解凍する際に文字化けをコマンドラインで解決するための方法を記述します。
使用した環境は OS が [Arch Linux](https://www.archlinux.org/) ベースの [Manjaro](https://manjaro.org/) で デスクトップが [Cinnamon](https://github.com/linuxmint/Cinnamon) です。

## How To: Linux コマンドで解決する

### \#1. [`unar`](https://www.archlinux.org/packages/community/x86_64/unarchiver/)

おすすめの方法です。

圧縮ファイルの解凍とファイル名の解決を 1 ラインで実現する方法です:

```console
$ unar 圧縮ファイル.zip
圧縮ファイル.zip: Zip
  圧縮ファイル/  (dir)... OK.
  圧縮ファイル/ファイル  (xxxxx B)... OK.
  ...
Successfully extracted to "./圧縮ファイル".
```

コマンド名の由来は "Unar"chiver です。
便利なのですが、使う機会が少ないため、私はコマンド名自体を忘れがちです...。苦笑

それを差し引いても、エンコードの指定が操作者側で不要であるため、非常に便利です。
パスワードが掛けられている場合、適宜、コンソールで聞いて来てくれます。
私は主にこちらの方法を使っています。

### \#2. [`unzip`](https://linux.die.net/man/1/unzip) + [`convmv`](https://linux.die.net/man/1/convmv)

まず `unzip` でファイルを解凍して:

```console
$ unzip 圧縮ファイル.zip
Archive:  圧縮ファイル.zip
   creating: ���.../
  inflating: ���.../������...... 
  ...
```

その後に `convmv` で、ファイルを一つずつ処理して、ファイル名を変換して行く方法です:

```console
$ convmv --notest -f shift_jis -t utf-8 ���.../������......
```

ここで `--notest` オプションを除いて実行した場合は、ファイル名がどのように変換されるかを標準出力に表示してくれますが、実際のファイル名の変換は行われ無くなります。

`convmv` 自体は Linux -> Windows へのファイル送付時にも活躍してくれます。

エンコーディングの指定誤りによるのか、環境内の言語情報によるものなのか、はたまたもともとのファイル情報に起因するのか、今回検証したファイルではうまく行きませんでした。

### \#3. [`7za`](https://linux.die.net/man/1/7za)

[7-Zip](https://www.7-zip.org/) を利用した解凍方法です。

ファイル名のエンコーディングを `-scs` オプションで指定することが必要です。
それ以外はシンプルに実行できます。

```console
$ # Windows
$ 7za x -scsWIN 圧縮ファイル.zip
$ # DOS
$ 7za x -scsDOS 圧縮ファイル.zip
$ # CP932
$ 7za x -scs932 圧縮ファイル.zip
```

ただしこちらも、\#2. と同様、私の環境下では、うまく行きませんでした。


### \#参考情報. 複数ファイルの一括処理

\#2 のように、複数ファイルに対してコマンドをそれぞれ実行する必要がある場合、シェルの反復処理を使用することで、効率化できます:

```console
$ # fish シェルの場合:
$ for x in ���.../*; convmv --notest -f utf-8 -t shift_jis $x; end
```
In 2019, which is the best stack to start a web development project?
Tags: webdev, python, php, productivity
Published: 2019-06-08 04:51:08

I think these are the major ones right now (in the open source or non-enterprise world):

### Back-end Stack

1. **PHP**
  - Symfony
  - Laravel
  - CodeIgniter
  - CakePHP
2. **Python**
  - Django
  - Flask
  - Pylon
3. **Node**
  - Express
  - Hapi

---

### Front-end stack

1. **SPA**
  - react
  - angular (1/2)
  - vue.js
  - backbone.js
2. **Non-SPA**
  - jquery
  - d3.js
3. **User Interface**
  - Bootstrap
  - TailwindCSS
  - material-ui 
  - angular-material
  - primeng

---

Which among these (back-end + front-end) do you think has the best chance of future-proofing?

I haven't included Java and ASP.NET because they're only used by large enterprises and their market share is minimal in web development.

Then there are some niche back-end stacks too like golang, ruby and erlang but either their share is minuscule or on the decline.
best Indian Schools in Dubai
Tags: cbseschool
Published: 2019-06-08 03:51:20

Bright Riders School Dubai is located in Dubai Investment Park 1. We started commencement of operations from 2019 April. We are all set to be the <a href="https://brightridersdubai.com/">best Indian Schools in Dubai</a>. We believe every student is unique and help them identify their passion and develop a lifelong love for learning.
Our professional and dedicated teachers work closely with each student and help them identify their passion and skills. We tend to operate in an effective, efficient, and consistent manner.
5 Articles that would boost your PHP knowledge | PHP Developers
Tags: php
Published: 2019-06-08 03:37:19

---
title: 5 Articles that would boost your PHP knowledge | PHP Developers
published: true
description: 5 Articles that would boost your PHP knowledge
tags: PHP
cover_image: https://thepracticaldev.s3.amazonaws.com/i/6i28dk95r5h0up3gyzph.png
---

<b>1) Best PHP Frameworks (2019)</b>

Link To The Article: <a href="https://fullstackgeek.blogspot.com/2019/05/best-php-frameworks.html">Best PHP Frameworks (2019)</a>


<b>2) What should I learn after PHP | Roadmap 2019</b>

Link To The Article: <a href="https://fullstackgeek.blogspot.com/2019/05/what-should-i-learn-after-php.html">What should I learn after PHP | Roadmap 2019</a>


<b>3) Best PHP Books for Beginners [Updated] [2019]</b>

Link To The Article: <a href="https://fullstackgeek.blogspot.com/2019/06/best-php-books-for-beginners.html">Best PHP Books for Beginners [Updated] [2019]</a>


<b>4) How to modify “remember me” expired time in Laravel?</b>

Link To The Article: <a href="https://fullstackgeek.blogspot.com/2019/02/modify-remember-me-expired-time-laravel.html">How to modify “remember me” expired time in Laravel?</a>


<b>5) Implementing OTP in PHP using Twilio</b>

Link To The Article: <a href="https://fullstackgeek.blogspot.com/2019/03/implement-otp-in-php-with-example.html">Implementing OTP in PHP using Twilio</a>


Happy Learning,
Full Stack Geek
DevRelCon SF 2019 in 10 pictures
Tags: 10pictures, devrel, conference
Published: 2019-06-10 22:07:39

---
title: DevRelCon SF 2019 in 10 pictures
published: true
tags: 10pictures,devrel, conference
canonical_url: https://maxkatz.org/2019/06/07/devrelcon-sf-2019-in-10-pictures/
---

![devrelcon19-steve](https://katzmax.files.wordpress.com/2019/06/devrelcon19-steve.jpg?w=1024&h=768)<figcaption id="caption-attachment-10474">Steve Poustry (CrunchyData) is showing how to be better at Developer Relations</figcaption>

![devrelcon19-kelsey](https://katzmax.files.wordpress.com/2019/06/devrelcon19-kelsey.jpg?w=1024&h=768)<figcaption id="caption-attachment-10472">Kelsey Hightower (Google) sharing his Developer Relations experiences</figcaption>

![devrelcon19-katie](https://katzmax.files.wordpress.com/2019/06/devrelcon19-katie.jpg?w=1024&h=768)<figcaption id="caption-attachment-10471">Katie Penn (Twitch) is sharing the new developer marketing approach</figcaption>

![devrelcon19-target](https://katzmax.files.wordpress.com/2019/06/devrelcon19-target.jpg?w=1024&h=768)<figcaption id="caption-attachment-10475">Ana Bahr (Target) shared one of the most recognizable quotes from The Business Value of Developer Relations book by Mary Thengvall</figcaption>

![devrelcon19-34](https://katzmax.files.wordpress.com/2019/06/devrelcon19-34.jpg?w=1024&h=768)<figcaption id="caption-attachment-10466">Influence developers have today and it’s only increasing by Luke Kilpatrick (Nutanix)</figcaption>

![devrelcon19-adam](https://katzmax.files.wordpress.com/2019/06/devrelcon19-adam.jpg?w=1024&h=768)<figcaption id="caption-attachment-10468">Adam DuVander (EveryDeveloper) is showing one of my most favorite Developer Relations concepts</figcaption>

![devrelcon19-boothcrawl](https://katzmax.files.wordpress.com/2019/06/devrelcon19-boothcrawl.jpg?w=1024&h=768)<figcaption id="caption-attachment-10470">How to share knowledge at a conference booth. A role-playing talk by Tamao Nakahara (Weaveworks), Baruch Sadogursky (JFrog)</figcaption>

![devrelcon19-3303](https://katzmax.files.wordpress.com/2019/06/devrelcon19-3303.jpg?w=1024&h=768)<figcaption id="caption-attachment-10467">Avital Tzubeli (Kaltura) is showing a great approach to getting started documentation</figcaption>

![devrelcon19-phil](https://katzmax.files.wordpress.com/2019/06/devrelcon19-phil.jpg?w=1024&h=768)<figcaption id="caption-attachment-10473">Phil Leggetter (Nexmo) is sharing Developer Relations goals and responsibilities at different stage companies</figcaption>

![devrelcon19-ben](https://katzmax.files.wordpress.com/2019/06/devrelcon19-ben.jpg?w=1024&h=768)<figcaption id="caption-attachment-10469">Ben Greenberg (Nexmo) teaching about Servant Leadership and Adaptive Problem Solving</figcaption>
Which terminal do you use?
Tags: discuss
Published: 2019-06-08 01:53:08

Ok so I'm used to use the windows command prompt to do almost anything in my laptop, and git Bash for git related stuff, after seeing hyper and zsh on some posts and videos, it sparked my curiosity, maybe I need to level up my terminal game.

So, I ask you people of Dev.to, which one is your favorite terminal and why, how do you configure yours to be your master shell? 👀
Do you test your software?
Tags: testing, security, performance
Published: 2019-06-08 00:36:25

## There is a doubt that never leaves my mind.

1) Do the software development organizations perform verification practices (testing and reviews) or such activities are important only in the academic world?

2) In the organization where you work in, are the software evaluated by software testing and/or reviews?

2.1) Do you perform only functional testing or non-funcitonal testing (usability, security, performance, etc) too?

Thanks!!
The Silly Joys of Coding
Tags: meta, ruby, rails, opensource
Published: 2019-06-07 23:35:17

This tweet from @mary_grace made me smile

{% tweet 1137116133042151425 %}

Mary is a real devrel whiz and was one of the first people to see some of the DEV magic before more folks in the industry did.

Because of that, she was the first to request a lot of features related to org accounts on DEV. And in order to appease Mary's needs we basically just coded stuff for her and hid it behind conditionals. Today @peter met up with her for lunch and told her the story of how we shipped this just for her.

I remember shipping this feature on the same day she asked about it, so I tossed in the "Hi Mary 👋" as a hard-coded flourish.

We've since evolved org features a lot. Our most active organization is [Azure](/azure) and we're having new folks come on all the time, like [Angular](/angular) the other day. We've always had the idea that organizations (essentially engineering blogs hosted right within the community) are a natural part of the ecosystem, but it takes folks like Mary to help pull it off.

We only recently removed Mary's name from the codebase alongside this shipment:

{% link https://dev.to/devteam/changelog-join-multiple-organizations-2ma8 %}

Letting Mary know that her name was hardcoded all along and that that historical factoid will live on in our open source git history for all time is just kind of fun.

Happy coding 😄