teleren/devto huggingface dataset:
똑똑한 비서 Amazon Q를 우연히 만나다
Tags: aws, assistant, genai
Published: 2024-01-30 20:26:21

최근 들어 Amazon Bedrock을 계속 살펴보고 있었습니다. 출시된지 오래되지 않은  서비스이고 사용 경험이 별로 없어 "[Bedrock 사용자 가이드](https://docs.aws.amazon.com/ko_kr/bedrock/latest/userguide/what-is-bedrock.html)", "[Bedrock API Reference](https://docs.aws.amazon.com/bedrock/latest/APIReference/welcome.html)" 들도 보고 있었습니다.
영어 문서를 보는 것은 아무래도 힘들고 피곤하기 때문에 한국어로 된 문서를 보고 있었는데, 원하는 내용이 없다는 것을 알게 되었습니다. 내가 원하는 내용은 최근에 Preview 로 나온 "Amazon Titan Image Generator G1" 이었는데 [한국어 문서](https://docs.aws.amazon.com/ko_kr/bedrock/latest/userguide/what-is-bedrock.html)에는 내용이 없고 [영어 문서](https://docs.aws.amazon.com/bedrock/latest/APIReference/welcome.html)에는 있다는 것을 알게 되었습니다.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4rfqbpp7q7grcdqrx64n.png)
그리고 영어 문서에는 하단에 파란 육각형의 뭔가가 보이는 것이었습니다.
뭔지 클릭해봤습니다. 오~옷! Amazon Q가 갑자기 보입니다.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wi4tx0occv9oumg6f71w.png)

Amazon Q가 Preview로 출시 되었다는 소식은 들었지만 접해볼 기회가 없었는데 갑자기 나타나는군요. 게다가 영어 문서 사이트에서만! 아마도 Amazon Q가 한국어를 아직 지원하지 않아서 그런거로 예상합니다. 바로 한국어 지원이 되는지 확인해 봅니다.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/viclvc7ubiqi0mfr6ej7.png)
한글 자체를 인식 못하는게 확실합니다. 영어로 한국어를 이해하냐고 물었더니 AWS 관련 질문만 하라고 하네요. 그러면서 예제를 보여줍니다.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zsf6ut3ce51rpyilecxn.png)
그럼 궁금해하던 내용을 물어봅니다. 우선 간단히 Amazon Titan Image Generator를 사용중이라고만 해봤습니다. 그랬더니 아래처럼 간단한 설명과 함께 문서의 링크까지 알려줍니다. 오~! 마치 검색을 편하게 도와주는 비서 같은 역할을 하는군요. 그리고 대화창이 너무 작아 늘려봤습니다.

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

Bedrock 요청의 응답 결과 이미지를 보는 파이썬 코드를 알려달라고 물어봅니다.


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

대단합니다. 정확하게 동작하는 코드인지 확인은 안해봤지만, 코드를 대충 보면 동작할만한 내용임에 틀림 없습니다. 마치 ChatGPT 처럼 동작하는 것으로 보입니다.
그리고 소스 코드의 링크도 알려주는군요.
마지막 질문을 던져봅니다. 제가 궁극적으로 궁금했던 내용은 "응답으로 오는 이미지 파일의 배열 원소의 갯수가 반드시 하나인가? 아니면 여럿일 수 있는가?" 입니다.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ds2zhe7hksu6hdmjtpo5.png)
마지막 질문에 대한 답을 보고 저는 소름이 돋았네요. 제가 궁금해하던 내용을 정확하게 알려줍니다. 게다가 제가 원했던 것보다 더 자세히 알려줍니다.

오늘 저는 Amazon Q의 놀라운 기능을 우연히 보게 되었습니다. 더 기능이 많이 있겠지만, 오늘 본 것만으로도 똑똑한 비서임에 틀림 없네요. 다음에 기회가 되면 다른 업무에서 저를 도와주는 Amazon Q를 만나보겠습니다. 감사합니다.
Amazon Bedrock: Anthropic’s model, Claude 2.1 - The Key Difference
Tags: generativeai, aws, bedrock
Published: 2024-01-30 19:55:00

