teleren/devto huggingface dataset:
How to Add Your SSH Key to Your GitHub Account
Tags: ssh, github, git, keys
Published: 2024-03-13 19:07:47

This is just a self reminder of how to do this and not have to google it every time I need to add a new one.
These steps are solid as they are, but might change over time to create more robust documentation on it.
These steps are all performed from the terminal.

## Create your ssh key with your github email
```
ssh-keygen -t ed25519 -C "your_email@example.com"
```

### Optional
- Name your file name and route when prompted this:(use the site name you are creating the key for id purposes).
```
Enter file in which to save the key (/Users/dgplatac/.ssh/id_ed25519):
```
- Enter a passphrase for added security when prompted this:
```
Enter passphrase (empty for no passphrase):
```

## Add Your SSH Key to the ssh-agent
```
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_ed25519
```

## Copy your ssh key to the clipboard
```
cat ~/.ssh/ed25519.pub | pbcopy
```
Remember to use the correct file name and path.

## Add Your SSH Key to Your GitHub Account
- On GitHub, navigate to your settings by clicking your profile photo, then click Settings.
- In the user settings sidebar, click SSH and GPG keys.
- Click New SSH key or Add SSH key.
- In the “Title” field, add a descriptive label. For example, if you’re using your personal laptop, you might call this key “Personal Laptop”.
- Paste your key into the “Key” field.
- Click Add SSH key.

## Test Your SSH Connection
```
ssh -T git@github.com
```

The following message should display

```
The authenticity of host 'github.com (IP ADDRESS)' can't be established.
RSA key fingerprint is SHA256:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.
Are you sure you want to continue connecting (yes/no/[fingerprint])?
```

answer yes and the following should display:

```
Hi username! You've successfully authenticated, but GitHub does not provide shell access.
```

Silverboi
wordpress: the loop
Published: 2024-03-13 19:05:41

1. use Local for dev development. The theme files are saved in the path: `/Local Sites/site-name/app/public/wp-content/themes/theme-name`/.
2. index.php is normally used as a homepage that display all the posts and single.php displays the single post.
3. php the loop:

```
while(have_posts()){
the_post() 
}
```
`the_post()`function keeps track of the current post. 
When reaching the loop, Wordpress first determines if the page is single.php or not. If not, Wordpress retrieves multiple posts based on the requested criteria. If the loop is in the single.php page, Wordpress will only retrieve the current post.
4. using html in php functions, use `?> <html here> <?php` can display the post data retrieved from Wordpress database to the page. 
For example: `?><h2><?php the_title()?></h2><?php` displays the title of the post
5. adding a new page: go to the admin and click 'add new page'. The url will be shown on page setting. Update the page template in page.php file.
6. page.php displays the template that will apply to all pages except the home and single page. To do conditional rendering, use if statement. For example: 

```
if(is_page('test'){
?><h1>This is a test page</h1><?php
}
```
Permission denied to write sitemap.xml
Tags: webdev, php, xml, website
Published: 2024-03-13 19:02:56

I have created a PHP script for my PHP ecommerce website , that whenever I run this script it replaces new sitemap inside sitemap.xml file. this script works great locally but when running this script on live server i got this error:

{warning: file_put_contents(../sitemap.xml): failed to open stream: Permission denied in /var/www/mywwebsite.com/sitemap-maker.php on line 45}

On local machine its working perfectly on apache/xamp, but on live its creating error which is mentioned above. live web server is: Nginx
I Made A FREE ChatGPT JavaScript Library
Published: 2024-03-13 19:01:57

Hey fellows, what's going on?

# FreeGPT.js
I'm just trying to say, I made a cool repo. It's a ChatGPT library in JavaScript, I call it as FreeGPT.js!

It is literally a piece of code, althought a simple function, but it is a unlimited GPT 3.5 model! You are allowed to try it, come on!

Repo link - https://github.com/ashishagarwal2023/freegptjs
Demo - https://ashishagarwal.is-a.dev/freegptjs/

Please give me suggestions and I will be happy. It is available on jsDelivr also, and here's a way you can use it:

```html
<script src="https://cdn.jsdelivr.net/gh/ashishagarwal2023/freegptjs/src/freegpt.min.js"></script>
```
Load in your head, then call it in body:
```js
(async () => {
  let response = await gpt.ask("Explain variables in javascript");
  console.log(response); // you got it!
})();
```
And its it!

