Terrible android error

While developing a small android application. I was thinking to use IntentService which is kind of a background worker for android platform. Then I found the need code and documentation and implemented yesterday. and code is compiling so today I wanted to see it in a real phone and started Caused by: android.content.ActivityNotFoundException: Unable to find explicit activity class {com.mascix.fitinsta/com.mascix.fitinsta.ServiceLayer}; have you declared this activity in your AndroidManifest.xml? From this exception I understand that I am having a problem in androidmanifest.xml and since morning I was trying to fix it. And the result is it was code problem :) ...

January 26, 2020 · 1 min · Özkan Pakdil
Springboot vs Quarkus

Spring-boot vs Quarkus

I have been using springboot remote command runner from ozkanpakdil/CommandRunner around 2 years. And last week I had a chance to play with quarkus. And I really like the startup time and speed of development is two times faster. So I decided to write same command runner with quarkus and see how it works. ozkanpakdil/quarkus-command-runner Only difference is in spring I used hazelcast and in quarkus I used ehcache. Because hazelcast configuration was not easy as in spring-boot. Then I decided to install haproxy and run these 2 microservices behind it. You can see the configuration here I must say the “command” running at linux side sometimes takes longer then 60 seconds so I gave haproxy longer timeout instructions. here is the haproxy admin ...

December 26, 2019 · 1 min · Özkan Pakdil

How to call Atlassian Cloud Jira Rest API

I needed to call atlassian jira custom fields rest service and show them as good as possible. I know jira admin panel has a page for it. I am just trying to list them in a seperate page. First of al for easy development we can get json with this shell script. #!/bin/bash USER='YOUREMAIL:TOKEN' # get it from https://id.atlassian.com/manage/api-tokens URL='https://test1q2w.atlassian.net/rest/api/3/field' curl --request GET --url $URL --user $USER --header 'Accept: application/json' > test.json Now we have test.json to load and show. also it needs a little bit extra. therefore we just write var data= in to the file and load it like ...

September 4, 2019 · 1 min · Özkan Pakdil

How to solve ripe.net access denied

I have been using whois for a long time(around 10 years). and if you are sending this whois queries from same ip and higher then expected. you will start seeing ripe.net access denied results. one solution is restart your adsl modem. or start using another ip. and my solution is TOR :) sudo apt install tor torsocks you will need to configure torify check https://www.linux.com/blog/beginners-guide-tor-ubuntu torify whois 25.166.194.172 and I did not wanted to run in my server. therefore amazon free instance and a micro service https://github.com/ozkanpakdil/CommandRunner did the trick. ...

May 23, 2018 · 1 min · Özkan Pakdil
Best way to delete files in linux on prod

Delete files in linux best way

Let say you have bunch(5 millions) of small files in your linux in some folder. when you try to delete them can be very tricky. Everybody knows rm -rf /tmp/somefolder but if you run this on a server which already has internet load it may freeze it. and make it stop serving pages. So what are the options. first and easiest way find /tmp/somefolder/ -type f -mtime +30 | xargs rm -f this also can freeze or eat a lot of resources to run. ...

January 13, 2018 · 2 min · Özkan Pakdil