teleren/devto huggingface dataset:
DAY23: Python day 31
Published: 2024-02-15 11:58:28

##Capstone Project: Flash Card App##
This project was the biggest struggle by far, primarily because I was not fully proficient with all the packages. 
Here are the things I should remember that may come in handy:

**Pandas**
- when converting list into .csv file, make dataframe first
- can specify file location as parameter of to_csv() function 
```
    data = pandas.DataFrame(to_learn)
    data.to_csv("data/words_to_learn.csv")
    new_random_word()
```
- no need to use `with` or `open` when there is `read_csv()` function
- dictionary becomes list when used parameter `orient="records"`
```
data = pandas.read_csv("data/french_words.csv")
to_learn = data.to_dict(orient="records")
```
**tkinter**
- can create text within canvas with `canvas.create_text()`
- when creating text inside a canvas, keyword argument to change color is `fill`
```
card_title = canvas.create_text(400, 150, fill="black")
```
- to modify things inside canvas, first store as a variable and then use `itemconfig()` function
```
canvas.itemconfig(card_title, fill="white")
```
- use `canvas.after()` function to create timer without using `while` loop
- `canvas.after(milliseconds, function)`: carries out a certain function after given milliseconds
-in order to prevent timer overlap, we can create a variable to store it 
```
def new_random_word():
    global flip_timer
    canvas.after_cancel(flip_timer)
    ...
    flip_timer = canvas.after(3000, func=flip_card)
...

flip_timer = canvas.after(3000, func=flip_card)
```


**miscellaneous**
- `.remove()` function to delete item from list 
- can access files that are under the same folder without `./` or `../`
Streamline Your Deliveries with Delivery Management Software
Tags: deliverymanagementsoftware, deliverytrackingsoftware, lastmiledelivery, blockchaintraceability
Published: 2024-02-15 11:54:11

Our Delivery Management Software is the ultimate solution for businesses looking to optimize their delivery operations. Say goodbye to inefficiencies, delays, and customer complaints. With our software, you can effortlessly manage your entire delivery process from start to finish.
Resolving cPanel Git Error Code 128: ‘Permission Denied’ Issue
Tags: cpanel, devops, webdev, programming
Published: 2024-02-15 11:53:27

The error code 128 may be encountered by many users of cPanel. cPanel's "cPanel GitTM Version Control" icon displays the following error message when you attempt to create a new Git repository:

