MYSQL: A Query to Display WordPress Posts

The following MYSQL query will display your WordPress post data including post metadata.   Just change the filters as required … demonstrated filters include only posts with a status of Publish and a post date less than Now.  Remember to remove the filter on post date if you are searching for Draft posts only.

SELECT posts.*, postmeta.*
    FROM wp_posts posts, wp_postmeta postmeta
    WHERE posts.ID = postmeta.post_id
    AND posts.post_status = ‘publish’
    AND posts.post_date < NOW()
    ORDER BY posts.post_date DESC
IMG_20140713_164442

 

DAX: Get the Month Name from a Date

Some commonly asked questions in this world are :

1. Is the Loch Ness monster real ?

2. Is the Bermuda Triangle really aliens ?

3. How do you get the month name from a date in a PowerPivot DAX formula ?

Get the three character abbreviation of the month name from a Date column in Powerpivot using the following derived column formula…

=FORMAT(MONTH([YOURDATECOLUMN]),”MMM”)

month

 

Australian Computer Society: Predicting the Next Rogue Wave 27th May 2015

Maritime folklore told of the existence of rogue waves, that could appear without warning, against the prevailing current and often in perfectly clear water. Such waves were said to consist of an almost vertical wall of water, up to 98 feet in height, preceded by a trough so deep, it was referred to as “a hole in the sea”. Any ship approaching a wave of such magnitude would be unlikely to survive the extreme forces and would be sunk in a matter of minutes.

In this session we look at the some of the tools, platforms and methodologies in the current Business Intelligence movement, that can assist businesses to predict, “The Next Rogue Wave”. Whilst the next rogue wave can easily allude to the next big destructive force, the next rogue wave can also be the next big opportunity….such as the Black Swan theory, which aims to predict the opportune time to strike, concerning world financial events.

We will cover the whole data science movement, the growing opportunity of cloud analytics platforms, and the role of data governance, all designed to help businesses to be better prepared for the risks and opportunities of the unexpected, and to respond accordingly.
The demonstration will use a combination of presentation and demo time.

Onsite event details as follows, and external conference available from the link below…

27th May 2015

5:30pm for 6:00pm start

ACS Office Level 7/333 Adelaide St Brisbane

https://acs.org.au/branches/queensland/events/upcoming-events/event-details?eveID=50326271705245

 

Data Wow: Data Science for Extra Terrestrials

In 1961, Dr Frank Drake presented a controversial equation…called….ummm…the Drake equation, but some critics, labelled the equation a guesstimate or even meaningless.  Yet for the SETI (Search for Extra Terrestrial Intelligence) Institute, the equation pumps to a beat, and drives the mass collection of data, to yield information relating to any of the equation’s factors.  The controversial Drake equation, aims to predict the number of extra terrestrials in the galaxy, like this :

drake

N = The number of civilizations in The Milky Way Galaxy whose electromagnetic emissions are detectable

R* = The rate of formation of stars suitable for the development of intelligent life

fp = The fraction of those stars with planetary systems

ne = The number of planets, per solar system, with an environment suitable for life

fl = The fraction of suitable planets on which life actually appears

fi = The fraction of life bearing planets on which intelligent life emerges

fc = The fraction of civilizations that develop a technology that releases detectable signs of their existence into space

L = The length of time such civilizations release detectable signals into space

If your eyes just glazed over, then try this entertaining animation, where Jill Tarter brings the Drake equation to the masses for the less mathematically focussed, describing the odds of calculating intelligent alien life.

Data Wow: Chances of Finding Love ?

coffee

twolove

What are the chances of life on earth ? Further, what are the chances of running into a random stranger on earth, and finding love… And further again, what are the chances of holding that love ??   In this compelling Ted talk, mathematician Hannah Fry gives her top 3 mathematically based tips for finding that special 1.