teleren/devto huggingface dataset:
How to fix Cydia Impactor 168 Error (provision.cpp:168)
Tags: cydiaimpactor, cydiaimpactor168, cydiaimpactorerror
Published: 2019-04-30 14:30:37

---
title: How to fix Cydia Impactor 168 Error (provision.cpp:168)
published: true
description: Cydia Impactor is one of the best tool for installing apps outside of app store. Here I have attached provision.cpp:168 solution which I faced.
tags: cydia impactor, cydia impactor 168, cydia impactor error
---

There is a high possibility that you are aware of Cydia Impactor tool. This is a must-have tool for every iOS device holder. It provides user-friendly interface to install all of those apps outside of app store. 

However, I was installing YouTube++ IPA file using Cydia Impactor and it showed:provision.cpp:168. I tried with reinstalling but is threw the same error. After surfing a bit, here are the solutions for <a href="https://cydiaimpactor.online/cydia-impactor-errors/">cydia impactor 168</a> I came with. One of the listed solution will works for sure.

 <img src="https://i.imgur.com/mWx9yUo.jpg" alt="cydia impactor 168">

###<b>1. Create App-Specific Password</b>
This helps if you have Google 2fa enabled. Most of the iOS device have 2fa enabled. In this case you need to create one-time app-specific password.

1. Log in on Apple web entrance using your Apple credentials. 
2. Go to Security and click on app-specific password.
3. Create a tag by naming it and click on generate password.
4. Now, drag and drop your IPA on cydia impactor.
5. Enter Apple ID and password that we created from Apple entrance.

###<b>2. Revoke Certificates</b>

This was the first method I tried right after its birth. Here is the guide to solve it:

1. Open Cydia Impactor
2. Connect your iOS device to your computer. Wait while it detects your device.
3. Go to Xcode > Revoke Certificates.

That's it! Now try reinstalling your IPA. 



Wait while it installs and it's done!

###<b>3. Install Manually using Install Package</b>

If both listed solutions are not working, manual installation should work here.

1. Open Cydia Impactor
2. Connect your iOS device to your computer. Wait while it detects your device.
3. Go to Device > Install Package
4. Locate your IPA file from your computer and it will start instillation.

You will get Success at the end where you're finished.
Cargo build script
Tags: rust, cargo, build
Published: 2019-04-30 14:25:55

---
title: Cargo build script
published: true
description: cargo build script
tags: rust, cargo, build
---

试用了下tower-grpc，作为萌新很多东西不知道，以前用这种都是protoc ....先生成代码，看了下example，结果就没发现哪儿有生成代码的过程。仔细看了下

```rust
pub mod hello_world {
    include!(concat!(env!("OUT_DIR"), "/helloworld.rs"));
}

use hello_world::{server, HelloReply, HelloRequest};
```

在 hello_world mod里面用 include! 把生成的代码给搞了进来。

ok，我们继续纠结生成的代码在哪儿？怎么生成的？

