teleren/devto huggingface dataset:
PANDAS VS POLARS: THE PYTHON DATA MANIPULATION WAR.
Tags: programming, python, datascience, machinelearning
Published: 2023-07-17 06:38:37

**INTRODUCTION**
For those accustomed with python for data manipulation, _Pandas_ is an household name. It can be used to manipulate a 
particular set of data until it is clean and useful for usage. 

> A new data manipulation framework: _Polars_, has been recently introduced and this new library might just be a saving grace to python users. Read and you just might find yourself switching from _Pandas_ to _Polars_.

**WHY SWITCH TO _POLARS_?**
**Pandas** is an essential library in the field of Data Science which is primarily used in data manipulation. Although _Pandas_ is a great library, it does comes with a certain drawback: It is very slow in processing large datasets. As such, _Polars_ was designed to process data much faster than _Pandas_, making _Polars_ a Pandas alternative.

**Let's take a look at some of the similarities and differences between the Pandas and Polars code.**

- Importing Data

_Pandas_
```
import pandas as pd
```

_Polars_

```
import polars as pl
```

- Reading CSV file

_Pandas_
```
df = pd.read_csv(file)
```

_Polars_

```
df = pl.read_csv(file)
```
- Memory Usage

_Pandas_

```
df.memory_usage()
```

_Polars_

```
df.estimate_size()
```

- Delete Column

_Pandas_

```
df.drop(columns=["columns"])
```

_Polars_

```
df.drop(name=["columns"])
```

- Sort

_Pandas_

```
df.sort_values("column")

```
_Polars_

```
df.sort("column")
```

- Unique values

_Pandas_

```
df.column.unique()
```

_Polars_

```
df.column.unique()
```

- Lazy Execution

_Pandas_

```
Not Supported
```
_Polars_

```
df.lazy()
```
- Filter Data

_Pandas_

```
df.df[column > 10]
```

_Polars_

```
df.df[column > 10]
        or
df.filter(pl.col("column" >10))
```

**CONCLUSION**
Both are great libraries to use but _Polars_ might just have the advantage as regards speed. Although most pandas users might be a little reluctant to shift over to _Polars_ as they are well accustomed to pandas and going to _Polars_ might just mean they will have to adjust to some of the code differences.
Decentralized Operating System - GRIDNET OS
Tags: webdev, web3, cryptocurrency, javascript
Published: 2023-07-17 06:27:30

Step right up, brave innovators and fearless pioneers of the coding world! As you're about to learn, JavaScript can now do so much more! The gates of web3 and beyond await. We're excited to share a groundbreaking new perspective in the development universe that promises to give your creativity an out-of-the-box boost. You've been commanding browsers and Node.js, it's time to command an entire Decentralized Operating System!

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



In our latest article available here: https://gridnet.org/wpp/index.php/2023/07/08/dao-api-for-next-gen-decentralized-social-platforms/, we take you on a thrilling ride into the heart of GRIDNET OS - the very first decentralized operating system. We promise this isn't your usual tech piece. It's filled with unexpected twists, quirky humor, and a sneak peek into the future of digital infrastructure.

Tired of mundane centralized databases, unreliable hosting services, and paranoid about the looming threat of censorship? Longing for the perfect blend of power, flexibility, and freedom in your work? Enter the universe of decentralized systems and peer-to-peer connectivity (also among web-browsers)!

Our detailed write-up is not just a tutorial, it's a sneak peek into a future where CEOs and governments have no control over your creativity. Imagine a world where your ingenious applications are free from the clutches of 'big tech' and the privacy of your users isn't at stake. Welcome to the era of GRIDNET OS!

We'll introduce you to GridScript and GridScript++, two new kids on the programming language block. Don't worry, they're not as intimidating as they sound. In fact, with JavaScript being your superpower, you'll feel right at home. You can even evaluate them from the comfort of your web browser's scope.

Feeling excited yet? Hold on, there's more! We've got a spicy introduction to our DAO API, available in GridScript++, which we promise, will get your object-oriented neurons firing.

