Jeffrey Wu A Blog.

How to put up pictures on blog

Writing blog posts is fun, but pure text can be boring. Sometimes, a picture is worth a thousand words. Today, I’ll explain how to add images to my blog.

Update: I discovered a clever way to upload images. My initial method broke HTTPS encryption—a warning appeared saying the site is not secure, meaning attackers might see and modify the images.

To resolve this, I found another method: create an issue in any GitHub repository, drag and drop your image into the issue, and wait for it to upload. Once complete, GitHub provides you with a secure link to the image.

You can then embed the image in Markdown. For example, if you have an image named huis-ten-bosch.png in your /assets directory, use:

![Huis Ten Bosch](https://jeffreywu1996.github.io/assets/huis-ten-bosch.png)

Let’s try it with a picture from last summer at Huis Ten Bosch:

Huis Ten Bosch

Vola! Success.

I found a guide here which includes instructions on how to host pictures on the blog.

There is two steps to putting up images on the site.

  1. First, I need to know how to put up the image on the blog. This can be accomplished easily with using Markdown (which we use to write our blog).
  2. Second, I need a location to put the image at. In other words, I need to host the image somewhere on the internet.

Show images using Markdown

Here’s a cheatsheet I found online that tells you how to put images up with markdown.

Host images on github

There are many ways to upload images on the internet. A simple google search will show image hosting sites avaliable for free. But why rely on those when we can do it ourselves. I have a minimalist mindset. If I can find a way to do it myself, then that will be the priority.

Since this blog is hosted on github itself, I can create a folder within that repository hosted by github and thus have a directory on the internet where I can host things. First create a directory that will store the images that I will host. I will call this directory /assets Go to the directory of the blog, and type mkdir assets.

Now, stuff in the /assets can be accessed on the internet with the link. For example if I have an image called huis-ten-bosch.png, then I can access it with the link https://jeffreywu1996.github.io/assets/huis-ten-bosch.png

Now, using this link with markdown, we should be able to finally put the image on the internet.

Let’s try it. This is a picture of me last summer at Huis Ten Bosch. Let’s see if it shows up.

Huis Ten Bosch

Vola! Success.

Found a New Color Scheme

Today, I discovered a new color scheme while experimenting with settings in Sublime Text. The theme, called Ayu, looks sleek and soothing, and I wanted to share it.

Now I’m debating whether to switch my Vim color scheme from Tomorrow-Night to Ayu.

Wow it's been a while

Wow! It has been nearly two months since I last updated this blog.

It took me about three months to finally sit down and focus on updating the blog.

I encountered a bug with the theme where post URLs were broken and could not be referenced. Today (May 10, 2017), I discovered the solution—thanks to a tip on the theme’s GitHub issues page. For those interested, here’s the link to the discussion.

After fixing the bug, I feel more confident about continuing to maintain this site.

Thanks for reading!

How to use ssh keys

Hello! This is my first genuine technical post, and today I want to discuss SSH keys.

As a busy Computer Science student, I often find it impractical to visit the school computer labs for homework assignments. Instead, I use SSH to remotely connect to the lab computers and complete my programming assignments.

What is SSH?

SSH stands for Secure Shell. Essentially, it lets you connect to a remote server or computer through your terminal—provided that you know the server’s IP address and have a valid account.

For example, if you have a server with the IP address 192.168.0.1, and an account with the username jeff, you can run:

ssh jeff@192.168.0.1

If the connection is successful, a password prompt appears. When you enter your password, you are logged in to the remote server.

Over the past three years at UCSD, I have remotely connected many times. Repeatedly typing usernames and passwords can quickly become tedious. To solve this problem, I discovered SSH keys, which automate the login process.

SSH Keys: Your New Best Friend

SSH keys allow you to log in without manually entering your password every time. They work by using a pair of cryptographic keys to authenticate your connection.

For a detailed guide on setting up SSH keys, check out this tutorial:

How to create an SSH key

Thanks for reading, and I hope you find this guide helpful!

First post

Hi! This is the first post on my blog.

I’m excited to start this blog and share what I do. Although I’m not entirely sure what to write at the moment, I’ve dedicated a lot of time to setting up and learning Jekyll. I hope all the effort proves worthwhile.