Zeronlab

Zeronlab Digital software, web, app solutions with new dimensions
(1)

We are working for our clients.....
09/09/2024

We are working for our clients.....

প্রধান উপদেষ্টা প্রফেসর ড. ইউনুস স্যারের অনুরোধে জুলাইয়ে বিক্ষোভ প্রদর্শনের দায়ে কারাদন্ড দেয়া ৫৭ বাংলাদেশী কে ক্ষমা করে...
03/09/2024

প্রধান উপদেষ্টা প্রফেসর ড. ইউনুস স্যারের অনুরোধে জুলাইয়ে বিক্ষোভ প্রদর্শনের দায়ে কারাদন্ড দেয়া ৫৭ বাংলাদেশী কে ক্ষমা করেছেন আরব আমিরাত সরকার। যা বর্তমান সরকারের এক বিরাট কুটনৈতিক অর্জন।

এটা চিন্তাও করা যায় না যে, তিনজনের যাবজ্জীবন এবং বাকিদের ১০ বছরের কারাদণ্ড ইউনুস স্যারের টেলিফোনে এই সাজা ক্ষমা করে দেয়া হয়েছে।

আশা করি দীর্ঘদিন ধরে বন্ধ হয়ে থাকা আরব আমিরাতের সাধারণ শ্রমিক ভিসা সমস্যারও অতি দ্রুত সমাধান করে ফেলবেন তিনি।

======= How to create a Project in Django========Before you begin, you will need to have the following: 📑 Windows 10 or ...
02/09/2024

======= How to create a Project in Django========
Before you begin, you will need to have the following:
📑 Windows 10 or later
📑 Python 3.6 or later
📑 Python pip
1. To install django
>pip install django
============================================
2. To Create folder
>mkdir coffeeShop
============================================
3. To enter the project
>cd coffeeShop
============================================
4. To create a startproject named coffeeshop (use project name as small letter)
>django-admin startproject coffeeshop . [. is used for to go ancedetor folder ]
============================================
5. To open the project in VS code
> code .
============================================
6. To run the project in local server
>python manage.py runserver
============================================
7. To create a app
python manage.py startapp coffee

=================================================

8. Now make manage urls and views coffeeshop/urls.py

from django.contrib import admin

from django.urls import path, include

urlpatterns = [

path('admin/', admin.site.urls),

path('coffee/', include('coffee.urls')),

]

=================================================

9. Create urls.py under coffee folder

from django.urls import path

from . import views

urlpatterns = [

path('', views.home)

]

=================================================

10. Now customize the models.py under coffee app

# Create your models here.

class Coffee(models.Model):

name = models.CharField(max_length=255)

price = models.FloatField()

quantity = models.IntegerField()

image = models.CharField( max_length=2083)

=================================================

11. Now, Connect the SQlite database. For that, download DB Browser SQlite for windows and install it

and select the database path with root folder.

then, use the migration command in terminal to migration the database.

> python manage.py makemigrations

=================================================

12. Go to settings.py and add the lines in INSTALLED_APPS array

INSTALLED_APPS = [

'coffee.apps.CoffeeConfig',

]

> python manage.py makemigrations

>python manage.py migrate

>python manage.py runserver

Then you will get the base url /admin or baseurl/coffee

=================================================

13. To Create a Super user

> python manage.py createsuperuser

To be continued .......

26/08/2024

Remove public from url in laravel:
Ø Its of all open the project in browser i.e. localhost/projectName/public & We want to remove public from the url
Ø We will go to the path i.e. Drive name -> htdocs --> ProjectName --> public.
Ø Cut all the files from the folder and paste it at root level of the project i.e inside the projectName folder.
Ø Go to the index.php and remove .. from ‘/../storage/framework/maintenance.php’, ‘/../vendor/autoload.php’, ‘/../bootstrap/app.php’
Ø You can test it by running the url in the browser i.e. http://localhost/projectName. It run very fine
Ø Important:
Ø But, here the issue about security of website. If we will type http://localhost/projectName/.env
Ø Then it will show the sensitive info of the website. Hacker can easily hack the website.
Ø To remove this Sensitive problem you have to do à
Ø Go the .htaccess file and at the end paste these lines.
hashtag a specific File

Order allow,deny
Deny from all

চাইলে আপনিও আল সুন্নাহ ফাউন্ডেশনে বন্যা কবলিত মানুষদের সহযোগিতার জন্য অংশ নিতে পারেন। তাদের ওয়েবসাইটে গিয়ে নিজেই অনুদান ...
22/08/2024

