teleren/devto huggingface dataset:
5 Things you should NOT be ASHAMED of as a developer
Tags: javascript, career, beginners, webdev
Published: 2019-07-22 13:53:03

---
title: 5 Things you should NOT be ASHAMED of as a developer
published: true
description: The many pet peeves I've noticed developers go through that makes them think others think less of them.
tags: #javascript #career #beginners #webdev
canonical_url: https://www.buildingstartups.co/blog/5-things-you-should-not-be-ashamed-of-as-a-developer
cover_image: https://thepracticaldev.s3.amazonaws.com/i/eirk0u3dnb58exmoooky.png
---

There are several of these, but these are the 5 most common things I've found engineers in my experience hesitate to do because it might make them feel less of an engineer or worse less "senior" as an engineer or developer.

The 5 things you definitely shouldn't be ashamed of as a developer:

## 1. Readability

It's okay to allow for some repeatability in your code as an offset for developer readability. Remember your code is only as good as it is easy to understand and debug when the time comes.

Code can ALWAYS be faster, there are always ways of making it more performant, you just need to maintain a good balance between readability and performance.

## 2. Pace

It's okay to not be the "fastest" developer. A common misconception in the industry that a "fast" dev or a dev who smashes out code is a better than one who might take a little longer. It's okay to take time and  examine the architectural consequences for developing a feature set

## 3. The choice for today

Everything you write today will be replaced eventually, don’t get too attached to solutions, get attached to problems.

It's okay to not be too happy with your solution for today and come back and optimise it down the track.

## 4. Asking for help

Honestly, senior or junior - you should ask for help when you need to. We have a rule, if you spend more than 10-20 mins on something, just ask someone, 2 heads always beat 1 head.

However, always try your best to improve your "solution finding" skills if don't have time to improve on your "problem solving" skills. Asking the right question is half the battle.

## 5. The language

Not knowing every corner of the language is fine. It makes no sense to learn every single thing about a language and not build in the end. It's an iterative process, understand core principles really well, and all the sugar syntax can come when you face the problem - google it.

Learning every bit of a language without actually using it in production to solve problems is the equivalent of knowing every rudimental in drumming but not being able to piece together an actually good beat.

These are the things we've tried to employ at the engineering culture at five2one.com.au. There's a long journey ahead to building an even better culture and we're pushing for it every day!

I'd love to hear your thoughts/additions or edits in the comments section 💪

If you liked this, definitely follow me on for the similar stuff:

twitter: twitter.com/@veebuv 
linkedin: linkedin.com/in/vaibhavnamburi
instagram:_veebuv
Colors channels and Python
Tags: python
Published: 2019-07-22 13:47:01

---
title: Colors channels and Python
published: true
description: python
tags: python 
cover_image: https://cdn.pixabay.com/photo/2018/03/10/17/16/woman-3214594__340.jpg
---
Computer screens are made up of color combinations (red, green, blue). If you have any color images, you can see the amount of red, green and blue for each colors.

This is all theoretical and all, but is that hard to do? No it's actually easy.

You need an image processing library. Most would say Pillow, Python image library. But OpenCV (cv2) is another good choice. 

OpenCV is a computer vision module, so you can do a lot more besides the basic image processing.

*Split the color channels:*

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

First load an image (with OpenCV), then split into the red, green and blue color channels.


    #!/usr/bin/python3
    b, g, r = cv2.split(img)

So complete code:

    #!/usr/bin/python3
    import cv2
    import numpy as np

    img = cv2.imread("lena.png", cv2.IMREAD_UNCHANGED)

    b, g, r = cv2.split(img)

    cv2.imshow("B", b)
    cv2.imshow("G", g)
    cv2.imshow("R", r)

    cv2.waitKey(0)
    cv2.destroyAllWindows()


Related links:
* <a href="https://www.quora.com/How-do-I-install-Open-CV2-for-Python-3-6-in-Windows">How to install OpenCV for Python</a>
* <a href="https://pythonbasics.org/">Learn Python Programming</a>
* <a href="https://pythonbasics.org/exercises/">Python Exercises</a>
* <a href="https://gumroad.com/l/GQWGG">Computer Vision course & examples</a>
Region of interest with Python
Tags: python, ai
Published: 2019-07-22 13:30:08

