teleren/devto huggingface dataset:
Origins...
Published: 2019-03-25 16:58:42

---
title: Origins...
published: True
description: My first post ever on the dev.to website. Hope all goes well!!!
tags: 
---
Welcome, one and all!!!

My name is YaegerKnight( not really xP). To be more appropriate, my web handle is YaegerKnight and this the first time I am posting anything on this beautiful website which I stumbled across while looking my suggested repositories on GitHub (Thanks GitHub and Microsoft XD!!!). Just one look at the website and I immediately felt that I had to be a part of it. I really look forward to my time on this website and look forward to learn from all the posts and articles on the website.

Hope to see you guys more frequently. Ciao!!!
FastEntry - Rails cache management
Tags: ruby, rails, cache, gems
Published: 2019-03-25 16:34:58

---
title: FastEntry - Rails cache management
published: true
description: There are only two hard things in Computer Science: cache invalidation and naming things. - Phil Karlton
tags: ruby, rails, cache, gems
cover_image: https://user-images.githubusercontent.com/407470/52439845-d8ecff80-2b1c-11e9-8cdb-8c2323585583.png
---

> There are only two hard things in Computer Science: cache invalidation and naming things.
> -- Phil Karlton


I've recently been working on a Rails project that uses a lot of cached resources: keys, views, json and many more.
As this information is scattered throughout the codebase using [`Rails.cache`][rails_cache], it was becoming increasingly difficult to understand what was being cached, which keys were being used and how to quickly manage this information.