发现目录里面有个 build.rs 萌新虽然不了解这个，但是看他名字就知道和编译相关了，于是Google了一下
[https://doc.rust-lang.org/cargo/reference/build-scripts.html](https://doc.rust-lang.org/cargo/reference/build-scripts.html)

其实就是在build的时候执行的东西，还能指定build-dependencies什么的。简单看了下，这里面就是编译了.proto，然后输出到了OUT_DIR，所以上面的include！就能用了。
I recently embarked on my journey as Principle Engineer. If you want to know what that means or how it's going, Ask Me Anything!
Tags: ama, webdev, career
Published: 2019-04-30 14:00:48

---
title: I recently embarked on my journey as Principle Engineer. If you want to know what that means or how it's going, Ask Me Anything!
published: true
tags: ama, webdev, career
---

For the last 4 years my field of expertise has been in highly scalable web applications, focusing on clients built with web components communicated with restful web services written in Javascript that persist to lightning fast postgres instances.

More recently I have taken the path of Principle Engineer and am currently building out an enterprise service platform. This is leveraging good practice from the microservices community and aims to provide the platform on which the company can build out customer facing products taking full advantage of common agile methodologies. Its all about speed of change!

I see the role of Principle Engineer to be one of leadership. What do I mean by this? First that it affords me the time to fully investigate the best solutions for a given set of business requirements, within the constraints of the current Engineering proposition. Then it becomes a job of collaboration with the team to bring them on the journey you have made. If you cannot provide compelling arguments for the decisions you have made, and get the team on board, you haven't got the right answer! It is not the role of the Principle Engineer to dictate the solution but to light the way. The hardest skill to learn is when to disagree and commit (in the Amazon parlance). It is only possible if you do not take your position as one of manager. Only a teacher and collaborator will succeed.
corresponding JavaScript cannot be found
Tags: typescript
Published: 2019-04-30 13:08:36

---
title: "corresponding JavaScript cannot be found"
description: 
tags: typescript
published: true
---


When first learning Typescript (properly learning, not create-react-app), I ran into this error while attempting to run .ts files in VS Code. 

The solution is to actually build the .ts file into a .js file. To do this, run 

    tsc --watch

in your project directory.
Hey parents, share your strategies for making time to learn/make/play.
Tags: discuss, parenting, growth, learning
Published: 2019-04-30 12:58:30

---
title: Hey parents, share your strategies for making time to learn/make/play.
published: true
description: As parents, we need to be creative in making time for ourselves to make sure we are continually feeding our minds and growing while taking care of our responsibilities. Which strategies do you use to make time for yourself?
cover_image: https://thepracticaldev.s3.amazonaws.com/i/mqkp4el9howl4fmayvsv.jpg
tags: discuss, parenting, growth, learning
---


Time goes fast. It goes even faster if you’re a parent. As parents, we need to be creative in making time for ourselves to make sure we are continually feeding our minds and growing while taking care of our responsibilities. It is a juggling act. Every day brings its own challenges but still, we push forward and find ways to make time for ourselves.

Sure there will be days which throw us off our plans. Life happens to us all but we still keep charging forward and making the best of the time we have.  

##What strategies do you use to make the time to learn/make/play?

I’ll go first: 
1. I wake up a few hours before my family to get my personal time. Those few hours of quiet time are wonderful. 	
2. I read if I need to be with the kids while they play. Even if I can sneak in a single page I feel like I am making progress on the reading front.
3. Make good use of lunchtime to learn/read/illustrate.


Your turn! Share the strategies you use to make time for yourself. I know I need more of them. :)

Cheers 

---
Photo by Kaylah Otto on Unsplash
Can a remote team work
Tags: discuss, remoteworking, collaboration, advice
Published: 2019-04-30 10:49:43

---
title: Can a remote team work
published: true
description: 
tags: #discussion, #remoteworking, #collaboration, #advice 
---

Remote teams seem to be common in larger organisations and something I am very new to.

I've always worked with my dev team around me but now I'm the lone BA working in a different time from the main team. 

I'm finding it harder to learn their ways of working, often not included in meetings or I find it hard to make myself heard. 

None of which has ever been in issue in previous roles!

So really I'm looking for some pointers and advice on how to be the lone remote worker in a team. 

Thanks
React Native Get Remote Image Dimensions Android IOS
Tags: react, reactnative, javascript, es6
Published: 2019-04-30 10:29:15

---
title: React Native Get Remote Image Dimensions Android IOS
published: true
description: React Native Get Remote Image Dimensions Android IOS
tags: #react #reactnative #js #es6
---

Source : <a href="https://www.skptricks.com/2019/04/react-native-get-remote-image-dimensions.html" > React Native Get Remote Image Dimensions Android IOS </a>

This tutorial explain how to get remote image dimensions in height and width in react native application. React native Image component provides a method named as getSize  which is used to get remote image dimensions in width and height.

getSize() function of Image Component In React Native :
Retrieve the width and height (in pixels) of an image prior to displaying it. This method can fail if the image cannot be found, or fails to download. In order to retrieve the image dimensions, the image may first need to be loaded or downloaded, after which it will be cached. This means that in principle you could use this method to preload images, however it is not optimized for that purpose, and may in future be implemented in a way that does not fully load/download the image data. A proper, supported way to preload images will be provided as a separate API.

