teleren/devto huggingface dataset:
AFFiNE, Next-Gen Knowledge Base: Notion-, Miro- & Monday-Alternative in Open Source:
Tags: webdev, linux, python, programming
Published: 2023-02-15 01:02:04



AFFiNE, die Next-Gen Knowledge Base: Notion-, Miro- & Monday-Alternative in Open Source: 

AFFiNE, das neue System, das Miro (collaborating-whiteboard) und Notion (note-taking) und Monday resp. Trello. (Projektmanagement) ablösen will - es kündigt an die Integration der Features beider Systeme zu bieten - und quelloffen zu sein. 

ganz neu: [b]AffineOfficial sucht Botschafter:[/b] 

We've been working hard on upgrading our systems and have now launched our community platform.
We look forward to developing this platform and growing it with your help and support.
So come along and join in the fun over at: https://community.affine.pro and introduce yourself to the rest of the community.
And then we'd like to say congratulations as we'd love to add you to the ambassador program.
So what are you waiting for?
See you in the community!
Any issues, just let me know.
Kind Regards
Chris @ AFFiNE



[b]Links:[/b] https://github.com/toeverything/AFFiNE 
Interessant: eine Kombination von Notion & Miro-Features zu haben, und gleichzetig ein Open-Source-Projekt, welches offen entwickelt wird.	
	
[b]Zentraler Ansatz:[/b] das Open-Source-Konzept, welches komplett anders ansetzt u. sogesehen radikal anders ist als alle o.g. Projekte: 
[b]Motto:[/b] Open-source, privacy-first,and always free. Built with Typescript/React/Rust  https://github.com/toeverything/AFFiNE

AFFiNE is the Next-Gen Knowledge Base to Replace Notion & Miro. Open-source, privacy-first, and always free. Built with Typescript/React/Rust
https://github.com/toeverything/AFFiNE

[b]Projekt: [/b]
https://affine.pro :: https://github.com/toeverything/AFFiNE

[b]Demo: [/b]
- https://livedemo.affine.pro/AFFiNE/
- https://pathfinder.affine.pro/workspace

[b] weitere Links, Quellen, Ressourcen::[/b]

AFFiNE is an open source alternative to Notion & Miro and can help build knowledge base.
Click Here to know more: https://github.com/toeverything/AFFiNE

ein Artikel auf Medium:  https://medium.com/@affineworkos/affine-the-next-gen-knowledge-base-to-notion-and-miro-403f0afd9fba 
	
community-page: https://community.affine.pro/home
Twitter:  https://twitter.com/AffineOfficial

AFFiNE - FREE, Open Source, Privacy First Monday Notion Miro Alternative
https://www.youtube.com/watch?v=lYmjgzyckQc
Aplicaciones para Desarrollador 🦹🏻
Tags: frontend, backend, fullstack, webdev
Published: 2023-02-15 00:33:47

- git: https://git-scm.com/
- Wox: http://www.wox.one
- Warp: https://www.warp.dev/
- Slack: https://slack.com/intl/es-ar
- Alfred: https://www.alfredapp.com
- RunJS: https://runjs.app/
- Poedit: https://poedit.net/
- Ohmyz: https://ohmyz.sh
- Picpick: https://picpick.app/es/
- Cygwin: https://www.cygwin.com/
- Magnet: https://magnet.crowdcafe.com
- Filezilla: https://filezilla-project.org/
- iTerm 2: https://iterm2.com
- ClickUp: https://clickup.com
- Postman: https://www.postman.com/
- Karabiner: https://karabiner-elements.pqrs.org/
- Haroopad: http://pad.haroopress.com/
- GitKraken: https://www.gitkraken.com/
- Virtualbox: https://www.virtualbox.org/
- Sourcetree: https://www.sourcetreeapp.com
- Dark reader: https://darkreader.org
- MobaXterm: https://mobaxterm.mobatek.net
- Auto hotkey: https://www.autohotkey.com/
- Wampserver: https://www.wampserver.com/en/
- Diadiagraman: http://dia-installer.de/
- GitHub desktop: https://desktop.github.com/
- Visual Studio Code: https://code.visualstudio.com/
Formatar moeda de forma simples e rápida em JAVA
Tags: java, beginners, tutorial, programming
Published: 2023-02-15 00:29:46

