Tuesday, August 13, 2013

5 (Free) Tools and programs that no Web developer should do without

Here is a bucket list of 5 important tools that (I believe) every web developer should have (in no particular order):

#1: Notepad ++

This is a great (free and open source) code editor with syntax highlighting. the only thing I've found it's lacking is some CSS3 highlighting.

#2: Resize My Photos

600 photos to re-size?!!? Oh no!! Re-size my photos has you covered with bulk image re-sizing! No problems here, it works smoothly and flawlessly.

#3: Firebug for Firefox

Need to debug a CSS problem?  Don't know which element is being affected? Use firebug for all your html and css troubleshooting needs. You probably already have this module, but I thought I'd throw it in there.

#4: Zementa

What's there to say? whether blogging or creating we content Zementa is a free tool that helps keep your content relevant. just watch out for Zementa logos that seem to appear; they can be erased, but can get annoying.

#5: Nitro Reader 3

Need to read or convert a PDF file? Try Nitro Reader 3, it has a cleaner viewer/printer than Adobie and it's UI is a lot like that of Microsoft office 2010.

This all comes from 4 years of web development experience, I use all of these everyday at work and they couldn't be much easier to use! 

Feel free to leave a comment.

Wednesday, June 12, 2013

Dynamic login/log out link for Drupal 7

Because my logout/login link for Drupal 7 was so popular I've decided to post this piece of code that will include the username of the logged in user

<!-- Again, this php code goes in the page.tpl.php or in a block with php filter -->
<?php //this will display the username if the user is logged in
global $user; if ($user->uid) { 
print $user->name; } 
?>
<?php  //this is the same as the old code, printing a link to login or log out
global $user; if (!$user->uid) { 
print "<a href='http://".$base_path."/user'  class='logged out'>login</a>"; 

else {
print "<a href='http://".$base_path."/user/logout' class='logged in' >logout</a>";
 } 
?>

Hope you enjoy!