Firmware Update to Samsung Phones

http://www.sammobile.com/firmwares/ use sammobile firmware check to see if you can get any update

Country (Product Code) Model Model Name Version PDA
Afghanistan (AFG) SM-E500F GALAXY E5 4.4.4 E500FXXU1AOA6
Afghanistan (AFG) GT-S7582 GALAXY S DUOS 2 4.2.2 S7582XXUANK4
Afghanistan (AFG) GT-S7582 GALAXY S DUOS 2 4.2.2 S7582XXUAOA1
Algeria (TMC) GT-S7582 GALAXY S DUOS 2 4.2.2 S7582XXUAOA1
Algeria (TMC) GT-S7582 GALAXY S DUOS 2 4.2.2 S7582XXUANK4
Argentina (ARO) SM-P601 GALAXY Note 10.1 2014 Edition 3G 4.4.2 P601UBUCNL1
Argentina (Personal) (PSN) GT-N7100 GALAXY Note II 4.4.2 N7100UBUFNK1
Argentina (Personal) (PSN) GT-N7100 GALAXY Note II 4.4.2 N7100UBUFNE2
Australia (Optus) (OPS) GT-I9507 GALAXY S4 4.4.2 I9507XXUFOA1
Australia (Optus) (OPS) GT-I9507 GALAXY S4 4.4.2 I9507XXUFNG2
Austria (A1) (MOB) SM-N9005 GALAXY Note 3 LTE 5 N9005XXUGBOA5
Austria (A1) (MOB) SM-N9005 GALAXY Note 3 LTE 4.4.2 N9005XXUGNG1
Austria (T-Mobile) (MAX) GT-S7710 GALAXY Xcover2 4.1.2 S7710XXAMJ2
Austria (Telering) (TRG) GT-S7710 GALAXY Xcover2 4.1.2 S7710XXAMJ2
Baltic (SEB) GT-I9205 GALAXY Mega 6.3 LTE I9205XXUBMJ2
Baltic (SEB) GT-I9205 GALAXY Mega 6.3 LTE 4.4.2 I9205XXUDOA1
Brazil (ZTO) GT-S7582L GALAXY S DUOS 2 4.2.2 S7582LUBUAOA1
Brazil (ZTO) SM-R750B 2.2.1.4 R750BVJU1BOA9
Brazil (Claro) (ZTA) GT-N7100 GALAXY Note II 4.4.2 N7100UBUFNK1
Brazil (Claro) (ZTA) GT-N7100 GALAXY Note II 4.3 N7100UBUEMK4
Bulgaria (BGL) SM-R750 Gear S 2.2.1.4 R750XXU1BOA7
Bulgaria (GT-N8000ZBPZGBL) GT-N8000 GALAXY Note 10.1 4.0.4 N8000XWALG9
Bulgaria (GBL) GT-N8000 GALAXY Note 10.1 4.1.2 N8000XXCMF1
Bulgaria (GBL) GT-N8000 GALAXY Note 10.1 4.4.2 N8000XXUDNL1
Bulgaria (GT-N8000TADGBL) GT-N8000 GALAXY Note 10.1 4.0.4 N8000XWALG9
Cambodia (CAM) SM-G313HZ GALAXY Ace 4 LTE 4.4.2 G313HZDBU0AOB1
Canada (XAC) SM-T210R GALAXY Tab3 7.0 Wi-Fi 4.4.2 T210RUEU0CNI1
Cellular south (XAR) SM-T210R GALAXY Tab3 7.0 Wi-Fi 4.4.2 T210RUEU0COB1
Cellular south (XAR) SM-G900P GALAXY S5 5 G900PVPU1BOA6
Cellular south (XAR) SM-T210R GALAXY Tab3 7.0 Wi-Fi 4.4.2 T210RUEU0CNI1
Chile (CHO) SM-P905M GALAXY NotePRO 12.2 LTE 4.4.2 P905MUBUANK1
Chile (CHO) SM-P905M GALAXY NotePRO 12.2 LTE 4.4.2 P905MUBUAND1
China (CHN) GT-I9300I GALAXY S III 4.3 I9300IZCUANI5
China (CHN) SM-T520 GALAXY TabPRO 10.1 Wi-Fi 4.4.2 T520ZCUANG2
China (CHN) SM-T520 GALAXY TabPRO 10.1 Wi-Fi 4.4.2 T520ZCUAOA1
China (CHN) GT-I9300I GALAXY S III 4.3 I9300IZCUAOA1
China (China Telecom) (CTC) SM-G3609 4.4.4 G3609KEU1AOB1
China (China Telecom) (CTC) SM-G9009W GALAXY S5 DUOS 5 G9009WKEU1BOB1
China (China Unicom) (CHU) SM-G3606 4.4.4 G3606ZNU1AOA1
China (Open China) (CHC) SM-R750 Gear S 2.2.1.4 R750XXU1BOA7
China (Open China) (La Fleur)(CHC) SM-G7508Q GALAXY MEGA2 Duos 4.4.4 G7508QZCU1AOA3
Czech Republic (O2C) (O2C) GT-N7100 GALAXY Note II 4.3 N7100XXUEMK9
Czech Republic (O2C) (O2C) GT-N7100 GALAXY Note II 4.4.2 N7100XXUFNL1
Czech Republic (Vodafone) (VDC) SM-N9005 GALAXY Note 3 LTE 5 N9005XXUGBOA5
Czech Republic (Vodafone) (VDC) SM-N9005 GALAXY Note 3 LTE 4.4.2 N9005XXUGNG1
Egypt (EGY) GT-S7582 GALAXY S DUOS 2 4.2.2 S7582XXUAOA1
Egypt (EGY) GT-S7582 GALAXY S DUOS 2 4.2.2 S7582XXUANK4
France (XEF) SM-G850F GALAXY Alpha 4.4.4 G850FXXU2BOA2
France (XEF) GT-I9205 GALAXY Mega 6.3 LTE 4.2.2 I9205XXUCNA2
France (XEF) GT-I9205 GALAXY Mega 6.3 LTE 4.4.2 I9205XXUDOA1
France (Bouygues) (BOG) GT-I9205 GALAXY Mega 6.3 LTE 4.4.2 I9205XXUDOA1
France (Bouygues) (BOG) GT-I9205 GALAXY Mega 6.3 LTE 4.2.2 I9205XXUCNA2
France (Orange) (FTM) GT-N8020 GALAXY Note 10.1 4.4.2 N8020XXUDNE4
France (Orange) (FTM) GT-N8020 GALAXY Note 10.1 4.4.2 N8020XXUDNK1
Germany (DBT) SM-N910F GALAXY Note 4 5.0.1 N910FXXU1BOB4
Germany (DBT) SM-V700 GALAXY Gear 2.2.1.1 V700XXUCOA2
Germany (DBT) SM-V700 GALAXY Gear 2.2.1.1 V700XXUCNK1
Germany (DBT) GT-S7580 GALAXY Trend Plus 4.2.2 S7580XXUBNI3
Germany (Vodafone) (VD2) SM-N9005 GALAXY Note 3 LTE 4.4.2 N9005XXUGNG1
Germany (Vodafone) (VD2) SM-N9005 GALAXY Note 3 LTE 5 N9005XXUGBOA5
Guatemala (TGU) SM-G130M GALAXY Young 2 DUOS 4.4.2 G130MUBU0AOA1
Hong Kong (TGY) SM-R750 Gear S 2.2.1.4 R750XXU1BOA7
Hungary (XEH) GT-I9205 GALAXY Mega 6.3 LTE 4.4.2 I9205XXUDOA1
Hungary (XEH) SM-V700 GALAXY Gear 2.2.1.1 V700XXUCNK1
Hungary (XEH) GT-I9205 GALAXY Mega 6.3 LTE 4.2.2 I9205XXUCNA2
Hungary (XEH) SM-V700 GALAXY Gear 2.2.1.1 V700XXUCOA2
Hungary (Telenor) (PAN) GT-N7100 GALAXY Note II 4.3 N7100XXUEMK9
Hungary (VDH) (VDH) SM-N9005 GALAXY Note 3 LTE 5 N9005XXUGBOA5
Hungary (VDH) (VDH) SM-N9005 GALAXY Note 3 LTE 4.4.2 N9005XXUGNG1
India (INS) GT-I9500 GALAXY S4 5.0.1 I9500XXUHOAA
India (INS) GT-I9500 GALAXY S4 4.4.2 I9500XXUFNI2
Indonesia (XSE) SM-G313HZ GALAXY Ace 4 LTE 4.4.2 G313HZDBU0AOB1
Iraq (MID) GT-S7582 GALAXY S DUOS 2 4.2.2 S7582XXUANK4
Iraq (MID) GT-S7582 GALAXY S DUOS 2 4.2.2 S7582XXUAOA1
Italy (TIM) (TIM) SM-G800F GALAXY S5 mini 4.4.2 G800FXXU1ANL1
Italy (TIM) (TIM) SM-G900F GALAXY S5 5 G900FXXU1BOA3
Italy (TIM) (TIM) SM-G900F GALAXY S5 4.4.2 G900FXXU1ANH6
Italy (Wind) (WIN) SM-G900F GALAXY S5 4.4.2 G900FXXU1ANG2
Italy (Wind) (WIN) SM-G900F GALAXY S5 5 G900FXXU1BNL9
Italy (Wind) (WIN) SM-G800F GALAXY S5 mini 4.4.2 G800FXXU1ANL1
Kazakhstan (SKZ) SM-V700 GALAXY Gear 2.2.1.1 V700XXUCOA2
Kenya (AFR) GT-S7580 GALAXY Trend Plus 4.2.2 S7580XXUBNI4
Kenya (AFR) GT-S7582 GALAXY S DUOS 2 4.2.2 S7582XXUAOA1
Kenya (AFR) GT-S7582 GALAXY S DUOS 2 4.2.2 S7582XXUANI5
Kenya (KEN) GT-S7582 GALAXY S DUOS 2 4.2.2 S7582XXUANI5
Kenya (KEN) GT-S7582 GALAXY S DUOS 2 4.2.2 S7582XXUAOA1
Kenya (Zain) (DKR) GT-S7582 GALAXY S DUOS 2 4.2.2 S7582XXUANK4
Kenya (Zain) (DKR) GT-S7582 GALAXY S DUOS 2 4.2.2 S7582XXUAOA1
Korea (KT Corporation) (KTC) SM-G900K GALAXY S5 5 G900KKTU1BNL5
Korea (KT Corporation) (KTC) SM-N910K GALAXY Note 4 5.0.1 N910KKTU1BOB5
Korea (KT Corporation) (KTC) SM-G900K GALAXY S5 5 G900KKTU1BOB1
Korea (LG Uplus) (LUC) SM-N910L GALAXY Note 4 5.0.1 N910LKLU1BOB4
Korea (SK Telecom) (SKC) SM-N910S GALAXY Note 4 5.0.1 N910SKSU1BOB4
Luxembourg (LUX) SM-R750 Gear S 2.2.1.4 R750XXU1BOA7
Malaysia (XME) SM-G313HZ GALAXY Ace 4 LTE 4.4.2 G313HZDBU0AOB1
Malaysia (XME) SM-G900F GALAXY S5 5 G900FDXU1BOA2
Malaysia (XME) SM-G900F GALAXY S5 5 G900FDXU1BNL3
Mauritania (MRT) GT-S7582 GALAXY S DUOS 2 4.2.2 S7582XXUANK4
Mauritania (MRT) GT-S7582 GALAXY S DUOS 2 4.2.2 S7582XXUAOA1
Montenegro (TMT) SM-G357FZ GALAXY Ace 4 LTE 4.4.4 G357FZXXU1ANL1
Morocco (MAT) (MAT) GT-S7580 GALAXY Trend Plus 4.2.2 S7580XXUBNI4
Morocco (MWD) (MWD) GT-S7580 GALAXY Trend Plus 4.2.2 S7580XXUBNK3
Pakistan (PAK) (PAK) GT-S7582 GALAXY S DUOS 2 4.2.2 S7582XXUAOA1
Pakistan (PAK) (PAK) GT-S7582 GALAXY S DUOS 2 4.2.2 S7582XXUANK4
Panama (TPA) SM-C115M GALAXY K Zoom LTE-A 4.4.2 C115MVJU1ANI3
Panama (TPA) SM-P601 GALAXY Note 10.1 2014 Edition 3G 4.4.2 P601UBUCNH2
Panama (TPA) SM-P601 GALAXY Note 10.1 2014 Edition 3G 4.4.2 P601UBUCNL1
Philippines (Globe) (GLB) SM-G313HZ GALAXY Ace 4 LTE 4.4.2 G313HZDBU0AOB1
Philippines (Open Line) (XTC) SM-G313HZ GALAXY Ace 4 LTE 4.4.2 G313HZDBU0AOB1
Philippines (Smart) (SMA) SM-G313HZ GALAXY Ace 4 LTE 4.4.2 G313HZDBU0AOB1
Philippines (Sun Cellular) (XTE) SM-G313HZ GALAXY Ace 4 LTE 4.4.2 G313HZDBU0AOB1
Poland (XEO) GT-N8000 GALAXY Note 10.1 4.4.2 N8000XXUDNL1
Poland (XEO) SM-N910C GALAXY Note 4 5.0.1 N910CXXU1BOB4
Poland (XEO) GT-I9205 GALAXY Mega 6.3 LTE 4.4.2 I9205XXUDOA1
Poland (XEO) SM-N9005 GALAXY Note 3 LTE 4.4.2 N9005XXUGNG1
Poland (XEO) SM-N9005 GALAXY Note 3 LTE 5 N9005XXUGBOA5
Poland (GT-N8000EAAXEO) GT-N8000 GALAXY Note 10.1 4.0.4 N8000XWALI4
Poland (XEO) SM-T365 GALAXY Tab Active LTE-A 4.4.4 T365XXU1AOA3
Poland (XEO) GT-N8000 GALAXY Note 10.1 N8000XXCMA2
Portugal (TMN) (TMN) SM-C105 GALAXY S4 Zoom LTE 4.4.2 C105XXUBNL1
Portugal (TPH) (TPH) GT-N7100 GALAXY Note II 4.4.2 N7100XXUFNL1
Portugal (TPH) (TPH) GT-S7390 GALAXY Trend Lite 4.1.2 S7390XPUANI1
Portugal (TPH) (TPH) GT-N7100 GALAXY Note II 4.3 N7100XXUEMK9
Romania (Vodafone) (CNX) SM-N9005 GALAXY Note 3 LTE 5 N9005XXUGBOA5
Russia (MegaFon) (MGF) SM-N900 GALAXY Note 3 4.4.2 N900XXUENH1
Russia (MegaFon) (MGF) SM-N900 GALAXY Note 3 5 N900XXUEBOA6
Saudi Arabia (KSA) GT-S7582 GALAXY S DUOS 2 4.2.2 S7582XXUANK4
Saudi Arabia (ACR) GT-S7582 GALAXY S DUOS 2 4.2.2 S7582XXUANK4
Saudi Arabia (KSA) GT-S7582 GALAXY S DUOS 2 4.2.2 S7582XXUAOA1
Saudi Arabia (WTL) SM-E500H GALAXY E5 4.4.4 E500HXXU1AOA6
Saudi Arabia (ACR) GT-S7582 GALAXY S DUOS 2 4.2.2 S7582XXUAOA1
Saudi Arabia (KSA) SM-E500F GALAXY E5 4.4.4 E500FXXU1AOA6
Slovakia (XSK) SM-V700 GALAXY Gear 2.2.1.1 V700XXUCNK1
Slovakia (XSK) SM-V700 GALAXY Gear 2.2.1.1 V700XXUCOA2
Slovenia (SIO) SM-V700 GALAXY Gear 2.2.1.1 V700XXUCNK1
Slovenia (SIO) SM-R750 Gear S 2.2.1.4 R750XXU1BOA7
Slovenia (SIO) SM-V700 GALAXY Gear 2.2.1.1 V700XXUCOA2
South Africa (XFE) GT-S7582 GALAXY S DUOS 2 4.2.2 S7582XXUANK4
South Africa (XFE) GT-S7582 GALAXY S DUOS 2 4.2.2 S7582XXUAOA1
South Korea (SKT) SHW-M440S GALAXY S III 3G 4.3 M440SKSUGNK2
South Korea (SKT) SHW-M440S GALAXY S III 3G 4.3 M440SKSUGOB1
Spint (cdma) (SPR) SM-G900P GALAXY S5 5 G900PVPU1BOA6
Spint (cdma) (SPR) SM-G900P GALAXY S5 4.4.4 G900PVPU1ANK4
Switzerland (Swisscom) (SWC) SM-N9005 GALAXY Note 3 LTE 4.4.2 N9005XXUGNG1
Switzerland (Swisscom) (SWC) SM-N9005 GALAXY Note 3 LTE 5 N9005XXUGBOA5
Taiwan (BRI) SM-R750 Gear S 2.2.1.4 R750XXU1BOA7
Taiwan (BRI) SM-N910U GALAXY Note 4 4.4.4 N910UXXU1AOA3
Thailand (THL) SM-G900F GALAXY S5 4.4.2 G900FXXU1ANI4
Thailand (THL) SM-G900F GALAXY S5 5 G900FDXU1BOA2
Trinidad and Tobago (TTT) SM-P601 GALAXY Note 10.1 2014 Edition 3G 4.4.2 P601UBUCNL1
Trinidad and Tobago (TTT) SM-P601 GALAXY Note 10.1 2014 Edition 3G 4.4.2 P601UBUCNH2
Trinidad and Tobago (EON) SM-P601 GALAXY Note 10.1 2014 Edition 3G 4.4.2 P601UBUCNH2
Trinidad and Tobago (EON) SM-P601 GALAXY Note 10.1 2014 Edition 3G 4.4.2 P601UBUCNL1
United Kingdom (Vodafone) (VOD) SM-N9005 GALAXY Note 3 LTE 4.4.2 N9005XXUGNG1
United Kingdom (Vodafone) (VOD) SM-N9005 GALAXY Note 3 LTE 5 N9005XXUGBOA5
Unknown (VMU) SM-G900P GALAXY S5 5 G900PVPU1BOA6
Unknown (XID) SM-T805 GALAXY Tab S 10.5 LTE 4.4.2 T805XXU1AOA1
Unknown (THW) SM-G355M GALAXY Core 2 DUOS 4.4.2 G355MUBU0AOA3
Unknown (BST) SM-G900P GALAXY S5 5 G900PVPU1BOA6
Unknown (XID) SM-G313HZ GALAXY Ace 4 LTE 4.4.2 G313HZDBU0AOB1
Unknown (THW) SM-G130M GALAXY Young 2 DUOS 4.4.2 G130MUBU0ANL2
Unknown (BVO) GT-I9300I GALAXY S III 4.4.4 I9300IUBUBOA1
Unknown (BST) SM-G900P GALAXY S5 4.4.4 G900PVPU1ANK4
Uruguay (UPO) SM-G7102 GALAXY Grand 2 DUOS 4.4.2 G7102XXUBNK2
Uruguay (UPO) SM-G7102 GALAXY Grand 2 DUOS 4.3 G7102XXUANE2
Uzbekistan (CAC) SM-G350E GALAXY Trend 3 4.4.2 G350EXWU0AOA1
Vietnam (XXV) SM-G313HZ GALAXY Ace 4 LTE 4.4.2 G313HZDBU0AOB1

