solution   7942

« earlier    

Hide curl output - Unix & Linux Stack Exchange | https://unix.stackexchange.com/
<code class="language-bash">
curl --write-out '%{http_code}' --silent --output /dev/null http://example.com
</code>
webdevel  webmaster  curl  http  statuscode  shellscripting  solution 
2 days ago by kme
libmysql - Cheapest way to to determine if a MySQL connection is still alive - Stack Overflow | https://stackoverflow.com/
In this case you can use 'DO 1' as an alternative to SELECT 1; it is marginally faster -- shorter to parse, and it does not return actual data (although you will get the TCP acks, so you will still do the roundtrip validating that the connection is still established.)
mysql  mysqlcppconn  dba  devel  cplusplus  solution 
3 days ago by kme
Linux Mint 19.1 Cinnamon Release Notes - Linux Mint | https://www.linuxmint.com/
These release notes are actually *helpful*. Covers the issue I had with garbled display on VirtualBox *and* being able to move around windows that are too large (like Timeshift's setup wizard) to fit on the screen at the default screen resolution.

The problem I had with the system menu not showing up on the first reboot after setup went away after resetting the menus (or a reboot).
If the screen is garbled when launching Linux Mint in Virtualbox, switch to console with HOST+F1 (e.g. the RIGHT Ctrl key, no ALT) and back to tty7 with HOST+F7.

Another workaround is to disable "nested paging" (in the System -> Acceleration settings) and to increase the video memory to 128MB (in the Display settings).

Note: This issue only affects the live session. You don't need these workarounds post-installation.
virtualbox  linuxmint  linux  releasenotes  virtualization  solution 
3 days ago by kme
Wonky display on this one Win10 startup screen in VirtualBox - Linux Mint Forums | https://forums.linuxmint.com/
I asked a question a few days ago about a video snow display when booting LM19 Live DVD in Virtual Box. Turns out that you need to use R-CTRL / F2 followed by R-CTRL / F7 [Host-F2, Host-F7] to go in and out of a terminal to clear the snow. Have you tried this to fix your Wonk? Maybe the Linux Graphics Drive is not really up to snuff with the Virtual Machine Host graphics. After installing the LM 19 system in the VM I have not seen snow again. Or any Wonk. Or at least now your kind of Wonk.
linuxmint  virtualization  virtualbox  graphics  linux  annoyance  solution 
3 days ago by kme
EmacsWiki: Regular Expression Help | https://www.emacswiki.org/
GNU Emacs (and GNU find) regexps *do* support alternates, but you have to escape *both* the parens and the pipe symbol.
emacs  gnu  gnufind  regexp  syntax  solution 
3 days ago by kme
Cscope Home Page | http://cscope.sourceforge.net/
Try: 'ag -l --cpp | cscope -i- -b -q' (build cross-ref, inverted index)
devel  c  cplusplus  codesearch  crossreference  commandline  vim  asanide  solution 
3 days ago by kme
vim - How to fix duplicate cscope ? is it a better way? - Stack Overflow | https://stackoverflow.com/
Solution: put 'set cscopenoverbose' right before the 'if filereadable("cscope.out")' statement.
vim  cscope  errormessage  annoyance  solution 
3 days ago by kme
visual studio - AStyle for Google C++ style guide - Stack Overflow | https://stackoverflow.com/
The answer was 'astyle -A14 -s2' (if you really want two-space indents, which I don't).
devel  cplusplus  google  styleguide  codingstyle  solution 
3 days ago by kme
Antidote freeze anyone? : archlinux
how to fix antidote 9 on linux with recent glibc
antidote  linux  solution  sysadmin 
4 days ago by plaxx
Drawdown
Project Drawdown is the most comprehensive plan ever proposed to reverse global warming. We gathered a qualified and diverse group of researchers from around the world to identify, research, and model the 100 most substantive, existing solutions to address climate change. What was uncovered is a path forward that can roll back global warming within thirty years.
book  carbon  climate  environment  future  sustainability  technology  ideas  solution  permaculture 
5 days ago by ivar
makefile - How do I get $(error ...) to work conditionally in GNU Make? - Stack Overflow | https://stackoverflow.com/
This looks like it should, but doesn't actually work (for me, or apparently the OP):

<code class="language-makefile">
ifeq ($(shell test -d /foobar; echo $$?),1) $(error Not a directory) endif
</code>
make  makefile  conditional  syntax  devel  sortof  solution  needshelp 
7 days ago by kme
macos - Using the pkg-config macro PKG_CHECK_MODULES failing - Stack Overflow | https://stackoverflow.com/
The solution in my case was to build and install automake-1.16 and pkg-config-0.29.something, which were newer than the OS-supplied versions.
devel  centos  centos6  pkg-config  build  toolchain  errormessage  sortof  solution 
7 days ago by kme
"help2man: can't get `--help' info from automake-1.16" · Issue #6275 · Linuxbrew/homebrew-core | https://github.com/
Ran into this problem trying to build 'automake-1.16' from source; 'module load'ing a new-ish Perl and then re-doing './configure' fixed the problem, I guess.
automake  build  toolchain  errormessage  solution 
7 days ago by kme
linux - C++ error: undefined reference to 'clock_gettime' and 'clock_settime' - Stack Overflow | https://stackoverflow.com/
Got this error building MySQL 5.6 from source (in the 'libmysql' subdirectory) and this seemed to fix i: add '-lrt' to the end of '-DCMAKE_CXX_FLAGS=' command line option when initially running 'cmake'.
Add -lrt to the end of g++ command line. This links in the librt.so "Real Time" shared library.
build  toolchain  compiler  error  mysqlclient  mysql  solution 
7 days ago by kme

« earlier