« first day (3716 days earlier)      last day (386 days later) » 

12:56 PM
0
Q: Why can you set a value by dereferencing a pointer to it for int but not for struct? [wrong premise, I was doing it wrong]

Mr FryWhy is it that the following code works: // Valid 1 typedef struct { int integer; } MyStruct; int main() { MyStruct *foo = malloc(sizeof(*foo)); MyStruct bar; bar = *foo; bar.integer = 1; return 0; } But this doesn't: error: ‘foo’ is a pointer; did you mean to use ‘->’? // Inval...

 
 
1 hour later…
2:05 PM
0
Q: Syntax Error - invalid arithmetic operator in shell

Amin SZI run these commands in the shell directly without error: var=150 echo $var echo $(($var+2)) and this is the output: 150 152 but when I save these commands as script.sh file and run: ./script.sh this is the output: 150 +2")syntax error: invalid arithmetic operator (error to...

 
2:44 PM
-1
Q: Meta Avatars have white textures in Unity Build

matheusI really searched a long time for a solution of this problem, but I couldn't find it. Maybe one of you know, how I can fix this problem. I created a Unity VR project for the Oculus Quest 2 and downloaded the Meta Avatar Plugin. I followed this tutorial on YouTube. Everything is working fine durin...

 
 
7 hours later…

« first day (3716 days earlier)      last day (386 days later) »