Main menu

28 Apr

My Take on BUSH'S® White Chicken Chili

Published by Mark W. Breneman

With minor tweaks I won the crowd favorite in our office chili cook-off with this recipe.

http://allrecipes.com/recipe/bushs-white-chicken-chili/

My Tweaks:
-Gluten free flour
-More Beans
-flavor the chicken when cooking with red chili powder and smoked chipotle powder.
-Add lots of smoked chipotle powder

26 Apr

set CCK default value from query (Multi-Value)

Published by Mark W. Breneman

Just in case you may need to populate a CCK field from a db query OR more to the point, next time I have to:

global $user;
$qdata= 'db_query(SELECT field_school_studyareas_value
FROM
content_field_school_studyareas
where nid in (select nid from node WHERE node.type in ("exhibitor_profile") and uid ='.$user->uid.')) ' ;

while ($row=db_fetch_array($qdata))
{
$var[]=array('value' =>$row['field_school_studyareas_value']);
}
return $var;

Yes a join would have been far better. I'll fix that soon.

26 Apr

Mobile website Resources

Published by Mark W. Breneman

Over the next few weeks or more likely months, I'm digging in deep to learn more about building good mobile sites. A lot has transpired in the mobile world while I have been working heads-down the desktop web world.

I am blowen away with responsive design and how it can bridge the desktop and mobile world.

The Drupal Omega Theme is very impressive right out of the box. It is going to take me a while to work through all of the options and

One thing that I have not seen in many responsive designs is good mobile menu support.

29 Mar

Drupal group by any field - Remove Druplicates

Published by Mark W. Breneman

I had a view that repeated a value several times even though I clicked the Distinct: Yes and was sill getting repeated values. In the SQL I found that the Distinct setting just adds group by nid. Since I was trying to get distinct values for another field, grouping by nid did nothing for me.

I found a few resources that pointed to views_pre_execute and found that to be a really really handy fix.

08 Mar

On Line 16:9 ratio caculator

Published by Mark W. Breneman

Just in case you have not yet had your morning coffee, or just do not want to do the math, here is a quick tool to figure image sizes to keep a 16 by 9 ratio.
http://size43.com/jqueryVideoTool.html

09 Jan

Make sprite based nav ez

Published by Mark W. Breneman

From the site:
Single sprite (What's that?) navigation is great, but we all know it can get a little bit tedious. All that measuring of pixel perfect photoshop slices, careful coding of your CSS and subsequent calculator bashing is enough to drive anyone to start microwaving fluffy kittens. Wouldn't it be great to have a fancy online tool to take care of all the boring stuff for you in a few simple clicks?

http://labs.engageinteractive.co.uk/nav-o-matic/

04 Jan

Show / Hide paragraph under heading: jquery

Published by Mark W. Breneman

I was looking to make a really simple FAQ page that consisted of questions in h2 headers and answers under the h2s in simple paragraphs. I could not find this exact solution so after a bit of research I made my own.

jquery:

$(document).ready(function(){
$(".faq h2").nextUntil("h2").slideToggle();
$(".faq h2").click(function() {$(this).nextUntil("h2").slideToggle();});
});

HTML:

27 Dec

Rambo Architecture Vs The Chaos Monkey

Published by Mark W. Breneman

Ok you had me at Rambo Architecture.... but Rambo Architecture vs Chaos Monkey gotta read....

Here is a fantastic article about netflix using Amazon Web Services and maintaining uptime even if the cloud hosting is having issues. This article introduces "Rambo Architecture"- "Each system has to be able to succeed, no matter what, even all on its own.” And it also introduces "The Chaos Monkey" test scrips, that randomly turns off servers and data bases to make sure the Rambo Architecture keeps running. Stop I my inner server admin is 1/2 crying and 1/2 laughing.

Pages