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);
Displaying of images from internal storage
FileInputStream in = openFileInput(FILENAME);
Bitmap image = BitmapFactory.decodeStream(in);
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!
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 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 @ 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.
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.
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.
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.”
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.
The whole concept on how to do the conversion between the 2 number system heavily uses the XOR truth table.
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
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.
- MA1301 – INTRODUCTORY MATHEMATICS
- CS1020 – DATA STRUCTURES AND ALGORITHMS I
- CS2100 – COMPUTER ORGANISATION
- IS1105 – STRATEGIC IT APPLICATIONS
- 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.
NUS Email Login
NUS SoC Email Login
NUS SoC CodeCrunch
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!
Original post can be found here: so basically it meant uncheck cs1020 tut 6 (its alternative) and replace it with tut 5.. same placement order.
17544 hours: the number of hours that I am rightfully employed as a National Serviceman Full Time by the Singapore Armed Forces. This amount of time is considerably shorter compared to most regulars in the regulars-dominated RSAF(the service I am in) but I dare say that my Air Force story is as colourful as any regular in the service. I enlisted with a heavy heart on 2nd August 2011 to Pula Tekong. Up to the time when I was taking the “penguin ferry”, I still could not comprehend why there was a need for National Service. It was so disruptive and intrusive to my life.
I was recruited into Leopard Company, Platoon 1, Section 4, Bed 11. (L1411) under the charge of 2SG(NS) Wei Chong and LTA(NS) Weng Yew for my Basic Military Training(BMT). I was very lucky to have them as the sudden change of environment was certainly a culture shock to most of us but their patience allowed us to settle down and transit smoothly into this phase of our life.
In BMT, I made lots of friends and buddies. From strangers to friends, we rolled in the mud together, punished together, and trained under the sun together. The first time we stripped our “wife”, had our IMT(known as real-life counter-strike), went into a live range and shot real bullets and even threw grenades, it was certainly an experience that one would never forget.
I went on to AFTC as an AOS(trainee). I had good course commanders who listened to us and to the feedbacks of the course and improved from there. The new friends, new buddies, bunk mates that I made undoubtedly made our compacted and stressful syllabus much more fun and easy to learn allowing us to be competent in our skill-set in our upcoming unit life.
Shortly after my Passing-Out Parade(POP) in Sembawang camp(under the rain), I was posted to Air Combat Command from Air Force Training Command. I knew that signified the start of my unit life. Horrible stories had been spreading around on how bad unit life can be and most of us were very reluctant to move on from AFTC, myself included; I was quite apprehensive to move on to my new unit.
The day came and I was supposed to report to my unit in Changi Airbase (West). My uncertainty was very soon eased. I really enjoyed working with my superiors. They put their trust in me and did not treat me like an NSF(not in a bad way). We worked together with the same agenda and objective in mind. I learnt a lot from their leadership and better understood their decision-making calculus from a HQ point of view.
Not forgetting the 4 squadrons, their officers, and their specialists whom I have crossed path and worked together with, as well as the advice and guidance they have given me, I am really glad I made great friends inside.
A special thank you message to the following people (usually people will say in no particular order but in this case, in the order of rank)
SLTC Mike – Sir. Thank you for your patience with me when I was covering your secretarial work especially during the times of uncertainty. You are very close to the ground and many SQN personnel appreciate you. You shared with us your stores of the Air Force and you did not distant yourself from us despite of your appointment as the Commanding Officer. I have also learnt a lot from you like the process of understanding situations and making certain decisions. Sir, thank you!
LTC(NS) Song – Sir, once again, thank you for your guidance and showing me your drive in your work. You are really knowledgeable. While you may or may not have noticed, you changed my life, the way I view things, and the way I handle things. Sometimes when I am confused on what decision to make, I ask myself, “What would you do if you were in my shoes?” Sir, thank you very much!
LTC Ian Tan – Sir, thank you for your unlimited amount of patience when I approached you randomly on advice on my life and studies. You are like a mentor to me. The smile that you always wear on your face makes me wonder sometimes if you ever have worries. Thanks for your guidance!
LTC Ravi – Sir, despite the fact that I had barely worked with you for 3 months, I can never forget the cheerfulness you brought to the office. I have, right in front of my eyes, seen how you pulled things together and got it working(to your ideal state) and thought of the situation from a broader view for the organisation. Your constant care and concern for the people (including me even after you posted out) around you certainly brought a warm touch to our life. I am glad to have worked with you. Congratulations once again on your promotion.
MAJ Kevin Tan – Sir, even though the time I got to work with you was short, I had always been amazed by your straight-forwardness and foresight.
CPT ChuaJ – Sir, it had been an honour to be able to work under you. Despite the fact that you get a lot of injects from all over the places, it was always miraculous to see how you could pulled things together and get the stats/data and information submitted to respective stakeholders on time. All the best to your upcoming endeavours.
CPT Derrick Kong – Sir, your exciting life(that you shared with me) before you signed on was truly amazing. The calm composure that you portrayed all the time coupled with the smile(and the spiky hair that you always gel) is something that I would never forget about. Your sharing of your university life benefitted me and allowed me to be better-prepared for the life I am about to embark on.
Mei – Mdm, thank you for everything and for being around when I was at my all-time low(due to the sudden demise of my bro) and all-time high(most of the time). You have taught me a lot, so much so that I will not be able to list them all here. Wishing you all the best in your health. Thank you so much!
Ryan – Bro, we may very well be working together in the future. :p I hope you will not have to cover Mdm Mei as much as I do(in a positive way).
Yan Yang – Bro, like I always say, you are lucky to be here. Enjoy yourself well and spend your time fruitfully! Thank you for contributing.
*There are so many more people that I have crossed path with in the service that I did not mention here, this does not mean that you did not impact my life. My Air Force story is so colourful that I would be able to go on and on for a few pages. It is just that I have decided to only credit the people in my office to keep this short…. relatively short.
Not forgetting my brothers and sisters, friends and families who had supported me throughout my 2 years stint with the service. Your constant support and encouragement made me realise my contributions to the National Service is worthwhile.
A verse from Every Singaporean Son : “Through the years, we have realised why we fought the battle deep inside.”
2 years later, on 1st August 2013, I collected my pink IC and change the status on my 11B from enlistee to NSman. Reflecting back, these 2 years of contributions were small yet important to ensure that our homes and freedoms are safeguarded. I realised the importance of National Service and was glad that I had so many people around me who supported me and made this journey more fun and more fruitful. Thank you!
While I am excited and am looking forward to the next phase of my life, the 2 years’ worth of memories(the friends and buddies I made, the lessons I learnt) are kept deep in my heart.
Allow me to conclude with a video titled Priceless ( http://youtu.be/XrGXtLHfJRM ) by Kenny Tan. It was one of the nomiations for ciNE65 and the film won Overall Best Film and Best Screenplay. The boy who acted in this short film happened to be one of the students i taught in Wufang previously.
I certainly know what I am protecting now and thank you for giving me such a wonderful Air Force story!
3SG(NS) Lim Guo Hong