linux mint xiaomi redmi 3 pro upgrade to MIUI 8

I bought this phone around 3 months ago. first I had a lot of problems about menu and applications. some chinese some english. some utf problems in applications. anyway I was reading this miui 8 update

then I decided to upgrade mine too. but I am a new in this flashing rom or any adb commands.  first I downloaded recovery image then put the image in phone try to update from updater app inside phone it did not work. then I tried to use TWRP and fastboot method. I had problems about giving root access to twrp. then tried to use miflash but my machine is linux mint. so it did not work too.

I tried every online tutorial and could not upgrade my phone. at last I was reading shell scripts in fastboot package

flash_all.sh
flash_all_lock.sh
flash_all_lock.bat
flash_all_except_data_storage.sh

actually I was not sure about these commands

fastboot $* getvar product 2>&1 | grep “^product: ido”
if [ $? -ne 0 ] ; then echo “Missmatching image and device”; exit 1; fi
fastboot $* flash partition `dirname $0`/images/gpt_both0.bin
fastboot $* flash tz `dirname $0`/images/tz.mbn
fastboot $* flash sbl1 `dirname $0`/images/sbl1.mbn
fastboot $* flash rpm `dirname $0`/images/rpm.mbn
fastboot $* flash aboot `dirname $0`/images/emmc_appsboot.mbn

tried first line manually but fastboot command not found. I check apt repo and installed it with 

apt-get install android-tools-fastboot

then first line worked

ido_xhdpi_global_images_6.8.11_20160805.0000.29_5.1_global # fastboot $* getvar product
product: ido
finished. total time: 0.001s

then run the shell script

ido_xhdpi_global_images_6.8.11_20160805.0000.29_5.1_global # ./flash_all.sh
ido Fastboot Tool Ver 5.0
product: ido
target reported max download size of 268435456 bytes
sending ‘partition’ (33 KB)…
OKAY [  0.004s]
writing ‘partition’…
OKAY [  0.024s]
finished. total time: 0.027s
target reported max download size of 268435456 bytes
sending ‘tz’ (504 KB)…
OKAY [  0.018s]
writing ‘tz’…
OKAY [  0.012s]
finished. total time: 0.030s
target reported max download size of 268435456 bytes
sending ‘sbl1’ (286 KB)…
OKAY [  0.010s]
writing ‘sbl1’…
OKAY [  0.009s]
finished. total time: 0.019s
target reported max download size of 268435456 bytes
sending ‘rpm’ (156 KB)…
OKAY [  0.007s]
writing ‘rpm’…
OKAY [  0.008s]
finished. total time: 0.015s
target reported max download size of 268435456 bytes
sending ‘aboot’ (518 KB)…
OKAY [  0.018s]
writing ‘aboot’…
OKAY [  0.012s]
finished. total time: 0.030s
target reported max download size of 268435456 bytes
sending ‘hyp’ (72 KB)…
OKAY [  0.005s]
writing ‘hyp’…
OKAY [  0.005s]
finished. total time: 0.010s
target reported max download size of 268435456 bytes
sending ‘tzbak’ (504 KB)…
OKAY [  0.019s]
writing ‘tzbak’…
OKAY [  0.013s]
finished. total time: 0.031s
target reported max download size of 268435456 bytes
sending ‘sbl1bak’ (286 KB)…
OKAY [  0.012s]
writing ‘sbl1bak’…
OKAY [  0.007s]
finished. total time: 0.019s
target reported max download size of 268435456 bytes
sending ‘rpmbak’ (156 KB)…
OKAY [  0.008s]
writing ‘rpmbak’…
OKAY [  0.007s]
finished. total time: 0.015s
target reported max download size of 268435456 bytes
sending ‘abootbak’ (518 KB)…
OKAY [  0.020s]
writing ‘abootbak’…
OKAY [  0.012s]
finished. total time: 0.031s
target reported max download size of 268435456 bytes
sending ‘hypbak’ (72 KB)…
OKAY [  0.006s]
writing ‘hypbak’…
OKAY [  0.006s]
finished. total time: 0.012s
erasing ‘boot’…
OKAY [  0.023s]
finished. total time: 0.023s
target reported max download size of 268435456 bytes
sending ‘modem’ (53457 KB)…
OKAY [  1.712s]
writing ‘modem’…
OKAY [  0.704s]
finished. total time: 2.416s
target reported max download size of 268435456 bytes
erasing ‘system’…
OKAY [  0.332s]
sending sparse ‘system’ (259609 KB)…
OKAY [  8.568s]
writing ‘system’…
OKAY [  3.559s]
sending sparse ‘system’ (260573 KB)…
OKAY [  8.617s]
writing ‘system’…
OKAY [  4.170s]
sending sparse ‘system’ (255173 KB)…
OKAY [  8.511s]
writing ‘system’…
OKAY [  4.840s]
sending sparse ‘system’ (256974 KB)…
OKAY [  8.565s]
writing ‘system’…
OKAY [  3.978s]
sending sparse ‘system’ (262068 KB)…
OKAY [  8.773s]
writing ‘system’…
OKAY [  4.573s]
sending sparse ‘system’ (260406 KB)…
OKAY [  8.674s]
writing ‘system’…
OKAY [  4.561s]
sending sparse ‘system’ (28525 KB)…
OKAY [  0.980s]
writing ‘system’…
OKAY [  0.466s]
finished. total time: 79.168s
target reported max download size of 268435456 bytes
erasing ‘cache’…
OKAY [  0.030s]
sending ‘cache’ (5736 KB)…
OKAY [  0.186s]
writing ‘cache’…
OKAY [  0.090s]
finished. total time: 0.306s
target reported max download size of 268435456 bytes
erasing ‘userdata’…
OKAY [  3.322s]
sending ‘userdata’ (138958 KB)…
OKAY [  4.419s]
writing ‘userdata’…
OKAY [  1.891s]
finished. total time: 9.632s
target reported max download size of 268435456 bytes
sending ‘recovery’ (10107 KB)…
OKAY [  0.339s]
writing ‘recovery’…
OKAY [  0.136s]
finished. total time: 0.475s
target reported max download size of 268435456 bytes
sending ‘boot’ (9327 KB)…
OKAY [  0.301s]
writing ‘boot’…
OKAY [  0.152s]
finished. total time: 0.453s
target reported max download size of 268435456 bytes
sending ‘persist’ (4720 KB)…
OKAY [  0.151s]
writing ‘persist’…
OKAY [  0.072s]
finished. total time: 0.223s
target reported max download size of 268435456 bytes
sending ‘misc’ (8 KB)…
OKAY [  0.004s]
writing ‘misc’…
OKAY [  0.003s]
finished. total time: 0.007s
target reported max download size of 268435456 bytes
sending ‘splash’ (5401 KB)…
OKAY [  0.174s]
writing ‘splash’…
OKAY [  0.075s]
finished. total time: 0.249s
target reported max download size of 268435456 bytes
sending ‘cust’ (227494 KB)…
OKAY [  7.269s]
writing ‘cust’…
OKAY [  3.279s]
finished. total time: 10.548s
rebooting…
finished. total time: 0.001s

