An anonymous reader writes "Many PHP developers believe that because standard PHP lacks threading capabilities, it's impossible for a practical PHP application to multitask. Not true... PHP doesn't support threading in the way other languages like the Java programming language or C++ do, but the examples in this article show that PHP can exploit in-process multitasking and has more potential for speed-ups than many realize."
ttsiod writes "An internet connection is not always at hand... I wanted to install Wikipedia on my laptop
to be able to carry it along with me on business trips... After trying and rejecting the normal (MySQL-based) procedure, I quickly hacked a much better one over the weekend, using open source
(1) Very fast searching (2) Keyword (actually, title words) based searching (3) Search produces multiple possible articles, sorted by probability (you choose amongst them) (4) LaTEX based rendering for Mathematical equations (5) Harddisk usage is minimal: space for the original.bz2 file plus the index built through Xapian (6) Orders of magnitude faster to install (a matter of hours) compared to loading the "dump" into MySQL — which, if you want to enable keyword searching, takes *days*.
Enjoy!" Link to Original Source
kwarren writes "I made this search engine that's completely visual (the is no text field to enter any sort of query).
It attempts to profile a user based on how they rate certain images, and then find past searches that are most similar and gives related results. A lot of people say it reminds them of that 20q.net game; some times it's shockingly accurate, and sometimes it's unimpressive. It definitely shows improvement — some friends and I were trying to search for random topics, and it was pretty common for irrelevant results the first search, but some times as soon as the second or third search relevant results would appear withing 4 or 5 *ratings*. It checks both positive and negative relationships, and some times seems to have built a category using deductive reasoning. It's a pretty cool idea, but doesn't seem 100% accurate, so I'm putting it here for input and feedback.
Dmitry Dvoinikov writes "This article discusses the effects that data fragmentation has on the database performance under a mixed load. The experiment on a PostgreSQL database that follows the theoretical part yields some numbers and graphs and shows how bad fragmentation is for I/O and shared buffer pool.
An anonymous reader writes "Web pages have become a major functional component of the daily lives of millions of people; you, the Web developer, are in a position to make that part of everyone's lives better. Does it ever occur to you that today's Web developers could learn a thing or two from traditional computer programming? What we have today is a generation of Web designers and developers who are attempting to build increasingly sophisticated Web sites without reference to the best practices of software engineering, which this article explores."
littlefoo (704485) writes "Intel Software Dispatch have announced the availability of the Threading Building Blocks (TBB) template library under the GPL v2 with the run-time exception — so this previously commerical only package is now open for all the use, whether for open-source projects or commerical offerings (although they are explicitly encouraging open source use). The interface is more task-based then thread-based, but with a somewhat different view of things than, e.g. OpenMP.
From the Intel release
"Intel® Threading Building Blocks (TBB) offers a rich and complete approach to expressing parallelism in a C++ program. It is a library that helps you leverage multi-core processor performance without having to be a threading expert. Threading Building Blocks is not just a threads-replacement library. It represents a higher-level, task-based parallelism that abstracts platform details and threading mechanism for performance and scalability.""
Doctor Memory (6336) writes "Intel has recently open-sourced their previously closed-source TBB 2.0 (Thread Building Blocks) C++ library. The library provides parallel algorithm templates for "task-based parallelism", emphasizing logical tasks instead of physical threads. The web site (osstbb.intel.com) hosts an FAQ, a forum link, and a download page to get the latest version of the source. Licensed under GPLv2, Intel will continue to sell a commercial version of the library which will include engineering support. There's a more in-depth overview over at Ars Technica." Link to Original Source
pg--az writes "ScobleShow has a video of a Windows-Notepad-scribble being replayed by "last night's build" of VMWare Workstation 6, the impressive thing being of course that the record/replay is of the entire operating system." Link to Original Source
jammag writes "This chapter-length excerpt from a new book, Secure Programming With Static Analysis talks about what the authors call "The Seven Pernicious Kingdoms" (the term comes from biology). The "kingdoms" are both generic and context-specific defects in programming, ranging from API abuse to Encapsulation. The authors' thesis is summed up by a quote from Henry Petroski: "Success is foreseeing failure."" Link to Original Source
piprog writes "I run an informal comparison of the four major browsers (IE, Firefox, Safari, and Opera) on Windows looking at (vector) graphics performance in SVG, VML, and Canvas, and found very interesting results: Apple's still-beta browser single-handedly wins. The worst performer is IE(6)." Link to Original Source