teleren/devto huggingface dataset:
Welcome quotes in Terminal
Tags: bash, productivity, linux, webdev
Published: 2020-02-24 12:48:36

The other day I was in a total mess, running into multiple errors after trying to adapt a big code-base to my needs. After talking with my CTO, he told me "proceed step by step", no need to rush and to implement everything on the first shot. 

Therefore I proceeded step by step and succeeded where I failed before. Starting small and then adding features. Easier to implement, easier to debug, faster progress.

I write it down on a post-it, tied to my screen. *"Step by Step"*.

Few days later, here we go again, errors everywhere I was getting lost. I learnt *"Go back to a working state"*, then proceed step by step. Another post-it added to my screen.

I gave a presentation to raise awareness about Internet security & Privacy, and I find back this sentence from E. Snowden: 
*"Arguing that you don't care about the right to privacy because you have nothing to hide is no different than saying you don't care about free speech because you have nothing to say."*

I decided to add those messages to my terminal, to read a nice and important quote every time I open a terminal (quite often).

Putting the following script in `.bashrc` or `.zshrc` will print a random emoji and a random sentence whenever I open a new terminal prompt.

```bash
# Fancy welcome message
emojis=("🎯" "🏹" "🚀")
expressions=(
        "Arguing that you don't care about the right to privacy because you have nothing to hide is no different than saying you don't care about free speech because you have nothing to say."
        "Step by step."
        "Keep it simple."
        "It doesn't work? Come back to a working state.")
RANDOM1=$$$(date +%s)
RANDOM2=$$$(date +%s)
selectedexpression=${expressions[$RANDOM1 % ${#expressions[@]} +1]}
selectedemoji=${emojis[$RANDOM2 % ${#emojis[@]} +1]}
echo "\n  ${selectedemoji} \"${selectedexpression}\"\n"
```

[Here is the github gist.](https://gist.github.com/AsterYujano/301bc9c2056615192a6aaf9d4394a816)

Output:

```bash

 🎯 "Step by step."

╭─aster@f-laptop ~
╰─$

```

Do not forget to run `source ~/.zshrc` to apply it!

Feels free to add your favorite quotes/emojis :)

Original blog post [here.](https://blog.lepape.me/welcome-quotes-in-terminal)
Get Victim's Exact Location Using Termux 📍 - 2020

Tags: termux, android, hacking, terminal
Published: 2020-02-24 12:37:50

I have also written a post on [<a href="https://www.learntermux.tech/2020/02/Get-Victims-Exact-Location-using-Termux.html">How to install IP-Tracer in Termux Without Root</a>] but that location was not precise and accurate because we were using IP addresses. Using the hidden Eye tool we are going to to get the victim's exact location using their GPS and this location will be very accurate because we are using GPS of the victim's phone. After this attack complete you will get a Google Map link that you can paste in your browser to see the location of the victim on the Google Maps.
fizzbuzz 2 questions from triplebyte
Published: 2020-02-24 12:28:54

---
title: fizzbuzz 2 questions from triplebyte
published: true
description: data on programmers
tags: 
---

I read this 
https://triplebyte.com/blog/fizzbuzz-2-0-pragmatic-programming-questions-for-software-engineers

It is a quiz that Triplebyte gave to programmers and they got a lot of responses so the data/article is interesting.

The first question is a SQL question. Make sure you can answer it! :)

I tend to harp on the SQL knowledge because I think it is soooo fundamental.

These questions are the same kind of questions I ask programmers/techies that I interview. Just watching their responses and how they think or body language gives me a good idea about where they are on a technical scale.
Pre: DevOps 100 Days Of Code Challenge
Tags: 100daysofcode, django, docker, vue
Published: 2020-02-24 12:22:49

    

   I saw a challenge some of the dev.to shared on this platform. I find it very interesting and decided to start doing my own. Anyway since i do not have any sosial media to begin with and think... Hurm why not just post my progress in Dev.to, kinda be fitting considering I learn so much from here.

   Since I just decided to do this project in the span of 100 days, I think I may need to lay out a plan on what I wanna do and how to do it. I plan to learn how to set up a kubernetes on a cloud platform ( Alibaba Cloud ). This will in turn orchestrate a bunch of Docker docks that will run a Vue.js/Bootstrap 4 frontend, a Django ( Code Red CMS) for the backend, and also Prosgresql for the database. To make it all work while, I will also be setting up Ubuntu 18.4 LTS for hardening and while also making sure I could create 3 distinct enviroment, 1 for Development, 1 for SIT and UAT, and one for Production. Because I am cheap, I will also be using free application ( gmail for my email server), no integration with any 3rd party application that would cost me a fortune. The whole project will be track and control with the use of GitHub and also for Continues Integrations ( not sure yet ). I think a long the way I will quote a lot of people blog and solution which enable me to make this project a reality. To be honest I do not expect this project to finish within the 100 days time frame but I hope this will definitely develop me as a full Stack DevOps developer.

