Are your workers working?

Sidekiq workers, status checks and much more explained very neatly by Pramod.

Deep In Rails

Most of the Rails developers choose Sidekiq for background processing in their Rails applications and setup the Sidekiq workers to do the long running work in background.

But as a Rails developer have you ever wondered whether your workers are doing their job? Now question may pop up in your mind, How to know whether my background workers doing their job? No worries now you can do that easily with sidekiq-status gem, How? Lets see how …

Bit about sidekiq-status:

  • An extension to the sidekiq message processing to track your jobs.
  • sidekiq-status implemented sidekiq middleware and uses Redis underneath for storing statuses and meta information about jobs.
  • In latest release gem added some really cool features like more status types, Web UI enhancements  which makes it really cool to have in your projects for tracking background jobs.

Let’s setup sample worker:

To track job progress of worker add sidekiq-status gem to the Gemfile and after…

View original post 262 more words

Posted in General | Leave a comment

Time is an illusion but TimeZones are not.

Timezone configuration and management on the browser has never been easy. Here is some insight from Rishi

Learning shall never stop..!!!

Recently I have been working on handling timezones on a client project. Front end is AngularJs 1.3 and backend api is Rails api.

It is a very common scenario. User chooses what timezone the data should be displayed in. Api saves and returns all the dates in UTC format.

There are also a lot many client side validations comparing saved time with local time (in all permutation and combinations possible).

Tools used:

  1. Javascript Date object:

    While working with timezones, it is always good to know that Javascript Date object is always in local time zone. There is no direct option to set the timezone. You can change time by adding/subtracting timezone offset.

  2. moment.js: moment is a javascript library which provides pretty options to format the moment date object which is not possible with javascript Date object.
  3. moment-timezone.js: This library allows you to convert moment time object in…

View original post 311 more words

Posted in General | Leave a comment

2015 in review

The WordPress.com stats helper monkeys prepared a 2015 annual report for this blog.

Here’s an excerpt:

The Louvre Museum has 8.5 million visitors per year. This blog was viewed about 190,000 times in 2015. If it were an exhibit at the Louvre Museum, it would take about 8 days for that many people to see it.

Click here to see the complete report.

Posted in General | Leave a comment

#notAfraid – DIGIT.EMEA, Istanbul experience

Uncharacteristic but this post will be more philosophical and opinionated (apologies in advance).

The attacks in Paris were tragic. What was worse was that we let “them” succeed! What better success for terrorism if it affects your daily life. And what better response if we continue our life undeterred. Of course, it’s difficult (sometimes even unimaginable) but we have to try.

DIGIT.EMEA was in Istanbul on the 18th and 19th Nov. I was looking forward to the large audience and I was surprised at the turnout – it seemed very less. The main stage was beautiful but was not filled up enough. My doubts were confirmed when Plamen spoke about the plethora of cancellations in the last few day due to the Paris attacks. What the …

The conference was really well organised and the speakers were treated like royalty. The food was exquisite and Istanbul was a lot of fun. There were quite a few startups showcasing their products and the hotel itself (The Marriot) was really nice. The Turkish Kahwa (tea) was amazing along with the variety of food. There was not a shred of fear on the streets and the city was calm and tourism was at it’s usual best. I did not spot any heavy-duty security on the roads and the traffic jam in the city did not make me miss the traffic in India.

The talks had a nice mix of digital marketing, inspiration and the new trends. My talk was in the afternoon on the first day and I spoke about Affordable Smart Housing which is marriage of Smart Connected Devices with Affordable Housing. The talk did not have as many people attending as I had expected but it was very well conducted and I was really happy with it. It’s a disruptive idea and was very well received.

The evening on the first day touted the famous Webit Bosphorous Dinner Cruise and it was awesome! The local musicians, belly dance and an exquisite spread of Turkish cuisine for 2 hours was intoxicating. And the party at the man-made island (Sauda) was amazing and going late into the night.

Well, all said and done, those who missed this conference did miss out indeed. Those who missed this conference citing security reasons should regret missing out. This tweet from Plamen says it all. #notAfraid.

FullSizeRender

Update: Here is the video of my talk.

Posted in General | Leave a comment

Android Annotations: love at first sight

Here’s how to use Java Annotations in your Android code to make the code have better readability and maintenance.

narutosanjiv

Most Java programmers are already familiar with Java annotations.  Java annotations are used to provide meta data for your Java code.

Java annotations are typically used for the following purposes:

  •    Compiler instructions
  •    Build-time instructions
  •    Runtime instructions

Android programmers also use android annotations. Some of android annotations used are override, nullable, SuppressWarnings , etc.

Android programmers almost spend 20% of time their time on following task given below:

  •     find the android ui element by id
  •     Associates the layout with activity, fragment or  ViewGroups.
  •     Associating the Variables with String resource or other resources.
  •      SetClick handler for listview or other element.

Consider the case where you have large code base and people have defined about 20-30 variables. It will be nightmare for any developer to determine which ui element associates with which variable activity or fragments.

Here is an example of using android annotations, so that we can…

View original post 68 more words

Posted in General | Leave a comment

The Summit of Web conferences