it took around 20 minutes for my phone to reboot. now I have miui 8 and this time all google apps included in this rom. I start using it directly without installing google apps. normally google apps was not in xiaomi redmi 3 and took me a while to understand. because normally in lg or samsung I never had system like this without google play store it was really hard to use. btw I ran those commands with root. I did not want to configure usb related access rights.

debian jessie php problem

after I install php apache and stuff I start controlling. and one php page was not working but wordpress was working after a small search I found in jessie short_open_tag is actually off. so what you should need to do is find php.ini related and change it to short_open_tag = On if you are using fpm dont forget to restart your php fpm with this command /etc/init.d/php5-fpm restart or service php5-fpm restart

wifi hack

I dont hack normally but since I moved to abroad and I needed internet connection. and I finish my data in my sim line. anyway it took around 4 hours.

step 1
airmon-ng start wlan0
step2
airodump-ng mon0

wait a while around 5 or 10 minutes is enough then you will see a lot of adresses on screen. then choose the strong one and give that to this command

reaver -i mon0 -b 7C:D1:C3:CA:47:1A

thean this reaver starts brute forcing and found a password. since then I am using it. dont worry I will buy my adsl line soon 🙂

weblogic 12 to 11 ejb connection problem

if you have wl11 ejb server and in that environment generated ejb client and deploy to wl12 it will give you this exception

java.lang.NoSuchMethodError: weblogic.rmi.internal.MethodDescriptor.(Ljava/lang/reflect/Method;Ljava/lang/Class;ZZZZII)V

so there are some solutions like this. but what I did was different. I deleted *******_WLStub.class from client jar and deployed the ear that way so at the end wl12 generates it on the fly just like jsp first compilation. and it works.

xubuntu eclipse mars 4.5 look fix

I just download and start using eclipse under latest xubuntu. but look was awfull especially tabs and toolbars. and it was effecting some windows not to show textboxes.

looks like this

after a small research I fould the solution. its very easy just put this line into your bashrc file

export SWT_GTK3=0

or before starting eclipse give this command. here is the result

bootstrap mobile horizontal overflow problem

I have been using bootstrap for a while now. its really nice to have this kind of a tool for mobile ready and have responsive design. it means you can write your html one time and it will work on all platforms. you dont need to write for mobile and desktop different. anyway after I write some site in bootstrap I had a small overflow problem. the site has horizontal scroll when its loaded in my smartphone.

it is a normal bootstrap html site having simple div rows and some links in it. having the row oversizing the container was frustrating. because I did not have any special html tricks or etc.

after some research I found the answer is about css.

this site explains a little https://css-tricks.com/findingfixing-unintended-body-overflow/

solution is the use offcanvas.css. just adding css solved my problem. you can find it here

http://getbootstrap.com/examples/offcanvas/offcanvas.css

how to export twitters following list

well at some point you may need to have all following list which you have in your twitter account. I tried some websites and twitter api but coult not find a way. at the end I take it with javascript 🙂

go to this adres and go to end of the page.

https://twitter.com/following

it looks like this in my account

after that open the chrome javascript console. I do it with F12. then I needed to have all twitter account names. here is the javascript I used for it.

var arr = [];
$(“.u-linkComplex-target”).each(function(index, elem){
    arr.push($(this).text());
});
arr.join(‘,’);

you just need to paste this in the console and hit enter. then in the console you will have very long string like this

akkiocal,superonlinetr,odersky,javanetbuzz,dayioglu,corpuscallosum,

and my screen look like this

you can select very long string from there and save it anywahere you like enjoy 🙂

by the way in the future if script does not work feel free to ask me via comments. because they can change the class of that html tag.