Sensor does not initalize correctly if I2C LCD is initalized first

#include "WiFi.h"
#include <LiquidCrystal_I2C.h>
#include "DHT20.h"
#define DHTDPIN 23
#define DHTCPIN 32
#define BPIN 13

int lcdc = 16;
int lcdr = 2;
bool bpress = false;
bool bon = true;

LiquidCrystal_I2C lcd(0x27, lcdc, lcdr);
DHT20 DHT;

void handleButtonPress() {
  bpress = true;
}

void setup() {
  lcd.init();
  DHT.begin(DHTDPIN, DHTCPIN);
  lcd.backlight();
  lcd.clear();
  lcd.setCursor(0, 0);
 /* Connect to WiFi
 ...
 */
 attachInterrupt(digitalPinToInterrupt(BPIN), handleButtonPress, FALLING);
}

void loop() {
  int status = DHT.read();
  if (bpress) {
    Serial.println(bpress);
    if (bon) {
      return;
    }
    else {
      lcd.backlight();
      delay(2000);
      lcd.noBacklight();
    }
  }
  lcd.setCursor(0, 0);
  lcd.print("Temp. (C): ");
  lcd.setCursor(11,0);
  lcd.print(DHT.getTemperature());
  delay(1000);
  Serial.println("redraw");
  switch (status)
    {
      case DHT20_OK:
        Serial.print("OK");
        break;
      case DHT20_ERROR_CHECKSUM:
        Serial.print("Checksum error");
        break;
      case DHT20_ERROR_CONNECT:
        Serial.print("Connect error");
        break;
      case DHT20_MISSING_BYTES:
        Serial.print("Missing bytes");
        break;
      case DHT20_ERROR_BYTES_ALL_ZERO:
        Serial.print("All bytes read zero");
        break;
      case DHT20_ERROR_READ_TIMEOUT:
        Serial.print("Read time out");
        break;
      case DHT20_ERROR_LASTREAD:
        Serial.print("Error read too fast");
        break;
      default:
        Serial.print("Unknown error");
        break;
    }
}

If I use this Code, the LCD will display the Text it should, but the Sensor values will result in an Time Out. If I init the DHT first and the LCD after that, the DHT will read correctly but the LCD will fail to init. A delay between the two commands does not help. Any advice?

Thanks for reporting this issue, I will look into it asap but it might take a few days.

A minor point for your buttonpress
bool bpress = false;
==>
volatile bool bpress = false;

Which board are you compiling?
Don't know the details of the LCD library, but does it not need a Wire.begin()?

I'm using a ESP32. The LCD library seems to not need a Wire.begin() at least none of the Examples use it.

Makes sense, if it was needed it should never work.
Do you have pull ups in place?

Yes, however not for the Display nor the DHT. I only use the internal for the Button.

The SDA and SCL need pull ups to improve signal quality.
The DHT lib has a function isConnected.
Can you see the dht ?

In the example? Yes. In my Code? No. Also I can only see the Sensor if I don't use pull ups. I think the ones I used are too strong. Which values should they have for the SDA & SCL?

Depends on length of the wires.
4k7 is a good value for up to 1meter (4 feet)

I will try that. But why can I, even if I don't use pull ups, init the Sensor correctly if alone and not if combined with the LCD? That seems pretty strange to me. Although I'm not experienced with such things

The initialization is often a short communication so chances it fails are smaller. But no it does not explain the problem that you have.
I have no clue yet and must exclude some common problems and try to understand what happens. Software wise I do not see a cause yet.
An option you may also try is to give the LCD a separate 5V powder supply. Do connect GND from lcd and esp as common reference.
It could be a "simple" power problem.

I tried both a stronger power adapter and to power the LCD seperately, both of which did not work so this does not seem to be a power issue.

Sorry, had other priorities today. No idea what is the cause so far. To be continued later this week.

If you have both devices connected to your board, and you run an I2C scanner are both devices detected?

display at 0x27
DHT at 0x38

just before the line
lcd.print(DHT.getTemperature());

Add a call to check connectedness.
if (! DHT.isConnected())
{
  Serial.println("connect failed");
}
lcd.print(DHT.getTemperature());

If connection works, you might try a DHT.resetSensor(); call
Still no clue

If you have both devices connected to your board, and you run an I2C scanner are both devices detected?

display at 0x27
DHT at 0x38

Sorry for taking so long. I tried the default WireScan Sketch and I can only see the LCD. If I disconnect the LCD and have only the DHT connected, it reports that no I2C Device is found, which is even weirder as your DHT Example-Sketch works as normal so the Sensor shouldn't be broken or anything. DHT.isConnected() returns 0 both in setup() and loop()
DHT.resetSensor() does not help either.

Mmm, that makes the DHT prime suspect.
if you start setup() with a delay(5000) to give the devices some extra time to "wake up".
I am gonna read the datasheet if it mentions something that could explain the behaviour.

I tried the delay(5000) in the first line after setup() and it seems to be ignoring that and skips right to connecting to WiFi, at least if I just reset the ESP32. If I do a full power cycle however it does seem to wait, but it still fails in a reading time out.
And I don't know if it's important but the DHT32 is connected to the 3.3V Pin but according to the Datasheet that should be enough, if not, I could try 5V

DHT32 ? slip of the pen 😁

3V3 should work.

100ms wait seems mandatory,
you might need to call resetSensor() or readstatus()

So if I understand this correctly I need to wait 100ms after power-on and wait until readStatus() returns 0x18? And even if I don't, shouldn't it still work because I wait 5000ms before I do anything?
    Serial.println(DHT.readStatus());
    delay(100);
  }

now it just hangs in the while loop. Serial.println(DHT.readStatus()); just returns 255

delay(500);
  // put your setup code here, to run once:
  Serial.begin(115200);
  lcd.init();
  lcd.backlight();
  DHT.begin(DHTDPIN, DHTCPIN);
  lcd.setCursor(0,0);
  while(DHT.readStatus() != 0x18){
    lcd.print(".");
    Serial.println(DHT.resetSensor());  //  <<<<<<<<<<<
    delay(100);
  }

try this

Nothing more seen in the datasheet that I could associate with observed behavior.

Can you test this minimalistic version, it tries to read the DHT before and after the initialization of the LCD.

#include <LiquidCrystal_I2C.h>
#include "DHT20.h"

int lcdc = 16;
int lcdr = 2;

LiquidCrystal_I2C lcd(0x27, lcdc, lcdr);
DHT20 DHT;

void setup()
{
  Serial.begin(115200);
  Serial.println(__FILE__);
  delay(100);

  //  First read a temperature measurement.
  DHT.begin(DHTDPIN, DHTCPIN);

  int status = DHT.read();
  Serial.println(status);
  Serial.print(DHT.getTemperature());

  // Then we initialize the LCD
  lcd.init();

  lcd.backlight();
  lcd.clear();
  lcd.setCursor(0, 0);
  lcd.print("Hello world");

  status = DHT.read();
  Serial.println(status);
  Serial.print(DHT.getTemperature());
}

void loop()
{
}

20:22:45.359 -> /tmp/arduino_modified_sketch_805545/sketch_aug01a.ino
20:22:45.458 -> -15
20:22:45.458 -> 0.000
20:22:46.583 -> 23.27

It seems that it only reads the temperature correctly after the LCD init, but even after a reset the LCD-Code didn't seem to run/work, as the LCD did not clear. I also did a full power cycle, which did clear the LCD, but didn't display anything and the LCD displayed full blocks in the first row, meaning that it didn't initalize.

I normally use this I2C LCD library?
Is that the same as you?

No, I currently use this one I will try to set the other one up and try if that works.

No, I currently use this one I will try to set the other one up and try if that works.

Not familiar with that one, it is moved to GitLab, but when I follow the link it loops in some sign in procedure

Well apart from me not getting the Backlight to work correctly and that if I try to print something on the LCD the, I can still see that if I use the while loop, it still returns 255, and if not that the reading fails, still with a time out.

Not familiar with that one, it is moved to GitLab, but when I follow the link it loops in some sign in procedure

If I try to login into GitLab with GitHub, it does work technically, but it just returns a 404

https://forum.arduino.cc/t/liquidcrystal-i2c-not-compatibile/1153964
just a side note, the library is discussed on the forum

Now I can't get the LCD to run either, but to be fair that's probably my fault 😅. This is the code I use now
  delay(500);
  Serial.begin(115200);
  lcd.begin(lcdc,lcdr);
  lcd.home();
  lcd.backlight();
  DHT.begin(DHTDPIN, DHTCPIN);

When I use the while loop it still prints 255 and if I don't use the while loop the LCDs backlight flashes a few times and when I'm lucky the second Block on the first row blinks. In the serial console I still see that the DHT readings time out :/

Think you should start with running some examples from the LCD lib.
Just to get some hands on experience. FFor instance I noticed the backlight is controlled slightly different.

Okay. I try to use it for a little bit and if I feel I experimented enough I will try to add the DHT component to the code. I should report the results here within a few days.

So I tried this library and it just doesn't work. Apart from not getting the Backlighting to work (which I solved by wiring it manually) it doesn't produce any output at all except from a blinking cursor. It may work for other non I2C LCDs or even other I2C LCDs but not with mine. I tried using the (Arduino)-Library from the store where I brought the LCD (here), which at least got the LCD to work again. It does not look like it differs a lot from the one I used originally, but some stuff changed like instead of lcd.init() I have to use lcd.begin(). It still only works the device that was initalized first :/

Both libraries call Wire.begin() in their initialization. Could that interfere somehow?
Can you comment Wire,begin() in one of the libs and call that one as second?

