Interesting saying

“uma coisa é sempre perceptível nos eventos de TI. aqueles q reclamam q o mercado paga mal, q n ganham o q merecem, nunca estão lá.” Jean Pimentel

“one thing is always felt on IT events. those who claim the job market pays are low, that they don’t make what they deserve, never show up.” Jean Pimentel

“una cosa que siempre se siente en los eventos de IT es que aquellos que dicen que la paga en el mercado laboral es baja que ellos no ganan lo que merecen nunca atienden.” Jean Pimentel

Early Literature and Scripture Search App – Update

As an update I would like to re-demo the command line version of the versepress app engine. The most notable difference from older pre-beta versions is the fact that one can supply logic to the search. Below is an example using the King James English Bible.

$ ruby versepress.rb "melchi(zedek|sedec)" 
        Genesis  14:18                             And [Melchizedek] king of Salem brought fort...
         Psalms 110:4    ...or ever after the order of [Melchizedek].
        Hebrews   5:6    ...or ever after the order of [Melchisedec].
        Hebrews   5:10   ....priest after the order of [Melchisedec].
        Hebrews   6:20   ...or ever after the order of [Melchisedec].
        Hebrews   7:1                         For this [Melchisedec], king of Salem, priest of....
        Hebrews   7:10   ....loins of his father, when [Melchisedec] met him.
        Hebrews   7:11   ...ld rise after the order of [Melchisedec], and not be called after t...
        Hebrews   7:15   ...at after the similitude of [Melchisedec] there ariseth another priest,
        Hebrews   7:17   ...or ever after the order of [Melchisedec].
        Hebrews   7:21   ...or ever after the order of [Melchisedec]:)

The versepress.com web app currently has only a King James English Bible. But other works are in development. The following is a preview of the searchable SBLGNT (Society of Biblical Literature’s Greek New Testament) :

$ ruby versepress.rb "λέγω(σιν|ν)--pl" koine
         Romans   2:22                               ὁ [λέγων] μὴ μοιχεύειν μοιχεύεις; ὁ....
  Corinthians 1  11:25   ...οτήριον μετὰ τὸ δειπνῆσαι, [λέγων]· Τοῦτο τὸ ποτήριον ἡ καινὴ...
Thessalonians 1   5:3                             ὅταν [λέγωσιν]· Εἰρήνη καὶ ἀσφάλεια, τότε...
        Hebrews   2:6          διεμαρτύρατο δέ πού τις [λέγων]· Τί ἐστιν ἄνθρωπος ὅτι μιμ...
        Hebrews   2:12                                 [λέγων]· Ἀπαγγελῶ τὸ ὄνομά σου τοῖ...
        Hebrews   4:7    ....ἡμέραν, Σήμερον, ἐν Δαυὶδ [λέγων] μετὰ τοσοῦτον χρόνον, καθὼ...
        Hebrews   6:14                                 [λέγων]· Εἰ μὴν εὐλογῶν εὐλογήσω σ...
        Hebrews   8:11   ...ἕκαστος τὸν ἀδελφὸν αὐτοῦ, [λέγων]· Γνῶθι τὸν κύριον, ὅτι πάν...
        Hebrews   9:20                                 [λέγων]· Τοῦτο τὸ αἷμα τῆς διαθήκη...
        Hebrews  10:8                         ἀνώτερον [λέγων] ὅτι Θυσίας καὶ προσφορὰς κ...
        Hebrews  12:26   ...εν τότε, νῦν δὲ ἐπήγγελται [λέγων]· Ἔτι ἅπαξ ἐγὼ σείσω οὐ μόν...
           Acts   1:3    ...ντα ὀπτανόμενος αὐτοῖς καὶ [λέγων] τὰ περὶ τῆς βασιλείας τοῦ....
           Acts   2:40   ...ρατο, καὶ παρεκάλει αὐτοὺς [λέγων]· Σώθητε ἀπὸ τῆς γενεᾶς τῆς...
           Acts   3:25   ...ὸς πρὸς τοὺς πατέρας ὑμῶν, [λέγων] πρὸς Ἀβραάμ Καὶ ἐν τῷ σπέρ...
           Acts   5:28                                 [λέγων]· Παραγγελίᾳ παρηγγείλαμεν....
           Acts   5:36   ....τῶν ἡμερῶν ἀνέστη Θευδᾶς, [λέγων] εἶναί τινα ἑαυτόν, ᾧ προσε...
           Acts   8:9    ...ων τὸ ἔθνος τῆς Σαμαρείας, [λέγων] εἶναί τινα ἑαυτὸν μέγαν,
           Acts   8:19                                 [λέγων]· Δότε κἀμοὶ τὴν ἐξουσίαν τ...
           Acts   8:26   ...ίου ἐλάλησεν πρὸς Φίλιππον [λέγων]· Ἀνάστηθι καὶ πορεύου κατὰ...
           Acts  10:26       ὁ δὲ Πέτρος ἤγειρεν αὐτὸν [λέγων]· Ἀνάστηθι· καὶ ἐγὼ αὐτὸς ἄ...
           Acts  11:4    ...ς ἐξετίθετο αὐτοῖς καθεξῆς [λέγων]·
           Acts  12:7    ...ν τοῦ Πέτρου ἤγειρεν αὐτὸν [λέγων]· Ἀνάστα ἐν τάχει· καὶ ἐξέπ...
           Acts  15:13   ...αι αὐτοὺς ἀπεκρίθη Ἰάκωβος [λέγων]· Ἄνδρες ἀδελφοί, ἀκούσατέ....
           Acts  16:9    ...ὼς καὶ παρακαλῶν αὐτὸν καὶ [λέγων]· Διαβὰς εἰς Μακεδονίαν βοή...
           Acts  16:28   ...εν δὲ φωνῇ μεγάλῃ ὁ Παῦλος [λέγων]· Μηδὲν πράξῃς σεαυτῷ κακόν...
           Acts  19:4    ...βάπτισμα μετανοίας, τῷ λαῷ [λέγων] εἰς τὸν ἐρχόμενον μετ’ αὐτ...
           Acts  19:26   ...ς μετέστησεν ἱκανὸν ὄχλον, [λέγων] ὅτι οὐκ εἰσὶν θεοὶ οἱ διὰ....
           Acts  21:21   ....τὰ ἔθνη πάντας Ἰουδαίους, [λέγων] μὴ περιτέμνειν αὐτοὺς τὰ τ...
           Acts  21:40   ...ώνησεν τῇ Ἑβραΐδι διαλέκτῳ [λέγων]
           Acts  22:26   ...θὼν τῷ χιλιάρχῳ ἀπήγγειλεν [λέγων]· Τί μέλλεις ποιεῖν; ὁ γὰρ....
           Acts  24:2    ...ατο κατηγορεῖν ὁ Τέρτυλλος [λέγων]· Πολλῆς εἰρήνης τυγχάνοντε...
           Acts  25:14   ...ἀνέθετο τὰ κατὰ τὸν Παῦλον [λέγων]· Ἀνήρ τίς ἐστιν καταλελειμ...
           Acts  26:22   ...τε καὶ μεγάλῳ, οὐδὲν ἐκτὸς [λέγων] ὧν τε οἱ προφῆται ἐλάλησαν...
           Acts  27:10                                 [λέγων] αὐτοῖς· Ἄνδρες, θεωρῶ ὅτι....
           Acts  27:24                                 [λέγων]· Μὴ φοβοῦ, Παῦλε· Καίσαρί....
           Acts  27:33   ....ἅπαντας μεταλαβεῖν τροφῆς [λέγων]· Τεσσαρεσκαιδεκάτην σήμερο...
           Acts  28:26                                 [λέγων]· Πορεύθητι πρὸς τὸν λαὸν τ...

