teleren/devto huggingface dataset:
b2b ideas and trends 2021
Tags: b2b, ideas, trends, 2021
Published: 2020-11-07 15:44:31



<div>Recently I wrote about one curious pattern, I decided to generalize and find more interesting changes in b2b sales this year and what will grow in the next.

The basis of the method is to look at those services for b2b sales that have become popular or have attracted investments. I took tweekly reviews as a basis (there you can read more about each one)

Here's what's new clearly caught my eye:

1. Superpersonalization. New services allow you to track VIP clients on the site and call them at the time of a certain click, moreover, there are ways of advertising not just to site visitors, but to a specific person. For example, when you need to get your commercial offer not just a general, but a specific Ivan Petrovich. An example service is Qualified.

2. What is popular with teens and B2C will eventually penetrate B2B. Stories on LinkedIn, Streams instead of webinars, TikTok and WhatsApp for business. I already wrote about this recently.

3. Zoom sales and calendars. Services that help customers meet and sell virtually and organize remote communications. Clockwise, for example.

4. Lots of new lead generation services for LinkedIn, Instagram, etc.
</div><div class="fi"><img src="http://95.182.121.107:9900/up/1189/4.webp" alt="b2b ideas and trends 2021"></div>

<div>
5. Automation and simplification. No-code tools for B2B. For example, Unqork, Userguiding.

6. Increased requirements for the security of companies' data. Remote control requires more careful tracking of passwords and credentials, you need to be able to defend against cyber attacks. Sample project - Pcysys.

7. Training is built into the sales process. Salesperson training systems are built right into CRM. For example GO1.

8. Prompter instructors and prompter translators in your ear. You put on the earpiece and everything tells you there. During negotiations and sales, you have a mentor who tells you how to better behave in a given situation or simply helps to negotiate in an unfamiliar language. For example, Librestream, Kudo, Beekeeper.

9. Fast video recording and sharing. Just like text and even simpler. For visual sales and product demonstrations. For example, Loom.

10. Localization of products for new countries. Hot new markets are India and Indonesia. For example, Localised.</div><br><br><a href="https://exceed-team.com/tech/b2b-ideas-andt-rends-2021">b2b ideas and trends 2021 | Exceed Team Blog</a>
How to display all attributes of a class in python
Tags: python, oop
Published: 2020-11-07 15:27:45

To display all the attributes, let's create a class name Laliga,

```
class Laliga:
    def __init__(self,team_name,star_palyer,coach,no_of_titles):
        self.team_name = team_name
        self.star_palyer = star_palyer
        self.coach = coach
        self.no_of_titles = no_of_titles
```
The __init___ method will accept the instance of that class as a self and we will have to pass the other 4 arguments.

To understand self, first, create the instance of  our class, we call it "team1"

```
team1 = Laliga("Real madrid","Eden hazard","Zinedine zidane",34)
```
so when we create method within class,it automatically receives instance of that class as the first argument which 
means calling self.team_name has the same meaning as calling team1.team_name.

so now we have understood about self, go back to to printing all the attributes of team1 object to see what its attributes contain, and for that, we have to use __dict__ method
```
print(team1.__dict__)
```
This will print the list of all attributes and values contained in it
```
python class_self.py 
{'team_name': 'Real madrid', 'coach': 'Zinedine zidane', 'star_palyer': 'Eden hazard', 'no_of_titles': 34}
```
now you can see the attributes of team1 object .:)
Completed Hacktoberfest 2020 challenge !!
Tags: hacktoberfest
Published: 2020-11-07 14:55:54

Happy to share that I completed hacktoberfest 2020 challenge! With this fest, I have started my open source journey. Earlier I was confused about things like how to make a pull request and where to start contributing. But, this fest encouraged me to not delay learning these things anymore. Though it seemed to be confusing, it turned out to be a fun experience. I am a novice developer right now but slowly and steadily as I improve I would love to make some big positive contributions in the tech community. 

Also, happy to join the Dev community today!
Cheers :)
Where's Dylan Beattie when you need him?
Tags: agile, scrum, filk
Published: 2020-11-07 14:52:41

