teleren/devto huggingface dataset:
Working with React Native feels like Malcolm in the Middle father's changing a lightbulb
Tags: reactnative
Published: 2019-07-03 17:56:36

---
title: Working with React Native feels like Malcolm in the Middle father's changing a lightbulb
published: true
description: My feelings working with React Native
tags: React Native
---

I have been an Android developer for 5 years, lately, I'm getting my hands on React Native. This is how I feel about it

![malcom ligthbulb](https://firebasestorage.googleapis.com/v0/b/learningfirebase-77a34.appspot.com/o/dev_dot_to%2Fhall_ligth_bulb.gif?alt=media&token=50528c75-60b0-4609-9bbf-50ecfcbe906a)

To be honest, at first, glance seemed to me like an oversimplified layer for building apps. I did keep learning *don't judge a book by its cover*. So eventually I found out that native code can be used. That is my current endeavor by the way.

The way I see it, a long term project could **benefit from shared code** and anything troublesome due to the OSS **should be native**. You don't have to have 2 projects for creating a list of results, but you could benefit from the native implementation if you want to get the user location when the app is closed (I'm thinking on Android here).

Now to the funny thing:

 - Ok, I'm gonna install my dependencies... everything fails because my node install was made with `sudo`
 - Ok, now I have uninstalled node and re-install it without `sudo`  (nvm actually)... I have to reinstall everything now
 - Ok so in Android Studio I had this plugin for restarting the app using keyboard shortcuts... and there is none for WebStorm
 - Ok so now I figure a couple of [commands](https://gist.github.com/cutiko/dd9d0b3facb34a61dc0b2b9cf4c91cc0) that will solve this, and now... how do I change the package name?
 - Ok so now I changed the package name for Android and IOS to the standard *com.subdomain.appname* now I'm gonna work... wait typescript seems to have a problem
 - Ok so now I have typescript working on my project and now I can work!
 - Ok so that last dependency is telling me that `npm audit fix`, sure... wait that update react-native version?
 - Ok so now I have to solve this new problem with AndroidX (I saw it coming from [miles away](https://twitter.com/CutikoLive/status/1146453755589734403))... sure let's add the right dependency and then let's add jetifier and...
 - Ho! So now I found another error and [I can't run my app...](https://github.com/facebook/react-native/issues/12289)
 - Ok so, now I'm going to rollback everything and now I'm sure I'm gonna be able to work.... (I'll let you know, I guess)

Regarding the latest problem, I didn't give up and had to figure a way to use the `react-native-cli` so you can see my [SO answer](https://stackoverflow.com/a/56892669/4017501)

PS: I know about live reloading, I'm just improving my dev environment. And yes I know about `--typescript template` from the react-native cli, but I forgot about it... mistakes happen ¯\_(ツ)_/¯

UPDATE: this was updated shortly after publishing, and then 2 days later
The robot apocolypse
Tags: jokes
Published: 2019-07-03 17:15:30

We've all done this...

![A comic showing robots going on a rampage due to someone accidentally using the assignment operator instead of the equality operator](https://res.cloudinary.com/practicaldev/image/fetch/s--M8z0EAkA--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/ybjsbs9tbnd01mauyiao.jpeg)
My First Extension 👨🏻‍💻
Tags: javascript, webdev, html, chromeextension
Published: 2019-07-03 16:52:29

---
title: My First Extension 👨🏻‍💻
published: true
description: 
tags: #javascript, #webdev, #html, #chromeextension
cover_image: https://thepracticaldev.s3.amazonaws.com/i/g7er34o25pim1brc3829.jpg
---

There was a time when everybody in the class was doing something badass and getting appreciation from the lectures in the electrical lab. I, on the other hand despite being an electrical engineer, was a joke when it comes to viva. I used to play around these two words: current and voltage to save my ass from getting kicked out 😅. That doesn't stop me from scoring good grades. Even though I had a first class with distinction in my bachelor's all my interest were on the computer field because of the exemplary lecturers I came across.

Now Being a software engineer, I thought of giving back to the community that helped me (helping me) in my growth as a software engineer 👨🏻‍💻.

Since my love for javascript kept growing on and on over years, I had this crazy idea of creating a chrome extension. Which was inspired by my senior(https://dev.to/gokatz). Back in my college days, he was a great inspiration when it comes to coding (still he's an inspiration 😇).

After a long time of thinking about the concept to develop an extension, I settled down to create an extension which will give a daily customized quote from top rated books. (what else you can expect from a Bibliophilia 😝)

It wasn't easy 🙃. I had tough days balancing both professional life and personal life. Still, here I am, writing an article about the same extension which I wanted to create. 

Below is the screenshot of the extension.

1) This is the home page, where the users will see the quotes.

![extension preview-1](https://thepracticaldev.s3.amazonaws.com/i/yzp2eu364fbfw16ms8y6.png)


2) This page allows the users to select their preference so that they can get a customized quote on their home page.

![extension preview-2](https://thepracticaldev.s3.amazonaws.com/i/y9h23qbsky4by2iu3t3m.png)


3) This is the view when a preference is selected.

![extension preview-3](https://thepracticaldev.s3.amazonaws.com/i/i9i5bscwgv6udfsf4rmo.png)



The quote displayed on the third image is my personal favorite 😉.


You can get the extension from the below URL.

https://chrome.google.com/webstore/detail/todays-quote/bicpefioihdlhhhfgjajcebodhhkkach

Here is a link to the extension that was developed by my senior (https://dev.to/gokatz) - https://chrome.google.com/webstore/detail/muze/cgffahicpmdghffiephekgikaajnlilm

Planning to make the code open source in a few weeks.

Suggestions about the user-experience are welcome 👾
A QA engineer enters a bar
Tags: jokes
Published: 2019-07-03 16:42:08

---
title: A QA engineer enters a bar
published: true
description: 
tags: #jokes
---

A QA Engineer enters a bar:

1. Stares at the barman for twenty minutes. 
2. Asks for two beers and a straw.
3. Asks for sparkling water with lemon juice.
4. Asks for a unicorn, a lizard and some tequila.
Good news AppEngine Users.
Tags: java, appengine, gae, serverless
Published: 2019-07-03 16:27:48

Hi, folks, there is good news for those who are using the Google AppEngine ( and I’m writing as a java developer ). 


*People already using AppEngine or know about AppEngine can skip this paragraph.*
Google AppEngine: Google AppEngine is a Platform as a Service and cloud computing platform for developing and hosting web applications. ( aws-elastic-beanstalk equivalent of Google Cloud platform ).


I have been using the AppEngine for the past 3+ years and it is good cause we don't have to manage the infrastructure and or no need to worry about the downtime. Google will be taking care of that for us.

Here I'm talking about something that was not( officially still not ) available in Google AppEngine Standard environment, I'll list something that I felt important.

*) We can't do Nonblocking I/O
*) Threads ( Yup!, but there are alternative options for async calls provided by GCP)
*) GRPC ( AppEngine uses the jetty server, that is the answer )

**Let's talk about good new now?**
On Sep 2018 Oracle released their latest LTS version Java 11. with a lot of updates and after 9 months Google Announced that the Google AppEngine Standard Beta version will support java11.

I guess it will be a regular update from AppEngine and the existing limitations will remain the same. But After checking the Announcements it is quite surprising. Google decided to give more freedom the Developers. (YES!). 
 
(https://cloud.google.com/blog/products/application-development/turn-it-up-to-eleven-java-11-runtime-comes-to-app-engine).

I read the following lines in the documentation where I get excited more 

`
You’ll also find some changes in the Java 11 runtime. For example, the Java 11 runtime does not provide a Servlet-based runtime anymore. Instead, you need to bundle a server with your application in the form of an executable JAR.
`

I have tried bundled up Spring boot in the older version by changing the tomcat jetty container and it worked well. but I still the limitations was there. but today morning I decided to try with the netty server, Nonblocking I/O and threads with AppEngine. and it worked as expected.

I have created a GitHub repository to check how to use the java11 in AppEngine with Micronaut ( which has the netty as default server ) https://github.com/saifali40/micronaut-gcp. 

I tried the following :
To use thread I used the ParallelStream and none I used the Flowable (RxJava ).

If people are interested to see how the GRPC works, please post your comments will write about that in Next Article.
MongoDB deletes my db after unclean shutdown?
Tags: mongodb, devask, help
Published: 2019-07-03 16:24:17

Hey guys!

I am just starting with MongoDB and It has happened something really weird. I didn't lose anything valuable. But I definitely need to know what happened in order to avoid it to happen again, when I DO have something important.

I had created 2 small databases and had also shut down and restarted mongod several times. No problem.

However, I accidentally quit Hyper (bash) without closing the server. So I went back to bash, and killed the task with the following line with admin permission:

$ taskkill //PID 3628 //F

It finished the process. And then I was able to restart the mongo server and keep working. But when I did all the databases were gone!

So, it looks to me like pretty obvious that it was due to the unclean shutdown, but cannot find anything documented about it. Except for this short line in the Mongo Documentation:

*"In a clean shutdown a mongod completes all pending operations, flushes all data to data files, and closes all data files. Other shutdowns are unclean and can compromise the validity of the data files."*

Just wondering if any of you have ever experienced this, and just to confirm that this actually happened to me because I killed the process from the console or if you think there might be another reason.

Thank a lot!

P/S: working with NodeJS, Hyper (gitbash), MongoDB last ver., local.
Faster App Development with NgRx 8
Tags: angular, javascript, programming
Published: 2019-07-03 16:09:40

---
title: Faster App Development with NgRx 8
published: true
description: NgRx 8 features improved developer ergonomics, less boilerplate, runtime checks, and easier error handling.
tags: #angular #javascript #programming 
canonical_url: https://auth0.com/blog/faster-app-development-with-ngrx-8/
---
TL;DR: NgRx 8 introduces a host of improvements, including createAction, createReducer, and createEffect. These helper functions drastically reduce (no pun intended) boilerplate, which boosts developer productivity.

NgRx 8: A Massive Win
Shortly after the release of Angular 8, the NgRx team released their own version 8. It was a big release full of fantastic improvements to the library. While I'll let you read the official release announcement by Tim Deschryver, here are the highlights:

- angular-ngrx-data by John Papa and Ward Bell is now officially part of NgRx as @ngrx/data
- Runtime checks are now available to check that state and actions aren't mutated and are serializable (these replace the ngrx-store-freeze package)
- Fully isolated unit tests are now available thanks to mock selectors
- There have been a couple of improvements to @ngrx/router, including a new minimal routerState option
- There are now NgRx snippets in John Papa's Angular Snippets VS Code extension
- Alex Okrushko and Wes Grimes have joined the NgRx team (well deserved!)

I've saved the best for last, though, and it's the subject of this article.
[Continue Reading 📖](https://auth0.com/blog/faster-app-development-with-ngrx-8/?utm_source=dev&utm_medium=sc&utm_campaign=ngrx8_fastdev)
Top 5 Cool Github Projects
Tags: github, opensource, javascript
Published: 2019-07-03 16:03:33

https://medium.com/@romedy65i/top-5-cool-github-projects-aeef002d0a6d

1. Npm package — get-all-emoji
2. Github Readme Markdown — Chrome Extension
3. E-commerce website — made using React, Redux, Firebase, GCP
4. React Course for beginners
5. Alexa Skills — with APL
Top 5 Cool Github Projects
Tags: chrome, projects, alexa, github
Published: 2019-07-15 13:18:55

---
title: Top 5 Cool Github Projects
published: true
tags: Chrome,projects,Alexa,github
canonical_url: https://medium.com/@romedy65i/top-5-cool-github-projects-aeef002d0a6d
---

In brief, the given projects are mostly on the topics related to —  **_Alexa Skills, JavaScript, React, Redux, Firebase, GCP, Chrome Extensions._**

> Looking for Open Source cool projects?

> You’ve come to the right place. :)

![](https://cdn-images-1.medium.com/max/1024/1*8yz3hkO3ynHV2qYGARynJg.jpeg)

### 1. Npm package — get-all-emoji

- **_Download_**  — [https://www.npmjs.com/package/get-all-emoji](https://www.npmjs.com/package/get-all-emoji)
- **_Source code _** — [https://github.com/Anant016/get-all-emoji](https://github.com/Anant016/get-all-emoji)

![](https://cdn-images-1.medium.com/max/632/1*HIXnL6glp1r4hfT442uF3w.png)

### 2. Github Readme Markdown — Chrome Extension

- **_You can download it from here_**  — [https://chrome.google.com/webstore/detail/github-readme-markdown/paacehodnnofnmhogoclomamladkpabg?hl=en&authuser=0](https://chrome.google.com/webstore/detail/github-readme-markdown/paacehodnnofnmhogoclomamladkpabg?hl=en&authuser=0)
- **_Source code _** — [https://github.com/Anant016/Github-Readme-Chrome-Extension](https://github.com/Anant016/Github-Readme-Chrome-Extension)

![](https://cdn-images-1.medium.com/max/680/1*NESapmMd5xqMF2w3MdmGww.png)

### 3. E-commerce website — made using React, Redux, Firebase, GCP

- **_Demo_**  — [https://myeraser.herokuapp.com](https://myeraser.herokuapp.com)
- **_Source code —_**  [https://github.com/Anant016/E-commerce-website-react](https://github.com/Anant016/E-commerce-website-react)

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

### 4. React Course for beginners

- **_Exercise Files_**  — [https://github.com/Anant016/React-for-beginners-course](https://github.com/Anant016/React-for-beginners-course)
- **_Explained_** From Start to End — [https://medium.com/coolanant999/create-your-first-react-app-your-online-portfolio-and-deploying-3bc6fe2701d9?source=your\_stories\_page](https://medium.com/coolanant999/create-your-first-react-app-your-online-portfolio-and-deploying-3bc6fe2701d9)

![](https://cdn-images-1.medium.com/max/1024/1*Wm3XVZNncxNT-4SA9PUAXQ.png)

### 5. Alexa Skills — with APL

- **_Demo _** — [https://www.amazon.in/Anant-Rungta-anu-calculator/dp/B07T8M797J/ref=sr\_1\_1?keywords=anant+rungta&qid=1562168235&s=digital-skills&sr=1-1](https://www.amazon.in/Anant-Rungta-anu-calculator/dp/B07T8M797J/ref=sr_1_1?keywords=anant+rungta&qid=1562168235&s=digital-skills&sr=1-1)
- Mail me for Source code.

![](https://cdn-images-1.medium.com/max/807/1*iJDQwuMH1ws82kQbQCXxrQ.png)

_These are the top 5 projects that I’ve starred,_ _Star the ones you like —_

_Looking for some free swag — _[https://github.com/Anant016/Free-swags](https://github.com/Anant016/Free-swags)

_Spread and share knowledge. If this article piqued your interest and if you are kind fellow, give a_ **_few claps_** _to this article. Follow my profile for more_ **_open source stuff_** _._
My Problem with Learning the Internet. You too?
Tags: webdev, codenewbie, learning, discuss
Published: 2019-07-03 15:46:26

---
title: My Problem with Learning the Internet. You too?
published: true
description: Still beginning after already starting. 
tags: webdev, codenewbie, learning, discuss
---

I have a problem...

When I sit down, review concepts, touch on libraries/frameworks, take notes, etc... I get lost. 

I can't seem to pick one thing and stick to it. I'm all over trying to learn as much as I can, that I never fully pick up and understand the foundations. Even following the documentation that might lead to a small project or a tutorial that has links to supplemental material, or better yet, a video! I get lost!

This journey into web development is unlike anything else I've ever tried to do. Life before this was simple when undertaking new tasks at work or learn particular concepts. There's only two ways to do things; the right way and the wrong way. Which makes it A LOT easier to put into practice. 

With this seemingly endless ways to create using your own skills based on the concepts, I get lost in the practicality and implementation. That coupled with the VAST amount of resources makes me feel like I'm in the middle of a digital ocean. 

And because of this, I start, and touch on lots of topics and projects but never fully complete them or understrand the topics I'm working on. It's like I'm a cook trying to make a dish without all the ingredients or safety standards. I can put together something that looks edible but I'm probably gonna cut my finger and scrap the whole dish. 

Foundations: HTML, CSS, JS
Recent Libraries: React
Recent Frameworks: Angular
Tutorials: Odin Project, FreeCodeCamp
Personal Projects: Portfolio, Social Media App

AND THERE'S MORE!


I could vent more, but I really just wanted to share my woes as I continue to find my footing in the world of web development.
Zip with Python
Tags: python
Published: 2019-07-03 15:46:18

---
title: Zip with Python
published: true
description: python
tags: python
---
<img src="https://i.giphy.com/media/9hSsOshicxQHe/giphy.webp" alt="zip" width="25%">

You can zip and extract zip files with Python. What? yes.. you can. There's a module named zipfile which lets you do that

To add a single file

    #!/usr/bin/python3
    import zipfile
    f = zipfile.ZipFile('archive.zip','w',zipfile.ZIP_DEFLATED)
    f.write('file_to_add.py')
    f.close()

### Create a zip program

Now you can do this in a command line interface with the fire module

    #!/usr/bin/python3
    import fire
    import zipfile
    
    class ZipApp(object):
    
        def create_zip(self, filename, yourfile):
            f = zipfile.ZipFile(filename,'w',zipfile.ZIP_DEFLATED)
            f.write(yourfile)
            f.close()
    
    
        def unzip(self,filename):
            zfile = zipfile.ZipFile(filename,'r')
            for filename in zfile.namelist():
                data = zfile.read(filename)
                file = open(filename, 'w+b')
                file.write(data)
                file.close()
    
    if __name__ == '__main__':
        fire.Fire(ZipApp)

Then just use the terminal to create your zips:

    python3 zip.py create-zip example.zip zip.py
    python3 zip.py unzip example.zip

Would you use this to replace unzip in Linux? probably not, but it's fun to create zip with code.

<img src="https://media.giphy.com/media/l2Sqhi8BhHePhHohG/giphy.gif">

Depending on your program, it may be useful to store data into zip files or extract zip files.

Learn Python:
* https://pythonprogramminglanguage.com/
* https://pythonbasics.org/
Udacity Nanodegree program 'VR High Immersion developer '
Tags: virtualreality, vr, gamedev
Published: 2019-07-03 15:23:43

Are you interested in virtual reality? This post has my experience in Udacity Nanodegree program 'VR High Immersion developer' 
https://medium.com/@bshayr29/udacity-nanodegree-program-vr-high-immersion-developer-21fc52acd626
The Lead Developer (London): 12/10 Good Doggo: The Power of Positive Transformation
Tags: speaking, talkwriteup, video, autonomy
Published: 2019-07-15 16:21:04

---
title: The Lead Developer (London): 12/10 Good Doggo: The Power of Positive Transformation
published: true
tags: Speaking,Talk writeup,Video,autonomy
canonical_url: https://heidiwaterhouse.com/2019/07/03/the-lead-developer-london-12-10-good-doggo-the-power-of-positive-transformation/
---

The Lead Developer is one of my favorite conferences of all time. The talks are great, the experience as a speaker and as an attendee is wonderful, and I always leave feeling inspired and included. Getting accepted is an enormous honor, because it’s a single-track conference – everyone is going to experience the same talks.

This year, I crafted this proposal especially for The Lead Developer, because where else would I be able to give a talk about motivating developers and animal training psychology? The talk is an interweaving of my experience as a technical writer, my observations from 20 years in technology, and the fresh perspective I got from dog training books.

![A large auditorium, filled with hundreds of people](https://heidiwaterhouse.com/wp-content/uploads/2019/07/IMG_0712-300x225.jpg)

This is a big crowd to get up in front of with a dog-clicker and a cheerful theory about writing documentation, but I really feel great about the talk and the conversation it sparked.

![A white woman with pink hair gestures while talking in front of a very pink background](https://heidiwaterhouse.com/wp-content/uploads/2019/07/IMG_0753-300x182.jpg)

(if you’re wondering whether I coordinated my lipstick with the backdrop, the answer is HECK YES)
Compile Podcast Ep 5: Developer Workflow
Tags: podcast, workflow, beginners, career
Published: 2019-07-03 15:11:18

---
title: Compile Podcast Ep 5: Developer Workflow
published: true
description: A show where 2 programmers talk about anything and everything!
tags: podcast, workflow, beginner, career
---

*This is reposted from [my personal site](https://nickwu007.github.io/).*

Hello everyone! Welcome to the Compile Podcast, a show where 2 programmers talk about anything and everything!

In this episode, we talk about Developer Workflow with a great guest. We discuss the differences between uni and industry software projects, with some funny stories and some helpful tips, whether you are working or studying.

{% youtube OBArfVIDQwU %}

Next week we will have a new guest with a new topic! So subscribe and stay tuned!

My Twitter: https://twitter.com/WujunaoNick

This Podcast is also on:
 - Google Play Music: https://play.google.com/music/listen#/ps/Ifd5mlxhgc5cmlsytadsglqfd4y
 - iTunes: https://podcasts.apple.com/gb/podcast/the-compile-podcast/id1436437367 

### Breakpoints

 - 00:00 Intro.
 - 00:40 Catch up with John.
 - 06:07 Developer Workflow: how we do software projects.
	 - 06:42 Uni vs industry project workflow
	 - 18:48 Main framework: waterfall + agile
	 - 25:04 The main stages of a typical software project
	 - 52:04 “Compile down to essentials”.
 - 53:10 Pick and Plug.

### Links in this episode:

The Mythical Man-Month: https://en.wikipedia.org/wiki/The_Mythical_Man-Month\

Waterfall development process: https://en.wikipedia.org/wiki/Waterfall_model

Agile development process: https://en.wikipedia.org/wiki/Agile_software_development

John and Steve’s podcast “The Discomfortable Zone”: https://podcasts.apple.com/us/podcast/the-discomfortable-zone-podcast/id1294539931?mt=2.