code

Fix IE 6 Floating Element Double Margin Bug

0

If you read my last post, you know that I develop for IE6 and why. As is the case, IE6 throws annoying little gems at us, like its non-compliant box model, and the subject of today’s blog: the ever persistent double margin bug.

As the title alludes to, IE6 doubles the right and/or left margin on a floated element unless you declare:

display: inline;

Don’t worry about block-level items losing their width or height: they won’t. This isn’t a comprehensive explanation of the fix; it works for the conditions specified.

Links on How to Fill a Concave Polygon

0

I’m working on a project in Max/Jitter and have run into a problem: dynamically filling a complex (concave, crossed, or holed) polygon. Here are some resources that explain the math behind find the area of and or filling such shapes:

  1. http://www.songho.ca/opengl/gl_tessellation.html
  2. http://www.geometrictools.com/Documentation/TriangulationByEarClipping.pdf
  3. http://www.freepatentsonline.com/EP0425189.html
  4. http://mathopenref.com/coordpolygonarea.html
  5. http://www.flipcode.com/archives/Polygon_Tessellation_In_OpenGL.shtml
  6. http://www.flipcode.com/archives/Efficient_Polygon_Triangulation.shtml
  7. http://glprogramming.com%Proxy-Connection: keep-alive
    Cache-Control: max-age=0

    red/chapter02.html

  8. http://glprogramming.com/red/chapter11.html

Drupal Fatal error: Allowed memory size of 33554432 bytes exhausted

1

While installing the Calendar module for a Drupal site, I ran into the following error:

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 71 bytes) in /home/milwaul0/public_html/drupal/includes/theme.inc on line 729

Confounded, I searched the internet and found this:

http://drupal.org/node/283579

The first option (making a php.ini file in the root) appears to need a restart of the webserver, so I tried the second option, allocating more memory to php via drupal using:

ini_set(‘memory_limit’, ’64M’); in the sites/default/settings.php file

But before that, I had to change the permissions of the file, which had been set to 555 (default, by the site admin I assume).

I initially set the memory to 64M to make sure it would work, since 33554432 bytes is 32MB. After it worked, I noticed that the permissions for the file had been reset to 555, so I changed that again and allocated 32MB for php. It worked. If ever any problems arise, I’ll know what to do.

What’s weird is that this error was triggered while allocating 71 bytes. I don’t know why there was even an issue… anyone?

Choosing Drupal

0

While designing and developing websites, I’ve run into a lot of repetitive tasks. From client survey and project proposal, to information architecture issues, requisite files (jQuery, mootools, reset.css, etc.), standard grid templates in XHTML/CSS, to grid layers and naming conventions in Illustrator® documents, and client invoicing, there are a lot of processes that get repeated.

(more…)

Go to Top