WordPress Ping List 2015 – 276 links no duplicate

Updated to 276 links

WordPress has an Update Service option under the Settings > Writing. When you publish a post WordPress automatically try to ping these sites. It is very useful for SEO and your sites visibility on the net.

There are lots of lists out there. I have combined most of them and removed duplicate links for you and myself. Below list has 262 different RPC, ping links. Feel free to add any none listed links in comment and I will update the list accordingly. Also I didn’t check if there are still alive or not but in my opinion it doesn’t matter. Nothing wrong to ping a dead service.

Here is the WordPress Ping List 2015 Continue reading

Multiple java versions and how to change defaults on linux

Ok here is the thing. You can have multiple java versions at the same time but you have to make one of them as default in order some Java environment filled by OS.

In my case my android build wants Oracle Java 1.6 and Upsource code review program wants Java 1.7. Uninstalling and installing every time is not a proper solution.

Thank Linux there is a hack for that. You can update your default java version with update-java-alternatives command which changes both javac and java version as shown below:
update-java-alternatives -l list the installed java versions then you can choose with -s option.
update-java-alternatives -s java-6-oracle
update-java-alternatives -s java-7-oracle

Also you can change java and javac separately with:
update-alternatives –config java
update-alternatives –config javac

Note: these commands need to be run with root permissions.
Thanks for reading.

