Done with Year 2 Sem 1

0

More than 14 weeks have passed since I last blogged about embarking on my

I am going to update my blog with a few key things that I have learnt in my Year 2 Sem 1 which will be useful to friends and juniors taking those modules.

Semester 1, AY 13/14
1.MA1301 – INTRODUCTORY MATHEMATICS (By Dr. Wang Fei)
2.CS1020 – DATA STRUCTURES AND ALGORITHMS I (By A.Prof Tan Sun Teck)
3.CS2100 – COMPUTER ORGANISATION (By A.Prof Wong Weng Fai)*
4.IS1105 – STRATEGIC IT APPLICATIONS (By Dr Guo Xiaojia)
5.SSA2209 – GOVERNMENT AND POLITICS OF SINGAPORE (By A.Prof Bilveer Singh)
*I withdrew from the module in week 7.

Semester 2, AY 13/14
1. CS2100 – COMPUTER ORGANISATION (By Dr. Aaron Tan, Dr. Soo Yuen Jie)
2. FMC1201 – FRESHMAN SEMINAR: IS COMPUTER SCIENCE SCIENCE (By Prof Tay Yong Chiang)
3. CS1231 – DISCRETE STRUCTURES (By A.Prof Tay Tiong Seng)
4. IS2102 – REQUIREMENTS ANALYSIS AND DESIGN (By Prof Kisenchand Nathumal Ranai)
5. GEK1531 – INTRODUCTION TO CYBERCRIME (By Prof Lam Kwok Yan and A. Prof Leung Ka Hin)

Looking forward, I am all geared up to start my semester in year 2 with

Semester 1, AY 14/15
1. ES1102 – ENGLISH FOR ACADEMIC PURPOSES (By Wong Waa Bee)
2. CS2102 – DATABASE SYSTEMS (By Prof Lee Mong Li Janice and Visiting Prof Shen Heng Tao from UQ)
3. IS3261 – MOBILE APPS DEVELOPMENT FOR ENTERPRISE (By A.Prof Ng Teck Khim)
4. IS3101 – MANAGEMENT OF INFORMATION SYSTEMS (By Prof John Lim)
5. ACC1002X – FINANCIAL ACCOUNTING (By A.Prof Ma Guang)

Code snippets for downloading images and displaying images from Android Internal storage

0

Reference to http://developer.android.com/guide/topics/data/data-storage.html#filesInternal

Saving of images into internal storage

FileOutputStream fos = openFileOutput(FILENAME, Context.MODE_PRIVATE);
fos.write(string.getBytes());
fos.close();

Displaying of images from internal storage

FileInputStream in = openFileInput(FILENAME);
Bitmap image = BitmapFactory.decodeStream(in);
imageView.setImageBitmap(image);

PAYM Loves Red post updated with photos

0

I hear you! I have added more photos into my PAYM Loves Red 2014 by Punggol CC YEC!