Another interesting feature in relation to such documents is the standard “tagging” scheme. The versepress tagging feature is due to finish testing very soon. I’ll post a tag demo in the near future.

SparkleShare Git Client with Shared Hosting 1

I have this hosting http://bit.ly/9TTSvJ and will specify everything here according to that hosting.
I am pretty sure you can also work with this other hosting which is better and more reliable: http://bit.ly/d4R3w2

So let’s do hands on:

Firstly one is going to have to setup git on the hosting since it is not necessarily there yet. So for that please follow these instructions:
http://hostmonsterforum.com/showthread.php?4589-HOWTO-install-Git-on-Hostmonster

There will be some settings on the ssh side like uploading your ssh pub key to your server, but basically things will boil down to issuing:
[code]
git clone -u /path_to_git_install/git/bin/git-upload-pack ssh://user@server/~/repos/state.git
[/code]
This line above will clone the repo you created on your server.
It went a complete success on my host and I am pretty sure it would be the same provided your hosting is decent and standard.

From now on we can either stay as we are, happy or try the SparkleShare thing.

There are still some problems with SparkleShare so I will create the second part of this post when I have the solution.

Here are some notes:

Then we will follow this instructions here:
http://velt.de/blog/sven/sparkleshare-and-your-own-git-server

Notice that sometimes there will be no key found on the directory that it says there on the link above, so one can use the key located at ~/.ssh directory. This was because SS broke at some point.

Now I have my git repo working on external shared hosting account.
This post summarizes being with my host for several hours on the chat and IRC channels too.

WordPress Shopping Cart: View All Feature

The feature we want to implement is a link label “view all” that behaves in the same way http://www.sundancecataloge.com product page behaves.

The improvement will make it possible to display all the products of one category (or of all categories) in the same page where it usually is paginated.

There are at least two approaches:
1. hide the regular display of products with pagination and display all products
2. work on modifying the actual display of products function with pagination and tweak it so that it would receive a parameter acted by a form button “view all”

We solved with #2:

We modify the logic for the product queries. After some hard work I have come up with a solution that can be seen in action here


If you would like to get the patch for this feature it is available if you email me at cordoval@gmail.com with a donation of $17.

Your contribution will be used to develop more amazing improvements to the Shopping cart and I will post them on this blog.

Please encourage me to keep developing more patches for WPEC here: Donate HERE
Thanks!

Parsing XML with PHP: An API case

The SimpleXML parsing classes were used to interface an API via cURL functionality. One of the things that I learnt was that it is one can later embed all this functionality perhaps to create a plugin that can interface some other APIs. These sets of functions are consumers because the logic for getting the first piece of information from outside always resides in a simple logic of actually getting this information to mainly display purposes. If the logic builds up from the consumer side then the application could turn into more than just presenting information and the interaction with the web application would become more interesting of course. It is interesting to see this capability as standalone because this will enable us to use it further into the future when we would be working within symfony where the approach is rather from the inside out as a plugin probably.

If you happen to require consulting with SimpleXML and wordpress please let us know through the form on the website.