`“/usr/local/cpanel/3rdparty/bin/git” reported error code “128” `when it ended: Permission denied, please try again.`

`Permission denied, please try again.`

`Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).`

`fatal: Could not read from remote repository.`

## Description 

The "Clone URL" field will not allow you access to the remote Git repository. In this guide, you will learn how to configure key authentication for accessing the remote repository.

In order to resolve the error described in the symptoms section above, you need to use SSH instead of Git or HTTPS. For SSH, Git providers usually give you a URL that starts with ssh://, or in the case of Github, just a username: git@

Before starting the steps in the guide that is linked below, you should have already obtained the SSH version of the Git repository URL for the remote repository you need to clone. The instructions for adding a public SSH key to your remote Git repository provider's system so you can access it from your cPanel server are provided below.

## How to Fix?

You need to learn to set up and access private repositories using Git. Click [here](https://www.milesweb.in/hosting-faqs/learn-to-set-up-access-to-private-repositories-using-git/)
Top Courses to Study in Sweden
Published: 2024-02-15 11:51:17

Sweden is a top destination for students seeking a high-quality education in Europe. With its strong emphasis on innovation, sustainability, and social responsibility, Sweden offers a range of top courses across various fields. Some of the most popular courses to **[Study in Sweden](https://www.studies-overseas.com/country/study-in-sweden)** given below :

- Engineering and technology

- Business and Management

- Computer Science & Mechanical Engineering

- Law

- Energy Transition – Sustainability and Leadership

- Game Design and Graphics

- Network Design and Computer Management

- Prosthetics and Orthotics

- Industrial Management

- International Financial Analysis

- International Logistics and Supply Chain Management

- Medical Sciences

- Solar Energy Engineering
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/h0mxy8d1ohrc12wek1fi.jpg)
😱 Andrej Karpathy departs OpenAI
Tags: openai
Published: 2024-02-15 11:48:48

Renowned AI researcher and founding OpenAI member Andrej Karpathy just [**announced**](https://twitter.com/karpathy/status/1757600075281547344) he is departing the company for a second time, posting on X that he plans to pursue personal projects.


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

**The details:**

- Karpathy helped found OpenAI in 2016 before serving as Tesla's Senior Director of AI for five years, rejoining Sam Altman and co. in 2023.
- The departure follows OpenAI's drama with Altman and the board, which has since relegated fellow co-founder Ilya Sutskever to an unclear role in the company.
- Karpathy emphasized that no drama or event led to the departure and that he was simply pursuing personal projects (including his famous AI lectures on YouTube).

**Why it matters: **Between the mystery surrounding Ilya Sutskever and now Karpathy's departure, something seems fishy between the science and business arms of OpenAI. All eyes now turn to where Karpathy heads next - with likely no shortage of suitors for one of the world's top AI minds.
5 Steps to Accelerate Your Digital Transformation
Tags: marketing, socialmedia, discuss, productivity
Published: 2024-02-15 11:39:07


![Digital Transformation](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/aj2l8l0qgbpfcn3rtvf1.jpg)

Digital Transformation has become a crucial aspect for businesses to stay relevant and competitive in today’s fast-paced digital world. Embracing technology and digitizing processes can significantly enhance efficiency, expand market reach, and increase customer engagement too.

## Explore five essential steps to accelerate your digital transition journey

### 1. Business Website

A user-friendly and visually appealing website is the foundation of any successful digital transformation strategy. Your website should effectively represent your brand, provide relevant information, and offer seamless navigation. Ensure that your website is responsive, optimized for mobile devices, and equipped with secure payment gateways for e-commerce functionality. Regularly update your website with fresh content to attract and retain visitors.

### 2. Creating Corporate Profiling for Digital Transformation

Build a strong online presence by creating and maintaining profiles on relevant platforms such as LinkedIn, Twitter, and Facebook. Your online profiles should reflect your brand image, clearly communicate your company’s values and offerings, and engage with your target audience. Furthermore, regularly update and share valuable content, actively participate in discussions, and respond to customer queries promptly. Also, utilize analytics tools to measure the effectiveness of your online profiles and make necessary adjustments.

### 3. Engaging Customers and Prospects Through Email Marketing

Email marketing remains an effective tool for customer engagement and nurturing relationships. Develop a comprehensive email marketing strategy that includes segmenting your audience, creating personalized content, implementing automation, and tracking the performance of your campaigns. Encourage website visitors to subscribe to your email list by offering valuable incentives such as exclusive discounts, informative newsletters, or free resources accordingly. Additionally, regularly analyze data from your email campaigns to refine your strategy and improve conversion rates.

**Article Source:** [https://www.infiraise.com/5-steps-to-accelerate-your-digital-transformation/](https://www.infiraise.com/5-steps-to-accelerate-your-digital-transformation/)
Magento Online Shop Development: How to Build A Great Online Shop
Tags: magento, webdev, ecommerce
Published: 2024-02-15 11:24:07

Magento Online Shop Development: How to Build A Great Online Shop

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zr4gj3mfx99oul3iltvx.jpg)
There are numerous online shop development platforms available in the market. Among these platforms, Magento is a popular choice for many online retailers as it offers a wide range of features, including a powerful content management system, a comprehensive shopping cart, and a secure payment system. 

A Magento online shop will have an attractive and user-friendly interface and can be personalized to meet any business's specific needs with its built-in tools. Thus, if you are an entrepreneur looking to create an online store, you can end your search for an ideal platform with Magento.



In this article, you will learn that online shop development is no longer difficult for online sellers. You can make it happen with the six steps below.

https://www.yuhiro-global.com/magento-online-shop-development-how-to-build-a-great-online-shop/



#ecommerce #magento #webdevelopment
Climbing the Ladder: How to Become a Staff Software Engineer from Junior Engineer
Tags: careergrowth, softwareengineering, staffsoftwareengineer, juniortosenior
Published: 2024-02-15 11:23:46

Are you tired of being stuck in a junior software engineering role? Do you dream of climbing the corporate ladder and becoming a staff software engineer? If so, you're in luck! In this post, we'll explore the steps you can take to make that dream a reality.

## What is a Staff Software Engineer?

A staff software engineer is a senior-level software engineer who has demonstrated expertise in their field and has been recognized for their contributions to the company. They are typically responsible for leading projects, mentoring junior engineers, and driving technical decisions within their team.

## Why Become a Staff Software Engineer?

Becoming a staff software engineer can open up new opportunities for career growth and advancement. As a staff engineer, you will have the chance to work on more complex projects, take on leadership roles, and have a greater impact on the direction of your company. Additionally, staff engineers are often rewarded with higher pay and better benefits.

## How to Become a Staff Software Engineer

Becoming a staff software engineer takes time, dedication, and hard work. Here are some steps you can take to get started:

1. **Build a Strong Foundation**: The first step to becoming a staff software engineer is to build a strong foundation in software engineering. This means gaining a deep understanding of programming languages, data structures, algorithms, and software design principles. You should also be familiar with industry-standard tools and technologies.

2. **Gain Experience**: Experience is key to becoming a staff software engineer. Look for opportunities to work on challenging projects and take on more responsibility within your current role. You can also consider taking on freelance or consulting work to gain additional experience.

3. **Develop Soft Skills**: In addition to technical skills, staff software engineers need strong soft skills. This includes communication, leadership, and problem-solving abilities. Look for opportunities to develop these skills, such as leading a team or participating in a hackathon.

4. **Network and Learn from Others**: Networking with other software engineers can help you learn about new opportunities and stay up-to-date on the latest trends in the field. Attend conferences, join online communities, and participate in meetups to connect with other professionals.

5. **Show Initiative**: Staff software engineers are proactive and show initiative. Look for ways to contribute to your team and company beyond your current role. This could include proposing new projects, volunteering for additional responsibilities, or mentoring junior engineers.

## Conclusion

Becoming a staff software engineer takes time and effort, but it can be a rewarding and fulfilling career path. By building a strong foundation, gaining experience, developing soft skills, networking, and showing initiative, you can set yourself up for success and achieve your career goals.
Load assembly at runtime with .Net 6*
Tags: webapi, dotnetcore, opensource, assembly
Published: 2024-02-15 11:15:13

Back in the days of .Net framework it was straight forward to load assemblies at runtime using ‘System.Reflection’ library.
When platform independent .Net Core was introduced, it came with lot of new approaches and designs that broke conventional implementations. Loading runtime assemblies was one of them.

I spent good amount of time on figuring out a generic way of achieving this and implemented a reusable & simple open-source library. This library is tested on .Net 6, .Net 7 & .Net 8.
Library location: https://github.com/dheerajawale-svg/dynamic-dependency-loader
Nuget package: https://www.nuget.org/packages/DynamicDependencyLoader

## Here is the explanation and reasoning of the library.
If you are using .Net core (3.1, 6, 8 etc.) for development, you must have come across *.deps.json.

There were reasons to get rid of the old ways to introduce *.deps.json.

- Platform Independent deployment: New Self-contained deployment does not rely on any shared components to be present on the target system whether it is Linux or Windows or others. 
- Efficient resource management: This file not only describes your dependencies packages but also helps to solve the dependency hell.
- Easier to manage: the deps.json file defines a list of dependencies that can be dynamically linked. Normally, this file is machine-generated, and can get really big and complicated for a real-world app. But it’s plaintext, so we can craft it with just an editor.

As mentioned above, .NET Core can be configured to dynamically load assemblies from multiple locations. 
These locations include:

- App base directory (in the same folder as the entry point application, no config required)
- Package cache folders (NuGet restore cache or NuGet fallback folders)
- An optimized package cache or runtime packages store
- The servicing index (rarely used. For Windows Update purposes.)
- Shared framework (configured via runtimeconfig.json)
How to Integrate Figma Design Tokens with Material UI in React
Published: 2024-02-15 11:12:50



* * *

Design tokens and component libraries offer significant advantages for web development. This article demonstrates how to integrate Figma design tokens with Material UI in React to establish a well-structured and customizable design system.

**Prerequisites**

* Understanding of React, Material UI, and design token concepts.
* A Figma project where design tokens are defined.
* Exported design tokens ready for your React project (JSON or JavaScript object).

**Steps**

1. **Export and Transform Design Tokens**
    * Employ a plugin in Figma (such as Figma Tokens) to export your design tokens in a JSON-like format.
    * If necessary, utilize Style Dictionary to transform tokens into a JavaScript object usable by your React project.
2. **Create a Material UI Theme**
    * Import `createTheme` from Material UI.
    * Establish a new theme, mapping Figma design tokens to Material UI theme properties:
        ```java
        JavaScriptimport { createTheme } from '@mui/material/styles';
        import tokens from './theme'; // Your design token file
        const theme = createTheme({
          palette: {
            primary: {
              main: tokens.color.primary,
            },
            // ... other color mappings
          },
          typography: { 
            // ... typography mappings
          },
          spacing: tokens.space 
        });
        ```
   
3. **Apply the Theme with ThemeProvider**
    * Import `ThemeProvider` from Material UI.
    * Enclose your top-level React component with `ThemeProvider`, providing your custom theme:
        ```java
        JavaScriptimport { ThemeProvider } from '@mui/material/styles';
        function App() {
          return (
            <ThemeProvider theme={theme}>
              {/* Your React Components */}
            </ThemeProvider>
          );
        }
        ```
       
**Example – Styling a Button**

Illustrating use of a spacing token within button padding:

```java
JavaScript// theme.js
module.exports = {
  space: {
    paddingMedium: 16
  }
};

