<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1881179913699225953</id><updated>2011-11-24T20:07:39.081Z</updated><category term='PHP'/><category term='Drupal'/><category term='GWT'/><category term='SSH'/><category term='javascript'/><category term='SQL'/><category term='Motivation'/><category term='CSS3'/><category term='Practice'/><category term='HTML'/><category term='Marathon'/><category term='Management'/><category term='Servers'/><category term='Portfolio'/><category term='Programming'/><category term='Theory'/><category term='Dynamic DNS'/><category term='Photoshop'/><title type='text'>"Passim" web management</title><subtitle type='html'>Unusual web problem solutions</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://passivemanagement.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1881179913699225953/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://passivemanagement.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>pasivemanagement</name><uri>http://www.blogger.com/profile/12585883706012463018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_T9qY3yjxbsU/Sz4CFt5NG3I/AAAAAAAAAP0/hrERlMD9m4c/S220/Janis_WEB.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>39</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1881179913699225953.post-9021896196307048443</id><published>2011-05-27T00:11:00.000+01:00</published><updated>2011-05-27T00:11:44.243+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='HTML'/><title type='text'>Returning Javascript array keys - numeric array</title><content type='html'>While creating rather simple JavaScript widget today, based on Date object I faced a tiny and small problem; As you all know Date objects prototype function getMonth(), returns a numeric representation of month. It means January = 0 and&amp;nbsp;December&amp;nbsp;of course is 11.&lt;br /&gt;But lets take a simple&amp;nbsp;example&amp;nbsp;- You are building a drop down selection calendar, with 3 selection boxes; Year, Month and Day.&lt;br /&gt;So, your month's will be not numbers but strings. Problem, how to map this with getMonth() numeric representation? Here is a &lt;a name='more'&gt;&lt;/a&gt; small function I,ve created;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;function getMonthIndex(month){&lt;br /&gt;var months = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];&lt;br /&gt;var b = months.length&lt;br /&gt;for(var i=0; i &lt; b; i++) {if(months[i]==month) {return i;}else {return;}}}&lt;/code&gt;&lt;br /&gt;Basically this is simple, looping through array, matching month's name's string value with appropriate value in months numeric type array and returning it's index. which in our case is what we need.&lt;br /&gt;And here is a simple example how to use it in action with Jquery.&lt;br /&gt;&lt;code&gt;&lt;br /&gt;$('option').each(function(){&lt;br /&gt;$(this).click(function(){&lt;br /&gt;var d = new Date();&lt;br /&gt;d.setMonth(getMonthIndex($(this).val())); /* Now you have used your textual option selection and swap it to numerical Date objects representation. Use your new setting for your project needs*/&lt;br /&gt;&lt;br /&gt;});&lt;br /&gt;});&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;In my case it was to be able to manipulate with day option selections - remove or add day's  to and from selection list depending on month.&lt;br /&gt;So I,ve created new Date object's property, called getMonthDays().&lt;br /&gt;&lt;code&gt;&lt;br /&gt;function getMonthDays(){&lt;br /&gt;var days = [31,28,31,30,31,30,31,31,30,31,30,31];&lt;br /&gt;if(this.isLeapYear()){ // google for this, there is bunch of scripts to get Leap year.&lt;br /&gt;days[1] = 29;&lt;br /&gt;}&lt;br /&gt;return days[this.getMonth()];&lt;br /&gt;}&lt;br /&gt;Date.prototype.getMonthDays = getMonthDays; // quite a usable prototype, isnt't it?&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Simple, you should agree? Of course I've inspired from similar scripts.&lt;br /&gt;Now we are able to modify our option list manipulation function to look like this.&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;$('#months option').each(function(){&lt;br /&gt;$(this).click(function(){&lt;br /&gt;var d = new Date();&lt;br /&gt;var ind = &lt;br /&gt;var days = $('#days option').val(); // days and month id's are for convenience &lt;br /&gt;d.setMonth(getMonthIndex($(this).val())); &lt;br /&gt;var vu = 32; //(31 days + 1)&lt;br /&gt;do {&lt;br /&gt;$('#days option[value="+days+"]').remove();&lt;br /&gt;v--&lt;br /&gt;}while(d.getMonthDays() &lt; vu) /* looping while we reach amount of day's in particular month, based on user selection */});});&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;So, easy and simple usage of numeric array key manipulation function. And power Java-scripting.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1881179913699225953-9021896196307048443?l=passivemanagement.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://passivemanagement.blogspot.com/feeds/9021896196307048443/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://passivemanagement.blogspot.com/2011/05/returning-javascript-array-keys-numeric.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1881179913699225953/posts/default/9021896196307048443'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1881179913699225953/posts/default/9021896196307048443'/><link rel='alternate' type='text/html' href='http://passivemanagement.blogspot.com/2011/05/returning-javascript-array-keys-numeric.html' title='Returning Javascript array keys - numeric array'/><author><name>pasivemanagement</name><uri>http://www.blogger.com/profile/12585883706012463018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_T9qY3yjxbsU/Sz4CFt5NG3I/AAAAAAAAAP0/hrERlMD9m4c/S220/Janis_WEB.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1881179913699225953.post-8424521179430526268</id><published>2011-03-25T23:11:00.002Z</published><updated>2011-03-26T18:00:51.821Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><category scheme='http://www.blogger.com/atom/ns#' term='Drupal'/><title type='text'>Drupal - Content construction kit (CCK) field information</title><content type='html'>Hi,&lt;br /&gt;&lt;br /&gt;Days ago I was in need for quick access to CCK field table information in order to query Drupal data base. So searching through CCK modules function library I found couple of ones;&lt;br /&gt;1. content_fields() - returns information about content fields - see more for options - &lt;a href="http://api.lullabot.com/content_fields"&gt;http://api.lullabot.com/content_fields&lt;/a&gt;&lt;br /&gt;2. content_database_info() - returns database information about particular field - more goes here - &lt;a href="http://api.lullabot.com/content_database_info"&gt;http://api.lullabot.com/content_database_info&lt;/a&gt;&lt;br /&gt;So having a bit of brainstorming I've created this small&lt;a name='more'&gt;&lt;/a&gt; function -&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;/*&lt;br /&gt; * @type&lt;br /&gt; * node type to retrive fields for&lt;br /&gt; * retuns array with key(['field_name']) =&gt; &lt;br /&gt; * array() database_info&lt;br /&gt; */&lt;br /&gt;function get_all_field_info_cck ($type) {&lt;br /&gt;$fields = content_fields(NULL, $type);&lt;br /&gt;    if($type) {&lt;br /&gt;        $fields_db_info_array = array();&lt;br /&gt;            foreach ($fields as $field) {&lt;br /&gt;                $fields_db_info_array[$field['field_name']] = &lt;br /&gt; &lt;br /&gt;content_database_info($field);&lt;br /&gt;                }&lt;br /&gt;            return $fields_db_info_array; &lt;br /&gt;                    // return an array of given type&lt;br /&gt;        }&lt;br /&gt;        else {&lt;br /&gt;            return; // otherwise returns nothing&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;Anyway there are couple of posts (like this - &lt;a href="http://drupal.org/node/531140"&gt;http://drupal.org/node/531140&lt;/a&gt;), where developers are discussing this topic, so others faced this problem before too.&lt;br /&gt;I hope this will help you in your Drupal developements as it helped me, moreover maybe it'll save you hours of Google(ing).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1881179913699225953-8424521179430526268?l=passivemanagement.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://passivemanagement.blogspot.com/feeds/8424521179430526268/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://passivemanagement.blogspot.com/2011/03/drupal-content-construction-kit-cck.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1881179913699225953/posts/default/8424521179430526268'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1881179913699225953/posts/default/8424521179430526268'/><link rel='alternate' type='text/html' href='http://passivemanagement.blogspot.com/2011/03/drupal-content-construction-kit-cck.html' title='Drupal - Content construction kit (CCK) field information'/><author><name>pasivemanagement</name><uri>http://www.blogger.com/profile/12585883706012463018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_T9qY3yjxbsU/Sz4CFt5NG3I/AAAAAAAAAP0/hrERlMD9m4c/S220/Janis_WEB.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1881179913699225953.post-3157844224684856580</id><published>2011-03-12T17:43:00.000Z</published><updated>2011-03-12T17:43:47.328Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><category scheme='http://www.blogger.com/atom/ns#' term='Drupal'/><title type='text'>Drupal breadcrumb custom settings</title><content type='html'>Some time ago, working on &lt;a href="http://www.devfactory.com/"&gt;Dev-factory project&lt;/a&gt; project, I had a problem to display customized breadcrumb in a way that user can navigate back to parent page while reading child page of specific menu.&lt;br /&gt;Please have a look at this  &lt;a href="http://www.devfactory.com/what-software-factory"&gt;Child Page&lt;/a&gt;, as you can see breadcrumb just below the main navigation displays option to navigate back to parent Menu items, and this is only on pages where menus have children.&lt;br /&gt;Took I vile to get decision and &lt;a name='more'&gt;&lt;/a&gt; here is how I solve it;&lt;br /&gt;1. We need to set active navigation to web sites Main menu - Primary links at our case (Remember Drupal`s default menu is Navigation). In order to make it properly Let's set up custom module so Drupal knows when and what to do. (Here is link about what files you need for Drupal &lt;a href="http://drupal.org/node/206753"&gt;module&lt;/a&gt; - I will no go deeper, only showing the modules code).&lt;br /&gt;&lt;code&gt;&lt;br /&gt;/**&lt;br /&gt; * Implementation of hook_init().&lt;br /&gt; */&lt;br /&gt;function breadcrumb_init() {&lt;br /&gt;  // Set active menu to Primary, when not on admin pages.&lt;br /&gt;  if (arg(0) != 'admin' &amp;&amp; arg(1) != 'add') {&lt;br /&gt;    menu_set_active_menu_name('primary-links');&lt;br /&gt;  }&lt;br /&gt;}&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;So by using hook_init I am telling that if not admin page or not node adding page Drupal need to switch to primary-links.&lt;br /&gt;Next step theming - here is a function you can use in your template.php file naming it - yourthemename_breadcrumb ;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;function energetic_breadcrumb($breadcrumb) {&lt;br /&gt;  $breadcrumb = menu_get_active_breadcrumb();&lt;br /&gt;  if (!empty($breadcrumb)) {&lt;br /&gt; $title = drupal_get_title();&lt;br /&gt;   unset($breadcrumb[0]);&lt;br /&gt; if (arg(0) == 'admin' || arg(0) == 'user') {&lt;br /&gt;    return '&lt;div class="breadcrumb"&gt;' . implode(' &gt; ', $breadcrumb) .'&lt;/div&gt;';&lt;br /&gt; }&lt;br /&gt; if (arg(0) == 'node' &amp;&amp; arg(1) == 'add') {&lt;br /&gt;    return '&lt;div class="breadcrumb"&gt;' . implode(' &gt; ', $breadcrumb) .'&lt;/div&gt;';&lt;br /&gt; }&lt;br /&gt; if (arg(0) == 'search') {&lt;br /&gt; return;&lt;br /&gt; }&lt;br /&gt; else {&lt;br /&gt; return '&amp;#60;h4 class="breadcrumb"&gt;' . implode(' &gt; ', $breadcrumb) . ' &gt; ' . $title . '&amp;#60;/h4&gt;';&lt;br /&gt; }&lt;br /&gt;  }&lt;br /&gt;}&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;The result you can see on Page I mentioned above.&lt;br /&gt;Took me couple of hours at first time to get it ready, but looks good and problem solved.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1881179913699225953-3157844224684856580?l=passivemanagement.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://passivemanagement.blogspot.com/feeds/3157844224684856580/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://passivemanagement.blogspot.com/2011/03/drupal-breadcrumb-custom-settings.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1881179913699225953/posts/default/3157844224684856580'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1881179913699225953/posts/default/3157844224684856580'/><link rel='alternate' type='text/html' href='http://passivemanagement.blogspot.com/2011/03/drupal-breadcrumb-custom-settings.html' title='Drupal breadcrumb custom settings'/><author><name>pasivemanagement</name><uri>http://www.blogger.com/profile/12585883706012463018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_T9qY3yjxbsU/Sz4CFt5NG3I/AAAAAAAAAP0/hrERlMD9m4c/S220/Janis_WEB.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1881179913699225953.post-7789232976725511696</id><published>2011-02-24T17:55:00.002Z</published><updated>2011-02-24T17:58:31.571Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><category scheme='http://www.blogger.com/atom/ns#' term='Drupal'/><title type='text'>Helper function to get taxonomy name based on Drupal arg</title><content type='html'>Hi,&lt;br /&gt;I found it might be useful to publish this function I,ve created. Since some times you need an extra information in Your pages $title variable.&lt;br /&gt;You can use this in your themes to add additional information on your taxonomy/term/x pages or for whatever else you need to pull something out based on Drupal's argguments ok here &lt;a name='more'&gt;&lt;/a&gt; is the code; &lt;br /&gt;&lt;code&gt;&lt;br /&gt;function get_tax_from_arg ($vid) {&lt;br /&gt;if (arg(0) == 'taxonomy' &amp;&amp; arg(1) == 'term') {&lt;br /&gt;$tid = (int)arg(2);&lt;br /&gt;if(is_numeric(arg(2))) {&lt;br /&gt;$term = taxonomy_get_term($tid);&lt;br /&gt;if(is_object($term)) {&lt;br /&gt;if($vid == $term-&gt;vid) {&lt;br /&gt;$name = $term-&gt;name;&lt;br /&gt;return $name;&lt;br /&gt;}&lt;br /&gt;else return;&lt;br /&gt;}&lt;br /&gt;else return;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;// use like this -  print get_tax_from_arg(1), where 1 is vocabulary id&lt;br /&gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;Here is link to my original post&lt;br /&gt;&lt;a class="active" href="http://api.drupal.org/api/drupal/modules--taxonomy--taxonomy.module/function/taxonomy_get_term/6#comment-12339"&gt;Helper function to get taxonomy name from arg&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1881179913699225953-7789232976725511696?l=passivemanagement.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://passivemanagement.blogspot.com/feeds/7789232976725511696/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://passivemanagement.blogspot.com/2011/02/helper-function-to-get-taxonomy-name.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1881179913699225953/posts/default/7789232976725511696'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1881179913699225953/posts/default/7789232976725511696'/><link rel='alternate' type='text/html' href='http://passivemanagement.blogspot.com/2011/02/helper-function-to-get-taxonomy-name.html' title='Helper function to get taxonomy name based on Drupal arg'/><author><name>pasivemanagement</name><uri>http://www.blogger.com/profile/12585883706012463018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_T9qY3yjxbsU/Sz4CFt5NG3I/AAAAAAAAAP0/hrERlMD9m4c/S220/Janis_WEB.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1881179913699225953.post-3839487277808638669</id><published>2011-01-19T17:56:00.003Z</published><updated>2011-01-29T13:37:34.352Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='HTML'/><title type='text'>Spanning headings in HTML anchor tag</title><content type='html'>Hi,&lt;br /&gt;&lt;br /&gt;Yesterday doing some staff on just to be launched DevFactory project I struggled with problem, how to get in "&amp;#60;a&amp;#62;" tag headings and paragraphs.&lt;br /&gt;&lt;br /&gt;After couple of minutes - easy;&lt;br /&gt;&lt;div class="code" style="border: 1px solid #d6d6d6; padding: 5px;"&gt;&lt;code&gt;&lt;br /&gt;Ok staring with a&lt;br /&gt;&amp;#60;a&amp;#62;&lt;br /&gt;&amp;#60;!--The the idea is to span the paragraphs and headings so--&amp;#62;&lt;br /&gt;&amp;#60;span&amp;#62;&lt;br /&gt;&amp;#60;!--then adding--&amp;#62 &amp;#60;p&amp;#62;Your cool text&amp;#60;p/&amp;#62;&lt;br /&gt;&amp;#60;h2&amp;#62;Super heading&amp;#60;/h2&amp;#62;&lt;br /&gt;&amp;#60;/span&amp;#62;&lt;br /&gt;&amp;#60;/a&amp;#62; &lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;Easy and great, happy html"ing".&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1881179913699225953-3839487277808638669?l=passivemanagement.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://passivemanagement.blogspot.com/feeds/3839487277808638669/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://passivemanagement.blogspot.com/2011/01/spanning-headings-in-html-anchor-tag.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1881179913699225953/posts/default/3839487277808638669'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1881179913699225953/posts/default/3839487277808638669'/><link rel='alternate' type='text/html' href='http://passivemanagement.blogspot.com/2011/01/spanning-headings-in-html-anchor-tag.html' title='Spanning headings in HTML anchor tag'/><author><name>pasivemanagement</name><uri>http://www.blogger.com/profile/12585883706012463018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_T9qY3yjxbsU/Sz4CFt5NG3I/AAAAAAAAAP0/hrERlMD9m4c/S220/Janis_WEB.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1881179913699225953.post-2913320359045449283</id><published>2011-01-11T23:42:00.003Z</published><updated>2011-01-11T23:45:58.622Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><category scheme='http://www.blogger.com/atom/ns#' term='SQL'/><title type='text'>MSSQL VS MySQL Test for reports</title><content type='html'>Hi,&lt;br /&gt;&lt;br /&gt;This might be helper for for all of us, just imagined toady that some times we need different analytical data to dispose.&lt;br /&gt;Like counting page hits or search results, so it might be a challenge run all through database table with 1000K+ records to find data.&lt;br /&gt;&lt;br /&gt;So, today working and expecting to created simple report took me some time to discover simple SQL queries for thsi problem, so here &lt;a name='more'&gt;&lt;/a&gt; is how you can make it:&lt;br /&gt;&lt;div class="code" style="border: 1px solid #D6D6D6;"&gt;&lt;code&gt;&lt;br /&gt;// case in mssql a bit complicated but any way&lt;br /&gt;&lt;br /&gt;SELECT COUNT(CASE WHEN Column_Name1='something' THEN 1 ELSE 0 END), COUNT(CASE WHEN Column_Name1='Other Thing' THEN 1 ELSE 0 END) FROM tableName Table1&lt;br /&gt;&lt;br /&gt;// Query searching though 1000K+ records took 187 seconds, slow, but thats report any way.&lt;br /&gt;&lt;br /&gt;// Case in mysql&lt;br /&gt;SELECT SUM(Column_Name1='something'), SUM(Column_Name1='Other Thing') FROM Table1;&lt;br /&gt;//Well tested on 63k records worst scenario 0.063 secs  &lt;br /&gt;// try even&lt;br /&gt;SELECT SUM(Column_Name1 like '%something%'), SUM(Column_Name1='%Other Thing%') FROM Table1;&lt;br /&gt;//result for me 0.280 secs&lt;br /&gt;// a bits of creative PHP and your report is ready&lt;br /&gt;&lt;/code&gt; &lt;br /&gt;&lt;/div&gt;You should agree MySQL beats it, well of corse it depends on other obstacles, like in mssql case records are up from year 2000 so it means more reads, of course MSSQL case has no optimizations.&lt;br /&gt;&lt;br /&gt;Happy Queries&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1881179913699225953-2913320359045449283?l=passivemanagement.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://passivemanagement.blogspot.com/feeds/2913320359045449283/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://passivemanagement.blogspot.com/2011/01/mssql-vs-mysql-test-for-reports.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1881179913699225953/posts/default/2913320359045449283'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1881179913699225953/posts/default/2913320359045449283'/><link rel='alternate' type='text/html' href='http://passivemanagement.blogspot.com/2011/01/mssql-vs-mysql-test-for-reports.html' title='MSSQL VS MySQL Test for reports'/><author><name>pasivemanagement</name><uri>http://www.blogger.com/profile/12585883706012463018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_T9qY3yjxbsU/Sz4CFt5NG3I/AAAAAAAAAP0/hrERlMD9m4c/S220/Janis_WEB.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1881179913699225953.post-5585743183053599456</id><published>2010-11-10T00:43:00.001Z</published><updated>2010-11-10T00:45:27.715Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><category scheme='http://www.blogger.com/atom/ns#' term='Drupal'/><title type='text'>Creating customized language switcher block on Drupal website in PHP.</title><content type='html'>Hi,&lt;br /&gt;&lt;br /&gt;Tonight I want to share some ideas how to customize or even create you own language switcher block on your Drupal based website. Live example I am using is &lt;a href="http://www.aisc.com/"&gt;Aisc.com&lt;/a&gt;.&lt;br /&gt;Some things you need for that; &lt;br /&gt;1. Enable locale module - you can find under core/optional modules&lt;br /&gt;2. Internationalization or i18n custom module from &lt;a href="http://drupal.org/project/i18n"&gt;drupal.org/project/i18n&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;At first install I18n module and enable all multilingual support what is required - in my case these are all options, because I needed all site content &lt;a name='more'&gt;&lt;/a&gt; to be translated.&lt;br /&gt;After words point to your site`s admin/settings/languages and install all languages you need for your project.&lt;br /&gt;Next step is to create multilingual content, well this basically is easy(don`t forget to enable multilingual support for all you content types - it`s under workflow if you edit you content types settings) - you need to manually translate all nodes form sites default  (which usually appears English) to your chosen language. &lt;br /&gt;Next under each language you need to adjust language settings, by choosing how multilingual support will be displayed, either paths suffix or sub domain. In my example I will use sub domain option but if you look at &lt;a href="http://drupal.org/node/261059"&gt;drupal.org/node/261059&lt;/a&gt; you will find how to adjust path suffix settings.&lt;br /&gt;Ok once we have done all this here is the code, you can choose - either create new module with hook_block or just paste this code in to your themes block.tpl -&gt; block-locale.tpl.php. &lt;br /&gt;&lt;pre&gt;&amp;lt;?php  &lt;br /&gt;    global $base_url; &lt;br /&gt;    $q = $_GET[&lt;span style=' color: Maroon;'&gt;'q'&lt;/span&gt;]; &lt;br /&gt;    $translations = translation_path_get_translations($q); &lt;br /&gt;    $languages = language_list(); &lt;br /&gt;    $output = '&amp;lt;ul&amp;gt;'; &lt;br /&gt;    &lt;span style=' color: Blue;'&gt;foreach&lt;/span&gt; ($languages &lt;span style=' color: Blue;'&gt;as&lt;/span&gt; $language) {&lt;br /&gt;    $output .= '&amp;lt;li &lt;span style=' color: Blue;'&gt;class&lt;/span&gt;=&lt;span style=' color: Maroon;'&gt;"' . $language-&amp;gt;language . '"&lt;/span&gt;&amp;gt;'; &lt;br /&gt;    &lt;span style=' color: Blue;'&gt;if&lt;/span&gt; ($language-&amp;gt;enabled == &lt;span style=' color: Maroon;'&gt;0&lt;/span&gt;) { &lt;br /&gt;    $output .= '&amp;lt;span &lt;span style=' color: Blue;'&gt;class&lt;/span&gt;=&lt;span style=' color: Maroon;'&gt;"language-link-disabled"&lt;/span&gt; title=&lt;span style=' color: Maroon;'&gt;"Coming Soon"&lt;/span&gt;&amp;gt;'; &lt;span style=' color: Green;'&gt;// disabled langugase are not link in my case&lt;/span&gt; &lt;br /&gt;    $output .= '&amp;lt;img src=&lt;span style=' color: Maroon;'&gt;"' . base_path() . path_to_theme() . '/languages/' . $language-&amp;gt;language . '.jpg"&lt;/span&gt; alt=&lt;span style=' color: Maroon;'&gt;"' . $language-&amp;gt;language . '.jpg"&lt;/span&gt;/&amp;gt;'; &lt;br /&gt;    $output .= '&amp;lt;/span&amp;gt;'; &lt;span style=' color: Green;'&gt;// Lookt at the examples reference to see images&lt;/span&gt;&lt;br /&gt;    } &lt;br /&gt;    &lt;span style=' color: Blue;'&gt;else&lt;/span&gt; { &lt;br /&gt;    $path = $translations[$language-&amp;gt;language]; &lt;br /&gt;    $lang = $language-&amp;gt;language; &lt;br /&gt;    $output .= '&amp;lt;a href=&lt;span style=' color: Maroon;'&gt;"' . $language-&amp;gt;domain . '/' . drupal_get_path_alias($path, $lang) . '"&lt;/span&gt; &lt;span style=' color: Blue;'&gt;class&lt;/span&gt;=&lt;span style=' color: Maroon;'&gt;"language-link-enabled"&lt;/span&gt;&amp;gt;'; &lt;br /&gt;    $output .= '&amp;lt;img src=&lt;span style=' color: Maroon;'&gt;"' . base_path() . path_to_theme() . '/languages/' . $language-&amp;gt;language . '.jpg"&lt;/span&gt; alt=&lt;span style=' color: Maroon;'&gt;"' . $language-&amp;gt;language . '.jpg"&lt;/span&gt;/&amp;gt;'; &lt;br /&gt;    $output .= '&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;'; &lt;br /&gt;    } &lt;br /&gt;    } &lt;br /&gt;    $output .= '&amp;lt;/ul&amp;gt;'; &lt;br /&gt;     &lt;br /&gt;?&amp;gt;&lt;/pre&gt;As you can see no searching in contributed modules repository, I little bit of sweat and it works.&lt;br /&gt;Happy coding, and as I mentioned you can see this working live on &lt;a href="http://www.aisc.com/"&gt;Aisc.com&lt;/a&gt;.&lt;br /&gt;If anything is not working drop a comment line.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1881179913699225953-5585743183053599456?l=passivemanagement.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://passivemanagement.blogspot.com/feeds/5585743183053599456/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://passivemanagement.blogspot.com/2010/11/creating-customized-language-switcher.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1881179913699225953/posts/default/5585743183053599456'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1881179913699225953/posts/default/5585743183053599456'/><link rel='alternate' type='text/html' href='http://passivemanagement.blogspot.com/2010/11/creating-customized-language-switcher.html' title='Creating customized language switcher block on Drupal website in PHP.'/><author><name>pasivemanagement</name><uri>http://www.blogger.com/profile/12585883706012463018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_T9qY3yjxbsU/Sz4CFt5NG3I/AAAAAAAAAP0/hrERlMD9m4c/S220/Janis_WEB.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1881179913699225953.post-8734287394368134742</id><published>2010-10-14T16:51:00.008+01:00</published><updated>2010-10-14T19:45:35.131+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><category scheme='http://www.blogger.com/atom/ns#' term='Drupal'/><title type='text'>Playing with your Drupal web sites logo and slogan</title><content type='html'>Hi,&lt;br /&gt;&lt;br /&gt;Kind of&amp;nbsp;working&amp;nbsp;on with&amp;nbsp;&lt;a href="http://www.aisc.com/"&gt;aisc.com&lt;/a&gt;&amp;nbsp;web site today and&amp;nbsp;looking&amp;nbsp;around&amp;nbsp;for some interesting solutions, suddenly I,ve got an idea or actually I needed to find solution for;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;How to get Drupal based web sites logo, slogan and other settings in a block on your web page?&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;Well from first point it looked simple, just to do&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;only, as on your web sites themes page.tpl.php print $logo with in img tag or etc.&lt;br /&gt;But what looks easy not always is easy. So, I took a time to discover and here comes result - working example.&lt;br /&gt;Before we/you start, on your Drupal based website go to &amp;gt;&amp;gt; admin/build/block. Create a custom block and set input format to PHP code, once it`s ready in block body paste something like this;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&amp;lt;?php&lt;br /&gt;$settings = theme_get_settings('your theme name');&lt;br /&gt;If (!$settings[toogle_logo] = 0) {&lt;br /&gt;if (!$settings[default_logo] = 0) {&lt;br /&gt;print '&amp;lt;img alt="this is logo" height="73" src="' .  base_path()  .  path_to_theme() . '/logo.png" width="64" /&amp;gt;';&lt;br /&gt;}&lt;br /&gt;else { &lt;br /&gt;print '&amp;lt;img src="' . base_path() . $settings['logo_path'] . '" width="64" height="73" alt="this is logo" /&amp;gt;'; // this prints out path to you uploaded logo&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;// for slogan &lt;br /&gt;$slogan = variable_get('site_slogan', 'null');&lt;br /&gt;if (!$settings['toogle_slogan'] = 0 ) {&lt;br /&gt;if(!$slogan = " ") {&lt;br /&gt;print '&lt;/code&gt;&lt;br /&gt;&lt;code&gt;Our cooll site slogan: ' .$slogan .'&lt;br /&gt;';&lt;br /&gt;}&lt;br /&gt;else {&lt;br /&gt;print 'Upsss no &lt;strong&gt;Slogan&lt;/strong&gt; on Site&lt;br /&gt;'; // this is for testing&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;// yes image width and heigh is set to my case please adjust to your needs.&lt;br /&gt;?&amp;gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;Ok This is my example, your should adjust it to your web site needs, settings and requirements.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1881179913699225953-8734287394368134742?l=passivemanagement.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://passivemanagement.blogspot.com/feeds/8734287394368134742/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://passivemanagement.blogspot.com/2010/10/playing-with-your-drupal-web-sites-logo.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1881179913699225953/posts/default/8734287394368134742'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1881179913699225953/posts/default/8734287394368134742'/><link rel='alternate' type='text/html' href='http://passivemanagement.blogspot.com/2010/10/playing-with-your-drupal-web-sites-logo.html' title='Playing with your Drupal web sites logo and slogan'/><author><name>pasivemanagement</name><uri>http://www.blogger.com/profile/12585883706012463018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_T9qY3yjxbsU/Sz4CFt5NG3I/AAAAAAAAAP0/hrERlMD9m4c/S220/Janis_WEB.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1881179913699225953.post-2420872709651964591</id><published>2010-10-09T22:45:00.000+01:00</published><updated>2010-10-09T22:45:39.908+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='CSS3'/><category scheme='http://www.blogger.com/atom/ns#' term='Drupal'/><title type='text'>Creating Image gallery with Drupal views and CSS3</title><content type='html'>Hi all,&lt;br /&gt;How many times we are having&amp;nbsp;headaches, with image gallery implementation on web site we are developing -&amp;nbsp;how to create image galleries not installing any third party complex features?&amp;nbsp;&amp;nbsp;I had same challenging question working on a&amp;nbsp;&lt;a href="http://www.whitsundaysailtraining.com/"&gt;www.whitsundaysailtraining.com&lt;/a&gt;&amp;nbsp;website.&lt;br /&gt;To be&amp;nbsp;honest I,ve tested many options before chose this example.&lt;br /&gt;We now that we,ll need to query our data base for pulling out necessary data of our nodes, &amp;nbsp;Drupal &lt;a href="http://drupal.org/project/views"&gt;views&lt;/a&gt; module gives us human friendly environment how to query database and&amp;nbsp;easily get certain look of that.&lt;br /&gt;In this easy to use and&amp;nbsp;maintainable example I`ll show you hot to do that.&lt;br /&gt;Yes before we start, I used image gallery&amp;nbsp;integration&amp;nbsp;&amp;nbsp;from flickr, so you do not need to handle images on your won host.&lt;br /&gt;So to do this you will need&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;(with Drupal 6 installation);&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Drupal&amp;nbsp;&lt;a href="http://drupal.org/project/views"&gt;Views&lt;/a&gt;&amp;nbsp;module.&lt;/li&gt;&lt;li&gt;Drupal&amp;nbsp;&lt;a href="http://drupal.org/project/cck"&gt;cck&lt;/a&gt;&amp;nbsp;module.&lt;/li&gt;&lt;li&gt;Drupal&amp;nbsp;&lt;a href="http://drupal.org/project/emfield"&gt;emfield module&lt;/a&gt;&lt;/li&gt;&lt;li&gt;Drupla&amp;nbsp;&lt;a href="http://drupal/project/lightbbox2"&gt;Lightbbox2&lt;/a&gt;&amp;nbsp;module, to have full&amp;nbsp;beauty.&amp;nbsp;&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;Once you have uploaded and unarchived those files on your server we are ready to start.&lt;/div&gt;&lt;div&gt;First enable all above mentioned modules under admin/build/modules. Then navigate to admin/content/emfield. Srcoll down and find embed image field, click on that and you should see flicrk configuration settings, select allow content from flick.&lt;/div&gt;&lt;div&gt;Then you need to provide API key`s to make all this working - you can get them on your Fickr account, Once this is ready save settings and we are ready to move on.&lt;/div&gt;&lt;div&gt;Let`s make new content type for our Flickr nodes to post imgaes, so navigate to admin/content/types/add.&lt;/div&gt;&lt;div&gt;Give your content name and type (for ease of use I,ve made it both as Flickr), you can also use description area to instruct your site editors what to do with this content type.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Next scroll down submission form settings and remove Body label, we do not need this because our nodes will use only one emfield. Save.&lt;/div&gt;&lt;div&gt;Now we need to add flickr emfield. &amp;gt;&amp;gt; Click on manage fields, scroll down to add field and give a field name and key and from drop down list select embedded image click add and you will be prompted to Field&amp;nbsp;customization&amp;nbsp;page, set all you field features upon your Flickr gallery settings, save and we are ready to go.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;To have some data we need to paste some code from flickr &amp;gt;&amp;gt; go to your Flickr gallery, select and click on image, on right top side click on grab HTML and here is your code, paste it into your Flickr node`s field .&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Once we,ve done couple of nodes lets create view, &amp;gt;&amp;gt; admin/build/views.&lt;/div&gt;&lt;div&gt;Give name, tag description and select node as view type.&lt;/div&gt;&lt;div&gt;Know we are on view dashboard;&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;Under fields find our field_flickr select, under settings delete label - you will not need that. scroll down to format - her light box comes in - select it. Save we have wht we need to display.&lt;/li&gt;&lt;li&gt;Under Filter we need to add Node Type: Flickr, click on add icon(little +) then find filter node type. Under settings select equals to and our node type Flickr.&lt;/li&gt;&lt;li&gt;Basically our view is done, but! As styling option I,ll use&amp;nbsp;unformatted&amp;nbsp;which means that all thumbnails will be wrapped within div tag, We,ll make formating with CSS later.&lt;/li&gt;&lt;li&gt;Then Give our view&amp;nbsp;title&amp;nbsp;- this will be our page&amp;nbsp;title&amp;nbsp;and I suggest to add something under empty text, just in case.&lt;/li&gt;&lt;li&gt;Finally add page as one of your displays, do not forget to create a path for page!!!.&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;Cool&amp;nbsp;back end&amp;nbsp;part is ready, now if you navigate to you view`s page url you should see all thumbnails one on top of each other, so we are ready for CSS.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;code&gt;&lt;br /&gt;// First left floating of all views row div`s&lt;br /&gt;.photos .views-row {&lt;br /&gt;border: none;&lt;br /&gt;clear: none;&lt;br /&gt;float: left;&lt;br /&gt;margin: 10px;&lt;br /&gt;text-align: center;&lt;br /&gt;width: auto;&lt;/code&gt;&lt;br /&gt;&lt;code&gt;}&lt;br /&gt;//then CSS3 box-shadow to create box shadows, cool no 3 hours worth Photoshop hack //images any more&lt;br /&gt;.photos .views-field-field-flickr-embed {&lt;br /&gt;-moz-box-shadow: #9D9D9D 3px 3px 2px; // Our love firefox&lt;br /&gt;-webkit-box-shadow: #9D9D9D 3px 3px 2px; //Chrome and Safari&lt;br /&gt;box-shadow: #9D9D9D 3px 3px 2px; //Opera&lt;br /&gt;min-width: 264px; //this is custom setting for my need only&lt;br /&gt;}&lt;/code&gt;&lt;/div&gt;As you can see I,ve made additional class for this view for better styling - you can add this on views dash board.&lt;br /&gt;So what this CSS3 box shadow tells us? First color`s hash then 3px X vise, 3px Y vise and 2px blur border.&lt;br /&gt;Cool&amp;nbsp;our job is done and we are happy. Navigate to your pages url and Click on Image to see result.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1881179913699225953-2420872709651964591?l=passivemanagement.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://passivemanagement.blogspot.com/feeds/2420872709651964591/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://passivemanagement.blogspot.com/2010/10/creating-image-gallery-with-drupal.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1881179913699225953/posts/default/2420872709651964591'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1881179913699225953/posts/default/2420872709651964591'/><link rel='alternate' type='text/html' href='http://passivemanagement.blogspot.com/2010/10/creating-image-gallery-with-drupal.html' title='Creating Image gallery with Drupal views and CSS3'/><author><name>pasivemanagement</name><uri>http://www.blogger.com/profile/12585883706012463018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_T9qY3yjxbsU/Sz4CFt5NG3I/AAAAAAAAAP0/hrERlMD9m4c/S220/Janis_WEB.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1881179913699225953.post-7273140401986569700</id><published>2010-10-09T14:39:00.005+01:00</published><updated>2010-10-09T14:49:01.794+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Programming'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><category scheme='http://www.blogger.com/atom/ns#' term='Drupal'/><title type='text'>Changing Drupal web page $head_title value.</title><content type='html'>I think I,ve had asked&amp;nbsp;myself&amp;nbsp;this topic quite a lot of times, how to change this web pages variable $head_title to adjust to your sites needs.&lt;br /&gt;So,&amp;nbsp;answer&amp;nbsp;is easy&amp;nbsp;actually, because you have &lt;br /&gt;beautiful&amp;nbsp;&amp;nbsp;theming function phptemplate_preprocess_page();&lt;br /&gt;&lt;br /&gt;So here it..&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;comes simple and easy code:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;function phptemplate_preprocess_page(&amp;amp;$vars) {&lt;br /&gt;$path = $_GET['q'];&lt;br /&gt;$path = drupal_get_path_alias($path, $path_language = '');&lt;br /&gt;$patharray = explode("/", $path);&lt;br /&gt;if ($patharray[0] == 'your-page-path') {// you might need to adjust it to you path settings might be [1] orr... [n]&lt;br /&gt;$vars['head_title'] = 'My cool site';&lt;br /&gt;}&lt;br /&gt;else {&lt;br /&gt;$new_title = array($vars['title'], $vars['site_name']);&lt;br /&gt;$vars['head_title'] = implode(' | ', $new_title)&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;To test it just put "print $head_title;" somewhere on your page &lt;code&gt; &lt;/code&gt; and see how it works.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1881179913699225953-7273140401986569700?l=passivemanagement.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://passivemanagement.blogspot.com/feeds/7273140401986569700/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://passivemanagement.blogspot.com/2010/10/changing-drupal-page-headtitle-value.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1881179913699225953/posts/default/7273140401986569700'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1881179913699225953/posts/default/7273140401986569700'/><link rel='alternate' type='text/html' href='http://passivemanagement.blogspot.com/2010/10/changing-drupal-page-headtitle-value.html' title='Changing Drupal web page $head_title value.'/><author><name>pasivemanagement</name><uri>http://www.blogger.com/profile/12585883706012463018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_T9qY3yjxbsU/Sz4CFt5NG3I/AAAAAAAAAP0/hrERlMD9m4c/S220/Janis_WEB.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1881179913699225953.post-6688551415304938646</id><published>2010-09-28T16:08:00.000+01:00</published><updated>2010-09-28T16:08:26.586+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Practice'/><title type='text'>Setting up server for virtual IDE</title><content type='html'>Hi,&lt;br /&gt;&lt;br /&gt;Finally after several times of experimenting of setting up LAMP development server on Windows7, I decide to stay on VirtualBox.&lt;br /&gt;You can get it on &lt;a href="http://www.virtualbox.org/"&gt;Virtualbox.org&lt;/a&gt; website, download installer and install it to on your machine, thats easy.&lt;br /&gt;I will not go into deeper details how to install Linux server on VirtualBox, thats easy, if you need that too post it here.&lt;br /&gt;The issue what I would like to discuss to day is network settings, so. We have machine - server but hot to connect to it?&lt;br /&gt;If you google for that possible&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;recommendations&amp;nbsp;are:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;VBoxManage setextradata "Ubuntu910server" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssh/Protocol" TCP &lt;br /&gt;VBoxManage setextradata "Ubuntu910server" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssh/GuestPort" 22 &lt;br /&gt;VBoxManage setextradata "Ubuntu910server" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssh/HostPort" 2222 &lt;br /&gt;&lt;br /&gt;VBoxManage setextradata "Ubuntu910server" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestftp/Protocol" TCP &lt;br /&gt;VBoxManage setextradata "Ubuntu910server" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestftp/GuestPort" 21 &lt;br /&gt;VBoxManage setextradata "Ubuntu910server" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestftp/HostPort" 2221&lt;br /&gt;&lt;br /&gt;VBoxManage setextradata "Ubuntu910server" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/guesthttp/Protocol" TCP &lt;br /&gt;VBoxManage setextradata "Ubuntu910server" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/guesthttp/GuestPort" 80 &lt;br /&gt;VBoxManage setextradata "Ubuntu910server" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/guesthttp/HostPort" 8880 &lt;br /&gt;&lt;br /&gt;VBoxManage setextradata "Ubuntu910server" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestmysqltcp/Protocol" TCP &lt;br /&gt;VBoxManage setextradata "Ubuntu910server" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestmysqltcp/GuestPort" 3306 &lt;br /&gt;VBoxManage setextradata "Ubuntu910server" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestmysqltcp/HostPort" 3336 &lt;br /&gt;&lt;br /&gt;VBoxManage setextradata "Ubuntu910server" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestmysqludp/Protocol" UDP &lt;br /&gt;VBoxManage setextradata "Ubuntu910server" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestmysqludp/GuestPort" 3306 &lt;br /&gt;VBoxManage setextradata "Ubuntu910server" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestmysqludp/HostPort" 3336 &lt;br /&gt;&lt;/code&gt;&lt;br /&gt;Which actually are not giving you anything you can get into great mess with how to find your adaptor, then number - Adatoptor 1; 2 or....?&lt;br /&gt;As to&amp;nbsp;&lt;a href="http://www.virtualbox.org/manual/ch06.html#natforward"&gt;http://www.virtualbox.org/manual/ch06.html#natforward&lt;/a&gt;&amp;nbsp;documentation available here we are able to mange this in a lot of easier way(ohh yes your network&amp;nbsp;adapter&amp;nbsp;should be on NAT settings);&lt;br /&gt;&lt;code&gt;&lt;br /&gt;VboxManage modifyvm "Name of machine" --natpf&amp;lt;1-N&amp;gt; "guest&lt;service&gt;,,&lt;tcp udp="" |=""&gt;,,&lt;host for="" forward="" port="" to=""&gt;,,&lt;guest from="=" port="" request=""&gt;"&lt;br /&gt;&lt;/guest&gt;&lt;/host&gt;&lt;/tcp&gt;&lt;/service&gt;&lt;/code&gt;&lt;br /&gt;This is teory, but in practice it looks;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;VboxManage modifyvm "Name of machine" --natpf1 "guesthttp,,tcp,,8880,,80"&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;This example tells that all requests to Hosts port 8880 should be forwarded to por 80 on guest which is of course Apaches default port. Having done this try to browse on&amp;nbsp;&lt;a href="http://localhost:8880/"&gt;http://localhost:8880&lt;/a&gt;&amp;nbsp;and if you have older Apache, you should see good old : &lt;span class="Apple-style-span" style="font-size: x-large;"&gt;It Works!&lt;/span&gt;&lt;br /&gt;Same as you did with http requests your are able to set up all port forwarding you need, you can use same ports from &amp;nbsp;my old code example.&lt;br /&gt;When this is ready you have all your development server working - faster easier, lighter as Linux is.&lt;br /&gt;&lt;br /&gt;Happy developing.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1881179913699225953-6688551415304938646?l=passivemanagement.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://passivemanagement.blogspot.com/feeds/6688551415304938646/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://passivemanagement.blogspot.com/2010/09/setting-up-server-for-virtual-ide.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1881179913699225953/posts/default/6688551415304938646'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1881179913699225953/posts/default/6688551415304938646'/><link rel='alternate' type='text/html' href='http://passivemanagement.blogspot.com/2010/09/setting-up-server-for-virtual-ide.html' title='Setting up server for virtual IDE'/><author><name>pasivemanagement</name><uri>http://www.blogger.com/profile/12585883706012463018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_T9qY3yjxbsU/Sz4CFt5NG3I/AAAAAAAAAP0/hrERlMD9m4c/S220/Janis_WEB.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1881179913699225953.post-1941362295508209994</id><published>2010-09-28T00:14:00.001+01:00</published><updated>2010-10-14T19:40:23.845+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Drupal'/><title type='text'>Working on Alpha Friends site</title><content type='html'>Week before I,ve got new interesting challenge - to  solve some old problems on &lt;a href="http://www.aplhafriends.org/"&gt;Alpha Friends&lt;/a&gt; web sites.&lt;br /&gt;Site owners were publishers too, and as fact they were using &lt;a href="http://issuu.com/"&gt;Issuu.com&lt;/a&gt; - service for publishing their online content. Issue com provides wide range of customization, including xml layout templates.&lt;br /&gt;What they doo, if you follow the instructions on &lt;a href="http://issuu.com/"&gt;Issuu.com&lt;/a&gt;, you can see need of placing certain amount of files on your server, which finally points to some thing like..&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;&lt;code&gt;http://issuu.com/jesper/docs/gan_issuu?mode=embed&amp;amp;documentId=080311154822-183d3d833&lt;br /&gt;4a544518a0d5e324f2543d4&amp;amp;layout=http://example.com/issuu/basicBlue/layout.xml&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;Which actually tells that there is configured template for your publication on your site and displays full screen Flash page.&lt;br /&gt;Well looked a bit like a mess, so I took and old saying that "More simple way is always better". I,ve managed to solve this issue, by creating a  new view with block an page options.&lt;br /&gt;First we will create custom content type with three fields - Title(default), Body for embedding our &lt;b&gt;issuu&lt;/b&gt; code and image file field, I hope you know how to do that, otherwise kick me a comment, and I,ll give instructions for that too.&lt;br /&gt;Then create content - put title of your node, paste embed code from your &lt;b&gt;issuu&lt;/b&gt; library.&lt;br /&gt;Create a small  front page image of your news magazine and upload it. So our test node is ready, ehh no so fast, don,t forget to hide small image field under CCk field display options. Well actually I,ve added date field for better sorting purposes.&lt;br /&gt;Ok, lets jump to creation of view&lt;br /&gt;So since it is Drupal5 we go to &amp;gt;&amp;gt; admin/build/views, click on ADD tab.&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Don`t forget  to give your blog a name&lt;/li&gt;&lt;li&gt;Description too&lt;/li&gt;&lt;li&gt;Tag&lt;/li&gt;&lt;/ol&gt;So what do we need, we need page with small icons to click and then redirecting to our embedded &lt;b&gt;issuu&lt;/b&gt; nodes.&lt;br /&gt;Scroll down to page option give your custom url path, check the provide page view. Use pager too if you thing you will need them. Select how many items per page or set actually. Select provide menu if you want this url appear on your menu sytem.&lt;br /&gt;Ok, now we need to display our image field, scroll down to fields section, Under add field select box find your image flied, select and click &lt;b&gt;"add field"&lt;/b&gt; Now since we,ve got our field to display we need to filter out our custom nodes, jump on filters. Under selection list select node:type, them you will be provide with all your custom content types, set to the one you need and click &lt;b&gt;"add filter"&lt;/b&gt;, this done.&lt;br /&gt;Finally, you can use date field for nicer and better sorting.&lt;br /&gt;Almost done, uhh forgot we need to set display type, scroll page back to page option, under view type I used List view, but you can select the other ones too.&lt;br /&gt;Ok, it is ready to save, cool.&lt;br /&gt;Whats left, if you browse to your newly created page you might find that (in case if you have added multiple nodes), looks like html list, yes that`s it, because we,ve selected it. No vories, find your custom view CSS class it is mostly .view-yourcustomviewname and do something like this.&lt;br /&gt;&lt;code&gt;&lt;br /&gt;.view-yourcustomviewname ul li {&lt;br /&gt;float: left; /*this floats all items to left and sets it no view we would like to have*/&lt;br /&gt;/* you may want to add additional css styling too*/&lt;br /&gt;}&lt;br /&gt;Hurahh our view is ready to look at &lt;a href="http://www.alphafriends.org/newspapers"&gt;HERE&lt;/a&gt;.&lt;/code&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1881179913699225953-1941362295508209994?l=passivemanagement.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://passivemanagement.blogspot.com/feeds/1941362295508209994/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://passivemanagement.blogspot.com/2010/09/working-on-alpha-friends-site.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1881179913699225953/posts/default/1941362295508209994'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1881179913699225953/posts/default/1941362295508209994'/><link rel='alternate' type='text/html' href='http://passivemanagement.blogspot.com/2010/09/working-on-alpha-friends-site.html' title='Working on Alpha Friends site'/><author><name>pasivemanagement</name><uri>http://www.blogger.com/profile/12585883706012463018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_T9qY3yjxbsU/Sz4CFt5NG3I/AAAAAAAAAP0/hrERlMD9m4c/S220/Janis_WEB.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1881179913699225953.post-9021337221726872257</id><published>2010-09-17T17:12:00.001+01:00</published><updated>2010-09-17T17:13:32.234+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Programming'/><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><category scheme='http://www.blogger.com/atom/ns#' term='Drupal'/><title type='text'>Working on Student Alpha project - Drupal</title><content type='html'>This weeks best edition on &lt;a href="http://studentalpha.org"&gt;Student alpha&lt;/a&gt; project. Working on Drupal Pressflow 6.19 installation&lt;br /&gt;Requirement from costumer - WE want change default file name on Field field, of course content type is made by CCK.&lt;br /&gt;Here how it looked from previous developers point of view .. &lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&amp;lt;?php if($node-&gt;field_package[0] != NULL): ?&gt;&lt;br /&gt;&amp;lt;span&amp;gt;&amp;lt;a href="&amp;lt;?php print simplecdn_rewrite_url(base_path().$node-&amp;gt;field_package[0]['filepath'], $append = TRUE, 'imagecache'); ?&amp;gt;"&amp;gt;&lt;br /&gt;Downloads&amp;lt;/a&gt;&amp;lt;/span&amp;gt;&lt;br /&gt;&amp;lt;?php endif; ?&amp;gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;And my Version on code, I,ve decide to enable field field description option on CCK, you should go to your_file_field manage field settings, select on Description -&gt;  enabled and them do a little on code .. here it is.&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&amp;lt;?php if($node-&gt;field_package[0] != NULL): ?&gt;&lt;br /&gt;&amp;lt;span&amp;gt;&amp;lt;a href="&amp;lt;?php print simplecdn_rewrite_url(base_path().$node-&amp;gt;field_package[0]['filepath'], $append = TRUE, 'imagecache'); ?&amp;gt;"&amp;gt;&lt;br /&gt;&amp;lt;?php print $node-&gt;field_package[0]['data']['description']; ?&gt;&amp;lt;/a&amp;qt;&amp;lt;/span&amp;gt;&lt;br /&gt;&amp;lt;?php endif; ?&amp;gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;As you can see I am printing out Description field value in form of associative array.&lt;br /&gt;&lt;br /&gt;Happy Drupaling and coding&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1881179913699225953-9021337221726872257?l=passivemanagement.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://passivemanagement.blogspot.com/feeds/9021337221726872257/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://passivemanagement.blogspot.com/2010/09/working-on-student-alpha-project-drupal.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1881179913699225953/posts/default/9021337221726872257'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1881179913699225953/posts/default/9021337221726872257'/><link rel='alternate' type='text/html' href='http://passivemanagement.blogspot.com/2010/09/working-on-student-alpha-project-drupal.html' title='Working on Student Alpha project - Drupal'/><author><name>pasivemanagement</name><uri>http://www.blogger.com/profile/12585883706012463018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_T9qY3yjxbsU/Sz4CFt5NG3I/AAAAAAAAAP0/hrERlMD9m4c/S220/Janis_WEB.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1881179913699225953.post-1126141237567048706</id><published>2010-07-22T21:16:00.004+01:00</published><updated>2010-10-09T21:24:07.219+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='CSS3'/><category scheme='http://www.blogger.com/atom/ns#' term='Photoshop'/><category scheme='http://www.blogger.com/atom/ns#' term='Portfolio'/><category scheme='http://www.blogger.com/atom/ns#' term='HTML'/><title type='text'>Schrader Design website</title><content type='html'>My Last web site creations - as always screenshots. Codes upon request.&lt;br /&gt;&lt;table style="width: auto;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;a href="http://picasaweb.google.co.uk/lh/photo/uikNZgvDLJB8m7nizbsjbg?feat=embedwebsite"&gt;&lt;img src="http://lh3.ggpht.com/_T9qY3yjxbsU/TEimOFSKj5I/AAAAAAAAAfk/dgweGnhYWQc/s144/Schrader-contact.jpg" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="font-family: arial,sans-serif; font-size: 11px; text-align: right;"&gt;From &lt;a href="http://picasaweb.google.co.uk/Janis.Janovskis/SchraderDesign?feat=embedwebsite"&gt;Schrader Design&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;table style="width: auto;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;a href="http://picasaweb.google.co.uk/lh/photo/8v1FZWPB0UEfMy02dmsd5w?feat=embedwebsite"&gt;&lt;img src="http://lh5.ggpht.com/_T9qY3yjxbsU/TEimOAVwf8I/AAAAAAAAAfo/GS64G_8clPQ/s144/Schrader-index.jpg" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="font-family: arial,sans-serif; font-size: 11px; text-align: right;"&gt;From &lt;a href="http://picasaweb.google.co.uk/Janis.Janovskis/SchraderDesign?feat=embedwebsite"&gt;Schrader Design&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;table style="width: auto;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;a href="http://picasaweb.google.co.uk/lh/photo/GyQ9HoKyq7RI_YxPOaPg8A?feat=embedwebsite"&gt;&lt;img src="http://lh4.ggpht.com/_T9qY3yjxbsU/TEimOZjGKJI/AAAAAAAAAfs/6rPoY_XylD8/s144/Schrader-portfolio.jpg" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="font-family: arial,sans-serif; font-size: 11px; text-align: right;"&gt;From &lt;a href="http://picasaweb.google.co.uk/Janis.Janovskis/SchraderDesign?feat=embedwebsite"&gt;Schrader Design&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;table style="width: auto;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;a href="http://picasaweb.google.co.uk/lh/photo/urv9kSH2imgPjYBg52ikOw?feat=embedwebsite"&gt;&lt;img src="http://lh4.ggpht.com/_T9qY3yjxbsU/TEimOhTpsGI/AAAAAAAAAfw/3WdWqHzJ7GA/s144/Schrader-process.jpg" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="font-family: arial,sans-serif; font-size: 11px; text-align: right;"&gt;From &lt;a href="http://picasaweb.google.co.uk/Janis.Janovskis/SchraderDesign?feat=embedwebsite"&gt;Schrader Design&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;table style="width: auto;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;a href="http://picasaweb.google.co.uk/lh/photo/Cli2bwWi46PLZwGthgJ74g?feat=embedwebsite"&gt;&lt;img src="http://lh4.ggpht.com/_T9qY3yjxbsU/TEimOug50II/AAAAAAAAAf0/jhgXYrhdcDk/s144/Schrader-profile.jpg" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="font-family: arial,sans-serif; font-size: 11px; text-align: right;"&gt;From &lt;a href="http://picasaweb.google.co.uk/Janis.Janovskis/SchraderDesign?feat=embedwebsite"&gt;Schrader Design&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1881179913699225953-1126141237567048706?l=passivemanagement.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://passivemanagement.blogspot.com/feeds/1126141237567048706/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://passivemanagement.blogspot.com/2010/07/schrader-design-website.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1881179913699225953/posts/default/1126141237567048706'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1881179913699225953/posts/default/1126141237567048706'/><link rel='alternate' type='text/html' href='http://passivemanagement.blogspot.com/2010/07/schrader-design-website.html' title='Schrader Design website'/><author><name>pasivemanagement</name><uri>http://www.blogger.com/profile/12585883706012463018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_T9qY3yjxbsU/Sz4CFt5NG3I/AAAAAAAAAP0/hrERlMD9m4c/S220/Janis_WEB.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh3.ggpht.com/_T9qY3yjxbsU/TEimOFSKj5I/AAAAAAAAAfk/dgweGnhYWQc/s72-c/Schrader-contact.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1881179913699225953.post-1983831909243979814</id><published>2010-07-20T18:53:00.002+01:00</published><updated>2010-08-09T13:29:31.976+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><category scheme='http://www.blogger.com/atom/ns#' term='Drupal'/><title type='text'>Solving simplenews block theming in Drupal</title><content type='html'>Ok,&lt;br /&gt;&lt;br /&gt;Some weeks ago I,ve installed Simplenews module for one of my Drupal developments, as you may notice there are a lots of discussions going regarding displaying of subscribe/save button in the Simplenews block, most of them - how to change default SAVE when user is not logged in to Subscribe (or whatever).&lt;br /&gt;First I,ve tested well known function themename_simplenews_block () - no results, &lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt; I went through all .module code and of course I didn,t found any implementation oh the about function, of course there is simplemenys_theme (implementation of hook_theme) on line 2428, but as you can see;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&lt;br /&gt;function simplenews_theme() {&lt;br /&gt;return array(&lt;br /&gt;'simplenews_block' =&gt; array(&lt;br /&gt;'template' =&gt; 'simplenews-block',&lt;br /&gt;'arguments' =&gt; array('tid' =&gt; NULL),&lt;br /&gt;'pattern' =&gt; 'simplenews_block__',&lt;br /&gt;),&lt;br /&gt;'simplenews_status' =&gt; array(&lt;br /&gt;'template' =&gt; 'simplenews-status',&lt;br /&gt;'file' =&gt; 'simplenews.admin.inc',&lt;br /&gt;'arguments' =&gt; array('status' =&gt; NULL, 'source' =&gt; NULL),&lt;br /&gt;),&lt;br /&gt;'simplenews_newsletter_subject' =&gt; array(&lt;br /&gt;'arguments' =&gt; array('name' =&gt; NULL, 'title' =&gt; NULL, 'language' =&gt; NULL),&lt;br /&gt;),&lt;br /&gt;'simplenews_newsletter_body' =&gt; array(&lt;br /&gt;'template' =&gt; 'simplenews-newsletter-body',&lt;br /&gt;'arguments' =&gt; array('node' =&gt; NULL, 'language' =&gt; NULL),&lt;br /&gt;'pattern' =&gt; 'simplenews_newsletter_body__',&lt;br /&gt;),&lt;br /&gt;'simplenews_newsletter_footer' =&gt; array(&lt;br /&gt;'template' =&gt; 'simplenews-newsletter-footer',&lt;br /&gt;'arguments' =&gt; array('node' =&gt; NULL, 'key' =&gt; NULL, 'language' =&gt; NULL),&lt;br /&gt;'pattern' =&gt; 'simplenews_newsletter_footer__',&lt;br /&gt;),&lt;br /&gt;'simplenews_subscription_list' =&gt; array(&lt;br /&gt;'file' =&gt; 'simplenews.admin.inc',&lt;br /&gt;'arguments' =&gt; array('form' =&gt; NULL),&lt;br /&gt;),&lt;br /&gt;);&lt;br /&gt;}&lt;br /&gt;?&gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;It is rendering only main elements - not any specific page or block ones as themselves.&lt;br /&gt;Getting inspired by Documentation of custom modules and http://drupal.org/node/569312,&lt;br /&gt;Here is full process.&lt;br /&gt;First - from (on line 2471) simplenews.module copy this and;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&lt;br /&gt;function template_preprocess_simplenews_block(&amp;$variables) {&lt;br /&gt;global $user;&lt;br /&gt;$tid = $variables['tid'];&lt;br /&gt;&lt;br /&gt;// Set default values in case of missing permission.&lt;br /&gt;$variables['form'] = '';&lt;br /&gt;$variables['subscription_link'] = '';&lt;br /&gt;$variables['newsletter_link'] = '';&lt;br /&gt;$variables['issue_list'] = '';&lt;br /&gt;$variables['rssfeed'] = '';&lt;br /&gt;&lt;br /&gt;// Block content variables&lt;br /&gt;$variables['message'] = check_plain(variable_get('simplenews_block_m_'. $tid, t('Stay informed on our latest news!')));&lt;br /&gt;if (user_access('subscribe to newsletters')) {&lt;br /&gt;$variables['form'] = drupal_get_form('simplenews_block_form_'. $tid);&lt;br /&gt;$variables['subscription_link'] = l(t('Manage my subscriptions'), 'newsletter/subscriptions');&lt;br /&gt;}&lt;br /&gt;$variables['newsletter_link'] = l(t('Previous issues'), 'taxonomy/term/'. $tid);&lt;br /&gt;$recent = simplenews_recent_newsletters($tid, variable_get('simplenews_block_i_'. $tid, 5));&lt;br /&gt;$variables['issue_list'] = theme('item_list', $recent, t('Previous issues'), 'ul');&lt;br /&gt;$term = taxonomy_get_term($tid);&lt;br /&gt;$variables['rssfeed'] = theme('feed_icon', url('taxonomy/term/'. $tid .'/0/feed'), t('@newsletter feed', array('@newsletter' =&gt; $term-&gt;name)));&lt;br /&gt;&lt;br /&gt;// Block content control variables&lt;br /&gt;$variables['use_form'] = variable_get('simplenews_block_f_'. $tid, 1);&lt;br /&gt;$variables['use_issue_link'] = variable_get('simplenews_block_l_'. $tid, 1);&lt;br /&gt;$variables['use_issue_list'] = variable_get('simplenews_block_i_status_'. $tid, 0);&lt;br /&gt;$variables['use_rss'] = variable_get('simplenews_block_r_'. $tid, 1);&lt;br /&gt;&lt;br /&gt;// Additional variables&lt;br /&gt;$variables['subscribed'] = empty($user-&gt;uid) ? FALSE : (simplenews_user_is_subscribed($user-&gt;mail, $tid) == TRUE);&lt;br /&gt;$variables['user'] = !empty($user-&gt;uid);&lt;br /&gt;}&lt;br /&gt;?&gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;paste it to your themes template.php file and rename it to yourtheme__preprocess_simplenews_block.&lt;br /&gt;Then create a custom module and using hook_form_alter do the staff with your subscription form.&lt;br /&gt;My example here - mycoolmodule.module;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&lt;br /&gt;function mycoolmodule_form_alter(&amp;$form, $form_state, $form_id) {&lt;br /&gt;if($form_id == 'simplenews_block_form_1') {&lt;br /&gt;$form['submit']['#value'] = t('Subscribe');&lt;br /&gt;}&lt;br /&gt;?&gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;Sounds easy, but some suggestions - first this changes both values to "subscribe", but be careful, because this form offers and unsubscribe option too. - anyway this worked fine for me on two different machines.&lt;br /&gt;Second form_id here is simplenews_block_form_1 , this goes out from - $variables['form'] = drupal_get_form('simplenews_block_form_'. $tid);, so at the end you will have a from with id="simplenews-block-form-1-1" for your later CSS works.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1881179913699225953-1983831909243979814?l=passivemanagement.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://passivemanagement.blogspot.com/feeds/1983831909243979814/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://passivemanagement.blogspot.com/2010/07/solving-simplenews-block-theming.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1881179913699225953/posts/default/1983831909243979814'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1881179913699225953/posts/default/1983831909243979814'/><link rel='alternate' type='text/html' href='http://passivemanagement.blogspot.com/2010/07/solving-simplenews-block-theming.html' title='Solving simplenews block theming in Drupal'/><author><name>pasivemanagement</name><uri>http://www.blogger.com/profile/12585883706012463018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_T9qY3yjxbsU/Sz4CFt5NG3I/AAAAAAAAAP0/hrERlMD9m4c/S220/Janis_WEB.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1881179913699225953.post-3033182750110917383</id><published>2010-05-15T01:16:00.003+01:00</published><updated>2010-08-09T13:30:53.553+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='CSS3'/><category scheme='http://www.blogger.com/atom/ns#' term='Photoshop'/><category scheme='http://www.blogger.com/atom/ns#' term='Portfolio'/><category scheme='http://www.blogger.com/atom/ns#' term='HTML'/><title type='text'>Eisner Design website</title><content type='html'>Ok,&lt;br /&gt;I am posting this as my portfolio entry. It is my this weeks CSS creation.&lt;br /&gt;&lt;table style="width:auto;"&gt;&lt;tr&gt;&lt;td&gt;&lt;a href="http://picasaweb.google.lv/lh/photo/E7fMMLW-POqa-FIGaslbjg?feat=embedwebsite"&gt;&lt;img src="http://lh6.ggpht.com/_T9qY3yjxbsU/S-3k3EsAffI/AAAAAAAAAco/Di-qXJy6_go/s288/Eisner_fron.jpg" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="font-family:arial,sans-serif; font-size:11px; text-align:right"&gt;From &lt;a href="http://picasaweb.google.lv/Janis.Janovskis/EisnerDesign?feat=embedwebsite"&gt;Eisner Design&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;Some hack that I made with CSS3 + CSS3 DOM last child property, &lt;a name='more'&gt;&lt;/a&gt; the code looks like this. &lt;br /&gt;#page-menu ul &gt; li:last-child {&lt;br /&gt;border-bottom:none;&lt;br /&gt;}&lt;br /&gt;Here I am working with last child on an list elements of separate id. Tested and works on Firefox, IE not ( if you want to go working on IE install Chrome frame and ad chrome frame to your sites meta tag in head section).&lt;br /&gt;Works on Google chrome, too. Not tested on Opera and Safari.&lt;br /&gt;Anyway looks fabulous, agree? You don,t need to use JavaScript or create some sort of last child class. &lt;br /&gt;And Actually :last:child property is official CSS3 recommendation by W3 consortium.&lt;br /&gt;You can see the result - last element oh the list has no bottom border.&lt;br /&gt;&lt;table style="width:auto;"&gt;&lt;tr&gt;&lt;td&gt;&lt;a href="http://picasaweb.google.lv/lh/photo/9w4vcvpgzG_Zvda8gQjmXg?feat=embedwebsite"&gt;&lt;img src="http://lh6.ggpht.com/_T9qY3yjxbsU/S-3k3WX_wEI/AAAAAAAAAcs/j0CS08S54MQ/s288/Eisner_proj.jpg" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="font-family:arial,sans-serif; font-size:11px; text-align:right"&gt;From &lt;a href="http://picasaweb.google.lv/Janis.Janovskis/EisnerDesign?feat=embedwebsite"&gt;Eisner Design&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;If you want the real code post a comment and I will provide you with my rendering.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1881179913699225953-3033182750110917383?l=passivemanagement.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://passivemanagement.blogspot.com/feeds/3033182750110917383/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://passivemanagement.blogspot.com/2010/05/eisner-design-website.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1881179913699225953/posts/default/3033182750110917383'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1881179913699225953/posts/default/3033182750110917383'/><link rel='alternate' type='text/html' href='http://passivemanagement.blogspot.com/2010/05/eisner-design-website.html' title='Eisner Design website'/><author><name>pasivemanagement</name><uri>http://www.blogger.com/profile/12585883706012463018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_T9qY3yjxbsU/Sz4CFt5NG3I/AAAAAAAAAP0/hrERlMD9m4c/S220/Janis_WEB.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh6.ggpht.com/_T9qY3yjxbsU/S-3k3EsAffI/AAAAAAAAAco/Di-qXJy6_go/s72-c/Eisner_fron.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1881179913699225953.post-15198644702544735</id><published>2010-05-02T00:40:00.002+01:00</published><updated>2010-08-09T13:31:20.086+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><category scheme='http://www.blogger.com/atom/ns#' term='Practice'/><category scheme='http://www.blogger.com/atom/ns#' term='Drupal'/><category scheme='http://www.blogger.com/atom/ns#' term='HTML'/><title type='text'>Change Drupal icon to your logo.</title><content type='html'>Hi,&lt;br /&gt;I,ve been using DRUPAL for a long time, and since I use this platform, and of course I search around for other websites build on Drupal.&lt;br /&gt;You know this small .ico file which represent small icon on your browsers, I call that command line, small text are when you type in your favourite web sites address. &lt;br /&gt;In most cases developers making custom Drupal themes are sing, I far as I guess &lt;a name='more'&gt;&lt;/a&gt; .info file with setting up "features[] = favicon" feature and them pasting into theme names folder small .ico file, basically 16x16px.&lt;br /&gt;Ok, cool the result is nice looking icon representing your creative work and implementing good marketing strategy, but when a lot of times you try to login into admin panel this feature gets lost.&lt;br /&gt;To enable it you need to change main favicon.ico file under drupal.6.x look in misc directory, then look for file and simply replace it with your custom icon, and do not forget it place under same favicon.ico name, becaus Drupal system core is configured to search for this file.&lt;br /&gt;Them clear the cache, restart your brovser and you should now see your custom icon on admin area too.&lt;br /&gt;Reminder - when you upgrade to newer version you might need to do it once again... just check it in case, OK. &lt;br /&gt;You might try same with your Joomla too, change favicon.ico file installation folder.&lt;br /&gt;Good luck and lots of ideas..&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1881179913699225953-15198644702544735?l=passivemanagement.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://passivemanagement.blogspot.com/feeds/15198644702544735/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://passivemanagement.blogspot.com/2010/05/change-drupal-icon-to-your-logo.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1881179913699225953/posts/default/15198644702544735'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1881179913699225953/posts/default/15198644702544735'/><link rel='alternate' type='text/html' href='http://passivemanagement.blogspot.com/2010/05/change-drupal-icon-to-your-logo.html' title='Change Drupal icon to your logo.'/><author><name>pasivemanagement</name><uri>http://www.blogger.com/profile/12585883706012463018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_T9qY3yjxbsU/Sz4CFt5NG3I/AAAAAAAAAP0/hrERlMD9m4c/S220/Janis_WEB.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1881179913699225953.post-3816144919724667345</id><published>2010-04-28T16:41:00.002+01:00</published><updated>2010-08-09T13:31:54.345+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='CSS3'/><category scheme='http://www.blogger.com/atom/ns#' term='Portfolio'/><category scheme='http://www.blogger.com/atom/ns#' term='HTML'/><title type='text'>Wikitube design - PSD to HTML and CSS.</title><content type='html'>Hi,&lt;br /&gt;Today`s post is about my personal portfolio and one of my first projects, project I am really proud of - great job and good CSS and html rendering. OK, almost forgot a little JavaScript for popping up panels... Below screen shots. &lt;br /&gt;&lt;table style="width:auto;"&gt;&lt;tr&gt;&lt;td&gt;&lt;a href="http://picasaweb.google.lv/lh/photo/y6e09VcOXdoOqDkk1Iovgg?feat=embedwebsite"&gt;&lt;img src="http://lh4.ggpht.com/_T9qY3yjxbsU/S9hVKFtrpAI/AAAAAAAAAZw/D4nu_tqqIhc/s288/wikitube_design.jpg" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td style="font-family:arial,sans-serif; font-size:11px; text-align:right"&gt;From &lt;a href="http://picasaweb.google.lv/Janis.Janovskis/Wikitube?feat=embedwebsite"&gt;Wikitube&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;and &lt;a name='more'&gt;&lt;/a&gt; login page.&lt;br /&gt;&lt;table style="width:auto;"&gt;&lt;tr&gt;&lt;td&gt;&lt;a href="http://picasaweb.google.lv/lh/photo/DiV0UEdJ2lZrstGJXEUlIg?feat=embedwebsite"&gt;&lt;img src="http://lh5.ggpht.com/_T9qY3yjxbsU/S9hVJtgi2lI/AAAAAAAAAZs/UZKbwjByf7M/s288/Landing_page%20design.jpg" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="font-family:arial,sans-serif; font-size:11px; text-align:right"&gt;From &lt;a href="http://picasaweb.google.lv/Janis.Janovskis/Wikitube?feat=embedwebsite"&gt;Wikitube&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;.. comment if you want to get the source I,ll send them out to you.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1881179913699225953-3816144919724667345?l=passivemanagement.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://passivemanagement.blogspot.com/feeds/3816144919724667345/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://passivemanagement.blogspot.com/2010/04/wikitube-design-psd-to-html-and-css.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1881179913699225953/posts/default/3816144919724667345'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1881179913699225953/posts/default/3816144919724667345'/><link rel='alternate' type='text/html' href='http://passivemanagement.blogspot.com/2010/04/wikitube-design-psd-to-html-and-css.html' title='Wikitube design - PSD to HTML and CSS.'/><author><name>pasivemanagement</name><uri>http://www.blogger.com/profile/12585883706012463018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_T9qY3yjxbsU/Sz4CFt5NG3I/AAAAAAAAAP0/hrERlMD9m4c/S220/Janis_WEB.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh4.ggpht.com/_T9qY3yjxbsU/S9hVKFtrpAI/AAAAAAAAAZw/D4nu_tqqIhc/s72-c/wikitube_design.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1881179913699225953.post-5983560414530909174</id><published>2010-04-27T20:41:00.002+01:00</published><updated>2010-08-09T13:32:26.540+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Programming'/><category scheme='http://www.blogger.com/atom/ns#' term='Theory'/><category scheme='http://www.blogger.com/atom/ns#' term='Practice'/><title type='text'>The way to solve fizz and buzz questions on interviews</title><content type='html'>Hi,&lt;br /&gt;I,ve got and interview yesterday in a small company, I was applying for software engineers role as an senior developer`s assistant. You know how it is hard to have a hope and compete with some others maybe graduated programmers since you do not have the educational back ground. Well I would say don,t give up you have same chances as graduates.&lt;br /&gt;OK, thing I want to share with is technical question I failed, I mean answer. So,  popular interview question "fizz" and "buzz",&lt;a name='more'&gt;&lt;/a&gt; or write a program that prints out, lets say numbers from 1 -&gt; 100 and for numbers multiplied with 3 prints out "fizz", for numbers multiplied by 5 prints out 5, I guess there was a third rule - For numbers multiplied by 3 and 5 print out "fizz and buzz". So the trick here is to use modulus or mod operator... Actually it is not a trick it is correct answer.&lt;br /&gt;Below are two versions 1st in JavaScript - as function, second in python... I hope to have comments or suggestions. Sorry with out rule No 3..&lt;br /&gt;JavaScript code:&lt;br /&gt;function mod_calc(){&lt;br /&gt;for (i=1; i&lt;=60; i++) {     if (i % 3 == 0) {      document.write("fizz" + "");}else if (i % 5 ==0) {document.write("buzz" + "");}else {document.write("Number" + i + "");}}}and Python code:for i in range(1, 31):if i % 3 == 0:print 'fuzz'elif i % 5 == 0:print 'buzz'else:print 'Number', iThese are my options and solutions, so I am open for any other ones.... Oh yes I use in examples only numbers from 1 -&gt; 30, its just faster... You know...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1881179913699225953-5983560414530909174?l=passivemanagement.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://passivemanagement.blogspot.com/feeds/5983560414530909174/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://passivemanagement.blogspot.com/2010/04/way-to-slove-fizz-and-buzz-questions-on.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1881179913699225953/posts/default/5983560414530909174'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1881179913699225953/posts/default/5983560414530909174'/><link rel='alternate' type='text/html' href='http://passivemanagement.blogspot.com/2010/04/way-to-slove-fizz-and-buzz-questions-on.html' title='The way to solve fizz and buzz questions on interviews'/><author><name>pasivemanagement</name><uri>http://www.blogger.com/profile/12585883706012463018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_T9qY3yjxbsU/Sz4CFt5NG3I/AAAAAAAAAP0/hrERlMD9m4c/S220/Janis_WEB.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1881179913699225953.post-6466418082399158509</id><published>2010-04-27T13:02:00.001+01:00</published><updated>2010-08-09T13:32:46.866+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='CSS3'/><category scheme='http://www.blogger.com/atom/ns#' term='Photoshop'/><category scheme='http://www.blogger.com/atom/ns#' term='Practice'/><title type='text'>My Photoshop creative work.</title><content type='html'>So, I am publishing some of my Photography editing creations with Adobe photoshop.&lt;br /&gt;Some winter images...&lt;br /&gt;&lt;table style="width:auto;"&gt;&lt;tr&gt;&lt;td&gt;&lt;a href="http://picasaweb.google.co.uk/lh/photo/jNp6mDphWQob3KN5ibM2Wg?feat=embedwebsite"&gt;&lt;img src="http://lh5.ggpht.com/_T9qY3yjxbsU/S9bRP_bfjII/AAAAAAAAAY8/XC3B-HyAtzM/s144/Kartinja-web.jpg" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="font-family:arial,sans-serif; font-size:11px; text-align:right"&gt;From &lt;a href="http://picasaweb.google.co.uk/Janis.Janovskis/My_photoshop?feat=embedwebsite"&gt;My_photoshop&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;Another winter...&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;&lt;table style="width:auto;"&gt;&lt;tr&gt;&lt;td&gt;&lt;a href="http://picasaweb.google.co.uk/lh/photo/l1_PNzg8bfrHi-_KmLBqaw?feat=embedwebsite"&gt;&lt;img src="http://lh5.ggpht.com/_T9qY3yjxbsU/S9bRQVi9BXI/AAAAAAAAAZA/NzuH8OPmS50/s144/Ventspils-ziema-web.jpg" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="font-family:arial,sans-serif; font-size:11px; text-align:right"&gt;From &lt;a href="http://picasaweb.google.co.uk/Janis.Janovskis/My_photoshop?feat=embedwebsite"&gt;My_photoshop&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;Waterfall in Slovakia...&lt;br /&gt;&lt;table style="width:auto;"&gt;&lt;tr&gt;&lt;td&gt;&lt;a href="http://picasaweb.google.co.uk/lh/photo/44hS7ahUp_wPZz8yJ1_vmw?feat=embedwebsite"&gt;&lt;img src="http://lh6.ggpht.com/_T9qY3yjxbsU/S9bRQUJSqKI/AAAAAAAAAZE/AIBNI0oEaS4/s144/Udens-kritums-slovak.jpg" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="font-family:arial,sans-serif; font-size:11px; text-align:right"&gt;From &lt;a href="http://picasaweb.google.co.uk/Janis.Janovskis/My_photoshop?feat=embedwebsite"&gt;My_photoshop&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;And My personal Creation - Idea and assembling.... with photoshop,...&lt;br /&gt;&lt;table style="width:auto;"&gt;&lt;tr&gt;&lt;td&gt;&lt;a href="http://picasaweb.google.co.uk/lh/photo/697dAFebzwirHP9dJLsZgg?feat=embedwebsite"&gt;&lt;img src="http://lh3.ggpht.com/_T9qY3yjxbsU/S9bRQVpzupI/AAAAAAAAAZI/MYzjpQJ2opw/s144/Perspektiva-lauli-web.jpg" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="font-family:arial,sans-serif; font-size:11px; text-align:right"&gt;From &lt;a href="http://picasaweb.google.co.uk/Janis.Janovskis/My_photoshop?feat=embedwebsite"&gt;My_photoshop&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1881179913699225953-6466418082399158509?l=passivemanagement.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://passivemanagement.blogspot.com/feeds/6466418082399158509/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://passivemanagement.blogspot.com/2010/04/my-photoshop-creative-work.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1881179913699225953/posts/default/6466418082399158509'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1881179913699225953/posts/default/6466418082399158509'/><link rel='alternate' type='text/html' href='http://passivemanagement.blogspot.com/2010/04/my-photoshop-creative-work.html' title='My Photoshop creative work.'/><author><name>pasivemanagement</name><uri>http://www.blogger.com/profile/12585883706012463018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_T9qY3yjxbsU/Sz4CFt5NG3I/AAAAAAAAAP0/hrERlMD9m4c/S220/Janis_WEB.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh5.ggpht.com/_T9qY3yjxbsU/S9bRP_bfjII/AAAAAAAAAY8/XC3B-HyAtzM/s72-c/Kartinja-web.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1881179913699225953.post-7823509326771205979</id><published>2010-04-09T14:57:00.000+01:00</published><updated>2010-04-09T14:57:32.149+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Marathon'/><category scheme='http://www.blogger.com/atom/ns#' term='Motivation'/><title type='text'>Valmiera City Marathon</title><content type='html'>My second 21 km run on 2009. Cold Latvian Autumn Sunday.&lt;br /&gt;I,ve decided not to give up and made the second 21 km on 2009. Sorry less training that`s why 4 minutes more.&lt;br /&gt;Warming up...&lt;br /&gt;&lt;table style="width:auto;"&gt;&lt;tr&gt;&lt;td&gt;&lt;a href="http://picasaweb.google.co.uk/lh/photo/v-n7UzvcYxMjuORBPwVX1A?feat=embedwebsite"&gt;&lt;img src="http://lh3.ggpht.com/_T9qY3yjxbsU/S78w4DEDlZI/AAAAAAAAAVg/1cSPajsq2nU/s144/007.JPG" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="font-family:arial,sans-serif; font-size:11px; text-align:right"&gt;From &lt;a href="http://picasaweb.google.co.uk/Janis.Janovskis/ValmieraCityMarathon?feat=embedwebsite"&gt;Valmiera City Marathon&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;Smile before start...&lt;br /&gt;&lt;table style="width:auto;"&gt;&lt;tr&gt;&lt;td&gt;&lt;a href="http://picasaweb.google.co.uk/lh/photo/m1kfN4v1ZfKT2L-0gUXzYg?feat=embedwebsite"&gt;&lt;img src="http://lh6.ggpht.com/_T9qY3yjxbsU/S78w4tJwNoI/AAAAAAAAAVk/iiajgcQMqdE/s144/009.JPG" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="font-family:arial,sans-serif; font-size:11px; text-align:right"&gt;From &lt;a href="http://picasaweb.google.co.uk/Janis.Janovskis/ValmieraCityMarathon?feat=embedwebsite"&gt;Valmiera City Marathon&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;On may way again...(Finished first lap 10 km)...&lt;br /&gt;&lt;table style="width:auto;"&gt;&lt;tr&gt;&lt;td&gt;&lt;a href="http://picasaweb.google.co.uk/lh/photo/-AFVNCUjJ_I4TKMwPt5SCg?feat=embedwebsite"&gt;&lt;img src="http://lh4.ggpht.com/_T9qY3yjxbsU/S78w460ZJnI/AAAAAAAAAVo/6G3Yk-SSKNE/s144/029.JPG" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="font-family:arial,sans-serif; font-size:11px; text-align:right"&gt;From &lt;a href="http://picasaweb.google.co.uk/Janis.Janovskis/ValmieraCityMarathon?feat=embedwebsite"&gt;Valmiera City Marathon&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;I am happy and proud...&lt;br /&gt;&lt;table style="width:auto;"&gt;&lt;tr&gt;&lt;td&gt;&lt;a href="http://picasaweb.google.co.uk/lh/photo/-BhAWSgFMS87JdSCIe87ow?feat=embedwebsite"&gt;&lt;img src="http://lh3.ggpht.com/_T9qY3yjxbsU/S78w5l6dHvI/AAAAAAAAAVs/c9mdftYuNlE/s144/044.JPG" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="font-family:arial,sans-serif; font-size:11px; text-align:right"&gt;From &lt;a href="http://picasaweb.google.co.uk/Janis.Janovskis/ValmieraCityMarathon?feat=embedwebsite"&gt;Valmiera City Marathon&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1881179913699225953-7823509326771205979?l=passivemanagement.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://passivemanagement.blogspot.com/feeds/7823509326771205979/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://passivemanagement.blogspot.com/2010/04/valmiera-city-marathon.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1881179913699225953/posts/default/7823509326771205979'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1881179913699225953/posts/default/7823509326771205979'/><link rel='alternate' type='text/html' href='http://passivemanagement.blogspot.com/2010/04/valmiera-city-marathon.html' title='Valmiera City Marathon'/><author><name>pasivemanagement</name><uri>http://www.blogger.com/profile/12585883706012463018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_T9qY3yjxbsU/Sz4CFt5NG3I/AAAAAAAAAP0/hrERlMD9m4c/S220/Janis_WEB.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh3.ggpht.com/_T9qY3yjxbsU/S78w4DEDlZI/AAAAAAAAAVg/1cSPajsq2nU/s72-c/007.JPG' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1881179913699225953.post-6758567719086852866</id><published>2010-04-09T14:44:00.000+01:00</published><updated>2010-04-09T14:44:10.857+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Marathon'/><category scheme='http://www.blogger.com/atom/ns#' term='Motivation'/><title type='text'>My First 21 km Run in Riga 2009</title><content type='html'>Ok, folks.&lt;br /&gt;&lt;br /&gt;I,ve decided to publish my last years best personal development, the event I am really proud of Nordea Riga city 2009 marathon. I,ve made at that time my very first 21 kilometre run, It totally changed my self motivation and main targets of my Life. From that day I love the passion of "addidas" advert "Impossible is nothing...", (Sory Addidas I use NIKE). Ok Below some shots from that day.&lt;br /&gt;My great Smile before start..&lt;br /&gt;&lt;table style="width:auto;"&gt;&lt;tr&gt;&lt;td&gt;&lt;a href="http://picasaweb.google.co.uk/lh/photo/IY0wZEKQUIwDd_ggwSaKPw?feat=embedwebsite"&gt;&lt;img src="http://lh3.ggpht.com/_T9qY3yjxbsU/S78qa-To11I/AAAAAAAAAU0/GRC6ugzXX6k/s144/Picture%20017.jpg" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="font-family:arial,sans-serif; font-size:11px; text-align:right"&gt;From &lt;a href="http://picasaweb.google.co.uk/Janis.Janovskis/NordeaRigaCityMarathon?feat=embedwebsite"&gt;Nordea Riga City marathon&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;br /&gt;I am tired at the end of distance...&lt;br /&gt;&lt;table style="width:auto;"&gt;&lt;tr&gt;&lt;td&gt;&lt;a href="http://picasaweb.google.co.uk/lh/photo/d-vgNwMnLXeGqGZVhjvF7A?feat=embedwebsite"&gt;&lt;img src="http://lh4.ggpht.com/_T9qY3yjxbsU/S78qaHkctBI/AAAAAAAAAUw/DkG9Jmw282k/s144/b1242762994.jpg" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="font-family:arial,sans-serif; font-size:11px; text-align:right"&gt;From &lt;a href="http://picasaweb.google.co.uk/Janis.Janovskis/NordeaRigaCityMarathon?feat=embedwebsite"&gt;Nordea Riga City marathon&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;On my way ...&lt;br /&gt;&lt;table style="width:auto;"&gt;&lt;tr&gt;&lt;td&gt;&lt;a href="http://picasaweb.google.co.uk/lh/photo/BVGlPaiQ9Egvbh5WCNalSw?feat=embedwebsite"&gt;&lt;img src="http://lh6.ggpht.com/_T9qY3yjxbsU/S78qb1Uf05I/AAAAAAAAAU4/PnAf7KKvP4c/s144/Picture%20093.jpg" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="font-family:arial,sans-serif; font-size:11px; text-align:right"&gt;From &lt;a href="http://picasaweb.google.co.uk/Janis.Janovskis/NordeaRigaCityMarathon?feat=embedwebsite"&gt;Nordea Riga City marathon&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;Believe Me it is worth that...&lt;br /&gt;&lt;table style="width:auto;"&gt;&lt;tr&gt;&lt;td&gt;&lt;a href="http://picasaweb.google.co.uk/lh/photo/eBW2hEKuC5kvCZdqaqa4zw?feat=embedwebsite"&gt;&lt;img src="http://lh5.ggpht.com/_T9qY3yjxbsU/S78qcWmQCYI/AAAAAAAAAU8/yc1OhOg8tn4/s144/b1242768221.jpg" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="font-family:arial,sans-serif; font-size:11px; text-align:right"&gt;From &lt;a href="http://picasaweb.google.co.uk/Janis.Janovskis/NordeaRigaCityMarathon?feat=embedwebsite"&gt;Nordea Riga City marathon&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1881179913699225953-6758567719086852866?l=passivemanagement.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://passivemanagement.blogspot.com/feeds/6758567719086852866/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://passivemanagement.blogspot.com/2010/04/my-first-21-km-run-in-riga-2009.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1881179913699225953/posts/default/6758567719086852866'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1881179913699225953/posts/default/6758567719086852866'/><link rel='alternate' type='text/html' href='http://passivemanagement.blogspot.com/2010/04/my-first-21-km-run-in-riga-2009.html' title='My First 21 km Run in Riga 2009'/><author><name>pasivemanagement</name><uri>http://www.blogger.com/profile/12585883706012463018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_T9qY3yjxbsU/Sz4CFt5NG3I/AAAAAAAAAP0/hrERlMD9m4c/S220/Janis_WEB.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh3.ggpht.com/_T9qY3yjxbsU/S78qa-To11I/AAAAAAAAAU0/GRC6ugzXX6k/s72-c/Picture%20017.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1881179913699225953.post-2565278008939291149</id><published>2010-04-05T15:17:00.001+01:00</published><updated>2010-10-09T21:20:20.508+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='CSS3'/><category scheme='http://www.blogger.com/atom/ns#' term='GWT'/><title type='text'>Costumizing GWT application with CSS - basics.</title><content type='html'>OK, working with &lt;a href="http://www.wikitube.tv"&gt;wikitube&lt;/a&gt; project on these holidays managed me to step out from PHP development and move to world of Java. Looked hard a little, but, you know, being developer automatically moves you to another type of persons - "problem solvers", which means you work only with what you have.&lt;br /&gt;First a little history; I,ve made real good CSS and HTML layout, but as all those layouts it static and solid things looks nice only if nothing changes - no refresh or dynamic part, but when it comes to add dynamic, variables, databases, queries, scripts, etc you have to face the real challenge.&lt;br /&gt;So we have database driven web APP, with really creative design, but without working CSS from basic HTML layouts.&lt;br /&gt;I will not get deeper about my layouts or specific id,s, I want to show some basic ideas how to drive GWT with your designed CSS.&lt;br /&gt;I will start with simple "Hello world", button and image styling, I will not also explain how to install GWT and set up your IDE (mine is Netbeans), if do not know Use GWT and Netbeans web pages to handle those questions.&lt;br /&gt;Ok firs the main java code - I,ve placed all instructions inside the code as comments - here it is:&lt;br /&gt;&lt;br /&gt;package org.yournamehere.client;&lt;br /&gt;&lt;br /&gt;import com.google.gwt.core.client.EntryPoint;&lt;br /&gt;import com.google.gwt.user.client.ui.Button;&lt;br /&gt;import com.google.gwt.user.client.ui.Label;&lt;br /&gt;import com.google.gwt.user.client.ui.RootPanel;&lt;br /&gt;import com.google.gwt.event.dom.client.ClickEvent;&lt;br /&gt;import com.google.gwt.event.dom.client.ClickHandler;&lt;br /&gt;import com.google.gwt.user.client.DOM;&lt;br /&gt;import com.google.gwt.user.client.ui.Image;&lt;br /&gt;&lt;br /&gt;/**&lt;br /&gt;* Main entry point.&lt;br /&gt;*&lt;br /&gt;* @author Janis Janovskis&lt;br /&gt;*/&lt;br /&gt;public class MainEntryPoint implements EntryPoint {&lt;br /&gt;/** &lt;br /&gt;* Creates a new instance of MainEntryPoint&lt;br /&gt;*/&lt;br /&gt;public MainEntryPoint() {&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;/** &lt;br /&gt;* The entry point method, called automatically by loading a module&lt;br /&gt;* that declares an implementing class as an entry-point&lt;br /&gt;* so first initialize main Module or what wee will see on the sample page&lt;br /&gt;*/&lt;br /&gt;public void onModuleLoad() {&lt;br /&gt;final Label label = new Label("Hello, GWT!!!");&lt;br /&gt;final Button button = new Button("Click me!");&lt;br /&gt;final Image image = new Image();&lt;br /&gt;image.setTitle("This is test image");&lt;br /&gt;image.setSize("30px", "30px");&lt;br /&gt;//      Below I am setting class name to my button.&lt;br /&gt;button.setStyleName("special");&lt;br /&gt;//        this is unnecesary I was just experimenting - I am assingnig specific&lt;br /&gt;//        to my "button"&lt;br /&gt;DOM.setElementAttribute(button.getElement(), "id", "new");&lt;br /&gt;//       Handleling events&lt;br /&gt;&lt;br /&gt;button.addClickHandler(new ClickHandler() {&lt;br /&gt;public void onClick(ClickEvent event) {&lt;br /&gt;label.setVisible(!label.isVisible());&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;});&lt;br /&gt;// and dispalaying content.&lt;br /&gt;RootPanel.get().add(button);&lt;br /&gt;RootPanel.get().add(label);&lt;br /&gt;RootPanel.get().add(image);&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Then comes CSS code - I use separate file always (Remember it is W3 recommendation too), but you can do that in &lt;header&gt; section also. So CSS code:&lt;br /&gt;/*&lt;br /&gt;Do not place body tag in your page it generates by script and server&lt;br /&gt;*/&lt;br /&gt;body {&lt;br /&gt;background-color: #686868;&lt;br /&gt;}&lt;br /&gt;/*&lt;br /&gt;remember I,ve assigned new class to my button.&lt;br /&gt;*/&lt;br /&gt;.special {&lt;br /&gt;background-color: #B80000;&lt;br /&gt;height: 25px;&lt;br /&gt;width: 100px;&lt;br /&gt;-moz-border-radius: 4px;&lt;br /&gt;text-align: center;&lt;br /&gt;border-style: solid;&lt;br /&gt;border-width: 2px;&lt;br /&gt;font-weight: bold;&lt;br /&gt;margin-left: auto;&lt;br /&gt;margin-right: auto;&lt;br /&gt;margin-top: 10px;&lt;br /&gt;margin-bottom: 10px;&lt;br /&gt;}&lt;br /&gt;/*&lt;br /&gt;some styling of image&lt;br /&gt;*/&lt;br /&gt;.gwt-image {&lt;br /&gt;border-style: solid;&lt;br /&gt;border-color: #ffffff;&lt;br /&gt;border-width: 6px;&lt;br /&gt;-moz-border-radius: 4px;&lt;br /&gt;margin: 10px auto 10px auto;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;and finally the result:&lt;br /&gt;&lt;table style="width:auto;"&gt;&lt;tr&gt;&lt;td&gt;&lt;a href="http://picasaweb.google.co.uk/lh/photo/L6D8pRtcIav7Gf9tYZCkQA?feat=embedwebsite"&gt;&lt;img src="http://lh3.ggpht.com/_T9qY3yjxbsU/S7nva4QWuKI/AAAAAAAAAUM/L_6dGslynNM/s144/GWT.jpg" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style="font-family:arial,sans-serif; font-size:11px; text-align:right"&gt;No &lt;a href="http://picasaweb.google.co.uk/Janis.Janovskis/Java?feat=embedwebsite"&gt;Java&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;br /&gt;I hope it helped to you a little and I will continue post more on this in a wild.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1881179913699225953-2565278008939291149?l=passivemanagement.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://passivemanagement.blogspot.com/feeds/2565278008939291149/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://passivemanagement.blogspot.com/2010/04/costumizing-gwt-application-with-css.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1881179913699225953/posts/default/2565278008939291149'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1881179913699225953/posts/default/2565278008939291149'/><link rel='alternate' type='text/html' href='http://passivemanagement.blogspot.com/2010/04/costumizing-gwt-application-with-css.html' title='Costumizing GWT application with CSS - basics.'/><author><name>pasivemanagement</name><uri>http://www.blogger.com/profile/12585883706012463018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_T9qY3yjxbsU/Sz4CFt5NG3I/AAAAAAAAAP0/hrERlMD9m4c/S220/Janis_WEB.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh3.ggpht.com/_T9qY3yjxbsU/S7nva4QWuKI/AAAAAAAAAUM/L_6dGslynNM/s72-c/GWT.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1881179913699225953.post-5782498827219055670</id><published>2010-01-15T11:10:00.009Z</published><updated>2010-01-15T12:06:48.814Z</updated><category scheme='http://www.blogger.com/atom/ns#' term='CSS3'/><category scheme='http://www.blogger.com/atom/ns#' term='Theory'/><category scheme='http://www.blogger.com/atom/ns#' term='Practice'/><title type='text'>My CSS3 hacks</title><content type='html'>Well, some days ago I faced again with idea how to solve the rounded coroners problem on web page. So, having looked around I little I found out that with todays top - CSS2 it is not possible, because it just has no such feature - you can have of course them, but previously you need to do something with Photoshop or gimp or whatever and create some sort of border image. Well you could say or ask "And what?", but lets imagine, having the feature available in CSS3 you could save I lot of time and energy and data mount unnecessary for your creation.&lt;br /&gt;So, I started to read and search around or Google this problem on &lt;a href="http://www.w3.org/" target="_blank"&gt;W3.org&lt;/a&gt; website (of course not this one only), and there is solution whom you maybe know or have heard about &lt;b&gt;CSS3&lt;/b&gt; , you certainly should have. &lt;br /&gt;So below comes the script and I,ve tested it on Safari(see different code for that inside), Chrome and Firefox and dear IE lovers not for this time for you, wee need to wait a little until IE9 will come on stage - so below the code and some screen shots.&lt;br /&gt;So first some screen shots;&lt;br /&gt;&lt;br /&gt;&lt;embed type="application/x-shockwave-flash" src="http://picasaweb.google.lv/s/c/bin/slideshow.swf" width="400" height="267" flashvars="host=picasaweb.google.lv&amp;hl=lv&amp;feat=flashalbum&amp;RGB=0x000000&amp;feed=http%3A%2F%2Fpicasaweb.google.lv%2Fdata%2Ffeed%2Fapi%2Fuser%2FJanis.Janovskis%2Falbumid%2F5426935906940258769%3Falt%3Drss%26kind%3Dphoto%26hl%3Dlv" pluginspage="http://www.macromedia.com/go/getflashplayer"&gt;&lt;/embed&gt;&lt;br /&gt;And here comes the code&lt;br /&gt;&lt;br /&gt;&amp;lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;html&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;head&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;title&amp;gt;CSS_rounded_borders&amp;lt;/title&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;style type="text/css"&amp;gt;&lt;br /&gt;&lt;br /&gt;/*Code for firefox at least 3.5*/&lt;br /&gt;&lt;br /&gt;.ridge {margin-top:10px; margin-right:auto; margin-left:auto; height:60px; width:150px; border-style:ridge; border-width:3px; -moz-border-radius:8px; border-color:#000000; background-color:#FFFFFF; text-align:center;}&lt;br /&gt;&lt;br /&gt;.dotted {margin-top:10px; margin-right:auto; margin-left:auto; height:60px; width:150px; border-style:dotted; border-width:1px; -moz-border-radius:8px; border-color:#000000; background-color:#FFFFFF; text-align:center;}&lt;br /&gt;&lt;br /&gt;.dashed {margin-top:10px; margin-right:auto; margin-left:auto; height:60px; width:150px; border-style:dashed; border-width:1px; -moz-border-radius:8px; border-color:#000000; background-color:#FFFFFF; text-align:center;}&lt;br /&gt;&lt;br /&gt;.solid {margin-top:10px; margin-right:auto; margin-left:auto; height:60px; width:150px; border-style:solid; border-width:1px; -moz-border-radius:8px; border-color:#000000; background-color:#FFFFFF; text-align:center;}&lt;br /&gt;&lt;br /&gt;.double {margin-top:10px; margin-right:auto; margin-left:auto; height:60px; width:150px; border-style:double; border-width:3px; -moz-border-radius:8px; border-color:#000000; background-color:#FFFFFF; text-align:center;}&lt;br /&gt;&lt;br /&gt;.groove {margin-top:10px; margin-right:auto; margin-left:auto; height:60px; width:150px; border-style:groove; border-width:3px; -moz-border-radius:8px; border-color:#000000; background-color:#FFFFFF; text-align:center;}&lt;br /&gt;&lt;br /&gt;.inset {margin-top:10px; margin-right:auto; margin-left:auto; height:60px; width:150px; border-style:inset; border-width:5px; -moz-border-radius:8px; border-color:#000000; background-color:#FFFFFF; text-align:center;}&lt;br /&gt;&lt;br /&gt;.outset {margin-top:10px; margin-right:auto; margin-left:auto; height:60px; width:150px; border-style:outset; border-width:5px; -moz-border-radius:8px; border-color:#000000; background-color:#FFFFFF; text-align:center;}&lt;br /&gt;&lt;br /&gt;/*Code for Safari*/&lt;br /&gt;&lt;br /&gt;.ridge {margin-top:10px; margin-right:auto; margin-left:auto; height:60px; width:150px; border-style:ridge; border-width:3px; -webkit-border-radius:8px; border-color:#000000; background-color:#FFFFFF; text-align:center;}&lt;br /&gt;&lt;br /&gt;.dotted {margin-top:10px; margin-right:auto; margin-left:auto; height:60px; width:150px; border-style:dotted; border-width:1px; -webkit-border-radius:8px; border-color:#000000; background-color:#FFFFFF; text-align:center;}&lt;br /&gt;&lt;br /&gt;.dashed {margin-top:10px; margin-right:auto; margin-left:auto; height:60px; width:150px; border-style:dashed; border-width:1px; -webkit-border-radius:8px; border-color:#000000; background-color:#FFFFFF; text-align:center;}&lt;br /&gt;&lt;br /&gt;.solid {margin-top:10px; margin-right:auto; margin-left:auto; height:60px; width:150px; border-style:solid; border-width:1px; -webkit-border-radius:8px; border-color:#000000; background-color:#FFFFFF; text-align:center;}&lt;br /&gt;&lt;br /&gt;.double {margin-top:10px; margin-right:auto; margin-left:auto; height:60px; width:150px; border-style:double; border-width:3px; -webkit-border-radius:8px; border-color:#000000; background-color:#FFFFFF; text-align:center;}&lt;br /&gt;&lt;br /&gt;.groove {margin-top:10px; margin-right:auto; margin-left:auto; height:60px; width:150px; border-style:groove; border-width:3px; -webkit-border-radius:8px; border-color:#000000; background-color:#FFFFFF; text-align:center;}&lt;br /&gt;&lt;br /&gt;.inset {margin-top:10px; margin-right:auto; margin-left:auto; height:60px; width:150px; border-style:inset; border-width:5px; -webkit-border-radius:8px; border-color:#000000; background-color:#FFFFFF; text-align:center;}&lt;br /&gt;&lt;br /&gt;.outset {margin-top:10px; margin-right:auto; margin-left:auto; height:60px; width:150px; border-style:outset; border-width:5px; -webkit-border-radius:8px; border-color:#000000; background-color:#FFFFFF; text-align:center;}&lt;br /&gt;&lt;br /&gt;&amp;lt;/style&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;/head&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;body&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;div class="ridge"&amp;gt;Radius=8px and border style is Ridge&amp;lt;/div&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;div class="dashed"&amp;gt;Radius=8px and border style is dashed&amp;lt;/div&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;div class="dotted"&amp;gt;Radius=8px and border style is dotted&amp;lt;/div&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;div class="solid"&amp;gt;Radius=8px and border style is solid&amp;lt;/div&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;div class="groove"&amp;gt;Radius=8px and border style is groove&amp;lt;/div&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;div class="double"&amp;gt;Radius=8px and border style is double&amp;lt;/div&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;div class="inset"&amp;gt;Radius=8px and border style is inset&amp;lt;/div&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;div class="outset"&amp;gt;Radius=8px and border style is outset&amp;lt;/div&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;/body&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;/html&amp;gt;&lt;br /&gt;&lt;br /&gt;Thats for today - to be continued.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1881179913699225953-5782498827219055670?l=passivemanagement.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://passivemanagement.blogspot.com/feeds/5782498827219055670/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://passivemanagement.blogspot.com/2010/01/my-css3-hacks.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1881179913699225953/posts/default/5782498827219055670'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1881179913699225953/posts/default/5782498827219055670'/><link rel='alternate' type='text/html' href='http://passivemanagement.blogspot.com/2010/01/my-css3-hacks.html' title='My CSS3 hacks'/><author><name>pasivemanagement</name><uri>http://www.blogger.com/profile/12585883706012463018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_T9qY3yjxbsU/Sz4CFt5NG3I/AAAAAAAAAP0/hrERlMD9m4c/S220/Janis_WEB.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1881179913699225953.post-6911581235090591506</id><published>2009-12-15T13:17:00.005Z</published><updated>2010-10-09T21:18:45.909+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Management'/><title type='text'>Tech Industry 2009</title><content type='html'>Ok, &lt;br /&gt;A lot of fun during the preparation and organization of Tech Industry 2009 at Riga on Kipsala. My personal as a moderator hard job during conference and seminar in opposite of a lot of fun on Saturday November 28th during Robotics Contest.&lt;br /&gt;This wa my first that kind of project partially as volunteer, partially paid. I used a lot of Open Source and creativity to manage it.&lt;br /&gt;It is so, it times when you have a lack of certain recourses (money in this case), you over covered with a lot of good ideas and solutions, I would say this is real experience and useful entry for my CV. well I will wright more about the experience an I will provide some presentations on this, but here please see small photo stream from all Tech Industry event.&lt;br /&gt;&lt;br /&gt;&lt;object align=center width="600" height="500"&gt; &lt;param name="flashvars" value="offsite=true&amp;lang=en-us&amp;page_show_url=%2Fphotos%2F45304968%40N08%2Fsets%2F72157622827694691%2Fshow%2F&amp;page_show_back_url=%2Fphotos%2F45304968%40N08%2Fsets%2F72157622827694691%2F&amp;set_id=72157622827694691&amp;jump_to="&gt;&lt;/param&gt;&lt;param name="movie" value="http://www.flickr.com/apps/slideshow/show.swf?v=71649"&gt;&lt;/param&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;/param&gt;&lt;embed type="application/x-shockwave-flash" src="http://www.flickr.com/apps/slideshow/show.swf?v=71649" allowFullScreen="true" flashvars="offsite=true&amp;lang=en-us&amp;page_show_url=%2Fphotos%2F45304968%40N08%2Fsets%2F72157622827694691%2Fshow%2F&amp;page_show_back_url=%2Fphotos%2F45304968%40N08%2Fsets%2F72157622827694691%2F&amp;set_id=72157622827694691&amp;jump_to=" width="400" height="300"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1881179913699225953-6911581235090591506?l=passivemanagement.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://passivemanagement.blogspot.com/feeds/6911581235090591506/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://passivemanagement.blogspot.com/2009/12/tech-industry-2009.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1881179913699225953/posts/default/6911581235090591506'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1881179913699225953/posts/default/6911581235090591506'/><link rel='alternate' type='text/html' href='http://passivemanagement.blogspot.com/2009/12/tech-industry-2009.html' title='Tech Industry 2009'/><author><name>pasivemanagement</name><uri>http://www.blogger.com/profile/12585883706012463018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_T9qY3yjxbsU/Sz4CFt5NG3I/AAAAAAAAAP0/hrERlMD9m4c/S220/Janis_WEB.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1881179913699225953.post-8057465722177288318</id><published>2009-10-19T18:23:00.008+01:00</published><updated>2010-10-09T21:20:56.476+01:00</updated><title type='text'>Oportunities of open courseware</title><content type='html'>&lt;h2&gt;My todays presentation at the University of Latvia&lt;/h2&gt;&lt;br /&gt;It is at least 3 months me and some students from the university of Latvia leaded by Lauris Krolis, working on the project - publication on courses lecture materials on to the web using principles of opencourseware.&lt;br /&gt;Today I had small 10 min presentation to students of the University of Latvia (faculty of philology). We had this presentation together with Liene representing open online library &lt;a href="http://www.e-biblioteka.lv"&gt;www.e-biblioteka.lv&lt;/a&gt;.&lt;br /&gt;We had a lot of feed back, mostly negative and mostly from teachers. They are afraid of their proprietorship rights. Well I must disagree and in the same time I see a lot job to do to show them real opportunities of using "OPEN SOURCE" in the education and learning using "Open Source".&lt;br /&gt;We will contionue on Friday 23.10.2009, I should have a better presentation I might think, but her is today`s. &lt;br /&gt;&lt;iframe src="http://docs.google.com/present/embed?id=dfwn45px_39gvnbmnd6" frameborder="0" width="410" height="342"&gt;&lt;/iframe&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1881179913699225953-8057465722177288318?l=passivemanagement.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://passivemanagement.blogspot.com/feeds/8057465722177288318/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://passivemanagement.blogspot.com/2009/10/oportunities-of-open-courseware.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1881179913699225953/posts/default/8057465722177288318'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1881179913699225953/posts/default/8057465722177288318'/><link rel='alternate' type='text/html' href='http://passivemanagement.blogspot.com/2009/10/oportunities-of-open-courseware.html' title='Oportunities of open courseware'/><author><name>pasivemanagement</name><uri>http://www.blogger.com/profile/12585883706012463018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_T9qY3yjxbsU/Sz4CFt5NG3I/AAAAAAAAAP0/hrERlMD9m4c/S220/Janis_WEB.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1881179913699225953.post-2389363978348048562</id><published>2009-10-14T13:54:00.002+01:00</published><updated>2009-10-14T14:04:44.632+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Servers'/><title type='text'>How to automatically mount the NTFS drives in Ubuntu?</title><content type='html'>Open the Terminal window and run the below commands:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;sudo aptitude update&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Then&lt;br /&gt;&lt;code&gt;&lt;br /&gt;sudo aptitude install ntfs-config&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Then, make sure that there are no drives mounted. Then, click on System and then Administration and then click on System Tools. When it asks for password, just enter it and then select the drives which you want to be auto mounted and then click on Apply. Also, select the "" option and then click on OK.&lt;br /&gt;&lt;br /&gt;Idea I`ve inspired from the web.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1881179913699225953-2389363978348048562?l=passivemanagement.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://passivemanagement.blogspot.com/feeds/2389363978348048562/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://passivemanagement.blogspot.com/2009/10/how-to-automatically-mount-ntfs-drives.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1881179913699225953/posts/default/2389363978348048562'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1881179913699225953/posts/default/2389363978348048562'/><link rel='alternate' type='text/html' href='http://passivemanagement.blogspot.com/2009/10/how-to-automatically-mount-ntfs-drives.html' title='How to automatically mount the NTFS drives in Ubuntu?'/><author><name>pasivemanagement</name><uri>http://www.blogger.com/profile/12585883706012463018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_T9qY3yjxbsU/Sz4CFt5NG3I/AAAAAAAAAP0/hrERlMD9m4c/S220/Janis_WEB.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1881179913699225953.post-5533318379273788695</id><published>2009-10-14T10:55:00.012+01:00</published><updated>2010-10-09T21:19:51.497+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Servers'/><title type='text'>Search Google.com from the Linux command line</title><content type='html'>You can search Google.com from the Linux command line without using a CLI web browser like lynx or Elinks. All you need is the curl and html2text packages installed. Then you issue the following command:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;curl -A Mozilla http://www.google.com/search?q=pasivemanagement |html2text -width 80&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;where you can replace "pasivemanagement" with another keyword of your choice. The results will be displayed in your console application with a width of 80.&lt;br /&gt;And the result will look like this:&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_T9qY3yjxbsU/StXZyeMabWI/AAAAAAAAAGs/73B4aAZswYY/s1600-h/Googlesearch.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 282px;" src="http://3.bp.blogspot.com/_T9qY3yjxbsU/StXZyeMabWI/AAAAAAAAAGs/73B4aAZswYY/s400/Googlesearch.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5392455589967850850" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Personally I like this one, I can do searches directly from Linux server command line, so you do not need even GUI.&lt;br /&gt;&lt;br /&gt;Inspired By &lt;a href="http://tips4linux.com/"&gt;tips4linux.com.&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1881179913699225953-5533318379273788695?l=passivemanagement.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://passivemanagement.blogspot.com/feeds/5533318379273788695/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://passivemanagement.blogspot.com/2009/10/search-googlecom-from-linux-command.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1881179913699225953/posts/default/5533318379273788695'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1881179913699225953/posts/default/5533318379273788695'/><link rel='alternate' type='text/html' href='http://passivemanagement.blogspot.com/2009/10/search-googlecom-from-linux-command.html' title='Search Google.com from the Linux command line'/><author><name>pasivemanagement</name><uri>http://www.blogger.com/profile/12585883706012463018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_T9qY3yjxbsU/Sz4CFt5NG3I/AAAAAAAAAP0/hrERlMD9m4c/S220/Janis_WEB.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_T9qY3yjxbsU/StXZyeMabWI/AAAAAAAAAGs/73B4aAZswYY/s72-c/Googlesearch.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1881179913699225953.post-7465176230426756498</id><published>2009-10-08T13:19:00.028+01:00</published><updated>2009-10-22T12:25:05.900+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Dynamic DNS'/><category scheme='http://www.blogger.com/atom/ns#' term='Practice'/><title type='text'>Problem with DynamicDNS and SSH or Sever PART2 - Practice in BASH</title><content type='html'>&lt;p&gt;Ok, if I am clear with theory, I can start with practice.&lt;br /&gt;&lt;ul align=center&gt;&lt;br /&gt;&lt;li&gt; Domain - that was the easiest part, you can choose between &lt;a href="http://dyndns.com"&gt;DYNDNS&lt;/a&gt; or &lt;a href="http://no-ip.com"&gt;NO-IP&lt;/a&gt;, both are providing the same service domain assigning to dynamic DNS, I`ve chosen  &lt;a href="http://dyndns.com"&gt;&lt;/a&gt;, they are providing better service.&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Second I thought, I need something telling my server to see for domain, with every day changing IP. One way every day assigning the new born address or do some automation script&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;&lt;br /&gt;Of course the script would be the best solution, and for LINUX we have an option &lt;b&gt;BASH&lt;/b&gt; scripting, easy and work`s on any Linux distro. I will explain how I`ve come to final script but here is the solution.&lt;br /&gt;&lt;br&gt; First we need to write write it in the /etc/cron.hourly/dyndns (the name of file)&lt;/p&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt; :$ sudo gedit /etc/cron.hourly/dyndns&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;You can choose nano if you like it.&lt;br /&gt;&lt;br&gt; There are two different versions BASH (I mentioned) or Pyton. Use whichever you want from below, but make sure the file name is dyndns without extension (no .py) because the scripts in cron.hourly won't run if they have an extension; &lt;br /&gt;&lt;code&gt;&lt;p&gt;&lt;br /&gt;#!/bin/bash&lt;br /&gt;# Set the user-name and password for the dyndns account&lt;br /&gt;USERNAME=&lt;br /&gt;PASSWORD=&lt;br /&gt;# Set the system being used to either static or dynamic DNS&lt;br /&gt;SYSTEM=dyndns&lt;br /&gt;# Set the hostname for the record to change&lt;br /&gt;DYNHOST=&lt;br /&gt;# Set whether to wildcard the DNS entry, i.e. *.$DYNHOST&lt;br /&gt;WILDCARD=OFF&lt;br /&gt;############################################&lt;br /&gt;## DO NOT EDIT ANYTHING BEYOND THIS POINT ##&lt;br /&gt;############################################&lt;br /&gt;if [ -z "$DYNDNS" ]; then&lt;br /&gt;DYNDNS="$DYNHOST"&lt;br /&gt;fi&lt;br /&gt;if [ -z "$DNSWILD"]; then&lt;br /&gt;DNSWILD="$WILDCARD"&lt;br /&gt;fi&lt;br /&gt;LOOKUP=`host $DYNHOST | awk '{print $4}'`&lt;br /&gt;MYIP=`curl -s http://www.ipchicken.com | awk '/[0-9]*\.[0-9]*\.[0-9]*\.[0-9]*/ {print $1}'`&lt;br /&gt;# Do the work&lt;br /&gt;if [ "$LOOKUP" = "$MYIP" ]; then&lt;br /&gt;echo "No change in DNS entry."&lt;br /&gt;else&lt;br /&gt;echo `lynx -auth=${USERNAME}:${PASSWORD} -source "http://members.dyndns.org:8245/nic/update?system=${SYSTEM}&amp;hostname=${DYNDNS}&amp;myip=${MYIP}&amp;wildcard=${DNSWILD}"`&lt;br /&gt;fi&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;This version works, but not in all cases, be careful and test when you upgrade or reinstall you Linux distro, it could not work properly.&lt;br /&gt;An remember to set configuration for &lt;a href="http://dyndns.com"&gt;dyndns.com&lt;/a&gt;, so your dynamic IP address is updated properly in time period 60 mins.&lt;br /&gt;Article inspired by &lt;a href="http://webupd8.blogspot.com"&gt;http://webupd8.blogspot.com&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1881179913699225953-7465176230426756498?l=passivemanagement.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://passivemanagement.blogspot.com/feeds/7465176230426756498/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://passivemanagement.blogspot.com/2009/10/problem-with-dynamicdns-and-ssh-or_08.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1881179913699225953/posts/default/7465176230426756498'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1881179913699225953/posts/default/7465176230426756498'/><link rel='alternate' type='text/html' href='http://passivemanagement.blogspot.com/2009/10/problem-with-dynamicdns-and-ssh-or_08.html' title='Problem with DynamicDNS and SSH or Sever PART2 - Practice in BASH'/><author><name>pasivemanagement</name><uri>http://www.blogger.com/profile/12585883706012463018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_T9qY3yjxbsU/Sz4CFt5NG3I/AAAAAAAAAP0/hrERlMD9m4c/S220/Janis_WEB.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1881179913699225953.post-1871192969108960632</id><published>2009-10-08T12:17:00.014+01:00</published><updated>2009-10-08T20:35:09.177+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Theory'/><category scheme='http://www.blogger.com/atom/ns#' term='Dynamic DNS'/><category scheme='http://www.blogger.com/atom/ns#' term='SSH'/><category scheme='http://www.blogger.com/atom/ns#' term='Servers'/><title type='text'>Problem with DynamicDNS and SSH or Sever PART1 - theory.</title><content type='html'>&lt;P align=justify&gt; Hi, just a two months ago I started a new company, offering new and innovative type of services &lt;b&gt;"Remote office assistant" &lt;/b&gt;. Early in the begining I`ve got an Idea to set up a server in my as a base, situated in my office. &lt;br&gt; At first stage brilliant idea - have server, switch it on, install LINUX and let`s go.&lt;br&gt;&lt;br /&gt;Hey guys not so easy, my ISP company offered only Dynamic DNS support or (as they said) almost impossible to jump to static IP, except to pay 10 times more a month. OK, that was not a solution, but I did not gave up, after some research and road back to theory I found out:&lt;br /&gt;&lt;ul align=center&gt;&lt;br /&gt;&lt;li&gt;First, what says definition of Dynamic DNS - DNS is a method, protocol, or network service that provides the capability for a networked device, such as a router or computer system using the Internet Protocol Suite, to notify a domain name server to change, in real time (ad-hoc) the active DNS configuration of its configured host names, addresses or other information stored in DNS. A popular application of dynamic DNS is to provide a residential user's Internet gateway that has a variable, often changing, IP address with a well known host name resolvable by network applications through standard DNS queries;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Second - Conclusion from theory, this is something that changes, not static, so almost impossible to assign to server or even desktop, if you want your deals with ssh and network based solutions;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Third - once again back to theory now lets see functions. The user of DNS may be supplied with a different IP address every time an Internet connection to the service provider is made, so there is no stable address to connect to. If a DDNS service is used to associate a fixed address to a device, then the user can, for example, establish a Virtual Private Network (VPN) to the network using that address. As a detailed example, the IP address can be 123.234.111.112 one day, 123.124.45.15 the next, but the DDNS address will always be, say, myhome.ddns.org. A remote control program such as VNC server can be left running on a machine in the network; the user can connect to the network by establishing a password-protected VPN to myhome.ddns.org, then connect to the machine using a VNC client program;&lt;/li&gt;&lt;br /&gt;&lt;li&gt; Fourth - last. So From this we need a some third party service provider, who can assign an domain to may always changing IP addresses.&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;&lt;br /&gt;I`ve finnished with my theory, inspired from &lt;a href="http://en.wikipedia.org/wiki/Dynamic_DNS"&gt;wikipedia&lt;/a&gt; article , thats it for today. I will continue with practical issues soon on PART2. &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1881179913699225953-1871192969108960632?l=passivemanagement.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://passivemanagement.blogspot.com/feeds/1871192969108960632/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://passivemanagement.blogspot.com/2009/10/problem-with-dynamicdns-and-ssh-or.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1881179913699225953/posts/default/1871192969108960632'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1881179913699225953/posts/default/1871192969108960632'/><link rel='alternate' type='text/html' href='http://passivemanagement.blogspot.com/2009/10/problem-with-dynamicdns-and-ssh-or.html' title='Problem with DynamicDNS and SSH or Sever PART1 - theory.'/><author><name>pasivemanagement</name><uri>http://www.blogger.com/profile/12585883706012463018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_T9qY3yjxbsU/Sz4CFt5NG3I/AAAAAAAAAP0/hrERlMD9m4c/S220/Janis_WEB.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1881179913699225953.post-42924932411165389</id><published>2009-09-16T07:39:00.021+01:00</published><updated>2009-09-16T08:11:42.770+01:00</updated><title type='text'>VRMS - tool to get to know what is on your Ubuntu machine</title><content type='html'>&lt;P align=justify&gt; Hi, just searching around the &lt;B&gt;WEB&lt;/B&gt; I found an interesting thing VRMS, a tool to get to know what is installed on your Ubuntu distro via OS packing system or as We all know very well - Sympatic package manager.&lt;br /&gt;&lt;BR&gt; So you can easily start with this comad &lt;br&gt;&lt;br /&gt;&lt;TEXTAREA COLS=60 ROWS=1&gt; :$ vrms &lt;/TEXTAREA&gt; &lt;BR&gt; Which gave me out this picture&lt;br /&gt;&lt;br&gt; &lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_T9qY3yjxbsU/SrCLH7KpBLI/AAAAAAAAAGE/_hbsXNvYSso/s1600-h/WRMS+1.jpeg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 53px;" src="http://3.bp.blogspot.com/_T9qY3yjxbsU/SrCLH7KpBLI/AAAAAAAAAGE/_hbsXNvYSso/s320/WRMS+1.jpeg" border="0" alt=""id="BLOGGER_PHOTO_ID_5381954522965410994" /&gt;&lt;/a&gt; &lt;br /&gt;&lt;br&gt;&lt;br /&gt;Sorry this in Latvian, but it means that by default it is not on your Ubuntu distro, so we need to install it &lt;br /&gt;&lt;br&gt; &lt;TEXTAREA COLS=60 ROWS=1&gt; :$ sudo apt-get install vrms &lt;/TEXTAREA&gt; &lt;br&gt;Whent it is done we need to repeat &lt;br /&gt;&lt;br&gt; &lt;TEXTAREA COLS=60 ROWS=1&gt; :$ vrms &lt;/TEXTAREA&gt; &lt;br&gt; and here you have, or actually I had the result. &lt;br /&gt;&lt;br&gt; &lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_T9qY3yjxbsU/SrCMcPgT5AI/AAAAAAAAAGM/QuUTz-fb8Mc/s1600-h/vrms+screenshot.jpeg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 339px;" src="http://2.bp.blogspot.com/_T9qY3yjxbsU/SrCMcPgT5AI/AAAAAAAAAGM/QuUTz-fb8Mc/s400/vrms+screenshot.jpeg" border="0" alt=""id="BLOGGER_PHOTO_ID_5381955971534021634" /&gt;&lt;/a&gt; &lt;br&gt; That`s it, easy? &lt;br&gt;&lt;br /&gt;The dark side of VRMS as you can see - it gives out only non free packages installed only via Sympatic, anyway result is not so bad, is it?&lt;br /&gt;&lt;/P&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1881179913699225953-42924932411165389?l=passivemanagement.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://passivemanagement.blogspot.com/feeds/42924932411165389/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://passivemanagement.blogspot.com/2009/09/vrms-tool-to-get-to-know-what-is-on.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1881179913699225953/posts/default/42924932411165389'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1881179913699225953/posts/default/42924932411165389'/><link rel='alternate' type='text/html' href='http://passivemanagement.blogspot.com/2009/09/vrms-tool-to-get-to-know-what-is-on.html' title='VRMS - tool to get to know what is on your Ubuntu machine'/><author><name>pasivemanagement</name><uri>http://www.blogger.com/profile/12585883706012463018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_T9qY3yjxbsU/Sz4CFt5NG3I/AAAAAAAAAP0/hrERlMD9m4c/S220/Janis_WEB.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_T9qY3yjxbsU/SrCLH7KpBLI/AAAAAAAAAGE/_hbsXNvYSso/s72-c/WRMS+1.jpeg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1881179913699225953.post-8345420228314044826</id><published>2009-09-13T20:29:00.002+01:00</published><updated>2009-09-13T20:36:17.044+01:00</updated><title type='text'>Damn Small PHP Frameworks. Because size does matter.</title><content type='html'>Below on the link you will find nice set of ready PHP frameworks, all of them you can use for you small or even bigger web developments.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://jeez.eu/2009/09/12/damn-small-php-frameworks-because-size-does-matter/"&gt;Damn Small PHP Frameworks. Because size does matter.&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1881179913699225953-8345420228314044826?l=passivemanagement.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://passivemanagement.blogspot.com/feeds/8345420228314044826/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://passivemanagement.blogspot.com/2009/09/damn-small-php-frameworks-because-size.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1881179913699225953/posts/default/8345420228314044826'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1881179913699225953/posts/default/8345420228314044826'/><link rel='alternate' type='text/html' href='http://passivemanagement.blogspot.com/2009/09/damn-small-php-frameworks-because-size.html' title='Damn Small PHP Frameworks. Because size does matter.'/><author><name>pasivemanagement</name><uri>http://www.blogger.com/profile/12585883706012463018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_T9qY3yjxbsU/Sz4CFt5NG3I/AAAAAAAAAP0/hrERlMD9m4c/S220/Janis_WEB.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1881179913699225953.post-528658070766219326</id><published>2009-09-13T19:26:00.006+01:00</published><updated>2009-10-22T12:08:26.009+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHP'/><category scheme='http://www.blogger.com/atom/ns#' term='Theory'/><title type='text'>PHP tutorial for beginers</title><content type='html'>&lt;p align=justify&gt; I will really recommend to read all this step by step to any web developer or just a beginer of web development. I found this very interesting, for me - experienced WEB developer it was fantastic adventure to come back to beginings of PHP to solve some difficult issues. &lt;/&gt;&lt;br /&gt;&lt;a title="View Php on Scribd" href="http://www.scribd.com/doc/19246286/Php" style="margin: 12px auto 6px auto; font-family: Helvetica,Arial,Sans-serif; font-style: normal; font-variant: normal; font-weight: normal; font-size: 14px; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none; display: block; text-decoration: underline;"&gt;Php&lt;/a&gt; &lt;object codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" id="doc_947324754826243" name="doc_947324754826243" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" align="middle" height="500" width="100%" rel="media:document" resource="http://d1.scribdassets.com/ScribdViewer.swf?document_id=19246286&amp;access_key=key-1yh67t8ml77cjurr1j52&amp;page=1&amp;version=1&amp;viewMode=" xmlns:media="http://search.yahoo.com/searchmonkey/media/" xmlns:dc="http://purl.org/dc/terms/" &gt;  &lt;param name="movie" value="http://d1.scribdassets.com/ScribdViewer.swf?document_id=19246286&amp;access_key=key-1yh67t8ml77cjurr1j52&amp;page=1&amp;version=1&amp;viewMode="&gt;   &lt;param name="quality" value="high"&gt;   &lt;param name="play" value="true"&gt;  &lt;param name="loop" value="true"&gt;   &lt;param name="scale" value="showall"&gt;  &lt;param name="wmode" value="opaque"&gt;   &lt;param name="devicefont" value="false"&gt;  &lt;param name="bgcolor" value="#ffffff"&gt;   &lt;param name="menu" value="true"&gt;  &lt;param name="allowFullScreen" value="true"&gt;   &lt;param name="allowScriptAccess" value="always"&gt;   &lt;param name="salign" value=""&gt;        &lt;embed src="http://d1.scribdassets.com/ScribdViewer.swf?document_id=19246286&amp;access_key=key-1yh67t8ml77cjurr1j52&amp;page=1&amp;version=1&amp;viewMode=" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" play="true" loop="true" scale="showall" wmode="opaque" devicefont="false" bgcolor="#ffffff" name="doc_947324754826243_object" menu="true" allowfullscreen="true" allowscriptaccess="always" salign="" type="application/x-shockwave-flash" align="middle"  height="500" width="100%"&gt;&lt;/embed&gt; &lt;/object&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1881179913699225953-528658070766219326?l=passivemanagement.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://passivemanagement.blogspot.com/feeds/528658070766219326/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://passivemanagement.blogspot.com/2009/09/php-tutorial-for-beginers.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1881179913699225953/posts/default/528658070766219326'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1881179913699225953/posts/default/528658070766219326'/><link rel='alternate' type='text/html' href='http://passivemanagement.blogspot.com/2009/09/php-tutorial-for-beginers.html' title='PHP tutorial for beginers'/><author><name>pasivemanagement</name><uri>http://www.blogger.com/profile/12585883706012463018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_T9qY3yjxbsU/Sz4CFt5NG3I/AAAAAAAAAP0/hrERlMD9m4c/S220/Janis_WEB.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1881179913699225953.post-6044924123535928794</id><published>2009-09-05T19:09:00.002+01:00</published><updated>2009-09-05T19:11:19.646+01:00</updated><title type='text'>Google books wins ally in Brussels</title><content type='html'>Originally read this article in Financial times on Friday August 28th;&lt;br /&gt;"Viviane Reding, the European Union`s media commissioner, has thrown her weight behind Internet search group Google in the row about whether it should be allowed to publish millions of scanned books on-line, Reuters write in Brussels.&lt;br /&gt;This year Google struck a deal with author and publisher groups in the US, to allow it to copy books for the Internet."&lt;br /&gt;Looking to Wired editors Cris Anderson published book Free (price of the future), I might say this kind of private imitative is good bookmark for our stagnant European economy and society, also this is new future of web, with "Free"="Freedom of charge".&lt;br /&gt;Google, whose products I personally use with extensive, with the publication of books scanned initiative takes a broad step forward towards the future of libraries, which assessed the knowledge of EU institutions, taking into account the fact that research within Europe on the future of digital libraries solutions are launched only this year .&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1881179913699225953-6044924123535928794?l=passivemanagement.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://passivemanagement.blogspot.com/feeds/6044924123535928794/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://passivemanagement.blogspot.com/2009/09/google-books-wins-ally-in-brussels.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1881179913699225953/posts/default/6044924123535928794'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1881179913699225953/posts/default/6044924123535928794'/><link rel='alternate' type='text/html' href='http://passivemanagement.blogspot.com/2009/09/google-books-wins-ally-in-brussels.html' title='Google books wins ally in Brussels'/><author><name>pasivemanagement</name><uri>http://www.blogger.com/profile/12585883706012463018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_T9qY3yjxbsU/Sz4CFt5NG3I/AAAAAAAAAP0/hrERlMD9m4c/S220/Janis_WEB.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1881179913699225953.post-2992558352572841306</id><published>2009-08-30T15:25:00.001+01:00</published><updated>2009-08-30T15:25:59.704+01:00</updated><title type='text'>First impressions about Kosovo</title><content type='html'>&lt;span xmlns=''&gt;&lt;p&gt;Just arrived by plane on 28th of august 2009 to airport of Pristina approximately 20 km from the city, fined out – my baggage is lost. Airport of pristine is rather small, but there exists "lost and found" office. It was empty, just on the small lists of paper I find local number to call. A woman spoke a little English so I needed to wait a little. Second woman spoke much better English so we find out that my belongings are forgotten in Vienna, I got a promise having them tomorrow  29 th august here in Pristina.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;After this I should say little misunderstanding my first impressions about the newest country in Europe were not the best ones. Having fixed all papers about missing items, I walked out of the airport building and thank god first person I met was in the light blue t-shirt of Kosova-sofware of-freedom. They had been waiting for me for a long time, but they did. We took not the closest way to the city, we went with 10 year old WV van through small Kosovian villages, most of the buildings looked un unfinished, road and grass near it are really dirty full of household and municipal waste, it seems locals are not doing any day to day cleaning at all.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Our guide (I don't remember his name) is very communicative, and as I can see all young people also.  We went to the downtown left two of conference speakers in their hotel, I`ve managed to walk to my reserved accommodation "Professors guesthouse", nice pretty three storey brick building, rooms are cheap 15 EUR only., but I am still in stress my baggage is lost and I am not sure will I get it tomorrow. So I`ve managed to send mails to google group of the conference and went out for little food shoping.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Conclusion&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Kosovo and Pristina nice and welcoming despite of the baggage loss I am feeling good and I think any who could come here for first time will have a same nice feelings.  Something even amazed me;&lt;br /&gt;&lt;/p&gt;&lt;ol&gt;&lt;li&gt;EUR currency – I supposed local currency, but local is EUR &lt;br /&gt;&lt;/li&gt;&lt;li&gt;Easy walk able city of Pristina&lt;br /&gt;&lt;/li&gt;&lt;li&gt;English speakers – even Taxi drivers are speaking very well English.&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;This my first emotions, but I plan to place more in a few days. &lt;br /&gt;&lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1881179913699225953-2992558352572841306?l=passivemanagement.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://passivemanagement.blogspot.com/feeds/2992558352572841306/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://passivemanagement.blogspot.com/2009/08/first-impressions-about-kosovo.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1881179913699225953/posts/default/2992558352572841306'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1881179913699225953/posts/default/2992558352572841306'/><link rel='alternate' type='text/html' href='http://passivemanagement.blogspot.com/2009/08/first-impressions-about-kosovo.html' title='First impressions about Kosovo'/><author><name>pasivemanagement</name><uri>http://www.blogger.com/profile/12585883706012463018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_T9qY3yjxbsU/Sz4CFt5NG3I/AAAAAAAAAP0/hrERlMD9m4c/S220/Janis_WEB.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1881179913699225953.post-4838018836122915070</id><published>2009-08-12T01:57:00.008+01:00</published><updated>2009-08-12T02:58:34.935+01:00</updated><title type='text'></title><content type='html'>&lt;P align = "center"&gt; &lt;span style="font-weight:bold;"&gt;Today I`ve realized how much we get from internet - web 2.0!&lt;/span&gt;&lt;/P&gt;&lt;br /&gt;&lt;P align = "justify"&gt;&lt;br /&gt;Imagine billions of INTERNET users, refers to billions on possibilities and billions of costumer possibilties. I am writing in this blog about passive management technologies. Passive the word with two Latin cores Passivus - not active, and Passim - everywhere, in all. This means today do not to be an active seller or marketer you need to be a good writer, you need to now 1 extra language - html, to deliver the information on the web. To web resources I am basing my passive mangement technologies. &lt;/P&gt; &lt;br /&gt;&lt;P align = "justify"&gt; Let`s take an example - you just established the company by yourself, you have an excellent product category "Self security", the idea is brilliant, because everybody today cares bout security, whatever it would be, web, justice, personal. Before the opening of your company  and today you are trying to do research with different type of question forms, but still you do not have any real costumers, feedback you more or less - well interesting but what it is "I ca take care by myself". So, the thing you need FIRST - web site, where you could tell the WORLD you idea your your proposal, where you need to have small comment box to get fast feedback from the world. The web site should be easy understandable and reachable by anybody. Hire a professional web - I should say web designer, yes, well, the better explanation would be writer, who nows the web 2.0, and thats you need. As fast you get on the web as fas you can start to use any open source web marketing tools, today there are a lot of them. &lt;/P&gt;&lt;br /&gt;&lt;P align = "justify"&gt; Please, do not waste your time, use this passive method of working with the web society, get feedback from them and and believe me in short time you will improve your product - knowledge about you product"&lt;/P&gt;&lt;br /&gt;&lt;P align = "justify"&gt; For summarizing - the main issue is your idea, that is yours, to get the best results if you need a service to get the IDEA live, outsource them. You are able to outsorce even a manager today. I wrote in my previous article about the guys from Latvia (Baltic countries), They are offering even a management out sourcing , incredible, you can rent a management service same as you hire an bookkeeping company. They are promising their web -site till middle of august, let`s see what it will look like?&lt;/P&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;&lt;P align ="center"&gt;&lt;object width="445" height="364"&gt;&lt;param name="movie" value="http://www.youtube.com/v/UIDLIwlzkgY&amp;hl=en&amp;fs=1&amp;border=1"&gt;&lt;/param&gt;&lt;paramname="allowFullScreen" value="true"&gt;&lt;/param&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/v/UIDLIwlzkgY&amp;hl=en&amp;fs=1&amp;border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="445" height="364"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;/P&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1881179913699225953-4838018836122915070?l=passivemanagement.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://passivemanagement.blogspot.com/feeds/4838018836122915070/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://passivemanagement.blogspot.com/2009/08/today-ive-realized-how-much-we-get-from.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1881179913699225953/posts/default/4838018836122915070'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1881179913699225953/posts/default/4838018836122915070'/><link rel='alternate' type='text/html' href='http://passivemanagement.blogspot.com/2009/08/today-ive-realized-how-much-we-get-from.html' title=''/><author><name>pasivemanagement</name><uri>http://www.blogger.com/profile/12585883706012463018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_T9qY3yjxbsU/Sz4CFt5NG3I/AAAAAAAAAP0/hrERlMD9m4c/S220/Janis_WEB.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1881179913699225953.post-6214457790923572639</id><published>2009-08-04T20:04:00.005+01:00</published><updated>2009-08-04T20:09:27.848+01:00</updated><title type='text'>Open sources and PASIVE</title><content type='html'>&lt;a href="http://blogs.techrepublic.com.com/opensource/?p=821"&gt;http://blogs.techrepublic.com.com/opensource/?p=821&lt;/a&gt;&lt;br /&gt;A blog article I found today via Twitter - interesting theme. So, I wrote this below.&lt;br /&gt;I think switching to Open source today is the matter of creativity and originality. Imagine no limits no codes, well there are actually codes but they are open.&lt;br /&gt;For instance your company has lack of  resources, any financial, resources of ideas.  You with your team  realizing - you need "breakthrough", you need new search engine for new ideas or problem solutions.&lt;br /&gt;Today it is easy - hire someone - only one person or small team of developers, give them a task to build a search engine for your CRM or EMS (Enterprise management system) and go on they have all resources open to work. &lt;br /&gt;I think that is fantastic way to almost anything for your business needs. OK, you could ask or argue We are working in Windows  - even that is no problem, there are open source solutions working with Windows and in Windows desktop environments.&lt;br /&gt;I think that is some sort of "Passive" developing, you are not really doing development you use core API of some thing and finish it for your needs, product service or system.&lt;br /&gt;So, with your new development you  are able to share, it should  be "open source", OK, you can ask a fee for a service using you application or solution but the API needs to be open.&lt;br /&gt;Another big advantage - you can share your new application even in early stage, even if it is unstable, to get more feedback from testing. Today bug reports are very common to any open source system (also if it is not open), because nothing is perfect there should be something to modify or change, otherwise you will stop any development at all.&lt;br /&gt;To summarize, from my side "open source" is more to the market more to the user`s so this is the way how to allow companies  to get more market shares instead of hiding the codes, you get more feed back, more people and organizations are using that, so you have more costumers, because they want services from your company, they need to be educated&lt;span style="font-size:130%;"&gt; how it works&lt;/span&gt;?.&lt;br /&gt;This is the way out of a crisis, this the solution today.&lt;br /&gt;I mentioned "Passive", reason I did it? When you work with open source developers you do not need to take active involvement in the process, feedback you can get back directly from your costumers, because you share your`s owned development.  This obstacle spend less resources and time, because you see how it goes in LIVE motion from the market.&lt;br /&gt;Maybe this is the way for your enterprise to have open source staff, interesting meaning "open source" staff. Well I now one company in Latvia who`s offered services is "open source" ideas and solutions. As a matter of fact PASIVE Ltd (SIA) is the name of this company. The funniest thing in it - they are having a company`s service - tray a worker or rent a worker (I hope mentioned right). As they presented to me, with their service you will not need to hire somebody for your direct work you will be able to rent the person from PASIVE company, and now the best you can have a service trial period - you understand I guess.&lt;br /&gt;Well today they can offer to you such working force  FOR RENT with TRIAL PERIOD;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;financial manager&lt;/li&gt;&lt;li&gt;project manager&lt;/li&gt;&lt;li&gt;assistant manager&lt;/li&gt;&lt;li&gt;development manager.&lt;/li&gt;&lt;/ul&gt; They promise to have web page till 15Th of August, let`s see more, I think&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1881179913699225953-6214457790923572639?l=passivemanagement.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://passivemanagement.blogspot.com/feeds/6214457790923572639/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://passivemanagement.blogspot.com/2009/08/open-sources-and-pasive.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1881179913699225953/posts/default/6214457790923572639'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1881179913699225953/posts/default/6214457790923572639'/><link rel='alternate' type='text/html' href='http://passivemanagement.blogspot.com/2009/08/open-sources-and-pasive.html' title='Open sources and PASIVE'/><author><name>pasivemanagement</name><uri>http://www.blogger.com/profile/12585883706012463018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_T9qY3yjxbsU/Sz4CFt5NG3I/AAAAAAAAAP0/hrERlMD9m4c/S220/Janis_WEB.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1881179913699225953.post-4517255359958085121</id><published>2009-07-22T11:05:00.002+01:00</published><updated>2009-07-22T11:33:34.404+01:00</updated><title type='text'></title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.quentyx.com/quentyx_images/ubuntu-logo.png"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 101px; height: 105px;" src="http://www.quentyx.com/quentyx_images/ubuntu-logo.png" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;span style="font-weight: bold; color: rgb(255, 204, 102);font-size:130%;" &gt;PASIVE SIA izvēlas Ubuntu&lt;/span&gt;.&lt;br /&gt;&lt;/div&gt;Jau pirms uzņēmuma dibināšanas un Pasivemanagement koncepcijas iztrādes laikā, mēs, uzņēmuma idejas autors Jānis Janovskis, atbalstītāji un padomdevēji, izvēlējāmies saviema IT vadības risnājumiem atvērtu pieeju.&lt;br /&gt;Veicot programmatūras testus un pārbaudes, par nopietnāko partneri redzam uzņēmumu Canonical Ltd un produktu Ubuntu, kuru jau no pirmajām uzņēmuma darbības dienām lietojam arī paši.&lt;br /&gt;Papildus, Ubuntu esmu testējis un pārbaudījis vadības un apmācību risinājumus ar citiem Canonical Produktiem Kubuntu un Edubuntu.&lt;br /&gt;Turpmāk visi mūsu radītie risnājumi, būs atvērti pieejami sabiedrībai.&lt;br /&gt;Kāpēc Atvērtais kods?&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Mūsdienās ļoti aktuāls ir kļuvis jautājums par datorsistēmu darbības drošību, dienās, kad interneta ātrums pat mājsaimniecībām ir saniedzis 100 Mbs. Rodas nepieciešamība pēc atriem un drošiem datorsistēmu risinājumiem. Atvērtā koda risinājumi ir vienīgie, kas spēj nodošinā ātru instalācijas un risnājumu piegādes servisu.&lt;/li&gt;&lt;li&gt;Atvērtā koda risinājumu ir atvērti lietošanai un jūsu radošumam, tos neveido slēgta izstrādātāju komanda, tos veido sabiedrība - comunity.&lt;/li&gt;&lt;li&gt;Atvērtā koda risnājumi ir brīvi pieejami, tie ietaupa jūsu laiku un naudu, jo nav jāmāksā par licencēm, jūs taču nepirksiem licenci pildspalavai, vai zīmulim?&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1881179913699225953-4517255359958085121?l=passivemanagement.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://passivemanagement.blogspot.com/feeds/4517255359958085121/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://passivemanagement.blogspot.com/2009/07/pasive-sia-izvelas-ubuntu.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1881179913699225953/posts/default/4517255359958085121'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1881179913699225953/posts/default/4517255359958085121'/><link rel='alternate' type='text/html' href='http://passivemanagement.blogspot.com/2009/07/pasive-sia-izvelas-ubuntu.html' title=''/><author><name>pasivemanagement</name><uri>http://www.blogger.com/profile/12585883706012463018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_T9qY3yjxbsU/Sz4CFt5NG3I/AAAAAAAAAP0/hrERlMD9m4c/S220/Janis_WEB.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1881179913699225953.post-2068389271857376730</id><published>2009-07-22T10:31:00.005+01:00</published><updated>2009-07-22T10:47:02.357+01:00</updated><title type='text'>PASIVE uzņēmums</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_T9qY3yjxbsU/Smbf6CrsCmI/AAAAAAAAAFw/_uUl3gxenOM/s1600-h/PASIVE.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 200px; height: 82px;" src="http://1.bp.blogspot.com/_T9qY3yjxbsU/Smbf6CrsCmI/AAAAAAAAAFw/_uUl3gxenOM/s200/PASIVE.jpg" alt="" id="BLOGGER_PHOTO_ID_5361218594676673122" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;PASIVE SIA&lt;br /&gt;2009.  gada 20. jūlijā saņēmu uzņēmuma PASIVE reģistrācijas apliecību.&lt;br /&gt;Tas ir sākums Pasivemanagement vadības sistēmai.&lt;br /&gt;Ar ko plānots nodarboties PASIVE SIA&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Vadības pakalpojumu sniegšana, par kuriem informācija tuvākajā laikā tiks publicēta jaunizviedotajā mājas lapā un šajā blogā.&lt;/li&gt;&lt;li&gt;Interaktīvu vadības tehnoloģiju iztrādi un ieviešanu&lt;/li&gt;&lt;li&gt;Open source risnājumu izstrāde MVU, to ieviešana un apkalpošana&lt;/li&gt;&lt;/ul&gt;Uzņēmuma adrese; Rīga, Brīvības iela 85, LV-1001&lt;br /&gt;Informācija par pakalpojumiem; janis.janovskis@gmail.com, vai +371 26121122; skype; janismelnais&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1881179913699225953-2068389271857376730?l=passivemanagement.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://passivemanagement.blogspot.com/feeds/2068389271857376730/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://passivemanagement.blogspot.com/2009/07/pasive-uznemums.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1881179913699225953/posts/default/2068389271857376730'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1881179913699225953/posts/default/2068389271857376730'/><link rel='alternate' type='text/html' href='http://passivemanagement.blogspot.com/2009/07/pasive-uznemums.html' title='PASIVE uzņēmums'/><author><name>pasivemanagement</name><uri>http://www.blogger.com/profile/12585883706012463018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://4.bp.blogspot.com/_T9qY3yjxbsU/Sz4CFt5NG3I/AAAAAAAAAP0/hrERlMD9m4c/S220/Janis_WEB.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_T9qY3yjxbsU/Smbf6CrsCmI/AAAAAAAAAFw/_uUl3gxenOM/s72-c/PASIVE.jpg' height='72' width='72'/><thr:total>0</thr:total></entry></feed>
