recentpopularlog in

kme : annoyances   21

MartinHarding/macOSuckless: Scripts, commands, hacks, and tweaks to make macOS suck less.
<code class="language-bash">
# always show the detailed Print dialog
# source: http://osxdaily.com/2018/03/19/show-expanded-print-details-dialog-mac-default/
defaults write -g PMPrintingExpandedStateForPrint -bool TRUE

# Unhide Library folder
# (might require a restart)
chflags nohidden ~/Library

# Expand Save Panel by default
defaults write -g NSNavPanelExpandedStateForSaveMode -bool true
defaults write -g NSNavPanelExpandedStateForSaveMode2 -bool true

# Set Dock size and make it unchangeable
defaults write com.apple.dock tilesize -int 48
defaults write com.apple.dock size-immutable -bool true
killall Dock

# Dim Dock icon when application is hidden
defaults write com.apple.dock showhidden -boolean true
killall Dock

# Add a blank space to the end of Dock
defaults write com.apple.dock persistent-apps -array-add '{tile-data={}; tile-type="spacer-tile";}'
killall Dock

# Disable shadows on window screenshots
defaults write com.apple.screencapture disable-shadow -bool true
killall SystemUIServer

# Disable animations when you open an application from the Dock.
defaults write com.apple.dock launchanim -bool false

# disable bounce animation when application wants attention
# source: http://osxdaily.com/2010/02/19/disable-dock-bouncing/
defaults write com.apple.dock no-bouncing -bool TRUE

# Make all animations faster that are used by Mission Control.
# (not sure if this does anything, actually)
defaults write com.apple.dock expose-animation-duration -float 0.1

# Fixes an issue with some applications that have poor smoothing in Mojave when not running on Retina monitors.
# (not sure how much good this actually does)
defaults write -g CGFontRenderingFontSmoothingDisabled -bool NO
</code>
macos  osx  dotfiles  defaults  annoyances  movein  essential 
september 2019 by kme
iOS 11 Smart Punctuation
This is „Intellegente Interpunktion“ in German, which seems like a misnomer, but sure enough, quotation marks are considered "punctuation."
ios  ios11  smartquotes  annoyances  solution 
january 2018 by kme
10 things I hate about Git | Steve Bennett blogs | https://stevebennett.me/
7. Unsafe version control

The fundamental promise of any version control system is this: “Once you put your precious source code in here, it’s safe. You can make any changes you like, and you can always get it back”. Git breaks this promise. Several ways a committer can irrevocably destroy the contents of a repository:

git add . / … / git push -f origin master
git push origin +master
git rebase -i <some commit that has already been pushed and worked from> / git push

A few bonus command inconsistencies:

Reset/checkout

To reset one file in your working directory to its committed state:

git checkout file.txt

To reset every file in your working directory to its committed state:

git reset --hard

Remotes and branches

git checkout remotename/branchname
git pull remotename branchname

There’s another command where the separator is remotename:branchname, but I don’t recall right now.
git  versioncontrol  scm  critque  annoyances 
november 2017 by kme
multi touch - How do I disable Chrome's two-finger back/forward navigation? - Ask Different
I went into the System Prefs and changed the Page change gesture from two fingers to three (OSX Lion). The three finger swipe seems to be more responsive at any rate and I'm usually only using two fingers for everything else.


Alternatively:
I know its over a year later, but I had the same question, and then figured out the answer myself.

Open terminal and type

defaults write com.google.Chrome AppleEnableSwipeNavigateWithScrolls -bool FALSE

Then you can have it enabled system wide, and just disabled for chrome. By the way, this works for any app, just replace com.google.Chrome with the bundle identifier of the target app.

If your interested in how it works, the AppleEnableSwipeNavigateWithScrolls is the global setting, that can be overwritten for any specified app.
mac  osx  mavericks  trackpad  multitouch  gestures  omfg  annoyances  solution 
july 2015 by kme
c - Warning: comparison with string literals results in unspecified behaviour - Stack Overflow
You want to use strcmp() == 0 to compare strings instead of a simple ==, which will just compare if the pointers are the same (which they won't be in this case).
stringformatting  cplusplus  strings  annoyances  solution  programming  dammitbrain 
april 2013 by kme
How can I access the SelectionChangeFcn callback from the Property Inspector in MATLAB 7.4 (R2007a)? - MATLAB & Simulink
If you would like to modify the SelectionChangeFcn, you will need to GET the property of the Button Group graphics object as follows:

get(H,'SelectionChangeFcn')

and similarly you can SET it by :

set(H, 'SelectionChangeFcn',<VALUE>);
matlab  programming  annoyances  bug 
april 2013 by kme

Copy this bookmark:





to read