teleren/devto huggingface dataset:
How to Get Ics Files From External Shared Calendars
Tags: calendar, google, ics
Published: 2020-08-29 02:35:03

---
title: How to Get Ics Files From External Shared Calendars
published: true
description: Get easily ics files from external shared calendars in Google Calendar.
tags: calendar, google, ics
cover_image: https://res.cloudinary.com/dmrgfufa4/image/upload/v1598668440/articles/ics%20from%20google%20calendar/Capture_d_e%CC%81cran_2020-08-28_a%CC%80_21.33.15.png
---

There can be some scenarios where you require to have all your shared calendars in a `.ics` file. In my case, it was the need to have the MLH calendar, that the staff shared to us, shared with my agenda in Spacemacs.

For doing this, I had to follow the next steps.

# Get the link

Inside the configuration of the shared calendar, you have to get the **calendar public URL**.

![img](https://res.cloudinary.com/dmrgfufa4/image/upload/v1598665559/articles/ics%20from%20google%20calendar/pic1.png "Image of where to get the calendar public URL")

# Get the Calendar Id

Now you have to get `src` part from the url, for example, if the original url was

    https://calendar.google.com/calendar/embed?src=en-gb.christian%23holiday%40group.v.calendar.google.com&ctz=Europe%2FParis

    en-gb.christian%23holiday%40group.v.calendar.google.com

# Join the Calendar Id with the Calendar feed

The calendar feed usual structure is the following:

    https://calendar.google.com/calendar/ical/**********/public/basic.ics

You need to replace the `*` with the url you got in the step 2. In this case, it will end as the following.

    https://calendar.google.com/calendar/ical/en-gb.christian%23holiday%40group.v.calendar.google.com/public/basic.ics

# Download the ics file

Now that you have the file URL, you can download it using `wget`.

    wget -O my_cal.ics https://calendar.google.com/calendar/ical/en-gb.christian%23holiday%40group.v.calendar.google.com/public/basic.ics

This information was hard to find for me, and if you find it useful, leave a like please. The original answer that provided this solution is found [here](https://support.google.com/calendar/thread/7353749?msgid=17912822) .
Fellow Freelancers, how exactly do you get a client's website into their hands?
Tags: webdev, discuss
Published: 2020-08-29 02:28:07

So I'm kinda at a crossroads right now. Well, I'm actually confused. So I'm set and ready to go to start selling websites on Fiverr, however, I am confused as to how I am supposed to deliver the finished projects. Ideally, I would like to be able to develop the websites on my end (hosting wise) and then transfer it over to the client's own hosting service, however, I don't know how to do that or if it is even ideal. I would just like to know the best strategy for delivering finished websites to clients, basically. Thanks in advance for any helpful advice.
My first C++ program
Published: 2020-08-29 01:39:01

[Github](https://github.com/3Mustard/first-cpp-program)

Most of my experience in programming is in Ruby and JavaScript. C++ was the first language I have had to compile. Compiling means turning high-level language (the code we wrote) into low-level language (also called assembly language) that a computer can understand. The assembly language is then turned into machine code by an assembler. The result is an intermediary file called an object file. The object file contains all of the machine-level instructions for that file. During the compilation process any errors that prevent the code from compiling will be displayed in the terminal and the compiling process will be stop. 

The first program I made was a simple game where you guess a sequence of numbers after being given their product and sum.
![Picture of the game](https://i.ibb.co/KGbQ21X/guessinggame.png "Logo Title Text 1")

In c++ there is a main function called at start-up that acts as an entry point to the rest of the program.
```
int main() 
{
  PlayGame();

  return 0;
}
```

The function must be named main. Adding int before main indicates that this function returns an integer. The return value of this function is considered the exit status of the program. By returning a 0 after our PlayGame() function has ran we are telling the computer to exit the program with no errors.

## Some C++ basics
~specify the type a value is before assigning it. 
~add const if you don't intend for that value to ever be changed.
```
int NumberA = 1;
const bool LikesCats = true;
```

~use the following syntax to include files from outside your program
```
#include <name of file>
```

~console output
~ \n or std::endl will produce a new line
```
string greeting = "Hello";
std::cout << "you can print a string\n"; // prints ~ you can print a string
std::cout << greeting << std::endl; //prints ~ Hello
```

~getting user input
```
string InputFromUser;
std::cin >> InputFromUser; //stores what the user types
std::cout << InputFromUser; //prints what the user typed in
```

~if/else/while
``` 
if (condition)
{
  //execute this code if condition met
}
else
{
  //do this if it's not
}
while (condition)
{
  //do this while the condition is true
}
```

I will continue to write more as I learn. My goal is to start playing around with the Unreal 4 engine.
Do you really understand Webpack?
Tags: webpack, javascript, vue, react
Published: 2020-08-29 01:07:00

> Do you really understand Webpack? If we know the answers to the following questions, it means that we have mastered Webpack. Welcome to give your answers.

<a href="https://partner.canva.com/c/3569329/811163/10068" target="_top" id="811163"><img src="//a.impactradius-go.com/display-ad/10068-811163" border="0" alt="" width="300" height="600"/></a><img height="0" width="0" src="https://imp.pxf.io/i/3569329/811163/10068" style="position:absolute;visibility:hidden;" border="0" />

## Webpack in action

- What other tools are similar to Webpack
- Talk about why you chose to use or give up webpack
- The difference between Loader and Plugin
- What are the common Loaders? What problems can they solve?
- What are the common Plugins? What problems can they solve?
- How to use Webpack to optimize front-end performance
- How to improve the speed of Webpack's build?
- How to monitor and analyze the bundle volume?
- How to configure a single page application? How to configure a multi-page application?
- How to implement on-demand loading in Vue and React projects?
- What are the benefits of monorepo projects, and how are they packaged?
- What is Source Map? How to use the production environment?
- What is long cache?
- How to optimize long cache in Webpack?
- What is the difference between hash chunkhash contenthash in Webpack?

## Webpack principle

- What is the construction process of Webpack?
- Have you ever written Loader? Describe the idea of ​​writing Loader?
- Have you ever written Plugin? Describe the idea of ​​writing Plugin?
- What is the order of inline pre post normal loader execution?
- What is the principle of Webpack packaging? Talk about babel and abstract syntax tree
- What is the principle of dev-server? Describe its specific process
- Please talk about the working principle of DIlPlugin and DllReferencePlugin
- How is the hot update of Webpack done? Explain its principle?
- Have you learned about Tree shaking? Talk about its realization principle

## Webpack 5

- What are the new features in Webpack 5
- The significance of Module Federation in Webpack 5 to the micro front end
Kotlin Collections - sort
Tags: kotlin, collections, algorithms
Published: 2020-08-29 01:00:57

To sort elements in ascending order, use the sort method from the collections package. 

The method can receive the start index and final index of the collection range which wants to be sorted. 

The method is going to do all the sorting operations in place *O(1)* and it is going to take *O(nlogn)* runtime.


```kotlin
val intArray = intArrayOf(4, 3, 2, 1)
intArray.sort()
//[1,2,3,4]
```

### With a range of indices 
```kotlin
val intArray = intArrayOf(4, 3, 2, 1)
intArray.sort(0,3)
//[2,3,4,1]
```

### Use the comparable interface to modify the sorting operation

```kotlin
class Person(val firstName: String, val lastName: String) : Comparable<Person> {
    override fun compareTo(other: Person): Int = this.lastName.compareTo(other.lastName)
    override fun toString(): String = "$firstName $lastName"
}

val people = arrayOf(
    Person("Ragnar", "Lodbrok"),
    Person("Bjorn", "Ironside"),
    Person("Sweyn", "Forkbeard")
)

//Sorting people collection 
people.sort()

println(people) 
// [Ragnar Lodbrok, Bjorn Ironside, Sweyn Forkbeard]

```
Swift Coverage for VS Code
Tags: swift, vscode, extensions, coverage
Published: 2021-12-13 21:04:29

---
title: Swift Coverage for VS Code
published: true
date: 2020-08-29 00:00:00 UTC
tags: [swift, vscode, extensions, coverage]
canonical_url: https://www.vknabel.com/pages/Swift-Coverage-for-VS-Code/
---

When developing Swift in Visual Studio Code there were a few cases, where I preferred Xcode. Beside the obvious cases like iOS Development, managing certificates and provisioning profiles, there was one big case left: Writing unit tests.

With perfect TDD (unit tests first, then code) this is no real problem, but if you want to write tests for already existing code, it is essential to get feedback about your current progress and test coverage.

In these situations, I still opened Xcode, to check the coverage. As I did this too regular and missed my VS Code setup, I decided to give code coverage in VS Code a try.

![Code Coverage in Xcode](https://www.vknabel.com/images/Swift-Coverage-for-VS-Code/example-xcode.png)

After some research, I mostly found code coverage extensions for JS or other languages. Though I never found an extension supporting the llvm-cov-format produced by `swift test --enable-code-coverage` at `.build/*/debug/codecov/*.json` out of the box. There are solutions like converting this coverage file to `lcov.info`, but this would always require some setup in every project. So I started my own.

As I really liked the idea of other extensions to highlight the code itself, I decided to adopt this idea. Though many highlight covered code using a green background, which feels too heavy for always being activated. So I decided to only highlight covered expressions by default.

![Code Coverage in VS Code with Swift Coverage](https://www.vknabel.com/images/Swift-Coverage-for-VS-Code/example-vscode.png)

To get started, install [Swift Coverage - Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=vknabel.swift-coverage) and run your tests using `swift test --enable-code-coverage`.

Whenever you need to update your coverage statistics, simple re-run your tests. That's it!

Are you using [Maintained Swift Development Environment](https://github.com/vknabel/vscode-swift-development-environment)? To keep your coverage always up to date set `sde.swiftBuildingParams` setting to `["test", "--enable-code-coverage"]` to run all your unit tests on every change. Might not be a good idea with a slow test suite, but in smaller projects, this is super great.

Is there something you are missing for Swift and VS Code? Do you have any questions or tips? Let's get in touch on [Twitter](https://twitter.com/vknabel) or via [email](mailto:swift-coverage-for-vscode@vknabel.com).

Have you found a bug or need help with [Swift Coverage](https://github.com/vknabel/vscode-swift-coverage)? It's open source, just head to GitHub and [open an issue](https://github.com/vknabel/vscode-swift-coverage/issues/new).
How to get all the links or anchor tags from HTML documents using JavaScript?
Tags: javascript
Published: 2020-08-29 00:00:00

---
  title: How to get all the links or anchor tags from HTML documents using JavaScript?
  published: true
  tags: JavaScript
  date: Sat Aug 29 2020 05:30:00 GMT+0530 (India Standard Time)
  canonical_url: https://melvingeorge.me/blog/get-all-links-from-html-dom-javascript
  cover_image: https://melvingeorge.me/_next/static/images/main-d9bb58a673676a50c64166f7ea6c301c.jpg
  ---
  [Originally posted here!](https://melvingeorge.me/blog/get-all-links-from-html-dom-javascript)
  
To get all the anchor tags or links from the HTML document or the DOM, you can use the `document.links` property.

Let's say you have a list of many anchor tags all around your HTML document like this,

```html
<div>
  <h1>Heading 1</h1>
  <a href="https://google.com">Read More</a>
</div>
<div>
  <h1>Heading 2</h1>
  <a href="https://google.com">Read More</a>
</div>
<div>
  <h1>Heading 3</h1>
  <a href="https://google.com">Read More</a>
</div>
```

- You can get all the links using the `document.links` property using JavaScript.

```javascript
// get all links
const listOfLinks = document.links;

console.dir(listOfLinks);
```

- The `document.links` property returns the list of links as an `HTMLCollection`.

To see the working example see [JSBin](https://jsbin.com/nigozakaku/2/edit?html,js,console).

### Feel free to share if you found this useful 😃.

---
Bypassing AWS Cli profile to use IAM Roles
Tags: aws
Published: 2020-08-28 23:38:15

While trying to upgrade some legacy AWS instances which were already configured and working, I just needed to start configuring and using EC2 IAM Roles.

I just attached a simple (and permissive) EC2 role to my instance to see what I could do with it.
```
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Action": [
                "s3:List*",
                "s3:Get*"
            ],
            "Effect": "Allow",
            "Resource": "*"
        }
    ]
}
```

and started to furiously type my copy command
`aws s3 cp s3://my-own-and-only-bucket/file .`

Problem was that someone had already configured some profiles for the aws cli, even worst, the default profile was also configured and it was being used for some random operation I wasn't able to find out. 

Checking [AWS Documentation](https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-quickstart.html) on configuration precedence
>1. **Command line options** – Overrides settings in any other location. You can specify --region, --output, and --profile as parameters on the command line.

>2. **Environment variables** 

>3. **CLI credentials file **( ~/.aws/credentials on Linux or macOS, or at C:\Users\USERNAME\.aws\credentials on Windows.)

>4. **CLI configuration file** ( ~/.aws/config on Linux or macOS, or at C:\Users\USERNAME\.aws\config on Windows.)

>5. **Container credentials**

>6. **Instance profile credentials** – You can associate an IAM role with each of your Amazon Elastic Compute Cloud (Amazon EC2) instances. 


And as the default profile didn't have all the needed S3 permissions I kept hitting the annoying 403 Forbidden. 

It really crossed my mind first to delete the credentials file and second to rename the default profile to something else. I just had no way to know what process would break next.

So, to *bypass* the credentials file default profile and make the aws cli use the IAM Role, all I needed to do was to create a dummy almost empty profile setting the output ( for example) ...

`vim ~/.aws/credentials`

```
[profile dummy]
output = json
```

... and force my copy command to use that profile
`aws s3 cp s3://my-own-and-only-bucket/file . --profile dummy`

Turns out that without the access keys on that profile, it ended up using the next available credentials: the IAM role.

Now I could resume with the upgrade ... as soon as I found out what was using those credentials.
Free cloud computing services for open source developers and projects
Published: 2020-08-28 23:32:46

We exist through the kind philanthropy of the hosting industry. The project and infrastructure is managed and coordinated by our founding owner, and a group of highly talented volunteers.

These reciprocated values of sharing resources with open source projects help to support, promote and advance the learning and knowledge of free software within our ecosystem.

The project runs a large, global open source infrastructure in four countries with more than 6 Gig of transit available which enables us to provide resilient, scalable and professional hosting services that compete with public cloud providers. 

We provide virtual private servers, storage, domain name registration and management services to projects, including shared community services including BBB (big blue button), web and database hosting.


https://fosshost.org/
Day 206: Never no more
Tags: hiphop, code, coding, lifelongdev
Published: 2020-08-28 22:44:18

_liner notes_:
- Professional : Had our team meeting and retrospective. Good to see everyone and we talked about a lot of good things. Some cool stuff in the works. Also replied to a question on StackOverflow. Hopefully, I answered the question, but won't know till the poster replies. Other than that, just did more research on my next blog post. Speaking of blog post, my last one got featured on Medium and promoted to people under JavaScript. Pretty cool. Here's the link: https://medium.com/@VonageDev/creating-a-web-component-with-open-wc-fe1922128080?_branch_match_id=737385354099486811.

- Personal : Last night, I went through some tracks for the radio show and worked on my side project. Mostly researching how I can turn on and off certain streams so that it will help bring down the amount of data needed to be passed into the live stream.

![A wooden trail through a field leading to some woods with mountains in the distance in Yosemite National Park](https://dev-to-uploads.s3.amazonaws.com/i/ugwcpn1wqniti6lrnux2.jpg)

I was at my old house because I was getting a package. While I was there, figured I would mow the lawn. Forgot how much I don't like doing it, especially in this heat! haha. Another thing I didn't like was not having any sort of signal. My internet was sooo slow, eventhough I was lucky enough to be able to have my video calls for work. Now I'm at my parents' place because I'll be getting more packages here. They are the parts to be able to put solar panels on top of my van. I ordered a rack system and had it sent to a local distributor because the site said it would be there today. I thought that maybe they had it in stock there, that's why the site said it would available the next day. Nope! I called the place and they said they didn't have my order. Awesome. I would have just had it delivered to my parent's place. Now who knows when I'll have to drive out my way to get my package. Only reason I even had it sent to the store location was so I could pick it up TODAY!! Good thing I'll never be ordering anything from them again. Never no more! Ahhh! Enough ranting, got stuff to get done. haha The internet is sooooo slooooooow!

Have a great night and weekend!

peace piece
Dwane / conshus
https://dwane.io / https://HIPHOPandCODE.com
{% youtube ZpI9BQwOvoo %}
What do you use for private package hosting?
Tags: devdiscuss
Published: 2020-08-28 21:53:30

---
title: What do you use for private package hosting?
published: true
description: 
tags: #devdiscuss 
//cover_image: https://direct_url_to_image.jpg
---
I have been looking into the universe of options for hosting private code packages. There are things like GitHub Packages, NPM, Azure, AWS CodeArtifact, and many others. Some are all-encompassing (i.e. they try to support every language/framework). Others are focused on single package types like Ruby Gems or Python.

So what do you use for private package hosting? What made you choose that? What do you like and not like?
HTML AND CSS COMMENTS, USES AND IMPORTANCE
Published: 2020-08-28 21:50:21



**What is a Comment?**
A comment is an explanation or description of the source code of a program, They are piece of codes that are ignored the compiler or interpreter
The syntax of comments in various programming languages varies considerably. 

**Importance and Uses of Comment**
As a programmer comments helps in making codes easy to understand, easy to debug and also stimulate code readability between the programmer and others.
Comments are also used to document programs and remind programmers of what tricky things they just did with the code and also helps the later generation for understanding and maintenance of code. 

**HTML5 COMMENTS**
HTML5 comments are placed in between <!-- ... --> tags. So, any content placed with-in <!-- ... --> (comment)tags will be treated as a comment and will be completely ignored by the browser.

Example:
```
<!-- This is a HTML5 comment -->
```

**VALID AND NON VALID COMMENTS**
Comments do not nest each other, i.e a comment should not be placed inside another comment. Also when writing comments we do well to make sure that there are no spaces in the start-of comment string.

e.g 
`
< !-- This is an invalid HTML5 comment -->
`
from that example we can say it is an invalid comment because a space occurs between the left angle bracket and the exclamation mark and as a result the web browser will not ignore it.

`<!-- This is an valid HTML5 comment --> `
This is a valid comment because it contains no space between the left bracket and the exclamation mark.   

**MULTI LINE COMMENTS**
So far we have seen single line comments, but HTML supports multi-line comments as well. You can comment multiple lines by the special beginning tag `<!-- ...` and ending tag `-->` placed before the first line and end of the last line as shown in the given example below.
```
      <!-- 
         This is a multiline comment and it can
         span through as many as lines you like.
      -->
```

**CSS Comment**
CSS uses the C-like "comment block"-style comments: /* */ . This allows for multi-line comments, and you can quickly use it to disable portions of your code. 

e.g
``` /* css comment */ ```

**Note**
Don't use comments as an excuse for unclean code. It can be tempting, when you're in a rush, to poorly write codes, then write a comment that explains what it actually does or why you took the shortcuts that you did.
This might be OK as a temporary fix, but don't make it standard practice. Instead, strive to make your code itself as clean and readable as possible. This keeps the need for comments minimal in the first place.
Best Coding Challenge Websites to Practice your Skills
Tags: codenewbie, javascript, webdev
Published: 2020-08-28 21:25:17

A few days ago, I had my first whiteboard interview for which I had to practice my JavaScript skills using various coding challenges found online. Below I want to share the coding challenge websites that stood out to me and helped me over time in the process of learning programming:

### 1.  [Codewars ](https://www.codewars.com/) 

This is my personal favorite, since they have various difficulties, from beginner to the very advanced and they employ a ranking system similar to the one encountered in the Japanese martial arts.

### 2.  [HackerRank](https://www.hackerrank.com/) 

HackerRank was actually recommended to me by the company I was interviewing for. They have curated challenges from many companies.

### 3.  [Edabit](https://edabit.com/) 

If you are an absolute beginner I strongly recommend starting with this one since they have very easy problems.

### 4.  [LeetCode](https://leetcode.com/) 

LeetCode features more advanced challenges and contests. If you have some experience, this one is for you.

### 5.  [freeCodeCamp](https://www.freecodecamp.org/) 

freeCodeCamp has also a collection of hundreds of challenges that you can practice your skills on.

### 6. [Exercism] (https://exercism.io/)

Exercism gets also a mention since they provide you with mentor support to provide feedback to your challenge solutions.