// React Component
import { Button } from '@mui/material';

<Button 
  variant="contained" 
  sx={{ padding: theme.space.paddingMedium }} 
>
  Click Me
</Button> 

``` 

**Additional Considerations**

* **Tool Assistance:** For complex projects, Style Dictionary helps with theming format conversions.
* **Specificity:** To adjust individual components, prioritize Material UI's `sx` prop or stylesheets over theme attributes.

**Conclusion**

The smooth integration of Figma design tokens with Material UI enables a coherent design language across your React application. This technique simplifies development, facilitates effortless brand changes, and improves the overall user experience.
DEVOPS TRAINING IN HYDERABAD | DEVOPS TRAINING IN KUKATPALLY/KPHB|DEVOPS ONLINE TRAINING
Published: 2024-02-15 11:12:31

KosmikTechnologies: KOSMIK is a Global leader in training, development, and consulting services that help students bring the future of work to life today in a corporate environment. We have a team of certified professionals and experienced faculty working with latest technologies in CMM level top MNCs.

About course: ‌Kosmik Technologies is one of the best Devops Training Institutes in KPHB, Hyderabad. Here the trainers are highly qualified working one of the MNCs. The Devops Training class consists of more practical sessions   



Key Features: ‌

Interactive Learning at Learners convenience
Industry Savvy Trainers
Real-Time Methodologies
Topic wise Hands-on / Topic wise Study Material
Best Practices /Example Case Studies
Support after Training
Resume Preparation
Certification Guidance
Interview assistance
Lab facilities	

About offered courses: ‌

kosmik Provides Python, AWS, DevOps, Power BI, Azure, ReactJS, AngularJS, Tableau, SQL, MSBI, Java, selenium, Testing tools, manual testing, etc…

Contact US: ‌

KOSMIK TECHNOLOGIES PVT.LTD
3rd Floor, Above Airtel Showroom, 
Opp KPHB Police Station, Near JNTU, 
Kukatpally, Hyderabad 500 072. INDIA.
India: +91 8712186898, 8179496603, 6309565721
https://www.kosmiktechnologies.com/devops-training-in-hyderabad/
Carton conveyor manufacturer Ghaziabad
Tags: beginners
Published: 2024-02-15 11:06:46

**Parthax** stands out as one of the premier manufacturers and suppliers of **[carton conveyors manufacturer in Ghaziabad, ](https://www.parthax.com/Ghaziabad/carton-conveyor)**setting an industry standard for quality and reliability. With a commitment to innovation and customer satisfaction, Parthax has earned its reputation as a trusted partner in the material handling solutions market.

The company's carton conveyors are designed with precision engineering, ensuring seamless transportation of cartons with efficiency and durability. Parthax leverages cutting-edge technology to create conveyor systems that optimize workflow and minimize downtime, contributing to increased productivity for businesses.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/a43ehwo6ooexoho42439.jpg)
What sets Parthax apart is its dedication to customization, tailoring conveyor solutions to meet the unique needs of diverse industries. Whether it's e-commerce, manufacturing, or logistics, Parthax understands the importance of a conveyor system that aligns with specific requirements, ensuring a seamless integration into existing processes.

The reliability of Parthax's carton conveyors is matched by their commitment to outstanding customer service. From initial consultation to post-installation support, Parthax prioritizes client satisfaction, fostering long-term partnerships with businesses in Ghaziabad and beyond.
SOLID Principles In C# - Liskov Substitution Principle
Tags: csharp
Published: 2024-02-15 11:03:15

C# SOLID Principles In C# - Liskov Substitution Principle with some code

In object-oriented programming (OOP), the SOLID principles are a set of guidelines that help developers design software that is easy to maintain, understand, and extend. One of these principles is the Liskov Substitution Principle (LSP). In this post, we will explore what the Liskov Substitution Principle is and how it can be implemented in C#.

The Liskov Substitution Principle states that objects of a superclass should be able to be replaced by objects of its subclasses without affecting the correctness of the program. In other words, a subclass should be able to substitute its superclass in any context without breaking the behavior expected from the superclass.

To illustrate this principle, let's consider an example where we have a base class called Shape and two subclasses called Circle and Rectangle. Each shape has a method called CalculateArea(), which calculates and returns its area.

```csharp
public abstract class Shape
{
    public abstract double CalculateArea();
}

