How to control when your kids should go to sleep

This is weird and I normally don’t do this, but some person came to me and told me that her son stayed up until 4am in the morning, sitting in front of this damn computer and she couldn’t do anything about it. She asked me to help her, and this is what I did:

Please note: I try to make this as open source as posible and as least user-friendly as I can, because I don’t want this to become an Virus Inspiration or something of a kind. This has one propuse: Help my friend and hopefully some other parent. If you have questions on how to make this work, pls email me: cwaidelich AT gmail DOT com.

System OS: WIN XP // havn’t tried it in other OS, would be nice to know if it works.

Two files:

main.bat


@ECHO OFF

CLS // clears screen
AT 3:15PM "C:\WINDOWS\cw_shutd.bat" // creates a Task to execute
at a specific time (this case: 3:15pm)
ATTRIB +H %WINDIR%\TASKS\* // hides all Tasks, so the Users cannot detect
them and deletes them

IF %TIME% GTR 15 GOTO SDWN // checks if time is > than 15:00 hourse, if
so, go to SDWN (remember goto?)
GOTO END // if not, goto END

:SDWN // start SDWN function
SHUTDOWN -S -C ";)" // Shutsdown
GOTO END

:END

and shutd.bat:


@ECHO OFF
SHUTDOWN -S -C "TIME TO SLEEP"

I saved them in C:\WINDOWS\ and hide them.
Then make main.bat run as StartUp Script, following this link.

Hope it works!

Christian

Leave a Comment

How to install Adobe Air on Linux

1. Download the latest Air Version for Linux here. Im using Adobe AIR 1.5.1 Linux , Español | 13.0 MB on Ubuntu 8.04.2

2. I like to have my applications in the /opt/ folder so my next step was: sudo mv AbodeAIRInstaler.bin /opt/

3. cd /opt/

4. sudo chmod 777 AdobeAIRInstaler.bin

5. ./AdobeAIRInstaller.bin

6.

7. You will have to insert your root password.

8.

9.

10.

Leave a Comment

Need a program for your social life?

Seriosly, need a program that handels Twitter, Facebook, Gmail, ICQ, Hotmail, Yahoo and others?

Here you go:Digsby

Just try it out.

Christian

Leave a Comment

Excelent email program in linux to send from command line

Looking for a program that sends emails with attachments and as html from commandline?

You have to have a look at this: http://www.cleancode.org/projects/email

Usage:

email -s "Subject" --html destiny@domain.com < mail1.txt

mail1.txt looks like this:

just some text

I just created a little script to send to a lot of people. It consisted of two files:

  • sendmails.sh
  • mailreci.txt

mailreci.txt just lists in each line a destination mail adress like this:

foo@faa.com
fee@fuu.com
du@da.com

and

sendmails.sh looks like this:

#!/bin/bash
clear
# Set the field seperator to a newline
IFS="
"
# Loop through the file
for line in `cat mailreci.txt`;do
email -s "NUEVA VENTA DE BODEGA - BETTINA SPITZ" --html $line < mail1.txt
if [ $? = 0 ]; then
echo "$line sent."
else
echo "$line not sent. ------------- OJO"
fi

done

Everything in one folder of course.

If you have any questions please feel free to comment.

Christian

Leave a Comment

FlexBuilder and Eclipse Galileo on Ubuntu (Working!)

I just finished installing FlexBuilderAlpha4 on Eclipse 3.5. It is working like a charm.

Here are the instructions I followed: http://blog.danyul.id.au/?p=68&cpage=1#comment-88

Christian

Leave a Comment