teleren/devto huggingface dataset:
Generate Automated Weekly Excel Reports using Python and WayScript
Tags: startup, wayscript, tutorial, python
Published: 2020-11-06 11:22:52

{% youtube xn5ZlH2u2RE %}

Introduction
------------

As businesses become increasingly busier, having the ability to automate tasks can provide a substantial amount of time. In this article we’re going to learn how to create a script that allows you to generate and e-mail reports automatically, giving you more time to focus on other important tasks.

Building our Script
-------------------

To begin creating the script, a Time Trigger is needed. This is a key aspect because it provides the program with a fixed time to run the script. This example uses a weekly time trigger, but WayScript offers a number of standard and customizable options that can be chosen from the drop-down menu in the left toolbar.  
  
Next, the Microsoft Excel module should be added. From here, upload the preferred file; the data then shows up in the toolbar. If you have headers, click “Ignore Headers” and import each column. By doing this, you have created variables that will be used later in the script.  
  
Now, it’s time to use Python to manipulate the data and provide a report. Add the Python module underneath the Excel module, and click “Edit Code” to the left. This displays a text box where pandas can be used to create the necessary code.  
  
The first lines of code place our raw data into a data frame and perform any necessary calculations on the data, using those variables created earlier. After this code is generated it should be cleaned up by writing the Panda series as a list. Before running the code, this is what it should look like.  
  

