In Coding Projects,Molokoloco | 13 Jul 2011 | Laisser un commentaire

Personnal codingsheets! New source code is now hosted on Github !
And also my Virtual Admin PHP4/JS Prototype Framework, for managing CMS (2005~2008)
Julien Guézennec 2011 | molokoloco@gmail.com | http://www.b2bweb.fr …. Work definitely in progress…
In Molokoloco | 20 Apr 2011 | Laisser un commentaire
Voici une petite page qui affiche toutes mes vidéos favorites…
J’ai utilisé SimplePie PHP pour parser les flux RSS…
SimplePie gère très bien la détection des vidéos “Embed” dans les flux… Le seul problème que j’ai rencontré, c’est Dailymotion qui renvois vers des iframes pour ses vidéos…
if ($enclosure = $item->get_enclosure()) { $embed = $enclosure->native_embed(array( 'mediaplayer' => $WWW.'php/simplePie/demo/for_the_demo/mediaplayer.swf' )); if ($embed && strlen($embed) > 100) { // Ok find videos embed ?><div><?php echo $embed; ?></div> <div class="spacy"></div><? } else if ($embed && strlen($embed) < 100) { // Dailymotion give an iframe... SimplePie fail to parse. // my ugly hack : $dailyframe = str_replace('<a href="', '<iframe frameborder="0" width="'.$size.'" height="440" src="', ' '.$embed.' '); $dailyframe = str_replace('" class=""></a>', '?wmode=transparent"></iframe>', $dailyframe); echo trim($dailyframe); ?><div class="spacy"></div><? } else { /* ... */ } /* ... */ } |
/* ... */ $feedUrl = array( 'http://www.dailymotion.com/rss/bookmark/molokoloco/1', 'http://gdata.youtube.com/feeds/api/users/molokoloco/favorites', 'http://vimeo.com/molokoloco/likes/rss' ); $feedData = getVideoFromFeed($feedUrl); |
La page que vous pouvez ajouter dans votre WordPress est sur mon GitHub :
https://github.com/molokoloco/FRAMEWORK/blob/master/php.samples/wordpress-videos-feeds.php
In Shared Items | 11 Apr 2011
Shared by molokoloco
Quand on dit qu’il ne faut pas faire de site tout en flash…
Le support officiel de Silex s’installe chez Mediabox ! Vous pourrez donc poser toutes vos questions sur ce fameux CMS aux développeurs et même, pourquoi pas, participer à son développement ! Rendez-vous sur le forum ! Silex est un CMS Flash open source permettant d’assembler du contenu multimédia et de le publier. Ecrit en Actionscript, PHP et JavaScript [...]

In Shared Items | 27 Mar 2011
Shared by molokoloco
There is also an online editor called Akshell, (far less complete) that seem more stable, right now…
IDEs are a pretty divisive topic among developers – and rightly so. We’re creatures of habit, creating our entire workflow around the tools we use.
Today, I’d like to talk a bit about Cloud9, the latest entry into this saturated market. If you’ve cemented your feet into your favorite code editor, I’m here to review a few points that I think that may just change your mind. In fact, this isn’t like any editor you’ve ever used before.
In Shared Items | 8 Feb 2011
Shared by molokoloco
Moi aussi j’aimais bien refaire les fonctions PHP… en JS… inArray, BaseName, nl2br, trim, … cf.
http://code.google.com/p/molokoloco-coding-project/wiki/JavascriptSample, (Framework basé sur Prototype.js… )
Voici quelques années, le projet PHP.js avait été lancé pour proposer les fonctions PHP équivalentes en Javascript.
Aujourd’hui, une nouvelle vague de fonctionnalités et d’optimisations sont apparues. Par ailleurs, le site propose le script en Js que vous pouvez utiliser sans problème, avec un exemple pour vous montrer comment utiliser les fonctions.
En [...]
In Shared Items | 15 Jul 2010
Il y a quelques temps, Google communiquait sur leur projet ASE pour Android Scripting Environment. Cet outil permet d’éditer et d’exécuter des script dans différents langages (Python, Perl, JRuby, Lua, BeanShell, JavaScript, Tcl…). Une page existe sur le wiki qui n’attend plus que les contributions des motivés. Ce projet, en licence Apache, permet de facilement s’ouvrir à d’autres langages. C’est le cas du projet PHP for Android.
Le projet est développé par la société Ironic. Il va permettre, à terme, de développer de véritables applications Android depuis ce [...]
In Shared Items | 10 Jul 2010
Anologue is an approach to ad hoc, linear dialogue in realtime. With anologue you can quickly and easily engage in an anonymous (or not) linear dialogue with any number of people (within reason). There is no accounts or installations required. Your “chat room” is created by the time this link loads.
Best of all: Anologue is open source. built with php 5.3.1, using the most non-heinous, totally rad lithium framework, couchdb, jquery, a few other scripts as well as some classy, original and established iconography for ui; all coming together for the conversational goodness you’re [...]
In Shared Items | 2 Jul 2010
Assembling a full, working Nginx web sever on windows isn’t the easiest thing. It’s easy enough on ubuntu – but I also use windows for development and want a near-clone of my production server. So the other day I suddenly found myself looking for an easier way to get my windows boxes up and running with Nginx.
I wanted a complete, fast, easy-to-use web server that you could put anywhere and run from anything. My flash drive, HD, CD, etc.. and from this desire the WNMP web sever project was born.
Now you can choose what versions of PHP, MySQL, Nginx, and memcached you want and run each [...]
In Molokoloco | 1 Jul 2010 | Laisser un commentaire
Updated !Project originally hosted here :
http://code.google.com/p/molokoloco-coding-project/