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

Possible Causes and Fixes for the "HTTP Error" When Uploading Files in WordPress

If you use WordPress, you may occasionally run into the “HTTP error” problem when uploading images. Search online and you’ll find all sorts of explanations — some say it’s a file permission issue, others say you need to add a snippet of code to your theme. In fact, all of these are “possible” causes. The most correct approach is to check the server’s error log to determine what the actual cause is. I happened to run into this problem today, so let me put together my solution along with other possible causes! ...

Blog
#WordPress
January 30, 2017 · 4 min

Google Analytics Tips: Let Annotations Tell Your Future Self Why Traffic Goes Up and Down!

Every time you redesign your website or run an experiment, your Google Analytics data changes. For example, the bounce rate might go up. You may remember the reason for a big change in traffic or data for a short while. But if a year goes by, can you still remember why? Just as code needs comments, Google Analytics has a built-in annotation feature that lets you write notes on specific dates. That way, when you read your reports, you’ll understand what happened to cause the change in traffic! ...

Blog
#Google Analytics
January 29, 2017 · 2 min

Kenting Campsite Notes

A while ago, I went camping in Kenting with friends over New Year’s. While preparing for the trip, I looked through a lot of articles about campsites, so I’ve put together a summary here for everyone’s reference. Most of the information below was compiled from travel notes and Google Maps reviews found online, so it’s for reference only, and I recommend calling the campsite to confirm. If I get the chance to visit again, I’ll update the information. If you have any feedback, I’d welcome it and will revise the notes accordingly. ...

Travel
#Kenting #Camping
January 28, 2017 · 10 min

Generate Large File on Linux/macOS

Sometimes you need to generate a file of a specific size for testing network speed, disk read/write performance, or program performance. The first thing that comes to mind is probably dd, right? But when you generate files with dd, don’t you find it slow? Also, did you know that besides dd, you can also use truncate and fallocate? This post briefly explains the methods you can use to generate a large file, how to use them, and the differences between them. Note that the contents of the files generated here are meaningless. ...

SRE
#Linux
January 27, 2017 · 3 min

How to Measure a Command's Execution Time in Terminal?

Have you ever wanted to measure how long the commands you run in Terminal take? Recently, because of a work requirement, I put together a file-sorting tool out of various commands. Performance requirements were strict and it had to finish within a specified time, so I looked into the handy time command, which can measure how long a command takes to run. ...

SRE
#Linux
January 27, 2017 · 1 min

Measuring Function Execution Time in JavaScript

To measure a function’s execution time in JavaScript, you can subtract the timestamp taken before the function runs from the timestamp taken after it finishes. Most people use new Date().getTime() to get a timestamp, but if your function runs in less than 1 millisecond, this won’t work, because the smallest unit of a timestamp is the millisecond. So I recommend the Window.Performance API. It gives you the number of milliseconds since the page started loading, with precision down to a thousandth of a millisecond. ...

Programming
#JavaScript
January 24, 2017 · 1 min

Struggling to Record GIFs? Let LICEcap Help You!

The GIF format nearly disappeared for a while, but recently, with the rise of Facebook and Twitter, more and more people use GIFs to make animations or as stickers in Messenger. I use them for the tutorial videos in my blog posts. GIFs have the advantages of small files and quick loading on web pages. For certain rough motions, GIFs work very well for tutorials. Today I want to share LICEcap, which can record your screen to make GIF files. It supports Mac and Windows and has a simple interface. All the recent GIFs on my blog were recorded with LICEcap. ...

Software
#GIF
January 21, 2017 · 2 min

Linux Grep Tips - Finding Lines That Contain a String

On Linux, we sometimes need to quickly search a file for the “lines” that contain a keyword. For example, while reading a log, you might want to find the errors that happened at a certain time. Opening the file and scanning it line by line is not very efficient. That’s when you need grep! ...

SRE
#Linux
January 20, 2017 · 2 min

How Can I Check That My Crontab Is Working Correctly?

Have you ever had this problem? When you first learn crontab, you are never quite sure whether your settings are correct. After each change, you wonder whether the job will actually run the way you expect. Here I share two ways to confirm that your crontab is set up correctly! ...

SRE
#Linux #Crontab
January 20, 2017 · 2 min

Querying a Date Field in Kibana

When you want to search for data within a certain period in Kibana, the first thing that comes to mind is the built-in Time Picker. It is really handy. But in some cases your data may have more than one date field, and you have to filter with a query instead of the Time Picker. For example, with email data: sending, opening, and clicking each send a log to my server. That gives you two times, one for when the email was sent and one for when the event happened (such as opening or clicking). In a case like this, you may need to search on a date field in the search box. ...

SRE
#Kibana #Elasticsearch
January 19, 2017 · 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