teleren/devto huggingface dataset:
Tech Acronyms/Abbreviations Cheat Sheet
Tags: beginners
Published: 2019-08-20 00:14:47

---
title: Tech Acronyms/Abbreviations Cheat Sheet
published: true
description: 
tags: #beginners  
---

I have a fairly poor memory when it comes to memorizing shortcuts, passwords and all things acronym. 

Tech has SO many of these that I finally decided it would just be best to list them all here and I will reference them when my memory fails me. 

I'll be adding to this list from time to time so feel free to comment your own abbreviated tech-related jargon and I'll add it to the list below. Each term is linked to its Wikipedia page for a quick reference. 

* AJAX - [Asynchronous JavaScript And XML](https://en.wikipedia.org/wiki/Ajax_(programming))
* API - [Application Programming Interface](https://en.wikipedia.org/wiki/Application_programming_interface)
* AR - [ActiveRecord](https://guides.rubyonrails.org/active_record_basics.html)
* CLI - [Command Line Interface](https://en.wikipedia.org/wiki/Command-line_interface)
* CRUD - [Create Read Update Delete](https://en.wikipedia.org/wiki/Create,_read,_update_and_delete)
* CSS - [Cascading Style Sheets](https://en.wikipedia.org/wiki/Cascading_Style_Sheets)
* DB - [Database](https://en.wikipedia.org/wiki/Database)
* DoD - [Definition of Done](https://www.agilealliance.org/glossary/definition-of-done/#q=~(infinite~false~filters~(postType~(~'page~'post~'aa_book~'aa_event_session~'aa_experience_report~'aa_glossary~'aa_research_paper~'aa_video)~tags~(~'definition*20of*20done))~searchTerm~'~sort~false~sortDirection~'asc~page~1))
* DOM - [Document Object Model](https://en.wikipedia.org/wiki/Document_Object_Model)
* DRY - [Don't Repeat Yourself](https://en.wikipedia.org/wiki/Don%27t_repeat_yourself) 
* ERB - [Embedded Ruby](https://en.wikipedia.org/wiki/ERuby)
* JS - [JavaScript](https://en.wikipedia.org/wiki/JavaScript)
* JSON - [JavaScript Object Notation](https://en.wikipedia.org/wiki/JSON)
* HTML - [Hyper Text Markup Language](https://en.wikipedia.org/wiki/HTML)
* HTTP - [HyperText Transfer Protocol](https://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol)
* IDE - [Integrated Development Environment](https://en.wikipedia.org/wiki/Integrated_development_environment)
* IIFE - [Immediately Invoked Function Expression](https://en.wikipedia.org/wiki/Immediately_invoked_function_expression)
* MVC - [Model-View-Controller](https://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller)
* NPM - [Node Package Manager](https://en.wikipedia.org/wiki/Npm_(software))
* OOP - [Object Oriented Programming](https://en.wikipedia.org/wiki/Object-oriented_programming) 
* ORM - [Object-Relational Mapping](https://en.wikipedia.org/wiki/Object-relational_mapping)
* REGEX - [REGular EXpression](https://en.wikipedia.org/wiki/Regular_expression)
* REST - [REpresentational State Transfer](https://en.wikipedia.org/wiki/Representational_state_transfer)
* SQL - [Structured Query Language](https://en.wikipedia.org/wiki/SQL)
* XML - [Extensible Markup Language](https://en.wikipedia.org/wiki/XML)
Matching multipart request bodies with VCR
Tags: vcr
Published: 2020-02-20 12:32:57

---
title: Matching multipart request bodies with VCR
published: true
tags: VCR, 
canonical_url: http://www.theguild.nl/matching-multipart-request-bodies-with-vcr
---

When using VCR to test a HTTP multipart request, you might experience mismatching cassettes because of multipart boundaries. Multipart boundaries are most often randomly generated by the HTTP library or browser, so when VCR tries to match a multipart request with a cassette, the boundaries will be different and the match will fail.

However, it is quite simple to replace the random boundaries by fixed ones before matching requests. A multipart request will have a `Content-Type` header, which not only makes the request recognizable as multipart request but also specifies the exact boundary that is used. In this case I took a cassette from a Ruby project, so the `Content-Type` looks like this:

    multipart/form-data; boundary=----RubyFormBoundaryTsqIBL0iujC5POpr

Given this header we should be able to simply replace the boundaries with a fixed value. VCR has a configuration option called `match_request_on`, which is an array that accepts symbols for predefined request matchers (see https://relishapp.com/vcr/vcr/v/5-0-0/docs/request-matching) or a callable (Proc, Lambda). I'm not a real fan of using procs for this but as long as we create an object that responds to `call` we will be fine:

```ruby
class VCRMultipartBodyMatcher
  MULTIPART_HEADER_MATCHER = %r{^multipart/form-data; boundary=(.+)$}
  
  def call(request_1, request_2)
    normalized_multipart_body(request_1) == normalized_multipart_body(request_2)
  end

  private

  def normalized_multipart_body(request)
    content_type = (request.headers['Content-Type'] || []).first.to_s
  
    return request.body unless multipart_request?(content_type)
  
    boundary = MULTIPART_HEADER_MATCHER.match(content_type)[1]
    request.body.gsub(boundary, '----RubyFormBoundaryTsqIBL0iujC5POpr')
  end
  
  def multipart_request?(content_type)
    return false if content_type.empty?

    MULTIPART_HEADER_MATCHER.match?(content_type)
  end
end
```

Now we can tell VCR to use our custom matcher:

```ruby
VCR.configure do |config|
  config.default_cassette_options = {
    match_requests_on: [:method, :uri, VCRMultipartBodyMatcher.new]
  }
end
```

Now, when running the test the boundaries of the request and the cassette will be equal, so the cassette will only mismatch if the request parameters differ. 👍

Do you need help with testing your application? At Kabisa we know a lot about writing good tests. [Leave us a message](https://www.kabisa.nl/contact/) if you would like to get in touch.
TIL About Node.js’ REPL Module
Tags: javascript, node
Published: 2019-09-13 18:05:41

---
title: TIL About Node.js’ REPL Module
published: true
tags: Javascript,Node.js
canonical_url: http://www.petecorey.com/blog/2019/08/20/til-about-nodejs-repl-module/
---

Today I learned that Node.js ships with [a `repl` module](https://nodejs.org/api/repl.html) that can be used to spin up a full-featured REPL on any Node.js process. This can be a fantastic tool for debugging a running server, or manually triggering back-end events.

Let’s assume that we’ve built a Node.js server who’s entry point is a `server.js` file. Let’s also assume that we have a constant (maybe pulled from our environment, maybe elsewhere) called `REPL` who’s truthiness determines whether we should start our REPL instance on standard in. Spinning up our REPL is as easy as:

```
if (REPL) {
    require('repl').start();
}
```

Once our server starts up, we’ll be greeted by a familiar prompt:

```
Starting server...
Listening on localhost:8080!
>
```

Fantastic! Normal REPL rules apply. Our server will continue to run and its output will continue to stream to standard out. Our REPL prompt will stick to the bottom of the tail, as expected.

More advanced options can be gleaned from [the `repl` documentation](https://nodejs.org/api/repl.html). Happy REPLing!
Thinking of where to go for a tour? 
Tags: httpstimbucommalta, malta
Published: 2019-08-19 23:43:09

From the home of the oldest prehistoric underground temple in the world to the popular soft drink, Kinnie .
A very beautiful country with so much culture and loveable beings.
The Maltese are renowned for their hospitality, friendliness and generosity. The people are traditionally kind-hearted and usually go out of their way to make guests feel at home. The majority of people are very accommodating, and are very willing to lend a helping hand, should you need directions or require assistance of any kind.
Should you be interested in spending some, if not all, of your time visiting points of interest, Malta has plenty to offer that’s worth seeing. A very good example is  Tarxien Temples.
It’s not easy to get bored in Malta, with a large number of things to do and see. You can enjoy a variety of sports and other leisure activities in Malta including hiking, mountain biking, rock climbing, scuba diving, paragliding and windsurfing, among others. Most of the larger hotels offer indoor pools, gyms and tennis courts, which comes in handy if you like to stay active when the weather isn’t very inviting to go out.
Still having a double mind visit
https://timbu.com/malta and be amazed.
360 Image Database for Face Object Detection
Tags: tensorflow
Published: 2019-08-19 23:41:44

TensorFlow is a great platform for experimentation with learning models.  About a year ago, I did some experiments with using the TensorFlow samples inside of the RICOH THETA 360 camera.  A GitHub repo of the [samples](https://github.com/codetricity/tensorflow-theta) is available to you to experiment with if you have a RICOH THETA V or Z1. You can also run the standard demos on an Android phone or AVD.

The main problem using the TensorFlow demos with a 360 camera was detection of objects in an equirectangular image. In the example below, you can see that the 360 image viewed in equirectangular format distorts the faces.

![equirectangular](https://i.imgur.com/54KbYD8.jpg)

This makes it challenging to access an image network such as YOLO (You Only Look Once).

Recently, developer Amine Amri, put out a [project](https://community.theta360.guide/t/theta-auto-trigger-plug-in-by-amine-amri/4665?u=codetricity) that introduced me to FDDB-360, a dataset derived from Face Detection Dataset and Benchmark [FDDB](http://viswww.cs.umass.edu/fddb/).

FDDB-360 contains 17,052 fisheye-looking images and a total of 26,640 annotated faces.

The dataset is available from http://www.sfu.ca/~ibajic/#data (J. Fu, S. R. Alvar, I. V. Bajić, and R. G. Vaughan,“FDDB-360: Face detection in 360-degree fisheye images,” Proc. IEEE MIPR’19 ,San Jose, CA, Mar. 2019).

## Working Without 360 Image DB

The TensorFlow demos work surprisingly well with 360 images without modification if the face is in the middle of the vertical height of the image.

![face](https://i.imgur.com/OsumeHY.png)

You can even detect and blur faces close to a stitch line as long as the face is in the center of the vertical height.

![edge face](https://i.imgur.com/pJEhZfw.jpg)

## When to use a 360 image DB of faces

Your recognition will decrease when the face is captured above or below the center of the vertical height.  The higher or lower it is, the more distortion you will experience.  For the best chance of face detection, you should use a 360 image DB.

## Next Steps

If you want to join the discussion around using TensorFlow with the RICOH THETA and 360 images, please check out [Tensorflow apk for THETA V - Speech, object detection, stylized filters](https://community.theta360.guide/t/tensorflow-apk-for-theta-v-speech-object-detection-stylized-filters/3812?u=codetricity).
How to move a Blob to another Container
Tags: dotnet, azure, storage, blob
Published: 2019-08-19 23:33:23

In this post, I am going to share a method that moves a blob to another container.

This content applies for:
- Azure Storage Accounts.
- .NET Core 2.2.
- Different containers on the same storage account.

{% gist https://gist.github.com/luisfernando-ch/e007dc96f8cdd93447c0fa27522ac9d6 %}

Steps
1. I have a CloudStorageAccount object that represents the Azure Storage Account.
2. I have a CloudBlobClient object that represents a Blob service.
3. In the constructor, CloudStorageAccount and CloudBlobClient are initialized.
4. MoveBlob method creates a reference of source container and destination container using GetContainerReference method of CloudBlobClient object.
5. I get a blob reference using GetBlockBlobReference method using the previous containers references.
6. Finally, I invoke StartCopyAsync method in order to copy the blob to another container, then, the source blob is deleted.
Visualize Data with a Treemap Diagram
Tags: codepen
Published: 2019-08-19 23:28:08

<p>Free Code Camp project: Visualize Data with a Treemap Diagram @ <a href="https://learn.freecodecamp.org/data-visualization/data-visualization-projects/visualize-data-with-a-treemap-diagram" target="_blank">https://learn.freecodecamp.org/data-visualization/data-visualization-projects/visualize-data-with-a-treemap-diagram</a>. Project built with d3.js.</p>

{% codepen https://codepen.io/aliasgharkarani/pen/QWLKqWj %}
What would you expect from a "vacation mode" feature on DEV?
Tags: meta, help, discuss
Published: 2019-08-19 22:50:37

---
title: What would you expect from a "vacation mode" feature on DEV?
published: true
description: 
tags: meta, help, discuss
---

We have an open issue from users who wish to temporarily disable their account. What would you expect from a feature like this? 

{% github https://github.com/thepracticaldev/dev.to/issues/3252 %}
Starting up on programming
Tags: startng
Published: 2019-08-19 22:45:53

Hi there I'm Temidayo An aspiring full-stack web developer... I actually am in a school studying computer science( or whatever it is they said we were studying though).....

I have always wanted to stand out from the normal stigma placed on Nigerian graduates.... yeah we all know what I'm talking about, I mean "how do you say you just graduated computer science and you cannot even write a program to add two numbers". yes, that was me before... but then I decided to get out of that sort of mediocrity and actually be serious about something other than drumming(its right there on my profile) for once..... turns out it was actually a pretty good decision on some days (and a pretty annoying decision on others😒).

So I started my journey... I call it the "Gathering of tutorials"...... and all of a sudden I realized that this thing wasn't as hard as I thought it would actually be (it is twice harder😢😢). But that is where startNG came in (and there is the Game of Thrones theme song in the background). found out about this internship thingy on twitter and decided to join (who knows maybe I will even add to my already massive collection of tutorials🤣). but then I realized these guys are actually not kidding. I've already had to learn about GitHub and understand how to use the "NERD WHATSAPP" more popularly known as SLACK(among nerds that is😒)... and I even had to learn how to write my CV cause that's also part of a new Challenge we have to complete...... So as I continue on this journey trying to juggle School And Slack because of Start NG I hope I have the fortitude to stick with it till the ending....... and apparently as a completion of one of the tasks we are to create a backlink... so here's mine timbu.com/chile

Hey there I'm Temidayo.... welcome to my journey to becoming world-class full stack developer
Veronika Decides to Die 
Tags: books, review, paulocoelho
Published: 2019-08-19 22:39:19

---
title: Veronika Decides to Die 
published: true
description: What I think of the book by Paulo Coelho
cover_image: https://thepracticaldev.s3.amazonaws.com/i/xxdaak9g7ljmkxltu7kk.jpg
tags: books,review,paulo-coelho
---

I managed to grab a copy of [Veronika Decides to Die](https://amzn.to/2Hg5Tpr) from a bookstore in Colombo, during my trip back home last June. The summary behind the cover grabbed my eye. About, how a failed attempt to suicide changed a person. The book is written by Paulo Coelho. The author who got famous for the book [The Alchemist, another amazing read](https://amzn.to/2Nfk2a5). 

The story starts off with describing in detail why Veronika wants to die, and why it's not because she is depressed or because she is suffering from any other usual condition that drives people to suicide. There is a bit of dark humor that keeps the story vibrant during these scenes. Also, describes how similar most of our lives are in terms of how we have conditioned our selves to behave in a socially acceptable way. 

With the failed suicide attempt, Veronika gets a deadline to live. Making her days count, the story unfolds incidents that happen around Veronika that doubts her own choices made to take her life. 

It's amazing how she sees the world differently every single day she gets to live her life. She reflects on the decisions she made all these years were just to please those around her and the world. These scenes remind me of how our lives are immersed with the [spotlight effect](https://en.wikipedia.org/wiki/Spotlight_effect) forcing us to behave to adhere to social norms to feel accepted. 

The life in the asylum in Villet, and the fraternity and their stories give us a glimpse of why people would like to stay crazy so they can stop pleasing those around us and behave as how we're intended to, like toddlers who don't give a dime about what's going on around them, they just live the moment and enjoy life as it is.   

Overall, the story has some really insightful incidents and stories of the characters. You might even be able to relate to some of the incidents, and sometimes, wish that you were crazy so you can, not give a f*ck about what society and the world think and enjoy life for what it is.  

[Here is a link](https://amzn.to/2Hg5Tpr) to anyone who wants to grab a copy.
Bulk Import of gitlab issues with labels, tasks and assigns
Tags: gitlab
Published: 2019-08-19 22:33:05

---
title: Bulk Import of gitlab issues with labels, tasks and assigns
published: true
description: 
tags: #gitlab
cover_image: https://thepracticaldev.s3.amazonaws.com/i/jhobku20n74qsj2nemku.jpg
---

import of gitlab issues with csv files is capable of doing all the nice quick actions, which allow you to assign a person and add a label to an issue while importing.

example csv file:

```
"title";"description"
"Simple Issue";"Simple text"
"Complex Issue";"lorem ipsum

/label ~Todo ~label1 ~label2
/assign @myusername"
"Task Issue";"test the following
- [ ] test1
- [ ] test2
- [ ] test3

/label ~Todo ~label1 ~label2"
"Codeblock Issue";"\`\`\` 
code block line1
code block line2
\`\`\`

/label ~Todo ~label1"
```
i added a backslash befor the backtick because otherwise dev.to displays the post wrong.

then go to the issue list and use the small button on the top right called "import CSV"
bash on windows - CreateProcessW failed ... errno 13
Tags: windows, bash, terraform
Published: 2019-08-19 22:22:15

---
title: "bash on windows - CreateProcessW failed ... errno 13"
published: true
description: to prevent this error, disabling multiprocessing helps
tags: #windows #bash #terraform
cover_image: https://thepracticaldev.s3.amazonaws.com/i/f88mjm0peegx2pcx3b83.jpg
---

```
0 [main] bash 6884 fork: child -1 - CreateProcessW failed for 'C:\Program Files\Git\usr\bin\bash.exe', errno 13
```

Sometimes windows gives you this strange error. it happend for me with php, shell scripts, terraform calling shellscripts, ...

windows has problems (i read something about a security measure) creating to "many" processes in a short timeframe. 

the solution for me was to disable multithreading in the program which calls the bash scripts or in general has such problems.

for terraform its:

```
terraform plan -parallelism=1
```


links:

- cover image: by stevepb Steve Buissinne https://pixabay.com/photos/car-accident-damage-crash-insurance-153817
CompileSwift Podcast: State of the beta's and Foo Foo over Features
Tags: ios, xcode, apple, macos
Published: 2019-08-19 22:17:35

I always appreciate when Apple sends out beta's after I just released a new episode...oh well :)

Sorry, I still can't figure out how to embed an anchor.fm player in a post...anyone? Thanks.

https://anchor.fm/compileswift/episodes/State-of-the-betas-and-Foo-Foo-over-Features-e50pll

##Show Notes

In this episode I talk about the state of the beta releases for the platforms and the developer tools. Then in part 2, are you letting the foo foo get in the way of the features and purpose of your application?

### State of the Beta’s
- iOS 13 Beta 7
- iPadOS 13 Beta 7
- watchOS 6 Beta 7
- macOS Catalina Beta 5
- tvOS 13 Beta 7
- Xcode 11 Beta 5  

### Features over FooFoo
Do not let fancy animations and the UI get in the way of an applications purpose and features.
Python vs C++
Tags: python, cpp
Published: 2019-08-19 22:11:04

As I used both Python and C/C++ and felt their strengths and weaknesses, I am annoyed when I encounter the unfair comparison between them in the social networks. The people blaming C/C++ are either persons that ignores C/C++ or that have lower marks in this module in the college.

Python is really a nice language powered by tons of libraries that offers limitless possibilities and solutions to whatever problem. However, saying that it is better than C/C++ is not always true. 

This article will try to prove that the comparison between two languages should be made based on many criteria that indicate which language is better for which job.

First, Python is an interpreted language while C/C++ is a compiled language meaning that the deliverables for both languages will not be same: when writing for Python the customer expects the source code for their project, while C/C++ compiler will produces a working binary that does not require that the source code on the customer's machine. Someone will claim that Python have tools to convert source code into binary, that's true and till now I have not encountered a single tool that perform the task as it should be done, and if it exists it will needs many tweaks.

Second, Python is delivered with libraries that plays in its favour. C/C++ has its own libraries too, but in this fields it's Python the winner. In fact, with Python a simple import for a library or some features of that library suffices to resolve a problem that will needs tens of includes and their dependencies. 

Talking about dependencies the Python packaging modules will ensure all the dependencies are fulfilled for one module when installing it. In the time I was using C/C++ that's feature was missing.

Third, performance side Python gives worst results because it's not designed in essence to enhance performance but to increase developer productivity, this down side is the cost of the excellent productivity of the language.

Fourth, C/C++ is meant to be as close as possible to Assembly in order to control low memory, low power, resources-limited devices. Python needs higher memory footprint and more CPU. 

We shall not forget about multithreaded tasks, Python without external libraries written in C is unable to use the full multiprogramming capacities of the CPU because of its global locking.

Finally, as my article became very long I have to summarize in one sentence: choose the language that fulfils your needs by comparing each language features and capabilities and don't rely to your feeling in this matter, they won't help you.
How do I know if I'm ready to apply for first job? 
Published: 2019-08-19 21:55:28

I'm not actually quite ready just because I need to get more done on my learning project (which is all I have to show for what I can do). But I feel like my skills are developed enough that I could be productive. Any general suggestions or benchmarks on where anyone starting out should be to be considered hire-able as a software developer?