I want to extract a lot of useful imaging photos from a Powerpoint slide deck, and the usual way to select each photo and save them has two distinct disadvantages:

time consuming and repetitivephotos are not saved as the original qualityModern Powerpoint files with the .pptx extension are actually zip archives. Rename the .pptx file into .zip file, and look into the media folder.

Dear Manager,

I hereby tender my resignation for OrgX effective on 17th May 2020.

It has been my great pleasure to serve in OrgX for a year. Since day 1, I realized that OrgX is different from other companies. This is a product-focused organization that values engineering, rather than trying to please Wall Street at all cost every quarter. There is great camaraderie and belief that we will continue to lead the industry.
13

If you work in a large enterprise or use chrome in a school, chances are Google Chrome access the Internet through a proxy server.

What is a proxy server? It is simply an intermediary between two machines that want to communicate with each other: Google Chrome on your laptop and the web server hosting websites on the Internet.
1

We want to convert PDF to Powerpoint slides

But there is no direct way to convert between the two formats. So let's break it down into an intermediary step: convert each page in the PDF document into JPG, then import the JPGs into Powerpoint.

Convert PDF to JPG using Ghostscript

Ghostscript is the bet tool for converting from PDF or PS into other formats. ImageMagick is the more popular tool, but for PDF conversion it uses Ghostscript in the background.
1

With Vuepress is you can start creating content in Markdown out of the box. And Markdown has tons of useful plugin. When I was updating the Wujiquan website, I wanted to embed videos into the content. While it is possible to add html tags directly within markdown, I want to keep the content clean and simple.
2

Visual Studio Code's default Shell in Windows is PowerShell

There are better alternatives to PowerShell or cmd.exe in Windows. My favourite is Cmder.

Presumably you already have Cmder installed in your system, in a path without space, for example C:\Tools\Cmder. Chocolatey's Cmder installation works perfectly fine. 

Change Default Shell

To change Visual Studio Code's default shell, go to Preferences and edit settings.json.

It's been a while since I have worked on open source projects. When I logged on to my project's Github page, I was pleasantly surprised to see this warning:

A bit of Googling showed that Github has started to automatically scan for outdated dependencies with security vulnerabilities.Clicking on the alert will show which packages that are impacted.

Github also helpfully show exactly what are the vulnerabilities

Automated Security Fix

What's even better is the automated security fix feature.

How do you check for the number of CPUs and cores? From /proc/cpuinfo?

$ grep -c ^processor /proc/cpuinfo 56 $ cat /proc/cpuinfo | awk '/^processor/{print $3}' | wc -l 56

They will return twice the number if hyperthreading is enabled. How about using nproc?

$ nproc --all 56

Still the same. Not accurate if hyperthreading is enabled.

getconf

The getconf command works great because it is available on both Linux and MacOS.

Linux does not allow for user processes to listen to a port below 1024. This is by design. Specifically in the file net/ipv4/af_inet.c , these lines perform the check

if (snum && snum < PROT_SOCK && !capable(CAP_NET_BIND_SERVICE))               goto out;

The security reasoning is misguided in 2019.

Google used to show the days and times when I most frequently use Search. I like to be able to see when I am most active and what are my usage trends over time. Unfortunately the feature has been taken away.

History Trends Unlimited

Thankfully there is History Trends Unlimited Chrome extension. It will automatically pull your full Chrome history and present them in an informative manner.

I can see roughly when are the times when I am at work, and what are the top sites that I visit.
Subscribe
Subscribe
Loading