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

Talk about anything
User avatar
tidbit
Posts: 1272
Joined: 29 Sep 2013, 17:15
Location: USA

Re: « What's on your mind? »

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
nnnik
Posts: 4500
Joined: 30 Sep 2013, 01:01
Location: Germany

Re: « What's on your mind? »

16 Jul 2018, 02:35

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

Re: « What's on your mind? »

16 Jul 2018, 13:34

@nnnik It's been a migraine migration here lol
User avatar
tank
Posts: 3122
Joined: 28 Sep 2013, 22:15
Location: CarrolltonTX
Contact:

Re: « What's on your mind? »

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;
Telegram is the best way to reach me
https://t.me/ttnnkkrr
If you have forum suggestions please submit a
Check Out WebWriter
User avatar
joedf
Posts: 8940
Joined: 29 Sep 2013, 17:08
Location: Canada
Contact:

Re: « What's on your mind? »

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.
Image Image Image Image Image
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x16GB Kingston FURY Beast - DDR4 3200 MHz | [About Me] | [About the AHK Foundation] | [Courses on AutoHotkey]
[ASPDM - StdLib Distribution] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library]
User avatar
joedf
Posts: 8940
Joined: 29 Sep 2013, 17:08
Location: Canada
Contact:

Re: « What's on your mind? »

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 ...
Image Image Image Image Image
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x16GB Kingston FURY Beast - DDR4 3200 MHz | [About Me] | [About the AHK Foundation] | [Courses on AutoHotkey]
[ASPDM - StdLib Distribution] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library]
garry
Posts: 3740
Joined: 22 Dec 2013, 12:50

Re: « What's on your mind? »

20 Jul 2018, 11:36

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

Re: « What's on your mind? »

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
jballi
Posts: 723
Joined: 29 Sep 2013, 17:34

Re: « What's on your mind? »

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: 8940
Joined: 29 Sep 2013, 17:08
Location: Canada
Contact:

Re: « What's on your mind? »

21 Jul 2018, 10:07

Hoo maaannnn :facepalm: :'(
Image Image Image Image Image
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x16GB Kingston FURY Beast - DDR4 3200 MHz | [About Me] | [About the AHK Foundation] | [Courses on AutoHotkey]
[ASPDM - StdLib Distribution] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library]
garry
Posts: 3740
Joined: 22 Dec 2013, 12:50

Re: « What's on your mind? »

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: 4500
Joined: 30 Sep 2013, 01:01
Location: Germany

Re: « What's on your mind? »

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: 3740
Joined: 22 Dec 2013, 12:50

Re: « What's on your mind? »

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: 8940
Joined: 29 Sep 2013, 17:08
Location: Canada
Contact:

Re: « What's on your mind? »

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:
Image Image Image Image Image
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x16GB Kingston FURY Beast - DDR4 3200 MHz | [About Me] | [About the AHK Foundation] | [Courses on AutoHotkey]
[ASPDM - StdLib Distribution] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library]
garry
Posts: 3740
Joined: 22 Dec 2013, 12:50

Re: « What's on your mind? »

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: 3740
Joined: 22 Dec 2013, 12:50

Re: « What's on your mind? »

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.
garry
Posts: 3740
Joined: 22 Dec 2013, 12:50

Re: « What's on your mind? »

03 Aug 2018, 04:19

https://en.wikipedia.org/wiki/Ronald_Wayne
Ronald Wayne (born May 17, 1934) is an American retired electronics industry worker.
He co-founded Apple Computer (now Apple Inc.) with Steve Wozniak and Steve Jobs,
providing administrative oversight for the new venture.
However, he soon sold his share of the new company back to Jobs and Wozniak for $800 US dollars,
and later accepted $1,500 to forfeit any claims against Apple (in total, equivalent to $9,498 in 2017).

As of August 2, 2018, if Wayne had kept his 10% stake in Apple Inc.,
it would have been worth over $100 billion, making him the second richest man on earth.

Image
Last edited by garry on 04 Aug 2018, 00:48, edited 1 time in total.

Return to “Off-topic Discussion”

Who is online

Users browsing this forum: -Garfle- and 53 guests