W codziennym życiu koncentrujemy się na otaczającym nas świecie, gdy jesteśmy
w pracy zajmujemy sie pracą, gdy jedziemy autobusem patrzymy na świat za oknem,
a gdy rozmawiamy z kimś, to słuchamy go i współuczestniczymy w rozmowie. To
normalne zachowanie, dzięki któremu możemy utrzymywać się materialnie,...
How to use finite state machine in parsing of assembly language?
in programming, Python / with No comments /
Finite State Machine - abstract
Often data must be analyzed chunk by chunk, checked if all of those chunks
are valid (if the chunk is valid itself and if it's valid in context of previous
chunks) and when some actions must be taken according to each type of this
chunks. This can be easily modeled using...
How does recursive packing of a file changes its size?
in programming, R, riddle / with 1 comment /

How the size of a packed file will change if you will pack it again? How will it change if you do that again and again? Will it be the same, bigger of smaller? I checked this with popular kinds of files and below I will show the results. I used Bash...
How to use regular diode as a photo-element?
in electronic engineering / with 3 comments /
There are special diodes, transistors and resistors designed to measure light intensity, sometimes even a regular LED is also used for this task, can be used. I was wondering, if any diode (in a package that doesn't block light rays) could be used? Today I will share the results of my experiments...
How to clean silver by using aluminum foil and salt water?
in chemistry / with 3 comments /
Silver may be cleaned in a simple way, all we need is a couple of materials that are present in every house. Today I will present this simple cleaning method.
Use dish washing liquid and toothbrush to clean jewelry from dirt.
Dissolve a spoon of...
Mistakes during checking if a returned value is null
in C and C plus plus, crappy code, programming / with No comments /
This is a bit modified real word example, found by tool for static analysis. In this code, foo() is a function that returns pointer to std::string or null pointer.
std::cout << foo()->length() << std::endl;
There's obvious bug here: executing length() method on value returned by foo()...
Homemade pressure sensor
in electronic engineering / with 8 comments /

Pressure sensor is an element that changes its parameters according to
changes of pressure that is put on it. Today I will present how to build it by
using common and cheap materials like chewing gum and pencil.
...
Subscribe to:
Posts (Atom)