My Recent Pastes (61 and counting)

Pastes by Joon Park (61 and counting)

Pages: 1 3 5

Below are the 15 most recent pasties by Joon Park.

September 05, 2007
10:37PM EDT
by Joon Park

<?php
/**
 * Holds data so it can be passed around to various functions.
 *
 * Supplying the $type, $key and $bits (keyed array) will store it. Calling it

August 27, 2007
9:04PM EDT
by Joon Park

user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'JO IN node n ON n.nid = i.sid INNER JOIN users u ON n.uid = u.uid WHERE n.statu' at line 1 query: CREATE TEMPORARY TABLE temp_search_sids Engine=HEAP SELECT i.type, i.sid, SUM(i.score * t.count) AS relevance, COUNT(*) AS matches FROM search_index i INNER JOIN search_total t ON i.word = t.word INNER JO IN node n ON n.nid = i.sid INNER JOIN users u ON n.uid = u.uid WHERE n.status = 1 AND (i.word = 'node') AND i.type = 'node' GROUP BY i.type, i.sid HAVING COUNT(*) >= 1 in /Users/joon/Sites/projects/DRUPAL-HEAD/modules/search/search.module on line 882.
user warning: Table 'drupalhead.temp_search_sids' doesn't exist query: SELECT MAX(relevance) FROM temp_search_sids in /Users/joon/Sites/projects/DRUPAL-HEAD/modules/search/search.module on line 885.

August 23, 2007
11:38PM EDT
by Joon Park

first run without patch:
///////////////////////

[root@vps ~]# ab -c1 -n500 http://127.0.0.1/drupalhead/node_load_test
This is ApacheBench, Version 1.3d <$Revision: 1.73 $> apache-1.3

August 13, 2007
11:41PM EDT
by Joon Park

notice: Undefined index: link in /Users/joon/Sites/projects/DRUPAL-HEAD/modules/color/color.module on line 388.
notice: Undefined index: top in /Users/joon/Sites/projects/DRUPAL-HEAD/modules/color/color.module on line 393.
notice: Undefined index: bottom in /Users/joon/Sites/projects/DRUPAL-HEAD/modules/color/color.module on line 393.
notice: Undefined index: top in /Users/joon/Sites/projects/DRUPAL-HEAD/modules/color/color.module on line 393.
notice: Undefined index: bottom in /Users/joon/Sites/projects/DRUPAL-HEAD/modules/color/color.module on line 393.

August 13, 2007
5:36PM EDT
by Joon Park

        // It would be too much of a performance hit to let every module have
        // a generic preprocess function; themes and theme engines can do that.
        if ($type != 'module' && function_exists($prefix .'_preprocess')) {
          $info['preprocess functions'][] = $prefix .'_preprocess';
        }

August 12, 2007
11:14PM EDT
by Joon Park

/**
 * Overriden only to add stylesheets before drupal_get_css gets called
 * from phptemplate_page. This minimises preprocessed style sheets.
 *
 * Javascripts and status messages should also be set here when needed.

August 12, 2007
6:15PM EDT
by Joon Park

--- untitled
+++ (clipboard)
@@ -12,12 +12,11 @@
     // have one extension chopped off, but there might be more than one,
     // such as with .tpl.php

August 12, 2007
6:13PM EDT
by Joon Park

       );

May 29, 2007
5:51PM EDT
by Joon Park

<?php
function YOURTHEME_comment($comment, $links = 0) { 
  return _phptemplate_callback('comment', array( 
    'author'      => theme('username', $comment), 
    'comment'     => $comment, 

May 24, 2007
11:53PM EDT
by Joon Park

<?php

/**
 * Holds node data so it can be passed around to various functions. Supplying
 * a numeric node id and data ($bits) will store it. Calling the function with

May 20, 2007
8:01PM EDT
by Joon Park

<?php

/**
 * Removed comment id anchor Moved to _phptemplate_variables(). Modified for
 * easy navigation of new comments. $comment->skip_links formatted for

May 17, 2007
1:27AM EDT
by Joon Park

      foreach($vars['node']->taxonomy as $key => $keycontent) {
        if ($keycontent->vid == 3) {
          unset($vars['taxonomy']['taxonomy_term_'. $key]);
        }
      }

May 17, 2007
1:08AM EDT
by Joon Park

<?php

function _phptemplate_variables($hook, $vars = array()) {
  switch ($hook) {

May 15, 2007
9:05PM EDT
by Joon Park

--- untitled
+++ (clipboard)
@@ -1,4 +1,4 @@
-// BEFORE UPDATE.
+// AFTER UPDATE.

May 14, 2007
5:12PM EDT
by Joon Park

<?php
// $Id: color.inc,v 1.2 2006/12/06 16:32:54 dries Exp $

$info = array(

Next page

Previous page