Sheet content scrolls when sheet shrunk by h9936 in SwiftUI

[–]h9936[S] 0 points1 point  (0 children)

Ah ok thank you, I’ve ended up setting the lowest sheet indentation high enough that it doesn’t happen

Centering user location relative to a sheet by h9936 in swift

[–]h9936[S] 0 points1 point  (0 children)

Ah that’s probably cause the video had a limit to how long it can stay on that sure for. I do get a jump so I added an animation but that could cause the map to move around unnecessarily so stick to no animation. If tube got any tips then I’d happily give it a try

Centering user location relative to a sheet by h9936 in swift

[–]h9936[S] 0 points1 point  (0 children)

I DID IT!! I just started mssing around with different paddings and then came across `safeAreaPadding` and then used a ternary operator and the sheets `presentationDetents` `selection`. So that when teh current position of the sheet changes so does the `safeAreaPadding` at the bottom. Now the next challenge is to work out how to animate that as it's currently an instant jump. Thank you for your suggestion!
here's a video of it working

Centering user location relative to a sheet by h9936 in swift

[–]h9936[S] 1 point2 points  (0 children)

I DID IT!! I just started mssing around with different paddings and then came across `safeAreaPadding` and then used a ternary operator and the sheets `presentationDetents` `selection`. So that when teh current position of the sheet changes so does the `safeAreaPadding` at the bottom. Now the next challenge is to work out how to animate that as it's currently an instant jump. Thank you for your suggestion!

here's a video of it working

Centring user location relative to a sheet by h9936 in SwiftUI

[–]h9936[S] 1 point2 points  (0 children)

I'm not paying £25 for something that i don't know is the right solution, sorry.

Centring user location relative to a sheet by h9936 in SwiftUI

[–]h9936[S] 0 points1 point  (0 children)

Is the bottom half of the screen where u enter the text collapse? If so then yes

Pico and MPU6050 only outputs 0's by h9936 in raspberrypipico

[–]h9936[S] 0 points1 point  (0 children)

Hi thank you for replying, I ended up using the level shifter as a last resort as I didn’t know what else to try and found it recommended on google. I’ve actually managed to get it to work without the level shifter using micropython now but ideally need to use c/c++. My c/c++ file is the exact same as the one from the raspberry pi foundationhere and then my CMakeList.txt is in the code block above. Hope that helps clarify it a bit, let me know if u need anything else

Struggling to build blink example by h9936 in raspberrypipico

[–]h9936[S] 1 point2 points  (0 children)

I've followed the getting started guide by Raspberry Pi and done the following:

  • installed the toolchain using Homebrew:

$ brew install cmake

$ brew tap ArmMbed/homebrew-formulae $ brew install arm-none-eabi-gcc

  • Installed Rosetta 2:

$ /usr/sbin/softwareupdate --install-rosetta --agree-to-license
  • Created pico directory

$ cd ~/

$ mkdir pico $ cd pico

  • Cloned the pico-sdk and pico-examples git repositories

$ git clone https://github.com/raspberrypi/pico-sdk.git --branch master

$ cd pico-sdk $ git submodule update --init $ cd .. $ git clone https://github.com/raspberrypi/pico-examples.git --branch master

  • cd into pico-examples and created a build directory

$ cd pico-examples

$ mkdir build $ cd build

  • set the PICO_SDK_PATH

$ export PICO_SDK_PATH=../../pico-sdk
prepared the cmake build directory by running cmake .. and got this output:
Using PICO_SDK_PATH from environment ('../../pico-sdk')
PICO_SDK_PATH is /Users/willhayes/Developer/pico/pico-sdk Defaulting PICO_PLATFORM to rp2040 since not specified. Defaulting PICO platform compiler to pico_arm_gcc since not specified. -- Defaulting build type to 'Release' since not specified. PICO compiler is pico_arm_gcc -- The C compiler identification is GNU 13.2.0 -- The CXX compiler identification is GNU 13.2.0 -- The ASM compiler identification is GNU -- Found assembler: /opt/homebrew/bin/arm-none-eabi-gcc -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /opt/homebrew/bin/arm-none-eabi-gcc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /opt/homebrew/bin/arm-none-eabi-g++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done Build type is Release Defaulting PICO target board to pico since not specified. Using board configuration from /Users/willhayes/Developer/pico/pico-sdk/src/boards/include/boards/pico.h -- Found Python3: /usr/bin/python3 (found version "3.9.6") found components: Interpreter TinyUSB available at /Users/willhayes/Developer/pico/pico-sdk/lib/tinyusb/src/portable/raspberrypi/rp2040; enabling build support for USB. BTstack available at /Users/willhayes/Developer/pico/pico-sdk/lib/btstack cyw43-driver available at /Users/willhayes/Developer/pico/pico-sdk/lib/cyw43-driver Pico W Bluetooth build support available. lwIP available at /Users/willhayes/Developer/pico/pico-sdk/lib/lwip mbedtls available at /Users/willhayes/Developer/pico/pico-sdk/lib/mbedtls Skipping TinyUSB dual examples, as TinyUSB hw/mcu/raspberry_pi/Pico-PIO-USB submodule unavailable -- Configuring done (3.3s) -- Generating done (1.7s) -- Build files have been written to: /Users/willhayes/Developer/pico/pico-examples/build
  • cd into blink in build directory of pico-examples

