Add Menu Classes In Drupal 7

| Drupal Development | 25 seen

In this Drupal tutorial I'll show how to add menu classes to your Drupal 7 website using template.php file.

Original of this tutorial has been found here.

Add this function to your template.php file:

<?php /** * theme_menu_link() */ function THEMENAME_menu_link(array $variables) { //add class for li $variables['element']['#attributes']['class'][] = 'menu-' . $variables['element']['#original_link']['mlid']; //add class for a $variables['element']['#localized_options']['attributes']['class'][] = 'menu-' . $variables['element']['#original_link']['mlid']; //dvm($variables['element']); return theme_menu_link($variables); } ?>

P.S. If you are considering a hosting for your Drupal website check out Bluehost, their shared hosting starts as low as $3.95/mo or read more about cheap Drupal hosting.


Redirect non www to www - Apache .htaccess

| Servers | 4 seen

It has been years since I last time used .htaccess file available in Apache. I'm using Ngnix servers for 99.9 of mine work.

But today I had an opportunity to work on Apache environment, which uses .htaccess file.

So in order to rewrite non www to www in Apache I added following rulles to .htaccess file:

RewriteEngine On

RewriteCond %{HTTP_HOST} !^www\.

RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]

 

For Ngnix please read this article:

http://www.reinisfischer.com/ngnix-www-non-www


Da Vinci's Demons Season 2

| Worth to Watch | 13 seen

<p>Da Vinci's Demons season 2 aired on March 22, 2014.&nbsp;</p><p>I really enjoyed first season and was inpatient to see Season 2.&nbsp;</p><p>Maybe of very interesting ending at finale episode in season 1.</p><p>In this season you will meet new characters like Amerigo &nbsp;Vespucci, which in Da Vinci's Demons is portrayed as an alcoholic and con.</p><p>Good, interesting and popular SCI-Fi. Don't rely on this film to much, do your investigation more about Leonardo Da Vinci's work,as I did after watching first season.</p>


Add Viewport in the <head> in Drupal 7

| Drupal Development | 18 seen

In this Drupal Tutorial I will show how to add a new HTML in Drupal 7 head section.

I'm using responsive design to enable my blog work pretty ok on mobile devices, but yesterday looking through Google PageSpeed Insights suggestions I found that there is no viewport defined, so it might not render CSS as I might want, but instead to scale webpage to device.

Your page does not have a viewport specified. This causes mobile devices to render your page as it would appear on a desktop browser, scaling it down to fit on a mobile screen. Configure a viewport to allow your page to render properly on all devices.

What is the solution for Drupal 7?

I did a quick Google search, and found webomelette article with solution.

I added to my Drupal theme template.php following function:

function YOUR_THEME_preprocess_html(&$vars) { $viewport = array( '#tag' => 'meta', '#attributes' => array( 'name' => 'viewport', 'content' => 'width=device-width, initial-scale=1, maximum-scale=1', ), ); drupal_add_html_head($viewport, 'viewport'); }

Change YOUR_THEME to name of your theme, save…


A Time Lapse of green wall - Day 1

| Living in Georgia | 7 seen

There is a one really nice looking wall located in Tbilisi, I would like to show it to you, that building is left from the brick wall building opposite to me, and I'm seeing it every day, for the last one year. 

The wall is grown with some greens, and in Summer it looks cool green, in Autumn it turns red, in Winter it's naked, and now I'm looking to make a time-lapse of this wall turning from naked into the green.

Here is a Day 1 photo:

I'm not sure how many days I will need, to see that wall completely green, but I promise that at the end I will create a Time-lapse video, like some 30 seconds or like that.


Georgia - Day of National Unity

| Living in Georgia | 6 seen

25 years ago, on April 9th, 1989 in Tbilisi, then Georgian SSR tragic events took place, what later were named as Tbilisi tragedy, Tbilisi Massacre or April 9th Tragedy. 

Nowadays April 9th is marked as public holiday and called a the Day of National Unity.

