Error message
Deprecated function: implode(): Passing glue string after array is deprecated. Swap the parameters in drupal_get_feeds() (line 394 of /home1/tylerfra/public_html/includes/common.inc).
Code
Drupal 7
$header = array();
$header[] = array("data" => "Column Header Title 1");
$header[] = array("data" => "Column Header Title 2");
$row = array();
$row[] = "Row Column 1 Data";
$row[] = "Row Column 2 Data";
$rows = array();
$rows[] = $row;
$html = theme('table', array('header' => $header, 'rows' => $rows));
Drupal 6
So the other day I needed to detect when someone clicks on the background image of my drupal zen sub theme. Here is how I did it using jquery:
So I was trying to manually run cron.php on a drupal site, and it was timing out because the cron job couldn't finish. The cron job is quite intense, and I'm sure it isn't finishing because I am trying to run it during the day on a busy site. So in order to tell Drupal to forget about your last cron attempt:
- go into your drupal database
- go into the 'variable' table
- sort by the 'name' column ascending order
- look for any variable names beginning with 'cron_' and delete them
Here are some MySQL queries that should get the job done:
PHP
From abbreviation to name...
Create the SD Card...
Let's create a 64MB sd card for our Android emulator, shall we?
Linux
From a terminal...
# cd ~/android-sdk-linux/tools
# ./mksdcard 64M ~/Desktop/sdcard.iso
Windows XP
From a DOS prompt...
cd C:\Program Files\android-sdk-windows\tools
mksdcard 64M c:\documents and settings\tyler\desktop\sdcard.iso
Now you can use the 'Eclipse Android SDK and AVD Manager' to create a new android virtual device that can use the path to the sd card you created.
So today I thought I knew enough about JQuery to easily add a click function to some unordered list menu items in a Drupal Panel... wrong.
Since Panels adds a bunch of its own divs inside the container div, this was not working:
$('div.my_panel > ul.menu > li').click(function () { alert('click'); } );
After a little experimenting, I realized the child selector doesn't work the way I thought. It is a "child" selector I guess, not a "grand child" selector. So instead I used the JQuery 'find' function.
This worked:
- Start -> Programs -> Accessories -> System Tools -> Scheduled Tasks
- Add Scheduled Task
- Select 'Internet Explorer' From The Application List
- Choose Your Preferred Interval Options
- Enter Your Username and Password (Username should appear by default)
- Check box next to 'Open advanced properties for this task when I click Finish.'
- Select the 'Task' Tab
- In the 'Run' field enter this e.g.: C:\PROGRA~1\INTERN~1\iexplore.exe www.example.com/my-page.html
Drupal can be a memory hog, it's very hungry. Occassionally you may run out of memory when trying to enable a module or some other feature. If this happens, you'll probably see a message similar to the following
Fatal error: Allowed memory size of # bytes exhausted (tried to allocate # bytes) in includes/database.mysqli.inc
To fix this problem, I opened my sites/default/settings.php and added the following php ini setting:
Pages