In the mood for a freebie? We're issuing development grants to support your next-gen applications built on GRIDNET OS. Find out more in our article and join our forums for a welcoming package that includes some exciting crypto assets to get you going.

So, brace yourself for a thrilling journey filled with code, laughs, and the future of the internet. Whether you're 'Codey' looking for fresh programming possibilities or 'Clicky' searching for the next big tech investment, we've got something for everyone.

Let's embrace the new dawn of decentralized systems, the power is now in your hands!

Here's to a future built by you, for you! 🚀

Happy Reading!
var Keyword in C#
Tags: csharp, var, keyword, webdev
Published: 2023-07-17 06:22:14

1. The var keyword instructs the compiler refer to the type of variable assigned on the right side of expression.

2. The inferred type may be a built-in type, an anonymous type, a user-defined type, or a type defined in the NET class library.

3. implicit type variable,
[Audio + Invite]: Why Crowdsourced Open Source Learning ls The Future
Tags: productivity, opensource, learning, chatgpt
Published: 2023-07-17 05:57:35

https://3844865277346.gumroad.com/l/rlltk

Original thread: 
https://dev.to/vonthecreat0r/crowdsourced-open-source-knowledge-the-future-of-learning-2hic
DIGITAL MARKETING
Tags: webdev, se, javascript, programming
Published: 2023-07-03 06:33:56


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2u3lzy6vu00jmt44yj18.jpeg)Advertising the field of computerized advertising include various techniques. The following is a list of the most common forms of digital marketing. A digital marketing specialist is different from an SEO specialist, a PPC specialist, or a digital marketing specialist because a digital marketing specialist needs to be an expert in multiple fields and understand how digital marketing works in general, not just one area. Establish objectives and evaluate the effectiveness of each digital marketing channel. A technique in Computerized Advertising The field of computerized advertising encompasses a variety of approaches. Some of the most common forms of digital marketing are listed below. Google Web index Advertisements: It lets you pay for a price per click link to be at the top of Google's keyword rankings. Paid Facebook Ads: Facebook will post customized videos, image posts, or slideshows to the Feeds of customers who match your business's target audience for a fee. Twitter Paid Promotions: Organizations can pay to put a progression of posts or promotions into a particular crowd's feed, all committed to accomplishing a particular objective for the business. This objective could be app downloads, increased website traffic, more Twitter followers, or tweet engagement. Sponsored Messages on LinkedIn: Businesses pay to send messages to specific LinkedIn users based on their profile and industry here. Site design improvement (Website optimization)Site design improvement Web optimization is the most common way of streamlining a site's substance, specialized arrangement, and inclusion so that on-page catchphrases show up at the highest point of web crawler results. Utilizing search engine optimization (SEO) can bring customers who appear to be looking for related products to your company's website. While PPC and remarketing have their place, natural web-based traffic acquired through Web optimization enormously affects search rankings as well as natural website traffic. Use search engine optimization (SEO) to build long-lasting customer relationships and dramatically increase your visibility by using keywords and phrases. Web optimization is characterized as further developing a site's positioning in internet based list items by utilizing the catchphrases and expressions clients look for to produce natural site traffic. Because visibility is the first step in developing long-term relationships with customers, digital marketing campaigns benefit greatly from employing a robust SEO strategy. There are different ways of utilizing Search engine optimization to produce qualified traffic to your site. These are some: Website optimization on the page: Search engines are able to index all of the content on the company website.
CONTACT NUMBER	
03270700517
DRY your terraform code using dynamic block
Published: 2023-07-17 05:49:19

Without `dynamic` block a security group resource looks like this

```
resource "aws_security_group" "instance_security_group" {
  ingress {
    # TLS (change to whatever ports you need)
    from_port   = 80
    to_port     = 80
    protocol    = "TCP"
    cidr_blocks = [ "0.0.0.0/0" ] # add a CIDR block here
  }

  ingress {
    # TLS (change to whatever ports you need)
    from_port   = 443
    to_port     = 443
    protocol    = "TCP"
    cidr_blocks = [ "0.0.0.0/0" ] # add a CIDR block here
  }

  ingress {
    # TLS (change to whatever ports you need)
    from_port   = 22
    to_port     = 22
    protocol    = "TCP"
    cidr_blocks = [ "${var.office_IP}/32" ]
  }
}
```
Above code can be dried with terraform `dynamic` block to look like this.

