OpenCraft
Follow OC!
  • Home
  • About
  • Solutions
  • Portfolio
  • Clients
  • Blog
  • Contact

kratib's blog

Thu, 2009-07-09 09:36
Tags:
  • drupal
  • i18n

Reverse-translating a string back into English in Drupal

By: 
Karim Ratib

While writing the security component for Views Bulk Operations, I needed to create a permission for the execution of each action declared in the system. This would allow the admin to decide which user groups would be able to execute which actions.Read more

  • 14 comments
Sun, 2009-06-28 03:20
Tags:
  • drupal

Who needs Google Spreadsheets: Use Sheetnode!

By: 
Karim Ratib

Google Spreadsheets are cool, but their problem is that they are hosted at Google instead of in your intranet portal. That means that they don't integrate easily with your other Web documents, in terms of classification, indexing, permissions, etc. The API provided by Google does help there, it's true. But what about adding new features? Google Docs simply isn't open source, and therefore is not ideal.Read more

  • 89 comments
Tue, 2009-06-23 01:17
Tags:
  • Community
  • drupal

Code contribution: Views Bulk Operations (VBO)

By: 
Karim Ratib

In Drupal, can you modify the author of all nodes of type 'Story' whose title contains the word 'News:' to be user 'editor', without going through each node manually (or programmatically) ?

Before Views Bulk Operations (VBO for friends), you couldn't.

VBO builds upon existing modules and APIs to perform the useful function of mass-editing nodes, users, comments, or any other Drupal object. It reuses the incredibly powerful query builder [Views][] to list the nodes of interest, and it reuses the [Actions API][] to allow users to apply operations upon all selected nodes at once.Read more

  • 11 comments
Fri, 2009-06-19 09:51
Tags:
  • coding
  • php

The Automatic Resource Destructor pattern

By: 
Karim Ratib

What happens if you need to open a file with fopen, but find that your function can exit at multiple points? It is tedious and error-prone to call fclose at each exit point. Alternatively, you could re-structure your code to only exit at the bottom, thereby calling fclose only once, but you would end up with many nested blocks that hamper readibility and are generally considered bad programming style.Read more

  • 3 comments
Thu, 2009-05-07 05:22
Tags:
  • egypt
  • open source

Where in the world is open source?

By: 
Karim Ratib

Red Hat released an interesting map of open source activity worldwide. I was happy to find that Egypt is ranked among FOSS contributors, along with Jordan, Tunisia, and a few other Arab countries. Here at OpenCraft we are proud to be part of the companies that put Egypt on this map. At a rank of 58 (out of 75), there's only room to grow!

Wed, 2008-10-08 00:37
Tags:
  • coding
  • drupal
  • php

Beware PHP $_REQUEST!

By: 
Karim Ratib

I recently came across an interesting bug that I thought to share with you PHP/Drupal heads.Read more

  • 21 comments
Fri, 2008-03-28 04:25
Tags:
  • drupal

Translating SQL thinking to Drupal

By: 
Karim Ratib

Using the CCK + Views platform, we can replicate the traditional ER (Entity-Relationship) framework into a rapid application development environment that minimizes procedural and SQL programming by replacing most of it with "Visual ER programming": a way to specify data model and behaviour in terms of SQL-like abstractions directly inside the runtime Drupal environment - and reaping the benefits of incremental, always functional output.Read more

ER Modeling

Tue, 2008-02-12 11:10
Tags:
  • Community

TechSeminar #13 - 12/2/2008 - Arabic Speech Recognition

By: 
Karim Ratib
Event: 
Tuesday, February 12, 2008 - 20:30 - 22:30

The beginning of a new year is always a busy time. I hope it started in
the right direction for all of you! This year, we have plans to enlarge
the scope of the OC TechSeminar, with a little help from our friends and
partners. More on that later, but for now we are happy to announce an
exciting topic that should be of interest to many of you.

PRESENTATION ABSTRACT
Speech recognition is the most natural human interface to work with
computers and mobiles, we will present a technology overview of existingRead more

  • 5 comments
Thu, 2007-12-06 12:31
Tags:
  • apache
  • coding
  • drupal
  • ubuntu

Enabling clean URLs for Drupal on a clean Ubuntu

By: 
Karim Ratib

This article applies to Ubuntu with Apache 2, MySQL 5 and PHP 5 installed from the package manager.

When you start using Drupal on Ubuntu, one of the first things to do is to enable clean urls. That page will first ask you to run the clean URL test, which will show you if the underlying Apache infrastructure is ready for this or not. It it's ready, clicking the test link should bring you back to the same page, but with the radiobuttons enabled. Otherwise, you will get a "page not found" error.Read more

  • 12 comments
Mon, 2007-12-03 00:22
Tags:
  • coding
  • drupal
  • javascript

How to use other JavaScript libraries that use "$" in Drupal

By: 
Karim Ratib

Drupal uses jQuery for all its JavaScript work. This library defines the variable "$" as a shorthand for jQuery, to allow writing concise code. However, other JavaScript libraries such as script.aculo.us and prototype also use the same variable name, making it a problem to use them in Drupal!Read more

  • 6 comments
  • 1
  • 2
  • next ›
  • last »

Our work

AUC Google Apps Migration

Google and AUC formed a partnership to enhance the services...

African Network for Localisation

Building a community driven drupal site to support the African...

View our complete portfolio


OpenCraft

  • About
  • Team
  • Process
  • Community
  • Media Kit
  • Portfolio
  • Clients
  • Industries
    • Social economic development
    • Multimedia culture
  • Services
    • Drupal development
    • Information architecture
    • Open source software development
    • Social network engineering
  • Request quote
  • Contact
  • Search
Blog

Our profiles at:

Drupal Google
rss

Creative Commons License
search