Lin's Blog
|
  • Zh-Tw
  • Ja
  • Posts
  • Categories
  • About

How to Check Whether a Domain's DNS Is Set Up Correctly?

Anyone who runs a website has probably set up DNS records for a domain many times. You probably also know that after you change DNS, it takes 12 to 24 hours before the change takes effect. That is because ISPs need to clear their DNS caches. A DNS mapping is not applied instantly. It takes some time before it works. So today I want to introduce a command that lets you check whether a given domain points to the correct IP address....

SRE
#DNS
February 1, 2011 · 1 min

My First Google AdSense Payment: Notes on Collecting It Through Western Union

I finally received my first Google ad payment today. I originally wanted to write about receiving my first money earned online, but that isn't quite accurate 0.0 so I'm calling it my first Google ad payment XD. Google originally told me the money would be sent on January 30, and I could collect it on January 31. But they actually sent it on the 25th, and I didn't notice. By the time I realized they had paid early, it was already the 29th. That day was a Saturday, so the bank was closed, and I could only go on Monday. So in the end, it made no difference whether they paid early or not. Right now, Google AdSense supports two payment methods: Western Union Quick Cash and checks. I know that a check feels really satisfying to hold. Even though the amount on it is a bit small… a check feels great, but it comes with a fee. Also, mailing a check from the US to Taiwan takes several weeks. With Western Union, there’s no fee, and you can go to the bank to collect the money the day after Google pays out. It’s very convenient, which is why almost everyone uses Western Union to get their Google ad money these days. ...

Blog
#Google AdSense
January 31, 2011 · 3 min

How to Write Good Code: Indentation, Declaring Variables and Types, and Comments!

Most people who are just learning to program write code with a few obvious flaws. The code usually isn't indented, and it has almost no comments. If you started with a language like VB6, you probably also skipped declaring variable names and types. Code like that can run, but it is a pain to maintain. This article is just my own small opinion, so if I got something wrong, please let me know....

Programming
#Coding
January 29, 2011 · 7 min

[Java] JDK Installation and Java Source Code Compilation Tutorial

Over the past week, I’ve been taking Java, JSP, and SQL courses at Taipei Business College. I had planned to learn Java anyway. A netizen once told me that the languages every engineer needs to know are C++ and Java. I’ve dabbled a little in C++ and can write small programs, but I had never touched Java at all. When my teacher asked whether I wanted to take classes at Taipei Business College, I went right away, very happy about it. I originally thought Java wasn’t very useful. I wanted to learn it because it’s a required skill for engineers, and also because of its cross-platform nature: I could easily write Java programs for desktop and even mobile phones. Android’s basics are also built on Java. But after a few classes, I started to like Java. It gave me the same drive I had when I first learned a programming language. I started staying up until midnight with a book in my hands… It’s the same feeling I had back when I learned VB.NET!! ...

Programming
#Java
January 27, 2011 · 4 min

[PHP] Getting the Real Download URLs of Wretch/Yam Music with curl-lib

  The UI I designed is clean^^ This program, getting the real download URLs of Wretch/Yam music, was originally going to become a program that automatically generates blog music code. But since many people already run music code generators, one more wouldn't make much of a difference. So instead of building it, I decided to release the code for everyone to look at. Also, if anyone needs to download music from Yam or Wretch, they can download the program, install it on their own server, and run it there....

Programming
#PHP #CURL #Yam
January 25, 2011 · 3 min

[Ubuntu] A Handy Screenshot Tool with Chinese Language Support - Shutter

When I write articles on Windows and need to capture the screen, I usually use FSCapture. But lately I have been writing some articles about Ubuntu, and I need to take screenshots for them. Ubuntu has a built-in screenshot function, but honestly it is very inconvenient. It doesn't save automatically, and the image format is always PNG. For someone like me who is used to FSCapture, that is hard to get used to. So I asked a netizen online whether there was any other screenshot software. A netizen nicknamed Sanmiao Wei recommended Shutter and even sent me a link (thank you~). Then I found out that the site Brother Wei sent me happens to be run by a friend of mine XDD. What a coincidence~...

Software
#Ubuntu #Screenshots
January 22, 2011 · 2 min

DNS Firewall - Block Access to Specific Websites and Quickly Edit DNS Mappings

DNS Firewall is a program recently written by a webmaster. Its main function is to block access to certain websites. For example, if you have kids at home and you don't want them visiting adult sites or Facebook, you enter the URLs of those two sites into the program, and then this computer can no longer connect to them! The principle behind DNS Firewall is actually very simple. It modifies the hosts file built into Windows and maps the DNS entries of the blocked sites to 127.0.0.1, which is your own computer, so the browser simply can't reach those sites xD...

Software
#DNS #VB
January 21, 2011 · 2 min

Plurk Paste - Easily Post Very Long Messages and Code on Plurk

Plurk is a well-known microblogging system in Taiwan. Each message is limited to 140 characters. That limit makes things awkward for people who want to ask the community a question or share something good. For example, say you see a really funny story, but it's 300 characters long, so you can't post it on Plurk. Some people solve this by splitting the 300 characters into three parts and replying to their own post with each part, but that's a bit inconvenient. Here I want to introduce a new site called Plurk Paste...

Web Apps
#Plurk
January 7, 2011 · 2 min

[VB] [C++] Calculating n! (Factorial)

Calculating the factorial of n is very simple. I wrote this program for permutations and combinations: I wanted a rough idea of how many possible answers there would be, so I wrote an n! function to compute the factorial value. A factorial is 123…..n. In a permutation of 5 items, the result is at most 5432*1, which means there are at most 120 possible answers. Below, I’ve made n! into a Function, with a VB version and a C++ version. People who are just starting to learn loops can use this function to practice how loops work. Also, because I was worried that an integer wouldn’t be able to hold the result, I used a string to return the value. When you use this Function, you need to convert the return value to a numeric type first. ...

Programming
#VB #C++ #Algorithms
January 5, 2011 · 1 min

[VB] Splitting a String into Characters (Mid + For Loop)

Splitting a string into characters is actually very simple, but it comes up a lot in ACM problems. For example, permutation and combination problems require you to split a string into characters before doing any calculation. The Caesar cipher also uses this technique. Below I'll demonstrate with VB.NET. Other programming languages can do the same thing, and the principle is identical....

Programming
#VB
December 28, 2010 · 2 min
« Prev  Next 

Categories

All Programming AI SRE Life Hardware Software Blog Travel Web Apps Games Security
© 2026 Lin's Blog · Powered by Hugo & PaperMod