Czas przygotowania: 30-40min, ilość porcji: 1-2 osoby.
Składniki
- 2 torebki ryżu
- 1-1.5 piersi z kurczaka lub indyka
- 0.5 opakowania chińskiej mieszanki warzyw
- 2-3 łyżki oliwy z oliwek
- 1 łyżka curry
- 2-3 łyżki sosu sojowego
in life / with 2 comments /
Czas przygotowania: 30-40min, ilość porcji: 1-2 osoby.
in C and C plus plus, Perl, programming / with 2 comments /
Perl interpreter has an interesting mechanism to checks if function arguments have correct values. Below is its example from util.c:
char * Perl_delimcpy(register char *to, register const char *toend, register const char *from, register const char *fromend, register int delim, I32 *retlen) { register I32 tolen; PERL_ARGS_ASSERT_DELIMCPY; /* ... */ }
Body of PERL_ARGS_ASSERT_DELIMCPY is in proto.h:
#define PERL_ARGS_ASSERT_DELIMCPY \ assert(to); assert(toend); assert(from); assert(fromend); assert(retlen)
What makes those macros interesting, is that they are automatically generated by a perl script (regen.pl). They are created from a data stored in embed.fnc, a sample entry of this file is presented below:
: Used in util.cp op |void |example_function |NN const char *name|STRLEN len|
The script needs to be executed after any change in embed.fnc.
Interesting and weird.
in C and C plus plus, electronic engineering, programming / with 2 comments /
This is one of my older projects that aims to control external devices directly, by using the PC Speaker port. It can control multiple devices at one go, but they must be powered one at a time. I made it a couple of years ago and it was working fine, but due to mistake during plugging it literally burned ;(
Now, when both cheap USB chips are available and PC speaker is unused (or integrated with sound card) it doesn't make sense, to build it, but this is still an interesting concept.
in programming / with 1 comment /
In one of my previous jobs, I heard that it would be inspiring, to write a CMS with all logic stored and executed on database side. Every request would be performed in stored procedures, theirs final result would be HTML page sent back to the user.
I will present, how to do it with PotgreSQL, Apache, Linux and a bit of bash scripting. The script is a cheat because I promised to write everything in stored procedures, but as you will see, it's just a gateway to the database, there isn't any logic.
in programming / with 1 comment /
1.0 1.1 ... 1.8 1.9 1.10 1.11 ... 1.19 1.20 ...