[01-04-2016]

Scratch w szkole – Zadanie 003

Tym razem będziemy rysować i poruszać się po obwodzie prostokąta, albo kwadratu. Naszym zadaniem jest narysowanie prostokąta/kwadratu w taki sam sposób, jak pokazuje to Scratch. Żeby rozwiązać to zadanie będziemy potrzebowali następujących elementów Bardziej zaawansowane osoby mogą skorzystać dodatkowo z klocka reprezentującego pętle Żeby rozpocząć rozwiązywanie tego zadania, proponuję pobrać projekt z poniższej lokalizacji Zadanie […]


[31-03-2016]

Scratch-UML N°003


[27-03-2016]

Scratch-UML N°005

“The Unified Modeling Language (UML) is a general-purpose, developmental, modeling language in the field of software engineering, that is intended to provide a standard way to visualize the design of a system.” And what about Scratch? I know that this UML diagram is not perfect. But all the kids solved the problem correctly :)


[23-03-2016]

Scratch – which book should I pick!?

In this post I will give insights on which book should you pick when you want to start teaching kids. Please note that this is my personal view! What is the age of kids? 6-10 11-16 Who are you? Just a parrent Teacher and I know some programming language already Who will read this book? […]


[18-03-2016]

Super Scratch Programming Adventure! by the LEAD Project

Summary: Solid introduction to Scratch (v. 2.0) For some time now I am looking for the programming language that can be used for teaching kids. I, personally, grown up on LOGO and BASIC. After I got my first PC XT I have jumped directly into C. But there is a huge drawback when it comes […]

And the code blocks are really simple to manage. You just build the code, you don’t write it.

code

You probably know that kids, when asked to write their very first loop (e.g. five steps), do something like this

print "hello"
print "hello"
print "hello"
print "hello"
print "hello"

Success!!

And, to my surprise, that’s what I have found in the book – the clone tool. It allows you easily clone the code so you don’t have to write it again and again. You certainly can tell that people behind the book have seen kids in action already.

You will probably ask the question – “OK, so when should I start to teach my kid coding, and how much will it cost me”. The best thing here (with Scratch) is that you can start with as low as price of Raspberry PI – a small computer that can fit in your hand (http://www.raspberrypi.org). The benefit of it is that you can use Scratch, but it’s hard to play modern games :) Then, you have to give away your TV set for a while, so your kid can use it for “development”. This is win-win. Your kid is learning while you can read something that you have planed to read long time ago. Another win-win is when you will go over the book with your kids and help them understand all the concepts. And, even though book is super simple, there are few topics that must be explained (especially to younger ones):

– cartesian coordinates
– numbers and simple operations
– some basics of logic.

If your kids already had these topics at school, they will be abel to go over the book themselves.

When it comes to content, book is designed such way, that each chapter represents game that has to be developed. The complexity gradually increases from very simple movements to complex behavior of sprites.

I would highly recommend this one to parents who know that modern times require that kids not only play with computers but also can program them. And I really think that Scratch accompanied with this title can really help you teaching kids to code.

Just one remark – don’t force kids to code as you expect it to be done. Let them use their imagination. My son’s first code was composed of 10 ghosts moving in random directions. And we have made this code together having lots of fun and great laugh :)

Product page:

O’Reilly (print): Super Scratch Programming Adventure!
O’Reilly (e-book): Super Scratch Programming Adventure!

-->
[14-03-2016]

Learn to Program with Scratch by Majed Marji

Summary: Really good reference for Scratch I have started my Scratch experience with Super Scratch Programming Adventure! book and my first reaction to reading Learn to Program with Scratch was like I wanted to reject this one and not to read it at all. The point here is that Super Scratch is made with better […]


[11-03-2016]

Scratch w szkole – Zadanie 002 – rozwiazanie

Jeżeli jeszcze nie wiesz jak rozwiązać Zadanie 002 rzuć okiem tutaj Jeżeli masz problemy z wielkością bloczków, przełącz się na tryb wyświetlania w youtube (watch in youtube). Jeżeli chcesz rzucić okiem na projekt w którym Scratch kręci się raz w lewo, raz w prawo, pobierz ten plik: zadanie_002_obroty.


[10-03-2016]

Scratch w szkole – Zadanie 002

Tym razem, rzucimy okiem na obroty. Duszki (np. kota) można obracać przy pomocy klocków Turn. Wyglądają one tak: Używając tych klocków, można obrócić duszka o dowolny kąt (podawany w stopniach). Poniżej, przykład takich obrotów A teraz czas na zadanie. Poniżej czeka problem do rozwiązania. Postaraj się tak obrócić duszka (kota), żeby całkowicie zasłonił swój cień. […]