<img src="https://1.bp.blogspot.com/-HmMhNiJ9kEk/XMf2YM-_HtI/AAAAAAAACvg/vgKikxM4HP0vTu1rQClMiWucuOqGHe6YwCLcBGAs/s400/image.jpg" />

<a href="https://www.skptricks.com/2019/04/react-native-get-remote-image-dimensions.html" > Click here to read more... </a>
React Native Ellipsis Text From End, Start, Middle Android/IOS
Tags: react, reactnative, javascript, es6
Published: 2019-04-30 10:27:49

---
title: React Native Ellipsis Text From End, Start, Middle Android/IOS
published: true
description: React Native Ellipsis Text From End, Start, Middle Android/IOS 
tags: #react #reactnative #js #es6
---

Source : <a href="https://www.skptricks.com/2019/04/react-native-ellipsis-text-from-end-start-middle.html" > React Native Ellipsis Text From End, Start, Middle Android/IOS</a>

This tutorial explains how to create ellipsis clipped text in React Native. We are going to explain and show you how we can add Ellipsis on different positions in react native Text component. Ellipsis is a type of property of CSS(Caching Style Sheet) used to clip the text present in a specific area when it crosses the area it clip the text and shows the …(Three Dotes) format at the end of Text. In CSS it is a property of text-overflow. So in this tutorial we would going to Create Ellipsis Clipped Text in React Native iOS Android application full example tutorial. In React Native we can set the default Ellipsis using numberOfLines = { 1 } prop of Text component. This prop would allow us to implement the Ellipsis Clipped effect on Text.

<img src="https://4.bp.blogspot.com/-FxQGhhpKq48/XMbKtdJEIhI/AAAAAAAACvA/qW22zV-A2vUJ_iBFub71pE53gov5hwzKwCLcBGAs/s640/ellipse.jpg" />


<a href="https://www.skptricks.com/2019/04/react-native-ellipsis-text-from-end-start-middle.html" > Click here to read more...</a>
React Native Create Custom Rectangle Shape View
Tags: react, reactnative, javascript, es6
Published: 2019-04-30 10:25:43

---
title: React Native Create Custom Rectangle Shape View
published: true
description: React Native Create Custom Rectangle Shape View
tags: #react #reactnative #js #es6
---

Source : <a href="https://www.skptricks.com/2019/04/react-native-create-custom-rectangle-shape-view.html" >React Native Create Custom Rectangle Shape View </a>

This tutorial explains how to create custom rectangle and square shape view in react native application. In Euclidean plane geometry, a rectangle is a quadrilateral with four right angles. It can also be defined as an equiangular quadrilateral, since equiangular means that all of its angles are equal (360°/4 = 90°). It can also be defined as a parallelogram containing a right angle. A rectangle with four sides of equal length is a square. The formula of finding area of rectangle is ( A = W * L ). The Square shape has the same line structure but the width and height of square is same.

<img src="https://1.bp.blogspot.com/-X6fMOYMgHh4/XMZ2eEJRpkI/AAAAAAAACuE/Dn0vr-CBwycBQkh4c3ysLmeeYOD4I4kwQCLcBGAs/s640/rec.jpg" />


<a href="https://www.skptricks.com/2019/04/react-native-create-custom-rectangle-shape-view.html" > Click here to read more... </a>
React Native Basic Simple Typing Text Animation
Tags: react, reactnative, javascript, es6
Published: 2019-04-30 10:23:53

---
title: React Native Basic Simple Typing Text Animation
published: true
description: React Native Basic Simple Typing Text Animation
tags: #react #reactnative #js #es6
---

Source : <a href="https://www.skptricks.com/2019/04/react-native-basic-simple-typing-text-animation.html" > React Native Basic Simple Typing Text Animation</a>


This tutorial explains how to create basic simple typing text animation in react native with blinking cursor support. In this example we are going to create AnimationTypingText custom components typing text and cursor blinking animation and all functionalities required to perform typing text and blinking cursor animation and In the App component we will create the instance of our AnimationTypingText custom component and allows user to pass props to our custom component.

