teleren/devto huggingface dataset:
A Fun Programming Joke To Start Your Day
Tags: jokes, dailydeveloperjokes
Published: 2022-07-04 08:00:17

---
title: "A Fun Programming Joke To Start Your Day"
description: "Check out today's daily developer joke! (a project by Fred Adams at xtrp.io)"
series: "Daily Developer Jokes"
published: true
tags: #jokes, #dailydeveloperjokes
---

Hi there! Here's today's Daily Developer Joke. We hope you enjoy it; it's a good one.

![Joke Image](https://private.xtrp.io/projects/DailyDeveloperJokes/public_image_server/images/5e12596ec99e0.png)

---

For more jokes, and to submit your own joke to get featured, check out the [Daily Developer Jokes Website](https://dailydeveloperjokes.github.io/). We're also open sourced, so feel free to view [our GitHub Profile](https://github.com/dailydeveloperjokes).

### Leave this post a ❤️ if you liked today's joke, and stay tuned for tomorrow's joke too!

_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:___ What sits on a pirate's shoulder and calls, "Pieces of seven, Pieces of seven"?

___A:___ Parroty error.
 -->
Swipe actions in UITableViewCell
Tags: swift, uitableviewcell, ios, tutorial
Published: 2022-07-04 08:00:15


![Swipe in mail](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vtsizyil3mxodt7ww3m6.jpeg)
## Introduction
The feature that comes with iOS 11 can be defined as left to right (**leading**) or right to left (**trailing**). Basically, we create swipe operations that we can give **.normal** and **.destructive** styles in UIContextualAction. We can create more than one UIContextualAction class that takes style, title and handler parameters and use it for the related swipe operation. Without further talking, let's write some code.

![Coding cat](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gqtts8n4jb6lsvkpa3dm.gif)
## Let's Code
First, I assume we have already defined a UITableView. We use the following code to add a swipe action to the beginning of the UITableViewCell.

```
override func tableView(_ tableView: UITableView, leadingSwipeActionsConfigurationForRowAt indexPath: IndexPath) -> UISwipeActionsConfiguration? { }
```
On the contrary, in order to add the swipe operation to the end of the UITableViewCell, we need to add the trailing state to our code.

```
override func tableView(_ tableView: UITableView, trailingSwipeActionsConfigurationForRowAt indexPath: IndexPath) -> UISwipeActionsConfiguration? { }
```
Now let's fill in these functions. I'm sure you've noticed. Our functions require optional UISwipeActionsConfiguration as a return type. Here, we can define multiple actions for trailing or leading swipe operations, thanks to the parameter type Swift provides us.

```
override func tableView(_ tableView: UITableView, trailingSwipeActionsConfigurationForRowAt indexPath: IndexPath) -> UISwipeActionsConfiguration? {
   let favouriteaction = UIContextualAction(style: .normal, title: "Edit") { [weak self] (action, view, completionHandler) in
      self?.handleMarkAsFavourite()
      completionHandler(true)
   }
   favouriteaction.backgroundColor = .systemBlue
   let deleteaction = UIContextualAction(style: .destructive, title: "Delete") { [weak self] (action, view, completionHandler) in
      self?.handleMoveToTrash(index: indexPath.row)
      completionHandler(true)
   }
   deleteaction.backgroundColor = .systemRed
   return UISwipeActionsConfiguration(actions: [favouriteaction, deleteaction])
}
```
![Swipe result gif](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/r8ja15ezmojqfqxi6ad5.gif)
## Last Words
In this article, I tried to explain how we can define swipe operations that are indispensable for UITableViewCell. I hope this article will enrich your applications a little more. Happy days everyone.
## References
- [Reference-1](https://programmingwithswift.com/uitableviewcell-swipe-actions-with-swift/)
- [Reference-2](https://www.mobilhanem.com/ios-tableview-row-swipe-islemleri/)
- [Reference-3](https://material.io/components/lists#behavior)
- [Reference-4](https://berkayoruc.medium.com/uitableviewcellde-swipe-i%CC%87%C5%9Flemleri-e5a5802c46d4)
AI Chatbot
Tags: chatbot, ai
Published: 2022-07-04 07:51:09

What is a chatbot?
[AI chatbot](https://www.iamdave.ai/blog/chatbot-what-is-chatbot-its-use-case-and-benefits/) is a sophisticated conversational AI simulation that can start a dialogue in natural language with the user. These digital assistants are able to comprehend the user's intentions, interpret them, process the request, and provide rapid answers depending on it. These chatbots may be installed on a variety of user-interaction platforms, including websites, social networking pages, apps, etc. They contribute to the creation of client-specific content, assisting in the process of digital consumer interaction.
How does Base64 work?
Tags: base64, encoding, developer, interviewquestion
Published: 2022-07-04 07:49:26

How does #base64 works?
ASCII characters where each Base64 character contains 6 bits of binary information.
It's very useful for storing image/audio information in Strings of information. What Base64 isn't is an encryption algorithm.

There is an amazing and simple explanation for that on YouTube. check it out.
 
{% youtube yqlpYY_xljI %}
Microtica 2.0 is live!
Tags: devops, cloud, programming, aws
Published: 2022-07-04 07:48:45

Working in a software consulting company, I began with cloud technologies quite early after AWS services were out. I was fascinated with the managed services that were provided and the ease it all brought after the regular scripts we needed to manage.

We were working on many different projects, from internal platforms for the biggest reinsurance companies, Uber-like app experiences, to complex IoT solutions that required huge reliability from the underlying infrastructure and service platforms.

Being in charge of the DevOps team, which came to count around 5 engineers and can in today’s terminology be called a [platform team](https://bit.ly/39qeSFO), projects and tasks began to pile up quickly and our team quickly became a bottleneck. There were times when creating a new environment for a project was being estimated as a one-week task. Tickets all over the place, prioritization meetings, wars for our time and attention to the problem.

This really began to frustrate us, and we were always trying to find new ways to automate and innovate in our process, to be able to scale our DevOps efforts and serve our customers and clients as quickly and securely as possible.

At that time DevOps engineers were really hard to find (now they are additionally too expensive to retain in a small company), so we needed to find different ways to replicate our DevOps team experience for different technical requirements.

I also started to notice that we needed to have a centralized space where all our DevOps knowledge is stored and reused. It could happen that the same infrastructure components or common services such as _User Management_ or _Review Recommendations_ are used on multiple projects, but the code is not standardized and there are multiple versions of it flying around.

This was the time when the very first idea of [Microtica](https://bit.ly/3MPeaQ1) was born. The idea of Microtica was to enable faster cloud adoption and standardize the way developers and DevOps work with cloud technologies.

Today Microtica fills the gap in the DevOps market by providing a platform that offers the PaaS experience to customers while giving them the flexibility to create their own infrastructure from scratch.

Our new redesigned developer self-service portal offers: 
- Ready-to-use infrastructure and application templates
- Inline configuration and pipeline definition
- Automated git-push deployments
- Production-ready Kubernetes integration
- Automated rollbacks
- Incorporated best practices for security, compliance and performance
- Monitoring of deployments, app resources and costs in real-time

[Start for free](https://bit.ly/3xXTYaB) and setup your infrastructure in minutes.
Let's generate cover for your blog posts using Cover Builder
Tags: webdev, javascript, productivity, nextjs
Published: 2022-07-04 07:37:17

A few days back I went through an open-source project [blog-cover](https://blogcover.vercel.app/) which is designed to build cover images for your blogs. I was just thinking about its design, and build process, then I thought I should also try to build a similar kind of cool app to polish my skills & that's the way Cover Builder born.

**App Link:-** [https://cover-builder.vercel.app/](https://cover-builder.vercel.app/)
**Github Link:-** [https://github.com/Gulshanaggarwal/coverbuilder](https://github.com/Gulshanaggarwal/coverbuilder)

**Key Features**

- Unlimited images from Unsplash
- Custom Image Upload & auto Save in browser storage
- Pre-Written Texts
- Emojis

🏁 That's all about the project. Suggestions & reviews are welcome ♥


![good-bye](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/limbym4otxtlxnvvf4f5.png)
The Weekly Dev - 202227
Published: 2022-07-04 07:17:05

---
title: The Weekly Dev - 202227
published: true
description: 
tags: 
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/iialvbed24crj7s0st0a.png
# Use a ratio of 100:42 for best results.
canonical_url: 'https://kevwe.com/weekly/202227'
---
Straight to the point

If you manage to stay away from the minutiae of Frontend Development for a while, you will probably have the feeling that much more can be achieved working with data on the Backend.


Even so, not all technologies are made equal, and some are more nuanced that others, you still have to be used to the coding style, and as Joshua Bloch exemplifies in the preface to Effective Java with the phrase:


"Spouse of me this night today manufactures the unusual meal in a home. You will join?"


That's possibly something syntactically correct to say, but still: is it the most Effective way to communicate ?


We have a great deal of choice with words, and with programming languages, it is the same thing, let alone what you are intending to use them for:


https://kevwe.com/weekly/202227
Advanced TypeScript With Code Challenges: Mapped Types
Tags: typescript, javascript, programming, webdev
Published: 2022-07-04 06:54:42

![Big elephant (Typescript), small elephant (JavaScript)](https://miro.medium.com/max/1400/1*jUBpz0DE_5DSUvDOk_3ZJg.png)

{% medium https://medium.com/@mariusbongarts/advanced-typescript-with-code-challenges-mapped-types-6825c7fc984a %}
FastestDet: a new ultra real-time anchor free target detection algorithm designed for ARM CPU, with only 250K parameters
Tags: ai, yolo, deeplearning
Published: 2022-07-04 06:24:41


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gx7kwmejc61fzwxf36in.jpg)
The time consumption in the table is measured by ncnn. The test platform is RK3568 ARM CPU. Compared with Yolo-fastest, the time consumption of fastestdet single core is reduced by 50%, and the index of map0.5 is 3.4% higher than Yolo-fastest. In fact, due to the increase of input resolution, the calculation amount of FastestDet is nearly twice that of Yolo-fastest. However, thanks to the minimalist network structure and the reduction of memory access, the actual test time on multiple platforms is greatly reduced, especially on single core or weak performance platforms, and the speed is increased by 50%+
https://github.com/dog-qiuqiu/FastestDet
62. Leetcode Solution in Cpp
Tags: cpp
Published: 2022-07-04 06:19:26

```
class Solution {
 public:
  int uniquePaths(int m, int n) {
    // dp[i][j] := unique paths from (0, 0) to (i, j)
    vector<vector<int>> dp(m, vector<int>(n, 1));

    for (int i = 1; i < m; ++i)
      for (int j = 1; j < n; ++j)
        dp[i][j] = dp[i - 1][j] + dp[i][j - 1];

    return dp[m - 1][n - 1];
  }
};

```
746. Leetcode Solution in Cpp
Tags: cpp
Published: 2022-07-04 06:18:18

```
class Solution {
 public:
  int minCostClimbingStairs(vector<int>& cost) {
    const int n = cost.size();

    for (int i = 2; i < n; ++i)
      cost[i] += min(cost[i - 1], cost[i - 2]);

    return min(cost[n - 1], cost[n - 2]);
  }
};

```
Sitecore shared db
Tags: webdev, javascript, beginners, programming
Published: 2022-07-04 06:05:19



We are very new to Sitecore and using Sitecore 6.5, and we are using a shared db on the server which we access from local machines and our staging server.

If I rename an item on [staging server]/sitecore, Im not seeing it remaned in [localhost]/sitecore

I would expect the dev server and local machines to pick this up straight away as they share the same db.

Can someone explain this to me?

[Sitecore](https://hkrtrainings.com/sitecore-training)
135. Leetcode Solution in Cpp
Tags: cpp
Published: 2022-07-04 06:04:21

```
class Solution {
 public:
  int candy(vector<int>& ratings) {
    const int n = ratings.size();
    int ans = 0;
    vector<int> l(n, 1);
    vector<int> r(n, 1);

    for (int i = 1; i < n; ++i)
      if (ratings[i] > ratings[i - 1])
        l[i] = l[i - 1] + 1;

    for (int i = n - 2; i >= 0; --i)
      if (ratings[i] > ratings[i + 1])
        r[i] = r[i + 1] + 1;

    for (int i = 0; i < n; ++i)
      ans += max(l[i], r[i]);

    return ans;
  }
};
```
How to Show Informative Tooltips in Vue Charts
Tags: webdev, vue
Published: 2022-07-04 05:59:35

Learn how to easily add a tooltip to Syncfusion [Vue Charts](https://www.syncfusion.com/vue-ui-components/vue-charts). In this video, you will learn how to make Vue Charts more interactive by adding tooltips. You’ll see how to format tooltip content with both HTML and custom template values, and how to enhance the look of the tooltips by adding borders. 

**Product overview**: https://www.syncfusion.com/vue-ui-components/vue-charts

**Explore our tutorial videos**: https://www.syncfusion.com/tutorial-videos

**Download this example from GitHub**: https://github.com/SyncfusionExamples/how-to-show-informative-tooltips-in-vue-charts

{% youtube n0FgLEwr_GU %}
This website is open source
Tags: watercooler, webdev, beginners, opensource
Published: 2022-07-04 05:43:52

When I rewrote my website in Astro, I decided to make it an open source project.

But let's dive into what this means and how you can contribute.

First of all, being open source has several meanings. This website means people can use the source code, but only while maintaining the same license.
This ensures it will stay a free project forever.

## Why would you open source it?

My main reason behind making the website open source is that I'm only a one-person show.

I try my best to deliver high-quality content every single day, but as I'm a mere human, I make mistakes on the way.

By making the website open source, I want to give people the option to help me improve the content on each page.
Or fix bugs that you might have encountered.

This way, it becomes a product for the community, enhanced by the community.
There are many great readers out there who often see little mistakes, and I would love for them to have a way to contribute.

## How can someone contribute?

Let's first look at some examples of what they can contribute.

- Typo's and grammar mistakes on existing pages
- Outdated packages or code samples
- Perhaps missing images or updating them
- Provide translations (externally, upcoming)
- Fix specific future ideas that are logged in [issues](https://github.com/rebelchris/daily-dev-tips/issues)
- Create [issues](https://github.com/rebelchris/daily-dev-tips/issues) for problems you might have noticed

Then the main question comes down to how they can contribute.

And if you are very new to open source contributions, I suggest you read my article on [contributing to open source](https://daily-dev-tips.com/posts/git-basics-contributing-to-open-source/).

However, I tried to make it as simple as possible for people.

I included an "edit on GitHub" button on every article page, so people can quickly navigate to the page on GitHub and make textual modifications to the article.

![Edit on GitHub on daily-dev-tips.com website](https://cdn.hashnode.com/res/hashnode/image/upload/v1656051541327/gQWM_CkWf.png)

## Conclusion

I hope that open sourcing this website will improve the content and help more people find solutions to their problems.

And you can always contact me with general inquiries or issues.

### Thank you for reading, and let's connect!

Thank you for reading my blog. Feel free to subscribe to my email newsletter and connect on [Facebook](https://www.facebook.com/DailyDevTipsBlog) or [Twitter](https://twitter.com/DailyDevTips1)
Run Selenium Tests in Azure Devops where source code is available in GitHub repository
Tags: azure, selenium, testautomation, githubpages
Published: 2022-07-04 05:10:25

The video contains the details on
How we can push the existing code to github repository.
Run Code that is part of Github Repository using Azure Devops
Create Empty Github Page Branch
Publish Extent Report to Github Pages from Azure Devops Pipeline.

The Report URL from Github page
[Github Page](https://lnkd.in/dAHrvDxP)

The video link from Youtube for the demo 
[Run Seleniun Test in Azure Devops](https://lnkd.in/dKZHSiGW)

The github repository link 
[Github Repository](https://github.com/veerpatil/AzureGithubDemo )
SaasRock v0.3.2 - Row Filters, Tags, Tasks, Comments, Workflows, Kanban Board and API limits
Tags: remix, boilerplate, saas, nocode
Published: 2022-07-04 05:08:06

---
title: SaasRock v0.3.2 - Row Filters, Tags, Tasks, Comments, Workflows, Kanban Board and API limits
published: true
description: The entity builder just got stronger with a lot of new features for every created Row. Plus a Kanban board component and API limits based on the account's subscription.
tags: remix,boilerplate,saas,nocode
cover_image: https://cdn-images-1.medium.com/max/1600/1*uQ5usk8MEeL-wZgXpijdvA.png
# Use a ratio of 100:42 for best results.
---

The entity builder just got stronger with a lot of new features for every created Row. Plus a Kanban board component and API limits based on the account's subscription.

Check out v0.3.2 → [saasrock.com](http://saasrock.com).

---

## Entity Row Features

**Filters**: URL search filters with beautiful UX.

![Row Filters](https://cdn-images-1.medium.com/max/1600/1*CwLPUxEOhfrMeD0aj1BKPQ.png)

**Tags**: Let your users organize and filter their records with colors.

![Row Tags](https://cdn-images-1.medium.com/max/1600/1*ZIfcWhwWB3vg3-6WDi1R9Q.png)

**Tasks**: Let users have a ToDo list for every Entity Row.

![Row Tasks](https://cdn-images-1.medium.com/max/1600/1*DK6rZvDpqOyN2j7y2LCJtg.png)

**Comments**: Users can now leave comments on every row, including some HTML _(with CSS too)_.

![Row Comments](https://cdn-images-1.medium.com/max/1600/1*-rdX6ezs3HYMXlbi2I2huw.png)

**Workflow**: Customize the Entity Workflow States and Transitions _(actionable steps)_.

![Row Workflow](https://cdn-images-1.medium.com/max/1600/1*yHuejpZLl0ybnsBPX3fsYQ.png)

## API limits

If your application is heavily invested in providing an API for your end-users, then you could link their usage with their current subscription.

![API limits](https://cdn-images-1.medium.com/max/1600/1*qrDEUA2E0EbL0Ua8MhJ7ZQ.png)

---

There were some minor improvements, check out the full [changelog](https://saasrock.com/changelog) if you're interested, and the [roadmap](https://saasrock.com/docs/roadmap) for upcoming features.

See how I built a mini CRM with these features:

https://dev.to/alexandromtzg/creating-a-crm-from-scratch-using-saasrocks-entity-builder-9i4

Or watch the [video](https://www.youtube.com/watch?v=gErrqmGv1tw).

Let me know your thoughts 😀!
How to start a new project using Vue.js
Tags: vue, tutorial, webdev, javascript
Published: 2022-07-04 04:55:12

## Why Use Vue.js
In a world where a new JavaScript framework becomes available almost hourly, and every time a new framework is released it purports to solve the problems the other apparently don’t and why the new framework is so much better!

Why would any organisation want to take the time an effort to learn how to implement and learn. We for us the answers lay in the following points.

- Stable progressive framework.
- Easy to learn and understand.
- Simple and flexible.
- Uses MVVM architecture.
- Comprehensive documentation is available.
- Focus on organisation / project architecture.
- Can be used for simple and complex applications.

## How to Install Vue

> Advice
> Vue requires Node.JS 8.9+ so you should ensure you have node installed. If you haven’t got node.js installed we recommend installing Node.js and making use of NVM

To install the vue-cli simply open a terminal window and execute.

`npm install -g @vue/cli`

## How to start a new Vue Project
`vue create  project-name    # _project-name can be anything_`

To run the project, simply use the terminal window change into your project directory and execute the npm run serve command.
`cd some-project
npm run serve`

> ## Website Design Agency
> - Creative website Design for Business, Personal and Blog with adsense.
> Contact +91 9033863013 [bhylu.com](https://bhylu.com/)
What conferences/ forums do you look out for?
Tags: discuss, help, community, webdev
Published: 2022-07-04 04:44:00


What are the conferences that are prominent in your field?
Where did you take part as a speaker? Or aspire to be a speaker one day?

Let's create an ultimate guide of conferences to follow!

![conference meme](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/v6pzj2p6jptat9krwkz0.jpg)
Google Adsense Approval to Github Page
Tags: webdev, programming, tutorial, discuss
Published: 2022-07-04 04:15:02

I know a lot of us even me can't afford a hosting and domain name to host a site and use Google Adsense on it to earn money.

But is it possible to do such a thing. Google Adsense in a Free hosting and domain such as Github Pages. Yes, to be infact the approval was beyond faster compared to the Google Blogspot

{% embed https://mrepol742.github.io/webvium %}
{% embed https://mrepol742.github.io/webviumdev %}
{% embed https://mrepol742.github.io/webviumvpn %}

If you see the links above they're my apps thats ads free so to earn money from them the download page has advertisement.

I started making this https://mrepol742.github.io on May of 2021 and i got Adsense Approval on Dec 2021. I have only few functioning pages back then now i have nomerous.

Basically you just need to rank on google you can use the Google Console https://search.google.com/search-console

Have a stable traffic and continue grow. I only have less than a day of visitors and earning a cent daily contribute to the total sum of earning. It wasn't bad for such a thing since i don't have for anything the host and domain are free.


You guys can check out my site source code at: https://github.com/mrepol742/mrepol742.github.io