Basicly Soviet Government turned against it's citizens and sent tanks out in streets to dispress opposition. Tbilisi events later turned to Vilnius events and other.

Prelude of Tbilisi tragedy

The anti-Soviet movement became more active in the Georgian SSR in 1988. Several strikes and meetings were organized by anti-Soviet political organizations in Tbilisi. The conflict between the Soviet government and Georgian nationalists deepened after the so-called Lykhny Assembly on March 18, 1989, when several thousand Abkhaz demanded secession from Georgia and restoration of the Union republic status of 1921–1931. In response, the anti-Soviet groups organized a series of unsanctioned meetings across the republic, claiming that the Soviet government was using Abkhaz separatism in order to oppose the pro-independence movement. The protests reached their peak on April 4, 1989, when…


Performing Joomla 1.5 convert to Drupal 7

| Drupal Development | 9 seen

Over past couple of years, I have many times seen a bad Joomla site, which either is hacked or is not working as it should, and I have converted those sites to Drupal.

The most strange things is, there is always some Joomla developer, who has created that site, but when problems occur, that Joomla developer is gone.. Strange right? How can one call himself a Joomla developer, when first problems occur, he is gone?

So I got another Joomla site request to perform a Joomla major Upgrade from 1.5 to 2.5. 

I thought, hell, why not - let's fix this site, by not converting it to Drupal (As I usually do), but let's stay on Joomla.

Site works, there has been no hackers yet. So I started to do Joomla upgrade. At first I made a minor upgrade, to update Joomla database to latest stable. I was reading a lot Joomla developer forums and blogs, what are they suggestions. In order to perform major upgrade for Joomla, you have to install some mystic upgrade extension... Ok, I did, I followed to all the best practices from Joomla community for upgrading Joomla site... And then.. It sucks.

There…


Father's David church, Mtatsminda pantheon and other

| Tourism objects | 18 seen

What to do in weekends when in Tbilisi? Grab your camera, and make some scenic views.

This time - photos from Tbilisi, taken in April 5th, 2014, visiting Mama Daviti church, Mtatsminda pantheon and other.


6 month of blogging each day has passed

| Blogging | 5 seen

I started this blog on October 4th, 2013, and I started my blogging experience with a promise to blog 365 days in a row (including Christmas, New Years day and other)

I'm half way there. So I decided to give some insights how I'm performing for now.

My blog traffic stats has raised from very modest to decent modest, in January I even experienced my first traffic spike, when someone posted link to my blog, on highly popular site.

I'm experiencing traffic gains step by step, last month (March)  I got 542 unique visitors which of course is pretty modest number. My plan by end of September is to get stable 6000 unique visitors per month. Pretty much to grow, right? I must increase my traffic by some 12 times. 

Top 10 articles

[view:referenced_items=block_1]

As you can see, some economical articles are more popular over other types of articles. I like economics and statistics, so for now, it seems, pretty ok. 

My AdSense earnings for my blog is really modest, it might me some $3 over last 6 months. So I decided to work with my sites layout, to get higher CTR.…


My online income report - March 2014

| Blogging | 11 seen

My online income in March dropped by half, and totalled to really modest $5.51.

In average I earned about $0.177 a day, what is significant drop compared to previous month, when in daily average I earned $0.34

  • Highest earnings per day: $1.06
  • Days making more than $1: 1
  • Days without making earnings: 7
 Main reason for drop in earnings is simple, I lost traffic for one of my top performer sites.On the other hand, in March I launched 3 new properties with Google Adsense.My blog seems now attracts the most visitors, but CTR is pretty low. So I'm planing to make few tests with ads placement on my blog, to see if it helps me get back my earnings to previous level.

Blog statistics March 2014

| Blogging | 7 seen

March was pretty good month in terms of visitors from search engines. My blog managed to attract more than 500 visitors this month.

500 is pretty modest result, but still it's growing number, compared to little more than 300 in previous month.

This month I'm aiming between 750-1000 unique visitors. I believe I will manage this, thanks to organic search results.