Directly download file to server from URL PHP

Today I needed to download a huge file from internet and upload it to my hosting service. Even download is problem think about upload. Than I thought that PHP is a server-side script runs apparently on server-side which can handle this situation for me.

So little google search leaded me to a one line of PHP code which downloads file from url. Copy the below lines of code to download.php file, upload download.php to hosting service and trigger download with example.com/download.php. You can also look for the file at the same time with Filezilla by refreshing. I can say that within one minute or less script successfully download ~500Mb file.

Note: Most cpanel has extract option don’t worry about the archive formats

<?php file_put_contents("Tmpfile.zip", file_get_contents("http://someurl/file.zip")); ?>

You are most welcome ;)

Android KEYCODE list for remapping buttons

This is just an informative post. I will not write about how to remap buttons but give you the complete android KEYCODE list with their Linux KEY codes which you can also find in here(use expand paste button) There is also comprehensive introduction part in this paste. Please feel free to ask me your question in comments. I am planning to write about remapping android button from scratch. This paste and information originally comes from Android Source

Please kindly remember that If you make changes on ****.kl files you have to validate them with validatekeymaps command line tool. This file compiled within android build and its location is under android/out/host/linux-x86/bin folder. 

Thanks for reading, I hope it helps somebody.

Continue reading

Use subdomain for images of your WordPress

