Weblog von dereine
drupal is unique
dereine — 25. August 2010 - 18:51
Drupal is indeed unique.
It's not the software, it's not the money, it's not the drupalcon itself, it's the community.
Every person i met here on drupalcon is so friendly that i cannot find words for this.
Sorry for everyone which had other experiences but you might do something wrong.
Drupalcon is the community!
add table prefixes
dereine — 27. Juli 2010 - 21:57
$new = 'blog_';
$result = db_query("SHOW TABLES");
while ($r = db_fetch_array($result)) {
$table_old = current($r);
$table_new = $new.str_replace('^'.$old, '', $table_old);
db_query("RENAME TABLE {$table_old} TO {$table_new}");
print "{$table_old} -> {$table_new}";
}
Create cache tables.
dereine — 24. Juli 2010 - 17:04
include 'includes/install.inc';
$schema['cache_views'] = drupal_get_schema_unprocessed('system', 'cache');
$schema['cache_content'] = drupal_get_schema_unprocessed('system', 'cache');
db_create_table($ret, 'cache_views', $schema['cache_views']);
db_create_table($ret, 'cache_content', $schema['cache_content']);
Views 6.x 3.x Stable enough for production?
dereine — 20. Juni 2010 - 7:29
People are using Views 3.x in production. However, I recommend that only to Drupal experts who are comfortable digging deep into Views' code when they run into something, and people who are comfortable with the possibility that an upgrade might cause API related problems that could take some effort to understand and fix. The biggest weakness of Views 3 right now are other modules supporting API changes, but they've been coming around where possible.
Use Ctools Autosubmit
dereine — 15. Juni 2010 - 11:26
Since version 1.7 of ctools there is a new js api to auto-submit certain form elements.
Everytime a user changes a selectfield or inputs something into a textfield a button will be clicked automatically by js.
It's really easy to implement for your form:
- First you need to add the js
// Add ctools specific js.
ctools_add_js('auto-submit'); - Assign the autosubmit for a certain button:
// Add autosubmit button.
Write drush integration for your module
dereine — 12. Mai 2010 - 5:50
Everyone loves Drush
Wouldn't it be cool if more modules would have a drush integration?
Here is one short introduction how to do it.
- Create a modulename.drush.inc in your modules dir
- Implement hook_drush_command:
/<strong>
* Implementation of hook_drush_command().
*/
function mongodb_drush_command() {$items['mongodb-connect'] = array(
'description' => 'A string for connecting to the mongodb.',
// alternatives
/</strong>
* DRUSH_BOOTSTRAP_DRUSH
* DRUSH_BOOTSTRAP_DRUPAL_ROOT
Drupalcamp Muenchen
dereine — 9. Mai 2010 - 20:00
An diesem Wochenende(7-9 Mai 2010) fanden die DrupalDevDays statt.
Nach der Anreise per Zug, wurde ich netterweiße von den nur ein klein bisschen verpeilten Macode alias Leon vom Bahnhof abgeholten. Mit nur minimalen 15ten Stuendigen Geek-Orientierungsproblemen ging es los in Richtung vorregistrierung.
Dort warteten schon viele des harten Kern( die Leute die man immer auf so Veranstaltungen sieht).
Nach einer Nacht voller Korrekturlesen von Presentationen begann der Tag obwohl der vorherige quasie noch nicht abgeschlossen war.
Facepalm 21 April
dereine — 21. April 2010 - 16:29
Heute hatte ich folgendes HTML auf einer Seite gesehen
...
<div id="block-block-11" class="clear-block block block-block">
<div class="content">CONTENT</div>
</div>
....
</div>
Meine erste Reaktion, nicht schon wieder ein Tag nicht geschlossen.
Erst nach genauerem Hinsehen wurde klar. Im Block 13 stand folgender HTML code:
<div class="content">CONTENT</div>
</div>
kate/kdevelop * Kommentare automatisch einfuegen
dereine — 5. April 2010 - 17:40
Waere es nicht schoen wenn man
/**[enter]
tippt, dass dann
/**
* [cursor]
herauskommt.
Leider gibt es diese Einstellungsmoeglichkeit nicht mit der UI. Um es zu erreichen muss man ein Paar Tricks bemuehen:
git clone git://gitorious.org/kate/kate.git- Von kate/part/script/data die cstyle.js nach ~/.kde/share/apps/katepart/script/ kopieren
- die Datei cstyle.js bearbeiten:
//BEGIN USER CONFIGURATION
var cfgIndentCase = true; // indent 'case' and 'default' in a switch?
Kdevelop 4.x unter Ubuntu Karmic
dereine — 4. April 2010 - 11:43
Neben Eclipse, Netbeans, Aptana(leider in Zukunft ohne PHP), Komodo usw. gibt es eine neue IDE, welche
nur von freiwilligen entwickelt wird: http://www.kdevelop.org
Wie man schon am Namen merkt, gehoert setzt dieses auf dem Desktop Enviroment KDE auf.
Uersprunglich gab es KDE nur auf Linux, aber dank der darunterliegenden Bibliothek QT, gibt es auch Ansaetze fuer die anderen Betriebssysteme:
- Windows: http://windows.kde.org/
- Mac: http://mac.kde.org/
Damit wird auch kdevelop eines Tages dort laufen.


