Categorie
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

Categorie
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

Categorie
cazzate

virtual beer!

non mi divertivo così tanto dai tempi delle avventure testuali su commodore 64…

qualche suggerimento, provate a dire.. beer, jump, strip

ciuaz

Categorie
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

Categorie
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

Categorie
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

Categorie
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

Categorie
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

Categorie
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

Categorie
linux

khtml2png cerca capo progetto

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

ciuaz