teleren/devto huggingface dataset:
[Discuss] Complicated WordPress Data Migrations
Tags: discuss, wordpress, mysql
Published: 2019-11-30 17:22:47

---
title: [Discuss] Complicated WordPress Data Migrations
published: true
description: What are some of the tips, tricks, and tools you've used for complex data migrations?
tags: discuss, wordpress, mysql
---

I'm planning out one of the most complex data migrations in WordPress I've ever been tasked to do. 

I'll have to switch multiple custom post types to posts, map old taxonomies to new ones, AND map old ACF blocks to new ACF blocks. (Thank goodness this WordPress install is still using the classic editor and not Gutenberg, which would be a whole another layer of complexity.)

I've written before about [migrating from Craft CMS to WordPress](https://medium.com/kick-point/migrating-posts-from-craft-cms-to-wordpress-a-post-migration-script-634d1819a827) using a mixture of manual techniques and web scraping. (I have since improved this process so it doesn't overwork the computer. XD)

I find a shell script with WP CLI can solve a lot of tricky problems, too.

I'm super curious how other people handle these sort of complicated migrations? What are some things to watch out for? How did you test the results? Is there an automated way to test the results?
3 best-read blogs of Go Gazette #47
Tags: go, backend, grpc, docker
Published: 2019-11-30 16:36:47

---
title: 3 best-read blogs of Go Gazette #47
published: yes
description: Weekly curated blogs and tools for Golang developers. 
tags: go, backend, grpc, docker
---

<img src="https://miro.medium.com/max/673/1*aC1cIV2TpdPuK00_fQdsPw.jpeg" />

<h3><strong><a href="https://medium.com/@meeusdylan/creating-a-bloom-filter-with-go-7d4e8d944cfa">1. Creating a bloom filter with Go</a></strong></h3>

<p><strong>5 minutes</strong> — A bloom filter is a set-like data structure that is more space-efficient compared to traditional set-like data structures such as hash tables or trees.<i>By Dylan Meeus.</i></p>

<h3><strong><a href="https://blog.huyage.dev/posts/simple-dependency-injection-in-go/">2. Uber’s Go dependency injection with Fx</a></strong></h3>
<p><strong>4 minutes —</strong> Briefly discussing why you may want to use dependency injection in your Go application, introducing Fx, and present an example application. <i>By Yage Hu.</i></p>

<h3><strong><a href="https://jhall.io/posts/simple-go-mocks/">3. Simple Go mocks</a></strong></h3>
<p><strong>20 minutes —</strong> I’m describing a simple alternative pattern I frequently use when writing tests for an interface, that I think is generally applicable to many use cases. <i>By Jonathan Hall</i>.</p>

<h2><strong>About the Go Gazette</strong></h2>
<p><a href="https://www.getrevue.co/profile/golang-jexia">The Go Gazette</a> is a mailing consisting of the latest blogs and tools curated for Golang pros. I’m <a href="https://github.com/veger">Maarten</a>, your curator, working from the Netherlands to help building a cloud platform for front-end developers that is called Jexia.</p>
<br></br>
<p>Do you have a question, feedback or you want to notify me about a recent blog for Golang pros? Reach out to me via maarten at go-gazette.com.</p>
3 best-read resources in Svelte Status #17
Tags: svelte, javascript, typescript, frontend
Published: 2019-11-30 16:24:28

---
title: 3 best-read resources in Svelte Status #17
published: yes
description: Weekly curated blogs and tools for Svelte developers. 
tags: svelte, javascript, typescript, frontend
---

<img src="https://miro.medium.com/max/671/1*N1ZHLNtDadvfaNzS9UO63A.jpeg" />

<h3><strong><a href="https://github.com/ryanatkn/awesome-svelte-resources?utm_campaign=Svelte%20Status&utm_medium=email&utm_source=Revue%20newsletter">1. Awesome-svelte-resources: Svelte v3+ utility</a></strong></h3>

<p><i>By Ryan Atkinson.</i></p>

<h3><strong><a href="https://dev.to/manan30/i-created-a-quiz-app-using-svelte-and-now-i-cannot-go-back-to-any-other-framework-1jeo?utm_campaign=Svelte%20Status&utm_medium=email&utm_source=Revue%20newsletter">2. I created a quiz app using Svelte</a></strong></h3>
<p><strong>14 minutes</strong> - And now I cannot go back to any other framework. I was used to programming with React a lot and some clear differences made me fall in love with Svelte.</p><p><i>By Manan Joshi.</i></p>

