teleren/devto huggingface dataset:
Day 22: Swift macOS password manager for people who hate the cloud
Tags: macos, swift, passwordmanager, cloud
Published: 2019-01-23 05:43:57

---
title: Day 22: Swift macOS password manager for people who hate the cloud
published: true
description: Follow along as I make a 100% cloudless and 100% native password manager for macOS. That's 200% raw password managing power.
tags: macos, swift, password manager, cloud
series: Making a swift MacOS password manager for people who hate the cloud
cover_image: https://thepracticaldev.s3.amazonaws.com/i/q6r73zbfbm3mpfs98bu5.jpg
---

[<- For Day 21 go here](https://dev.to/swlkr/day-21-swift-macos-password-manager-for-people-who-hate-the-cloud-48fk)

📅 01/22/2019
🚀 [8 days until launch](https://www.producthunt.com/upcoming/all-your-passwords)
🔥 21 day streak
💰 $5.00 price (no more .99, I hate that tactic)
🤑 $0 revenue
📈 0 customers
⌚️ 36 hours spent
💻 102 files changed, 249709 insertions(+), 549 deletions(-)
🏁 Today's goal: **Logo**


**9:24 PM**
So today I'm going to try to come up with a logo. 

Luckily I read [this](https://medium.com/swlh/what-makes-a-great-logo-c7b0e8c4b9e3) today, so now I'm a full fledged designer who can make a great logo that can stand the test of time!

Let's get started as all great logo designers do over at [logojoy](https://logojoy.com) 😂

**9:31 PM**
I'm uninspired by locks, keyholes, asterisks and secure form field input logos. I think I'll just wing it and try something crazy and hopefully not too terrible looking

**10:22 PM**
This is why I'm not a designer

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

**10:43 PM**
It's getting late, and it's kind of bland, but I honestly don't mind this one, it's an A and two L's or at least it's supposed to be. I still have 7 days 😱 so you know, no pressure on the logo.

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

I just want to reiterate, not a designer. Maybe I should just stick to a lock or a key or something…

\*Sigh\* See you tomorrow 🌊
React-Native/Expo/Cygwin “Unexpected Token” Problem
Tags: react, reactnative, expo, cygwin
Published: 2019-01-23 04:04:10

---
title: React-Native/Expo/Cygwin “Unexpected Token” Problem
published: true
description: Can't Run Expo-cli
tags: #React, #React-Native, Expo, Cygwin
---
Hi all:
I have a very tricky problem.
After installing react-devtools, I am no longer able to run expo-cli.
Everything was working fine until I did that. I’m now getting the error below.
In addition to not being able to run expo, my Powershell permissions were also changed to "restricted" (fixed). I even restored my registry to the previous day in an effort to fix this.
I have uninstalled/reinstalled node and yarn.

The error indicates Cygwin, which I don't have installed on my computer (does not show up in a registry search), however, searching my computer, I see that Cygwin was installed with Git:
C:\Program Files\Git\usr\share\cygwin
C:\Program Files\Git\usr\bin\cygwin-console-helper.exe
C:\Program Files\Android\Android Studio\bin\lldb\lib\distutils\cygwinccompiler.py
C:\Program Files\Git\usr\lib\perlS\core_per|\File\Spec\cygwin.pm
C:\Program Files\Git\usr\share\cygwin\cygwin.ldif
C:\Program Files\Git\usr\share\tern1info\63\cygwin
C:\Program Files\Git\usr\lib\terminf0\63\cygwin 

Any help will be GREATLY appreciated.
Windows 10
npm: 6.6.0
node: v10.15.0
yarn: v1.13.0

ERROR
expo start --android
At C:\Users\name\AppData\Local\Yarn\bin\expo.ps1:5 char:13
\+ *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
+
Unexpected token ')' in expression or statement.
At C:\Users\name\AppData\Local\Yarn\bin\expo.ps1:8 char:3
\+ if [ -x "$basedir/pwsh" ]; then
+
Missing '(' after 'if' in if statement.
At C:\Users\name\AppData\Local\Yarn\bin\expo.ps1:8 char:5
\+ if [ -x "$basedir/pwsh" ]; then
+
Missing type name after '['.
At C:\Users\name\AppData\Local\Yarn\bin\expo.ps1:9 char:20
\+... edir/pwsh"  "$basedir/../Data/global/node_modules/.bin/expo.ps1" "$@" ...
+
Unexpected token '"$basedir/../Data/global/node_modules/.bin/expo.ps1"' in expression or statement.
At C:\Users\name\AppData\Local\Yarn\bin\expo.ps1:9 char:73
\+ ... edir/pwsh"  "$basedir/../Data/global/node_modules/.bin/expo.ps1" "$@"
+
Unexpected token '"$@"' in expression or statement.
\+ CategoryInfo          : ParserError: (:) [], ParseException
\+ FullyQualifiedErrorId : UnexpectedToken
Querying AWS DynamoDB on Non-key Columns
Tags: aws, dynamodb, boto3
Published: 2019-01-23 03:04:06

---
title: Querying AWS DynamoDB on Non-key Columns
published: true
description: 
tags: [AWS, DynamoDB, Boto3]
---

# Your client loves AWS DynamoDB
Yes, the Amazon's NoSQL database service is *a key-value and document database*, which anyone who has Googled it should already know. Yet, your client demands querying DynamoDB on non-key columns without the actual keys, as they may have had some constraints on which services to use for their projects, or perhaps just didn't think through.

Fortunately, AWS DynamoDB provides a very quick way to realise such feature: The Global Secondary Index (GSI), which essentially indexes over desired column(s) so that you can later query on them as though they are keys. To do this, simply navigate to your table via the DynamoDB console and click on the **Indexes** tab, then create indexes with your desired keys.

Below is a Python example for querying the generated index using Boto3, the AWS SDK for Python.

```python
import boto3
from boto3.dynamodb.conditions import Key

dynamodb = boto3.resource('dynamodb', endpoint_url='https://your-dynamodb-endpoint')
table = dynamodb.Table('your_table')

results = table.query(
    IndexName='your_index_name',
    KeyConditionExpression=Key('your_index_key').eq('your_index_value')
)
```

Alternatively, use Table.scan() with FilterExpression, which obtains the entire table then filters the result, may often be more expensive than indexing.
First Flight
Tags: rithfoss
Published: 2019-01-23 02:50:02

---
title: First Flight
published: true
description: First flight blog post for hfoss, describing the steps I took to complete the first assignment
tags: #rithfoss
---
# IRC
Making an IRC chat was pretty easy, although I had to change my nickname halfway through due to it already being registered. I'm trying to get riot working with freenode but it keeps telling me that I'm not invited to the group.
# Email
The email list was really easy to get registered to.
# Blog
I originally wanted to use jekyll on github pages, using atom for rss feeds but I ran out of time doing work for other classes so I'll use dev.to for now.
# Forges
I already had a github and bitbucket so that was all fine- the yaml file was really easy to make and took no time at all.
Teabreak Challenge #22
Tags: teabreakchallenge, softskills, career, discuss
Published: 2019-01-23 01:22:20

---
title: Teabreak Challenge #22
published: true
description: My personal response to Teabreak Challenge #22. My biggest enemy of focus today was focus itself!
tags: #teabreakchallenge, #softskills, #career, #discuss
---

> The ability to focus is paramount to developer success. Determine your biggest enemy of focus today, and be aware of it as you take on your work. ~ Tea Break Challenge #22

**The Enemy**

Although "focus is paramount to developer success", it can be a wrecking ball to your productivity. Just because you're focused, does not mean you're being productive! Today, my "biggest enemy of focus" was having **too much** focus. I had a problem to solve and I was spinning my wheels, but I was too focused; I was unwilling to take a break... If you're like me, you do this far too often. You need to learn when to take a break.

**The Solution**

1. Take more breaks so I am accustomed to not being at the keyboard all day.
2. After spinning my wheels, start a timer and continue work until it ends. (Then take a break.)
3. Ask for another set of eyes.
4. Maintain productivity by taking breaks and working on meta tasks to keep me distracted from the original problem I was attempting to solve. (i.g. Slack, email, bathroom break, lunch, snack, etc.)

Maybe, just maybe... I need more coffee. Then I should be able to brute force my way to the solution! 🤔

What was the enemy blocking you from being focused today? Also, please help me out by suggesting any possible solutions for fighting my enemy!

___

Hello! I'm Jon Major Condon. I spend my days as a Software Farmer, tending to client codebases through Bendyworks. As a farmer of software, I focus on Javascript, CSS, and mainly React. That's not all though; I love spending my time with my wife and kids and focusing on my growth as a developer and helping others grow too! This year I am working to grow my writing skills, so I hope to publish some of my "Tea Break Challenge" responses and other posts involving anything life and dev related. I hope you enjoy!

What's the [Tea break Challenge](https://www.teabreakchallenge.com/)? Every day there is a new challenge to help developers connect with their inner-self. The Tea Break Challenge is also done by a phenomenal dev podcast called [DeveloperTea](https://developertea.simplecast.fm/)
Speed up your Vanilla PHP coding test
Tags: career, beginners, php, webdev
Published: 2019-01-22 23:58:24

---
title: Speed up your Vanilla PHP coding test
published: true
description: 
tags: career, beginners, php, webdev
cover_image: https://media.gettyimages.com/videos/man-sitting-in-coffee-shop-using-laptop-video-id505007242?s=640x640
---
First of all, let me tell you a short story about myself. I'm a Full Stack developer living in Sweden who have been developing web applications using PHP, specially Laravel Framework for over 2 years. Lately, I was applying for web development jobs here in Sweden and for almost all applications, I got a coding test to be eligible for the next phase. And guess what? *All the coding tests require to develop something simple but using raw (or vanilla) PHP without using any external libraries.*

Sounds very simple, right? I also felt the same way and thought of finishing the coding test within a night. But since I was doing the development work using Laravel, when I actually started coding for the test, I realized that those simple things became really complicated. In Laravel, I didn't need to think about pretty urls, dynamic routes, sql injections, view & logic separations, etc etc. But with raw PHP, now I need to handle all of these and I cannot use any frameworks or packages. 

So, I started writing codes keeping all of these in minds for each coding tests. After several tests, I realized that I, subconsciously, have created my own framework as I was using the same things again and again for the next tests. Then, I thought, why not create a repository that I can just clone and extend for future coding tests.

<b>Here's the framework:</b> https://github.com/ssnigdho/vanilla-php-framework

If you're in the same scenario as me and need to speed up your raw PHP development, feel free to use it.

You're most welcome if you find any bugs or want to contribute to it.

Good luck in your job hunting!
What can a course in programming to do you ?
Published: 2019-02-23 11:27:35


So you may be wondering what benefits you get from learning how to code, apart from the obvious benefits, learning how to code can help you

- Improve your perception and thought process
- Add value to your current role or position
- Teach you discipline as (programming requires discipline)
- Help you get a job (There are a lot of testimonies out there about totally beginners getting a job after completing a coding program)

It is very easy to get started with online resources that make it easy and have a very welcoming community where you can learn from

- [FreeCodeCamp](https://www.freecodecamp.org/)
- [Codecademy](https://www.codecademy.com/)
- [Udacity](https://www.udacity.com/)
- [Cousera](https://www.coursera.org/)
- [Favcode54](https://favcode54.org/)
- [EDX](https://www.edx.org/)
- [Udemy](https://www.udemy.com/)

If you are not convinced yet, these are life changing testimonies from people who after taking a course in programming improved and transformed their lives.

[I’m a Woman Who Learned to Code and, Honestly, It Changed My Life](https://www.glamour.com/story/i-am-a-woman-who-learned-to-code-and-it-changed-my-life)

[Lessons from 7 self-taught coders who now work full time as software developers](https://medium.freecodecamp.org/inspirational-success-stories-from-self-taught-web-developers-4f6f375cf17d)

[Student Testimonies from Favcode54](https://favcodereviews.com/)

[Student Testimonies from Codecademy](https://www.codecademy.com/stories)

[I just got a Front End Dev job. And I have freeCodeCamp to thank for it…](https://medium.com/@Jasraj/so-i-got-a-front-end-dev-job-after-almost-12-months-on-freecodecamp-9e8b4712e0e4)

[FCC Testimonies](https://www.freecodecamp.org/stories)
Giving Go another chance: command line arguments
Tags: go, timetracking
Published: 2019-01-22 22:16:11

---
title: Giving Go another chance: command line arguments
published: true
description: I'm writing a simple time tracking tool and rediscovering Go at the same time.
tags: go, golang, time tracking
series: Making a time tracking tool in Go
---

To make a usable command line tool one has to parse the arguments first. I shopped around for a command line parsing library and found [cli](https://github.com/urfave/cli) and [cobra](https://github.com/spf13/cobra). I tried cli briefly and then switched to cobra. You gotta go with the stars, Github stars. Cobra's got more of them.

Cobra comes with a cogeden tool which is nice, I guess. Since I'm still shaky with even basic Go concepts, I decided to run and not type up everything from scratch.

```
$ ~/go/bin/cobra init klk
Your Cobra application is ready at
/Users/detunized/go/src/klk
```

Why? I ran it in a different folder. And then I have a flashback and I realize why I had that bitter taste in my mouth the last time I used go. It's the `$GOPATH` thing. No other language I know does anything like it. Apparently I cannot have my code where I want it. It has to be where Rob Pike wants it. Okay, I thought to myself, I can just copy the generated files to where I want them and I'm done. And I did.

Cobra provides a way to add a new command with the codegen tool like this:

```
$ ~/go/bin/cobra add in
in created at /Users/detunized/go/src/klk/cmd/in.go
```

This adds the subcommand called `in`. To be used like this: `klk in`. So far so good. I copied the newly created file to my repo and kept poking around, editing, running, see what my changes do. And then I had a first WTF moment. I change some files, but Go doesn't pick up the changes and it seems like it runs the old executable. I spent lots of time trying to figure out why the build silently fails and I don't see any error messages. And then it hit me: it keeps building some of the files from the `$GOPATH` and some from my project folder. So copying files from the default place to an external folder is not really an option.

Mmkay. But I still wanted my files in my project folder. Let's see if symlinking my folder into `$GOPATH/src` would trick the compiler:

```
$ ln -s `pwd` /Users/detunized/go/src/klk
```

So far it's working and I'm able to use `cobra` tool and the compiler is happy. But let's finally get to coding next time. This time it didn't happen.

---

Google searches that went into getting this to work:

- go cli
- go cli parser
- go cli vs cobra
- cobra Error: Rel: can't make relative to
- gopath
- gopath vs goroot
- go package init
- go build without gopath
- no gopath
- vgo

---

Time spent: 2 hours
Total time spent: 5 hours
I Need a Remote Job
Published: 2019-01-22 22:04:48

---
title: I Need a Remote Job
published: true
description: 
tags: 
---

Hello, 

Here's my Bio:

    I am based in Nigeria. 

    I have never worked in a software company after school. (Always being a     
    freelance/self-taught developer)

    I have 5 years experience in Java SE/EE 

    I am good with HTML/PHP/JS/CSS... ANDROID/JAVAFX/SpringBoot .... 
    NodeJS/VueJS (Introductory level)

    I Don't mind forgetting what I know, just to get the offer of a Junior Entry         
    Remote Developer and I can grow as i get familiar with the environment.

    I know I am a good developer.

    I work on freelancer.com already but i will prefer a stable remote offer

    Most of my works are not online tho... they are lying on my laptop.


    I will be glad if there's any one willing to risk hiring me


    Cheers.
    
    http://gbscode.xyz
Choose Your Own Deployment
Tags: devadvocacy, launchdarkly, speaking, talkwriteup
Published: 2019-01-29 22:16:16

---
title: Choose Your Own Deployment
published: true
tags: Dev Advocacy,LaunchDarkly,Speaking,Talk writeup
canonical_url: http://www.heidiwaterhouse.com/2019/01/22/choose-your-own-deployment/
---

I love the _aha moment_ people get when they grasp a concept. It’s a lot of what gives me energy about this job. Being there to help people see how an abstract concept can make their concrete life better is amazingly rewarding.

Because of this, I try to change up all the parts of my talks, to make sure people feel like they’re going on a journey with me, _ala_ Nancy Duarte in [Resonate](https://www.duarte.com/resonate/). I want you to feel like you’re on a trip with me, like we’re learning together, and exploring what interests you.

This game was born as a conference talk. It’s a longshot bet for a conference to accept a talk that has no set length, or pattern, that is entirely driven by audience participation, but several did, and I’m so grateful. The Toggle Game is an interactive exploration of how feature flagging can be used to make deployment safer and less of a big change.

Now I’ve taken the conference sketch and expanded it out into a playable game about an adorable space explorer, Toggle:

![A space explorer in a dark blue spacesuit giving a thumbs-up.](http://www.heidiwaterhouse.com/wp-content/uploads/2019/01/ThumbsUpDark@2x-668x1024.png)

[The Toggle Game](https://wiredferret.github.io/Toggle/The%20Toggle%20Game)

I built it in [Twine](http://twinery.org/). I’m saving the deep details of that for an OpenSource.com article, but the experience was pretty straightforward and quite enjoyable. You can find the source at [https://github.com/wiredferret/Toggle](https://github.com/wiredferret/Toggle). I’ve left in all my flaily and cranky commit messages for your enjoyment, because I like it when I can see an arc in other people’s commit messages.

In case you don’t want to play the game yourself, I have a video of how the people at DevOpsDays Toronto played it.

<iframe type="text/html" width="620" height="349" src="https://www.youtube.com/embed/IkiUp_fM6go?version=3&amp;rel=1&amp;fs=1&amp;autohide=2&amp;showsearch=0&amp;showinfo=1&amp;iv_load_policy=1&amp;wmode=transparent" allowfullscreen="true" style="border:0;"></iframe>

<figcaption>Choose Your Own Deployment Adventure, DevOpsDays Toronto</figcaption>
Wait your White-Ice
Tags: webdev, laravel, selfdevelopment, productivity
Published: 2019-01-22 22:00:14

---
title: Wait your White-Ice
published: true
description: a try to help developers.
tags: webdev,laravel,self development,productivity
cover_image: https://thepracticaldev.s3.amazonaws.com/i/z4apss3j9ri8phlm7vnv.jpg
---

__Today__ i was listening to a new episode of '__developer Tea__' Podcast. At first look the topic was not-interesting in a way that i cannot resist changing the podcast player. But as an ODC holder i developed a habit of finishing whatever I've started. 

So i shutdown my innervoices and kept listening to the podcast.

I really thanks god for not skipping this episode. The narrator was talking about something very very important in my point of view. He started with describing the water-freezing process, Yea you read it right and the smile you developed is the same as mine when i was in your shoes back then 3 to 4 hours ago.

The Water-freezing process: 
imagine putting a glass of water in a transparent refrigerator, and now imagine yourself sitting in front of it. At first hour nothing really happens to the water but in your scientific mind your ideas now telling you that the heat of the water is decreasing. For the second hour nothing will happen as well the third and fourth hours. But you still waiting and the heat still decreasing unit by unit , degree after a degree.

After a while almost 6 hours of sitting in the same place. you suddenly noticed the White-Ice started to appear.

and after 6 hours of non-noticeable change the ICE appeared as it came out of nowhere.

![where is your ice](https://thepracticaldev.s3.amazonaws.com/i/z4apss3j9ri8phlm7vnv.jpg)

This is what Continues Work Meaning. You keep up the good , hard work. While no one notice anything even you don't. But suddenly the white Ice will appear as a result of your patience , continues , gritty work.

Please keep up the good work , and have patience to see your Ice.
Blueprint - a boilerplate tool for the terminal
Tags: cli, tool, linux
Published: 2019-01-22 21:51:28

---
title: Blueprint - a boilerplate tool for the terminal
published: true
description: Allow to easily template boilerplate files and directories.
tags: cli, tool, linux
cover_image: https://thepracticaldev.s3.amazonaws.com/i/f7mcxe83ncho50tz10ew.gif
---


## What it is

In short, it copies files and directories (_folders_) instead of you.

Lets say you have a **blueprint** (WIP name for a collection of files and dirs) that you called `flask-boilerplate`. You go to an empty directory for your new flask project and type this in the terminal:
```shell
$ blueprint flask-boilerplate
```

That's it!

If this is what you put in your blueprint:

```
.
├── templates
|   └── example_template.html
├── static
|   ├── style.css
|   └── main.js
└── start_server.py
```
Then that is exactly what you will get, added to your project.

## How it works

#### Creating a new *blueprint*

```shell
$ blueprint new blueprint-name-here
```

#### Deleting an existing *blueprint*

```shell
$ blueprint delete blueprint-name-here
```

#### Listing all existing *blueprint*

```shell
$ blueprint list

#output
# Avaiable blueprints:
#  i │ name     │ size
# ───┼──────────┼───────
#  0 │ html-min │ 24K
#  1 │ test1    │  4K
#  2 │ test2    │  4K
```

#### Searching for *blueprint* names with regex

```shell
$ blueprint list regex-here

#output
# Avaiable blueprints:
#  i │ name            │ size
# ───┼─────────────────┼───────
#  0 │ regex-here1     │  15M
#  0 │ dont-regex-here │ 300G
```

#### Showing contents of a blueprint

```shell
$ blueprint showfiles blueprint-name-here

#output
# Showing file for blueprint: blueprint-name-here
#    F | file1.txt
#    F | file2.txt
#    D | some-directory
```

## What I plan to do with this

This was a fun little side project, but I don't really have any plans for it. It works on Linux, which I'm using. I might make a version for Mac OS or Windows. I have uploaded it anywhere for download yet, but will do so later.

## Any feedback

If you have any suggestions, I'd like to hear them.
Meta-programming for Dummies - RedDotRubyConf 2017
Tags: ruby, metaprogramming
Published: 2019-01-22 21:17:34

---
title: Meta-programming for Dummies - RedDotRubyConf 2017
published: true
description: 
tags: ruby, meta-programming
---

A nice video for meta-programming.

{% youtube XggXhLalnkk %}
NG-SQ-UI simple quality UI kit for Angular
Tags: angular, angular7, uikit
Published: 2019-01-22 21:11:09

---
title: NG-SQ-UI simple quality UI kit for Angular
published: true
description: The intention behind it is to help Angular developers with their day-to-day work by trying to offer a solution to the most widespread use-cases they have to handle. Without being too opinionated on looks and without containing dozen of just "fancy" features. This, with almost no additional dependencies. How cool is that? Check out the git hub repo https://github.com/SQ-UI/ng-sq-ui and the documentation https://sq-ui.github.io/ng-sq-ui/ If you like our idea, please star the repo to support us :)

tags: Angular, Angular7, UI KIT
---