teleren/devto huggingface dataset:
How to generate leads when nobody knows about you?
Tags: leads, leadgeneration, leadgen
Published: 2022-03-25 15:34:14

---
canonical_url: https://www.linkedin.com/pulse/how-generate-leads-when-nobody-knows-you-sanjay-pandey/
---

This is the most common question asked by **budding entrepreneurs** and a harsh reality that leads to the shutting down of businesses within their **first five years**.

I will start with the problem that is **“trust”**. If nobody knows your **brand**, they won’t reach you-” as simple as that”.

> The most difficult part about being an entrepreneur is convincing your first customers to buy your product or services.


## So, what is the solution?
My answer is based on the **[“inbound”](https://www.hubspot.com/inbound-marketing)** approach (will discuss the outbound approach in my upcoming article) and the solution is to create your presence or brand awareness. You must have heard of the term **[“digital marketing”](https://mailchimp.com/marketing-glossary/digital-marketing/)** and its most common practice, i.e.,

- **Search Engine Optimization** — a long process that takes months to generate organic traffic, but once done, there are high chances of getting continuous leads.

- **Social Media Marketing** — is also a time taking process. The important thing here is to choose the right social media platform and post strategically to create your brand presence.

- **Paid Advertising** — the quickest way to promote your brand is by running paid campaigns, but once the campaign is over, you won’t get any leads.

## Now, where to start?
The answer is **“All of the above”**. The mix of these strategies will give your brand the initial required “push”.

## Conclusion
So to conclude, you will only be able to generate leads when people start noticing you, and after that, conversion depends on how good your sales guy/team is.

My suggestion would be to start with -

1. Competitive analysis

2. Listing your brand on all relevant platforms (It’s a very important step).

3. Making a social media plan with monthly goals.

4. And working parallelly on the SEO of your website and blogs.

Things will take time, and that is normal. You have to invest at least 6 months of your time to see some satisfactory results (I know because I have done it!). Just don’t run after **“overnight success”** and things will turn up for you.

Everything I’ve written is based on my own story ( **“ None of the facts in the article is made up ”** — **“ इस लेख का कोई भी तथ्य काल्पनिक नहीं है ”**) so if you have any other questions, you can reach out to me directly and I will try to respond.
Tiny Programs 1: docshund-rs
Tags: rust, datascience, programming, opensource
Published: 2022-03-25 15:21:45

Long story short, I've wound up starting work on a small Tesseract OCR program. I call it `docshund-rs`, because it finds things in documents like a dachshund finds gophers in holes, and it's written in Rust. I'm intensely creative.

It took me longer to remember how Rust does Result<> type returns and accordingly unwrap the results of the `tesseract-rs` calls than it did to get the program working.

Though, all things told, it's already pretty cool. It can successfully scan image files like JPEG, PNG and TIF with a reasonable degree of accuracy.

Ultimately I think `docshund-rs` will be a program that can take a PDF file, turn it into images, and then process a bunch of those pages concurrently before barfing the output back out into a searchable PDF, or at least just a text file dump.

This is also subject to my interest level in the project, which usually varies wildly.

Though I think I'll keep a running tab of Tiny Programs and link it all together as a series, regardless.

Title photo by <a href="https://unsplash.com/@just_another_photographa?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText">James Watson</a> on <a href="https://unsplash.com/s/photos/dachshund?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText">Unsplash</a>
C# Tip: Exception handling with WHEN clause
Tags: csharp, dotnet
Published: 2022-03-25 15:21:42


From C# 6 on, you can use the `when` keyword to specify a condition before handling an exception.

Consider this - pretty useless, I have to admit - type of exception:

```cs
public class RandomException : System.Exception
{
    public int Value { get; }
    public RandomException()
    {
        Value = (new Random()).Next();
    }
}
```

This exception type contains a `Value` property which is populated with a random value when the exception is thrown.

What if you want to print a different message depending on whether the `Value` property is odd or even?

You can do it this way:

```cs
try
{
    throw new RandomException();
}
catch (RandomException re)  
{
    if(re.Value % 2 == 0)
        Console.WriteLine("Exception with even value");
    else 
        Console.WriteLine("Exception with odd value");
} 
```

But, well, you should keep your `catch` blocks as simple as possible. 

That's where the `when` keyword comes in handy.

## CSharp when clause

You can use it to create two distinct `catch` blocks, each one of them handles their case in the cleanest way possible.

```cs
try
{
    throw new RandomException();
}
catch (RandomException re) when (re.Value % 2 == 0)
{
    Console.WriteLine("Exception with even value");
}
catch (RandomException re)
{
    Console.WriteLine("Exception with odd value");
}
```

You must use the `when` keyword in conjunction with a condition, which can also reference the current instance of the exception being caught. In fact, the condition references the `Value` property of the `RandomException` instance.

## A real usage: HTTP response errors

Ok, that example with the random exception is a bit... useless?

Let's see a real example: handling different HTTP status codes in case of failing HTTP calls.

In the following snippet, I call an endpoint that returns a specified status code (506, in my case). 

```cs
try
{
    var endpoint = "https://mock.codes/506";
    var httpClient = new HttpClient();
    var response = await httpClient.GetAsync(endpoint);
    response.EnsureSuccessStatusCode();
}
catch (HttpRequestException ex) when (ex.StatusCode == (HttpStatusCode)506)
{
    Console.WriteLine("Handle 506: Variant also negotiates");
}
catch (HttpRequestException ex)
{
    Console.WriteLine("Handle another status code");
}
```

If the response is not a success, the `response.EnsureSuccessStatusCode()` throws an exception of type `HttpRequestException`. The thrown exception contains some info about the returned status code, which we can use to route the exception handling to the correct `catch` block using `when (ex.StatusCode == (HttpStatusCode)506)`.

Quite interesting, uh? 😉

To read more, you can head to [the official documentation](https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/when), even though there's not so much. 

Happy coding!

🐧
Advanced Promise: JS Promises on next level
Tags: javascript, opensource, webdev, npm
Published: 2022-03-25 15:15:07

Hi JS Developers,

- Have you ever needed to **abort a JS Promise** or any fetch request before completion?
- Did you want to **know the current status of a Promise** but felt helpless?
- Have you ever felt that if there's a way to **bind some data to the promise** so that it can be accessed if promise variables are handled from outside?
- Have you ever wanted to **resolve/reject a promise from the outside** instead after completion?
- I bet you wanted to have a **timeout feature in Promises** or JS Fetch requests but couldn't find any.

So I have created a single, huge but tiny size solution for that, which is an NPM package named **[advanced-promise](https://www.npmjs.com/package/@shivams136/advanced-promise)**. It's a very simple extension to the JS Promise class. Very easy to use and _open source_. Must check once. More details are in the link.

Any Open Source contribution is welcomed.😊 

[![Advanced-Promise](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3tsc200x64oguqw80fbt.png)](https://www.npmjs.com/package/@shivams136/advanced-promise)
Deepgram Hackathon Reminder ⏰
Tags: deepgram, hackwithdg, ai
Published: 2022-03-25 15:06:55

---
title: Deepgram Hackathon Reminder ⏰
published: true
description: You still have time to participate in the Deepgram Hackathon on DEV! Join the fun in a variety of ways here on DEV
tags: deepgram, hackwithdg, ai
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/eni908xa8i6l6x6kkeyf.png
---

### Submissions for the Deepgram Hackathon on DEV are due on April 11 at 11:59 PM UTC.

{% embed https://dev.to/devteam/join-us-for-a-new-kind-of-hackathon-on-dev-brought-to-you-by-deepgram-2bjd %}

---

[Deepgram](https://deepgram.com/)'s AI takes an audio file or audio stream and converts it into written text, providing a transcript and other information about the transcribed data. With their revolutionary end-to-end, Deep Learning technology that includes language support, Deepgram makes sure that every voice is heard and understood by providing fast and accurate transcripts. 

The [Deepgram Hackathon on DEV](https://dev.to/devteam/join-us-for-a-new-kind-of-hackathon-on-dev-brought-to-you-by-deepgram-2bjd) is your chance to explore this technology by building an app and giving us a tour of it, writing an essay post about Deepgram here on DEV, or both! We're also offering prizes for folks who don't want to build or write anything but are willing to cheer participants on in a variety of ways

Full details and rules for participating in the Deepgram Hackathon on DEV can be found [here](https://dev.to/devteam/join-us-for-a-new-kind-of-hackathon-on-dev-brought-to-you-by-deepgram-2bjd).

---

If you've already published your submission, fantastic! We can't wait to review your entry, and we thank you for contributing your time and imagination to enhance the open source ecosystem for all of us. 

You're also invited to submit multiple times and enter into both the "Build" and "Innovative Ideas" challenges — why limit yourself!

If you get stuck at any point, refer to the [help thread](https://dev.to/devteam/deepgram-x-dev-hackathon-help-thread-47h9) where the Deepgram team is actively engaged. If you simply want to connect or bounce ideas off other participants, the [community discussion thread](https://dev.to/devteam/community-discussion-thread-deepgram-hackathon-on-dev-21pp) is the place to do so.

Happy coding, writing, and motivating 👋
What was your win this week?
Tags: discuss, weeklyretro
Published: 2022-03-25 15:02:14

---
title: What was your win this week?
published: true
description: Got to all your meetings on time? Started a new project? Fixed a tricky bug?
tags: discuss, weeklyretro
cover_image: https://cl.ly/188e843c2985/download/Image%202019-02-15%20at%202.36.37%20PM.png
---

Hey there! 


Looking back on this past week, what was something you were proud of accomplishing?

All wins count — big or small 🎉

Examples of 'wins' include:

- Starting a new project
- Fixing a tricky bug
- Doing some spring cleaning... or whatever else might spark joy ❤️ 

---

Happy Friday

![Walrus playing the sax](https://media.giphy.com/media/d89VuJ4GflFfO/giphy.gif)
Make image elements clickable in HTML?
Tags: html, webdev, beginners, map
Published: 2022-03-25 14:33:47

Sometimes we needs to make specific parts or pixels of our images clickable. So, we can do this using map and area HTML tags.


![HTML MAP TAG](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mrg5qtsssxbks1rv4j3i.jpg)

For an example in the above image we want to make clickable the mobile and laptop area.

So, we will use the code given below to make our image parts clickable.

```html
<img src="workplace.jpg" alt="Workplace" usemap="#workmap" width="400" height="379">
<map name="workmap">
  <area shape="rect" coords="34,44,270,350" alt="Computer" href="computer.htm">
  <area shape="rect" coords="290,172,333,250" alt="Phone" href="phone.htm">
  <area shape="circle" coords="337,300,44" alt="Cup of coffee" href="coffee.htm">
</map>
```

## Uses of HTML Map and Area Tags or Click on Image Pixels in HTML:

- Map and Area tags is useful in custom image map and we can make clickable map markers.
- It is also useful in generating click impressions on any image in digital marketing.
- We can also use these tags in ecommerce products images.
- We can also have some animations and effects by using these tags.
- You can make images specific points clickable in html or image pixels clickable in html.
- You can draw custom shapes like circle, rectangle, polygon or any canvas on any images in html

---

Please like share subscribe and give positive feedback to motivate me to write more for you.

For more tutorials please [visit my website](https://www.w3courses.org/tutorials/).

Thanks:)
Happy Coding:)
Paracetamol.js💊| #86: Explica este código JavaScript
Tags: javascript, webdev, spanish, beginners
Published: 2022-03-25 14:32:42

## **Explica este código JavaScript**
```js
let nombre = "Cris";
let edad = 25;

console.log("Mi nombre es %s y tengo %d", nombre, edad);
```

A. `"Mi nombre es %s y tengo %d"`
B. `SyntaxError`
C. `Mi nombre es Cris y tengo 25`
D. Ninguna de las anteriores

Respuesta en el primer comentario.

---
Doubt: multiprocessing basic example
Tags: help
Published: 2022-03-25 14:27:31

**Issue:** Multiprocessing basic example running in sequential order rather than parallel in jupyter notebook

Question: Use multiprocessing to create three separate processes. Make each one wait a random number of seconds between one and five, print the current time, and then exit. 

```
# 6) Use multiprocessing to create three separate processes. Make each one wait a random number 
# of seconds between one and five, print the current time, and then exit. 
import multiprocessing,time,datetime
import zoo
 
# from zoo
# def process1():
#     t1 = random.randint(1,5)
#     print("Waiting for "+str(t1)+" seconds")
#     time.sleep(t1)
#     print(datetime.datetime.now())


start = time.time()
process1 = zoo.process1()
process2 = zoo.process1()
process3 = zoo.process1()

print(datetime.datetime.now())
if __name__=="__main__":
    
    
    
    p1 = multiprocessing.Process(target=process1)
    p2 = multiprocessing.Process(target=process2)
    p3 = multiprocessing.Process(target=process3)

    p1.start()
    p2.start()
    p3.start()

    p1.join()
    p2.join()
    p3.join()

end = time.time()
    

print("It takes " +str(end-start)+" seconds")

```
Type in the Notepad using Java
Tags: java, tutorial, beginners, programming
Published: 2022-03-25 13:57:58

Let's make a java program that will open up notepad and type some text in it .

You will have to import 3 libraries which we would be using :

```Java
import java.awt.*;
import java.awt.event.KeyEvent;
import java.io.IOException;
```
Create a class and add a  main method , in this program we will have to throw 3 [exceptions](https://docs.oracle.com/javase/tutorial/essential/exceptions/index.html)
1. IOException 
2. InterruptedException 
3. AWTException

We will write this line  to open up notepad 

```Java
Runtime.getRuntime().exec("notepad.exe");
```
We will use  Thread.sleep to create a delay in out typewriter so that notepad opens up and out typewriter doesn't type anywhere else

```java
Thread.sleep(2000);
```
Then we will use the [Robot Class](https://docs.oracle.com/javase/7/docs/api/java/awt/Robot.html) to create the typewriter effect 

```java
r.keyPress(KeyEvent.VK_H);
```
The line above display the letter **H** on the notepad .Like this we can print any letter to form words and sentences.

We can then use [Thread.sleep](https://docs.oracle.com/javase/tutorial/essential/concurrency/sleep.html) to have a pause and create a natural typing effect 
```java
Thread.sleep(500); // 0.5 seconds
```

> Thread.sleep() takes argument in milliseconds 

Using this you can display multiple letters in the notepad

```java
import java.awt.*;
import java.awt.event.KeyEvent;
import java.io.IOException;

public class notepadType{
public static void main (String[]args) throws IOException, InterruptedException, AWTException{
Runtime.getRuntime().exec("notepad.exe");

Thread.sleep(2000); // 2 seconds
Robot r=new Robot();
r.keyPress(KeyEvent.VK_H);
Thread.sleep(500);
r.keyPress(KeyEvent.VK_E);
Thread.sleep(500);
r.keyPress(KeyEvent.VK_L);
Thread.sleep(500);
r.keyPress(KeyEvent.VK_L);
Thread.sleep(500);
r.keyPress(KeyEvent.VK_O);
Thread.sleep(500);
r.keyPress(KeyEvent.VK_SPACE); // displays a whitespace
Thread.sleep(500);
r.keyPress(KeyEvent.VK_W);
Thread.sleep(500);
r.keyPress(KeyEvent.VK_O);
Thread.sleep(500);
r.keyPress(KeyEvent.VK_R);
Thread.sleep(500);
r.keyPress(KeyEvent.VK_L);
Thread.sleep(500);
r.keyPress(KeyEvent.VK_D);
// hello world 
    }
}   
```
**Footnotes:**

1. [Key Event Class](https://docs.oracle.com/javase/7/docs/api/java/awt/event/KeyEvent.html#:~:text=public%20class%20KeyEvent%20extends%20InputEvent,pressed%2C%20released%2C%20or%20typed.)
2. [java.awt](https://docs.oracle.com/javase/7/docs/api/java/awt/package-summary.html)
3. [IOException](https://docs.oracle.com/javase/7/docs/api/java/io/IOException.html)
4. [Runtime Class](https://docs.oracle.com/javase/7/docs/api/java/lang/Runtime.html)
Great Opportunity to be a part of a Global Fintech Solutions Provider.
Tags: hiring, blockchain, node, nestjs
Published: 2022-03-25 14:15:47

Currently urgently looking for a pure tech team for our India office in Gurugram.
If you are good at node.js, nest.js, have a flair for blockchain, crypto, cybersecurity and all things fintech; drop your resume at garima.prabhakar@rosebaycorporate.com
10 Keyboard Shortcuts You Might Not Know!
Tags: shortcuts, beginners, tutorial, computerscience
Published: 2022-03-25 14:15:18

In this post, I will talk about the keyboard shortcuts, every coder needs to master!

**1. Clipboard History**

Without wasting much of time, I will start with the first shortcut key which is the clipboard history. You can access your clipboard history by pressing Windows + V key on your keyboard. This opens your clipboard history, which can be accessed and navigated using the arrow keys on your keyboard.

```
Windows + v
```

**2. Windows + arrow keys and dragging a window to right**

You can open two windows side by selecting a window and dragging it to the extreme right side of you monitor. This will give you an option to open two windows side by side. 
You can also use your Windows + Left, Windows + Up or Windows + Down arrow keys to move this window 

```
Windows + Left
Windows + Right
Windows + Up 
Windows + Down
```

**3. Windows + 1, 2, 3, 4**

Did you know that you can use Windows + 1, Windows + 2 etc keys to open your first, second and third windows respectively? Well, if not you need to start integrating this shortcut in your workflow.

```
Windows + 1
Windows + 2

```
**4. Windows + D to minimize all the opened software**

If you want to minimize all the opened applications in your Windows computer, you can do so by pressing windows + D key on your keyboard. A quick one but yet very effective keyboard shortcut you should be using!


**5. Control + Backspace and Control + Delete**

If you wish to delete a word towards the left, you can use Control + Backspace
Similarly, If you wish to delete a word towards the left, you can use Control + Delete key on your keyboard


**6. Alt Tab and Windows Tab**

You can use Alt + Tab to navigate through all the opened tabs of application which are opened on your windows.


**7. Shift + End and Shift + Home**

Pressing Shift and Home at the same time highlights all text from the current position to the start of the line.


**8. Windows + P**

Windows + P is used to open the projector preferences on your windows. You can control the monitor layout of your pc. You can choose to either turn on one, two or duplicate both of your monitors! 


**9. Windows + L**

This is a very handy shortcut used to lock your pc so that no one can access it without your windows pin/password. You should try to make it a habit to lock your Windows computer when you are not around!


**10. Bonus: Mouse Wheel**

You can use the Mouse Wheel click to close a tab in Google Chrome and Open a link in a new tab. This saves a lot of time if you are hunting a bug and trying to find solution of your problem everywhere on the internet!
How do you write your css?
Tags: css, tailwindcss, bootstrap, discuss
Published: 2022-03-25 14:13:05

So i'm a beginner and have a problem with how to write my css. css itself has a lot lines of code and i think nowadays a lot of programmers using bootstrap and all website are look exactly the same, and i think both tailwind and bootstrap make the code dirty and hard to read and i rather write thousand lines of code than write dirty code.
so my questions are **how do you write your css?** and **is it bad that i'm using simple css codes?**.
Stop the manual API plumbing
Tags: api, architecture, systems, startup
Published: 2022-03-25 13:42:30

APIs rely upon bespoke, manual, and tedious work. Typical time sinks are poor documentation, undocumented behavior, non-standard API design, custom authentication schemes, unclear limits, and terms of service. Yet, the real pain comes later when APIs change. Once you lay down the wires, you are in the business of perpetual maintenance. Sure, you can close your eyes and pray, but APIs are a dependency and, potentially, a liability. But it doesn't have to be.

Most of us want to get to the value delivered over APIs quickly. Chances are you don't care whatever was the fancy API style in 1998. Besides, it will be different with the very next API you need to connect. So why bother?

## Use-case abstraction

The solution lies in the use-case level abstraction on top of APIs. The concept is simple. If you are an API consumer, integrate with the use-case, **not** with a provider: “**Send text message**” vs. `POST https://api.twilio.com/:version/messages.json`. If you are a provider, publish your business capabilities: “**Make a payment with PayPal**” vs. `customerPaymentMethodPaypalBillingAgreementCreate(billingAgreementId: $billingAgreementId, customerId: $customerId)` ([source](https://shopify.dev/api/admin-graphql/2021-07/mutations/customerPaymentMethodPaypalBillingAgreementCreate)). The technicalities of the connection can be dealt with autonomously with the right metadata.

## Hexagonal architecture

The implications of use-case abstraction are profound. The clean, hexagonal architecture results in decoupling client and server and
enables independent evolution, breaks technical vendor locks, speeds up the development, and radically reduces maintenance.

To learn about the use-case abstraction for APIs, check out [Superface GitHub profile](https://github.com/superfaceai).