<h3><strong><a href="https://github.com/naver/egjs-infinitegrid/tree/master/packages/svelte-infinitegrid?utm_campaign=Svelte%20Status&utm_medium=email&utm_source=Revue%20newsletter">3. Svelte-infinitegrid</a></strong></h3>
<p>A module used to arrange card elements including content infinitely on a grid layout. <i>By Daybrush (Younkue Choi)</i>.</p>

<h2><strong>About Svelte Status</strong></h2>
<p><a href="https://getrevue.co/profile/svelte">Svelte Status</a> is a mailing consisting of the latest blogs and tools curated for Svelte pros. I’m <a href="https://github.com/marlosin">Marlos</a>, your curator, working from the Netherlands to help building a cloud platform for front-end developers that is called Jexia.</p>
<br></br>
<p>Do you have a question, feedback or you want to notify me about a recent blog for Svelte devs? Reach out to me via marlos at sveltestatus.com. </p>
Angular App Deployment
Tags: angularapp, ngbuild
Published: 2019-11-30 16:01:21


Build Angular App for Production

while you plan for production release then keep these things in Mind

ng build --prod --base--href /vdname/

above command will create a production build in your app folder . a dist folder will be added in your app folder with name "dist".

This dist folder will have all build files .

Note1 : keep in mind that vdname and your actual vd name where you will do the deployment always                   will be the same .
suppose your hosting address is http://www.xafdeveloper.blogspot.com
then while making build you need to create build like this .

ng build --prod --base--href   /xafdeveloper/

Note2: URL Rewrite extension need to install in IIS and you can download it from Microsoft site .

Note3: you need to add web.config file in your vd as by default angular build didn't create a                                   "web.config" file .

you can create is by adding a text file and change its name and file type as config .
now copy url rewrite code from web and paste it in this file .
Now access your app and enjoy Angular Application Cheers !..
Note3. you can see base reference details in Index.html file also in your build folder

Follow on Shubh Techno Expert

@ShubhTechnoExpet on Facebook page .
Weekly Links #14
Tags: weekly, go, kotlin, kubernetes
Published: 2019-11-17 10:48:43