Anthropic’s model, Claude 2.1 was introduced in November 2023. It targets the enterprise level applications that can be used commercially.

**Key Differences and enhancements:**

- Supports 200,000 tokens, roughly 150,000 words or around 500 pages of documents where Claude 2.0 supports 100,000 tokens
- Helps to summarise, doing Q&A, forecast trends on various factors and did stats and comparison for multiple documents better than before
- 50% fewer hallucinations
- 30% reduction in incorrect answers
- 3–4 times lower rate of mistakes in comparison of the documents
- Can integrate different APIs

The model is available in AWS Bedrock in the US East (N. Virginia) and US West (Oregon) Regions.

**Making a requests using AWS Bedrock:**

```
import anthropic_bedrock
from anthropic_bedrock import AnthropicBedrock

client = AnthropicBedrock(
    aws_access_key="<aws access key>",
    aws_secret_key="<aws secret key>",
    aws_session_token="<aws_session_token>",
    aws_region="us-east-2",
)

prompt_completion = client.completions.create(
    model="anthropic.claude-v2:1",
    max_tokens_to_sample=256,
    prompt=f"{anthropic_bedrock.HUMAN_PROMPT} Tell me top 10 happenings on 10th January in the history of the world! {anthropic_bedrock.AI_PROMPT}",
)
print(prompt_completion.completion)
```
Manage Those Users
Tags: linux, ubuntu, debian, kalilinux
Published: 2024-01-30 19:33:02

Peace,

Linux is an amazing kernel to work with thus far. Learning more and more about the system and each time I think I know something, another topic becomes interesting. Today I wanted to speak about User Management which is quite important if you are a studying for cybersecurity. Why O? Well I learned that if you are running your system as root, it might not be a great idea. Great security practices recommend that you create a sub user that will have 'root' aka 'sudo' privileges. Let's speak on how to work with the user management in detail so you can gain understanding.

First off, let's define what a 'user' is. A **'user'** is referred as individuals or entities that interact with the OS by logging in and performing various tasks. There are two types of users as well, System and Regular. A **'System User'** is created by the system during installation and are used to run system services and applications. A '**Regular User'** is created by the admin and can access the system and it's resources based on their permissions. Yes, you as the admin can make the 'regular user' gain access to certain files on the system which is great! I mean eh, there are those who can be trusted, but may not need ALL the access ya dig?! When users are created there are many properties that make of a such. The properties are the following: **User ID, Group ID, Home Directory, Default Shell and Password**. 

Now that we have that out of the way, let's speak on how to manage these users using a few commands. Remember if you need any assistance when using the commands, always refer to the manual built within Linux.

**<u>User Management Commands</u>**

**Creating a User**
`useradd <username>`

* When using the command you may be prompted to add details to the user. It's a common practice to fill as much as needed for the user as possible. I don't typically fill it out because I'm the sub user who just want my system to be secure.

**Delete a User**
`userdel <username>`

**See all user accounts on system**
`sudo nano /etc/passwd`

**Sudoers file config**
`sudo nano /etc/sudoers`

**Change user password**
`passwd <username>`

**Give user the sudo (root) privilege**
`sudo usermod -aG sudo <username>

**Switch users**
`su - <username>`

**Add users to a group**
`sudo usermod -a -G <groupname> <username>'

**Add users to multiple groups**
`sudo usermod -a -G group1,group2 username`


There are many additional commands to execute user management, but these are just a few to start. Be sure to practice using a regular user with root privileges. This is recommended on just about every cybersec tutorial videos studied and it makes much sense. I'll provide resources for the commands and why user management is important in cybersec.

Until next post.

Peace


**Resources**