Modern web browsers can only download a certain number of resources from a domain at once. By creating a sub-domain to serve resources from, you are effectively doubling the number of resources that a visitor’s browser can download at once – or in parallel.

Make a complete backup of your website. You have been warned.

How to Set WordPress to Serve Images From SubDomain

  • Create subdomain
  • Show WordPress where to upload images to
  • (optional) Update existing image links

Continue reading

Hello world!

Yes, this is another hello world post just because I don’t want to remove the default hello world post on WordPress installation. Yeah you clever boy I have just installed WordPress (again). Here I have started the 2015 with English (at least I am trying dont harsh on me) blog of mine. I will no longer blog in Turkish, which is my native language btw, and try to keep up things in English.

Let’s be clear. I am NOT trying to change the world. I am a small geek man in hell of a big world. I will try keep this blog alive with small things from mostly about geek stuff. (maybe big things too)

Topics, update schedule, usefulness nothing is certain. Everything can happen in this blog. I have lots of internet projects I am working on. You mostly here about them and problems or obstacles that I have met in here and of course in my life. Continue reading

If a=1, how does ++a + ++a=6?

Answer by Aparajita Raychaudhury:

Oh dear! Indian teachers will never learn not to set this question. Ironically enough I have failed to explain to them why this a++ + ++a bullshit is totally nonsensical. They just love this question.

