Skip to main content

Joshua Brauer

Important order considerations with multiple databases in Drupal

July 26, 2007

I have been working recently with a Drupal application where it is necessary to bring in some data from a non-Drupal database. Eventually these features might roll into a module and the data may move into Drupal but for the moment it sits alone in another database.

An hour or so today disappeared into trying to figure out why various theme_ functions did not work properly. Calling theme('item_list', $list); for example returned broken pages and error messages in the log. After searching for what I was doing wrong in calling theme_ it finally hit me that the error log messages were complaining about not finding the system table and not having parts of the theme. From there it was quick to find the information (which I posted as a comment as well).

The upshot is you have to return to the 'default' database before doing theme work. Read the full version for a code examples.

Read more about Important order considerations with multiple databases in Drupal

Time for a new look

July 26, 2007

It is time for a new look around here. Nothing amazing just a great theme or another. Expect some ongoing changes while it gets settled.

Something to do while watching the Tour 'de France. A sad day indeed. A likely podium in Paris with two Discovery Team riders is great but would have been better had it not been clouded by the auspicious withdrawl of other teams. The Discovery Channel Team riding in their last tour for this sponsor will likely win the team competition as well and while the teams eliminated have not been close contenders for the race it still taints the victory. The good news is the controls seem to be working. The really sad news is when someone expelled for lying to their team invokes the name of Lance Armstrong in their own defense.

Read more about Time for a new look

SNWA's risky plan

July 25, 2007

There is little secret that the Southern Nevada Water Authority(SNWA) is out to suck Nevada dry. One of the real problems for Las Vegans is to figure out when SNWA is dealing with reality or when it is a SNWA magic looking glass version. For example SNWA wants us to believe it would be a good idea to spend billions of dollars (like at least tens of billions) to build a pipeline to get all that unused water.

However, other experts don't agree with SNWA's calculations of how much water is or isn't in areas like Dry Lake Valley (heh, it just sounds like a place for a pipeline to get water). See for example: "Tom Myers, a consulting hydrologist for the Great Basin Water Network, said the water authority is asking for several times the amount of water that's available, according to data compiled previously by the state engineer's office."

That's right. SNWA wants to spend billions and billions of dollars to build a pipeline. Not only will it vastly increase the security risks to Las Vegas and send Sin City deeper into its tailspin of unsupportable growth, but now they're proposing straws to places without the water they claim is there.

Read more about SNWA's risky plan

iPhone in the car

July 24, 2007

According to a comment in a post at Engadget it appears there may be a way to get the Belkin Auto Kit to work with the iPhone. I haven't been so fortunate. It appears (as the article suggests) to charge but it steadfastly refuses to play audio through the dock connector.

On the other hand having lived through Treo smart phones it is great to have a device that handles connecting and transferring Bluetooth calls as well as this does. Talk in the phone and press the button on the headset and the call is transfered seamlessly. A thing of beauty.

Read more about iPhone in the car

Effective communications with Congress (and others)

July 20, 2007

I've recently been doing some letter writing. Though I'm still far behind on my emails and correspondence with friends there are some issues that require the attention of our elected officials and government agencies. As a part of this process looking at how to be most effective has been important. Fortunately the Congressional Management Foundation has done research on this very topic and can help show us how to make letters more effective.

A few points jump out immediately:

  • Personalized letters have more impact than form letters
  • Shorter is better
  • Grassroots groups can gain from understanding the process

None of these should be barriers. It is far better to write a long windy letter than none at all. While understanding the process and getting the timing right is great perfect timing doesn't do anything if the message isn't delivered.

Read more about Effective communications with Congress (and others)

Keep 'em in the dark and feed 'em....

July 20, 2007

Launce Rake tried to get an estimate from the Southern Nevada Water Authority (SNWA) what they now estimate the water grab is going to cost. He points out that however many billions of tax dollars are going down this hole, er pipeline, it is certainly more than the 20-year-old $2 billion figure that is oft tossed about.

The SNWA plan seems to mirror the decades-old plan for the downwinders. The plan then suggested that if the government didn't collect data it couldn't ever be sued to release data under sunshine laws. Apparently SNWA would like us to believe the same of the water grab plans. A staff person for SNWA told Rake that they hope to have a number soon that they can share with the public.

Understanding that the number is a moving target that changes with time is easy. It is harder to understand why SNWA doesn't have a figure. Unlike the downwinder situation SNWA is dependent upon state and local funding for their project. The nominal blank-check of the defense industry is tucked away and not out on the table as it was for nuclear testing during the cold war. So the situation is either that SNWA's mis-management of this project is so great that they don't have a number or that they don't want to share it for fear it will awaken citizens of Nevada to what is going on here.

Read more about Keep 'em in the dark and feed 'em....

Give away business idea

July 19, 2007

Here is an idea for a business I would like to use but don't have the time to create. In reading Peter Walsh's book, or listening to the audiobook to be precise, there is a great suggestion. For holiday gifts ship them to the place you'll be and skip the whole schlepping them through the airport or in the car. R.E.I. makes this easy by allowing orders to be picked up at the store. The service I would love to use is one whereby I can send packages ahead to where I'll be for the holidays without complexity. Sure I can send them to a house but there are always issues around that. It seems a business with many locations and already large storage space would be perfect. Perhaps even one of the shipping companies could provide this service.

Read more about Give away business idea

Pages

  • « first
  • ‹ previous
  • …
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • …
  • next ›
  • last »
Subscribe to

Search this site.

© 1995-2016 Joshua Brauer.

GitHub RSS feed 500px LinkedIn