Android Stack Careers Pull Request - Feed API and OkHttp

by GarciaPL on Sunday, 18 September 2016

Some of you might know this unofficial Stack Careers Android app which allows you search job in IT sector. There is a link => Stack Careers on Google Play. I have been using it for a while, but some time ago it stopped working. Only what I got was : 'No Results'. So, I downloaded repository and found out that feed API of Stack Careers has been changed. I mean that application got HTTP 301 status which means Moved Permanently and no redirect has been performed using standard HttpConnection component of Android stack. More info about what I did you might find below and under pull request link.

In fact that I have been using you app occasionally, I found someday that it does not work now. I managed to figure out that guys from Stackoverflow changed feed API and moreover you app was not able to follow up redirect (HTTP 301 Moved Permanently).

So, according to this pull request what I did and what I did not :

  • feed API has not been changed 
  • added OkHttp library within required by it another library called Okio 
  • replaced HttpURLConnection with client from OkHttp 
  • added required rules for proguard to cover up OkHttp 
I pushed changed content around usage.txt, seeds.txt, mapping.txt and dump.txt within this pull request, but I will leave decision up to you if you are going to discard it or not.

I also would like to mention that feed API for Stack careers has been changed from =>

PS. I hope that author of Stack Career will accept my fix for that problem and eventually some day we might be able to download new app from Google Play.

Reference :
[1] Stack Careers - pull request

Consul and Consul Pusher

by GarciaPL on Saturday, 10 September 2016

Some of you might be interested in presentation which I made recently for internal training purpose. Topic is "Consul and Consul Pusher".

Create sequence in Oracle without dropping it

by GarciaPL on Thursday, 25 August 2016

Some of you might thinking how to create sequence for table which contains some records. You might always export all records from database, then eventually create sequence and after all import those records once again into database. Nevertheless there is a solution how to create this sequence using PL/SQL.

  seq_value_holder        NUMBER;
  -- create a sequence for YOUR_TABLE
  SELECT NVL(MAX(id), 0) + 1
  INTO seq_value_holder
  EXECUTE immediate 'create sequence SEQ_YOUR_TABLE start with ' || seq_value_holder || ' increment by 1';

Notes of Google recruitment process

by GarciaPL on Monday, 8 August 2016

A few days ago, I got an email with inquiry if I would like to participate in recruitment process to Google. I thought why not. It is always good to gain some experience around that. After a phone interview which was not successful for me, but I am not sad about that fact at all, I thought that I might give you some insight what areas you should refresh or just learn quickly. Of course your questions will be correlated with those areas which you picked up before phone interview, but I assume that some of them might be similar with those which I chose.

  • Operating systems - monitors, semaphores, mutexes, linux, unix, processes, inode
  • Algorithm Complexity - big O notation for different algorithms. Provide some complexity for sorting algorithms. Pick up those data structures which have following complexity for instance O(n log (n))
  • Mathematics - calculate something very quickly in mind for instance 2 to the power of 32
  • Trees - big O notation for different operation performed on trees like AVL, Binary trees
  • Java - question related to programming language which you chose

Above list might looks like little chaotic, but I think that you might find some segment of knowledge which is required to get into to the next level of recruitment process in Google. Good luck!

Mutation testing with Pitest

by GarciaPL on Saturday, 2 July 2016

Some of you might be interested in presentation which I made recently for internal training purpose. Topic is "Mutation testing with Pitest".

Face Slim - light Facebook for Android phones

by GarciaPL on Saturday, 18 June 2016

If you are trying to speed up your Android phone, you should consider uninstalling Facebook! You can read more about that phenomenon for instance here : To be honest my phone is much faster after removing Facebook.

After uninstalling Facebook, you might looking for replacement. There is a application called Face Slim [1]. Maybe it is not perfect, but if you only view posts on Facebook and put comment occasionally, it might be totally fine.

Recently I installed this application on Samsung Galaxy S3. After running it, I found that I am not able to login due to bad rendering of login screen [2]. Only what you need to do, is clearing UA (User Agent) settings in application.

Reference :