NetBeans 7.2 : Dreamweaver in Linux and more.


NB_box72

This is an amazingly powerful tool that equally powerful to work as a platform framework for Java desktop applications and as an IDE (integrated development environment) while developing something with PHP, JavaScript, Scala, Clojure, C, C++, Groovy, Ruby, Python and many more.

The NetBeans IDE runs virtually anywhere given the fact that a JVM is installed. It is developed in Java. You can download it here: http://netbeans.org/downloads

I recommend Net-beans 7.2

How to Remove Unncessary Space (Blank lines) Between lines in Dreamweaver?


Easier:

  1. Open the file
  2. Click CTRL + F
  3. Select “Current document” in “Find in” (You can also select the folder if you have multiple files)
  4. Search in “Source code”
  5. Tick “Use regular expression”
  6. Type “[\r\n]{2,}” (without quotes) in “Find”
  7. Type “\n” (without quotes) in “Replace”
  8. Press “Replace All”

Done.

WordPress sitemap HTML using template


Create a template and Paste this

<h2 id="authors">Authors</h2>
<ul>
<?php
wp_list_authors(
  array(
    'exclude_admin' => false,
  )
);
?>
</ul>

<h2 id="pages">Pages</h2>
<ul>
<?php
// Add pages you'd like to exclude in the exclude here
wp_list_pages(
  array(
    'exclude' => '',
    'title_li' => '',
  )
);
?>
</ul>

<h2 id="posts">Posts</h2>
<ul>
<?php
// Add categories you'd like to exclude in the exclude here
$cats = get_categories('exclude=');
foreach ($cats as $cat) {
  echo "<li><h3>".$cat->cat_name."</h3>";
  echo "<ul>";
  query_posts('posts_per_page=-1&cat='.$cat->cat_ID);
  while(have_posts()) {
    the_post();
    $category = get_the_category();
    // Only display a post link once, even if it's in multiple categories
    if ($category[0]->cat_ID == $cat->cat_ID) {
      echo '<li><a href="'.get_permalink().'">'.get_the_title().'</a></li>';
    }
  }
  echo "</ul>";
  echo "</li>";
}
?>
</ul>


HTML 5 samples


Many Stackers may already know I’m tired of hearing about the lack of Flash on mobile devices. I’ve always tried to explain we are not missing anything and Flash is great but it’s a resource and battery hog among other things (security) for mobile devices. 

So i went in search of some HTML5 luv to show some of it’s potential. While we fight for Flash I think it’s also important we fight for something even better than Flash. Something that does not suck our resources and battery dry and something that maintains security while being used on a mobile phone. 

Samples of HTML5:

Sample 0
Sample 1
Sample 2
Sample 3
Sample 4
Sample 5
Sample 6 
Sample 7
Sample 8
Sample 9

I think we will be JUST fine without Flash as long as people push the envelop with HTML5. We should be requesting developer push and deliver the best for our mobile experience and not just follow what others have always done.