teleren/devto huggingface dataset:
'Logic Bomb' to keep getting re-hired
Tags: security, inthirtyseconds, womenintech, cybersecurity
Published: 2020-11-10 08:10:03

---
title: 'Logic Bomb' to keep getting re-hired
published: true
description: Federal case involving logic bomb and how to prevent them
tags: security, inthirtyseconds, womenintech, cybersecurity
cover_image: https://i.pinimg.com/736x/df/15/5c/df155c3b93b5689e9106a00dfaae24e8.jpg
---

David Tinley, 62, had been hired by a US unit of Siemens, the German-based tech conglomerate, to create custom, automated spreadsheets. The company used these spreadsheets to manage orders for electrical equipment.

Tinley planted so-called **"logic bombs"** in the spreadsheets, the government alleged. 

Logic bombs are bits of malicious code that **disrupt the program when specific conditions are met**, like a specific time on a specific date. Logic bombs are often used with **viruses, worms, and trojan horses** to time them to do maximum damage before being noticed.

When the program glitched, the company would bring Tinley back in to fix it. He fixed the system by pushing back the date the spreadsheets would stop working again. He was busted in 2016 when he was away on vacation and was forced to share with employees his passwords that protected the system's code - revealing the logic bomb.

![caution](https://images.unsplash.com/photo-1578986568309-707ef1017f69?ixlib=rb-1.2.1&auto=format&fit=crop&w=2551&q=80)

# Ways to prevent Logic Bombs

Logic bombs are **sinister and hard to detect**. However, you can take a few precautionary measures to avoid them.

* **Use a strong antivirus and update it regularly.** Antivirus scans can pick up on Trojan horses and other viruses that may hide logic bombs;
* **Don’t download pirated software.** Most of such software will hide viruses and logic bombs;
* **If you need freeware**, make sure you’re downloading it from a reputable source. Like pirated software, it might hide malicious code;
* **Keep your operating system up to date.** Updates are released regularly for a good reason – to patch the latest vulnerabilities;
* **Practice good internet behavior** – don’t click on suspicious links or email attachments;
* If you run a company, make sure you protect all computers individually. Also, **train your staff**. They need to know they are an integral part of your company’s cybersecurity.

Thanks for reading!

Read more about the incident [here](https://www.businessinsider.in/tech/a-contract-programmer-faces-10-years-in-jail-for-inserting-a-logic-bomb-into-a-spreadsheet-that-caused-the-company-to-keep-rehiring-him/articleshow/70354739.cms?utm_source=contentofinterest&utm_medium=text&utm_campaign=cppst).
What database do you use at work?
Tags: watercooler, database
Published: 2020-11-10 08:05:34

---
title: What database do you use at work?
published: true
description: 
tags: watercooler, database
cover_image: https://kinsta.com/wp-content/uploads/2019/04/what-is-mysql-1.png
---
Lately, I've been dealing mostly with relational DBs and the project I'm working on is using MySQL.

I'm curious what database/-s do you mainly use at your work?
Tell me the next step for the open source 
Tags: github, opensource, guide
Published: 2020-11-10 08:02:02

Hello people,

I am interested in web technologies. I know basic about open source and did some contribution also. I familiar with git and github and make PR also. Many of my PR merged.

But what will i do next?
How can learn from open source?
How can start contributing in org with large codebase?

I need some advice for "what will do next?"

Thanks in advance. :smile:
2020-11-09 | Digital Minimalism, Analog Hobby
Tags: learninpublic, beginners, webdev, career
Published: 2020-11-10 07:36:06

---
title: "2020-11-09 | Digital Minimalism, Analog Hobby"
description: "Summary of my day"
published: true
tags: ["LearnInPublic", "Beginners", "Webdev", "Career"]
series: "miku86 Diary"
canonical_url: "https://miku86.com/blog/day-2020-11-09"
---

I worked on translating lessons of my JS course. It's actually hard to write explanations for non-techies. Mostly I'm like "Does the reader know what this term means?" (e.g. "Browser", "Chrome", "Explorer")

---

Afterwards I read on [Digital Minimalism](https://www.reddit.com/r/digitalminimalism/wiki/index). I don't use Social Media that much. Quit my Facebook some years ago. Not interested in Instagram (hardcore fake stuff). Reddit is cool for reading other peoples' ideas. Twitter is nice to publish stuff. That's it. One (secondary) quote from Cal Newport has stuck in my head: Create the skill of thinking for yourself instead of relying on other peoples' opinions. If you understand the concepts behind something, you can create the next steps on your own. Sure, always check if they are right or wrong. Be open for new ideas. [Swyx has a good article about this](https://www.swyx.io/first-principles-approach/).

---

I try to add a new analog hobby to my life. Most days I'm in front of my laptop, mostly 12 hours. That's why I added reading to my life. Like sitting on a chair, reading stuff on paper and using a pencil. If ideas come into my mind, I write them in a self-made paper notebook (some clamped paper pieces). This removes the urge to immediately run to the laptop/smartphone. Nothing gets lost.

What are your analog hobbies?
AWS Global EC2 notifications w/CDK + CF
Tags: aws, cloudnative
Published: 2020-11-10 07:24:00

#### Here is what we'll be building today:

I present, tnc-ec2runner, a helpful? solution, maybe:

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

#### But why?
On my usual journey around the internet looking at all things AWS, I found a user asking the question:

>How can I find all ec2 instances across all regions and receive a notification if the instance is running for longer than 24, 48 or 72 hours? 

And I thought, that is a good question. I've seen the AWS solution for instance scheduling, it's been around for a while but that didn't really fit this use case. I was curious to know if we could tackle this with Lambda and SNS. I started by creating a standard python boto3 program and digging through the various bits of documentation to see if it was at least possible. 

Indeed it was possible, listing all ec2 regions is actually pretty simple, now all we need to do is loop through them and then query some EC2 instance information and compare that against the current time and the threshold.

#### What this solution does
At a high level this solution basically does the following:

* Runs once a day on a schedule
* Runs a Lambda program
* Loops through all EC2 regions
* Finds ec2 instances stopped, removes tnc-ec2runner tag if present
* Finds ec2 instances running
* Checks ec2 instances against three time based thresholds
* Publishes to SNS topic if found
* Emails user

#### Lambda
The lambda function was the easy bit, throw some code up in AWS, put some environment variables in to make it a bit more user friendly for the reader and it should be fine? Well, it was, how good is that?

#### SNS
Like lambda, SNS should be easy and it also was, the integration between Lambda and SNS is easy. Boto3 makes it simple to program. No issues.

#### CDK
This stack was developed in typescript using the AWS CDK, spoiler, all of my projects are! I did learn a new trick in CDK which makes it a bit cleaner. I used a helper to associate the SNS and Lambda together for policy so that everything was on the up and up. 

#### Want to have a go?
All of the code is **open source** on github, you can simply pull and deploy as CDK or you can use the Launch Stack button which deploys this solution as a cloudformation stack in your account. Easy as:

https://github.com/talkncloud/aws/tree/main/global-ec2-notifications

#### Full write up
I have done a full write up on my site if you want to go into detail, there cost estimates (hint $0) and a program flow chart as well as tips on how to customize:

https://www.talkncloud.com/aws-ec2-global-notification-runner/

#### Closing
Most of my posts seem to be related to saving money in AWS, not sure how it ended up this way but it's all good fun. I like that this solution is cost effective, simple to use and you can really see how you can customize it for your needs.

I'm keen to hear from others on what they think, how they would have tackled it. What would you have done?
🛠 Continuous Integration to vue-cli
Tags: vue, opensource
Published: 2020-11-10 07:22:26

Starting a project in any language should be as easy as possible. We generally don't want to spend time initialising adding the common used library, setting up the test environnement, add a linter, a formatter, a CI environment. Basically, we just want to type a command and get started with our development.

This is what VueJS does, as it provides a powerful cli to create projects. 
```sh
vue create my-project
```
This command opens a prompt that asks you many key components of your app. You can choose to use Vuex, VueRouter, Typescript, etc. 

![Capture d’écran 2020-11-03 à 18.21.16](https://dev-to-uploads.s3.amazonaws.com/i/8plubl3ef3xxxzol5e84.png)

After generating the project, you are ready to develop! You have an init commit, different configuration files representing your choices, you even have a working application that passes tests! 

## Plugin
Everything has a default configuration? Everything no! Some parts of your development resist auto-configuration! The continuous integration configuration file agent is missing 🦺

When the time of pushing your code comes, you need automated checks in order to make sure nothing is broken in your application. You need to add some CI to your repository. 

This is where my vue-cli plugin ([vue-cli-plugin-ci](https://github.com/P0ppoff/vue-cli-plugin-ci)) comes in! By adding it to the project, you can directly choose among some famous CI agents, to generate a config file to run checks inside their environment. 
```sh
vue add ci
```

You can currently generate working example for: 
* Gitlab CI
* Github Actions
* Azure Pipeline
* Circle CI

CI checks are : **install dependencies**, **lint**, **test**, and **build**.

I plan to add more of them, but if you are confident to help me make the services count grow, feel free to contribute : the project is open source 🤗

Let’s give it a try!
CPAN Rocks
Tags: perl, cpan, opensource, python
Published: 2020-11-10 07:11:04

---
title: CPAN Rocks
published: true
description: CPAN Rocks is a web site collecting some Meta stats about CPAN based on MetaCPAN.
tags: perl, cpan, opensource, python
//cover_image: https://direct_url_to_image.jpg
series: perl
---

## Perl and CPAN

I don't remember seeing [CPAN Rocks](https://cpan.rocks/), but it is really nice and very much related to my recent toy the [CPAN::Digger](https://perlmaven.com/cpan-digger).

Especially interesting to me is that 67.7% of the modules don't indicate their VCS in their META files. According to the [MetaCPAN stats on PerlWeekly](https://perlweekly.com/metacpan.html) 20-25% of the recently uploaded packages lack that information.

The other one is that 31.0% of the packages have no license information in the META file. (I should add the same stats to the Weekly stats in the Perl Weekly page.)

## Python and PyPI

Let's compare that to the partial data I am collection on the [PyDigger](https://pydigger.com/stats) site about Python.

It says 31.29% of the PyPI packages have no link to VCS and 24.73% have no license in their JSON file. The numbers are based on packages uploaded in the last couple of years. So its' neither "all of them" nor the "last week". So they are not directly comparable to the numbers in Perl, but that's what I have now.
[Java] Set Worksheet Zoom Factor
Tags: java, excel, zoomfactor
Published: 2020-11-10 07:03:11

Usually the default zoom factor for an Excel worksheet is 100%, but sometimes we may need to adjust the zoom factor to meet the requirements of some special occasions.  In this article, I will share how to set the worksheet zoom factor by using Free Spire.XLS for Java. 

**Installation**
**Method 1:** Download the [Free Spire.XLS for Java](https://www.e-iceblue.com/Download/xls-for-java-free.html) and unzip it. Then add the Spire.Xls.jar file to your project as dependency.

**Method 2:** You can also add the jar dependency to maven project by adding the following configurations to the pom.xml.
```xml
<repositories>
        <repository>
            <id>com.e-iceblue</id>
            <name>e-iceblue</name>
            <url>http://repo.e-iceblue.com/nexus/content/groups/public/</url>
        </repository>
</repositories>
<dependencies>
    <dependency>
        <groupId>e-iceblue</groupId>
        <artifactId>spire.xls.free</artifactId>
        <version>3.9.1</version>
    </dependency>
</dependencies>
```

**Set Zoom Factor**
```java
import com.spire.xls.*;

public class ZoomFactor{
    public static void main(String[] args) {

        //Create a workbook and load a file
        Workbook workbook = new Workbook();
        workbook.loadFromFile("Data.xlsx");

        //Get the first worksheet
        Worksheet sheet = workbook.getWorksheets().get(0);

        //Set the zoom factor of the worksheet to 120
        sheet.setZoom(120);

        //Save the Excel file
        workbook.saveToFile("output/Zoomfactor.xlsx", ExcelVersion.Version2010);
    }
}
```

**Output:**
![zoom](https://dev-to-uploads.s3.amazonaws.com/i/7dsq6b8viqx8lk4gb2u7.jpg)
Hello Open Source 🙏
Tags: github, opensource, javascript, beginners
Published: 2020-11-10 06:37:38

Open Source can be tough (was for me, still is !) if we don’t know some basic concepts or way of doing things the right way !
To give a context, I didn’t know what is PR or merge in git, till my 4th year of B.Tech.

I didn’t have proper guidance on how to explore open source and how to contribute !

I think most of the beginners struggle at getting started with open source !

To ease this process and get a better understanding of how one can create a PR and start contributing to open source, I took an initiative and created a beginner friendly repository on GitHub to help others in getting started !

I have tried to pen down a step-by-step process on how one can contribute to that repository and register his/her first PR.

And...

I know, there are a lot of other repositories out there to make you comfortable with Open Source contributions, but that is the beauty of it ! When you go Open Source, you will find a lot of like minded people working together, making the community strong, helping each other with their problem (most of the time similar problem) and giving back to the community.

[hello-open-source](https://github.com/siddharth2016/hello-open-source)
Which autism accommodations have helped you / your colleagues?
Tags: mentalhealth, watercooler, beginners
Published: 2020-11-10 06:31:50

This will be a small drop in an ocean of posts, but I hope it can get some replies. I need help, and maybe at the same time this post can help others. As I'm starting out my career as an autistic developer, I am running into many difficulties, burnout, anger, lack of direction, overstimulation. 

The pandemic has many of us working from home, which for autistic people means that there is a better control on over- or understimulating circumstances, noise, the clothes we can wear or not. 
![Satan being a huge fan of open plan offices](https://dev-to-uploads.s3.amazonaws.com/i/1x29neuekuf9gg2zvc68.png)
In general I think this is one area where adaptations can make life easier for autistic developers.

There is also the issue of videocalls. It has been proven they are [tiring](https://www.bbc.com/worklife/article/20200421-why-zoom-video-chats-are-so-exhausting), for everyone. However they are still a big feature of WFH, and not every boss or colleague is understanding of your desire to turn off the camera, or to communicate via email, though I think those could be a step in the right direction.

One of the worst aspects in my work environment specifically has been the lack of structure. While Agile (the more common organisation in CS) has its perks and downfalls, it represents a system with rules and things one can plan for. If you have a less organised workplace but your colleagues are at a desk's distance, you can turn around and ask. However in remote working conditions "just ask" seems to work really badly. I think in this case it's one of the more complex areas to ask for accommodations, as you're asking colleagues to regularly go out of their way just to make you more comfortable - which is something else entirely than just letting you have noise-cancelling earphones.

In any case, please let me know what you think and what worked for you.
Explainer Video Company
Tags: video
Published: 2020-11-10 06:28:09

There is pre-enabled audio from virtual home utilities such as Amazon Alexa or Google Home. Brands, like displays on tablets, have been introduced lately, however. Strict sound information was previously provided by those devices. Via their product solutions, bounce images, GIFs and product videos, consumers now have the ability to engage with the brand outside of their desktop or mobile device.
Click to know about the best <a href="https://ublinternational.com/Video"> explainer video company.</a>
"This combination of tools for screen/audio support is particularly useful. To enhance the user experience, provide more useful information for investigations, and problems such as policy breaches, incorrect or damaging effects, Google updates and improves its rating algorithm every day. Recently, because of their keywords, video results such as a carousel (a scrollable horizontal list of search results) appear-which means that the user can scroll to find more video choices, creating new possibilities for brands to appear more on pages of search results.
Angular vs React: Which is Better
Published: 2020-11-10 06:26:48

![Angular vs React](https://www.openxcell.com/wp-content/uploads/2020/10/img_5f98fc5c1d22d-768x448.png)

Here’s the full comparison for [React vs Angular](https://www.openxcell.com/blog/angular-vs-react/)-

![Angular vs React: Which is Better](https://qphs.fs.quoracdn.net/main-qimg-78d3ef6141b39fedc5980c31dd383c22)
Use Of Private API in React Js
Published: 2020-11-10 06:25:01

Hey everyone I am new to React. I want to know how can i use private API in react with API key. suppose I had an API on which i can send limited number of requests and if i use that API with API key in React anyone can see it in their Browser (Google Inspect) and can use it . so i want to know the proper way to use it.
#react
Airdrop XDC to multiple user at a time Smartcontract deployed on XinFin XDC Network.
Tags: blockchain, xinfin, xdc
Published: 2020-11-10 06:23:35

Created and deployed a smartcontract on XinFin XDC Network that Airdrop XDC to multiple user at a time.
Check the Code for the deployment:
`pragma solidity ^0.4.25;
contract XDC01 {
  function transfer(address _recipient, uint256 _value) public returns (bool success);
}
contract Airdrop {
  function drop(XDC01 token, address[] recipients, uint256[] values) public {
    for (uint256 i = 0; i < recipients.length; i++) {
      token.transfer(recipients[i], values[i]);
    }
  }
}`
Tracking a user's IP address through a hidden form field
Published: 2020-11-10 06:13:53

The script will make a call to an api that returns the clients IP address and then sets the hidden form field to the returned value.

```
<!DOCTYPE html>
<html>
  <head>
    ...
  </head>
  <body>
    <form name="contact"  action="/form_submission_page.html">
      <input type="text" id="ipFormInput" hidden>
      <input type="submit" value="Send">
    </form>
  </body>

  <script type="application/javascript ">
    const ipFormInput = document.getElementById('ipFormInput');

    fetch('https://api.ipify.org?format=json')
        .then((response) => { return response.json() })
        .then((json) => {
            const ip = json.ip;
            ipFormInput.value = ip;
            console.log(ip);
        })
        .catch((err) => { console.error(`Error getting IP Address: ${err}`) })
  </script>
</html>
```
HOW TO BECOME A SUCCESSFUL DEVELOPER
Tags: django, javascript, python, datascience
Published: 2020-11-10 06:09:35


Successful people are simply those with successful habits. So is, for successful developers. To become a successful developer you have to be religious with the habit of successful people, by practicing those habits which can lead you to a whole new level in no time.

As a developer, learning new technology and skills are crucial to become successful. Some of the habits for a successful developer is,

LEARNING HOW TO LEARN

Spending time learning how to learn will help you now and as you progress in programming career. That's because the learning never ends (it's an ocean). This is where most developers get it wrong. Most of them spend time meandering through tutorials not making any progress because they're not learning in effective way. 

Programming without application is a waste of time.

The reason most people end up being same after a lot of paid courses and tutorials is because they're not doing active learning but passive learning.

BE A PROBLEM SOLVER

My mentor daily task is  Solving problems on programming, sometimes I get tired when he'll say do this do that. Meanwhile it's broaden my learning and experiences.

Solving problems must be a daily ritual for a successful developers as it's for successful people. It's not always about typing 1000's lines of code. Slow down, think, rack your brain through problems systematically, and have a problems solving system in place and this would improve your productivity as a developer.

LEARNING THE RIGHT LANGUAGE

Learning the right languages is really important. 

These was in the previous post on (the best programming language)

So languages have gone extinct and some young developers are still wasting their time on it. This occur due to outdated and poor information.

I met with a guy some things ago, the guy was learning SWIFT (language use to develop iOS and Apple applications).

This is total waste of time, energy and money because the language is outdated for iOS developers, compare to Objective-C.

Apple is a unique tech company which update their development every year.

LEARN HOW TO COMMUNICATE EFFECTIVELY

There are millions of developers out there in the world and, what separates a successful developer from the other is your communication skills. You must be an effective communicator. Learn how to develop your communication skills and level them up.

Mubar Dauda
AI practitioner, Karateka, Data Analyst.
Crack the coding interviews
Published: 2020-11-10 06:09:10

I remember my first coding interview is a total disaster. The interviewer asked me a question about dynamic programming which I had no idea of. 
 
The coding interview can be intimidating, especially for people who come from a Non-Computer-Science major like me. 
 
Many of us probably do not have systematic training on the CS program, there is so much to learn, sometimes the information online is so overwhelming and intimidating, maybe you don’t even know where to begin.
 
Here I have summarized this series of guides to help the beginners to crack the coding interviews, starting with the very basic concepts and data structures and to advanced algorithms and coding practice strategies. 
 
Follow the guides step by step, and hopefully, you will become a coding Ninja and ace every coding question that throws at you!
 
 
✅ [Coding Interview Preparation #1: Basic Fundamentals](https://www.impression.ai/coding-interview/basic-fundamentals)
 
✅ [Coding Interview Preparation #2: Advanced Data Structures and Algorithms](https://www.impression.ai/coding-interview/advanced-data-structures-and-algorithms)
 
✅ [Coding Interview Preparation #3: Tips and Strategies](https://www.impression.ai/coding-interview/tips-and-strategies)
 
 
Please like or share this post and help more people who need help with coding practice.