My aim is to get about 6000 uniques by end of this September/October. 


Living in Georgia already 3 years

| Living in Georgia | 5 seen

Today it has been already three years, since I have been living in Georgia. My first arrival to Tbilisi was at night from April 1st to April 2nd. 

I knew little, not to say, nothing about Georgia, before then. I knew that Georgia once was part of the USSR, I have heard something about war in 2008. I feel much more educated about Georgia now!

The reason I decided to come to Georgia, was an article on Forbes, covering Georgia, and saying that Georgia is fast reformer and it has one of best business environments in the World. (Yes, I was a bit naive back then)

The driven force was economic changes in Georgia. So I decided to see them, and so I have been living here for already 3 years. Nice, right?

I have been living in Tbilisi, with 6 month period living at the Black sea resort town of Batumi (2012).

What can I tell about Georgia 3 years latter?

My feeling are ambivalent, there are so many things I like, and there are few things which I would like to be different.

In overall Georgia is small nation with small nation complex and prides. Georgians are warm welcoming, but they are…


Video Parody: President Obama Calls Vladimir Putin to Discuss the Situation in Ukraine (2014)

| Documentaries | 7 seen

In recent years, the use of video parodies as a form of political satire has become increasingly popular. With the rise of social media and the availability of sophisticated video editing tools, it is now easier than ever for anyone to create and share their own political parodies. One such example is the video parody of a hypothetical phone call between President Obama and Vladimir Putin, in which the two leaders discuss the situation in Ukraine.

The video opens with a simulated phone call between President Obama and Vladimir Putin. In the call, President Obama expresses his concern about the escalating conflict in Ukraine, and Putin responds with his own perspective on the situation. Throughout the call, the two leaders engage in a humorous back-and-forth, poking fun at each other's positions and making light of the political and military tensions between the United States and Russia.

One of the standout moments of the video is when President Obama jokingly asks Putin if he has seen the latest Hollywood blockbuster movie, to which Putin responds that he is more of a fan of Russian films. The exchange is a nod to the cultural differences between the United…


10 Reasons to Choose Drupal for Your Website Development

| Drupal Development | 8 seen

Drupal is a popular open-source content management system that is known for its flexibility, scalability, and security features.

