Blog Archive: November 2013

Minimum Wages in the Former Soviet Union: A Look at 2013

| Macroeconomics | 28 seen

The former Soviet Union was a vast region that encompassed a number of countries with distinct cultures, economies, and political systems. In 2013, the region was still recovering from the economic and political upheavals of the previous decades, and minimum wages varied widely across the countries that made up the former Soviet Union.

Previously I have already measured and compared minimum wages in Baltic states, Caucasus and Central Asia. All of these once were a part of the Soviet Union.

Today I'm willing to measure minimum wages in all the former 15 republics of the Soviet Union.

  $ Estonia 427 Lithuania 385 Latvia 379 Russia 159 Turkmenistan 154 Belarus 150 Ukraine 143 Azerbaijan 133 Kazakhstan 121 Armenia 108 Moldova 69 Georgia 54 Tajikistan 52 Uzbekistan 40 Kyrgyzstan 17

As seen from the data above - the highest minimum wage was in Estonia - making $427 per month, while the lowest is in Kyrgyzstan making more than a modest $17 per…


Minimum Wages in Central Asia: A Look at the Region's Low Wage Rates

| Macroeconomics | 26 seen

Central Asia is a region that consists of five countries: Kazakhstan, Kyrgyzstan, Tajikistan, Turkmenistan, and Uzbekistan. The region has a diverse economy, with industries ranging from agriculture to oil and gas production. However, the issue of minimum wage is one that affects workers across all sectors.

Minimum wages in Central Asia vary from country to country. In Kazakhstan, the current minimum wage is 42,500 tenge per month, which is roughly equivalent to $99 USD. In Kyrgyzstan, the minimum wage is 5,350 som per month, or approximately $63 USD. In Tajikistan, the minimum wage is 700 somoni per month, which is roughly $63 USD. In Turkmenistan, the minimum wage is not publicly disclosed, but we can make guess it is under $100. In Uzbekistan, the minimum wage is 690,000 Uzbekistani som per month, which is approximately $64 USD.

These minimum wage rates are far below the living wage required to support a family in each country. For example, in Kazakhstan, the living wage for a family of four is estimated to be around 100,000 tenges per month, more than twice the current minimum wage. In Uzbekistan, the living wage for a family of four is estimated to be…


Display node count per taxonomy

| Drupal Development | 8 seen

<p>Working on project, I needed to display how many nodes are in particular taxonomy.</p><p><img src="http://reinisfischer.com/sites/default/files/taxonomy-count.png&quot; alt="" width="727" height="212"></p><p>&nbsp;</p><p>To achieve such behavior - I created a term based view, turned on aggregation, under Relationships added Taxonomy term Content using, added taxonomy term name, nid and image fields,&nbsp;and set to aggregate nid count.</p><p><img src="http://reinisfischer.com/sites/default/files/aggregationsettings.JPG&qu…; alt=""></p>


Building a Drupal site from scratch - part 13 - working with node display

| Drupal Development | 17 seen

<p>By default, when adding new fields to content type, and then entering values in them, Drupal will display all of them on node:</p><p><img src="http://reinisfischer.com/sites/default/files/allfieldsdisplayed.png&quot; alt="" width="880" height="309"></p><p>But what if we don't want some or all of these fields to be displayed on our node?</p><p>Simple, we can change order, or hide them by using Manage Display settings on our Content type page</p><p><img src="http://reinisfischer.com/sites/default/files/managedisplay.png&quot; alt="" width="1200" height="404"></p><p>As you can see from picture above, we have few options - we can change Format of how our field is displayed, we can adjust label for each field, and of-course we can hide the field (fields)</p><p>I like to hide all fields from display, except Body field, like this:</p><p><img src="http://reinisfischer.com/sites/default/files/hiddenfields.png&quot; alt="" width="1107" height="310"></p…


Building a Drupal site from scratch - part 12 - Working with image styles

| Drupal Development | 3 seen

By default Drupal offers 3 image styles enabled: thumbnail, medium, large:

Image styles can be applied to images we are using in views, and not always 3 default options are enough.

 

In the image above, you can see, we have passed some default image styles in our Featured tours view. What are the options to make the images fit the box? Well, we could use Some CSS techniques, but we can use image styles options from Drupal, right?

