1. LeetCode: 412. Fizz Buzz

    The problem is Fizz Buzz. It's quite simple!

    class Solution(object):
        def fizzBuzz(self, n):
            :type n: int
            :rtype: List[str]
            ret = []
            for i in range(1, n+1):
                if i % 3 == 0:
                    if i % 5 == 0:
                elif i % 5 == 0:
                    ret ...
    read more
  2. A simple calculator

    I designed a homework for HTML/CSS/JS basics. Implement a web-based calculator! It's quite simple to write a program for an experienced programmer, but for a beginner it may take a while.


    Also, there are some rules:

    1. all buttons are functional as a real calculator does
    2. single page ...
    read more
  3. Reverse Proxy by Apache

    I use Apache to proxy service located in private network. But it's not easy to map all services which listened to different ports. If a service use absolute path in it's web page, it is more diffcult.

    Luckily, I found a simple solution by a modle called proxy_html ...

    read more
  4. You should have a local APT-mirror~

    The network condition in our lab is very good, in general. However, the apt-get update is not that well. Download speed often fluctuates in the daytime, maybe due to great amount of users. The speed in late night is quite good, but I can't install softwares at that time ...

    read more
  5. VNCServer finally works on my Ubuntu 14.04

    Finally, the VNCServer works for me on my Ubuntu 14.04. As I experienced before in Ubuntu 12.04 and other dists, the VNCServer is a good choice to control computer remotely. However, it's changed since I installed Ubuntu 14.04. I can NOT get the "Desktop" when I ...

    read more
  6. The network is really bad!

    Recently, I want to have a look at development of Android App. The first thing, of cause, go to the homepage of Android. But the site couldn't be opened, as I thought, of cause.

    OK, there are some mirror-sites, but which is latest and/or reliable? After installed the ...

    read more
  7. Password!

    When I forgot password...

    Password! I have lots of machines to manage, and passwords to remember. Therefore sometimes I can not remember a password when I login to a machine. There are some simple methods to remember, for example I can write the password on a notebook. Even though that ...

    read more
  8. Ubuntu Tricks?

    There are lots of tricks or tips when I use Linux. Most of time I use Ubuntu. Here, I want to record some experiences during my work on Ubuntu.

    NO password when sudo

    It's not safe for a normal user to do root's matters. As result, there is ...

    read more

« Page 3 / 4 »