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

Shuffle Algorithm (Swap Method)

The shuffle algorithm is a way to generate random numbers that never repeat. For example, suppose you need to generate ten random numbers, and all ten must be “unique.” Many people’s first instinct is to call the rand function to get a random value, store it in an array, and compare it against the numbers already in the array. That method is simple, but its performance is very poor. The shuffle algorithm introduced here is worlds apart from that approach in terms of performance. The principle behind the shuffle algorithm is actually very simple: first store the numbers in an array, then scramble them. ...

Programming
#Algorithms #C++
June 5, 2011 · 3 min

May 29: Cycling from Guandu to Bali~

This post should have been written yesterday, but yesterday I was too tired from playing all day xD, so it became today’s post. The background is this~ Yesterday I woke up to beautiful weather, with bright sunshine, so I happily went to ride bikes in Tamsui. I was originally planning to ride in Tamsui, but when I crossed the Guandu Bridge, a thought suddenly popped into my head: I’ve ridden in Tamsui many times, but I’ve never ridden in Bali. So the plan changed from a Tamsui trip to a Bali trip XD ...

Travel
#Cycling #Taipei
May 31, 2011 · 3 min

PHP Documentation for Chrome - Look Up PHP Docs Quickly

PHP is a fairly easy language to learn. It isn’t difficult in itself, and there are plenty of resources for it. In particular, the official PHP website provides a reference of PHP functions, where you can look up any PHP function. It’s quite similar to Microsoft’s MSDN. Today I want to introduce a Chrome extension that puts the search feature of the official PHP docs into your browser, so you can look up PHP functions more conveniently~ ...

Software
#Chrome Extensions #PHP
May 29, 2011 · 1 min

What Is the Intel AppUp Developer Program (IADP)? And How to Apply for an Account

Software stores have been catching on lately. Apple has the App Store, Google has the Android Market and the Chrome Web Store. But none of these stores are exclusively for Windows. The App Store, for example, is for iOS. And now, even Intel couldn’t hold back, launching the Intel AppUp Developer Program (hereafter IADP). Intel AppUp is different from the others. It’s a software store made specifically for the “Windows” and “MeeGo” operating systems. Through AppUp, programmers can turn their ideas into products and upload them there. If the idea is good, getting rich isn’t hard! The most important thing is that IADP is currently free. Normally, software stores charge an annual fee. AppUp was going to charge too, at 99 US dollars a year. But since IADP is brand new, Intel generously offered a free first year. Right now, IADP members are still free, but I don’t know when this offer will end. ...

Software
#Intel
May 27, 2011 · 3 min

GIMP: The Free Photoshop Alternative That Supports Hundreds of Plug-ins

GIMP is an image editing program that comes close to Photoshop, and it is open source. Although it is free software, meaning you can use it at no cost, its features are by no means inferior to the commercial Photoshop. Basic drawing tools are built in, it supports layers, and most importantly, you can extend its functionality by installing plug-ins. As far as I know, there are hundreds of plug-ins available. ...

Software
#GIMP #Photoshop
May 27, 2011 · 2 min

May 27 Diary: A Milestone

This was a busy semester in the second half of Grade 10. Up until this week, most things have finally come to a close. This semester has been really busy. We had to take a lot of certification exams: the Ministry of Labor’s basic accounting exam, basic software application exam, TQC typing in Chinese and English, and PowerPoint. Apart from school, I also had a lot of things to do personally. Luckily, everything has wrapped up so far. ...

Life
#Diary
May 27, 2011 · 6 min

KartRider Rush for iOS: The iOS Version of KartRider With 3 Free Maps and Two-Player Bluetooth Battles

I remember seeing news about a year ago that the classic game KartRider would also come to iOS devices, meaning you could play it on an iPhone or iPad. But after I saw that news, I rarely paid attention to it. Then a few days ago, a classmate of mine was playing it on an iPhone, and that’s when I found out it had already arrived on the App Store! The iOS version of KartRider has an Item Race and a Time Trial, and you can even battle over Bluetooth. The only shortcoming is that there aren’t many maps built in, and if you want to play more, you have to pay…. But the game itself is free! ...

Games
#KartRider #IOS
May 23, 2011 · 3 min

What Development Environment Should I Choose? Notepad? Visual Studio?

Many people probably have this question when they first start learning a programming language: what development environment should I choose? Should I use the simplest Notepad, or a powerful tool like Visual Studio? Well, it depends on your situation. There’s no standard answer. ...

Programming
#IDE #Visual Studio
May 23, 2011 · 2 min

[FileZilla] Saving Frequently Used FTP Sites in Site Manager for Easy Connections

FileZilla is an FTP client that many people use today, and one handy feature is Site Manager. Because I manage websites myself, I often need FTP. Every time I wanted to connect, I had to enter the address, username, password, and other details, which wasted a lot of time. But once I set up Site Manager, I only need to fill in the details once, and from then on I can connect directly without typing all that information again~ ...

Software
#FTP #FileZilla
May 22, 2011 · 2 min

Some Tricks You Probably Didn't Know That Make Using Your Computer Faster!

Actually, I first learned these tricks while studying vi, a plain-text editor under Linux. Later, when I tried them in other text editors (basically anywhere you can type text~), I found they worked the same way. These little tricks can speed up how quickly you process documents a lot. Also, I’ve recently been preparing for the TQC Chinese-English typing test, and practicing these tricks has helped my typing to some extent. ...

Hardware
#Windows #Linux
May 21, 2011 · 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