teleren/devto huggingface dataset:
hexV
Tags: c, gtkmm, hexadecimalviewer, opensource
Published: 2020-10-02 19:59:30

---
title: hexV
published: true
date: 2020-06-16 02:26:00 UTC
tags: c,gtkmm,hexadecimalviewer,opensource
canonical_url: 
---

  
[hexV](https://github.com/manekenpix/hexV) is a little tool that I've been working on for a while.  
It's a tiny viewer that shows the content of any file in hexadecimal.  
Something like this:  
  

[![](https://1.bp.blogspot.com/-Ky2VJ_KkC5U/XuR33YCithI/AAAAAAAAHm4/BhmPHmCIsJ05UzDvL68N7pcDiR-l885TQCK4BGAsYHg/s320/hexV.png)  
](https://1.bp.blogspot.com/-Ky2VJ_KkC5U/XuR33YCithI/AAAAAAAAHm4/BhmPHmCIsJ05UzDvL68N7pcDiR-l885TQCK4BGAsYHg/s573/hexV.png)

  

I first thought about making hexV while I was working on another project that involved parsing and rendering large images without using any official libraries like [libpng](http://www.libpng.org/pub/png/libpng.html). I needed something that I could use to learn and understand how images are structured and stored depending on the type (PNG, JPEG, BMP...), and also that'd help me debug the parsers I wrote for that project.

  

hexV did the trick. Instead of having to go through endless console output to chase bugs, I could simply open the processed image with hexV and compare it to the values read by the parsers. I'm pretty sure that using hexV saved me a ton of debugging time.

  

The first version of hexV had builds for both windows and linux, but I recently added some deep changes to the linux version so I removed the windows build until I can make some time to add those changes to it.

  

I have some interesting features in mind, like file type detection, that I'd like to add sometime soon. 

Oh, and this is an open-source project, so if you find hexV interesting and feel like collaborating, [take a look at the issues](https://github.com/manekenpix/hexV/issues) and hack away!
Koa BodyParser with Firebase Cloud Functions ✔️
Tags: koa, bodyparser, firebasefuncs, javascript
Published: 2020-06-16 02:08:58


Many __[Koa.js](https://github.com/koajs/koa)__ users encounter some problems with __[Firebase Functions](https://firebase.google.com/docs/functions)__ during parse bodies using __[koa-bodyparser](https://github.com/koajs/bodyparser)__.

#### So, I'd like to share how to solve this problem and help who haven't come across this yet 🧙🏻‍♂️❤️.

Before starting there are some terms that should be clarified for newcomers.

  - **`Koa.js`** is a very minimal and elegant Node.js web framework developed by the team behind Express.js.
  - **`Firebase Functions`** is a serverless framework that lets you automatically run backend code in response to events triggered by Firebase features and HTTPS requests. 
  - **`koa-bodyparser`** A body parser for Koa, based on co-body. support json, form and text type body.

> __Note: The current version of koa-bodyparser is 4.3.0__

You should know that Firebase actually parses the body. <small>([see more here 👀](https://firebase.google.com/docs/functions/http-events#read_values_from_the_request))</small>
Therefore the module getting confused deals with `ctx.request.body` and `ctx.req.body` and an error appears here.

### The quick solution is to use `ctx.req.body` because it's already parsed. 😅

Also, you can create a small middleware function to support already parsed bodies. <small>([ref to this code 📌](https://github.com/koajs/bodyparser/issues/127))</small>

```js
// Import koa-bodyparser module
const bodyParser = require('koa-bodyparser');

// Middleware for Koa@2.x.x
function hybridBodyParser (opts) {
  const bp = bodyParser(opts);
  return async function (ctx, next) {
    ctx.request.body = ctx.request.body || ctx.req.body;
    return bp(ctx, next);
  }
}

// Usage 
app.use(hybridBodyParser());
```

### I'd love to hear about other solutions ? ✨ <br /> Feel free to share it with us 👋
SSL for custom domain on free-tier Heroku can be done with proper Cloudflare settings
Tags: heroku, cloudflare, webdev, security
Published: 2020-06-16 02:06:31

In short, you don't need an SSL certicate on Heroku at all, but

Cloudflare settings need to be

- SSL/TLS encryption mode is Flexible.
- Page Rules. You can only set 3 for free for a given domain name.
  - `*.your.tld/*`
      - Always Use HTTPS

It is related to this post, where he uses WordPress (and the correlated MySQL / AWS S3.)

{% post https://dev.to/aryaziai/complete-guide-to-hosting-wordpress-on-heroku-with-ssl-certification-4f2l %}

I am going to ditch [Google Cloud Run](https://cloud.google.com/run/) for Heroku for now. I still get [full power of **Docker**](https://devcenter.heroku.com/categories/deploying-with-docker), with no problem of custom domain mapping (and avoid some meager payment, not free).

This website, with CORS-enabled public OpenAPI, actually. (Some other securities I put in are Helmet and Rate-Limiting, as well as database user being read-only.)

{% github patarapolw/jpapi no-readme %}
10 libraries for machine learning in JavaScript
Tags: javascript, machinelearning
Published: 2020-06-16 15:11:12

---
title: 10 libraries for machine learning in JavaScript
published: true
date: 2020-06-16 01:50:33 UTC
tags: JavaScript, MachineLearning,
canonical_url: https://www.ma-no.org/en/programming/javascript/10-libraries-for-machine-learning-in-javascript
---

JavaScript is currently one of the most popular programming languages. Its main application is in web applications, used to give functionality to dynamic web pages. Another field in which it is gaining strength is for the creation of mobile applications. Being the language used in different hybrid development platforms such as Apache Cordova. On the other hand, it can also be seen in server-side applications thanks to Node.js. Despite its popularity, it is not usually used in automatic learning environments, mainly due to the lack of libraries. In this entry we are going to list a set of libraries for… !

[Read all the article](https://www.ma-no.org/en/programming/javascript/10-libraries-for-machine-learning-in-javascript)
Importance of online presence - new journey on DEV
Tags: onlinepresence, computerscience, technology, career
Published: 2020-06-16 01:47:46

In this era of pandemic, where the world is changing at the pace of a fire in the woods, online presence is the only way we can stay socially involved and up to date.

My name is Tanvi Jain, I am a graduate student in Computer Science. Being a student in technical field, I have always tried to stay as much socially involved and technically updated as possible. But in the midst of my undergrad studies, the world was hit by our new resident "COVID-19", which changed the way I looked my social presence drastically. 
I realized that now as we are working from home as employees or studying from home through online classes, our social interaction has decreased by enormous amount and the only way I can stay alive in this large sea of competition and daily technological advancements is only by being online present even more than ever.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/ql45z44o5n8qkibjbw5x.jpg)

I know we have dozen of social media accounts and profiles, but are we really interacting? How many of us really sit down and spend sometime in writing down our thoughts and communicating it out to the people? I bet not all of us. We just read a post or an article and create a thought bubble and slide down to the next post or atmost like or leave a short comment. 

I realized that it does not take a lot to write down your thought process and share it with the people you are connected to,we get feedbacks and many people with same thought process connect back which starts a new connection based on just a small common idea. And this connection is what will keep us socially interactive in the upcoming era. 

Though we all wish to get back to the same social interaction that we had pre-pandemic, but guess what we always have a solution! This is the reason why I joined Dev to be evenmore socially active by increasing my online presence and interacting with people around the world and I hope it will work well for me. 

So lastly I just want to start my journey with this first article and I am looking forward to connect to as many people as possible, I would love as many replies,feedbacks and reactions from all of you and would love to connect back with you.
What is the difference between yarn and npm these days?
Tags: discuss, javascript, npm, node
Published: 2020-06-16 01:40:20

Back when yarn was first released, the defining feature was yarn's lockfile, which sped up dependency tree resolution and thus the overall `install` of a project. Well, npm 5 came out with a lockfile a few months later. I don't know if it's anything new, but I've noticed in the last several months that both large community projects, enterprise blog articles, and individual stuff on platforms like dev.to always put the yarn commands first with npm commands as a secondary line, or a comment underneath the yarn command.

Why? Why do people still use yarn? Why does it seem like yarn is preferred these days? What differentiators does it actually have against npm 6.x?
Spend your novelty budget on Rust
Tags: rust
Published: 2020-06-16 01:30:55

---
title: Spend your novelty budget on Rust
published: true
description: Rust is a programming language that has now proven that it deserves your attention.
tags: rustlang
canonical_url: https://tim.mcnamara.nz/post/621040767010504704/spend-your-novelty-budget-on-rust
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/zxids4mgpiqhjj1nljzl.png
---

Starting a new project is exciting. You get to try the new database, the new framework, the new architecture, the new everything. But every new tool introduces a risk. And those risks compound. That’s why I believe that you should [choose boring technology](https://boringtechnology.club/) for most of your stack and only allow a meagre [novelty budget](https://www.shimweasel.com/2018/08/25/novelty-budgets).

Rust is a programming language that has now proven that it deserves your attention. Software heavyweights, including Microsoft, Google and AWS all use Rust. [Hundreds of smaller companies](https://www.rust-lang.org/production/users) are also taking advantage of it.

If you’re in the lucky position of being able to decide which tools to use, consider Rust.

Side projects make good candidates, especially if you are hitting memory constraints. Don’t rewrite your core application in a programming language that you haven’t used before. Using Rust for projects off the critical path provides time for learning, stumbling and revision. Even if the Rust prototype is not put into production, I believe that you will become a stronger software engineer. The compiler will teach you about object lifetime management and modelling concurrent applications.

There are many stories of applications that are now impossible to maintain because someone decided that the latest NoSQL database, framework, or language would be perfect for the new project. That person has now left and no one knows how to keep the application alive. Luckily, [Rust is a programming language for the next 40 years](https://www.youtube.com/watch?v=A3AdN7U24iU).
5. Techniques to boost a Business Automation Project
Tags: uncategorized
Published: 2020-07-05 04:58:40

---
title: 5. Techniques to boost a Business Automation Project
published: true
date: 2020-06-16 01:26:27 UTC
tags: Uncategorized
canonical_url: https://karinavarela.me/2020/06/15/techniques-to-boost-a-ba-project/
---

_Previous posts of the[jBPM Getting Started Series](https://karinavarela.me/jbpm-getting-started/) should provide a good base for the understanding of this chapter. Also, basic knowledge about application transactions should provide a better understanding of the chapter._

The engine can be tuned for business automation projects to achieve better performance results are achieved. Mainly when involving business rules validation, there are important decisions that need to be taken about the process execution runtime.

_And this is not about how to tune your JVM or operational system_. This is about using the engine in the best possible way for each project you deliver.

To create high-performance business automation projects, there are some topics in which the business automation specialist needs to worry:

- Is your project lightweight and easily scalable?
- What is the best way, in each scenario, for the engine to deal with objects in-memory?
- Are you properly storing the domain data – do you need to store data in a different data store?
- What will happen in cases of failure – make sure no service is called twice unexpectedly!
- How can you extend the engine API to better attend to your domain needs?
- Do you need special auditing or some type of listener?

Let’s understand a little bit more about how you can improve and adapt your project and the engine in the blog posts of this section:

- [Runtime Strategy: Choose wisely](https://karinavarela.me/2020/06/16/runtime-strategy-choose-wisely/)
- [Persisting custom data: Configuring external persistence](https://karinavarela.me/2020/06/17/persisting-custom-data-configuring-external-persistence/)
- [Mastering Transaction Boundaries](https://karinavarela.me/2020/06/28/mastering-transaction-boundaries/)

* * *

This section is part of the [jBPM Getting Started](https://karinavarela.me/jbpm-getting-started/) series
How to move configuration into cloud with Ajustee
Tags: csharp, config, cloud, saas
Published: 2020-06-16 01:09:41

Hello all. If you’re in software development, you definitely deal with settings or parameters management. Some of you store settings in files (config or external), others — in databases. And, if you have multiple instances or some DevOps practices like delivery pipelines, you know how challenging it can be to manage different values for multiple instances.

[Ajustee](https://ajustee.com) is designed to fix this problem. It’s a cloud based solution that hosts configuration parameters of your software products with an ability to pass different values for all environments, applications, tenants or pretty much anything else. The service has a UI for managing parameters and API to accessing parameter values from your applications.

If you want to learn more about Ajustee, check out our [website](https://ajustee.com) and blog.

A full article that covers migration of configuration into the cloud can be read on medium:

{% medium https://medium.com/@ajustee/how-to-move-configuration-into-cloud-with-ajustee-d19138cbf1c4 %}
Day 154 : Blessed
Tags: hiphop, code, coding, lifelongdev
Published: 2020-06-16 00:49:44

_liner notes_:
- Saturday : This week, the show has made its return to the radio waves since the Pandemic shut the station down. Kind of. The  show from the week before was played on air. I'll be sending our recorded show to be played at the station the week after. There would be no way for me to try and get the show ready before so it could be played the same week. Plus we would lose the live aspect of the show. And I think doing the show live is the best part. Honestly, I've been blessed to be able to do the show for over 11 years! The recording of this week's show is at https://kNOwBETTERHIPHOP.com

![Radio show episode image of corporate Democrats posing wearing Kente cloth with the words June 13th 2020, We got the CHAZ](https://dev-to-uploads.s3.amazonaws.com/i/l3xqhszvcoxvq92sh5c0.jpg)

- Sunday : Had a good day. Mowed my lawn. Made some good progress on the side project. Watch the final episode of "Quiz". Pretty chill day.

- Professional : Today is the first day of the internal hackathon. I got some really great feedback about the workshop I recorded for the hackathon. Talked with my manager. Hung around the hackathon live stream to see if anyone had any questions. Also got the layout done for a Web Component I've been building. I'll be adding functionality tomorrow. Pretty productive.

- Personal : Got quite a bit done with the Task list portion of the side project. Layout, styling, listing of tasks, and completing tasks are done. Want to add creating new tasks, edit tasks plus save to and pull tasks from local storage.

![Orange dunes and brown mountains in Haleakala Nat'l Park, HI, USA](https://dev-to-uploads.s3.amazonaws.com/i/eex15sysc08xwb064e38.png)

Ordered a bunch of catalogs from 80/20 to see what they offer so I can build the inside of van. Looking through them is giving a lot of good ideas. I would also like to finish up the task list part of my side project. Pretty much it.

Have a great night!

peace piece
Dwane / conshus
https://dwane.io / https://HIPHOPandCODE.com
{% youtube BCLzuTPJk4Q %}
How to Save Valuable Time with Bash Aliases
Tags: computerscience, linux, bash, alias
Published: 2020-06-16 00:42:58

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/pkx0vd8fc3jnracj7usn.jpg)


As a new programmer, discovering a mystical terminal in my computer was astonishing. But as I started to code, I found it very annoying when I had to type the same commands over and over again into my terminal. I was pleasantly surprised when I learned about bash aliases that I could write to save time!

You can write bash aliases to shorten simple commands as well as bash functions to put multiple commands together. On Unix-based operating systems, custom bash commands are a life-changer! Just follow these simple steps:

### **Open your terminal.**


### **Enter these commands to view hidden files:**

`cd ~`
`ls -a`

### **Open your bash profile.**
You should see a list of files after typing the commands above. If your computer uses a login shell, open .bash_profile in any text editor. If your computer uses a non-login shell, open .bashrc in any text editor.
To check if your computer uses a login shell, type the following command in your terminal:

`echo $0`

If it returns -bash (with “-” as the first character), you are in a login shell. If it returns bash (where “-” is NOT the first character), you are in a non-login shell.
If you are unsure about how to open a file from your terminal, look [here](https://superuser.com/questions/38984/linux-equivalent-command-for-open-command-on-mac-windows).

### **Once the bash profile is open, you are ready to write your custom bash commands at the bottom of the file!**
To write an alias, use the following format:

`alias c='clear'`

This alias will allow you to just type c into your terminal every time you want to clear it.

More examples of useful aliases:

`alias .='cd ..'`
`alias gc='git clone'`
`alias labs='cd ~/Flatiron/Mod2/Labs/'`
`alias bi='bundle install'`
`alias gu='anmolk18@github.com'`

You can write a function to put multiple commands together like this:
`function gacp() {
git add . &&  git commit -m "$1" && git push origin $2
}`
If you need to pass arguments into the function, the first parameter will be stored in $1, the second in $2, and so on. When using GitHub, using the function above will be very helpful. To add, commit with a message, and push to the master branch, all you have to type into your terminal is:
`gacp "CLI done" master`

### **Once you have written your aliases, save the file and open your terminal to use them!**
(Note: If your terminal was already open, you may need to close it and open it again for the newly saved aliases to work.)

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/zt7hu4mgznnm15ghhyfq.jpg)

## **References:**
[Difference between Login Shell and Non-Login Shell](https://unix.stackexchange.com/questions/38175/difference-between-login-shell-and-non-login-shell)
[Creating new bash commands and aliases](https://medium.com/swlh/creating-new-bash-commands-and-aliases-c9272fd589c4)
[An Intro to Git Aliases: a faster way of working with Git](https://www.freecodecamp.org/news/an-intro-to-git-aliases-a-faster-way-of-working-with-git-b1eda81c7747/)
Build Cross-Platform Desktop Apps using Golang and Javascript!
Tags: go, javascript, discuss
Published: 2020-06-16 00:35:08

---
title: Build Cross-Platform Desktop Apps using Golang and Javascript!
published: true
tags: go, golang,javascript,discuss
cover: https://dev-to-uploads.s3.amazonaws.com/i/ehz8lbtgee9clnm5dmii.png
---

Hello Devs, 

Once upon a time I wanted to create a simple desktop app for my personal use, after searching Github I didn't find something similar to electron for Go, so I created one and I called Guark.

Guark is an electron alternative for GO developers, with it you can develop GO desktop apps, and taking advantage of modern front end frameworks like Vue.js and React.js to create amazing user interfaces. 

Github Repo: https://github.com/guark/guark

Your feedback is very appreciated.
Different ways to create objects in JavaScript
Tags: javascript
Published: 2020-06-16 00:00:00

---
  title: Different ways to create objects in JavaScript
  published: true
  tags: JavaScript
  date: Tue Jun 16 2020 05:30:00 GMT+0530 (India Standard Time)
  canonical_url: https://melvingeorge.me/blog/different-ways-to-create-objects-javascript
  cover_image: https://melvingeorge.me/_next/static/images/main-d459384940589e948bad7414f22c71f1.jpg
  ---
  [Originally posted here!](https://melvingeorge.me/blog/different-ways-to-create-objects-javascript)
  
![By Deva Darshan on Unsplash](https://melvingeorge.me/_next/static/images/main-d459384940589e948bad7414f22c71f1.jpg)

---

Objects are a way of holding related data and code.

---

## Using Objects literals

Objects can be created using literals.

To create an object literal define a variable and assign it with curly braces `{}`.

```javascript
// object literal
const Person = {};
```

You can also add properties and functions to the `Person` object.

Let's add `name` property and `sayHello` function to the `Person` object.

```javascript
const Person = {
  name: "John",
  sayHello: function () {
    console.log("Hey, How are you?");
  },
};
```

## Using Constructor Functions

Objects can be created using constructor functions.

```javascript
// constructor function
const Person = function () {
  name = this.name;
  age = this.age;
};
```

Here we have a function called `Person`, these are called constructor functions.

Now let's make an object from this constructor function.

```javascript
const Person = function (name, age) {
  name = this.name;
  age = this.age;
};

// making object from constructor function
const John = new Person("John", "23"); // Result: { name: "John", age: "23"}

const Lily = new Person("Lily", "20"); // Result: {name: "Lily", age: "20"}
```

- To create new objects from a constructor function we have to use the `new` keyword followed by the constructor function name.
- Constructor functions are the blueprint on how to make an object
- Names of constructor function start with a capital letter, in this case, `Person`.
- Constructor functions accept parameters to make objects with data, in our case we have parameters `name` and `age` which is then assigned to name and age variables inside the function.
- The `this` keyword refers to the created object itself. In our case, we made objects `John` and `Lily`.

## The `Object()` constructor

We can create objects using `Object()` constructor function.

```javascript
// using Object()
const John = new Object({
  name: "John",
  age: "23",
});

// Result: {name: "John", age: "23"}
```

- If it is not provided with any parameters it creates an empty object.

## The `create()` method

Let's say you want to create another object from our `John` Object.

Here we can use the `create()` method available on the `Object`.

```javascript
const anotherPerson = Object.create(John);
```

Now we have all the properties and methods which were available to `John` Object in our new object.

### Feel free to share if you found this useful 😃.

---