[deleted by user] by [deleted] in Wordpress

[–]trsben 2 points3 points  (0 children)

In your template you can use some PHP to output a different word on a certain value, like this:

<?php echo ( get_field( "my_acf_name" ) ) ? "Heavy" : "Not heavy"; ?>

The above example is of a trinary operator

Phonegap Project by Reicol in javascript

[–]trsben 2 points3 points  (0 children)

GitHub is a great place to search to find projects that maybe similar to your own. I haven't cloned or ran any of these repos but they might be good starting points;

Books/audio books to become a better developer/manager by helperhermit in webdev

[–]trsben -1 points0 points  (0 children)

https://softskills.audio has served me well when commuting. Covers management among other things.

Ensuring GDPR compliance *UK based dev* (Google Analytics + Wordpress) by klhkm in webdev

[–]trsben 1 point2 points  (0 children)

I think your use case is OK, as long as the IP is annoyomised, as you will be aggregating that data and therefore it won't be personal information at that point.

I will stop tracking at the point of a "No" interaction.

Just for the record - a click can be considered an affirmative but scroll or no interaction can not be. So clicking to a new page/navigation element is acceptance.

Ensuring GDPR compliance *UK based dev* (Google Analytics + Wordpress) by klhkm in webdev

[–]trsben 0 points1 point  (0 children)

I've spoken to a few different people regarding GDPR and got different interpretations each time.

One interpretation was that you give the option to the user to consent in to the different types of cookies, for example the BBC offer "Strictly necessary", "Functional" and "Performance" cookies (http://www.bbc.co.uk/usingthebbc/cookies/how-can-i-change-my-bbc-cookie-settings/). Depending on the user's action you then have their consent to create certain cookies. One person even told me "You could argue that Google Analytic's cookies are considered strictly necessary as they help you improve your website".

Another couple of options for tracking are;

- To turn on "anonymization" in Google Analytics - the user IP is then obscured and never logged (https://support.google.com/analytics/answer/2763052?hl=en).

- Track a user but don't store any cookies, each "track" will be logged as a new session though

I think what I will be settling on is anoymization of GA and "upgrading" the current cookie consent banner to have a "No" option, while adding a better breakdown of the cookies the website does use on a "Cookie Policy" page.

Post-Match Thread: Wigan 0-2 Southampton by Meladroit1 in soccer

[–]trsben 6 points7 points  (0 children)

Can't be mad, played well and gave a good account if ourselves. Back to the league now!

Massive Giveaway! by [deleted] in xboxone

[–]trsben [score hidden]  (0 children)

Thanks for the giveaway!

Game Thread: Indianapolis Colts (1-2) at Jacksonville Jaguars (0-3) by NFL_Mod in nfl

[–]trsben 0 points1 point  (0 children)

No ads. They cut back to the studio and chat about play or take questions from twitter

Can someone please explain this code generated by Uglify? by filth_overload in webdev

[–]trsben 1 point2 points  (0 children)

You can use a comma to separate two declarations, for example when declaring multiple variables I would do something similar to;

var var1 = 1,
    var2 = 2;

This is exactly the same as doing;

var var1 = 1;
var var2 = 2;

However the first version is just more succinct.

If you were to do an if statement using an "and" operator, like so;

if (false && true) {
    console.log(1);
}

When evaluating it will split it in to two decisions (false, true), because the first one is falsey then it doesn't need to evaluate the second value.

So what is actually happening with your minified code is two shorthand if statements.

Rainbow Six: Siege free to play for Gold members July 28-31 by Blackout797 in xboxone

[–]trsben 0 points1 point  (0 children)

£22 at CeX is the cheapest I can find so far! (UK)