IT-consultant at Lexicon IT-konsult (lexiconitkonsult.se)

Blogs in Swedish at jamietelin.blogspot.com

Writes short at twitter.com/jamietelin

Is professionally connected at LinkedIn.

Is socially active at Google+ and Facebook, of course!

Aug
8
awarded Famous Question
Aug
6
comment What's a good way to change something on a web page based on scrolling?
Because it do not really solve the problem at hand. Waypoints are good at detecting elements and trigger a function. But do not help with a smooth transition.
Aug
6
comment run bash script in background and exit terminal
My answer don't make things worse. Do see the point of down vote. Neural would be sufficient.
Aug
6
comment What's a good way to change something on a web page based on scrolling?
Why the down vote? :-S This is a perfectly working correct answer.
Aug
6
revised What's a good way to change something on a web page based on scrolling?
added 133 characters in body
Aug
6
comment What's a good way to change something on a web page based on scrolling?
Since you want want opacity to be zero at the end it has to be a bit backwards. But it's pretty easy; opacity = 1 - (currentScrollPos / endScrollPos). So at 400 px scroll we get; 1 - 400 / 500 = 0.2. Check my answer below.
Aug
6
answered What's a good way to change something on a web page based on scrolling?
Aug
6
accepted Clearing full canvas faster than just parts?
Aug
5
comment Bash script needed to run every second
If you want it to run in the background even if you leave the terminal you could try nohup watch -n5 'bash script.sh' &
Aug
5
answered run bash script in background and exit terminal
Aug
5
accepted jQuery click event won't unbind
Aug
5
comment jQuery click event won't unbind
A cool. Didn't knowbind creates a new function every time. Seems like a lot of waste. Perhaps one should always make a reference variable when using bind? Sound like it would optimize the runtime.
Aug
5
asked jQuery click event won't unbind
Jul
1
awarded Nice Question
Jun
10
awarded Autobiographer
Jun
10
awarded Supporter
Jun
2
comment Getting ACF field value in functions.php
Is it the correct form id? Form id 1? gform_notification_{$form_id}
Jun
2
comment How to prevent json-data sent via form to have slashes added?
It is a hard coded normal form, as seen in question. Nothing more nothing less. It might be the case that POSTed forms always add slashes to quotes when received via PHP, I do not know, hence the question. If I check the console, the data do not have added slashes to it in the form data and request header.
Jun
2
revised How to prevent json-data sent via form to have slashes added?
Not duplicated since it asks why the slashes are added in the first place, not how to decode it after it's been added.
Jun
2
comment How to prevent json-data sent via form to have slashes added?
var_dump(get_magic_quotes_gpc()); // bool(false)
1 2 3 4 5