Welcome To baselogics.blogspot.in

Welcome to baselogics.blogspot.com

Place to Learn Programmes.

Bits and Bytes....

Computer Scientists Love Their Algorithms and Data Structures

Explore all new Mathematical Puzzles......

Jasper Roberts - Blog

Friday, November 6, 2015

Programme to turn your pc into wifi hotspot For windows users.....


Programme to Run Wifi - Hotspot Using command prompt.
-------------------------------------------------------------------------------------------------------------
ECHO OFF
:MENU
CLS
echo Hello! This is a short Program to help You enable WiFi Hotspot on Windows:
ECHO.
ECHO ...............................................
ECHO PRESS 1, 2, 3, 4, 5 to select your task:
ECHO ...............................................
ECHO.
ECHO 1 - Create a Wifi Hotspot
ECHO 2 - Turn On
ECHO 3 - Turn Off
ECHO 4 - Fix No Internet
ECHO 5 - Exit
ECHO.

SET /P M=Type 1, 2, 3, 4 or 5 then press ENTER:
IF %M%==1 GOTO Createwifi
IF %M%==2 GOTO turnon
IF %M%==3 GOTO turnoff
IF %M%==4 GOTO fixerror
IF %M%==5 GOTO Exit

:Createwifi
SET /P S=Hotspot Name:
SET /P K=Password:
netsh wlan set hostednetwork mode=allow ssid=%S% key=%K%
PAUSE
GOTO MENU

:turnon
netsh wlan start hostednetwork
PAUSE
GOTO MENU

:turnoff
netsh wlan stop hostednetwork
PAUSE
GOTO MENU

:fixerror
netsh wlan stop hostednetwork
netsh wlan start hostednetwork
PAUSE
GOTO MENU
------------------------------------------------------------------------------------------------------------------
Copy the above programme to Notepad and save with .bat file extension,
make sure your wifi is turned on,
then open .bat file administrator and follow the steps
first enter 1 and set hotspot-name and password (not less than 8 characters )
then  enter 2 to start your hotspot.

Tuesday, July 7, 2015

Converting JPEG/image type files into BLOB (binary large object) and saving them into MySQL Database...............

                       While Creating Secured Login system or Secure Systems , we need to put data into MySQL Database. Unlike, Uploading it on server and Saving its address into Database can be dangerous. it can be accessed easily by the Person who is not expected to see it. thats why web developers store them into database in binary format and retrieve whenever needed.
Here's Short Tutorial On Storing JPEG/image files on MySQL in BLOB (actually .bin) format.

1. Eshtablishing connection to MySQL Server    


Code for Connection to database(file name ='connect_db.php')


<?php
       $mysql_host = 'localhost';
       $mysql_db ='practice';
       $mysql_username ='root';
       $mysql_pass = ' ';

       $connect_server = mysql_connect($mysql_host,$mysql_username,$mysql_pass) or die();
       mysql_select_db($mysql_db) or die('Error :could not connect');
?>

In Above Code Replace localhost,practice ,root ,etc. with your database name, username, password and hostname.We will going to require this file in each page where we need to access database.


2.Create Form Page Or File Submit Page Where You Can Convert,Insert That Image Into MySQL

Code For Page Where You Actually Taking Image And Saving it (file name='form.php' )



<form method="POST" enctype="multipart/form-data">
        <input type="file" name="image">
<input type="submit" name="submit">
 </form>

<?php
        require 'connect_db.php';
        if(isset($_POST['submit'])&&(!empty($_FILES['image']['tmp_name'])))
        {
             $pic_data = addslashes(file_get_contents($_FILES['image']['tmp_name']));
             $pic_size=$_FILES['image']['size'];
             $query="INSERT INTO `pic-table`      VALUES('','{$pic_data}','{$pic_size['mime']}')";
             mysql_query($query) or die('ERROR: Failed');
         }
        else
       {
             echo 'Please Submit File';
        }
?>



MySQL Database Details
Database Name= 'practice'
Table Name= 'pic-table'
Columns=1.id(int)NOT NULL AUTO_INCREMENT
                 2.pic-data(BLOB)NOT NULL
                 3.pic-size(int)NOT NULL 

Thursday, January 29, 2015

