Saturday, June 30, 2018

How I use my linkblog - finding a git tutorial I watched last year

Situation:

I need to commit some changes to my dotfiles, when I do a git diff I see that there are two distinct changes that have been made because I must have forgotten to check the previous change in, no doubt I was distracted by something much more impotant at the time. The world is like that sometimes. Other people are just so me me me sometimes. :)

I could check these commits in one commit, it's no big deal, they are my dotfiles in any case, it won't matter really. On the other hand I know there is a git command just for this called patch, but I don't use it very often and I don't remember the flow. However I do remember that I watched a tutorial on youtube but it was a long time ago, at least a year. I did post a link to it on my linkblog because it was quite a good video. Might as well learn it now, plus I can write a how to blog post.

Solution:

So I open up my linkblog on the search page. I search for: git patch "youtube.com"

Linkblog search

Adding the url in quotes returns exact matches for the url. I hit the search button and receive a load of results. I use the browser in page search by doing ctr-f and type 'patch' in the browser search box window that opens in the top right of the browser. I hit enter and all occurrances of patch are highlighted in yellow. Hitting enter a few more times and the focus jumps down the page and BAM there is the tutorial: "Intro to git patch mode tutorial". As an added bonus I notice that there is another video I posted about git patch right above it. Cool!

Linkblog search results

I click the cmd-click the domain at the end of the line and a new browser window tab opens up loading the youtube video. Oh so THAT's how to git patch!

Here is a link to that day in my linkblog timeline. The video was by a chap named John Karey. Thanks for the video John.

How I use my linkblog - posting a link to my latest blog post

Situation:

Earlier I wrote a how to blog post. It would be nice to add it to my linkblog timeline in case anyone stumbles across my linkblog. Then they might get a better idea of how a linkblog might be useful. It might also be interesting to others that are building software and writing documentation to see my flow.

Solution:

I open the post in my web browser, load the blog post I just wrote and click the bookmarklet in my browser bookmarks bar. I added the popup bookmarklet to my browser bookmarks bar when I setup my linkblog account.

Linkblog popup bookmarklet

The popup window appears and I add the text "New Post:" to the start of the message text. When I am linking to a blog post I wrote, I always add this prefix so that I can easily search for them later, and it also draws a bit of attention to the link for people that might read my linkblog.

Linkblog popup bookmarklet edit message text

I click on the 'Meta' tab and add some tags. While typing the tags, a drop down appears under the tag box to suggest tags that I have previously used in posts. I click the tag in the drop down and it autocompletes the tag in the tag boz or just continue typing and hit enter when I am done typing the tag. Tags can have spaces in them but no underscores.

I jump back to the main tab and click the "Post Message" button. The window disappears as if it was never there. I open my linkblog and find that a new item has been posted linking to the blog post.

Linkblog popup bookmarklet add tags

Open Current Folder in Finder from Terminal of Mac OS X osxdaily.com #

Google is retiring the AdWords & DoubleClick brands in a major rebranding aimed at simplification searchengineland.com #

Spent some time reading the Jekyll docs properly today jekyllrb.com #

I really like the look of the Liquid template language used in Jekyll - simple, elegant, probably versatile and powerful shopify.github.io #

Wish ruby & ruby gems weren't such a pain in the neck to install and maintain en.wikipedia.org #

Friday, June 29, 2018

Web Caching Explained by Buying Milk at the Supermarket dev.to #

Backspace Rethought - Backspace, often used rarely considered medium.com #

How trees secretly talk to each other bbc.com #

Software Engineering Blogs - A curated list of engineering blogs github.com #

Threads in Node 10.5.0 - a practical intro medium.com #

Thursday, June 28, 2018

Mark Smith - Founder, freelance web developer and solo developer & small team consultant linkedin.com #

Subscriptions are officially cool - Apple reportedly mulling single subscription offering, ala Amazon Prime cnet.com #

Soon you may pay Apple by the month for video, music, and news fastcompany.com #

Amazon starts program for entrepreneurs to setup their own company doing last mile delivery - creating an alternative to USPS, FedEx and the U.S. Postal Service geekwire.com #

20 Ways to Find Freelance Writing Jobs (As a Beginner) elnacain.com #

I've published a gig on Fiverr: Build and Deploy Consultancy for Cloud Applications fiverr.com #

Mastering modular javascript - Module thinking, principles, design patterns and best practices (Nicolás Bevacqua) github.com #

Wednesday, June 27, 2018

Some interesting new features in macOS Mojave 10 - Dark mode, stacks, screenshots tool 9to5mac.com #

Rsync Copy Hidden Dot Files and Directories Only (Why is this so awkward/complex in bash?) cyberciti.biz #

New AirPods, Apple noise-cancelling headphones pegged for 2019 arstechnica.com #

Interesting GDPR info: (1) applies to EU citizens at home and abroad, (2) 80 percent of people aren't opting back into email newsletters cnbc.com #

Network operator AT&T is acquiring digital advertising company AppNexus to help it compete with companies like Google, Facebook, and Verizon theverge.com #

