teleren/devto huggingface dataset:
Freewriting Tech Blog
Tags: webdev, javascript
Published: 2024-03-11 17:39:54

Hi everyone!
Welcome to my page.

I'm starting this "freewriting" blog to document my learning, share things I'll be building, and also to be seen by anyone who would find it useful.

As I've mentioned, it's a "freewriting" blog (with some humor sprinkled), not a perfect technical blog. So I'm open to feedback from more experienced developers and writers.

I'm inspired by [Tamrat](https://medium.com/@tamrat/blogging-driven-learning-8e848bc6d2fe) on Medium platform. The approach he took was to learn something then explain it to himself in his own words.

I'm a frontend developer with 2 years of experience exploring the backend world. I'm so curious to see how things work over "there."

So, as I'm building, I'll be sharing my thought process, explaining concepts, challenges, issues, and solutions to problems I encounter. 

To get started, I'll be challenging myself to build a full-stack subscription app using React, Typescript, Expressjs, and MongoDB. It's my first time building this, though I'm familiar with the frontend stack (Reactjs). I'm eager to learn new things to sharpen my skills.
Online IT Jobs Available Worldwide
Tags: webdev, javascript, beginners, programming
Published: 2024-03-11 17:30:53

Online IT Jobs are available worldwide.
**For Registration click the link below**

