teleren/devto huggingface dataset:
Manage your Github Projects easily
Tags: github, showdev, sideprojects, productivity
Published: 2020-08-22 18:24:52

Do you have a lot of repositories on GitHub and are always making changes to them? 
Do you work on multiple machines, and are struggling to keep the repositories in sync?
Have you ever moved to a new machine and spent what seems like an eternity cloning all your projects one by one?

If your answer to any of these questions was yes, well I have a solution for you. 

![GHPM](https://dev-to-uploads.s3.amazonaws.com/i/8rl0hy56prqu361ozvzy.jpg)

## Introducing [GHPM - GitHub Project Manager](https://github.com/2kabhishek/ghpm)

It is a utility to fix a few problems a developer faces while managing GitHub projects.

GHPM allows you to clone all the repositories in a user's GitHub profile, saving you lots of time. All the repositories will be cloned in the current directory.

It lets you pull and push changes for all the git repositories in a directory, saving you lots of cd and git pull/push.

It also has a option to quickly change the remote repository protocol from https to ssh, so you don't have to manually use it.

You can find all the installation and usage information [here](https://github.com/2kabhishek/ghpm).
If you have any issues or requests feel free to create an issue over on GitHub, and if you have any contributions you are always welcome.

I hope this tool helps you to manage your GitHub projects as much as it helped me.


{% github 2kabhishek/ghpm %}
How I coded a Cookie Free Geo Tracking App
Tags: webdev, java
Published: 2020-08-22 18:19:19

How I coded a Cookie Free Geo Tracking app - Steps and Challenges
  
Mission: to avoid having to provide cookie notice on website, a PECR Reg...and part of GDPR compliance. An alternative to GA, wix, wordpress, cloudflare, PHP, Java session all of which place third party cookies on ur device and put u at risk for non compliance with the LAW


Part 1 - the Architecture, first the high level outline

Windows 10 platform - with rdp - remote desktop to connect to ur ec2 ip address

Aws EC2 - nano instance and route 53 = free for 12 months then $10 per month - host ur DNS here

Apache 2.4 http server - host ur web pages

Tomcat and Java Servlets - connectivity to data with JDBC 

JQuery - javascript with AJAX - pass data from dbase to frontend web page

SQLite Database embedded directly in Java app - host ur secure database



Part 2 - the Challenges

Ssl was my biggest pain in the butt.

Cookies were also a pain - Wix, Wordpress, Cloudflare, Google Analytics all place a third party cookie on ur device

Using public geo tracker - finding the right one

GDPR

Responsive website

Working on a master template for a home page - how many things do I want my site to do? How much functionality do i want? The javascript challenge

Wrestling with the column model in html table

JSON

Circumventing PHP and JAVA session objects and their cookies

I will start expanding on each topic shortly and I have much to write about, so check back weekly for updates…..HAVE FUN coding !!!! or learning to code

See live demo at https://cookiefreecoders.com
    Click menu options and see ur real time page visits update each minute
Python
Tags: beginners, python
Published: 2020-08-22 18:03:26

So if any of you want to get into programming. Then it's not that hard.

Basic thing you need is:
1. Knowledge of English
2. Good at logical thinking
3. And Basic math stuffs

You can search 
online,
watch tutorials on youtube
Learn through basics by printing hello world. And then you will get into other deep technical things.
Account middleware in Ruby On Rails
Tags: rails, middleware
Published: 2020-08-22 17:00:00

---
title: Account middleware in Ruby On Rails
published: true
description: Account middleware using CurrentAttributes
tags: rails, middleware
//cover_image: https://direct_url_to_image.jpg
---

If you want to identify each request to your Rails application with specific account, you don't have to change your `routes.rb`

Instead, you can use Custom Middleware to implement this option.

First, let's use [ActiveSupport::CurrentAttributes](https://api.rubyonrails.org/classes/ActiveSupport/CurrentAttributes.html). It will simplify the per-request attributes access.

```ruby
# app/models/current.rb
class Current < ActiveSupport::CurrentAttributes
  attribute :account
end
```

This is our `AccountMiddlreware` that will identify an Account by the id, and update the request path accordingly.

```ruby
# lib/acount_middleware.rb

class AccountMiddleware
  def initialize(app)
    @app = app
  end

  # https://youapp.com/12345/projects
  def call(env)
    request = ActionDispatch::Request.new env
    _, account_id, request_path = request.path.split('/', 3)

    if account_id =~ /\d+/
      if account = Account.find_by(id: account_id)
        Current.account = account
      else
        return [302, { "Location" => "/" }, []]
      end

      request.script_name  = "/#{account_id}"
      request.path_info    = "/#{request_path}"
    end

    @app.call(request.env)
  end
end
```

Note:
`request.script_name` is required to overwrite other links on the page. Otherwise, the new link will be: `/projects/new`
w/o the `account_id`.

Add the middleware to your application and restart your Rails server.

```ruby
# config/application.rb

require_relative '../lib/account_middleware'

class Application < Rails::Application
  # ...

  config.middleware.use AccountMiddleware
end
```

Happy Hacking!
DynamoDB as EventStore
Tags: aws, terraform, eventdriven
Published: 2020-08-22 16:45:03

I would like to share with you  how we managed to deploy a solution to store Domain Events in DynamoDB in 2 days (and mostly because of AWS permission issues...😅).

We needed to store how the user interacted with different Domain Models and decouple that storage from the monolithic so they can grow independently. We aimed to create something super simple, or at least not that complex, in 2 to 3 days.

We decided to give a try to process events as:

`Monolith sends message to ➡️ SQS ➡️ Triggers Lambda to store it into ➡️ DynamoDB Table`

Even though DynamoDB might not be an optimal solution to be used as Event Store, we have given it a try for the next reasons:

- It is fully managed by AWS
- It is cheap enough
- We don't require high write throughput nor read for the moment.
- Able to encrypt the content

## Implementation

We decided to go with:

- [Terraform](https://www.terraform.io/) as Infrastructure as Code
- Python for [AWS Lambda](https://aws.amazon.com/lambda/)

[![gif](https://media.giphy.com/media/du3J3cXyzhj75IOgvA/giphy.gif)](https://github.com/aleixmorgadas/dynamodb-as-eventstore)

[Source Code](https://github.com/aleixmorgadas/dynamodb-as-eventstore)

-----

## Feedback

What would you do differently? Did I miss something? Did you have a similar solution for a similar problem?
My Coding Journey
Tags: html, css, javascript, bootstrap
Published: 2020-08-22 16:36:31

Funny how when I was attending college and just so happened to fall into a basic computer programming class that I can distinctly remember myself thinking how much I hated it and thinking that this was a class I certainly was going to fail. I ended up getting a strong C from my instructor due to the fact that the final project that I did was making a sprite move around using this program called Alice. Thinking about it now I realize that I in all actuality didn't even write a line of code to finish on time. Now fast-forwarding to today I've fallen in love with the syntax and the overall creative process and how one line of CSS code can completely change the look of any project. 

From the first time that I said "Hello World" over 5 years ago then stumbling into this tool called React.JS, I realize that there is a whole digital world out there just waiting on me to discover it, or even better...create it.
Helloo World!
Tags: writing, startup, beginners
Published: 2020-08-22 16:24:38

Welcome 🎀
## I am **Aman Tyagi**, a front-end developer

I am very excited to start my journey as a blogger,

and

I am going to start a new life as a new Aman Tyagi who will now Blog his journey to be a better person as well a better web developer,

I hope you lovely people will hold my back and help me, to improve and to be a better version of myself by sharing some awesome tips or suggestions you have in your mind for me or my blog,

Thank you 💜

your awesome friend!

Aman Tyagi

aspiring front-end developer
Basti Khabar - Today Latest News, Breaking Headlines, Trending News
Published: 2020-08-22 16:23:33

Basti Khabar - Today Latest News, Breaking Headlines, Trending News, Live News Hindi, आज की ताजा खबर, Breaking News (ब्रेकिंग न्यूज़), ताजा समाचार हिंदी
https://bastikhabar.online/
[Memo] Dart x Flutter: Get widget offset and size in real time
Tags: dart, flutter
Published: 2020-08-22 16:01:38


When you change the screen size with Flutter for Web
When you want to overwrite arbitrary DOM on Widget

```
class MyContainer extends SingleChildRenderObjectWidget {
  MyContainer({Key key,Widget child}):super(key:key, child:child);

  double lastDx = 0.0;
  double lastDy = 0.0;
  double lastDw = 0.0;
  double lastDh = 0.0;

  @override
  RenderObject createRenderObject(BuildContext context) {
    return MyContainerRenderObject(this);
  }
}

class MyContainerRenderObject extends RenderProxyBox {
  MyContainer myparent;

  MyContainerRenderObject(this.myparent) {

  }

  @override
  void paint(PaintingContext context, Offset offset) {
    assert(!debugNeedsLayout);
    this.myparent.lastDx = offset.dx;
    this.myparent.lastDy = offset.dy;
    this.myparent.lastDw = size.width;
    this.myparent.lastDh = size.height;
    print("size: ${this.size}");
    print("offset ${offset.dx} ${offset.dy}");
    super.paint(context, offset);
  }
}
```
forEach( ): Object.values / Object.keys
Tags: javascript, html, tutorial, beginners
Published: 2020-08-22 16:00:20

Hi!🙋‍♂️

I wrote this article for show you this 3 forEach ways:

Take this simply array:
```javascript
var array = [
    {
        name: 'John'
    },
    {
        name: 'Mary'
    }
];
```

If you want to cycle the element with forEach() method, you have three ways:
 
###Keys:

Object.keys
```javascript
Object.keys(array).forEach(function(key) {
    console.log(key); //--> 0 1
});
```

###Values:
Object.values
```javascript
Object.values(array).forEach(function(value) {
    console.log(value);  //--> name: 'John' name: 'Mary'
    console.log(value.name);  //--> John Mary
});
```

###forEach:
.forEach
```javascript
array.forEach(function (val) {
    console.log(val); //--> name: 'John' name: 'Mary'
})
```
What is an API?
Tags: javascript, testing, tutorial, beginners
Published: 2020-08-22 15:56:58

API stands for Application Programming Interface. In this modern technology world, we interact with APIs every day! 

For example, when you access a website like Expedia, Kayak, or any other travel booking sites to book your next vacation and you see all the packages with different hotels and flight information, all that information is provided to you using the help of an API. 

In simple terms, API acts as a messenger that takes your request (in the above example, your vacation details) and tells the system (flight/hotel sites) to provide the requested data (response) back to you. 

#### In the video below, we will deep dive into the basics of an API -
{% youtube HwYQwBQkcSU %}

Follow [@automationbro](https://twitter.com/automationbro) on Twitter for latest updates
Subscribe to my [YouTube](https://www.youtube.com/channel/UCjugV5pnY6WjvTGYm7U1ucg?sub_confirmation=1) channel to see more content like this
#30DaysOfCJS: Move over GUI, let's build a VUI with JavaScript!
Tags: community, javascript, vui, lambda
Published: 2020-08-22 15:39:10

---
title: #30DaysOfCJS: Move over GUI, let's build a VUI with JavaScript!
published: true
description: #30DaysOfCJS Day 22, Futurist Code Bases - Integrating JS of the Future Today
tags: community, javascript, vui, lambda
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/ny4jlxjvmrcw768ogo3y.png
series: 30DaysOfCJS
---

*This is a follow up post for Day 22 of* **#30DaysOfCJS**, *learn more about* **#30DaysOfCJS** *here* {% link jimcalliu/30daysofcjs-1jd3 %}

**Move over GUI, let's build a VUI with JavaScript! // Memo Döring // CascadiaJS 2018**

If you'd like to watch the talk, here is the Youtube link.
{% youtube HjWr40_N1Fg%}

Further readings:
- [Alexa Skills Kits: What is VUI?](https://developer.amazon.com/en-US/alexa/alexa-skills-kit/vui)
- [Design for future with Voice Prototypes](https://www.smashingmagazine.com/2019/05/future-design-voice-prototypes/)
Few unaddressed mistakes newbies do and things to do.
Tags: beginners, career, codenewbie, computerscience
Published: 2020-08-22 15:35:59

# **Things to Avoid**
###  **Learning everything**
Believe me or not. Take advice from someone who had done this mistake once. Coding turns into an obsession once you start to take a liking to it but passion isn't the only thing that matters. You should put time for your family and friends too. Remember this:  
> Learning every programming language would be a waste of your precious memory.

###    **Memorizing functions**
Docs exist for a reason. Real pros don't memorize everything, they read the docs. 

###  **Lacking confidense**
I know, I've been through this too. There are tons of pros showing off their skills online and among so many pros it's normal to feel depressed. Don't feel low though. You're new and the pros struggled the same way you are.

###  **Getting distracted**
So, you were learning game development but now got interested in Machine Learning/ Web Development? Fear not my friend it happens but don't let it persist. Set goals and finish them. Starting new things is not bad but leaving works unfinished is evil. Don't do that.


Remember:
1. Documentations are love.
2. Stick to your goals.
3. Stay motivated
4. Don't compare yourself to others

Learn new things and Innovate <3.
[Tutorial Linux] Terminal: Removendo arquivos e diretórios
Tags: linux, rm, rmdir, womakerscode
Published: 2020-08-22 15:28:47

![disclaimer](https://dev-to-uploads.s3.amazonaws.com/i/zuscqyo1szuhyit2djhd.jpeg)
> [toca a sirene de Kill Bill](https://www.youtube.com/watch?v=cOy6hqzfsAs)

## Removendo um diretório vazio

Para excluir uma pasta vazia, usamos o comando:

```
$ rmdir <nome_da_pasta>
```

- **$** indica que você deve usar o **usuário comum** para fazer essa operação.

- **rmdir** do inglês,*remove directory*, é o comando que vai excluir a pasta/diretório.

- digite o nome da pasta sem os sinais **< >**.

![deletando diretório](https://dev-to-uploads.s3.amazonaws.com/i/s2fm1c31pnvv6y413a4d.gif)

Outra maneira de excluir um diretório vazio é usando o comando **rm** com o argumento **-d**, assim

```
$ rm -d <nome_do_diretório>
```

- **rm** do inglês,*remove*, é o comando que vai executar a remoção.

- **-d** do inglês, *directory*, indicando que é um diretório.

![deletando diretório vazio com rm -d](https://dev-to-uploads.s3.amazonaws.com/i/jy4ub2dyja04lq2u6fgr.gif)

## Removendo mais de um diretório vazio

Também é possível excluir mais de um diretório.

```
$ rmdir <nome_do_diretório_1> <nome_do_diretório_2> <nome_do_diretório_3>
```

![excluindo 3 diretórios](https://dev-to-uploads.s3.amazonaws.com/i/yoncnnfencqlr2kawmqt.gif)

## Removendo diretório não vazio

Para remover um diretório com todo seu conteúdo, digite: 

```
$ rm -r <nome_da_pasta>
```

- **-r**, vem de recursivo, pois será necessário percorrer a árvore do diretório recursivamente para apagar tudo o que houver dentro dele.

![removendo diretório não vazio](https://dev-to-uploads.s3.amazonaws.com/i/s7hyxd2kps3xbtqox1cb.gif)

## Removendo arquivo

Para excluir um arquivo:

```
$ rm <nome_do_arquivo>
```

![excluindo arquivo](https://dev-to-uploads.s3.amazonaws.com/i/ekwgj6tmaolfn58r8om3.gif)

Para excluir mais de um arquivo ao mesmo tempo:

```
$ rm <nome_do_arquivo1> <nome_do_arquivo2> 
```

![excluindo 3 arquivos](https://dev-to-uploads.s3.amazonaws.com/i/lc72xjhmmirt3i7aqims.gif)

Usando o argumento **-i** é o terminal **pedirá a confirmação da remoção** antes de fazê-la.

```
$ rm -i <nome_do_arquivo>
```

Isso é usado como medida de segurança.

![exclusão de arquivo com confirmação](https://dev-to-uploads.s3.amazonaws.com/i/fy7ge48w9a3h9hqyz166.gif)

É importante usar esses comandos com muito cuidado, pois esses arquivos apagados não vão para a lixeira.
Basics of Statistics for Exploratory Data Analysis
Tags: datascience, machinelearning, 100daysofcode, tutorial
Published: 2020-08-22 15:20:05

##Get started with Exploratory Data Analysis

**Determine the numeric and categorical attributes in the dataset -** https://www.asquero.com/article/determine-the-numeric-and-categorical-attributes-in-the-dataset

**Basic Statistical Descriptions of Data - Mean, Median, Mode & Midrange -** https://www.asquero.com/article/basic-statistical-descriptions-of-data-mean-median-mode-midrange

**Dispersion of Data: Range, Quartiles, Variance, Standard Deviation, and Interquartile Range -** https://www.asquero.com/article/dispersion-of-data-range-quartiles-variance-standard-deviation-and-interquartile-range
Learnt it the hard way
Tags: graphql, android, architecture
Published: 2020-08-22 14:59:30

So am on this quest to learn how to use graphql with flutter. And even the library says it's pretty straight forward to implement it, I ran into a strange issue recently.

__Problem__

The strange thing is that while using the debug apk, graphql works nicely. Once I make a build it stops working. 

After a lot of time spent :'( I saw that the APIs are not being hit. Thank you Heroku for the application logs. A

__Solution__

Apparently you have to add the INTERNET permission in the AndroidManifest.xml file under app/src/main. So if anyone is facing the same issue just add this line in the file
```
<uses-permission android:name="android.permission.INTERNET"/>
```
P.S. It's strange REST never threw this error.

Strange.
What Is The Impact Of Covid-19 On CRE? - Phoenix American
Published: 2020-08-22 14:59:27


The paper draws on our observations as a <a href="https://www.phxa.com/">fund administration provider</a>, conversations with the client sponsors of real estate funds as well as interactions with partners, intermediaries and other participants in the industry. Our twenty-plus years as a fund sponsor as well as forty-plus years as a provider of fund administration services provides a unique perspective on current events in commercial real estate.

Top takeaways from the report include an analysis of differing impacts to various property types and regions of the country and what prospects for recovery in the near and short term appear likely.

<b>Read More</b><a href="https://www.phxa.com/news/how-is-covid-19-impacting-the-commercial-real-estate-fund-space/">What Is The Impact Of Covid-19 On CRE?</a>

<b>Contact Details:</b>
415-485-4500
<a href="https://www.phxa.com/fund-accounting/">Fund Accounting Service</a>

<b>Visit Reference Profile Websites:</b>
<a href="https://bit.ly/2Vx9oz2">https://bit.ly/2Vx9oz2</a>
<a href="https://bit.ly/3iZDuUI">https://bit.ly/3iZDuUI</a>
<a href="https://bit.ly/3l9E6sY">https://bit.ly/3l9E6sY</a>
<a href="https://bit.ly/3hosmRc">https://bit.ly/3hosmRc</a>
<a href="https://bit.ly/3l9jAsA">https://bit.ly/3l9jAsA</a>
<a href="https://bit.ly/3aRbGPQ">https://bit.ly/3aRbGPQ</a>
<a href="https://bit.ly/32hf7uZ">https://bit.ly/32hf7uZ</a>
<a href="https://bit.ly/3l7qjTG">https://bit.ly/3l7qjTG</a>
<a href="https://bit.ly/2XVHwFE">https://bit.ly/2XVHwFE</a>
<a href="https://bit.ly/3ggsLU9">https://bit.ly/3ggsLU9</a>
<a href="https://bit.ly/2QhEzLu">https://bit.ly/2QhEzLu</a>
<a href="https://bit.ly/2Yn33HK">https://bit.ly/2Yn33HK</a>
<a href="https://bit.ly/3glodw3">https://bit.ly/3glodw3</a>
<a href="https://bit.ly/32ftT5B">https://bit.ly/32ftT5B</a>
<a href="https://bit.ly/2Ek9GU6">https://bit.ly/2Ek9GU6</a>
<a href="https://bit.ly/3gmabdw">https://bit.ly/3gmabdw</a>
<a href="https://bit.ly/32fufsX">https://bit.ly/32fufsX</a>
<a href="https://bit.ly/2Yn3nGs">https://bit.ly/2Yn3nGs</a>
<a href="https://bit.ly/3hlYOUe">https://bit.ly/3hlYOUe</a>
<a href="https://bit.ly/31kY5gA">https://bit.ly/31kY5gA</a>
<a href="https://bit.ly/2FKGdmJ">https://bit.ly/2FKGdmJ</a>
<a href="https://bit.ly/2YsBcG6">https://bit.ly/2YsBcG6</a>
11 Facebook Groups of Medium Members to Join Today to Increase Readership
Tags: marketing, socialmedia, facebook, mediumwriters
Published: 2020-12-22 23:31:49

---
title: 11 Facebook Groups of Medium Members to Join Today to Increase Readership
published: true
date: 2020-08-22 14:53:52 UTC
tags: marketing,socialmedia,facebook,mediumwriters
canonical_url: https://medium.com/illumination/11-facebook-groups-of-medium-members-to-join-today-to-increase-readership-7c92c2aadddf
---

[![](https://cdn-images-1.medium.com/max/2600/0*RvmuXw-BHKm3wql4)](https://medium.com/illumination/11-facebook-groups-of-medium-members-to-join-today-to-increase-readership-7c92c2aadddf?source=rss-a5279e4f0964------2)

Market your articles through Facebook to thousands of Medium Members

[Continue reading on ILLUMINATION »](https://medium.com/illumination/11-facebook-groups-of-medium-members-to-join-today-to-increase-readership-7c92c2aadddf?source=rss-a5279e4f0964------2)
Setting up a python virtual environment on Windows
Tags: python, beginners, codenewbie, tutorial
Published: 2020-08-22 14:49:04

## Why create a virtual environment?
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/etul41q3tmkm3rtxosel.jpg)
We create a virtual environment in order to isolate each Python project from other projects on our computer so that each project has its own dependencies.

Open your CMD and run the following command:

```
python -m venv c:\path\to\yourenvironment
```
*Example:* `python -m venv c:\pythonprojects\myproject`
This will create the following folders/files in your environment

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

#### Creating our python project
> You can create your virtual environment inside an existing project, it will work the same

Create your python script in your virtual environment (in this case I created a virtual environment first). You can also create the script within a folder inside your virtual environment.
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/bx9tkkyzipze2qcc4jxn.PNG)

#### Running your project
> If your script is inside a folder within your virtual environment, go inside the folder first using your CMD.

```
cd your-folder-name
```
Activate your virtual environment using your CMD while inside your virtual environment folder using the following commands

First, navigate to the folder with your virtual environment:
```
cd c:\path\to\yourenvironment
```
```
.\Scripts\activate
``` 
*Mine looks like this:* `c:\pythonprojects\myproject>.\Scripts\activate`
Run your script using the following command 
```
python script.py
```
`python name-of-your-script.py` in this case my script is `sript.py`
Git Cheat Sheet (Fork Repo)
Tags: github, git, beginners
Published: 2020-08-22 14:40:24

Here's a little cheat sheet for fork repo. 

# Track original repository
It's best to set this after you clone your fork.
```bash
# Set fork to track original repo
git remote add upstream https://github.com/[Original Owner]/[Original Repository].git
```

# Update your fork
```bash
# Sync your fork with original repo
git fetch upstream
git checkout master
git merge upstream/master
git push origin master
```

# Check your remote fork setup
```bash
git remote -v
```