![tutorial step #1](https://wayscript.com/blog_img/144/1.png)

  
  
The last module to add is the Gmail module. Using the toolbar, select the e-mail account to send the report from and the e-mails that will receive the report. The subject line and body can be customized to your preference; however, it’s important to add the “info\_to\_return” box generated from running the Python code into the message body.  
  

![tutorial step #1](https://wayscript.com/blog_img/144/2.png)

  
  
This provides the manipulated data in the report. Switch the slider on the Time Trigger to the active position to finish the script.  
  
This quick script gives business managers the option to automate their reports so that they arrive to employees on time, every time. To see the step-by-step process of creating this script, watch our YouTube video below!
  

Conclusion
----------

Questions about this script or anything else? Join our [discord](https://discord.gg/VWbXSbj). We're always around to help. If you want to work the full script template, just find it [here](https://wayscript.com/team/avengers/CZPh4DLF).
5 fun APIs for your next project
Tags: beginners, makers, watercooler, api
Published: 2020-11-06 10:56:04

Do you want to start a new project but don't have any ideas? Here are some fun APIs you can use:

:goat: [PlaceGOAT](https://placegoat.com/): Because there are not only cats on Internet. 

:sleepy: [The Bored API](https://www.boredapi.com/): Let's find you something to do.

:alien: [The Rick and Morty API](https://rickandmortyapi.com/): Just great.

:punch: [Chucknorris.io](https://api.chucknorris.io/): Hand curated Chuck Norris facts.

🧪 [Breaking Bad Quotes API](https://breakingbadquotes.xyz/): I am the danger.

Hope you enjoy!
Question: Naming date variables
Tags: javascript
Published: 2020-11-06 10:40:03

How do you name local date variables for date strings vs Date instances? Been doing it inconsistently, and not sure how to tackle yet, but considering enforcing the following:

```js
const eventDate = new Date("2020-11-06")
const eventDateStr = "2020-11-06"
const eventDateISOStr = new Date("2020-11-06").toISOString()
```

Otherwise, things get confusing, dates are hard as is, naming them inconsistently makes things worse. Normally I'm not a fan of putting types into the variable names, but not sure there's a better way here (not interested in types in this case.. the naming is important for code readability and writability).
Groovy script startup time from 2.1s to 0.013s with GraalVM 🚀
Tags: groovy, graalvm, jvm, tutorial
Published: 2020-11-06 10:27:50

If you're like me, you use [Groovy](http://groovy-lang.org/) for scripting automated tasks. I appreciate that I can implement a powerful script executed on JVM in a single file, and I can do it in just several code lines. The only downside is a long startup time - Groovy needs to start the JVM and compile the code before it gets executed. It may not be a problem in most cases. However, if your script does its job in, let's say, 100 milliseconds, spending additional 1.5-2 seconds sounds like a waste of time.

In this video, I explain how to compile a Groovy script (compatible with Groovy 2.x) to the native executable file using Groovy 3 and GraalVM 20.2 (OpenJDK 11)

{% youtube RPdugI8eZgo %}

## Source code

{% github wololock/gttp %}

## Shownotes

### Step 0: Install GraalVM and Groovy using SDKMAN!
* Install SDKMAN - https://sdkman.io/install
* List available Java versions - `sdk list java`
* Install the latest GraalVM - `sdk install java 20.2.0.r11-grl` (NOTE: version `20.2.0.r11-grl` is the latest at the time of writing this article.)
* Switch to GraalVM (if not set as default) - `sdk use java 20.2.0.r11-grl`
* Install native-image tool - `gu install native-image`
* Install Groovy 3.0.5 (or other latest) - `sdk install groovy 3.0.5`
* Use installed Groovy (if not set as default) - `sdk use groovy 3.0.5`

### Step 1: Clone `gttp` repository

```bash
git clone https://github.com/wololock/gttp.git

cd gttp
```

### Step 2: Run program as a Groovy script

```bash
groovy gttp.groovy
```

### Step 3: Compile script using `groovyc`

```bash
groovyc --compile-static gttp.groovy
```

### Step 4: Run Groovy script as a Java program

```bash
export CP=".:$GROOVY_HOME/lib/groovy-3.0.5.jar"

java -cp $CP gttp
```

### Step 5: Generate GraalVM native-image metadata

```bash
java -agentlib:native-image-agent=config-output-dir=conf/ -cp "$CP" gttp
```

### Step 6: Compile Groovy script to the native image

```bash
native-image --allow-incomplete-classpath \
--report-unsupported-elements-at-runtime \
--initialize-at-build-time \
--initialize-at-run-time=org.codehaus.groovy.control.XStreamUtils \
--no-fallback \
--no-server \
-H:ConfigurationFileDirectories=conf/ \
-cp $CP gttp
```

### Step 7: Run the program

```bash
./gttp
```
Deployed a public sale SmartContract on XinFin.
Tags: blockchain, xinfin, xdc
Published: 2020-11-06 10:24:03

Tried a Vanta Public sale smartcontract on XinFin Network and deployed them sucessfully. 
refer the code here

pragma solidity ^0.5.3;
library SafeMath {
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }
        uint256 c = a * b;
        assert(c / a == b);
        return c;
    }
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a / b;
        return c;       
    }       
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        assert(b <= a);
        return a - b;
    }
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        assert(c >= a);
        return c;
    }
}
contract OwnerHelper
{
    address public owner;
        modifier onlyOwner
    {
        require(msg.sender == owner);
        _;
    }
        constructor() public
    {
        owner = msg.sender;
    }
        function transferOwnership(address _to) public returns (bool)
    {
        require(_to != owner);
        require(_to != address(0x0));
        owner = _to;
    }
}
contract PublicSale is OwnerHelper {
    using SafeMath for uint;
    uint public saleEthCount = 0;
    uint constant public minEth = 1 ether;
    mapping (address => uint) public userEthCount;
    constructor() public 
    {
        owner = msg.sender;
    }
    function () payable external
    {
        require(msg.value >= minEth);
           saleEthCount = saleEthCount.add(msg.value);
        userEthCount[msg.sender] = userEthCount[msg.sender].add(msg.value);
    }
    function withdraw() public onlyOwner 
    {
        msg.sender.transfer(saleEthCount);
    }
}
Introduction to Digital Forensics
Tags: beginners, security, writing, forensics
Published: 2020-11-06 10:08:50

### **What is Digital Forensics?**

* Digital Forensics compromises techniques and procedures for finding digital evidence that can be presented in a court of law.

* It is can be correctly defined as a collection, examination, analysis, and documentation by using scientifically proven methods to investigate a digital crime and present it before the court.

* Digital forensics encompasses much more than laptops and computers. Mobile devices, Networks, and cloud systems are very much within the scope of this domain. It also includes the analysis of audio, videos, and images. 

### **Process Of Digital Forensics:**

* **Identification:** This is the first step that any investigator takes at the crime location is to identify the purpose of the investigation and collect the potential digital artifacts.

* **Preservation:** After finding the artifacts the investigator has to make sure that the evidence has not tampered.

* **Collection:** This step involves the collection of the artifacts without causing any harm to the evidence.

* **Examination:** This step involves careful inspection of the artifacts prior to any analysis.

* **Analysis:** The most crucial step of all, in this step the investigator, carries out crucial things like retrieving the deleted files, determine if the system has any malicious file or not, crack passwords, etc.

* **Interpretation:** This step involves concluding the investigation found.

* **Documentation:** This generally involves creating a detailed report of the enter investigation.

### **Types of Digital Forensics:**

Any object having an Ip address may have a chance of getting compromised. So anything having Ip address can come under 
the domain of Digital Forensics.

* **Computer Forensics:** In this type of Forensics the Investigator is responsible for investigating Hard Drives, OS configuration, User Controls, CD/DVDs, etc.

* **Network Forensics:** In this type of Forensics the Investigator is responsible for investigating network logs, Data packets, etc.

* **Multi-media Forensics:** This type of forensics involves the investigation of the audio and video files.

* **Memory Forensics:** It is the forensic investigation of the memory or ram dump of the system to find out volatile memory like chat history, clipboard history, browser history, etc.

### **Why Should We Learn Digital Forensics**??
* The skill sets allows you to more effectively:
    * Understand malware
    * Understand how attackers steal data
    * Create better defensive IT architectures
    * Maintain Current systems for optimal performance
      Design and Implement Security Policy

### **Types Of Tools:**
* **Open-source:** Open-source tools are available for free for the usage of the entire community.
* **Commercial:** These types of tools are paid and are commercially available.
* **Self-Created:** Created by the investigator and the time of investigation for automating some tasks.

Hence, I have covered the basic understanding and requirements for Digital Forensic Investigation.
what is rainbow table ?
Tags: cybersecurity, hacking, computerscience
Published: 2020-11-06 10:05:32

Any computer system that requires password authentication must contain a database of passwords, either in plaintext or hashed in some form. Therefore various techniques of password storage exist. Because the tables are vulnerable to theft, storing the plaintext password is dangerous. Most databases, therefore, store a cryptographic hash of a user's password in the database. In such a system, no one – including the authentication system – can determine what a user's password is by merely looking at the value stored in the database. Instead, when a user enters a password for authentication, the system computes the hash value for the provided password, and that hash value is compared to the stored hash for that user. Authentication is successful if the two hashes match.

A rainbow table is a database that is used to gain authentication by cracking the password hash. It is a precomputed dictionary of plain text passwords and their corresponding hash values that can be used to find out what plain text password produces a particular hash. Since more that one text can produces same hash, It's not important to know what the original password really was, as long as it produces the same hash.

Thank U for reading this! :D
How to Install Docker
Tags: docker, dockerinstallation
Published: 2020-11-06 10:02:17

Docker is "an open-source project to package, ship, and run any application as a lightweight container." The idea is to provide a complete abstraction layer that allows developers to "containerize" or "package" any application and run it on any infrastructure.
[Docker](https://tekslate.com/docker-training) is a container-based software framework for automating application deployment. The “containers” are encapsulated lightweight and portable application modules.

 *Installation of Docker

 apt-get update
apt-get -y install docker.ioLink and fix paths with the following two commands:

ln -sf /usr/bin/docker.io /usr/local/bin/docker

sed -i '$acomplete -F _docker docker' /etc/bash_completion.d/docker.io

*Configure Docker to start when the server boots:

update-rc.d docker.io defaults

Source: [Docker Tutorials](https://tekslate.com/docker-tutorials)
Recommendations for code snippets services
Tags: webdev, tooling, discuss
Published: 2020-11-06 09:57:27

I'm using Github's gists to share code in some of the posts on Medium, but I quickly realised that because it's not possible to organise or group them (maybe I'm missing some hidden piece of functionality), after you have quite a few gists, tracking particular one becomes too cumbersome. 

I was wondering if there are any other services for creating and sharing code snippets? Code highlight for different languages is the main requirement. 

I briefly tried [Carbon](https://carbon.now.sh/) and while the visuals are very good, the code is pasted as an image, so it's not possible to select it in a blog post (again maybe I'm missing smth here :D).
What are the benefits of hiring professional Roof Leak repair services?
Published: 2020-11-06 09:50:59

Leaking roof repairs Adelaide is the professional for services like roof replacement, maintenance, restoration, and much more. The professionals we've got hired will make sure you're glad about our services. We are serving in the enterprise for decades and with years of experience, we've got won the consideration of our clients. We are well known for roof leak repairs Adelaide wide. We have additionally followed all of the styles of contemporary-day strategies which are required at the same time as working. So in case you are looking for the first-rate specialists for roofing services, call us on tel: 0412 299 745. For more information, go to the website today. We may be please to provide you our first-rate offerings.
https://leakingroofrepairsadelaide.com.au/
TDD IRL
Published: 2020-11-06 09:47:08

I have a slight scepticism for anything that "drives" development other than the need to improve customers experience.

This is my take on TDD, once a year I write the tests first, I congratulate myself for solving the puzzle laid out in front of me, filling in the many gaps as I make the tests pass. Trouble is I actually prefer the joke acronym DDT where I write tests to protect my code which is the actual point of the tests.

DDT has no complexity, imagination, or room for interpretation, you test exactly what you have coded, that is quite efficient don't you think?

TTD involves guessing what tests you might need, the tests become pain points to refactor on top of your actual code, if requirements change / or being honest, you misunderstood something. you have to refactor both the test and the code.

In the world of interitive workflows, order matters, choose the path of least resistance, choose what makes sense.
Useful HTML codes with a quick click. 👍
Tags: codepen, webdev, todayilearned
Published: 2020-11-06 09:20:47

Just found out that we can use HTML codes to create arrows - e.g. a right-pointing arrow _"&rarr;"_. There are a lot of useful HTML codes out there. Here is a quick CodePen of some I think might be useful. 😀

{% codepen https://codepen.io/Thinkverse/pen/PozdwyX %}
Heroku Là Gì-Những Thông Tin Đầy Đủ & Chi Tiết Nhất 2020
Published: 2020-11-06 09:08:23

Heroku là gì? Chúng có những tiện ích gì có thể hỗ trợ cho bạn .Hãy theo dõi bài viết dưỡi đây của chúng tôi để hiểu rõ hơn về Heroku nhé Xem chi tiết: http://laptrinhvacongnghe.com/heroku-la-gi/
Improving the quality of Open Source projects
Tags: perl, python, opensource, testing
Published: 2020-11-06 09:05:25

---
title: Improving the quality of Open Source projects
published: true
description: Open Source projects don't have the luxury of a QA department so they need to rely on what they know best. Writing more code.
tags: perl, python, opensource, testing
//cover_image: https://direct_url_to_image.jpg
---

Open Source projects don't have the luxury of a QA department so they need to rely on what they know best. Writing more code for testing.

Throughout the years I've seen many Open Source projects and many in-house projects. Consistently I saw the open source projects have a lot more unit and even integration tests than the closed source projects. (OK, this is not such a bold statement given that most of the companies I visited had NO, or very few unit tests before I got there.)

## Continuous Integration

Anyway, using Version Control is almost ubiquitous among Open Source projects however using Continuous Integration isn't yet. Even after so many years of having [Travis-CI](https://travis-ci.org/) available free of charge.

So I am working a little project, or two, trying to improve the situation. Currently I am focusing on projects in two languages. Perl and Python.

## Perl

For Perl I am working on a project called [CPAN Digger](https://perlmaven.com/cpan-digger) to monitor the packages uploaded to [CPAN](https://metacpan.org/) and to see if they have a link to their public VCS and to see if they have [Continuous Integration](https://perlmaven.com/ci) configured.

## Python

For Python I have already built a web site collecting data called [PyDigger](https://pydigger.com/) There you can find the [statistics](https://pydigger.com/stats) that shows
31% of the packages [have no VCS](https://pydigger.com/search/no-vcs) listed in the package.

It also shows that 52% of the packages [use GitHub but have no Travis-CI configured](https://pydigger.com/search/has-github-no-travis-ci). This latter needs some work so we'll recognize the other available CI systems and provide a list of all the packages that don't use *any CI*.

## How can you help?

I think one of the easiest ways to get involved in Open Source projects and to contribute is to find low-hanging fruits that do not need a lot of involvement in the project.
Then if that works for both the project and you, you can delve deeper.

The low hanging fruits would be configuring one or more CI systems for the project. Checking test coverage. Writing more unit-tests. So check out the links and get started.

## CI systems for GitHub

* [GitHub Actions](https://github.com/features/actions)
* [Travis-CI](https://travis-ci.org/)
* [Appveyor](https://www.appveyor.com/)
* [CircleCI](https://circleci.com/)
Automation Testing Là Gì -So Sánh Sự Khác Nhau Với Manual Test
Published: 2020-11-06 08:56:50

Để hỗ trợ những bạn mới bắt đầu bước chân vào con đường lập trình, hãy cùng nghiên cứu thêm một vấn đề về Automation Testing là gì nhé. Xem chi tiết tại: http://nghelaptrinh.net/automation-testing/
Create Datatables in Laravel 8 using Yajra Datatables Package
Published: 2020-11-06 08:56:36

Datatables is an essential user interface element; they help your site visitors visualize the complex data with unbound ease. This tutorial gives you answers on how to create data tables in the Laravel 8 application using Yajra DataTables from the absolute beginning.

[Read more...](https://www.remotestack.io/create-datatables-in-laravel-using-yajra-datatables-package/)
Convert HTML to PDF in Laravel 8 with Dompdf Extension
Published: 2020-11-06 08:52:08

This is a step by step Laravel 8|7 tutorial about how to convert HTML to PDF within the Laravel application using the Dompdf extension.

[Convert HTML to PDF in Laravel 8 with Dompdf Extension](https://www.remotestack.io/convert-html-to-pdf-in-laravel-with-dompdf-extension/)
Build JWT Authentication (Login and Signup) in Laravel 8 Application
Published: 2020-11-06 08:51:21

A step-by-step guide on Laravel 8 JWT authentication, this tutorial you will learn how to securely log-in and sign-up in the Laravel application using Laravel REST API. 

[Build JWT Authentication (Login and Signup) in Laravel 8 Application](https://www.remotestack.io/build-jwt-authentication-in-laravel/)
VueJS Là Gì? Những Điểm Đặc Biệt Trong Framework VueJS
Published: 2020-11-06 08:46:37

Vuejs là gì? Vì sao Vuejs chúng có thể phát triển và cạnh tranh “ngang ngửa” với các ông lớn như React, Angular? Hãy theo dõi bài viết dưới đây nhé. Xem chi tiết tại: http://laptrinhvacongnghe.com/vuejs-la-gi/
My Hacktoberfest Journey
Tags: hacktoberfest
Published: 2020-11-06 07:47:06




### Kickstart

My journey with open source started during Hacktobefest 2019. I was a complete beginner and new to GitHub but once I completed Hacktoberfest, I wanted to explore more about open-source resources. This helped to gain knowledge in various fields such as app development and web development.

### Hacktoberfest 2020

This year I was able to fix some issues in a repository and add some features to a website. This time I was more confident and fulfilled by the contributions I made. 

I am glad that I organized an event for Hacktoberfest 2020 and introduce many people to open source and I was happy to see their contributions.
{% youtube tDqXmpsoK2Q %}


### Progress

I have completed Hacktoberfest 2020. The contributions I made this year were mainly focused on web development. I have been maintaining repositories for our community and it was exciting to review the contributions others made to our repository.

{% github dscmbcet/dscmbcet.github.io no-readme %}
{% github dscmbcet/ML-with-Python no-readme %}




### Reflections

This year I learned about opportunities available in the field of open source. I am looking forward to making contributions to the repositories of frameworks and build some community-driven projects in the future.
How to boost your SEO in an smart way using Machine Learning

Tags: machinelearning, seo, nlp
Published: 2020-11-06 08:44:38

In this use case of Machine Learning we present how InfoJobs has improved its Search Engine Optimization (SEO) with Natural Language Processing techniques by generating an internal link structure of the site, using word embeddings to find relationships between search terms.

Thanks to this implementation, Infojobs was able to significantly increase its visibility in search engines.

Take a look at our talk in the AI & Big Data Congress (in Spanish) ⬇️ Here the talk! ⬇️🎉

{% youtube J74XKeSiGm4 %}
What was my alias again?
Tags: bash
Published: 2020-11-06 08:44:38

Often I found myself looking in `~/.zshrc` to find out what [alias](/ludder/quickly-switch-projects-594c) exactly I have defined for some task. That can be done easier. The bash command `alias` lists all your aliases. My list of aliases is quite long, so I find my alias this way:

```bash
alias | grep some-name
```