teleren/devto huggingface dataset:
Reactive Programming in Python
Tags: python, reactiveprogramming, rxpy
Published: 2018-01-25 17:27:10

---
title: Reactive Programming in Python
published: true
description: Learn how to use reactive programming in Python to process data streams asynchronously.
tags: #python #reactiveprogramming #rxpy
canonical_url: https://auth0.com/blog/reactive-programming-in-python/
---

In this tutorial, you'll learn how to use the RxPy library to create asynchronous and event-based programs by implementing observables, observers/subscribers, and subjects.

[Read on 🐍](https://auth0.com/blog/reactive-programming-in-python/?utm_source=dev&utm_medium=sc&utm_campaign=reactivex_python)

![Reactive Programming in Python](https://thepracticaldev.s3.amazonaws.com/i/8d306ryxa8df1gic7dya.png)
Best alternative of Xamp  Wamp for Windows
Tags: devtools, apache, development, laragon
Published: 2020-06-04 04:16:54

---
title: Best alternative of Xamp  Wamp for Windows
published: true
date: 2018-01-25 15:01:24 UTC
tags: Dev Tools,apache,Development,Laragon
canonical_url: 
---

Xamp and Wamp rule the developing market for decades, but it has some drawbacks. Due to lots of issue and conflicts, developers switch to different software. We researched and test lots of software to present the best of them is [Laragon](https://laragon.org/) .

Read Full article in [Codehaveli Blog](https://www.codehaveli.com/blog/best-alternative-of-xamp-wamp-for-windows/)
Functional utilities - minimal set
Tags: javascript, discuss, functional
Published: 2018-01-25 09:18:26

---
title: Functional utilities - minimal set
published: true
description: 
tags: #javascript #discuss #functional
---

Hey,

I've started putting together my own collection of essential functional utilities, and I'm wondering what you'd consider to be _essential_. 
I want to keep it *very* minimal -- one of the reasons for doing this is an observation that in smaller projects I only use 2 or 3 ramda/lodash methods.

Here's the current list:
 - pipe
 - compose
 - pick
 - omit
 - head
 - tail
 - curry
 - zip
 - prop

What would you add?

Note that I'm not venturing into the realm of monads, functors and category theory in this project.

Here's the repo, if anyone's interested: https://github.com/ardcore/funf (I probably got some type annotations wrong, still learning Hindley-Milner)
Algorithms: What is Big-O?
Tags: video, algorithms, math, coding
Published: 2018-01-25 04:15:40

---
title: "Algorithms: What is Big-O?"
published: true
description: The basics of the Big-O
tags: video, algorithms, math, coding

---

{% youtube ZbIX7vJrrYY %}

I cover the basics of Big-O notation, attempting to stay wtihin intuitive bounds. I continue to cover Big-Omega and Big-Theta.

Subscribe to my [Twitch Channel](https://www.twitch.tv/mortoray) to watch live and ask questions.
Evening Rust: Episode 5: Nuts and Bolts
Tags: video, coding, rust, competition
Published: 2018-01-25 04:13:50

---
title: "Evening Rust: Episode 5: Nuts and Bolts"
published: true
description: Help Bender commit suicide
tags: video, coding, rust, competition
---

{% youtube 7UD0joow62A %}

We help Bender commit suicide in this episode! It's a longer challenge that took all of the episode and reenforced some of our Rust knowledge.

Subscribe to my [Twitch Channel](https://www.twitch.tv/mortoray) to watch live. Commentary appreciated.
東京公共交通オープンデータチャレンジ
Tags: odpt
Published: 2018-01-24 22:45:36

---
title: 東京公共交通オープンデータチャレンジ
published: true
description: 
tags: odpt
---

[東京公共交通オープンデータチャレンジ](http://tokyochallenge.odpt.org/) という、アプリコンテスト＋アイデアコンテストがある。東京の交通機関のAPIやデータを活用しましょうってことらしい。

[ここがつらいよ東京公共交通オープンデータチャレンジAPI](https://qiita.com/teracy/items/962d9feb3349824090e2) というまとめがあるくらい、なかなか大変そうではある。でも、いままで全然こんなデータはなかったんだから、こういうことでちょっとずつ進んでいくとよいのかも知れない。NAVITIME や Google はすごいな、と改めて思う。
Chrome 64 DevTools video and blog post about browser changes
Tags: javascript, chrome, devtools, browsers
Published: 2018-01-24 21:58:24

---
title: "Chrome 64 DevTools video and blog post about browser changes"
published: true
description: 
tags: ["javascript", "chrome", "devtools", "browsers"]
---

It's coming up on time for a new Chrome release again and there's a video up for the new DevTools features. A lot of them are conveniences to make it just a nicer environment to work in (for example, automatic grouping  and new filtering operations for console messages):
[Chrome 64 - What's New in DevTools](https://youtu.be/90wNAn05Cf4)

And here's the corresponding video for browser feature changes: [Chrome 64 - What's New](https://www.youtube.com/watch?v=y5sb-icqOyg)
Refined GitHub browser extension
Tags: github, showdev
Published: 2018-01-24 19:38:16

---
title: Refined GitHub browser extension
published: true
description: Browser extension for GitHub power users removing clutter and adding useful features
tags: github, showdev
---

https://github.com/sindresorhus/refined-github

A team of awesome collaborators, which I'm proud to be a part of, has collaborated in the past couple of years on a cross-browser (Chrome & Firefox) extension improving the experience on GitHub.

We've already removed a couple of features which GitHub has implemented themselves after we already had them.

I thought I'd share it here and see what the dev.to community thinks. Any suggestions are very welcome in the issues and is often acted upon in days/hours.
I'm Sandi Metz, Ask Me Anything! [Finished]
Tags: ama
Published: 2018-01-24 18:38:04

---
title: I'm Sandi Metz, Ask Me Anything! [Finished]
published: true
description: I'm Sandi Metz, author of Practical Object-Oriented Design in Ruby and 99 Bottles of OOP, and I believe in simple code and straightforward explanations.
tags: ama
cover_image: https://thepracticaldev.s3.amazonaws.com/i/3k3uoshlgimkmqmry14d.jpeg
---

Hi, I'm Sandi Metz, author of [Practical Object-Oriented Design in Ruby](http://www.poodr.com/) and [99 Bottles of OOP](http://www.sandimetz.com/99bottles), and I believe in simple code and straightforward explanations. I prefer working software, practical solutions and lengthy bicycle trips (not necessarily in that order) and I write, consult, and teach about object-oriented design.

Ask me anything!
How to Authenticate Firebase and Angular with Auth0: Part 2 - Async and Realtime
Tags: firebase, angular, javascript, node
Published: 2018-01-24 17:53:35

---
title: "How to Authenticate Firebase and Angular with Auth0: Part 2 - Async and Realtime"
published: true
description: 
tags: #firebase #angular #javascript #nodejs
canonical_url: https://auth0.com/blog/how-to-authenticate-firebase-and-angular-with-auth0-part-2/
---

Learn how to authenticate a real-time Firebase and Angular app with an API using Auth0 with custom Firebase tokens.

The second (and last) part of the tutorial series covers how to display data with Angular's Async pipe, set up Firebase security rules, and implement realtime commenting with Cloud Firestore and angularfire2.

[Read on 🔥🅰️](https://auth0.com/blog/how-to-authenticate-firebase-and-angular-with-auth0-part-2/?utm_source=dev&utm_medium=sc&utm_campaign=firebase_angular)

![How to Authenticate Firebase and Angular with Auth0: Part 2 - Async and Realtime] (https://thepracticaldev.s3.amazonaws.com/i/3k116gcsgzjvl0ai1pds.png)
Test Automation Sherpa
Tags: ruby, testing
Published: 2018-01-24 17:49:28

---
title: Test Automation Sherpa
published: true
description: 
tags: ruby, testing
---

"Test Automation Professional / Zealot" is the title I have in my resume.

But I'm not a tester, and still less a "quality" engineer.

Then what am I?

To borrow from mountain-climbing vocabulary, I'm not a climber, I'm a _sherpa_ -- one who does much of the heavy lifting, creates base camps, and keeps the climbers progressing happily and safely.

In that spirit, I aim to make it possible for others to do automated testing easily and reliably.

For a year now I've worked on my GitHub project, RubyTest, which embodies what I've learned in long years of building test automation.

It includes:

- Core (application-independent) support:
  - Base classes
  - Helper classes
  - Logging
  - Reporting
- Unit testing for the core (of course!).
- Example domain-specific code:
  - Page objects, for web UI testing.
  - Endpoint objects, for TEST API testing.
  - Data objects, for both types of testing.
- Example domain-specific tests.

Most recently, I've been building a Tester Tour of part of the project -- the part that demonstrates testing for a REST API and a web UI. (The demo test targets are GitHub's own REST API and web UI.)

TOURISTS WELCOME

You can see the tour [here](https://github.com/BurdetteLamar/RubyTest/blob/master/examples/github/TesterTour.md#tester-tour).

Any feedback appreciated, either as Issues on GH, comments here, or private email.
Direct Feedback
Tags: management, feedback, teach, leadership
Published: 2018-09-10 18:40:01

---
title: Direct Feedback
published: true
tags: management,feedback,teach, leadership
canonical_url: http://designfrontier.net/direct-feedback
---

> Jobs’s taste for merciless criticism was notorious; Ive recalled that, years ago, after seeing colleagues crushed, he protested. Jobs replied, “Why would you be vague?,” arguing that ambiguity was a form of selfishness: “You don’t care about how they feel! You’re being vain, you want them to like you.” Ive was furious, but came to agree. “It’s really demeaning to think that, in this deep desire to be liked, you’ve compromised giving clear, unambiguous feedback,” he said. He lamented that there were “so many anecdotes” about Jobs’s acerbity: “His intention, and motivation, wasn’t to be hurtful.”

—[Ian Parker](https://www.newyorker.com/magazine/2015/02/23/shape-things-come?currentPage=all) for the New Yorker.

Giving clear and direct feedback is one of the hardest things for me as a manager. I agree with Jobs on this, that the thing that usually holds me back is that I want my direct reports to like me. Ironically the thing I appreciate about my favorite managers was their ability to give me direct feedback, even direct negative feedback, so that I knew how to get better.

This quote reminds me of a a training meeting I was in a while ago for leadership in one of the local congregations of the [LDS](http://lds.org) church. We were talking about this verse:

> Reproving betimes with sharpness, when moved upon by the Holy Ghost; and then showing forth afterwards an increase of love toward him whom thou hast reproved, lest he esteem thee to be his enemy;

— [Doctrine & Covenants 121:43](https://www.lds.org/scriptures/dc-testament/dc/121.43)

The individual leading the discussion pointed out that the key here was clarity of feedback. Direct, clear and focused. Not sharp as in cutting, but sharp in its focus on what needed to change.

That is the type of feedback I appreciate, even when my initial reaction is negative to it.

One final thought on all this. Setting up a space for direct feedback is important. I have found that when I have a time set aside to receive I can become used to lowering my defensive walls and allow in the feedback more quickly.

So making time to discuss needed changes, and progress allows me to prepare to receive it openly. This is why having regular 1:1 meetings is so important.
Storing enums in Realm
Tags: realm
Published: 2018-04-14 19:41:01

---
title: "Storing enums in Realm"
published: true
tags: Realm
canonical_url: https://blog.jonstodle.com/storing-enum-s-in-realm/
---

Ever since I came across [Realm](https://realm.io), I've loved it. It's fast, easy to use, no hassle to set up, easy migrations. Since the time I started using it they've added fantastic, automatic syncing with a backend. And the next thing on the horizon is a cloud service for the backend, so you don't have to run it yourself (yay!).

While there's a lot to love about Realm, there are of course some limitations. One of those limitations is that it's that you're only able to store primitive types (like `int`, `string`, `DateTimeOffset`, etc). This has to do with the way Realm stores and reads data from the database.

One of the types you're not able to store are `enum`s. But as I've mentioned, you're able to store `int`s in Realm, and an `enum` is like an `int` in a clever disguise.

The values of an `enum` are automatically assigned an `int` value starting at `0`. The first value declared is assigned `0`, the second is assigned `1`, the third is assigned `2` and so on. Like indexes in an array.

Let's define an `enum`:

```
public enum Color
{
  Blue, Green, Red, Yellow
}
```

Then you're able to explicitly cast between `enum`s and `int`s like this:

```
Color color = Color.Blue;
int colorInt = (int)color; // == 0
colorInt = (int)Color.Green; // == 1
color = (Color)1; // == Color.Green
```

As we can easily cast between `Color` and `int`, we can also store `Color` as an `int` in Realm.

Let's say we have a `Paint` class on which one of the properties is the color of the paint:

```
public class Paint : RealmObject
{
  // Other code
  public int Color { get; set; }
}
```

That works, but it's a bit clunky having to always cast the `int` whenever we want to use it. Not to worry though. We'll rename `Color` to `ColorRaw` to indicate that it stores a raw value, instead of the desired one. We'll also add a new property named `Color` which casts the `int` for us:

```
public class Map : RealmObject
{
  // Other code
  public int ColorRaw { get; set; }
  
  public Color Color
  {
    get => (Color)ColorRaw;
    set => ColorRaw = (int)value;
  }
}
```

As we've specified a custom getter and setter on `Color`, Realm will ignore the property and not store it in the database.

Now we'll be able to use it (mostly) as we normally would. You won't be able to data bind to `Color`, for instance. You can either make it send `PropertyChanged` notification yourself, or use a converter on your binding to convert between the `int` and a `Color`.

* * *

Hope this little trick helps you out.

Happy coding!
A monthly calendar gem for Rails application
Tags: ruby, rails, gem
Published: 2018-01-24 10:29:21

---
title: A monthly calendar gem for Rails application
published: true
description: 
tags: ruby, ruby on rails, gem
---

[Carender](https://github.com/kami-zh/carender) is a monthly calendar gem for Ruby on Rails application.

## Usage

This gem automatically renders a monthly calendar as HTML table by fetching `params[:year]` and `params[:month]` at view context.
Following code renders a simple monthly calendar:

```erb
<%= carender do |date| %>
  <%= date.day %>
<% end %>
```

The content passed as a block is rendered in each cell.
For example, above code renders like following HTML table.

```html
<table>
  <tr><th>Sun</th><th>Mon</th><th>Tue</th><th>Wed</th><th>Thu</th><th>Fri</th><th>Sat</th></tr>
  <tr><td></td><td>1</td><td>2</td><td>3</td><td>4</td><td>5</td><td>6</td></tr>
  <tr><td>7</td><td>8</td><td>9</td><td>10</td><td>11</td><td>12</td><td>13</td></tr>
  ...
</table>
```

### Collection

To render a calendar with a collection which is grouped by the specified column, you can pass `:collection` and `:column` arguments like as follows:

```erb
<%= carender collection: @posts, column: :posted_on do |date, posts| %>
  <% posts.each do |post| %>
    <%= link_to post.title, post %>
  <% end %>
<% end %>
```

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'carender'
```

And then execute:

```bash
$ bundle
```
Deploy your own Back End in just a couple of days with Zeroqode Template.
Tags: backend, development, mobile, apps
Published: 2018-01-24 09:38:39

---
title: Deploy your own Back End in just a couple of days with Zeroqode Template.
published: true
description: Deploy your own Back End in just a couple of days with Zeroqode Template.
tags: backend, development, mobile, apps
---

Today we are excited to launch a new product built completely without code - Zeroqode Backend! This no-code template allows you to customize and deploy your own backend in a matter of days. It has most of the commonly required API endpoints in place and comes with a landing page and admin dashboard to manage your users, payments, files etc. 
[Check us out on PH](https://www.producthunt.com/posts/zeroqode-backend) for more details.
How to get started with Andrtoid development?
Tags: help, kotlin, androiddevelopment, android
Published: 2018-01-24 08:23:14

---
title: How to get started with Andrtoid development?
published: true
description: Where and how should a proficient iOS developer get started with Android development?
tags: #help, #kotlin, #androiddevelopment, #android
---
Advice please.  (Sensible)

What sites and lists should I frequent if I would like to learn about Android development?

I am a proficient iOS / Swift developer - so I am looking for somethnig that will help me translate iOS concepts to Android concepts.

Is there a:
+    tutorial series
+    blog
+    community site

That you can recomend?
Create middleware environment on Docker Compose
Tags: dockercompose, docker, mysql, couchbase
Published: 2018-01-24 07:09:06

---
title: Create middleware environment on Docker Compose
published: true
description: 
tags: docker-compose,docker,mysql,couchbase
---

## Things what to do in this post
- Use Docker Compose
- Create an environment using these middleware
  - MySQL(for database)
  - Couchbase(for datacache)

## Docker Compose
is a Command-Line-Tool to manage multiple docker containers.
This is useful for creating development environment because 
- Using configuration file "docker-compose.yml", you can distribute your environment configuration to other developer easily.

## How to create it

1. Ofcourse, you'd better install docker, or you can't do this anymore.
1. Make your dir with suitable name for your application.
1. Create "docker-compose.yml" to your dir, edit like below
```
version: '3'

services:
  couch:
    container_name: "couch"
    image: deadcheat/couchbase
    deploy:
      replicas: 1
    environment:
      BUCKET_NAME: "default"
    ports:
      - 8091:8091
  db:
    image: mysql:5.7
    environment:
      - MYSQL_ROOT_PASSWORD=password
      - MYSQL_DATABASE=sample
      - MYSQL_USER=sample
      - MYSQL_PASSWORD=password
    ports:
      - 3306:3306
```
Then, run `docker-compose up -d` on your terminal.
MySQL and Couchbase environment will start up soon.

Confirm to connection, 
couchbase: open http://localhost:8091/
mysql: connect to localhost:3306


To be continued...
My 5 ideas for the 'Blog More' challenge on CNC2018
Tags: codenewbie, cnc2018, discuss
Published: 2018-01-24 01:24:59

---
title: My 5 ideas for the 'Blog More' challenge on CNC2018
published: true
description: CNC2018 blog ideas from a new-ish indie developer
tags: codenewbie, cnc2018, discuss
---

I was a little all over the place with brainstorming. Here are the five that seem best to me. What is most interesting to you? Suggestions?

[EDIT: As per CNC2018 instructions, I'm narrowing it down to 3 to do now based on feedback, bolded, comments below]
1. **More to indie development than coding: Administrative stuff to go along with publishing your first app [*iOS Dev: how to get set up as a developer business*]**
2. **Setting up an App Store version workflow as an indie developer [*iOS Dev: pushing out test versions - making sense of numbers, testing, and what text goes to Apple v your customers*]**
3. DRY - Save time with reusable elements for iOS apps [*iOS Dev: creating apps without the storyboard with reusable resources*]
4. **Set up and maintain your static blog in X Steps [*Blogging: how to set up a jekyll blog and maintain current on ftp without github!*]**
5. Scripts for managing assets with ease [*Images for blogs and apps: how to automate the process of removing image data and resizing*]

Why did I choose the ones that I did? 
+ More to indie development than coding: Administrative stuff to go along with publishing your first app - *I think that this is a real scary place. I almost stopped at this point because it seemed too complicated. I'd like to help people see that it is just a few things to do.* 
+ Setting up an App Store version workflow as an indie developer - *I honestly need to document my own process and stay consistent. There are many potential pitfalls here and places where a little preparation can make everything smooth.*
+ Set up and maintain your static blog in X Steps - *There are so many bloggers using wordpress or would be bloggers just lost because it seems so complicated that I want to share my experience.*

Format: I'm going to go with Tutorial/flow chart/cheat sheet type style for all of these, but I haven't decided on final output.
Today, I met Tim Cook
Tags: school, ios, career
Published: 2018-01-24 00:24:07

---
title: Today, I met Tim Cook
published: true
description: Sheridan College, of which I am a student, was among the Apple CEO's list of educational institution stops  
tags: #school #ios #career
---

Apple's CEO, **Tim Cook** , is visiting schools across the globe, and today he made his way to Sheridan College, in Oakville, Ontario Canada. 

I am a student in Sheridan's Bachelor Of Applied Computer Science - Mobile Computing program. What makes my program different is the applied nature of the degree. My program strikes a balance between academia and hands on experience. 

I think this is what drew Tim to our school, and is why he visited my class. I owe him a great deal of thanks, because Tim's visit renewed my passion for computer science.

Although Tim was with us only for a short time, I was lucky enough to talk to him about a project a teammate and I are working on. He shared many things with us, and with our class, but two really stood out to me, and I thought I'd share them with you.

##### The Importance of Team Commitment
Tim said that our two man team is a lot like a marriage. I'd take that further and say all teams have marriage-like qualities. For me, Tim's words emulate a care that each teammate has to have for each other.
* Regardless of a teammate's willingness to accept help, you need to look after each other.
* You need to have the courage to pull each other back in when you stray from the path.
* You need to have difficult conversations. 

##### The Importance of Simplicity 
Tim made a point of saying that Apple tries to make Swift as simple as their other products. Simplicity is a common theme that re-occurs in all my classes. It's been repeated so many times it's almost lost meaning. It seems as if this goal of simplicity is unattainable, constantly out of reach. Hearing the CEO of Apple reiterate it's importance, solidified to me that this theme goes all the way to the top. Making something as simple as possible is a key ingredient for success.

Seeing passion in someone ignites your own passion. Seeing Tim's passion ignited my own, but Tim's interest in our projects showed me his passion is also reignited as he visits future computer scientists. 


Today's Selfie: 
![alt text][logo]

[logo]: https://thepracticaldev.s3.amazonaws.com/i/auhxqeuwd4ue6tct1l6t.jpg "My teammate, Tim Cook, and I"
Show up, kick ass, go home
Tags: original, shorts, dev
Published: 2020-07-07 09:34:02

---
title: Show up, kick ass, go home
published: true
date: 2018-01-24 00:00:00 UTC
tags: Original,Shorts,dev
canonical_url: 
---

I love programming. I really do! But programming is not my life, it’s just my job.

Since I’ve married and had kids this has become even more evident. There are things I have to do and that I also want to do besides thinking about my job.

I had been thinking about this a couple of days ago but today I [read an article](https://exceptionnotfound.net/i-am-a-9-to-5-developer-and-so-can-you/) that really summed up my thoughts.

A couple of highlights:

> “I opted in to this mindset (show up, kick ass, go home) largely in order to protect my own sanity. If I don’t set clear boundaries as to when it’s OK to think about work problems, I’ll think about them all the time,”

> “For a puzzle-hungry brain like mine, programming is so full of not-yet-solved problems that a mind like mine can find entertainment and solutions to their hearts content and still not feel like they’ve truly accomplished anything”

Thanks Matthew Jones for being so articulate!