Latest posts

Browse topics

Drupal IMCE very slow on uploading images - here is how to fix

It has been about a year, since I noticed IMCE upload is damn slow when uploading images for my photo stories or just any other articles. For a very long time I was convinced that it's some cdn or JavaScript incompatibility (because sometimes, just sometimes IMCE upload worked just fine)

It was until today, when it started to take more than one minute to properly load that modal window of IMCE upload.

IMCE upload window

IMCE upload window

I quickly realized, IMCE folder was using about 1GB of memory (default upload folder -/sites/default/files) which stored more than 7,000 images - each time IMCE had to do a check up on all those files. I decided to look on IMCE settings, can I change default upload folder and start fresh? Luckily I was able to that:

From IMCE config - admin/config/media/imce/profile/edit/1 - create a new upload directory for IMCE

IMCE upload directory

IMCE upload directory

Woila - after applying new settings - IMCE was blasting fast again. Hope this helps.

Postcards from Modena, Italy

Modena is a little charming town in the middle of Italy. Known as the birthplace of Worlds famous Ferrari car.

We spent a few days in vicinity of Modena (during our recent trip to Italy), enjoyed a colorful facades of houses, narrow streets, a lot of prosciutto and of course great Italian coffee.

Back at the time - I was tired of photography and made just a few random shots here:

Colored residential buildings and window shutters in Modena

Colored residential buildings and window shutters in Modena

An ancient town, and seat of an archbishop, it is now known as "the capital of engines", since the factories of the famous Italian sports car makers Ferrari, De Tomaso, Lamborghini, Pagani and Maserati are, or were, located here and all, except Lamborghini, have headquarters in the city or nearby. One of Ferrari's cars, the 360 Modena, was named after the town itself.

Proscutto

Prosciutto 

Modena has a rich and diversified cuisine, often including meats, hams and salamis.

Narrow cobbled streets of Modena

Narrow cobbled streets of Modena

Architecture in Modena

Piazze Grande square in Modena

Piazza Grande square in Modena

Juliet's House in Verona, Italy

As testified by the coat of arms on the internal arch-way of the court-yard, this house belonged to the “Dal Cappello” or “Cappelletti”. The building, dating back to the 13th and renovated in the last century, features the balcony where Romeo promised his beloved Juliet eternal love in Shakespeare’s famous tragedy.

I had a chance to visit World famous Juliet's balcony on January 2nd, 2016 - it was a very rainy and cold day In Verona

Juliet's Balcony in Verona

Juliet's Balcony in Verona

Well - balcony as balcony right? But:

Young couples are still very moved by the right of this house and unmarried people touch Juliet’s statue (a kind of good-luck ritual) in the hope of finding the love of their life. How many hopes and desires has this court-yard witnessed over the ages?

Crowd gathering at Juliet's House

Crowd gathering at Juliet's House

The interior of the house can be visited and you can stand on Juliet’s balcony and re-live the “ high-light” of the earthly life, as well as admire the furniture and the beautiful velvet costumes worn by the actors in the Metro Goldwyn Meyer’s colossal “ Romeo and Juliet”.

Opening hours: Tuesday-Sunday 8,30-19,30 – Monday 13,30-19,30.

Prices: Standard € 6.00 – Reduced € 4.50 (groups minimum 20 persons, students 14-30 years old and over 60) – € 1.00 (Schools and young people 8 - 13 years old ) - € 1.00 the 1° Sunday of the month for everyone (from January to May and from October to December) – Free entrance  with the Verona Card.

See more: Juliet's House

Let's Encrypt to fix HTTPS Certificate incompatibility with Windows XP and Google Chrome

It was about a month ago - when I successfully installed secure https pages for my blog, I opted for using free certificate provided by Let's Encrypt certificate authority. I first heard Let's Encrypt certificate authority from KeyCDN.

It was super easy and fast to create SSL certificates for my Linode powered Nginx box. Unfortunately - just a few days later I noticed a deadly screen - Your connection is not private

Your connection is not private Google Chrome screen

Your connection is not private Google Chrome screen

I was using Windows XP machine with Google Chrome. I panicked, stressed - then I opened my blog on my default laptop (Windows 8) - everything was fine - green bar was visible, not any problems with connection. I went back to the Windows XP machine - deadly screen.

I googled - https windows xp - and soon I ended on Let's Encrypt community forums - there were many folks just as me complaining about the same issue - Let' s encrypt certificate does not validates on Windows XP machines.

...there is some information suggesting that the Name Constraints on our cross-signed certificate from IdenTrust are the reason IE and Chrome on Windows XP don't support Let's Encrypt certificates...

Ok, I know Windows discontinued any support for XP already back in 2014 and anytime sooner or later Windows XP will be completely dead, I decided to check out my Google Analytics statistics - how many of blog visitors are actually accessing my site from XP. The number was about 4 percent. since my site is getting about 50,000 unique visitors a month - four percent is a lot ~ 2,000 users each month cannot access my site and even worst they sees a deadly warning message that it is not safe at my place.

I started to look for a fix for this issue - there were few workarounds - to disable HTTPS at all, I didn't wanted to disable HTTPS, so I went looking for more fixes - another was not using 301 redirects (turn of http to https redirect) - which I don't like either - because users might get to my blog by direct links, and if they are https, they still will see deadly screen. Make some redirect just for Windows XP... again, too complicated.

There was another solution - not using Let's Encrypt certificate (after all it's Let's Encrypt problem, not mine) and buy some SSL certificate from trusted vendor. Thus I already started to love Let's Encrypt and idea to switching off, just because of Windows XP, didn't sound fair.

So I continued to stick around community on forums - looking are there any updates, when and if it will be fixed, for a long time there were no solutions or fixes. Today (on March 9) a miracle happened - by reading on forum I learnt that Let' s Encrypt will fix this compatibility issue before March 22, 2016

ETA: Before March 22, 2016

A bug in Windows XP causes parsing of our current cross-signature from IdenTrust to fail. We will be correcting this by getting new cross-signatures from IdenTrust which work on Windows XP.

If so - Let's encrypt you rock!

Guest House Hapi in Jūrmala

If there is a reason I will remember Hapi guest house in Jūrmala, then probably its green walls and super unprofessional staff attitude will be among top of them. 

Hapi guesthouse in Jūrmala

Hapi guesthouse in Jūrmala

We stayed here for one night back in August 2015 and ... I can not even express my disappointment in words how unprofessional and meanwhile expensive this so called guest house was. We paid about EUR 40 for stay in this place... EUR 40 is not much, I agree - but you can stay for the same price in much more reputable Jūrmala hotels, yes that's right - hotels are not expensive in Jūrmala. Take for example hotel Dzintars (were I stayed a few months prior to stay at this guest house.)

Thus we had a confirmed reservation from Booking.com (and printed) after arrival at this place the person working there( it's hard to call him a receptionist, more some parking guard) informed that all rooms are already reserved, no more rooms for us. I showed him our printed paper, he scratched his nape and took some room keys from a desk. The room he gave us was small, bad ventilated with God knows what anything but bed.

At Hapi guest house

At Hapi guest house

And yes green painted wall made the look even more dramatic.

Small window

Small window

Parking lot at Hapi

Parking lot at Hapi

This place featured a free parking space, but the security guard was literally hunting me asking me to re-park car in other place (thus as you can see there were only two cars). Strange people and very strange guest house. Cannot recommend this time.