চাইলে আপনিও আল সুন্নাহ ফাউন্ডেশনে বন্যা কবলিত মানুষদের সহযোগিতার জন্য অংশ নিতে পারেন। তাদের ওয়েবসাইটে গিয়ে নিজেই অনুদান প্রদান করতে পারেন ❤️
NB: It's not for show off.
Link: https://assunnahfoundation.org/donate/flood

Best extension for php and laravel development in visual studio codeIntelephenseThis is the most important extension to ...
20/08/2024

Best extension for php and laravel development in visual studio code
Intelephense
This is the most important extension to install for PHP support. It provides a fast language server that adds code completion, go-to definition, formatting, and more.
Laravel Extra Intellisense
The “VS Code Laravel Extra Intellisense” extension enhances the development experience for Laravel developers using Visual Studio Code. It integrates seamlessly with the code editor, providing intelligent suggestions and autocompletion specific to Laravel syntax. This extension proves invaluable for streamlining coding tasks, reducing errors, and boosting overall productivity in Laravel projects.
Laravel blade snippets
The Laravel Blade snippets extension adds syntax highlight support for Laravel Blade to your VS Code editor. Besides, it offers blade snippets and blade syntax highlights support for VSCode. Furthermore, it also consists of a set of triggers that, when typed, give the respective blade snippets. This also makes your blade templating easier and faster.

Laravel Snippets
Another one in the list of VS Code Laravel Extensions is the Laravel Snippets extension. It adds snippets for the Facades like Request::, Route:: etc. Besides, this package also gives Laravel snippets to use in VSCode when building our applications. Instead of typing out longer Laravel commands, you just use prefixes like: Auth, Cache, Config, Route, Mail, View etc.

DotENV
The DotENV VS Code extension is used to highlight the syntax of your .env file, which could be quite handy for spotting some problems.
Laravel Artisan
The Laravel Artisan extension makes running artisan commands a breeze when using Laravel. To use it, you just need to trigger the VSCode command palette by pressing Ctrl+Shift+P and then typing Artisan and the artisan commands will show up to be executed.

Laravel Goto View
The Laravel Go to View VScode extension allows you to go from your Controller or Route to your view. You can use Ctrl + Alt + Click to jump to the first matched Blade View file. It works similarly to the Laravel goto Controller extension.

Laravel-goto-controller
Laravel-goto-controller VScode extension allows you to press Alt+click on the name of the controller in your routes file, and it will navigate you from the route to the respective controller file.

Prettier
Prettier is an opinionated framework for formatting JavaScript/TypeScript files. It is highly recommended for formatting React and Vue files if using something like Inertia. It can also format other file types, like JSON and Markdown
Laravel Blade Formatter
Blade-formatter is an opinionated Blade file formatter for VSCode. You can also format by the same syntax programmatically with the blade-formatter that this extension relies on

Laravel IDE Helper
This plugin helps generate helper files for better code suggestions for Laravel

GitHub Copilot
It provides autocomplete-style suggestions from an AI pair programmer as you code. Just start writing your code in the editor and Copilot provides you with relevant suggestions. Need something specific? Add a natural language code comment to give directions to Copilot about what you want.

IntelliPHP
It is an AI-powered extension for Visual Studio Code that enhances productivity and code development experience for PHP.

18/08/2024
05/08/2024

তোমরা যেমন সুযোগ পেলে গণভবনের ছাগল, মাছ, এসি সগর্বে চুরি করো, তোমাদের নেতারাও তেমনি ট্যাক্সের টাকা ও দেশের সম্পদ চুরি করে।

যেমন মানুষ, তেমন নেতা।

একেকজন নেতা যাবে, আরেকজন আসবে, কিন্তু তোমাদের ভাগ্য আর পরিবর্তন হবে না।

আমাদের চরিত্রেই দোষ।

“The pen is mightier than the sword”✨️- Edward Bulwer Lytton Illustration By  : Derril Audrey Roy
05/08/2024

“The pen is mightier than the sword”✨️
- Edward Bulwer Lytton
Illustration By : Derril Audrey Roy

Address

Koborsthan More, Nilphamari
Saidpur
5300

Alerts

Be the first to know and let us send you an email when Zeronlab posts news and promotions. Your email address will not be used for any other purpose, and you can unsubscribe at any time.

Contact The Business

Send a message to Zeronlab:

Share