teleren/devto huggingface dataset:
RawBits- A guild of Nerds
Published: 2021-03-20 14:32:38

Geek Week Local

A great initiative by GFG Vit Bhopal Chapter. We were asked to be a part of the guild and then solve challenges.

The first thing about joining a guild was fun when we searched and interacted with people to join a team. It was really fun to do that and pitch to others and persuade them to join the guild.

Then the tasks began and the first day was light. But then it was escalated. Day 2 brought some tougher and interesting challenges
Throughout every day we learnt something new and improves upon ourselves.

I learnt a lot. Learnt to create Portfolio, Github, Bootsrap, firebase and what not.

So it was a great experience till now and expecting more such events by GFG.
Pass PHP array onto Vue component using props
Tags: vue, php, props
Published: 2021-03-20 14:29:58

1. Building a Laravel app with a few Vue components
2. Want to pass a PHP array onto a Vue component using props

Here’s an example of such PHP array:

```
["Foo" => 100, "Bar" => 50]
```

Great. Here’s my attempt at passing them onto the Chart component:

```
<Chart points="{!! json_encode($points) !!}"></Chart>
```

This looks fine, but the strings (Foo and Bar) inside the `$points` array get encapsulated with ” (double quotes) when using `json_encode()`. This means that whenever the 1st string appears in the array, the browser thinks that the ” is meant to close the points attribute.

Here’s what you get to see in the browser:
```
<Chart points="{">Foo":100,"Bar":50}"</Chart>
```
How do I go about this? I have been struggling with this for hours now, and I can’t wrap my head around it.

Can’t use ” (double quotes) since the browser interprets it as the closing quote for an attribute and messes up the HTML
Can’t use ‘ (single quotes) since that’s invalid JSON (and json_encode doesn’t support it)

## Solution
```
<Chart points='{!! json_encode($points) !!}'></Chart>
```
Just use singular quotes.
Why I'm learning backend development with NodeJS
Published: 2021-03-20 14:28:02

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

## Why I'm choosing #NodeJS  for the short term to get started with backend development 

## (and why I eventually plan on learning a statically typed language in the long run.)

I have a solid grasp of JS already, and with NodeJS, I can use JavaScript in both front and backend.

I realize writing #javascript on the backend is much different than writing it on the frontend. 

However, by using Node, I can focus my attention on learning the concepts and intricacies of backend development, which is most important in my mind.

I can then take the concepts and transfer them to another language.

When starting out in the backend I don't want to be burdened with having to learn a new syntax, paradigm, and set of libraries on top of learning the actual concepts.

I'm aiming for concepts first, and then switching over to a statically typed language (probably golang or java) where I'll already have the concepts, then I'll just need to catch up on the syntax and libraries.

What are your thoughts? If you started as a frontend dev and transferred to backend over the years, I'd love to hear what your journey was like.
Geek Week Local: VIT Bhopal
Tags: geekweeklocal
Published: 2021-03-20 14:24:31

The GeeksforGeeks VIT Bhopal Community had arranged a marvelous week- long competition where the Community would set some daily tasks and challenges and everyone had to complete them within a time limit of 24 hours. All the students of VIT Bhopal were eligible to take part in this event. Throughout the span of a week -starting from 16th March till 21st March- a healthy competition had ensued between the guilds. I belonged to the BugBusters guild and we, as its members, had a tremendous amount of enjoyment, amusement and excitement throughout the week solving all the tasks. Starting from Day 1, we learnt how to use GitHub and exercised on competitive programming. Day 2 saw us delving deeper into the technical stuffs and examining them properly. Day 3 had us making an android app, generating a tic tac toe game and using a weather API. Day 4 was all about data visualization and exploring web development and redesigning and creating websites. Day 5 brought in tasks like automation, password encryption, building an AI project, generate a chess game and using a social media API to name a few. As the week progressed the tasks grew all the more interesting and tougher. We had week-long and weekend challenges too where we had to research more into web automation, music API, working with GUI, voice assistant and probe deeper into GitHub.
laravel eloquent relation
Published: 2021-03-20 14:24:18