## Wrapping up
Now as you saw my project, don't forget to give a star and follow me on github!
Repo link - https://github.com/ashishagarwal2023/freegptjs
Demo - https://ashishagarwal.is-a.dev/freegptjs/

> It is based on a You.com's GPT 3.5 Model, I reverse-engineered, which was literally not authenicated - no tokens, its free!

> The reason I made it using JavaScript for CDN is: it has Cloudflare security so NodeJS/Python was not able to get the API or scrap it. (using a free scraper, because who pays?)
DevNet: 10 years of community building and education
Tags: ciscodevnet, devnetcreators, developercommunity
Published: 2024-03-13 18:54:50

Since its launch in 2014, [Cisco DevNet](https://developer.cisco.com/) has been more than just a platform for developers and IT professionals. It has been a thriving community of like-minded individuals driven by their passion for technology and their desire to collaborate on best practices and discover most efficient tools and techniques for building solutions, solving problems.

DevNet has been a playground for application developers and network automation professionals, helping them to solve issues and build solutions across [networking](https://developer.cisco.com/site/networking/), [security](https://developer.cisco.com/site/security/), [IoT](https://developer.cisco.com/iot/), [full-stack observability](https://developer.cisco.com/site/full-stack-observability/), and more. Providing tools and resources such as:

- [API, SDK, and data model documentation](https://developer.cisco.com/docs/)
- [Learning labs](https://developer.cisco.com/learning/)
- [Sample code](https://developer.cisco.com/codeexchange/)
- [Sandboxes](https://developer.cisco.com/site/sandbox/)

## Celebrating Innovation: The Big Events

Signature events like the DevNet Zone at Cisco Live! and DevNet Create (which began in 2017) have always “trended” across social media platforms. These aren’t your average tech meets; they’re where people from all backgrounds and experiences come to play, share, and learn.

DevNet Create for instance, successfully blended DevOps, SecOps, and more, drawing widespread participation.

## The Heart of DevNet: Our Community

At its core, DevNet’s essence lies in its community. We’re enhancing our community experience, starting with a an updated name: the “DevNet Hub.” This new name better reflects our identity and offers the same excellent experience. Check out the revamped platform at [DevNet Hub](https://developer.cisco.com/community).

We’ve also renamed each item in the DevNet Hub menu to make the experience feel seamless.

## The Next Chapter of DevNet

Please keep an eye out for more updates coming over the next few months, because we’re always looking for your input! [Drop a thread to us here](https://community.cisco.com/t5/the-break-room/bd-p/Dev_Off_Topic) if you see a change that doesn’t make sense, if you have a suggestion, or spot an issue. Also, be on the lookout for polls as we test out ideas. Your input is always welcome.

DevNet’s story isn’t just about tech evolution – it’s about connections, growth, and a shared passion for innovation. All to help you meet the demands of your ever changing workloads.

Want to be part of this journey? Join the [community discussions](https://developer.cisco.com/community), share your ideas, and get involved. And for the latest insights, make sure to say hello to [@JeffBullTech on Threads](https://www.threads.net/@jeffbulltech).
Comprehensive Psychiatric Services
Tags: mentalhealth, psychiatric
Published: 2024-03-13 18:54:28

Comprehensive Psychiatric Services provides a compassionate and holistic approach to mental health care, ensuring individuals receive personalized treatment tailored to their needs. Their dedicated team of professionals creates a supportive environment where clients feel heard and understood, fostering healing and growth. With a commitment to excellence and a focus on improving quality of life, Comprehensive Psychiatric Services stands out as a beacon of hope for those navigating the challenges of mental illness. See Here:- [empowermh](https://empowermh.net/)
Configure Static IP in Ubuntu 22.04
Tags: ubuntu, network, linux, beginners
Published: 2024-03-13 18:53:50

# Configuring Ubuntu 22.04 to Use a Static IP Address

In this article, I'll go through the steps to configure a static IP address on Ubuntu 22.04 while using a WiFi connection.

Note that my Ubuntu Server used a DHCP-assigned IPv4 address on a WiFi connection before working on this setup.

## Prerequisites

Before proceeding, you need to gather some information:

1. Check the IP address of the default gateway:

```sh
ip route show default
```

This command will show the default route and the corresponding gateway IP address.

2. Check the subnet mask:

```sh
ip addr show
```

This command will display the IP addresses and subnet masks for all interfaces.

3. Note the gateway address and desired static IP address to assign
In my case, the gateway address is `192.168.10.1`, and I decided to assign the static IP address `192.168.10.100/24`.

## Configuring the Static IP Address

1. Open the network configuration file with a text editor. For example, using `nano`:

```sh
sudo nano /etc/netplan/<target-configuration-file>.yaml
```

In my case, I'm using a WiFi connection, so I'll choose the WiFi-specific configuration file.

2. Modify the configuration file by adding the following lines under the `wifis` section for your WiFi interface (e.g., `wlan0`):

```yaml
wifis:
  wlan0:
    dhcp4: no
    addresses: [192.168.10.100/24]
    routes:
      - to: default
        via: 192.168.10.1
    nameservers:
      addresses: [192.168.10.1, 8.8.8.8, 8.8.4.4]
```

addresses and default routes will be the ones you've noted above.

3. Verify the new network configuration:

```sh
sudo netplan try
```

This command will check the syntax of the configuration file and show you the changes that will be made. You might see a warning about `ovsdb-server.service` not running, but you can ignore it for now.

4. If the verification is successful, apply the new network configuration:

```sh
sudo netplan apply
```

5. Verify that the static IP address has been assigned correctly:

```sh
ip addr show
```

You should see your new static IP address listed under the WiFi interface (`wlan0`).

6. Verify the connection by pinging the static IP address from another device on the same home network:

```sh
ping 192.168.10.100
```

And yes! It worked!
```sh
PING 192.168.10.100 (192.168.10.100): 56 data bytes
  64 bytes from 192.168.10.100: icmp_seq=0 ttl=64 time=54.810 ms
  64 bytes from 192.168.10.100: icmp_seq=1 ttl=64 time=68.789 ms
  64 bytes from 192.168.10.100: icmp_seq=2 ttl=64 time=85.646 ms
  64 bytes from 192.168.10.100: icmp_seq=3 ttl=64 time=106.507 ms
```


That's it! You've successfully configured Ubuntu 22.04 to use a static IP address on your WiFi connection.

# References
- [Canonical Netplan](https://netplan.io/)
- [作りながら学ぶ　Webシステムの教科書｜日経Linux](https://info.nikkeibp.co.jp/media/LIN/atcl/books/081600038/)
استعد للانغماس في بيئة تعليمية ملهمة في واحدة من أروع الوجهات!
Published: 2024-03-13 18:52:57

من دواعي السرور أن أساعدك في الاستعداد للانغماس في بيئة تعليمية ملهمة في واحدة من أروع الوجهات! دولة نيوزيلندا هي واحدة من أروع الوجهات التي يمكنك اختيارها لهذا الغرض. إليك بعض الأسباب التي تجعل نيوزيلندا وجهة مثالية للتعليم العالي:

[جامعة لينكولن في ماليزيا
](https://univ-world.com/%D8%AC%D8%A7%D9%85%D8%B9%D8%A9-%D8%B3%D8%A7%D9%8A%D8%A8%D8%B1-%D8%AC%D8%A7%D9%8A%D8%A7-%D9%81%D9%8A-%D9%85%D8%A7%D9%84%D9%8A%D8%B2%D9%8A%D8%A7/)
طبيعة ساحرة ومذهلة: تضم نيوزيلندا مناظر طبيعية خلابة تشمل الجبال الشاهقة، والبحيرات الزرقاء، والشواطئ الرملية البيضاء، والغابات الكثيفة. هذه البيئة الطبيعية المذهلة تعزز الإلهام وتشجع على الإبداع.

جامعات عالية الجودة: تضم نيوزيلندا جامعات ومعاهد عالية الجودة مثل جامعة أوكلاند وجامعة أوتاغو وجامعة كانتربري، التي تقدم برامج دراسية متنوعة ومتميزة في مختلف التخصصات.

بيئة تعليمية داعمة: توفر نيوزيلندا بيئة تعليمية محفزة وداعمة، حيث يتم تشجيع الطلاب على التفكير النقدي والابتكار وتطوير مهاراتهم القيادية.

تنوع ثقافي: يعيش في نيوزيلندا مجتمع متنوع ومتعدد الثقافات، مما يتيح للطلاب فرصة التعرف على ثقافات مختلفة وتوسيع آفاقهم الثقافية.

[جامعة apu في ماليزيا
](https://univ-world.com/%D8%AC%D8%A7%D9%85%D8%B9%D8%A9-%D8%B3%D8%A7%D9%8A%D8%A8%D8%B1-%D8%AC%D8%A7%D9%8A%D8%A7-%D9%81%D9%8A-%D9%85%D8%A7%D9%84%D9%8A%D8%B2%D9%8A%D8%A7/)
فرص الأنشطة الخارجية: توفر نيوزيلندا فرصًا لا حصر لها لممارسة الأنشطة الخارجية مثل التزلج، وركوب الأمواج، والمشي لمسافات طويلة، وركوب الدراجات، مما يعزز صحة الطلاب ويساهم في تحسين نمط حياتهم.

[جامعة msu في ماليزيا
](https://univ-world.com/%D8%AC%D8%A7%D9%85%D8%B9%D8%A9-msu-%D9%81%D9%8A-%D9%85%D8%A7%D9%84%D9%8A%D8%B2%D9%8A%D8%A7/)
باختصار، ستجد في نيوزيلندا بيئة تعليمية ملهمة تجمع بين التعليم عالي الجودة والطبيعة الخلابة والتنوع الثقافي، مما يجعلها وجهة رائعة للانغماس في تجربة تعليمية مميزة ومثيرة.
Unleashing the Power of JavaScript
Tags: webdev, javascript, programming, tutorial
Published: 2024-03-13 18:28:18

JavaScript, the backbone of modern web development, empowers dynamic and interactive experiences on the internet. With its versatility, it seamlessly integrates into web pages, enabling functionalities like animations, form validation, and responsive design. From simple scripts to complex applications, JavaScript's robust ecosystem offers frameworks like React, Vue.js, and Angular, streamlining development processes and enhancing user experiences. Its asynchronous nature facilitates smooth interactions, making it ideal for real-time updates and asynchronous operations. As technology evolves, JavaScript continues to evolve with it, remaining a cornerstone of web development and a language indispensable to the digital world like melody of [songs](https://torontosingingacademy.com/singing-lesson-toronto/).
Devin! World's First AI Software Engineer
Tags: ai, softwaredevelopment, softwareengineering
Published: 2024-03-13 18:24:18

Devin the software engineer is developed by Cognition is the world's first AI software engineer.

Devin is impressive because it can handle the entire software development process, from writing code to fixing bugs and even deploying the finished product. This means Devin can work independently or collaborate with human engineers.

{% embed https://youtu.be/fjHtjT7GO1c %}

Here are some of the things Devin can do:
- Write code, including creating websites and software applications.
- Debug and fix existing code.
- Learn new technologies to tackle different projects.
- Work independently or collaborate with human engineers.

Devin has even passed real-world coding interviews and completed freelance gigs on Upwork. It's designed to be a helpful teammate for software development, freeing up human engineers for more complex or creative tasks.
Cartronics - Car Dealers
Published: 2024-03-13 18:20:54

Cartronics - Car Dealers is your trusted destination for new and second-hand cars in Navi Mumbai. Explore our extensive inventory of quality used cars in Navi Mumbai, where you can buy and sell cars with confidence. Whether you're looking for a reliable sedan, a spacious SUV, or a fuel-efficient hatchback, we have something for everyone. Look no further than Cartronics - Car Dealers! Our team is dedicated to providing exceptional service and helping you find the perfect car to suit your needs and budget. Visit us today and drive away in your dream car

Shop no 10, Neel Empire, opposite Hawares Centurion Mall, Nerul East, Sector 25, Nerul
Navi Mumbai
Maharashtra 
400706
9819825412
Micro frontend frameworks in 2024
Tags: microfrontend, javascript, developers, webdev
Published: 2024-03-13 18:03:16

Micro Frontends are becoming an increasingly popular approach for building modern web applications. As opposed to building a monolithic app, micro frontends allow you to break down an app into smaller, independent pieces that can each be developed, deployed, and scaled separately. 



This modular architecture brings a lot of benefits - easier maintenance, better team collaboration, faster iteration, and improved resilience. As more teams adopt this approach, the tools and frameworks ecosystem around micro frontends continues to grow.



Here are some of the most promising micro frontend frameworks to watch for in 2024:



- Single-SPA Framework - One of the most popular choices. It has a large community behind it and offers robust routing and lifecycle management for microapps.
Ref - https://single-spa.js.org/

- Piral Framework - Focused on developer experience with features like a visual UI editor, live previews and hot module replacement.
Ref - https://piral.io/

- Luigi Framework - A very lightweight framework built by the folks at SAP.
Ref - https://luigi-project.io/

- OpenComponents Framework - Strong focus on componentization and making components reusable across different microapps.
 Ref- https://opencomponents.github.io/

- Mosaic Framework - Built by BigCommerce. Designed specifically for ecommerce use cases. Comes with pre-built config and best practices.  
 Ref- https://mosaic.js.org/

- Ara Framework - Build Micro-frontends easily using Airbnb Hypernova
 Ref- https://ara-framework.github.io/website/

- Voltran - a micro frontends framework which is developed by Hepsiburada Technology Team
 Ref- https://github.com/hepsiburada/VoltranJS

- qiankun - enables you and your teams to build next-generation and enterprise-ready web applications leveraging Micro Frontends. It is inspired by and based on single-spa.
Ref- https://github.com/umijs/qiankun
Devin: AI software engineer
Tags: devin, ai, softwareengineering, revloution
Published: 2024-03-13 17:55:31

Cognition AI proudly presents Devin, their cutting-edge AI software engineer, revolutionizing the realm of programming.

Devin embodies the essence of a human programmer, equipped with end-to-end development capabilities that transcend traditional expectations.

With Devin at the helm, complex programming projects are no longer daunting tasks but rather opportunities for innovation and efficiency. From conceptualization to execution, Devin seamlessly navigates the intricacies of software development, wielding code editors and terminals with finesse.

One of Devin's hallmark features is its ability to craft entire projects from scratch, employing user-friendly commands that streamline the development process. Gone are the days of cumbersome workflows; Devin empowers users to bring their ideas to fruition swiftly and effortlessly.

Let's delve into Devin's array of functionalities:

**Planning:** Devin excels at strategizing approaches to problem-solving, breaking down tasks into manageable steps to ensure systematic progress.

**Coding:** Utilizing familiar tools akin to those wielded by human software engineers, Devin seamlessly translates concepts into code, harnessing the power of command lines, code editors, and even its own browser for optimal efficiency.

**Debugging:** With a keen eye for detail, Devin swiftly identifies and rectifies bugs within its code, ensuring smooth and error-free execution.

**Building and Deploying:** Devin's prowess extends beyond mere coding; it can effortlessly construct and deploy websites complete with stylish design elements, providing a comprehensive solution for project realization.



In essence, Devin epitomizes the convergence of human ingenuity and artificial intelligence, heralding a new era of software engineering where innovation knows no bounds.

I hope you all were able to get a brief understanding of this technology.

🤔What will be the next product to integrate this technology? Comment below

> Disclaimer: This article was created with the help of AI to improve vocabulary.
Multi-region, strongly consistent databases matter
Tags: database, nosql, webdev, beginners
Published: 2024-03-13 17:29:48

Having a multi-region database that offers strong consistency is a big deal in the realm of distributed systems and modern app development. It is especially critical for global applications for several reasons. Few have it, e.g. [Fauna](https://fauna.com?utm=), and many want it. It's not easy to get right.

## Scalability
A multi-region, strongly consistent database architecture allows organizations to scale their applications globally without worrying about the complexities of data consistency across regions. This scalability is essential for businesses aiming to expand their reach or manage large volumes of traffic across different parts of the world.

## Global Accessibility with Low Latency
In a multi-region setup, data is replicated across various geographical locations, ensuring users can access the data from a nearby region. This reduces latency, as requests are served from the closest data center, cloud region, or even cloud provider, improving the speed and responsiveness of applications for users worldwide.

## Strong Consistency Guarantees
Strong consistency means that any read operation retrieves the most recent write for a given piece of data, regardless of the geographical location of the data request. This is crucial for applications that require real-time data accuracy, such as financial services, e-commerce transactions, and collaborative tools. With strong consistency, developers can ensure that users see the latest data *without compromising data integrity or experiencing stale reads*.

## High Availability and Disaster Recovery
A multi-region database architecture enhances the availability of applications by providing redundancy. If one region experiences downtime due to technical failures or other disruptions, front-end traffic can be rerouted to another active region, ensuring the application remains available to users. This redundancy is essential for maintaining high availability and implementing effective disaster recovery strategies. There's no need for an old-school "failback" procedure.

## Simplified Application Logic
When using a database that ensures strong consistency across regions, developers don't have to implement complex workarounds or logic in their applications to handle potential consistency issues. This simplification reduces the development and maintenance overhead, allowing teams to focus on building features and improving the application.

Fauna's database offers exactly this solution. That combination of multi-region replication and strong consistency provides you with a tool to build global, scalable, and reliable applications.