teleren/devto huggingface dataset:
Calculadora Alicia - Your Simple Online Calculator
Tags: math, online, education, student
Published: 2024-04-02 09:05:09

Hey there! Are you tired of struggling with math problems? Introducing [Calculadora Alicia](https://calculadoraalicia.mx/) – your new best friend when it comes to crunching numbers online! Whether you're a student, a professional, or just someone who needs to do some quick calculations, Calculadora Alicia is here to make your life easier.

So, what exactly can Calculadora Alicia do for you? Well, pretty much anything you need when it comes to math. Need to add, subtract, multiply, or divide? No problem! Our calculator handles basic arithmetic like a breeze. But that's not all – we've also got features for calculating percentages, which can come in handy whether you're figuring out discounts while shopping or calculating tips at a restaurant.

But what sets Calculadora Alicia apart from other online calculators? It's our commitment to simplicity and ease of use. Our interface is clean, intuitive, and straightforward, so you can spend less time figuring out how to use the calculator and more time actually getting your math problems solved. Plus, Calculadora Alicia works seamlessly on both desktop and mobile devices, so you can take your math-solving skills with you wherever you go.

Whether you're a math whiz or someone who just needs a little extra help with numbers from time to time, Calculadora Alicia is here to lend a hand. Say goodbye to math-related headaches and hello to a simpler, more convenient way of doing calculations online. Try Calculadora Alicia today and see the difference for yourself!
"5000 Indians Trapped in Cyber Scam: Urgent Call for Cybersecurity Vigilance"
Tags: cybersecurity, cybercrime, onlinescam
Published: 2024-04-02 09:03:25

In a shocking turn of events, reports have surfaced revealing that 5000 Indian citizens have been forcibly detained in Cambodia, coerced into partaking in online scams that have raked in a staggering 500 crore rupees over a mere six-month period.

This distressing news serves as a stark reminder of the pervasive cyberthreats lurking in our digital landscape. The incident underscores the critical need for robust [cybersecurity measures](https://www.strongboxit.com/) and the indispensable role of cybersecurity service providers in combating such malicious activities.

As cybercriminals continue to exploit vulnerabilities and devise sophisticated schemes, it is imperative for individuals and organizations alike to prioritize cybersecurity. By partnering with reputable [cybersecurity service providers](https://www.strongboxit.com/top-10-cyber-security-companies-in-india-2024/) and implementing comprehensive security protocols, we can fortify our defenses against evolving cyber threats and mitigate risks effectively.

The plight of these captive individuals highlights the urgent necessity for heightened awareness and proactive measures to safeguard against cyber exploitation. It is crucial for everyone to remain vigilant, educate themselves on cybersecurity best practices, and seek assistance from trusted cybersecurity service providers to mitigate potential risks.

As we grapple with this alarming revelation, let us stand united in our commitment to bolstering [cybersecurity defenses](https://www.strongboxit.com/top-10-penetration-testing-companies-in-2024/), protecting ourselves from malicious actors, and fostering a safer online environment for all. Together, we can confront the growing menace of cybercrime and strive towards a more secure digital future.
Sentiment Analysis on Multimodal Data: Integrating Text, Image, and Audio for Emotion Detection
Tags: webdev, datascience, technnology, atharvgyan
Published: 2024-04-02 08:56:28

Multimodal Data:
Multimodal data refers to data that is represented in multiple forms or modes, such as text, images, and audio. Each modality provides unique information that can contribute to understanding sentiment and emotions.

Sentiment Analysis:
Sentiment analysis, also known as opinion mining, is the process of identifying and extracting subjective information from textual data. It involves determining the sentiment expressed in a piece of text, whether it is positive, negative, or neutral. **Read More ⩔**

{% embed https://www.atharvgyan.com/2024/04/sentiment-analysis-on-multimodal-data.html %}

⁙ You may also like ⇓

{% embed https://www.atharvgyan.com/2024/03/cloud-computing-for-sustainable.html %}

{% embed https://www.atharvgyan.com/2024/04/temporal-databases-in-relational.html %}
The new release of ODBC Drivers with Big Security Improvements, Metadata Caching, Read-Only Mode, and More
Tags: odbc, odbcdriver, devart
Published: 2024-04-02 08:52:11

Devart, a recognized vendor of world-class data connectivity solutions for various data connection technologies and frameworks, rolled out updated versions of [ODBC Drivers](https://www.devart.com/odbc/?utm_source=devto&utm_medium=referral&utm_campaign=pr_odbc28.03.24). 
This update includes several enhancements to security, metadata caching, and various quality-of-life improvements.

**The release includes the following enhancements:**

- The DSN is entered and stored in ODBC administrator for users’ data protection. 
- Metadata caching is available for Adobe Commerce, BigCommerce, Dynamics 365, FreshBooks, HubSpot, MailChimp, Marketo, NetSuite, Salesforce, Salesforce Marketing Cloud, SugarCRM, Zendesk, Zoho CRM, ZohoDesk.
- Read-only mode is available for Oracle, MySQL, and Firebird now.
- Support for MongoDB 6 and 7. 
- UTF-8 encoding support is available for xBase. 
- ETL Informatica PowerCenter and Altova Mapforce now offer improved compatibility with MongoDB, Firebird, InterBase, and xBase.

Additionally, certain ODBC drivers have been renamed:

- ODBC Driver for Magento to ODBC Driver for Adobe Commerce
- ODBC Driver for DEAR Inventory to ODBC Driver for Cin7 Core
- ODBC Driver for Sendinblue to ODBC Driver for Adobe Brevo

To learn more about the recent release and download new products, visit: 
https://blog.devart.com/new-in-odbc-big-security-improvements-metadata-caching-read-only-mode-and-more.html

**ODBC Drivers** are high-performance connectivity solutions with enterprise-level features for accessing the most popular database management systems and cloud services from ODBC-compliant reporting, analytics, BI, and ETL tools on 32-bit and 64-bit Windows, macOS, and Linux.

**About Devart** 
 
Devart is one of the leading developers of database tools and administration software, ALM solutions, data providers for various database servers, data integration, and backup solutions. The company also implements Web and Mobile development projects. 
For additional information about Devart, visit https://www.devart.com/.
Implement Traits on External Types in Rust
Tags: rust, trait
Published: 2024-04-02 08:47:10

Say you are using an type from an external crate and you want to implement a specific functionality/method on that type. As an example say you are using the linked list of my recently developed [rust_dsa](https://github.com/shakyapeiris/Rust-DSA) crate and you want to implement a method on it to print it's values in the following format.
![Linked list](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/uqr92vb8lv8ob4vvf09o.png)
```rust
let mut h = Node::new(Some(0));
// Snippet
println!("Linked list: {}", head);
```
If it's from a local trait, you can simply implement the Display trait on it as follows

```rust
impl<T: Debug + Clone + Copy> fmt::Display for Node<T> {
    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
        match &self.next {
            Some(next) => {
                print!(
                    "{} <- ",
                    Node {
                        value: self.value,
                        next: Some(next.cl)
                    }
                );
                write!(f, "{:?}", self.value.as_ref().unwrap())
            }
            None => {
                write!(f, "{:?}", self.value.as_ref().unwrap())
            }
        }
    }
}
```
But since you are using Node which is from an external trait you will face the following error when you compile your binary

![Error msg](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qtp7voo2eazkr3ztcggo.png)

So what can you do about it? You can simply implement a wrapper for that specific type and implement the Trait of your choice as follows by accessing the Type you want as a child of the Wrapper as a tuple element.

```rust
struct  Wrapper<'a, T>(&'a Box<Node::<T>>);
```
```rust
impl<'a, T: Debug> fmt::Display for Wrapper<'a, T> {
    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
        match &self.0.next {
            Some(next) => {
                print!("{} <- ", Wrapper(&next));
                write!(f, "{:?}", self.0.value.as_ref().unwrap())
            },
            None => {
                write!(f, "{:?}", self.0.value.as_ref().unwrap())
            }
        }
    }
}
```
That's it for new types and feel free to explore more on new types in [Rust book's guide](https://doc.rust-lang.org/book/ch19-03-advanced-traits.html#using-the-newtype-pattern-to-implement-external-traits-on-external-types) on Advanced traits.
Understanding Go: part 8 – Map
Tags: go, tutorial, beginners
Published: 2024-04-02 08:32:35

---
title: Understanding Go: part 8 – Map
published: true
description: Serie of sketchnotes about Go. Explaining in a visual way Go/Golang concepts.
tags: Go, Golang, Tutorial, beginners
series: Understanding Go in sketchnotes
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/l7d6x09f14m67tifzxs6.jpg
---

Even if you can create your first application in Go in a few minutes, understanding a new programming language is not easy and can be time-consuming.

After writing the blog series [Learning Go by examples](https://dev.to/aurelievache/learning-go-by-examples-introduction-448n), let's discover all the concepts of Go in a visual way, in sketchnotes.

In this blog post of sketchnotes about Go, let's discover another useful concept: Map.

![Go map](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/l7d6x09f14m67tifzxs6.jpg)
![Go map](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5srx3i3uaeocdvobk6o1.jpg)
![Go map](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sek95zs8llwrnhqbg2mn.jpg)
![Go map](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/r5fj154han43d9alldlh.jpg)
![Go map](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3okx31mb9pzjaknkez5q.jpg)
![Go map](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/n48cprw7h3yssvg28ibe.jpg)
![Go map](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mf41h9azsynx4vz56a5i.jpg)

This is the eighth blog post of this serie so if you liked it, you can follow me, and tell me what do you think ❤️. If people are interested, I will publish others sketches shortly :-).
 
Moreover, if you are interested about this way to explain visually technologies, I published an entire illustrated book about Kubernetes, available in paperback on [Amazon](https://www.amazon.fr/dp/B0BB619188/ref=cm_cr_arp_d_product_top?ie=UTF8) and in digital version on GumRoad: ["Understanding Kubernetes in a visual way"](https://gumroad.com/aurelievache#uCxcr).
And an illustrated book about Docker, available in paperback on [Amazon](https://www.amazon.fr/Understanding-Docker-visual-way-sketchnotes/dp/B0BT6ZXR1W/) and in digital version on GumRoad: ["Understanding Docker in a visual way"](https://gumroad.com/aurelievache#uCxcr).
trder trainning camp mobile H5 UI
Tags: app, ui
Published: 2024-04-02 08:30:27


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


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


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



This is a job for an old customer, mainly a trader training base for Indians.

这是一个老客户的活，主要是面向印度人的交易者培训基地

work link :

https://ludesala.blogspot.com/2024/03/trder-trainning-camp-mobile-h5-ui.html
Project-2 Colors
Published: 2024-04-02 08:27:34





**index.html**
```
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css">  
  <link rel="stylesheet" href="style.css">
  <title>Colors</title>
</head>
<body>

  <div class="container">
    <button id="submit" type="button" class="btn btn-outline-dark">Click Me!</button>
  </div>

  <script src="script.js"></script>
</body>
</html>

```

**style.css**
```
.container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

```

**script.js**
```
var colors = ["Orangered","Blue","Yellow","Green","Orange", "Cyan","DodgerBlue", "Violet", "Navy", "Purple", "YellowGreen", "OrangeRed", "SlateBlue", "Salmon", "Crimson", "HotPink", "Magenta"];
var index = 0;

document.querySelector("#submit").addEventListener("click", () => {
  if(index > colors.length - 1)
    index = 0;
  document.body.style.backgroundColor = colors[index++];  
});
```


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/57v7vve5l0wx6ghqdu2h.png)
WebP Image Optimisation + BlurHash with Sharp in NodeJS
Tags: sharp, node, typescript, blurhash
Published: 2024-04-02 07:54:06

In this blog post, we'll cover how to convert images into WebP format and create blur hash images to store in your database to show as placeholders. WebP is used to create images that only need to be used in applications.
Resizing to Fit WebP
First, there's an important thing to note when using WebP. There is a maximum width and height of 16383 (according to Google, the creators of WebP - documented here). 
If you forget to implement this you'll get a sharp error saying:

> Processed image is too large for the WebP format

So we need to implement code to resize this if necessary before converting:

{% embed https://gist.github.com/kieronjmckenna/2b2587e6c34a68947939c2ad1f2936f6.js %}


This code just does a quick check to see if it needs to be resized and returns the sharp instance if needed. 
Notice that width and height are optional on the metadata. I haven't seen these values returned as undefined, but in the event an image is corrupted ensure to handle the errors.
Converting To WebP
Next, we convert the image to WebP. We'll make use of the function above to resize if needed.

{% embed https://gist.github.com/kieronjmckenna/410309fe3ce849115a7f571d65c9166e.js %}


This returns our converted image to WebP.
For more configuration read more about using Sharp here
Creating the BlurHash
We also want to create a BlurHash to store in our database for showing a placeholder while the image loads over the network.

{% embed https://gist.github.com/kieronjmckenna/db2457b9892352cd66083469063b2931.js %}

This returns us the 36-character hashed string that can be used with BlurHash on the front end.
In our react front end we can use it like this:

{% embed https://gist.github.com/kieronjmckenna/2b32cbfada002f9776004da5ae6f08ea.js %}

Convert to fit your use case, but that's all you need to show blurred placeholders before your already optimised WebP image loads on the front end.
Read more about BlurHash usage here
Thanks for reading
Website lags a lot as they have proxies, but when I run it on a normal or public network, there is no issue ?
Tags: proxy, webdev, programmers, programming
Published: 2024-04-02 07:51:29


I have built a web application for banking.

Now when I turn the web app inside their work, it lags a lot as they have proxies, but when I run it on a normal or public network, there is no issue.

I understand proxies can add delay, but now the client asks us whether our app is “proxy safe or made to work for proxies.”

I'm clueless on how to make web app proxies safe or make them work on proxies.

What kind of changes are required?

Thanks for any help to point in the right direction.
Nowgoal - Live Football Today
Published: 2024-04-02 07:49:32


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3loly3se8wp8o5fxukj6.png)
[Nowgoal](https://live1.nowgoal15.com/) is a premier sports platform offering real-time football livescore, delivering instant information on various sports events worldwide. With a user-friendly interface, Nowgoal keeps enthusiasts engaged with live scores, schedule, standings, statistics, live streaming and match analysis. Whether it's soccer, basketball, tennis, or more, Nowgoal ensures fans stay connected to the pulse of the game.

Nowgoal - 1# livescore site with live odds, fixtures, results, standings, free betting tips, match predictions.
Trigger a Typescript AWS Lambda on Receiving an Email with SES
Tags: aws, ses, typescript, sst
Published: 2024-04-02 07:47:41

In this blog post, we’ll discuss how to trigger a Typescript AWS Lambda function when you receive an email in AWS SES. We’ll be using SST V2 in this example, but it’s easily convertible to CDK if needed.

As a prerequisite, you’ll need to set up a verified identity and inbound rule in Route 53 for this to work. The docs found here are pretty straightforward.

Infrastructure as Code (IAC)
First, we need to set up the stack and IAC for the inbound rule and function.

{% embed https://gist.github.com/kieronjmckenna/49d8e4dcfa3bc2e7c0588494587e069f %}

Ensure to change the inbound domain and function path to fit your project. This will route all traffic from the domain to your lambda function.

We also need to go into the console and mark this inbound rule as active. Note you can only have one active rule per region per account — but nothing is stopping you from adding more domains to the recipients array. We’ll cover how to route to your desired operation below.

AWS Lambda Typescript Handler
Next, we need to set up the handler to perform whatever operation we need.

{% embed https://gist.github.com/kieronjmckenna/ba66a34e7e8733058de5b0e58a51bc54 %}

With this function, we can perform whatever operation we need within our Typescript code.

Thanks for reading!
100 days Productivity challenge
Tags: productivity, growth
Published: 2024-04-02 07:40:45

So, I have been struggling with my productivity from a long time. I tend to procrastinate a lot with my tasks. The todos have become daunting now. Somehow, I'm able to complete my office tasks but personal growth seems almost impossible.
So, today I have decided that in order to grow and become more productive, I won't be using social media, restrict phone usage and doom scrolling.

Also, I'll post my progress at the end of each day, my daily learnings - personal as well as professional.
How to make a clock using html , JavaScript and CSS and deploy it using firebase
Published: 2024-04-02 07:39:12

                         

## HTML

` <div class="container"><div id="clock"></div></div>`

## CSS

`*{
    margin: 0px;
    padding: 0px;
}

.container{
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgb(67, 66, 66);
}

#clock{
    font-size: 5vw;
    font-family: orbitron;
    background-color: rgb(16, 16, 16);
    border: 1vw solid black;
    color: green;
    width: 30vw;
    height: 20vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
@media(max-width:800px)and (orientation:portrait){
    #clock{
        width: 98vw;
        height: 25vh;
        font-size: 18vw;
    }
}

@media(max-width:786px)and (orientation:landscape){
    #clock{
        width: 98vw;
        height: 50vh;
        font-size: 18vw;
    }
}

## JS

`  function Clock(){
        let d= new Date();
        hours = d.getHours()
        minutes = d.getMinutes()
        seconds = d.getSeconds()
        document.getElementById('clock').innerText = hours + ':' + minutes + ':' + seconds;
    }

    Clock()

    setInterval(()=>{Clock()},1000)`
`
Fix Code helper plugin(visual studio code) leak memory Macbook
Tags: webdev, vscode, memory
Published: 2024-04-02 07:37:31

When you work with VSC for a long time, it will consume a lot of RAM, hindering your work process and making your computer sluggish. 
Here's how you can address that:
1. Open svcode 

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

2. Press the keyboard shortcut `Command + Shift + D `and select `Preferences: Open user settings (JSON)` 

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

3.Add extra setting in `settings.json `

```
{
    "files.exclude": {
        "**/.git": true,
        "**/.svn": true,
        "**/.hg": true,
        "**/CVS": true,
        "**/.DS_Store": true,
        "**/tmp": true,
        "**/node_modules": true,
        "**/bower_components": true,
        "**/dist": true
    },
    "files.watcherExclude": {
        "**/.git/objects/**": true,
        "**/.git/subtree-cache/**": true,
        "**/node_modules/**": true,
        "**/tmp/**": true,
        "**/bower_components/**": true,
        "**/dist/**": true
    }
}
```
4. Restart the vs code

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


It reduces from 1.2 GB to 100 MB of RAM. Sounds great!
Henry Smith's Strategy for Overcoming 2024 Australian Stock Market Challenges
Published: 2024-04-02 07:25:38

Henry Smith's Strategy for Overcoming 2024 Australian Stock Market Challenges
In 2024, the Australian stock market is expected to face the following challenges:
1. Global economic slowdown:
Slower global economic growth will lead to lower corporate earnings, which will affect stock market performance.The International Monetary Fund (IMF) predicts that global economic growth will slow to 2.9% in 2024, down from 3.6% in 2023.
2. Inflationary pressures:
Inflationary pressures are expected to increase corporate costs, thereby impacting profitability. Data from the Australian Bureau of Statistics shows that Australia's quarterly inflation rate reached 7.8% in December 2023, marking a 32-year high.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/j5iduolb3uoyvkqqeg1x.png)
3. Rising interest rates:
Rising interest rates will lead to higher investment costs, reducing the attractiveness of stocks. The Reserve Bank of Australia is expected to continue raising interest rates in 2024 to curb inflation.
4. Geopolitical risks:
Geopolitical risks may increase market risk aversion, leading to stock market declines. Ongoing geopolitical tensions such as the Russia-Ukraine conflict and U.S.-China relations will continue to pose risks.
5. Domestic risks in Australia:
Domestic risks such as slowing economic growth and rising unemployment in Australia will also impact stock market performance. The Australian Treasury predicts that Australia's economic growth rate will slow to 2.5% in 2024, down from 3.5% in 2023.
Specifically:
- A global economic slowdown may lead to a decline in prices of Australia's major export commodities, affecting the profitability of Australian listed companies.
- Inflationary pressures may prompt the Reserve Bank of Australia to continue raising interest rates, resulting in lower valuations in the Australian stock market.
- Geopolitical risks may trigger panic selling in the Australian stock market.
Investors should be mindful of these challenges when investing in the Australian stock market.
Dr. Henry Smith, born in Melbourne, Australia, in 1979, moved to the United States with his parents during high school. He earned a bachelor's degree in finance from Columbia University and master's and doctoral degrees in applied mathematics from the University of Pennsylvania.
Certifications:
He holds the Chartered Financial Analyst (CFA), Certified Management Accountant (CMA), and US Certified Public Accountant (USCPA) certifications. He has previously worked at Goldman Sachs and BlackRock, primarily responsible for investment operations in Hong Kong, and is currently responsible for Australian affairs at Lonton Wealth Management Center LTD.