teleren/devto huggingface dataset:
Shell Scripting – Input, Output, And Redirection
Tags: linux, bash, beginners
Published: 2018-01-17 19:01:58

---
title: Shell Scripting – Input, Output, And Redirection
published: true
description: 
tags: #linux #bash #beginners
---

In the previous post, we talked about parameters and options in detail, today we will talk about something very important in shell scripting which are Input, Output, and Redirection.

1 Standard File Descriptors
2 STDIN
3 STDOUT
4 STDERR
5 Redirecting Errors
6 Redirecting Errors and Normal Output
7 Output Redirection
7.1 Temporary Redirections
7.2 Permanent Redirections
8 Redirecting Input
9 Creating Custom Redirection
10 Creating Input File Descriptors
11 Close File Descriptors
12 lsof Command
13 Suppressing Command Output

https://likegeeks.com/shell-scripting-awesome-guide-part4/

Thanks in advance.
Define And Use Tensors Using Simple TensorFlow Examples
Tags: python, programming, tutorial
Published: 2018-01-17 18:59:48

---
title: Define And Use Tensors Using Simple TensorFlow Examples
published: true
description: 
tags: #python #programming #tutorial
---

In this post, we are going to see some TensorFlow examples and see how it’s easy to define tensors, perform math operations using tensors, and other machine learning examples.

1 What is TensorFlow?
2 What is a Tensor?
3 Define one-dimensional Tensor
4 Define Two-dimensional Tensor
5 Performing Math on Tensors
6 Three-dimensional Tensor
7 Crop Or Slice Image Using TensorFlow
8 Transpose Images using TensorFlow

https://likegeeks.com/tensorflow-examples/

Hope you like it.
Thanks.
Building a parallel scraper
Tags: python, scraping
Published: 2018-01-17 16:12:31

---
title: Building a parallel scraper
published: true
description: I have built a scraper with python to get Amazon indexing of products.
tags: python, scraping.
---

#The Why