A formatação de moeda é uma tarefa comum em aplicativos Java que lidam com transações financeiras. A linguagem Java fornece uma classe java.text.NumberFormat para ajudar na formatação de valores numéricos, incluindo valores monetários. Neste artigo, vamos ver como usar a classe NumberFormat para formatar moeda.

Passo 1: Importe a classe NumberFormat
Para usar a classe NumberFormat, primeiro você precisa importá-la no seu código Java. Adicione a seguinte linha no início do seu código:

```
import java.text.NumberFormat;

```

Passo 2: Crie uma instância de NumberFormat
Para formatar um valor monetário, você precisa criar uma instância da classe NumberFormat. A classe NumberFormat é uma classe abstrata, portanto, você não pode criar uma instância diretamente. Em vez disso, você pode usar um dos métodos estáticos fornecidos pela classe NumberFormat para criar uma instância. Por exemplo, o método getCurrencyInstance() retorna uma instância da classe NumberFormat que pode ser usada para formatar valores monetários. Aqui está um exemplo:

```
NumberFormat currencyFormat = NumberFormat.getCurrencyInstance();

```

Passo 3: Formate o valor monetário
Depois de criar uma instância de NumberFormat, você pode usá-la para formatar um valor monetário. O método format() da classe NumberFormat recebe um valor numérico como parâmetro e retorna uma string formatada que representa o valor monetário. Aqui está um exemplo:

```
double value = 1234.56;
String formattedValue = currencyFormat.format(value);
System.out.println(formattedValue);

```

O resultado desse código seria:

```
R$1.234,56

```

O símbolo da moeda e o formato da string podem variar de acordo com a localidade padrão do sistema.

Passo 4: Personalize o formato
Você pode personalizar o formato da string formatada usando os métodos fornecidos pela classe NumberFormat. Por exemplo, o método setMaximumFractionDigits() define o número máximo de dígitos após a vírgula decimal na string formatada. Aqui está um exemplo:

```
currencyFormat.setMaximumFractionDigits(0);
String formattedValue = currencyFormat.format(value);
System.out.println(formattedValue);

```

O resultado desse código seria:

```
R$1.235
```

Isso define o número máximo de dígitos fracionários como zero, o que arredonda o valor para o inteiro mais próximo.

Conclusão
A classe NumberFormat fornece uma maneira fácil de formatar valores monetários em Java. Com algumas linhas de código, você pode criar uma instância de NumberFormat, formatar um valor monetário e personalizar o formato da string formatada. Usando a classe NumberFormat, você pode garantir que seus valores monetários sejam apresentados de forma consistente e fácil de entender para seus usuários.
Domine el objeto Console de JavaScript: 5 técnicas esenciales para ahorrar tiempo y evitar errores
Tags: webdev, javascript, programming, console
Published: 2023-02-15 00:07:46

Si eres programador de JavaScript, es muy probable que hayas utilizado el método `console.log` en numerosas ocasiones para visualizar información y solucionar errores en tu código. Sin embargo, el objeto console ofrece mucho más que simplemente mensajes en la consola. En este artículo, te presentamos cinco métodos del objeto console que pueden ayudarte a ahorrar tiempo y evitar dolores de cabeza al programar.

## Console.log() con un objeto
Aunque `console.log` es el método más básico que todos conocemos, en ocasiones puede ser difícil visualizar grandes cantidades de información. Para mejorar la visualización de los datos, puedes utilizar objetos {} en conjunto con `console.log.`

## Estilos CSS
¿Sabías que puedes aplicar estilos CSS en la consola para mejorar la presentación de tus mensajes? Con esta herramienta podrás darle un toque de estilo y personalización a tus mensajes, lo que hará que sea más fácil encontrar lo que necesitas.

## Advertencias con console.warn
En ocasiones, cuando la consola imprime mucha información, puede ser difícil encontrar lo que buscas. Para solucionar este problema, te recomendamos utilizar console.warn, que coloreará tus mensajes en amarillo para hacerlos más fáciles de identificar.

## Console.error
En nuestro día a día, es común utilizar `console.log` con un mensaje de error después de hacer llamadas HTTP. Sin embargo, si quieres obtener más información sobre el error, debes utilizar console.error. Este método proporcionará más información y marcará el error en rojo para evitar que se pierda información importante.

