Just followed this tutorial on how to create a basic C++ app that talks to a PostgreSQL database…
Category Archives: Sys Admin
Code Assistance for C++ in NetBeans: define __cplusplus
See here:
- Go to Tools->Options
- Select C/C++ menu
- Select Code Assistance tab
- Select C++ Compiler tab
- In Macro Definitions list view, locate __cplusplus and change its value from 199711L to 201103L
- Click OK button
Enable desktop icons in Gnome
Press Alt+F2 and run dconf-editor. Then org -> gnome -> desktop -> background and check show desktop icons. For more information see here…
Reporting CPU cache on Linux
Use the following commands:
# lscpu
And:
dmidecode -t cache
No manual entry for g++
If this happens:
$ man g++ No manual entry for g++ See 'man 7 undocumented' for help when manual pages are not available.
Fix with:
# apt-get install gcc-doc
Installing VirtualBox on Debian
Found this article: How to install or upgrade VirtualBox on Ubuntu or Debian…
VirtualBox shared folders
Followed HOWTO: Use Shared Folders…
Greasemonkey and the file: URI scheme
Today I learned about extensions.greasemonkey.fileIsGreaseable… a way to get Greasemonkey to process file-system documents… for scripts to work with file:// paths, you need to open about:config and set extensions.greasemonkey.fileIsGreaseable to true.
Network sockets
Reading about network sockets…
Fixing Firefox/Iceweasel restricted port
Today I ran into this warning from iceweasel when I tried to access a web service on port 101:
This address is restricted
This address uses a network port which is normally used for purposes other than Web browsing. Iceweasel has canceled the request for your protection.
I found this article which said:
- Open about:config
- Create network.security.ports.banned.override if it’s not there
- Set that setting as, e.g.: 101-104
- Refresh the page