« What's on your mind? » Topic is solved

Talk about anything
User avatar
TLM
Posts: 1323
Joined: 01 Oct 2013, 07:52

Re: « What's on your mind? »

Post by TLM » 11 Jul 2018, 14:53

@joedf lol
@larrykclark I heard it cures resistance to funyuns xDD
User avatar
tidbit
Posts: 1090
Joined: 29 Sep 2013, 17:15
Location: USA

Re: « What's on your mind? »

Post by tidbit » 11 Jul 2018, 15:52

"One of YouTube’s many rewind offices, where employees rewind videos by hand."

rofl
rawr. fear me.
*poke*
Is it December 21, 2012 yet?
User avatar
TLM
Posts: 1323
Joined: 01 Oct 2013, 07:52

Re: « What's on your mind? »

Post by TLM » 11 Jul 2018, 16:09

^^ hahaha
User avatar
joedf
Posts: 6486
Joined: 29 Sep 2013, 17:08
Facebook: J0EDF
Google: +joedf
GitHub: joedf
Location: Canada, Quebec
Contact:

Re: « What's on your mind? »

Post by joedf » 12 Jul 2018, 10:23

wow... :facepalm: :lol:
User avatar
nnnik
Posts: 3330
Joined: 30 Sep 2013, 01:01
Location: Germany

Re: « What's on your mind? »

Post by nnnik » 16 Jul 2018, 02:35

I just noticed that we need to follow the GDPR too.
Recommends AHK Studio
User avatar
TLM
Posts: 1323
Joined: 01 Oct 2013, 07:52

Re: « What's on your mind? »

Post by TLM » 16 Jul 2018, 13:34

@nnnik It's been a migraine migration here lol
User avatar
tank
Posts: 2373
Joined: 28 Sep 2013, 22:15
Facebook: charlie.simmons.7334
Google: ttnnkkrr
GitHub: ttnnkkrr
Location: Louisville KY
Contact:

Re: « What's on your mind? »

Post by tank » 17 Jul 2018, 08:34

nnnik wrote:I just noticed that we need to follow the GDPR too.
As we dont share data at all we dont really have any concerns with GDPR
We are troubled on every side‚ yet not distressed; we are perplexed‚
but not in despair; Persecuted‚ but not forsaken; cast down‚ but not destroyed;
https://www.facebook.com/ahkscript.org
If you have forum suggestions please submit a pull request
User avatar
joedf
Posts: 6486
Joined: 29 Sep 2013, 17:08
Facebook: J0EDF
Google: +joedf
GitHub: joedf
Location: Canada, Quebec
Contact:

Re: « What's on your mind? »

Post by joedf » 17 Jul 2018, 13:17

Yeah I think we are fine, also that the registration agreement explicitly mentions that any data inserted by the user is agreed to be stored on a database.
User avatar
joedf
Posts: 6486
Joined: 29 Sep 2013, 17:08
Facebook: J0EDF
Google: +joedf
GitHub: joedf
Location: Canada, Quebec
Contact:

Re: « What's on your mind? »

Post by joedf » 19 Jul 2018, 15:52

Somebody donate me some XP screenshots for the AHK Uninstallation page Im putting together... to lazy to setup a VM ...
garry
Posts: 1456
Joined: 22 Dec 2013, 12:50

Re: « What's on your mind? »

Post by garry » 20 Jul 2018, 11:36

Where is America ?
Image
User avatar
Nextron
Posts: 1218
Joined: 01 Oct 2013, 08:23
Location: Netherlands OS: Win7 x64 AHK: Unicode x32

Re: « What's on your mind? »

Post by Nextron » 20 Jul 2018, 12:10

That's mean. Who the hell knows where their country is on a map without Googling that shit. :mrgreen:

Or perhaps she's just really confused by Mercator map projections? :facepalm:
Image
User avatar
joedf
Posts: 6486
Joined: 29 Sep 2013, 17:08
Facebook: J0EDF
Google: +joedf
GitHub: joedf
Location: Canada, Quebec
Contact:

Re: « What's on your mind? »

Post by joedf » 20 Jul 2018, 13:49

:facepalm:
jballi
Posts: 497
Joined: 29 Sep 2013, 17:34

Re: « What's on your mind? »

Post by jballi » 20 Jul 2018, 23:37

