サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
災害への備え
jan.kneschke.de
In Java 1.5.x and later they got annotations and we can use the same in PHP: class Employee { /** @var int */ var $employee_id; /** @var string */ var $name; /** @var string */ var $surname; /** @var timestamp */ var $since; } Yes, doc-comments. Not only we added documentation to our code (which is always a good thing), we can also use them for the type-definition. With the help of Reflection we c
In Java 1.5.x and later they got annotations and we can use the same in PHP: class Employee { /** @var int */ var $employee_id; /** @var string */ var $name; /** @var string */ var $surname; /** @var timestamp */ var $since; } Yes, doc-comments. Not only we added documentation to our code (which is always a good thing), we can also use them for the type-definition. With the help of Reflection we
The trunk version of the MySQL Proxy 0.6.0 just learnt about changing backends within running connection. It is now up to lua-script to decide which backend shall be used to send requests too. We wrote a complete tutorial which covers everything from: building and maintaining a connection pool with high and low water marks transparent authentication (no extra auth against the proxy) deciding on Qu
If you read the MySQL manual you might have seen the ORDER BY RAND() to randomize the the rows and using the LIMIT 1 to just take one of the rows. This example works fine and is fast if you only when let's say 1000 rows. As soon as you have 10000 rows the overhead for sorting the rows becomes important. Don't forget: we only sort to throw nearly all the rows away. I never liked it. And there are b
Over the last weeks I wrote a mysql-proxy which changes the way you operate with the MySQL Server. A proxy can operate as Man in the Middle and pass through to network packets to the MySQL Server, but it also change the packets when needed. This opens the several possibilities like a pseudo server done injection proxy done load-balancing proxy done connection pool XA Transaction Manager replicatio
High performance flv-streaming with lighttpd is possible since lighttpd 1.4.11. With lighty you can easily handle 10000 parallel downloads of your movies including protection against hot-linking with mod_secdownload. This is basicly all you need to build the free video.google.com for yourself. Just add this you your lighttpd.conf and restart the server: server.modules = ( ..., "mod_flv_streaming",
I always disliked the way PHP handles Objects. There is no way to assign a type to properties. Validators have to be glued against the fields externally and you can't just generate a Object-Description (like WSDL) from a object either. Usually you have DataObjects like: /* a plain-old-php-object */ class Employee { var $employee_id; var $name; var $surname; var $since; } and as a human you immedi
The more I work with other languages like python and ruby I like their way how they work on problems. While PHP is very forgiving on errors, it is weak on the debugging side. It was missing a simple to use interactive shell for years. Python and Ruby have their ipython and iruby shell which give you a direct way to interact with the objects. No need to write a script and execute it afterwards. Fea
このページを最初にブックマークしてみませんか?
『jan.kneschke.de』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く