<img src="https://4.bp.blogspot.com/-u7wjNUAC7w0/XMXOgwL657I/AAAAAAAACts/iEHeafSfUk0eLH6pHQFYw883SH24X4mqACLcBGAs/s640/typing.jpg" />

<a href="https://www.skptricks.com/2019/04/react-native-basic-simple-typing-text-animation.html" > Click here to read more..</a>
Docker Best Practices, back to basics.
Tags: docker, beginners, devops, serverless
Published: 2019-04-30 10:16:14

---
title: Docker Best Practices, back to basics.
published: true
description: Best practices for Docker 
tags: docker, beginners, devops, serverless
---

You're new to Docker ? I was too. Everyone wants to build awesome projects with Docker, build some images and start containers. That's cool ! Docker is cool. But you missed a point, there are some rules to use it.

# Rule number one ! Keep it simple and small.

Docker images are meant to be SMALL. As small as possible.
Docker is a conteneurisation system not a virtual machine. Don't reproduce all your GNU/Linux distribution on it.

To have a lightweight image, you can first take a look to Alpine versions. Alpine is a Linux based on MUSL and BusyBox instead of basical GNU. If you want to use a Debian base image anyway, don't forget to clean apt after installing packets.

# Choose a Official Docker image, you must.

There is an ocean of Docker images available on Docker Hub but they are not all secured. You must choose a official image and add to it what you need. For example, don't use a PHP image made by a unknown person found on the Hub but prefer to use the php official image with the adapted tag.

If you really need to use a unofficial image, take a look at the Dockerfile. Most of images provides the Dockerfile associated to the image. If the base image is based itself on an other unofficial image, search it  ! Go the deeper possible. Finally, avoid closed images with no Dockerfile provided, it could be insecure. 

# You're saying image tag ? Don't use the latest.

When you're building a Dockerfile, everyone has already added a FROM statement with the latest tag on the image. Everyone, don't lie.
So don't do that ! For the simple reason that the latest tag is the latest not the more stable. If the latest tag change to an upper version it could broke all your system. You should consider to choose a version no matter the base image you use.

# Dev environements are not the same as Prod environements.

For a use in production, there are more rules.
First of all, don't use docker-compose on production. Prefer using a orchestrator like Swarm or Kubernetes. If you have to use docker-compose on a project, you could switch to an orchestrator. It's not too much.

Secondly, containers should be stateless. For example, don't conteneurize databases. 
 
Finally, One container, One task. A container should do only one thing like running a webserver, execute a script, run a ElasticSearch or a Redis or a RabbitMQ even a GitLab but not all together.

# TL;DR

To conclude :
- Make small and simple images
- Use official Docker Hub images as possible
- Never use the latest tag
- Be careful on what you're doing on production

# Useful links

https://docs.docker.com/develop/dev-best-practices/
https://docs.docker.com/develop/develop-images/dockerfile_best-practices/
and all the Docker documentation 

Feel free to add your best practices in comments !
Things I Enjoy in Rust: Macros
Published: 2019-04-30 10:36:05

---
title: Things I Enjoy in Rust: Macros
published: true
tags: 
canonical_url: http://blog.jonstodle.com/things-i-enjoy-in-rust-macros/
---

 **Things I enjoy in Rust:**

