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

[CMS] Why Do Plugins Slow Down Page Loads and Hurt Server Performance?

Anyone who builds a site with a CMS (such as WordPress, Drupal, or Joomla) has probably heard the saying: use fewer plugins and your site will load much faster. For example, if I want a Lightbox effect on my site, I can manually add the jQuery code, or I can just install a plugin. Both methods achieve the same result, but they can make a noticeable difference in how fast the site loads. ...

Blog
#WordPress #WordPress Plugins
April 17, 2011 · 3 min

How to Convert a Decimal Number to Binary?

I expect someone will say this article is too simple again once I finish writing it... Without further ado: this week, our teacher gave our class a problem, which is how to convert a decimal number to binary. If you do it with math, it isn't hard. Just use short division and take the remainders. ...

Programming
#C++ #Math
April 16, 2011 · 2 min

[CSS 3] Give Your Website Rounded Corners with Pure CSS!

Back in the CSS 2 days, giving images or div elements rounded corners was quite a hassle. The simple option was to use a function that someone had already written in jQuery. If you preferred to do it yourself, you had to design rounded-corner images and overlay them on each other. In short, it was very complicated. But in CSS 3 you no longer need such cumbersome tricks. You can just set it directly in your CSS! ...

Programming
#CSS
April 16, 2011 · 2 min

How to Change the Default SSH Port 22 to Another Port?

▲▲With SSH, you can do a lot of work on a remote host SSH comes built into almost every Linux system. It makes it easy to connect to and manage your host. Once you are connected over SSH, you can do a lot of work on your server. But that also makes SSH a likely target for attacks. The default SSH port is 22, so if someone guesses your password, your server is in serious danger. That is why this post covers a second layer of protection: changing the default port. With that in place, an attacker needs to know not only your password, but also which port you are using....

SRE
#SSH #VPS
April 16, 2011 · 2 min

Generating QR Codes Directly in the Browser With jQuery.qrcode

There are many ways to draw a QR Code. You can write your own function to draw it, or you can use an API someone else provides. For example, using the Google Chat API to generate a QR Code is the API approach. The jquery.qrcode covered in this post uses a function someone else wrote to generate the code. At first I couldn’t tell the difference between jquery.qrcode and the Google Chat API. Later I learned that the Google Chat API sends the data to Google’s servers to generate the code, while jquery.qrcode draws it directly in the browser. ...

Programming
#JQuery #QR Code
April 8, 2011 · 1 min

[Firefox 4] FireSSH: An Add-on for Making SSH Connections Directly from Firefox

If you use a VPS or play with Linux, you're probably no stranger to SSH. It's something every Linux user has to learn. SSH is like remote control, except it's text-based instead of graphical. Normally I use PuTTY for SSH connections. On iOS devices (iPhone, iPad, and so on), I use iSSH. But what about in a browser? With the FireSSH add-on, you can make SSH connections right while you browse, without opening another program~ ...

Software
#Firefox #SSH
April 8, 2011 · 1 min

Firefox 4: Six Times Faster Than Firefox 3.6, with a Cleaner Interface!

Firefox 4 has finally joined the ranks of browsers with streamlined interfaces~ Now the three major browsers on the market, Chrome, IE, and Firefox, have all made their interfaces quite minimal. But Firefox was a bit late. A big reason I switched from Firefox to Chrome back then was that Google Chrome’s interface was fresh, stylish, and clean, which made it feel fast (a psychological bonus…). Still, Firefox has many advantages. For example, customizability! Although Chrome can install extensions, Chrome’s extension library is nowhere near the size of Firefox’s, so with Firefox you can do so much more XD ...

Software
#Firefox
April 5, 2011 · 2 min

Google Cloud Connect: Bringing Microsoft Office Into the Cloud~

Google Cloud Connect is a small add-on for Microsoft Office designed by Google. It connects Microsoft Office to Google Docs, so you can save your documents to Google Docs in the cloud and collaborate online directly from Microsoft Office. The unfortunate part is that it doesn’t let you edit Google Docs documents directly inside Microsoft Office. It would be great if you could. To be honest, Google Docs is very handy, but it crashes quite often, and it has far too few features… ...

Web Apps
#Google #Office
March 22, 2011 · 2 min

Printing Triangles: Top-Left, Bottom-Left, Top-Right, Bottom-Right

These were some examples my programming teacher used when teaching loops in class. I think the problems themselves aren't hard, but they're great for practicing loops and training your reaction speed. Also, my VB skills have gotten a lot rusty... So I'm attaching the C++ code for everyone to look at. Go study it yourselves~ ...

Programming
#C++
March 21, 2011 · 1 min

Think Your Privacy Settings Keep You Safe? The Hidden Risks of Facebook Games and Personality Quizzes

Does setting up your privacy settings really keep your personal data from leaking? ↑↑ Not long ago, many bloggers and news outlets wrote at length about the privacy risks of Facebook itself. So many users went and set up their "privacy settings," thinking that as long as they did, nothing would go wrong. In reality, though, the huge number of games and personality quizzes on Facebook can also cause your personal data to leak. Many users don't know this, so let's analyze it below. ...

Security
#Privacy #Facebook
March 21, 2011 · 3 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