Like the only other correct answer on the page mentions, the behaviour is undefined. Which means a compiler can do exactly as it pleases when asked to convert this statement. It can convert in such a way that you get 5 or 6 or 99 or it could create code to wipe off your entire hard drive. It would still be a perfectly valid C compiler.

I wrote a pretty detailed explanation somewhere else on Quora, but unfortunately I can’t find it anymore. http://stackoverflow.com/questio… has every detail (and more) that you can ever want to know on the topic, with pretty useful links to further resources. But Stack Overflow can be a little overwhelming, so let me try putting this in simpler terms. (I may sacrifice absolute accuracy to understandability, so I suggest you go read the SO thread for the real deal, once you understand my approximation). [Edit: http://blog.regehr.org/archives/213 is a much better introduction to the topic though.]

C has a concept known as ‘sequence points’. Sequence points are basically a point in your code where the compiler guarantees to have finished off all evalutations. For example, a semi-colon at the end of a statement is a sequence point. So a C compiler guarantees that before it moves to the next code after a semi-colon, it will finish doing everything before the semicolon. So when you write a=b+c; printf(“%d”, a);, you know a will be printed as whatever is b+c, because there is a sequence point before printf, and hence the compiler guaranteed to finish the calculation before starting to print. But what order the C compiler executes statements within a sequence point can not be guaranteed. For example, if you write a=b++ + c++; you can’t guarantee whether b will be incremented first or c. In most cases it doesn’t matter, because no one cares what order it is evaluated in. But in some cases it does.