[User Management]
(https://linuxize.com/post/how-to-create-users-in-linux-using-the-useradd-command/)

[Don't use Root as a User if Possible](https://serverfault.com/questions/416412/what-are-the-actual-benefits-of-assigning-sudo-privileges-to-a-user-instead-of-u)
How Do You Navigate Success beyond the Paycheck?
Tags: discuss, career
Published: 2024-01-30 19:22:15

How can professionals in the tech industry redefine success to include aspects beyond financial milestones, and why is this important for career satisfaction?
<br>
Follow the DEVteam for more discussions and online camaraderie!
{% embed [https://dev.to/devteam](https://dev.to/devteam) %}
Lyra reporta un crecimiento regional del 70% y logra conectar en Chile a más de 5.000 tiendas
Published: 2024-01-30 19:20:47

La implementación de tecnología aplicada a los pagos y la recaudación de las empresas puede tener un impacto significativo en el impulso de las ventas y crecimiento de los negocios, es por eso que año pasado se realizó el [lanzamiento ](https://digitalnewstimes.com/)en Perú de Cyclopay, que ha tenido un impacto excepcional en el mercado de pagos, ya que en un breve período permitió procesar más de 20 [millones ](https://dailyindustrialnews.com/)de transacciones, generando un volumen de TPV de USD 500,000. Además, a través de este servicio los clientes alcanzaron una conversión del 92% y una [recuperación ](https://thedailybreaker.com/)de incobrables del 98% en [promedio](https://renovationindianapolis.com/).
Monnet Payments: Fintech alcanza su primer billón de dólares de procesamientos en un año
Published: 2024-01-30 19:20:04

La empresa ha transformado el panorama empresarial en todo Latinoamérica, procesando pagos en 8 países de la región, utilizando la tecnología y la innovación como pilares, brindando experiencias de uso [sencillas](https://thedailybreaker.com/), seguras, rápidas y sin los costos asociados a las transacciones tradicionales, facilitando así los pagos transfronterizos para todas las empresas e impulsando el acceso y operación de las mismas en nuevos [mercados](https://renovationindianapolis.com/). 

Desde sus inicios, la firma apostó por la [innovación ](https://digitalnewstimes.com/)y la tecnología para establecer un sistema de pagos robusto, eficiente y seguro. Con más de 3 años en el mercado de facilitadores de pago y [presencia ](https://dailyindustrialnews.com/)a nivel regional, se especializa en servicios de payins y payouts, con tiempos de acreditación menor a 1 hora en promedio y hasta en algunos países de Latinoamérica, en tiempo real, lo cuál reafirma el compromiso que tienen con sus clientes.
Dolby & TECNO Elevate Global Audio: Immersive Spatial Sound Partnership
Published: 2024-01-30 19:19:39

TECNO has partnered with Dolby Laboratories to deliver a groundbreaking Dolby Atmos spatial sound experience to its global users. Starting with the POVA 6 Series, debuting at Mobile World Congress Barcelona 2024, TECNO aims to provide an immersive audiovisual encounter. Dolby Atmos enhances the audio experience across all entertainment content on TECNO devices, offering multidimensional sound with depth and clarity. The upcoming POVA 6 Pro 5G, to be released in late February, will showcase this technology, promising an exhilarating gaming experience. Following the POVA 6 Series, all future TECNO CAMON and PHANTOM Series devices will feature Dolby Atmos, aligning with both brands' commitment to delivering premium and innovative entertainment experiences.

More Information : https://www.techdogs.com/tech-news/pr-newswire/tecno-partners-with-dolby-to-bring-pioneering-immersive-spatial-sound-experience-to-global-users
Today I learned about basic Ruby syntax
Tags: beginners, ruby, coding, learning
Published: 2024-01-30 19:12:19

```Ruby
# Commenting goes like this for single-line statements
=begin
This is for when you want comments to go more than one line 
without having to keep putting a # before anything intended for 
comments
=end
=begin 
[name] variables  example below name is now a variable that 
can be called multiple times and can be changed at any point by 
the developer using methods or reassigning the variable based on 
whatever the developer's intentions are
=end
name = "Adolfo"
#    ^ means to assign the variable to whatever you want it to be whether that would be a number or a string by putting ""
number = "123456"
pp number.to_i

require "date"

saved_date = Date.new(2024,12,25)
pp saved_date
# method calling for strings or int objects [name].{method name}(arguments for method)
```
Top Challenges In Digital Assets: Insights From Topp Jirayut At WEF 2024
Published: 2024-01-30 19:10:52

Bitkub Capital Group Holdings, led by Jirayut Srupsrisopa, participated in the World Economic Forum 2024 in Davos, Switzerland. The event featured over 2,800 distinguished delegates, including world leaders and business founders. For the third consecutive year, Jirayut shared his vision under the theme "Rebuilding Trust." As a keynote speaker on "Clear-Eyed about Crypto," he advocated for appropriate regulations in the digital asset industry, emphasizing the need for rules that maximize cryptocurrency potential within legal bounds. Jirayut highlighted Thailand's validated crypto market and urged regulatory authorities to understand digital asset trading dynamics before framing rules. He emphasized that regulations should be context-specific, rejecting a one-size-fits-all approach in digital asset rule-setting.

More Information : https://www.techdogs.com/tech-news/pr-newswire/topp-jirayut-pinpoints-3-challenges-on-digital-assets-at-world-economic-forum-2024
Monnet Payments: Fintech alcanza su primer billón de dólares de procesamientos en un año
Published: 2024-01-30 19:07:04

Desde sus inicios, la firma apostó por la [innovación ](https://digitalnewstimes.com/)y la tecnología para establecer un sistema de pagos robusto, eficiente y seguro. Con más de 3 años en el mercado de [facilitadores ](https://dailyindustrialnews.com/)de pago y presencia a nivel regional, se especializa en servicios de payins y payouts, con tiempos de acreditación menor a 1 hora en promedio y hasta en algunos países de Latinoamérica, en tiempo real, lo cuál reafirma el compromiso que tienen con sus clientes.

"Cuando armamos el [presupuesto ](https://thedailybreaker.com/)para 2023, decidimos ser bastante ambiciosos con la meta de ventas: procesar 1 billón de dólares. Se veía bastante retador en ese momento, pero una vez aprendimos que con talento, trabajo en equipo, dedicación y [planificación](https://renovationindianapolis.com/), no hay nada imposible. No solo alcanzamos la meta del billón, sino que lo hicimos con 25 días de anticipación", afirma Franco Zurita, Founder y CCO de Monnet Payments.
Monnet: un único proveedor para dispersión de pagos, la solución financiera del futuro
Published: 2024-01-30 19:05:27

La seguridad es otra área donde esta consolidación brinda beneficios tangibles. Un solo proveedor puede ofrecer protocolos de seguridad unificados y actualizados [regularmente](https://dailyindustrialnews.com/), garantizando que todos los pagos se realicen de manera segura. La centralización de los datos y transacciones también facilita el monitoreo y la identificación de posibles amenazas o [irregularidades](https://digitalnewstimes.com/).

La flexibilidad y [adaptabilidad ](https://thedailybreaker.com/)son aspectos cruciales en el dinámico mercado actual. 

En conclusión, la capacidad para ajustar rápidamente las estrategias de pago se vuelve una ventaja [competitiva ](https://renovationindianapolis.com/)al permitir que la trazabilidad de los pagos sea un proceso más ágil y completo volviéndolo en una experiencia invaluable para el usuario final.

Un único proveedor para dispersión de pagos se traduce en una mayor adaptabilidad a las fluctuaciones del mercado y a las variaciones en las regulaciones financieras globales.
Mongo Quries
Published: 2024-01-30 18:58:58

https://mongoplayground.net/
https://mongoplayground.net/p/nSkGB4QZ25u
https://mongoplayground.net/p/qGtVCJXWdu6
https://mongoplayground.net/p/FaFRhAOuNd-
https://mongoplayground.net/p/wpsz2rRBAvl
https://mongoplayground.net/p/PKe4tMz9GFD

https://www.mongodb.com/docs/database-tools/mongodump/

https://www.mongodb.com/docs/manual/replication/
https://www.mongodb.com/docs/manual/sharding/

https://onecompiler.com/mongodb/422z3pbxc for Mongo
https://onecompiler.com/mysql/422z45cjx for MYSQL

Topic tutorials on Node
https://onecompiler.com/tutorials/nodejs/express/express
https://onecompiler.com/tutorials/mysql
https://onecompiler.com/tutorials/javascript

https://onecompiler.com/javascript
https://onecompiler.com/typescript
https://onecompiler.com/tools

https://www.humongous.io/app/playground/mongodb/65b950fc6b903efa6a7a0d74
https://www.humongous.io/docs/projects/create-project
https://www.humongous.io/docs/collections/search

https://www.mycompiler.io/new/mongodb





BSON= 
[
  {
    "key": 1,
    "price": 666
  },
  {
    "key": 2,
    "price": 300
  }
]

db.collection.aggregate([
  {
    $group: {
      _id: null,
      total: {
        $sum: "$key"
      },
      totalprice: {
        $sum: "$price"
      },
      max: {
        $max: "$price"
      },
      min: {
        $min: "$price"
      },
      avg: {
        $avg: "$price"
      },
      count: {
        $sum: 1
      }
    }
  }
])


db.collection.aggregate([
  {
    $sort: {
      price: 1
    }
  }
])

db.collection.find({
  "$text": {
    "$search": "cakes"
  }
})
Linux On The Go (Termux)
Tags: linux, termux, ethicalhacking, cybersecurity
Published: 2024-01-30 18:50:52

Peace,

While undergoing the daily Linux usage, I came across an app via smartphone that allows a shell emulator on the go. It's called Termux, and it's available via F-Droid. Now if you aren't familiar with what F-Droid is then there is no worries. I gotcha covered with this incredible tool that allows users to download apps that aren't distributed on the Google Play Store. Let's speak a bit about the mighty emulator Termux shall we?!

Termux has been used for some weeks now and the amazing features it offer really makes it feel like a laptop in the pocket. Linux runs exactly like any other distro enabling the same commands to be used as well. Files and directories are stored on the SD card within the smartphone. This is great for massive users like myself who have larger storage on the smartphone. While going out for a bite of lunch to having appointments, the Linux shell is right there ready for small projects and more.

Lately, I've been practicing different ssh connections and networking commands to get in the hacker mindset from mobile devices. Nano text editor is included in Termux as well for great development ideas on the go. I've been scanning networks just to practice pen-testing ideas then sending contents to a txt file. After executing a few ideas, I started to research more about Smartphone Ethical Hacking and came across a few resources I'll link below. It's quite interesting what tools are out there which 'actors' can use to attack via mobile. Exploits were explored as well which are scripts that 'actors' use to send malware and much more. One thing that was quite amazing is that you can also install Kali Linux on the Android device as discussed prior blog post. For more info on that, feel free to click the resource links below. Welp, let me get back to the daily grind.

Until next post.

Peace.


**Resources**

[F-Droid](https://f-droid.org/)
 
[Termux](https://termux.dev/en/)

[Nethunter Pro] (https://www.kali.org/get-kali/#kali-mobile)

[Mobile Ethical Hacking] (https://www.hackthebox.com/blog/intro-to-mobile-pentesting)
Mastering Instagram Automation: Create Your Own Python Bot in Easy Steps
Tags: python, bot, instagram, beginners
Published: 2024-01-30 18:45:28

**Introduction**
Hey there! Ever wondered how some Instagram accounts seem to be on autopilot, liking posts, following users, and even commenting without missing a beat? That’s the magic of an Instagram bot, a nifty tool that automates various Instagram activities. Now, imagine creating your own bot. Sounds cool, right? That’s exactly what we’re diving into today with our main focus on “**Instagram Bot with Python.”**

In this digital era, where time is precious, an Instagram bot can be a game-changer, especially for marketers, influencers, and anyone looking to boost their presence on Instagram. These bots can handle repetitive tasks like following users, liking posts, or even unfollowing accounts, all based on specific criteria you set. It’s like having a **personal assistant** for your Instagram account!

But here’s the best part – you don’t need to be a tech wizard to create one. With some basic Python skills and our guide, you’ll be on your way to automating your Instagram activities in no time. We’ll use Python, a powerful yet user-friendly programming language, to build our **Instagram bot**. It’s not just about increasing followers; it’s about smartly managing your online presence.

So, whether you’re looking to grow your audience, engage more efficiently, or just have some fun **experimenting**, our “Instagram Bot with Python” guide is your ticket to upping your Instagram game. Let’s get started and unlock the potential of Instagram automation!

**Setting Up the Environment**
Alright, let’s roll up our sleeves and set the stage for our Instagram bot adventure. Think of this as laying the foundation of a house – it’s crucial for everything that comes next. We’re going to set up Python and a super cool library called InstaPy. Don’t worry, it’s easier than it sounds, and I’ll guide you through each step. 
**more information about this post 
click** [here](https://codewithnazam.com/mastering-instagram-automation-create-your-own-python-bot-in-easy-steps/)
Testing Techniques Of Software
Tags: learning, beginners, testing, phyton
Published: 2024-01-30 18:35:14

There are some particular test techniques to write testcases. 
BOUNDARY VALUE ANALYSIS,DECISION TABLE TESTING,USE CASE TESTING.

<<<TECHNIQUES OF SOFTWARE TESTING>>>
1. BOUNDARY VALUE ANALYSIS:
   In this BVA  We test boundaries between equivalence partitions
and write one testcase for each boundary value. spotting the issue in input field defects. Expanded test coverage to include input field value verification. Improved application quality by identifying input data problems. Increased compliance with some regulatory and standards requirements.
Example: If you are designing a program to handle number values between 1 and 100, then the boundary values should be 1 and 100. To complete the BVA test analysis successfully, you need to test with the boundary values of Testcase 1- 0,Testcase2-1,Testcase3- 2, Testcase4-99,Testcase5-100,Testcase6-101 and Testcase$-max.

2. DECISION TABLE TESTING:
   Decision table testing in which we use all the possible combination to be tested wherein each rule has one Testcase.
A decision table helps to check all possible combinations of conditions for testing and we can also identify missed conditions easily. The conditions are indicated as True and
 False values.
EXAMPLE:LOGIN SYSTEM 
TRUE- Correct username and password.
Login successful.
FALSE–  If Wrong username or password.
Error– Error message is displayed as incorrect username or password.
H – Home screen is displayed.

3. USECASE TESTING:
   All communication dialogue is between the actor and system, main success scenario is put first on table which check the flow fine. There can be multiple extension to a state. We write one testcase for extension and one for the happy scenario which works fine without any error. The purpose of use case is to understand the end-user interaction with the system Use case creation can be helpful in the requirement gathering, and design phase.
EXAMPLE:ATM machine.

4. LCSAJ TESTING: (linear code sequence and jump)
   Linear code sequence LCS is a series of instruction given in a line sequence and it is a part of code.
It is executed in straight or sequence order without any branches or jumps. The goal is to ensure that it behaves as expected.
JUMP:
It refer to the control flow operation. The normal sequential execution of code is altered based on condition.
Were LCSAJ testing involve testing the linear code sequence and ensuring that all the possible jumps and decisions are executed during testing including both true or false outcome condition statements.
EXAMPLE:
Read input A
Read input B
if A > B
 C = A+ B
else
C=A-7
D=C*2
Print D.