ලේසියෙන්ම හොයාගන්න මෙතනින්

ඔබේ Java Applicationට අවශ්‍ය සියලුම Library File එක්කම Windows Executable (EXE) file එකක් බවට පත් කරමු.

මින් පෙරත් මම .JAR file එකක් .EXE එකක් කිරීම පිලිබඳ post එකක් දැම්මා. එහිදී Java Project එකේදී යොදා ගත් Library files exe file එකට ඇතුලත් කිරීම සම්බන්ධව කතා කලේ නැහැ. ඒ නිසා අමතර JAR Library files යොදා ගත්තා නම් ඒවා exe file එක ඇති තැනම lib නමින් folder එකක ගබඩා කලයුතු උනා. ඒ ලිපිය මෙතනින් බලන්න. 
ඔබේ Java Application එක Windows Executable (EXE) file එකක් බවට පත් කරමු.

නමුත් දැන් මම සඳහන් කරන්න යන්නේ ඒ Java Project එකට යොදාගත් සියලුම JAR Library files, EXE file එකට ඇතුලත් කරල, Library files හංගලා, වෙනම distribute නොකර exe එකක් හදාගන්නේ කියල. exe file එකේ file size එකනම් ඉතින් ටිකක් වැඩිවෙනවා යොදා ගත් Libraries ප්‍රමාණය අනුව.

Windows වල ඉදන් Laptop එක Wi-Fi Hotspot එකක් කරමු

මේ post එකෙන් කතා කරන්නේ අපි කොහොමද අපේම Laptop එක Wi-Fi Hotspot එකක් කරන්නේ කියල. ඒ කියන්නේ Laptop එකට එන incoming connection එකක් (Wifi, LAN, Cable Modem, Dial-up, Cellular, etc.) ඔයාගේ Laptop එකේ Wi-Fi හරහා share කරන්නේ කොහොමද කියල. අනික මේකෙන් හදන Wireless Connection එක ඕනෑම device එකකට share කරන්න පුළුවන්. (Laptops, Smart Phones, iPod Touchs, iPhones, Android Phones, Zune, Netbooks, wireless printers, etc.)

Generate Reports in PHP

You may need to generate reports based on your data retrieved from database. Here I will show how you can do it easily and free. I m using a library called FPDF.
FPDF is a PHP class which allows to generate PDF files with pure PHP, that is to say without using the PDFlib library. F from FPDF stands for Free: you may use it for any kind of usage and modify it to suit your needs.

FPDF has other advantages: high level functions. Here is a list of its main features:

  • Choice of measure unit, page format and margins
  • Page header and footer management
  • Automatic page break
  • Automatic line break and text justification
  • Image support (JPEG, PNG and GIF)
  • Colors
  • Links
  • TrueType, Type1 and encoding support
  • Page compressing 

PHP, MySQL Integration - Perform Select, Insert, Update, Delete from PHP

In order to MVC Architecture, try to keep you coded php files seperately and try to reduce repeat save code. A simple basic programming concept. However to get establish database connection in PHP is very simple. Write a seperate php file for prepare database connection. In my case, my file name is db.php which I put it in controller folder.

<?php
    $host="localhost";
    $userName="root";
    $password="yourPassword";
    $db_name="databaseName";
    mysql_connect($host,$userName,$password) or die("Unable To Connect Database");
    mysql_select_db("$db_name") or die ("No Such Database.");

?>