Daniele Cruciani
Programmatore Developer PHP/MySQL Freelance
mobile: +39 3489215204

icq skype msn linkedin fb t ff youtube picasa google me on github

Advertisement

    (PHP) CurlParallel around the world

    About the project: https://github.com/danielecr/CurlParallel

    Selfing on the net this morning I discovered at least another interesting implementation of parallel fetch of network resource via PHP curl, that is https://github.com/dulao5/parallel-curl of https://github.com/dulao5, and is older than the one I take as starting point.

    SEO advices for javascripter: Se 'o sai è meglio.

    What does is indexed by search engines? Of course the static pages are, but what about javascript originated content (i.e. AJAX)?

    By the end of 2011 Google indexs comments loaded via AJAX (i.e. Facebook, Disqus, ...).

    Tags: 

    Debugging Javascript worker (and jQuery & workers howto)

    Even if I finally found Web workers:error and debugging article that explains it well and exensively, I just had to report that developing with Firefox is still the right choice in most case.

    following coursera courses

    I am updating my knowledge by following some courses on coursera.org, that is: https://www.coursera.org/course/compneuro (computational neuroscience) and https://www.coursera.org/course/eqp (exploring quantum physics). I found both require that kind of math called statistic, or something like that, and summing vector of values, multidimensional calculus ... very interesting and mind opening.

    Parallelize PHP script (continued)

    The adventure continues..

    Some more commits to repository in https://github.com/danielecr/CurlParallel, the goal is to parallelize a php application as much as possible in the task of network I/O concerns. This is the test class in the rep:

     

    Step of api first methodology: a tag system

    I refer to http://api-first.com/ . The idea is, after wrote the stories needed to define interaction, and thus functions, of the system we are going to implement, the next step is to define an api, then proceed with API definition, then implement backend, frontend, and cycle this way redefining stories (or adding), refining api, change frontend and backend. This is not water fall, is just a sequence to follow in the cycle, something like rithm keeper (metronome?), of development process.

    3SUM algorithm tweak

    http://en.wikipedia.org/wiki/3SUM this is the algorithm. I just thought that I can start from the middle, the rationale is that I have the work done not to be due.

    I wrote down the value of an example and try to iterate on the outer cycle starting from middle (max value + min value) then down to the lower value, what happen (hand running iterations) is that I never have to consider the excluded item in the preceeding iteration (outer iteration), thus I added a start point keeper array.

    Solved my problem with knockout

    Using a model with nested observable array I did not know how to refer to self in a event handler (click) on a element in a cycle on that observableArray ...

    Static method and testable code

    Following this discussion

    http://www.linkedin.com/groupAnswers?viewQuestionAndAnswers=&discussionID=130090944&gid=42193

    enlight me on use of static methods and relation with TDD, what I learned so far is that is better to define a collection class implementing a collection interface, which has method that operate on collection of object, if this is the intend of the use of static methods. Example:

    ZCE: PHP 5.3 Zend Certificated Engineer. The exam: a more extensive report.

    First of all, I have to pay some money to take it, so I tried to get information about this exam.

    Pages

    Subscribe to Front page feed