A recap:
1) Cloud Application ( Alibaba Cloud ) 
2) Kubernetes Orchestration.
3) Docker pods
4) Vue.JS/Bootstrap 4 Frontend
5) Django ( Code Red CMS ) Backend
6) Postgresql Database
7) Gunicorn Backend Server
8) Ubuntu 18.4 LTS hardening and configuration
9) 3 distinct Environment to get for Development, UAT/SIT, Production
10) Git repo on GitHub and CI(to be determine)

TL;DR:
A full blown Full Stack DevOps development project.
What is tkinter?
Tags: python, beginners
Published: 2020-02-24 12:20:10

To make a graphical user interface, you can use the tkinter module. <a href="https://docs.python.org/3/library/tkinter.html">Tkinter</a> is a module for GUIs (based on the Tk GUI toolkit).  

This is the standard graphical user interface for Python. Tkinter is included with Linux, Microsoft Windows and Mac OS X.

Of course there are other GUI modules like <a href="https://pythonspot.com/pyqt5/">PyQt</a>, <a href="https://pygobject.readthedocs.io/en/latest/">PyGTK</a>, <a href="https://pypi.org/project/simplegui/">simpleGUI</a> and others. One of the advantages of tkinter is that it's included by default and you can learn it quickly.

![tkinter app](https://dev-to-uploads.s3.amazonaws.com/i/zgg6t3imnvrh2au77kkx.png)

## Example

With tkinter you can quickly build graphical interfaces. The example below shows you the hello world app.

```python
from tkinter import *

root = Tk()

w = Label(root, text="Hello, world!")
w.pack()

root.mainloop()
```

![tkinter hello world](https://dev-to-uploads.s3.amazonaws.com/i/alhmvnlpy4qjqyxrysas.png)

It loads the module like this:

```python
from tkinter import *
```

If you get an import error, make sure you are using Python version 3 or newer.

    python --version

Then tk (root window) is initialized with:


```python
root = Tk()
```

A label with the text "Hello world" is created and added to the root window

```python
w = Label(root, text="Hello, world!")
w.pack()
```

You can add many widgets to your window like <a href="https://pythonbasics.org/tkinter-button/">buttons</a>, <a href="https://pythonbasics.org/tkinter-menu/">file menu</a>, <a href="https://pythonbasics.org/tkinter-image/">images</a> an <a href="https://pythonbasics.org/tkinter-entry/">input box</a> and others.

**Related links:**
* <a href="https://docs.python.org/3/library/tkinter.html">Tkinter documentation</a>
* <a href="https://gumroad.com/l/ErLc">Tkinter video course</a>
One Difference Between Smart and Professional Programmer
Tags: codequality, programming, developer, coding
Published: 2020-02-24 12:10:29

*Programmers are pretty smart people.*


**Smart Programmer**

Smart people sometimes like to show off their smarts by demonstrating their mental juggling abilities.
if you can reliably remember you can write similar code.
           
<code>for (int j=0; j<34; j++) {
    s += (t[j]*4)/5;
}</code>


**Professional Programmer**

A professional programmer understands that *clarity is king*. Professionals use their powers for good and write code that others can understand.
<code>
int realDaysPerIdealDay = 4;
const int WORK_DAYS_PER_WEEK = 5;
int sum = 0;
for (int j=0; j < NUMBER_OF_TASKS; j++) {
          int realTaskDays = taskEstimate[j] * realDaysPerIdealDay;
          int realTaskWeeks = (realdays / WORK_DAYS_PER_WEEK);
          sum += realTaskWeeks;
}
</code>

Write readable and understandable code.

i couldn't add indentation, if you know please write in comment.

Keep Learning!
A Journey into the Tech World
Published: 2020-02-24 12:01:59

I am Abimbola Cole and a few months back i was new in the tech world, but i progressed as my journey continued. The first website i made was a shopping website "Bliss". And it was an exquisite journey, this website was built purely out of HTML and Boostrap, with a little CSS. i faced some challenges, most especially with the layout and i overcame this by looking at some sample shopping website and at teh end of the day. It was a success.
Introduction to Machine Learning

Published: 2020-02-24 11:28:08

You'll find an overview of how humongous amounts of data has been generated, the best way to draw substantial business insights, techniques used to analyze unstructured and structured information, newest machine learning algorithms used to build innovative prediction models and the way to visualize data. All these are learned in view of solving many complex business issues and making organizations profitable. Case studies that are industry relevant have been making our pupils achieve accolades from the world's greatest businesses and stick out of the rest. We provide hands on practical training on Machine Learning course in Pune at SevenMentor. Our pupils are leaving footprints from the corporate world by becoming. 

VISIT- https://www.sevenmentor.com/machine-learning-course-in-pune.php
Data analysis with Pandas
Tags: python, pandas
Published: 2020-02-24 11:16:35

<a href="https://pandas.pydata.org/">Pandas</a> is a data analysis module for Python. The module was first developed in 2008 and has become one of the most popular data analysis modules.

You can read all kinds of data into Python with pandas.
This includes <a href="https://pythonprogramminglanguage.com/read-csv/">reading csv data</a> (data from txt), read from a <a href="https://pythonbasics.org/pickle/">pickle</a> object file or even the clipboard.


## Read data with pandas

Pandas is all about data. As programs almost always work with data, it's a good skill to know the pandas module.

If this is your text file (filepath.txt, with tabs)

```
1       2       3
2       3       4
3       4       5
4       5       6
5       6       7
```

Then you can read it into a pandas data frame with the lines:

```python
import pandas as pd
dataset=pd.read_csv("filepath.txt",delimiter="\t")
```

If you have a csv file, you can do

```python
data = pd.read_csv('output_list.txt', sep=",", header=None)
```

You can manually define the columns if your data doesn't have any

```python
data.columns = ["a", "b", "c", "etc."]
```

You can then work with the data frame, selecting on it, filter it etcetera.

Select a column like this:

```python
import pandas as pd
dataset=pd.read_csv("filepath.txt",delimiter="\t")
dataset.columns = ["a", "b", "c"]

print(dataset["b"])
```

This shows all your data from the previously defined text file

```python
➜  ~ python3 zoo.py
0    3
1    4
2    5
3    6
Name: b, dtype: int64
```

**Related links:**
* <a href="https://gumroad.com/l/KmxqY">Python pandas course</a>
* <a href="https://pandas.pydata.org/">Pandas module</a>
Mass delete properties from a Javascript object
Tags: javascript, tutorial
Published: 2020-02-24 11:10:00

Suppose you had an object like this:

```javascript
const person = {name: 'Obama', age: 58, occupation: 'Statesperson', country: 'America', gender: 'male', marital_status: 'married'};
```

and you'd like to delete the following properties: marital_status, occupation and gender.

What you'd probably do (but hate) is:

```javascript
delete person.marital_status;
delete person.occupation;
delete person.gender;
```

This is obviously tedious. A better way will be to use ES6's destructuring syntax:

```javascript
const {marital_status, gender, occupation, ...others} = person;
```

console logging "others" will give you the person object without marital_status, occupation and gender.

```javascript
{name: 'Obama', age: 58, country: 'America'};
```

One cool thing to note is that the order of properties is not important, however, the new variable (in this case, others) must be at the end with the three ellipsis.
Critical Interview Questions
Tags: career
Published: 2020-02-24 10:54:01

#First Aid for Interviews

In an Interview you can easyly get overwhelmed by a load of questions. Some of them are critical, other uncomfortable and others are not even allowed. Which are which and how to handle them, I will tell you now.

#Unexpected Questions

If you want a job, you can’t avoid one: the Job-Interview! You are excited that you finally get one, but you also worry about it. **The range of questions in a job interview is wide and can always cause surprises.** Especially when it come to uncomfortable topics such as dropout or abortion of your studies etc. or taboo topics in general. So how best to respond?

#Score with self-knowledge

Examine your own CV in advance, before you go to an interview.

The following points can cause a slight sweating during the interview:

* Gaps in the resume

* Abandoned study

* Frequent job changes

* Different occunational fields

Now it depends on your own attitude and on selling these topics well. As you know, gaps in your CV can arise for a variety of reasons. **Whether self-discovery or time out for health or job-seeking reasons - it is advisable to be honest here.** The answer is to be short an specific. This also applies to the other points mentioned.

Those who stand behind themselves and their descisions exude self-confidence.

#Private is Private - Taboo Topics at Job-Interviews

Another section of unpleasant questions concerns taboo topics. Anything that spills over into private life should have no place in an interview. You are welcome to provide information about your hobbies, but what your family planning looks like can be kept to yourself.

The Taboo Topics also include **questions about pregnancy, religion, ethnicity, secuality, state of health or criminal records**. Exceptions only apply if they are also relevant for the company or the job to be performed (which should definitely never be the case with family planning, religion, ethnicity or sexuality).

##But how do you react to critical questions?

1. Lying! With family planning you can e.g. for example to state in a nutshell that nothing is currently being planned. That can, but need not be true.

2. Decline! Politely, but definitely comfirm that you do not want to answer this question because it has no relevance for the item or the work performed.

3. Be quick-Witted! Quick-witted counter questions are also very good, but you should be careful not to cross a border yourself.

If you want to be on the safe side, you can also play through a wide range of questions with a second person of your choice. This can provide some confidence for one or the other.

**Whatever the questions will be at the next interview, I keep my fingers crossed for all applicants.**
Have you ever tried implementing a language spec?
Tags: discuss, language, design, thinkdeep
Published: 2020-02-24 10:34:00

---
canonical_url: null
date: 2020-02-24T10:34+00:00
dev_silo_id: 267652
published: true
series: null
tags:
- discuss
- language
- design
- thinkdeep
title: Have you ever tried implementing a language spec?
---

Recently I was reading through Safia(<kbd>@captainsafia</kbd>)'s post, where they dive into [the JavaScript spec](https://www.ecma-international.org/ecma-262/10.0/#sec-array.prototype.filter) to discuss the implementation of the `Array.prototype.filter` function:

{% link https://dev.to/captainsafia/the-fun-of-filter-according-to-the-ecmascript-spec-3ok8 %}

Reading through the algorithm, I felt the urge to implement it. I guess I'm just programmed that way :laughing:

I didn't, though. I've thought many times that it would be a fun challenge to implement a language spec, and a great way to learn about language design and the choices made by the creators of my tools. But I still have never tried.

If you've tried, what was your experience like?
If you haven't tried, why does or doesn't it sound like fun? :thinking:

(I'm asking specifically about implementing an _existing_ language spec; creating your own sounds fun, too, but not the topic I'm introducing for discussion in this post :smile: another time, perhaps!)
Ruby/GTK3 - Button
Tags: ruby
Published: 2020-02-24 09:15:29

---
title: Ruby/GTK3 - Button
published: true
description: Simple button widget example
tags: ruby
---

`gem install gtk3`

# Button

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/pesx5s1mgqony96kjwwx.png)

> "Click me" button was clicked
> "Open" button was clicked
> Closing application


```ruby
require 'gtk3'

class ButtonWindow < Gtk::Window
  def initialize
    super
    set_title 'Button Demo'
    set_border_width 10

    hbox = Gtk::Box.new(:horizontal, 6)
    add(hbox)

    button = Gtk::Button.new(label: 'Click Me')
    button.signal_connect('clicked') { on_click_me_clicked }
    hbox.pack_start(button)

    button = Gtk::Button.new(mnemonic: '_Open')
    button.signal_connect('clicked') { on_open_clicked }
    hbox.pack_start(button)

    button = Gtk::Button.new(mnemonic: '_Close')
    button.signal_connect('clicked') { on_close_clicked }
    hbox.pack_start(button)
  end

  def on_click_me_clicked
    puts '"Click me" button was clicked'
  end

  def on_open_clicked
    puts '"Open" button was clicked'
  end

  def on_close_clicked
    puts 'Closing application'
    Gtk.main_quit
  end
end

win = ButtonWindow.new
win.signal_connect('destroy') { Gtk.main_quit }
win.show_all
Gtk.main
```

Python version
* https://python-gtk-3-tutorial.readthedocs.io/en/latest/button_widgets.html
Two TraversyMedia Tutorials - I added Asp.Net Core back-end
Tags: dotnet, javascript, tutorials
Published: 2020-02-24 09:15:05

His code is only slightly changed, to add fetch api. 

And there is the added back-end, Asp.Net Core with InMemory database. See live apps and code in my blog posts.

https://mydev-journey.blogspot.com/2020/02/mybooklist-another-traversy-tutorial.html

https://mydev-journey.blogspot.com/2020/02/expense-tracker-from-traversy-media.html
Writing a simple example of Feistal Cipher
Tags: java, security
Published: 2020-02-24 08:49:35

---
title: Writing a simple example of Feistal Cipher
published: true
description: We talk about the Feistal Cipher and implement a simple proof of concept to test the algorithm out.
tags: java, security
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/0ihqqqfhpdrro5p4vwuy.jpg
---

{% youtube Lt4V3CAyDK0 %}

We talk about the Feistal Cipher and implement a simple proof of concept to test the algorithm out.
Stream Highlights: Using Visual Studio Code to Deploy Docker Image to Azure
Tags: docker, azure, vscode
Published: 2020-02-24 07:45:44

Check out my latest Twitch stream on YouTube. Today I tried deploying a dockerized Ruby on Rails application to Azure Container Registry and Web App Service. The cool part of all this is the fact that most of all these steps can be done inside for Visual Studio Code.
The extension needed to perform the magic are:
- [Docker](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-docker)
- [Azure Tools](https://marketplace.visualstudio.com/items?itemName=ms-vscode.vscode-node-azure-pack) - All the Azure extension you could possibly need together
{%youtube A4V6oqxXmbE %}
ASP .Net Web Development Company in India
Tags: dotnet, webdev, software
Published: 2020-02-24 07:27:57

Fueled by experience and creativity, leading offshore asp net development company India. Our asp net developer team delivers unique solutions tailored to each client’s needs. As a net development company, we are well-versed in creating solutions with Microsoft-certified engineers. If you are looking for innovation, hire dot net developers from Charu Mindworks.
The .NET platform is a versatile framework built to run on Microsoft ingenuity, used to power web, desktop, and mobile applications. If you’re looking for an asp net development company in India, Charu Mindworks takes you all the way from the first asp net developer step right through to the final project. When you hire dot net developers, you’ll be able to reach your project vision efficiently and cost-effectively. Whether you’re looking for an asp .net Development Company to develop an application for Windows or another server type, the .NET framework does it all, as long as you’re working with the right company.

Original: https://charumindworks.com/asp-net-web-development/
Jupiter Dev Log 1 - Setting Up Publishing To DockerHub
Tags: jupiter, post
Published: 2020-02-27 16:09:25

---
title: Jupiter Dev Log 1 - Setting Up Publishing To DockerHub
published: true
date: 2020-02-24 07:20:05 UTC
tags: jupiter,post
canonical_url: https://horia141.com/jupiter-dev-log-1-dockerhub.html
series: "Jupiter Dev Log"
---

The installation instructions were _bad_ so I had a first attempt at making a saner distribution method. Ideally Jupiter should be packaged as a Python package, a brew formula for MacOS, a deb package for Debian and derived distributions, an rpm package for RedHat and derived distributions, a docker image, etc. Once installed it should act like a regular script. So you can just `jupiter upsert-tasks` and it would work like `cat /etc/passwd`.

But I started with the Docker image cause it’s the one I’m most familiar with, and the one which seems simplest to set up. For real, all the others are quite involved! Didn’t realise this before I started reading the docs for them. Docker isn’t exactly great here, as it makes it easy to publish and manage the artifact, but relatively hard to run it locally. You’ll still need to do `docker run -it --rm --name jupiter-app -v $(pwd):/data --env TZ=Europe/Bucharest horia141/jupiter:latest …` but you’ll skip cloning, `make`ing, etc. So a partial win.

The plan was simple. First I created [public repository](https://hub.docker.com/r/horia141/jupiter) in my DockerHub account. This will be the target where the images are pushed. The next step is to add a new make `docker-push`. The `Makefile` looks like:

```
docker-build:
    docker build -t jupiter .

docker-push:
    docker tag jupiter horia141/jupiter:latest
    docker push horia141/jupiter:latest

.PHONY: docker-build docker-push

```

To build and publish a new image you’d so something like:

```
$ make docker-build
$ docker login
$ make docker-push

```

Of course, the latter step can only be done by me, or by a CI/CD tool. But that’s a discussion for another blog post.
Test your components using Angular Material’s component harnesses!
Tags: typescript, testing, javascript, angularmaterial
Published: 2020-02-24 20:53:40

---
title: Test your components using Angular Material’s component harnesses!
published: true
date: 2020-02-24 06:10:48 UTC
tags: typescript,testing,javascript,angular-material
canonical_url: https://medium.com/@kevinkreuzer/test-your-components-using-angular-materials-component-harnesses-f9c1deebdf5d
---

### Test your components with Angular Material’s component harnesses!

#### How and why to use Angular materials component harness to write reliable, stable and readable component tests

![](https://cdn-images-1.medium.com/max/1024/1*s1Z2EvqFyUWOIopj-k61gQ.png)

Simultaneously to the Angular 9 release, a new version of the Material component library was released. This release includes an absolute highlight feature, [Angular Material test harnesses](https://medium.com/@kevinkreuzer/test-your-components-using-angular-materials-component-harnesses-f9c1deebdf5d).