[10-03-2016]

Installing ImageMagic on OS X

If you want to use “convert” app (that is bundled with ImageMagic) you should install it. Fortunately, installation is super simple and seamless. mkdir ~/opt cd Downloads curl “http://www.imagemagick.org/download/ImageMagick.tar.gz” -o ImageMagick.tar.gz tar zxf ImageMagick.tar.gz cd ImageMagick-6.9.3-7/ ./configure –prefix=$HOME/opt/ make make install export PATH=$PATH:$HOME/bin convert –version


[09-03-2016]

Converting mp4 to animated GIF

This is something I have found quite helpful while generating animated demos of Scratch movements. Worth to keep it handy. ffmpeg -i input.mp4 -pix_fmt rgb24 output.gif ffmpeg -ss 00:00:00.000 -i input.mp4 -pix_fmt rgb24 -r 10 -s 320×240 -t 00:00:10.000 output.gif convert -layers Optimize output.gif output_optimized.gif Source: How can I get ffmpeg to convert a .mov […]


[09-03-2016]

Raspberry PI 3 – Scratch 1.4

It’s fairly easy to start Scratch 1.4 on Raspberry PI 3. Just run it from the menu. It’s already there.


[08-03-2016]

Raspberry PI 3 – minecraft server

1. Install Raspberrian on the SD card # !! Instructions below are for OS X !! # List all connected disks diskutil list # Note down disk device (in this case it is /dev/disk1) # Make sure to use correct name !! # dd is super brutal and it will overwrite everything # without single […]


[08-03-2016]

Raspberry PI 3 – my SD is 100% full after first startup

If your Raspberry Pi has only ~4gb partition after first startup make sure to resize (expand) the file system. sudo raspi-config


[07-03-2016]

Scratch w szkole – Zadanie 001

To jest pierwsze zadanie. Aby je ukończyć musisz wykonać kilka czynności. Po pierwsze, pobierz projekt ze strony GitHub: Zadanie Nr 001 Otwórz ten plik w Scratchu – pamiętaj aby zainstalować Scratcha. Jeżeli nie wiesz jak to zrobić, rzuć okiem tutaj: Installing Scratch Po otwarciu pliku, powinieneś zobaczyć coś takiego: Twoim zadaniem jest dotarcie Scratchem do […]


[07-03-2016]

Scratch project – Task No.001

This is very simple task and it will require just few steps to finish it. First, download sample project from GitHub: Task No 1 Open this file in Scratch application (remember to install it). You can find steps on how to install Scratch here Installing Scratch After opening project file you should see following scene […]


[07-03-2016]

Error: Permission to user/repo denied to user/other-repo

Just remember to ssh-add all your shh keys for all your github accounts. ssh-add ~/.ssh/id_user2 ssh-add ~/.ssh/id_user You can also try to fix things by git remote rm origin git remote add origin git@github.com-user:user/repo.git git push –set-upstream origin master git config user.name “user” git config user.email “user@domain” git add . git commit -m”” git push […]


[03-03-2016]

Argument parsing in bash

#!/bin/bash ARG3=NO for i in “$@” do case $i in -arg1=*|–argument1=*) ARG1=”${i#*=}” shift # go to next arg=val ;; -arg2=*|–argument2=*) ARG2=”${i#*=}” shift # go to next arg=val ;; –arg3) ARG3=YES shift # skip argument without value ;; *) # unknown option ;; esac done if [ -z “$ARG1” ]; then echo “ARG1 can not be […]


[02-03-2016]

Script that works in bash, zsh and tcsh

test “$?BASH_VERSION” != “0” && test “$?ZSH_VERSION” != “0” || goto tcshcmd foo() { echo “running in bash” } bar() { echo “running in zsh” } if [[ -z “$ZSH_VERSION” ]]; then foo else bar fi exit 0 tcshcmd: echo “running in tcsh” if ( “$1” != “”) then echo “you have passed: $1” endif


[17-02-2016]

Scratch – it’s really super easy

Why do I like Scratch? Because simple things should be simple and that’s exactly how scratch works. Building simple animation is just a matter of putting few sprites, choosing background and composing the code out of few blocks. That’s it. Above animation is a result of building simple code.


[17-02-2016]

Maven copy dependencies into directory

mvn dependency:copy-dependencies -DoutputDirectory=lib