Thursday, March 5, 2020

jQuery Vertical Scrolling Web Ticker Plugin - vticker

vticker is a simple jQuery plugin for creating a vertical scrolling ticker widget with one line of javascript code. Items can be paused when the mouse hovers over an item.

Basic Usage:

1. Inlcude jQuery library and jQuery vticker plugin on the web page
2<script src="jquery.vticker.js"></script>
2. Create the html for the web ticker
1<div id="example">
2<ul>
3    <li>Item 1</li>
4    <li>Item 1</li>
5    <li>Item 3</li>
6    ...
7</ul>
8</div>
3. Initialize the plugin.
1<script>
2$(function() {
3$('#example').vTicker();
4});
5</script>
4. Available options.
01<script>
02$(function() {
03$('#example').vTicker({
04speed: 700,
05pause: 4000,
06showItems: 1,
07mousePause:true,
08height: 0,
09animate:true,
10margin: 0,
11padding: 0,
12startPaused:false});
13});
14</script>



Source: https://www.jqueryscript.net/text/jQuery-Vertical-Scrolling-Web-Ticker-Plugin-vticker.html

Thursday, December 19, 2019

Laravel's Bootstrapping process

I will try my best to simplify Laravel's Bootstrapping process. Some terms to understand before we focus on bootstrapping process:
Service Container - holds different components which can be used in your application
Facades - Laravel has lots of features and helpers. For example helpers regarding URL, Response, Route, Session, Request etc. These are loaded into service container. Facsdes makes it possible to access these features without going through service container, and can be accessed directly.
Middleware - is a code executed on each request. For example, setting up the session. cookie encryption etc. Middleware is required by each request.
Service Providers - are classes required by your application. These are not loaded on each request, but only when the service they provide are actually needed.
Kernel - is responsible for loading all the middleware, service providers
When a web page is requested, the request first goes to index.php. This file does very important things. First it auto-loads all the classes used in your application.
After that it sets up the laravel application i.e. laravel framework. One of the first thing laravel framework does is - it creates the service container. At this point the service container is empty.
After that framework creates kernal. Kernal loads all the middleware required by the application. One of the most important task of the kernal, there after, is to load all the service providers i.e. to load all the components into the service container.
The list of all the service providers loaded are in the config/app.php file i.e. providers array. This array defines which components are loaded into your service container.
These components can be accessed via facades. The list of all facades are also present in the config/app.php as aliases array. These facades are simply short-cuts to all the components loaded into the service container. This finishes the bootstrap process.
After all this, request is then handed over to the router i.e. routes/web.php file.

Friday, December 6, 2019

2 ways to activate Windows 10 for FREE without additional software

Run KMS commands on command prompt.
  1. Open Command Prompt as administrator.
    Click on the start button, search for “cmd” then run it with administrator rights.
  2. Install KMS client key
    Use the command “slmgr /ipk yourlicensekey” to install a license key (yourlicensekey is the activation key that corresponds to your Windows edition). The following is the list of Windows 10 Volume license keys.

    Home: TX9XD-98N7V-6WMQ6-BX7FG-H8Q99
    Home N: 3KHY7-WNT83-DGQKR-F7HPR-844BM
    Home Single Language: 7HNRX-D7KGG-3K4RQ-4WPJ4-YTDFH
    Home Country Specific: PVMJN-6DFY6-9CCP6-7BKTT-D3WVR
    Professional: W269N-WFGWX-YVC9B-4J6C9-T83GX
    Professional N: MH37W-N47XK-V7XM9-C7227-GCQG9
    Education: NW6C2-QMPVW-D7KKK-3GKT6-VCFB2
    Education N: 2WH4N-8QGBV-H22JP-CT43Q-MDWWJ
    Enterprise: NPPR9-FWDCX-D2C8J-H872K-2YT43
    Enterprise N: DPH2V-TTNVB-4X9Q3-TJR4H-KHJW4

    (Note: You need to hit [Enter] key to execute commands.)

    1. Set KMS machine address
      Use the command “slmgr /skms kms8.msguides.com” to connect to my KMS server.
    2. Activate your Windows
      The last step is to activate your Windows using the command “slmgr /ato”.
      Now check the activation status again.
  3. Source: https://msguides.com/microsoft-software-products/2-ways-activate-windows-10-free-without-software.html

Thursday, October 10, 2019

How to run laravel project on server without public folder

just replace the below code in your root .htaccess  file.

<IfModule mod_rewrite.c>
    <IfModule mod_negotiation.c>
        Options -MultiViews
    </IfModule>

    RewriteEngine On

    RewriteCond %{REQUEST_FILENAME} -d [OR]
    RewriteCond %{REQUEST_FILENAME} -f
    RewriteRule ^ ^$1 [N]

    RewriteCond %{REQUEST_URI} (\.\w+$) [NC]
    RewriteRule ^(.*)$ public/$1 

    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ server.php
</IfModule>

How to change the PHP version for subfolders or subdomains

  How to change the PHP version for subfolders or subdomains Setting a specific PHP version for a specific websites, subfolders or subdomain...