teleren/devto huggingface dataset:
Why do we have more male applicants than female ones?
Tags: discuss, womenintech, recruiting, diversity
Published: 2018-10-06 16:06:38

---
title: Why do we have more male applicants than female ones?
published: true
description: 
tags: #discuss #womenintech #recruiting #diversity
cover_image: https://thepracticaldev.s3.amazonaws.com/i/tuzyss5xhlte8e5bvvxs.jpg
---

I often discuss with my (male) colleagues the hiring process our company follows and the characteristics of job applicants for a given role. For women in tech, what are the criteria for selecting a particular job/role/company?

I for sure I’m biased; I really believe that it depends on the circumstances. Depending on the background each woman has, and what she wants to do next, company *A* might provide a more viable environment for her to grow than company *B*. What I’m actually saying is that women decide based on more or less the same (or similar) criteria than men do.

However, I find difficult to answer the question that follows: *“Then, why do we have more male applicants in our company than (a rather disappointing number of) female ones”?*
Let's Start a Facebook group for Indian Makers to hangout , discuss , share ideas and innovate.
Tags: india, makers, facebook, showdev
Published: 2018-10-06 14:54:50

---
title: Let's Start a Facebook group for Indian Makers to hangout , discuss , share ideas and innovate.
published: true
description: 
cover_image : https://thepracticaldev.s3.amazonaws.com/i/56yxq3f1bjy55ljbcx4q.jpg
tags: india , makers , facebook , showdev
---

I'm wondering if it would be useful to start a Facebook group for indian makers ( I was inspired by Product Hunt's Makers India). 

## Share the news and gather more Indian makers

## Join Here : [Makers India](https://m.facebook.com/groups/602322190169985?ref=bookmarks)
Basic HA setup with (docker|kubernetes)
Tags: docker, highavailablity, kubernetes, containers
Published: 2018-10-06 14:30:01

---
title: Basic HA setup with (docker|kubernetes)
published: true
description: My initial thoughts on basic HA with containers
tags: docker, high availablity, kubernetes, containers
---

We have a whole lot of web apps and services at work - most of them are not internet-facing as they are internal 'admin' type tools.  At the moment we run them as fairly 'dumb' KVM virtual machines (dumb in the sense that there's no automatic fail-over and no shared storage so each vm is a disk image on the server it's running on).

I've been working on making the apps run inside of docker containers - initially just as a way of avoiding the annoying 'this needs PHP 5.3, that needs PHP 7.2, this needs python 2.7 + ...' issues.  But I started getting more into the idea of using Docker Swarm or Kubernetes to give a more 'seamless' deployment process and allow for some kind of automatic fail-over of the apps.

After quite a lot of reading and experimentation - it feels like kubernetes is overkill for our needs.  We basically have 10-20 apps running - and the world doesn't end if they're offline for a short while.  The complexities of kubernetes seem quite high compared to Docker Swarm.  On the other hand - it doesn't feel like Swarm is winning out in the container world.

Anyway - my current thinking is to go with the following setup :

* 3xServers running docker swarm (we have two nearby physical sites)
* A virtual IP managed by something like keepalived to be the primary 'in-road' to the cluster
* [traefik](https://traefik.io/) to act as the swarm ingress
* Probably ceph as a storage layer

The end goal is that if a server running App-X goes down, then App-X is started on another server and traefik takes care of routing to the new instance.  If the primary server goes down, the keepalived brings up the IP address on another box and the traefik instance there starts handling the routing to the apps.

Most of the tutorials & guides I've found are either 'running hello world in swarm!' or 'bringing up 10,000 pods inside GKE!' with very little in the 'I'd just like stuff to kinda work if the power cord is pulled out of a box by accident' kind of thing ;-)

I'd be really interested in anyone's thoughts.  I'm hoping to try and document the process to fill in the 'bigger than hello-world, smaller than Walmart' gap I seem to be falling into ;-)
Let's Start a Open Tech Blog Together
Tags: discuss, blog, opensource
Published: 2018-10-06 14:04:22

---
title: Let's Start a Open Tech Blog Together
published: true
description: 
tags: discuss , blog , opensource
---

