Combine two hobbies into a career.
Combine two hobbies into a career.
On our works web site, we use Contact Form 7, about 30 in all, and after being asked to change the ‘to:’ address once too often, I thought ‘fuck this’ and came up with a solution where the content editors can do it themselves without pestering me all the time.
The quickest way is to simply set a custom field on the page/post you want the Contact Form 7 to appear on. At the bottom of the editor screen, there is the option to Add New Custom Field. For the sake of this tutorial, I’m going to call the key cf_email_to_address and then enter the email address you want to test.
Click Update or Save depending on what you’re doing, and now head over to the Contact Form 7 that you want to edit and in the Form tab, add this at the top:
[dynamichidden recipient-email "CF7_get_custom_field key='cf7_email_to_address' obfuscate='on'"]
This is a CF7 dynamic field that put the value of the custom field cf7_email_to_address that we created above, and puts it into variable recipient-email.
All we have to do now is click on the Mail tab and in the To address, add this:
Will send an email with the post title name to the email address we specified in the custom field.
I was sent this by a developer in the office, from the SASS file for a web app.
/* greys */
Notice the wonderful concise and informative referencing of the classes, easy reference was not top of the priority list I presume. But this is what happens when you are sent PDF’s from the designer.
As much as I hate to laugh at people who can’t speak English, and I do find broken English incredibly adorable when I’m speaking to my European friends, I have to admit to moments where I’ve had to stop what I am doing because I’m laughing to hard.
I don’t mean having to learn north, south, east, west, left, right, front, behind in Romanian and Ukrainian because my friends get very confused (re drunk) playing an online game.
From experience I find the Romanians to be the most hilarious, and they pick up words from films and television and then write the words out phonetically, for example, ‘health’ will be typed as ‘healph’ , ‘heapf’ or ‘helfph.’
For extra lulz, ask them to pronouce a word that end in ‘th.’ That sound isn’t in the Romanian language so asking one to say ‘teeth’ leads to much amusement on my part as their tongue does gymnastics to get that sound and leads to a conversion of shouting ‘teeth’ being repeated a lot.
So rewind a few weeks, and I was talking to my friends on TeamSpeak while playing Armored Warfare with Romanian friends. We somehow got onto the subject of tattoos, as one of their girlfriends wanted to get one of a ‘dan-dill-lee-on.’ There was a short pause as I tried to make sense of this mangled word. ‘A what?’ ‘A dan-dill-lee-on. You know the… er… plant you blow on (cue a ear shattering sound as he blows into the microphone) and er… floating things.’ Oh you mean a dandelion. ‘Yes dan-dill-lee-on.’ I had to walk away because I was laughing so much, right in the middle of a game.
‘Sorry I disconnect. Fuck-king Were-les.’ No, it is ‘why-er-less.’
‘Wee-Fee’ when he means ‘why-fi.’
Just stop speaking English until you can speak it properly you daft twat 🙂
Oh you know I’m joking my dear friends.
After my my Mac decided to fuck up after installing Sierra, it gave me a chance to reorganise my shit as I forgot to backup my MAMP Pro installation, so I had to rebuild all 20+ web sites and databases from scratch. Not doing this again as it’s a right pain in the ass.
So after playing around a bit, I’ve moved the htdocs folder and the MySQL databases to Dropbox. I could use iCloud but I’m not installing that shit on my Workstation PC at home.
Before we go to Terminal, make sure MAMP and your MySQL management tool (phpmyadmin/Sequel Pro/Workbench) of choice is closed.
If you want to use another cloud storage solution, here are the default install path for iCloud:
Just replace the Dropbox path in these examples. So let’s copy the databases folder to Dropbox in a folder called MAMP_db.
cp -r /Library/Application\ Support/appsolute/MAMP\ PRO/db ~/Dropbox/MAMP_db
Rename the default folder to something else
mv /Library/Application\ Support/appsolute/MAMP\ PRO/db /Library/Application\ Support/appsolute/MAMP\ PRO/delete_db
Create a symbolic link to the new folder.
ln -s ~/Dropbox/MAMP_DB /Library/Application\ Support/appsolute/MAMP\ PRO/db
Now start MAMP Pro and wait to see if MySQL loads without errors. I double checked by loading Sequel Pro to see if my databases were there.
If you want to use iCloud instead, use
If that was a success, we can now move the web sites.
Exactly the same commands, just a different folder.
cp -r /Applications/MAMP/htdocs ~/Dropbox/MAMP_htdocs
mv /Applications/MAMP/htdocs /Applications/MAMP/delete_htdocs
ln -s ~/Dropbox/MAMP_htdocs /Applications/MAMP/htdocs
Load MAMP Pro and click localhost and hey presto.
I did this on a fresh installation, and when tried to access localhost I got a Forbidden 403 error. All I did was make a new host and it worked fine.
I have a list of annoyances in life with people that really tip me over the edge. Things that turn me from happy to furious in the blink of an eye.
They say honesty is the best policy, well apparently not when you are dealing with fucking idiots on the internet. It’s why I log everything I say on the internet, just on the off chance that some fucker decides six months down the line, that I said something which I know I didn’t. My memory is shot to pieces about many things, but I do remember what I’ve said and not said in my head, and thankfully I have gigabytes of text files going back to my days on IRC in the 1990’s to prove it.
Yeah, I should have a clear out one day.
If I can take the trouble of being on time for something, then why can’t anyone else? If people are five minutes late, I’ll either fuck off home or go elsewhere.
The art of conversation
The internet is killing the art and etiquette of conversation.
Imagine you are in a bar. You see a friend and you start a conversation. You are in the middle of saying something and then this friend just fucks off with no warning. You wouldn’t do it would you? So why the fuck do people do it on instant messaging. What happened to saying “I’ll be back in a moment” or “I have to go”? I just had an example of someone asking me why deleted a message from yesterday. I said it was crap and asked how they were. Oh they’ve fucked off. Great.
Maybe it’s because I was brought up properly by my parents, but these things really boil my piss and I’m getting more and more intolerant of people.
I’ve dropped friends I’ve known for decades if they’ve fucked me off enough, so I have absolutely no guilt about telling someone I’ve known for a few months to fuck off.
You have a Velociraptor bashing (no pun intended) at the door, you need to lock the doors quick as it’s only Sam Neill holding the nasty little fucks back.
So what method do you think the brains behind Jurassic Park decided would be the best way to secure a big fucking metal door.
Of course, it’s number three. For fuck’s sake.
Just interested in where the fire alarm is, the parent folder?
It is actually a real piece of software called FSN, or Fusion by Silicon Graphics.