Just ran across this very enjoyable article about how GitHub sped up cloning by several orders of magnitude – https://github.blog/2015-09-22-counting-objects/.
If you haven’t seen it, check out the git commit graph. In the Linux kernel tree, the time for me to show the commit graph of the five most recent commits went from five seconds to 20ms! https://devblogs.microsoft.com/devops/supercharging-the-git-commit-graph/. Requires Git 2.18+, which you can install on Ubuntu LTS from a PPA per this. Short version:
git config --global core.commitGraph true
and then, in each repo:
git show-ref -s | git commit-graph write --stdin-commits
Curly quotes: because reasons. 😉 In Insert mode:
Ctl+K '6 will give you an open curly single quote, and
Ctl+K '9 will give you the closing curly single quote.
Ctl+K "6 will give you an open curly single quote, and
Ctl+K "9 will give you the closing curly single quote.
Visual mode: turns out you can just hit
o when in Visual mode to move the cursor to the other end of the selection. Handy!
I learned about elementary OS from Slashdot. I currently use Nautilus and xfe, but am not 100% happy with either. I thought I would give Elementary Files (the elementary OS file manager) a try.
sudo apt-get install -y ninja-build gobject-introspection libgirepository1.0-dev
meson if you have it installed (e.g.,
sudo apt remove meson)
pip3 install meson – you need at least v0.50 (I think).
~/.local/bin to your
PATH if you haven’t yet.
sudo apt-get install -y valac libcanberra-dev libdbus-glib-1-dev libgail-3-dev libgee-0.8-dev libglib2.0-dev libgtk-3-dev libnotify-dev libpango1.0-dev libplank-dev libsqlite3-dev libunity-dev libzeitgeist-2.0-dev
- libcloudproviders-dev (bionic’s package isn’t new enough):
git clone https://gitlab.gnome.org/World/libcloudproviders.git ; cd libcloudproviders ; git checkout 0.3.0 ; meson build ; cd build ; ninja && sudo ninja install
- libgranite-dev (bionic’s package isn’t new enough):
git clone https://github.com/elementary/granite.git elementary-granite ; cd elementary-granite/ ; git checkout 5.2.5 ; meson build ; cd build ; ninja && sudo ninja install
- Files (at last!):
git clone https://github.com/elementary/files.git elementary-files ; cd elementary-files ; git checkout 4.2.0 ; meson build ; cd build ; ninja && sudo ninja install
Whew! This is reminding me why we have package managers 🙂 .
Let me know if this doesn’t work for you — I may have missed something by accident.
In Word VBA, calling
doc.Paragraphs(idx) to get a paragraph by its index is very slow. Instead, once you have a
Paragraph object, use
para.Previous to navigate, and your code will be much faster! I just refactored an old routine this way and received a dramatic speedup.
doc.Paragraphs() must be iterating through the document starting from the beginning, but I don’t know that for sure. I do know that adding paragraphs before the region my code was working with made the code run perceptibly slower, even though the code was never touching the added paragraphs.
Here are some simple helpers, in case you want to manually check for errors rather than throwing when you run off the end of the document:
Private Function NextParaOrNothing_(p As Paragraph) As Paragraph
Set NextParaOrNothing_ = Nothing
On Error Resume Next
Set NextParaOrNothing_ = p.Next
End Function 'NextParaOrNothing_
Private Function PrevParaOrNothing_(p As Paragraph) As Paragraph
Set PrevParaOrNothing_ = Nothing
On Error Resume Next
Set PrevParaOrNothing_ = p.Previous
End Function 'PrevParaOrNothing_
My new Samsung SSD was causing strange lockups. Everything worked fine during the lockups except for disk activity. I found https://odd.blog/2013/11/26/yes-finally-fixed-ssd-freezing-computer/, which gave me a fix: make sure the IDE drivers are enabled, then change the drive mode from AHCI to IDE. It’s been a week or two problem-free!
Samsung 860 EVO
Biostar A960D+ mobo (AMD chipset, which is apparently the issue.)
I just tested it, because I wasn’t sure. As of 2018-12-09:
- If you use
git merge to merge a pull request (PR) from the command line, GitHub will detect that the PR’s commit(s) have been added to
master, and will automatically mark the PR as “merged”.
- If you instead use
git rebase to move the PR branch onto master, GitHub will not automatically mark the PR as merged.
This makes sense, because
rebase doesn’t actually modify the existing commit(s) in the PR. Instead, it creates new commit(s) that make the same changes the PR’s commits would have made if merged. So if you want to rebase or squash, do so from the Web interface. (Or, alternatively, this tool and its corresponding blog post — although please note that I haven’t tried it myself. Let me know if you do!)
I tried these with PRs in a single repo. Please chime in if you have any experience with merging PRs from a fork into a parent.
(And one final note: I discovered the hard way that
git rebase won’t preserve empty commits. That is because it cares about the changes, so a commit that makes no changes isn’t of interest to
Very useful! This answer is copied from here. I tried to archive it, but archive.org wasn’t able to save it for some reason. I am posting it here so it can be archived for posterity.
answerspleasee asked on October 19, 2010
How to delete all the animations in a presentation
how do I delete all animations i have put on for the past 200 slides.
Shyam Pillai replied on October 19, 2010
You can turn off the animations by going to Setup Slide Show and under Show Options tick the Show without animation option and click OK. Now run the show and it will display without the animations.
If you really want to delete all the animations in a single sweep then you will need to run this macro.
Dim I As Integer: Dim J As Integer
Dim oActivePres As Object
Set oActivePres = ActivePresentation
For I = 1 To .Slides.Count
If val(Application.Version) < 10 Then
' Older versions of PowerPoint 97/2000
' In each slide set the animation property
' of the Shape object to FALSE
For J = 1 To .Slides(I).Shapes.Count
.Slides(I).Shapes(J).AnimationSettings.Animate = msoFalse
' New versions support the Timeline object
For J = .Slides(I).TimeLine.MainSequence.Count To 1 Step -1
Set oActivePres = Nothing
Regards, Shyam Pillai. http://skp.mvps.org