With a vast community of developers and users, Drupal offers a wide range of modules and themes that can help you create and manage your website easily. Whether you are a beginner or an experienced developer, Drupal offers numerous benefits that make it an ideal choice for your next web project. Here are 10 reasons why you should choose Drupal for your next website.

  • Scalability and Flexibility: Drupal is a highly scalable and flexible platform that can handle large amounts of data and traffic, making it perfect for large enterprise websites and high-traffic blogs.

  • Open-Source: Drupal is open-source software, which means that it is free to use and that the source code is publicly available for anyone to use, modify, and redistribute. This also means that there is a large community of developers working to improve the platform and to provide support.

  • User-Friendly: Drupal has a user-friendly interface that makes it easy for users to…


  • Educating North Korea (2014) - Unlocking the Secrets of Elite University: A Panorama Documentary

    | Documentaries | 11 seen

    The documentary "Educating North Korea" from British BBC Panorama sheds light on one of the world's most closed and oppressive societies.

    North Korea is ruled by the young and ruthless leader Kim Jong-un, who has threatened nuclear war against the United States and recently executed his own uncle. In the heart of this absolute dictatorship, there is a remarkable university that is attempting to change the minds of the nation's future elite.

    The university, which is paid for by the West, offers a unique opportunity for students to learn from foreign lecturers and gain exposure to new ideas.

    The university is located in the heart of North Korea and is unlike any other academic institution in the world. It is designed to educate the future leaders of the country and is exclusively for the sons of some of the most powerful men in the nation. The aim of the university is to give these young men a chance to broaden their horizons and see the world from a different perspective. The university is a rare window into North Korea, offering a glimpse into a world that is otherwise off-limits to outsiders.

    Reporter Chris Rogers gained unprecedented access to…


    Latest video

    Embedded thumbnail for Tsikhisdziri &amp; Batumi Botanical Garden

    Tsikhisdziri & Batumi Botanical Garden

    After returning from our amazing trip to Thessaloniki, we decided to extend our holiday a bit longer — this time in beautiful Tsikhisdziri. Huge thanks to Eto for kindly offering her cozy apartments at Bambo Beach, where we enjoyed a full week of relaxation by the sea.During our stay, we explored local gems like Shukura Tsikhisdziri (შუქურა…
    Embedded thumbnail for Summer in Latvia 2025

    Summer in Latvia 2025

    Summer in Latvia movie is out - Join us on our July (2025) journey through Latvia: installing a bathtub in our countryside cottage, setting up a pop-up store at Bangotnes, celebrating a birthday in Vērbeļnieki, traveling via Riga to Jaunpiebalga, Vecpiebalga, Smiltene, and Valka. From sipping sparkling wine with swallows to running 4K morning…
    Embedded thumbnail for Chateau Ateni. Gori

    Chateau Ateni. Gori

    This time (May 2025), our journey takes us to Gori and the enchanting Chateau Ateni - a hidden gem where authentic Georgian cuisine blends seamlessly with avant-garde natural wines, soulful traditional dance, and even the charming surprise of a small chick farm.What makes this trip extra special is sharing it with our Latvian/Georgian friends,…

    Living in Georgia

    Mziuri Tennis Club in Tbilisi

    Our family has been attending Mziuri Tennis Club in Tbilisi since September 2025, after several recommendations from our BIST community. We signed up our 7-year-old for the junior program, which costs 300 GEL per month. After a few months…

    12 Rounds Boxing Club in Tbilisi

    Sometimes even the most loyal gym-goers need to shake things up—and that's exactly what I did this month. After years of training at the "luxurious Axis Tower gym", I decided to take a short break. Not because I had any complaints about…

    Tbilisi Circus: A Historic Landmark with a Surprising Past

    Tbilisi Circus is an iconic part of the city's cultural landscape. Having lived in Georgia since 2011, I have passed by the Tbilisi Circus almost every day. However, it wasn’t until I attended a show that I truly appreciated its grandeur…

    Foraging for Mushrooms near Tsodoreti Lake: A Day in the Suburbs of Tbilisi

    Back in June 2024, I first came across Tsodoreti Lake during one of the Tbilisi Trails races, which turned out to be one of the most challenging runs of my life. While I tackled the 10K trail route, my partner and our kiddo took a gentler…

    Frame House

    Frame House Upgrades: Big Windows, New Porch, and Apple Trees Planted in Latvia

    In mid-April, during our kiddo’s Easter school break, we traveled to Latvia for about 10 days — a trip packed with projects, energy, and transformation. A lot of pre-planning had gone into it before we even arrived: we ordered the windows…

    Frame House in Latvia: Outdoor Patio, Inner Walls, and More

    As June came to an end, our family embarked on a journey from Tbilisi to Latvia, skipping Renee's school year for the last week and focus on our frame house project. Here's a glimpse into our busy but rewarding time working on the house.We…

    Spring Break Project: Building Progress on Our Frame House in Latvia

    As the chill of winter slowly gives way to the warmth of spring, it's the perfect time to roll up our sleeves and dive back into the construction of our dream frame house in Latvia. During this Spring break from British International…

    Piece of Life

    Postcards from Marseille

    It’s been nearly two years since our last trip to Marseille, a sun-drenched jewel on France’s southern coast that left an indelible mark on our memories. That summer of 2023, we set out to explore the city’s vibrant beaches and winding old town, arriving and departing through the bustling hub of Marseille St. Charles train station. As I sit…

    Christmas Eve at Palolem Beach: Fire Shows, Old Monk

    While we just celebrated Orthodox Christmas in Georgia, I can’t help but delve into the memories of our Western Christmas last year (2024), spent on the serene shores of Palolem Beach in Goa, India. That evening was magical in every way, filled with vibrant energy, beautiful scenery, and a new discovery that made the night unforgettable.Palolem…

    A Family Guide to Borjomi: Hiking Trails and Sulfur Bath Tips

    As summer came to a close, we continued our family's tradition of visiting Borjomi. This year marked yet another memorable trip at the end of August 2024, reaffirming our love for this beautiful Georgian town. Visiting Borjomi at least twice a year has become a cherished routine, a piece of life that we look forward to, blending relaxation,…

    Travel guides

    Embedded thumbnail for Summer in Latvia 2025

    Summer in Latvia 2025

    Summer in Latvia movie is out - Join us on our July (2025) journey through Latvia: installing a bathtub in our countryside cottage, setting up a pop-up store at Bangotnes, celebrating a birthday in Vērbeļnieki, traveling via Riga to…

    Embedded thumbnail for Birthday in Thessaloniki, Greece

    Birthday in Thessaloniki, Greece

    Turning 40 is a milestone worth celebrating in style, and what better way than in Thessaloniki — a city that seamlessly blends history, culture, and cuisine. From affordable flights and boutique stays to seafood feasts and hidden beaches,…

    Embedded thumbnail for Azeula Fortress, Tbilisi Sea, and Ateni Sioni

    Azeula Fortress, Tbilisi Sea, and Ateni Sioni

    August ended with yet another packed and memorable weekend in Georgia. This time, our journey took us from the hills near Kojori to the refreshing waters of the Tbilisi Sea, and finally to the historical town of Gori, where we enjoyed a…

    Hotel Reviews

    Stays & Trails La Maison Hotel Review in Panaji

    At the tail end of 2024, just before catching our flight back to Delhi, we decided to book a one-night stay at Stays & Trails La Maison Fontainhas in Panaji, Goa. After weeks staying in Palolem beach, we wanted to wrap up our trip with…

    Schuchmann Wines Château: A Long-Awaited Stay in Georgia’s Premier Winery Hotel & Spa

    It took us over a decade to finally make it to Schuchmann Wines Château & Spa, and it was well worth the wait! We’ve spent years recommending this stunning winery hotel to visiting friends and business partners, yet somehow, we had…

    Hotel Belvedere Prague: A Practical Stay with Easy Access

    During our recent trip to Prague in mid-October 2024, we stayed at Hotel Belvedere. My partner attended the MEET Central Europe Translators conference, and we were joined by one of our office employees, so we opted to book two rooms. …

    Review: Art Hotel Prague – A Cozy Stay in a Tranquil Part of Prague

    During our recent trip to Prague in October 2024, we opted for a one-night stay at the Art Hotel Prague. We arrived at the hotel via Bolt taxi from Václav Havel Airport, which was straightforward and efficient. At about EUR 120 per room…

    Toursim objects

    Plage des Catalans: A Shrinking Memory in Marseille

    Plage des Catalans, a sandy crescent tucked along Marseille’s coastline, holds a special place in my travel tapestry. I first visited this beach in the summer of 2003, a carefree stop during my early adventures in the city. Back then, it felt like a haven—close to the bustling port yet offering a slice of Mediterranean calm. When I returned…

    Colva Beach: Golden Sands and Tranquility in Goa

    Colva Beach, located in South Goa, is known for its expansive golden sands and tranquil atmosphere. Stretching for several kilometers along the Arabian Sea, the beach offers a peaceful escape from the busier tourist hubs in the region. Its wide shoreline, framed by swaying palm trees, provides plenty of space for visitors to relax, stroll, or…

    Charles Bridge: A Timeless Landmark in Prague

    The Charles Bridge (Karlův most) in Prague is one of the most iconic and historic landmarks in Europe. Built in the 14th century under the reign of King Charles IV, this Gothic stone bridge spans the Vltava River, connecting Prague's Old Town with the Lesser Town (Malá Strana). Adorned with a series of 30 Baroque statues and surrounded by…

    Macroeconomics

    Servers and Drupal

    Genealogy