```
locals {
  ingress_rules = [
    { from_port = 80, to_port = 80, cidr_blocks = [ "0.0.0.0/0" ] },
    { from_port = 443, to_port = 443, cidr_blocks = [ "0.0.0.0/0" ] },
    { from_port = 22, to_port = 22, cidr_blocks = [ "${var.office_IP}/32" ] }
  ]
}

resource "aws_security_group" "instance_security_group" {
  dynamic "ingress" {
    for_each = local.ingress_rules
    iterator = i
    content {
      from_port   = i.value.from_port
      to_port     = i.value.to_port
      protocol    = "TCP"
      cidr_blocks = i.value.cidr_blocks
    }
  }
}
```
More about terraform dynamic block - https://developer.hashicorp.com/terraform/language/expressions/dynamic-blocks
6 Ways You Can Prepare as a HAZOP Participant
Published: 2023-07-17 05:42:29






You've been invited to participate in a HAZOP study. What now?

HAZOP, or Hazard and Operability study is a form of analysis used in the chemical processing industry to determine potential hazards and operational issues (gaps), analyze risk for a particular system, and make recommendations to reduce intolerable risks. It is a known best practice AND, very often, a regulatory requirement such as OSHA Process Safety Management (PSM), EPA Risk Management Plant (RMP), or Control of Major Accident Hazards (COMAH), to name a few.


If you work in an oil refinery, a chemical processing plant, an ammonia refrigeration facility, or an engineering design firm and you belong to the engineering, maintenance, or operations group; there's a very high probability for you to be invited to participate in a HAZOP that may even dovetail into LOPA.


1. Gather Safe Operating Limits (SOL)

Not knowing how far a process parameter can safely deviate can potentially lead to missed hazardous scenarios.


2. Brush up on simulation skills

It may have been a while since you have used a simulation program (such as Aspen Hysis), perhaps back in college. 


3. Prepare the latest Cause and Effect Diagram & Alarm List

Do you know what your trips do? Do you know what to do if your alarms go off?


The benefits of having this information available are two-fold. First, it allows the team to verify if there is sufficient safeguard response time. Second, when listing safeguards for a scenario, it is best practice to identify what a safeguard's actions are...[Read more](https://www.saltegra.com/post/2017/08/21/6-things-you-can-prepare-as-a-hazop-participant)


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/spiogf2j7vle6iyz0qlc.png)
TIL Blog 07/16/2023
Published: 2023-07-17 05:21:41

After going through the "Hello World" assignment it was really interesting using a browser to code, it actually seems the second easiest to write "Hello, world!". Through my experience the easiest would have to be through Python where you can just type print("Hello, world!") and then it'll print after running. Then there is Java, which requires you type out a whole sentence for one line of code, System.out.println("Hello, world!");. So its' really fun to learn something new especially through html, which is something that I've been interested in learning for a while!
What is SAP FICO ?
Published: 2023-07-17 05:21:04

SAP FICO Course in Pune is a certification degree Course that deals with the Finance and Cost controlling module in SAP ERP where FI represents Financial Accounting and CO represents Controlling. SAP FICO module is hearty and covers practically all business cycles experienced in different industries.




SAP Finance and Controlling (FICO) is a central component for the finance module of the ERP solution from SAP . SAP FICO helps companies to manage all their financial data, generate balance sheets and make decisions for corporate planning.


Because of their knowledge of SAP technology and financial management, SAP FICO professionals are in great demand on the job market . You may get the skills and information you need to be successful in this industry by enrolling in SAP FICO certification courses and training programs.


SAP FICO is the most highly compensated SAP module, with strong growth and a significant demand for SAP FICO certified consultants. However, getting a job in SAP FICO is not easy; the competition is high, therefore you must possess exceptional technical skills. But sap fico course in pune provides the best training in pune.


