## Problem:

There is a book and a number of consecutive pages are missing from this book. All we know is that the sum of the page numbers of these pages is 9808.
Make code which calculates which are the missing pages and displays the result.

## The rules:

You can code the solution in any programming language during the weekend and have to submit it to info@olimex.com latest on Sunday October 5th.

On Monday we will upload the solutions on GitHub https://github.com/OLIMEX/WPC

You can play with your real name or with nick if you want to be anonymous, we will not disclosure your personal info if you do not want to.

## Weekend Programming Challenge – Week #66 solutions

We got 10 solutions this weekend:

• Python x3
• C x3
• Bash x3
• C++ x1

you can see the solutions on GitHub

## Weekend Programming Challenge – Week #66 Christmas Tree ASCII art

Write shortest code which print on the console Christmas tree with ASCII art (picture may be different from the picture above).

## The rules:

You can code the solution in any programming language during the weekend and have to submit it to info@olimex.com latest on Sunday September 28th.

On Monday we will upload the solutions on GitHub https://github.com/OLIMEX/WPC

You can play with your real name or with nick if you want to be anonymous, we will not disclosure your personal info if you do not want to.

## Weekend Programming Challenge – Week #65 Solutions

We got 3 solutions this weekend:

• bash x1
• C# x1
• C++ x1

You can see them on GitHub.

## Weekend Programming Challange – Week #65 PCB resistance calculator

Make PCB track resistance calculator which takes these input parameters:

• track width  in units: (mm) or (mils)
• track thickness in units: (mm) or (mils) or (oz per sq.ft)
• track length in units: (mm) or (mils)
• number of vias this track goes through
• vias plating thickness in units (mm) or (mils)
• vias drill diameter in units (mm) or (mils)

and displays resistance in Ohms.

## The rules:

You can code the solution in any programming language during the weekend and have to submit it to info@olimex.com latest on Sunday September 21th.

On Monday we will upload the solutions on GitHub https://github.com/OLIMEX/WPC

You can play with your real name or with nick if you want to be anonymous, we will not disclosure your personal info if you do not want to.

## Friday Give Away Quiz – Week #97 prize is A20-OLinuXino-LIME2

A20-OLinuXino-LIME2 is dual core board with 1GB RAM and Gigabit Ethernet.

To participate in the Quiz is enough to Re-tweet the Twitter Quiz announcement message.

Today we will post on Twitter our question.

You have time to re-tweet until Monday 22nd of September.

In Monday we will count  the correct answers and ask random.org to generate random number in range then announce the winner and ship the board by airmail.

Good Luck!

## Weekend Programming Challenge – Week #64 solutions

We got 6 solution this weekend:

• Pascal x1
• C x2
• Python x2
• Matlab x1

I will admit that the idea for this WCP came after reading these interesting web pages with analyze of different algorithms:

http://www.tannerhelland.com/3643/grayscale-image-algorithm-vb6/

http://www.johndcook.com/blog/2009/08/24/algorithms-convert-color-grayscale/

http://www.johndcook.com/blog/2009/08/24/more-on-colors-and-grayscale/

The solutions are as usual on GitHub

## Weekend Programming Challenge – Week #64 Color to Gray scale converter

To convert color to gray scale image is easy all you have to do is to find function which converts (R,G,B) to gray levels. There are many algorithms, simple is average grayscale = (r+g+b)/3 which works somehow but not quite well as with this algorithm all color R,G,B are translated to same grayscale level (255,0,0) = (0,255,0) = (0,0,255) but human eye have different sensitivity for the different colors, which may be taken into account to make better converter.

What can you invent?

## The rules:

You can code the solution in any programming language during the weekend and have to submit it to info@olimex.com latest on Sunday September 14th.

On Monday we will upload the solutions on GitHub https://github.com/OLIMEX/WPC

You can play with your real name or with nick if you want to be anonymous, we will not disclosure your personal info if you do not want to.

## Weekend Programming Challenge – Week #63 solutions

We got 11 solutions this weekend:

• Python x4
• C x2
• Ruby x1
• Groovy x1
• Haxe x1
• Fortran77 x1

Last time I wrote in Fortran 30 years ago it had no characters data type 🙂

Now I only have to find 8 micro actuators which to drive the tactile feeling and to connect Camera +  OpenCV + OLinuXino to make Braille reader!

The solutions are on GitHub as usual.

## Weekend Programming Challenge – Week #63 – Braille encoder

Braille is a tactile writing system used by the blind and the visually impaired. It is traditionally written with embossed paper.
Generally with three lines of embossed dots either convex either concave.
Make Braille encoder which takes string and prints Braille equivalent on 3 lines with “*” for convex and “.” for concave dots.
How do you print “helloworld”?

## The rules:

You can code the solution in any programming language during the weekend and have to submit it to info@olimex.com latest on Sunday September 7th.

On Monday we will upload the solutions on GitHub https://github.com/OLIMEX/WPC

You can play with your real name or with nick if you want to be anonymous, we will not disclosure your personal info if you do not want to.