teleren/devto huggingface dataset:
Version Control System for Data using DVC
Tags: machinelearning, dvc, data, git
Published: 2019-12-26 06:14:44

One of the biggest pain working on a machine learning project is **data management**. 

Using *VCS* (like git) helps a lot during the development phase. But git doesn't work for the large dataset (in the likes of 100s of gbs). This problem can be fixed using [DVC](https://dvc.org). **DVC** is like git for large dataset. This is not even the best part of DVC, in fact, the best part is it completely work like git (conceptually, syntactically)

DVC has excellent & intuitive [Documentation](https://dvc.org/doc). I would say it is one of the best out there.

Follow this [Official tutorial](https://dvc.org/doc/tutorials) guide to getting started.

DVC works with local file storage as well as cloud storage like AWS S3, GCP storage, etc
pngquant error in react, how to fix this issue
Tags: gatsby, react
Published: 2019-12-26 06:04:55

 ‼ pngquant pre-build test failed
  i compiling from source
  × Error: pngquant failed to build, make sure that libpng-dev is installed

Hi all,

I'm getting this error when I tried to install gatsby-starter-default template, please have a look and help me to solve this issue.

Thanks
Poem generation in JS
Tags: javascript, ngram, markovchain
Published: 2019-12-26 05:57:10

---
title: Poem generation in JS
published: true
description: 
tags: javascript, ngram, markov-chain
---

I recently came across this awesome site https://kingjamesprogramming.tumblr.com
It generates posts based on the King James Bible, Structure and Interpretation of Computer Programs, and some of Eric S. Raymond's writings.

I wanted to build something similar in JS. So I took Shakespeare sonnets and created this array


https://github.com/Rafi993/poem-generator/blob/master/poems.js
```
const poems = [
  [
    'From',
    'fairest',
    'creatures',
    'we',
    'desire',
    'increase',
    ',',
    'That',
    'thereby',
    "beauty's",
    'rose...
 ];
```

I looped through this array and for each word in the array I noted down the subsequent words that comes after. I did this for all sonnets and created an object and wrote this object to a JSON file

https://github.com/Rafi993/poem-generator/blob/master/public/ngrams.json

```
{ "From": 
   ["fairest", "his", "sullen", "limits", "hands",
    "whence", "where", "me", "this", "thy",
    "hence", "thee", "you", "heaven"
   ],
   "fairest: [...]
   ...
}
```

And now to generate poem in the UI. 
1. I fetched the JSON picked and then picked random key (this is staring word for the poem)
2. For that word pick value (value is an array) from JSON
3. Pick one word from that array of words randomly
4. Now repeat from step 2 for this word

We can keep doing this till we either reach no further path or till we have number of words we need. And there you have it your own poem generator. Here is link to demo https://rafi993.github.io/poem-generator/ and here is the link to the repo https://github.com/Rafi993/poem-generator

The best part is you can use it for any text to generate essays, svgs...

Even though we just implemented things like ngram and markov chain in the above code I did not explain it in detail to keep it simple. Here are resources for those who are interested in it.

https://youtu.be/v4kL0OHuxXs
http://setosa.io/ev/markov-chains/
https://youtu.be/eGFJ8vugIWA
For all of you new to software
Tags: begginers
Published: 2019-12-26 05:09:40

---
title:For all of you new to software
published: true
description: Reference to the awesome post
tags: begginers
---
I've came accros a fine article explaning how to generaly understand new documentation. Here is the link:

[Developer docs for begginers, by Cassandra Wilcox](http://cassandrawilcox.me/beginners-guide-developer-documentation/)
Laravel 6 Eloquent Local Query Scope Example
Published: 2019-12-27 11:42:40

---
title: Laravel 6 Eloquent Local Query Scope Example
published: true
date: 2019-12-26 05:09:23 UTC
tags: 
canonical_url: https://www.itsolutionstuff.com/post/how-to-create-and-use-query-scope-in-laravel-eloquentexample.html
---

Today i would like to share example of how to use laravel eloquent model scope i will show you how to create model eloquent query scope in laravel 6 and how it will easy for you i will guide you to create custom query function in model eloquent using scope in laravel 6You can easily use dynami
Building Intuition for Quantum Computing
Tags: quantumcomputing, intuition, learning, mindblowing
Published: 2019-12-26 04:38:43

I am sort of realizing that in order to build solid intuition for Quantum Computing I really must dig deep into examples & existing algorithms in order to find the nuances that make things work and click together.

Some examples here I my recent attempts to revisit Grover and the QFT/invQFT algorithms:

- Grover: https://www.youtube.com/playlist?list=PLsedzcQz4wyWIypONlxLwsQ2Nv5pGBFnr
- QFT: https://www.youtube.com/playlist?list=PLsedzcQz4wyXIxgF9zAv_G8_3SrZVjiye

Here is an example of something which I find really unintuitive about quantum computing: You are playing with waves & these waves do wave-things like creative & destructive interference. When you are phasing some elements of a superposition you are using interference but you can still manipulate the original superposition! -> check out my confused aha! moment at minute 37 here: https://www.youtube.com/watch?v=5sOdez49jT8&feature=youtu.be&t=2226
Check list to avoid scam for Freelancer
Tags: freelancer, scam
Published: 2019-12-26 03:02:57

When I working as a Freelancer, I saw a job on a Freelancer site, they just say on the description that if anyone wants to work with them, then send them an email to get job descriptions. I emailed them and got their feedback on the next day, and we have a few more conversations, then they asked me for estimation, I replied then they accepted without asking for more details. After that, they ask me to send them the relative person in the USA in order to receive money for me. 

They bring another person, they called them as their private consultant, he/she will send me the material (logo, image artwork to create a website). Not sure where he/she is living but they said he/she cannot receive money on PayPal or credit card. 

I asked my friend in the USA and send them relative person info, but after that, I had a feeling, something wrong with this job, it is really odd. I discuss it with my US friend to get their advice. After some conversations, my friend asked some questions and help me realized that this is a SCAM.

Below are some messages from my friends asking me about the work.

> This doesn’t sound legitimate. Why can’t they pay the other person directly? I’m not comfortable accepting and distributing money like this. Also, the email is very odd. You haven’t actually given her any details around the exact estimate and yet they are moving forward? Something isn’t right here. 

> Unfortunately, there are many people scamming out there. I feel like this could be some sort of scam or way for this person to pay someone without directly transferring the funds to them. Using us as a middle man. That could get us into a lot of trouble. 

Finally, I replied back and said that I cancel this job and they disappeared, no response so far after weeks.

So when you try to bid any work, pay attention to some points as below, it will help recognize and avoid scam that will bring troubles, even lose your money:

* Sender information: is the name spell correctly or check the email address, is that good? You can search by email address and you may see some posts about scam relates to that email address.
* Project description: are they provide a valued description, deadlines or more specific information?
* Check the payment option they prefer and never accept cashier's checks as payments

You can also read this [post](https://www.google.com/amp/s/blog.freelancersunion.org/2018/11/23/how-to-dodge-scam-clients/amp/ ), it describes exactly my situation and helped me to avoid a SCAM. I hope it can help you too.
What APIs Does CarsXE API Cover?
Tags: api, auto, restful, http
Published: 2019-12-26 01:29:33

CarsXE API currently offers 7 API products:
* [Vehicle Specifications](https://api.carsxe.com/vehicle-specifications)
* [Vehicle Selections](https://api.carsxe.com/vehicle-selections)
* [Vehicle Market Value](https://api.carsxe.com/vehicle-market-value)
* [Vehicle Ownership Cost](https://api.carsxe.com/vehicle-ownership-cost)
* [Vehicle History](https://api.carsxe.com/vehicle-history)
* [Vehicle Plate Decoder](https://api.carsxe.com/vehicle-plate-decoder)
* [Vehicle Images](https://api.carsxe.com/vehicle-images)
Exemplo de Coerção de tipos no JavaScript.
Tags: javascript
Published: 2019-12-26 01:15:39

No JavaScript temos duas formas de coerção.
	- Explícita: Quando queremos converter um tipo, como por exemplo Number(value), chamamos isso de Coerção de tipos explícita. Você manda converter um tipo de valor para outro tipo de valor.
    - Implícita: Acontece quando o tipo de conversão ocorre como um 'efeito simultâneo' de alguma outra operação, ou seja, não chega a ser algo muito óbvio, neste caso chamamos de Coerção de tipos implícita.

![Coerção de tipos no JavaScript](https://thepracticaldev.s3.amazonaws.com/i/prj8lljo2ywymhjb6l7o.png)
I'm a professional Node.js developer, and here's how I create GraphQL Microservices using Node.js and MySQL. #5
Tags: react, node, webdev, javascript
Published: 2019-12-26 00:00:28

**Update:** [Part 6 is out!](https://dev.to/bettercodingacademy/i-m-a-professional-react-developer-and-here-s-how-i-create-a-graphql-microservices-powered-react-app-with-node-js-and-mysql-6-17pl)

**About Me:** I've been a professional web developer for just over 10 years now. I'm currently the lead web development instructor at [Better Coding Academy](https://codebetter.com.au), and as part of what I do, I post videos on our YouTube channel at [https://www.youtube.com/c/BetterCodingAcademy](https://www.youtube.com/c/BetterCodingAcademy).

_(Subscribe for awesome web development content!)_

This is part 5 in a full tutorial on how to set up a React/Node.js app with a microservices architecture. ([Here's part 4!](https://dev.to/bettercodingacademy/i-m-a-professional-react-developer-and-here-s-how-i-set-up-node-js-graphql-microservices-with-docker-and-react-4-3b5d))

In this video, I start working on the frontend React app, and also add login functionality into the Users microservice, hooking it up to the GraphQL-powered API gateway.

I hope you enjoy!

{% youtube 0LG8xVRoegM %}

Happy coding!

Full source code: [https://github.com/parkroolucas/microservices-demo](https://github.com/parkroolucas/microservices-demo)
Shutting Down Marianberry
Tags: internet, projects
Published: 2019-12-31 20:53:36

---
title: Shutting Down Marianberry
published: true
date: 2019-12-26 00:00:00 UTC
tags: internet,projects
canonical_url: https://jspizziri.com/blog/shutting-down-marianberry/
---

 ![](https://jspizziri.com/images/marianberry-2-small.png)

Dear Friends,

Marianberry was a project I started as a way for my wife and me to more easily practice NFP with the Creighton method. It's been a labor of love over the last 2 years as it was something I really believed in. For a variety of reasons outlined below, Marianberry will be shutting down for good January 31st, 2019. Thank you for using Marianberry. It's been fun.

To see why we're shutting down, and what it means for you please read on.

God bless, Jacob Spizziri

## Why Are You Shutting Down?

#### 1. A Cease & Desist

The Pope Paul VI Institute has asked me to cease and desist my efforts on Marianberry, as it incorporates some of their work. Despite my efforts to work with them to make Creighton a better place, including offering to donate the Marianberry platform to their organization they seem intent on ensuring that Creighton never leverages the power of technology. It would be wrong of me to pretend as though this wasn't deeply frustrating for me; however, I'm sure that they have their user's best intentions at heart, albeit misguided from my perspective.

#### 2. Increasing Costs & Growing Needs

As Marianberry has grown over the years, there's been an increasing number of users with an increasing number of needs. Marianberry is really a team of just one person: me, and as such it's been increasingly difficult to give it the attention it deserves, as it's relegated to my free time, which is becoming less and less (especially now that I'm a Father 🎉). Moreover, it actually costs money to keep Marianberry running, which has been something my wife and I have been happy to do util now, however with the growing costs it's something we've discerned we no longer want to do.

## What do I do Now?

#### 1. Migrate Your Data

Please make sure you download all your data from Marianberry before it shuts down. I will be archiving the data and keeping it stored for 6 months after Marianberry's shutdown to help anyone who wasn't notified of the shutdown in time to get their data.

#### 2. Find An Alternative

As outlined above, I believe that the Pope Paul VI Institute will never allow for or provide a digital platform for their method, despite there being rumors or suggestions that it will happen. Their actions in this instance and numerous past instances support that in my opinion. As a result, I firmly believe that the Creighton Method as we know it now is going to be completely left behind in the next decade. My advice would be to change methods now, to a method which is going to provide such support. [My recommendation would be FEMM](https://femmhealth.org/) (this is what my wife and I will be switching to). FEMM is based on solid research, is available on Android and iOS, and is, more importantly a company which I strongly believe is ethical, pro-family, pro-woman, and pro-life.
5 minutes of Dev series: Flexbox Layout
Tags: indexdb, javascript, pwa, video
Published: 2019-12-25 23:46:36

---
title: 5 minutes of Dev series: Flexbox Layout
published: true
description: In this video we cover a basic implementation of a page layout achieved using Flexbox.
tags: indexDb, javascript, PWA, video
canonical_url: https://zelig880.com/video-5-minutes-of-dev-flexbox-layout?preview_id=1031&preview_nonce=5fbf264617&preview=true&_thumbnail_id=1033
---

The following is the first of a series of videos, designed to support developers of all levels with short recording that affects different topics.

{% youtube 5BDoiIdAFyo %}

In this video we are going to define a simple flexbox layout. Due to time constraint, this video do not go in many details, but provide enough information for developers to become aware of technologies and tools that can be used during their day to day.

If you would like to support me in defining the topics for the next videos, please do not hesitate to contact me through the website or in Twitter, and I will be more than delighted to help you, if I am able too.
Code reviews
Tags: github, codereviews, teamwork, leadership
Published: 2019-12-25 22:42:50

---
title: Code reviews
published: true
description: 
tags: github,codereviews,teamwork,leadership
---


It's hard to review code. You'd often much rather keep focusing on your own work. Code reviews break your focus. They also force you to interpret changes without seeing them in action, and without the assistance of an IDE. The result is a high cognitive load (it takes a lot of focus and thought) and a seemingly low payoff (it's someone else's work you're helping push forward, not your own). 

I've found that with code reviews as with many things, a willfully stubborn attitude is key to doing it properly.

Next time you review someone’s code, try this. Pretend you submitted a PR yesterday and woke up today with no memory of having made that change. The code is already approved and ready to merge, but you don’t remember writing it!

So, would you merge it into production? Of course not! You'd need to be sure to understand what that code says because it’s got your name on it. You'd go through every line of that change and visualize how it works in real time. You’d think about the design implications. You might even test it out yourself.

So it is with reviewing the work of your teammates. Even if it’s not your change, you’re accountable for its quality. As a leader and a good teammate, it’s important to go further than eyeballing the change. You have to take it seriously.

It might take more of your time than you want to spend. So be it! Be stubborn in your insistence for deep understanding. The resulting software will be less buggy and easier to maintain. And your teammates will appreciate your commitment to making their work better.
Angular Mouse Events
Tags: angular, beginners, typescript
Published: 2019-12-25 22:35:40

**Angular has a total of 9 mouse events.**

{% stackblitz angular-v7hpny %}




#1. Click

![click-gif](https://i.imgur.com/aI4xYQ5.png)
  
_The click event occurs when the user clicks on the element to which it is applied. This event triggers the function that is attached to the click._



#2. dblclick

![hover-gif](https://i.imgur.com/JiyHqcN.png)

_The **dblclick** event is triggered when the user double-clicks on the element to which it is applied._



#3. Mouseover

![hover-gif](https://i.imgur.com/IQu00ej.png)
  
_The **mouseover** event is triggered when the cursor is over the element to which it is applied, similar to the hover effect._


#4. Mouseenter

![hover-gif](https://i.imgur.com/3GKEUX0.png)
  
_The **mouseenter** event is triggered when the mouse pointer is moved onto the element to which it is applied.._



#5. Mouseleave

![hover-gif](https://i.imgur.com/JDBLSW6.png)
  
_The **mouseleave** event is triggered when the mouse pointer leaves the element to which it is applied._



#6. Mousedown

![hover-gif](https://i.imgur.com/CveP9Zd.png)
  
_The **mousedown** event is triggered when the user presses the mouse button over the element to which it is applied.._


#7. Mouseup

![hover-gif](https://i.imgur.com/NnPGYza.png)
  
_The **mouseup** event is triggered when the user releases the mouse button over the element to which it is applied.._

#8. Drag

![hover-gif](https://i.imgur.com/E1qnCv4.png)
  
_The **drag** event is triggered when the user starts dragging the element to which it is applied.._

#8. Dragover

![hover-gif](https://i.imgur.com/MIZR0NS.png)

_Triggers every time an item is dragged over **dragover** applied element._
Construindo uma árvore de Natal com Python
Tags: arvore, natal, python, programacao
Published: 2019-12-25 21:49:24

```py
# estrela da árvore
print('☆'.center(20)) #center(int) para centralizar a estrela
# construindo a árvore
for i in range(1, 20, 2):
    print(('*'*i).center(20))
# tronco da árvore
for r in range(2):
    print(('||').center(19))
# base da árvore
print('\====/'.center(19))
print()
# mensagem final
print('Feliz Natal e que Jesus elimine a todos vocês!',end='\n\n')
```
O resultado será:
![árvore de natal com python](https://thepracticaldev.s3.amazonaws.com/i/mai5sb8kd5edlvjgmvz5.png)
A Blazor project template for the real world
Tags: csharp, dotnet, webdev
Published: 2019-12-25 20:57:06

---
title: A Blazor project template for the real world
published: true
tags: csharp, dotnet, webdev
---

For Christmas, I want to share a Blazor project template you can use to create real world applications. The solution includes:
- IdentityServer4 authentication server
- OData API with CRUD endpoints and Entity Framework
- Server-side Blazor frontend targeting .NET Core 3.1 with sorting, filtering, and pagination

The source code is [available on GitHub](https://github.com/bradwellsb/blazor-contacts). Feel free to star, fork, and create something great!

![Blazor Contacts](https://thepracticaldev.s3.amazonaws.com/i/y41epecvn7933jz39c10.jpg)
Nested structures in C
Tags: c, structures, nesting, beginners
Published: 2019-12-25 20:28:49

---
title: Nested structures in C
published: true
description: Working with nested structures in the C programming language
tags: C, structures, nesting, beginners
series: Basics of the C programming language
---

#####Nested structures

C also allows you to define a structure that itself contains other structures as one or more of its members. If the program you're working on required a timestamp, a convenient way to associate both together would be to define a new structure that contains both time and date as its member elements:

```c
struct dateAndTime
{
  struct date sDate;
  struct time sTime;
};
```

You could now create an instance of dateAndTime that contains both date and time structures:

```c
struct dateAndTime timestamp;

// to access the members, dot notation is used as usual:
timestamp.sDate;

// to reference a particular member inside one of these structures, the same syntax is used:
timestamp.sDate.month = 10;

// increments the seconds inside the sTime member of dateAndTime
++timestamp.sTime.seconds;

// initialization of both date and time inside timestamp
// sets the date to February 1st, 2018 at 3:30:00
struct dateAndTime timestamp = { {2, 1, 2018}, {3, 30, 0} };

// just like other structures, the dot notation can be used to initialize specific member's variables
// and, though it is more typing, is more readable. It is order independent:
struct dateAndTime timestamp = {
  {.month = 2, .day = 1, .year = 2018},
  {.hour = 3, .minutes = 30, .seconds = 0}
};
```

It is also possible to create an array of dateAndTime structures. The array index along with dot notation are used, in the same way as with a non-nested structure within the array:

```c
struct dateAndTime timestamp[100];

timestamp[0].sTime.hour = 3;
timestamp[0].sTime.minutes = 30;
timestamp[0].sTime.seconds = 0;
```

It is possible declare a structure within a structure within the actual definition, it follows the same syntax as declaring a structure variable during the definition, but IMO this is not as readable as the longer ways of declaring them, but as with most things, is a matter of personal preference:

```c
struct time
{
  struct date
  {
    int day;
    int month;
    int year;
  } dateOfBirth;

  int hour;
  int minute;
  int seconds;
}
```

The declaration above is enclosed inside the scope of the time structure definition, and does not exist outside of it. You would not be able to declare a date variable external to the time structure.
Hello!
Tags: general
Published: 2020-05-02 08:59:48

---
title: Hello!
published: true
date: 2019-12-25 18:18:54 UTC
tags: General
canonical_url: 
---

(Mirrored from my site https://gombosg.com/2019/12/hello/)

My first blog post. If you are reading this, welcome! I’m happy that you are here.

I’m Gergely (Greg), a software engineer from Budapest, Hungary, who loves solving problems while at work (anywhere it catches me), hacking at home and boxing at the dojo.

### Why?

I decided to start a blog for multiple reasons:

- Get stuff out of my head i.e. share useful information
- Reflect on my journey as a professional software engineer
- Connect with people
- Find my own style and practice writing
- Have my personal corner of the internet, aligning with my values about how the web should look like despite being an active developer of the modern web.

Expect posts every now and then, once a week by the least.

#### Upcoming stuff

Well, for starters:

- A proper contact area
- Add a photo of myself?
- Expand the [About](https://gombosg.com/about/) page a bit with my personal creed
- Create a skills list & roadmap to share my learning journey
- Reflect on my current career goals and general experience as an enterprise employee

What now? Feel free to say hi in the comments and subscribe to my [RSS feed](https://gombosg.com/feed). Sorry, no mailing list this time, but let me know if you would prefer an email notification.