| by jpic | php

Major breakthrough in Schemaless data models with PHP and MySQL

| by jpic | are-you-serious php mysql sql nosql
It's hilarious, if you've got a twisted sense of humor, it's nosql insql, a special bread of nosql with ponies and butterflies.

Drupal 7 with nginx and uwsgi-php example configuration

| by jpic | linux php uwsgi nginx
Drupal is a CMS written in PHP which supports PostgreSQL. It is made for mod_php and Apache, thought it works with uWGSI and Nginx. When you have tried uWGSI you know why you want this. Example nginx configuration: server { server_name; root /srv/drupal/www/; error_log /tmp/nginx_drupal.log; index index.php index.html; location / { try_files $uri @rewrite; } location @rewrite { rewrite ^/(.*)$ /index.php?q=$1; } location ~* files/styles { access_log off; expires 30d; try_files $uri @rewrite; } location ~ . Read More

Howto: javascript popup form returning value for select like Django admin for foreign keys

| by jpic | php django javascript
This article presents a technique to get the return value of a form opened in a javascript popup, like Django admin for foreign keys. It can be used to improve the ergonomy relation select inputs. Introduction When a form allows to create or edit data, many to one (n:1) relations choices are often presented in a select input. For example, Django admin uses a select field by default for foreign keys. Read More
1 of 1