jensen

Are you pondering what I'm pondering?
  • Blog
  • Archive
  • About Me
  • Contact
Home

foss

Questions in decent English, please.

Submitted by jensen on May 28, 2009 - 3:13pm

Decent english learn PLZ. understanddding is hard. forums international. make oter typo here. WHY NOT HELP ME????!!!!??

Please, when you are posting something on an English or international forum make sure your question is clear and grammatically correct. I don't care if it may contain a typo or two, but - even if English is not your native language - if you don't put some effort into making your question understandable to others a lot of people will not even look at it and you won't be helped as fast as you would like.

For those of you who haven't read How To Ask Questions The Smart Way, please do so.

Thank you!

  • Add new comment
Tags:
  • english
  • forum
  • foss

Phrase from the nearest book meme

Submitted by jensen on November 13, 2008 - 12:17am

For this task, we need to know the function's name, its location in memory and the parameters it takes.

From: Game Programming Gems chapter 1.5, A Generic Function-Binding Interface.

  • Grab the nearest book
  • Open it to page 56
  • Find the fifth sentence
  • Post the text of the sentence in your journal along with these instructions
  • Don't dig for your favorite book, the cool book, or the intellectual one: pick the CLOSES
  • Add new comment
Tags:
  • foss
  • general
  • meme

Fancy jQuery table coloring

Submitted by jensen on September 17, 2008 - 4:55pm

I've never been a great JavaScript wizard or user even, but recently I've began to use jQuery. jQuery is a lightweight JavaScript library that emphasizes interaction between JavaScript and HTML. jQuery is the JavaScript framework used by Drupal, hence my connection to it.

I must say, I'm quite impressed by the power JavaScript has. I never knew it had so many possibilities. Things I used to write complex PHP snippets for can be simply done using JavaScript which is great for static HTML websites.

For example, let's say you have a table and you want to change the background color for odd table rows. You could change the background color for each row, but if you want to change the color later on you need to replace quite a few elements. Using Find-And-Replace-All might be a solution, but let's forget about that for now. The best solution is to add a class. But what if the person adding new elements doesn't know HTML and you don't want to bother them with adding classes to the correct table row.

Assume the table has a class called sortable and you have a class in your CSS file called odd.

$(document).ready(function() {
  $('table:sortable tbody tr:odd').addClass('odd');
});

That's it. All there is to it. It will add the class odd to the odd table row elements. Counting is done by the build in JavaScript element counter.

  • Add new comment
Tags:
  • drupal
  • foss
  • jquery

Understanding Drupal

Submitted by jensen on September 6, 2008 - 8:00pm

I finally came around to view the Understanding Drupal DVD I bought from Lullabot.

Extract from the web page:

The DVD provides an overview of Drupal as a content management system, as a PHP web application framework, and as a developer community. Its documentary-style exploration covers all the terminology and fundamental concepts for both site administrators and developers. If you’ve ever been confused by Drupal or are still trying to wrap your head around the community and platform, then this video is a roadmap to accelerate your journey up the Drupal learning curve. Topics include:

  • How content is entered and managed
  • How users and user permissions are handled
  • What blocks are and what they can do
  • The concepts and capabilities of Drupal’s powerful module system
  • How Drupal handles navigation and its menu system
  • How themes alter the site layout, design, and presentation
  • Site configuration and administrative messages and settings

I have been working with Drupal intensivly for quite some time now so I start getting to know all the tricks and terms but for someone who's new to Drupal this is a must see video which explains it far better than any tutorial or handbook page I've read so far.

  • Add new comment
Tags:
  • drupal
  • foss
  • movie
Syndicate content

Tags

blog cck cvs development drupal foss hosting jsomers linux php tinymce ubuntu
more tags

Buttons

I love Smashing Magazine!
This is a personal web page. Things said here do not represent the position of my employer or any organization I am associated with unless otherwise noted. Everything on this website is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license.
Fervens Drupal theme by Leow Kah Thong. Designed by Design Disease and brought to you by Smashing Magazine.