garry wrote:Where is America ?
Just in case you missed the original segment on Jimmy Kimmel Live...

Can You Name a Country?
https://www.youtube.com/watch?v=kRh1zXFKC_o
User avatar
joedf
Posts: 6486
Joined: 29 Sep 2013, 17:08
Facebook: J0EDF
Google: +joedf
GitHub: joedf
Location: Canada, Quebec
Contact:

Re: « What's on your mind? »

Post by joedf » 21 Jul 2018, 10:07

Hoo maaannnn :facepalm: :'(
garry
Posts: 1456
Joined: 22 Dec 2013, 12:50

Re: « What's on your mind? »

Post by garry » 21 Jul 2018, 10:24

@jballi , thank you for the youtube link ( Jimmy Kimmel )

John Cleese on Brexit, newspapers and why he's leaving the UK - BBC Newsnight
Watch the full interview between John Cleese and Emily Maitlis where the Monty Python star explains why newspapers have driven him to the Caribbean.
( can't he read newspaper in internet ? ) , maybe avoid taxes .... I don't make jokes, I just point them out...
https://www.youtube.com/watch?v=ULfqhCNHQPA
User avatar
nnnik
Posts: 3330
Joined: 30 Sep 2013, 01:01
Location: Germany

Re: « What's on your mind? »

Post by nnnik » 28 Jul 2018, 04:13

I swear this will be the last time that I say: "Hey lets just use a little MCode to make things faster".

Things that tick me off about MCode entry 1 chapter 20 10th book:
Guess which of the following functions results in less machine code:

Code: Select all

//calculate the sigmoid of the values of the matrix mIn and put them into mOut
//to use the same matrix for input and output you can set the input to the output
void sigmoid(double* mOut, double* mIn, unsigned int w, unsigned int h) {
	//using the tailor series to calculate e^x
	for (unsigned int i =0; i<w*h; i++) {
		double x = mIn[i];
		double result = x + 1;
		double dividend = x;
		double divisor = 1;
		for (double i=2; i<66; i++) { //we could increase precision especially for larger x by increasing the limit here
		//the effect is not major or neccessary though
			dividend *= x;
			divisor *= i;
			result += dividend/divisor;
		}
		mOut[i] = result/(result+1);
	}
}

//calculates the derivative of sigmoid of all values of mIn and puts them into mOut
//assumes that the sigmoid function has run over the input matrix
//to use the same matrix for input and output you can set the input to the output
void sigmoidDerivative(double* mOut, double* mIn, unsigned int w, unsigned int h) {
	for (unsigned int i=0; i<w*h; i++) {
		double var = mIn[i];
		mOut[i] = var * (1 - var);
	}
}
If you guessed the second one than you are correct.
Due to optimization the compiler found 4 different ways to handle the function more efficiently resulting in a really bloated function.
BTW the result of the first one is:

Code: Select all

mov	 ecx, DWORD PTR _w$[esp-4]
imul	 ecx, DWORD PTR _h$[esp-4]
test	 ecx, ecx
je	 SHORT $LN3@sigmoid
mov	 edx, DWORD PTR _mIn$[esp-4]
mov	 eax, DWORD PTR _mOut$[esp-4]
sub	 edx, eax
movsd	 xmm4, QWORD PTR __real@3ff0000000000000
movsd	 xmm7, QWORD PTR __real@4050800000000000
npad	 9
$LL4@sigmoid:
movsd	 xmm6, QWORD PTR [edx+eax]
movaps	 xmm5, xmm4
movsd	 xmm2, QWORD PTR __real@4000000000000000
movaps	 xmm1, xmm6
addsd	 xmm1, xmm4
movaps	 xmm3, xmm6
npad	 6
$LL7@sigmoid:
movaps	 xmm0, xmm2
mulsd	 xmm3, xmm6
mulsd	 xmm5, xmm0
addsd	 xmm2, xmm4
movaps	 xmm0, xmm3
comisd	 xmm7, xmm2
divsd	 xmm0, xmm5
addsd	 xmm1, xmm0
ja	 SHORT $LL7@sigmoid
movaps	 xmm0, xmm1
addsd	 xmm0, xmm4
divsd	 xmm1, xmm0
movsd	 QWORD PTR [eax], xmm1
add	 eax, 8
sub	 ecx, 1
jne	 SHORT $LL4@sigmoid
$LN3@sigmoid:
; Line 18
ret	 0
Thats actually pretty small and it works fine
In comparison to that the second one is a little bit larger:

Code: Select all

mov	 ecx, DWORD PTR _w$[esp-4]
xor	 edx, edx
imul	 ecx, DWORD PTR _h$[esp-4]
push	 ebx
mov	 ebx, DWORD PTR _mOut$[esp]
push	 esi
mov	 esi, DWORD PTR _mIn$[esp+4]
mov	 DWORD PTR _w$[esp+4], ecx
test	 ecx, ecx
je	 $LN16@sigmoidDer
push	 ebp
push	 edi
cmp	 ecx, 8
jb	 $LN9@sigmoidDer
lea	 eax, DWORD PTR [esi-8]
lea	 eax, DWORD PTR [eax+ecx*8]
lea	 edi, DWORD PTR [ebx-8]
lea	 edi, DWORD PTR [edi+ecx*8]
cmp	 ebx, eax
ja	 SHORT $LN10@sigmoidDer
cmp	 edi, esi
jae	 $LN9@sigmoidDer
$LN10@sigmoidDer:
movaps	 xmm2, XMMWORD PTR __xmm@3ff00000000000003ff0000000000000
lea	 eax, DWORD PTR [ebx+16]
mov	 ebp, ecx
lea	 edi, DWORD PTR [esi+48]
mov	 ecx, esi
and	 ebp, -8			; fffffff8H
sub	 ecx, ebx
mov	 DWORD PTR tv1327[esp+12], ecx
mov	 ecx, DWORD PTR _w$[esp+12]
mov	 ebx, DWORD PTR tv1327[esp+12]
$LL4@sigmoidDer:
movups	 xmm1, XMMWORD PTR [edi-48]
add	 edx, 8
movaps	 xmm0, xmm2
subpd	 xmm0, xmm1
mulpd	 xmm0, xmm1
movups	 xmm1, XMMWORD PTR [ebx+eax]
movups	 XMMWORD PTR [eax-16], xmm0
movaps	 xmm0, xmm2
subpd	 xmm0, xmm1
mulpd	 xmm0, xmm1
movups	 xmm1, XMMWORD PTR [edi-16]
movups	 XMMWORD PTR [eax], xmm0
movaps	 xmm0, xmm2
subpd	 xmm0, xmm1
mulpd	 xmm0, xmm1
movups	 xmm1, XMMWORD PTR [edi]
add	 edi, 64			; 00000040H
movups	 XMMWORD PTR [eax+16], xmm0
movaps	 xmm0, xmm2
subpd	 xmm0, xmm1
mulpd	 xmm0, xmm1
movups	 XMMWORD PTR [eax+32], xmm0
add	 eax, 64			; 00000040H
cmp	 edx, ebp
jb	 SHORT $LL4@sigmoidDer
mov	 ebx, DWORD PTR _mOut$[esp+12]
$LN9@sigmoidDer:
cmp	 edx, ecx
jae	 $LN22@sigmoidDer
movsd	 xmm2, QWORD PTR __real@3ff0000000000000
mov	 eax, ecx
sub	 eax, edx
cmp	 eax, 4
jb	 $LC17@sigmoidDer
mov	 eax, esi
lea	 ebp, DWORD PTR [esi+24]
sub	 eax, ebx
lea	 edi, DWORD PTR [edx+1]
mov	 DWORD PTR tv1325[esp+12], eax
lea	 ebp, DWORD PTR [ebp+edx*8]
mov	 esi, DWORD PTR tv1325[esp+12]
lea	 edi, DWORD PTR [ebx+edi*8]
mov	 eax, ecx
sub	 eax, edx
sub	 eax, 4
shr	 eax, 2
inc	 eax
lea	 edx, DWORD PTR [edx+eax*4]
npad	 11
$LL18@sigmoidDer:
movaps	 xmm0, xmm2
subsd	 xmm0, QWORD PTR [ebp-24]
mulsd	 xmm0, QWORD PTR [ebp-24]
movsd	 QWORD PTR [edi-8], xmm0
movaps	 xmm0, xmm2
subsd	 xmm0, QWORD PTR [esi+edi]
mulsd	 xmm0, QWORD PTR [esi+edi]
movsd	 QWORD PTR [edi], xmm0
movaps	 xmm0, xmm2
subsd	 xmm0, QWORD PTR [ebp-8]
mulsd	 xmm0, QWORD PTR [ebp-8]
movsd	 QWORD PTR [edi+8], xmm0
movaps	 xmm0, xmm2
subsd	 xmm0, QWORD PTR [ebp]
mulsd	 xmm0, QWORD PTR [ebp]
add	 ebp, 32			; 00000020H
movsd	 QWORD PTR [edi+16], xmm0
add	 edi, 32			; 00000020H
sub	 eax, 1
jne	 SHORT $LL18@sigmoidDer
mov	 esi, DWORD PTR _mIn$[esp+12]
$LC17@sigmoidDer:
cmp	 edx, ecx
jae	 SHORT $LN22@sigmoidDer
sub	 esi, ebx
lea	 eax, DWORD PTR [ebx+edx*8]
sub	 ecx, edx
$LC8@sigmoidDer:
movaps	 xmm0, xmm2
subsd	 xmm0, QWORD PTR [esi+eax]
mulsd	 xmm0, QWORD PTR [esi+eax]
movsd	 QWORD PTR [eax], xmm0
add	 eax, 8
sub	 ecx, 1
jne	 SHORT $LC8@sigmoidDer
$LN22@sigmoidDer:
pop	 edi
pop	 ebp
$LN16@sigmoidDer:
pop	 esi
pop	 ebx
ret	 0
And why is that important?
Well because the second function sometimes doesnt work with specific parameters.
So there is an execution path somewhere inside this function that somehow does something that doesnt work in MCode.
So it might be an instruction that doesnt work with unaligned adresses or an instruction that requires a special kind of relocation.
Or maybe it's just a bug in my newly created MCode function or my newly created MCode compiler.
Or maybe the compiler assumes a special kind of adress range.
/rant
Recommends AHK Studio
garry
Posts: 1456
Joined: 22 Dec 2013, 12:50

Re: « What's on your mind? »

Post by garry » 01 Aug 2018, 16:31

http://www.gmanetwork.com/news/news/nat ... ary/story/

Duterte saves smuggled Hummers for police, military

Published August 1, 2018 9:52am Philippines

President Rodrigo Duterte on Tuesday made an exception to his policy of destroying smuggled luxury vehicles as a deterrent to smuggling.
In a speech in Pasay City, Duterte said he plans to distribute to the police and military the over 10 smuggled Hummers
that were supposed to be destroyed during his visit to Port Irene in Sta. Ana, Cagayan last Monday.
A total of 68 smuggled luxury vehicles with an estimated value of P277.96 million and eight motorbikes including Harley Davidson, Triumph,
and a Chopper valued at P19.57 million were wrecked through backhoe and bulldozer before Duterte and other government officials at Port Irene.
User avatar
joedf
Posts: 6486
Joined: 29 Sep 2013, 17:08
Facebook: J0EDF
Google: +joedf
GitHub: joedf
Location: Canada, Quebec
Contact:

Re: « What's on your mind? »

Post by joedf » 02 Aug 2018, 13:09

@nnnik damn... :facepalm:
@garry Yeah, they could also keep the drugs in case some of the cops get bored and need it. :HeHe:
garry
Posts: 1456
Joined: 22 Dec 2013, 12:50

Re: « What's on your mind? »

Post by garry » 02 Aug 2018, 13:47

@joedf
Yeah, they could also keep the drugs in case some of the cops get bored and need it
Duterte drug war :
https://en.wikipedia.org/wiki/Philippine_Drug_War
https://en.wikipedia.org/wiki/Extrajudi ... hilippines
garry
Posts: 1456
Joined: 22 Dec 2013, 12:50

Re: « What's on your mind? »

Post by garry » 02 Aug 2018, 14:16

find X <<< here is it
Bonn (dpo) - This news is guaranteed to delight maths grouches all over the world!
Determining the value of x is the goal in countless mathematical problems and now the world-renowned Max Planck Institute for Mathematics has finally fixed it at 5 exactly.
Experts estimate that every year, this could save up to one billion hours of calculation work worldwide ....
https://www.the-postillon.com/2017/04/value-of-x.html

Image
Last edited by garry on 03 Aug 2018, 04:26, edited 2 times in total.
Post Reply

Return to “Offtopic”