1. Messages MsgBox in MiniLib

    We finished adding MsgBox.pp and GUIMsgBox.pp in minilib

    Both units for Pascal language, FreePascal and Lazaurs, but not worked for Delphi (sorry 😛 ).

    Only you need to add MsgBox to your uses in the unit to use it, but you need to add GUIMsgBox once in the whale project, or it will work as console application.

    Useing by call Msg.Yes or Msg.OK for example, there is many other calls, like Msg.Input or Msg.Password to ask for password.

    If you not use GUIMsgBox for Lazarus, it will work as console or you can switch to console even if GUIMsgBox is used, by calling Msg.Switch(‘CONSOLE’);

    Msg.Yes(‘Do you want to save?’)
    Mean Yes/No but the default button is Yes

    Msg.No(‘Do you want to save?’)
    Mean Yes/No but the default button is No

  2. Windows users, do not use AutoCrlf in git

    If you are using git to fetch or modify your codes on Windows, do not enable this feature.
    If it is enabled, the source code fetched as CRLF and commited as LF, that was good, but most of editors handle (Unix EOL) LF, so you not need to fetch it as (Window EOL) CRLF.

    If you are like to use LF in your PHP code in windows and keep it as it in the original code repo, do not enable it.

    If you already enabled it, do not change before commit your work and push it, after that, change it to false, then revert all your code, git now fetch the files as LF.

    EOL = End of Line.

  3. DarkSpace my favorite online game

    K’luth Clow ship

    After I got an ADSL connection to internet, I decided to jump into the virtual world that I heard about it since years. but I can’t find online game strict, decent, fun and it must be free.

    While I am searching on many sites, I found my favorite game space shooter but with 3D and online play (Free), oh all features points is founded in same game, include it come with strategy, chat and team  playing.

    You need to download it from www.darkspace.net, it is not need a huge download, just about 70MB, when you start you can choose the faction you like, most of people like to be human (UGTO, ICC) but I started with (K’Lluth) because I hate human even in the real world.

    You can take your ship and fly in the space between planets, fight and shoot other ships of enemies,  your prestige will be increase, and your rank. when take a higher rank you can take a larger ship.

    You can join in a fleet and play with them as a team, or you can build planets by your engineer ship, or supply and maintain other ships of your friends, try it if you like to escape from the real world.

    This picture took from my account (I used my real name “Zaher”), when i am riding my favorite ship Claw.

  4. New state for my life

    My life changed after i have a phone line in my home and setup ADSL (256) connection to the internet.

    Now i have permemnet connection to the world, download, update, pull, push to SVN/GIT repositories for many open source projects.

    And I  bought new computer with good 3D VGA card (internal one), not the expensive one but i can play some 3d games.

    I touched (for a while) how the reach man live and feel, but i think it need some months to return to feeling  i am poor man 😉 .

  5. We started new project MiniEdit

    We started the new project MiniEdit based on old one LightPHPEdit but on Lazarus/FreePascal to make it work on Linux.
    MiniEdit is open source editor, simple and fast one work as portable application.
    It is editor with code highlighter made for PHP but i work on it to use Pascal projects, so it need time to make it.
    Now i am working on addons for it (internal addons) to integrate Debug and SCM(SVN and GIT) tools.

    Download the source from github.com

  6. ANN: minibidi.c was ported to minibidi.pp

    We have ported the minibidi.c to FreePascal minibidi.pp with some modifications to be workable with Pascal, in minilib project.

    This file process the Unicode Arabic characters to make Joining/Shaping and make it Right To Left readable, in another hand it is prepare the string variable (widestring) to be printed in Right To Left, it is like FriBidi but more simple and in Pascal.

    The original file written by Ahmad Khalifa from arabeyes.org, i published it with same license.

    Also we port cp864 CodePage and added to unicodes directory, it is useful to convert a Unicode string (widestring) to that old code page cp864.

    cp864 used by most POS printers (thermal) and Customer Display, now with minibidi.pp you can proceess the string to be printed in Right To Left order and then convert it to cp864 codepage then print it to ESCPOS printers.

    This an example how to print to ESCPOS printer

    Used it with Terminal Display


    The code still need more work, but until now it is usable for me 🙂


  7. How to set up NAT Routing on Windows XP

    Good article and worked for me




    pushd routing ip nat
    set global tcptimeoutmins=1440 udptimeoutmins=1 loglevel=ERROR
    add interface name="NIC2" mode=FULL
    add interface name="NIC1" mode=PRIVATE