User login

Problem

Site layout destroyed by weird invisible character in stylesheet

what just happened? some scary bad invisible character(s) got in the css file

I think by using Digital Color Meter

And caused all the CSS rules after that character not to work!

Resolution

Another reason user module needs to be rewritten... or maybe this is just a file handling issue

I'm blaming user module even though I know intimately that I shouldn't: a 2 hour estimate to add user picture upload to the client's custom registration form has become a journey through HTML form and PHP file handling hell because even Drupal core doesn't let you upload a user picture when uploading. Finally just put it on the second page of the client's two screen login process.

Wrote a module almost just like http://drupal.org/project/reg_with_pic

Getting around a subversion file lock on a live server

Another contractor on a project with us, and one way or another there came to be this issue with files modified locally on the live server— to which, in our own practice, we only ever update, so there can never be conflicts.

Backtrace for a weird db_escape_string error on a very old Drupal 4.7 site

<?php
/**
 * Prepare user input for use in a database query, preventing SQL injection attacks.
 */
function db_escape_string($text) {
  global $active_db;
  if (is_array($text)) {  // three lines added for testing
    drupal_set_message('<pre>'. var_export(debug_backtrace(),TRUE) .'</pre>');
  }
  return mysql_real_escape_string($text, $active_db);
}

Installing Gedit on Mac OS X: Fail

now i'm engaged in my annual search for a good tabbed text editor
actually i just gave up

km:
hahahaha
I'm somewhat pleased with gedit

benjamin melançon:
another reason to switch to linux

km:
:-)

yeah if you think about it, programmers need to build these things, and programmers use Linux

benjamin melançon:
... or just use darwinports for now

http://gedit.darwinports.com/

Weird error from SVN on use of site deployment script

ben@server:~$ sudo /srv/scripts/agaric-newproject.sh 6 testing testing.com testing.org

svn: MKCOL of '/srv/svn/agaric/!svn/wrk/63dfc22d-3df4-47e9-8306-5e7dbcfefd62/agaric-sites/testing/apache': 405 Method Not Allowed (https://example.com)

Resolution

4GB SD card in a Nikon D50 does not work

"THIS CARD CANNOT BE USED"

I cursed the card that I picked up cheap at instead of my camera

apologies to Taiwan... the 4GB SD card (Secure Digital High Capacity Memory Card) from Taiwan, and more recently Abacus 24-7 didn't work 'cause the Nikon D50 only accepts up to 2GB. Blast.

Note to everyone: don't take a new 4 or 8 GB SD card with your Nikon D50 camera up a gorgeous mountain and expect to be able to take pictures.

Now to get a card reader and use the card as a 4 gigabyte USB thumb drive.

Resolution

Internet Explorer 6 appears to have PNG problems beyond its well-known transparency issues

IE6 has extremely weird PNG issues

Microsoft owes me another 4 hours of my life.

Just to let you know, apparently PNGs (without transparency, nothing to do with transparency on the page anywhere I was aware of, though there was a video and lots of other stuff), can simply fail to show up in the image tag. A completely normal img src style tag just doesn't display.

Using jpeg instead fixed it.

Drupal 6 wigs out if you delete or move (as in rename to settings.php) its default.settings.php

This right here? Really, really lame.

Warning: fopen(./sites/default/default.settings.php) [function.fopen]: failed to open stream: No such file or directory in /sites/example/www/includes/install.inc on line 187

Warning: Cannot modify header information - headers already sent by (output started at /sites/example/www/includes/install.inc:187) in /sites/example/www/includes/install.inc on line 617

Ask Agaric: Max Allowed Packet error

Also do you know about this error?

User warning: Got a packet bigger than 'max_allowed_packet' bytes query: UPDATE cache_form SET data = 'a:56:{

I haven't seen it on example.com, I've seen it on other sites. I started one of the longest issues in the drupal issue queue from that error! http://drupal.org/node/121390

But as neither CCK nor Views are in use with the present example.com demo site, that must be something different!

Syndicate content