LineageOS installation on my old lg g2

My old lg g2 had lineageOS 14 installed already. But it was showing the info about new version and I should upgrade it. My first attempt failed miserably. And I brick my phone. When I started my phone it was showing only LG logo and it was in boot loop. They call it boot loop but actually it was not really booting up. Anyway yesterday I found https://forum.xda-developers.com/showthread.php?t=2797190 and finally installed the old LG android and it started working again. you can find the kdz here https://forum.xda-developers.com/showthread.php?t=2432476 ...

March 13, 2020 · 1 min · Özkan Pakdil

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 :) startActivity(intent) then I learn that actually there is startService function for IntentServices and after I change the code to startService. Exception was gone. Terrible exception it was not really saying what is wrong. ...

January 26, 2020 · 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

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