Inspired by [Sidekiq's](https://github.com/mperham/sidekiq) web interface I've been building an open-source gem called [FastEntry][github] to easily manage cached information both in development and production.

![FastEntry interface](https://user-images.githubusercontent.com/407470/52439845-d8ecff80-2b1c-11e9-8cdb-8c2323585583.png)

Here is a list of the current features:

* List all cached entries (paginated)
* Inspect a single entry with formatted content
* Search for a specific entry via its key
* Invalidate one or multiple keys at a time
* Stats on number of entries set

![FastEntry dashboard](http://blog.tiagoalves.me/assets/fastentry/dashboard.png)
![FastEntry inspect](http://blog.tiagoalves.me/assets/fastentry/inspect.png)

In the future I'm planning to add:

* Cache groups
* Edit invalidation time
* API's to access cache information
* More stats (eg. number of entries expiring today, memory usage, etc)

FastEntry is open-source and available at [https://github.com/alvesjtiago/fastentry][github].

If you're building a Rails application and want to easily manage cache give it a try and let me know what you think at [@alvesjtiago](https://twitter.com/alvesjtiago) or directly through the project's repository issues.

⚡️

[rails_cache]: https://guides.rubyonrails.org/caching_with_rails.html
[github]: https://github.com/alvesjtiago/fastentry
The state of dev.to v0 api
Tags: api, devto, discuss, rest
Published: 2019-03-25 16:25:25

To prevente the abuse of web scraper on dev.to i want to share what i learn about the dev.to v0 api.

## Articles

* https://dev.to/api/articles get a list of the latest 30 articles with tags career, discuss and productivity (it seems to be the default list of tags)
* https://dev.to/api/articles?tag=react get the latest 30 articles tagged with react
* https://dev.to/api/articles?page=23&tag=react get the 30 articles at page 23 tagged with react
* https://dev.to/api/articles?username=alfredosalzillo get the latest 30 articles of the user with username alfredosalzillo

## Users

* https://dev.to/api/users/by_username?url=alfredosalzillo get the info of the user with username alfredosalzillo
* https://dev.to/api/users/149157 get the info of the user with id 149157
* https://dev.to/api/users/?state=follow_suggestions get a list of follow suggestions
* https://dev.to/api/users/?state=sidebar_suggestions&tag=react i don't now what this really do
* https://dev.to/api/users/by_username get an user with a null username, i think this is a bug.

# Tags

* https://dev.to/api/tags get the list of the latest 10 tags
* https://dev.to/api/tags?page=2 get the list of the 10 tags at page 2
The 7 Most Popular DEV Posts from the Past Week
Tags: top7
Published: 2019-03-25 15:58:34

---
title: The 7 Most Popular DEV Posts from the Past Week
published: true
description: A round up of the most-read and most-loved contributions from the community this past week.
tags: icymi
cover_image: https://thepracticaldev.s3.amazonaws.com/i/sfwcvweirpf2qka2lg2b.png
---
Every Monday we round up the previous week's top posts based on traffic, engagement, and a hint of editorial curation. The typical week starts on Monday and ends on Sunday, but don't worry, we take into account posts that are published later in the week. ❤️

#1. We all have our differences.

Some people care about this topic, some don't, and that's all OK! 

David shares their perspective on the differences between a software architect, software engineer, and software developer.

{% link https://dev.to/david_j_eddy/opinion-architect-vs-engineer-vs-developer-5n0 %}

#2. Don't take HTML for granted!

Emma shares 10 lesser-known HTML elements that can help create more accessible and structurally-sound web applications.

{% link https://dev.to/emmawedekind/10-html-element-you-didnt-know-you-needed-3jo4 %}

#3. Low Learning Curve

^ definitely a selling point for Vue.js, amongst many others that Ali shares in this guide. For anyone looking to get started to with Vue, this is the place to start!

{% link https://dev.to/aspittel/a-complete-beginners-guide-to-vue-422n %} 

#4. Email *is not* Easy

Andrew provides us with a thorough introduction to understanding emails. From common types of emails to legal requirements to client-rendering engines, this post covers it all.

{% link https://dev.to/andrewdejackson/html-emails-101-for-web-developers-5ed5 %}

#5. Creating Structure

John advocates for organizing code and isolating logic to make your life easier. In this post, he shares an approach to organizing serverless fucntions.

{% link https://dev.to/azure/how-do-you-structure-your-code-when-moving-your-api-from-express-to-serverless-functions-30bc %}

#6. Decades of Divs

Semantic elements have been around for a while but people are still overusing divs! In this post, Ken explains why divs are a problem and how to get up to speed with HTML5 standardized elements.


{% link https://dev.to/kenbellows/stop-using-so-many-divs-an-intro-to-semantic-html-3i9i %}

#7. Gettin' meta

Pierre takes a dive into DEV data to figure out what time/day posts get the most engagement! Very fun read.

{% link https://dev.to/daolf/-what-is-the-best-time-to-post-on-devto-a-data-backed-answer--1kob %}

_That's it for our weekly wrap up! Keep an eye on dev.to this week for daily content and discussions...and if you miss anything, we'll be sure to recap it next Monday!_
Swipe cards, Spin.js, Image menu | Module Monday 33
Tags: showdev, opensource, webdev, javascript
Published: 2019-03-25 15:26:48

---
title: Swipe cards, Spin.js, Image menu | Module Monday 33
published: true
description: Module Monday 33
tags: showdev, opensource, webdev, javascript
cover_image: https://res.cloudinary.com/component/image/upload/b_rgb:ffffff,c_lpad,h_350,w_800/v1553459991/swipe-cards_e0evcq.gif
canonical_url: https://guide.anymod.com/module-monday/33.html
---

## Open-source web modules you can use anywhere

All the mods below are open source and free to use in any project you choose. [Anymod](https://anymod.com) lets you quickly add features to any website or web app.

Click a mod to see it in action along with its source code.


## Full page image menu
Beautiful full screen background with links
<a class="btn btn-sm" href="https://anymod.com/mod/kdllon?v=25&preview=lorem">View mod</a>

<a href="https://anymod.com/mod/kdllon?v=25&preview=lorem">
  <img src="https://res.cloudinary.com/component/image/upload/v1553363246/image-menu_wwlnwq.gif"/>
</a>

## Swipe cards
Swipe-able content cards; works on mobile or desktop
<a class="btn btn-sm" href="https://anymod.com/mod/nkaoda?v=20">View mod</a>

<a href="https://anymod.com/mod/nkaoda?v=20">
  <img src="https://res.cloudinary.com/component/image/upload/v1553459991/swipe-cards_e0evcq.gif"/>
</a>

## Spin.js spinner
Customizable JavaScript spinner you can add anywhere
<a class="btn btn-sm" href="https://anymod.com/mod/ramonr">View mod</a>

<a href="https://anymod.com/mod/ramonr">
  <img src="https://res.cloudinary.com/component/image/upload/v1553461811/spinner_lnnwms.gif"/>
</a>

## Masonry gallery with image zoom
A great way to showcase your photos
<a class="btn btn-sm" href="https://anymod.com/mod/lldkbo?v=20">View mod</a>

<a href="https://anymod.com/mod/lldkbo?v=20">
  <img src="https://res.cloudinary.com/component/image/upload/v1553460891/masonry_qof9id.gif"/>
</a>

## Twitter follow button
Customize and let your users follow you from any page.
<a class="btn btn-sm" href="https://anymod.com/mod/mlbao">View mod</a>

<a href="https://anymod.com/mod/mlbao">
  <img src="https://res.cloudinary.com/component/image/upload/v1553367423/twitter_ypxetw.png"/>
</a>

<hr>

I post new modules [here](https://dev.to/tyrw) every (Module) Monday -- I hope you find them useful!

Happy coding ✌️
Feature usage tracker
Tags: help
Published: 2019-03-25 15:14:30

Hey devs, I'm looking for recommendations on **feature usage tracking software/libraries**.

The solution should, at least, allow me to:
- know how much a given feature is being used
- know which users are using a given feature
- let our business people navigate and exploit the information gathered
- be implemented in both a web and Android app

So far I'm aware of two potential candidates: [Feature Audit](https://www.featureaudit.com) and [Sales Machine](https://www.salesmachine.io). Feature Audit is still in beta, so still have to be accepted into it. 


##How do you track feature usage on your apps?
The Building an Indie Business Podcast- Book Discussion: Never Split the Difference by Chris Voss
Tags: podcast, books, career
Published: 2019-03-25 15:04:28

---
title: The Building an Indie Business Podcast- Book Discussion: Never Split the Difference by Chris Voss
published: true
description: 
tags: podcast,books,career
---

https://overcast.fm/+RG5joN3K0

[Episode Page](https://baib-podcast.com)
[Revenue Research](https://revenueresearch.co/)
Multiple Heroku Environments
Tags: heroku, ruby, bash
Published: 2019-03-25 15:15:43

---
title: Multiple Heroku Environments
published: true
tags: [heroku, ruby, bash]
canonical_url: https://scottw.com/multiple-heroku-environments
---

When you have multiple environments for an app on Heroku each command you execute requires you to pass in the -a (–app) flag with the app name. Heroku app names need to be unique not just for you, but for Heroku as a whole. This means the app name might not always be as memorable as you would like. KickoffLabs is actually broken up into three separate apps which further complicates things (6 total app names).

Instead of using the -a flag, you can also use the git remote name via the –remote flag.

The remote name only needs to be unique within your app. This means you can reign in this craziness a bit by using your own git remote names. By default, Heroku creates a remote called `heroku`. You can use the `git remote rename` command to rename your remote(s) to something more consistent

```
git remote rename original_name new_name

```

With this knowledge, you can create more consistent names for your remotes. I generally go with `production` and `staging`.

Next, I add the following to my zsh profile:

```
function hs(){
  heroku "$@" --remote staging
}

function hp(){
  heroku "$@" --remote production
}

```

Now, anything I want to do to production is as simple as:

```
hp config:set VAR=1234

```

And the same can be done in staging:

```
hs config:set VAR=1234

```
Want to Speak at Conferences? I'll Help Review Your CFP Submissions
Tags: career
Published: 2019-03-25 14:51:46

---
title: Want to Speak at Conferences? I'll Help Review Your CFP Submissions
published: true
description: Need some help with your session abstract for a conference call for papers? I'm here to assist.
tags: career
canonical_url: https://www.remotesynthesis.com/blog/review-cfp
---

I consider myself a decent speaker. I've had my better moments (and ones I'd rather forget), but I wouldn't call public speaking one of my natural strengths (it's one I continually work at). What I am pretty good at, though, is writing sessions abstracts and submissions for conference call for papers.

Writing a good CFP submission can be difficult, even for many seasoned speakers. What I always recommend is that you have another set of eyes review your submission before you send it - but you may not have someone readily available who has experience writing and reviewing CFPs. That is why, as a service to the community, whether you are a potential first-time speaker or a seasoned veteran, I am making myself available to review your CFP submission.

Before you entrust a stranger with feedback on your hard work, let me share some of my qualifications:

* I have been a speaker at [over 60 conferences and events](https://www.remotesynthesis.com/presentations/) starting back in 2007.
* I have served on the conference committee for major conferences such as O'Reilly's Fluent and QCon New York.
* I have run (both independently and for my job) over a dozen conferences since 2007.

If you'd like to have me review your CFP, I've opened my dm's on [Twitter (@remotesynth)](https://twitter.com/remotesynth). Reach out to me there. My only ask of you is that you give me a day or two to review and respond (I can't guarantee that I'll be available for last minute, time sensitive reviews). So, if you have never been a speaker and want some help or you have been a speaker but need another set of eyes on your CFP submission, I'd love to help.
Morning routine - updating git repos
Tags: git, productivity, powershell
Published: 2020-06-22 18:05:11

---
title: Morning routine - updating git repos
published: true
date: 2019-03-25 09:14:57 UTC
tags: Git,Productivity,PowerShell
canonical_url: https://SimonReynolds.ie/morning-routine-updating-git-repos/
---

- Get to work
- Clock in
- Make coffee
- Fetch latest changes from git....
 ![Morning routine - updating git repos](https://images.unsplash.com/photo-1489533119213-66a5cd877091?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1080&fit=max&ixid=eyJhcHBfaWQiOjExNzczfQ)

Going through a half dozen repositories that I regularly interact with involves far more typing than I care to do repeatedly.

What I want is to cycle through each repository and do the following

- `git fetch --prune`
- If I'm on the default branch (usually master or develop) and have no local changes then just `git pull` straight away

Sounds perfect for automation! PowerShell to the rescue, leaving time to savour the coffee

{% gist https://gist.github.com/simon-reynolds/04215428efeb813e0308f9a7537a4d55.js %}
Sorting Your Gems
Tags: ruby, vim
Published: 2019-03-25 15:16:14

---
title: Sorting Your Gems
published: true
tags: [ruby, vim]
canonical_url: https://scottw.com/s8m
---

I was looking through the Dev.to source, and the first thing that jumped out at me was the Gemfile was sorted (within each group). This made it much easier to scan and think about their dependencies.

<!--more-->

Using Vim, I was able to sort my Gemfile in a couple of seconds.

1. Select the lines within the group (or all of those outside of a group).
2. enter command mode (:) and type sort

That’s it. Now, if you were like me, you still sometimes flipflop between ‘ and “ (working on it!), you will need to pick one (“) and do a find and replace `%s/'/"/g` as well otherwise things will not sort quite right.
Get started with variable fonts in CSS
Tags: fontscss
Published: 2019-03-25 13:42:39

---
title: Get started with variable fonts in CSS

published: true
description: 
tags: fonts CSS
---

<p>Variable fonts are a technology which enables many variations of a typeface to be incorporated into a single file, rather than having a separate font file for every width, weight or style. The font allows you to change saturation, proportions, contrast, size and animation. Variable fonts were introduced in 2016 in OpenType version 1.8. The technology was developed with the help of Apple, Microsoft, Adobe and Google companies.</p>

<p>If you would like to see how font variation works,  play with OpenType Variable Fonts on the Lawrence Pinna website: http://www.axis-praxis.org/. Axis-Praxis website is conceived to demonstrate the capabilities of variable fonts in web browsers. Variable fonts are supported in Chrome v62+ on macOS, Windows and Linux, Safari 11 on macOS 10.13 High Sierra and iOS 11, and Microsoft Edge in the Windows Insider Preview edition of Windows 10 v1709.</p>
<p>Note, Safari on macOS Sierra doesn't support variable fonts. You need to upgrade to the next version of the operating system or run the site in Chrome.
The ability to use one file for any number of outlines also allows for saving space. To connect a font with several outlines to the site (normal, light and bold), you need to include at least three files.</p>

<p>In fact, for each style, you need to connect .ttf web font, .woff web font and a compact web font for IE .eot. For each style, the browser downloads a file, which of course affects the time the content is displayed.</p>

<p>With variable fonts, only two files need to be included: .ttf and woff. The browser itself will select the appropriate file for it and download it. The number of server requests is reduced from 3 to 1. As a result, the text on site will appear faster.</p>
<p>CSS4 supports font variations for the font-weight, font-stretch, font-style, font-optical-sizing properties.</p>
<p>As I mentioned above, macOS Sierra in Safari doesn't support this technology, but macOS High Sierra already supports. So everything is great and you can start to deal with them.</p>
Web Applications with Python
Tags: python, flask, django, web
Published: 2019-03-25 13:38:47

---
title: Web Applications with Python
published: true
description: python, flask, django, web
tags: python, flask, django, web 
---
You can make web apps with Python. Almost never pure Python is used, a **web  framework** is used to create web apps.

There are many frameworks including: Flask, Django, Bottle, Pyramid and Morepath. The frameworks **Flask** and **Django** are the most popular.

Flask is a micro framework, it contains the bare minimum to build web apps. Django is an huge framework that takes a lot of time to setup, but comes with many features like an Object Relational Manager (ORM) and other stuff.

<a href="https://youtu.be/4EQoRKef7T4"><img src="https://img.youtube.com/vi/4EQoRKef7T4/0.jpg"></a>

read more: https://pythonprogramminglanguage.com/web-application/
What is Machine Learning?
Tags: machinelearning, python, programming
Published: 2019-03-25 13:34:01

---
title: What is Machine Learning?
published: true
description: machine learning, python, programming
tags: machine learning, python, programming
---

Machine Learning is part of Artificial Intelligence. In Traditional AI, a programmer would write his program that "behaves intelligently".

Unlike traditional AI, it uses data: it learns from examples. This is numeric data in forms of numbers, booleans or other data types. Real world data is converted to this numeric data. The numeric data is training input for the Machine Learning algorithms.

<a href="https://www.youtube.com/watch?v=n_k9w0i3x98"><img src="https://img.youtube.com/vi/n_k9w0i3x98/0.jpg"></a>

read more: https://pythonbasics.org/what-is-machine-learning/
Hash#new
Tags: ruby
Published: 2019-03-25 15:14:55

---
title: Hash#new
published: true
tags: [ruby]
canonical_url: https://scottw.com/hash-new
---

I was reading this post on [Hash#fetch](https://dev.to/raquelxmoss/using-hashfetch-in-ruby-for-better-nil-handling-2l8h), and it reminded me of another lesser used/understood method on Ruby’s Hash object, `new`.

Typically, in Ruby, a hash is created by using just the `{}` literal. This is the equivalent of just doing `Hash.new`.

```
h1 = {}
h2 = Hash.new

```

Regardless of which option you choose, you get the same result.

However, as in most things Ruby, there is more than one way. The Hash initializer has three options:

1. No parameters
2. A default parameter
3. A Block

Next to the literal, the one I use most often is option #2, a default parameter. Typically, I use this when I want to count a bunch of things.

```
a = [1,2,3,4,1,1,3]
h = Hash.new(0)
a.each {|i| h[i] += 1}
puts h #{1=>3, 2=>1, 3=>2, 4=>1}

```

Without the `Hash.new(0)` we would have to check for nil, or do an assignment like `(h[i] ||= 0) += 1` which is much less readable and depending on what you are iterating over can get complicated.
The Ultimate List of Java Conferences
Tags: conferences, java, developer
Published: 2019-03-25 13:27:03

---
title: The Ultimate List of Java Conferences
published: true
description: Java conferences is where can meet other developers and learn about Java frameworks and best practices from the best developers. Below is my ultimate list of the best vendor-independent Java conferences. 

tags: conferences, java, developer
---

Java conferences is where can meet other developers and learn about Java frameworks and best practices from the best developers. Below is my ultimate list of the best vendor-independent Java conferences in Europe and USA. 


---

## DevTernity (🏅 Top 3 in Europe)

**Audience**: java developers and architects ·  **Location:** Riga, Latvia · **Date**: 3–4 December 2020

[![Conference](https://avatars.io/twitter/devternity)](https://devternity.com)

**[DevTernity](https://devternity.com)** is the top 3 international software development conference in Europe. Located in the heart of Europe, in a beautiful city of Riga, this well-organized conference focuses on the core skills paramount to your success – code design, software architecture and leadership. Organizers promise no agile bulsh\*\*t or marketing talks. **This is a must-see event!**


**[See the full list](https://sizovs.net/conferences/java/)**
Quick tip: Here's how to uninstall Postgres from your Mac
Tags: devtools, postgres, macos
Published: 2019-03-25 12:58:38

---
title: Quick tip: Here's how to uninstall Postgres from your Mac
published: true
tags: devtools, postgres, macos
canonical_url: https://mike.biful.co/quick-tip-uninstall-postgres-from-your-mac
description: You may never need this, and Postgres is plenty good. But if you do need it - maybe this will save you time?
cover_image: https://thepracticaldev.s3.amazonaws.com/i/1hk3pbdzrfdfdr3y38ie.png
---

# The Problem
Earlier tonight, my Macbook Pro decided it was done having disk space, and in the middle of a Time Machine backup, it started gnawing through every last bit of free space I had left.  Great.

In a frenzy of panic-and-uninstall, I came across an install of [Postgres](https://www.postgresql.org/) 9.x which I haven't used in quite a long time.   I wanted to carefully uninstall it, in part because I knew that the Postgres install process does loads of not-easy-to-clean things to your mac, including adding a user account to your device, and an app, and a bunch of settings.

My goodness, what a ride.

# The Solution
There's not a simple uninstaller for everything, so far as I can tell.
Eventually, the gods of web search brought me to [this beautiful gist](https://gist.github.com/Atlas7/b1a40a2ffd85728b33e7) on GitHub, which listed everything I needed to do to complete the uninstall safely. (I've also [forked](https://gist.github.com/mbifulco/1e44a2e9b7e3bd784f01ef5a138da829) the gist, in case the original ever disappears 😅.)

I don't want to take any credit for the work - it seems to have originally come from [this blog post](http://hzchirs-blog.logdown.com/posts/142678-how-completely-uninstall-postgresql-9x-on-mac-osx) from 2013, which was not returned by my Bing-fu 
(yeah, you read that right).  

I'm posting it here in the hopes that will help some other soul in the future who is going through this experience.  Good luck out there!