This is table relation

     $result = Event::select('events.*', 'events.at as datatime', 'events.end_time as endtime','event_types.name as event_type_name')
            ->from('events')
            ->leftJoin('event_types', 'event_types.id', 'events.type_id')
            ->where('events.id', $id)
            ->where('events.user_id', 350)
            ->get()
            ->toArray();
        return $result;
i want to change it to eloquent relation.
for example, i think we can use with() method instead of select method of query.
As a first project in Rust, I made a programming language on my own
Tags: showdev, rust, programminglanguage
Published: 2021-03-20 14:23:52

This is the project:
https://github.com/lechatthecat/oran

You can test it by:

```
$ git clone https://github.com/lechatthecat/oran.git
$ cd oran
$ cargo build --release
$ ./target/release/oran -f ./examples/hello.orn
$ ./target/release/oran -f ./examples/example.orn
```


### Motivation
### 1. Rust seems cool, so I wanted to make something.
And I think it is a very nice language.

### 2. String concatenation or addition of numbers?
In many scripting languages, the concatenation of string is done by `"aaaa" + "bbbb"`. This will make a value `"aaaabbbb"`. 

I really don't like this syntax. Let's suppose that we just want to add up two integers:

```
let val = 5 + 6;
```

and what if they happen to be String typed integers?

```
let val = "5" + "6";
```

The variable `val`'s value will end up being "56" because both of them are String, not integers.

If they aren't stored in variables, it is obvious that you need to change them to numbers beforehand, but what if they are stored in variables?

```
let val = varfive + varsix;
```

The value of val cannot be known until I check the value in debug mode. Even though I just wanted 11 out of `5 + 6`, the value is actually "56". This would cause a serious bug.

The problem is, in most scripting languages, you cannot know what type the variables have. In scripting languages, variable types are dynamically changed.

So in my language, you have to use "<<" to concatenate string values:
```rust
fn test () {
    let test = ' test';
    for i in 0..5 {
        println(i << test); // Like this.
    }
}
test();
```
When "<<" is used, the variables are always treated as String. Meanwhile, when "+" is used, the variables are always treated as numbers.

### 3. Immutability
Immutable variables are not often used in scripting languages like PHP, Python, Ruby. But immutable/mutable variables are often used in Javascript by putting const/let in front of variable names. I feel this is quite useful feature, that should be available in PHP, Python, Ruby also. And if variables are immutable by default like in Rust, it is even better.

So in my language, variables are immutable by default.
```rust
fn test () {
    let test = 'hey'; 
    test = "hello"; // Error!!
    println(test);
}
test();
```

You have to use `mut` to make it mutable variable.
```rust
fn test () {
    let mut test = 'hey'; 
    test = "hello"; // Now it works.
    println(test);
}
test();
```

### Conclusion
Rust is a great language even though I am not familiar with this language at all. The good point of Rust is, the more I learn this language, the more nice things I can get to know, like, immutable variables, option and match, memory management, difference between passing by val and by ref, functional programming style etc...
Rawbits- A Guild of Nerds
Published: 2021-03-20 14:16:29

Geek Week Local

A great initiative by GFG Vit Bhopal Chapter. We were asked to be a part of the guild and then solve challenges.

The first thing of joining a guild was fun when we searched and interacted with people to join a team. It was really fun to do that and pitch others and persuade them to join the guild.

Then the tasks began and the first day was light. But then it was escalated. Day 2 brought some tougher and interesting challenges
Throughout everyday we learnt something new and improves upon ourselves.

I learnt a lot. Learnt to create Portfolio, Github , Bootsrap, firebase and what not.

So its a hell of a experience till now and expecting more such events by GFG.

geekweeklocal
Top Tips for the AWS Certified Cloud Practitioner Exam!
Tags: aws
Published: 2021-03-20 13:53:33

{% youtube 5VpzQFJIWW0 %}

I was really pleased to receive the AWS Cloud Practitioner exam this month. It was also great fun to take the opportunity to talk about this shared achievement with Brian Hough, Shubham and Parth. In this video we discussed best approaches for the Cloud Practitioner.

