teleren/devto huggingface dataset:
Photoshop Image Manipulation Service
Tags: beginners, news, design, opensource
Published: 2022-08-10 06:08:58

**[Photoshop manipulation](https://prophotoshopexpert.com/photo-manipulation-service/)** and photo effects can encompass anything from retouching a face to adding an entire universe inside your favorite photo. We often associate image manipulation with Adobe Photoshop, but photo manipulation itself predates Photoshop by many, many years. Perhaps we, as artists, designers and people, have always been fascinated by altering the visual space around us.

In this article we will talk about what makes a **[photo manipulation work](https://www.upwork.com/freelancers/~01c74c051ed5c72c39)** — What makes it good? What makes it work? How do we approach it as content creators? We will also ask other artists about it.

Take a look at the Internet, social networks, advertisements and other spaces where you interact with the media. Photo effects are everywhere, from photo filters to portrait effects, and it’s not uncommon to refer to a modified image as “photoshopped.”


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

Photo manipulation can be imaginative, communicative, and artistic — it can be controversial or even unethical. Today we can do incredible things with images, the only limits being our imagination and our abilities. Still, photo effects are accessible to the masses through a multitude of very easy-to-use apps.

How do we take a photograph and transform it into something different, interesting and visually appealing from a new perspective?

My opinion is that the success — or failure — of a photo manipulation depends on the message and the purpose. Even a “simple” manipulation, such as removing (or putting) a mark on a face, has a communicative property and purpose: to make the skin different, whatever purpose this may serve.

A food advertisement may intentionally include manipulated menu items to make them more appetizing. An artist might superimpose the sky onto a ball gown for a magical touch. Or if we don’t want to go into the commercial realm, we can see it as art for art’s sake: creating something interesting or visually stimulating. We can launch with the latest visual fashion to reinterpret the fashion factor in an original way, or maybe it is a method to express ourselves.

Here is a picture of a manipulation where a girl is sitting in a hot desert wrapped in a desert sheet and she is smiling.

If you want to see how this photo was manipulated, you can watch **[this video tutorial](https://youtu.be/yWub_HOEX7w)**


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

I hope you have enjoyed these experiences and images as much as I have. Many thanks again to the wonderful featured artists for their time and sharing their work with us. I hope you create many wonderful things in the future — good luck with your own photo manipulations and creative projects!
Double charge and Double Spending!
Tags: productivity, career, discuss, beginners
Published: 2022-08-10 06:05:44

How do we avoid 𝐝𝐨𝐮𝐛𝐥𝐞 𝐜𝐡𝐚𝐫𝐠𝐞 and 𝐝𝐨𝐮𝐛𝐥𝐞 𝐬𝐩𝐞𝐧𝐝𝐢𝐧𝐠 when dealing with money?
.
.
.
.
## 🔹 Double Charge in Payment Systems

A double charge is a common problem in payment systems. The client pays $100 to buy a product, but the money gets deducted twice from the digital wallet. 
It is usually caused by retrying the money deduction operation on errors.

We can solve this by assigning an idempotency key to the transaction, so when the server sees the same idempotency key, it knows this transaction has been processed and won't process it again. In this way, the client won't be charged twice.
.
.
.
.
## 🔹 Double Spending in Blockchain Transfers

Double spending is a potential problem where the crypto money is spent twice. The client only has 1 BTC in the wallet, but he can spend it twice to buy two products from different providers.
It is caused by the blockchain consensus mechanism. 
.
.
.
👉 Steps 1–2: When 1 BTC is paid to Alice (transaction A), another transaction that pays 1 BTC to Bob can be initiated simultaneously (transaction B). The two transactions go into different unconfirmed transaction pools, waiting to be picked up and confirmed by validators.
.
.
.
👉 Steps 3–4: Validator A picks up transaction A, confirms it, and packages it in Block 2.1. Validator B picks up transaction B, confirms it, and packages it in Block 2.2. 
Now the blockchain has a fork. At this point, both transactions are confirmed, causing double-spending.

We need to wait for subsequent blocks to be generated so that we can decide which fork is chosen to be the main blockchain. For example, if Block 3 is appended to Block 2.1 first, then transaction A is still confirmed, but transaction B cannot be executed because the client's wallet doesn't have crypto money after transaction A is confirmed.

Normally we need to wait for 6+ blocks to confirm a transaction for safety.


👉 Over to you: Have you met similar problems in distributed systems?
 -
108. Leetcode Solution in Java
Tags: java
Published: 2022-08-10 05:58:00

```
/**
 * Definition for a binary tree node.
 * public class TreeNode {
 *     int val;
 *     TreeNode left;
 *     TreeNode right;
 *     TreeNode() {}
 *     TreeNode(int val) { this.val = val; }
 *     TreeNode(int val, TreeNode left, TreeNode right) {
 *         this.val = val;
 *         this.left = left;
 *         this.right = right;
 *     }
 * }
 */
class Solution {
    public TreeNode sortedArrayToBST(int[] nums) {
        if(nums == null || nums.length == 0) return null;
        return createTree(nums, 0, nums.length - 1);
    }
    private TreeNode createTree(int[] nums, int start, int end){
        if(start > end) return null;
        int mid = start + (end - start) / 2;
        TreeNode node = new TreeNode(nums[mid]);
        node.left = createTree(nums, start, mid - 1);
        node.right = createTree(nums, mid + 1, end);
        return node;
    }
}
```
#leetcode
#challenge
Here is the link for the problem:
https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree/
What Miles Davis can teach software developers
Tags: discuss
Published: 2022-08-10 05:40:00

There are people who believe in God because of hearing Miles Davis' Kind of Blue. Miles was one of the by far most influential Jazz musicians of the 20th century, and his Kind of Blue record is widely considered one of the best Jazz albums ever created. However, if you listen to it, it's got no complexity, few if any advanced sections, and in fact its defining quality is its _"lack of noise"_ in between the amazingly beautiful tiny and shimmering tones created by Miles trumpet. If you listen carefully, it's even got the occasional _"error"_ here and there, almost as if Miles didn't _want_ for it to be perfect, which makes it fragile, honest, and so close you feel as if you can touch his soul when you're listening to it.

> Music is what happens in between the noise

The above is a direct Miles quote, and by that he meant that to create Magic in music, you had to give room to breath to your audience.

{% embed https://www.youtube.com/watch?v=TLDflhhdPCg %}

## What's this got to do with software?

It implies you don't have to be brilliant all the time, you don't always have to create amazing sections of code, and you can give room for others to breadth and thrive - And as you do, this gives room for [Magic](https://aista.com/) to unfold. Pun! ;)

Be like Miles, make less noise, give room to breath, and let the Magic unfold. I am no Miles Davis, but I dabble with my Saxophone every now and then, and when I do, I hope to be at least 1% of what Miles was when he was around. If you want to hear me playing, you can watch the video below where I'm playing an old classic.

{% embed https://www.youtube.com/watch?v=9nAVSaVJZgU %}

Thank you for reading. Now go create some [Magic](https://github.com/polterguy/magic).
Can human be trained just like how we train in machine learning?
Tags: ai, python, machinelearning, productivity
Published: 2022-08-10 05:39:00

**Just curious, if human could be loaded with any data from the fetched from the internet and can be trained just like machines.**

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8nocytgfurszyk652hnk.jpg)
**We must be faster than the machines!**

I have been working so hard in this field that I started believing that we are made by other living being and are sent to earth for the civilization purpose, to harvest for them.
Since machine learning can be very fragile and can have various impact in our life, can we think of an idea that we train ourself using data present over internet so that we can actually know more about anything than a machine.
The Burn-Out Feeling.
Tags: beginners, motivation, programming, productivity
Published: 2022-08-10 05:37:00


I always felt juggling things made me more productive. Everyday, I code, research and write, take online courses, and attend programs I signed up for. At first, it was an interesting feat to have my days occupied from start to finish doing something productive. However, I was having a dysfunctional life without even knowing it. I was skipping meals, didn't even know what it felt like to see a movie, my fun time comprised of either watching youtube videos on a particular course or researching a script, it also became extremely hard to keep up conversations with people; but it was okay as long as I was doing the things l loved to do. I always kept telling myself "when I reach that point I was aiming for, I'd normalize everything". But who was I kidding??

The joyous feeling I felt when it was time to code soon started dying, I would sit in front of my system watching a tutorial, and before you know it I'm rewinding to know what was said because my mind took a trip on its own to God knows where. Things I loved to do started feeling like chores. At first, I thought I was slowly losing the drive to be what I always wanted to be. But no! I was overworking myself, and my body's way of retaliating was making me lose interest in things I loved dearly. Sleeping wasn't even an option, I felt guilty sleeping knowing I still had 70 more days of courses to cover in my 100 days of code.

In my country of residence, constant electricity was not a thing, so whenever there was light and I was coding, my prayer was for the light to go off, and every time it did, I ran straight to my bed to nap; and on days it didn't, I waited till my eyes were closing before slowing dragging myself to bed.

You are probably waiting for a paragraph on how I dealt with it, trust me that's gonna be a long wait.
I'm still here sitting in front of my computer staring at the code that won't write itself, silently praying for either the light to go off or inner strength to pop out and have me coding in minutes.
What is the difference between API and Webhook?
Tags: api, webhook
Published: 2022-08-10 05:29:00


Every business in the fast-moving tech world is in the race to provide faster services to their users, API and Wekhook helps them to achieve this goal. APIs and webhooks are both responsible for the communication between two applications, But they often get confused with each other.

In this article we will discuss the difference between API and Webhook, but before that we need to understand what exactly is API and Webhook to understand the difference between these two.

**What is API?**	

API (Application Programming Interface) helps application to talk to each other and share some data. Its a two-way communication between application which share information. The purpose of API can be understood by word “Interface” in it. For example the Web Browser we use is the interface for us humans which talk to the server and receive, send, update the request data for us so we can read it. The most common use case of API is it allow communication between front-end and back-end which is two-way communication on the basis of request and response. API help to interface two different software so they can connect and share information effectively. 

**What is Webhook?**

A webhook can be considered as a lightweight version of API that driven by some event in the application instead of request to notify other application. Which is why some time also known as “Reversed API” as it is a one-way communication between applications.

Webhooks is a user-defined HTTP callbacks which is used to notify other applications about activity in the application. For example if you have ever used “Stripe” an online  payment gateway, it has a webhook to notify real-time update of payments whenever the user click in pay button on the application.



**The Difference between API and Webhook**

API (Application Programming Interface ) is two-way communication between application for sharing resources between them. API can handle the collection of whole CRUD(Create, Read, Update, Delete) operations between applications.

Webhooks are event driven lightweight API’s which is one-way communication between application just for sending data and notify other applications. it can be used where we need real-time updates.


---

Thanks for Reading 🙂
7 tips for beginners to secure website or web applications
Tags: beginners, programming, security, productivity
Published: 2022-08-10 05:06:21

Writing these basic tips for beginners who are writing their first site & ready to go live. If anything is missing or incorrect, you can help me to correct it by commenting on it. let’s start.

1. Get an SSL certificate:

It’s an HTTPS protocol that by default encrypts your site data when it goes from the client (browser) to the server. You can get it free as well

using Cloudflare.

2. Always use .env or config file at least:

Don’t save your DB connection string or any API keys in the coding file. Save them in .env file.(what is env file? https://nodejs.dev/learn/how-to-read-environment-variables-from-nodejs).

Note, make sure that by mistake you do not include that file in git or bitbucket or any repo.

For advanced level security, use a secret key-vault manager like Azure and AWS are providing. It adds one extra security layer.

For more read, you can refer https://aws.amazon.com/secrets-manager

3. Turn on IP or Domain whitelisting restriction for Database/API:

Database restriction is really helpful and important. Just mention the IP address like the local machine on which you do development, the IP of your server, etc.

If you don’t have static IPs like me, then domain whitelisting comes in handy solution so just mention your site domain and your DB will only serve that service request.

This can apply to your API and Images as well.

Note, Don’t forget this when you’re calling your API from the client side.

4. Check read/write permission to folders:

In some projects, we may decide to upload files to a folder. So be mindful while setting such permissions to your folders.

5. Data encryption:

I know this is common but still worth mentioning that we should encrypt users’ sensitive data and if possible try to avoid such information until you really need them in your app. Like if you are using stripe’s connect for the marketplace and you need an SSN or Tax Id of the business then just store them on stripe. not in DB.

And if you are making any Fin or Helth Tech apps, read data managing and storing requirements first. I know it’s boring but it’s a MUST.

6. Serverside validation:

In the early days of my development, I thought that client-side validation is all we need. But you can just inspect element & your app client-side validation are the boom. Gone. :)

So do add serverside validation and in file upload functions, don’t forget to set file size validation.

7. Disable iframe support:

If your site doesn’t need this functionality just use “add_header X-Frame-Options “SAMEORIGIN”;” and ad in server headers. This will not allow your website to get displayed in Iframe on other websites.

Do share your feedback on comments :)
Amazon Block Storage Quick Scan
Tags: aws, ebs, storage, cloudskills
Published: 2022-08-10 05:05:00

EBS, the block storage type offered by amazon is made of 2 storage types: Persistent   storage for data that need to be kept for a long period of time and instance storage for storing temporary data.  Here I will be giving you guys a quick overview of EBS. For more details on EBS, check my other blog post [here](https://dev.to/aws-builders/amazon-ebs-what-you-need-to-know-29gd).

## **Instance storage:**

Instance storage is a block level storage offered by Amazon. They are also knowns as Instance store or EC2 Instance Store. An Instance storage are directly attached to the instance and therefore are terminated when the instance is terminated. They are the preferred choice for storing the following types of information:
•	Information that frequently change 
•	Information that are easy to replicate 
Instance store are also good for app that require extremely low latency. Since the instance store is directly attached to the instance, the latency is almost negligible.


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

**## EBS Storage**

EBS or Elastic Block Store are Amazon version of block store and are know to scale to support virtually any workload no mater the volume size. 
EBS are the preferred choice for persistent data.  They are not directly attached to their host instance therefore are not terminated when the instance is terminated. 
EBS volumes can also be detached from one instance and attached to another instance giving the fact that there are both in the same AZ.  EBS instance are usually attached to one instance but they can be attached to multiple instances via a feature called multi-Attach. 

Lets keep in touch on twitter 
[Twitter ](https://twitter.com/asksouley)
SSO and MFA for Oracle PeopleSoft via Datawiza | Microsoft 365, Azure AD, Okta, Duo, Google, AWS...
Tags: peoplesoft, oracle, mfa, sso
Published: 2022-08-10 04:34:00

https://www.youtube.com/watch?v=jiINqMiODIw

Setup [Datawiza](https://datawiza.com) to enable SSO (Single-sign on) and MFA (Multi-factor authentication; or 2FA) for users to login to Oracle PeopleSoft in minutes! Datawiza integrates with any identity provider and MFA (2FA) service, like Microsoft 365, Azure AD, Cisco Duo, Okta, AWS, Google, Auth0, Ping, ForgeRock, OneLogin, ADFS. 

Follow these step-by-step instructions to configure Microsoft 365 (Azure AD, or O365) Single Sign-on (SSO) and MFA for Oracle PeopleSoft. 


Datawiza works with Oracle JD Edwards (JDE), E-Business Suite (EBS), Siebel, WebLogic and any other web apps. 

Website: https://www.datawiza.com
Book a Demo: https://calendly.com/datawiza/30min
Join our discord server: https://discord.com/invite/Sn3nbc83Up
Using Advanced LIKE Expressions in Spring boot
Tags: java, webdev, programming, tristan
Published: 2022-08-10 04:16:00

### Introduction
- This series is about all things related to using Spring Boot for web development.


###The problem
- I was facing this problem: `I have a BlogPost entity and I want to be able to query the BlogPost table in my database for any blog post containing a certain title`. 

### The solution
```
@Query(value = "SELECT * FROM blogPost WHERE blogPost.title LIKE  %:title%",nativeQuery = true)
    List<BlogPost> findBlogPostByTitle(@Param("title") String title);
```

###The weird bug I encountered
- I was using the the 'LIKE' operator but I kept running into a weird bug where it would only return the first value matched and not all the values. It turns out that it was due to improper syntax when passing the parameter to the SQL query. So if you are having a similar problem, check the syntax of your SQL.

###Conclusion
- Thank you for taking the time out of your day to read this blog post of mine. If you have any questions or concerns please comment below or reach out to me on [Twitter](https://twitter.com/AndroidTristan).
Edit your files in vim
Tags: vim, linux
Published: 2022-08-10 04:11:42

Edit the file with vim:

    Open the file in vim with the command "vim".

    For example:
    #vim /etc/iscan/intscan.ini

    Type "/" and then the name of the value you would like to edit and press Enter to search for the value in the file.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jtn7wgvfsq4qar0is439.png)
 
    Search with "/"
     
    If more than on instance of the search string was found you can use "n" to go to the next instance or "?" to go to the previous one.
    Type "i" to enter insert mode.

    Modify the value that you would like to change using the arrow keys on your keyboard.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dqfud1bckjhfgoewu9v5.png)
 
    Modify file in insert mode

    Press ESC and then type ":wq!" then press Enter to save the changes and exit vim.
     
    If you would like to exit the file without making any changes press ESC, then type ":q!" and press Enter.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kkyug9t8nu5o6lj5ephl.png)
Lost Ark hiện sở hữu hơn 20 triệu người chơi trên toàn cầu
Tags: gamedev
Published: 2022-08-10 03:53:38

Lost Ark hiện sở hữu hơn 20 triệu người chơi trên toàn cầu
 NTH - vào ngày 09/03/2022  2 Bình luận

Lost Ark đã thành công vang dội khi ra mắt tại Hàn Quốc, sau đó đã có mặt ở Nga và Nhật Bản.
Sandbox là gì? Những điều cần biết trước khi chơi game Sandbox
Aimbot là gì? Chúng ta có nên dùng Aimbot?
Những thông tin về bảng phong thần Liên Quân Mobile
Lost Ark

Được biết, Lost Ark là trò chơi nhập vai, hành động được phát hành lần đầu vào năm 2019 tại thị trường Hàn Quốc. Sau đó, game ra mắt phiên bản tại thị trường Nga và cuối cùng là thị trường quốc tế (phiên bản hiện tại trên Steam). Lost Ark bản quốc tế được Amazon Game Studios phát hành và miễn phí 100%. Lost Ark từ khi mới được giới thiệu đã phô diễn cho mọi người thấy đồ họa tuyệt đẹp được phát triển trên nền tảng công nghệ Unreal Engine 3 và đặc biệt là lối đánh hành động ấn tượng khá giống với dòng game Diablo huyền thoại.


Nhà xuất bản Amazon Games thông báo rằng tựa game Lost Ark hiện đã có hơn 20 triệu game thủ trên toàn thế giới, trong đó có khoảng 10 triệu người chơi đến từ Bắc Mỹ, Châu Âu, Nam Mỹ và Úc. Được biết, một ngày sau khi Lost Ark xuất hiện trên Steam, trò chơi đã đạt đỉnh điểm là 1.325.305 người chơi đồng thời, đánh bật CS:GO khỏi vị trí của nó để chiếm kỷ lục cao thứ hai mọi thời đại (cao nhất vẫn là tựa game bắn súng sinh tồn PUBG).  
[https://boosty.to/gemxanh/posts/0b06ead6-9b98-49f2-ae3b-cad45f650223](https://boosty.to/gemxanh/posts/0b06ead6-9b98-49f2-ae3b-cad45f650223)
HIện tại thì phiên bản tiếng anh của Lost Ark vẫn chưa sở hữu đầy đủ mọi tính năng mà phiên bản Hàn Quốc có, tuy nhiên nhà phát triển sẽ bổ sung thêm nhiều nội dung hấp dẫn trong những tháng tới.  Lost Ark Được đánh giá khá tốt, hiện có tổng điểm là 83 trên OpenCritic và 81 trên Metacritic.
[https://dev.to/gemxanh/total-war-warhammer-3-immortal-empires-bat-than-tiet-lo-ngay-cong-bo-1m9c](https://dev.to/gemxanh/total-war-warhammer-3-immortal-empires-bat-than-tiet-lo-ngay-cong-bo-1m9c)