Category Archives: Coding

Anything to do with programming.

Install Android Studio on Ubuntu

Android Studio is a great development environment and is available on Ubuntu. I’m using Ubuntu Mate 16.10 “Yakkety Yak”.   First install a Java Development Kit (JDK). OpenJDK is pre-installed or you can use Oracle Java 8 (there is a … Continue reading

Posted in Android, Coding, Computing, Linux, Open University, Ubuntu | Tagged , , , , , , , , , , , | Comments Off on Install Android Studio on Ubuntu

TM470

After a false start when The Open University opened the TM470 module site, we got back on track on Wednesday. Although the module doesn’t start until February, I need to decide a project to assign a tutor.   I read … Continue reading

Posted in Android, Coding, Computing, Linux, Open University | Tagged , , , , , | Comments Off on TM470

Forget everything you knew about coding (or perhaps remember, depending on your age)

This Christmas I’m going to embrace the past. COmmon Business Oriented Language (COBOL) 85 standard was the first language I was taught. Napier University was a feeder into the banking and insurance industries in Edinburgh at the time and they … Continue reading

Posted in Coding, Computing, Ubuntu | Tagged , , , | 2 Comments

Largest product of five consecutive numbers in a 1000 digit number

Haven’t done much Project Euler recently – I’ve been busy studying. So here is an answer to problem eight which asks: Find the greatest product of five consecutive digits in the 1000-digit number.

Posted in Coding, Computing | Tagged , , | Comments Off on Largest product of five consecutive numbers in a 1000 digit number

MT254 TMA 01

First TMA on MT264 (Designing applications with Visual Basic) got returned today – 96%. I’m very pleased with that and exceptionally lucky given that I read the material in a week, attended one on-line tutorial and wrote the assessment in a couple of days. I’ve … Continue reading

Posted in Coding, Computing, Open University | Tagged , , , , , | Comments Off on MT254 TMA 01

Café

Well that was emotional, the TU100 forums opened yesterday. My poor co-moderator Nicky got thrown in to the deep end (I was at a mess top table). I checked in before work, and there were a few posts (about two … Continue reading

Posted in Coding, Open University | Tagged , , , | Comments Off on Café

Sum of all the primes below two million

The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17. Find the sum of all the primes below two million. Seemed pretty straight forward, loop through all numbers up to 2,000,000 – if … Continue reading

Posted in Coding | Tagged , , | 5 Comments

Pythagorean triplet

Project Euler again, this time its problem 9. A Pythagorean triplet is a set of three natural numbers, abc, for which: $latex a^{2}+b^{2}=c^{2}$ For example: $latex 3^{2}+4^{2}=9+16=25=5^{2}$. There exists exactly one Pythagorean triplet for which a + b + c = 1000. Find the … Continue reading

Posted in Coding | Tagged , , , | Comments Off on Pythagorean triplet

The 10001st prime number

Project Euler time again, I’ve come out of sequence – here’s problem 7. Continue reading

Posted in Coding | Tagged , , , | 2 Comments

Largest prime factor of a composite number

Project Euler problem 3 – largest prime factor of a composite number. Continue reading

Posted in Coding, Computing, Open University | Tagged , , , | Comments Off on Largest prime factor of a composite number