teleren/devto huggingface dataset:
Debug your Go app in a Docker Container
Tags: vscode, docker, go
Published: 2020-11-23 09:09:12

<span>Photo by <a href="https://unsplash.com/@ikukevk?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Kevin Ku</a> on <a href="https://unsplash.com/s/photos/code?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></span>

---

Recently, I discovered that you can develop in a Docker Container in a very simple manner using VSCode with two  extensions, [Remote Containers](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers) and [Docker](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-docker).

If you have Docker installed on your machine and VSCode with these two extensions, you can develop any application in a Docker container using any language or framework in any version.
And you can also share that exact configuration to anyone in your team (*pretty useful according to me*).

---

My side project is a Go application which helps for Pentesting Android application as it deobfuscate application, repackage and reinstall a instrumented application on you android device.
See it here if you're interested
{% github Shosta/androSecTest %}

But enough talking about this application.
I had a hard time figuring out how to debug my Go application in a Docker container and I made a video and this post so that you are not going to waste your time figuring out how to set everything up properly.

---

Just follow the steps described in that video (*french audio, english subtitles*).
{% youtube p8cawqeSVtg %}

---

*If you like this content, push the like button, that helps spread the message.* 👍🏼
*If you think it can be useful to anyone in your network, share it.* 📨

---