How to setup Own DC++ HUB using ptokax dchub....................

Want to create own DC hub..........Just follow Simple steps Below.................
1. Download DC++.
2.Download ptokax any version (will be downloaded as 7z file make sure u have 7z extracter).
3.Extract the content to newfolder hub and keep it at safe place where it cannot be deleted.
4. Now go to Start and type cmd in start search and open command prompt and type ipconfig
5. Note your IPv4 corresponding to the wired ethernet connection.
6.Now copy that ip and open ptokax.exe and add to Hub address and click start hub.
7.its done now enter the same address in your dc++ to check whether its running or not.

Download
ptokax 0.3.4.0 from mega.co.nz.(1.25 MB).
or
ptokax 0.3.4.0 from Google Drive (1.25 MB)

Watch Video on Youtube:

Stay Updated to Baselogic's Blog to Know How to Setup Own DC++ Over the Internet and to
know how to Connect Online DC All over the World and Download Data From Them.....
    If u Like the Blog Follow us on Facebook......  



Sunday, January 25, 2015

How to Convert FAT32 to NTFS without formatting.......

Windows Hard drives connected externally or internally  comes up with FAT32 or FAT or exFAT Format.sometimes we want to keep the format of drive to be FAT 32 or other exept NTFS to run those drives on tablet or Smart TVs . Windows comes up with support only to conversion from FAT32 or FAT or exFAT  Formats to NTFS format.If you want to Convert NTFS format to FAT32 or FAT or exFAT  Formats,there are premium softwares available like acronis disk director,paragon  partitioner.etc.

1. Close  all the programmes that may using the disk.
2. Click on start and then type cmd in start search ( win xp users should open run then type cmd)open     cmd with administrator rights.
3.In command prompt type  convert g:/fs:ntfs (suppose i have to convert drive g ,you should add          name of drive that you want to convert).hit enter.
  its done now check format of drive you selected.
  Warning:Only Enter the name of drive which is FAT32 or FAT or exFAT format.

Thursday, January 15, 2015

How To Download 4k videos from youtube and other sites!!!!!!!!!!!!!!!!!!!!!!

Youtube has its copyright policy due to which it do not allow users to download videos from it..........
But We Can Download videos with the help of some websites or softwares
but you will find that software's are outdated after some period but here's way to download videos from youtube in any format you want..............
1.COPY URL OF VIDEO YOU WISH TO DOWNLOAD
2.CLICK ON CONTINUE.
3.CHOOSE THE QUALITY IN WHICH YOU WANT TO DOWNLOAD.
4.CHOOSE FORMAT BELOW PREFERABLY MP4
5.CLICK ON START
6.THEN AFTER CONVERSION IS DONE (ACTUALLY NO FILE IS CONVERTED IT'S FOR           THE SAKE OF YOUTUBE POLICY ).
7.CLICK DOWNLOAD.

http://youtu.be/cUXBq0R4FS4

Wednesday, December 31, 2014

Having Trouble With Mozilla Firefox on Windows............... Here's solution

Mozilla Firefox, Speed it up!

Speed up Mozilla FireFox

--------------------------------------------------------------------------------

1. Type "about :config" in the adress field.
2. Set the value of network.http.pipelining to "true".
3. Set the value of network.http.pipelining.maxrequests to "100".
4. Set the value of network.http.proxy.pipelining to "true"
5. Set the value of nglayout.initialpaint.delay to "0" (not availible in newer versions) 

Sunday, September 28, 2014

Linux, The Powerful Optimized Operating System......................

Do you Know How Linux is Built ?
Knowingly or unknowingly , You use linux .
Developers across the world submit their source code and Get Paid if selected For linux.
You Wait for year to see new Windows or ios but , New Linux  Kernel is Produced Every 3 months.
 Isn't this sounds really Great ?    Presently the Progress rate of linux is Simply Unmatched.
The Most Successful Open source Software Company is Ready To the World of Computing....
 Want to make most of your old low configuration PC ? Surely the only way to do this is installing Linux Operating System.
Nowadays the android phone which are beating the market of windows or java which is outdated now uses Linux Source Code to perform Faster >>>>>>>>>>>>>>>>>>>>>>
       source: Linux Foundation, YouTube