I tried it both ways and even commenting it out in both libs and put the Wire.begin() in my Code after the initial delay(500) resulting in no change. Could it be an issue that your lib is object oriented (at least i think that's what the -> mean) and the other is not?

If that's not the issue I could look if I have some sort of other sensor/part for the esp32 which requires a library and try to combine it with the DHT/LCD (e.g. DHT and IR-Sensor or LCD and IR-Sensor) to see if that works. If it does, there should be a problem with the LCD/DHT lib

I think I also have an Arduino somewhere. I could try the LCD and DHT on there and see if that works

Think I have a clue.
Do the LCD and the DHT use the same hardware pins?
They should as they both should be on the Wire bus.
The DHT.begin(DHTDPIN, DHTCPIN); call resets the pins of the Wire object, causing the LCD to fail.
So

Use the same pins for the LCD and the DHT20
Use DHT.begin() without pin parameters.

Please give it a try

Think on the ESP32 the SDA and SCL are 21 and 22 (from my head)?

That's what it says in your example at least. Give me a sec I'll try that.

Welcome,
So no bug in either library, the merging of functionality caused the Wire object to initialize in "two different ways"
Learned something today.


extending/extending.md

原文：https://github.com/servicemesher/envoy/tree/master/extending/extending.md

认领


Scripting in games

Any game could have a set of Lua scripts that would be assigned per game instead of per engine. This could enable extra flexibility for value configuration.
Example:
Take this from <game>/config.json:
"sphereBehaviour":{
   "collisionSpeed":-200
}

Instead, this could be an equivalent function in, let's say, <game>/scripts/sphereBehaviour.lua:
function collisionSpeed(comboLv, chainLv)
    return comboLv * -200
end

UI could be scripted in a similar way. However, this would need to have the game event system reevaluated and most of UI system functions should be provided in order to make game UI script files as simple as possible.
This would also allow to configure some tough formulas that are hard to be represented in JSON, such as functions whether a given match should spawn a coin or a powerup.
This feature will be implemented late, probably during the process of writing an engine documentation or even later.

Stub implemented in https://github.com/jakubg1/OpenSMCE/commit/a21e5ad06e6606a9d5718b61a9900b7e99641c02

Note that UI script support, which was already implemented in the engine, does a lot in terms of custom scripting.

More robust variable definitions will come at some point, with the addition of Expressions. Game scripting as it is right now will soon be deprecated and removed (excluding UI script).
Closing as partially implemented.


How to release memory?

Hi ,it really helps me a lot.But when I convert a lot times,it takes some memory.I can't free these memory.Can you help me?

The memory is released after the conversion is done. Can you elaborate your issue, please?

I called the method:
  [NSGIF optimalGIFfromURL:videoURL loopCount:0 fileName:[filename stringByDeletingPathExtension]  completion:^(NSURL *GifURL) {
        }];

in GCD
     dispatch_queue_t queue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0);

    dispatch_group_t group = dispatch_group_create();

    dispatch_group_async(group, queue, ^{

           //call the mothod here

});

      dispatch_group_notify(group, dispatch_get_main_queue(), ^{
      NSLog(@"finished");
    });

When I finish this task,the memory is not freed.Even if I pop this Viewcontroller.

No need to wrap it in an asynchronous block. The library already handles all power consuming task on a different thread.
Is the conversion finished when you are popping the controller?

Yes,the conversion is finished.The reason why I write like this  is that there are other tasks in  gcd group and I want to know when all  tasks are finished.

I've been getting memory warnings when the video is more than just a few seconds. I wonder if it's related.

Yes. The memory seems not to be released once the conversion happens :/ crashes after a few conversions.

I can also confirm a memory leak. For me it adds about the same amount of memory as the size of the gif per conversion.

I posted a $100 bounty for a fix to this bug, available to anyone (including the original author).
https://www.bountysource.com/issues/31041391-gif-conversion-creates-memory-leak

Follow #9.

ok

Solve this bug please memory leak is big problem

@aiyub007 – I don't have the time to properly address this issue. Solving this would require a rebuild from scratch of the GIF instead of building it on top of selected frames from the video. If you need this fixed by any means, you can hire me to do that.


Template test pipeline handling of terraform tests

Terraform tests in the template testing pipeline currently fail because there's no easy way to ensure that the az CLI is logged in properly inside the DevContainer context.
Possible approaches include:

Add exclusion regex to the matrix generation script and pass that configuration down from templates that call it
Changes to azd template list to exclude certain templates (terraform in this case)... probably not a good idea
Hardcoding the exclusion into matrix generation (someone would have to go read the matrix generation script to understand the intent there and would be surprised to find this special case hardcoded in)

Original discussion: https://github.com/Azure/azure-dev/pull/4522#issuecomment-2463045127

@danieljurek @ellismg is there an option to just run the terraform ones non-DevContainer based? Given that we are trying to validate for terraform integration with azd hasn't regressed?


Add gatling support

https://gatling.io/
It uses it's own runner at the moment.

This may require our own gradle plugin however.

I think we can close this as unneeded.


Fix Debugger exercise termmines parse_int function

Going through the new Debugger documentation I noticed the example code did not work as expected.
The parse_int() function always returned zero.
With this small patch it works.

Oops! Thanks.


Extension stuck on "Activating..."

Type: Bug
Half of the times I open my project the extension is stuck on Activating.... Disabling and enabling, then restarting sometimes fixes it. I'm not sure what it's doing.
Extension version: 1.24.0
VSCodium version: VSCodium 1.89.1 (a045dcfceda27f896936bfd8cbf524f6a93a2f46, 2024-05-09T18:30:40.866Z)
OS version: Linux x64 6.9.2-arch1-1
Modes:

System Info

Item
Value

CPUs
AMD Ryzen 9 5900X 12-Core Processor (24 x 4453)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: disabled_offdirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okskia_graphite: disabled_offvideo_decode: enabledvideo_encode: disabled_softwarevulkan: disabled_offwebgl: enabledwebgl2: enabledwebgpu: disabled_off

Load (avg)
15, 9, 6

Memory (System)
31.27GB (18.29GB free)

Process Argv
--unity-launch

Screen Reader
no

VM
0%

DESKTOP_SESSION
gnome

XDG_CURRENT_DESKTOP
GNOME

XDG_SESSION_DESKTOP
gnome

XDG_SESSION_TYPE
wayland

Without more information, I can't determine anything

How can I obtain more information? I tried to find logs but I don't see any option about logs. I have a pretty large project with many subprojects (most are not used) if that helps: https://github.com/zrythm/zrythm


feat: Remote to local copy to

We rewrite any CopyTo plan (in the remote planner) that has a copy to
local destination and replace it with the source query. The rewriter
collects the format and destination of the copy to plan and we wrap the
SendRecvJoinExec with a CopyToExec for local.
Fixes #1600

This doesn't work since the logical plan and physical plan both have different schemas which causes the planner to error...
Need to figure that part out.

[UPDATE] PR ready for review:
We rewrite any CopyTo plan (in the remote planner) that has a copy to
local destination and replace it with the source query. The rewriter
collects the format and destination of the copy to plan and we wrap the
SendRecvJoinExec with a CopyToExec for local.

I think the rewrite makes sense for now to get this working, but like with the local table stuff, I think it's likely we'll need to move this into physical optimization.

Yup! For now, I just wanted to get this working.


BaseJob to JobV1

@bsiegelwax commented on Thu Oct 20 2022
Running the first code block on the page https://qiskit.org/documentation/experiments/tutorials/readout_mitigation.html results in the error:
ImportError: cannot import name 'BaseJob' from 'qiskit.providers' (C:\Users\bsieg\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\qiskit\providers_init_.py)
Jack Woehr's response in Qiskit Slack is "Change all refs to BaseJob to JobV1 including in the imports"

@nonhermitian commented on Thu Oct 20 2022
This is more of an issue for qiskit-experiments, but needs someone with admin access to both repos to move it.  Taking a look at the tutorial shows a couple of issues there, e.g. the individual mitigation matrices do not make any sense, so I am not sure how much that particular example is maintained.

@bsiegelwax Have you tried running with the most up-to-date Qiskit Experiments on the main branch? This issue should already be resolved.


Show the correct url when clicking on a node that is a child of a link

Short description
This pr fixes the tinymce link popup to show the correct url when the selected element is just a child of a link.
Proposed changes

Make the getAnchor function walk the node hierarchy until it finds an anchor element

Resolved issues
Fixes: #912

I just checked and the original link plugin handled this case correctly, by only changing the parent elements url. I think it makes sense to include that in this pr for consistency, but I can also open a new issue and make a separate pr. What do you think?

I just checked and the original link plugin handled this case correctly, by only changing the parent elements url. I think it makes sense to include that in this pr for consistency, but I can also open a new issue and make a separate pr. What do you think?

I think both is fine, do whatever you prefer.

Now the text field in the link popup is disabled if the current link contains anything else other than text, because the popup can only handle text. This also includes simple styling, for example editing a link with a cursive word disables the text field.
Also clicking unlink on a link that has nested elements should keep those elements and only delete the link itself now.


Snapshots of first bin are not shown

When working on your first bin (as a registered and logged in user) and making a few snapshots of what you are working on, those are not shown when looking at the 'my bins' page. Only after creating a new bin the previous bin is shown with its snapshots.

This is after the creation of the second bin, i don't have a screenshot of the first bin during the snapshots, but that was an empty 'my bins' screen, so not really useful here.

This is "very first" bin for a user, right? I know why this is, it's kind of an edge case (because the history is only loaded once for the user, and the bin doesn't exist when it loads for the first time).

Indeed it is, and I was aware of it being an edge case and in a way making sense. But maybe trigger the history when snapshots are created?


Feature/TERRA3-30_CloudWatch_alert

…ization

SNS subscription can take only one E-mail address per subscription (checked in the console as well) because each email has to be confirmed from client side. Due to that reason, we will have as many subscriptions as many email addresses.

This PR is included in version 0.12.0 :tada:


Can't open new issues in getferdi/recipes

I'm not entirely sure whether this counts as a bug however I don't seem to be able to create a new issue in getferdi/recipes. I can acces this address: https://github.com/getferdi/recipes/issues/new/choose , but after clicking at one of the buttons i get redirected to 404 page.
Since I haven't found any other ways of contacting you I'm creating issue here.
The recipes I want to request are:

Microsoft Word (https://www.office.com/launch/word)
Microsoft Excel (https://www.office.com/launch/excel)
Microsoft PowerPoint (https://www.office.com/launch/powerpoint)
Microsoft Visio (https://www.office.com/launch/visio)
Microsoft Forms (https://www.office.com/launch/forms)
Skillshare (https://www.skillshare.com)
SourceForge (https://sourceforge.net)
YouTube (https://www.youtube.com/)

Receiving same error.
In lieu of link working, one service request:

Reclaim.ai - time blocking app


How can I customize the detail page?

For example, I wanted the post title to be bold. How can I do that?

You mean the HTML content? You can find the stylesheets in the WordPressUWP/Assets/Web folder.


Test errors

@opoudjis I got errors when running RSpec tests:
Failures:

  1) Asciidoctor::RFC::V2::Converter processes Davies template with equivalent text
     Failure/Error: expect(norm(File.read("spec/examples/davies-template-bare-06.xml.orig.txt"))).to eq(norm(File.read("spec/examples/davies-template-bare-06.xml.txt")))

     Errno::ENOENT:
       No such file or directory @ rb_sysopen - spec/examples/davies-template-bare-06.xml.orig.txt
     # ./spec/asciidoctor/rfc/v2/text_spec.rb:70:in `read'
     # ./spec/asciidoctor/rfc/v2/text_spec.rb:70:in `block (2 levels) in <top (required)>'
     # ./spec/spec_helper.rb:118:in `block (2 levels) in <top (required)>'

  2) Asciidoctor::RFC::V2::Converter processes MIB template with equivalent text
     Failure/Error: expect(norm(File.read("spec/examples/mib-doc-template-xml-06.xml.orig.txt"))).to eq(norm(File.read("spec/examples/mib-doc-template-xml-06.xml.txt")))

     Errno::ENOENT:
       No such file or directory @ rb_sysopen - spec/examples/mib-doc-template-xml-06.xml.orig.txt
     # ./spec/asciidoctor/rfc/v2/text_spec.rb:75:in `read'
     # ./spec/asciidoctor/rfc/v2/text_spec.rb:75:in `block (2 levels) in <top (required)>'
     # ./spec/spec_helper.rb:118:in `block (2 levels) in <top (required)>'

  3) Asciidoctor::RFC::V2::Converter processes rfc1149 from Markdown with equivalent text
     Failure/Error: expect(norm(File.read("spec/examples/rfc1149.md.2.xml.txt"))).to eq(norm(File.read("spec/examples/rfc1149.md.xml.txt")))

     Errno::ENOENT:
       No such file or directory @ rb_sysopen - spec/examples/rfc1149.md.2.xml.txt
     # ./spec/asciidoctor/rfc/v2/text_spec.rb:81:in `read'
     # ./spec/asciidoctor/rfc/v2/text_spec.rb:81:in `block (2 levels) in <top (required)>'
     # ./spec/spec_helper.rb:118:in `block (2 levels) in <top (required)>'

  4) Asciidoctor::RFC::V2::Converter processes rfc2100 from Markdown with equivalent text
     Failure/Error: expect(norm(File.read("spec/examples/rfc2100.md.2.xml.txt"))).to eq(norm(File.read("spec/examples/rfc2100.md.xml.txt")))

     Errno::ENOENT:
       No such file or directory @ rb_sysopen - spec/examples/rfc2100.md.2.xml.txt
     # ./spec/asciidoctor/rfc/v2/text_spec.rb:87:in `read'
     # ./spec/asciidoctor/rfc/v2/text_spec.rb:87:in `block (2 levels) in <top (required)>'
     # ./spec/spec_helper.rb:118:in `block (2 levels) in <top (required)>'

  5) Asciidoctor::RFC::V2::Converter processes rfc3514 from Markdown with equivalent text
     Failure/Error: expect(norm(File.read("spec/examples/rfc3514.md.2.xml.txt"))).to eq(norm(File.read("spec/examples/rfc3514.md.xml.txt")))

     Errno::ENOENT:
       No such file or directory @ rb_sysopen - spec/examples/rfc3514.md.2.xml.txt
     # ./spec/asciidoctor/rfc/v2/text_spec.rb:93:in `read'
     # ./spec/asciidoctor/rfc/v2/text_spec.rb:93:in `block (2 levels) in <top (required)>'
     # ./spec/spec_helper.rb:118:in `block (2 levels) in <top (required)>'

  6) Asciidoctor::RFC::V2::Converter processes rfc5841 from Markdown with equivalent text
     Failure/Error: expect(norm(File.read("spec/examples/rfc5841.md.2.xml.txt"))).to eq(norm(File.read("spec/examples/rfc5841.md.xml.txt")))

     Errno::ENOENT:
       No such file or directory @ rb_sysopen - spec/examples/rfc5841.md.2.xml.txt
     # ./spec/asciidoctor/rfc/v2/text_spec.rb:99:in `read'
     # ./spec/asciidoctor/rfc/v2/text_spec.rb:99:in `block (2 levels) in <top (required)>'
     # ./spec/spec_helper.rb:118:in `block (2 levels) in <top (required)>'

  7) Asciidoctor::RFC::V2::Converter processes rfc748 from Markdown with equivalent text
     Failure/Error: expect(norm(File.read("spec/examples/rfc748.md.2.xml.txt"))).to eq(norm(File.read("spec/examples/rfc748.md.xml.txt")))

     Errno::ENOENT:
       No such file or directory @ rb_sysopen - spec/examples/rfc748.md.2.xml.txt
     # ./spec/asciidoctor/rfc/v2/text_spec.rb:105:in `read'
     # ./spec/asciidoctor/rfc/v2/text_spec.rb:105:in `block (2 levels) in <top (required)>'
     # ./spec/spec_helper.rb:118:in `block (2 levels) in <top (required)>'

  8) Asciidoctor::RFC::V2::Converter processes rfc7511 from Markdown with equivalent text
     Failure/Error: expect(norm(File.read("spec/examples/rfc7511.md.2.xml.txt"))).to eq(norm(File.read("spec/examples/rfc7511.md.xml.txt")))

     Errno::ENOENT:
       No such file or directory @ rb_sysopen - spec/examples/rfc7511.md.2.xml.txt
     # ./spec/asciidoctor/rfc/v2/text_spec.rb:111:in `read'
     # ./spec/asciidoctor/rfc/v2/text_spec.rb:111:in `block (2 levels) in <top (required)>'
     # ./spec/spec_helper.rb:118:in `block (2 levels) in <top (required)>'

  9) Asciidoctor::RFC::V2::Converter processes draft-ietf-core-block-xx from Kramdown with equivalent text
     Failure/Error: expect(norm(File.read("spec/examples/draft-ietf-core-block-xx.xml.orig.txt"))).to eq(norm(File.read("spec/examples/draft-ietf-core-block-xx.mkd.xml.txt")))

     Errno::ENOENT:
       No such file or directory @ rb_sysopen - spec/examples/draft-ietf-core-block-xx.xml.orig.txt
     # ./spec/asciidoctor/rfc/v2/text_spec.rb:117:in `read'
     # ./spec/asciidoctor/rfc/v2/text_spec.rb:117:in `block (2 levels) in <top (required)>'
     # ./spec/spec_helper.rb:118:in `block (2 levels) in <top (required)>'

  10) Asciidoctor::RFC::V2::Converter processes skel from Kramdown with equivalent text
      Failure/Error: expect(File.read("spec/examples/skel.xml.orig.txt")).to eq(File.read("spec/examples/skel.mkd.xml.txt"))

      Errno::ENOENT:
        No such file or directory @ rb_sysopen - spec/examples/skel.xml.orig.txt
      # ./spec/asciidoctor/rfc/v2/text_spec.rb:123:in `read'
      # ./spec/asciidoctor/rfc/v2/text_spec.rb:123:in `block (2 levels) in <top (required)>'
      # ./spec/spec_helper.rb:118:in `block (2 levels) in <top (required)>'

  11) Asciidoctor::RFC::V2::Converter processes stupid-s from Kramdown with equivalent text
      Failure/Error: expect(File.read("spec/examples/stupid-s.xml.orig.txt")).to eq(File.read("spec/examples/stupid-s.mkd.xml.txt"))

      Errno::ENOENT:
        No such file or directory @ rb_sysopen - spec/examples/stupid-s.xml.orig.txt
      # ./spec/asciidoctor/rfc/v2/text_spec.rb:129:in `read'
      # ./spec/asciidoctor/rfc/v2/text_spec.rb:129:in `block (2 levels) in <top (required)>'
      # ./spec/spec_helper.rb:118:in `block (2 levels) in <top (required)>'

  12) Asciidoctor::RFC::V2::Converter processes Hoffman RFC XML v2 example with equivalent text
      Failure/Error: expect(norm(File.read("spec/examples/hoffmanv2.xml.orig.txt"))).to eq(norm(File.read("spec/examples/hoffmanv2.xml.xml.txt")))

      Errno::ENOENT:
        No such file or directory @ rb_sysopen - spec/examples/hoffmanv2.xml.orig.txt
      # ./spec/asciidoctor/rfc/v2/text_spec.rb:134:in `read'
      # ./spec/asciidoctor/rfc/v2/text_spec.rb:134:in `block (2 levels) in <top (required)>'
      # ./spec/spec_helper.rb:118:in `block (2 levels) in <top (required)>'

  13) Asciidoctor::RFC::V2::Converter processes draft-iab-rfc-framework-bis RFC XML v2 example with equivalent text
      Failure/Error: expect(norm(File.read("spec/examples/draft-iab-rfc-framework-bis.xml.orig.txt"))).to eq(norm(File.read("spec/examples/draft-iab-rfc-framework-bis.xml.xml.txt")))

      Errno::ENOENT:
        No such file or directory @ rb_sysopen - spec/examples/draft-iab-rfc-framework-bis.xml.orig.txt
      # ./spec/asciidoctor/rfc/v2/text_spec.rb:139:in `read'
      # ./spec/asciidoctor/rfc/v2/text_spec.rb:139:in `block (2 levels) in <top (required)>'
      # ./spec/spec_helper.rb:118:in `block (2 levels) in <top (required)>'

  14) Asciidoctor::RFC::V2::Converter processes draft-iab-html-rfc-bis RFC XML v2 example with equivalent text
      Failure/Error: expect(norm(File.read("spec/examples/draft-iab-html-rfc-bis.xml.orig.txt"))).to eq(norm(File.read("spec/examples/draft-iab-html-rfc-bis.xml.xml.txt")))

      Errno::ENOENT:
        No such file or directory @ rb_sysopen - spec/examples/draft-iab-html-rfc-bis.xml.orig.txt
      # ./spec/asciidoctor/rfc/v2/text_spec.rb:144:in `read'
      # ./spec/asciidoctor/rfc/v2/text_spec.rb:144:in `block (2 levels) in <top (required)>'
      # ./spec/spec_helper.rb:118:in `block (2 levels) in <top (required)>'

Finished in 15.87 seconds (files took 0.41961 seconds to load)
14 examples, 14 failures

The files don't exist in a repo. Should the be generated?

I found the reason. My system lacked xml2rfc.


Program freezes after song finishes playing (blocking=true, window 7, temp solution included)

I'm mostly using this for Linux but when I ported my code over to windows I discovered that the program would just sit there after playing a song. I figured out that on line 37
durationInMS = winCommand('status', alias, 'length')
returns twice the length of the song in Milliseconds.
i.e. if the song is 1 minute long it will return 2 minutes worth of MS.
The short term solution is to replace 1000 with 2000 on line 41.
IDK if this is an issue with playsound or windll.winmm and if the bug is window 7 only or affects later versions as well. I'm just putting this here in case anyone else has the same issue and needs a quick fix

I haven't tested this but changing
winCommand('play', alias, 'from 0 to', durationInMS.decode())
to
winCommand('play', alias, 'from 0 to', int(durationInMS.decode()/2))
might work as well assuming the file is actually playing for twice as long as its suppose to.

Please make a PR adding in your file which doesn't work in test_media and using it in test.py.

It was all audio files, not just one. But if you don't mind my saying so, I don't think it matters anymore, since I don't have windows installed anymore and no one has reported the issue with Win10 so I'm assuming it was a Win7 issue (or just a me specifically issue)

When I last had a computer running Windows 7 (~5 years ago now), playsound was running fine on it.
playsound has always run fine on my WIndows 10 computer. Travis-CI isn't reporting any issues running on Windows, but it's using Windows Server 2016, and it doesn't have proper audio drivers so I have to mock/patch the tests running there so I'm not sure how useful those tests are anyways....
Anyways... I'm going to leave this issue closed now since it doesn't matter to your personally, nobody else has mentioned it, and neither of us have any ideas for how to reproduce it.


Add function to make random time series

This is primarily for experimentation and demonstration
Example
>>> import dask.dataframe as dd
>>> df = dd.demo.make_timeseries('2000', '2010',
...                              {'value': float, 'name': str, 'id': int},
...                              freq='2H', partition_freq='1D', seed=1)
>>> df.head()
                       id    name     value
