The drop is always movingYou know that saying about standing on the shoulders of giants? Drupal is standing on a huge pile of midgetsAll content management systems suck, Drupal just happens to suck less.Popular open source software is more secure than unpopular open source software, because insecure software becomes unpopular fast. [That doesn't happen for proprietary software.]Drupal makes sandwiches happen.There is a module for that

Some database plans for Drupal 7

Submitted by nk on Wed, 2008-02-13 14:48

Larry Garfield (Crell) and I are currently working on a PDO database layer -- which does a lot more than merely introducing PDO to Drupal. In itself, adding PDO to Drupal is benefical because instead of our Drupal-specific placeholders we will be able to use a standardized ? placeholder. In addition, you can use :nid style placeholders and pass in an associated array of values.

Drupal global variables are now documented

Submitted by nk on Wed, 2008-02-13 04:22

Thanks to the efforts of GHOP students ezyang and boombatower Drupal has now its global variables documented.

Drupal query problems and a possible solution

Submitted by nk on Sun, 2008-02-10 05:24

One of the ugliest part of Drupal is db_rewrite_sql. It somewhat parses the query to find certains stopwords and adds join and where parts. It works mostly but its brittle and so there are always bugs. That was my first big patch -- it's not that great... One solution would be to define our dialect of SQL and do a complete, proper parsing. If this is the route we want to take, then Doctrine or part of it can be a solution. There are other parsers, too, there is even one in PEAR which seems to be abandoned. However, maintaing a lexer in PHP just sounds a terrible prospect.

Doctrine?

Submitted by nk on Fri, 2008-02-08 17:41

I had a talk with a Doctrine developer.

[chx] Are you familiar with db_rewrite_sql ?
[chx] It is used to add tables and conditions to existing queries to implement an access control
[jwage] Ok.. http://pastebin.com/m3ceac8b5
[chx] and more often than not people want to add fields, too
[chx] so
[jwage] ok, so if you want to add a field, use addSelect()
[chx] a) there should be an easy way to check which tables are already added
[chx] b) there should be an easy way to add additional tables
[jwage] ok, $query->exists()

What makes good core patches

Submitted by nk on Thu, 2008-02-07 18:21

Even wondered what makes me tick? I have added a Favorite music block on my blog. Good music is an important ingredient of my patches :)

Postgresql quick start

Submitted by nk on Sun, 2008-02-03 21:15

Postgresql is user friendly in the old fashioned way: it's just picky about it's friends. After getting postgresql up and running on my laptop, I can't say I love it more than before -- let's say, even less. Let me remind you that after installing mysql, you are up and running immediately, and if you use mysql for localhost only, having a single, passwordless root works fine.

But postgresql... first you change your Unix user to postgres, enter psql and run these:

Let's have some fun

Submitted by nk on Sat, 2008-01-26 12:21

Without a doubt, core hacking is fun but there are other ways of fun, too. I suggested playing laser tag in Boston during the DrupalCon. If you are in, please comment in the forum topic.

It's nice to be recognized

Submitted by nk on Sat, 2008-01-19 14:03

I ordered a Montbell jacket from a website (running ASP) and in a follow up email, I was asked "One question, are you the same Karoly Negyesi that is the Drupal developer? Drupal is a very nice piece of software". So now I can tick the "famous" part, let's see what can be do about the "rich" part...

Automated install/update

Submitted by nk on Thu, 2008-01-17 18:26

Could everyone just stop producing these modules? If your webserver can write files that are executed by the webserver, that's a security risk. If there is a minor exploit, this can turn it into a critical one. The proper way to do is to use FTP/SSH/whatever wrappers of PHP5 to FTP/SSH back to your server and thus write files over. Never store the password, ask it each time. This way security is kept and yet semi-automated updates are possible.

The two most important new permanent members of the Drupal Association

Submitted by nk on Thu, 2008-01-17 15:20

In my view, the most important two members are Laura Scott and Michael E. Meyers (disclaimer: the latter happens to be my boss and I worked with Laura in the past.). The reason? These two are businessman/woman. They do not hack code or bang on Linux for a living, instead they do business (based on Drupal, of course). Yes, I know a lot others are doing business as consultants but that's very different from what these are two doing. Drupal is maturing and we need people like them in the Association -- thanks for running, congratulations for being elected and can't wait to see the results.

User login