[SAP FICO Course in Pune
](https://www.sevenmentor.com/sap-fico-course-in-pune.php)

[SAP FICO Training in Pune 
](urhttps://www.sevenmentor.com/sap-fico-course-in-pune.phpl)

[SAP FICO Classes in Pune 
](https://www.sevenmentor.com/sap-fico-course-in-pune.php)
Crowdsourced Open Source Knowledge, The Future Of Learning?
Tags: opensource, productivity, career, devjournal
Published: 2023-07-17 05:18:53

As the parallel trends keep colliding; one of the most common ones is how do we keep up with the development of all technology that is emerging amongst us including artificial intelligence and the machine learning? 

Based on this question: it is what it has accelerated development of things like chat GPT and many other similar technologies that are based off of artificial intelligence. 

The reason for this is in some way we fighting to keep up rapid expansion and shift from web2.0 to Web3 and soon to Web 3.5 which may involve the native use of artificial intelligence and machine learning as normal part of life. 

Right now there's a trend bubble going on; therefore it is harder to adapt until things stabilize, however crowdsource learning is the current reality of how things can be done a lot quicker in a humane way without relying on artificial intelligence. 

In a way: I would say this is organic alternative to using AI for Learning and creating stronger synaptic points between the world that you see and the world that you envision within yourself to create what you desire. 

This is my current analysis for now, 

otherwise; it is very much relevant and parallel to what I've stated as the headline of this topic.

Crowdsourced learning is the organic alternative to artificial intelligence and machine learning.

We can rely on each other in order to also get ahead in life and this involves opening the access channels to information that we may want to know that our peers have already attained. 

let's starts conversations that spark greatness within!
Does anyone know how to modify the width of an MDSegmentedControl?
Tags: python, kivymd
Published: 2023-07-17 05:15:10

How do I modify the width of the MDSegmentedControl?

```
MDSegmentedControl:
                pos_hint: {"center_x": .5, "center_y": .5}
                
                MDSegmentedControlItem:
                    text: "Homem"   
                    font_size: "12sp"
                MDSegmentedControlItem:
                    text: "Mulher"
                    font_size: "12sp"
                MDSegmentedControlItem:
                    text: "Outros"
                    font_size: "12sp"
```
Est qui commodo cupidatat elit laboris anim adipisicing
Published: 2023-07-17 05:14:19

Amet aute sunt sunt laborum exercitation sint consectetur nisi incididunt non velit dolor amet. Excepteur sint tempor laboris enim fugiat aute ex nisi adipisicing aliquip sit occaecat pariatur officia. Cillum occaecat ullamco est quis.

Ullamco reprehenderit minim reprehenderit laboris anim quis tempor sunt incididunt et. Velit dolor id sit ex enim irure Lorem ullamco elit anim ullamco et aliquip enim. Laborum in reprehenderit laborum labore fugiat cupidatat duis exercitation.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5ej22oojthqpt2rowb58.jpg)

Do reprehenderit nulla non labore aute mollit commodo. Occaecat aliqua reprehenderit ea ex culpa anim est esse elit et elit exercitation. Consequat aute incididunt excepteur minim nisi do id eu veniam. Excepteur est voluptate elit Lorem aute reprehenderit esse irure adipisicing commodo ex ullamco eu. Nisi sunt aute fugiat ea quis incididunt dolore id. Excepteur aute Lorem duis labore sint qui magna ex deserunt dolore mollit.

Esse minim deserunt laboris nulla ipsum id cillum elit culpa nostrud reprehenderit eu. Excepteur nostrud sit excepteur qui fugiat aliquip. Aute deserunt incididunt cillum magna mollit labore ad exercitation Lorem ad aute deserunt non. Non ullamco commodo aliqua occaecat veniam eiusmod qui ipsum. Do in ullamco ipsum minim. Enim eu excepteur proident exercitation id. Consequat aliquip duis pariatur laboris minim nisi pariatur mollit esse nulla velit proident est nisi.

Esse veniam reprehenderit ad qui esse consectetur anim exercitation nulla. Aliqua sint officia velit aute in ipsum est sit irure est reprehenderit culpa. Aute nisi exercitation fugiat laboris cillum consectetur minim eu consequat ullamco duis nisi dolore. Sint veniam ad anim laboris ex id pariatur. Officia enim nulla qui anim irure aliquip enim excepteur. Laboris dolore cillum occaecat sint anim velit magna excepteur tempor nulla exercitation.

Aute aliquip do aliqua officia consequat esse reprehenderit laboris magna nostrud id minim dolor. Laboris mollit do laboris sit exercitation ad. Ea fugiat labore nostrud aliqua mollit.

Est qui commodo cupidatat elit laboris anim adipisicing ut. Ea ad nostrud pariatur et. Commodo labore ea ea aliquip reprehenderit consectetur velit laboris ut cillum sit culpa ex dolor.

Est amet in incididunt officia ut voluptate proident eu. Excepteur velit exercitation proident ad sunt tempor sit reprehenderit. Reprehenderit consequat dolore id quis aliquip voluptate sint aliquip sit voluptate voluptate. Id esse irure incididunt reprehenderit anim et. Officia laborum eu veniam ut ad do nisi dolor fugiat.
Github Warning: Remote Host Identification Has Changed! 😳
Tags: github, security, cicd, devops
Published: 2023-07-17 05:00:33

## I started seeing this warning

A few months back after coming back from the weekend, I started seeing the below warning below in the terminal. I was working on a [GitHub project](https://github.com/100stacks).


```
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
SHA256:uNiVztksCsDhcc0u9e8BujQXVUpKZIDTMczCvj3tD2s.
Please contact your system administrator.
Add correct host key in ~/.ssh/known_hosts to get rid of this message.
Host key for github.com has changed and you have requested strict checking.
Host key verification failed.
```

This was an odd change, as I was working on the project a few days prior without issue. This error occurred whenever I tried to push updates to the remote repository on GitHub.

This was the somewhat cryptic warning that stood out.

```
🛑 The fingerprint for the RSA key sent by the remote host is
SHA256:uNiVztksCsDhcc0u9e8BujQXVUpKZIDTMczCvj3tD2s.

Please contact your system administrator.
```

It took a few minutes of troubleshooting to finally realize the phrases `remote host` and `please contact your system administrator` where important here. After a bit of [searching](https://duckduckgo.com/spread), I came across this article for the potentially comprised GitHub RSA SSH Key - https://github.blog/2023-03-23-we-updated-our-rsa-ssh-host-key/.



![github article](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8r5qtmtoiu93rfj6kov5.png)




I was surprised by the unexpected non-warning, though after reading the article I could see why this happened. Next week, I'll get into why this was such a big deal, especially for automated CI/CD pipelines and distributed teams.


---
Photo credit to <a href="https://unsplash.com/@vidi_drone?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText">Vidi Drone</a> on <a href="https://unsplash.com/photos/4hIauLthNws?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText">Unsplash</a>
Get start with Grafana
Tags: devops, monitoring, grafana, tutorial
Published: 2023-07-02 13:03:51

📢 Exciting news! I have just published a new blog post about Grafana, the open-source analytics and visualization platform! 🚀

Grafana is a powerful tool used to monitor, analyze, and visualize data from various sources. With its flexible interface, you can create interactive dashboards and graphs to gain valuable insights from your data. 📊

In my latest blog post, I walk you through the installation and configuration of Grafana on an Ubuntu EC2 instance. 🖥️ You'll learn how to set it up step-by-step, from updating packages to starting and enabling Grafana. It's easier than you might think! 💡

But wait, there's more! I also cover the configuration of Loki and Promtail using Docker. These additional components enhance the capabilities of Grafana, allowing you to store and analyze logs efficiently. 📜

So, if you're looking to harness the power of data visualization and monitoring, head over to my blog and check out the post. Start unlocking valuable insights and take control of your data with Grafana! 💪

Read the full blog post here: 

https://medium.com/@munikanthtech/grafana-d2652ad884e7