2000-01-01 00:00:00   971   Edith -0.053963
2000-01-01 02:00:00   937   Kevin -0.625998
2000-01-01 04:00:00   965  Xavier -0.922559
2000-01-01 06:00:00  1011   Sarah  0.866421
2000-01-01 08:00:00  1005   Zelda -0.319609

Merging soon if no comments

FYI, there's a a bunch of these types of dataframe generating functions in https://github.com/pydata/pandas/blob/master/pandas/util/testing.py if it's easier to wrap those.

I've used those in the past.  They're handy and largely why I wanted to build this function.  The time series stuff would be easy to wrap if they allowed for different start times.  It seems like they always start at 2000 though.  In any event I'm pretty happy with the control this function provides.

:+1:


Unable to connect to remote redis server when local redis service is down

Version: What node_redis and what redis version is the issue happening on?
node-redis : 2.8.0
redis : Redis server v=3.2.12

Platform: What platform / version?
Node version : v10.18.0
NPM version : 6.13.4
Centos 7, Linux localhost 3.10.0-1062.9.1.el7.x86_64

Description: Description of your issue, stack traces from errors and code that reproduces the issue
I have redis server installed on 2 systems. <IP_ADDRESS> and <IP_ADDRESS>. I have configured the node project on local machine(127.0.01) and trying to connect to the other system.
When the redis service is running on my machine, I can connect to other system. There is a failure when redis-server on my machine is down.
I can access the redis on the other machine and there are no selinux or firewall related issues.
Below mentioned is the stack trace:
{ Error: Redis connection to <IP_ADDRESS>:6379 failed - connect ECONNREFUSED <IP_ADDRESS>:6379   at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1107:14) errno: 'ECONNREFUSED', code: 'ECONNREFUSED', syscall: 'connect', address: '<IP_ADDRESS>', port: 6379 }

It would be necessary to know exactly what's passed through to the redis client to know if everything is working properly. As such you could activate the debug mode.
Just looking at the error it's clear that the client connects to the default localhost entry and not to <IP_ADDRESS>. Please check your configuration and setup again.


Installing the app without going through the Apple Store

I run my model locally because I don't want OpenAI or Google to know everything I look for. For the same reason I'm not logged in with an Apple ID on my mac, so that for Apple is more difficult to collect my data, and so I can't download apps from the Apple Store. I think your program is awesome, but for now I'm not able to use it since I don't have the technical skills (or the time to learn them) to build the app from the source code. Could you include a build of the applications in the next releases, please?
Thanks and kudos for you application, it seems a great one.

You can just download the file named Enchanted.xcodeproj and open it through Xcode then export file. It's not that hard.😀
1. Preparation
Open file in Xcode.
2. Exporting an App

Select the appropriate scheme: Open Xcode, select your project and the target scheme.
Choose Product > Archive:

In the Xcode menu bar, select Product > Archive.
After the archiving process is complete, the “Archives” window will automatically open.

In the “Archives” window, select the archive:

Select the newly created archive, then click the “Distribute App” button on the right.

Choose the distribution method:

Select last option, then click “Next”.

Export the app:

Choose the location to save the app file, click “Export”, and Xcode will generate an app file.

Here is a example file, you can just download and run.
Enchanted.app.zip

Thanks for the tutorial, but to get Xcode you need to download it through the Apple Store or on the website logging in with an Apple ID.
In any case I'll use the app you sent for now. Thanks

Thank you for raising issue @muuusso - I will implement additional way to distribute the app.


Incompatible with Windows

One of the weirder issues I have opened I think but apparently Windows protects certain file names categorically, "aux" is among them. So when trying to clone this repo or add it to Julia Git throws an invalid path error
(ace) pkg> add https://github.com/ACEsuit/UltraFastACE.jl
    Updating git-repo `https://github.com/ACEsuit/UltraFastACE.jl`
ERROR: GitError(Code:ERROR, Class:Checkout, cannot checkout to invalid path 'test/aux.jl')

Apparently a workaround used in the git community is to set
git config core.protectNTFS false

but maybe that isn't a good idea. Probably we just want to change the file name.

thanks for flagging this. When somebody gets a chance they should rename the file -> auxiliary or similar.


Add quickstart for the relay setup

This is the Quickstart for the relay setup, as mentioned this is still mostly the same as the xds setup, except with a few paragraph changes and additions to the xds-control-plane.yaml to launch a relay and a agent.

Sweet! Will finish off #666 (almost there!) and then pop over to this 👍🏻

Finally getting around to taking this for a spin and building out the integration tests.
I'm rebasing against main so I 'll make the tweaks to remove localities as well. Would you prefer updates direct to this branch, or should I submit a PR to your branch instead?

Would you prefer updates direct to this branch, or should I submit a PR to your branch instead?

Whichever works best, I don't mind either way, but pushing to here seems like the easiest, don't worry about not rewriting the commits to get through the rebase.

Added a commit with fixes for the quickstart and associated docs. Please take a look and let me know what you think!
Html link testing in CI will pass once #807 has been merged.

@markmandel LGTM, I can't approve since it's my PR, so you or @koslib  need to approve for it to be merged.


[Request] Make the command mode have a different colour to normal mode

As you can see in the images below, the colours for command mode and normal mode are the same. This issue requests that the colour of command mode be changed to something else.
The reason for this is that I have some mappings that start-up command mode , type out some stuff, and leave it open for the user to complete the command and press enter. Sometimes I forget that when I press mapping, the command mode pops up. It takes me a few seconds to realise that the command mode has actually popped up. I believe changing the colour of the command mode in Vim airline will help with this issue.

have you checked a different theme?

How do you get the "COMMAND" to be displayed?

@chrisbra /<somestring>

does not work for me. Is that neovim?

for me it's vim, not sure about @dylan-chong

Ah, in gvim it works, but not in terminal vim (putty). I'll have a look if we can have a better color distinction for command line mode

Okay, I added a mode for the default dark theme. Other themes need to be adjusted.


fix(analytics): flatten the scheduler options

Implement missing part of this spec by flattening the scheduler options.

bors merge

bors merge


Add All Other Legal Shit

[x] Add Terms and Conditions
[ ] Add POPI Notice
[ ] Add GDPR Notice

Our POPI compliance document:
Here's a basic HTML document styled with Bootstrap that outlines how a hypothetical company is complying with POPI (Protection of Personal Information Act) on their website. Please note that this is a simplified example, and compliance with data protection laws should involve legal expertise and thorough review of your specific business practices and policies.
<!DOCTYPE html>

    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>POPI Compliance Statement</title>

    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/5.0.0/css/bootstrap.min.css">

POPI Compliance Statement

At Big O Media Pty (Ltd), we are committed to protecting the personal information of our users and ensuring compliance with the Protection of Personal Information Act (POPI) in South Africa.

Our Commitment to Data Protection

We take data protection seriously and have implemented the following measures to ensure compliance with POPI:

We obtain informed and voluntary consent before collecting and processing personal information.

We ensure that personal information is processed lawfully and transparently.

We have designated a Data Protection Officer to oversee compliance with data protection regulations.

We use appropriate security measures to safeguard personal information against unauthorized access or breaches.

In the event of a data breach, we will promptly notify both the regulator and affected individuals as required by law.

We only transfer personal data across borders with adequate data protection safeguards in place.

Your Rights

As a user, you have the following rights under POPI:

The right to access your personal information held by us.

The right to request corrections to your personal data.

The right to request the deletion of your personal data.

If you have any questions or concerns about how we handle your personal information, please contact our Data Protection Officer at<EMAIL_ADDRESS>

We are dedicated to upholding the principles of POPI and ensuring the privacy and security of your personal information. For more information, please refer to our Privacy Policy.

NB: This is a simplified template and should be reviewed and customized by legal experts to ensure full compliance with applicable data protection laws.

For GDPR compliance:
Here's a basic HTML document styled with Bootstrap that outlines how a hypothetical company is complying with GDPR (General Data Protection Regulation) on their website. As before, please note that this is a simplified example, and compliance with data protection laws should involve legal expertise and thorough review of your specific business practices and policies.
<!DOCTYPE html>

    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>GDPR Compliance Statement</title>

    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/5.0.0/css/bootstrap.min.css">

GDPR Compliance Statement

At Big O Media, we are committed to protecting the privacy and rights of our users and ensuring compliance with the General Data Protection Regulation (GDPR) in the European Union.

Our Commitment to Data Protection

We take data protection seriously and have implemented the following measures to ensure compliance with GDPR:

We obtain clear and explicit consent before processing personal data.

We only collect and process personal data for specified, explicit, and legitimate purposes.

We ensure that personal data is accurate, kept up-to-date, and stored securely.

We respect the rights of data subjects, including the right to access, rectify, or erase personal data.

We have appointed a Data Protection Officer to oversee compliance with GDPR.

In the event of a data breach, we will notify the relevant supervisory authority and affected individuals as required by law.

We conduct regular assessments and reviews of our data processing activities to ensure ongoing compliance.

Your Rights

As a user, you have the following rights under GDPR:

The right to be informed about how your personal data is processed.

The right to access your personal data held by us.

The right to rectify inaccurate personal data.

The right to erasure (the right to be forgotten).

If you have any questions or concerns about how we handle your personal information, please contact our Data Protection Officer at<EMAIL_ADDRESS>

We are dedicated to upholding the principles of GDPR and ensuring the privacy and security of your personal data. For more information, please refer to our Privacy Policy.

As with the previous example, it's important to customize and review this content with legal experts to ensure full compliance with applicable data protection laws, such as the GDPR.


Meals

As a cook, I'd like to make a meal out of recipes so that I can simply and easily feed my family.
Confirmations:

Lists recipes to add
When submitted, updates database correctly
Allows all elements of the Meal database type to be submitted

Might still be a little buggy, but does what it needs to atm

Closed as of d9b674c260e2da377f2ed60620c8b43a38f72dbe.


Fixes #11572 Use cfscrape to avoid Crunchyroll error 503

Please follow the guide below

You will be asked some questions, please read them carefully and answer honestly
Put an x into all the boxes [ ] relevant to your pull request (like that [x])
Use Preview tab to see how your pull request will actually look like

Before submitting a pull request make sure you have:

[ ] At least skimmed through adding new extractor tutorial and youtube-dl coding conventions sections
[x] Searched the bugtracker for similar pull requests

In order to be accepted and merged into youtube-dl each piece of code must be in public domain or released under Unlicense. Check one of the following options:

[x] I am the original author of this code and I am willing to release it under Unlicense
[ ] I am not the original author of this code but it is in public domain or released under Unlicense (provide reliable evidence)

What is the purpose of your pull request?

[x] Bug fix
[ ] Improvement
[ ] New extractor
[ ] New feature

