I am now having a Christmas holiday in Taiwan, from 23/12 to 31/12. Hopefully I will take some good photos :D
I am now having a Christmas holiday in Taiwan, from 23/12 to 31/12. Hopefully I will take some good photos :D
But once sleep for 5 hours, my brain feel refresh and keep focus again. The green parts are not simple because all looks similar, I need to keep on try-and-error (seems like debug programming...). Well, here are the complete product:
Ok some more close up:
Ok, so the main question is: where this puzzle goes for? For sure it is now delivered to my girl friend's home (not by DHL, I take it to her home manually...), and as her Christmas gift ;-)
After one day, both Eeyore and Piglet are almost complete:
DSC00093.JPG
Eeyore looks much smart now. Well, the mouth is not yet complete because the color too close to others. Look at the lovely sleepy Piglet, too. Part of flowers are also complete:
For last Saturday I slept for few hours and start working again. Now Kessie is out there (hmm... is this Kessie? I am not sure, it just looks like some general Disney's characters). For Tigger I use a lot of time because of its pattern. Winnie the Pooh is not simple as its color may mixed with Tigger. Look at Eeyore, it mouth is now complete, too:
Well... I haven't play puzzle for more than 5 years... Seems to be a punishment game... This is my target:
DSC00089.JPG
After working for 3 hours, all edges are completed:
DSC00087.JPG
Ok a close up to Eeyore (blue is the most simple...):
DSC00088.JPG
Hopefully I can complete it before my Christmas holiday in Taiwan :D
I have been using Drupal's Adsense Injector for more than years and love it so much: it is simple, elegant and just enough. But since my personal blog upgrade to Drupal 6.x, I get some trouble with it as there is no official release for Drupal 6.x. Well... I need to hack 5.x version for 6.x manually...
An upgrade patch is submitted 8 months ago which now obsoleted. Finkpad ask help from my blog directly, so Michael Curry and I start some join development for getting the work done.
If you are looking for this handy module as me, please feel free to download the latest 6.x-2.x development snapshot for testing and report bug if possible. With you kindly help stable release should be out soon :D
At every Passover Festival the Roman governor was in the habit of setting free any one prisoner the crowd asked for. At that time there was a well-known prisoner named Jesus Barabbas. So when the crowd gathered, Pilate asked them, "Which one do you want me to set free for you? Jesus Barabbas or Jesus called the Messiah?" He knew very well that the Jewish authorities had handed Jesus over to him because they were jealous.
While Pilate was sitting in the judgment hall, his wife sent him a message: "Have nothing to do with that innocent man, because in a dream last night I suffered much on account of him."
The chief priests and the elders persuaded the crowd to ask Pilate to set Barabbas free and have Jesus put to death. But Pilate asked the crowd, "Which one of these two do you want me to set free for you?"
"Barabbas!" they answered.
"What, then, shall I do with Jesus called the Messiah?" Pilate asked them.
"Crucify him!" They all answered.
But Pilate asked, "What crime has he committed?"
Then they started shouting at the top of their voices: "Crucify him!"
When Pilate saw that it was no use to go on, but that a riot might break out, he took some water, washed his hands in front of the crowd, and said, "I am not responsibility for the death of this man! This is your doing!"
The whole crowd answered, "Let the responsibility for his death fall on us and our children!"
Then Pilate set Barabbas free for them; and after he had Jesus whipped, he handed him over to be crucified.
(Bible, Matthew: 27)
| accesslog.path | accesslog.path | ansi |
| accesslog.timestamp | accesslog.timestamp | ansi |
| accesslog.uid | accesslog.user_id | oci |
| actions.type | actions.type | well-know |
| aggregator_item.timestamp | aggregator_item.timestamp | ansi |
| authmap.module | authmap.module | ansi |
| authmap.uid | authmap.user_id | oci |
| batch.timestamp | batch.timestamp | ansi |
| block.module | block.module | ansi |
| block_role.module | block_role.module | ansi |
| blogapi_files.uid | blogapi_files.user_id | oci |
| cache.data | cache.data | ansi |
| cache_block.data | cache_block.data | ansi |
| cache_filter.data | cache_filter.data | ansi |
| cache_form.data | cache_form.data | ansi |
| cache_menu.data | cache_menu.data | ansi |
| cache_page.data | cache_page.data | ansi |
| cache_registry.data | cache_registry.data | ansi |
| cache_update.data | cache_update.data | ansi |
| comments.comment | comments.body | oci, well-know |
| comments.timestamp | comments.timestamp | ansi |
| comments.uid | comments.user_id | oci |
| files.timestamp | files.timestamp | ansi |
| files.uid | files.user_id | oci |
| filters.module | filters.module | ansi |
| flood.timestamp | flood.timestamp | ansi |
| history.timestamp | history.timestamp | ansi |
| history.uid | history.user_id | oci |
| languages.domain | languages.domain | ansi |
| languages.language | languages.language | ansi |
| locales_target.language | locales_target.language | ansi |
| locales_target.translation | locales_target.translation | ansi |
| menu_links.depth | menu_links.depth | ansi |
| menu_links.external | menu_links.external | ansi |
| menu_links.module | menu_links.module | ansi |
| menu_router.path | menu_router.path | ansi |
| menu_router.position | menu_router.position | ansi |
| menu_router.type | menu_router.type | well-know |
| node.comment | node.comment_mode | oci, well-know |
| node.language | node.language | ansi |
| node.translate | node.translate | ansi |
| node.type | node.type | well-know |
| node.uid | node.user_id | oci |
| node_counter.timestamp | node_counter.timestamp | ansi |
| node_revisions.timestamp | node_revisions.timestamp | ansi |
| node_revisions.uid | node_revisions.user_id | oci |
| node_type.type | node_type.type | well-know |
| poll_votes.uid | poll_votes.user_id | oci |
| profile_fields.type | profile_fields.type | well-know |
| profile_values.uid | profile_values.user_id | oci |
| profile_values.value | profile_values.value | ansi, well-know |
| registry.module | registry.module | ansi |
| registry.type | registry.type | well-know |
| role | role | ansi |
| search_dataset.data | search_dataset.data | ansi |
| search_dataset.reindex | search_dataset.reindex | sqlite |
| search_dataset.type | search_dataset.type | well-know |
| search_index.type | search_index.type | well-know |
| search_node_links.type | search_node_links.type | well-know |
| search_total.count | search_total.count | ansi |
| sessions.session | sessions.session_data | ansi, oci |
| sessions.timestamp | sessions.timestamp | ansi |
| sessions.uid | sessions.user_id | oci |
| simpletest.file | simpletest.filename | oci |
| simpletest.function | simpletest.function | ansi |
| system | system | ansi |
| system.type | system.type | well-know |
| url_alias.language | url_alias.language | ansi |
| users.access | users.last_access | oci |
| users.data | users.data | ansi |
| users.language | users.language | ansi |
| users.uid | users.user_id | oci |
| users_roles.uid | users_roles.user_id | oci |
| variable.value | variable.value | ansi, well-know |
| vocabulary.module | vocabulary.module | ansi |
| vocabulary_node_types.type | vocabulary_node_types.type | well-know |
| watchdog.timestamp | watchdog.timestamp | ansi |
| watchdog.type | watchdog.type | well-know |
| watchdog.uid | watchdog.user_id | oci |
This is a quick checklist for develop Drupal 7.x Oracle driver. They need to be solved before Oracle slip into Drupal core.
Drupal core use some reserved word of Oracle, e.g. uid. To solve this we have 2 choice: 1. escape all table/column/constrain name with escape characters (http://drupal.org/node/371#comment-636053), or 2. clone Moodle implementation and prevent the use of reserved words for all supported database (http://docs.moodle.org/en/XMLDB_reserved_words).
Here we choose to use solution 2. This come with some extra benefit that, if we need to connect Drupal's database from other projects, e.g. Moodle, they will able to fetch Drupal's column as there is no reserved word conflict. So this can improve both cross database and cross project compatibility.
Related issues:
This is another critical issue. Oracle only support VARCHAR2 with maximum 4000 characters. It is always not enough for CMS. As a replacement we can use BLOB because it is more universal.
We also need to clone PostgreSQL's BLOB handling for Oracle, with RETURNING.
Related issues:
This is a critical bug of Oracle, all empty string will translate as NULL automatically. It is NO WAY for Oracle to emulate as other RDBMS because it is a 2-state machine (valid or NULL) but not 3-state (valid, empty or NULL). Logic Diagram:
|---------------------------------------------|
| | valid | empty | NULL |
|---------------------------------------------|
| Oracle | Support | NA | Support |
|---------------------------------------------|
| ANSI-92 | Support | Support | Support |
|---------------------------------------------|In order to overcome this limitation, we can first extend as 4 states: valid, "default", empty or NULL. Then restrict the use case as 3 states only, with replace the use of empty string as "default" value. Therefore both Oracle and other RDBMS can have identical support of SQL, and don't need to duel with different between = '' and IS NULL. Logic diagram:
|---------------------------------------------------------|
| | valid | "default" | empty | NULL |
|---------------------------------------------------------|
| Oracle | Support | Support | NA | Support |
|---------------------------------------------------------|
| ANSI-92 | Support | Support | Support | Support |
|---------------------------------------------------------|Procedure: 1. update all schema as nullable string if required (only allow null with valid default value but not empty string), 2. restrict all string I/O with no empty string (force translate as NULL), 3. debug and update programming logic for using empty string with "default" value if possible. Therefore:
P.S. This change will also benefit with the critical PostgrerSQL Blob bug with empty string (http://bugs.php.net/bug.php?id=41135), because we will no longer use empty string.
Related issues:
This can be handle with PDO::ATTR_CASE (http://www.php.net/manual/en/pdo.setattribute.php). Becareful! Field names should be reserved word safe.
Related issues:
Oracle only allow 30 characters for constraint name. Moodle give a good example for solving this problem.
Related issues:
Different database coming with different SQL syntax for same function, e.g. MySQL use SUBSTR, where PostgreSQL use SUBSTRING. Some simple abstraction is required. ADOdb give a good example for solving this problem.
Related issues:
Prepare schema:
Once schema ready for expert install:
= '' to IS NULLTesting procedure:
<?php
$table = 'menu_links';
$fields = array('menu_name', 'plid', 'expanded', 'has_children');
$name = 'menu_plid_expand_child';
// Clone from PostgreSQL _createIndexSql() handling.
$result = Database::getActiveConnection()->prefixTables('{' . $table . '}_' . $name . '_idx');
var_dump($result);
// Handle with makeIndexName().
$result = Database::getActiveConnection()->makeIndexName($table, $fields);
var_dump($result);
?>