## Console.table
¿Cuántas veces has mostrado una lista de elementos para visualizar la información que te trae la API? Con console.table, puedes mejorar la visualización de esta información de manera atractiva y fácil de entender. Esta herramienta te permitirá ver los datos en una tabla, lo que hará que sea más fácil analizar y entender la información.

Comparte estos trucos con tus colegas programadores para que todos puedan optimizar su trabajo con el objeto console de JavaScript. ¡Mejora tus habilidades de programación con estas herramientas y facilita tu trabajo!
convert 400 PDF into JPG with command line in Linux with a batch command
Tags: python, linux, batch, pdf
Published: 2023-02-15 00:07:26


well i  have a entire folder of nearly 400 pdf files that had gotten accidentally scanned into pdf files instead of jpg. I have been looking for a way to correct this and everyone says use Linux,  All I need is a simple command to make this convert the contents of the entire folder; all the pdf files are in just one folder. 


i think that this might be appropiate

```find  -type f -name '*.pdf' -exec pdftoppm -jpeg {} {} \;
```

and supsequently i use this to separate the files and put them into a separate folder:

```
mkdir jpg_files && mv *.jpg jpg_files/
```

and besides this we can do this with python: 


```

#!/usr/bin/python3
import sys
from pdf2image import convert_from_bytes

images = convert_from_bytes(open(sys.argv[1], "rb").read())
for i in range(len(images))
    images[i].save(f"page-{i}.jpg")
```

    
With this test document I see:


well i guess that we can go like this in pyvips as:

```

#!/usr/bin/python3

import sys
import pyvips

image = pyvips.Image.new_from_file(sys.argv[1])
for i in range(image.get('n-pages')):
    image = pyvips.Image.new_from_file(filename, page=i)
    image.write_to_file(f"page-{i}.jpg")

    ```
any ideas !
Berbelanja lebih simpel dengan belanja online
Tags: magangsrdkomatik2023, webdev, mobile
Published: 2023-02-15 00:07:00

Berbelanja adalah kegiatan yang tidak bisa dipisahkan dari kehidupan sehari-hari guna memenuhi keperluan sehari-hari. Namun dengan kesibukan masyakarat dalam bekerja sehingga tidak cukup waktu melakukan belanja offline atau pergi ke toko untuk membeli barang kebutuhannya, alasan lainnya yaitu barang yang sulit dicari di lingkungan terdekatnya.


Hal tersebut membuat masyarakat lebih banyak melakukan belanja online daripada belanja secara langsung ke lokasi. Founder dan CEO SIRCLO, Brian Marshal mengatakan, "Masyarakat kini dinilai semakin bergantung dengan produk dan layanan yang dihadirkan melalui platform digital, termasuk perilaku konsumen yang semakin mendorong ke berbelanja secara online," kata Brian dalam siaran pers, Jumat (22/10/2021).


Berangkat dari permasalahan diatas maka muncullah ide untuk membuat aplikasi belanja online berbasis mobile ataupun website yang menampung daftar produk yang akan dijual dan kemudian produk tersebut bisa dibeli dengan melalui beberapa tahap seperti mendaftarkan akun, mengisi data pribadi, dan melakukan transaksi  jual beli. 


Adapun manfaat menggunakan aplikasi belanja online adalah lebih hemat waktu dan tenaga, lebih mudah membandingkan harga produk, produk yang lebih beragam dibandingkan di toko fisik, metode pembayaran yang dilakukan lebih mudah.


Batasan perangkat lunak yang dikembangkan
Aplikasi dapat menampilkan daftar barang yang dijual, aplikasi dapat melakukan transaksi jual beli antara penjual dan pembeli
Adapun salah satu contohnya yaitu Tokopedia yang menggunakan Bahasa Golang dalam pengembangannya.


Referensi:
https://money.kompas.com/read/2021/10/22/211000926/riset--masyarakat-lebih-banyak-belanja-online-dibanding-offline
Why I think prisma is unbeatable.
Tags: javascript, node, prisma
Published: 2023-02-15 00:01:11

Throughout my NodeJS journey as a full-stack developer, I've been in contact with many ORMs and Query builders, dealing with databases was always a real pain for me, especially when the actual tooling around most of the ORMs is not clear enough. 

And for almost a year now, I've been using what I think is the best ORM available for NodeJS which is Prisma. It is one of the most complete tools for database manipulation that I have ever seen, and I'll be listing some things about it, and hopefully, encourage people to try it out.