Earlier this month, I had the privilege of speaking at Web Summit in Dublin and it was a truly amazing experience. I was in Dublin for precisely four days and I don’t remember having dinner! Apparently, Guinness is as good as a meal!

IMG_9139 Well, for a conference that saw more than 40,000 (yes – it was more than forty thousand) people, it felt cozy, never claustrophobic. Spread over the large RDS area, it had a lot of parallel tracks on all 3 days – and needless to say, each was completely filled with standing room only. It took a good 25 minute walk to go from one end of the conference the other – that speaks volumes about the scale of the conference. And they had sheep! Not just sheep – coloured sheep!

I spoke at the Code Stage about “Go” – to a varied audience – ranging from developers, designers, the media and people from all different vocations! So, I had to ensure that I kept people from all walks of technology entertained (either with code or cartoons!) I believe the hall had more than a 1,000 people and it was really inspirational to talk to so many people! I thoroughly enjoyed my talk and from what I gathered – people will never forget how to pronounce my name again, as someone told me later – “Gotham city Bob Marley Go pro”.

Gautam Bob Marley

Well, here are the things which stood out for me at the Summit.

Internet :)

Catering to internet access for all attendees, especially when the count is so high, is a nightmare. I wouldn’t say it was really awesome or very fast – but it was good enough for such a large conference. I had no complaints about it.

Speakers Lounge :) :)

As a speaker, I was treated like royalty! And there were over 800+ speakers and still they were able to make everyone feel special. There were stage co-oridnators, speaker guidelines, content guidelines and management that ensure that everything goes off well. The speakers lounge got you the needed peace and quite to prep up and was fully stocked with food and drinks. They even had golf carts to take you to your stage – a truly professional show!

Parallel stages :)

There were at least 5 different stages to choose from at any given point. So, you never ran out of options. Add to that the startup pitches, mentor hours and the stalls never gave you a moment of boredom. Here’s what the centre stage looked like!

IMG_9143

Startup pitches :)

Over 500 different startups were there pitching about their products and their innovations. Ranging from education, IoT, Advertising, HR and hardware – there was something in it for everyone!

Food Summit :|

You have your own share of problems when you have to buy coupons for food and walk quite a bit just to stand in a queue. Again, cannot complain too much about it.

The stages :) :)

Beautiful stages with large screens ensured everyone got a good view and did not lose out on anything!

Night Summit :) :) :)

Pub hopping has never been so awesome. I had a wonderful time with a lot of awesome people that I met for the first time but will probably leave a lasting impression! :)

The talks quality :) :) :)

All the talks had established speakers and not a single talk that I attended every had a speaker struggle on stage or not be able to to manage the time. It was a privilege to be included in such a professional lot!

The professionalism that was shown by the organisers definitely deserves an applause. And when you are so good, it’s no surprise that the conference has it’ own brew! Cheers Paddy !

IMG_9141IMG_9142

Update: Video of my talk

Posted in Conferences | Tagged , | Leave a comment

Recap of Arrrrcamp, 2015

Arrrrcamp (with 4 R’s) took place in the very beautiful town called Ghent, Belgium. It was my first time at this conference and it is one of the most awesome conferences I have been to. Everything right from stay, to opening the conference, food, breaks between talks, closing keynote and the boat party, was perfectly planned to every small detail and was executed.

IMG_3237

IMG_3429

The conference was scheduled on 1st and 2nd October. A meet up of organisers and speakers was organised on 30th Sept, and it was a great idea as I got the chance to meet the wonderful organisers who I have been troubling over emails with all the visa documents processing 😀. Also got to know the awesome speakers over dinner.

Arrrrcamp is a pirate theme conference. First day started with Phil Nash doing a wonderful job of opening the conference and also shared some hilarious pirate puns. There were a lot of interesting talks on the 1st day. I particularly liked the last talk of the day titled Consequences of insightful algorithms by Carina. The talks ended in the evening but there was a dinner party organised in small groups of 8 at various beautiful restaurants in the town as there is no deficiency of them and then of course it was time for German bears at a local brewery which I got to know from someone at the brewery that the place was originally a slaughter house and then was shut down later.

IMG_3218

I was scheduled to speak on 2nd day of the conference and a lot of people I met on 1st day of conference told me that they are very much looking forward to my talk. It only added more pressure to deliver a great talk.

It was time for the 2nd day of the conference and the room was packed for the 1st talk of the day at 9.30 am. I was scheduled to speak after lunch. This was not the first time I had skipped lunch because I was to speak just after lunch. My talk had a lot of game demos, lots of sounds and inviting volunteers from the audience to play these games on stage was the thing I liked most about my talk. I also got a few questions at the end of the talk, so it is safe to assume not everyone was sleeping during the talk :). The talks ended with keynote from Rachel Myers. But there was still time to party at the Captain’s boat.

Speaking at this conference has been one of the most satisfying experiences I have had. I will recommend this conference to everyone. And at last kudos to all the organisers for organising this great event.

IMG_3234

I can sum it up by saying Arrrrcamp 2015 was pretty arrrrsome.

Posted in Conferences, Ruby | Leave a comment