Standby for more updates on the Teens Conference (#hihstc14) that was held by HIHS on 16/8/14! Kiat Siang, Huile, Christipher and myself were there to help in the facilitation!

Year 2 in National University of Singapore

0

The 3 months break after my year 1 in National University of Singapore was utilised fully into the planning and execution of various initiatives from Punggol CC YEC and Rent Cars Singapore. The Punggol CC YEC had completed 2 PAYM Loves Red events in the month of July and August!

Looking forward, academic year 2014/2015 is starting 2 days time and it is time for me to post what have I went through in academic year 2013/2014. As mentioned in my previous NUS post, I took the following modules in semester 1.

Semester 1, AY 13/14
1.MA1301 – INTRODUCTORY MATHEMATICS (By Dr. Wang Fei)
2.CS1020 – DATA STRUCTURES AND ALGORITHMS I (By A.Prof Tan Sun Teck)
3.CS2100 – COMPUTER ORGANISATION (By A.Prof Wong Weng Fai)
4.IS1105 – STRATEGIC IT APPLICATIONS (By Dr Guo Xiaojia)
5.SSA2209 – GOVERNMENT AND POLITICS OF SINGAPORE (By A.Prof Bilveer Singh)

and the following modules in semester 2.

Semester 2, AY 13/14
1. CS2100 – COMPUTER ORGANISATION (By Dr. Aaron Tan, Dr. Soo Yuen Jie)
2. FMC1201 – FRESHMAN SEMINAR: IS COMPUTER SCIENCE SCIENCE (By Prof Tay Yong Chiang)
3. CS1231 – DISCRETE STRUCTURES (By A.Prof Tay Tiong Seng)
4. IS2102 – REQUIREMENTS ANALYSIS AND DESIGN (By Prof Kisenchand Nathumal Ranai)
5. GEK1531 – INTRODUCTION TO CYBERCRIME (By Prof Lam Kwok Yan and A. Prof Leung Ka Hin)

I withdrew from CS2100 in semester 1 before week 7(due personal reasons in that semester) and hence retaking the module again in semester 2. A special mention to FMC1201 by Prof YC Tay, I truly enjoyed the discussion conducted in the weekly 3 hours tutorial.

Looking forward, I am all geared up to start my semester in year 2 with

Semester 1, AY 14/15
1. ES1102 – ENGLISH FOR ACADEMIC PURPOSES
2. CS2102 – DATABASE SYSTEMS
3. IS3261 – MOBILE APPS DEVELOPMENT FOR ENTERPRISE
4. IS3101 – MANAGEMENT OF INFORMATION SYSTEMS
5. ACC1002X – FINANCIAL ACCOUNTING

PAYM Loves Red 2014

1

PAYM Loves Red 2014 was launched by Deputy Prime Minister Teo Chee Hean on 5 July 2014 at Sengkang CC. A total of 141 projects by the youth volunteers will be conducted during the span of 2 months and I am proud that Punggol CC YEC had organised 2 PAYM Loves Red in 2014.

PAYM Loves Red @ Community YOUthSparks
In conjunction with Bedok Reservior Punggol’s Red & White Picnic Under the Stars @ Hougang MRT station open field, Punggol CC YEC held its PAYM Loves Red @ Community YOUthSparks. Prime Minister Lee Hsien Loong was the GOH of the event. PAYM Loves Red @ Community YOUthSparks had seen a total of close to 2,100 youth outreach on the day itself with close to 20 youth volunteers from Holy Innocents’ High School. There were a total of 12 life-size kampong games (which include eraser war big as 10 shoeboxes, pick up sticks as tall as 10 year old young kid, skipping ropes and more), photo taking booth, face-painting, balloon sculpturing, gift redemption counter for those who completed the Youth Challenge and musical performance by the youth groups(which includes Punggol CC IAEC, Cornflake City and Vincent Lum) at the Busking Corner.

It was also an honour to have PM Lee Hsien Loong visiting the YEC booth during his tour at the carnival to understand what the club has been doing so far and knowing what are the upcoming events. We also took the rare opportunity to present a gift for him and his wife that was handmade by us with a message from the youths after getting him to pen down his wishes for the youth! We also took a selfie with him just before he left!

Some photos from the PAYM Loves Red @ Community YOUthSparks event.

PAYM Loves Red @ Community YOUthSparks Eraser War

PAYM Loves Red @ Community YOUthSparks Eraser War

PAYM Loves Red @ Community YOUthSparks Jenga!

PAYM Loves Red @ Community YOUthSparks Jenga!

PAYM Loves Red @ Community YOUthSparks Pickup Sticks!

PAYM Loves Red @ Community YOUthSparks Pickup Sticks!

PAYM Loves Red @ Community YOUthSparks Presenting our gift to PM Lee!

PAYM Loves Red @ Community YOUthSparks Presenting our gift to PM Lee!

PAYM Loves Red @ Community YOUthSparks A selfie with PM Lee!

PAYM Loves Red @ Community YOUthSparks A selfie with PM Lee!

PAYM Loves Red @ Community YOUthSparks Message from PM Lee!

PAYM Loves Red @ Community YOUthSparks Message from PM Lee!

PAYM Loves Red @ Holy Innocents’ High School
On 8 August 2014, Punggol CC YEC team went down to Holy Innocents’ High School to celebrate PAYM Loves Red @ HIHS. Punggol CC YEC stepped in this year to allow the 20 odds pioneer generation beneficiaries from the Lions Befriender to join in the annual fund-raising carnival and to celebrate Singapore’s 49th birthday! PAYM Loves Red shirt and a Singapore flag were also distributed to all secondary 2 students (whom run all the 30 odd carnival stores ranging from games to food sales). Bedok Reservoir-Punggol CCC chairman, Victor Lye, was also present that morning with the YEC members. The day was started with a parade by the school’s uniform groups in the school parade square following a National Day concert by various performance groups in the school hall.

Punggol CC YEC also distributed items like “Our People, Our Home” foldable fan, Singapore flag’s design pin, Singapore tattoo sticker and gift cards for students who “liked” our Facebook page!

Some photos from the PAYM Loves Red @ Holy Innocents’ High School event.

PAYM Loves Red @ HIHS - YEC Booth

PAYM Loves Red @ HIHS – YEC Booth!

PAYM Loves Red @ HIHS - School Canteen

PAYM Loves Red @ HIHS – School Canteen

PAYM Loves Red @ HIHS - Jackson sharing about the YEC page

PAYM Loves Red @ HIHS – Jackson sharing about the YEC page

PAYM Loves Red @ HIHS - Kampung Games at HIHS too!

PAYM Loves Red @ HIHS – Kampung Games at HIHS too!

PAYM Loves Red @ HIHS - Me sharing the page to a member of the dance club!

PAYM Loves Red @ HIHS – Me sharing the page to a member of the dance club!

A special mention to Lim Cheng Lei and Koh Kiat Siang for making the 2 PAYM Loves Red events possible! Of course, not forgetting all the volunteers involved on the 2 events, once again, thank you!

Unable to see .htaccess or dot files in File Manager, cPanel

0

I was attempting to “edit” .htaccess file to make some url redirection for a page and I realised I wasn’t unable to locate the file in my web root. The first instinct is that I didn’t have any .htaccess file and I decided to create one. However, I was given an error that ERROR: Could not create file “.htaccess” in path. File exists..

This indeed confused me as I cannot locate the file. Upon further probing, I realised what was wrong. You have to check on the option Show Hidden Files (dotfiles) when you open up File Manager in your cPanel.

Tick the options Show Hidden Files (dotfiles).

Tick the options Show Hidden Files (dotfiles).

NUS Students are getting a lifelong email in the cloud with 50GB!

0

Most of the NUS students should have received an email from the NUS Computer Centre that we will be getting a lifelong email hosted on Office 365! What’s more, it is going to be 50GB huge! They are going to come with Lync and OneDrive as well! However Lync and OneDrive are only for current students. This implies that we no longer have access to those services, except for email, after graduation!

The email domain that we are using right now @nus.edu.sg will be valid till 31 December 2014.

The new email domain for NUS students will be @u.nus.edu.
The new email domain for Duke-NUS students will be @u.duke.nus.edu.
The new email domain for Yale-NUS students will be @u.yale-nus.edu.sg.

Press here to read the full report.

Converting Binary to Gray Codes

0

I am doing one of the tutorial in CS2100 in NUS SoC and one of the questions require us to convert between binary and gray codes.

I have decided to write a simple tutorial on how to convert from binary to gray codes.

What is Gray Code?
“….is a binary numeral system where two successive values differ in only one bit. The reflected binary code was originally designed to prevent spurious output from electromechanical switches.”
~http://en.wikipedia.org/wiki/Gray_code

What is Binary Code?
A binary code represents text or computer processor instructions using the binary number system’s two binary digits, 0 and 1.
~http://en.wikipedia.org/wiki/Binary_code

Before we start, lets look at an Exclusive OR, XOR(sometimes EOR gate, or EXOR gate)’s truth table.

The whole concept on how to do the conversion between the 2 number system heavily uses the XOR truth table.

 

 

 

Binary to Gray Code Conversion

Binary to Gray Code Conversion : Step 1 – Prepare a table like this

Binary to Gray Code Conversion

Binary to Gray Code Conversion : Step 2 – Copy down the Most Significant Bit (MSB) of Binary onto Gray Code row

Binary to Gray Code Conversion

Binary to Gray Code Conversion : Step 3 – Get the MSB and next MSB of Binary and XOR them and copy its result down

Binary to Gray Code Conversion

Binary to Gray Code Conversion : Step 4 – Get the MSB and next MSB of Binary and XOR them and copy its result down

Binary to Gray Code Conversion

Binary to Gray Code Conversion : Step 5 – Get the MSB and next MSB of Binary and XOR them and copy its result down

Binary to Gray Code Conversion

Binary to Gray Code Conversion : Step 6 – Get the MSB and next MSB of Binary and XOR them and copy its result down

Binary to Gray Code Conversion

Binary to Gray Code Conversion : Step 7 – Get the MSB and next MSB of Binary and XOR them and copy its result down

Binary to Gray Code Conversion

Binary to Gray Code Conversion : Step 8 – Get the MSB and next MSB of Binary and XOR them and copy its result down

Gray Code to Binary Conversion

Gray Code to Binary Conversion : Step 1 – Prepare a table like this

Gray Code to Binary Conversion

Gray Code to Binary Conversion : Step 2 – Copy up the Most Significant Bit (MSB) of Gray Code onto Binary row

Gray Code to Binary Conversion

Gray Code to Binary Conversion : Step 3 – Take the MSB of Binary and next most MSB of Gray Code and XOR them. Copy its result upwards.

Gray Code to Binary Conversion

Gray Code to Binary Conversion: Step 4 – Take the MSB of Binary and next most MSB of Gray Code and XOR them. Copy its result upwards.

Gray Code to Binary Conversion

Gray Code to Binary Conversion: Step 5 – Take the MSB of Binary and next most MSB of Gray Code and XOR them. Copy its result upwards.

Gray Code to Binary Conversion

Gray Code to Binary Conversion: Step 6 – Take the MSB of Binary and next most MSB of Gray Code and XOR them. Copy its result upwards.

Gray Code to Binary Conversion

Gray Code to Binary Conversion: Step 7 – Take the MSB of Binary and next most MSB of Gray Code and XOR them. Copy its result upwards.

Gray Code to Binary Conversion

Gray Code to Binary Conversion: Step 8- Take the MSB of Binary and next most MSB of Gray Code and XOR them. Copy its result upwards.

Address in address bar in right to left

0

I am sure this will be useful to some of my audience who may have similar experience as me.

There was this one day when I accidently click on some stuffs(which till date is still unknown to me what I did) and I accidently changed a setting which I shouldn’t had.

This causes my address bar to be reading from right to left as you can see below

To solve it, right click on the address bar and uncheck “Right to Left Reading Order”

Studying in National University of Singapore

0

Its been a month plus since I ORD’ed and matriculated into National University of Singapore(NUS). You can refer to my ORD post here (ORD LO). Week 0 was on 5 August 2013 and our official lessons started a week later on 12 August 2013. First 2 weeks are purely just lectures and sectional teaching(just like lectures) and during these 2 weeks, we are bidding for our tutorials and lab slots. This semester is 13 weeks long for me(inclusive of 1 week eLearning and 1 week recess week(on week 7)).

In my first semester of year 1, I took the following modules.

  1. MA1301 – INTRODUCTORY MATHEMATICS
  2. CS1020 – DATA STRUCTURES AND ALGORITHMS I
  3. CS2100 – COMPUTER ORGANISATION
  4. IS1105 – STRATEGIC IT APPLICATIONS
  5. SSA2209 – GOVERNMENT AND POLITICS OF SINGAPORE

Besides CS2100 which I spent 211 points to bid for it from my Programme Account and SSA2209 which I spent 50 points. The rest were pre-allocated and 1 points for each were deducted from my Programme Account. Its interesting how we have to fight for the modules that we would want to take. This is something very different from what we have in polytechnic.

I am entering week 5, which is the e-learning week for this semester. I would say that the whole ecosystem of NUS is very different from Temasek Polytechnic. No more caregroup system, you are now “given more responsibility” for your own education. No more checking of homework by tutors, if you do not participate actively in class and finish up the tutorials, you are going to pile up your backlogs and before you know it, its already exam.

To end off, some useful links that would benefit a new student or existing undergraduate.

Useful links
NUS MyISIS
NUS IVLE
NUS Email Login
NUS SoC Email Login
NUS CORS
NUS SoC CodeCrunch
NUSMods
SoC Undergraduates – Useful Course Schedule
NUS Library Portal
NUS Library Portal – Exam Papers
uTown Facilities Booking
Will update this blog more often! Time to change a theme!

Go to Top