Categories
php

php e mvc

interessante articolo di John Lim sull’uso del paradigma di programmazione MVC all’interno di applicazioni PHP, molto interessanti anche i commenti dove lo stesso fuecks ammette che non tutte le applicazioni per il web possono utilizzare tale paradigma. Oltre all’articolo consiglio la lettura di un infuocato thread sul forum di sitepoint che cerca di spiegare a cosa serve MVC.

ciauz

Categories
altri linguaggi php

jpspan

Ho scovato per errore JpSpan, una classe che permette di richiamare tramite javascript uno script php senza dover ricaricare la pagina. JpSpan ha decisamente molte potenzialità, partendo dal completamento automatico delle form alla gestione dei log degli errori alla creazione di applicazioni XUL complete. Merita di darci un occhio…

JPSpan provides tools to “hook up” PHP and Javascript, for the purpose of fetching data from PHP into a web page which has already loaded, without reloading the entire page.

The objective is to make connecting a Javascript client with a PHP server as painless and error-free as possible. To this end JPSpan allows you to define a class in PHP and call it’s methods directly (and remotely) from Javascript.

aggiornamento:
ho appena scoperto che jpspan è stato scritto da quel geniaccio di harry fuecks

ciuaz

Categories
tecnologia

test: What Number Are You?

You Are the Helper
2

You always put on a happy face and try to help those around you.

You’re incredibly empathetic and care about everyone you know.

Able to see the good in others, you’re thoughtful, warm, and sincere.

You connect with people who are charming and charismatic.

via koolinus

ciuaz

Categories
tecnologia

xul filemanager

lo XUL FileManager è una delle applicazioni XUL più belle che abbia mai visto! Si tratta essenzialmente di un client server side (funziona sia con php che con asp) che simula le funzionalità di un file manager (ie. explorer di windows) permettendo ad un utente di creare, modificare, cancellare file in remoto come se fossero sul proprio harddisk!
Qui trovate una demo completa.

ciuaz

Categories
tecnologia

firefox tips & tricks

lo sapevi che inserendo una lista di differenti link separati da un pipe [ | ] come home page, all’avvio firefox ti aprirà una nuova tab per ognuno di essi?

ciuaz

Categories
tecnologia

vtiger CRM

vtiger CRM is an open source Customer Relationship Management (CRM) software mainly for Sales force working in small and medium businesses. vtiger CRM is built over proven, fast, and reliable LAMP/WAMP (Linux/Windows, Apache, MySQL, and PHP) technologies and open source projects, such as SugarCRM (SPL 1.1.2) project and phpBB (GPL), and others.

vtiger CRM leverages the benefits of open source software and adds more value to the end-users by providing many enterprise features, such as Microsoft® Outlook® integration, Message Board integration, Email integration, product customization, and others.

vtiger CRM software installation is very simple as all the necessary software, such as Apache, MySQL, and PHP are integrated and executables are made available both for Windows and Linux (RedHat, Debian, SuSe, and Mandrake) operating systems in SourceForge.net. You need not concern too much about setting up database, Web server, and other software.

vtiger CRM also provides, enterprise grade business productivity enhancement utility, vtiger Outlook Plug-in for Microsoft® Outlook® users. It is an Open Source Project covered under vtiger Public License 1.0 (VPL 1.0) based on Mozilla Public License 1.1, and complements the vtiger CRM software. Microsoft® Outlook® integration with vtiger CRM reduces the unnecessary duplication of work while communicating with customers.

ciuaz

Categories
php tecnologia

wordpress: rss per commenti moderati

sulla mailing list hacker di wordpress ho scoperto un interessante hack su come far visualizzare al feed RSS i commenti moderati, in questo modo sarà più semplice controllare che ce ne siano senza dover intasare la propria casella di posta elettronica o dover andare sul pannello di amministrazione del blog.

[php]
if (is_single()) {
$comments = $wpdb->get_results(“SELECT comment_ID, comment_author, comment_author_email, comment_author_url, comment_date, comment_content, comment_post_ID, $wpdb->posts.ID, $wpdb->posts.post_password FROM $wpdb->comments LEFT JOIN $wpdb->posts ON comment_post_id = id WHERE comment_post_ID = ‘$id’ AND $wpdb->comments.comment_approved = ‘1’ AND $wpdb->posts.post_status = ‘publish’ AND post_date < '".date("Y-m-d H:i:59")."' ORDER BY comment_date LIMIT " . get_settings('posts_per_rss') ); } else if (isset($_GET["view"]) && $_GET["view"] == 'moderated_comments') { $comments = $wpdb->get_results(“SELECT comment_ID, comment_author, comment_author_email, comment_author_url, comment_date, comment_content, comment_post_ID, $wpdb->posts.ID, $wpdb->posts.post_password FROM $wpdb->comments LEFT JOIN $wpdb->posts ON comment_post_id = id WHERE $wpdb->comments.comment_approved = ‘0’ AND $wpdb->posts.post_status = ‘publish’ AND post_date < '".date("Y-m-d H:i:59")."' ORDER BY comment_date LIMIT " . get_settings('posts_per_rss') ); } else { // if no post id passed in, we'll just ue the last 10 comments. $comments = $wpdb->get_results(“SELECT comment_ID, comment_author, comment_author_email, comment_author_url, comment_date, comment_content, comment_post_ID, $wpdb->posts.ID, $wpdb->posts.post_password FROM $wpdb->comments LEFT JOIN $wpdb->posts ON comment_post_id = id WHERE $wpdb->posts.post_status = ‘publish’ AND $wpdb->comments.comment_approved = ‘1’ AND post_date < '".date("Y-m-d H:i:s")."' ORDER BY comment_date DESC LIMIT " . get_settings('posts_per_rss') ); } [/php]

Find the SQL queries in wp-commentsrss2.php and replace with this code.
Then subscribe to:
http://www.example./com/wp-commentsrss2.php?view=moderated_comments
This is from a recent nightly build, it will be slightly different in 1.2.1 or previous versions.

Cheers,
–Alex
http://www.alexking.org/

ciuaz

Categories
php

wordpress fickr gallery

This plugin allows you to display your Flickr photos and photosets on your site like a photo gallery using Flickr’s API. Some of the salient features include:

* Flickr photosets as “albums” – complete with descriptions and meta
* Support for Flickr “notes” feature (looks kind of like this)
* EXIF data support to display camera settings the photo was snapped with — in addition to the description and meta info from Flickr
* Valid XHTML output

An example installation can be found here.

ciauz

Categories
linux

khtml2png cerca capo progetto

il noto software per prendere screenshot di siti web da riga di comando cerca un nuovo capo progetto.

ciuaz

Categories
tecnologia

21C3: The Usual Suspects

capodanno a berlino? mi sa che ho anche scoperto cosa fare mentre aspetto il veglione…

21st Chaos Communication Congress
December 27th to 29th, 2004
Berliner Congress Center, Berlin, Germany

The European Hacker Conference

The 21st Chaos Communication Congress (21C3) is a three-day conference on technology, society and utopia. The Congress offers lectures and workshops on a multitude of topics including (but not limited to) information technology, IT-security, internet, cryptography and generally a critical-creative attitude towards technology and the discussion about the effects of technological advances on society.

The Chaos Communication Congress is the annual congress of the Chaos Computer Club e.V. (CCC). The Congress has established itself as the “European Hacker Conference” bringing in people from all over Europe and even further away.

The congress not only addresses the techno geek but also those who are interested in appliances and aftermathes. A part of the lectures will be held in English, the rest in German. The language used for each lecture is clearly marked in the conference program.

peccato che non sappia una parola di tedesco :(

ciuaz