Thursday, 12 July 2018

php 7 nightmare

OK so Centos 6 insists on installing php 5.3 and even if you download other RPMs and install them, they do not replace the existing 5.3 which stays dominant. But basically everything web-based these days wants php 5.6 or php 7 so you have to get rid of 5.3.

Step 1. Go into /etc/yum.repos.d/ and 

mkdir old

mv Centos* old

Step 2. Uninstall all php stuff:

rpm -qa | grep php | xargs yum delete -y

Step 3. Install remi repository

yum install

yum --enablerepo=remi-php72 list    [if you want to see what is there]

Step 4. Enable repo

yum --enablerepo=remi-php72


Step 5. Install in this order:

      yum --enablerepo=remi-php72 install php


      yum --enablerepo=remi-php72 install php-common


      yum --enablerepo=remi-php72 install php.x86-64


      yum --enablerepo=remi-php72 install php

yum install [this is a dependency]

      yum --enablerepo=remi-php72 install php-7.2.7-1.el6.remi.x86_64


      yum --enablerepo=remi-php72 install php-pecl-mysql


      yum --enablerepo=remi-php72 install php-pecl-ncurses


      yum --enablerepo=remi-php72 install php-pecl-zendopcache.x86_64


      yum --enablerepo=remi-php72 install php-pecl-ncurses


      yum --enablerepo=remi-php72 install php-pecl-zip.x86_64


      yum --enablerepo=remi-php72 install php-ZendFramework-Db-Adapter-Mysqli.noarch


      yum --enablerepo=remi-php72 install php-json.x86_64


      yum --enablerepo=remi-php72 install php-PHP-CSS-Parser.noarch


      yum --enablerepo=remi-php72 install php-Raven.noarch


      yum --enablerepo=remi-php72 install php-bcmath.x86_64


      yum --enablerepo=remi-php72 install php-devel.x86_64


      yum --enablerepo=remi-php72 install php-dropbox-php-Dropbox.noarch


      yum --enablerepo=remi-php72 install php-gd.x86_64


      yum --enablerepo=remi-php72 install php-mcrypt.x86_64


      yum --enablerepo=remi-php72 install php-mbstring.x86_64


      yum --enablerepo=remi-php72 install php-mssql.x86_64


      yum --enablerepo=remi-php72 install php-mysqlnd.x86_64


      yum --enablerepo=remi-php72 install php-opencloud.noarch


      yum --enablerepo=remi-php72 install php-pdo.x86_64


      yum --enablerepo=remi-php72 install php-pdo-dblib.x86_64


      yum --enablerepo=remi-php72 install php-pear.noarch


      yum --enablerepo=remi-php72 install php-pecl-env.x86_64


      yum --enablerepo=remi-php72 install php-pecl-dbase.x86_64


      yum --enablerepo=remi-php72 install php-pecl-memcached.x86_64


      yum --enablerepo=remi-php72 install php-pecl-selinux.x86_64


      yum --enablerepo=remi-php72 install php-pecl-session_mysql.x86_64


      yum --enablerepo=remi-php72 install php-pecl-xmldiff.x86_64


      yum --enablerepo=remi-php72 install php-pgsql.x86_64


    yum --enablerepo=remi-php72 install php-pspell.x86_64

Step 6. Restart apache

     service httpd restart

Saturday, 26 May 2018

binary options q-profit scam abusing Mark Shuttleworth's name

The following sites are SCAMS. This post is intended as a public service so that if anyone googles q-profit they'll see it is a scam.
Evidence below.

First let's tag this post so Google finds it...
#q-profit qprofit q-profit binary options

Scam urls
which both link you to
Clearly neither is actually CNN, nor is actually the BBC. The real BBC site is
Here it says the q-profit system is a scam
If you look at the two women on the page, they're clearly different. If you reverse image search them, one of them I can't find but the other is a professor at UC Davis. The unfortunate victim, whom I've notified, is here:

Tuesday, 27 March 2018

watch out for predatory journals