Description of your pull request and other information
Crunchyroll use not cloudfront when we login. To avoid a 503 error we need to insert the cookies that coudfront send.
I use cfscrape (https://github.com/Anorov/cloudflare-scrape) to grab the cookie that we need and insert them back. It is important that cfscrape have the same user-agent than youtube-dl, so it would be better not to hardcode it (I didn't find how I must do, so feel free to change it).

As far as I understand, MIT license is not compatible with Unlicense.

If cfscrape is kept as an external dependency, I guess it's unrelated with youtube-dl's license? Just like standard Python modules, which is covered by Python license.

I have remove the hardcoded user-agent and use std_headers in place

A question: does cloudflare protection occur in other pages or only login pages?
And cfscrape should be optional. The flow is like this:
if cfscrape_available:
    ...get_tokens_from_cfscrape...
else:
    ...warn_users_about_cloudflare...

...process_login...

Hello, sorry for the time I took I was a little busy these last days.

AddAnimeIE already contain some code to pass cloudfare challenge, i think it whould be better to use that code and improve it to handle the challenge in crunchyroll if it's different.

It look a little difficult to resolv the challenge with python (I don't know enough of it).
I see a function with firebug at the first answer for login page.
function-login-page.txt
And it pass these parameters for the answer.
jschl_vc=xxx
pass=xxx
jschl_answer=1349

jschl_vc and pass seem ok with the code from AddAnimeIE

i think it whould be better to use that code and improve it to handle the challenge in crunchyroll if it's different.

It look a little difficult to resolv the challenge with python (I don't know enough of it).

The code itself now looks fine. Before merging, I'd like to get this question answered. Is it infeasible to adopt AddAnimeIE's codes for Crunchyroll? @kidburglar

@yan12125
I think it's possible to convert the javascript function in python but it look really complicated for me.
I find it proper and less breakable if we use cfscrape to interprete the javascript, resolve the challenge and use the cookies.

My question is: is it inevitable to include Javascript interpretation to pass CloudFlare's DDoS check? If so using cfscrape is just fine.
By the way, would introducing such a big dependency affect Windows binaries? @dstftw

@yan12125
What I understand of the javascript function is that we count "GQPqNQl.VEK" element and make multiple operation on it to finaly have a number. It's surely possible to do that in Python.

What I understand of the javascript function is that we count "GQPqNQl.VEK" element and make multiple operation on it to finaly have a number.

I'm afraid that Cloudflare can change this logic at any time. (For example use a different name each day) Anyway we can implement a first version and see how long will it work.

I just check and yes it seem change the name already.
It's for this reason I think cfscrape will work more longer, but we can maybe add a solution witthout cfscrape just in case some people cannot install it.

@yan12125 and @remitamine when you speak about AddAnimeIE, you speak about youtube_dl/extractor/addanime.py @ 15707c7 ?

when you speak about AddAnimeIE, you speak about youtube_dl/extractor/addanime.py @ 15707c7 ?

yep

Is it infeasible to adopt AddAnimeIE's codes for Crunchyroll?

Can't you try to fix this issue using that, @yan12125 ?

@yan12125
Any news about this ?
Because I not think I can do it without cfscrape, my python level is not good enough.

Sorry for being so late on this. I forgot to say that cfscrape uses js2py, and the latter uses the dangerous exec(). As youtube-dl is often used as a backend in online video downloading services, it's not a good idea to allow remote code execution without sandboxes.

Technically those changes look good. But, as there are security issues, I marked it with "do-not-merge"

No problem.
Maybe you have some idea to improve the security or make a sandboxes ?

There's going to be a pure-Python implementation for running Javascript at #11272, but I don't have time to check such a big change.

As cfscrape drops js2py, we can go on.
Could you add a version check that ensures cfscrape >= 1.9.0 is used?

Note to my self: read https://github.com/patriksimek/vm2/issues/32 carefully before merging anything

@yan12125
I just checked on internet but I didn't find good way to looking about the version of a module without import it. Do you have an idea how to do that properly (or have an example) ?

It's imported anyway, isn't it? Just make sure the version check occurs before actually using it.

@yan12125 why merge this issue?
Isn't merging https://github.com/rg3/youtube-dl/pull/11272 a better solution for this issue and other related to JS-content website?

@Kcchouette: I'm not sure what's going on in #11272. That PR contains only parsing routines, which is the first step of an interpreter, so it's not usable at the moment. Maybe the author is not working on it anymore.

@yan12125 It look that cfscrape doesn't have a version method to give his method so the another way is to use pkg_ressources. It's a default package or I neet to do like cfscrape with a flag... ?

It look that cfscrape doesn't have a version method

A PR to cfscrape would be good

Hello @yan12125
Sorry I didn't used youtube-dl for a very long time.
I cloned the repository again because I didn't used an apart branch for the PR so it was a real mess.
I'm not sure if it's more easier for you that I make a new PR, but I hope this time it will be accepted.
https://github.com/kidburglar/youtube-dl/commit/7d718bbeea2f9c846870bf072e89618aabaeadcb
Cheers.

You'll need to create a new PR as GitHub can't merge pull requests from recreated repositories.
And you probably want to request a review from another active developer. As you may already know, I have been inactive in this project for quite a while.


Implement bounding volumes for primitive shapes

Objective
#10946 added bounding volume types and traits, but didn't use them for anything yet. This PR implements Bounded2d and Bounded3d for Bevy's primitive shapes.
Solution
Implement Bounded2d and Bounded3d for primitive shapes. This allows computing AABBs and bounding circles/spheres for them.
For most shapes, there are several ways of implementing bounding volumes. I took inspiration from Parry's bounding volumes, Inigo Quilez, and figured out the rest myself using geometry. I tried to comment all slightly non-trivial or unclear math to make it understandable.
Parry uses support mapping (finding the farthest point in some direction for convex shapes) for some AABBs like cones, cylinders, and line segments. This involves several quat operations and normalizations, so I opted for the simpler and more efficient geometric approaches shown in Quilez's article.
Below you can see some of the bounding volumes working in 2D and 3D. Note that I can't conveniently add these examples yet because they use primitive shape meshing, which is still WIP.
https://github.com/bevyengine/bevy/assets/57632562/4465cbc6-285b-4c71-b62d-a2b3ee16f8b4
https://github.com/bevyengine/bevy/assets/57632562/94b4ac84-a092-46d7-b438-ce2e971496a4

Changelog

Implemented Bounded2d/Bounded3d for primitive shapes
Added from_point_cloud method for bounding volumes (used by many bounding implementations)
Added point_cloud_2d/3d_center and rotate_vec2 utility functions
Added RegularPolygon::vertices method (used in regular polygon AABB construction)
Added bounding circle/sphere creation from AABBs and vice versa

Todo

[ ] Add tests for Bounded2d/Bounded3d implementations

Extra
Do we want to implement Bounded2d for some "3D-ish" shapes too? For example, capsules are sort of dimension-agnostic and useful for 2D, so I think that would be good to implement. But a cylinder in 2D is just a rectangle, and a cone is a triangle, so they wouldn't make as much sense to me. A conical frustum would be an isosceles trapezoid, which could be useful, but I'm not sure if computing the 2D AABB of a 3D frustum makes semantic sense.

Do we want to implement Bounded2d for some "3D-ish" shapes too? For example, capsules are sort of dimension-agnostic and useful for 2D, so I think that would be good to implement. But a cylinder in 2D is just a rectangle, and a cone is a triangle, so they wouldn't make as much sense to me. A conical frustum would be an isosceles trapezoid, which could be useful, but I'm not sure if computing the 2D AABB of a 3D frustum makes semantic sense.

I think we should split this out into a follow-up to avoid controversy. Personally, i think you probably want some sort of explicit projection to 2D before using this: the rotation is not always consistent. Alternatively, we could add 2D versions of the missing useful shapes (like capsules).

Should be ready for review now. I fixed some docs, simplified line and plane implementations, and added basic tests for all of the bounding implementations.
Most of the tests are for the trivial non-rotated case since computing the expected values for the rotated versions can be rather time-consuming, but at least the core functionality should now be tested. I think it'd be enough if we later added bounding volume examples (like in my earlier videos) where you could see the bounding volumes at all kinds of rotations and shapes and sizes.
I also changed the Triangle2d bounding circle to use the circumcircle, similarly to the Cone bounding sphere. For this, I extracted the logic into a Triangle2d::circumcircle method, so we also get a nice helper out of it.

Hmm... I'm not sure if we actually want to use the circumcircle/circumsphere for triangles, cones and conical frusta. The old approach of getting the AABB and computing the bounding circle for that might be better for more cases.
For some cases, the circumcircle does give a tighter fit:
(circumcircle)

(bounding circle of AABB)

But if the triangle has one long side and two shorter legs, the circumcircle puts the center very far away since it needs to pass through all vertices:
(circumcircle)

(bounding circle of AABB)

I feel like the bounding circle of the AABB is better on average even if it doesn't give the tightest fit in all cases. It's also more consistent in that it has the same center as the AABB instead of some completely different center.
Would it be good if I changed the triangle, cone and conical frustum implementations to use the AABB bounding circle/sphere approach, or am I perhaps missing some better alternative? I think the circumcircle helper is still nice to have, but I could split it into a separate PR since it wouldn't be needed here anymore.

Would it be good if I changed the triangle, cone and conical frustum implementations to use the AABB bounding circle/sphere approach, or am I perhaps missing some better alternative? I think the circumcircle helper is still nice to have, but I could split it into a separate PR since it wouldn't be needed here anymore.

I think swapping it back is good: the consistency is valuable. I like the circumcircle helper still: it's a nice little algorithm. Having a slower method to compute an exact minimal bounding volume would also be useful for static cases.


Update cargo-make

Codecov Report

Merging #381 into master will decrease coverage by 0.23%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #381      +/-   ##
==========================================
- Coverage   86.31%   86.08%   -0.24%
==========================================
  Files         105      107       +2
  Lines       15118    15600     +482
==========================================
+ Hits        13049    13429     +380
- Misses       2069     2171     +102

Impacted Files
Coverage Δ

juniper/src/parser/value.rs
92.22% <0%> (-1.04%)
:arrow_down:

juniper/src/parser/parser.rs
78.88% <0%> (-0.89%)
:arrow_down:

juniper/src/executor/mod.rs
92.72% <0%> (-0.6%)
:arrow_down:

juniper_codegen/src/derive_input_object.rs
0% <0%> (ø)
:arrow_up:

juniper_codegen/src/derive_object.rs
0% <0%> (ø)
:arrow_up:

juniper_codegen/src/derive_enum.rs
0% <0%> (ø)
:arrow_up:

juniper_codegen/src/impl_object.rs
0% <0%> (ø)
:arrow_up:

juniper/src/util.rs
100% <0%> (ø)
:arrow_up:

juniper_hyper/src/lib.rs
69.6% <0%> (ø)

juniper_rocket/src/lib.rs
89.91% <0%> (ø)

... and 5 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 49f723a...0b983f2. Read the comment docs.

@LegNeato there is something very weird going on with Azure.
Often, the rustup installation reports that an existing installation is reused. That installation is in a non-user directory /usr/local/bin on Linux and C:/Program Files/Rust on Window.
The normal installation puts the files in the regular location at $HOME/.cargo.
No idea how this could happen.

Had another very weird issue with a sudden "bash not found" error in check_release_automation. Fixed by rolling it into the previous script task.
Again, no idea why this happens....


[ADD]: RETROHAUNT GAME 👾

PR Description 📜

This PR is about adding Retrohaunt Game

Fixes #1143

Mark the task you have completed ✅

[x] I follow CONTRIBUTING GUIDELINE & CODE OF CONDUCT of this project.
[x] I have performed a self-review of my own code or work.
[x] I have commented my code, particularly in hard-to-understand areas.
[x] My changes generates no new warnings.
[x] I have followed proper naming convention showed in CONTRIBUTING GUIDELINE
[x] I have added screenshot for website preview in assets/images
[x] I have added entries for my game in main README.md
[x] I have added README.md in my folder
[x] I have specified the respective issue number for which I have requested the new game.

Screenshots 📸

Thank you soo much for contributing to our repository 💗

Thank you @0xabdulkhalid ,for creating the PR and contributing to our GameZone 💗
Review team will review the PR and will reach out to you soon! 😇
Make sure that you have marked all the tasks that you are done with ✅.
Thank you for your patience! 😀

Thank you  @0xabdulkhalid , for your valuable time and contribution in our GameZone 💗.
It’s our GameZone, so Let’s build this GameZone altogether !!🤝
Hoping to see you soon with another PR again 😇
Wishing you all the best for your journey into Open Source🚀

Kindly review this PR @kunjgit, @Arun9739.

Kindly review this PR @kunjgit, @Arun9739.

Thank you  @0xabdulkhalid , for your valuable time and contribution in our GameZone 💗.
It’s our GameZone, so Let’s build this GameZone altogether !!🤝
Hoping to see you soon with another PR again 😇
Wishing you all the best for your journey into Open Source🚀


Update PyTorch to Flax porting documentation to include information on weight initialisation

Stumbled across google/jax#4862 discussion on parameter initialisation differences between PyTorch and Flax.
Would it be worth adding a note in the documentation that highlights these weight init differences? Users porting training scripts may expect the initialisation to be the same but find training behaviour is different as a result of different initialisation.
The issue discusses Linear and Conv layers mainly, but there are differences in other layers such as embedding layers.
Would be willing to contribute this myself if you can point me to / provide a quick guide on contributing to docs. Thanks :)

Hey @vvvm23, there are other subtle differences such as layer hyper parameters and even numerical differences due XLA/CuDNN. I think we can give a broad statement without specific details just to make users aware of the potential issues.

+1 for both

adding broad statement that there are numerical differences, and linking to #3128 as an example
adding detailed information about known differences (like weight initializers for dense or convolutional layers)

to our guide https://flax.readthedocs.io/en/latest/guides/convert_pytorch_to_flax.html

A broad statement would be helpful, no need to go into great detail.


Example does not scan codes

I have opened your project from Examples/QRCodeReader.swift.xcodeproj, but it does not appear to scan codes. I have a basic QR code in the center of the rectangle, but I cannot seem to get it to display the text encoded in the QR code.

Hi,
It's my mistake, I didn't just pushed a new version which fix the bug. Thank you for the report!


add  iam user or iam role to  aws-auth

Is your request related to a new offering from AWS?

Is your request related to a problem? Please describe.

Describe the solution you'd like.

Describe alternatives you've considered.

Additional context

I guess a lot of people is gonna struggle with this. I'll show you how I solved this to append a new role to mapRoles, but same can be applicable to mapAccounts or mapUsers:
locals {
  role = "    - groups:\\n      username: build\\n      rolearn: ${module.this.iam_role_arn}\\n        - system:masters"
}

resource "null_resource" "patch_service_account" {
  triggers = {
    cmd_patch = <<-EOF
      kubectl -n kube-system  --kubeconfig <(echo $KUBECONFIG | base64 --decode) get configmap/aws-auth -o yaml | awk "/mapRoles: \|/{print;print \"${local.role}\";next}1" > /tmp/aws-auth-patch.yml && \
      kubectl -n kube-system --kubeconfig <(echo $KUBECONFIG | base64 --decode) patch configmap --namespace kube-system aws-auth -p "$(cat /tmp/aws-auth-patch.yml)"
    EOF
  }

  provisioner "local-exec" {
    interpreter = ["/bin/bash", "-c"]
    environment = {
      KUBECONFIG = base64encode(data.template_file.kubeconfig.rendered)
    }
    command = self.triggers.cmd_patch
  }
}


The tooltip explaining spread policy is unclear

Environment info

NooBaa Version: 4.0
Platform: Kubernetes 1.14.1 | minikube 1.1.1 | OpenShift 4.1 | other: specify

Actual behavior

the tooltip that explains what a spread policy is, is very unclear.
it says:
"Copies/fragments across the underlying resources for each of the object parts"

Expected behavior

rephrase the sentence to be more understandable

Steps to reproduce

More information - Screenshots / Logs / Other output

It also seems that the tooltip is repeating what the gray text already says...

As we are not investing in the UI console, closing


[bug] brake abnormal

I found this code may have a bug:
    def _apply_throttle_brake(self, throttle_brake):
        max_engine_force = self.config["max_engine_force"]
        max_brake_force = self.config["max_brake_force"]
        for wheel_index in range(4):
            if throttle_brake >= 0:
                self.system.setBrake(2.0, wheel_index)
                if self.speed_km_h > self.max_speed_km_h:
                    self.system.applyEngineForce(0.0, wheel_index)
                else:
                    self.system.applyEngineForce(max_engine_force * throttle_brake, wheel_index)
            else:
                if self.enable_reverse:
                    self.system.applyEngineForce(max_engine_force * throttle_brake, wheel_index)
                    self.system.setBrake(0, wheel_index)
                else:
                    self.system.applyEngineForce(0.0, wheel_index)
                    self.system.setBrake(abs(throttle_brake) * max_brake_force, wheel_index)  # cause reverse

in base_vehicle.py line 469.https://github.com/metadriverse/metadrive/blob/b8a66c92ac34a5f80944b41600fed08d8e3a90ee/metadrive/component/vehicle/base_vehicle.py#L469
if throttle_brake<0 and self.enable_reverse is False(default), the car will reverse due to self.system.setBrake(abs(throttle_brake) * max_brake_force, wheel_index) . It makes the car wheel rotate back then the car will move backward because of friction.
I think when reversing is not allowed, the wheel rotation(setBrake) should also be set to 0. And when it is allowed, setBrake is set as rotate value.

It looks like there is still a problem with setBrake being 0 because the moving car will not slow down.
There are two main points that I don’t quite understand.

self.system.setBrake(2.0, wheel_index) in moving forward. Looks like it has the potential to cause a slowdown.
setBrake and applyEngineForce work in different way. Causes forward and braking acceleration settings to be different. The braking acceleration is set to a small value, but the braking is obviously faster.

The initial issue is not a problem. The reverse is not so clear and only happens when the speed is close to 0. I tried the following code.
  self.system.applyEngineForce(0.0, wheel_index)
  force = abs(throttle_brake) * max_brake_force if self.speed > 0.025 else 0
  self.system.setBrake(force, wheel_index)

But it can not alleviate this issue. As it is not a serious problem, I suggest just let it be.
For the two following questions:

We add this to simulate a friction effect, as the default fiction is not strong enough
We didn't find this. All we know is just applyEngineForce and setBrake are used to move forward and backward. We didn't investigate deeply the powertrain model of the car and various parameters, as MetaDrive is not for powertrain simulation. Thus a car with an acceptable dynamic model is enough for current research. If you are interested in this part and want to tune the dynamics of the car to make it more realistic, you can find the implementation of the car physics at https://github.com/bulletphysics/bullet3/blob/6bb8d1123d8a55d407b19fd3357c724d0f5c9d3c/src/BulletDynamics/Vehicle/btRaycastVehicle.cpp#L256 Also, if you want to learn more about car dynamics simulation, you can take a look at Project Chrono, which aims at simulating the vehicle dynamics.


Continuous error notifications

Describe the bug
Pestering, undisabable error notifications
Steps to reproduce

Create a new mvc project
Go to an .cshtml file
Start modifying, typing etc
Receive a lot of notifications like on the screenshot

Link to sample reproduction

Expected behaviour
No errors, or ability to disable/hide notifications
Screenshots

Machine info

OS: Linux fedora 38 workstation
.NET SDK version: 7.0.11
Ionide version: 7.15.0

Additional context
Add any other context about the problem here.

Your errors show for the C# extension. You'll want to open an issue in their repo.


[QUESTION] Read from Replica

Hello, I have a redis cluster and i would like to direct reads to the replica node, is it possible to use something like the CommansFlags.PreferReplica that is available on StackExchange.Redis ?

Hi @antoniomelotraycorp , no that's not possible.
Why?
Because FusionCache can use Redis as a distributed cache via the RedisCache class, which is an IDistributedCache implementation based on StackExchange.Redis.
Therefore FusionCache is limited to the options available on that class and its options.
So what I would suggest is to create an issue over the ASP.NET repo to allow configurig that (I suppose via some extra options).
Let me know what you think.
Hope this helps.

@jodydonetti Thanks for the reply!


Laravel 10.x Compatibility

This is an automated pull request from Shift to update your package code and dependencies to be compatible with Laravel 9.x.
Before merging, you need to:

Checkout the l10-compatibility branch
Review all comments for additional changes
Thoroughly test your package

If you do find an issue, please report it by commenting on this PR to help improve future automation.

:alembic: Using this package? If you would like to help test these changes or believe them to be compatible, you may update your project to reference this branch.
To do so, temporarily add Shift's fork to the repositories property of your composer.json:
{
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/laravel-shift/laravel-vue-i18n-generator.git"
        }
    ]
}

