teleren/devto huggingface dataset:
AngularJS is dead.
Tags: angular, javascript, webdev, programming
Published: 2022-01-15 06:52:05

Yes, you read it right. AngularJS is dead now. The first version of Angular, is not being supported by Angular any more. Angular Developer, published an article over "The Angular Blog", that they are discontinuing the Long Term Support for AngularJS ([check here](https://blog.angular.io/discontinued-long-term-support-for-angularjs-cc066b82e65a)).

Angular Team recommend developers and businesses, who are using AngularJS to switch to the successor of Angular JS, which is Angular. Currently, they released Angular v13, but if you are using any angular version, other than the first one, which is actually Angular JS, then you are safe to work with it. But, if your project is still in AngularJS, then [this article](https://blog.angular.io/finding-a-path-forward-with-angularjs-7e186fdd4429) will help you to migrate it to Angular. 

Here’s what you can expect as a part of this new long term state: 

- CDN links will remain active and [AngularJS.org](https://angularjs.org/) will remain online

- We’ll provide read-only access to the code, issue, and pull request history on GitHub by archiving the [angular.js repo](https://github.com/angular/angular.js?) and related repositories (that is, [AngularJS Material](https://github.com/angular/material), [bower-material](https://github.com/angular/bower-material), etc.)

- The AngularJS npm packages will remain on npm and bower, marked as deprecated

AngularJS set a solid foundation for Angular and helped define the future of the web, because many of us, who are web developers, learnt Angular as it's first Javascript framework. 

<a href="https://www.buymeacoffee.com/manasmishra" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/default-orange.png" alt="Buy Me A Coffee" height="21" width="114"></a>
VMCE 2021 Dumps overall performance records
Published: 2022-01-15 06:42:44

Every time you may face <a href="https://dumpsboss.com/veeam-exam/vmce2021/">VMCE 2021 Dumps</a> questions in random order with shuffled a couple of desire solution alternatives to make your examination revel in greater challenging. You can evaluate your beyond effects and test overall performance records of your beyond tries. Such centers are the great development over VMCE query set in PDF and some distance higher than fraud dumps webweb sites. According to our survey with Veeam licensed applicants, you could effortlessly rating 85% in actual Veeam Certified Engineer certification, 

https://dumpsboss.com/veeam-exam/vmce2021/
#16 - Sums of parts CodeWars Kata (6 kyu)
Tags: javascript, webdev, tutorial, 100daysofcode
Published: 2022-01-15 06:40:29

##Instructions

Let us consider this example (array written in general format):

> ls = [0, 1, 3, 6, 10]

Its following parts:

> ls = [0, 1, 3, 6, 10]
> ls = [1, 3, 6, 10]
> ls = [3, 6, 10]
> ls = [6, 10]
> ls = [10]
> ls = []
> The corresponding sums are (put together in a list): [20, 20, 19, 16, 10, 0]

The function parts_sums (or its variants in other languages) will take as parameter a list ls and return a list of the sums of its parts as defined above.

**Other Examples:**

> ls = [1, 2, 3, 4, 5, 6] 
> parts_sums(ls) -> [21, 20, 18, 15, 11, 6, 0]

> ls = [744125, 935, 407, 454, 430, 90, 144, 6710213, 889, 810, 2579358]
> parts_sums(ls) -> [10037855, 9293730, 9292795, 9292388, 9291934, 9291504, 9291414, 9291270, 2581057, 2580168, 2579358, 0]

**Notes**
Take a look at performance: some lists have thousands of elements.
Please ask before translating.

---

##My solution:

```javascript
function partsSums(ls) {
  let result = [0]
  for(const n in ls.reverse()){
    result.push(ls[n]+result[n]);
  }
  return result.reverse()
}
```


##Explanation
First I declarated a variable result that is an array that contains a 0 in it
>   let result = [0]

---

Then after that I used a for In loop to iterate the ls array but reversed, in every iteration I would push to the result array, the result of the sum of the n element of ls and the n element of the result array.

> for(const n in ls.reverse()){
>     result.push(ls[n]+result[n]);
>  }

---

After that I would only return the result array but reversed
> return result.reverse()

---

**Comment how would you solve this kata and why? 👇🤔**

[My Github](https://github.com/Cesardlr)
[My twitter](https://twitter.com/cesar__dlr)
[Solve this Kata](https://www.codewars.com/kata/5ce399e0047a45001c853c2b)
I must blog
Published: 2022-02-23 22:59:12

---
title: I must blog
published: true
date: 2022-01-15 05:25:18 UTC
tags: 
canonical_url: https://triptych.writeas.com/i-must-blog?pk_campaign=rss-feed
---

I have been trying to start blogging since the year started, and I’ve had a kind of writer’s block while at the same time getting all kinds of ideas for writing posts, usually after I see someone else who posted something interesting.

But I’m not waiting any more. I’m going to try blogging every day no matter what, and will try to do it early in the mornings.

## topics

I wish write.as had a markdown preview, but I suppose one can post anonymously then repost it later. I am going to try that out at some point.

Some topics I want to blog about \* Godot Engine \* Clockwork Apprentice \* HTML stuff \* Observable stuff \* Storytelling \* more!

This is being written on my new iPad Pro, and I have to say it’s a great device. Having a ginormous screen turns the iPad into a gaming and creation device as well as allowing me to jump from thing to thing quickly.

I’m also playing some games like Titan Quest on this device which is just pure fun.

This weekend I want to work more on some storytelling tools on [Observable](https://observablehq.com).
Current Journey - OSD700
Tags: programming, opensource
Published: 2022-01-15 05:15:30

This week is my first week to kick-off my second journey to open source work with OSD700. I am so interested in working with open source project in last semester, the reason why is because I will be always working with something that I totally have no ideas what the project is about.

The main purpose of this semester is to take what I have learned in OSD600 and go deeper with it. The project we will be working on for this semester is Telescope, and trying to ship it to v3.0.

### Things I Want to Achieve In OSD700

#### Docker
Last semester, I saw Telescope is using Docker, however, I am still confusing what does exactly Docker do in this project as well as the purpose of this. The only thing I just know about Docker is it is a platform that provides an easier way to build, deploy, and run applications using containers. So, I want to understand it clearly, and after that I want to create one(or more) project using Docker, and have it as a weapon to help me find a job in the real world.

#### Back-end Development
I have been always working with front-end in open source projects, this time, I want to expose myself to back-end to challenge myself, and get the better logic of it.

#### Communication and Management
I realize that those two key words are really important when working in open source. I have to balance these two in order to have good performance with my peers. I believe that I will not realize what I have changed in communication and management skills in the last semester, but I will keep practicing to make myself not overwhelm when facing the real world.
Microsoft MB-300 Dumps Certification
Published: 2022-01-15 04:58:34

Certification-questions can will let you enhance your possibilities of passing any certification examination. We have labored difficult to create extremely good guidance stuff for all of us who desires to take a certification examination [MB-300 Dumps](https://dumpsboss.com/microsoft-exam/mb-300/)  to enhance the opportunities of having a nicely-paying process withinside the enterprise. To growth your opportunities, you must bear in mind the usage of the examination dumps furnished with the aid of using us.

https://dumpsboss.com/microsoft-exam/mb-300/
https://sites.google.com/view/bestexamsdumpsite/mb-300-dumps
Python Shots! - Data Types
Tags: python, programming, beginners, notes
Published: 2022-01-15 04:58:18


### Python Data Types : 
* None 
* Numeric
  * int (num = 2)
  * float (num = 2.5)
  * complex (num = 1 + 2j)
  * bool (is_num = True)
* sequence 
  * List - [1,2,3]
  * Tuple - (1,2,3)
  * Set - {1,2,3}
  * String - ( str = "aman" )
  * Range - ( range(10) )
* map 
  * Dictionary - {"key":"value"}

---

### Description in Brief

1. List
  * [10,20,30]=> to store list of elements
  * mutable/can update value
  * used when you need to update values time to time 

2. Tuple 
  * (1,34,56,7,89,5) => to store list of elements
  * indexing from 0
  * immutable/ can not update values
  * good and fast while looping through of getting data as it can't be updatable

3. Set 
  * {23,56,78,90,54} => to store list of elements
  * no indexing 
  * stores unique elements only no repeatation
  * fast for searching as it uses hash table concept

4. Dictionary
  * {"key":"value"} => store elements in key value pairs 
  * custom indexing
  * used to deal with complex data like data inside data
Pom.xml issue fix
Published: 2022-01-15 04:38:49

When you get facing error as below
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1hsbxjod7irqcf535ulu.png)
 

Then add this new software in your Eclipse. It will resolve the issue
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9u6ppsto4e5rstidvyte.png)

```
https://download.eclipse.org/m2e-wtp/releases/1.4/
```
OpenPGP proof
Published: 2022-01-15 04:07:34

---
title: "OpenPGP proof"
published: true
description: 
tags: 
//cover_image: https://direct_url_to_image.jpg
---

This is an OpenPGP proof that connects [my OpenPGP key](https://keyoxide.org/271E03907B0F773EA62558FDCA5500A8F3A920A0) to [this dev.to account](https://dev.to/iamruinous). For details check out https://keyoxide.org/guides/openpgp-proofs

[Verifying my OpenPGP key: openpgp4fpr:271E03907B0F773EA62558FDCA5500A8F3A920A0]
Self-Taught Developer Journal, Day 39: BEM Methodology
Tags: webdev, beginners, codenewbie, devjournal
Published: 2022-01-15 03:34:31

Today I learned about the BEM or Block, Element, Modifier Methodology. 

For some context, I discovered [George Moller](https://twitter.com/_georgemoller?s=20) and his free slides on HTML and CSS. I was looking through them today and was curious about how he was naming his CSS selectors, the double hyphens in particular. I searched on Google and found out that its based on BEM naming. 

BEM or Block, Element, Modifier Methodology is a popular naming convention used in HTML and CSS. I ended up reading through some resources on what BEM is and how its used. I'm still reading through it and learning, but I really like it so far. I also like George Moller's slides. His insight and tips are some good references to use on how to structure your HTML and CSS.

I'm hoping to finish going through his slides and learning more on the BEM methodology.

## Resources
https://css-tricks.com/bem-101/
http://getbem.com/introduction/
http://getbem.com/naming/
How to deploy a static website in Netlify for free
Tags: webdev, netlify, beginners, javascript
Published: 2022-01-15 03:28:14

The question we all have after building our first website is "how to host" and "where to host" that too for FREE. I've the same question on my mind after creating my first ever website. 

Here is a solution of you, In this article I'm going to show you the step-by-step process on how to host a static website in [netlify](https://www.netlify.com/)

### What and Why Netlify? 

_Netlify is a cloud computing company that offers hosting and serverless backend services for web applications and static websites._

Netlife is free and easy to use. You can deploy your project in seconds from github repo. It also provides free SSL certificate.

If you haven't signed up yet, Go ahead and [Signup](https://app.netlify.com/signup) for free.

### Step 1: Add your website

Once you've done with the signup process, You'll be headed to Overview page.There are two ways to add your site in netlify.You can either add from Github, Gitlab or bitbucket (or) You can simply drag and drop your website folder.

![Overview page](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ycyfenyqawqw9x99d90n.png)

### First Method (Git)

Once you've clicked "New site from Git", This page will appears.

![git](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/u9896f63r7n7u1viitiq.png)

You need to connect to your github account and authorize it.
Now just choose the repository you want to deploy and click deploy site.

![repos](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kisyqp8d9u0udh8a3p5d.png)

Once the build completes, your site is deployed.

![deploy](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dqinb5muz247vqgxbt7m.png)
### Second Method (drag N drop)

This method is pretty simple, You just need to drag and drop the project folder and you are done with the deployment.

So you can deploy in any of the methods. After deploying, Netlify will automatically create name for your site. You can change it in "site settings -> change site name"

![site](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hjfwklw1dl1hakxczvdo.png)

You can also set up custom domain and push new changes to the site.

Anndddd, It's all DONE. You site is now live!!!!

If you like this post, Please like and follow me!
JS Truthy Falsy assignment /Short circuit evaluation.
Tags: javascript, programming
Published: 2022-01-15 03:16:03

```
let username = '';
let defaultName;
 
if (username) {
  defaultName = username;
} else {
  defaultName = 'Stranger';
}
 
console.log(defaultName); // Prints: Stranger
```

Truthy Falsy evaluations open a world of short-hand possibilities. 

---

```
let username = '';
let defaultName = username || 'Stranger';
 
console.log(defaultName); // Prints: Stranger
```

If you combine your knowledge of logical operators you can use a short-hand for the code above. In a boolean condition, JavaScript assigns the truthy value to a variable if you use the || operator in your assignment:
Next Js SSR [getServerSideProps]
Tags: react, nextjs, javascript
Published: 2022-01-15 03:12:45

## How Ssr code will work in  Next js

- If a page uses Server-side Rendering, the page HTML is generated on each request.

- Server-side Rendering: The HTML is generated on each request. To make a page use Server-side Rendering, export getServerSideProps. Because Server-side Rendering results in slower performance than Static Generation, use this only if absolutely necessary.


```
const App = ({data}) => {
return (
    <>
    //jsx  will go here // render the data
    </>
  )
}

export async function getServerSideProps() {
//fetching data from some api
const res  = fetch('https://someapi.com/get')
const data = await res.json()

return {
     props:{
           data;
          }
     }
}

export default App;

```
Coming back to Telescope
Tags: osd700, opensource, telescope
Published: 2022-01-15 03:05:00

After a whole semester full of experiences developing for open source project, as well as starting out with a small open source project, it was a time to sit back, relax, and reflect upon those experiences. Thus, the curtains went down.

Or so I would like to say! Instead, I continued with another round of open source, in the form of the OSD700 course.

## First Impressions

Right now, I will have to say that I am even more pumped up for this course.

For this course, we will place our main focus on maintaining Telescope and bring it to a 3.0 release. This entails resolving and filing issues, submitting and reviewing PRs, troubleshoot any production problems, and overall interacting with other team members to bring Telescope forward.

We are also going to provide some contributions to any dependencies that Telescope is using! For this, we are planning to create a detailed dependency graph and make some kind of issue tracker that will recommend issues to work on.

## Some Expectations

I am expecting to work a lot on Telescope. I hope that I can make lots of contributions to the project, and I hope I can learn a lot from my fellow developers. I still need to learn a lot about JavaScript and other web technologies, specially with the alarming rate of development of new technologies!

## Telescope Work for this week

For this week, I solved some minor issues on Telescope. I issued a couple of PRs, where one of them was already merged into the project and the other is still under review.

The work related to those PRs is fairly simple:
* PR [#2654](https://github.com/Seneca-CDOT/telescope/pull/2654) is related to fixing the formatting of some numbers so that they can be human readable.
* PR [#2656](https://github.com/Seneca-CDOT/telescope/pull/2656) is related to updating some URL links.

I also did some reviewing on a PR. The PR focused on implemented advanced search on Telescope by using the Elasticsearch API. You can check the PR [here](https://github.com/Seneca-CDOT/telescope/pull/2617)!

## Supply chain Work for this week

Right now, I didn't work on any issues from Telescope's dependencies, since I just started this week. Maybe I will try to come up with an issue visualizer during the weekend.
First Smart Contract
Published: 2022-01-15 03:03:25


1. 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4v93zik4w579cwag60b8.png)
 
2. 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7r3mjafuttyupz8i6q45.png)

3.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cladw2865bkgd1jamrtm.png)
  

---
# Documentación
https://ethereum.org/en/developers/tutorials/hello-world-smart-contract/
https://docs.alchemy.com/alchemy/tutorials/hello-world-smart-contract/interacting-with-a-smart-contract
https://docs.alchemy.com/alchemy/tutorials/hello-world-smart-contract/submitting-your-smart-contract-to-etherscan
Serverless - Create, debug and deploy  Lambda and API 

Tags: javascript, webdev, devops
Published: 2022-01-15 02:43:14



#
aws
#
cloud
#
serverless
#
cloud9

Let’s say you want to create and deploy a very basic serverless architecture - an API backend that consists of an Amazon API Gateway endpoint and an AWS Lambda function.




Cover image for Serverless - Create, debug and deploy Lambda and API Gateway via AWS SAM and AWS Cloud9
Samira Yusifova
Samira Yusifova
Posted on Jan 21, 2021

Serverless - Create, debug and deploy Lambda and API Gateway via AWS SAM and AWS

Cloud9
#
aws
#
cloud
#
serverless
#

cloud9
Let’s say you want to create and deploy a very basic serverless architecture - an API backend that consists of an Amazon API Gateway endpoint and an AWS Lambda function.

Alt Text

For that you need to provision the following resources:
👉 API Gateway
👉 Lambda function
👉 IAM role

What is the fastest and the most convenient way to provision and deploy these serverless resources using AWS native framework?

AWS Serverless Application Model
And the answer is AWS SAM.

AWS SAM (Serverless Application Model) is meant to build serverless applications. Built on AWS CloudFormation, AWS SAM provides shorthand syntax to declare serverless resources.
GraphQL API recon with mitmproxy
Tags: ethicalhacking, cybersecurity, recon, graphql
Published: 2022-01-15 02:03:08

## Why?

Capturing live examples of GraphQL queries and responses all in one place vastly simplifies recon.

## When?

You most want to do this when introspection is disabled. Otherwise when you need examples to help make sense of the API's semantics, or to develop a better intuition for where the weaknesses may be.

## How?

This script works out-of-the-box for the majority scenario: POST requests to `/graphql` that use the `operationName` parameter.

```bash
mitmdump -s capture.py
```

capture.py:
```python
import json
import re

from mitmproxy import http

def response(flow: http.HTTPFlow) -> None:
  if flow.request.url.endswith('/graphql'):
    payload = json.loads(flow.request.content.decode('utf-8'))
    filename = re.sub(r'[^a-zA-Z0-9]', '_', payload['operationName']) + '.example.txt'
    with open(filename, 'w') as f:
      json.dump(payload, fp=f, indent=2)
      f.write(f"\n\n// ==== REQUEST ====\n\n")
      f.write(f"{payload['query']}\n\n")
      f.write("// ==== RESPONSE ====\n\n")
      json.dump(json.loads(flow.response.content), fp=f, indent=2)
```
How to Declare Variables in Android String Resources?
Tags: android, kotlin, beginners
Published: 2022-01-15 02:00:39

**To be referenced by another string resources to avoid duplicated hard-coded strings in different places.**

Suppose you have 2 string resources `app_name` and `about_text` below, you have 2 duplicated hard-coded strings.

```xml
<resources>
    <string name="app_name">My App Name</string>
    <string name="about_text">My App Name</string>
</resources>
```


## Reference Another String Resources

To get rid of duplicated hard-coded strings, what you can do is reference the `app_name` from the `about_text`.

```xml
<resources>
    <string name="app_name">My App Name</string>
    <string name="about_text">@string/app_name</string>
</resources>
```

But what if you have more complicated `about_text` like below?

```xml
<resources>
    <string name="app_name">My App Name</string>
    <string name="about_text">My App Name is an awesome app!</string>
</resources>
```

## Use String Format
You can change the `about_text` to string format to allow the string to be constructed at run time.

```xml
<resources>
    <string name="app_name">My App Name</string>
    <string name="about_text">%s is an awesome app!</string>
</resources>
```

In code (in your activity class for example), you pass in the `app_name` string.
```kotlin
val aboutText = resources.getString(
    R.string.about_text,
    resources.getString(R.string.app_name))
```

Well, there is another better solution to use **DOCTYPE**! You don't need to pass in the string variable from code.


## Use DOCTYPE resources ENTITY

The DOCTYPE resources ENTITY declaration like a variable.  You can reference it from another string resources using `&<entity_name>;` syntax. 

```xml
<!DOCTYPE resources [
    <!ENTITY app_name "My App Name">
    <!ENTITY another_name "Test 1 2 3">
    ]>

<resources>
    <string name="app_name">&app_name;</string>
    <string name="about_text">&app_name; is an awesome app!</string>
</resources>
```

*P/S: If there is another way better than using DOCTYPE, please let me know.*

*Originally published at [https://vtsen.hashnode.dev](https://vtsen.hashnode.dev/how-to-declare-variables-in-android-string-resources)*.