Hui WANG's Blog

One will, One way

How to replace the second match

There are two methods in the Object String which replace subsequences that match a given regular expression with a given replacement: replaceFirst and replaceAll. But if we want to replace the second or the third one, how should we do? More generally, how to replace the Nth matched subsequences? Read the rest of this entry »

My Resume is Proudly Powered by Google Document

I have been harvesting professional experiences rapidly since this two years with the help of internships and part-time jobs. In the same pace, I need to keep my resume up-to-date. It should have been an enjoyable moment when adding new experiences and skills. However, I was really very tired of managing the fast-changing resume version.

Another annoying thing was that sometimes, I had to edit my resume under Linux with Open Office and sometimes under windows with the one from Microsoft; It didn’t stop bothering because sometimes I had to send my resume with our school’s computers as my personal one is not that portable. Read the rest of this entry »

Internship Offers on Information Systems in Île-de-France

Here are the two reasons why I’ve chosen to major in Information Systems. One is that I will have the chance to become an architect. The other one is the ubiquity of this career. What I call ubiquity is that Information systems are needed in almost any type of ambitious companies. Thanks to the second one, IS students have a lot of choices for their internship or future job. However,  sometimes it’s better to have them less because information is seldom complete, and to make a decision is not that easy.  As a result, you see, there are neither good things nor bad things by definition. It depends on how you think of them. Anyway, since information is often incomplete, IS students get jobs. Read the rest of this entry »

Hui, you should not always write about technical articles in your second language

I’m a Chinese student learning  two foreign languages, English and French. In the past, I used my mother language to express my thinking on life experience because it’s simple and natural. Other tow languages serve most of time as my technical languages since the core of communication is tech which for me is more natural.

However, I have some troubles. To live in a foreign country especially while having a career which needs lots of contacts with local customers, I can’t always talk about hardcore techs. Customers don’t care about the way how I realize my work. Their needs and wants are that I at first understand and at last delivery exactly what they are expecting. Apart from speaking technically, I should first of all speak naturally. Read the rest of this entry »

Open-source Apps for IMS based Service Development

This is the last month of my part-time job. Since last August, I’ve investigated a lot in IMS based service development. As a brief final report, here is a list of open-source apps that we’ve used.  In the same time, I attach some personal opinions on their pros and cons. Above all, these tools especially the kind community behind them have been  always of great help. Read the rest of this entry »

A must-read story if your PHP session keeps losing weirdly

I realize that there are numerous scattered posts on the PHP SESSION LOST issu, but I’d like to add my story since it took me almost two days to figour out that php session is lost but it’s not PHP’s fault.

In the very beginning, I thought the reason why my php session is lost is because of my incorrect php code.  On lots of forums and blogs, people say that session_start() should be put in the very first line of each page, session_write_close() should come before the header redirect and also make sure that session_save_path is set in php.ini file.  Without lucks,  none of these tips could help me solve my problem. Read the rest of this entry »

Magic Factory Method for Obtaining Instances of Zend_Gdata Classes

// Create a new entry using the calendar service's
//magic factory method
$service = new  Zend_Gdata_Calendar($client);
$event= $service->newEventEntry();

This is a small piece of code from Zend manul on how to use Google Calendar.

At first I didn’t notice the comment in the very first line.  I have navigated directly into the class Zend_Gdata_Calendar to explore the method newEvenEntry. Unfornately and weirdly, this method doesn’t exist ! Read the rest of this entry »