teleren/devto huggingface dataset:
React Native Animated Inputs
Tags: reactnative, animation
Published: 2019-01-23 11:26:23

---
title: React Native Animated Inputs
published: true
description: Add animations to text inputs in React Native
tags: React Native, Animation 
---

This is a very straight forward exploration of how I did animated inputs in my react native form. The demo is given below:

<a href="https://imgflip.com/gif/2rtnqt"><img src="https://i.imgflip.com/2rtnqt.gif" title="made at imgflip.com"/></a>

So I have basically three text inputs which I need to animate one after another. I used react native animated modules to do this kind of animation. 

In animated modules there is a method called **stagger** which helps to animate components one after another with **successive delays**. I just needed to pass my array inputs to this method to implement this animation. The whole code is given below:

```
// Creating arrays to hold the animation arrays
const arr = [];
for (var i = 0; i < 3; i++) {
  arr.push(i)
};

// Inputs configs
const inputs = [
  {
    placeholder: 'Full Name',
  },
  {
    placeholder: 'Email Address',
  },
  {
    placeholder: 'Password',
  }
];

export default class App extends React.Component {
  constructor(props) {
    super(props);
    this.animatedInputValue = [];
    arr.forEach((value) => {
      this.animatedInputValue[value] = new Animated.Value(0)
    });
  }

  componentDidMount() {
    // creating array animations 
    const inputAnimations = arr.map((item) => {
      return Animated.timing(
        this.animatedInputValue[item],
        {
          toValue: 1,
          duration: 1500,
        }
      );
    });
    // Animate each element after 1000 miliseconds
    Animated.stagger(1000, inputAnimations).start();
  }

  render() {
    const animatedInputs = inputs.map((a, i) => {
      return (
        <Animated.View 
          key={i} 
          style={{
            opacity: this.animatedInputValue[i], // attaching animations to the input opacity
          }} 
        >
          <TextInput
            style={[{ borderColor: '#fff', borderBottomWidth: 1, padding: 5, marginBottom: 30 }]}
            selectionColor="#fff"
            placeholder={a.placeholder}
            placeholderTextColor="#fff"
          />
        </Animated.View>  
      );
    });
    
    return (
      <LinearGradient
        colors={['#642B73', '#C6426E']}
        style={{
          position: 'absolute',
          width: '100%',
          height: '100%',
          justifyContent: 'center',
          alignItems: 'center'
        }}
      >
        <View style={{ width: '100%', paddingHorizontal: 25  }}>
          {animatedInputs}
        </View>
      </LinearGradient>
    );
  }
}
```
Giving Go another chance: easy parameter parsing
Tags: go, timetracking, cli
Published: 2019-01-23 11:24:49

---
title: Giving Go another chance: easy parameter parsing
published: true
description: I'm writing a simple time tracking tool and rediscovering Go at the same time.
tags: go, time tracking, cli
series: Making a time tracking tool in Go
---

It's good to start with something easy. I already have a command `klk in`, now it would be good to pass some switches and arguments to it. Cobra has a huge [readme](https://github.com/spf13/cobra/blob/master/README.md), but I found that it was easier to check their own command line tool source for examples.

```go
var inCmd = &cobra.Command{
    Use:     "in [comment]",
    Aliases: []string{"i"},
    Short:   "Clock in an entry",
    Run: func(cmd *cobra.Command, args []string) {
        comment := strings.Join(args, " ")
        timestamp := time.Now()
        fmt.Println("Adding an entry:", comment, "at", timestamp.Format(time.UnixDate))
    },
}
```

I had to figure out how to join strings and how to custom format a date. The default date format is somewhat weird. I'm guessing its following the Go path (GOPATH?) on it's journey into the weird. Who wants the date printed like this by default? What's `m=+0.001801899`?

```
2019-01-23 12:04:12.760058 +0100 CET m=+0.001801899
```

Outside of this it was quite easy. Overall Go feels like C with some Python sprinkled on top of it. The problem is, you never know when you have to drop from Python to C and try not to bang your head in the process.

Now let's add a switch. The easiest I could think of is `--quiet/-q`. It's just one line with Cobra:

