Mindblown: a blog about philosophy.
-
8 Suits – eight suited playing cards
8 Suits, as you guessed is a deck of playing cards with an additional 4 suits, the clover, tear, crescent and star for a total of 104 cards plus a number of jokers. Priced at $12 USD per deck plus $5 per postage ($13 per postage internationally), it is a little steeper than The Fat…
-
Poker hands probability calculator for any number of suits and ranks (denominations)
After purchasing a 5 suited deck of cards and an 8 suited deck of cards, I decided to work out how the numbers of suits affect the probabilities of each poker hand. Further, the following can calculate combinations and probabilities for any number of suits and any number of ranks (number of denominations). You will…
-
PHP Factorial and Combination functions
A quick post on two functions for PHP that provide factorial and combination support.
-
Complete list of Foundation Fieldbus devices and search tool
Currently it is quite difficult to search for a particular device by either device model, Vendor ID or Model ID on the Fieldbus Foundation website. The following provides a means to easily search this data, via the offline tool ‘Foundation Fieldbus device search’. The tool enables searching via Vendor, Model, Type and even Vendor and…
-
Longest Common Subsequence implemented in VBA (Visual Basic for Applications)
From Wikipedia, The longest common subsequence (LCS) problem is to find the longest subsequence common to all sequences in a set of sequences (often just two). The following is a VBA implementation of this problem. The following functions are included; String functions; longestCommonSubsequence – calculate an LCS array. backTraceUp and backTraceLeft – trace back either…
-
Cheap SSD from Compact Flash card for older laptops
Okay, so this post is about 3 years too late, but I thought I would post it anyway. I have a number of old laptops which I use as digital photo frames, we are talking original Pentiums II here. The problem is given the age of these, the hard drives are either extremely noisy and…
-
SQL query generator for changing WordPress tables
I recently went through the ordeal of changing the prefixes of the WordPress tables from the default wp_ to something more random, I have created the following to help anyone wanting to go through the same process.
-
Get the parameters/arguments being called to an executable
Lets say you have some program ‘A’ that has no documentation and no help files but is being executed by some program ‘B’. You want to run program ‘A’ is individually, but you need to know what parameters/arguments are being passed from program ‘B’. The following executable will help. Replace program ‘A’ (temporarily) with the…
-
RSS feed aggregator/combiner in PHP with Magpie RSS (v2)
I have recently upgraded the code to combine multiple RSS feeds, for the original version see this post. To install, extract the following zip file to a directory where you want your combined feeds to be displayed, I use t.com/combinedfeed as xxxxx.com/feed is already used by WordPress. Edit index.php for your site, and make sure…
-
Replace unorded list double arrows with bullets on default Kubrick theme
A quick guide to how to replace right-pointing double angle quotation marks (») (U+00BB) with bullets (•) (U+2022). Edit the following style.css in the wp-content\themes\default folder; to;
Got any book recommendations?