teleren/devto huggingface dataset:
How to fix the error that the header file of Flutter Plugin does not find on iOS build
Tags: flutter
Published: 2018-04-01 14:44:03

---
title: How to fix the error that the header file of Flutter Plugin does not find on iOS build
published: true
description: 
tags: flutter
---

## How to fix
- Open the header file by XCode.
- Change from `Project` to `Public` of `Target Membership` at right column.
![](https://qiita-image-store.s3.amazonaws.com/0/123122/423bb388-5221-df0a-f048-285fcc6a6941.png)

👇

![](https://qiita-image-store.s3.amazonaws.com/0/123122/0103e1bc-d7c3-618b-d298-42809be82929.png)

You need to do this for all file if there are multiple header files.

## Environment
- Flutter 0.1.5
- Dart 2.0.0-dev.28.0
- iPhone X - 11.2

## Error message

```
/Users/rkowase/StudioProjects/stopwatch/ios/Runner/GeneratedPluginRegistrant.m:6:9: fatal error: 'firebase_admob/FirebaseAdMobPlugin.h' file not found
#import <firebase_admob/FirebaseAdMobPlugin.h>
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```


## Memo
If you add the Firebase Plugin, you need to add `GoogleService-Info.plist` by XCode as written in [Add Firebase to your iOS Project  |  Firebase](https://firebase.google.com/docs/ios/setup) .
![](https://qiita-image-store.s3.amazonaws.com/0/123122/02c5c5ee-90c2-495b-cd3a-24ea4400ecc3.png)


## Links
FirebaseAdMobPlugin.h file not found when using firebase_admob Plugin for Flutter - Stack Overflow
https://stackoverflow.com/questions/49473823/firebaseadmobplugin-h-file-not-found-when-using-firebase-admob-plugin-for-flutte

objective c - Swift compiler error: "non-modular header inside framework module" - Stack Overflow
https://stackoverflow.com/questions/24103169/swift-compiler-error-non-modular-header-inside-framework-module/24317456#24317456

"Made Podfiles use symlinks to local pods" not working · Issue #15099 · flutter/flutter
 https://github.com/flutter/flutter/issues/15099

PathProvider not found on iOS build - Google Groups
https://groups.google.com/forum/#!msg/flutter-dev/7QRk1RphLDE/5rLS4CciBwAJ

Firebase for Flutter
https://codelabs.developers.google.com/codelabs/flutter-firebase/#4

Add Firebase to your iOS Project  |  Firebase
https://firebase.google.com/docs/ios/setup
A Major Announcement for the DEV Community
Tags: meta, blockchain
Published: 2018-04-01 14:36:00

---
title: A Major Announcement for the DEV Community
published: true
description: 
tags: meta, blockchain
cover_image: https://thepracticaldev.s3.amazonaws.com/i/2oe76dql91rkuii77kce.png
---

It is the first day of a new financial quarter, and I am excited to announce some big changes for [dev.to](/). Today we follow in the footsteps of great financial innovators such as [Elizabeth Holmes](https://www.youtube.com/watch?v=dQw4w9WgXcQ) and [Kenneth Lay](https://www.youtube.com/watch?v=dQw4w9WgXcQ). In a bold (some might say heroic) move, we will be deprecating the web-facing [dev.to](/) client in favor of a blockchain client. As we all know, the blockchain (which invented the concept of trust) is becoming a critical component of all earthly ideas, from credit card processing to phrenology. We are simply getting ahead of the curve.

Instead of simply typing in the [dev.to](/) URL, our users will now have the privilege of jumping through a multi-step process of connecting to your own RPC server and control your connection to [dev.to](/). But don't worry, browsing will take minutes, instead of only a few milliseconds like you're used to. We expect a major bump in average session duration due to these innovations.

By now you might be asking "Ben, isn't this all incredibly inefficient?" and to answer that question, I present you [our very lengthy white paper](https://docs.google.com/document/d/1UZlxL2gYw_BtkcsdjwtPmLz8zPAurEFfktrwfFcRWPQ/edit?usp=sharing), which will address any asinine doubts you might have about our ~~heist~~ offering.

Without further ado, introducing the first DEV currency: [UniCoin](https://www.onhexel.com/token/937b6064-a8dd-4801-9b0c-340798799e99). It's called UniCoin to pay tribute to the "unicorn" term in private finance. Also known as the pinnacle of human achievement. For some reason, we've felt it crucial to intertwine currency with basic data storage and networking. But it's the wave of the future, right? Right?

Unicoin makes use of the revolutionary "proof of blind faith" algorithm. It builds on proof of trust and proof of stake but relies on a concept as old as humanity itself. I urge you to join us in our mission to make the world a better place through blockchain technology.

If this is all too complicated, but you still want to give us your money, [feel free to use PayPal](https://paypal.me/thepracticaldev). This is another perfectly valid way to exchange your money for absolutely nothing in return.

**The DEV Community**, _making the world a better place._
Is dev.to pulling a reddit?
Published: 2018-04-01 14:34:11

---
title: Is dev.to pulling a reddit?
published: true
description: 
tags: 
---
in the last couple of weeks I have had a lot of people following me, most of them having a github profile, but an empty one.
Is dev.to, by any chance, pulling an early reddit? Meaning, are you creating fake users just to make look like this website has more users that it actually has?
To Whom It May Concern: Did you read my cover letter?
Tags: discuss, career
Published: 2018-04-01 14:16:33

---
title: To Whom It May Concern: Did you read my cover letter?
published: true
description: A discussion of the value of a cover letter
tags: #discuss #career
---

As a college professor I get a lot of questions from students about applying for jobs and internships. Usually they are trying to land their first job after receiving a shiny new BSCS degree.

Last week a student came up after class and asked if I'd comment on their cover letter. It was a full page long, started with a joke, and I couldn't make it past the first paragraph. My advice was to tear it up and write a three-sentence note that:

- Acknowledged that the recruiter / manager is busy
- Mentioned one specific thing the student found interesting about the company
- Thanked the recruiter / manager for their time

I've been involved in the hiring process in the tech industry many times and have gone through literally thousands of resumes. I never read cover letters. My points to the student were:

- The recruiter just wants to get through the stack; they aren't reading your cover letter
- You don't know the recruiter, and so any attempt to 'connect' with them is wasted and can come across as disingenuous
- Spend the time you would have spent on the letter making your resume visually effective; you have only 3 or 4 seconds to grab the reader's attention with your most important point

I'm curious to hear what other folks think about cover letters, especially those who are actively involved in the hiring process. Do you read them? Do they affect your decisions?
Auto translation bot for Slack using Zapier
Tags: zapier, slack
Published: 2018-04-01 13:59:44

---
title: Auto translation bot for Slack using Zapier
published: true
description: 
tags: zapier,slack
---

I created an auto translation bot for Slack using [Zapier](https://zapier.com).

## How to use
Add the reaction specified Zapier to the comment you want to translate.

## How it works
The slack bot post a translated comment into thread when the reaction specified by Zapier is added.
![](https://thepracticaldev.s3.amazonaws.com/i/6lobrdult35e1kwlp4g7.png)

## How to create this Zap

### Overview
![](https://thepracticaldev.s3.amazonaws.com/i/905wdixupisun4yip3g4.png)

### 1. Add TRIGGER - Slack (New Reaction Added)
Set which reaction will be triggered.
- Reaction: `2en` (Specify any Emoji)
- Channel: (Not specified)
- User: (Not specified)
![](https://thepracticaldev.s3.amazonaws.com/i/au57e4p0ddqe0bqjpjw6.png)

### 2. Add FILTER - Filter by Zapier (Only continue if...)
Add this filter if you want to trigger the specific channels. (This task is optional)
![](https://thepracticaldev.s3.amazonaws.com/i/tdn6za8zrqkg66tlvfzt.png)

### 3. Add ACTION - Formatter by Zapier (Text)
Extract the ID of the reacted comment from the permalink to prevent multiple posting.
- Transform: Extract Pattern
- Values (Input): The `Message Permalink` of Step 1
- Pattern: `.*/(.*)(\?.*)?`
![](https://thepracticaldev.s3.amazonaws.com/i/ufp2wr3twmq9ugkh4wdx.png)

### 4. Add SEARCH - Slack (Find Message)
Search the ID of the reacted comment to prevent multiple posting.
- Search Query: `in:#<MESSAGE_CHANNEL_NAME> from:2en <OUTPUT_OF_STEP3>`
- Sort By: (Not specified)
- Sort Direction: (Not specified)
![](https://thepracticaldev.s3.amazonaws.com/i/r7meo9apra27qftvryx4.png)

### 5. Add FILTER - Filter by Zapier (Only continue if...)
Filter the `Permalink` of Step 4 to prevent multiple posting.
![](https://thepracticaldev.s3.amazonaws.com/i/xz6a41mmqr7xtvek79ij.png)

### 6. Add ACTION - Translate by Zapier (Translate Text)
Translate the original comment into English.
- Source Language: (Not specified)
- Text: The `Message Text` of Step 1
- Target Language: English
![](https://thepracticaldev.s3.amazonaws.com/i/a6ltm9uf6uzb4zqkd8r5.png)

### 7. Add ACTION - Slack (Send Channel Message)
Post the translated comment.
- Channel: Use a Custom Value
- Custom Value for Channel ID: The `Message Channel Name` of Step 1
- Message Text: `<TRANSLATION_OF_STEP6> <PERMALINK_OF_STEP1> original comment (<OUTPUT_OF_STEP3>) (<SOURCE_LANGUAGE_OF_STEP6>)`
![](https://thepracticaldev.s3.amazonaws.com/i/neeiv683r87tfy35w03e.png)

Post into thread.
- Thread: Use a Custom Value
- Custom Value for Thread Timestamp: The `Message Ts` of Step 1
![](https://thepracticaldev.s3.amazonaws.com/i/w2g3vf0fwdb4hh9q1zcg.png)
Is Touch-Typing an Important Skill for Software Developers?
Tags: discuss
Published: 2018-04-01 12:38:55

---
title: Is Touch-Typing an Important Skill for Software Developers?
published: true
tags: discuss
---

When I watch my expert colleagues navigate their work, I'm impressed by how their tools look like an extension of their body. A videographer with a custom Final Cut jogwheel + keypad setup, a designer who knows every Illustrator shortcut - they go about their work with a fluidity that looks like a dance. They never look at their hands while they're working.

In college, a professor told me that "Once you learn `vim`, you can move mountains." This sounded impressive, but didn't really click with me until 5 years after I graduated when I finally went through `:vimtutor` and dedicated myself to using Vim for all of my code development. I can move mountains (of text)! But `vim` is all but useless if you can't touch-type.

I've always told my colleagues at work to memorize keyboard shortcuts. "Imagine how many hours of your life you've spent just moooooving your hand over to the mouse so that you can click some icon!" I say. But then I realized: keyboard shortcuts will only save you time if you can touch-type. If you can't find home row, a keyboard shortcut is not going to make you faster.

So that's my question - given that our range of professions involve fending our way through gigantic piles of text, is true mastery only attainable to those who know how to touch type? Or is it merely a nice tool to have in one's proverbial belt? Or am I missing the point entirely?
Flutter is only phase one in Google's OS master plan
Tags: commentary, google, flutter, fuchsia
Published: 2018-04-07 12:09:35

---
title: Flutter is only phase one in Google's OS master plan
published: true
tags: Commentary,Google,Flutter,Fuchsia
canonical_url: https://blog.jonstodle.com/flutter-is-only-phase-one-in-googles-os-master-plan/
---

I've been playing around with Google's new cross platform effort lately, and it looks to be coming along quite nicely. I have also been thinking a lot about what Flutter's future might be.

In it's first phase, it's "just" a cross platform way to write highly performant visual applications, but I think it's just Google's first step in their plan to make their new operating system, Fuchsia, relevant.

At this point it's no secret that Google's working on a new operating system. There are not too many details yet, but one thing that's been uncovered is that Flutter is going to be the SDK or app development kit for this new operating system. In a best case scenario, developers are going to see their apps run with little or no change on Google's new OS.

I think one of the main difficulties when trying to launch a new operating system is getting users to the platform. Without apps, users are not going to make the jump, but without the users, the developers are not going to make the jump either.

What Google is trying to create however is a situation where a lot of app are going to be able to run on their new operating system right away. "Want to support our new fancy platform? Make these 5 small changes and you're good to go!". Or even better: "Run this tool and it will tell you what will have to be fixed and whether it can be fixed automatically by the tool."

Samsung is trying to make a push with their new operating system, Tizen, too. While I'm still very skeptical whether they'll succeed in their quest to supplant Android, they're also making a similar bet, but with .NET Core. .NET Core is going to be the main SDK for Tizen, which makes Samsung able to tap into a pretty large developer base that way.

How all this works out will only be known in the future, but I think Google might just have the power and influence to force (another) new operating system into the market.
How to add a click event to any widget of Flutter
Tags: flutter
Published: 2018-04-01 08:27:33

---
title: How to add a click event to any widget of Flutter
published: true
description: 
tags: flutter
---

How to add a click event to any widget of Flutter.

## TL;DR

Use `GestureDetector` widget

## Sample code

```dart
GestureDetector(
  onTap: () {
    print("onTap called.");
  },
  child: Text("foo"),
),
```

## Environment
- Flutter 0.1.5
- Dart 2.0.0-dev.28.0

## Link
user interface - Flutter - Container onPressed? - Stack Overflow
https://stackoverflow.com/questions/43692923/flutter-container-onpressed
Linux Iptables Firewall Simplified Examples
Tags: linux, security, beginners
Published: 2018-04-01 06:18:31

---
title: Linux Iptables Firewall Simplified Examples
published: true
description: 
tags: #linux #security #beginners
---

1 Iptables on CentOS 7
2 How Linux Firewall Works
2.1 Firewall Types
3 iptables Firewall Tables
4 Table Chains
5 Chain Policy
6 Adding iptables Rules
7 Iptables Rules Order
8 List iptables Rules
9 Deleting Rules
10 Replacing Rules
11 Listing Specific Table
12 Iptables User Defined Chain
13 Redirection to a User Defined Chain
14 Setting The Default Policy for Chains
15 SYN Flooding
15.1 SYN Cookies
16 Drop INVALID State Packets
17 Drop Fragmented Packets
18 Save iptables Rules

https://likegeeks.com/linux-iptables-firewall-examples/

Hope you like it.
Regards,
Useful Chrome Extension for Flutter
Tags: flutter
Published: 2018-04-01 04:44:40

---
title: Useful Chrome Extension for Flutter
published: true
description: 
tags: flutter
---

There is a useful chrome extension for Flutter.
[Flutter developer - Chrome Web Store](https://chrome.google.com/webstore/detail/flutter-developer/kimjiioacelfpeflakmeclmfndijcfpp)

## How to use

Click `See source code for Container class` on API Doc.

https://docs.flutter.io/flutter/widgets/Container-class.html
![](https://qiita-image-store.s3.amazonaws.com/0/123122/daf14325-aee0-8fb7-c3fb-8a1f79864448.png)

You can jump the source code.

https://github.com/flutter/flutter/blob/master/packages/flutter/lib/src/widgets/container.dart#L232
![](https://qiita-image-store.s3.amazonaws.com/0/123122/6731ac63-596c-0f01-15e0-4736340d997c.png)


## Link
Flutter developer - Chrome Web Store
https://chrome.google.com/webstore/detail/flutter-developer/kimjiioacelfpeflakmeclmfndijcfpp
File Structure and Organization Talk at Women in iOS Meetup
Tags: ios, filestructure, development, fileorganization
Published: 2018-09-10 16:11:21

---
title: File Structure and Organization Talk at Women in iOS Meetup
published: true
tags: ios,file-structure,development,file-organization
canonical_url: 
---

Found my talk as I was cleaning up and backing up my old laptop before exchanging it for a new and faster one. This was my first time giving a talk at the Women in iOS Meetup in NYC. I had a lot of fun giving the talk and it felt great sharing how we organize our file structure so that new hires can understand how we work and become productive right away.

{% youtube tS\_Rus\_PuWg %}
Game Development at its finest: my story
Tags: gamedev, discuss, beginners, learning
Published: 2018-03-31 19:56:21

---
title: Game Development at its finest: my story
published: true
description: Story behind my process, point of view on the industry
tags: #GameDevelopment #discuss #beginners #learning
---
![One of  my projects](https://pbs.twimg.com/media/DHL_Fs0XgAERFWs.jpg)


##Story##
Everything started with the creation of my first game. I was around 14. I already knew it had to be a 2D game and around that time I've started looking into old-school games. GTA 1 got my attention so I picked it. Lovely times. I honestly think that developing this game I enjoyed the most... from all the games I've ever created. The enormous joy and dedication. Never felt like this again... it's interesting. New projects started following after another.

![One of  my projects](https://krystof-toman.webnode.cz/_files/200000037-257ac26790/GTA.b%20Photo01.png)

Until I had got into a dark spot. I was 16 and my parents were forcing me into finding a job. But the idea of working in a fast food was not for me. I made a decision, that my only income will be from game development. We've argued, but luckily, time went by and ...

A new part in my life, that I would call… resurrection, maybe even blessing, came up and with that new opportunity! A small one-time job for my school, creating a VR game for representation of our school. It was paid. First "big money" what lil' Chriss had!

##Challenge##
Many people in my life call it insignificant, silly and reckless.  I I've heard many phrases: *"Your games suck."*, *"You should consider something more... real."*, *"Ha, making games?! You serious? That’s easy!"* and mainly…

####***"You won't make it.". Cliché.***####

Was shocked what was hiding behind that smiley face that was "supporting" me, what they really meant by "I'm glad for you". Believe and trust are very precious, I can't express that enough.

##What are games?##
A game is form of art. Combinations of many art forms, work of many people, form of many experiences. Games are personal, unique understandings of it’s narrative. They can be even a social opportunity, people gather around the experience together and socialize. Often marked as sick and strange. But many gamers who played with each other 10 years ago, are now together. 

Behind the experience is precise engineering, knowledge of people and their emotion. This part is really close to movies. Visuals, esthetics, sounds and mechanics are the other significant part. And the last is the programing itself. Not many gamers are interested in the technical part, its completely hidden. Until somebody wants to create content for your game. And that is my part, the programing, the key why everything works, not often appreciated.

And that's me, programmer, my position in the havoc of the game development. Sooner or later I realized how complicated games are and how much I really need a team to work with.


Good luck fellow game developers and engineers, it won't be easy… but trust and believe in your teammates.
Higher Order Function in Kotlin 
Tags: kotlin, android
Published: 2018-03-31 19:52:02

---
title: Higher Order Function in Kotlin 
published: true
description: Instruction on how to use higher order functions in Kotlin
tags: Kotlin, Android
---

*Note: This post was originally published on my [blog](http://jensklingenberg.de/higher-order-functions-in-kotlin/).*

##What is a Higher Order Function?

A higher-order function is a function that can take other functions as parameters and returns other functions.

{% gist https://gist.github.com/Foso/ecbc10f9b6dfc41162d25c4f4010efcd %}


You can create a higher order function like any other function in Kotlin, but you need to create an parameter that has a function as the type. As you can see above my **printIt()** method has a parameter named **“passedFunction”** of the type **“()”**, which means that it’s a function. **“→ Unit”** is the return value of the function that is passed in **printIt()**. For a example if you would have a function with the parameter **“function: ()→Boolean”** you could only pass in functions which return an Boolean Value.

To execute **“passedFunction”** you need to use round brackets after the function name, so **“passedFunction()“**. Without the brackets the “passedFunction” will still be of type function and can be passed to further functions.

##How to call a Higher Order Function?

{% gist https://gist.github.com/Foso/6d62dd3f465a28e5f5787f9fce09536e %}

You use the function like any other Kotlin function, but you use braces instead of round brackets. Everything that is inside **printIt{}** will then be passed to the method **printIt()** and will be executed wherever the passed function is called.

##Other Example:


{% gist https://gist.github.com/Foso/dde83583592dd7f54ad69c84338f2552 %}

On Android i’m using this function in combination with RxJava to run functions outside of the MainThread. I just need to wrap **runInBackground{}** around the functions, that should run in the background and i can avoid using things like AsyncTask.

##Resources
[Kotlin Reference Higher Order Functions](https://kotlinlang.org/docs/reference/lambdas.html)
 You can try the first example in a browser on[ Try Kotlin](https://try.kotlinlang.org/#/UserProjects/adkuohd8i9m5v06okrnm35t0pn/tcdh6qkcaf0o4nn3sam6pl905k)
Markdown Helper:  Recursive?
Tags: github, ruby, markdown, discuss
Published: 2018-03-31 18:07:46

---
title: Markdown Helper:  Recursive?
published: true
description: Should it be recursive?
tags: github, ruby, markdown, discuss
---

Gem [markdown_helper](https://rubygems.org/gems/markdown_helper) supports file inclusion, but not (yet) recursive file inclusion.

Should it?