AI beats real fighter pilot, the future of warfare and it’s impressive and scary https://t.co/7DFrAip09F
curl and sftp
For some reason curl does not come with sftp support built in some Linux distros (eg Mint). Type curl -V to see if its listed as a supported protocol. If it missing you need to download the source files from https://curl.haxx.se/download.html
Install the libssh development library which is libssh2-1-dev on my mint box. Un zip/tar the curl source and run from its directory
./configure make sudo make install
on the command line. When you run curl yo
From my twitter post: Time is running out to register to vote in the EU Referendum. Make sure you’re registered: https://t.co/a11M7xmZKa
Time is running out to register to vote in the EU Referendum. Make sure you’re registered: https://t.co/a11M7xmZKa
From my twitter post: All scientific papers to be free by 2020 under EU proposals https://t.co/kTPF8MWkeO
All scientific papers to be free by 2020 under EU proposals
Installing MySQL with macports
This is my notes for installing MySQL on mac. It’s mainly taken from https://trac.macports.org/wiki/howto/MySQL
sudo port install mysql56-server
which installs version 5.6, but you could check this was the latest version by search the output of
port search mysql
You need to enable the port by adding it to the system path, the easiest way is by
sudo port select mysql mysql56
Then set up the database
sudo -u _mysql mysql_install_db sudo chown -R _mysql:_mysql /opt/local/var/db/mysql56/ sudo chown -R _mysql:_mysql /opt/local/var/run/mysql56/ sudo chown -R _mysql:_mysql /opt/local/var/log/mysql56/
Then start the database
sudo port load mysql56-server
We need to set a root password
/opt/local/lib/mysql56/bin/mysqladmin -u root -p password
You will be prompted for the old password, which currently blank so just press enter, then add your new password.
You can then add some basic security to the database by running
/opt/local/bin/mysql_secure_installation
If you need the server to connect to the network (including it seems the loopback localhost – although I’m sure there is away round this), you need to edit the configuration file in /opt/local/etc/mysql56/my.conf. The file simply calls the default config file, macports-default.cnf, which stops only has skip-network in it. Don’t edit the default since an update may overwrite it, simply edit comment out the include line with a ! symbol.
To enable a C++ interface to MySQL install
sudo port install mysql5-connector-cpp
note that this also a port mysql-connector-cpp without that 5, which is broken! A half hour of my life I’ll never get back. Unfortunately this port is out of date and links against MySQL 5.1. It can still be used with 5.6 but it does mean macports will also install 5.1 on your system.
To edit the config file and your databases there is a GUI tool MySQL Workbench
From my twitter post: Ukip-backed Brexit campaign employs EU migrants to rally support https://t.co/uQdkmLuZKx
Ukip-backed Brexit campaign employs EU migrants to rally support
Exit pupil
The image of the aperture stop when viewed from the rear of the lens
Entrance pupil
The image of the aperture stop when viewed from the front of the lens
Atlas, The Next Generation – YouTube
That’s one impressive robot
Inline hologram notes
Some notes on unwrapping In line Holograms