teleren/devto huggingface dataset:
First post on this website.
Published: 2021-01-15 18:19:39


Under this post is a function called the olBoxTurn. It's a problem that another much more experienced programer gave me to practice python. Since then, when I try other languages out I see if I can recreate this function without looking at my previous solves. For some reason I always forget how I solved it and what a pain in the butt the problem is. The cube turn is just taking a 3D array and turning it 90 degrees. You can make it easier and use just a set 3 X 3 cube and use indexing to make it simple. If you want a bit of a challenge then make it able to handle a variable size array. In my solution I struggled with my array resigning values on my source array. I tried to solve this by making the array a constant but I learned that constants didn't help me at all. I was unable to add things to a blank array the way that I had wanted to as well. So I decided to recreate a dummy array by using my create array function using the size of the source array. This way I could have an array that was completely unassociated with the source array... If you write a simple 3 X 3 array and the coordinates on a piece of paper you may notice something important. If you want the cube to turn to the right you want your top row ([0]) to be (0, 2) (1, 2) (2, 2). This is really helpful because the length of the array is 2! so you can simply make a loop within a loop (I know not the best) and set the Y coordinate to be the total size of the input array while filling a temporary array. This temporary array then is used to reassign values in the dummy array.Once the values are assigned the temporary array is set once again to an empty array. 


javascript```
function printArr(box){
  for(let i = 0; i < box.length; i++){
    console.log(box[i])
  }
}

function createBox(size){
  let retArr = [];
  let arrIncrement = 0;
  let counter = 1;

  if(size < 3){
    return
  }
  for(let i = 0; i < size; i++){
    retArr[i] = []
  }
  for(let i = 0; i < size; i++){
    for(let j = 0; j < size; j++){
      retArr[i][j] = counter;
      counter++;
    }
  }
  return retArr;
}

function olBoxTurn(box){
  const boxStatic = box;
  let boxManip = createBox(box.length);
  let tempArr = [];
  let size = box.length;
  let yCord = size - 1;

  for(let x = 0; x < size; x++)
  {
    for(let i = 0; i < size; i++){
      tempArr[i] = boxStatic[i][yCord]
    }
    boxManip[x] = tempArr;
    yCord--;
    tempArr = [];
  }
  return boxManip;
}



let arr = createBox(4)
arr = olBoxTurn(arr)
printArr(arr)
```
Python function
Published: 2021-01-14 18:20:12

