recentpopularlog in

kme : maybesolution   940

« earlier  
arch linux - Setting console font in vconsole.conf does not work (systemd) - Unix & Linux Stack Exchange
Also mentioned in that email thread: try the (boring) lat0-{08,10,12,14,16} fonts before giving up entirely. At least on CentOS (7), the Terminus console fonts don't seem to work at all.
centos7  consolefont  hiresconsole  annoyance  maybesolution 
21 days ago by kme
Regarding shell scripts that are only meant to be source (SC2148) · Issue #581 · koalaman/shellcheck
Now (in 0.7.0 from MacPorts) I get POSIX 'sh' warnings, even though I've specified
<code class="language-bash"># shellcheck shell=bash</code>
shellcheck  bug  maybesolution 
29 days ago by kme
Fixing SSL CA certificates with OpenSSL from MacPorts - andatche.com
MacPorts now offers a Methode that syncs certificates from the system keychain:
<code class="language-bash">sudo port install certsync
sudo port load certsync</code>
As for the missing dependency, consider filing a bug.
openssl  macports  macos  ca  cacert  certificate  curl  maybesolution 
29 days ago by kme
windows - Getting WGET to display a less verbose output - Super User
You can use -nv to make wget less verbose, but it won't show download progress in that case.


Or:
<code class="language-bash">wget -q --show-progress http://example.com</code>

--show-progress will override the "quiet" flag.


Also interesting:
<code class="language-bash">curl -#:</code>
wget  curl  progressbar  annoyance  downloading  spidering  webcrawling  maybesolution 
4 weeks ago by kme
macOS build fails by linker · Issue #82 · shundhammer/qdirstat
<code>/Applications/Developer/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -stdlib=libc++ -headerpad_max_install_names -arch x86_64 -Wl,-syslibroot,/Applications/Developer/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -mmacosx-version-min=10.12 -Wl,-rpath,@executable_path/../Frameworks -o .app/Contents/MacOS/ -F/opt/local/libexec/qt5/lib -framework QtGui -framework QtCore -framework DiskArbitration -framework IOKit -framework OpenGL -framework AGL
Undefined symbols for architecture x86_64:
"_main", referenced from:
implicit entry/start for main executable
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [.app/Contents/MacOS] Error 1
make: *** [sub-doc-make_first-ordered] Error 2</code>
build  compiler  errormessage  maybesolution  macos 
5 weeks ago by kme
Switch Out The Awful Default Notification Center Sound For Something Better [OS X Tips] | Cult of Mac
Doesn't seem to work anymore in Mojave. It's not playing Basso, but some other sound I can't find in /System/Library/Sounds.
macos  notificationcenter  customization  alertsounds  annoyance  maybesolution 
5 weeks ago by kme
Disable Notification Center & Remove the Menu Bar Icon in Mac OS X
<code class="language-bash">launchctl unload -w /System/Library/LaunchAgents/com.apple.notificationcenterui.plist

killall NotificationCenter</code>
mac  osx  defaults  notificationcenter  annoyance  maybesolution 
6 weeks ago by kme
perl - Why CONCAT() does not default to default charset in MySQL? - Stack Overflow
This did NOT work (for me):
It probably is DBD::mysql issue/peculiarity. Try enabling utf8 in database handle as described in POD for DBD::mysql (mysql_enable_utf8 part).
perl  dbi  mysql  dba  database  query  collation  errormessage  maybesolution 
8 weeks ago by kme
linux - Bash completion for path in argument (with equals sign present) - Stack Overflow
Check out the definition of COMP_WORDBREAKS in your environment to see why '--arg=<TAB>' (maybe) isn't working.
bash  programmablecompletion  tabcompletion  completion  maybesolution  workaround 
8 weeks ago by kme
undefined reference to symbol 'XFlush' · Issue #1 · archetipo/leapmouse · GitHub | https://github.com/
I ran into this issue trying to compile gSTM on elementaryOS Loki 5.0, based on Ubuntu 18.04, and I had to add `-lX11 -lxml2` in about three different places in 'src/Makefile'. Still didn't run.
build  compiler  toolchain  linker  errormessage  maybesolution 
9 weeks ago by kme
Issue 34036: ModuleNotFoundError: No module named '_ctypes' when install Python 3.7 on Linux - Python tracker
Ran into this problem building Python 3.7.4 on the HPC cluster.
Ctypes is meant to be (at least it used to be) an optional module. If you don’t actually care about building ctypes, this might be the same as Issue 31652. Using “configure --without-ensurepip” was suggested as a workaround.
python  build  fromsource  compiler  errormessage  maybesolution 
9 weeks ago by kme
macos - Add a locale in Mac OSX - Stack Overflow
Looking into this found that, as of Mac OS X 10.10.3, collation is still broken for Spanish and most European languages. Collation definitions for these locales are linked to an ASCII definition. This ends up breaking things such as ORDER BY clauses on PostgreSQL.


