Posted by & filed under internet.

If we have Sharedaddy we probably would like that whoever twitts our blog, mentions our account through a ‘via @ourAccout’.

Sharedaddy has currently no support for this, but by editing a simple php file we can make it on our own.

First we must find the ‘sharing-souces.php’ file; if we have Sharedaddy activated through Jetpack it’s located at /wp-content/plugins/jetpack/modules/sharedaddy folder, otherwise at /wp-content/plugins/sharedaddy.

In the functionprocess_request we look for the line that begins:

$twitter_url = add_query_arg( urlencode_deep( array_filter( compact( 'via', 'related', 'text', 'url' ) ) ),
 sprintf( '%s://', $this->http() )

and modify it so it loks like this:

$twitter_url = add_query_arg(
 urlencode_deep( array_filter( compact( 'via', 'related', 'text', 'url' ) ) ),
 sprintf( '%s://', $this->http() )

As simple as that


Posted by & filed under free software, linux, programacion.

In these few years since I am at college I had to use several programming languages from several paradigms such as Pascal, C, Python, Smalltalk, Java, Bash (not strictly a language though). Each of one had shown me Its charm and potential, however one of them was above the rest. As the title predicts, I’m talking about Python.

Why  Python?

When I had to start using it my only previous languages were Pascal and C. For those who know, they are pretty square and capricious, structured and strongly static typed. What personally pushes me to code is the what if? I used to answer the question within a few code lines. When using Pascal & C I generally used Geany and fpc/gcc by terminal and then running the executable.

Python opened a whole new world of possibilities, by having a live interpreter in the terminal the process was by far less time demanding. Leaving aside the anecdotal, lets cut to the interesting part.

As an overview Python is a dynamic typed language, multiparadigmatic (used for structured, objects and other paradigms), high level, with several data structures implemented by default and garbage collector. Its philosophy aims towards code clarity and simplicity.

Read more »