Now to come to undefined behaviour. The C language standard says that the value of a variable can change at most once within a single sequence point. If a code attempts to change a variable’s value more than once within the same sequence point, it is undefined behaviour. Which means the C compiler can do exactly whatever it wants. It can even format your root drive. Anything is fine.

So when you do something like a++ + ++a, you are attempting to change the value of variable a twice within the same sequence point. This is not allowed. Since you defied the holy laws of C, now the compiler can do anything it wants. And apparently it does. Which is why in your case it says 6, whereas other people using other compilers (or other versions of your compiler) get 5. It can even say 99. Or -99. Anything is correct. Because you broke the Holy Commandment. Which is why Sergey says that the answers you get is non-sensical. It could be just some random value the compiler decided to spit out on the spur of the moment.

And the worst part is, a single piece of undefined code makes the entire program undefined. The compiler can do absolutely anything it pleases, because, yeah, you know, you broke the law.

Good luck getting your teachers to even recognise the law though.

If a=1, how does ++a + ++a=6?

DigitalOcean ile VPS’e ilk adım

Digital Ocean vs Linode şeklinde aratırsanız çeşitli tartışmaları avantajları dezavantajları göreceksinizdir. Ben Digital Ocean‘ı tercih ettim. Kullanım kolaylığı olarak çok memnunum tavsiye ederim.