```go
inCmd.Flags().BoolVarP(&quiet, "quiet", "q", false, "be quiet and don't print so much stuff")
```

The final product works like this now:

```
$ klk in some work
Adding an entry: some work at Wed Jan 23 12:16:20 CET 2019
```

or

```
$ klk in -q some work
```

Ship it! 🚢

---

Google searches that went into getting this to work:

- go join strings
- go time now
- go format date

---

Time spent: 15 minutes
Total time spent: 5:15 hours
What's the "//?" in the Code Editor
Tags: code, vcode, javascript
Published: 2019-01-23 09:50:18

---
title: What's the "//?" in the Code Editor
published: true
description: 
tags: code, vcode, js
---

"//?" can eval instantly. I saw it in this short JS teaching video. It seems cool. What plugin is it?

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

{% youtube 2s0NJA1nNP0 %}
aurora - Cross platform beanstalkd queue server admin console.
Tags: go, beanstalkd, queue, admin
Published: 2019-01-23 09:44:40

---
title: aurora - Cross platform beanstalkd queue server admin console.
published: true
description: aurora is a web-based Beanstalkd queue server console written in Go and works on macOS, Linux, and Windows machines.
tags: Go,beanstalkd,queue,admin
---

<p align="center"><img width="620" src="https://github.com/xuri/aurora/raw/master/aurora.png" alt="aurora"></p>