* [The Service Mesh: What Every Software Engineer Needs to Know about the World's Most Over-Hyped Technology](https://servicemesh.io/) by William Morgan
* [Decisions, Decisions or Why Baskets of Options Dominate](https://medium.com/@kentbeck_7670/decisions-decisions-or-why-baskets-of-options-dominate-9ac63658b593) by Kent Beck
* [Video: Linux Systems Performance](https://www.usenix.org/conference/lisa19/presentation/gregg-linux) by Brendan Gregg, Netflix
* [Kotlin Not-to-Do List - What we should avoid doing in Kotlin](https://youtu.be/-YkDyE-K2Kc) by Marcin Moskała
* [Effectively Sealed Classes in Java](https://4comprehension.com/effectively-sealed-classes-in-java/) by Grzegorz Piwowarek
* [The Value in Go's Simplicity](https://benjamincongdon.me/blog/2019/11/11/The-Value-in-Gos-Simplicity/) by Benjamin Congdon
* [Good Go: Contributing to encoding/json](https://medium.com/@philpearl/good-go-contributing-to-encoding-json-1a76eff9d68) by Phil Pearl
* [Google’s new chip design protects the cloud where it’s most vulnerable](https://www.technologyreview.com/s/614675/googles-new-chip-protects-the-cloud-where-its-most-vulnerable/) by Patrick Howell O'Neill
* [The definitive guide to make software fail
on ARM64](https://cdn.oreillystatic.com/en/assets/1/event/302/The%20definitive%20guide%20to%20making%20software%20fail%20on%20ARM64%20Presentation.pdf) by Ignat Korchagin
* [Algorithmic Nuggets in Content Delivery](https://www.akamai.com/us/en/multimedia/documents/technical-publication/algorithmic-nuggets-in-content-delivery-technical-publication.pdf) by Bruce M. Maggs,  Ramesh K. Sitaraman
* [Snap: a microkernel approach to host networking](https://blog.acolyer.org/2019/11/11/snap-networking/) by Adrian Colyer
* [Announcing the Bytecode Alliance: Building a secure by default, composable future for WebAssembly](https://bytecodealliance.org/articles/announcing-the-bytecode-alliance)
* [Helm 3.0.0 has been released!](https://helm.sh/blog/helm-3-released/) by Helm Blog 
* [The API Gateway security risk you need to pay attention to](https://theburningmonk.com/2019/10/the-api-gateway-security-flaw-you-need-to-pay-attention-to/) by Yan Cui
* [CockroachDB Passes TPC-C at 100k Warehouses](https://www.cockroachlabs.com/blog/tpcc-100k/) by by Andy Woods, Jesse Seldess and Andrew Werner
* [Stack Overflow Considered Harmful? The Impact of Copy & Paste on Android Application Security](https://www.aisec.fraunhofer.de/en/stackoverflow.html) by Felix Fischer 
* [Kubernetes, Pod Security Policies: Seccomp](https://kubernetes.io/docs/concepts/policy/pod-security-policy/#seccomp)
* [Amazon SNS Adds Support for Dead-Letter Queues (DLQ)](https://aws.amazon.com/about-aws/whats-new/2019/11/amazon-sns-adds-support-for-dead-letter-queues-dlq/)
* [Amazon DynamoDB adaptive capacity](https://aws.amazon.com/about-aws/whats-new/2019/11/amazon-dynamodb-adaptive-capacity-now-handles-imbalanced-workloads-better-by-isolating-frequently-accessed-items-automatically/) now handles imbalanced workloads better by isolating frequently accessed items automatically
Daily Challenge #128 - Blackjack Scorer
Tags: challenge
Published: 2019-11-30 15:36:02

---
title: Daily Challenge #128 - Blackjack Scorer
published: true
series: Daily Challenge
description: Determine the score of a hand in blackjack
tags: challenge
---

Write a function that determines the score of a hand in a standard game of [Blackjack 21](https://en.wikipedia.org/wiki/Blackjack). The function will receive an array of strings representing the cards that are in the hand of the player. Please return the score of the hand as an integer.

**Scoring:**
Number cards count as their face values. Royalty count as 10s. An Ace can be either 11 or 1. 

Return the score closest to 21. If the score is greater than 21, return the score and say "Busted!". 

**Test cases:**
<pre>
["A"]
["A", "J"]
["A", "10", "A"]
["5", "3", "7"]
["5", "4", "3", "2", "A", "K"] 
</pre>

Happy coding!

***
_This [challenge](https://www.codewars.com/kata/534ffb35edb1241eda0015fe) comes from jodymgustafson on CodeWars. Thank you to [CodeWars](<https://codewars.com/>), who has licensed redistribution of this challenge under the [2-Clause BSD License](<https://opensource.org/licenses/BSD-2-Clause>)!_

_Want to propose a challenge idea for a future post?  Email **yo+challenge@dev.to** with your suggestions!_
Are you curious about functional programming in javascript? Tell me, what do you want to know?
Tags: discuss, beginners, javascript
Published: 2019-11-30 15:08:54

---
title: Are you curious about functional programming in javascript? Tell me, what do you want to know?
published: true
description: 
tags: #discuss #beginners #javascript
---

First of all, I'm not an expert on functional programming, I just like to read (and sometimes write) about that stuff.

Tell me what do you want to know. What is that thing you have read about but still don't understand? Maybe I can help, maybe someone else can, maybe I'm just looking for ideas for a future post (que también puede ser en español).
How to Find a Job After a Coding Bootcamp
Tags: coding, bootcamp
Published: 2019-11-30 15:00:12

The good news for the individuals who have done with their boot camps, though a recent survey found that 72 percent of hiring managers believe that individuals with credentials of online bootcamps are well-prepared and highly educated. However, software development from Bootcamp can be intimidating, and now that you know about the boot, it is time to put your skills to work in the real world. However, months after graduation have their own learning process and often involve rejecting and thinking seriously about what is being done in life. At online boot camps, one will learn more in a short time than ever before, and likewise, you build a solid foundation for learning codes. However, you will not learn enough to succeed with most code issues, though you are not ready to discuss it because you can confidently share your views in different languages and technologies as well. Here are some of the tips in order to keep you motivated and support you texture the first job after consuming boot camp:

Utilize Your Experience to Your Improvement
The first and foremost thing to remember is that most of the online boot camp code comes from different backgrounds, and many do not have difficult experiences, but as some belief, this is not a big problem. However, no matter what you have, you should use a background and allow it to help you find work in real life. It may not be perfect for you to start with, but you must continue like everyone else and hope for the betterment.

Continue reading here: https://techoptimals.com/how-to-find-a-job-after-a-coding-bootcamp/
Deploying a Rails App With No Downtime and No Hanging Requests
Tags: rails, ruby, devops, webdev
Published: 2019-11-30 14:58:46

While working on CronMonit, I needed a way to be able to do deployments with zero-downtime and zero hanging requests.

[CronMonit](https://cronmonit.app/) is a cron monitoring tool and it is able to monitor cron jobs by receiving pings (HTTP requests). A service like this can't have many downtimes or hanging requests because even just missing a few pings will cause issues for its users. Like a "cron job is down" email notification being sent even if the cron job is not really down. And because I do deployments frequently, having a way to do deployments with zero downtime and zero hanging requests is crucial.

This is the current tech stack of CronMonit:

- Rails 6
- Puma
- Nginx
- PostgreSQL

All of them are running on a single $5 DigitalOcean droplet (Ubuntu 18.04 LTS).

Luckily, it is very easy to a deployment with no downtime and no hanging requests on a rails app using puma web server. Puma has a feature called "phased restart" which kills puma workers one-by-one.

To use it, just spawn up at least 2 puma workers.

E.g,

`RAILS_ENV=production bundle exec puma -w 2`

Then when you need to restart puma, use the phased restart feature:

`bundle exec pumactl phased-restart`

Here's an example scenario that explains the process:

- Do code changes on your local development environment
- Commit or merge the changes to master branch
- Push the changes on master branch to your central git repository (e.g, Github)
- SSH into your server
- cd into the directory of the git repository on your server
- Pull updates from master branch (e.g, git pull origin master)
- Then restart puma using phased restart

That's it!

----

If you're using cron jobs or scheduled tasks, you can monitor them using CronMonit for free: https://cronmonit.app/

Here's a blog post on how it works:

https://dev.to/john200ok/free-and-painless-cron-job-monitoring-via-cronmonit-8n9
Community of Developers
Published: 2019-11-30 13:46:24

Obviously, Dev.to is a community of programmers, developers and designers. It's truly an awesome place. I love the community posts, listings, discussions and more.

That's why I always look for developer websites to discuss, learn and grow on. Recently, I found Webwide.io through - wait for it - Dev.to. It's an awesome forum site for developers and designers to  ask questions about problems, share articles, and just chat about life!

(No, I am not affiliated with them. It's just an awesome site!)

You can check it out down below!

https://webwide.io/?ref=1270
d3 curtain selector
Tags: codepen
Published: 2019-11-30 12:53:17

---
title: d3 curtain selector
published: true
tags: codepen
---

![A curtain slider](https://thepracticaldev.s3.amazonaws.com/i/qgf80h3lr8g7kh9vzrvt.png)

<p>This is a prototype which aims to let a user select a range of a graph.
It uses a "curtain" to select to and from values.
D3 renders the graph and the d3 scaling functions is used to map from values to pixels and the invert method is used to get from pixel values to "real" data values.</p>

<p>The pen was created back in 2017, but it could still be relevant, if you need to be able to select a to and from value through a nice drag based UI. The pen should be compatible with touch devices. I would like to be able to let the input fields function in a 2 way binding way, but that remains to be implemented.</p>

{% codepen https://codepen.io/netsi1964/pen/BWQjow %}
Is Object Oriented programming less popular in JavaScript than other languages?
Published: 2019-11-30 12:34:29

I'm learning Object Oriented programming with PHP for work. My background is frontend / JavaScript development and I've not really come across OO before. It seems that OO is less popular in JavaScript than other languages but maybe I've just been in the React bubble.

Do you agree that OO is less popular in JS? If so then why is that?
XSharp, Bandol 2.10 release
Tags: xbase, clipper, foxpro, dotnet
Published: 2019-11-30 11:56:02

A few years ago, [Clipper](https://en.wikipedia.org/wiki/Clipper_(programming_language)) was my bread and butter language. First Summer '87 and then Clipper 5.2. This was back in the days before Windows was invented. MSDOS ruled.

As Windows came into its own Clipper slowly disappeared and other things like [FoxPro](https://en.wikipedia.org/wiki/Visual_FoxPro) were developed. Eventually Microsoft gave up on FoxPro in favour of other languages and tools. There are other xBase languages out there still (e.g. Alaska Software's [XBase++](https://www.alaska-software.com/) and the open-source [Harbour](https://harbour.github.io/) and [xHarbour](https://www.xharbour.com/) projects.) However, there hasn't been much happening for dotnet until fairly recently when [XSharp](https://www.xsharp.info/) arrived.
>In April 2015 a group of concerned customers and some members of the GrafX development team have talked about starting a new open source project to give the xBase language for .NET a new future. This initiative is called XSharp. This was partially inspired by the fact that Microsoft has published the source code to its C# and Visual Basic compilers under an open source license (.NET Compiler Platform "Roslyn"). The plan is to create a new development language (compiler, runtime libraties, IDE, tools) where the compiler is partially based on the Roslyn source code.

>The Core language is an xBase language version of the Microsoft C# compiler. It has the same features as C# 6, but will of course use the well known xBase syntax.
Based on this core language compiler different flavours have been created with support for the data types, classes and objects that make each dialect unique.
The Core language is able to produce .NET assemblies that run under windows, but also "universal apps" that run under other platforms as well. .Net Native support is planned as well.

I haven't had much opportunity to do anything constructive with this implementation of xBase. I've installed it and written a few simple things with it. It certainly looks promising.

Disclaimer: I have no connection to the makers of XSharp. I'm just looking wistfully at a language that I used to enjoy using and earning real money with.
Best Book for Bootstrap 4
Tags: discuss, webdev
Published: 2019-11-30 10:22:54

While learning web-development, I found [**Bootstrap 4**](https://getbootstrap.com/) very useful for designing the front-end designing of websites. It surely makes **makes a website more interactive**. 
But the whole [documentation of bootstrap](https://getbootstrap.com/docs/4.4/getting-started/introduction/) was so huge that trying to read it wholly over the internet was not so easy if I wanted to **master** it. *(I also have eye problems) :P*
#### In this case I thought surely reading a book would do the job
#### Unfortunately, I could not  find one

#Can you suggest me the best book to refer and learn Bootstrap 4?
Tejas App International Pvt. Ltd.
Published: 2019-11-30 09:50:32

We have diverse products range over 25K collections of groceries, clothing, and electronics. Tejas App is an online platform between Manufacture unit to connect with wholesalers and retailers. Basically, we work with an idea to make wholesalers and retailers focus on sales rest things are taken care of by Tejas App. We can reduce the travel expenses, cold storage, research & development work expenses and efforts.
Tejas app is an online platform works for retailers, customers, and wholesalers. We work with an idea to reduce the efforts and make them work smartly. We take care of aspects of logistic, cold storage area, travel expenses research works accomplish them and hand over the order to you. We understand time is money. Your convenience can make you work more efficiently.
I don't code outside of work
Tags: beginners, career, motivation
Published: 2019-11-30 14:06:18

---
title: I don't code outside of work
published: true
date: 2019-11-30 08:52:24 UTC
tags: meta, beginners, career, motivation
canonical_url: https://www.codetips.co.uk/i-dont-code-outside-of-work/
---

I've been a developer for about 6 years now, and I love my job. I've found a decent company, an awesome working environment, and I actually enjoy being a software engineer.

Unfortunately, in this industry, there can be an expectation that you'll be doing it in your own time, on your own projects, to keep up with new technologies.

Well, I'm here to tell you it's not a requirement to being successful.

Sure I've done my own projects, with varying levels of success, but they were born out of interest not requirement.

I have a young family, so any time not spent working goes on them. I could have probably learnt {insert newest JavaScript framework here}, but personal life is important.

Put whatever time you can into it, and don't feel guilty if you can't give more.

---

[CodeTips](https://www.codetips.co.uk) strives to help beginners, with zero or very little experience, learn to code.

We do cross-post to other sites to reach a wider audience, but why not [subscribe to our newsletter](https://mailchi.mp/92cccf7024b2/codetips) and get the newest articles straight to your mailbox? 

The original source for this content is [CodeTips](https://www.codetips.co.uk). The original content is kept up-to-date, but other sources may not be the latest version.
Starting in the programming world
Tags: eucation, beginners
Published: 2019-11-30 08:42:08

Recently, I have learned the beginnings of programming. Right now, I don't know a lot but I want to improve my programming skills.
In the education system,teachers are teaching programming codes like python, but not all of them are teaching the structure and the basic mind we need to start with that codes. So,let's talk about this point of view.
When we were young, we learn how to use the PC but no how it works. Therfore when we start programming, we don't understand at first how to structure and operate with the code. I think that teachers should start with flowcharts and they will improve with this different way of thinking
Sorry if my English is wrong because it's my second language.