## Modeling your database with code

Prisma uses a schema file to define your database, so you can write your entire database out of it, without needing to use an abstraction of some kind like classes or decorators, just a simples "model" and Prisma can generate your database with ease. It can also read your already-built database, and extract the models from it, build a schema file that matches the database.

An example would be something like this: 

```
   model User {
     id    Int     @id @default(autoincrement())
    email String  @unique
    name  String?
    posts Post[]
  }

  model Post {
   id        Int     @id @default(autoincrement())
   title     String
   content   String?
   published Boolean @default(false)
   author    User    @relation(fields: [authorId], references[id])
   authorId  Int
 }

```
With this model, you can easily generate a database with two tables, that have relations between them, and in a more "code" fashion, easily understandable.

## Automatic client and type generation

Prisma uses a custom client to manage your database queries, which means that each Prisma project has its client built in differently, the client is generated after every database migration that you do, keeping its types matching the schema file.

Prisma also generates a base type definition for every table, so you also don't need to create different type files like DTOs for your application, and use it directly imported from Prisma.

## Query Batching

Prisma automatically batches its queries, making it easy to deal with N+1 problems in graphql for example, without the need for additional tools or building custom dataloaders.

## Prisma studio

This one is what I think is the coolest feature among the others, and it differentiates Prisma from other libraries. 

When using Prisma, you can easily run a CLI command called "prisma studio", and it will read your schema file, and spin up a browser-based database managing toll, making it possible to read all your tables, add and remove content from them, and watch over them in real-time when testing.


For more information and very good documentation about it, just visit prisma.io and try it yourself, Prisma also has many implementations and automation which I didn't mention in this post.

If you like this type of content, feel free to follow me on social media and here on Dev.to, I always try to write about a cool thing that I'm using at the moment on my projects.
Imutabilidade no JavaScript e como ela faz programarmos melhor na linguagem sem tipagem
Published: 2023-03-01 18:46:55

---
title: Imutabilidade no JavaScript e como ela faz programarmos melhor na linguagem sem tipagem
published: true
date: 2023-02-15 00:00:00 UTC
tags: 
canonical_url: https://mariosouto.com/posts/imutabilidade-no-javascript-e-como-ela-faz-programarmos-melhor-na-linguagem-sem-tipagem
---

Eai, já ouviu falar de programação funcional e ficou se perguntando na prática os efeitos disso no dia a dia? Nesse vídeo eu trago um pouco de como o conceito de Imutabilidade faz diferença no dia a dia trabalhando com JavaScript, bora ver? 👨‍💻

<iframe width="560" height="315" src="https://www.youtube.com/embed/V0itE71YZdo" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen=""></iframe>

* * *