---
title: Region of interest with Python
published: true
description: python, ai 
tags: python, ai
cover_image: https://thepracticaldev.s3.amazonaws.com/i/hikbhhoey6f1vvlb61yp.png
---
Often when doing computer vision tasks, it's not the entire image or photograph you are interested in.

A photo of scene may be contain many different objects that need to be classified each. so how do you achieve that?

You can use region-of-interest. A region of the image that is important.

Lets say you want to recognize faces, given a photo a person, you don't need the hat or the clothes, you need a close up of the face.

<img src="https://thepracticaldev.s3.amazonaws.com/i/hikbhhoey6f1vvlb61yp.png">

In Python you can easily do that. If you load an image like this

    #!/usr/bin/python3
    import cv2
    import numpy as np


    img = cv2.imread("lena.png", cv2.IMREAD_UNCHANGED)
    cv2.imshow("Demo", img)

Then you can create a region of interest like this

    face = np.ones((200, 150, 3))
    face = img[200:400, 200:350]
    cv2.imshow("face", face)
    cv2.waitKey(0)
    cv2.destroyAllWindows()

So the complte code

    #!/usr/bin/python3
    import cv2
    import numpy as np

    img = cv2.imread("lena.png", cv2.IMREAD_UNCHANGED)
    face = np.ones((200, 150, 3))
    cv2.imshow("Demo", img)
    face = img[200:400, 200:350]
    cv2.imshow("face", face)
    cv2.waitKey(0)
    cv2.destroyAllWindows()

Related links:
* <a href="https://www.quora.com/How-do-I-install-Open-CV2-for-Python-3-6-in-Windows">How to install OpenCV for Python</a>
* <a href="https://pythonbasics.org/">Learn Python Programming</a>
* <a href="https://pythonbasics.org/exercises/">Python Exercises</a>
* <a href="https://gumroad.com/l/GQWGG">Computer Vision course & examples</a>
The DEV Community Published a Book: Your First Year in Code
Tags: meta, firstyearincode, books, beginners
Published: 2019-07-22 13:29:06

The emphasis from this title should be on the word _community_. This was an incredible initiative driven by longtime DEV member @isaacdlyman. It started with an idea, and a DEV post:

{% link https://dev.to/isaacdlyman/im-writing-a-book-for-junior-developers-3ph0 %}

We are very happy to announce that _[Your First Year In Code](https://leanpub.com/firstyearincode)_ is available today.

## **[👉 Purchase on LeanPub Now 📘](https://leanpub.com/firstyearincode)**

It is critically important for the industry that books like this exist, and that experienced developers point newer devs towards it. Many of the best software books are not useful or ideal for early career developers. Long-form reads do not help newer developers if the material is overly abstract. This book seeks to offer practical guidance for creating the structure for a great career in software.

The book was authored by Isaac and fifteen co-authors, many of whom are active DEV members. But this book is more than just a collection of blog posts, Isaac's vision and  excellence can be felt throughout the material. Those of you with more experience will resonate with much of the advice and get a refresher on the perspective and challenges of newer developers. Those of you who are just starting out, well, you’re lucky to have this guide. I wish this book was available during my first year.

The _I wish this were available when I were starting out_ feeling has been palpable since Isaac announced the project, and the book lives up to the expectation.

_Some reactions and feedback from that first post:_

{% devcomment 9a91 %}

{% devcomment 9a10 %}

## Pay What You Can

When we agreed to co-publish First Year In Code with Isaac, we knew it was our kind of partnership because he was adamant on making the book available for the entire community. We are pleased to announce that _First Year In Code_ is available on a pay-what-you-can pricing model. With that said, Isaac and all the co-authors have spent much of their time and energy in putting the book together so all contributions are appreciated.

We recommend $15 if you can afford it. The proceeds will be distributed among the deserving co-authors and **10% of all proceeds will go directly to [Girls Who Code](https://girlswhocode.com)**.

Isaac has been one of the leading DEV Community members in terms of understanding its value and place in the ecosystem. In addition to his contributions to this book, his whole publishing backlog is a goldmine, and you should heed some of his practical advice, like:

{% link https://dev.to/isaacdlyman/put-devto-on-your-resume-48h9 %}

### One more thing

Ask your manager to buy a copy for the whole team, and support this awesome community initiative! 😉

## **[👉 Purchase on LeanPub Now 📘](https://leanpub.com/firstyearincode)**

Happy coding!
The Building an Indie Business Podcast- How I Have Been Growing My Twitter Following
Tags: podcast, startup, productivity
Published: 2019-07-22 13:08:02

In this episode I discuss the things I have been doing on Twitter this year to gain more followers.

[Episode Page](https://baib-podcast.com)
[Revenue Research](https://revenueresearch.co/)

https://overcast.fm/+RG5hhZRok
Image Processing In React.js (Part 1)
Tags: react, javascript, frontend, images
Published: 2019-07-22 12:10:57

---
title: Image Processing In React.js (Part 1)
published: true
description: 
tags: #react #javascript #frontend #images
canonical_url: https://overflowjs.com/posts/Image-Processing-In-Reactjs-Part-1.html
---

Ever wonder how to create a cool filter like Instagram and other app's. 

Check out - https://overflowjs.com/posts/Image-Processing-In-Reactjs-Part-1.html article on overflowjs.com and you will have a good start to understand how to create image filters.

This is the live version of the app created - https://cryptic-sierra-27182.herokuapp.com/ 

Happy coding!
Adding your own picture on linkedin/portfolio site?
Tags: discuss
Published: 2019-07-22 11:21:49

---
title: Adding your own picture on linkedin/portfolio site?
published: true
tags: discuss
---

Is it possible to have a successful career as a freelance/remote developer without adding your real picture on any professional platform?

Maybe you don't like having your picture out there in the wild....

Maybe you don't want to be discriminated based on nationality, gender, race etc but be awarded jobs based on your skill set......

Have you ever gotten a job without the employer knowing how you look like?
Getting better
Tags: discuss, codenewbie, productivity
Published: 2019-07-22 01:03:36

Little secret I picked up over the years. If you want to learn something like a new programming language or a new piece of software. The best way is to use it, and I don't mean following a tutorial or just playing around. Make a web site or program. I wanted to learn c# so I jumped head first into unity and made a game. One big factor in doing this is publish your work. I started learning C# and Unity "Also Gimp and Blender"on March 15 2019. I published my game on March 28 2019. By having it out there for people to play and give feed back it pushed me and still is pushing me to do better and learn more. Plus I get instant feedback on my work.same with web dev. My intro to HTML and CSS was a website that went public as soon as I knew how to make it public. So if you want to learn something new just do it. The people in that field have all been there and they understand. I was so worried that people would troll my projects. After release I found that the people that checked them out had nothing but positive feedback. I might not make the next Facebook or Candy Crush but atleast I put stuff out for the world to see, and that's more than most people can say.
SEO URLs for Opencart multivendor pages on the seller side
Tags: opencartmultivendor, opencartmultivendorextension
Published: 2019-07-22 10:45:59

Opencart multi-vendor marketplace extension turns any Opencart Store into an Amazon-style marketplace. Our Opencart Marketplace extension has over 50+ features. Our feature-rich extension is the one-stop-shop where developers, teams or organizations can discover and acquire as well as offer multiple Vendors to sell their products and manage them from their personal dashboard, avail online payments, shipping gateways, 18+ language, give post-sales services, customer ratings, vendor profile and more on your marketplace extension. To know more about our extension, try our live demo now!
Learn More At: https://www.purpletreesoftware.com/multi-vendor-marketplace-opencart.html

If you want to remove link "purpletree_multivendor" from Purpletree multivendor sellers side pages. You can remove it by using the SEO URL. SEO URL will replace "purpletree_multivendor" with multivendor that's mean purpletree_multivendor works as ocmultivendor. Opencart SEO provides various ways for improving the search engine ranking of a store. Let's fix this.
Go to Admin > System > Settings > Edit > server tab > select Use SEO URLs "Yes" then save.

After using the SEO URL on your site if any other type of error occurs, so this means that you don't have an htaccess file in your Opencart.
As you can see in the screenshot the "purpletree_multivendor" does not appear on Purpletree multivendor pages.

If your issue is still not solved or facing some other any other kind of problem-related to Purpletree multivendor, please raise a ticket with us from https://www.helpdesk.purpletreesoftware.com/.


Read Full Blog: https://www.purpletreesoftware.com/blog/opencart/seo-urls-for-purpletree-multivendor-pages-on-seller-side


Contact
PurpleTree Software LLP
D-242, Sector 63,
Noida, India-201307
Call Us:+91–120–4123–135
Website: www.purpletreesoftware.com
Email: contact@purpletreesoftware.com
Connect With us: Linkedin | Twitter |Facebook
Unfollow non-followers on Twitter
Tags: javascript, unfollow, following
Published: 2019-07-22 10:41:34

---
title: Unfollow non-followers on Twitter
published: true
tags: JavaScript,Twitter,unfollow,following
canonical_url: 
---

Here is a JavaScript code to stop following those ones who are not following you back on Twitter and keeping those you want: [https://gist.github.com/jalbam/d7678c32b6f029c602c0bfb2a72e0c26](https://gist.github.com/jalbam/d7678c32b6f029c602c0bfb2a72e0c26)

This will work for new Twitter web site code structure (it was changed from July 2019, causing other unfollow-scripts to stop working).

Instructions:

1. The code may need to be modified depending on the language of your Twitter web site:
  - For English language web site, no modification needed.
  - For Spanish language web site, remember to set the variable ‘LANGUAGE’ to “ES”.
  - For another language, remember to set the variable ‘LANGUAGE’ to that language and modify the ‘WORDS’ object to add the words in that language.
2. Optionally, you can edit the ‘SKIP\_USERS’ array to insert those users that you do not want to unfollow (even if they are not following you back).
3. When the code is fine, on Twitter web site, go to the section where it shows all the people you are following (_https://twitter.com/YOUR\_USERNAME\_HERE/following_).
4. Once there, open the JavaScript console (F12 key, normally), paste all the code there and press enter.
5. Wait until you see it has finished. If something goes wrong, reload the page and repeat from the step 3 again. 

NOTE: **STILL NOT SURE ABOUT THE TEXT IN THE CONFIRMATION BUTTON FOR ENGLISH LANGUAGE. LET ME KNOW OR MODIFY IT BY YOURSELF TO THE CORRECT ONE IF NEEDED!**

Gist by Joan Alba Maldonado: [https://gist.github.com/jalbam/d7678c32b6f029c602c0bfb2a72e0c26](https://gist.github.com/jalbam/d7678c32b6f029c602c0bfb2a72e0c26)

Thank you very much. Any comments are welcome.
Constraint Satisfaction Problem (CSP)
Tags: cs, programming, ai
Published: 2019-07-24 18:48:17

---
title: Constraint Satisfaction Problem (CSP)
published: true
tags: cs, programming, ai
canonical_url: https://vorakl.com/articles/csp/
---

[Constraint Satisfaction Problem](https://en.wikipedia.org/wiki/Constraint_satisfaction_problem) (CSP) is a class of problems that can be used to represent a large set of real-world problems. In particular, it is widely used in Artificial Intelligent (AI) as finding a solution for a formulated CSP may be used in decision making. There are [a few adjacent areas](http://crest.cs.ucl.ac.uk/readingGroup/satSolvingTutorial-Justyna.pdf) in terms that for solving problems they all involve _constraints_: [SAT (Boolean satisfiability problem), and the SMT (satisfiability modulo theories)](https://yurichev.com/writings/SAT_SMT_by_example.pdf).

  

Generally speaking, the complexity of finding a solution for CSP is [NP-Complete](https://stackoverflow.com/a/313523/5673383), because a solution can be guessed and _verified_ relatively fast (in polynomial time), and the SAT problem (NP-Hard) can be translated into a CSP problem. But, it also means, there is no known polynomial-time _solution_. Hence, the [development of efficient algorithms and techniques for solving CSPs is crucial](http://www.cs.toronto.edu/~fbacchus/Papers/liu.pdf) and appears as a subject in many scientific pieces of research.

  

[The simplest kind of CSPs](http://aima.cs.berkeley.edu/newchap05.pdf) are defined by a set of _discrete variables_ (e.g. X, Y), _finite non-empty domains_ (e.g. 0\<X\<=4, Y\<10), and a set of _constraints_ (e.g. Y=X^2, X\<\>3) which involve some of the variables. There are distinguished two related terms: the _Possible World_ (or the _Complete Assignment_) of a CSP is an assignment of values to all variables and the _Model_ (or the _Solution_ to a CSP) is a possible world that satisfies all the constraints.

  

Within the topic, there is a programming paradigm - [Constraint Programming](https://en.wikipedia.org/wiki/Constraint_programming). It allows building a Constraint Bases System where relations between variables are stated in a form of constraints. Hence, this defines certain specifics:

- the paradigm doesn't tell a certain sequence of steps to execute to find a solution, but rather declares the solution's properties.
- it's usually characterized by non-directional computation when to satisfy constraints, computations are propagated through a system accordingly to changed conditions or variables' values.

  

A CSP can be applied in solving many real-world problems in a number of areas like mappings, assignments, planning and scheduling, games (e.g. sudoku), solving system of equations, etc. There are also a few software frameworks, like [python-constraint](https://labix.org/python-constraint) and [Google OR-Tools](https://developers.google.com/optimization/), just to name a few.
How to set up cron job for WordPress
Tags: wordpresscron
Published: 2019-07-22 09:49:10

---
title: How to set up cron job for WordPress
published: true
description: How to set up cron job for WordPress? What cron job setting shall I use?
tags: WordPress Cron
---

Question:
I installed WordPress on my server, and I want to set up a cron job to trigger WordPress' cron job script. What should I do to set up the cron job?

Answer:
Our webcron service is best for triggering WordPress' cron job script. Just follow below simple steps to configure cron job for your WordPress.

https://www.easycron.com/cron-job-tutorials/how-to-set-up-cron-job-for-wordpress


![](https://thepracticaldev.s3.amazonaws.com/i/hybeqljiofgexemd0tu9.png)
GitHub Projects or Trello? What is your thing?
Tags: github, discuss, productivity, opensource
Published: 2019-07-22 09:10:23

As you most probably know, GitHub has now the feature called **[Projects](https://help.github.com/en/articles/about-project-boards)** which is pretty much a competitor to **[Trello](https://trello.com)** boards, from the first glance. I'd like to ask the DEV community which one do you prefer to use for managing your projects and why? What benefits one of them has over another one?
Thank you for your opinions and have a productive week!
Creative Button Animation Effects Only Using HTML & CSS
Tags: html, css, animation, codepen
Published: 2019-07-22 09:01:12


---
title: Creative Button Animation Effects Only Using HTML & CSS
published: true
description: 
tags: html, css, animation, codepen
---

<p>Hello Guys! I have brought to you awesome example of creating button animation effects using only html & css.
</p>

{% codepen https://codepen.io/ahmadbassamemran/pen/PMqayW %}
<hr/>
[Do Not Forget To Like & Subscribe In The Channel:](https://www.youtube.com/AhmadEmran?sub_confirmation=1)
<hr/>
{% youtube 5wu4BmN6QHg %}
Instrumenting a Rails application
Tags: linux, sre, devops
Published: 2019-07-22 15:02:52

---
title: Instrumenting a Rails application
published: true
tags: linux,sre,devops
canonical_url: https://ethereal.io/2019-07-22/instrumenting-a-rails-application/
---

In the 18th of July 2019 I gave a talk at [Le Wagon Lisbon](https://www.lewagon.com/lisbon) about how to instrument a Rails application, using Prometheus.

Since [my last talk](/2019-06-28/email-me-maybe/) I grew fond of simple live coding demonstrations to convey practical knowledge as well as awareness that things are often easier than they seem. This time I went about gathering some system and custom metrics from an already existing application into an existing Prometheus server.

[The application with the end setup is available here](https://github.com/punnie/rails-prom) as a docker compose bundle that can easily be run to inspect results and do further experimentation. The instructions in the README should be clear enough to get you a working example, but if they are not then feel free to open an issue in the repository.

Happy hacking!