Consider the 'Journal of Business and Economics.' This journal does not appear on the DHET accredited journals list ( If you google the journal, you find it is published by Academic Star publishers. Is its content entirely about economics? No. So it is not in fact a real journal.

Predatory journals (which this may or may not be), accept journal articles without peer review. What predatory journals do, is they offer to publish your paper, then accept your paper as-is, then charge "page fees" for publication. They do not review for quality. This lowers the quality of academic work worldwide as researchers who are under pressure to "publish or perish" assume that it is a legitimate offer from a legitimate journal. There are also conferences which do this - they approach you to publish your work, because they assume you're desperate to get published and will therefore pay for it.

The following article from a UJ academic explains further.

Here is a South African author who reported this particular journal. As you can see, a trivial google of any journal will show you whether it is legit or not.

Here is a real journal:

See the difference? Look at the work quality, content, and topic adherence. Look at the publisher guidelines. Google the word "scam" with the journal name.

Basically they pretend to be legit, trick you into publishing with them, then ask for "page fees". However, the article you submit does not get peer-reviewed; it just gets published regardless, because the publishers just want the academics' money.



Sunday, 21 January 2018

Just discovered Nassim Nicholas Taleb

"One should never do anything without skin in the game. If you give advice, you need to be exposed to losses from it."

Interesting stuff.

In short, averages do not represent probabilities - rather bet on the two extreme ends to deal with the possibilities of worst-case scenarios.

And a criticism of him

Saturday, 20 January 2018

Apple Mail doesn't open attachments on double-click

If your copy of Apple Mail since macos 10.11 doesn’t open attachments with double-click, do this


1. Open Terminal

2. Type

mv  ~/Library/Containers/  ~/Desktop ; sudo reboot

you can just copy/paste this.

3. Type your password (it won’t display), and press enter

Solution credit: Linc Davis, here:

Monday, 25 December 2017

random thoughts on cryptocurrency future

We saw huge profit-taking at Christmas which drove the currency down across all cryptocurrency coins by about 25%. I think this was just profit-taking and not a sudden lack of faith in the market.

However, we’re definitely seeing weaknesses in btc at the moment. Slow response times - over a day - and very high fees - I’ve seen up to about $30. It’s unacceptable and unusable.

Ask yourself the following questions.

1. Is the future of currency digital?
2. Is bitcoin technologically sound? (will it be ok as-is for the future or will it have to be hacked to a new better version)

If you said yes/no, (as I do), then you should stay in cryptos but divest of btc itself.

If you said no/no (as skeptics do), then sell all and get out.

If you said yes/yes, then hold and see whether btc survives.

[obviously: If you said no/yes, then you’re confused, or don’t know what bitcoin is].

My suspicion is btc will survive as a reference currency - like the USD in fiat markets - but that it has a limited use case because of technical problems.

5.5 billion people competing for 16 million coins mean that each coin is split so that each adult gets 0.003 btc. Meaning that if we take it that 0.003 btc is equivalent to say a month's wages, and the average wage is say 1000 usd, it means that the target price for btc is 0.003 = 1000 usd. Or $ 343 000 per btc. Just a guess. It's looking pretty bad right now.

Wednesday, 13 December 2017

List of useful mac apps

This is mostly a note to self so that I can share with others when they ask which apps I recommend.

Android File (*) get files off android device
Android (*) make android apps

audio (*) music deck (*) scrobbler (music recommendations) (*) scrobbler
Sound (*) editing sound files
To MP3 Converter (*) convert funny audio files to mp3

Bartender (*) get all the mini icons in the menu bar under a menu
Battery Health (*) show battery status

BTC (*) show current cryptocurrency values in menubar (*) best wallet app

Cleaner for (*) clean memory caches to improve performance for new files (*) keep clipboard history and strip font/formatting from copy/paste (*) best ftp client
Default Folder (*) force open/save dialogs to place you somewhere intelligent, e.g. the folder the file came from!

A Better Finder Rename (*) bulk file renames, e.g. to strip spaces or other funnies
Bitdefender Virus (*) mostly for PC viruses to help PC users out
Carbon Copy (*) best backup app, makes a bootable full copy.
CleanMyDrive (*) looks for garbage (*) best compression tool
StuffIt Archive (*) to open files from the above, listing files first
StuffIt (*) to just expand files from the above without ceremonies

NEVER INSTALL : mackeeper. It’s malware.

DjVu (*) to open DJVU files (like PDF) (*) to create document indexes for PDF (*) epub viewer and store, canadian
iBooks Creator (*) from Apple, try it.
Font (*) great app to convert OTF/TTF/PS fonts into other formats

graphics (*) batch resize or watermark images (*) similar to corel draw / adobe illustrator - very good (*) - similar to photoshop, much cheaper, very good


Pst Easy (*) - convert Outlook PST files to Apple mail files (*) screen sharing
Little Snitch (*) stop spyware from accessing websites - you approve/deny all interactions with internet. Basically lets you build a firewall on the fly. (*) far prefer to excel as it remembers stuff like copy/paste (*) far prefer to Word as it lets you create a spreadsheet inside a wordprocessing document. (*) tool to manage academic research papers

Combine (*) to tack JPGs and PDFs together into single documents, or split them into single pages
PDF OCR X Enterprise (*) convert bitmap PDFs to text-readable pdfs
PDF to
PDF to Word - Convert PDF to Microsoft
PDFKey (*) to remove passwords on PDFs (you still have to enter the password, but once you’ve entered it, it removes it)

+ PDF to (*) blogging app - saves you the bad interface of blog sites.
MindNode (*) mindmapper
MyPoint (*) to control PowerPoint from your phone
StakePoint (*) PM app

programming and maths
Daum Equation (*) to create math equations
MathMagic (*) ditto
QR (*) to make QR codes (*) to check the SEO-goodness of your website
XML Site (*) to create an XML map for google search

Project Management and similar
Flowchart Designer (*) mind mapper (*) PM app
Project Viewer (*) to open MS Project files (*) to control CPU fan speed (*) twitter client (*) find and delete duplicate images in bulk, keeping highest quality ones

Video (*) convert any video to any other video
Air Video (*) play streaming video from your mac to your ipad
AVI to Any (*) convert AVI (*) rotate a video (e.g. if you film with your phone sideways) (*) to play FLV files
MKV to Any (*) convert MKV files
MP4 to Any (*) convert MP4 files
To M4A Converter
WMA to Any
Wondershare Video Converter
Xilisoft Video Joiner (*) to join video clips easily and quickly
Xilisoft Video Splitter (*) to split...

php 7 nightmare

OK so Centos 6 insists on installing php 5.3 and even if you download other RPMs and install them, they do not replace the existing 5.3 whic...