Noddy Encode SQL

Sometimes you want to scramble or anonymise data in a table , mainly so you can reuse or use ‘real’ data without having real names or details showing, and don’t want to screw up the formatting, so things like emails and phone numbers don’t break as well, as only doing it to certain fields

Yes I know this is a naff way to do it but given the shear number of dbas that do it this way I figured it was worth posting, also note that dont just use this as it is, move some of the replacement values around to give it your own unique values.

UPDATE **table_name** t





, ‘a’, ‘g’), ‘b’, ‘w’), ‘c’, ‘c’), ‘d’, ‘x’), ‘e’, ‘f’), ‘f’, ‘v’), ‘g’, ‘b’), ‘h’, ‘y’), ‘i’, ‘m’), ‘j’, ‘u’), ‘k’, ‘e’), ‘l’, ‘p’), ‘m’, ‘l’), ‘n’, ‘a’), ‘o’, ‘t’), ‘p’, ‘z’)

, ‘q’, ‘d’), ‘r’, ‘h’), ‘s’, ‘k’), ‘t’, ‘n’), ‘u’, ‘s’), ‘v’, ‘o’), ‘w’, ‘i’), ‘x’, ‘q’), ‘y’, ‘r’), ‘z’, ‘j’), ‘A’, ‘G’), ‘B’, ‘I’), ‘C’, ‘H’), ‘D’, ‘M’), ‘E’, ‘A’), ‘F’, ‘Z’)

, ‘G’, ‘Y’), ‘H’, ‘L’), ‘I’, ‘B’), ‘J’, ‘K’), ‘K’, ‘J’), ‘L’, ‘N’), ‘M’, ‘C’), ‘N’, ‘T’), ‘O’, ‘R’), ‘P’, ‘S’), ‘Q’, ‘X’), ‘R’, ‘D’), ‘S’, ‘W’), ‘T’, ‘E’), ‘U’, ‘F’), ‘V’, ‘F’)

, ‘W’, ‘P’), ‘X’, ‘U’), ‘Y’, ‘V’), ‘Z’, ‘Q’), ‘0’, ‘9’), ‘1’, ‘3’), ‘2’, ‘6’), ‘3’, ‘7’), ‘4’, ‘1’), ‘5’, ‘2’), ‘6’, ‘3’), ‘7’, ‘0’), ‘8’, ‘4’), ‘9’, ‘5’)


2 fitness tips: Callouses and clean headphones

2 quick fitness tips I use everyday.

TIP 1: Use isopropyl alcohol spray to clean over-ear headphones.

I’ve not met anyone use this but it seems obvious to me, isopropyl alcohol is great for disinfecting and removing bad smells and it also does not upset electronics (its used for cleaning dirty and corroded circuit boards) so therefore it is perfect for cleaning the sweaty ear pads on your headphones without having to take them apart. Make sure you use the 99.9% version, my preferred brand is “Nope”

Tip 2: File calluses from weightlifting and bar work to stop them ripping. 

This one seems to be wrapped up in lots of other tips and over complications, but put simply, the calluses you get from lots of weight lifting, using a bar pull-up or that kind of stuff will often rip, and while this might seem mainly it means you have to stop while the bloody things heal, lots of people get special creams and stuff like that to stop it, but what I have found all of the professionals do is just file the damn things flat with what ever they have to hand e.g. nail files, pumice stones etc etc, though I have seen this one recommended a lot.

Me I just use my modelling files, simple.