Remove ‘Add Comment’ Custom Module

drupal_branding_2012One of the advantages of using Drupal as a CMS is the ability to extend its core functions using modules that can be either downloaded from the main Drupal site (contributed modules) or created locally/in-house for custom functions. It also allows for the creation of custom themes that can meet the needs of a client or the main users of the site.

I recently created a custom site for a client using Drupal as the foundation. The child theme I made was based on the Twitter Bootstrap theme and along the way I discovered that I needed to make use of the template.php (pre-processor functions) and custom modules to modify some core functions of Drupal. One thumb rule when developing any web project based on a CMS is to never modify the core files. This is because updates for the various CMSs come in every now then and its the core files that need to be updated. If you modify any of the core files two things can happen:

Continue reading Remove ‘Add Comment’ Custom Module

February 6, 2014

Posted In: Information Technology

Tags: ,

Leave a Comment

Is Twitter used as a DDoS tool?

It was heading to midnight when I received a mention on Twitter from my sister; I was just about to shut down my computer after working for almost 2 hours on a UI design. I found it strange that she had sent me a mention and yet we are in the same house and she had just said goodnight. What was more strange was the Twitter message that read, “haha this blog by you is nuts“, followed by a link of which I foolishly clicked.

DDoS Tweet
DDoS Tweet

You should know I am always conscious of security stuff especially cyber security. I guess I was too tired to think about it; I was just about to head to bed after a long day of running up and down.

On clicking the link, I was taken to a site that had a 500 server error message. On seeing this error a quick thought came into my head that this was most likely a DDoS attack. My guess is that either someone used my sister’s twitter account (hacked) to spread the link through the mentions feature or Continue reading Is Twitter used as a DDoS tool?

January 21, 2014

Posted In: Information Technology

Tags: , ,

Leave a Comment

Multiple Box Shadows in LESS CSS

Currently I’m working on a project that requires the use of LESS. It seems with every new project, I get to learn new things and its one of the reasons I enjoy web design and development. And while using LESS, my CSS code has become more clean, readable and manageable. So what is LESS? I won’t repeat how it has been defined by the creators of this dynamic stylesheet language. Find out more about it here. But in brief, its a CSS pre-processor that kind of makes CSS act like a real programming language, with help of Javascript.

/*VARIABLES - This section stores constants*/
@highlight-color:#fcd432;/*Main color - yellow*/
@color-base:black;
@main-color:#ffffff;
@font-base:HelveticaNeue, Arial;

An example of LESS CSS code

Continue reading Multiple Box Shadows in LESS CSS

December 19, 2013

Posted In: Information Technology

Tags: , ,

Leave a Comment

Awesome Trailer Openings

The intro of any story or film should be captivating enough to capture the reader or viewer. I love movies. No hiding about that fact; I’m a true movie hog. But this is not for the purpose of entertainment and enjoyment only but because movies are a form of art – moving pictures, story building, character building, sound, props, scenery, visual effects – all mixed into one entity. So this past week two movie trailers were released that caught my attention: The Amazing Spiderman 2 and the new Godzilla verision. Check out the trailers below, especially the Spiderman. In that trailer the transition from the spider emblem to Spiderman falling towards New York city looks awesome. In the Godzilla trailer, I suspect they used a soundtrack from the movie, 2001: A Space Odyssey, at the beginning (and I had to tweet about this early today).

Anyway, enjoy the brief viewing as you await for the release of these two movies in 2014. And this has been another random post.

The Amazing Spiderman 2

Godzilla

December 11, 2013

Posted In: Random Stuff

Tags: ,

Leave a Comment

Text Rendering in CSS

Digging deep into CSS research as I worked on a site, I came across a new CSS feature called text-rendering. It basically helps in improving legibility of text (kerning improvements) and is actually an SVG property (not defined in any CSS standard). It has four values:

  • auto: allows the browser to choose a setting itself
  • optimizeSpeed: focuses on speed
  • optimizeLegibility: focuses on advanced rendering
  • geometricPrecision: precise rendering

Example:

.myClass { text-rendering: optimizeLegibility; }

Browser support for this property is not consistent but its not noticeable when used unless you’re a hawk eye :). I tried it out and actually just noticed a single word change its kerning upon refreshing the page. The rest of the text values didn’t change but this property is based on kerning.

Image showing kerning demonstration
Kerning. Source: Wikipedia

 

For further reading:

November 29, 2013

Posted In: Information Technology

Tags: , ,

Leave a Comment

Media Queries

Media queries is a CSS 3 feature that allows web content to adapt to different screen sizes/resolutions i.e. from the large 1400px and above screens to the small screens of mobile devices (width of 320px). This feature is an important factor in developing responsive websites and web applications. I’ll write a comprehensive post on responsive design in the near future.

So in my quest to understand how media queries work, I Continue reading Media Queries

November 26, 2013

Posted In: Information Technology

Tags: , ,

Leave a Comment