Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

shadow_ray

Member
  • Content Count

    220
  • Joined

Awards

This user doesn't have any awards

1 Follower

About shadow_ray

  • Title
    Member

Profile Information

  • Location
    25544

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. @Rarespecial ctrl + space https://developer.android.com/studio/intro#code_completion
  2. Python standard (built in) lib. docs: https://docs.python.org/3/library/index.html Searching for "replace" gives me this: https://docs.python.org/3/search.html?q=replace&check_keywords=yes&area=default If you are looking for str.replace: https://docs.python.org/3/library/stdtypes.html?highlight=replace#str.replace If you need examples, often times you can find these on sites like: w3schools, tutorialspoint ect. For 3rd party libs: look for their website.
  3. https://developers.google.com/sheets/api
  4. tags are a thing Where is rockstar, brainf***, whitespace and the rest?
  5. I think database normalization is the keyword you are looking for, but I don't really understand your question. If one person can have multiple permissions (one to many relationship) then you need one more table. I wouldn't create 3 tables to store basically the same things... that's a lot of work and not even flexible solution. If you need to add new roles later, single table is the better way. Disclaimer: Not sure what are the security implications of this.
  6. Yes https://en.wikipedia.org/wiki/Pulse-width_modulation There is built in hardware support for this: https://www.arduino.cc/reference/en/language/functions/analog-io/analogwrite/ You can also simulate this in software "by using delay()": in a reasonably fast loop give power to the led in 50% of the time and it will get 50% less power on average. But i would prefer the PWM pins instead. // Something like this might work, but analog_write is preferable IMO unsigned short N = 2; for(unsigned short i = 0; true; ++i){ if(i%N == 0) led_on(); else led_off(); so
  7. What are the decent models around this range? From any manufacturer. 14-15.6", bright display 6+ hours of real battery life on light loads, let's say wifi + web browsing
  8. Cpython does not support multithreading as far as I know.
  9. Note that the Pi 4 does not support OpenCL, you have to use OpenGL 2.1/OpenGL ES 3.0 or Vulcan 1.0. OpenGL is a simpler API but this version doesn't even support compute shaders. The data has to go through the graphics pipline and can only be passed to the shaders as vertex or texture buffers and the output has to be a texture buffer as well. This makes it harder to use it for general purpose computations. With the new open source driver, Vulcan 1.0 compute shaders should work now, according to this article. The API is significantly more complex though.
  10. Integrated graphics is in a better position when it comes to data transfer. If the data is 4k aligned (and if it's in a well accessable format) then there is no need to copy. It can be mapped into GPU memory space quite quickly. On a mobile SoC it can be beneficial to do calculations on the GPU with a better performance to watt ratio. And nowadays lots of desktop chips are equipped with integrated gpus as well.
  11. Here is my two cents' worth... From a slightly different viewpoint than others before me. CPUs contain lots of complicated circuitry and caches to minimize latency and synchronize memory between cores. This takes away space and energy from execution units but the small amount they have will be super quick. GPU architectures contain hardware schedulers to quickly switch wraps/works items when the required data is not available so memory latency won't hurt them as much, but because of the huge amount of cores/execution units they need more memory throughput. Memory s
  12. Ohh sorry I switched up $Uri and $Driver in my mind. What i meant to say was that $Driver is probably not a string so it doesn't have the substring function.
  13. $Uri is probably not a string then. What's the result from $Uri.GetType() ?
  14. $href = $href.substring(1,$href.length -2) This will remove the first and last characters "hello" >> "ell"
×