Posts by topic

# Hello World! (and info about Chalk, this blog template)

Every new skill we learn is a journey into a brave new world, so we must say hello (and give credit where credit is due).

February 1, 2017 - 9 minute read -

In the throws of a stressful PhD, I’ve decided to start a blog. And so I say “Hello World!” as is customarily expected by any programmer. I plan to discuss random ideations when I feel like journaling while also creating a research journal of what I study each day to not only help me process what I read/work on but also practice my writing and communication skills. I’ll probably alternate every other day or so on these two areas.

I tend to be open with my thoughts, which will often be a little blunt or risque sometimes. But I believe being my authentic self, especially in public, will not only help me in grappling with my own struggles and learning to overcome them, but will also help others in realizing that for at least one other person, they could be dealing with similar issues as them. Thus, I hope my experiences could impart some useful information to whomever takes the time to read this.

For instance I find myself to be depressed as of late for various reasons including not being as productive as I’d like to be and missing out on visiting friends because these additional years of graduate school takes over all my time and obligations, thus disallowing myself from being able to leave the campus at most times. It’s the sacrifice I, and I believe most researchers, make as we pursue this path of enlightenment to understand the problems we are most passionate about. I incredibly appreciate the opportunity to be able to continue spending my time improving myself through education, but I’m getting more and more anxious to find ways out of this ivory tower and try my hands on making an impact on the ground and not in academic articles.

That’s probably why I’ve sought out travel opportunities like to India, Indonesia, Barcelona, and my next trip Haiti. I still regret that I was so engrossed in my work last year that I skipped out going to Japan with some amazing friends, but I shouldn’t dwell on the past. I can assure myself knowing I’ll get there eventually.

In order to help myself better enjoy graduate school (or at least get over this current hump I’ve made for myself), I plan to not guilt myself about my choices and allow myself to take time off and escape from the walls of our offices/labs/minds. I hope academic institutions will eventually support and encourage this more often, but as was shown in our RCR training videos, a postdoc coerced the audience that staying late in the lab, like all academics should, was necesary, thus missing spending time with his wife for an upcomoing ultrasound was in fact justified. Science over marriage. Back to reality, scheduling in time to decompress, like all jobs, with something completely different would be good. Rock climbing and going to the gym regularly again would be great! Too often, especially in American culture, people like me guilt ourselves into working tirelessly while forgetting the simpler things in life like friends, staring at the sky, or a pickup soccer game. I don’t want to be stuck in a constant loop of consumerist pursuit because in truth that is not what I want.

What I want from my work is an opportunity to understand how the universe and the environment around me works. But what I want for myself is simply to live contented, where I can be one with the people I share my life with while also being able to live in awe of the Earth we come from. Beauty can be found in the most simplest of things, but if I let the pursuit of work be corrupted by capitalist ideals, then I will miss out on just appreciating the moment. We don’t always need to be looking forward to that next rung of the career ladder. Too much time spent planning on what we could be takes away from who we are in the now.

Installing it was a little hard due to Windows and Cygwin never getting along and my noob experience with ruby in Linux, but I came through. It’s only unfortunate that due to Github’s limited compatibility with some plugins I’m using, I must manually build sites and upload to Github instead of just editting my markdown and pushing that (Github pages can build simple Jekyll sites automatically). Learn about Jekyll here.

Lastly, I’m including all the original content of this Chalk template introduction content below to maintain a record (and serve as manual to you) if you wish to recreate smething like this site for yourself.

## Introducing Chalk

#### Features:

• Dark and Light theme.
• Filter on tags.
• Customizable pagination.
• Automatic time to read post indicator.
• 404 page.
• SEO optimized.
• PageSpeed optimized.
• Cross browser support (supports all modern browsers).
• Media embed for videos.
• Enlarge images on click (like Medium).

## Installation

If you haven’t installed the following tools then go ahead and do so (make sure you have Homebrew installed):

Run Jekyll:

## Deploy to GitHub Pages

Run this in the root project folder in your console:

You can find more info on how to use the gh-pages branch and a custom domain here.

If you have any questions about using or configuring Chalk please create an issue here!

## How to Configure Chalk

The _config.yml file is the most important one. It contains the basic setup of your project. Some parts are preconfigured and shouldn’t be touched as the comments state. Of course if you are familiar with Jekyll you can change whatever you want.

Note: You do not have to change anything. Chalk works out of the box. I do recommend changing the _config.yml to suit your needs.

### Mandatory settings

• baseurl: Set baseurl to match the production URL without the host.
• name: Used as the page title and throughout your project as the default name.
• paginate: Define how much posts should be shown on the homepage for each page.
• paginate_path: Change the path name to something else for paginated pages.
• url: Your production url (http://example.com).
• blog_theme: 2 options here, light or dark. Choose which design you prefer.

### Optional settings

• discus_identifier: If you like to use Disqus for comments on each blog post, you can add the Disqus identifier here and it will popup automatically.
• ga_analytics: Add Google Analytics Tracking ID here.
• rss_enabled: When set to true, the rss icon in the top navigation will show up and people will be able to subscribe to your rss feed.
• social: Add you social links in here. When filled in they will show up in the navigation.

### Other settings

Other than the _config.yml you can change a lot more in the project.

#### Tags

To add tags you must add a file with the tag name in _my_tags. In the file you add 2 variables: slug used to reference the tag and name which is displayed in the article header.

#### SCSS

You can change colors, fonts, sizes in the _assets/stylesheets/_variables.scss file. For each specific theme (light or dark) you can change the variables in _assets/stylesheets/dark.scss and _assets/stylesheets/light.scss.

#### Fonts

Chalk uses Google Fonts by default. You can change the font in _includes/javascripts.html.

Changing the text in the footer is easy. It can be found in _includes/footer.html.

If you have any questions about using or configuring Chalk please create an issue here!

## Chalk Sample Post with All the Elements

Chalk uses the default Jekyll syntax highlighting gem Rouge. It has a customized style for both light and dark theme. Use the highlight tag to use the following code highlighting your preferred language:

Chalk includes 3 headings by default:

## Lists

Unordered list example:

• Unordered list item 1
• Unordered list item 2
• Unordered list item 3
• Unordered list item 4

Ordered list example:

1. Ordered list item 1
2. Ordered list item 1
3. Ordered list item 1
4. Ordered list item 1

## Emoji support

Emoji’s can be used everywhere in your markdown!

## Quotes

A quote looks like this:

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna.

## Media

Images can be added with a default <img> tag. If you wish that an image can be enlarged on click use the image include tag. You can pass 3 variables:

• path: Image to show in the blog post.
• path-detail: Image to show when enlarging.
• alt: Alt text for image in blog post.

Videos can be added and are responsive by default (4x3 by default, 16x9 with extra class).