## Resources:
1. [A Cloud Guru](https://acloudguru.com/?utm_source=google&utm_medium=cpc&utm_campaign=1054963165&utm_content=505272982292&utm_term=p_cloudguru&adgroupid=58597121944&gclid=Cj0KCQjwutaCBhDfARIsAJHWnHumaQfuD93ip2RPFDkCab7T0soe94p0jg51g55zVl0JlM9Es4Qf_gAaAuxmEALw_wcB).
A Cloud Guru is a nice mix of practical and theory and this was very useful for revising for the exam.

2. [Qwik Labs](https://www.qwiklabs.com/)
I really like working on the Qwiklabs training which includes labs on a wide range of AWS Cloud resources including Serverless Design and Big Data. Very useful for slightly more practical experience using Cloud without the worry of destroying resources.

3. [Digital Cloud](https://www.udemy.com/course/aws-certified-cloud-practitioner-training-course/learn/lecture/20898054?start=15#overview)
This was a really nice overview of the exam. I used the Exam Cram sessions for last minute revision before the exam.

4. [AWS Power Hour](https://pages.awscloud.com/awspowerhour_cloud_practitioner_resources.html)

AWS Power Hour was a very useful overview of the fundamentals of AWS.

5. [Free Code Camp](https://www.youtube.com/watch?v=3hLmDS179YE)
I really liked this video from Andrew Brown which gave a really useful high level view of the Cloud services.

6. [Whizlabs](https://www.whizlabs.com/login/)
Whizlabs was very useful for past papers and questions for AWS Cloud Practitioner.

The Cloud Practitioner has increased my confidence immensely and I have plans to move onto the AWS Cloud Developer exam. Go AWS!

![109174575-df3e8a80-777c-11eb-8033-8ad7d2be62ba](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jydpduha0my7bnqiusbr.png)
Google search using web automation
Published: 2021-03-20 13:52:26

I will be providing u all with a python code which uses web automation to search ,whatever you require, on google. We will be doing it by using selenium package in python.You also need to download chromedriver.

To install selenium just write pip install selenium in your terminal and it will be installed.

Here is the code:

from selenium import webdriver
search_string = input("Input the URL or string you want to search for:")
search_string = search_string.replace(' ', '+')
browser=webdriver.Chrome('C:/Users/WELCOME/Downloads/chromedriver_win32/chromedriver.exe')
for i in range(1):
matched_elements = browser.get("https://www.google.com/search?q=" +search_string + "&start=" + str(i))

Thats it!! After running it , u have to type what you want to search and then your browser will open and will show you the searched result.
My Top CSS Tips As Shared on Twitter - Part 2
Published: 2021-03-20 13:51:12

Hi! I'm [@5t3ph](https://twitter.com/5t3ph) on Twitter (and [most other places on the web](https://thinkdobecreate.com/links/)) and here are more of my top shared CSS tips!

> I've also released a dedicated project for modern CSS snippets, so be sure to also **check out [SmolCSS.dev](https://smolcss.dev)**!

## "The One About Centering"

{% twitter 1355858619716100098 %}

## "PhotoShop" Effects with `mix-blend-mode`

{% twitter 1356221007770472450 %}

## The `ex` Unit

{% twitter 1361384737227608068 %}

## Updating Custom Properties With JS

{% twitter 1357670558981357568 %}

## Visualizing the `place-` Shorthand Properties

{% twitter 1363607183263416330 %}

## SmolCSS Avatar List Component

Lots of tips packed into this component, be sure to click through to learn more!

{% twitter 1363468765099225088 %}

## SmolCSS "Smol Stack" Layout

{% twitter 1363106377074376707 %}
#GeekWeekLocal
Published: 2021-03-20 13:49:03

I am a second-year student in Vit-Bhopal. I participated in geek week-local organized by geeksforgeeks Vit Bhopal chapter. We got tasks every day which was needed to be completed. All the tasks helped me learn new skills and enhance my previous ones.
Interactive sessions with guildmates were also good and games in the mini-event were also fun.
We made soo many projects like voice assistant, chess game, web automation, and projects related to AI as well .
Overall it was an amazing journey!
AI
Published: 2021-03-20 13:41:23

There was a time, not so long ago, when artificial intelligence, machine learning, and natural language processing were only found in science fiction novels. Artificial intelligence, on the other hand, has been around for over 70 years. We were still working on a model of the most basic component of artificial intelligence at the time: artificial neurons. Artificial intelligence (AI) and machine learning had crept into the public's blind spot for a long time after that, all the while becoming smarter. It wasn't until IBM's Deep Blue defeated Garry Kasparov in 1997 that AI technologies gained traction and the data race began.

Of course, today's digital imperative includes AI, machine learning, and natural language processing. The benefits of using AI technologies in all shapes and sizes have prompted companies to invest heavily in their growth and application. Transportation, entertainment, and manufacturing operations have all seen tremendous growth and result of AI adoption.

AI's ability to automate sales and marketing activities has shown great promise in terms of lowering human effort and costs while still boosting top-line growth. Artificial intelligence (AI) reduces the time spent on administrative tasks, improves a brand's ability to provide customised services to consumers, and creates previously untapped revenue streams. This is why AI is at the heart of the most promising marketing automation initiatives.
#GeekWeekLocal 
Published: 2021-03-20 13:13:42

Geek Week: Local is a week-long hackathon of creating hacks, solving problems, and building profiles both big and small. Choose between daily and week-long challenges that vary in difficulty, so whether this is your first time coding or you’re a seasoned expert, Geek Week has something for you. The more challenges you conquer, the more points you’ll earn and make your position on the leader-board.

Geek Week: Local taking place from 14/03/21 to 21/03/21.

During this time, you can expect challen
During this time, you can expect challenges for all skill levels. These challenges can be completed on your own time, and new ones will be released each day on our website! Once the daily challenges are announced, you’ll have 24 hours to complete and submit them in order to earn those points on the leader-board.

If the daily challenges aren’t quite your speed, there will also be plenty of week-long challenges you can complete at any time. These will range from quick technical challenges to task
WHAT WE LEARNED ?

Power of Patience
During coding, we got many obstacles. One of the major obstacles is the error in the code. But after we practiced writing enough codes and learned to find out the errors, we developed a quality of patience to calm our minds and think sensibly because this is a critical factor in finding the fault.
Power of Perspective
Coding or solving questions helps us understand the world from a different perspective. While solving coding questions, many problems require a different perspective. With practice, you gain experience, and with experience, you gain perspective; it’s as simple as that.
Handling Content Updates During a Drupal Migration
Tags: webdev, database, drupal, devops
Published: 2021-03-20 13:39:50

Looking to migrate a Drupal site that is continually being updated by your content team? Take a look at my article on configuration exports and imports, published today in Codex. https://medium.com/codex/export-and-import-your-drupal-configurations-with-ease-ab353c3a1d6b
Stuff I learned in #Geekweeklocal
Published: 2021-03-20 13:38:51

Hello everyone.
I am Parmeet Singh a student of CSE (specializing in AIML) from VIT Bhopal. On the graceful evening of 14th March, the spectacular event #Geekweeklocal had begun and everyone was looking forward to take part in it. I had chosen a guild which later merged with another guild creating a gigantic guild. I had learned new things from all the daily events. The tasks were pretty easy on DAY 1 & 2 but they kept getting harder and started touching new topics like automation, AI and more. For a musical project, I choose to make a music player and it was my  first time working with GUI and I learned a whole lotta stuff. I am now writing this review while my tasks are due @7:30, so gotta keep it short. Anyways, I loved and learned a lot of things and looking forward to take part in more such events. See y'all later
:-)
Let's Meditate- Day 1
Published: 2021-03-20 13:32:29

So, yesterday was my first day of #100DAYSOFCODE, so I tried making an app by watching tutorials of it on youtube channel of his, I'll be updating this app, after getting more into javascript, my today's goal is too make another app/ project using JavaScript. I'll be updating this here.

About Meditation App:

Features of this app: 

1. Has a background video and sounds related to different but natural environment

2. There is a timer, with the help of which you can meditate according to your busy schedule.

Hope you guyzz like it!!!

Here's my GitHub link: https://github.com/ashuydv/meditation
Learnings on DEV
Published: 2021-03-20 13:20:39

There was a time, not so long ago, when artificial intelligence, machine learning, and natural language processing were only found in science fiction novels. Artificial intelligence, on the other hand, has been around for over 70 years. We were still working on a model of the most basic component of artificial intelligence at the time: artificial neurons. Artificial intelligence (AI) and machine learning had crept into the public's blind spot for a long time after that, all the while becoming smarter. It wasn't until IBM's Deep Blue defeated Garry Kasparov in 1997 that AI technologies gained traction and the data race began.

Of course, today's digital imperative includes AI, machine learning, and natural language processing. The benefits of using AI technologies in all shapes and sizes have prompted companies to invest heavily in their growth and application. Transportation, entertainment, and manufacturing operations have all seen tremendous growth and result of AI adoption.

AI's ability to automate sales and marketing activities has shown great promise in terms of lowering human effort and costs while still boosting top-line growth. Artificial intelligence (AI) reduces the time spent on administrative tasks, improves a brand's ability to provide customised services to consumers, and creates previously untapped revenue streams. This is why AI is at the heart of the most promising marketing automation initiatives.
Geek Week Local
Published: 2021-03-20 13:06:48

Geek Week: Local is a week-long hackathon of creating hacks, solving problems, and building profiles both big and small. Choose between daily and week-long challenges that vary in difficulty, so whether this is your first time coding or you’re a seasoned expert, Geek Week has something for you. The more challenges you conquer, the more points you’ll earn and make your position on the leader-board.

Geek Week: Local taking place from 14/03/21 to 21/03/21.

During this time, you can expect challenges for all skill levels. These challenges can be completed on your own time, and new ones will be released each day on our website! Once the daily challenges are announced, you’ll have 24 hours to complete and submit them in order to earn those points on the leader-board.

If the daily challenges aren’t quite your speed, there will also be plenty of week-long challenges you can complete at any time. These will range from quick technical challenges to tasks you can complete with your guild-mates (guild=team), both beginner-friendly and technically advanced so there is something for everyone.

WHAT WE LEARNED ?

Power of Patience
During coding, we got many obstacles. One of the major obstacles is the error in the code. But after we practiced writing enough codes and learned to find out the errors, we developed a quality of patience to calm our minds and think sensibly because this is a critical factor in finding the fault.

Power of Perspective
Coding or solving questions helps us understand the world from a different perspective. While solving coding questions, many problems require a different perspective. With practice, you gain experience, and with experience, you gain perspective; it’s as simple as that.

Power of Logical Thinking
Coding helps strengthen your thinking capability as many difficult questions need healthy thinking to crack it. We also need logical thinking. Before solving a problem, we have to identify the logic used to solve the question and find out the different logical ways, and coding helps us put our brain in that situation.
WIFI 
Published: 2021-03-20 13:01:38

There was a time, not so long ago, when artificial intelligence, machine learning, and natural language processing were only found in science fiction novels. Artificial intelligence, on the other hand, has been around for over 70 years. We were still working on a model of the most basic component of artificial intelligence at the time: artificial neurons. Artificial intelligence (AI) and machine learning had crept into the public's blind spot for a long time after that, all the while becoming smarter. It wasn't until IBM's Deep Blue defeated Garry Kasparov in 1997 that AI technologies gained traction and the data race began.

Of course, today's digital imperative includes AI, machine learning, and natural language processing. The benefits of using AI technologies in all shapes and sizes have prompted companies to invest heavily in their growth and application. Transportation, entertainment, and manufacturing operations have all seen tremendous growth and result of AI adoption.

AI's ability to automate sales and marketing activities has shown great promise in terms of lowering human effort and costs while still boosting top-line growth. Artificial intelligence (AI) reduces the time spent on administrative tasks, improves a brand's ability to provide customised services to consumers, and creates previously untapped revenue streams. This is why AI is at the heart of the most promising marketing automation initiatives.