Pork - fork() for PHP
wtorek, 10 styczeń 2012 - 10:24:38
You always hear how many things modern computers can do at once, how multi-tasking they are… but when it comes to your simple mailing script it hangs on sending few mails and it can't go further. How it is that you run your application on powerful server machine, but your script flow is completly single-tasking? Well, machines and operating systems supports multi-tasking, but you have to write your code in specific way in order to benefit from it - you have to split your program into multiple single tasks that can be executed parallelly. If you are a PHP developer and you need something for multi-tasking, here I give you Pork - fork() for PHP.…
JavaScript Zend-like url helper
poniedziałek, 25 lipiec 2011 - 20:35:54
In JavaScript, especially when you work with AJAX (many requests to frontend host) and dynamic UI (many requests for assets like images) you have to resolve a lot of URLs. Problem comes, when you have to keep some base of your URLs reference (like web application base URL), or keep your links switchable easily (static hosts balancing). If you are familiar with Zend_Framework, you must know baseUrl() helper for Zend_View. Isn't that a handful thing? Then why not use it in your client scripts as well ? Here I propose my solution for easy URLs resolving that behaves much like Zend_View's baseUrl() helper.…
Tagi: kod javascript code zend
Serving static content (CSS and JavaScript) with GZip
sobota, 23 lipiec 2011 - 18:29:52
When you publish your project in production environment you usualy have some build tasks to be done for each release. For web projects it's good to take care about static contents there - mainly images, CSS and JavaScript. If your project is going to work under heavy load, one of the optimization field will be response size and time. While you will mainly look into your engine/application to shortnen it's response handling time, sometimes it may not be the case. The other point at which you should look is serving static content. Even when those files are stored on separated static server usualy one page load requires loading planty of additional static files. One of the good options is to compress them - smaller size means both smaller bandwidth and shorter loading time for clients.…
Tagi: javascript css apache2 server htaccess gzip production optimization
ChillDev.JS - applications mechanism
niedziela, 17 kwiecień 2011 - 17:20:42
Even thought I'm quite busy with my business projects I still working hard on ChillDev.JS. I would like to present next huge step - applications mechanism. jQuery has it's jQuery-UI and so my beloved Prototype has it's Scripty2 (still in it's beta). But they are relatively simple libraries, that provide just UI widgets. For something more, you have to look for additional extensions. For jQuery you will probably find mbContainerPlus (looks beautifull, but it's a piece of crappy code, using it will be pain in your ass), but how about Prototype-based libraries? There is LivePipe UI, old Prototype-UI, but they still provide just simple dialog boxes widgets. Now, ChillDev.JS brings full windowing and applications stack for Prototype!…
ChillDev.JS - let me introduce
wtorek, 29 marzec 2011 - 16:22:16
First of all - what is ChillDev.JS? Don't worry - it's not another framework. It is set of components (and various useful routines) built on top of Prototype. It is (will be?) set of classes and UI components that bases on Prototype and Scripty2. It's main purpose is to be flexible and scalable - completly objective API with well-though data dlow allows even complex projects to use it's components by composing them with own routines (see the grid example). ChillDev.JS will focus mainly on complex problems, like windowing/application mechanisms, data grid or forms, so with it you should be able to create rich web applications even for advanced purpose.…
What makes me angry - jQuery
sobota, 26 marzec 2011 - 03:40:05
Yes, I mean it - jQuery is a trash! For last time I was working alot on client-side interfaces for some projects in Red Sky and so I used a lot of jQuery there (not because of my own choice). This only cemented my conviction, how crappy is this library. Creating applications (I mean mechanisms more complicated then simple elements sliding) is a way through passion. I will try to describe best why I think that. If you are starting your adventure with JavaScript - dont get fooled with all that short lines which make your site shiny and blinky - you still have time to choose different, surely better.…
Tagi: javascript prototype jquery fuckups