My New Poster at Work
Small posts, observations, and updates.
I was thinking about the episode of The Broken, with Kevin Rose and Dan Huard, where they melted a computer with thermite.
My 6.75 year old son has decided that I can now join his company!
Even the best of us have these days.
https://www.hanselman.com/blog/13HoursDebuggingASegmentationFaultInNETCoreOnRaspberryPiAndTheSolutionWas.aspx
Justin Jackson walks you through his process of picking software to solve a problem and why you should think about this. What is funny is I was doing research on WordPress deployment recently and came across this plugin and a blog post by the author that was very helpful.
[youtube www.youtube.com/watch
Purchase a blue HEXBUG AQUABOT™ WAHOO and throw it in the deep end. It makes the perfect “Golden” Snitch.
After weeks of getting the error message Unable to lock the administration directory (/var/lib/dpkg/), is another process using it? and Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable), I have a solution that actually works.
systemctl stop apt-daily.service
systemctl kill --kill-who=all apt-daily.service
# wait until `apt-get updated` has been killed
while ! (systemctl list-units --all apt-daily.service | fgrep -q dead)
do
sleep 1;
done
I added this script to run early in the Vagrantfile and it finally allowed the process to get killed before moving on through the rest of the script. I’m surprised at how long it actually takes to actually die and now I understand why I ran into this error often.
[1] Source
[2] A different solution that did not work for me but gives more info on the problem
Listening to a podcast recommended by a friend I made on LiveJournal that I finally met this month. The episode is about LiveJournal. #serendipity #thanksmarcd
[soundcloud url="api.soundcloud.com/tracks/32…" params=“auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&visual=true” width=“100%” height=“450” iframe=“true” /]
[bandcamp width=700 height=786 album=4217885095 size=large bgcol=333333 linkcol=e32c14]
If you have multiple identities you use with Git you are bound to make a commit using the wrong one. The first step in fixing this is to find the commit hash for the commit just before the one (or more) commit you want to fix. Using the git log command in your repo will get you the hash you need.
commit edbd993570b8b7c9d4d2c073d254a4c139eb0d1f Author: Gilberto Creque <gil@wrongdomain.dev> Date: Wed Jun 21 10:43:45 2017 -0400 Third Commit commit 33304c12b672d3c537ca25db93eb100a5f96ca11 Author: Gilberto Creque <gil@wrongdomain.dev> Date: Wed Jun 21 10:43:28 2017 -0400 Second Commit commit 73c4a2dac717bb7059f5d03ae586c344857d011a Author: Gil Creque <me@gilcreque.dev> Date: Wed Jun 21 10:43:11 2017 -0400 First Commit
I’m going to change the second and third commit so I will use the hash for the first commit (73c4a2dac717bb7059f5d03ae586c344857d011a). Once you have the hash these are the steps you need to run through:
git rebase -i
i.e. git rebase -i 73c4a2dac717bb7059f5d03ae586c344857d011apick with edit for the commit(s) you want to fix the author on (use the hashes to figure out which ones)
edit 33304c1 Second Commit edit edbd993 Third CommitRebase 73c4a2d..edbd993 onto 73c4a2d (2 commands)
Commands:
p, pick = use commit
r, reword = use commit, but edit the commit message
e, edit = use commit, but stop for amending
s, squash = use commit, but meld into previous commit
f, fixup = like “squash”, but discard this commit’s log message
x, exec = run command (the rest of the line) using shell
d, drop = remove commit
These lines can be re-ordered; they are executed from top to bottom.
If you remove a line here THAT COMMIT WILL BE LOST.
However, if you remove everything, the rebase will be aborted.
Note that empty commits are commented out
Esacpe key and then type in :wq and then hit the Enter key)git commit --amend --author="Author Name <email@address.com>"
i.e. git commit --amend --author="Gil Creque <me@gilcreque.dev>"git rebase --continuegit push -f