1. [Enums](https://dev.to/jonstodle/things-i-enjoy-in-rust-enums-4cdl)
2. [Error Handling](https://dev.to/jonstodle/things-i-enjoy-in-rust-error-handling-2jkh)
3. [Immutability](https://dev.to/jonstodle/things-i-enjoy-in-rust-immutability-b9g)
4. [Impl](https://dev.to/jonstodle/things-i-enjoy-in-rust-impl-1doj)
5. **Macros**

I had never used a programming language with macros before Rust. I’ve heard about it, and seen some rave about it, but I’ve never actually looked into what they do. Now that I know - I love them!

Macros in Rust enables what is sometimes called _meta programming_: code writing other code. When you use a macro in Rust, you’re actually calling a function which takes the input and generates more code based on that input. The result of this is what’s fed to the compiler.

These macros are much like keyboard macros or programmable macros in some software: they let you automate repetitive tasks.

Granted, I haven’t written any macros myself, but I love that I’m able to use convenience macros from both the standard library and from external crates.

Let’s take this example from [_The Book_](https://doc.rust-lang.org/stable/book/) which shows how the `vec!` macro works:

```
// vec! macro defined
#[macro_export]
macro_rules! vec {
    ( $( $x:expr ),* ) => {
        {
            let mut temp_vec = Vec::new();
            $(
                temp_vec.push($x);
            )*
            temp_vec
        }
    };
} 

// vec! macro in use
let v: Vec<u32> = vec![1, 2, 3];

```

The `macro_rules!` defines the kind of input the `vec!` macro accepts (a variable number of inputs), it creates a new `Vec` instance, and `push`es the inputs into the `Vec` and returns it.

In addition, as of the 2018 edition of Rust, it’s been possible to create macros for use with `#[derive()]`, which makes it possible for anyone to create macros that can act on `struct`s. Just like how `#[derive(Clone)]` makes a struct implement the `Clone` trait, you can make a macro that automatically implements your own traits for any struct.

Hate writing tons of boiler plate code to convert your structs to JSON or convert JSON to structs? The `serde` crate has macros for that! With a simple `#[derive(Serialize, Deserialize)] your struct support being serialized and deserialized to JSON and back. That’s just about as simple as it gets.

With macros, there’s much to enjoy.
What Is Container Orchestration?
Tags: docker, kubernetes, mesos
Published: 2019-08-01 08:51:06


Container orchestration is a process that automates the deployment, management, scaling, networking, and availability of container-based applications

[![dockerHost](https://devkamboj.in/static/2f310240973323d7b5b30c088bd26143/47007/dockerHost.png "dockerHost")](/static/2f310240973323d7b5b30c088bd26143/47007/dockerHost.png)

If your application relies on other containers such as databases or messaging services or other backend services? What if the number of users increases and you need to scale your application? How do you scale down when the load decreases? To enable these functionalities, you need an underlying platform with a set of resources and capabilities. The platform needs to orchestrate the connectivity between the containers and automatically scale up or down based on the load. This whole process of automatically deploying and managing containers is known as Container Orchestration. Kubernetes is just a container orchestration technology. There are multiple such technologies available today. Docker has its own tool called **Docker Swarm** , **Kubernetes from Google** and **MESOS from Apache**.

[![orchestrationTechnologies](https://devkamboj.in/static/3dc1f41a3aa2eed01ff1a2c50c7dd064/e334e/orchestrationTechnologies.png "orchestrationTechnologies")](/static/3dc1f41a3aa2eed01ff1a2c50c7dd064/e334e/orchestrationTechnologies.png)

While [Docker Swarm](https://docs.docker.com/swarm/overview/?source=post_page) is really easy to set up and get started, it lacks some of the advanced features required for complex applications.

[MESOS](http://mesos.apache.org/?source=post_page#what-is-mesos-a-distributed-systems-kernel), on the other hand, is quite difficult to set up and get started but supports many advanced features.

[Kubernetes](https://kubernetes.io/?source=post_page) arguably the most popular of it all, is a bit difficult to set up and get started by provides a lot of options to customize deployments and supports the deployment of complex architectures. Kubernetes is now supported on all public cloud service providers like GCP, Azure, AWS, and Kubernetes project is one of the top-ranked projects in Github.

There are various advantages of Container Orchestration: Your application is now highly available as hardware failures to not bring your application down because we have multiple instances of your application running on different nodes.

The user traffic is load balanced across the various containers. When demand increases, deploy more instances of the applications seamlessly and within a matter of seconds. And we have the ability to do that at a service level when we run out of hardware resources, scale the number of underlying nodes up or down without having to take down the application and do all of these easily with a set of declarative object configuration files. And that is Kubernetes. It is a container orchestration technology used to orchestrate the deployment and management of hundreds and thousands of containers in a clustered environment.