Then update your dependency constraint to reference this branch:
{
    "require": {
        "librenms/laravel-vue-i18n-generator": "dev-l10-compatibility",
    }
}

Finally, run: composer update

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

@Jellyfrog you will accept?

Thank you!
--
Regards,
Paulo Castellano
On 17 Feb 2023 6:31 PM -0300, Jellyfrog @.***>, wrote:

Merged #10 into master.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: @.***>


Get better quality with SDXL

It is reported that the real images generated by SDXL have higher resolution and accuracy,
which can reduce the artifacts and errors generated and improve the similarity with the input images.
T2I can also get better results with SDXL's improved text encoder.

so how to replace sd1.5 with sdxl,the text_emb size is different

these guys released training code
https://github.com/MooreThreads/Moore-AnimateAnyone/
should be straightforward to switch out base model and upgrade relevant dimensions.


preview locally using Docker

Signed-off-by: samzong.lu<EMAIL_ADDRESS>What type of PR is this?

/kind feature
What this PR does / why we need it:
a simple way to preview locally using Docker. With just one command, you can easily achieve this.
Which issue(s) this PR fixes:
Fixes #181
Special notes for your reviewer:

/assign @kevin-wangzefeng

I have been tried in my local env. Seems there is an err.
if ! docker inspect karmada-website:v0.1.0 >/dev/null 2>&1; then \
        echo "Docker image karmada-website:v0.1.0 does not exist"; \
        echo "Building Docker image..."; \
        make image; \
    fi
