DBus vs ZeroMQ

Cerco un message system. Quello che vorrei è poter sottoscrivere un servizio e ricevere i messaggi, oppure semplicemente chiedere ad un processo con diritti maggiori alcune informazioni o di compiere azioni, senza dover aprire una porta tcp e gestire tutto a mano. Devo fare delle azioni sull’hardware e penso che forse DBus già ha qualcosa […]

Read More…

wordpress do not redirect after post

Problem seems to be reported here and there, but I can not found what I really need to fix this during the morning: https://wordpress.org/support/topic/redirect-after-post?replies=2 https://wordpress.org/support/topic/redirect-doesnt-work-1 … nope, nothing. I found this: http://wordpress.stackexchange.com/questions/76991/wp-redirect-not-working-after-submitting-form and second reply:   add_action( ‘wp_loaded’, ‘wpa76991_process_form’ ); function wpa76991_process_form(){ if( isset( $_POST[‘my_form_widget’] ) ): // process form, and then wp_redirect( get_permalink( $pid […]

Read More…

Cifratura simmetrica, un discorso campato in aria

E quando poi si parla di algoritmi di cifratura simmetrici, si dice che c’è bisogno dello scambio sicurodella chiave di decodifica, e, i più, a questo punto si tacciono. E tra i più c’ero anch’io. Di fatto lo scambio sicuro della chiave può essere fatto su di un canale differe, ad esempio tramite un database, ad […]

Read More…

file.gif

wordpress where tinymce is the default editor

Interacting with tinymce in wp is possible: because tinymce is a default editor (plugin I developed for downloading offers from shoppydoo, a price comparator service: http://www.shoppydoo.it/ ) The extension generate a tag that will be parsed and recognized by the backend plugin, replacing it with a parsed xml coming from price comparator service. Revenues are accredited […]

Read More…

A simple excursion on jQuery’s promises

Using Kriskoval‘s q version of promise I was in trouble when I required promises for a browser application based on jQuery (+more). After a while I found it exists promise in jQuery too, and is not so different in use. (ok, Kriskoval would arguments on this, and of course he is right, but it is not so different […]

Read More…

a tricky tip on indending php&javascript mixed code

What I mean is the autoindent function of some editor that do not understand mixed code language. PHP and Javascript couple is special:   <script> var myJson = /*<?php if($THIS && $that) { ?>*/ <?php echo json_encode($that); ?> /*<?php } else { ?>*/ <?php echo json_encode($those); ?> /*<?php } ?>*/ var isOk = false; /*<?php […]

Read More…

How to use model in a React Application

D: “Model has to be some where, where do I put the model?” E: “At the top, the model is always at the top most. But I do not like react” This conversation with https://twitter.com/emanuele_r (https://github.com/lele85 Emanuele Rampichini) take place in late novemberduring a code retreat, but it was off topic, because I does not […]

Read More…

10 consigli per un programmatore web. Php, mysql, modificare o iniziare un nuovo progetto

Arriva una richiesta, un nuovo lavoro da affrontare, spesso c’è un prodotto di partenza da modificare, a volte il prodotto è vecchio, a volte inizi qualcosa di nuovo ed hai tutto il massimo delle libertà. Per chi sono questi consigli Ti trovi spesso nella situazione di dover mettere mano su codice altrui, o stai iniziando […]

Read More…