Hello, everybody and welcome to a [python](https://python.org) 3 article. We're going to be discussing the basics of a python function.

The idea of a function is to assign a set of code and possibly variables known as parameters to a single bit of text.

So you can think of it a lot like why you choose to write and save a program rather than writing out the entire program every time you want to execute it or in a much smaller scale.

## Create function

So to begin a [function](https://pythonspot.com/functions/) you define the function by using the Keyword **def** short for Define?

```python
def food():
    task
    task
    task
```

in this notifies python of the impending function definition

From there you're going to type out whatever name you want to refer to your function as now you want to be kind of careful
in the name of your function.

Just like you would want to be careful in the name of your variable you want to choose *something unique*, and it's not going to conflict with anything else.

```python
def food():
    print('2x bread')
    print('3x cheese')
```


![paperclip. I see you are learning Python, can I help you?](https://dev-to-uploads.s3.amazonaws.com/i/4rt3ef0gmfdu5jazvues.jpg)

## Rules

Now if you define a function and you call the [time](https://pythonbasics.org/time-and-date/) it's going to conflict with the time module should you use it so you don't want to use time?

So for us, we're just going to use example and after the definition of the functions name you have the parentheses and within the parentheses you have any parameters.

```cpp
void hello() 
{
    printf("hello world\n");
    printf("this is in C\n");
}
```

For now, we're just gonna leave those empty, but I will show you guys in some future article how to use parameters after.


Going to be your function block so as you type code and you hit enter you've got this is all contained in your [function](https://pythonprogramminglanguage.com/functions/)

```python
def function():
    inside 
    inside
    inside
    inside

outside
```

And then finally when you come over here and start typing more code that's outside of the function.

so this is the function so that's kind of the idea of python functions whereas other programming languages generally you're going to have curly braces and you type within the curly braces.

## When do we use functions?

In Python, you use functions *all the time*. Even functions of other people or the python standard library like the [input](https://python-commandments.org/python-input-function/) function

we use just **indent** and indent only so for example. We're just going to say print basic function. so this is the function basics
My first hackathon - MLH LHD- Build 2021
Tags: mlh, majorleaguehacking, localhackday
Published: 2021-01-15 16:26:08

#### What is MLH LHD Build?🤔
Well it is **[Major League Hacking - Local Hack Day Build](https://localhackday.mlh.io/build)**.
Major League Hacking is the Organization and Local Hack Day - Build is the name of the hackathon event. 

#### About the event✨
It started on 10th Jan 2021 and will end on 18th Jan 2021.
This is my first ever hackathon. I was nervous for this event due to imposter syndrome, but its going pretty well.

There were daily challenges and weeklong challenges.
They are beginner friendly and there are many workshops to enhance our skills and knowledge.

#### Takeaways🤩

I personally developed some amazing apps in Flutter like sending sms using twilio, chess app, tic tac toe, translator, speech recognition app, working with data sets and many more.

This event has made my profile strong and I'm very confident about attending more hackathons in future.

The workshops conducted at MLH are best, the instructors/ coaches are incredible. The coaches **Jackyln, Ryan + Totally Not Ryan 😉, Mary, Mara, Chris, Will, Shasrika , Kunal, Aditya** to name a few, I'm really thankful to them.🤗

**I repeat they are the best!**

I finally created my portfolio using Github pages, thanks to the coaches.🎉🥳

#### Do you know the best part of these challenges?
> Learning never felt so good 

Apart from challenges we had many games to play, draw Ellie elephant, Bob Ross and Bhlahaj, cupstaking and many more.

I just loved it.❤

Though there were points for completing each challenge, I personally focused on learning the concepts and trying it out.

I'm sure that I'm going to participate in all the future events by MLH. Well, **MLH Share is on the way - in April**. I would recommend the developers at every level to give it a try. You would definitely love it, thank me later!

#### Did I shared about prizes?

We will get swags and stickers from MLH. Can't wait to get mine.😄

Author: Priyadarshini Chettiar

[LinkedIn](https://www.linkedin.com/in/priyadarshini-chettiar-476332129/) | [Hashnode](https://priyadarshinichettiar.hashnode.dev/) | [Twitter](https://twitter.com/priya_darshu_) | [Devpost](https://devpost.com/priyadarshinichettiar) | [Github](https://github.com/priyadarshu)| [Portfolio](https://priyadarshu.github.io/)
Magento 2 Security Checklist
Tags: ecommerce, magento2, security
Published: 2021-01-15 15:43:54

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

Security is a crucial component of any prosperous eCommerce business. If Magento platform is your retail company's faithful servant, you should definitely know how to ensure your Magento 2 store security.

Why is it so important? Online store hacking is a widespread phenomenon. And the most fundamental duty of any digital entrepreneur is to take care of protection of his clients’ online data. 

###Let’s discover together what are the main measures to carry out to make sure your web-store is totally safe from cybercriminals:###

1. Use Magento Security Scan to track your website well-being;
2. Update security patches;
3. Ascertain user authentication process is reliable;
4. Make sure confidential data is under protection;
5. Check the status of antivirus databases;
6. Turn off non-protected PHP commands;
7. Enable restricted access to the local.xml file;
8. Conduct regular checks of the server’s action log to detect malicious activity;
9. Check third-party tools for vulnerability.

Online store security is certainly a serious topic that should always be on agenda. Dive deeper into this topic, reading 
[the top 10 Magento 2 Security Best Practices list](https://dinarys.com/blog/ensure-magento-2-security).
2021 checklist
Published: 2021-01-15 17:45:59

Resource and courses i want to take

1. [Automation testing ](https://www.lambdatest.com/certifications/selenium-101)
2. [Database systems] (https://www.netacad.com/courses/iot/introduction-iot)
3. [Introduction to iot](https://www.netacad.com/courses/iot/introduction-iot)
4. [Building Robots with TJBot](https://cognitiveclass.ai/courses/build-robots-with-tjbot)
5.  [How to Build Chatbots] (https://cognitiveclass.ai/courses/how-to-build-a-chatbot)
6. [project based learning] (https://dev.to/hb/7-fullstack-projects-you-need-to-make-in-2021-bdn?utm_source=digest_mailer&utm_medium=email&utm_campaign=digest_email)
7. [Javascript 30] (https://javascript30.com/)
8. [Vannilla JS- projects] (https://thesmartcoder.dev/9-awesome-projects-you-can-build-with-vanilla-javascript/)
9. [Google ventures startup workshops] (https://www.youtube.com/playlist?list=PLQjb7PbWSDVatTnWnc880u9m7LX0UHhwC)
SQL DDL STATEMENTS
Tags: sql, datascience, opensource, database
Published: 2021-01-15 17:42:22

Apology for the delay of post.
In this post we will try to learn about how to create table in SQL using SQL CREATE Query.

First of all you need to know that why SQL statements are used, they are used for interacting with entities, attributes means tables and columns in short and their tuples in relational database.

SQL statements fall in two different categories: 1) Data Definition Language(DDL) 2) Data Manipulation Language(DML).
DDL statements are used to define,change or drop database objects such as tables. Common DDL statements type includes :
i)CREATE : Used to creating tables and defining columns.
ii)ALTER : Used for altering tables including adding and dropping columns and modifying datatype.
iii)TRUNCATE : Used for deleting data in a table but not the table itself.
iv)DROP: Used for deleting data.

**CREATE TABLE STATEMENT**:
 Syntax-- CREATE TABLE table_name
          {
            coulmn_name1 datatype optional parameter
          }

You use the create table query followed by the table name you want to give and then with the columns name separated by commas.

Example: CREATE TABLE BOOKS
         {
           Author_name varchar(10) PRIMARY KEY NOT NULL,
           Price char(40),
           Year char(4),
         }
The name of the table will be BOOK, and its attributes such as Author_name, Price, Year, etc. will be the columns of the table.n this table, we will also assign the Author_name attribute as the Primary Key, so that no duplicate values can exist.

Now you know that the CREATE TABLE statement includes definition of attributes of columns in the table, including Names of columns Datatypes of columns And other Optional values if required such as the Primary Key constraint.

In next post we will cover other three DDL statement.
Crio learning experience
Published: 2021-01-15 17:41:15

So my journey started with Crio by learning the basics of HTTP. I got learn how http and https are different, how cookies work. To my excitement I got to know how I can create a post using the chrome developer tool. As they basically provide how I can learn new things by craving for more. I got to know how I can repost a file which has the same name. 
Getting forward I got to know how REST API works. And how industry call it as REST over HTTP. The things were explained in a detail and in a practical way.
Linux basic started with basic unix commands and how linux can be used for various operations. To open a file from command line, to create a directory and how tree file system works.
We got to make our hands dirty with AWS cloud services where we learned how to deploy an app server.
At last from git basic i got to know how to push or pull files from repository.
In all it was a great learning experience made me feel frustrated at times when my assignment did not work as planned but thats part of coding. The greatest giveaway that i can take from this one week of learning is how Crio used different approach to make students and professional learn what are just videos in different learning courses. 
#Crio,#CWoD,#ShareYourLearning
Explaining Programming to an 8 year old
Tags: programming, computerscience, technology
Published: 2021-01-15 17:17:29

The advent of complex software applications, languages and paradigms has further enshrouded the concept of computer programming into more obfuscation. With the preponderance of programming languages, it’s becoming more difficult to explain what programming is in a very lucid form.

__Here’s how I defined programming to my younger brother:__

_Human and Computers are similar. You give humans instructions and they execute them. For instance, I give you a written list of chores to perform at home on a Saturday and you perform them sequentially until you’re done. A computer works in a similar fashion; you give it instructions and it executes them. Now, the list of chores I give to you may not be written in your native language which you can comprehend. In fact, there are hundreds of possible language I could employ in writing the list of instructions. In such a case, you will need to a translator to translate the set of instructions into your native language. You have two choices: A translator who takes the list of chores, rewrites them into your native languages and passes it back to you or a translator who takes the list of chores, translates a single instruction, waits for you to execute and proceeds to the next. In the computer’s context, these two forms of translations are carried out by special programs called_ __Interpreters and Compilers.__ _They both translate a set of instructions (programs) from one language to the computer’s native language, which are series of 0s and 1s known as_ __Binary__.
_Humans have to remember what they are do. Going back to our instance, you have to remember that Oh I am going to do the dishes at 3pm and Clean my room by 5pm. This function is carried out by your brain. A computer also has a memory which enables it remember it’s instructions. These are in the forms of RAMS and ROMS. You can think of RAM to be the active part of your brain which holds the most urgent instructions and the ROM as the passive part of the brains which holds the less urgent ones. If running late, you may decide to do two things at the same time (multi-tasking). You can also prioritize certain tasks over the other based on importance, duration of task and other metrics. A computer’s processor does this too. A computer processor is the part of a computer that executes the tasks, very similar to our brain. However, a processor is much faster. You can think of a processor as an octupos with many hands as compared to humans with just two hands. The processor takes the translated instruction as executes it for us to see as output just as you would wash a dish and wave it for everyone to see. I hope you now understand what computer programming is_.

Share your thoughts in the comment section.

P/S: If you are on the look-out for someone who to write article for blog regarding anything web development, I am avialable! 

Kindly hire me on Fiverr [HERE](https://www.fiverr.com/s2/f09ab8dadf)
Hacktoberfest Swag 2020
Tags: hacktoberfest, digitalocean
Published: 2021-01-15 17:04:18

Today when I want to track my courier in DHL eCommerce, I found this error, does anyone face this type of stuff? actually my order has been shipped but it was in EN route day before yesterday but today it's showing this error, bit worried now 🙁🙁😐
Python Format Specifier for Thousands Separator
Tags: notes, python, number, format
Published: 2021-01-17 04:32:59

---
title: Python Format Specifier for Thousands Separator
published: true
date: 2021-01-15 17:00:00 UTC
tags: Notes,python,number,format
canonical_url: https://clavinjune.dev/en/blogs/python-format-specifier-thousands-separator/
---

![Photo by @volkanolmez on Unsplash](https://images.unsplash.com/photo-1457904375453-3e1fc2fc76f4?w=1920)

I hate to say this, but I forgot this one-liner syntax in my online coding test. So, I think I need to put this here.

```python
format = lambda n: '{:,}'.format(n)
print(format(-1234567890)) # -1,234,567,890
```
Pure CSS | Contact Form Dialog | Concept Design
Tags: codepen, design, webdev, css
Published: 2021-01-15 16:43:03

<p>This is a pure CSS implementation of "Contact Me" form.</p>

<p>Buttons has a shade of skeuomorphism element. I used <code>box-shadow</code> attribute, and set the value to <code>inset</code> to implement this effect. When pressed, I just did a little trick to have an illusion that the button was pressed, by darkening the actual button, and removing the <code>box-shadow</code> outside the button.</p>

<p>The background of the dialog itself has a glassy element, by blurring its backdrop using <code>backdrop-filter</code> attribute. The effect can be shown, if the opacity of the dialog is little lower. It is to show the backdrop of the actual dialog element.</p>

<p>The labels of the text boxes has a "floating label" effect. I created this by using the <code>:not(:placeholder-shown)</code> pseudo selector/element. The placeholder itself is not a <code>:placeholder</code>. It is actually hidden from the sight. I actually used <code>&lt;label&gt;</code> tag to implement this.</p>

<p>Icons by <a href="https://www.fontawesome.com/">Font Awesome</a>.</p>

{% codepen https://codepen.io/takaneichinose/pen/poEqojV %}
#Hosting With cPanel React App
Tags: react, cpanel, namecheap, hosting
Published: 2021-01-15 16:37:07

In this post I will share with you how to Host your React App after you got the domain name and you already got the space on a web server for your web site.


After you have created your app using npx create-react-app and you have all your files up and running locally congrats you five steps closer for deployment.


##First!!! 
In you package.json file change the address from localhost:port to your DOMAIN NAME.In case you do not have it jut add it like this:
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/ckjl9d32n0qsco3xpn2t.png)

##Second!!!
Run locally on your machine npm run build .This should create a **Build** folder in your app
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/bwfm2aw2z2f1zz2t7hol.png)

##Third!!!
Go to the build folder that you have just created open the folder and **Compress all the items inside that folder
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/hje522wr38ezx66q3prk.png)
Now you have a .zip folder witch you might drag on Desktop window because we gonna use this folder next.

##Fourth!!!
In **cPanel** open the file manager and inside public_html folder download the .zip folder that we just created 
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/kjozdsisosf057ebo96c.png)
After that extract it by right clicking on the folder 

Congratulations you are one step closer from having your web site hosted.


##Fifth!!!
Finally last step and most important one is to add a few lines of code in the hidden **.htaccess** file.
You can do it by going to cPanel settings and select **Show hidden files(dotfiles)**
Go to edit .htaccess file and add this code

```<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteBase /
  RewriteRule ^index\.html$ - [L]
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !-l
  RewriteRule . /index.html [L]
</IfModule)```

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

**Voila you made it, your site should be running on a shared server now and you can access it everywhere in the world**

If this post helped you and you want to connect [Here is my Twitter](https://twitter.com/GrigoreMrc)
📄 Kedro - My Data Is Not A Table
Tags: kedro, python, data
Published: 2021-01-15 16:24:43

---
canonical_url: https://waylonwalker.com/kedro-pickle
cover: /static/kedro-pickle-xmas2020.png
cover_image: https://waylonwalker.com/kedro-pickle.png
published: true
status: published
series: kedro
tags:
- kedro
- python
- data
templateKey: blog-post
title: 📄 Kedro - My Data Is Not A Table
---

In python data science/engineering most of our data is in the form of some sort of table, typically a DataFrame from a library like pandas, spark, or dask.

## DataFrames are the heart of most pipelines

These containers for data contain many convenient methods to manipulate table-like data structures.  Sometimes we leverage other data types, namely vanilla
types like lists and dicts, or even numpy data types.

{% post waylonwalker/what-is-kedro-lob %}

> unfamiliar with kedro, check out this post

## Sometimes datasets are not tables

There are times when our data doesn't fit nicely into a DataFrame. Lucky for us Kedro has pickle support out of the box.  Pickle is a way to store any python
object to disk.  Beware that pickle files coming from an unknown source can run malicious code and are considered unsafe.  For the most part though when you
read and write your own pickle files they are a good tool to consider.

> See more about [pickle](https://docs.python.org/3/library/pickle.html) from python.org.

## Cataloging Pickle

I may have a dictionary that describes some cars.

``` python
{
  'truck-012-abc': {
    'type': 'truck'
    'sales': [12, 2, 3, 4, 8]
    'weight': 9024,
    'accesories': ['leather', 'audio-1']
}
```

In the catalog, we will simply set the type as `pickle.PickleDataSet` and give it a `filepath`.

``` yaml
cars:
  filepath: data/cars.pkl
  type: pickle.PickleDataSet
```

> This `filepath` does not have to be on the local filesystem it can be on the cloud thanks to how kedro utilizes `fsspec` for each of its datasets.

## Loading the dataset

The benefit of cataloging this dataset compared to leaving it as a `MemoryDataSet` is that you can easily load this data back into memory for further development or debugging without running any of the pipelines.

``` python
catalog.load('cars')
```
When Should You Jump From Your Job?
Tags: career
Published: 2021-01-15 16:11:44


After you start at a new place:

Every 4 months have a one-on-one meeting with your supervisor. Talk about your progress within the company/agency/group, and voice your support for participation in projects or programs that would be beneficial to your career, or promotions. Let your supervisor know you are interested in challenges.

If you get to a point where your career trajectory at a company/group/whatever is stagnating - THEN you should start looking for another position.

If you're at the same company for a while but you're progressing, there can be advantages - hikes, more money in stock options, higher responsibilities, you get to REALLY know your clients.

If you're in a company and **you let them know you're up for challenges or promotions and nothing happens - and you're demonstrating you can handle the harder work - that's a sign to move on**.

You are worth more the more you learn. Otherwise, you are getting paid less the more you know.