[21-04-2016]
find just files and skip .svn
I have looked for you three times already. This time you are going down here. find . -type f -not -iwholename ‘*.svn*’
I have looked for you three times already. This time you are going down here. find . -type f -not -iwholename ‘*.svn*’
Poniżej rozwiązanie zadania 001 ze Scratcha Zadanie 001 – rozwiązanie nr 1 Zadanie 001 – rozwiązanie nr 2 Zadanie 001 – rozwiązanie nr 3 Zadanie 001 – rozwiązanie nr 4 Zadanie 001 – rozwiązanie nr 5 Zadanie 001 – rozwiązanie nr 6 A dla osób które wolą pooglądać niż poczytać, rozwiązanie na youtube. Electro Swing […]
main() {puts(“0 or 1?”);while(1){puts((rand()%2==(getchar()-48))?”win”:”lost”);getchar();}}
main(){int a,b;char c[]=”…\n…\n…”,*d;h:scanf(“%d %d”,&a,&b);a=b+4*a;if(c[a]==’.’){c[a]=88;d=strchr(c,46);d?*d=79:0;}puts(c);goto h;}
Poniżej rozwiązanie zadania 005 ze Scratcha Zadanie 005 – rozwiązanie A dla osób które wolą pooglądać niż poczytać, rozwiązanie na youtube. Tym razem, z Electro Dance Music w tle :)
Dzisiaj kolejne ćwiczenie z wykorzystaniem myszy. Zadanie równie proste jak poprzednie. Ale będzie trzeba trochę się nagimnastykować :) Na ekranie rozmieszczone są trzy potwory. Rozbiegły się i każdy porusza się w inną stronę. Trzeba je wszystkie złapać Postaraj się tak napisać program dla każdego duszka, aby w momencie trafienia go myszką został umieszczony w lewym […]
printf “AAAA\nBBB\nCCC” > file printf “AAAA\nBBB\nDDD” > file_new diff -u file file_new > file.patch cat file.patch # –dry-run = it will simulate the patching patch –dry-run file file.patch # -b = backup, it will create file.orig patch -b file file.patch
If you want to use USB drive for backup, it’s super easy to use it as an additional storage space. 1. Locate your drive using dmesg da0 at umass-sim0 bus 0 scbus2 target 0 lun 0 da0: Fixed Direct Access SPC-4 SCSI device da0: Serial Number #### da0: 40.000MB/s transfers da0: 953837MB (1953458176 512 byte […]
Poniżej rozwiązanie zadania 004 ze Scratcha Zadanie 004 – rozwiązanie A dla osób które wolą pooglądać niż poczytać, rozwiązanie na youtube
Dzisiaj ćwiczenie z wykorzystaniem myszy. Zadanie bardzo proste, wystarczy troszkę pokombinować. Na ekranie rozmieszczone są zielone kropki. Postaraj się tak poruszać Scratchem aby po naciśnięciu klawisza myszy dotarł do miejsca które kursor wskazuje. Poniżej ilustracja zadania Żeby rozwiązać to zadanie wystarczy wykorzystać poniższe elementy Projekt z narysowanymi kropkami można pobrać z tej lokalizacji Zadanie 004 […]
1. get XQuartz http://www.xquartz.org 2. start XQuartz 3. start Docker container 4. connect to Docker container ssh -X user@address 5. start X11 application
Update. You can also remove data that are no longer used using following command
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 […]
“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 :)
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? […]
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.
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!