teleren/devto huggingface dataset:
Python Celebrity Recognizer
Tags: python, microsoft
Published: 2018-04-21 01:59:03


---
title: Python Celebrity Recognizer
published: true
description: Using python and Microsoft Cognitive Services to recognize celebrities (or at least some of them)
tags: #Python #Microsoft
---

#### Let's use the python requests library, and a free trial of Microsoft's computer vision API to identify celebrities in photos. 

This short tutorial is aimed at showing developers how accessible and user friendly cognitive services can be. This tutorial is taken largely inpart from Microsoft's Cognitive Services documentation, it can be found [here.](https://docs.microsoft.com/en-us/azure/cognitive-services/computer-vision/quickstarts/python)

To start, your going to need a free subscription key from [here.](https://azure.microsoft.com/en-us/try/cognitive-services/?api=computer-vision)

*First*, we need to import the requests library

```python
import requests
```

Then we need the keys, and some basic URL's. We're going to use these values from the computer vision API documentation. 

```python
#subscription key
key = "your key here"

#Base endpoint and special celebrity endpoint
vision_base_url = "https://westcentralus.api.cognitive.microsoft.com/vision/v1.0/"
celebrity_analyze_url = vision_base_url + "models/celebrities/analyze"
```

Next we need an image of a celebrity.I'll start with the king of pop.
[Micheal Jackson](http://images2.fanpop.com/image/photos/10700000/Close-Up-Large-Photo-michael-jackson-10731676-1267-1333.jpg)

```python
image_url = "http://images2.fanpop.com/image/photos/10700000/Close-Up-Large-Photo-michael-jackson-10731676-1267-1333.jpg"
```

We're going to need some basic HTTP variables set up. These values are standard and have been taken from the documentation.

```python
h = {'Ocp-Apim-Subscription-Key':key}
p = {'visualFeatures': 'Categories,Description,Color'}
d = {'url':image_url}
```

We finally send the request to the service.

```python
response = requests.post(celebrity_analyze_url,headers=h,params=p,json=d)
analysis = response.json()
```

Let's look at our results:

```python
result = analysis["result"]["celebrities"][0]["name"]
print(result)
```

**_Micheal Jackson_**

Comment which celebrities the service can and can't recognize.


I've got the first one, this service can't recognize Prince...
Linux FTP Server (FTPS & SFTP)
Tags: linux, beginners
Published: 2018-04-22 20:45:12

---
title: Linux FTP Server (FTPS & SFTP)
published: true
description: 
tags: #linux #beginners
---

1 How FTP Server Works
1.1 Active Mode
1.2 Passive Mode
2 Vsftpd FTP Server Features
3 FTP Server Setup
3.1 Connect as Local User
4 Setup FTP Server as Anonymous Only
5 FTP Server Security
6 SFTP vs. FTPS
7 Jailing FTP Users
8 Linux FTP Server Commands

https://likegeeks.com/ftp-server-linux/

Hope you like it.
Thanks.
Friday Blast #35
Tags: fridayblast, links, post
Published: 2019-01-20 15:25:18

---
title: Friday Blast #35
published: true
tags: friday_blast,links,post
canonical_url: https://horia141.com/friday-blast-35.html
series: "Friday Blast"
---

[A 2 year Stanford study shows astonishing productivity boost for working from home (2018)](https://www.inc.com/scott-mautz/a-2-year-stanford-study-shows-astonishing-productivity-boost-of-working-from-home.html) - I can confirm this and I’m happy it’s a trend with a positive trajectory. There’s a whole host of improvements at the individual’s, company, city and state level for more companies and people doing this.

[The latest trend for tech interviews - days of unpaid homework (2018)](https://work.qz.com/1254663/job-interviews-for-programmers-now-often-come-with-days-of-unpaid-homework/) - as good as the news from the previous article is, this one is bad. I’ve had to politely decline such expansive interviews in the past. I _do_ think the intention is good - that is eliminating some of the bias of _whiteboard interviews_, but the implementation is pretty bad. I _do wish_ the tech industry wouldn’t jump from fad to fad with interview techniques.

[Examples of everything new in ECMAScript 2016, 2017 and 2018 (2018)](https://medium.freecodecamp.org/here-are-examples-of-everything-new-in-ecmascript-2016-2017-and-2018-d52fa3b5a70e) - a big article with features both large and small. Almost half of it is taken up by ECMAScript 2018 and the trend for new features and API improvements is on the uptick. Good to see the massive improvements in JavaScript-land in the past years.

[Understanding TypeScript type notation (2018)](http://2ality.com/2018/04/type-notation-typescript.html) - while the official docs are pretty good, this one is a worthwhile read as well. It’s focused on the type language in TypeScript and how JavaScript and TypeScript interact wrt types. Good examples of the lesser known type constructs such as unions or tuples.
Building a PHP Framework: Part 1 - Why? Seriously, Why?
Tags: php, phpframeworks
Published: 2018-04-22 18:07:03

---
title: Building a PHP Framework: Part 1 - Why? Seriously, Why?
published: true
description: I’m very aware that there is no need for a new framework. I’m not trying to reinvent the wheel or make a “better” code-base. I'm building a PHP framework to learn more about topics like application architecture and design patterns. Join me, won't you?
tags: php, php frameworks 
cover_image: https://thepracticaldev.s3.amazonaws.com/i/zeozjuzwtq85ltpacz1b.jpg
---

There are a tremendous amount of great PHP frameworks. Off the top of my head I can think of several: Laravel, Symfony, Yii, Slim, Cake, etc. Yet, for every Laravel there are probably five lesser-known, high quality frameworks. Go ahead and search Github for “PHP Framework.” As of this writing it lists 20,000 results. Sure, most aren’t fully fledged PHP frameworks, but that’s still a lot of code.

So with all of that being said, it begs the question: why on Earth would you want to do this?

The extremely short answer: I want to.

The less short answer: A PHP framework encompasses many of the areas I want to learn more about.

## Why I’m Building a PHP Framework

Look, I’m very aware that there is no need for a new framework. I agree with that. For whatever problem you’re trying to solve you’ll no doubt be able to find a solid solution.

I’m not trying to reinvent the wheel or make a “better” code-base. I’m under no delusions of grandeur – this framework will never see a production environment. If it does, may God have mercy on your soul.

I’m building this to learn. That’s really the long and short of it.

## What I Want to Learn

There are a number of areas that I would like to have more knowledge of. Chief among them are:

- Application Architecture
- Design Patterns

Other areas include (but aren’t limited to):

- Routing
- Cache
- Database Abstraction
- IoC
- Code Organization
- Testing

All of those topics fall into the “yeah, I ‘get’ it but do I really understand it” category. That’s what I hope this little experiment solves.

## What This Won’t be

It is not my intent to make a production-ready framework. I have no plans of making a robust code-base. This project is a tool to help me (and hopefully others) learn. Anything after that is just gravy.

## What’s Next

Before I build a framework, I should probably figure out what exactly a framework constitutes. That doesn’t sound intimidating at all.

## Wait! We Need a Name

I can’t keep referring to “the framework” or “code-base.” I’m one post in and it’s already getting old. Let’s call it the *Analyze PHP Framework*. Seems appropriate to me.

Originally posted on [DevelopmentMatt.com](http://developmentmatt.com/building-a-php-framework-part-1-why-seriously-why/)
Programming made me a believer 
Tags: programming, god
Published: 2018-04-22 17:55:03

---
title: Programming made me a believer 
published: true
description: how programming made me a believer 
tags: programming,God 
cover_image: https://thepracticaldev.s3.amazonaws.com/i/5zi3bq2nud5fe1esrsqw.jpg
---
**Introduction:**

When doing programming assignments and projects for my teachers, things got boring. I needed to make programming fun again. I decided to make a life imitating game. And oh boy, it was so hard to make things work right. So, I started observing the world. I was chocked to know the amount of stuff I had to deal with to make a good game. Our world is made in such a perfect way. 

**Our universe is a program:**

When talking about materials and physical things that exists in this world. We will be talking about a sequence of atoms. Atoms are finite, but the creatures and species that were made with these atoms are uncountable. What’s more amazing is that everything was made in such a way that respects a lot of concepts: Gravity, Frictions, Heat, Pressure… And everything is holding on together in such a beautiful way. Everything in this universe is a program of atoms and energy, that’s why I can safely say that our universe is a Game. The main players are the humans. They can do as they like and interact with anything in this game. They can think as they want. Even so, this game doesn’t bug. Sure, the players should pay for their mistake when they do harm themselves or their environment. But, life still exist, and the game is still on. 

**The one who coded this game:**

Now, to believe that this game came from nowhere and was randomly created is absurd. Someone must have though of everything and made every concept counts and came up with this game. This one is what we call God. But, why should we worship him and pray for him you say? Because he is worth worshiping. He knows everything about this universe. How it started, how it is going to end. 

**What has changed in me?** 

I used to believe in God without having the right proof, Because I used to hear about him since my childhood. Now I am a true believer and it is thanks to being a programmer. It is because of knowing how extremely hard it is to so make something perfect like the universe. That’s where I got my respect and my faith in God. And that’s why I think you should do the same.
Often neglected skills new devs should learn?
Tags: webdev, discuss, beginners
Published: 2018-04-22 10:29:13

---
title: Often neglected skills new devs should learn?
published: true
description: A discussion of often neglected skills that new devs should learn.
tags: webdev, discuss, beginners 
---

Obviously learning to program is only one part of the equation when learning to become a Developer.

What are some skills, concepts, tools, etc that often seem neglected and should be learned by new/junior developers to help them in the early parts of their career?
How do I get experience when I have no experience?
Tags: career, beginners, discuss
Published: 2018-04-22 04:23:03

---
title: How do I get experience when I have no experience?
published: true
description: How do I get experience when I have no experience?
tags: career, beginners, discuss
cover-image: https://thepracticaldev.s3.amazonaws.com/i/rcw6avwa6vgb9as9jyhx.jpg
---
**Can anyone help me?** I have had plenty of jobs but never one as a programmer. I have some skill, but no experience. The problem is this: in every job posting I see, even those purporting to be "junior" positions, they want someone with at least a year of experience. How do I get experience when I can't get a job?? Any advice / tips would be great. THANKS!
On wrappers for standard library
Tags: cleancode
Published: 2018-04-19 20:53:05

---
title: On wrappers for standard library
published: true
description: 
tags: cleancode
---

Every language has a standard library. Everybody uses it. Not everybody likes it. There are a couple of problems with standard libraries: they have to satisfy everybody and they have to be compatible at least with couple of previous versions (well, if the language is worth using). Sometimes I cannot help but notice that I am writing the same code over and over again just because the standard library was designed that way long time ago and even though there are already new tools present they have to support compatibility. For example:

```C++
std::string::size_type p = filename.find_last_of(“/.”);
if (p != std::string::npos)
	// use p in some meaningful way
```

when there’s already `std::optional<>`, or

```C++
loglist_t::iterator i = loggers.find(name)
if (i != loggers.end())
	// dereference i and use the result
```
or

```Java
getSomeOptional().map(Optional::of).orElse(getSecondOptional());
```

when there’s `Optional::or()` already, but my employer doesn’t plan to switch to Java 9. I would love to put those pieces of code into some small methods, but where should I place them?

There is actually a very simple solution to this problem. I was a bit surprised to find out that it is described in details in Uncle Bob’s “Clean Code” in chapter 8, but for some reason I’ve never seen this approach actually implemented. We just need to create wrappers for everything we use from the standard library, but everyone is busy creating alternative implementations instead. Let me tell you a secret: modern compilers are very good at optimisations and this wrapper will probably cost you nothing or almost nothing. All of sudden magic happens, and you have home for a bunch of utility methods you used to make static and put in `OptionalUtil` class, or you don’t care if your compiler renamed `std::experimental::optional` to `std::optional`, because only a single line will be changed in your application, or you can create better API for strings and utilise aforementioned `std::optional`, or you can implement methods from newer version of standard library and happily use it already, or … you name it.

The only drawback I see here is it’s very easy to get used to those wrappers, and when you move to another project, you’ll be missing them. But you already know what to do, don’t you?
What is your on-boarding process at your company?
Tags: discuss, onboarding
Published: 2018-04-22 00:51:01

---
title: What is your on-boarding process at your company?
published: true
description: Discussion of onboarding processes at various companies.
canonical_url: https://www.iamdeveloper.com/posts/what-is-your-on-boarding-process-at-your-company-4ld/
cover_image: https://thepracticaldev.s3.amazonaws.com/i/2oo5nyi8bkmpgctjvh7n.JPG
tags: discuss, onboarding
---

Where I'm currently at, like most companies, we're always looking to improve our on-boarding process for new developers. When I started working there, I tried to document anything that was missing in regards to the on-boarding I received.

Documenting things is so important and for someone new coming on to a team, this is invaluable.

{%twitter 988760303667236865%}

Aside from that, we have some scripting to get tooling set up for a dev, and since we use bots as a medium for [conversational marketing](https://www.automat.ai/what-is-conversational-marketing), part of the on-boarding is to create your own 🤖.

One thing we're still working on is automating the setup of a complete local dev environment. My awesome co-worker, @magellol has been working on this, and I'm looking forward to us having this in our on-boarding toolbelt.

I'm curious about the on-boarding process that exists at the companies you work at. I don't think on-boarding processes at any company are perfect, but it'd be interesting to know what you do so that others could potentially improve their own on-boarding processes.
What are your favourite programming katas sites?
Tags: discuss, katas, programming
Published: 2018-04-22 00:32:42

---
title: What are your favourite programming katas sites?
published: true
canonical_url: https://www.iamdeveloper.com/posts/what-are-your-favourite-programming-katas-site-ke2/
cover_image: https://thepracticaldev.s3.amazonaws.com/i/qlvdfwxlexb8f27jy7c1.jpg
tags: discuss, katas, programming
---

_Photo courtesy of flickr user [egilbokn](https://www.flickr.com/photos/29069071@N00/213242132/in/photolist-jQVsu-4HSwnj-3nJhLE-Rk8YM-cGPCCj-3nDpKe-cGPCp1-ZmkmDB-7Y38tj-384fEd-Qp4JA-6maTGE-r5Yuy8-cGPCJm-jMjUhQ-rpsLdw-Ft6BgK-3nJkyj-6hjyUk-aQHgie-n4c66g-7UJs4W-e1HJvo-5dRuKB-9pok19-8SwbzX-aCggWk-8Sw9xr-3nJ9zC-zQgDA-6hoAgj-Ee2CCT-7kmRmm-Z1yJFh-74tGsq-8uRvzX-8Gp3Lb-eVYRiq-ah7z9w-5WfNUu-4HSAXq-7Byx3F-6DAk8h-3nDLRc-7XMp4T-7XQDbj-3nJeSG-9ocbQa-a4qD37-5WfQk5)_

For those of you that do katas, what are your favourite katas sites? Here's some of mine for front-end development:

{%twitter 892226421430652929 %}


Post katas sites for any programming that you do.
Weekly UI Challenge Week 2 Day 7: Tweaks, refactors, fixes
Tags: ui, weeklyui, challenge
Published: 2018-04-21 22:19:06

---
cover_image: https://thepracticaldev.s3.amazonaws.com/i/qpqdtm9qxhbrqyrbmsx7.jpg
title: "Weekly UI Challenge Week 2 Day 7: Tweaks, refactors, fixes"
published: true
description: "Week 2 Day 7 of my Weekly UI challenge: All the fixings"
tags: ui,weeklyui,challenge
---

## A short announcement

One note on future **Weekly UI** posts: often times outside life gets in the way of scheduled series, especially when they have daily elements, like this one. As the summer kicks off, there will be some weeks where I will be busy and/or out of town, and unable to dedicate my full attention to Weekly UI posts as I want to; I will try to recognize those weeks ahead of time and plan on not posting a challenge for such a week.

Do not fret! That doesn't mean that this series is going anywhere, but just that I want weekly challenges to be consistent with what you all have come to expect. If you want to stay as informed as possible, [**follow the WeeklyUI tag** on its tag page](https://dev.to/t/weeklyui) and [give me a follow](https://dev.to/geoff); this way, you will get notifications when I post challenges.

[![follow the WeeklyUI tag on https://dev.to/t/weeklyui](https://image.prntscr.com/image/rwKJB4RXQeOggb8XdYMbcA.png)](https://dev.to/t/weeklyui)

---

Welcome to Week 2, Day 7 of my Weekly UI challenge! Week 2 will focus on a **search bar** UI component; each day throughout this following week, I will pick one subelement of the design to implement. For day seven, our goal is to…

## Tweak, refactor, and/or fix your code

Today is all about you and your design/code perfectionism. Did you want to change your component API to be more flexible? Did you mean to tweak spacing on Day 5 but didn't have time? Perhaps you needed more time to research how to fix a few more a11y issues before you get that perfect score on Day 6. We all have to get sleep, spend time with friends and family, and have other things pop up that may affect your workflow; today is your day to finish strong and get everything up to spec as *you* see fit.

I will be updating my dropdown list items to be focusable via the arrow keys and improving form submission behavior. As always, you can check out my coded implementation [on my Github pages site for this project](https://geoffdavis92.github.io/weekly-ui/).

Please add your repos and/or images of your designs in the comments for inspiration! I would love to see what you all created throughout the week.

Happy fixing! 🎉

### Week 2 Calendar

1. (Sunday 4/15) Design component ✅
2. Input field ✅
3. Submit button ✅
4. Integrate autocomplete functionality ✅
5. Past search term indicators ✅
6. 100% a11y score ✅
7. Tweaks, refactors, fixes 🎯
Install and Run Cockpit on Linux CentOS 7 
Tags: install, linux, centos7, server
Published: 2018-04-20 13:12:13

---
title: Install and Run Cockpit on Linux CentOS 7 
published: true
description: Install and Run Cockpit on Linux CentOS 7
tags: Install, Linux, Centos7, Server
---
### Picture on Imgur
<blockquote class="imgur-embed-pub" lang="en" data-id="EeVlojn"><a href="//imgur.com/EeVlojn">Linux | Centos 7 Server  | Install &amp; Run Cockpit</a></blockquote><script async src="//s.imgur.com/min/embed.js" charset="utf-8"></script>

```
[psnebc@localhost ~]$ sudo yum -y install epel-release
    [sudo] Passwort für psnebc: 
    psnebc ist nicht in der sudoers-Datei. Dieser Vorfall wird gemeldet.
    [psnebc@localhost ~]$ su -
    Passwort: 
    Letzte Anmeldung: Freitag, den 20. April 2018, 14:53:04 CEST auf tty1
    [root@localhost ~]# yum -y install epel-release     
    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
     * base: centos.schlundtech.de
     * epel: ftp.nluug.nl
     * extras: ftp.uni-bayreuth.de
     * remi-php71: remi.mirror.ate.info
     * remi-php72: remi.mirror.ate.info
     * remi-safe: remi.mirror.ate.info
     * updates: ftp.fau.de
    Package epel-release-7-11.noarch already installed and latest version
    Nothing to do
    [root@localhost ~]# yum -y update
    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
     * base: centos.schlundtech.de
     * epel: ftp.nluug.nl
     * extras: ftp.uni-bayreuth.de
     * remi-php71: remi.mirror.ate.info
     * remi-php72: remi.mirror.ate.info
     * remi-safe: remi.mirror.ate.info
     * updates: ftp.fau.de
    No packages marked for update
    [root@localhost ~]# yum -y install cockpit
    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
     * base: centos.schlundtech.de
     * epel: ftp.nluug.nl
     * extras: ftp.uni-bayreuth.de
     * remi-php71: remi.mirror.ate.info
     * remi-php72: remi.mirror.ate.info
     * remi-safe: remi.mirror.ate.info
     * updates: ftp.fau.de
    Package cockpit-160-1.el7.centos.x86_64 already installed and latest version
    Nothing to do
    [root@localhost ~]# systemctl start cockpit
    [root@localhost ~]# systemctl enable cockpit.socket
    [root@localhost ~]# sudo firewall-cmd --add-service=cockpit
    Warning: ALREADY_ENABLED: 'cockpit' already in 'public'
    success
    [root@localhost ~]# sudo firewall-cmd --add-service=cockpit --permanent
    Warning: ALREADY_ENABLED: cockpit
    success
    [root@localhost ~]# firewall-cmd --reload
    success
```
https://www.reddit.com/r/psnebc/comments/8dne9v/linux_centos_7_server_install_run_cockpit/
What is a website that you visit regularly despite its technical quality and user experience?
Tags: discuss, webdev, ux
Published: 2018-04-21 20:19:41

---
title: What is a website that you visit regularly despite its technical quality and user experience?
published: true
description: 
tags: discuss, webdev, ux
---

You _want_ the website to be better because you want the service they are providing, but the tech is objectively crappy.