So I'm gonna create a new image style, called grid2:

  • Go to admin/config/media/image-styles
  • Click Add style
  • Give it a name, in my case grid2
  • In the next windows after pressing create style, scroll down for the Effect section
  • From the dropdown menu choose and select Scale and crop, and press Add
  • Enter dimensions from your new image style (I'm gonna use 450X220
  • Save
By now we have created a new image-style, so how could we apply this to our view?    Go to the view, containing image field, open image field, in section image style change style to newly created, apply style, and save the view.…

Drupal 7 override page.tpl.php for specific content type

| Drupal Development | 34 seen

<p>Working on project I needed a function to override default page.tpl.php for specific content type. I did use theme_hook function some 2 years ago, and I knew it's achievable in Drupal.</p><p>Doing quick Google search found a Drupal tutorial <a href="https://drupal.org/node/249726">https://drupal.org/node/249726</a>&nbsp;- &nbsp;don't know is it problem with my project, but that didn't work as expected, and after brief investigation I found a solution:&nbsp;<a href="https://drupal.org/node/1089656#comment-4662688">https://drupal.org/nod… a new page.tpl.php for your specific content - for example page--acommodations.tpl.php</p><p>In your template.php file add:</p><blockquote><pre>function YOURTHEME_preprocess_page(&amp;$vars, $hook) {<br> if (isset($vars['node'])) {<br> // If the node type is "accommodation" the template suggestion will be "page--accommodation.tpl.php".<br> $vars['theme_hook_suggestions'][] = 'page__'. $vars['node']-&gt;type;<br> }<br>}</pre…


Motive (TV-series)

| Worth to Watch | 4 seen

<p>Started to watch a new crime series - Motive.</p><p>Plot line:</p><blockquote><p>A feisty Vancouver homicide detective tracks down the most cunning of killers by trying to figure out the motive to the crime.</p></blockquote><p>Time by time I like to watch TV series, and so in Sunday evening I found a new series to watch - Motive.</p><p>After watching first 3 series, I'm ready to continue to watch all season.</p><p>It's interesting that on start of each series is showed who is the killer, and who is the victim, and then latter on - detectives finds a motive.</p><p>&nbsp;</p><p>At the start of series I didn't quite get is it US or Canada based series - but now I know, it is made in Canada, and series plot line is set on streets of Vancouver.</p><p>&nbsp;</p><p>IMDB:&nbsp;<a href="http://www.imdb.com/title/tt2443340/">http://www.imdb.com/title/tt24433…;


Customizing Subpage page.tpl.php Design in Drupal: Tips and Tricks

| Drupal Development | 4 seen

Theming subpages in Drupal is an important aspect of website design that can help you create a professional-looking website that engages your visitors. One way to achieve this is by theming subpages like page.tpl.php in Drupal. 

In this article, we'll take a closer look at what page.tpl.php is, and how you can use it to create custom subpage themes in Drupal. 

Page.tpl.php is a template file in Drupal that controls the overall layout and styling of your website pages. By default, it applies to all pages on your website, but you can also create custom page.tpl.php files for specific subpages. This allows you to create a unique look and feel for different sections of your website.

To theme subpages like page.tpl in Drupal, you'll need to create a new template file and name it according to Drupal's naming convention.

For example, if you want to create a custom template for a subpage that displays blog posts, you would create a new file called page--blog.tpl.php. This file would contain the HTML, CSS, and PHP code needed to create the desired layout and styling for your blog subpage.

Once you've created your custom…


Minimum wage in Baltic states

| Macroeconomics | 8 seen

Minimum wages in the Baltic states are the lowest ones in the European Union. In 2013 minimum wage in Baltic states was $427 in Estonia, $379 in Latvia and $385 in Lithuania.

Update: Minimum Wage Set to Rise in the Baltic States in 2018

Difference between "richest" Estonia and "poorest" Latvia in 2013, in terms of minimum wage, was = $48

 

Estonia has announced to increase its minimum wage by 35 EUR both in 2014 and 2015. In 2014 minimum wage in Estonia will be $474.

Latvia plans to increase its minimum wage to 320 EUR or $427 in 2014

I haven't found any evidence that Lithuania plans to increase its minimum wage in 2014.

In 2014, Lithuania will replace Latvia as "poorest" in terms of minimum wage, making difference with Estonia $89.

By forecasts - Estonia will reach minimum wage $500 mark already in 2015, so my predictions are that both in Latvia and Lithuania minimum wage will be increased as well.

Just by comparison, in relatively close Poland, the minimum wage in 2013 was $491 and is expected to reach $535 by 2014.


Building a Drupal site from scratch - part 10 - Views exposed filters

| Drupal Development | 13 seen

<p>Remember at start of this tutorial <a href="http://reinisfischer.com/building-drupal-site-scratch-part-1-planing">we created a tour types taxonomy</a>, by allowing asign a category for each node from content type tour? Today we gonna add these values to our tours page, by allowing for users to filer tours by their type:</p><p>&nbsp;</p><p>Open your view tour, and under filter settings add filter Tour type:</p><p><img src="http://reinisfischer.com/sites/default/files/filtertours.JPG&quot; alt="" width="752" height="563"></p><p>Make sure you check next to Expose this filter. Save your view, now by accessing your view page, you should see something similiar to this:</p><p><img src="http://reinisfischer.com/sites/default/files/filtertourview.JPG&quot; alt="" width="826" height="514"></p><p>&nbsp;</p><p>Which is nice, and does his job as needed (filters on values entered)</p><p>Depending on your mood and needs, you can leave this, or you can expose this filter…


Building a Drupal site from scratch - part 9 - adding menu

| Drupal Development | 9 seen

<p>To add a menu to your Drupal site, you should enable menu module from your modules page:</p><p><img src="http://reinisfischer.com/sites/default/files/enablemenu.JPG&quot; alt="" width="1162" height="169"></p><p>&nbsp;</p><p>When enabled, head to&nbsp;admin/structure/menu/manage/main-menu and a few menu links:</p><p><img src="http://reinisfischer.com/sites/default/files/listmenu.JPG&quot; alt="" width="1143" height="254"></p><p>&nbsp;</p><p>Depending on your theme structure, you have two options, either programmatically call menu in your theme, or put it on block. Since in this tutorial we are using Bootstrap theme, which has already called function to show menu, when enabled, after adding menu links, they will be visible on Bootstrap theme.&nbsp;</p><p>&nbsp;</p><p><img src="http://reinisfischer.com/sites/default/files/menutheme.JPG&quot; alt="" width="1012" height="174"></p>


Population changes in former Soviet Union

| Macroeconomics | 157 seen

15 former Soviet Union republics, then and now.

In 1990 in the Soviet Union lived 287.728 million people. In 2012 in the former republics lived 290.587 million people, which is 0.98% increase. A pretty small increase for 22 years.

 

The thing is, not all former Soviet republics have developed equally in next 22 years, since the collapse of Soviet Union.

Countries with population decrease:

Country 1990 2012  Change mln  % Latvia 2.663 2.025 -0.638 -31.5 Lithuania 3.698 2.986 -0.712 -23.84 Armenia 3.545 2.969 -0.576 -19.4 Estonia 1.569 1.339 -0.23 -17.17 Ukraine 51.89 45.59 -6.3 -13.81 Belarus 10.19 9.464 -0.72 -7.67 Georgia 4.802 4.512 -0.29 -6.42 Moldova 3.696 3.56 -0.136 -3.82 Russia 148.3 143.5 -4.8 -3.34

Countries with population increase:

Country

Building a Drupal site from scratch - part 8 - Theming subtheme CSS

| Drupal Development | 7 seen

<p>In part 2 of series how to build a Drupal site from scratch, I'm talking about how to create a subtheme from Bootstrap theme.</p><p>Today I would like to speak how to actually theme it, because just enabled it comes empty,with all files served from Bootstrap mater theme.</p><p>By default Bootstrap theme is set to be 1200px and wider, this is first thing I would like to change for our customers tourism website we are using in thee Drupal series. I don't mind for ite being 1200px and more wider, just I like to them be 940-980px, to work well on most display's.</p><p>&nbsp;</p><p>In your mytheme/css folder look for style.css file. It's empty, and now let's start overriding it:</p><p>add:</p><blockquote><pre>.container, .navbar-static-top .container, .navbar-fixed-top .container, .navbar-fixed-bottom .container {<br>width: 940px;<br>}</pre></blockquote><pre>&nbsp;</pre><pre>This will make themes default witdth to 940px.</pre><pre>&nbsp;</pre><pre>Actually this is it. Of course you must rewrite…


Drupal views archive page

| Drupal Development | 13 seen

<p>Today I decided to give some face-lift to my blog page. I wanted to add an archive function to filter blog posts by month. If you have views enabled, you can use default view archive, which comes with views.</p><p>Since I already had created a page blog, I didn't see any use to use 2 identical views - archive and blog. So I didn't enabled archive view, instead I fine tuned my existing blog page view:</p><p>Add Contextual filter:&nbsp;<strong>Content: Created year + month</strong>, to your blog page.</p><p><img src="http://www.reinisfischer.com/sites/default/files/contextual-filter.JPG&…; alt="" width="1117" height="528"></p><p>Set&nbsp;<strong>Display all results for the specified field</strong>&nbsp;WHEN THE FILTER VALUE IS NOT IN THE URL</p><p>Override title <strong>Blog %1</strong></p><p>&nbsp;</p><p>These settings will allow to pass argument in URL, by not making any harm to your existing blog page.&nbsp;</p><p>Now lets add new block from views. And head to…


Building a Drupal site from scratch - part 7 - Theming views

| Drupal Development | 4 seen

<p>In <a href="http://reinisfischer.com/building-drupal-site-scratch-part-5-custom-fro… 4</a> in tutorial series how to build a Drupal site from scratch, I am showing how to build views. Now let's upgrade them, by adding additional fields and even CSS style.</p><p>Yes, we will add CSS style directly into our views.</p><p>Lets go back to our view tours (if you are new to this series, please read <a href="http://reinisfischer.com/building-drupal-site-scratch-part-4-creating-v… to create a Drupal views</a>)</p><p>&nbsp;</p><p>In part 4 we have already changed Format for Featured blocks to fields, lets apply the same for page display:</p><p><img src="http://reinisfischer.com/sites/default/files/changestyle.JPG&quot; alt="" width="1076" height="434"></p><p>&nbsp;</p><p>Now lets add some fields to our view:</p><p>By default we already have Title field</p><ul><li>Add Photo field</li><li>Add Body Field</li></ul><div><img src="http://reinisfischer…