One thing I enjoy is writing [filks](https://en.wiktionary.org/wiki/filk) after a couple drinks.  I probably have to credit the [Free Software Song](https://www.youtube.com/watch?v=xSkCny-HtTw) for that.  Anyways, I recently had the opportunity to pick up a signed copy of ["The Power of Scrum"](https://www.amazon.com/Power-Scrum-Jeffrey-Sutherland-PhD/dp/1463578067/) on the used book market.  It's surprisingly good and useful (I had doubts about a Scrum-oriented melodrama) and definitely worth the read.

Unfortunately, every time I looked at the cover, Huey Lewis's "The Power of Love" played in my mind.  This demon needed to be exorcised. Further, it's the 25th anniversary of Scrum and to my knowledge there's not been any songs in honor of it. And so....with apologies to the greater Agile community, Huey Lewis, and everyone involved with Scrum, I present:


## The Power of Scrum
[tune: *The Power of Love* by Huey Lewis]

The power of Scrum is a curious thing
Remove an impediment, make a kaizen
Change a loss, to a big fat win
More than a feeling, that's the power of Scrum
Got the SM, got the Team 
Velocity faster and better than a PO's dream
Make a bad Sprint good, mmh make a defect right
Power of Scrum will keep you home at night
Don't need big docs, keep it lean
Don't need no Gantt chart to ride this train
It's strong and it's sudden and it's cruel sometimes
But it might just save your job
That's the power of Scrum
That's the power of Scrum
First time you feel it might make you sad
Next time you feel it might make you mad
But you'll be glad baby when you've found
That's the power that makes the world go 'round

{% youtube wBl2QGAIx1s %}
Hacktoberfest 2020
Tags: hacktoberfest, github
Published: 2020-11-07 14:43:38

## Hello Everyone !


I am glad to share my completion of *[hacktoberfest 2020](https://hacktoberfest.digitalocean.com)* !
It was a very fun and joyful experience. The first challenge was to find the perfect repository which uses the limited set of knowledge that I possess. But all thanks to such a friendly and helping [GitHub](https://github.com) community which made this job very easy.

I was so overwhelmed when my 1st pull request got accepted and merged because it was also the very first Pull Request ever made by me. It taught me so much about git, it's commands and the real meaning and significance of working with open source. And I was so exhilarated by the thought that someone in some other part of the world will use the piece of code which was made by me. I mean wow !

All this made my first experience with the *hacktoberfest* awesome and unforgettable⚡
Kudos to [DigitalOcean](https://www.digitalocean.com) for this event 💯

Looking forward to learning and contributing more on GitHub and open source!

---------------------------------------

![Completion Image](https://dev-to-uploads.s3.amazonaws.com/i/2tdlz5nvnwy4g4frv3tg.png)
Trump Chatbot in 4 hours w/ HTML, plain CSS, JS & jQuery
Tags: javascript, webdev, css, showdev
Published: 2020-11-07 14:28:53

---
title: Trump Chatbot in 4 hours w/ HTML, plain CSS, JS & jQuery
published: true
description: Trump may not be occupied from now on, so maybe he can entertain you!
tags: javascript, webdev, css, showdev
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/wlk166yij32xmszrhlkw.jpeg
---

Trump may not be occupied from now on, so maybe he can entertain you!

I built a fun side project in 4 hours: [TRUMP CHATBOT](http://remote.tools/trump-chatbot)

{% twitter 1325078481193984001 %}

## How it works

- 6 options to choose from or type a custom message
- Trump replies back with an awesome, beautiful, best quote picked randomly
- Trump also gives you a helpful WFH tip at times ;)
- When Trump is out of responses, chat reloads

## Back to Basics - Plain CSS + JS + jQuery

Wanted an interface that is:
- Fast
- Looks clean
- Gives a hackerish feel (no modern UIs)

So, wrote CSS & JS from scratch. No frameworks, only a bit of jQuery to make life easier :)

## Adding delays to give a realistic feel

- Explicit delays when you enter a message or after you choose an option

- Similar delay before Trump responds

## Logging key events & scrolling to current message

- Added key events so you can chat without using mouse

- Used jQuery animate to scroll to the current message

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/4yeaqlapuevmv05vehp6.gif)

**I write regularly about tech, products, startups on [Twitter](https://twitter.com/hrishiptweets). You can [follow my updates there](https://twitter.com/intent/user?screen_name=hrishiptweets).**
Code Smell 19 — Optional Arguments
Tags: codenewbie, oop, tutorial
Published: 2020-11-07 14:04:19

*Disguised as a friendly shortcut is another coupling smell.*

> TL;DR: Optional Arguments generate a hidden coupling in the name of smaller code.

# Problems

-  Coupling

- Unexpected results

- Side effects

- Ripple Effect

- In languages with optional arguments but limited to basic types, we need to set a flag and add an accidental IF (another smell).

# Solutions

1.  Make arguments explicit.
2.  All function calls must have same [arity](https://en.wikipedia.org/wiki/Arity).
3. Use *Named Parameters* if your language supports them.
 
# Sample Code

## Wrong

[Gist Url]: # (https://gist.github.com/mcsee/66738047685e798a4e4008e291dcff70)
```php
<?

final class Poll {
    
    function _construct(array $questions, bool $annonymousAllowed = false, $validationPolicy = 'Normal') {
        
        if ($validationPolicy == 'Normal') {
          $validationPolicy = new NormalValidationPolicy();
        }
        //...
    }
}

//Valid
new Poll([]);
new Poll([], true);
new Poll([], true , new NormalValidationPolicy());
new Poll([], , new StrictValidationPolicy());
```

## Right

[Gist Url]: # (https://gist.github.com/mcsee/559b802e5a6a0e1aa432e594fe5f28dc)
```php
<? 

final class Poll {
    
    function _construct(array $questions, AnonnyomousStrategy $annonymousStrategy, ValidationPolicy $validationPolicy) {            
        //...
    }
}


//invalid
new Poll([]);
new Poll([], new NoAnonnyomousValidStrategy());
new Poll([], , new StrictValidationPolicy());

//Valid
new Poll([], new NoAnonnyomousValidStrategy(), new StrictValidationPolicy());
```

# Detection

Detection is easy if language supports optional arguments.
 
# Tags

- Optional

- Laziness

# Conclusion

Be explicit. Favor readability over shorter (and more coupled) function call.
 
# More info

- [Function Arity](https://en.wikipedia.org/wiki/Arity)

- [Decoupling a Legacy System](https://dev.to/mcsee/how-to-decouple-a-legacy-system-30ke)

{% post https://dev.to/mcsee/how-to-decouple-a-legacy-system-30ke %}

* * *

>  The trouble with programmers is that you can never tell what a programmer is doing until it’s too late. 

_Seymour Cray_

{% post https://dev.to/mcsee/software-engineering-great-quotes-26ci %}

* * *

This article is part of the CodeSmell Series.

{% post https://dev.to/mcsee/how-to-find-the-stinky-parts-of-your-code-1dbc %}

*Last update: 2021/06/30*
Can anyone help me on this little issue.
Published: 2020-11-07 14:03:54

I tried adding a code for top bar menu which would be visible on mobile version on this website <a href="https://360gisthub.com.ng/">360gisthub</a> but the code keeps bringing an issue.
I was thinking probably if I just edit the normal top bar menu code of the theme to be visible on mobile version but the problem is that I don't know how to do it.
Robotic Process Automation (RPA)
Tags: uipath, rpa, roboticprocessautomation
Published: 2020-11-07 13:57:58

[UiPath](https://www.uipath.com/) - It can handle complex processes. This tool is ideal for businesses of all sizes.
UiPath pros:
-no programming skills required;
-easy to use with drag and drop capability;
-it provides useful features for free.
-Large marketplace applications
UiPath minus:
-limited coding functionality.
I can personally suggest you to go for [UiPath Platform course](https://academy.uipath.com/).
Docker Development
Tags: help
Published: 2020-11-07 13:55:40

Okay so I need a little help understanding something.

I have a few requirements for an app I'm working on.

**Requirements**
- MongoDB
- Kotlin on graalVM

Now both of the above have images but how do I get them to smush together in an image of my own.

example of an image:
https://hub.docker.com/r/oracle/graalvm-ce

Do I just write my own docker file and ignore the official distributions?
Fetching Data from API: async/await
Tags: javascript, html, vscode, beginners
Published: 2020-11-07 13:36:24

In my previous blog, I wrote about fetching data from a public API using `.then` method. I'll now be using `async/await` method to fetch data.

I'll be using a public api, [PokeAPI](https://pokeapi.co/api/v2/pokemon/1), which gives you access to Pokémon data .

To start off, add this in your `.js` file:
```javascript
const url ='https://pokeapi.co/api/v2/pokemon/1' 
```

Next, you need to make an async function:
```javascript
async function pokemon (){
    const resp = await fetch (url); //Here, you fetch the url
    const data = await resp.json(); //The data is converted to json
    console.log(data)
};
```
You now need to call the function:
```javascript
pokemon();
```
You'll be able to see the data on your browser console, like this:
![](https://imgur.com/kJtkXe8.png)

Now, to display a selected data on the browser, you need to create an `id` or a `class` in your `.html` file.
```javascript
<h1 id="pokemon"></h1>
```

You are now able to grab the `id` and add `textContent` in the pokemon function in your`.js` file. In this example, I grabbed the pokemon's name, like this:
```javascript
async function pokemon (){
    const resp = await fetch (url);
    const data = await resp.json();
    document.getElementById("pokemon").textContent = data.name;
};

info();
```
Finally, the name of the pokemon is displayed on the browser, like this:
![](https://imgur.com/NPsvkfD.png)

Thank you! I hope this post was helpful :)
Mixing FP and OOP
Tags: functional, oop, code, javascript
Published: 2020-11-07 13:22:30

Rather than going for Functional Programming or Object-Orientated Programming exclusively, you can go for a mixed approach, at in languages that support both such as JavaScript or Python.

For example, you can still use classes and then pass a class instance to your function.

Below we have a simplified code example. There is a generic function which accepts a dictionary / associative array, or an object instance.

```js
function getAge(obj) {
  return obj.age
}

foo = new Car(name="Toyota", age=20)
getAge(foo)
// 20

bazz = { name: "Monster Truck", age: 5 }

cars = [foo, bar, bazz]
ages = cars.map(getAge)
// [ 20, 10, 5 ]
```

The function doesn't care what type class is as long as it has the expected field. And you could use a `type` or `interface` in TypeScript to enforce this at compile time.

Maybe you can move all your methods out to functions in a module. Though if you end up just using your class to hold data and not have any methods, then consider another object type that is more suitable. 

Like a dictionary / associative array. You can use types in TypeScript or Python (using [Mypy](http://mypy-lang.org/)) to enforce this. I have instructions for how to apply Mypy to your Python project [here](https://michaelcurrin.github.io/code-cookbook/recipes/python/mypy/). 

In Python you can use a `namedtuple`, which is _immutable_ and let's you use the class-style syntax of getting attributes instead of using a string key.

Based on [example](https://pymotw.com/2/collections/namedtuple.html). See also [namedtuple](https://docs.python.org/3/library/collections.html#collections.namedtuple) in PY3 docs.

```python
import collections


Person = collections.namedtuple('Person', 'name age gender')

bob = Person(name='Bob', age=30, gender='male')
bob.gender
# 'male'
```

Or from Python 3.7, use a [dataclass](https://docs.python.org/3/library/dataclasses.html#module-dataclasses). This will not enforce the types - you'll still need Mypy to check that.

```python
from dataclasses import dataclass

@dataclass
class Point:
     x: int
     y: int


p = Point(1, 2)
```
Start chatting with Python on Telegram
Tags: python, showdev, hacktoberfest
Published: 2020-11-07 13:06:47

I made a bot that speaks Python. Don't believe it? Check it out on Telegram [@runPython_bot](https://telegram.me/runPython_bot).

This bot basically runs your Python code or evaluates a valid pythonic expression and returns the result.

For example, you say `'yo'*5` and the bot replies `yoyoyoyoyo`. Cool, isn't it?

Take a look at this gif.

![gif](https://github.com/aahnik/run-py-bot/raw/main/docs/images/runPython_bot_gif.gif?raw=true)


This bot has been built using [python-telegram-bot](https://github.com/python-telegram-bot/python-telegram-bot) the popular wrapper for [Telegram's Bot API](https://core.telegram.org/bots/api).


Check out the source code of this bot on GitHub. Stars :star: and Contributions :fire: are most welcome. 

{% github aahnik/run-py-bot %}


I don't want to write much. Explore the bot yourself. 

And definitely try to make it do some hard work by giving it some **long calculations** or maybe try **infinite loops**.

You may access Python's docs through the bot by running the `help()` function.

For example: try giving `help(str.upper)`.

If you are giving an expression to the bot like `4 <= 5` please use the `/e` command, like `/e 4 <= 5`.

Don't forget to rate this bot on [BotsArchive](https://t.me/BotsArchive/1593)

[![image](https://user-images.githubusercontent.com/66209958/98441788-91970700-2126-11eb-8e1b-ed2e564b34e3.png)](https://t.me/BotsArchive/1593)

Why waiting? [Try out](https://telegram.me/runPython_bot) the bot. 

Share the bot in your telegram groups and channels. 

And if you have any questions, you may ask in the comments below, or [create an issue](https://github.com/aahnik/run-py-bot/issues/new/choose) in the [GitHub repo](https://github.com/aahnik/run-py-bot) of this project.
WordPress: remove type attribute for JavaScript resources
Tags: wordpress, w3c, validator, javascript
Published: 2020-11-07 13:04:53

**Problem:** 
* W3 Validator says:
```
Warning: The type attribute is unnecessary for JavaScript resources.
```

**Solution:** 
* In `functions.php` insert following code:
```php
<?php 
function removeTypeJS($x) {
  ob_start();
  call_user_func($x);
  echo preg_replace("/type=['\"]text\/(javascript|css)['\"]/", '',ob_get_clean());
}
?> 
```
* Replace `<?php wp_head(); ?>` in template with: `<?php removeTypeJS("wp_head"); ?>`
* Replace `<?php wp_footer(); ?>` in template with: `<?php removeTypeJS("wp_footer"); ?>`
Daily Developer Jokes - Saturday, Nov 7, 2020
Tags: jokes, dailydeveloperjokes
Published: 2020-11-07 13:00:23

---
title: "Daily Developer Jokes - Saturday, Nov 7, 2020"
description: "Check out today's daily developer joke! (a project by Fred Adams at xtrp.io)"
series: "Daily Developer Jokes"
cover_image: "https://private.xtrp.io/projects/DailyDeveloperJokes/thumbnail_generator/?date=Saturday%2C%20Nov%207%2C%202020"
published: true
tags: #jokes, #dailydeveloperjokes
---

Generated by Daily Developer Jokes, a project by [Fred Adams](https://xtrp.io/) ([@xtrp](https://dev.to/xtrp) on DEV)

___Read about Daily Developer Jokes on [this blog post](https://xtrp.io/blog/2020/01/12/daily-jokes-bot-release/), and check out the [Daily Developer Jokes Website](https://dailydeveloperjokes.github.io/).___
### Today's Joke is...
![Joke Image](https://private.xtrp.io/projects/DailyDeveloperJokes/public_image_server/images/5e1258a197fb7.png)

---
*Have a joke idea for a future post? Email ___[xtrp@xtrp.io](mailto:xtrp@xtrp.io)___ with your suggestions!*

*This joke comes from [Dad-Jokes GitHub Repo by Wes Bos](https://github.com/wesbos/dad-jokes) (thank you!), whose owner has given me permission to use this joke with credit.*

<!-- 
Joke text:
___Q:___ Whats the object-oriented way to become wealthy?

___A:___ Inheritance
 -->
Your website sucks! And I'll tell you why (ROUND 2) ⚡️⚡️
Tags: ux, showdev, discuss, javascript
Published: 2020-11-07 12:51:04

I had some great success critiquing/roasting your websites on [Twitter](https://twitter.com/toktoktwan/status/1290712060154843138) and [here on dev.to](https://dev.to/toktoktwan/your-website-sucks-and-i-ll-tell-you-why-4mpb), and I'd love to help tell you why your website sucks again!

As a CRO Consultant, I have a lot of experience in improving our client's products.

So show me your website, and I'll give you at least one point to improve!

😄
mltype — Typing practice for programmers
Tags: machinelearning, deeplearning, programming, productivity
Published: 2020-11-07 12:43:49

**mltype** is a command line tool for improving typing skills. It does so with a tiny bit of deep learning.

If you clicked on this post hoping you would learn something about static typing, type annotations or similar, this is NOT the right article. The typing I talk about in this post is the thing you do with you keyboard. Or to be precise

> The action or skill of writing something by means of a typewriter or computer.

# Motivation
A few months ago I decided to learn touch typing! I know what you are thinking… “Are you a faster typist than before and was all the pain worth it?” I would definitely say yes and yes. However, the internet is full of similar before and after testimonials and I am not going to write yet another one.

What I want to talk about is that I was really surprised how few resources there are for practising touch typing with programming languages. After a quick google search you will probably discover the following sites:
* http://www.speedcoder.net/
* https://typing.io/

While the above websites have multiple strong points, let me point out some of their shortcomings
* Lack of variability and element of surprise
* Manual selection of source files and corresponding lines
* Not customizable
* Not free (typing.com)
* Not nerdy enough — would it not be possible to do it in the terminal?

For the above mentioned reasons, I decided to give it a shot and write my own typing practice software: **mltype**.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/og3sshslod916tlf5gar.png)

# What does it do?
In short, it is a command line tool (written in Python). It uses neural networks to generate text that looks like a programming language (or normal language). Additionally, it provides non-machine learning functionalities like reading text from a file or standard input.

If you wonder what kind of “neural network” is behind it I would more than encourage you to (re)read the The Unreasonable Effectiveness of Recurrent Neural Networks by Andrej Karpathy. **mltype** is doing more or less the same thing in the background. To be precise, there is a character-level language model. It spits out a probability distribution over the next character given previous characters. Most importantly, it tries to hide all the complexity and boring details of the training and inference from the user. Generating text from an existing model and training a new model can both be done in a single command.

# Examples
Below are some examples of different programming languages. All the models that generated them and many other pretrained models are available for download (see the README.md on github).

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/25swjagltewu5tvbhoz4.gif)

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/on5dha3mpbs4iaj56z79.gif)

# Wanna try it?
If you want to know more and try it out yourself visit the below links!

github: https://github.com/jankrepl/mltype
docs: https://mltype.readthedocs.io/en/latest/