Jokes...

来源:互联网 发布:photoshop软件培训 编辑:程序博客网 时间:2024/06/08 00:42

Here collects the experiences that a newbie encountered while bumping into the world of programmers.

1. RED words

I doubt why there should be so much red words on my IDE? Why should they be there? Why cannot the IDE automatically download the necessary packages for me? While the answer is NO. I have to be patient to relie on the ability of the IDE or the machine or the web. Later, after some preparation of the IDE, downloading something, all the things are resolved.

2. Exemption

Following the guide of the video course, I `restart' the program, but failed for some reasons. Why? I just did what he did!

Then I found the problem that such kind of service running should not be rerun while another thread is running already on the port. When I stoped the first instance, the second works well.

3. Steal the URI

A case exists in our development cycle when integrating the services from a third-party HTML5 applicaiton.

The android end developer asks for the resource uri, while the server developer cannot disclose the actual uri as it has been wrapped by the html5 functions.

However, the ultimate goal to use the uri is to get the file behind it. Clarified, the android developer succeeded to get it with the current uri, although without the file name or anything meaningful.

Done, though nusty.

4. Postgres cannot connet error...

While installing hot stand-by server of a postgres db, the pm did not announce that the version should be coherent to the current project server. Then, after distributed all the things to v9.6, everything should be redone. Well, not a big piece of cake.

However, the world does not like to follow the track. The server throws

psql: could not connect to server: No such file or directory
        Is the server running locally and accepting
        connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?

What the hell?

After several attempts, like rebooting the server, reinstalling the v10, I came to realize that I did removed the v9.6 on the master, but not the stand-by.