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

[CSS] Setting the Maximum Width and Height of Images

You can use a CSS rule to set the maximum width and height of an image. Maximum width: tag-name img{ max-width:width-value } Maximum height: tag-name img{ max-height:height-value } Also, the height (width) value can be expressed as a percentage. These rules help keep your blog’s images from overflowing their area. However, this rule doesn’t work in IE6. I’m still researching how to make it work in IE too. It probably requires JavaScript.

Programming
#CSS
May 15, 2009 · 1 min

How to Defragment a Windows Hard Drive

I think anyone who has used a computer for a long time has noticed that it gets slower the more it’s used. Here’s a method I recommend that can make your computer a bit faster. It can also extend the life of your hard drive. First, click “Start” - “All Programs” - “Accessories” - “System Tools” - “Disk Defragmenter.” Or click “Start” - “Run,” type dfrg.msc ...

Hardware
#Windows #Hard Drives
May 15, 2009 · 1 min

Introducing WordPress 2.7.1 & Download

Today I’d like to introduce a package for building blogs — WordPress. It’s a program that lets you set up a blog very easily. It’s written in PHP. In the future, this site will publish more related tutorials. Its latest version right now is 2.7.1. One of my favorite features is its heavy use of Ajax. You don’t have to reload the page every time you organize it. It also supports a lot of plugins and themes. So you don’t have to figure out how to lay out your interface yourself. For people who don’t know CSS, this is a real blessing. Also, it’s an open-source package. That means if there’s anything inside it you’re not happy with, you can modify it yourself. In effect, it gives me a great place to practice web programming. Here are some things to note when setting up WP. If you want to set it up on your own host, you just need to install AppServ. But if you want to put it on a web hosting space, you first have to make sure the provider offering the space provides PHP and MySQL services. Without these services, you can’t set it up at all. ...

Blog
#WordPress
May 13, 2009 · 2 min

[Announcement] Error Reports & Suggestions

I’ve been using Firefox lately, so I hadn’t noticed that this blog has problems when it’s opened in Internet Explorer. For example, page script errors, or the sidebar sinking to the bottom, and so on. To give other visitors a better environment, I’d like readers who run into these problems to report them here. The report format is as follows: Operating system: Screen resolution: Computer type: (laptop or desktop) Time: (when the problem occurred) ...

Blog
#Blogging
May 10, 2009 · 1 min

Century Warfare Cheat Codes

I was playing Century Warfare today, and I happened to find some cheat codes, so I’m sharing them here. I think these are for Century Warfare 3, right? I’m sure you all know how to use them: press Enter, type the cheat code, then press Enter again. all your base are belong to us: add 10000 to all resources my name is methos: map and resources fully revealed boston food sucks: add 1000 food ...

Games
#Century Warfare
May 10, 2009 · 1 min

How to Set the Screen Resolution in Windows XP?

Today I’ll teach you how to change the screen resolution. It can also be described as the screen size. I’m not very good at explaining, so… Anyway, changing this changes what’s shown on your screen (bigger or smaller) It’s useful for people who find the screen hard to read. ...

Hardware
#Windows
May 8, 2009 · 1 min

Fixing Errors Caused by a Virus

Some viruses use the registry to damage computers. Basically, I’m only posting one example here; the registry has many other places where things can be hidden, so if you don’t know much about computers, don’t try to change other places. At best nothing happens, at worst the computer is ruined. Following the steps below is safe. “Start” “Run”, type “regedit” HKEY_CLASSES_ROOT\exefile\shell\open\command HKEY_CLASSES_ROOT –> exefile –> shell –> open –> command Then check the “(Default)” value. If it is “%1” %* it is normal. If it isn’t, your computer has been infected. Double-click it and change it to “%1” %* Also, pay attention to other places!!

Security
#Windows
May 3, 2009 · 1 min

Fixing Hidden Files That Won't Open

If you’ve ever been infected by a USB virus, some of them make your hidden files stop showing up. This post shows you how to fix the problem of hidden files not appearing, which covers most cases. First: “Start” –> “Run” –> type “regedit” –> “HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\Hidden\SHOWALL” I’ll expand these one level at a time so beginners don’t get lost. HKEY_CURRENT_USER → SOFTWARE → Microsoft → Windows → CurrentVersion → Explorer → Advanced → Folder → Hidden → SHOWALL Once expanded, do you see “CheckedValue” on the right? Double-click it, choose hexadecimal, and enter 1 in the box. Next, either restart the computer, or open Task Manager –> Processes tab –> end “explorer.exe” –> at this point the desktop and taskbar will disappear. Then, on the Applications tab, right-click on a blank area –> “New Task (Run)” –> enter “explorer.exe” and you’re done.

Hardware
#Windows
May 3, 2009 · 1 min

Source Code Sharing - HOT SCRIPTS

 When you’re writing code, you often need to look for source code to use as a reference, right? Here’s a website that is said to be the largest source code sharing site in the world. I don’t think it’s really the largest, but it’s definitely among the top two :) URL: http://www.hotscripts.com/ When you enter this website, you’ll see the category page. The categories are organized by programming language. The main ones are PHP, CGI, ASP, Perl, Java Scripts .AJAX, C & C++, Ruby On Rails (RoR), Python, and so on, with source code for each. You can pick the language you want to use and then browse through it slowly. Or you can use the search function in the upper-right corner. But don’t type Chinese. Because this is a foreign website, there isn’t much Chinese code. You can also search within certain categories, or search everything (the one that says All………..). Just select it from the dropdown menu in the search box. Once you’ve found the program you want, you can take a quick look at its description. If you want to download it, just click the Download button in the window. One more thing to note: some programs are paid. Usually the ones marked with a (Sponsor) badge are paid. This website also offers account registration. In fact, I never needed to register an account when I used it. ...

Programming
#PHP #VB
May 2, 2009 · 2 min

[VB.NET] Renaming Files with rename

Today I’m going to show you how to rename a file using a method that VB itself provides. Its syntax is: Filesystem.rename(a,b) a is the input file, that is, the file to be renamed. b is the output file name. Please note that both parameters a and b must be given in full form. Suppose you want to rename the file c:123.txt to 456.txt. Then you enter: Filesystem.rename("c:123"."c:456.txt") Be careful! Both of my parameters include the file extension, and both include the drive letter and folder name. ...

Programming
#VB
April 23, 2009 · 1 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