Attach File mdf to SQL Server using Command Prompt Sqlcmd

Attach Database File *.mdf to SQL Server using Command Prompt SqlcmdAttach File mdf to SQL Server using Command Prompt Sqlcmd | Sometimes we need to attach a database file * .mdf and * .ldf into the database sqlserver especially sqlserver express edition. Usually we use sqlserver management studio, but if there is some condition that does not possible to us to use SQL Server Management Studio, then we must use sqlcmd, SQL Server Command Prompt.

First, click Windows Start Button, at Run input type “cmd”, when “Command Prompt” menu show up, right click menu select Run as administrator.

Use Command Prompt SqlCmd

After the DOS command prompt show up, type the following command:

sqlcmd -S <server>\<instance name>

(more…)

Read More

Export PDF in Laravel Using Anouar FPDF

How to Export PDF in Laravel Using Anouar FPDFExport PDF in Laravel Using Anouar FPDF – To export data to PDF format in Laravel, requires a PDF library. FPDF is a PDF library is one of the most popular for PHP. FPDF library can not be directly inserted into Laravel, that’s why used Anouar FPDF library that supports installation using Composer, so it can be installed in Laravel.

Anouar FPDF Installation

First, install the library Anouar FPDF with this Composer command (via DOS Prompt) :
->cd \
->cd <htdocs>\<laravel>
->composer require anouar/fpdf

(more…)

Read More

Android: Reading and Writing Geotagging Information GPS Latitude Longitude on File Photos

Android: Reading and Writing Geotagging Information GPS Latitude Longitude on File PhotosPhotos taken using a camera that supports geotagging contain GPS information such as latitude and longitude. Android is able to read information from a file that has the photo geotagging information and is able to also write or update geotagging information into the photo files.

Create a project in Eclipse or the Android android Studio. Add the following code to MainActivity.java: (more…)

Read More