If you’ll ever have problem with opening (fopen) and reading (fread) files larger than 2 GB in your PHP script. Check your version of scripting engine. In my case switching to 64 bit solved the problem. Please mind that this error is very hard to debug because PHP does not log anything (same as MS IIS) in such case. It simply resets client connection…
This is really quick tip (cmd commands):
dsquery user -limit 10000 | find /c /i "OU="
To count users.
dsquery computer -limit 10000 | find /c /i "OU="
Here you can find how to create paths.
This tutorial is for Linux systems, especially Debian derivatives.
This one was little bit tricky. If you want to pack files on your IIS webserver follow my guide. Continue reading How to pack directory using 7-zip in PHP on Windows?
Basically states are objects that consists one or more methods. Initially state has some methods and properties predefined. You can learn about them in this article. Continue reading Episode 2: Methods, properties and function flow in state
Fullscreen swipe gallery with pinch zoom support based on HTML5 for kiosk use. It was tested during exhibition in National Museum in Warsaw.
States in other words are chunks of game program – think of them as chapters. States are not something you see, they are only containers with variables and renderable objects. For example preloader or main menu can have a state. Also levels of your game are states, even game over screen can be a state. In opposition to this power up and player are not states. Continue reading Episode 1: Intro to state manager
I’ve needed URL with one variable replaced so it wouldn’t be duplicated every request. I’ve came up with this simple solution: Continue reading How to replace one GET var in Yii 1.1.* when using form?
This is a brief history of scammer hunt that I’ve conducted today with my buddy from work. Continue reading Hunt for scammer
In this example I will show you how to view Yii framework based app log and MySQl queries, both in realtime. Continue reading How to view two logs in one window?