Bu link aracılığıyla kaydolursanız $10 krediniz de benden.

SSH key ekleme

1.Kontrol

Bilgisayarınızda önceden oluşturmuş id_rsa id_rsa.pub dosyaları var mı diye kontrol edin.

ls -al ~/.ssh

bilgisayarınızda önceden oluşturulmuş ssh key varsa 3. adıma geçin yoksa 2.adımdan devam edin.

2.SSH key oluşturun

ssh-keygen -t rsa

ya da direkt olarak ssh-keygen komutunu çalıştırın. Sizden passphrase isteyecek boş geçebilir ya da istediğiniz bir şifreyi seçebilirsiniz.

ana dizininize ($HOME) .ssh klasörü açıp id_rsa ve id_rsa.pub dosyalarını atmış olmalı.

3. DigitalOcean a SSH ekleme

bu kısımda mantık basit oluşturduğunuz dosyayı metin editörüyle açıp digitalocean da ssh key ekle seçeneğiyle açılan kısma yapıştıracak ve bir isim vereceksiniz.

Metin editörü ile açmak istemezseniz dosya içeriğini komple panoya kopyalan xclip uygulamasını kullanabilirsiniz Continue reading

Android için Kodi (XBMC) nasıl (Compile edilir) derlenir

Öncelikle Android derleme çevreniz (anroid build environment) hazır olmalı. Şurda anlatıldığı şekilde çalışma ortamınızı hazırlarsanız xbmc nin Android compile etmek için gösterdiği adımların çoğunu atlamış olacağız ve gerçekten en temiz ve en kısa Android environmet hazırlama rehberidir.

xbmc Android derleme dökümanı

Hangi XBMC sürümünü derleyeceğinizi seçmenizde fayda var şu an XBMC 14 sürümünde isim değiştirip Kodi ismini aldı ve çoğu tema 14 sürümünü (henüz) desteklemiyor. Continue reading