Visual Studio Nuget Error Install-Package : The current environment doesn’t have a solution open.

0

I was attempting to open a solution that I downloaded from Github and I received this error.

Install-Package : The current environment doesn’t have a solution open.

For those of us who met this error, You just have to go to File select Save All in Visual Studio to save the solution somewhere and the problem will be gone.

NUS MA1312 Calculus with Applications tips

0

Just ended my year 2 semester 2 and one of the most difficult module I took this semester is MA1312 in NUS taught by Professor Ng Wee Seng. Sharing with my audience here some quick tips:

For the record, I took Prof Ng Wee Seng MA1312 in AY1415 Sem2.
This is his syllabus.
Chapter 0 : Precalculus
Chapter 1 : Limits & Continuity
Chapter 2 : Derivatives
Chapter 3 : Applications of Derivatives I
Chapter 4 : Applications of Derivatives II
Chapter 5 : Integrals I
Chapter 6 : Integrals II
Chapter 7 : Applications of Integrals I
Chapter 8 : Applications of Integrals II

We had our first term test in week 8 covering chapter 0 to 2 and our final exam from chapter 3 to 8. For those who fail his midterms, he has given the students who fail a “second chance” by re-taking another paper before the final exam but with the condition of MAX(Your score, 25). 50 was the full marks. 38 was the median score with 144 students in the cohort.

As you should have notice, Derivatives and Integrals are the 2 main supporting pillars which will cover most of the chapters so better brush up on the basics on that if you plan to study MA1312 before the semester start.

If you are looking for a good “cheat sheet” to use, Jie Bo from NUS SoC had kindly share his resources online with us on public domain. You can view it here:

Differentiation Cheat Sheet
Integration Cheat Sheet

Jie Bo’s comment on the module is that

The hardest module I studied for in NUS because I really really wanted to do well for it. I downloaded 3 different testbooks suggested on IVLE and attempted most of the questions. The Prof is fantastic, very passionate about the topic. He will also prepare his revision packages with solutions for you. Do those and you should be able to secure at least a B/B+.

If you are an NUS student and need any notes for this module from me, please feel free to send me an email on guohong.lim@live.com

—–

PAYM Loves Red 2014 ended with a blast and right now we are looking forward for SG50 PAYM Loves Red. Are we ready?

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.

Go to Top