Docker image karmada-website:v0.1.0 does not exist
Building Docker image...
make[1]: Entering directory '/root/website'
docker build -t karmada-website:v0.1.0 .
Sending build context to Docker daemon  83.71MB
Step 1/9 : FROM node:16-alpine
16-alpine: Pulling from library/node
31e352740f53: Pull complete
fa670e2ca246: Pull complete
5307f402fec1: Pull complete
e3da03619ad7: Pull complete
Digest: sha256:296f32946d2fb5227e43fa51e608bbb11a208d648a833e9b264934fb0c7f404b
Status: Downloaded newer image for node:16-alpine
 ---> 4874253f493b
Step 2/9 : WORKDIR /app/docs
 ---> Running in 0bf40b1ca71d
Removing intermediate container 0bf40b1ca71d
 ---> b3bf4b3636b7
Step 3/9 : COPY package.json package-lock.json ./
 ---> 29b2fcdc8061
Step 4/9 : RUN npm install
 ---> Running in 83ecd45b4c3c
npm WARN deprecated<EMAIL_ADDRESS>Use String.prototype.trim() instead
npm WARN deprecated<EMAIL_ADDRESS>Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility
npm notice
npm notice New major version of npm available! 8.19.4 -> 9.7.1
npm notice Changelog: <https://github.com/npm/cli/releases/tag/v9.7.1>
npm notice Run `npm install -g<EMAIL_ADDRESS>to update!
npm notice
npm ERR! code ERR_SOCKET_TIMEOUT
npm ERR! network Socket timeout
npm ERR! network This is a problem related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly.  See: 'npm help config'

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2023-06-19T06_48_47_373Z-debug-0.log
The command '/bin/sh -c npm install' returned a non-zero code: 1
make[1]: *** [Makefile:20: image] Error 1
make[1]: Leaving directory '/root/website'
make: *** [Makefile:6: serve] Error 2

@Poor12
It's seems to be an issue with the default npm registry timeout on your computer,
npm ERR! code ERR_SOCKET_TIMEOUT
npm ERR! network Socket timeout
npm ERR! network This is a problem related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly.  See: 'npm help config'

Sorry, I cannot fix it. Could you show your test results?

@Poor12
this is my screen.

I first run make image and then I run make serve. It works well. Must I run make image before make serve? If so, I suggest adding it to the doc.

I first run make image and then I run make serve. It works well. Must I run make image before make serve? If so, I suggest adding it to the doc.

this not necessary, when running make serve, it will check if image
doesn't, it's will automatically build it.
You can confirm this from the video in above comment.

next actions:

Image optimization
Pushing the image to a public repository, so that users do not need to build it themselves
Adding more functionality, such as automatic markdownlint
...

@RainbowMango @Poor12 Is there any issue with this PR? shall we merge it?

If having some question, we can about next meeting.

What did this PR update?

Updated the base image to nodejs v18.
rebase to lastest branch
Refactored README.md

Because we are still using Yarn for production builds, it is recommended that we indicate this in the README and provide corresponding operation instructions.
@windsonsea can u help me review README.md ?

Those text in README looks good to me.
/lgtm

What did this PR update?

Updated the base image to node.js v18.
rebase to lastest branch
Refactored README.md

Because we are still using Yarn for production builds, it is recommended that we indicate this in the README and provide corresponding operation instructions.

An outdated PR, let's continue to move forward.
@RainbowMango @Arhell I have updated the PR, and pls looking forward to review.
thanks.


feat: better static classes

Codecov Report

Merging #52 (f220fd6) into master (b3a72e2) will decrease coverage by 0.23%.
The diff coverage is 93.75%.

@@             Coverage Diff             @@
##            master      #52      +/-   ##
===========================================
- Coverage   100.00%   99.76%   -0.24%
===========================================
  Files           12       12
  Lines          435      431       -4
===========================================
- Hits           435      430       -5
- Misses           0        1       +1

Impacted Files
Coverage Δ

kanon_api/utils.py
98.18% <66.66%> (-1.82%)
:arrow_down:

kanon_api/core/ephemerides/tables.py
100.00% <100.00%> (ø)

kanon_api/core/ephemerides/utils.py
100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b3a72e2...f220fd6. Read the comment docs.


Add support for graphql fields

Hi!
Could you add support for fields in grahql/gql files?
In Webstorm:

In VSCode:

At least the purple color for fields.
Thanks!

@antoniogiroz hello, by default VS code doesn't have support for the graphql syntax,
what plugin do you use for the *.graphql ?
Thank you :)

I'm using these extensions:

GraphQL: Language Feature Support (graphql.vscode-graphql)
GraphQL: Syntax Highlighting (graphql.vscode-graphql-syntax)

@antoniogiroz sorry for the loooong fix, was busy...
fixed ;)

@antoniogiroz sorry for the loooong fix, was busy...
fixed ;)


UI for Orchestration Templates

This change adds

new accordion for orchestration templates under Services -> Catalog
new trees under orchestration templates accordion showing all
available orch. templates.

Parent issue: #1221

This is first part of the UI for orchestration templates -- read only view of available orchestration
templates.
Known issue:

the template type in the template listing view now shows the model name,
which is either "OrchestrationTemplateCfn" or "OrchestrationTemplateHot".
This should correctly show a nice, user-friendly & understandable string,
such as "Orchestration Template - CloudFormation".

@mzazrivec : can you, please, provide steps on getting data for this to actually show some stuff? Would be useful for testing ;-)

@martinpovolny To be able to see some data here you need to add a cloud provider and refresh the data.
Currently, only Amazon works (afaik).

When testing in the UI, I found only issues that are also in master.
Reading the code, I see no (new) issues ;-)


win-1 is dead.

Type of Request
bug
Infrastructure Environment
LUCI, Github, Cocoon scheduler, Autosubmit, etc...
What is happening?
win-1 is dead.

Steps to reproduce
Step 1:
Step 2:
..
Step n:
Expected results
I expect to see X when Y is finished.

win-1 is up and running fine. Machine was out of sync with Salt master, run command "salt-call state.apply" to re-sync with Salt master again.


feat(subMenu): use subMenu instead of menu

It allows a cleaner obsidian file-menu experience because instead to have 3 different command,
we have only one that open a subMenu with the 3 commands.
Note: It doesn't work on mobile, so we need to check mobile before loading the subMenu.

I love that everything is sorted into one submenu.
However, I have a problem with the submenu because it is only available on Desktop and it's not officially typed in obsidian. So I'll leave this PR open for now.

Yeah, I hope they will release the sub-menu soon on mobile. It will be very useful, to be honest!


Builded SteamTrade.dll = Virus

Hey,
I have Windows 8.1 x64 (uncommon informations xd) with ESET antivirus. Still when i build SteamBot, ESET writes me the SteamTrade.dll is a virus, look a photo

Lol why and how to solve that?   But we've discussed this before:  https://github.com/Jessecar96/SteamBot/issues/759


Why wasn't there an ablation study on 2D scanning? This is one of the important innovation points of this paper

Why wasn't there an ablation study on 2D scanning? This is one of the important innovation points of this paper

Because the paper is too old now.
We have 2d scanning ablation experiments together with their configs written in code，if you are interested, you can do those experiments yourself.
And we are about to update the arxiv paper soon, in which you may find lots of interesting things.

thanks, it’s interesting! could you share some founding here!
---- Replied Message ----
| From | Liu @.> |
| Date | 04/02/2024 17:05 |
| To | MzeroMiko/VMamba @.> |
| Cc | Zhongwei @.>,
Author @.> |
| Subject | Re: [MzeroMiko/VMamba] Why wasn't there an ablation study on 2D scanning? This is one of the important innovation points of this paper (Issue #121) |
Because the paper is too old now.
We have 2d scanning ablation experiments together with their configs written in code，if you are interested, you can do those experiments yourself.
And we are about to update the arxiv paper soon, in which you may find lots of interesting things.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>


Design Meeting Notes, 10/30/2020

Speed-Sensitive PRs
Definite-Assignability
https://github.com/microsoft/TypeScript/pull/39577

Use a definitely-assignable relation in Material-UI
If it is a correctness fix, and it's only 1%... that's probably not so terrible.

Will manifest in codebases where people can't really even understand the types.

Definitely-assignable relation will never probe constraints for these.

Isn't this just because any is really unknown and never?
Maybe dual-behavior of any biting us.

The new relationship is about asking whether any given instantiation will break.

4.2-bound if we want.

Cache Complex Union and Intersection Relations
https://github.com/microsoft/TypeScript/pull/37910

We have never cached the results of relations between unions and intersections.

We only cache relations between constituents.

Could try caching all unions/intersections.

Made things slower in experiments.

When relating Foo | Bar | Baz to Target, have to cache

Foo | Bar | Baz to Target
Foo to Target
Bar to Target
Baz to Target

Idea: as soon as we have more than 4 targets to check against, we'll cache.

Partial reasoning: avoiding undefined | null | T.

This change speeds up the compilers-with-unions test case.
Aside: any reason why compilers-with-unions was not in the perf suite?

Was crashing, should be good now.
Azure might be finally stable in perf numbers.
Can we get rid of Node 8/10?
And add Node 14/15
Perf test fast on LTS/perf test slow

Aside: maybe linked caches?
4.2-bound!

Arbitrary Index Signatures (now that we have template string types)
https://github.com/microsoft/TypeScript/pull/26797

Have this old PR.

Would be nice to be able to model data- and aria-.

We have two "kinds" of types: finite types and infinite types

"foo" - finite
"foo" | "bar" - finite
string - infinite
`aria-${string}` - infinite

Can imagine that mapped types on

finite types desugar to individual properties.
infinite types remain as index signatures.

The PR's original motivation was symbol types.

As a bonus, it handled string literal types and enums.

Those would expand out to keys.

Want to propose that index signatures are required to have an infinite type.

Including pattern-literal types like `aria-${string}`.

Mapped types would be the only thing that can represent keys in a higher-order manner.

We would not want to get into the business of { [x: T]: Type } where T is generic.
Can't make meaningful statements about T in those cases.

We want to have a view that a mapped type can have some key type that can be finite and infinite.

At 0-order, these types desugar as described above.

But we're already "equipped" to handle these.

Index signatures are just another structural component of the type. The hard part is actually adding the index signatures.

Feels like we're "ripping out the foundation" to go higher-order.

We can ship this with 0-order.

Shipping PR with forbidden higher-order is more code.

You need to be able to reason about constraints.

Follow-up

Type with multiple index signatures

Every index signature that matches, you union when reading
Every index signature that matches, you intersect when writing

We have another relationship in the PR where number is assignable to string.

You could build it other ways technically.
Could do it differently before isRelatedTo
But isRelatedTo does the nice logic.

What about
interface Foo {
    [x: `aria-${string}`]: string;
    [x: `aria-yadda-${string}`]: boolean;
}

Would be nice if we could provide a nice error message!
Need to be able to relate pattern types to pattern types.
Could imagine some set of "easier" prefix/postfix.

Partial Type Argument Inference
https://github.com/microsoft/TypeScript/issues/26242
Out-of-time

@DanielRosenwasser if you're curious for a case of how higher order index types become useful, consider the validation case:
interface AriaProps<TStateProps extends "busy" | "current" | "disabled" | "grabbed" | "hidden" | "invalid"> {
    [x: `aria-${string}`]: string;
    [x: `aria-${TStateProps}`]: "true" | "false";
}

offers validation that all the possible properties produced by the second index signature are assignable to the index signature type (if the possible values overlap, which they do). Imagine we had instead written:
interface AriaProps<TStateProps extends "busy" | "current" | "disabled" | "grabbed" | "hidden" | "invalid"> {
    [x: `aria-${string}`]: string;
    [x: `aria-${TStateProps}`]: true | false;
}

the compiler would be able to warn us of our mistake - aria-busy is of type boolean, which is not assignable to the aria-${string} index signature of type string. Whereas the equivalent mapped type:
type AriaProps<TStateProps extends "busy" | "current" | "disabled" | "grabbed" | "hidden" | "invalid"> = {
    [x: `aria-${string}`]: string;
} & {
    [x in `aria-${TStateProps}`]: true | false;
}

would have no such validation, and simply produce a never upon reading each of the specified properties. There are usability reasons why generic index signatures should exist. Mapped types are definitely more powerful - the 1-to-1 correspondences they represent allow for powerful remappings of both keys, values, and modifiers, none of which are something an index signature could reasonably do without constraining when it could do them in strange ways, while index signatures play an important role in ensuring object consistency and intent - the same way overload signatures need to be consistent with the implementation.


[Feature]: Provide a way to modify the default branch for git

Is there an existing issue for this?

[X] I have searched the existing issues

Summary
Today if user wants to update the default branch and delete the older branch there is no way to do that from Appsmith. Even though user can modify the same on remote the same will not be reflected in Appsmith UI. Also, deleting the default branch is not allowed today in Appsmith because we have default branch ids referenced nested in each resource.
Why should this be worked on?
This will be useful in scenarios when the default branch ended up in bad state due and user is unable to revert these changes somehow.

We will need to communicate with the user about git default branch and changing that will also change your default branch inside the App. Syncing branch after git default branch change is necessary.

[ ] Better communication for updates on the default branch after sync etc.

Issues covered part of this

#11651
#11541

Closed via https://github.com/appsmithorg/appsmith/pull/11549


common and organizations endpoints documentation may be flipped?

The documentation currently says

Value
Description

common
Allows users with both personal Microsoft accounts and work/school accounts from Azure AD to sign into the application.

organizations
Allows only users with work/school accounts from Azure AD to sign into the application.

However our application is using "organizations" which is working for both personal Microsoft accounts and work/school accounts from Azure AD. We tried to use "common" but we found that personal Microsoft accounts (like @gmail.com) could not be used to log in.
Maybe the documentation for these two values are flipped?
To add, we are using v2 endpoint and use msal-browser library to handle authentication.
Thanks,
Thomas

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: e50110dd-3c4d-6e42-8f71-332062279f30
Version Independent ID: 0ae0df0d-9fbb-861a-a50a-9e2f3792d6b1
Content: OAuth 2.0 and OpenID Connect protocols on the Microsoft identity platform - Microsoft identity platform
Content Source: articles/active-directory/develop/active-directory-v2-protocols.md
Service: active-directory
Sub-service: develop
GitHub Login: @hpsin
Microsoft Alias: hirsin

The values are correct.  It's possible that if you're abusing Microsoft first party app client IDs that you will see different behavior that's internal for our legacy apps.
Additionally, single tenant apps can sign in MSA users as guests in their tenant. That may be what's occurring here.  Have you enabled the MSA sign in audience for your application? If so, signing in users on /common should work.

Hi @hpsin sorry for the delay in responding
We are indeed a first party application and also need to support multi-tenant scenarios.
In our first party portal, we have some advanced settings turned on

msa passthrough [X]
enabled device only auth support [ ]
implicit grant

access tokens [x]
id tokens [x]

support account types

aad users [x]
personal microsoft account (MSA) [x]
LMK if that helps, we can also sync offline on teams, my alias is my username without the 1

#please-close.  This was a case of internal app IDs being used for special case scenarios.


Error should be thrown when attribute does not exist

What we have right now is that #matches ignores non existent field, failing silently. I think this is a real problem as the user could lose some time to find out what is going on, when it's all about a simple typo. It's exemplified in the code below:
    begin
      raise CustomError.new("blabla", "custom message")
    rescue ME.matches(/message/, on: :foo)
      rescued = true

Maybe just throwing a custom error would be more appropriate in this case?

I agree. Thoughts @gvc ?

I think that failing inside a rescue clause is a bad pattern. One possible workaround for the typo case can be a warning message.


[RoleManagement] TODO: Additional setting for rolebind behavior

The setting should govern whether creating a role bind ensures that role is self removable and self addable by default. While I prefer the explicit behavior as a default, many users want this to be streamlined by default.

This won't be a separate setting. I'll be adding a question on bind.


TypeError: container.exec is not a function

Hi Folks,
i tried the example, "Running commands inside running container", from the README.md and i tumbled over the following issue.
TypeError: container.exec is not a function     at somefile.js:17:54     at <anonymous>     at process._tickCallback (internal/process/next_tick.js:189:7)
It is not part of the TestContainer interface so the GenericContainer is obviously not able to do this. Please adjust the README cause i'm now really sad cause i can not work around the getContainerIpAddress issue ;)
Cheers
Christian

Hi @zonk911
It's part of the StartedTestContainer interface - did you .start() the GenericContainer?
If yes, could you provide an example code?

I used the code from your README.md
`const { GenericContainer } = require("testcontainers");
(async () => {
const container = await new GenericContainer("mysql")
.withEnv("MYSQL_ALLOW_EMPTY_PASSWORD", "true")
.start();
const { output, exitCode } = await container.exec(["mysql", "--execute", "show databases"]);
console.log(exitCode, output);
await container.stop();
})();`

Works for me. What version of node/testcontainers are you using?

I use "testcontainers": "^1.1.19",. I will check if i can find a newer one.

The functionality was added in 1.2.0.

I didn't expected a new version. I just installed the module at the end of last week and assumed that i have the latest one. I will try it out, sry for interrupting. ;)
Thx and Cheers


Changelog or Release notes

Hi, I couldn't find changelog or release notes. Can someone point me please?

There isn't one, I'm afraid. Probably something we should have!


Adds light/lightSource and Camera with RTT as non shadow caster.

Fixes PCF bug
Fixes Shader error logging when parsing misses first error
Adds light/lightSource and Camera with RTT as non shadow caster. (like transparent geometries waswas)

could you comment wich code fix want ? or split by commit

separated on https://github.com/cedricpinson/osgjs/pull/309


Project maintenence

I suggest not squashing this particular pr since we may want to revert individual commits. Instead, select "Rebase and merge" from the menu.
See commit messages for details. Pretty straightforward.
Overall, this should reduce the size of the project. On my local machine the size of the .yarn directory went from 681M to 652M, which is a 29M difference.

@kadey001 You should probably change to the e2e workflow to use file path negations on app/docs/** and app/proxy/** so that e2e tests will trigger on pure package updates like this PR too. See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-excluding-paths

flow to use file path negations on

@kadey001 You should probably change to the e2e workflow to use file path negations on app/docs/** and app/proxy/** so that e2e tests will trigger on pure package updates like this PR too. See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-excluding-paths

That's a good idea, no need to run them when docs and proxy is changed, just a waste of resources and time for checks to pass. You want to add that to this PR or in another one?

@kadey001 I'll do it as a separate PR to update the workflow so that e2e still run on this PR.

Not sure why checks aren't being run here but I noticed errors when typechecking, I'll try and address them all. Also when running the linter I got this warning
=============

WARNING: You are currently running a version of TypeScript which is not officially supported by @typescript-eslint/typescript-estree.

You may find that it works just fine, or you may not.

SUPPORTED TYPESCRIPT VERSIONS: >=3.3.1 <4.6.0

YOUR TYPESCRIPT VERSION: 4.7.4

Please only submit bug reports when using the officially supported version.

=============

Don't merge this just yet. I have to go through this more. I'll handle rebasing and double checking that everything is working. I'll also look into why the e2e stuff isn't triggering correctly.

Just wanted to note in here that @fastify/cookie types are bugged but fastify-cookie (what was used prior to updating fastify) is deprecated in favor of<EMAIL_ADDRESS>as stated here. Currently using any type and // @ts-ignore comments as temporary fix until a better solution is found.


Single export with multiple geographical resolutions and boundary details.

Is it possible to:

Run an export (e.g. Social Isolation) for every LSOA in the UK (or whatever extent is available in the connector)
In that export, not only identify the name of the LSOA (and its geography) but also identify the name of the Local Authority in which that LSOA resides (and its geography).
To achieve the desired mapping and filtering outlined in the attached image we'd need the LSOAs and their containing subject fields (LAs).

This may help http://geoportal.statistics.gov.uk/datasets/lower-layer-super-output-area-2011-to-ward-2016-lookup-in-england-and-wales


Сollapse and decrease block size

Required plugin!
Is it possible to make it collapse and decrease in size, and not just hide the text in the block?
Otherwise, the whole point of the spoiler is lost, since the size of the block occupied by it remains unchanged.

Block hiding is already implemented in the editor


Comparison Results not visible in UX, but export to Excel

I think this is my first time running ALM Toolkit at my current job. So I am not 100% sure if this is definitely an ALM issue or potentially something to do with this PC and company settings, but it doesn't seem like it would be a computer setting.
When I run a comparison of 2 models (I tried multiple combinations of published vs local, published vs published, local vs local)
I do not see the results, visually in the ALM Toolkit application. It is a completely white screen underneath the Source and Target paths by the Menus at the top.
When I use the "Report Differences" to excel file, I can see the list of hundreds of objects that appear in the 1 file.
Is this a common issue?

Hi, sorry for the delayed response. Is this still an issue? If yes, can you try installing the C++ Redist 2013 x86 and see if that fixes it?
https://www.microsoft.com/en-us/download/details.aspx?id=40784

Hello Christian, my apologies for the delay as well. I finally got back around to this.
I have downloaded and installed the C++ Redist 2013 x86. Still not 100%
Even prior to this, recently I have had working examples where results of the compare has worked. Other times it did not.
The only precise example I can give at this time is what I just tested.
1 - I opened ALM Toolkit within the External Tools ribbon while working in Power BI Desktop, already using the local copy as the source, then chosing the target as a published online dataset.
*Results appeared on-screen as expected.
2 - I opened ALM Toolkit fresh from windows menu, choose both compare options. Once with both being published online datasets. Once with 1 published and 1 locally open.
*Both Results did NOT appear on-screen like I previously reported.

Hi Andrew, can you share screenshot of the blank screen please?
Also please confirm when you go to Excel it's still showing items like you described in the 1st message. It's possible it's working now but there are no comparison items to show.

Hello Christian, I have been using ALM more lately and have not been experiencing the issue any longer. Either your more recent updates resolved, or something else on the local machine was the issue and has resolved as well.
Thank you for keeping in touch on this.