Charter’s gigabit internet service now available in 27 million US homes along the US East Coast theverge.com #

Tuesday, June 26, 2018

Launch on Indie Hackers

I unnoficially launched Linkblog.io yesterday on Indie Hackers. It's been a long road with a seemingly endless onslaught of showstoppers, but the site is up and running and it's built with a strong architecture, and running on a stable infrastructure with the possibility to scale if necessary.

Linkblog on Indie Hackers

There was modest amount of hits from around the globe and I even got a comment, which was at least partially positive. After a few hours I realised that I had no way to differentiate between server-side side and client-side analytics. Oh noes!

Linkblog seen from around the world

So today I setup some new views and filters using custom dimensions to show each type of data. Things are looking much better now. :)

If you're intersted in signing up, there is a promo code on the indie hackers post, your entire first year for the price of a few cups of coffee.

Things I learnt as a solo developer building Linkblog.io

Building a web application as a solo developer ain't easy. There are an insane amount of things that need to be done and an almost unimaginable amount of decisions that need to be made...but it's possible.

I wanted to take a few minutes to reflect on some of the things that I've learnt along the way:

  • selecting the right technologies
  • setting up consistent development environment
  • using unix/linux tools effectively
  • building a deployment pipeline
  • architecting the app
  • building a scaleable infrastructure
  • testing, linting, logging, debugging
  • securing components
  • scripting and automation
  • setting up server side and client side analytics

If you are a solo developer / small team just starting out on your building journey, feel free to get in touch tell me a bit about yourself. All these things are very fresh in my mind right now, and I am available for consulting gigs! Investing a bit of time and money now might save you weeks if not months of headaches later down the line.

Trump Plans New Curbs on Chinese Investment, Tech Exports to China wsj.com #

A month after GDPR takes effect, programmatic ad spend has started to recover (consent forms now only block 25% of customers) digiday.com #

Identifying and Filtering Internal Traffic from Google Analytics lunametrics.com #

Monday, June 25, 2018

Thermostats, Locks and Lights - Digital Tools of Domestic Abuse nytimes.com #

Changes in WebAssembly Could Render Meltdown and Spectre Browser Patches Useless bleepingcomputer.com #

Homebiogas - easy, clean, climate-friendly way to heat and power your home with garbage boingboing.net #

In pictures - Summer and winter solstice celebrations bbc.com #

Watch this beautiful tour of Manhattan's Classic Car Club boingboing.net #

DevTube - Like YouTube but with developer videos (site made by Latvian software developers) dev.tube #

Friday, June 22, 2018

Supreme Court lets states force online retailers to collect sales tax reuters.com #

Using upstream module: nginx reload not working, restart creates orphan yet active worker github.com #

How to make a modification take affect without restarting nginx? serverfault.com #

I conclude following tests that Nginx doesn't do zero downtime config reloads (for load balancers) en.wikipedia.org #

Why Lyft is trying to become the next subscription business wired.com #

How YouTube creators are using the platform’s new Patreon-like subscriptions theverge.com #

Material Dashboard - free Material Bootstrap Admin with a fresh, new design inspired by Google's Material Design github.com #

This Wednesday, an EU committee voted to break the Internet: this Sunday, Berliners take to the streets to say NO! boingboing.net #

Formspark - A reliable backend for your HTML forms formspark.io #

Thursday, June 14, 2018

A Chip in the Windshield - China’s Surveillance State Will Soon Track Cars wsj.com #

Vint Cerf, Tim Berners-Lee, and Dozens of Other Computing Experts Oppose Article 13 eff.org #

Warning: Pm2 doesn't do log files properly - Log file name is change when reload my app github.com #

Pm2 - Is there a way to force the log_file to a consistent name? github.com #

Even the specialised logrotate module doesn't work - Pm2 logs with huge size using pm2-logrotate stackoverflow.com #

Tom Cruise’s healing touch, Nazi Roseanne, and Vanna White’s hooker scandal, in this week’s dubious tabloids boingboing.net #

The re-emergence of Bangkok Chinatown – get there before the metro does nomadicnotes.com #

Stan Lee - Marvel Comics magnate 'subject to elder abuse' bbc.com #

Tuesday, June 12, 2018

Instagram to create long form video feature, copying Snapchat’s discover feature dailycaller.com #

oclif is an open source framework for building a command line interface (CLI) in Node.js oclif.io #

Monday, June 11, 2018

Trump at G7 - Who's who in Merkel's photo? bbc.com #

Anders Hejlsberg on Modern Compiler Construction youtube.com #

ChromeREPL - A SublimeText 3 Plugin to use Chrome as your REPL github.com #

PlainLogo - free and open source logo maker - put texts, colors and fonts together to craft your appealing logo plainlogo.joytocode.com #

10words - Discover new apps and startups in 10 words or less 10words.io #

Sunday, June 10, 2018

How to get an old jekyll blog active again

It was actually pretty straight forward. Check that the git remote is still configured, install the jekyll software, follow the instructions in the error messages. I had the dev version of the site back up within a few minutes.

