Fooz

Science Experiment: Back to the Lab!

Science Experiment: Back to the Lab!
I really like the eBoy / Kidrobot Peecol Toy Figures.
I love taking pictures of the 3.5" tall vinly guys and girls.
In this picture you can see Hazmat preparing for his new Raspberry Pi Zero W Project.

Peecol Hazmat by Eboy 2008

What is my favourite drink?

I really like citrus soft drinks, therefore Mountain Dew is one of my favourite drink while coding. I also enjoy Dr.Pepper big time.

Soft drinks I recommend for a good coding session:
Mountain Dew
Mountain Dew Black Label
Dr. Pepper
Fritz-Kola
Coca-Cola
Afri-Cola
Club Mate
Barqs Root Beer
Mug Root Beer
IBC Root Beer
Mr. Pibb
Coke Zero
Red Bull
Mountain Dew Throwback

Install Doom on the Raspberry Pi

What you will need:
- Raspberry Pi 2 or Pi 3 (Recommendation 3B+)
- Raspbian Jessie installed and ready to use
- Any USB game controller
- Any Display
- Doom source code

Several versions of the Doom source code are available.
Chocolate Doom is compatible with the majority of WADs therefore I use it.


Step by Step Guide
01. Boot your Raspberry Pi and connect via SSH
02. Install Chocolate Doom with dependencies:
03. sudo apt-get install libsdl-mixer1.2-dev libsdl-net1.2-dev python-imaging
04. wget https://www.chocolate-doom.org/downloads/3.0.0/chocolate-doom-3.0.0.tar.gz
05. Extract with tar:
06. tar xzf chocolate-doom-3.0.0.tar.gz
07. Compile Chocolate Doom, therefore switch directory with:
08. cd chocolate-doom-3.0.0
09. ./configure
10. make
11. sudo make install
12. Install your Doom WAD File on Your Raspberry Pi
13. No FULL Version? Get the Shareware Version of Doom:
14. Place Full Version or Shareware Version (DOOM1.WAD) onto Raspberry Pi
15. Almost done: Connect over VNC or RDP
16. Run setup routine to configure Doom
17. chocolate-doom-setup
18. Save and launch DOOM
19. chocolate-doom -iwad DOOM1.WAD or
20. chocolate-doom -iwad DOOM1.WAD -window 640x480

Make sure your system is updated, type into the console:
Doom WADs Wikia

CRON: Tasks to automate

Get your Raspberry Pi to do stuff automatically with cron

E.g. Open a Web-Browser every day at 7:45
Cron is a piece of software, written for unix systems, that is built into the Raspbian operating system and is used to schedule (automate) tasks to run at different intervals.
Launch Terminal to configure cron
Cron is configured via files called crontabs. Each system user can have own crontabs. On prompt type: crontab -e (edit crontab).
Usually your crontab already contains some lines that has been commented out using hashes (#) - examples
Scheduling a task: The m (minute), h (hour), dom (date of month), mon(month), dow (day of week). The * means any.
Write a new line: 45 7 * * * export DISPLAY=:0 && chromiumbrowser https://www.fooz.de
This line says at 7:45 on every day of every week in every month, run the command export DISPLAY=0 && chromiumbrowser https://www.fooz.de.
Remark: export DISPLAY=:0 && is required to make sure cron displays the web browser on screen.
Now save your crontab (CTRL+O or CTRL+X) and you are done.

What Programming Language Should a Beginner Learn?

Probably most common answer: Java. Java?! In my humble opinion Java is totally overrated. So my answer is going to be Python. Python is so ridiculously easy.
You’ll struggle to learn other languages after using Python because Python was so easy. Trust me.
Most Raspberry Pi or other single computer platines scripts are written in Python. Perfect match for a creator/maker.

Check out: Interactive Python Tutorials

Get started with your new Raspberry Pi!

What you will need:
- Raspberry Pi (Recommendation 3B+)
- Power supply
- USB keyboard
- USB mouse
- USB hub (for Pi Zero W)
- microSD card (min. 8GB)
- microSD USB card reader
- Monitor (HDMI)
- HDMI Cable

Step by Step Guide
01. Insert your microSD card into the microSD USB card reader
02. Connect the card reader to your computer, if it is not a internal reader
03. Download SD Memory Card Formatter 5.0 for SD/SDHC/SDXC
04. Double-Click on "SD_CardFormatter0500SetupEN.exe" in your downloads folder to install SD Formatter 5.0
05. Follow the instructions in the installation window.
06. Open SD Formatter 5.0 app. A window will appear on your desktop
07. Select your microSD from the dropdown menu
08. Click Format to format your microSD
09. Download NOOBS and unzip it onto the microSD card
10. Insert the microSD card into the card slot on the underside of the Raspberry Pi
11. Plug the USB keyboard into one of the USB ports
12. Plug the USB mouse into one of the USB ports
13. Plug the HDMI cable into the monitor or TV and on the other end into the Raspberry Pi
14. Plugin Ethernet Cable or use Wifi for Internet connection later on
15. Connect the power supply to the Raspberry Pi
16. Beginners should Raspbian operating system [Select Raspbian] and [Click Install] if needed establish a [Wifi network] connection
17. The default login for Raspbian is username pi with the password raspberry
18. Desktop: [Menu] => [Preferences] => [Raspberry Pi Configuration] - No Desktop? Type "startx" in the console
19. [Localisation] => [Set Locale]
20. [Localisation] => [Set timezone]
21. [Localisation] => [Set Keyboard]
22. Reboot

Make sure your system is updated, type into the console:
Command: sudo apt-get update
Command: sudo apt-get upgrade
Command: sudo apt-get dist-upgrade