public class Circle : Shape
{
    public double Radius { get; set; }

    public override double CalculateArea()
    {
        return Math.PI * Math.Pow(Radius, 2);
    }
}

public class Rectangle : Shape
{
    public double Width { get; set; }
    public double Height { get; set; }

    public override double CalculateArea()
    {
        return Width * Height;
    }
}
```

Now, let's say we have a function called PrintArea() that takes an instance of the Shape base class and prints its area. According to the Liskov Substitution Principle, we should be able to pass an instance of any subclass to this function without affecting its correctness.

```csharp
public void PrintArea(Shape shape)
{
    Console.WriteLine("Area: " + shape.CalculateArea());
}
```

This function delegates the responsibility of calculating the area to the respective subclass implementation via the CalculateArea() method.

Let's test this principle by creating instances of the Circle and Rectangle classes and passing them to the PrintArea() function.

```csharp
Shape circle = new Circle { Radius = 5 };
Shape rectangle = new Rectangle { Width = 4, Height = 6 };

PrintArea(circle); // Output: Area: 78.53981633974483
PrintArea(rectangle); // Output: Area: 24
```

As we can see, we were able to pass instances of both the Circle and Rectangle classes to the PrintArea() function without any issues. This demonstrates that the Liskov Substitution Principle has been followed, and the behavior of the base class has been preserved by its subclasses.

In conclusion, the Liskov Substitution Principle is an essential aspect of software design that ensures logical substitution of objects without affecting the correctness of the program. By adhering to this principle, we can create more maintainable and extensible code.