{% highlight bash %}
$ cd $WEBSITES_DIR/blog.markjgsmith.com
$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working tree clean
$ cat .git/config | grep -A 2 remote\ "origin"
[remote "origin"]
url = https://github.com/mjgs/mjgs.github.io.git
fetch = +refs/heads/:refs/remotes/origin/
$ which jekyl
$ gem install jekyll bundler
$ bundle exec jekyll serve
Could not find RedCloth-4.2.9 in any of the sources
Run bundle install to install missing gems.
$ bundle install
$ bundle exec jekyll serve
Configuration file: [WEBSITES_DIR]/blog.markjgsmith.com/_config.yml
No post given to analyze. Try with -h
Source: [WEBSITES_DIR]/blog.markjgsmith.com
Destination: [WEBSITES_DIR]/blog.markjgsmith.com/_site
Generating...
done.
Auto-regeneration: enabled for '[WEBSITES_DIR]/blog.markjgsmith.com'
Configuration file: [WEBSITES_DIR]/blog.markjgsmith.com/_config.yml
Server address: http://0.0.0.0:4000/
Server running... press ctrl-c to stop.
{% endhighlight %}

I'm still a little fuzy on how to add posts. I tried to login to prose.io but the site wanted full access to all my repos on Github...a little excessive. Oh well editing in vim is good enough.

Last but not least push the changes to github...

{% highlight bash %}
git add *
git commit -m "New post: How to get an old jekyll blog active again"
git push
{% endhighlight %}

Ghost(Pro) Pricing - Hosting from the creators of Ghost ghost.org #

Canada's Quebec halts crypto mining projects, may raise fees reuters.com #

Spotify Offers Managers, Artists Advances to License Music Directly to Its Streaming Service billboard.com #

How to Setup and Manage Log Rotation Using Logrotate in Linux tecmint.com #

"Escoffier on speed" - Kitchen Confidential Guardian Review (Aug 2000) theguardian.com #

Saturday, June 9, 2018

10 Things I Regret About Node.js - Ryan Dahl - JSConf EU 2018 youtube.com #

Anthony Bourdain - Celebrity chef found dead at 61 bbc.com #

Canadian brewery marks G7 with special brew bbc.com #

SVG.js - The lightweight library for manipulating and animating SVG svgjs.com #

Friday, June 8, 2018

European cinema embraces the vagina – what's taken Hollywood so long? theguardian.com #

Read a text file into an array in nodejs (Each line an item in the array) stackoverflow.com #

Google Renounces AI Weapons; Will Still Work With Military bloomberg.com #

Cambridge Analytica boss spars with MPs bbc.com #

Wednesday, June 6, 2018

The Cult of the Complex - Somehow, over the years “don’t use a div when you mean a p” got corrupted into “divs are bad.” alistapart.com #

What does the plus sign do in '+new Date' (javascript unary operator) stackoverflow.com #

The cursor property in CSS controls what the mouse cursor will look like css-tricks.com #

Microsoft sinks data centre off Orkney bbc.com #

Git with a cup of tea, painless self-hosted git service github.com #

Johnny Knoxville Takes A Walk Down Memory Lane, Recounting The Most Painful Injuries Of His Career digg.com #

Saturday, June 2, 2018

Apple to debut tools to let two iPhone users share augmented reality while limiting the personal data sent to its servers reuters.com #

Microsoft is reportedly talking about buying GitHub last valued at $2 billion cnbc.com #

Self-Driving Cars Can Now Pick Up Passengers in California - But Only for Free Rides gizmodo.com #

Instagram’s explains how it's feed algorithm works after user backlash techcrunch.com #

Google 'to end' Pentagon Artificial Intelligence project bbc.com #

Can tree planting stop Uzbekistan's toxic sands? bbc.com #

Are you scared yet? Meet Norman, the psychopathic AI bbc.com #

Piano lessons from Mikael Jorgensen of Wilco - The unstable A flat 7 #11 Chord youtube.com #

Tales from the far-flung Faroes - The people who live on remote rocks in the North Atlantic bbc.co.uk #

Friday, June 1, 2018

Google spinoff Waymo orders 62,000 Chrysler Pacifica minivans increasing it's fleet of self-driving minivans by 100 times theverge.com #

Telegram CEO says Apple is blocking Telegram updates worldwide 9to5mac.com #

Fake reviews now generally necessary to do business online boingboing.net #

ICANN's Pre-emptive Attack On The GDPR Thrown Out By Court In Germany techdirt.com #

California Senate votes to reinstate Net Neutrality, now it goes to the State Assembly boingboing.net #

President Xi on innovation independence - "Self-reliance basis for the struggle of Chinese nation to stand on its own footing in the world" theregister.co.uk #

Is the European Union a 'protectionist racket'? bbc.com #

Buddha Park - sculpture park southeast from Vientiane, Laos in a meadow by the Mekong River en.wikipedia.org #

Showing the last 29 active days.

For more content, use the navigation tree in the sidebar to explore the full archives.