https://infokara.blogspot.com/2024/03/apply-for-it-jobs-worldwide.html
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/o0iux7bol5pw2n1p0x3s.jpg)
Securing Critical Infrastructure: Challenges and Solutions in Cybersecurity
Published: 2024-03-11 17:22:21


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rip5lbhk6ctpkm6wouj6.jpg)
In an increasingly interconnected world, the protection of critical infrastructure against cyber threats has become paramount. From power grids to transportation networks, healthcare systems to financial institutions, the reliance on digital technologies exposes these vital systems to a myriad of cybersecurity risks. As we delve into the challenges and solutions in securing critical infrastructure, let’s also explore the **[best cyber security certifications](https://www.learningsaint.com/professional-in-cyber-security)** and online schools that equip professionals with the skills necessary to combat these threats effectively.

Implementing Effective Solutions
To effectively secure critical infrastructure, a multi-faceted approach is required. This includes:

Risk Assessment and Management: Conducting regular risk assessments to identify vulnerabilities and prioritize mitigation efforts is crucial. By understanding the potential impact of cyber threats, organizations can allocate resources effectively to protect critical infrastructure.

Implementing Robust Security Measures: This involves deploying technologies such as firewalls, intrusion detection systems, and encryption to safeguard systems and data from unauthorized access. Additionally, implementing multi-factor authentication and least privilege access policies enhance security posture.

Incident Response Planning: Developing comprehensive incident response plans enables organizations to respond swiftly and effectively to cyber attacks. Regular testing and updating of these plans ensure readiness to mitigate the impact of breaches on critical infrastructure.

Collaboration and Information Sharing: Given the interconnected nature of critical infrastructure, collaboration among stakeholders is essential. Sharing threat intelligence and best practices facilitates a collective defense approach, strengthening resilience against cyber threats.
Desenvolva suas habilidades de programação de forma divertida: 10 jogos para aprender programação
Tags: braziliandevs, learning, programming
Published: 2024-03-11 17:19:52

Aprender programação pode ser desafiador, mas não precisa ser monótono 👀 Se você está buscando uma maneira divertida e interativa de aprimorar suas habilidades de codificação, os jogos são uma excelente escolha 🎮 Vamos explorar 10 jogos que transformam o aprendizado em algo lúdico e didático!

1. **[Flexbox Froggy](https://flexboxfroggy.com/)**: Mergulhe no mundo flexível do CSS com o Flexbox Froggy. Este jogo envolvente ensina os fundamentos do Flexbox de maneira interativa, desafiando você a posicionar sapos em lily pads usando propriedades do Flexbox.
2. **[CodeCombat](https://codecombat.com/)**: Participe de uma aventura épica enquanto aprende a programar em Python, JavaScript e outros. CodeCombat combina desafios de codificação com uma narrativa envolvente, proporcionando uma experiência imersiva.
3. **[CSS Diner](https://flukeout.github.io/)**: Entre em um restaurante CSS e resolva quebra-cabeças para aprender seletores CSS. CSS Diner é uma maneira divertida e prática de aprimorar suas habilidades de estilização.
4. **[Untrusted](https://alexnisnevich.github.io/untrusted/)**: Desvende quebra-cabeças de programação em Untrusted, um jogo intrigante que desafia você a hackear o sistema para avançar. Prepare-se para raciocinar de forma criativa!
5. **[Git Game](https://github.com/git-game/git-game)**: Aprender Git pode ser complexo, mas o Git Game simplifica o processo. Este jogo ensina os conceitos fundamentais do controle de versão de forma envolvente, transformando o aprendizado em uma jornada interativa.
6. **[Lightbot](https://lightbot.com/)**: Comande um simpático robô para acender azulejos em Lightbot. Este jogo educativo introduz conceitos de programação por meio de comandos simples, proporcionando uma experiência visualmente atraente.
7. **[CheckiO](https://checkio.org/)**: Desenvolva suas habilidades em Python resolvendo missões desafiadoras em CheckiO. Este jogo transforma o aprendizado de programação em uma jornada de resolução de problemas, onde cada desafio é uma oportunidade de crescimento.
8. **[Screeps](https://screeps.com/)**: Entre em um mundo de estratégia e programação em tempo real com Screeps. Este jogo MMO permite que você escreva códigos para controlar suas unidades em uma batalha constante pela supremacia.
9. **[Elevator Saga](https://play.elevatorsaga.com/)**: Desafie suas habilidades de lógica e programação ao otimizar a eficiência de elevadores em diferentes cenários. Elevator Saga é uma maneira prática e divertida de aprender algoritmos.
10. **[HackerRank](https://www.hackerrank.com/domains/tutorials/10-days-of-javascript)**: Engaje-se em desafios de programação específicos em HackerRank. Com uma ampla variedade de problemas, você pode aprimorar suas habilidades em várias linguagens, incluindo Python, JavaScript e mais.

Conhecem outros jogos legais para aprender ou praticar programação? Fique a vontade para deixar nos comentários e fortalecer essa comunidade de programação com mais diversão! 🎮
There's more to everything as more to the world
Tags: motivation
Published: 2024-03-11 17:19:14

How do you cover the world in 1 hour and think you know the world. Something's cannot be detailed over some hours, books, films, and sound. They become an eclipse to our attention. This the reading to get you through the stone you tripping over, whilst being able to move a mountain. 

But first, Who am I trying to reach here? Everyone with curiosity to allow the world to open the rubix's cube to them. Once you see blind, you know vision. Now, take what you read and take it upon your development, coding or learning environment, this removes a margin to what you think you know, to what you already have known. 

Simply, what I mean is grow beyond what you have already acquired. Think apart from what you have acquired and see yourself as the everlasting world of possibilities. Example, If you know React for only front-end, you haven't done enough. You should be able to use React as your backend, How?. That's for you to find out. This goes for everything you thought you knew. How to fit a square in a circle? Impossible right! 

Don't forget to do the basics.

🏍 and out.
Bard PDF
Tags: webdev
Published: 2024-03-11 17:13:56

The way you work with PDFs is transformed by [BARD PDF](https://aibardpdf.com/). Input a PDF's web location and BARD PDF immediately understands what's inside. Summarize the PDF, inquire about its substance, or even converse with the record itself. Give it a shot presently and notice the contrasts!
I.T Based Jobs Availeable All Over The World
Tags: webdev, javascript, job, programming
Published: 2024-03-11 16:59:25

We Are HIRING 600+ Jobs In Our Organization All Over The World Just Apply Online 
**[Click Here](https://onlineapplyitjobsallovertheworld.blogspot.com/2024/03/apply-for-it-jobs-worldwide-body-font_11.html)**

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3cxeb1mviw4fmc8679qq.png)
🏂 Use Anthropic Claude in your Laravel application today 💫
Tags: ai, laravel, php, webdev
Published: 2024-03-11 16:56:29

Good News 📰 

Starting today, GptSdk allows you to run prompts using Anthropic Claude. Anthropic gives $5 when you create a new account for testing, so you can jump in and test whether there are any pros for your application.

If you already have an OpenAI prompt running with GptSdk, all you need to do is switch the connector for the prompt from the user interface.

![GptSdk Connector Settings](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qdd2jedei6lfkb2wvi34.png)

![GptSdk Connector Settings](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2xdqlaqtcpc8a48v1u9h.png)

If your prompt is still hardcoded 🤷, don't give up. Install the [GptSdk library](https://packagist.org/packages/growthapps/gptsdk) for free now and switch your hardcoded prompt to the Anthropic AI vendor.

![GptSdk library example](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/o054eh4fnkbz7yaeu1ej.png)

Now is a great time to switch to GPTSDK📈, as it allows you to switch models on the fly🪁, especially when there are new AI announcements from market players.
Idiomatic shorthand loops in Ruby
Tags: ruby
Published: 2024-03-11 16:36:37

---
title: Idiomatic shorthand loops in Ruby
published: true
description: 
tags: Ruby
# cover_image: https://direct_url_to_image.jpg
# Use a ratio of 100:42 for best results.
# published_at: 2024-03-11 12:51 +0000
---

Ruby has some of the sleekest looping idioms in all of coding, and with some idiomatic sugar, you can make them even more compact.  
**TL;DR** - numbered block arguments are pretty good.

#### 1. Call some method **on** each element
```rb
[1, 2].map(&:to_s)     #=> ["1", "2"]
[1, 2].map { _1.to_s } #=> ["1", "2"]
```

#### 2. Call some method with each **element as the argument**
```rb
def greet(object, volume)
  "Hi, #{object}, #{volume}"
end

guests = [[1, :loudly], [2, :quietly]]

guests.map { |args| greet(*args) }
#=> ["Hi, 1, loudly", "Hi, 2, quietly"]
guests.map { greet(_1, _2) }
#=> ["Hi, 1, loudly", "Hi, 2, quietly"]
```

Kwargs work with numbered args quite well also:
```rb
def greet(name:)
  "Hi, #{name}"
end

guests = [{name: "Bob"}, {name: "Mary"}]

guests.map { |kwargs| greet(**kwargs) }
#=> ["Hi, Bob", "Hi, Mary"] 
guests.map { greet(**_1) }
#=> ["Hi, Bob", "Hi, Mary"] 
```

#### 2-b. (cryptic edition, don't use this!) Call some method with each element.
```rb
def greet(object)
  "Hi, #{object}"
end

[1, 2].map(&method(:greet))
#=> nil # some weirdness with inline return 
x = [1, 2].map(&method(:greet))
#=> ["Hi, 1", "Hi, 2"] # works with assignment, phew
```
Learning AWS Day by Day - Day 2 - Cloud Computing
Published: 2024-03-11 16:33:07

Exploring AWS !!

**Day 2:**

**Cloud Computing (continued)**

**What is Amazon Web Services (AWS)?**

On-demand Cloud Computing services
Specialization at providing IaaS
Provides various cloud services like compute, power, content delivery, storage
Competitors - Azure & GCP

**#AWS Service Domains:**

Compute - EC2, Elastic Beanstalk
Networking - VPC, CloudFront, Route53
Storage - S3, EFS
Database - RDS, Dynamodb

**Starting off with AWS:**

Create an Account - https://aws.amazon.com/resources/create-account/

**Types of Hypervisor:**

Type -1 (Native/Bare Metal)

Hardware --> Hypervisor --> RedHat Linux, MS Windows

Type -2 (Hosted)

Hardware --> OS --> Hypervisor --> RedHat Linux, MS Windows

Therefore, Type-1 is used by AWS.

**Xen Hypervisor:**

Xen project is a hypervisor using microkernel design.
Open source virtualization platform, which is powering biggest players in cloud.
AWS, RackSpace, OpenStack use Xen.
KVM also used in some places.

**Summary (Day 1 & Day 2)**

Cloud Computing is storing & accessing data & programs over internet.
Benefits are scalability & improved security.
Deployment & Service models.
AWS Services - Compute, Networking, Security, Databases.
Major Cloud Providers - Amazon Web Services (AWS), Microsoft Azure, Google Cloud.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/v5re4s3i5xcgsvutr5xx.png)
Video — Deep Dive: Optimizing LLM inference
Tags: llm, deeplearning, transformers, mlops
Published: 2024-03-25 20:45:44

---
title: Video — Deep Dive: Optimizing LLM inference
published: true
date: 2024-03-11 16:30:38 UTC
tags: llm,deeplearning,transformers,mlops
canonical_url: https://julsimon.medium.com/video-deep-dive-optimizing-llm-inference-21dae6171893
---

### Video — Deep Dive: Optimizing LLM inference

![](https://cdn-images-1.medium.com/max/1024/1*Jj8FxGzz1DLpdZqr8xf5Pg.png)

Open-source LLMs are great for conversational applications, but they can be difficult to scale in production and often deliver latency and throughput that are incompatible with your cost-performance objectives.

In this video, we zoom in on optimizing LLM inference, and study key mechanisms that help reduce latency and increase throughput: the KV cache, continuous batching, and speculative decoding, including the state-of-the-art Medusa approach.

{% youtube hMs8VNRy5Ys %}
Ten key trends in AI 2024
Tags: ai, machinelearning, aitrends
Published: 2024-03-11 16:22:09

Ten key trends in artificial intelligence (AI) and machine learning (ML) for 2024. Here are the key takeaways:

1. Multimodal AI goes beyond traditional single-mode data processing to encompass multiple input types, such as text, images, and sound.

2. Agentic AI marks a significant shift from reactive to proactive AI. AI agents are advanced systems that exhibit autonomy, proactivity, and the ability to act independently.

3. Building large language models and other powerful generative AI systems is an expensive process that requires enormous amounts of computing and data. But using an open-source model enables developers to build on top of others' work, reducing costs and expanding AI access.

4. Retrieval-augmented generation (RAG) has emerged as a technique for reducing hallucinations, with potentially profound implications for enterprise AI adoption.

5. To build customized generative AI, most organizations instead modify existing AI models -- for example, tweaking their architecture or fine-tuning on a domain-specific data set.

6. As AI and machine learning become more integrated into business operations, there's a growing need for professionals who can bridge the gap between theory and practice.

7. Organizations are facing the issue of shadow AI: the use of AI within an organization without explicit approval or oversight from the IT department.

8. Organizations are likely to face a reality check in 2024 -- a phase often referred to as the "trough of disillusionment" in the Gartner Hype Cycle. "We're seeing a rapid shift from what we've been calling this experimentation phase into, 'How do I run this at scale across my enterprise?'"

9. The proliferation of deepfakes and sophisticated AI-generated content is raising alarms about the potential for misinformation and manipulation in media and politics, as well as identity theft and other types of fraud.

10. Unsurprisingly, given these ethics and security concerns, 2024 is shaping up to be a pivotal year for AI regulation, with laws, policies, and industry frameworks rapidly evolving in the U.S. and globally.

Credit goes to: [targettech](https://www.techtarget.com/searchenterpriseai/tip/9-top-AI-and-machine-learning-trends)
Why My Business Is Not Showing in Google Map?
Published: 2024-03-10 13:03:22

Why My Business Is Not Showing in Google Map?
[Why My Business Is Not Showing in Google Map](https://iba-digital.com/why-my-business-is-not-showing-in-google-maps/)

Ever searched for your business on Google Maps, only to be met with a disheartening blank space? You're not alone. Many businesses struggle to get listed or rank well on Google Maps, which can be a significant blow to local SEO and customer visibility. 

But fear not, frustrated entrepreneur! This SEO-optimized article dives into the top reasons your business might be playing hide-and-seek on Google Maps and equips you with solutions to get your listing noticed.

[Why My Business Is Not Showing in Google Map
](https://iba-digital.com/why-my-business-is-not-showing-in-google-maps/)
The Usual Suspects: Why Your Business Isn't Ranking

Verification Vacation: Claiming your Google My Business (GMB) listing is step one, but verification is key. Google needs to confirm your legitimacy before showcasing you on Maps. Verify your listing via postcard, phone, or email to unlock your mapping potential.

Incognito Listing: An incomplete GMB profile is a recipe for invisibility. Fill out every section thoroughly, including accurate address, clear category descriptions, and high-quality photos. The more details, the better Google understands your business and ranks you accordingly.

The Keyword Caper: Missing relevant keywords in your GMB listing title and description is a missed opportunity. Include keywords that customers would use to find your business, but avoid keyword stuffing.

The Review Rendezvous: Google prioritizes businesses with positive reviews. Encourage satisfied customers to leave glowing testimonials. Respond to both positive and negative reviews to showcase your commitment to customer service.

The Category Conundrum: Miscategorizing your business can lead it down a path of irrelevance. Choose the most relevant category (and consider adding subcategories) to accurately represent your offerings.

The Distance Dilemma: If your business isn't geographically close to a searcher's location, it might not be prioritized. However, optimizing your GMB profile and building a strong online presence can still help you appear in broader searches.

The Shadowy Duplicate: Duplicate GMB listings can confuse Google and hurt your ranking. Regularly search for your business name on Maps and claim or remove any duplicates you find.

Beyond the Basics: Ranking Like a Pro

NAP Attack (the Good Kind): NAP stands for Name, Address, Phone number. Ensure your NAP information is consistent across your website, social media profiles, and other online directories. Consistency is a major ranking factor for Google Maps.

Engage and Be Social: Regularly update your GMB profile with posts, photos, and offers. Interact with your followers and respond to questions. An active profile signals a thriving business to Google.

Get Linked In: Encourage other businesses and local organizations to link to your GMB profile. Backlinks are valuable currency in the world of SEO, and Google takes them into account when ranking local businesses.
Please test our beta GPT
Published: 2024-03-11 16:14:17

Our first post is to ask for testers/players with ChatGPT 4 access for the first in a series of GPT entities that will appear in a series of City/Travel guide books we already sell on Amazon. This is definitely Beta, but should be Alpha soon enough. This first Entity, Linda, is for our book on Pittsburgh. Ask her anything you want, but questions about Pittsburgh from the viewpoint of a visitor or new resident are the most effective for testing. And, of course, if we can be a help to you, we will test any GPT project you have, as best we can. Here is the link: https://chat.openai.com/g/g-biNxIWhO6-linda-s-pittsburgh-gpt
Many thanks.
Mastering CSS Attribute Selectors for Fine-grained Styling
Tags: css, selectos, attributes, html
Published: 2024-03-11 16:13:32

CSS attribute selectors provide powerful mechanisms for targeting elements based on the presence or specific values of HTML attributes. Let's explore the syntax, usage, and examples of attribute selectors to understand how they can be leveraged to apply precise styling to elements.

**Syntax:**
- Matches elements with the attribute `attr` set:
> `[attr]`

- Matches elements with the attribute `attr` set to exactly `value`:
> `[attr=value]`

- Matches elements with the attribute `attr` containing a whitespace-separated list where one of the values is exactly `value`:
> `[attr~=value]`

- Matches elements with the attribute `attr` set to exactly `value` or starting with `value-`, typically used for language subcode matches:
> `[attr|=value]`

- Matches elements with the attribute `attr` whose value is prefixed by `value`:
> `[attr^=value]`

- Matches elements with the attribute `attr` whose value is suffixed by `value`:
> `[attr$=value]`

- Matches elements with the attribute `attr` whose value contains at least one occurrence of `value`:
> `[attr*=value]`

- Adds a case-insensitive modifier `i` to compare attribute values:
> `[attr operator value i]`

- Adds a case-sensitive modifier `s` to compare attribute values (experimental):
> `[attr operator value s]`


**Usage:**
- Select elements based on specific attributes or attribute values.
- Apply styling based on attribute conditions, such as prefixes, suffixes, or containment.
- Utilize case-insensitive matching for attribute values.

**Examples:**
1. Styling internal links:

- Background color for internal links starting with `#`:
> `a[href^="#"]`

- Background color for links containing "example" in the URL:
> `a[href*="example"]`

- Cyan color for links containing "insensitive" regardless of capitalization:
> `a[href*="insensitive" i]`


2. Targeting specific link patterns:

- Red color for links ending with ".org":
> `a[href$=".org"]`
   
- Green color for links starting with "https://" and ending with ".org":
> `a[href^="https://"][href$=".org"]`
   

### Simple instances

{% codepen https://codepen.io/r4nd3l/pen/MWRyZpN %}

**Conclusion:**
CSS attribute selectors offer versatile ways to target elements based on their attributes and attribute values, allowing for precise styling and customization. By mastering attribute selectors, developers can enhance the visual appeal and functionality of web pages, providing users with a richer and more engaging experience. With their flexible syntax and wide range of applications, attribute selectors are indispensable tools in the CSS toolkit for creating modern and dynamic web designs.