Video produced by [Wild & Secure](https://wildnsecure.com), your consulting firm to all things security and real estate.
If you want to receive weekly quality content about security, subscribe to our newsletter [on our website](https://wildnsecure.com/contact).
#PureCSS - Responsive Laravel Logo
Tags: codepen, purecss, css, laravel
Published: 2020-11-23 09:06:32

---
title: #PureCSS - Responsive Laravel Logo
published: true
tags: codepen, purecss, css, laravel
---

<p>Pure CSS Laravel Logo</p>

{% codepen https://codepen.io/AsyrafHussin/pen/MWeNjJg %}
OneDev4 - All-in-One DevOps platform
Tags: devops, git
Published: 2020-11-23 09:06:10

OneDev is an all-in-one devops platform with git management, issue tracking, and docker/kubernetes based CI engine. Project is open source at https://github.com/theonedev/onedev

The 4.0 release gets a completely redesigned UI, to be professional and beautiful. Online demo available at https://code.onedev.io
DevOps Community: Android mobile app 
Tags: android, devops, googlecloud, firebase
Published: 2020-11-23 09:03:55

DevOps Community is Android mobile application as an open community for software developers and DevOps engineers. The users can navigate and write an article like in their blog for AWS (Amazon Web Services), GCP (Google Cloud Platform), and Azure for cloud technologies, Docker, Kubernetes, Firebase and Java.

The Android mobile application provides categories as shown below:

☕ Java
🔥 Firebase
🌊 Docker
⚓ Kubernetes
☁ Cloud technologies

Please provide your best article and it will published on https://opendevops.dev/ website.

Thank you everyone for your support.

https://play.google.com/store/apps/details?id=com.apps.tech.software.devops
Marathon Storage Tool 1.9
Tags: mesos, marathon
Published: 2020-11-23 08:50:58

**What ?**

An old version of a maintenance tool for Marathon 1.9.81 when used with Apache Mesos to fix a registration ID on Zookeeper.

**Why ?**

Because I have to build this old version from sources and took me like 3 hours to do it, so maybe it can help someone else.

**How ?**

Just download https://www.dropbox.com/s/0k6zft5zw2ta6hb/marathon-storage-tool-1.9.81.tar.gz and run `bin/marathon-storage-tool.sh` (you will need Java 8 or Java 11 with Ammonite 2.12)

**Who ?**

This tool is based on these open source projects:

https://github.com/mesosphere/marathon-storage-tool
https://github.com/mesosphere/marathon
http://ammonite.io/
https://www.scala-lang.org/
Ways to integrate Google Hangouts and Slack
Published: 2020-11-23 08:33:21

Using Quickwork, you can integrate Google Hangouts and Slack in many ways:

1. Send a message to a Slack user when a new message is received on Google Hangouts.

2. Send a message to a Slack Channel when a new message is received on Google Hangouts.

3. Create a Slack Channel when a new message is received on Google Hangouts

You can also refer to the pre-built journeys here- https://automation.quickwork.co/#/
What's the best way to promote a Google+ Hangout using Eventbrite? 
Published: 2020-11-23 08:30:56

There are many ways to promote Google Hangouts using Eventbrite using Quickwork.

Some of the useful ways in which you can promote Google Hangouts and Eventbrite are:

1. Create message in Google Hangouts Chat when new event in Eventbrite
2. Create message in Google Hangouts Chat when new attendee registered in Eventbrite
3. Create message in Google Hangouts Chat when new attendee check-in in Eventbrite
4. Create message in Google Hangouts Chat when new order in Eventbrite

You can even start with pre-built journeys here- https://automation.quickwork.co/journey-store

You can start creating your workflows here- Quickwork Automations
https://automation.quickwork.co/
Javascript Splice Vs Slice 
Tags: javascript, react, discuss, codenewbie
Published: 2020-11-23 08:11:23

Splice vs Slice!  

the most confusing method of javascript which can be understood easily. Hope this helps ⤵️  


slice:  copies array then operates
splice: doesnt copy array  

slice is like you're creating multiple slices of  1 apple and splice I like you are making slices of apples itself   

```
Let xArray = [1,9,9,2]  
Let yFuntion = (array) =>{  
    //slice the array  
}  
yFuntion(xArray)
Console.dir(xArray) : no effect

//=========  

Let zFuntion = (array) =>{
    //"splice" the array  
} 
zFuntion(xArray)
Console.dir(xArray) : affected
 
```

Any other shortcut stuff you use for remembering these kind of method, share with us 🤝👌
Day 2 of #100DaysofCode: Comps & Wireframes
Tags: 100daysofcode, beginners, codenewbie, webdev
Published: 2020-11-23 08:11:02

Original date: July 25, 2020

Today’s Topic: Comps & Wireframes

In my SkillCrush course, this particular module is in the Web Design Fundamentals Course.

The focus was on creating a wireframe for a personal portfolio page.
Main Notes:

    I created a style tile to guide the design with typography, colors, gradients and buttons.

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

    I create a lo-fi wireframe via Photoshop.

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

    I made a hi-fi wireframe via Photoshop.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/9cger19cq7dos5gbdu4t.jpeg)

Main Takeaways:
I really like web design.

I don’t mind making web comps but making them intuitively and with a higher grade of discernment of usability and simplicity is going to have to be the next focus.
I’m partial on lo-fi wireframes.

It’s a little harder for me to visual what I need with a lo-fi wireframe and maybe that’s just because I haven’t seen lo-fis in the brainstorming process with like a team but on my own, probably not my go-to thing.
Making the wireframe, I realized I may be handing my developer a headache.

The thought came to mind that I may be designing something with functionality and intention but I have to be aware of the languages that my team and company are currently using to know whether we have the bandwidth to create certain features.

Beyond the course:

Download Photoshop:
https://adobe.com

Cool Stylescape Tutorials (YouTube):
1. https://www.youtube.com/watch?v=lGmPCutgI2o
2. https://www.youtube.com/watch?v=LlVfGIubidY

Find Me Elsewhere:

If you’re new here to the #kathycodes journey, let me start off by saying Welcome! 🎉

This is my first round of #100daysofcode so I’m starting off as a beginner and I’m learning with Skillcrush — Break into Tech course

I’ll be documenting my journey in several ways, if you want tidbits find me on twitter at @kathyjeanjoseph to view my to the day updates of my journey.

Visual? I’m on YouTube and view me in action and a less detailed version of my problems, solutions and takeaways.
Responsive image gallery made with html & css (no media queries used)
Tags: javascript, html, css, webdesign
Published: 2020-11-23 07:58:10

Hey guys I recently uploaded a video where I share how to create a responsive image gallery with HTML & CSS without using any media queries you can watch the full tutorial here 👉 https://youtu.be/ai6lCFK0_YI and please if you found this helpful subscribe to the channel for more coding tutorials
Flutter Animated Button
Tags: flutter, dart, animated, button
Published: 2020-11-23 07:43:10

Hey, I published flutter_animated_button plugin in pub.dev. You can implement button animated easily by using this plugin. Check this plugin and share it. Please share your feedback so i can implement and improve it.If you want to add some other animation then you can request me or create PR for it.

Pub.dev : https://pub.dev/packages/flutter_animated_button
Github repos. :https://github.com/NikhilVadoliya/FlutterAnimatedButton
How Mobility Can Keep Your Enterprise Ready for Coronavirus?

Tags: discuss, mobile
Published: 2020-11-23 07:39:19

Constant news and updates regarding the spread of dreaded coronavirus have kept entrepreneurs at their toes. No enterprise can ignore the impact of the COVID-19 pandemic across the world. As the infection spreads rapidly and many countries have started feeling the heat, everyone asks this question- what will be the effect of COVID-19 on the way I work and live? For all sorts of businesses, the coronavirus outbreak poses a serious risk because it affects operations widely.

Thanks to technological advancements, companies can establish contingency solutions like enterprise mobility solutions. Be it remotely working or working from home, smartphones and customized mobile app solutions always enable enterprises to continue their processes. In this turbulent time when employees are forced to work outside of the office, enterprise mobility allows every employee to stay connected with each other. Communication and collaboration are possible through business apps.

However, a robust enterprise mobility policy is necessary to implement this paradigm shift effectively. You need to ensure that every employee is on the same page to accomplish business tasks as per the schedule. Also, it is necessary for you to provide the necessary tools and technologies to facilitate employees to working from home offices for an extended period. Here we give a list of some of the enterprise mobility practices that can keep the risk of coronavirus at bay.
Amazing Benefits Of School Management and Scheduling Software 
Tags: schoolnursesoftware, schoolhealthmanagement, healthsoftware
Published: 2020-11-23 07:38:10

The benefits of the school management system support everyone involved in the academic process: administrators who oversee the activities of the school, teachers, students, faculty, and parents who are anxiously awaiting the academic reports and updates, and the staff who get the processes up and running. 

Education is experiencing exceptional growth and students are increasingly using desktops and mobile devices to access virtual classroom knowledge from anywhere possible, such as smartphones and tablets. In school administration, there has been a massive transformation and the easy-to-handle technology solution is phenomenal in meeting the challenges and enhancing the way schools are handled. Therefore, school management software is no longer just a choice, but an absolute requirement in the modern era. 

 

Systematic School Administration 

 

Each process is hierarchical, from enrollment processes to alumni. Employee information, student information, organisational and academic data such as attendance and leave status, tests, admissions, etc can be accessed by clicking on a smartphone and web button where the school is fully organised with <a href="https://www.eduhealthsystem.com/">School health software</a>. 

Save time 

The parent updates on parent-teacher meetings and keeps them updated about the latest updates in the school as well as about the progress of their child by using a choice of notifications, alarms, portal messaging, SMS, emails, reports, and status. 

Attention on Students 

It's not one size anymore that suits all education plans! Through sharing feedback on specific student behaviour, engaging with them one by one through SMS, email or via the built-in messaging system, and sharing reference materials, assignments, news and details related to students, teachers may demonstrate personalised care for each student. 

Access From Anywhere 

From anywhere, anywhere you can access the app. Due to its simple accessibility, a record of anything can be maintained. It also makes it easier to have immediate information,
Change Color of Div onclick - HTML, CSS, JS
Tags: html, css, javascript, onclick
Published: 2020-11-23 07:29:01

Change Color of Div onclick is a JS code made with HTML, CSS and JavaScript. They are usually used to change color of a Div on a single click. When your site's color changes with a click, it gives your site a professional look and you can also announce something inside this Div. 
<a href="https://www.codewithbishal.com/how-to-change-the-background-color-onclick-using-js">View it on our website</a>

At first, on our webpage, there is our Div change color onclick. When you click on view code after visiting our website the whole code will appear, there is a also a button to copy the codes (HTML, CSS and JS).

You can view and copy the source code files through the link given below. <a href="https://www.codewithbishal.com/how-to-change-the-background-color-onclick-using-js">View and Copy Source Code</a>
Process large json with limited memory
Tags: json, gson, java
Published: 2020-11-23 07:16:42

Sometimes, we need to process big json file or stream but we don't need to store all contents in memory.

For example, when we count the number of items in a big array, we just need to load 1 item, increment the count, throw it away and repeat until the whole array is counted.

I found big json file from this git repository https://github.com/zemirco/sf-city-lots-json (~190MB).

The file looks this and I want to count the number of features.

```json
{
  "type": "FeatureCollection",
  "features": [ /* lots of feature objects */ ]
}
```

This is how feature object looks like if you are interested.

```json
{
  "type": "Feature",
  "properties": {
    "MAPBLKLOT": "0001001",
    "BLKLOT": "0001001",
    "BLOCK_NUM": "0001",
    "LOT_NUM": "001",
    "FROM_ST": "0",
    "TO_ST": "0",
    "STREET": "UNKNOWN",
    "ST_TYPE": null,
    "ODD_EVEN": "E"
  },
  "geometry": {
    "type": "Polygon",
    "coordinates": [
      [
        [
          -122.422003528252475,
          37.808480096967251,
          0.0
        ],
        [
          -122.422076013325281,
          37.808835019815085,
          0.0
        ],
        [
          -122.421102174348633,
          37.808803534992904,
          0.0
        ],
        [
          -122.421062569067274,
          37.808601056818148,
          0.0
        ],
        [
          -122.422003528252475,
          37.808480096967251,
          0.0
        ]
      ]
    ]
  }
}
```

Let's say my application can only allocate 50MB and I try to load the whole file into memory.

```java
Path filePath = Path.of("/src/sf-city-lots-json/citylots.json");
String content = Files.readString(filePath);
```

Obviously, we can't load it to memory.

```
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
```

Gson provides `JsonReader` which allows reading data stream.

```java
public int getFeatureCount(Path filePath) throws Exception {
    int count = 0;
    try (JsonReader reader = new JsonReader(Files.newBufferedReader(filePath))) {
        reader.beginObject();
        while (reader.hasNext()) {
            String name = reader.nextName();
            if ("features".equals(name)) {
                count = getFeatureCountFromArray(reader);
            } else {
                reader.skipValue();
            }
        }
        reader.endObject();
    }
    return count;
}

private int getFeatureCountFromArray(JsonReader reader) throws Exception {
    int count = 0;
    reader.beginArray();
    while (reader.hasNext()) {
        count++;
        reader.beginObject();
        while (reader.hasNext()) {
            reader.skipValue();
        }
        reader.endObject();
    }
    reader.endArray();
    return count;
}
```

*Greater power comes with greater responsibility*. Unlike `Gson.fromJson`, we need to call `begin*`, `end*` and `skipValue` in the right timing (according to the structure of the json object) to let it process the data correctly, otherwise it will throw exception. So it should be used only when you have restriction on memory footprint or performance.
❎❓Quiz: Web Performance #23
Tags: challenge, webperf, webdev, quiz
Published: 2020-11-23 07:13:11

What are modern web image formats?

- WebP & AVIF
- PicWeb & JPD
- AVIP & PNA
- TIF & RAP

---
<center>[Answer the question](https://marcradziwill.com/web-performance-quiz/what-are-modern-web-image-formats/)</center>
---
❎❓Quiz: Web Performance #22
Tags: challenge, webperf, webdev, quiz
Published: 2020-11-23 07:13:01

Do you know Brotli?

- An HTML tag for Breadcrumbs.
- A compression algorithm.
- A well-known web performance company.

---
<center>[Answer the question](https://marcradziwill.com/web-performance-quiz/what-is-brotli/)</center>
---
❎❓Quiz: Web Performance #21
Tags: challenge, webperf, webdev, quiz
Published: 2020-11-23 07:12:32

What is a performance budget?

- The amount of money a team can spend on optimizations.
- A performance budget is a set of limits imposed on metrics that affect site performance.
- The revenue that a company has more through performance optimizations.
- The profit that a company ears through performance optimizations.

---
<center>[Answer the question](https://marcradziwill.com/web-performance-quiz/what-is-a-performance-budget/)</center>
---
Pre-commit, pre-push or pre-merge ?
Tags: git, tooling, testing, workflow
Published: 2020-11-23 07:03:19

On my codebases, I may want to run:

* a linter,
* static analysis,
* tests.

While I can run them manually, I find it easier for everyone involved if it happens on its own.

It's about **getting feedback as soon as possible without breaking the flow of work**.

## When and where should they run?

* on save: runs every time I save a file on disk,
* pre-commit: runs before I commit my changes,
* pre-push: runs before I push mu changes to a remote,
* pre-merge: runs on CI when I do a merge request (or "pull-request").

|   |When|How often|Where|
|---|---|---|---|
|on save|very early|very often|locally|
|pre-commit|early|often|locally|
|pre-push|late|sometimes|locally|
|pre-merge|later|rarely|CI|

My advice is that the correct answer for a given task will depend on the "lost" time [perceived](https://en.wikipedia.org/wiki/Time_perception) by the developer. Perceived lost time ~= runtime + time to correct the code, if the task is blocking.

**The slower the task, the later and less often it should run.**

If something *feels* slow, it will get in the way and people (me included) *will* work around it.  
If I have to wait a long time before knowing if my tests pass or not, I probably will switch to another task and waste time.  
If the task itself can correct the code instead of rejecting the commit (e.g. linters), make it so.

Here is my rule of thumb, to be adapted to your needs:

|Runtime|Earliest it can run|
|--:|---|
|less than 100 milliseconds|on save|
|less than 3 seconds|pre-commit|
|less than 10 seconds|pre-push|
|above 10 seconds|pre-merge|
|above 5 minutes|split into sub-tasks|

## Fine-tuning

To state the obvious: every team, every codebase, every workflow is different. What works for one won't necessarily work for others.

The tools we use give us even more options to choose when to run what, according to our preferences:

* IDE Integrations,
* manual or conditional tasks on CI,
* third party tools integrating with our version control system

For instance, I choose to run linters on pre-commit, not on save, even if it's fast, because I find it distracting to have code jumping around on the screen.

I run unit tests pre-merge but trigger end-to-end tests manually because they are very slow, and would delay feedback too much.

Experiment and gather feedback.

## External links

* [pre-commit](https://pre-commit.com)
* [Documentation on git hooks](https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks)
* [bitbucket pipelines](https://support.atlassian.com/bitbucket-cloud/docs/get-started-with-bitbucket-pipelines/)
Tips on releasing a new app?
Tags: discuss, help, codenewbie
Published: 2020-11-23 07:00:15

Hi, I'm on the verge of releasing my first hobby app that I think would have users apart from myself. Any tips for making a good launch?

1. How do I stop fighting the urge to delay my release until I fix problem A or add feature B?
2. What platforms should I promote to? DEV #showcase, indiehackers, product hunt, Reddit...
3. How should I take criticism?
4. Do I need a super good looking landing page or will the app speak for itself?
5. If I'm launching it free for now, does it look bad if I try to monetize it later?
Urgent help needed :(
Tags: javascript, css, expand, toggle
Published: 2020-11-23 06:53:07

Hi folks, relative newb,

I've been trying to finalise this for ages, but still quite lost, & fast running out of time:

https://dev.to/saulhj/toggle-at-top-of-the-page-to-expand-collapse-all-headers-elegant-solution-2jac

It's muddied by the fact that all of the promising solutions out there; while great in a sandbox; 

Are tricky for a newb like me to work out how to readapt & integrate-nicely, into our "preexisting" project!

Please, can I get some help ASAP!?  :(
@madsstoumann

More detail & background in that prior post.
And newest progress updates will continue here.

Thank you very much.
Beginner Python Projects part 1
Tags: python, opensource, beginners, programming
Published: 2020-11-23 06:47:08

In this first post on my preferred python beginner projects I first began by building a WhatsApp Spambot using python.

To get started we will need first have a code editor :
either * pycharm * VScode or * Sublime

- Next step create a file and give a _.py_ extension
- Now you will have to install pyautogui:
   _pip install pyautogui_
- After doing the basics you can now write the code below and run it
````python
import pyautogui
import time

count = 0
pyautogui.click(10,5)
while True:
    pyautogui.FAILSAFE=True
    pyautogui.write(f"Hey you there")
    count +=1
    pyautogui.press("ENTER")
    time.sleep(1)
```  
#### Watch Video 👇👇
[![](http://img.youtube.com/vi/N-dKQPROSAE/0.jpg)](http://www.youtube.com/watch?v=N-dKQPROSAE "How To Build A WhatsApp Spam Bot Using Python(only 5 lines)")
Github: [larymak](https://github.com/larymak/)
Twitter: [larymak1](https://github.com/larymak1/)