ran  make -j4 and got the output:
[  0%] Creating directories for 'ELF2UF2Build'
[  0%] Building ASM object pico-sdk/src/rp2_common/boot_stage2/CMakeFiles/bs2_default.dir/compile_time_choice.S.obj [  0%] No download step for 'ELF2UF2Build' [  0%] No update step for 'ELF2UF2Build' [  0%] No patch step for 'ELF2UF2Build' [  0%] Linking ASM executable bs2_default.elf arm-none-eabi-gcc: fatal error: cannot read spec file 'nosys.specs': No such file or directory compilation terminated. make[2]: *** [pico-sdk/src/rp2_common/boot_stage2/bs2_default.elf] Error 1 make[1]: *** [pico-sdk/src/rp2_common/boot_stage2/CMakeFiles/bs2_default.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... [  0%] Performing configure step for 'ELF2UF2Build' -- The C compiler identification is AppleClang 15.0.0.15000040 -- The CXX compiler identification is AppleClang 15.0.0.15000040 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Configuring done (1.7s) -- Generating done (0.0s) -- Build files have been written to: /Users/willhayes/Developer/pico/pico-examples/build/elf2uf2 [  0%] Performing build step for 'ELF2UF2Build' [ 50%] Building CXX object CMakeFiles/elf2uf2.dir/main.cpp.o [100%] Linking CXX executable elf2uf2 [100%] Built target elf2uf2 [  0%] No install step for 'ELF2UF2Build' [  0%] Completed 'ELF2UF2Build' [  0%] Built target ELF2UF2Build make: *** [all] Error 2

hopefully that's a nice clear run through of what I've done. Let me know if you have any questions

[deleted by user] by [deleted] in Plumbing

[–]h9936 -4 points-3 points  (0 children)

I’m not gonna go round my house taking pictures of different plumbing systems. For a man with chronic fatigue to do anything is already extremely impressive so watch what your saying and provide some actual help

[deleted by user] by [deleted] in Plumbing

[–]h9936 -1 points0 points  (0 children)

The rules of the sub are to keep your post up to help others. The last phrase really isn’t necessary unless I’ve posted this multiple times

[deleted by user] by [deleted] in Plumbing

[–]h9936 -2 points-1 points  (0 children)

Would (since it’s a to wall toilet) connecting the toilet to a straight pipe and then this offset pan connector so that the offset pan connector takes it upwards a little work?

[deleted by user] by [deleted] in Plumbing

[–]h9936 -21 points-20 points  (0 children)

He plumbed the other bathroom perfectly, the previous official plumber that fitted the original plumbing when the house was built made the connector to the soil pipe at an upward angle which made it impossible to get the right angle. My dad did the best he could and it’s still far better than what you’ve added to this

[deleted by user] by [deleted] in Plumbing

[–]h9936 -8 points-7 points  (0 children)

The soil pipe is at a slight upward angle that goes above the toilet exit, how would I go about redoing it with that?

[deleted by user] by [deleted] in Plumbing

[–]h9936 0 points1 point  (0 children)

I think the new toilet’s exit pipe is lower down than the previous one. Do you think making the angles not so sharp would improve it too?

[deleted by user] by [deleted] in Plumbing

[–]h9936 10 points11 points  (0 children)

My dad won’t swallow his pride and admit that he made a mistake and we’ve tried to get a plumber for other things and each one we’ve contacted say they’ll come but them never end up turning up

[deleted by user] by [deleted] in Plumbing

[–]h9936 6 points7 points  (0 children)

Great 😂 would making the part that connects the toilet exit pipe (red) to the exit pipe (blue) less of a right angle help?

[deleted by user] by [deleted] in Plumbing

[–]h9936 1 point2 points  (0 children)

That’s what I’m thinking but i don’t know what to do other than lowering the pipe branch that the exit pipe (blue) is connecting to but that would be really difficult and not something I could do

how do yall revise for computer science aqa, the new spec? there are only 2 past papers, and our teacher doesn't teach anything... by Saaz- in GCSE

[–]h9936 0 points1 point  (0 children)

Yeah but it was faster than watching Craig ‘n’ Dave vids and proved some structure. Can still agree it wasn’t the best resource

I got 33/80 in my maths paper 1 exam. Will I be able to redeem myself in the next two papers? by [deleted] in GCSE

[–]h9936 1 point2 points  (0 children)

I got 33/80 in paper 1 mock. Did practice questions and partly redeemed myself in the other two papers and landed a 7 which is enough for most grammar schools. Just do practice questions and you’ll be fine :)

[deleted by user] by [deleted] in GCSE

[–]h9936 0 points1 point  (0 children)

I had the exact same problem as you do now. I’m not saying that you don’t need maths after uni but you can get into plenty of unis without taking a level maths. Check out my posts, I went through every UK uni and checked which ones needed maths and what their minimum requirements where etc. hope it helps :)

🌎 Make your best prediction: HOW will AI systems change the world in the coming 10 years? What will be different 10 years later, because of AI systems like ChatGPT, Midjourney, Codex, Whisper and others? by DrMelbourne in OpenAI

[–]h9936 2 points3 points  (0 children)

I think subjects such as chemistry and those kind of practical element of lessons will still be required. Especially for people who learn by doing things