I just found out a very strange PHP feature by browsing the PHP-GTK2 API with the Reflection classes : spaces can be used in some alien places, like variable names.
But the doc says you can't !
Well, try this in PHP 5.2.5, for instance:
Riff BlogMusic, sort of. And computing. And ... |
|
Spaces in PHP variable namesSubmitted by fgm on Sun, 2008-05-11 11:37.I just found out a very strange PHP feature by browsing the PHP-GTK2 API with the Reflection classes : spaces can be used in some alien places, like variable names. But the doc says you can't ! Well, try this in PHP 5.2.5, for instance: Deprecating img_relocatorSubmitted by fgm on Tue, 2008-05-06 18:38.In summer 2006, I created the img_relocator module, which was published to my sandbox, and apparently picked up by some Drupal admins, although it was never promoted to full-fledged project status. When e-commerce won't create products ...Submitted by fgm on Mon, 2008-04-28 16:55.I was working on an existing site today, and after installing the e-commerce 3.4 suite (EC), noticed something was very weird: product type modules were enabled, all basic EC modules were there too, and yet, when I created products by hand, the "Anonymous purchase" fieldset appeared, but nothing else from EC. Worse, when saving the new products, they were properly created in the Drupal internshipsSubmitted by fgm on Fri, 2008-04-11 09:17.With OSInet focusing more heavily now on Drupal services, the company is now offering internships for students interested in working on Drupal. First things first, I've offered to mentor for the Google Summer of Code, and would be specifically interested if a student picked up the live Drupal backup project if it came to be approved. Drupal security from the outsideSubmitted by fgm on Tue, 2008-02-05 00:54.The OSInet team recently attended Solutions Linux, a trade fair focused on FLOSS, and while chatting with a sales engineer from a company specialized in Typo3, got asked which CMS we used, and of course answered "Drupal". At that point, that person flinched somehow, acknowledging that Drupal was indeed one of the "Big 3" in the CMS space, along with Typo3 and Joomla, but was plagued with security issues making it rather unfit for professional deployment, as opposed to Typo3, which took security issues seriously. Continuing the discussion, it appeared that company has indeed at least acquired some Drupal knowhow too, due to customer request, but the person doing the criticizing was not directly familiar with Drupal. Multisite and dynamic configuration items in Drupal : help from ApacheSubmitted by fgm on Sat, 2008-01-12 16:07.Having recently merged a number of separately configured sites into a single consolidated multisite, I found myself with URLs like: http://www.site1.com/sites/www.site1.com/files/somefile.png ...on all except the main site of the multisite configuration. Although <img src="somefile.png" /> ... and still have these URLs be automagically generated, they still appear to those users who actually look at the URLs. Enter mod_rewriteAbandon all hope, ye who enter here With these sites running over Apache 2.x, mod_rewrite offers a simple way to rewrite the files URLs: in the Apache site definition file for the vhost describing the site, we can use: Tracking the WSODSubmitted by fgm on Tue, 2007-12-25 20:33.At long last, I've moved the OSInet sites from shared hosting to a VDS over the 4-day Xmas period, and overall it went well.
However, with new users (dare I say bots ?) eager to refresh the site after a few hours offline, I soon had to stand about 20 hits/sec, which proved to be a bit too much on this small VDS. So I enlisted the help of APC, just like the drupal.org sysops do, and like I do on the group's intranet servers and it went really faster. Simplifying the G2 Glossary UI for D6Submitted by fgm on Sat, 2007-12-01 23:41.Remove the G2 fields from the form, and replace them by optional XML elements in the node text, with defaults on new nodes 50% (2 votes) Keep the existing fields, but add the new features as optional XML elements in the node text 0% (0 votes) Add the new features as new optional fields on the form 50% (2 votes) Just port the module to D6; do not change the feature set 0% (0 votes) Other suggestion, please write-in as a comment 0% (0 votes) Total votes: 4 Elixir bass strings, six months laterSubmitted by fgm on Sat, 2007-10-27 16:27.
Easier Lilypond coding with ContextSubmitted by fgm on Sun, 2007-09-23 17:39.A few months ago, I discovered the Lilypond music typesetting system, and thought I had stumbled upon some sort of holy grail: here was an open source system which, at last, allowed me to write music much like program code, and did not jump me through the hoops of a UI in order to create scores and the MIDI files representing them. |
Check
See how we're connected Keywords |
Recent posts
|
RSS Feeds |
Recent comments
6 days 15 hours ago
1 week 15 hours ago
1 week 2 days ago
1 week 2 days ago
1 week 2 days ago
1 week 2 days ago
5 weeks 6 days ago
6 weeks 2 days ago
9 weeks 5 days ago
14 weeks 5 days ago