Hull Raspberry Jam 25th June

https://www.raspberrypi.org/

Why not join in on the fun and learn more about the Raspberry Pi and how to code by attending a Raspberry Jam.

The next event takes place on Saturday 25th June and starts at 10:15 until 13:15.

The venue for this event is Malet Lambert School – James Reckitt Avenue, Hull, HU8 0JD

This is a free to attend event – tickets plus more information is available from the Eventbrite website.

Share Button

Software Development Assignment – Java

We were set an assignment at college to create a program in Java using IntelliJ.

The assignment criteria was to create a currency converter that converts GBP into 3 different currencies where the end user can manually input the exchange rates.

The challenge set by the tutor (for a clear distinction) was to add an extra feature so that when you click a button it will pull the latest exchange rates from the internet.

As I am stubborn and not one to back down from a challenge, it was one I was willing to accept.

The user interface was quite difficult to create with IntelliJ and all the tutorials online showed that people were typically using NetBeans which I downloaded and found it so much easier to create a user interface as it was just drag and drop rather than worrying about spacing.

I created an action listener so that when the appropriate buttons were created they would act upon the code I had set to each button click. So the clear button would default the text field back to its original state using a jbutton.setText(“1”); I used an action listener for each button.

The currency exchange button turned the input number from a string to a float variable and then I calculated one float by another, example: GBP*EUR and then converted the float back into a string to output it into the area to show the amount.

For the auto generate section of the program, I used JSON (JavaScript Object Notation) and set the URL from Yahoo Finance as a string but added a variable called currency in the middle of the URL so that it would change the variable fromto section so that when you click on the auto generate button next to the Euro it would change the variable to GBPEUR and pull the latest Euro rate, when you click on the auto generate next to the US Dollar it would change the variable value to GBPUSD and pull the US Dollar rate and the same again with the Chinese Yuan.

You will need to download Java Runtime Environment to run this .jar executable file but please feel free to download and play around with my program. Download can be found here: Java Currency Converter

I have also added the code in a text file in case anyone would like to have a go. Download code

Share Button

Ooops my bad (1)!

I have numbered this as (1) as there are bound to be a few of these posted throughout the years.

Basically I want to write about my mistakes so that others can learn from them and not make the same silly mistakes I have made along the way.

I decided to upgrade my laptop and so treated myself to a SSD (Solid State Drive). This is faster as there are no moving parts so the read/write speed is increased and therefore it takes seconds to boot to Windows (instead of hours).

The idea was to take an image of my existing hard drive, just the way it was, and then put that image on to the new SSD. What actually happened was that I used the cheap imaging software that came with the hard drive caddy which decided to give the SSD drivers that Windows did not recognise!

Then I realised that the Samsung software that was available (for free) with the SSD came with cloning software but now it would not recognise the SSD as the other software had “screwed” it up.

So I decided to carry out a system restore which seemed to take forever and then I was going to use the Samsung software but by this time I realised that you cant take shortcuts and so I backed up my files to my external hard drive, asked Windows 10 nicely to do a clean install and then finally got to use the Samsung software to clone the hard drive.

After all of the above I could then download all my programs again and then add my files. In total I think I saved a fair few GB in storage space by having a clean copy of Windows to clone.

The moral of this story is to not use cheap cloning software that puts rubbish drivers on your system and also to take the time to put a fresh copy of Windows on your hard drive before cloning because it saves time and space.

#LessonLearnt

Share Button

Code Club

code_club_high_res_logo_720

Since last week I have had the privilege of volunteering on a weekly basis at a Code Club held at Hull Central Library. The Code Club teaches 9 to 11 year old children how to code. It starts with using the MIT software Scratch and then advances to teach CSS (Cascading Style Sheets) which is used as a formatting tool for HTML documents and then goes in to JavaScript.

I think its amazing that children from a young age get to learn these skills and I know I certainly wish I had the chance to learn more when I was younger.

I was in conversation with the Code Club on Twitter previously and they asked if I would be interested in volunteering and my reply was “I do not have enough knowledge”. I am now glad I took the next step and questioned my ignorance. The only skills you need is the ability to read. All the documentation is available for you to follow step by step and there is a teacher version as well as a child version.

I would highly recommend becoming a volunteer and searching the Code Club website to see what clubs are running near you. Not only are you giving to the community but you are also in a position to learn new skills of your own.

Share Button

Maths exam – vectors and matrices

So before the last half term I had a maths exam which included finding the cross and dot product of vectors, find the equation of a plane using 3 points in space and determine the inverse of a 3×3 matrix.

I am happy to announce that I got a clear merit in this exam.

Share Button

Hardware Meeting

After a visit to C4DI in Hull last night for a hardware meet up, I am now even more inspired to build a lot more with my arduino.

I met and spoke to some really interesting people who pointed me in the direction of shift registers which are used for 7 segment displays (digital number displays).

After much thought I have decided that my next project will be a small cluster of LEDs on a breadboard that can be controlled using a remote control and an IR receiver – watch this space!

 

Share Button

Hull University Applicant Day

Today I attended the Hull University applicant day. I have been previously and very much enjoyed the talks which inspired me to make Hull Uni my first choice but today was to attend the talks about “what happens next” and student finance.

I spoke to a few people from the Admissions stand, Finance stand and also the Student Well-being and everyone seems very welcoming and friendly. I know this sounds like a sales pitch but I have never had the experience of a university before and so this is an exciting period for me.

Share Button