If you fetch large amounts of data (e.g. over 2MB per request) using HTTP_Client (or HTTP_request), you may get “out of memory” fatal errors, especially if:
memory_limit is set to default 8M, and
you process multiple pages using single non-reset instance of HTTP_Client object.
This problem can manifest itself by producing fatal error after a couple of cycles of successful page retrieval – but always, if run with the same parameters, after some constant or only slightly variable number of cycles.
In my case the problem was that HTTP_Request (a dependancy of HTTP_Client) was holding in memory all the previously fetched pages of the current session (the ‘history’ feature). To force HTTP_Request to hold only the most recent page, you need to ‘disable’ history after creating the HTTP_Client or HTTP_Request object instance:
If you happen to write PHP script, which uses either HTTP_Client or its dependancy HTTP_Request from PEAR, and the script is supposed to work through the HTTP proxy – here are the sample settings you need:
$params['proxy_user'] = 'proxy_username';
$params['proxy_pass'] = 'proxy_password';
$params['proxy_host'] = 'proxy_hostname_or_ip';
$params['proxy_port'] = 8080; // 3128, ...
// I assume $headers were set somewhere else
$req = &new HTTP_Client($params, $headers);
If your proxy does not need authorization – just drop the proxy_user and proxy_pass parameters.
This plugin is expected to increase the coverage of your blog by Google. You will have to register for the google sitemaps tool (which is free), that will be easy if you gmail account. In short, sitemaps let google know which pages your blog/website has, so that it can crawl everything (read more).
This plugin automatically generates blog sitemap each time you create/update a post or a page. This is a must-have plugin, especially if you’re crazy about SEO
Topologilinux ‘BSOD at launch’ problem solution is at the end of this post.
Topologilinux is a special linux flavour, which is especially fit for the newcomers to the *nix world. The motto of Topologilunux is ‘Running Linux inside Windows’ – and that is what it does. Even more – you can run it inside windows, or you can boot into it and work Linux-only – in both cases the system is the same. Personally, I consider this kind of setup extremely useful for users who are strongly used to working in Windows (or just stuck with windows for too long), but at the same time are inclined to script a bit (be it bash, Perl, PHP or Python), to run server applications, write cross-platform programs, to test something or just play with software. With Topologilunux, it’s perfectly fine to work in DreamWeaver on your windows machine, and launch Topologilinux with apache+php+mysql to serve as a testing server – on that same machine. You can easily replicate the needed server config, and play with it the way you wouldn’t if that was the production server. Read the rest of this entry »
Citing RyanConnect: “WP-ContactForm is a simple drop in way for users to get in touch with you. Its easy for any WordPress user to add this functionality to their site. Just upload two files and change a few options in your admin panel and you’re set.”
I can only prove the citation. So now you can contact me, too :).
I needed to find out common transcription factor (TF) binding sites (TFBS) in the structure of the promoters of interferon-regulated genes. I tried several different approaches – starting from the simplest sequence-sequence comparisons using BLAST, ClustalW alignments, and searching each of the promoters for transcription factor binding sites – to compare and find common.
But the easiest way was to use Genomatix’s “Gene2Promoter” tool. With it, the whole procedure is extremely simple: Read the rest of this entry »
Here I will list parameters you will most probably consider when bying a new notebook. I hope this post will help you choose what you really need.
Weight: ranges from under 2kg (1.6 for yet-fully-functional notebook) and up to 6 kg (DTR). Most of the notebooks you’ll encounter weigh around 2.5-3 kg. If you want less kilos – you’ll have to pay noticeable extra for portability.
Screen size: ranges from approx. 12″ up to 20″ (is that still a ‘notebook’ with 20″, how do you think?). The most common screen sizes are 14.1-15.4 inches. As for any other LCD display, the most important features are the reaction time (pixel on/off times), brightness and contrast. Usually you will not get those details in notebook specs; so you have to see for yourself. I just should note that cheaper notebooks (those in 600-800$ range) usually come with noticeably worse displays than more expensive laptops. Read the rest of this entry »