teleren/devto huggingface dataset:
Use VSCode editor in your browser.
Tags: webdev, programming, news, vscode
Published: 2021-10-21 12:05:32

Who wants to use VSCode editor in your web browser? yes, in the web browser!😉

Back in 2019, when the .dev top-level domain opened, we picked up vscode.dev. They didn't what to do with it. But now in 2021, they have brought a lightweight web version of vscode editor which you can use as you use the desktop version. But currently, It's under development, a lot of features will be added day by day.

for more details: [link.moinulmoin.com/edg](link.moinulmoin.com/edg)
Crack PHP interview in 2022
Tags: php, career
Published: 2021-10-21 12:00:10

![PHP interview question - TGB](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kva4fssgb4ki6f1eo1yg.png) 

There are such countless huge organizations in the IT business that are utilizing PHP for their foundation, so you might have a thought that what's the extent of your vocation in PHP for what's to come. 

In any case, prior to joining any organization, you should need to confront the interview round and there interviewer will actually look at your applied information about PHP or more in case you are not fresher. 

For that, you should be completely ready for the Interview. To help you in that, here we have arranged a rundown of the most oftentimes asked interview inquiries for PHP. View it before your interview.

List of [PHP Interview Questions and Answers](https://www.techgeekbuzz.com/php-interview-questions/):

1. What is PHP?
2. What is the full form of PHP?
3. What does PEAR stand for?
4. Which programming language does PHP resemble?
5. What are the differences between PHP & JAVA?
6. What is the command to execute a PHP script from the command line?
7. Which function is used to encrypt the password in PHP?
8. Write a Hello World program using the variable?
9. How to display the output directly to the browser with the use of PHP?
10. Which operator is used to compare the objects in PHP?
11. What is the library that is used for pdf in PHP?
12. Brief of the new features of PHP7?
13. How to execute a PHP script using the command line?
14. How to display text using a PHP script?
15. Give the statements that are used to connect PHP and MySQL.

Looking for more questions with their answers, then click on the above blog.
A Quick 10-Second Programming Joke For Today
Tags: jokes, dailydeveloperjokes
Published: 2021-10-21 12:00:00

---
title: "A Quick 10-Second Programming Joke For Today"
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/5e12590d3e5c1.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 do computers love to do at the beach?

___A:___ Put on some spam block for protection so they can safely surf the net while catching some .WAVs!
 -->
Easiest Django Shell/Terminal
Tags: django, python
Published: 2021-10-21 11:50:11

Django shell is a great tool to interact with Models over the terminal, but [bpython](https://github.com/bpython/bpython)  is a better solution because of the autocomplete feature that makes someone's life much easier. However, bpython doesn't handle Django models in a smart way, for example if you try a `filter()` method, it won't allow you to autocomplete parameters using the class members,as the function has **kwargs as the function fingerprint.

So, in this article, we will discuss `bpython-django` a fork from bpython that handles Django in a better way, currently it handles Models and can be extended as desired.

## bpython-django

### Install

`pip install bpython-django`

### Start your django shell

After the module is installed, you start you shell by 
`python manage.py shell -i bpython`
or  
`python manage.py shell`

Use the shell as you wish, as shown in next asciienma
{% asciinema 443735 %}

## Comments 

You can always check with developer regarding any issues, bugs or new features at {% github mkalioby/bpython-django no-readme %}
Waterfall with subprojects
Tags: productivity
Published: 2021-10-21 11:38:13

One most significant problems with the pure waterfall model from a rapid development point of view are that you're supposed to be completely done with an architectural design before you begin with a detailed design, and you're supposed to be completely done with the detailed design before you begin coding and debugging. However, in the practical world, systems do have areas that contain design surprises, but they have other areas that we have implemented many times before and contain no surprises. Delaying the implementation of the areas that are easy to design just because the design of a difficult area is pending is not a good idea. If the architecture has broken the system into a logically independent system, you can spin off separate projects, each of which can proceed at its own pace.

This is what is called as the waterfall with sub-projects model. In this model, the waterfall is broken into different parts and the subprojects are executed independently into waterfall streams.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ll9atwu3d5fhakhe31wy.jpeg)
 
## The main risk
This model a very vulnerable risk, that is unforeseen interdependencies. You can partly account for that by removing dependencies at the architecture time or waiting until
detailed design time to break the project into subprojects.
Careful planning can allow you to perform some of the waterfall's task in parallel.


____
_Notes and images from [Rapid Development: Taming Wild Software Schedules by Steve McConnell](https://www.amazon.com/Rapid-Development-Taming-Software-Schedules/dp/1556159005)_
Sashimi Waterfall model of development
Tags: productivity
Published: 2021-10-21 11:36:57

### Sashimi Waterfall model of development

The name Sashimi comes from the Japanese style of presenting raw fish, where the slices overlap each other. In the sashimi model, too the stages overlap each other to overcome the drawbacks of the traditional waterfall development model.
The sashimi model of development is a modification to the traditional waterfall model. 
The traditional waterfall provides minimal overlapping between the two stages of development. But that s not the case with the Sashimi model of development.
This model suggests a stronger degree of overlap between the stages-For example, suggesting you might be well into architectural design partway between the structural analysis and perhaps partway into the detailed designing before you consider requirements analysis to ve complete. This is a reasonable approach for many projects, which tend t gain important insights into what they are doing as they move through their development cycles and which function poorly with their strictly sequential development plans. In the pure waterfall model, the ideal documentation is that one team can to a completely separate team between any two phases. The question is, "why?" If you can provide personnel continuity between all stages of software development, you don't need much documentation. This wa, by following modified waterfall model, you can substantially reduce the need for documentation.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4xr66g08o0x5al2b5vbz.jpeg)
 
# The disadvantages.
The Sashimi model is no without problems. Because there is an overlap between the phases, milestones are more ambiguous, and it's harder to track progress accurately. Performing activities in parallel can lead to miscommunication, mistaken assumptions and result in inefficiency. If you are working on a small, well-defined project, something close to the pure waterfall can be more efficient instead.



______
_Notes and images from [Rapid Development: Taming Wild Software Schedules by Steve McConnell](https://www.amazon.com/Rapid-Development-Taming-Software-Schedules/dp/1556159005)_


______
If you liked the post, please like it and follow me on Github!

{% cta https://github.com/Aatmaj-Zephyr %} Follow me on Github! {% endcta %}
Roadmap to React Native 
Tags: beginners, webdev, android, androidclub
Published: 2021-10-21 11:29:02

### Beginning your journey in Android development....may not be as easy as it sounds.
 

Too many sources and too many platforms to choose from. Confused about how to start on with Android development? Don’t worry Android Club has got your back. 

Go ahead and read this blog on start your Android Development Journey today!!

{%link https://dev.to/prathyuma08/roadmap-to-android-development-27lc %}
Top 5 Insiders YouTube SEO Tips You Haven't Heard Of!
Tags: showdev, webdev, help, beginners
Published: 2021-10-21 10:25:51

#Hello Everyone...!🖤
###Introduction
In this Article we are seeing the best things to grow your YouTube channel baice tips to grow your Channel Journey..!
Did you know that there are only four categories (News&Politics, Science&Tech, Howto&Style, and Gaming) that are listed in the advanced search functions? 
So, if your video is posted under any other category, it wouldn't be found if category searching is involved!
A general description rule of thumb: too short and too lengthy descriptions are not recommended. Use keywords wisely within a moderately sized description that actually describes your video. (Some people include the most irrelevant video descriptions imaginable. Don't be one of them!).YouTube allows roughly 22 words for the description displayed on the query page. So, it's your best bet to ensure that your keywords are at the beginning of your description.
#here We are start the top 5 things to grow your YouTube channel journey...!

1.Use your own material or any of YouTube's audio tracks collection. The last thing you need is to be penalized for using copyright material!

2.If you're putting a link in your video description, start it with HTTP:// before the URL. It won't work otherwise!
Become YouTube savvy by exploring YouTube API and YouTube RSS Feeds. You will be glad you did.

3.Use Tubebuddy. The best youtube optimization tool. Let's find out more about Tubebuddy
That's it for now! Try these tips and see your YouTube SEO explode in no time. To your success!

4.Make a video transcript which is a closed caption file. This will greatly help with search engine indexing. And, as an added bonus, it will enable deaf users to read through your video.

5..Row file names make a difference. Make sure to optimize your video raw file name the same way you would optimize your video title.
.
.
.
Conclusion
I hope you found this article useful, if you need any help please let me know in the comment section.💯

Thanks for reading, See you next time.
I made a cheatsheet for Next.js to add debugging, dev url, Tailwind, SEO, ESLint with Typescript, analytics, sitemap, etc.
Tags: nextjs, webdev, tutorial, react
Published: 2021-10-21 10:25:41

I've been working on different Next.js projects for sometime and whenever I need to setup a new Next.js project I follow common steps like adding ESLint with Typescript support, debugging, SEO, Tailwind, SCSS support, Sitemap, etc.

Now I'm sharing that guide to all: https://gourav.io/blog/nextjs-cheatsheet

It's a [open-source cheatsheet](https://github.com/GorvGoyl/Personal-Site-Gourav.io/blob/main/content/blog/nextjs-cheatsheet/index.md) so contributions are more than welcome to grow this even further 🙏.



PS. I initially thought of creating a starter template but maintaining that is difficult over time and adds lots of abstraction that hinders learning experience.

---

Thanks for reading. Connect with me on [Twitter](https://twitter.com/GorvGoyl).
How to fix: Allocated Memory Size Exhausted for Composer
Tags: webdev, composer, php, laravel
Published: 2021-10-21 10:21:09

Working with framework like [Laravel](https://laravel.com) we are using [composer](https://getcomposer.org/) to install various packages that can extend the functionality of our applications.

Most of the time we ran into an error when trying to install a package via [composer](https://getcomposer.org/) and the error looks like this:
![Allocated memory size exhausted](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/q34l39talip58psfipq5.png)

You can check the allocated [php](https://www.php.net) memory via the following command:

```bash
php -r "echo ini_get('memory_limit').PHP_EOL;"
```

In order to solve this issue, either you can increase the [php](https://www.php.net) allocated memory to:

```bash
; Use -1 for unlimited
memory_limit = -1
```

OR, you can use the `COMPOSER_MEMORY_LIMIT=-1` parameter with your composer command and an example would be like this:

```bash
COMPOSER_MEMORY_LIMIT=-1 composer require laravel/scout
```
My freelancing strategy
Tags: webdev, javascript, beginners, programming
Published: 2021-10-21 10:18:10

_If you found value in this thread you will most likely enjoy my tweets too so make sure you follow me on [Twitter](https://twitter.com/VladPasca5)  for more information about web development and how to improve as a developer. This article was first published on my [Blog](https://vladpasca.hashnode.dev/)_

I started freelancing 2 months ago

In the meantime I:

- Built over 50 landing pages
- Made websites for 5 well-known accounts in my niche
- Got my first paid client

And today I'll share my strategy with you

First, let's clarify some things:

1. My niche is Twitter course/content creators who sell on Gumroad
2. The service I sell is web design
3. I use @carrd to build the landing pages

Now, let's talk about the strategy I use:

1. How I find my potential clients

I know most of them already from Twitter but I also did this:

1. Searched on Gumroad for courses that are promoted on Twitter
2. Look at the accounts other Gumroad creators follow

In the beginning, it took longer to find them but now I...

just scroll through my timeline and find new potential clients every time

Now, here is something very important

After I find a potential client I

1. Add their name is a notion doc
2. Spend 10 minutes reading their tweets, and learning more about them

The second point 2 is key

2. What do I do next?

I don't like the "traditional" way of doing outreach where you just ask a person to work with you

I believe that leading with value is key

And this is exactly what I'm doing. How?

Well, I'm building an entire landing page for them...

Yes, I do that before even talking with them

I do have some templates and systems that I use to save time but it still requires quite some work to build that landing page

Then, only after I have the landing page I do the outreach which is step 3

3. The outreach

This is quite simple, I have a DM template that I use and I just personalize them for every client

I also mention that they can use the landing page for free in the DM

But the most important part is FOLLOWING UP

Trust me...

Most of the clients I got replied after I followed up

Then, after they reply I transfer the website to them and let me know that I'll ask for a testimonial after a while

Why?

Because this is what I'm aiming for right now, the social proof

I'll think about the money later

And that's mainly all of it

I repeat the exact same steps for each potential client

Some decide to work with me in the future, some send me a testimonial, some also pay me for my work and some don't reply

No matter the results I'm happy because I enjoy what I'm doing!

_I hope found this useful and if you did please let me know. If you have any questions feel free to DM me on  [Twitter](https://twitter.com/VladPasca5)._let me know. If you have any questions feel free to DM me on  [Twitter](https://twitter.com/VladPasca5)._
Learning from ants
Tags: watercooler, computerscience
Published: 2021-10-21 10:08:00

Learning from ants: Ant colony optimization algorithms are versatile and useful for several real-world applications. These applications usually center on complex optimization problems. Here are three uses for the algorithm.

If you haven't already, gain the intuition of the ant colony optimization algorithm here: [https://rhurbans.com/ant-colony-optimization-for-beginners/](https://rhurbans.com/ant-colony-optimization-for-beginners/)

## Route optimization
In a logistics example, perhaps the distance between destinations, traffic conditions, types of packages being delivered, and times of day are important constraints to optimize the operations of the business. ACOs can help with that.

## Job scheduling
Job scheduling is required in almost any industry. Nurse shifts are important to ensure that good health care can be provided while keeping nurses healthy. Computational jobs on servers must be scheduled in an optimal manner to maximize the use of the hardware.11

## Image processing
Although there are better ways, ACOs can be used for edge detection in image processing. An image is composed of several adjacent pixels, and the ants can move from pixel to pixel, leaving behind pheromone trails that would trace an object.

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

If you're interested in more details about ant colony optimization and AI, see Grokking AI Algorithms with Manning Publications: [http://bit.ly/gaia-book], consider following me - [@RishalHurbans](https://twitter.com/RishalHurbans), or join my mailing list for infrequent knowledge drops: [https://rhurbans.com/subscribe](https://rhurbans.com/subscribe).
Custom Validatation For Phone Number Field Elementor Form WordPress
Tags: wordpress, php, webdev
Published: 2021-10-21 09:38:15

Elementor is fast growing WordPress builders. Elementor has it's own element called Form. Unfortunately it will not give you any validation option within the builder options. For this you have to use this custom function in you theme file called functions.php

{%gist https://gist.github.com/imuhammadshoaib/0de299e0c9ed1306d3d11bbcfb59239b %}
airi.py : For Discord Bots
Tags: python, programming
Published: 2021-10-21 09:24:54

## What is Airi API?
Airi is an API that provides Anime Waifus, Facts, Quote info.

## What is airi.py?
[airi.py](https://pypi.org/project/airi.py/) is an async wrapper for Airi API written in Python, that allows you to use Airi API directly. This library is especially made for discord bots.

### An Example:
```py
"""
This is just an example;
"""

import airi
from discord.ext import commands

bot = commands.Bot(command_prefix='!')

@bot.event
async def on_ready():
    print(f'{bot.user.name} has connected to Discord!')


@bot.command()
async def test(ctx):
    client = airi.Client("TOKEN") #where, TOKEN your AIRI BOT TOKEN
    fact = await client.fact()
    await ctx.send(fact.fact)
    

bot.run('DISCORD BOT TOKEN')
```
It's actually very simple to use!
For more example, [check more examples here.](https://github.com/EitoZX/airi.py/tree/master/examples)
Want to know how to get started? [check quickstart guide here.](https://airipy.readthedocs.io/en/latest/quickstart.html)


### Related Links:
[Source Code](https://github.com/EitoZX/airi.py)
[Documentation](https://airipy.readthedocs.io)
5 best browsers for download
Tags: beginners, programming, webdev, tutorial
Published: 2021-10-21 09:24:46

#What is a web browser?
>A web browser is application software for accessing the World Wide Web. When a user follows the URL of a web page from a particular website



##1.Google chrome
![Alt text of image](https://delante.co/wp-content/uploads/2019/11/przegladarka-google-chrome-definicja.png)
###What is Google chrome web browser?
Now more simple, secure, and faster than ever - with Google's smarts built in. Automatic protection from security issues like phishing and dangerous sites. Designed to keep you safe. Type less with autofill. One browser, all devices.

*www.google.com/chrome*

##2.Mozilla firefox
![Alt text of image](https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQ2lAOD_Bp1v3rJAKcDda-I8NRQ4iLGZhRLpA&usqp=CAU)
###What is Mozilla firefox web browser?
Mozilla Firefox or simply Firefox, is a free and open-source web browser developed by the Mozilla Foundation and its subsidiary, the Mozilla Corporation. Firefox uses the Gecko rendering engine to display web pages, which implements current and anticipated web standards.

*www.mozilla.org/en-US/firefox/new/*


##3.Apple safari
![Alt text of image](https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQpqEkP8kM7dUh34EIntD3h1FQZFTUsWyySPQ&usqp=CAU)
###What is apple safari web browser?
Safari is a graphical web browser that is developed by Apple. It is primarily based on open-source software properties, and mainly WebKit. It succeeded Netscape Navigator, Cyberdog and the most recent Internet Explorer for Mac as the default web browser for Macintosh computers.
*www.apple.com/safari/*

##4.Brave
![Alt text of image](https://www.cnet.com/a/img/oht0PT5Cb8Rz6hpr7AQLjq-k_wY=/940x0/2019/11/13/026c1811-17e6-4fdc-a144-b7ca1c43f093/brave-logo-icon-gradient.jpg)
###What is brave web browser?
Brave is a free and open-source web browser developed by Brave Software, Inc. based on the Chromium web browser. Brave is a privacy-focused browser, which distinguishes itself from other browsers by automatically blocking online advertisements and website trackers in its default settings.

*www.brave.com*

##5.Vivaldi
![Alt text of image](https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcR86nym8v2YEl31r4aEE2t2DGPIiLr15IwIqw&usqp=CAU)
###What is vivaldi web browser?
Vivaldi is a freeware, cross-platform web browser developed by Vivaldi Technologies, a company founded by Tatsuki Tomita and Jon Stephenson von Tetzchner, who was the co-founder and CEO of Opera Software. Vivaldi was officially launched on April 6 , 2016.

*www.vivaldi.com*

##Thanks for read this article. follow me for get more information's like this🙂😀😀😀.
##please write a comment which web browser you like.

Visit my other website:- https://golink.netlify.app/

Visit my game page:- https://nethgame.itch.io
Get dokuwiki running with docker ubuntu20.04
Published: 2021-10-21 09:16:08


## create a docker volume :
for data persistency container needs one volume on the docker host ,which will be mapped to /config folder within the  container. create the volume by :
```
    docker volume create dokuwiki 
```
# creating the container 
    docker create \
    --name=dokuwiki \
    -e PUID=1000 \
    -e PGID=1000 \
    -e TZ=America/New_York \
    -e APP_URL=[YOURURL] `#optional` \
    -p 8081:80 \
    -v dokuwiki:/config \
    --restart unless-stopped \
    linuxserver/dokuwiki

# variable explenation:

-e PUID : set process userid to 1000 to help avoid permission issues 

-e PGID : Sets Process Group ID to 1000 to help avoid permission issues.

-e TZ   : time zone (with this format: America/Newyork)


run the container :
```
    docker start <containerId>
```

if you followed the above configuration then you're done go to http://localhost:8081/install.php for admin config 

but if you want to update the already running container :
```
    docker update --restart unless-stopped container_id
    # verify the changes you made : 
    docker inspect container_id
   
```

and search for RestartPolicy ,this is what you will be searching for :
        "RestartPolicy": {
        "Name": "unless-stopped",


you are done !
go to this URL :http://SERVER-IP:8081/install.php for admin configuration .


this might also be helpful:

https://codeopolis.com/posts/how-to-install-dokuwiki-on-docker/