GitHub: [github.com/xuri/aurora](https://github.com/xuri/aurora)

## Overview

aurora is a web-based Beanstalkd queue server console written in Go and works on macOS, Linux, and Windows machines. The main idea behind using Go for backend development is to utilize the ability of the compiler to produce zero-dependency binaries for multiple platforms. aurora was created as an attempt to build a very simple and portable application to work with a local or remote Beanstalkd server.

## Features

- Cross-platform support macOS/Linux/Windows 32/64-bit
- Simple installation (distributed as a single binary)
- Zero dependencies
- Common list of servers in the config for all users + optional Basic Auth
- The full list of available tubes
- Complete statistics about jobs in tubes
- Real-time auto-update with highlighting of changed values
- You can view jobs in ready/delayed/buried states in every tube
- You can add/kick/delete jobs in every tube
- You can select multiple tubes by regExp and clear them
- You can set the statistics overview graph for every tube
- You can move jobs between tubes
- Ability to Pause tubes
- Search jobs data field
- Customizable UI (code highlighter, choose columns, edit auto refresh seconds, pause tube seconds)

## Installation

[Precompiled binaries](https://github.com/xuri/aurora/releases) for supported operating systems are available.

## Screenshot

Server list

![Server list](https://xuri.me/wp-content/uploads/2016/11/aurora-cross-platform-beanstalk-queue-server-console-1.jpg)

Tube status

![Tube status](https://xuri.me/wp-content/uploads/2016/11/aurora-cross-platform-beanstalk-queue-server-console-2.jpg)

Statistics overview

![Statistics overview](https://xuri.me/wp-content/uploads/2016/11/aurora-cross-platform-beanstalk-queue-server-console-3.jpg)
3 Recommended Programming Books
Tags: programming, books
Published: 2019-01-23 09:21:12

---
title: 3 Recommended Programming Books
published: true
description: The programming books I read and most enjoyed from 2018
tags: programming, books
---
As I reflect on 2018, there were three programming books I enjoyed reading and learned a lot from. I thought I would share my summary of each book.


### The Pragmatic Programmer by Andrew Hunt and David Thomas

Recommended to me by my boss, this is a timeless guide to programming. Programming and technology moves fast, yet despite being written in 1999 this book is still relevant today. In my opinion, the fact this is the case shows just how important the principles the book teaches are. This book really helped me with understanding programming best practices and how I can build those best practices into my daily work. It's a reference to keep coming back to as I progress in my programming career.


### Coders at Work by Peter Seibel

Another recommendation from my boss, this is a series of interviews with incredible programmers. It is interesting reading about the different approaches these programmers take to their work.

Of particular interest was reading the contrasting and complementary philosophies and approaches of Brendan Eich and Douglas Crockford when discussing developing the JavaScript language.

I also enjoyed reading about Brad Fitzpatrick and his incredible blend of programming skills and business/open source acumen with LiveJournal and Memcached as great examples of this.

And from a broader industry perspective a very topical and important theme, reading about Fran Allen's experience of the how the industry became male dominated and her views on the importance of increasing diversity.


### The DevOps Handbook by Gene Kim, Jez Humble, Patrick Debois, John Willis

This was probably my favourite programming book I read last year. It's full title is The DevOps Handbook:: How to Create World-Class Agility, Reliability, and Security in Technology Organizations

My background, prior to switching careers, was in Supply Chain and Operations (in the manufacturing sense) including lean and process optimisation work. This book was a real eye opener, taking a manufacturing operational view to building software. The book explains how a DevOps culture looking at People, Process and Tools can drastically improve a software company's performance, in terms of speed to market and software resilience.

The insight that infrastructure as code is actually the most important aspect to use version control (rather than as I had previously assumed for development code) was a huge point but once digested makes sense. If you have an interest in DevOps and how teams work to build software, I highly recommend this book.
Software AG Cloud
Tags: cloud, platform, webmethods, integration
Published: 2019-12-17 09:16:46

---
title: Software AG Cloud
published: true
tags: #cloud, #platform, #webmethods, #integration
canonical_url: http://techcommunity.softwareag.com/techniques-blog/-/blogs/software-ag-clo-2
---

## Start small, grow at your own pace

**On November 27th we launched the unified Software AG Cloud platform, which marked an important milestone in our cloud strategy and journey. Software AG Cloud is an open and independent cloud platform and a one-stop shop for all things Software AG offers as a cloud service.**

[**![](http://techcommunity.softwareag.com/documents/10157/10221817/Cloud_1.png/8c434de5-7a30-4a90-bb3c-4e1a388af5f6?t=1548169183132)**](https://www.softwareag.cloud)

Our market-leading cloud capabilities are **integrated** and enable you to **connect** , **scale** and **grow** your **digital business** at your own pace. And subscribe to desired capabilities when you need them. Software AG Cloud is not just a web portal. Software AG Cloud is our cloud foundation and provides all necessary and common cloud services for our cloud products:

- One identity management
- One tenant management
- One subscription management
- Cross-product use-cases & connectivity

In addition Software AG Cloud is a true multi-cloud platform that supports partially different infrastructure providers including: Amazon Web Services® (AWS®), Microsoft® Azure® and others. This independence allows you to choose the infrastructure provider which best fits your needs. We offer full support for open standards and, based on our state-of-the-art integration technology, you can add the SaaS and on premises IT systems of your choice.

![](http://techcommunity.softwareag.com/documents/10157/10221817/Cloud_2.png/f843fea0-6b2e-4a72-b778-289d45a4a975?t=1548169186939)

In the first release the following Software AG Cloud products are available at SoftwareAG.cloud:

- **ALFABET** Cloud
- **ARIS** Cloud
- **CUMULOCITY** IoT Cloud
- **WEBMETHODS** API Cloud
- **WEBMETHODS** B2B Cloud
- **WEBMETHODS** Dynamic Apps Cloud
- **WEBMETHODS** Integration Cloud

## How to get started?

You can try all of them right away. Simply:

1. Visit **[www.softwareag.cloud](https://www.softwareag.cloud)**
2. Select the product of your interest from the main navigation
3. Click the **Try for free** button

## What is next for Software AG Cloud?

The launch of Software AG Cloud marks only the first milestone of our Software AG Cloud journey.

Please let us know your feedback and what more you’d like to see, and thus help us shape the future of Software AG Cloud.
Just got my CodeMentor profile approved, which reminds me....
Tags: personalnews
Published: 2019-01-23 09:08:58

---
title: Just got my CodeMentor profile approved, which reminds me....
published: true
description: 
tags: personalnews
---

I just got my [CodeMentor profile](https://www.codementor.io/dexygen) approved and this reminded me of the first job I ever enjoyed.  But first....

My very first job of sorts was helping my Dad at his motel.  It was there that I learned my work ethic.  Once he asked me to vacuum a room while he went somewhere.  When he came back in 5 minutes he commented that he had watched me do the work from the window, and that he was pleased.

My first W2 job was as a grocery bagger at Winn Dixie when I was 15 and it was mind numbing.  I remember calling in sick once on a Friday night to instead go to our high school football game.  I'm pretty sure that was the beginning of the end ;)

The first job I enjoyed was a couple of years later, still in high school.  It was to tutor a 7th grader who failed Math the previous year.  We spent the first 5 minutes of each hour's lesson just talking, then we dove into the actual work.

He got a B+.  Very gratifying.
Book review: Optimized C++ by Kurt Gunteroth
Tags: books, cpp, optimization
Published: 2019-01-23 07:06:52

---
title: Book review: Optimized C++ by Kurt Gunteroth
published: true
description: "An honest review on a book dedicated to C++ code optimization."
tags: [books, cpp, optimization]
---

After I attended a training on the subject of optimizing C++, I felt I'd be interested in going a bit deeper. At least to read a bit more about this topic. So I asked the trainer for some books he'd recommend about optimization. One was [Kurt Guntheroth's Optimized C++](https://amzn.to/2vGyHRT). As soon as I finished reading [Essential Skills for the Agile Developer](https://devreads.sandordargo.com/essential-skills-for-the-agile-developer/), I started to read this one.


I liked the book, but to be completely honest, by the end I felt a bit lost. This just means that the book starts with simple ideas and heads toward the complex ones. Apparently, I didn't dedicate enough time to understand well the last two chapters which are about concurrency and memory management. I'm not working in an environment where I would need the benefits offered by the techniques described there, that's my excuse.

On the other hand, in the rest of the book, I found many pieces of advice that can be useful for me right now, or in the near future. Guntheroth explains why optimization matters, when you should start optimizing and how you should do it. He goes into details about the costs of different sorting and search algorithms, dynamic variable allocation, data structures to name a few. He goes from the most common towards the rarer solutions.

It makes complete sense. Most of the time you don't need anything fancy, just to review your algorithm. I remember at the very beginning of my programming career when I did something in O(n**4) instead of O(logn*n). I was called out for it when the app turned out to be extremely slow. I did some measurements and turned out that we spent less than 1% of the time there - just as I expected - and more than 95% in a third party library which was not so well documented and we realized after weeks that we didn't clean up properly after it - in fact, we cleaned up too frequently.

And here is a very important point. Don't optimize in vain and when you do optimize, measure the effects. One thing I liked a lot about [the book](https://amzn.to/2vGyHRT) is that the author tells us about his assumptions and failures. He explains that he expected one data structure to be better than the other by orders of magnitudes but it ended up being just a bit faster. Or in other cases, even slower. This gives him credibility and emphasizes the importance of experiments.

I think I'll keep [Optimized C++](https://amzn.to/2vGyHRT) on my (virtual) bookshelf and whenever I'll encounter hot code parts that need to be more performant, given the clear structure of the book, I'll know where to open it for some good pieces of advice.

_This article has been originally published on [my blog.](https://devreads.sandordargo.com/optimized-cpp/)_
Pwned Pass Update
Published: 2019-01-23 07:00:25

---
title: Pwned Pass Update
description: Its been a while since I first released Pwned Pass so lets have a look at where we are 
published: true
canonical_url: https://www.funkysi1701.com/posts/pwned-pass-update-55io
date: 2019-01-23 07:00:25 UTC
---

Its been a while since I first released Pwned Pass so lets have a look at where we are now.

We are very close to 500 Downloads from [Google Play](https://play.google.com/store/apps/details?id=pwnedpasswords.pwnedpasswords) and we have recently smashed past 100 active installs, peaking at 116 and even now we are still over 100. I have had 9 reviews (6 x 5*, 2 x 1 * and a 4 *) which averages out at 4 *
![Alt Text](https://www.funkysi1701.com/wp-content/uploads/2019/01/image.png?w=662&ssl=1)
Over Christmas I released a UWP version that can be found in the [Microsoft Store](https://www.microsoft.com/store/apps/9NM2WHNZTNLT). This has currently had 9 downloads and even had a download to windows mobile (someone out there still likes the platform!)
![Alt Text](https://www.funkysi1701.com/wp-content/uploads/2019/01/image-1.png?w=662&ssl=1)
I have a fairly smooth deployment process using Azure DevOps. After every check in of code a build runs which compiles the UWP and Android versions. The build also increments the version numbers that is required to deploy to either of the app stores.

Every successful build of the master branch will kick off a release to the Beta track of Google Play. If I am happy I then release to 10% of the Production track, which can then be increased to 100% (or halted). The release to Microsoft Store happens after the Beta track of Google Play. Only reason for this order is that there isn’t a beta area for UWP apps so I want to quickly test change on android before rolling out for windows.

All these steps require confirmation by me before proceeding and often don’t get further than the beta track.

A further development is that I have open sourced the source code to [github](https://github.com/funkysi1701/PwnedPass) do take a look if you are curious or want to contribute. With the purchase by Microsoft there are easy ways to connect github repositories to Azure DevOps. Once I create a Pull Request in github it creates a build in Azure DevOps and all the build and release steps can happen.

I am still not 100% sure if I want to keep my bug and issue tracking in github or Azure DevOps as both have features for doing so.

One future improvement I want to make is to automate the creation of screenshots. When I create a new feature and it gets checked in. I would like to automatically created screenshots of the key pages and submit them to the different app stores. Currently I am not sure if this is possible or how to go about it. I have some ideas to experiment with so we will see what I can do.
I made a terrible spell checker in Go
Tags: spellchecker, go
Published: 2019-01-23 06:13:58

---
title: I made a terrible spell checker in Go
published: true
description: My first project in Go, a simple spell checker.
tags: spellchecker, go, golang
---

# goSpellcheck

A terrbile spell checker written in Go.

# About

Since I've never really done anything in Go, I’ve decided to create a simple spell check. So I went to (https://github.com/dwyl/english-words/)[https://github.com/dwyl/english-words/] and Got a bunch of words as a dictionary (words.txt).

After that I wrote some Go code to check if a given word was present in the dictionary, and if it’s not, gather the 3 more similar words and return as suggestions. The first time I wrote a similar code, in python, I used the euclidean distance and edit distance. This time around, however, I only check letter for letter and giver a plus 1 if they are different.

After that, I went to (Lists of common misspellings/For machines)[https://en.wikipedia.org/wiki/Wikipedia:Lists_of_common_misspellings/For_machines] and tested my spell check against it with a little bash script I wrote.

It was a nice little project I did just so I don't get too rust while I'm on college vacation.

# Hot to use

Just call the the *goSpellcheck.go* file passing a word as parameter.

```
go run goSpellcheck.go word
```

# Score

The spell checker got 1185 from 4278 words, around 27,7%.


You can take a look at the code [here](https://github.com/victorqribeiro/goSpellcheck)
New layout needs feed back
Tags: showdev, discuss, design, react
Published: 2019-01-23 05:52:26

---
title: New layout needs feed back
published: true
description: I re-did my layout last week
tags: showdev, discuss, design, react
---

So last week I released a new site, https://gidgitz.com. It got some traffic due to one of my post, kind of blowing up on here, yay me! But I got some feed back already on it, so I re-did the layout and I'd love some feedback on it. 

I plan on adding more tools to it, and I want to encourage others to promote their tools on it as well. A way to give back. 

Please leave the good, bad and the ugly comments, all are welcomed. I'd also really love to get some solid feed back to if this is something that would be useful or if there is a way I can make it more useful.

Here is the first revision that I released last week. ![gidgitz.com version 1](https://thepracticaldev.s3.amazonaws.com/i/spfhe5c0bradc8fdn41m.png)
 
and here is the new version which is also live here > [https://gidgits.com](https://gidgitz.com)

![gidgitz.com version 2](https://thepracticaldev.s3.amazonaws.com/i/dd1la5q15s6pnkiy95iw.png)

Here are some stats.

Built with next.js/react/bootstrap 4