teleren/devto huggingface dataset:
Apache AGE:A quick overview.
Tags: apachage, postgres, sql, cypher
Published: 2023-04-09 21:06:44

I recently started my Internship at Bitnine and learned about this wonderful database tool known as Apache AGE. Apache AGE (where AGE stands for A Graph Extension) is a PostgreSQL extension that provides graph database functionality. The goal of Apache AGE is to enable Postgres users to gain access to graph query modeling in Postgres’ existing relational model. This means that user will be able to leverage on the power of SQL databases as well as graph database. AGE uses the open sourced tool cypher to make graph queries. Apache Age is being built by Bitnine Global and funded by the Apache Foundation.

A relational database management system such as PostgreSQL is a collection of information that organizes data with defined relationships for easy access. While it is easy to relate with other tables, it comes at a considerable cost, especially when there is a large amount of data. 

Cypher is a graph query language developed by Neo4j which is a graph database itself and is used in graph databases. A graph database is a type of NoSQL databases that support data querying using graphs. This does not mean the traditional graphs represented with x and y coordinates used in Cartesian graphs, but rather consist of a network, which helps in more efficient database querying as well as saves time.

In my next blog post, I will cover how to install PostgreSQL 11 from source code, which is currently one of the compatible version for AGE.

[Learn more about AGE](https://age.apache.org/)
[Learn more about Cypher and graph databases using the official neo4j website.](https://neo4j.com/)
WHAT IS UI?
Tags: webdev, beginners, tutorial, react
Published: 2023-04-09 20:31:54

Analogy of the topic is a car with engine but without outer body looks and shape is worthless.
Hey this is Harsh , UI is User interface , how user interact to screen like monitor, mobile screen or web applications, etc.
Types of UI -
GUI - Graphical User Interface
CLI - Command Line Interface
VCI - Voice-Controlled Interface
In websites, through buttons, navigation bars, etc. by which user can interact to the websites. It enhance the user experience and easily provide the required information.
component process order
Tags: react
Published: 2023-04-09 20:09:51

Hello , guys ... Im react beginner trying to understand rendering orden on nested components .. lets supose following structure and console output.

```
import { useState, useEffect } from 'react'
import React from 'react'

export const Comp2 = () => {
  console.log("from component 2")
  useEffect(() => {
    console.log("from component 2 useEffect")
  })
  
  return (
    <>
    <div>Component 2</div>
    <Comp3/>
    </>
  )
}
export const Comp1 = () => {
  console.log("from component 1");
  useEffect(() => {
    console.log("from component 1 useEffect")
  })
  

  return (
    <>
    <div>Component 1</div>
    <Comp2/>
    </>
  )
}
export const Comp3 = () => {
  const [count3 , setCount3] = useState(10)
  console.log("from component 3");
  useEffect(() => {
      console.log("from component 3 useEffect")
    })

  return (
      <>
      <div>Comp3</div>
      <button onClick={()=>{setCount3((count) => count + 1)}} >increment counter3</button>
      <span>{count3}</span>
      </>
    )
}

function App() {
  const [count1, setCount1] = useState(0)
  const [count2, setCount2] = useState(0)

  console.log("Starting  count1 / count2:", count1,count2);
  
  useEffect(() => {
    console.log("from App useEffect")
  }, )
  
  return (
    <>
      <button onClick={()=>{setCount1((count) => count + 1)}} >incrementar contador 1</button>
      <span>{count1}</span>
      <button onClick={()=>{setCount2((count) => count + 1)}} >incrementar contador 2</button>
      <span>{count2}</span>
      <Comp1/>
    </>
  )

}

export default App
```

After F5 on browser, Im recibing following output:

```
Starting  count1 / count2: 0 0
from component 1
from component 2
from component 3
from component 3 useEffect
from component 2 useEffect
from component 1 useEffect
from App useEffect
```
I have following thoughts:
1 Components Processing order depends on nesting order.
2 Why log lines are printed in order begging on the father component to deeper child ? 
3 Why log lines inside useEffect hooks are printed on reverse order? 
4 Incrementing counter 3 only triggers component 3 render...
5 Incrementing counter 1 or 2 renders all nested components,How can I prevent this?

Any brief explaination / document to read would be great.
thanks.
Finished Project 2
Published: 2023-04-09 20:01:23

vercel link: https://project-2-ten-pi.vercel.app/
github repo: https://github.com/carter2625/project-2

We ended up using 5 elements: badge-list, edu-badge, project-2, search-bar, and list. We broke it up this way to make the code more modular and easier to maintain. Separating the search functionality into its own element allowed us to reuse it across different parts of the application, and also made it easier to make changes or updates to the search functionality without affecting other parts of the code. The hardest aspect of this project was implementing the search functionality. We had to make sure that the search query was being passed correctly between the elements. This took a lot of trial and error to make sure it was rendering properly. Creating the UI for the application was easier than expected. The styling was straightforward and we were able to use HTML and CSS to achieve the look we desired.
The end of project 2
Published: 2023-04-09 19:54:15

A link to the github repo for our project can be found [here](https://github.com/pjstrauss12/badge-list).  A link to the vercel website that it is run through can be found [here](badge-list-one.vercel.app) and you can search through the badges yourself.  We ended up making 4 elements, the badge element, the badge list, the search widget, and the steps array.  This made the most sense so one could adjust the content of each badge as well as the steps since those would be different.  Also, the search was its own element so we could wire it up to the backend to return the badges one would want.  The hardest aspect of the project was matching the CSS up to the comp.  It still is not the best, but it is as close as we could get it.  The easiest part of the project was setting up the badge element since it was basically a review from the last project and it was easy to implement.
berufliches Vorwärtskommen: „Wohin sollte ich gehen?“ ↔ „Wohin möchte ich gehen?“
Tags: deutsch, career, 1min
Published: 2023-04-09 19:40:54

Moin Moin,

„Wohin sollte ich gehen?“ ist was Leute sich fragen, die Erwachsen sind und ihre [ursprüngliche Neugierde→](https://dev.to/amustafa16421/22-berufliches-vorwartskommen-ein-gerader-berufsweg-der-anfang-552f) entdeckt haben.

„~~Wohin möchte ich gehen?~~“
„Wohin möchtest du gehen?“, fragen Eltern ihre Kinder, um sie im Prozess der Selbstentdeckung und des Selbstkennenlernens zu unterstützen.

Siehe auch [„32 berufliches Vorwärtskommen: Der eigentliche Weg – Wohin sollte ich gehen?→“](https://dev.to/amustafa16421/32-berufliches-vorwartskommen-der-eigentliche-weg-wohin-sollte-ich-gehen-2c7c)

Beste Grüße,
Mustafa
PIANO Game โดยใช้ Python
Published: 2023-04-09 19:18:26


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

## ขั้นตอนที่ 1 ติดตั้ง pip install
ทำการติดตั้ง
pip install pyautogui
pip install pywin32
pip install keyboard
pip install opencv-python

```
pip install pyautogui
pip install pywin32
pip install keyboard
pip install opencv-python
```
ผลที่ได้


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


## ขั้นตอนที่ 2 impost

from pyautogui import *
import pyautogui
import keyboard
import random
import win32api, win32con
import time

```
from pyautogui import *
import pyautogui
import keyboard
import random
import win32api, win32con
import time
```

## ขั้นตอนที่ 3 เขียนคำสั่ง CLICK

def click(x,y):
    win32api.SetCursorPos((x,y))
    win32api.mouse_event(win32con.MOUSEEVENTF_LEFTDOWN,0,0)
    time.sleep(0.01) #Pause 0.01 sec
    win32api.mouse_event(win32con.MOUSEEVENTF_LEFTUP,0,0)

```
def click(x,y):
    win32api.SetCursorPos((x,y))
    win32api.mouse_event(win32con.MOUSEEVENTF_LEFTDOWN,0,0)
    time.sleep(0.01) #Pause 0.01 sec
    win32api.mouse_event(win32con.MOUSEEVENTF_LEFTUP,0,0)
```
## ขั้นตอนที่ 4 เขียนเงื่อนไข
while keyboard.is_pressed('a')== False:
    if pyautogui.pixel(378,250) == (0,0,0): #แถว1
        click(378,250)
    if pyautogui.pixel(448,250) == (0,0,0): #แถว2
        click(448,250)
    if pyautogui.pixel(525,250) == (0,0,0): #แถว3
        click(525,250)
    if pyautogui.pixel(588,250) == (0,0,0): #แถว4
        click(588,250)

```
while keyboard.is_pressed('a')== False:
    if pyautogui.pixel(378,250) == (0,0,0): #แถว1
        click(378,250)
    if pyautogui.pixel(448,250) == (0,0,0): #แถว2
        click(448,250)
    if pyautogui.pixel(525,250) == (0,0,0): #แถว3
        click(525,250)
    if pyautogui.pixel(588,250) == (0,0,0): #แถว4
        click(588,250)
```

## ตัวอย่าง

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


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

## สรุปผล
เราจะได้เกมส์ PIANO มาเล่น แต่ยังไม่ได้ปรับแต่งให้เข้าที่ สามารถนำไปต่อยอดได้
Create basic Dice Rolling Game in Python
Tags: python, beginners, programming, productivity
Published: 2023-04-09 19:08:19

Today, I will show you how to create a basic python Dice Rolling Game. For this project I used a simple website that doesn't need any signing in, here is the link if you want to follow along. https://www.online-python.com/ 

I your in a rush here is the final code: https://replit.com/@romans1234/Dice-Game-Simplified?v=1

Now let's get started. Because I am using Online Python, we must start with a simple line of code to export the random function used to roll the dice.
`from random import randint`

This is optional but we can create two basic `print` lines to welcome our user to the program.
`print("Welcome to Dice Rolling Game")
print("Intiating Game")`

After this we can assign multiple variables to store data, we will need a variable for the number the user will guess (we will use the input function.) The we can create a variable for each die the computer will role. Lastly, we will have a variable to give the total of both dice rolled.

```
guess = input("Your Guess: ")
die1 = randint(1,6)
die2 = randint(1,6)
total = die1 + die2
```

Our final step is then to create an if statement. In the if statement we have to tell if the user go the answer correct, and if not correct we will need to tell them the correct answer.

```
if total == guess:
    print("Correct!")
else:
    print("Incorrect!")
    print(total)
```

Okay, guess we are all done. For python their is a bunch of online code editors for free you can use (Replit, Online Python, W3 schools, etc...)

```
from random import randint
print("Welcome to Dice Rolling Game")
print("Intiating Game")
guess = input("Your Guess: ")
die1 = randint(1,6)
die2 = randint(1,6)
total = die1 + die2
if total == guess:
    print("Correct!")
else:
    print("Incorrect!")
    print(total)
```
A little bit about me
Published: 2023-04-09 18:40:24

I'm not too sure how to start this I've never actually "blogged" anything besides maybe with using twitter? Does that count? I'll just treat this as a really long tweet.
Well anyways, to whom it may concern... 
I'm a 30 year old who loves art and art history. I would say that my favorite time period would be Renaissance art. I really love all the details in the paintings and how many items that are painted on there are symbolic. If there are white roses, if there's a bowl of fruit, etc. It all has a different meaning to it which I personally think is pretty awesome. If you couldn't tell by now, I was indeed an art major at one point. I went to Cal State University San Bernardino and got my Bachelor's in Visual Studies. I new loved art I just wasn't too sure what I would want to do exactly so I thought maybe I can one day teach art. During my time at CSUSB I took all the courses they offered for ceramics and pretty much fell in love with it. I love throwing on the wheel creating different types of vases, cups, and bowls. Why haven't I pursued ceramics you ask? Well after I graduated I decided to take a break because working full-time and being a full-time student was tough. I took about 3 years off from school continuing to work at Amazon as a transportation Associate. 
During this time off I decided to browse around the courses that Amazon offered through career choice. Web Developer caught my attention which surprised me because I was never one to really be "techy" even when it came to art I stayed with the more traditional side. 
I am currently on the second week of my actual class now after doing the prework and that was a not so fun ride.. It's so funny to me how when it comes to coding you have to really be careful of typos because you miss one letter and it can drive you insane wondering why your code isn't working out only to find out 1 hour or maybe 3 hours later that there is nothing wrong with you but that you just forgot to add a letter or you were typing too quick that you spelled cfat instead of cat. 
I am honestly excited to see what the outcome of this class will be. I enjoy trying and learning new things especially ones that are challenging. Throughout my time in Amazon I have operated a cherry picker and I have been a forklift driver. There were times where I felt like I would never be able to adjust to operating these machines and would often discourage me. But I eventually overcame my fear with these types of machinery and was confident operating them. And now here I am as a transportation Associate with a class A! Oftentimes I can't believe that I am in a tractor with a trailer on the FREEWAY. The more I look back at my accomplishments, whether it be big or small the more it motivates to try new things. I love the challenge and I love gaining new experiences that helps me become the better version of myself. This is what I hope to gain from this class, I'm hoping I can incorporate art somehow with coding, see ya at the end of the finish line!
Understanding React Context: Its Limitations and Best Practices
Tags: webdev, react, beginners, nextjs
Published: 2023-04-09 18:36:43

React Context is a powerful tool for passing data between components and reducing the need for prop drilling. However, it's not designed to be a full-fledged state management solution like Redux or MobX. Misusing React Context for state management can cause unnecessary re-renders and performance issues. Technically, context is simply a wrapper over a component that passes data as props. Therefore, it's important to be mindful of its potential drawbacks and limitations.

So, when should you use React Context? Context is useful for smaller state operations, such as passing data between sibling components. It's also great for reducing prop drilling and making your code cleaner. However, it should not be used for global state, modular-level state, or app state.

To use React Context properly, you need to understand its best practices. First, always declare your context value outside of the provider component to prevent unnecessary re-renders. Second, use the useContext hook instead of the Consumer component to make your code cleaner and more readable. Finally, don't overuse context - use it only for small state operations that don't require a full-fledged state management solution.

In conclusion, React Context is a powerful tool that can help you pass data between components and reduce prop drilling. However, it's important to use it properly and be mindful of its potential drawbacks and limitations. By following best practices and using context only for smaller state operations, you can make your code cleaner and more efficient.
The Keys to Succeeding in Finance: 5 Must-Have Qualities
Tags: finance, accounting, knowledge, skills
Published: 2023-04-09 18:30:00

If you want to work in finance, you need have a few key talents and characteristics. In this article, I'll go through the essential skills and characteristics you need have if you want to work in finance, as well as how they may help your company. Here are five that I believe are crucial: 

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

**1. Accounting knowledge:** This means understanding how to read financial statements and how a company's financial activity is recorded. Even if you're not specifically working in accounting, this knowledge is really important for anyone in finance.

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

**2. Business acumen:** Finance is connected to lots of different parts of a company, so it's important to understand how different operations and transactions affect the company's finances. For example, if a company has a clause in its contract that says it will be paid less if it doesn't deliver on time, you need to understand how that affects the company's revenue.

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

**3. Analytical skills:** There's a lot of data and information in finance, so it's important to be able to understand it and figure out what it means for the company. The better you can do this, the more valuable you'll be to your company.

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

**4. Business partnering:** In finance, you're there to support other parts of the company. That means you need to be able to work well with people in other departments and understand their needs.

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

**5. IT and data literacy:** Technology is really important in finance these days, so it's important to be comfortable with things like Excel and ERP software. If you can also program RPA software or create automated reports, that's even better.

If you're interested in working in finance, make sure you work on developing these skills. And if you know someone who's just starting out in finance, share this article with them!

Thank you for reading!
**Soumyadeep Mandal @imsampro**

**Original Article Source: [LinkedIn](https://www.linkedin.com/pulse/keys-succeeding-finance-5-must-have-qualities-soumyadeep-mandal/)**
"The Ultimate Guide to Computer Science Study: Tips and Strategies for College Freshmen"
Tags: beginners, computerscience, student, programming
Published: 2023-04-09 18:28:02

**Learning computer science can be intimidating, especially for those who have never worked with it before. Anyone, however, can learn and excel in this field with the right approach and mindset. Here are some pointers to help beginners study computer science effectively.**

- Begin with the fundamentals: Before delving into more complex topics, it is critical to first master the fundamentals. Learn about computer science fundamentals such as data types, algorithms, and programming languages. A solid foundation in these fundamentals will allow you to build more complex programmes in the future.

- Coding is a fundamental aspect of computer science that should be practised on a regular basis. The more you practise, the better you will become. Begin by coding simple programmes and gradually progress to more complex ones. There are numerous online resources for beginners, including Codecademy, FreeCodeCamp, and Udacity.

- Work on projects: Projects are a great way to put what you've learned into practise. You can work on personal projects or join coding communities to work on group projects with others. This will not only improve your coding skills, but it will also help you build your portfolio, which is useful when applying for internships and jobs.


- Join a study group: Computer science can be intimidating, but it doesn't have to be done alone. Join a study group with other students studying computer science. You can bounce ideas off each other, work together to solve problems, and motivate each other to keep going.

- Attend lectures and office hours: Attending lectures and office hours is an excellent way to obtain assistance from professors and teaching assistants. They can answer your questions and advise you on how to approach difficult subjects.

- Maintain motivation: Learning computer science can be difficult, but it is critical to maintain motivation. Set goals for yourself, celebrate your accomplishments, and remember why you began in the first place. Computer science can be mastered with hard work and dedication.

**In conclusion, it can be difficult but not impossible to learn computer science as a beginner. Anyone can learn and succeed in this field by starting with the fundamentals, practising coding frequently, working on projects, joining a study group, attending lectures and office hours, and remaining motivated. Therefore, don't be reluctant to begin learning today if you're a high school freshman who has never worked with computer science before.**
My Self-Taught Journey to Python and Machine Learning
Tags: python, machinelearning, datascience, programming
Published: 2023-04-09 18:03:32

Hey there! My name is hediye, and I'm a 22-year-old who just finished university. After graduation,
I promptly got hit in the face with the harsh reality that nobody wants to hire a fresh-faced graduate without experience, not even for an unpaid internship. So, I decided to take matters into my own hands and become a self-taught data scientist. Now, I know what you're thinking, 'Another one?!' But hear me out.

I've spent hours pouring over online tutorials, trying to wrap my head around the ins and outs of Python and machine learning. But you know what? It's been a blast! There's something oddly satisfying about figuring out how to code something and then seeing it come to life on the screen.

Plus, I decided to document my journey through a blog, so you can join me for the ride. I'm sure there won't be many of you (if any at all), but hey, it's always nice to have company.

My ultimate goal is to become a skilled data scientist and use my knowledge to solve real-world problems. I know it won't be easy, but I'm excited about the challenge and the opportunity to build something meaningful. I plan to continue working on personal projects to develop my skills and gain practical experience.