Link para assistir direto e compartilhar: [https://youtu.be/V0itE71YZdo](https://youtu.be/V0itE71YZdo)

* * *
The importance of Web Accessibility
Published: 2023-02-14 23:40:58


Ever since i heard about web accessibility, i have always tried to meet up with that.

Web accessibility is all about how easy and good your website and other softwares is to users.

So many business websites out there are not meeting up to the accessibility factors. Is your website contrast okay for people with color blindness? Does the images have alt text for screen readers? Is your website mobile friendly? 

The benefits of implementing web accessibility in your website and other softwares is very massive. It makes your website to be accessible for everyone, including people with disabilities which is one of the key factors (universality) of the web according to Tim Berners-Lee. 

A fast loading websites increases the revenue of the business or company. According to research, a one-second site speed improvement can increase conversions  by up to 27%. It also increases trust. That's massive right? 

A website that has good accessibility rate is likely to rank on search engines like Google. When your set is mobile friendly, has good contrast and well SEO optimized, search engines will show your websites to customers as one of the best in that niche when they search for some certain keywords. But how will that help your business? Well, it will increase your business online visibility which will lead to increase in customers, this will increase the revenue of your business and decreases the ad budget. Amazing right😊? 

But how can someone know about the accessibility rate of a website? 

There are so many tools out there that can help you to do that. You can use Google SpeedPage Insight or Gtmetrix. Although some people are saying that Google SpeedPage Insight is not 100% accurate, but for you to be sure of the results, you can use the two, that's what i do. 

I can't talk about web accessibility without acknowledging the efforts of amazing companies that promulgates the importance of web accessibility and makes it possible as well. 

Finally, as a developer, always try to consider web accessibility factors, it makes your work nice and friendly to use. 

#webdevelopment #programmer #softwaredevelopment #webaccessibility #frontenddeveloper
Aplicaciones para Desarrollador UX 🧝🏻‍♀️
Tags: figma, balsamiq, sketch, adobexd
Published: 2023-02-14 23:24:46

- Figma: https://www.figma.com/
- Balsamiq: https://balsamiq.com/
- Sketch: https://www.sketch.com/
- Adobe xd: https://www.adobe.com/la/creativecloud.html
- Atomic: https://www.atomic.io/
- Marvel: https://marvelapp.com/
- Smaply: https://app.smaply.com/
- inVision: https://www.invisionapp.com/
- Illustrator: https://www.adobe.com/ar/products/illustrator/free-trial-download.html
- Photoshop: https://www.adobe.com/ar/products/photoshop/free-trial-download.html
Day 695 : Fall In Love
Tags: hiphop, code, coding, lifelongdev
Published: 2023-02-14 23:24:43

_liner notes_:
- Professional : Updated 2 repos and made pull requests. Trying to keep that pace for the rest of the week. Also had a meeting with my manager and got some good news about my work assessment.

- Personal : Last night, I went through the list of tracks I compiled last week and looked up the Twitter handles of the artists. I think I did a little refactoring of my code, but don't remember. I really need to start using https://WhatYouDo.in again. This is why I created it in the first place, haha. I know I have a bad memory. 

![A valley with green, yellow and orange dirt with some orange flowers and a mountain range in the distance](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/thjpw88j885q40bhvue9.jpg)

I just got caught up in trying to code a solution for an interesting problem dealing with dates. haha I think I got it though and sent it to the person. Need to get back to the stuff I planned to do. haha Still haven't watched "Trigun: Stampede" and "Vinland Saga" yet. Maybe I'll do that after I get the Instagram accounts for the artists in the list of tracks for the radio show. Also, want to work on the authentication issue I'm running into my side project.

Also, since it's Valentine's Day. A reminder, "don't sell yourself to fall in love". Classic track!

Have a great night!

peace piece
Dwane / conshus
https://dwane.io / https://HIPHOPandCODE.com
{% youtube iFo_0bTXL2g %}
Transaction Monitoring for dummies
Tags: fraud, fintech, banking, developers
Published: 2023-02-14 23:10:24


![Mobile banking transaction monitoring](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yll3bpzp7scyw02pn7ij.png)

In today's digital age, businesses of all sizes rely on payment systems to complete transactions. However, with the increase in online payment processing, the risk of fraud and financial loss has also increased. To combat these challenges, transaction risk scoring and monitoring has become an essential tool for businesses.

Transaction risk scoring and monitoring is the process of analyzing and identifying fraudulent activities or suspicious transactions. It helps businesses identify, prevent and mitigate risks by using advanced analytics and monitoring tools to assess the risk level of each transaction in real-time.

By setting up a robust transaction risk scoring and monitoring system, businesses can automatically detect fraudulent activities and take immediate action to prevent further damage. The system can also detect unusual patterns of transactions, such as a sudden increase in the transaction amount or frequency.

To set up a transaction risk scoring and monitoring system, businesses need to define their risk tolerance levels and establish a risk scoring model. The scoring model should factor in various parameters, such as transaction type, amount, customer behavior, and location, to calculate a risk score for each transaction.

To effectively monitor and manage transaction risks, businesses need to implement an automated alert system that flags high-risk transactions for review. This helps businesses proactively identify and address potential fraud before it leads to a financial loss.

Furthermore, transaction risk scoring and monitoring should be an ongoing process. Businesses need to constantly review and update their scoring models to adapt to changing market conditions and emerging fraud trends.

In conclusion, transaction risk scoring and monitoring is a crucial tool in today's business landscape. By establishing a robust system, businesses can effectively manage transaction risks, detect and prevent fraud, and protect their customers' financial data. To stay ahead of the competition and protect your business, it's time to start prioritizing transaction risk scoring and monitoring.


At Stack, we have built a robust transaction risk scoring and monitoring API that takes all the stress out of building your own model from the ground up. This api learns about your customers' transaction patterns and evaluates risks in real-time.  Visit our developer documentation to learn more https://docs.stack-ft.com