1. Lazarus 1.0 Release

    The Lazarus team is glad to announce the release of:
    Lazarus 1.0

    The release is available for download at the SourceForge download page:
    http://sourceforge.net/projects/lazarus/files/

    This release has been built with fpc 2.6.0 (the former release 0.9.30.4 was built with that too).

    The svn tag is
    http://svn.freepascal.org/svn/lazarus/tags/lazarus_1_0

    The list of changes:
    http://wiki.lazarus.freepascal.org/Lazarus_1.0_release_notes

    For people who are blocked by SF, the Lazarus releases from sourceforge are mirrored at:
    ftp://freepascal.dfmk.hu/pub/lazarus/releases/
    and later at (after some time for synchronization)
    http://michael-ep3.physik.uni-halle.de/Lazarus/releases/
    and
    http://mirrors.iwi.me/lazarus/


  2. MiniLib repo url changed

    Please update your svn repository to the new one.

    https://svn.code.sf.net/p/minilib/code/trunk

    The uuid is changed, you need to re-checkout it again, if you developing of you can copy the old files over new files that included you changes, relocate may not works for you.


  3. Power Loss Chatter Relay Circuit

    Description:

    It is a DC circuit launches the relay when the power comes off using a capacitor charged when the power was on, so it is not needed any extra power for the relay.
    You can increase the size of this C1 to increase the delay time, the power is 6v.

    R1 and R2 must change to config it to be stable if you changed the DC power voltage.

    Benefit:
    I have a server computer connected to a UPS that give me 10 minutes backup time when the main power goes off, at this time i must shutdown the computer.
    The problem my UPS doesn’t have any feature to send that signal to my computer, and any new UPS will be expensive.
    Also my computer has no any COM port to accept the old type of UPS.

    The circuit powered by a transformer connected directly to main power not to the UPS.

    I will take two wires from the Power Button (on the mother board) and link it to this relay. When the main power off, my computer still on, and gets a signal to shutdown from that relay, as like if we press the Power button, we need to config our system (Windows 2003) to take this action.

    Open RegEdit and add these keys

    The  key will not ask there is users still using your server, it is shutdown immediately.

    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Windows]
    “ShutdownWarningDialogTimeout”=dword:00000001

    [HKEY_USERS\.DEFAULT\Control Panel\Desktop]
    “AutoEndTasks”=”1″

    Also you must change in group policy in security options

    “Shutdown: Allow system to be shut down without having to log on”

    change it to Enabled
    Also, I configured my bios to turn on when the AC comes back, so when the main power come, my computer will turn again.

    This is my first circuit at my age, so do not trust with it 😀 , but it is worked fine for a week for me.

    I discussed about this circuit in AllAboutCiruites forum and thanks to wayneh for help.

     


  4. 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

     


  5. 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.


  6. 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.

    you can download the source from github.com
    https://github.com/parmaja/miniedit


  7. My keyboard stops today.

    This day at the morning, when i turn on my PC, the keyboard not worked at all, no respond from it.

    I guessed  the keyboard was broke or something else, but i tested with another computer and it is work fine.

    After cleaning inside my computer, remove cards and replug it, nothing help me.

    I decided to think as stupid,  so i removed the battery to reset the CMOS memory, but i replaced it with new one, it is work, i mean the keyboard come from the death :D.