Desirability of textiles from quality to humanityread more
When possible I try to pay with cash. Here's why
- Credit card transactions are used to track your spending history to target advertisements. Google has access to 70% of transactions from credit and debit cards for the united states (source. Not so for cash.
- Credit cards introduce a third party …
What is Awk?
Awk is a weird mix of command-line tool and programming language. It's a language specifically designed for text processing. By default it has a notion of rows and separators. Think CSV but without support for quoted separators.
Fastlane is a tool for automating iOS app development …read more
Mapping a function in Mercury lang is pretty simple. First you need a function:
:- func myfunc(string) = string. myfunc(In) = Out :- append(In, In, Out).
Then you map it
:- import_module list. NewList = map(myfunc, OldList)
We can do the same thing with a predicate.read more
:- pred mypred(string::in, string::out …
So you're learning Mercury lang and you have a predicate with
multideterminism. Maybe it looks something like this:
:- pred school(string:: in, string:: out) is multi. fish(Fish, ParticularFish) :- ( append("One ", Fish, ParticularFish) ; append("Two ", Fish, ParticularFish) ; append("Red ", Fish, ParticularFish) ; append("Blue ", Fish, ParticularFish) ).
Which has four solutions …read more
Here's a quick gist for printing a list of strings out in Mercury lang. I found that I needed this when learning the language. Maybe you do too.
Is there a better way to do this? Of course there is, I just haven't learned it yet. For example there is …read more
Installing Mercury can be an intimidating process. Here are the steps I followed to get Mercury lang up and running.
Download the latest ROTD. This tutorial uses a ROTD dated 2018-04-30, you should replace this date throughout.
Uncompress the source archive
$ tar -xzf mercury-srcdist-rotd-2018-04-30.tar.gz
Configure the installation to …
As always, I am writing these entries in order to solidify and formulate my opinions. I may end up reversing opinions of what I write. I hope that by writing this out I may have a better understanding then the general mutterings which pass through my brain on occasion. Let …read more
Aboard a bus departing the Cancun airport I notice a small stepped-pyramid adjacent to the on-ramp of the high-way. It stands the height of a single story, too close to the roadway to have been constructed afterwards, but oddly prominent. Is this pyramid a lesser, forgotten Tulum or Chitzen Itza …read more
This may not be the 'correct' way of doing something, but you can place your xfce4 color scheme in the following folder:
Look at the existing files for inspiration and add a
Name=line to the top.
I successfully renamedread more
« Page 3 / 7 »