I am working on my blog [Adventure Of Palash](http://palash.tk) for last few months and within few days it got lots of traffic but if I had some partners , it would surely get more success.

I don't have so much money to hire some writers. 

So if any of you has some time and want to start a open Tech blog together. 

Share your ideas.
How to interface a nunchuck with a Raspberry Pi
Tags: programming, raspberrypi, hacking, hardware
Published: 2018-10-06 11:25:52

---
title: How to interface a nunchuck with a Raspberry Pi
published: true
description: How to interface a nunchuck with a Raspberry Pi
tags: Programming, RaspberryPi, hacking, hardware
canonical_url: https://domenicoluciani.com/2014/04/11/how-to-interface-a-nunchuck-with-raspberry-pi.html
cover_image: https://domenicoluciani.com/assets/images/covers/nunchuck.jpg

---

Walking around the city I found a cheap nunchuck and obviously I felt the need to do something. This time I chose to interface my raspberry pi with it. 
Let’s see how, [continue to read here](https://domenicoluciani.com/2014/04/11/how-to-interface-a-nunchuck-with-raspberry-pi.html)!
Laravel mail from localhost
Tags: laravel, angular
Published: 2018-10-06 09:21:54

---
title: Laravel mail from localhost
published: true
description: Laravel mail from localhost
tags: laravel, Angular
---

Hello to dev,

Here I am going to share the working and tested link for Laravel mail from localhost:

[Laravel mail from localhost](https://therichpost.com/best-practices-send-mail-from-localhost-in-laravel)

[Laravel mail from localhost with Angular](https://therichpost.com/sending-mail-from-localhost-in-laravel-with-angular
)


Hope this will help.

Thank you,
Therichpost
Video walk-throughs: "live" coding vs going through written code?
Tags: help
Published: 2018-10-06 07:50:30

---
title: Video walk-throughs: "live" coding vs going through written code?
published: true
description: Does "live" coding get boring or is it more interesting than just looking at existing code?
tags: help
---

I've done some video walk-throughs and am preparing some new ones, but there's a doubt I still have: 

Should I code while recording or have the code prepared beforehand and go through it?

On one hand I think it's cool to see the coding process, but that makes the videos longer and may make them boring.

What do you think?
Dynamic SQL cheatsheet 
Tags: sql, ibmi, clojure
Published: 2018-10-06 07:39:45

---
title: Dynamic SQL cheatsheet 
published: true
description: 
tags: SQL, IBMi, Clojure
---
I have been writing a lot of my own IBMi diagnostic tools lately using Clojure and ClojureScript.  

One of the problems I often encounter is needing to track down some data without having a great understanding of the tables and data I am querying..  So I built this tool to help me build queries.  

![sqlbuilder-image](https://thepracticaldev.s3.amazonaws.com/i/88pcutqw1ce5aglwr18c.png)

When I select a machine,  it selects a default schema and gives me a list of all possible tables.   I select a table and press 'Get Sample' and it fetches me the 'Select * FROM table Limit 5' and displays the results.  This is very helpful in that I can see the field names as well the format used for the data in each field.  Sometimes my 5 samples don't give me enough information.  Perhaps all five samples have the same value in a field or no value at all.  I added a sample button in each row to help me with this case.  When it is pressed, it fetches me the first five 5 distinct values from that field. Does this customer use this field at all?  Is it what I think it is?  Answers are often a click away.

At the bottom of the sample, I have a textbox in which I can type a SQL query.  It's much easier now that I have a dynamically generated cheat sheet that gives me hints for any table. 

It is already very helpful.  Questions like "what date format" are no longer guesswork.  

I plan to enhance it by having it suggest joins for me.  I also plan to have it save queries for future use, and have it suggest those queries when a particular table is selected.  I may add full interactive SQL capabilities to it.  Time will tell.
BookFire.app
Tags: angular
Published: 2018-10-06 03:14:13

---
title: BookFire.app
published: true
description: Books that change lives
tags: angular
---

Hi the DEV community!

I just deployed an ANGULAR app on personal development.
Simple and straight to the point, you can browse to some of the most impactful books and personalities of the last decades.
**Check it out here:** [Bookfire.app](https://bookfire.app)

Peace
Any open source django projects to start practicing with?
Tags: beginners, webdev, django, python
Published: 2018-10-06 01:59:50

---
title: Any open source django projects to start practicing with?
published: true
description: Any open source django projects to start practicing with?
tags: beginners,webdev,django,python
cover_image: https://www.djangoproject.com/s/img/logos/django-logo-positive.png
---
Test LLVM Go binding in travis
Tags: llvm, go, testing, travis
Published: 2018-10-06 12:07:06

---
title: Test LLVM Go binding in travis
published: true
tags: llvm,golang,testing,travis
canonical_url: https://dannypsnl.github.io//llvm/golang/testing/travis/2018/10/06/test-llvm-go-binding-in-travis.html
---

Basically, the problem is because I use Go binding of LLVM, then it hard to use preinstalled LLVM.

This article is about how I solve the problem step by step.

First we need to install dependencies by apt-get(travis use ubuntu 14.04 if you do not spec anything)

```yaml
dist: trusty
addons:
  apt:
    sources:
      - ubuntu-toolchain-r-test
      - llvm-toolchain-trusty
    packages:
      - g++-4.9
      - clang-8
      - clang-tools-8
      - libclang-common-8-dev
      - libclang-8-dev
      - libclang1-8
      - libllvm8
      - llvm-8
      - llvm-8-dev
      - llvm-8-runtime
      - libfuzzer-8-dev
      - lldb-8
      - lld-8
```

Now we get LLVM 8 on Travis.

Then we need to setup environment variables:

```yaml
env:
  - CC=clang-8 CGO_CXXFLAGS=-std=c++11 CGO_LDFLAGS_ALLOW='Wl,(search_paths_first|headerpad_max_install_names)' CGO_CPPFLAGS="`llvm-config-8 --cppflags`" CGO_LDFLAGS="`llvm-config-8 --ldflags --libs --system-libs all`"
```

`llvm-config` is a helper tool of LLVM that would generate the meta data for your program, e.g. `llvm-config --cppflags` contains include path to installed headers path of LLVM.

At here the suffix `-8` is because it installed like that.

But if you compile your Go binding now, you would get some what `run_build_sh` is undefined.

This is because at `llvm.org/llvm/bindings/go/llvm/llvm_dep.go` contains a type check bound to make sure type `run_build_sh` generated.It can only be generated by run `llvm.org/llvm/bindings/go/build.sh`

But if we dig into build flow, we will find `llvm.org/llvm/tools/llvm-go/llvm-go.go` generated the thing!It works like:

```bash
go build $GOPATH/src/llvm.org/llvm/tools/llvm-go/llvm-go.go
./llvm-go print-config $GOPATH/src/llvm.org/llvm/bindings/go/llvm/llvm_config.go
```

Now we can work with latest version of LLVM basically, but if you install some older LLVM in your machine, it won’t compile!

Because Go binding would expect some variable, but C didn’t have one(old version).

The solution is go to [http://releases.llvm.org](http://releases.llvm.org) to download spec version(should be the same as installed in your system) to get binding source.

Use LLVM 6.0 to be example:

```bash
mkdir -p $GOPATH/src/llvm.org && cd $GOPATH/src/llvm.org
curl -XGET http://releases.llvm.org/6.0.0/llvm-6.0.0.src.tar.xz >> llvm.tar.xz
tar -xf llvm.tar.xz
mv llvm-6.0.0.src llvm
```

Now, you can test your code by preinstalled LLVM!
Quick CSS Quiz #3
Tags: challenge, css, quick, quiz
Published: 2018-10-05 22:43:29

---
title: Quick CSS Quiz #3
published: true
description: A quick CSS quiz, can be solved under 5 minutes.
tags: challenge, css, quick, quiz
cover_image: https://thepracticaldev.s3.amazonaws.com/i/k5d9skgezv5gebfgg016.jpg
series: quick css quiz
---
In this series, I try to focus on CSS weird parts, throw quiz and its answer, hoping to give a better understanding of how CSS works in depth.

## The problem:
Having the following code snippet, for a paragraph element with **`font-size`** equals *12px*, you want the paragraph's `line-height` to be equals to the double of its `font-size`(*24px*). Which of the following `line-height` values will achieve this if you apply it to the `body` element?
(note that the default font-size for browser is *16px*)


```html
<p style="font-size: 12px">Having fun solving CSS Quiz</p>

<style>
body {
  line-height: <value>;
}
</style>
```

## Options:
* 200%
* 2em
* 2
* double


## The answer:
you can find the answer below, but please give yourself a couple of minutes to think about it, to make sure you benefit from this quiz.


---
---
---
---
---
<center>👇👇👇</center>
---
---
---
---
---

The correct answer is: **`"2"`** 🎉🎉
If you wonder why this is the correct answer, please read the discussions below, I will post the explanation soon.

Cover image original artwork by: [Sergi Delgado](https://sergidelgado.com/lab/dzcy5natjpj3alswxd02t0ch0xfrb0)
Short and cheesy post about dev.to's community
Tags: meta
Published: 2018-10-05 21:50:56

---
title: Short and cheesy post about dev.to's community 
published: true
description: The power of this community
tags: meta
---

I'm sure some of you noticed that I comment a lot but there are a few things that, especially juniors / newbies / less experienced people, you might want to hear:

* **I don't know everything I write about** and I think it's okay.

* More than one time I had to research a new topic, had to learn something new, then had to correlate this new information with my own experience and then finally decided to write a comment to help whomever wrote the post. The emphasis is on **learned something new**. This reminds me of the various articles floating around here about the importance of junior developers in teams.

* Other times I saved posts I found interesting, read other people's answers even days later and... **changed my opinion** on this topic or that other one.

So, thank you dev.to community because since last year I definitely learned a lot, from people of all walks of life and levels of experience or different interests than mine.

I wish I had a community like this back when I started in... nope not going to tell you how old I am :D
Why do some languages disrupt some common and habitual conventions?
Tags: discuss, languages
Published: 2018-10-05 20:09:28

---
title: Why do some languages disrupt some common and habitual conventions?
published: true
description: 
tags: discuss, languages
---

I am diving into Golang, those days. I have noticed that the syntax is most of the times against the "common sense". 

For example, this how they declare an array and a function:

```
var books [5]string

func printListInts(intz ...int) {
	fmt.Println(intz)
}
```

where most languages do it like

```
books = string[5] // The length on the right
function foo(int ...mylist) { // Type on the left
}
```

I am very happy to see structural changes to a languages logic but why are they doing such "trivial" and "nonsense" changes?
Today, AMA w/ IOST CTO Terrence Wang at 6PM PST [GMT +7] 
Published: 2018-10-05 20:04:14

---
title: Today, AMA w/ IOST CTO Terrence Wang at 6PM PST [GMT +7] 
published: true
description: AMA with IOST CTO about testnet that includes JavaScript support for smart contracts. 
tags: 
---
Sandalwood WordPress Blog Theme Needs Collaborators
Tags: hacktoberfest, webdev, beginners, discuss
Published: 2018-10-05 19:41:59

---
title: Sandalwood WordPress Blog Theme Needs Collaborators
published: true
description:  Sandalwood WordPress Blog Theme needs help regarding Customizer API from collaborators, who can contribute from it's GitHub repo
canonical_url: https://github.com/ihtishamzahoor/sandalwood
cover_image: https://thepracticaldev.s3.amazonaws.com/i/cw7eg3fv4vft3pm38lxf.png
tags: hacktoberfest, webdev, beginners, discuss
---

Hey folks 🙌

I am working on new features of my WordPress Theme Directory approved theme viz. Sandalwood. I need help regarding Customizer API from collaborators, who can contribute from it's GitHub repo on following URL:



{% github https://github.com/ihtishamzahoor/sandalwood %}


It would mean a lot for me and would give me confidence to keep contributing to open source, if you guys could have a look and help me improve it.

Thank you! #Peace ✌️
A Learning Path for Newbies in WordPress Development
Tags: wordpress, webdev, beginners, discuss
Published: 2018-10-05 19:37:34

---
title: A Learning Path for Newbies in WordPress Development
published: true
description: A Learning Path article illustrated as step-by-step guide for Newbies in WordPress Development
canonical_url: https://ihtishamzahoor.com/a-learning-path-for-newbies-in-wordpress-development/
cover_image: https://raw.githubusercontent.com/ihtishamzahoor/wordpress-learning-path/master/images/wordpress-learning-path-v2-resized.png
tags: wordpress, webdev, beginners, discuss
---

Hey folks 🙌


I have designed a step-by-step guide as a learning path for newbies in WordPress development and shared it on GitHub on following URL:

https://github.com/ihtishamzahoor/wordpress-learning-path

I have also included this step-by-step illustrated guide on my freeCodeCamp article on following URL:

https://medium.com/@ihtishamzahoor/learning-path-for-newbies-in-wordpress-development-a283981adf53



It would be a privilege for me if you guys could have a look and help me improve it, even collaborate with it on GitHub.


Thank you! #Peace ✌️
Emerging Languages
Tags: languages, newtech, learning
Published: 2018-10-31 18:21:37

---
title: Emerging Languages
published: true
tags: ["languages", "newtech", "learning"]
canonical_url: https://arschles.com/blog/emerging-languages/
---

My history with programming languages and frameworks is approximately this:

- I started my career writing PHP 3
    - ... then prototype.js to go along with it on the frontend!
- Then I wrote C/C++ ([Boost](https://www.boost.org/) forever!)
- Then I discovered Java, Scala, Objective-C, Perl, Python, Clojure and Haskell all at once
- Then I ditched it all for Go

Oh, and throw some JQuery / Backbone.js, and then React in there.

I've been pretty focused on Go for a while and was missing learning new languages. [@bketelsen](https://twitter.com/bketelsen) introduced me to [Nim](https://nim-lang.org/) and then I wanted more. So between my curiousity and his endless list of cool new tech, I've been checking out a few languages. 

Here they are, along with my summaries of them:

- [Elixir](https://elixir-lang.org/) - Ruby with less monkey patching but more macros
- [Rust](https://en.wikipedia.org/wiki/Rust_(programming_language)) - C++ with more bullets to shoot yourself in the foot with, but less foot
- [Crystal](https://crystal-lang.org/) - Compile Ruby to machine code. And now you can use all the cores!
- [Ballerina](https://ballerina.io/) - Kinda like [Metaparticle](https://metaparticle.io/), except it's a language
- [Swift](https://swift.org/) - Objective C and Scala had a baby, and you can compile it on the LLVM
    - I know this isn't exactly "emerging" since there are probably thousands of Mac and iOS apps out there in Swift, but the language is emerging on the server side. Stay tuned!
- [Elm](https://elm-lang.org/) - Javascript if it was written on purpose

Ok, I know it seems like I'm pretty sarcastic about all these languages, but I'm legitimately excited about everything I wrote above! Plus, there's some truth to all of it...

My biggest challenge now is to find something "real" to build with either of them. If you have any ideas, write them in the comments!
What's the best way to indicate an issue is good for beginners to try?
Tags: discuss
Published: 2018-10-05 18:45:41

---
title: What's the best way to indicate an issue is good for beginners to try?
published: true
description: 
tags: discuss
---

We just added a 'newbie-friendly' label to the DEV Community repo but we're concerned that this might actually promote negative feelings if the dev who attempts it can't figure out how to implement. 

The goal is, of course, to identify issues that *might* be 'easier' but we don't want anyone to feel discouraged if they can't do it! Writing software is complicated and nothing is ever as simple as they seem.
Letter to a Computer Science college fresher
Tags: fresher, college, advice
Published: 2018-10-05 17:55:36

---
title: Letter to a Computer Science college fresher
published: true
description: I was recently asked by a Computer Science college fresher about plans and advice for this new adventure of theirs. Here is the exact reply I sent.
tags: fresher,college,advice
---

![cover](https://s3.us-east-2.amazonaws.com/devletters/covers/fresher.jpeg)

> First published on [Dev Letters](https://devletters.com/letters/letter-to-a-fresher/)

I was recently asked by a Computer Science college fresher about plans and advice for this new adventure of theirs. Here is the exact reply I sent.

----

Hi Slim,

I don't know if this will be a self-fulfilling answer. But here it goes.

The truth is, you can't really plan a lot. At least, that's what I believe in. Instead, find something that you are interested in, and do it.

Like, for example, at first, I got interested in how Android apps were built. So I learned the shit out of Android development in a couple of days. Obviously, you can't do that by following a course or something (it helps though I will say).

I think the most important thing in the process of learning is putting it into practice. As they say "All work and no play makes Jack a dull boy". Maybe, this is something similar to that.

If you just learn a lot and don't do anything practical with it, you won't make much real progress. I for one have felt this in fitness, and other personal areas. I have read a lot, I know a lot but I am not a lot.

So that's my #1 advice I will give to anyone. 

If you are specifically asking about courses and such, my best suggestion would be learning from the best Udemy courses.

Just go up there and search for the term you want to learn. Like "Python".

You will see courses with a high number of ratings (10k+) and a good average score (4.5+). Those are the courses that you can blindly pay for. And they are cheap, like 700Rs (10$) so no harm done if it doesn't help you.

And apart from that, keep an eye open on internship opportunities (use Angel.co). There are remote internships which don't require to be physically present in the company's office. You can apply for them, even with college going on (not recommended though). 

I know, at first you might feel that you are not good enough for those internships, but trust me, everyone feels like that.

Even if you are 40-50% of what the internship demands, you should apply for it. You can always learn more things later, either when you are actually doing the internship OR in the time you have before starting the internship.

Internships are important because there is just so much you can learn by making personal projects. 

They give you a glimpse of real-world software development that is invaluable. I will go as far as to say that you should be open to taking an unpaid internship as your first, provided you are taking it soon enough. 

I think that's pretty much what I can think right now. Maybe I missed something but I am writing a lot these days.

You can follow my mailing list at https://devletters.com.

Best,
Avi