Simon Sinek always says that people first care about the why and then about the how. So here it is. A few months ago, some friends that sell products on Amazon had a business idea. They said that among Amazon sellers there is the problem that the Amazon algorithm (known as [A9](https://www.a9.com/)) can change from one day to another without previous notification and that can lower the sales significantly because the keywords configured can stop being indexed. So they have to be aware when this happens. To solve this problem the current market uses some indexing services that tells you the indexing percentage of a product, so my friends had the idea that this still was tedious and they wanted to build an automated service that will check for this everyday and only notify when the indexing percentage reaches certain configured level. So how we will do this? Scraping is part of the solution.

#The How

First we have to consider that having a business model based on scraping is very dangerous so we don't want to spend a lot of time developing this *side project* and we don't want to rely 100% on scraping. I chose python because it is great for scraping, so I for the web app I used Django. Now for the scraping I used beautiful soup and for the parallel processing I used [Celery](http://celery.readthedocs.org/), with RabbitMQ as the message broker and Redis to store temporary the results. So what Amazon does to prevent scraping? First, they block the IPs that make more than 1 request per second, so I had to use Storm Proxies to change the IP for every single request. That should be enough right? Well it isn't enough, Amazon recognises when a request doesn't have a cookie  so when multiple requests are made, they show a captcha. So is it possible to generate a cookie? Well, Amazon signs their cookies so it is quite impossible to create one or at least by me. If a captcha is shown we use an Amazon API to get the data we need, so we don't rely one hundred percent on scraping. Scraping Amazon has been quite a challenge, the service to change IP for every single request adds a delay of almost two seconds, so it is fully necessary to make it parallel because if we don't it would be two seconds for every keyword, instead it is two seconds for maximum 250 keywords or at least that's how it should theoretically. Sometimes one keyword lasts more than a minute and that's too much time for a user, so it is necessary to add timeouts and rate limit to not overload the server. 

Currently we have 243,431 keywords indexed and adding around 14k per day and remember, it is one request per keyword.

If you want to check the service here it is: [Check My Keywords](https://checkmykeywords.com)
Do whiteboard interviews still exist? 🤔
Tags: discuss, interview, career
Published: 2018-01-17 14:26:01

---
title: Do whiteboard interviews still exist? 🤔
published: true
description: I got my current & first job through friendship as a frontend developer. I'm curious whether whiteboard interviews are still a common thing, or not.
tags: discuss, interview, career
cover_image: https://thepracticaldev.s3.amazonaws.com/i/7zkgswjscopfkug0z9pz.png
---

Hey dev.to community! 👋

I’m curious about a question.❓

As I got my current / first frontend position through friendship and didn’t have to do any interviews, I was wondering about:

- **Do whiteboard interviews still exist?**
- **Is it still a common procedure (regardless of company size)?**

What was your interview process like (if you had one)?

I’m thrilled to hear about your experience! 🤓

Ps: The Internet is so populated with that picture. 😄
    Don't you agree with that?
I start procedures to be a freelance (web dev) ! Let's talk about your best tips :)
Tags: discuss
Published: 2018-01-17 09:50:04

---
title: I start procedures to be a freelance (web dev) ! Let's talk about your best tips :)
published: true
tags: discuss
---

Hi ! I'm 20 years old, in intership contrat and I will make freelance in my extra hours. I've two years of experience into symfony, api and web world in general.
I've already found many website to simplify my status of freelancer.
Now I need some help for money, bank account, work-life balance, organize my work..

Thanks !
Convert any website into native iOS & Android apps
Tags: showdev, android, ios, apps
Published: 2018-01-17 09:40:33

---
title: Convert any website into native iOS & Android apps
published: true
description: Convert any website into native iOS & Android apps
tags: showdev, Android, iOS, apps
---

We’ve launched Zeroqode Native Apps on Product Hunt – a tool that converts any website into native iOS & Android apps.
We’re open to hear your feedback. [So, join the discussion.](https://www.producthunt.com/posts/zeroqode-native-apps) 😊
How to Install and Enable Imagick for PHP 7 on Ubuntu 16.04
Tags: php, ubuntu, imagick, install
Published: 2019-06-14 16:14:50

---
title: "How to Install and Enable Imagick for PHP 7 on Ubuntu 16.04"
published: true
tags: php,ubuntu,imagick,install
canonical_url: https://mariordev.com/articles/imagick
---

Imagick is a PHP extension that allows you to manipulate images. Some libraries or packages require that Imagick be installed on your server. However, because Imagick is optional, it’s not installed with PHP by default. Here’s how to install and enable Imagick on your Ubuntu server.

## Installation

First thing, download and install Imagick. In Terminal, run the following commands. This will install Imagick for PHP 7:

```
$ sudo apt-get update
$ sudo apt-get install php-imagick
```

Verify that Imagick is now installed. This command should output the word `imagick` if it was installed successfully:

```
$ php -m | grep imagick
```

## imagick.so

Find out the directory where your PHP extensions are installed. This command should output the path to that directory (example: `/usr/lib/php/20170718`, your path may be different):

```
$ php-config --extension-dir
```

Verify that the file `imagick.so` exists in that directory:

```
$ ll /usr/lib/php/20170718
```

## Edit php.ini

Now we need to edit the `php.ini` configuration file. To find out where this file is located, we need to look at the current php configuration. To do that, create a php info file that you can access from your browser. You may call it `info.php`:

```
// info.php
<?php phpinfo(); ?>
```

Load that file in your browser and look for the `Loaded Configuration File` setting. It should have the path to the php.ini file we need to edit (the path to your php.ini file may be different than what’s shown in this example):

![PHP Info](http://www.mariorodriguez.co//assets/img/posts/install-enable-imagick.png)

Open that `php.ini` file:

```
$ sudo pico /etc/php/7.2/fpm/php.ini
```

Add the following line (you may add it at the end of the file) and save it:

```
extension=imagick
```

## Restart

If you’re doing this in your local development environment, restart your computer or virtual machine. If you’re doing this on an actual server, restart it. You may want to try restarting your web server only (apache, nginx, etc), but this may not work. It’s more effective to just do a restart on the machine so that all the changes take effect.

After restarting, verify that Imagick is available by loading your `info.php` file in your browser again, and this time you should see in it many references to the Imagick extension.
My real journey begins now
Tags: discuss, learning, introductions
Published: 2018-01-15 18:18:37

---
title: My real journey begins now
published: true
description: A small step in my career, a big step in my life
tags: discuss, learning, introductions
---

Greetings! I consider, that first, it would be better if I introduce myself. So, overall, I am an 18 years-old Romanian guy, passionated by everything that is related to the science side. At 3 years old I got my first PC, and that's how it all started. I learned to use it alone (no-one was there to teach me) and also, I started learning English alone (by using it). So, until now, everything kept on:                         I'm a self-taught programmer (if we can call it that, considering that I learned pretty much from documentation and other's code) and, also, I'm gonna apologize for my bad English (I learned it alone).
***
Four years ago, I got into the programming world, by discovering the Pascal language. I started learning it and, in the meantime, got in contact with many other languages. Now, I use as the main-2-languages, a nice combo that goes well hand-in-hand (C++ and Node). I got involved in many projects and also managed to win some important competitive programming contests in my country. 
***
Now, some while after trying to discover everything on my own, I'm gonna try to take it to the next level. I'm gonna try to make this not only a passion but a profession. So far, I'm gonna try to keep you guys updated on my projects and learning process, hoping that you will be willing to give me some tips and tricks. That would be until now, I'm gonna come back with a new post, that will either keep you intrigued or bored. Until then, happy coding!
How do you decide your application port number?
Tags: port, help
Published: 2018-01-17 07:28:52

---
title: How do you decide your application port number?
published: true
description: Because some are used by common applications.
tags: port, help
---
I'm sorry if this is a stupid question but these are the kind of decisions I get stuck on.
In your applications, how do you choose a port number that is unlikely to be used by another process?
Project Suggestions
Tags: react, javascript, opensource, projects
Published: 2018-01-17 04:48:28

---
title: Project Suggestions
published: true
description: 
tags: react, javascript, open-source, projects
---

I'm a recent computer science grad currently learning React and building decent a portfolio hasn't been easy. I really wanna get my hands on a real life project, but I have never even made a pull request before. Does anyone know of any open source projects that are accessible for juniors like me to finally get my hands dirty?
failed domain authentication on emails from dev.to
Tags: devto, email
Published: 2018-01-16 21:22:26

---
title: failed domain authentication on emails from dev.to
published: true
description: 
tags: dev.to, email
---

it's possible I'm the only one that see the "this email has failed it's domain authentication requirements" kind of thing? 

I'm using protonmail (and awesome alternative by the way) so I don't know if is a  common thing for wider email servers like Gmail, outlook...

![Example](https://thepracticaldev.s3.amazonaws.com/i/p31ssm220tto9wte1ja9.jpg)
Explain Kubernetes Like I'm Five
Tags: explainlikeimfive, anonymous
Published: 2018-01-16 18:25:33

---
title: Explain Kubernetes Like I'm Five
published: true
description: 
tags: explainlikeimfive, anonymous
---

_This is an anonymous question sent in by a member who does not want their name disclosed. Please be thoughtful with your responses, as these are usually tough questions to ask and answer._
Guest post: UX Booth
Tags: crosspost, industry, launchdarkly, a11y
Published: 2018-01-16 18:31:28

---
title: "Guest post: UX Booth"
published: true
tags: Crosspost,Industry,LaunchDarkly,accessibility
canonical_url: http://www.heidiwaterhouse.com/2018/01/16/guest-post-ux-booth/
---

I wrote a [2018 User Experience Prediction at UX Booth](http://www.uxbooth.com/articles/ux-in-2018-design-development-and-accessibility/). Amy Grace Wells asked me what I thought was going to be a leading theme in UX in the next year, and I said, “better accessibility”. I think that’s both a serious prediction and a hope, because there is never enough accessibility, but I also think we are getting better.

So many things that are designed for accessibility, but that we don’t always understand that way when they happen, and frequently we mock them as lazy or luxurious. Backup cameras on cars seem silly – why not just turn around? Until you physically can’t turn around, and then you realize how much they matter. Pre-chopped vegetables, electric can-openers, and velcro shoes seem laughable – unless you’ve ever been unable to hold something in both hands at once. In the same way, building web and mobile apps to respond to a variety of command styles may not occur to us if our fingers are nimble or our voices clear, but will matter immensely to people who are not in that category.

Since before I was employed at LaunchDarkly, I’ve been fascinated by the ability that feature flags offer designers to customize user experience. We haven’t had a good test case yet that I know of, but it will come, and I’m looking forward to it.

 ![Peeled oranges in plastic containers](http://static4.businessinsider.com/image/56d9b345dd0895fc5a8b4670-1190-625/whole-foods-is-being-criticized-for-selling-pre-peeled-oranges-in-plastic-containers.jpg)

Pre-peeled oranges for accessibility
Security Sprint week 9: Privacy politics and the internet
Tags: w3c, web, security, discuss
Published: 2018-01-16 17:37:11

---
title: "Security Sprint week 9: Privacy politics and the internet"
published: true
description: Investigating about an abandoned project of the W3C and discussing the advantages and disadvantages of similar future projects.
tags: W3C, web, security, discuss
---

By chance I discovered an old World Wide Web consortium (W3C) [project](https://www.w3.org/TR/P3P11/) that has been abandoned for a while. Platform for Privacy Preferences Project (**P3P**) is supposed to be a protocol which gives the opportunity to declare the intended usage of collected information of web browser users in specific pages, in order to make a standardized way of protecting user privacy. At first I thought this was a wonderful idea, and reminded me a lot of the cookies policies problems. This should be an example of syntax of statements for policy (taken from Web Privacy with P3P by Lorrie Faith Cranor, O'reilly):

```
<STATEMENT>
  <EXTENSION optional="no">
    <SAFE-HARBOR eu-applicable="yes"
     xmlns="http://www.example.com/P3P/safe-harbor/"/>
  </EXTENSION>
  <PURPOSE><current/></PURPOSE>
  <RECIPIENT><ours/></RECIPIENT>
  <RETENTION><stated-purpose/></RETENTION>
  <DATA-GROUP>
    <DATA ref="#user.home-info.postal"/>
  </DATA-GROUP>
</STATEMENT>
<STATEMENT>
  <EXTENSION optional="no">
    <SAFE-HARBOR eu-applicable="no"
      xmlns="http://www.example.com/P3P/safe-harbor/"/>
  </EXTENSION>
  <PURPOSE><current/><profiling/></PURPOSE>
  <RECIPIENT><ours/><other-recipient/></RECIPIENT>
  <RETENTION><indefinitely/></RETENTION>
  <DATA-GROUP>
    <DATA ref="#user.home-info.postal"/>
  </DATA-GROUP>
</STATEMENT>
``` 

As I read and found more and more documentation, and mostly reasons why this project stopped, I found a bunch of advantages and disadvantages surrounding the project and similar ones.

**Advantages?**

Privacy for the user, an standardized way of protecting information and making web surfing more secure. This kind of protocol could block any cookies that the user might not want on his computer! Tools like Privacy Badger could be directly implemented this way, not add-ons needed.

**Disadvantages?**

Apparently one of the main reasons this project was stopped was because it seemed "way too complicated" for the regular user. I found this weird enough to wrinkle my nose: Don't many things on computer development seem "complicated" by inexperienced eyes? Another concern is its use is not compulsory and by that the actual pages that would need blocking wouldn't use it. This seemed more reasonable to me. 

Fortunately we have several user-friendly add-ons and programs to protect ourselves but even tho I think is sad such an idea died in the end. Some other similar projects raised in the last years but none of them seemed to succeed, or at least I haven't found them.

**What do you guys think about this kind of projects? Do you think it worths a try to create awareness on the internet about privacy using new protocols or you think other ways are more useful?**
Flutter in 30 Seconds
Tags: inthirtyseconds, flutter
Published: 2018-01-16 16:33:15

---
title: Flutter in 30 Seconds
published: true
tags: inthirtyseconds, flutter
---

[Flutter](https://flutter.io/) is an _open source_ SDK from Google that helps you create native apps for modern mobile platforms (currently, Android & iOS) _from a single codebase_ with extensive _tooling and widgets support_ for rapid prototyping. 

Compared to other relevant solutions (e.g., React Native, PhoneGap, Cordova), Flutter focuses first on **performance** by compiling directly to native (ARM) code and by removing the overheads of context-switching to OEM widgets using a  [UI architecture](https://docs.google.com/presentation/d/1cw7A4HbvM_Abv320rVgPVGiUP2msVs7tfGbkgdrTy0I/edit) that works with the GPU to render directly to canvas.

Flutter's [layered architecture](https://docs.google.com/presentation/d/1cw7A4HbvM_Abv320rVgPVGiUP2msVs7tfGbkgdrTy0I/edit#slide=id.gbb3c3233b_0_162) coupled with its open-source nature, makes it possible for developers to **customize everything** within the framework, while relying on battle-tested engines for optimized text (from Chrome), graphics ([Skia](https://skia.org/), used in Android) and framework (Dart, used in production at Google) support.

Flutter is currently in alpha release. You can get a quick intro and links to more resources in the [talk I gave](https://bit.ly/flutterdev-jan2018) at #WindyCityDevFest in Chicago in January 2018 or [try the codelab](https://codelabs.developers.google.com/codelabs/flutter/#0) for hands-on learning.

 _Update:_ You can also watch the [video for that talk here](https://www.youtube.com/watch?time_continue=2&v=OpdXLXdYXhU) or track the [Flutter for Beginners](https://www.youtube.com/playlist?list=PLtPXP3rHJ4zvKeqJizBX0UUVMo_k3v301) playlist I'm curating on YouTube.
Request for React Monorepo Advice / Pitfalls
Tags: help, javascript, devops
Published: 2018-01-16 16:00:37

---
title: Request for React Monorepo Advice / Pitfalls
published: true
description: React component monorepo landscape?
tags: help, javascript, devops
---

# Moving to a Monorepo: What should we know?

We've decided to take an approach to make a group of components into a monorepo, as components are often updated separately and that level of granularity is important. Lerna is popping up as a popular solution for implementing, but I was hoping to pick the hive-mind for other solutions and alternatives.

I just don't have an idea of the options out there in the field. Thoughts? I appreciate it.
Who should our next Ask Me Anything guest be on dev.to?
Tags: ama, discuss
Published: 2018-01-16 15:23:17

---
title: Who should our next Ask Me Anything guest be on dev.to?
published: true
description: 
tags: ama, discuss
---

[Here's](https://dev.to/t/ama) a list of past guests in case you were curious.
Is ZCE really worth it?
Tags: php, certifications, zce, programming
Published: 2018-01-16 14:46:00

---
title: Is ZCE really worth it?
published: true
description: Is PHP Zend Certified Engineer worth doing?
tags: PHP, Certifications, ZCE, Programming
---

![Header](https://maydenacademy.co.uk/wp-content/uploads/2017/10/Study-2.png)
A few months ago, I posted a blog about [what ZCE is](https://maydenacademy.co.uk/zend-certified-engineer/), as a follow up to a talk about becoming a Zend Certified Engineer. Since then, people have been in touch asking why you would take the ZCE exam and whether it’s worthwhile. Because, after all, it is a real challenge. So I thought I would share my thoughts here.

Personally, I took my ZCE exam for that exact reason: the personal challenge. I wanted to prove to myself that I could. It’s not an easy test, and it covers a lot of ground including a fair few abstract, lesser known parts of PHP. I’ve been writing PHP for over ten years, but there were still parts of the language I had never worked with. ZCE gave me the opportunity – and the excuse – to explore those.

The ZCE qualification is a rubber stamp. It shows that you are someone who can not only code their specific flavour of PHP, but who also has a broader understanding of how the language works.

At the time of writing this article there are 997 Zend Certified Engineers in the UK. No one is saying that those 997 developers are the best PHP developers in the UK – there are certainly many fantastic PHP developers out there without the ZCE certification. But how do you measure skills in PHP? A certification like ZCE enables you to differentiate yourself as a developer – and goes a long way toward proving that you know your stuff.

The general advice provided by Zend is that you should have between 2 and 3 years of professional PHP development experience before taking the ZCE exam. While that amount of time means you’re likely to have experienced a large amount of the content in the real world, I do believe you can do it sooner. I’ll be the first to say that experience trumps qualifications, but when starting out as a developer, you need as much evidence on your side as possible. A portfolio is one of the best ways of doing this – that’s why the students at Mayden Academy build a portfolio during the course – and industry recognised qualifications – like ZCE – are another.

A ZCE qualification also proves to employers that you’re committed to growing your skillset. It requires serious dedication, and it isn’t essential. Having ZCE under your belt is evidence of your motivation and of the attitude you take to your work.

So, is ZCE worth doing? In summary, yes – I believe so. If you are a fairly new developer, being able to say you have taken the ZCE already differentiates you from the crowd. It shows employers that you are serious about your career and about your personal development, and that you have both practical and theoretical knowledge. And who doesn’t love having extra letters after their name?!

Next time a job is between you and a similarly experienced developer, ZCE could tip the balance in your favour.