Sunday, May 28, 2017

Add open with sublime text 3

1st go to google search "add open with sublime text 3

2nd you can see openwithsublimetext3.bat code. code is here:

@echo off
SET st2Path=C:\Program Files\Sublime Text 3\sublime_text.exe
rem add it for all file types
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3"         /t REG_SZ /v "" /d "Open with Sublime Text 3"   /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3"         /t REG_EXPAND_SZ /v "Icon" /d "%st2Path%,0" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3\command" /t REG_SZ /v "" /d "%st2Path% \"%%1\"" /f
rem add it for folders
@reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text 3"         /t REG_SZ /v "" /d "Open with Sublime Text 3"   /f
@reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text 3"         /t REG_EXPAND_SZ /v "Icon" /d "%st2Path%,0" /f
@reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text 3\command" /t REG_SZ /v "" /d "%st2Path% \"%%1\"" /f

3rd create a text file and pest this code. and you must change the format .txt to .bat

4th which computer is 64 bit you can see a folder name Program Files(x84). open this folder  see sublime folder if not then find Program Files also and copy this path

5th go to text file and change the path see

6th change this file format from .text to .bat and save it. see 

7th click on the file you can see this cmd popup. see

just press any key. But problem is access denied because in my case i have saved this file on c drive desktop,  so right click on .bat file and click on run to administrator you can see it's successfully see

now it will be work see
Thank you. 

Wednesday, April 5, 2017

WordPress Theme Development Basic

how to  add a theme on your WordPress?
Required  files are index.php and style.css

For upload theme you need to add some code on your css file
Theme Name: you theme name
Theme URL:
Author: Ranit
Author URL:
Description: your theme descriptions
Version: 1.0
Tags: Music, Art, eCommerce, Membership, Video, Audio
Textdomain : firsttheme

For image you need to create or collect a image size: 600*450 px and image name screenshot.png or .jpg

setting> general :

site title: bloginfo('title')
tag line: bloginfo('description')
wordpress address utl:  bloginfo('home')
site address: echo site_url()

some function:
থিম এর  লিংক টা show করায়।

1) echo get_template_directory_uri();

2) bloginfo('template_directory');

3) bloginfo('template_url');

hook: after_setup theme

add_theme_support for title-tag

How to add menu and show menu:

add menu:
register_nav_menus('menu-id', 'menu name');
show menu:
wp_nav_menu('theme_location ', 'menu-id');

Monday, April 3, 2017

Important link

1) search on google open with sublime text 3 windows github
for 64 bit:

2) Copy this code and save on .bat format and go to c drive and copy the path of your sublime text and past this url on this code url.

3) run this .bat file with run administrator and press any key.

Friday, January 13, 2017

Php Basic


echo এন্ড print এর মধ্য ডিফ্রেন্ট :
echo তে . এন্ড , use করা যায়।
// echo"hello ". "world";
// echo"hello ", "world";

// echo"hello"." "."world";
// echo"hello"," ","world";

but print use করলে   ,  কাজ করবে না। . কাজ করবে।

print অনেক বার use করলে page তা লোড হইতে বেশি সময় নেই। echo use করলে load হইতে কম সময় লাগবে।
function এর ভিতর যে () use করি এর ভিতর এ যা বসে  তাকে  argument বলে।

function এর  value  যে  খানে show করতে চাই ঐ খানে () এর ভিতর এ যা বসে  তাকে  parameter  বলে।
ex :
function ami(){
echo"valo ass ";
ami bollam:

output : ami bollam: se valo asa .

এখন ami তা কে আমি dynamic করবো। এই জন্য argument use করবো।  যাকে dynamic করবো  ওই খানে ও দিবো। show আর kisu parameter set করবো যে আমি কি show করতে চাই।
function ami($name){

echo $name." valo asa";

ami bollam:
output  : ami bollam: ranit valo asa


return :
returnহলো function কে কিছু দিয়ে দাওয়া।

function sotovai(){
return "vai ke mobile kine dilam";
echo sotovai();

এই খানে sotovai কে mobile কিনে দিলাম। but show করতে হলে function কে just execute করলে  output show  করবে না এই জন্য echo use করতে হবে।
function one($o){
return $o;
function two($t, $time){
return one($time). $t;
function three($th, $ami, $tumi){
return two($ami, $tumi).$th;

echo "i'm counting ". three('one', 'two ', 'three ');

Wednesday, January 11, 2017

Monday, January 9, 2017

table, insert, update, delete

table, insert, update, delete :
how to create a table with commend prompt:

kono database a kaj korte hole use database name dite hoy:
use advance; aito holo akon ai database a kaj korbe. database changed hole.
create table given(
name varchar(100)  NOT NULL,
roll int(11) NOT NULL,
subject varchar(11) NOT NULL,
semester int(2) NOT NULL,
cgpa float NULL,

table ar column show kortehole  describe or explain use korte pari

column gulo re valu add korbo:
INSERT INTO given (name) VALUES(

dakta chile:
SELECT * FROM given for all 

SELECT name, another FROM given tahole specific gulo show korbe

mysel update:
UPDATE table_name
SET column1=value, column2=value2,...
WHERE some_column=some_value 


Wednesday, January 4, 2017

class 4/1/17

== means = for programming
if and else  has leaned
elseif : to increase condition
switch: this is the alternative version of elseif

Here is the Code:

$roll = 80;
switch ($roll)
case 60:
print "The is the first Roll 60";

case 80:
print "The is the real Roll 80";

case 100:
print "The is the 3rd Roll 100";

"this is default roll $roll";


result is: The is the real Roll 80

loop: repetition.
ex: 10 roll print ar jonno 10 ta variable likte hoy.
tai akta kaj loop ar modome korbe. tai bole dibo 10 ta print koro.

array ar modde ak type ar data store korte pari. array thke print korte hole loop korte hobe.
forloop, foreach, while, dowhile,
category : 2
1. entry control loop 2. exit control loop

* suru hobe koi thake
*koto kon colse
*increment, decremented

1.  entry control loop a age dakbe print hoisa ki na then 1ta print korbe

2. age print kore niba then 2 time korte giya check korbo

while entry control loop
dowhile exit control loop

$water = 10;
 for ($water; $water <200 p="" water="">
print " now water is :$water litre


while loop:
entry control loop condition check kore kaj kore

dowhile loop:
1st insalish kora
do akta block

2 statements:
1) break :

class: break.php
$val holo temporary variable ai kane man gulo array thke rakbe. array thke man gulo niba each ($arr) ar list ar 1st para meter a man gulo show korbe.
list akta build in function 
<200 p="" water="">
<200 p="" water="">nesting_loop.php: 
<200 p="" water="">akon akta loop ar modde akta nibo
<200 p="" water="">
<200 p="" water="">
<200 p="" water="">Function:
SOME COMBINATION OF STATEMENT OF NAME. jake nake kisu statement thake.
user defined , build In.

1st function keyword use
2nd function name(parameter)
3rd parameter daoya hoy jar modde value ta pass kore jai
4th return

<200 p="" water="">
<200 p="" water="">
<200 p="" water="">