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


  2. My Brain is Offline

    While my country Syria is suffering a big problem, a kind of revolution or kind of objectives.
    And we all have to follow what’s happening on the ground, feeling deep of sorrow for who is killed of our peoples, our brain is stopped working, our heart pumps more blood to the every piece of the body, our nerves come like a chord for any sound of the incident.

    So, I am sorry, I cannot work as the old days,  sorry for all my open source projects, that come like as my kids, sorry for you all 🙁 .


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


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


  5. 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 seance years. but i cant find online game strict, decent, fun and it must be free.

    While i am searching in 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 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.