Also, WTF is does 'la_LN' mean anyway?
macos  elcapitan  annoyance  sorting  brokenness  collation  lc_all  dateandtime  unix  maybesolution 
12 weeks ago by kme
OpenConnect VPN client. | https://www.infradead.org/
On Linux, it's possible to create its tun device in advance. For example:
<code class="language-bash">
# ip tuntap add vpn0 mode tun user dwmw2
</code>

This creates a device vpn0 which can be opened by user dwmw2 who can pass traffic to/from it without needing any elevated privileges. You can now tell OpenConnect to use that device by adding "-i vpn0" to its command-line arguments. Note that the /dev/net/tun device node should be readable and writeable by everyone. (Some distributions misconfigure that, so if it isn't world-writeable then please file a bug against your distribution.)
vpn  cisco  anyconnect  linux  networking  sysadmin  maybesolution 
july 2019 by kme
Bash eternal history
Many times I've found myself using Ctrl-R in Bash to get a old command four times the terminal width, just to find out that too many days have passed and it's no longer in the .bash_history file. Here are two lines that will keep track of every command line you type at the bash prompt and use no external processes at all, just plain bash.

My first approach to this problem was increasing the maximum number of lines in the history to a very large quantity. But no matter how large it was, there was always a moment when I needed a long command I typed many months ago and it had already left the history. The current solution came to my mind when I learned about the PROMPT_COMMAND variable, a command that bash executes before showing each prompt. Here are the two lines:
<code class="language-bash">export HISTTIMEFORMAT="%s "
PROMPT_COMMAND="${PROMPT_COMMAND:+$PROMPT_COMMAND ; }"'echo $$ $USER \
"$(history 1)" >> ~/.bash_eternal_history'</code>
bash  history  histfile  configfile  maybesolution 
july 2019 by kme
python - Is it possible to open a locked sqlite database in read only mode? - Stack Overflow
SQLITE_OPEN_READONLY flag - look into this. Probably only part of the C API, which Python's sqlite3 won't necessarily support.

This is the solution I ended up using:
You could try just copying the database file (e.g., with the system utility cp) and using that snapshot for reading purposes
python  sqlite  concurrency  database  locking  errormessage  maybesolution 
june 2019 by kme
linux - bashdb startup error: bashdb/lib/setshow.sh: line 91: /dev/pts/2: Permission denied - Stack Overflow - https://stackoverflow.com/
Got this error message in a CentOS 7 Docker image, added user to the 'tty' group with 'vigr', then also had to 'chmod g+r' /dev/pts/0.
bash  shellscripting  bashdb  errormessage  maybesolution 
june 2019 by kme
savehistory function | R Documentation
The "Example" section is jacked up, and I can't tell what that's supposed to look like; try https://stackoverflow.com/a/16738440 (answer from Hadley Wickham) instead.

Maybe the version of R that we have on the cluster didn't build against the readline library or something, and *that's* why up/down arrows don't recall the history.
r  history  repl  annoyance  maybesolution 
june 2019 by kme
yum - How to add language support on CentOS 7 (on Docker)? - Server Fault
If they'd just stop saying 'localectl' is the solution, when it doesn't work in Docker. There's no DBus daemon running or something. The 'systemctl' command doesn't work, even. These things are stripped out in container environments, I guess.

What *actually* works is
<code class="language-bash">yum reinstall -y glibc-common</code>
and then setting 'LC_ALL` or 'LANG` in the environment.
centos  centos7  locale  docker  language  characterencoding  maybesolution 
june 2019 by kme
Rack Attack | GitLab
Documentation for GitLab Community Edition, GitLab Enterprise Edition, Omnibus GitLab, and GitLab Runner.
gitlab  sysadmin  rackattack  throttling  configsetting  maybesolution 
june 2019 by kme
xml - Using xmllint and xpath with a less-than-perfect HTML document? - Stack Overflow
'xidel' (http://www.skynet.be) seems to handle malformed HTML better than 'xmllint --html' or 'xmlstarlet' even after passing through 'tidy'.
xml  xpath  webscraping  malformedhtml  maybesolution 
may 2019 by kme
elementary/wingpanel-indicator-ayatana: Wingpanel Ayatana-Compatibility Indicator | https://github.com/
Wingpanel Ayatana-Compatibility Indicator. Contribute to elementary/wingpanel-indicator-ayatana development by creating an account on GitHub.
elementaryos  panelindicator  appindicators  maybesolution  deadproject 
may 2019 by kme
Question #216282 : Questions : elementary OS | https://answers.launchpad.net/
All the gtk apps had their icons in the panel. Turns out the sni-qt package was missing. They are back now.
elementaryos  qt  panel  indicators  appindicators  annoyance  maybesolution 
may 2019 by kme
GitHub - subogero/rename: Perl rename as a separate package
Perl rename as a separate package. Contribute to subogero/rename development by creating an account on GitHub.
Removes confusion about the util-linux vs Perl versions of rename.

Installs into /usr/local/bin, so it has precedence over your system's default rename.
perl  rename  filemanagement  maybesolution 
may 2019 by kme
LFTP FTPS and Certificate Verification » Versatile Web Solutions | https://www.versatilewebsolutions.com/
<code class="language-bash">
openssl s_client -showcerts -connect example.com:21 -starttls ftp
</code>
lftp  cryto  cacert  certificate  woes  maybesolution  troubleshooting 
april 2019 by kme
regro/conda-metachannel: like a conda-metapackage but for channels! | https://github.com/
like a conda-metapackage but for channels! Contribute to regro/conda-metachannel development by creating an account on GitHub.

Via: https://github.com/conda/conda/issues/7239
conda  conda-forge  bandaid  itsslow  workaround  maybesolution 
march 2019 by kme
CalendarAgent process is out of control -… - Apple Community | https://discussions.apple.com/
Yeah, no, this didn't work. I did that, and the CalendarAgent still hogs a CPU and spins the fan up to max. Disabling the Google Calendar accounts might be the only solution.
I was able to get this to stop. Go to:

* System Preferences
* Notifications

Click the "Calendar" entry on the left. Un-Check everything on the right. The entry moves to the bottom (or below the line). After that, my CPU went straight down to a normal percentage, system temp dropped, etc.
mac  osx  calendaragent  troubleshooting  annoyance  maybesolution 
march 2019 by kme
Blank lines are not preserved. · Issue #48 · janl/mustache.js | https://github.com/
Try the following JS code: var a = Mustache.to_html('{{tag1}}\n\n\n{{tag2}}.\n', {tag1:'Hello', tag2:'World'}, {}); a should contain the string Hello\n\n\nWorld.\n whereas currently it contains the string Hello\nWorld. The problem stems ...
mustache  templates  webdevel  maybesolution  annoyance  bug 
march 2019 by kme
Create a recovery drive | https://support.microsoft.com/
This seems to also be how you *delete* the existing recovery drive (which is 300-some megabytes) from the PC. This seems to be necessary in order to extend the Window OS system partition?

Via: https://www.intowindows.com/how-to-delete-the-recovery-partition-in-windows-10/
windows  win10  recoverydrive  bootableusb  systemrecovery  disasterrecovery  howto  maybesolution 
february 2019 by kme
Baltasarq/cscrutil: Multiplatform screen console management for C | https://github.com/
Multiplatform screen console management for C. Contribute to Baltasarq/cscrutil development by creating an account on GitHub.
c  cplusplus  ansi  colors  ansicolors  console  cli  commandline  library  maybesolution 
february 2019 by kme
Xterm Titles With Bash - David Pashley.comDavid Pashley.com | https://web.archive.org/
<code class="language-bash">
if [ "$SHELL" = '/bin/bash' ]
then
case $TERM in
rxvt|*term)
set -o functrace
trap 'echo -ne "\e]0;"; echo -n $BASH_COMMAND; echo -ne "\007"' DEBUG
export PS1="\e]0;$TERM\007$PS1"
;;
esac
fi
</code>
bash  dynamictitle  xterm  configfile  ps1  promptstring  maybesolution 
january 2019 by kme
« earlier      
per page:    204080120160

Copy this bookmark:





to read