Mocking models and dependency injection

What's a decent way to structure code so I can easily mock models? I ultimately want to use the Inversify dependency injection library with Objection. Here's what comes to mind:

Establish an interface for each model. (For plain JS, define a duck typing spec in English.)
Have the model classes extend Objection.Model and implement their respective interfaces.
For each model, establish an interface for a service that inputs and outputs objects of the model.
Implement each service interface, internally peddling instances of the Objection.Model subclass.
Abstract the instantiation of the service classes (e.g. via Inversify) so that the application is independent of service class implementations after its initial configuration.
Create mocks of the models and model services that conform to the established interfaces, and configure the app to use these mocks when needed (e.g. for testing).

That's a lot of machinery, so I just want to make sure I'm on the right track before starting.
Also, I'm new to the whole dependency injection thing and am not sure what an ideal solution would look like in this case. Maybe someone with DI experience might suggest a better approach or perhaps ways to tweak Objection to be more accommodating of conventions. Thanks!

Looking at this another way, it's useful to know that,

The model's query builder can be swapped out
Query builders have a resolve() and reject() methods to simulate database results.

That looks like an awesome way to stub the database and test model logic. Thanks for pointing out those methods. It might be hard to get it to behave as expected, unless the test can isolate each query within the model. I would still like to stub the models though.

Every query eventually calls the static Model.query() method to execute the query. You can mock that method to return anything you want. That way you can mock eager queries and not just individual queries.
Having said that, I wouldn't mock database queries. Most of the time servers do very little besides database queries and mocking them out doesn't test anything useful. Your application may be an exception to this rule, but there's something to think about.
I would create a service layer using interfaces and DI and mock those when needed, but I would simply clear the whole database before each test and insert the needed rows using insertGraph most of the time.

Great, thanks. I'm playing with my options now. I'm having a bit of a struggling architecting the types, but will share what I settle on. Complicating factors:

Not all table rows should be exposed outside the model or model service implementation (e.g. password hash, password salt, session hash, implementation decision to store multiple values together within a single JSON column). Models don't simply expose their table columns.
The factory method for a model should ideally accept a JSON object of the externally visible properties, while the update method should accept a subset of this. I'm looking at using Partial<ModelPublicInterface>, but some model properties are only internally-assignable (such as last-modified date), and Partial produces a type in which they are all allowable.
The set of mandatory properties at model creation may be a subset of publicly visible properties (there could be defaults), suggesting that there might be two public interfaces for each model -- one for what is publicly readable, another for instantiation requirements. The readonly qualifier doesn't necessarily help, because it requires that properties be set only at construction (last-modified date again being an example of a problematic property, given that I'm encapsulating its assignment).

I'll get something working and post here about how things turned out. I want it clean.

For unit testing and mocking of database calls I use the following:
modelsSpy = jest.spyOn(models.CourseParticipation, 'query');
      modelsSpy.mockReturnValue({
        eager: (): any => {
          return {
            findById: (queryObject: any): Partial<CourseParticipation> => {
              return {
                PersonID: 1,
                SomeOtherKeyID: 1,
                Course: {
                  CourseCode: '1234',
                  SpecialtyID: 123,
                  Title: 'Test course',
                  Sessions: [
                    {
                      Date: new Date(2019, 0, 1), // Local time
                      Begintime: new Date(1970, 0, 1, 13, 0, 0, 0), // Local time
                    },
                  ],
                },
              };
            },
          };
        },
        where: (): any => {
          return {
            patch: (): number => {
              return 1;
            },
          };
        },
      });

This works pretty well for me (objectionjs version: 1.6.8) with Jest 24.
I wonder what your code looks like? We don't have so much help from TypeScript here, so any suggestions are welcome!


Scaffold: Properly handle action's height being larger than available content height

#504

@hrach The changes applied are only fixing the underlying issues in height calculation when the action is too big. The space given to the content is deliberately not capped at the moment (similar to the original state), however the nature of the action slot is that it leaves 8.dp for content in form of gradient.
"The glitches" are actually parts of content, that is being shrunk to 8.dp, which is imo a little bit unexpected (tha action appears to the user as if it is above the content, not sharing/ taking away space from it. )
A fix size/ratio/weight could be applied as suggested, however it might not be so obvious, what would be a good value there. Also the problem will not be fixed by this completely. We will need to either disallow placing custom content into action slot or make sure that scrolling is applied in usage sites.
TL;DR: Making the action slot smaller needs to be coupled with fixes on the usage sites to ensure they fits, while this fix alone preserves the status quo of the component, it just does not allow to crash in those situations.


Add integration tests for PUT /encounters/:id

Fixes existing integration tests and adds some more tests
Tests documented in #116
fixes #186

I absolutely love some of the linting fixes in this 😍😍
LGTM 😎

huhh didn't run lint-fix so not sure why it added whitespaces :o


Struggling with vector offestting

Hi!
I'm trying to animate a floating bottle in the water. I was planning on figuring out the basic physics with a rectangle and then building upon it.
I'm having problems offsetting the canvas fillRect() (which is drawn from top-left), and the rectangle from matter.js (which is drawn from the center point). I have looked at all the answers from previous posts, especially tread #211, but I still have a hard time figuring what to do.
I've tried to add this line after creating my rectangle, but it seems to make things worse:
Matter.Body.translate(this.body, Matter.Vector.sub(this.body.bounds.min, this.body.position));
I'm not sure what I'm lacking: knowledge about how to calculate this position with vectors, where to use translate, or something else.
I've made a clean code example here to demonstrate my problem. You can spawn objects by clicking on the screen. The bottle.js is the file where I tried to solve the problem.
If this is too cumbersome, I would love to know at least where to look for answers.
Thank you for your time!

So rather than taking this approach, I'd strongly suggest rendering the body.vertices instead as you can see in the wiki page on rendering. This is much easier since the vertices are already in world-space and you won't need to apply any transforms, hope that helps.


[Cherry-Pick] support show full columns from external catalog table

What type of PR is this：

[ ] BugFix
[ ] Feature
[ ] Enhancement
[ ] Refactor
[ ] UT
[ ] Doc
[ ] Tool

Which issues of this PR fixes ：

Fixes #
https://github.com/StarRocks/starrocks/pull/18793
Problem Summary(Required) ：

Checklist:

[ ] I have added test cases for my bug fix or my new feature
[ ] This pr will affect users' behaviors
[ ] This pr needs user documentation (for new or modified features or behaviors)

[ ] I have added documentation for my new feature or new function

Bugfix cherry-pick branch check:

[ ] I have checked the version labels which the pr will be auto backported to target branch

[ ] 3.0
[ ] 2.5
[ ] 2.4
[ ] 2.3

run starrocks_be_unittest

run all

run starrocks_fe_unittest

run starrocks_fe_unittest

run starrocks_fe_unittest


Removing JHU AWS Stage YML from this repository, moving to a different repository

Removing JHU AWS Stage YML from this repository, moving to a different repository

I added another commit to move the mentioned file.


Scale working until reset

Hello World.
I'm working on building a digital readout of how much beer is left in my home-brew.  I have the code working (currently testing with a 12oz can) and it is displaying the percentage left; however, if the power goes out, I am losing the initial 0 value of the scale.  I believe I need to write the 0 value to the eeprom, but I'm thinking I have my code in the wrong section or I have still have code that is zeroing it out.   Does anyone see what I'm doing wrong here?  -thanks
#include <HX711_ADC.h>
#include <EEPROM.h>
#include<LiquidCrystal.h>
LiquidCrystal lcd(12,11,5,4,3,2);
//pins:
const int HX711_dout = A1; //mcu > HX711 dout pin
const int HX711_sck = A5; //mcu > HX711 sck pin
//HX711 constructor:
HX711_ADC LoadCell(HX711_dout, HX711_sck);
const int calVal_eepromAdress; //=0;
unsigned long t = 0;
void setup() {
Serial.begin(57600);
Serial.println();
Serial.println("Starting...");
lcd.begin(16,2);
//before restart:
long tare_offset = LoadCell.getTareOffset(); //save this value to eeprom
//after restart, restore the previous value from eeprom and set:
LoadCell.setTareOffset(tare_offset);
lcd.clear();
LoadCell.begin();
float calibrationValue; // calibration value (see example file "Calibration.ino")
calibrationValue = 456.98; // uncomment this if you want to set the calibration value in the sketch
//calibrationValue = -24.01; //big scale
Serial.print("Calibration Value: ");
Serial.println(calibrationValue);
//#if defined(ESP8266)|| defined(ESP32)
//EEPROM.begin(512); // uncomment this if you use ESP8266/ESP32 and want to fetch the calibration value from eeprom
//#endif
//EEPROM.get(calVal_eepromAdress, calibrationValue); // uncomment this if you want to fetch the calibration value from eeprom
unsigned long stabilizingtime = 2000; // preciscion right after power-up can be improved by adding a few seconds of stabilizing time
boolean _tare = true; //set this to false if you don't want tare to be performed in the next step
LoadCell.start(stabilizingtime, _tare);
LoadCell.setCalFactor(calibrationValue); // set calibration value (float)
Serial.println("Startup is complete");
Serial.println(_tare);

// }
}
//setting custom values
float fullcan = 353;
//float fullcan = 1360.78;  //empty keg 4525
float leftincan =0;
float percentleft=0;
const int percent =100;
void loop() {
lcd.setCursor(0,0);
lcd.print("NE IPA      ");
static boolean newDataReady = 0;
lcd.setCursor(0,1);
lcd.print(percentleft);
lcd.print("%           ");
const int serialPrintInterval = 1000; //increase value to slow down serial print activity
// check for new data/start next conversion:
if (LoadCell.update()) newDataReady = true;
// get smoothed value from the dataset:
if (newDataReady) {
if (millis() > t + serialPrintInterval) {
float i = LoadCell.getData();
Serial.print("Load_cell output val: ");
Serial.print(i);
Serial.println("grams");
newDataReady = 0;
float currentcan = LoadCell.getData();
leftincan = ((currentcan/fullcan));
Serial.print("Full Can: ");
Serial.println(fullcan);
Serial.print("Current Can: ");
Serial.print(currentcan);
 percentleft=(leftincan*100);
  Serial.println(percentleft);
  Serial.print("Percent Remaining: ");
  Serial.println(percentleft);

  t = millis();
}

}  }

Thats a useful scale :)
Okay, I think the problem is that you're not actually saving or retrieving anything to/from the EEprom, the library will not do that for you.
The revised code below should give you an idea (I did not test the code, but hopefully it works). Send 't' from the terminal window to save the tare value in EEprom.
#include <EEPROM.h>
#include<LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

//pins:
const int HX711_dout = A1; //mcu > HX711 dout pin
const int HX711_sck = A5; //mcu > HX711 sck pin

//HX711 constructor:
HX711_ADC LoadCell(HX711_dout, HX711_sck);

//const int calVal_eepromAdress = 0;
const int tareOffsetVal_eepromAdress = 4;
unsigned long t = 0;

void setup() {
  Serial.begin(57600);
  Serial.println();
  Serial.println("Starting...");

  lcd.begin(16, 2);

  //restore the previous zero offset value from eeprom and set:
  long tare_offset = 0;
  EEPROM.get(tareOffsetVal_eepromAdress, tare_offset);
  LoadCell.setTareOffset(tare_offset);

  lcd.clear();
  LoadCell.begin();
  float calibrationValue; // calibration value (see example file "Calibration.ino")
  calibrationValue = 456.98; // uncomment this if you want to set the calibration value in the sketch
  //calibrationValue = -24.01; //big scale
  Serial.print("Calibration Value: ");
  Serial.println(calibrationValue);
  //#if defined(ESP8266)|| defined(ESP32)
  //EEPROM.begin(512); // uncomment this if you use ESP8266/ESP32 and want to fetch the calibration value from eeprom
  //#endif
  //EEPROM.get(calVal_eepromAdress, calibrationValue); // uncomment this if you want to fetch the calibration value from eeprom

  unsigned long stabilizingtime = 2000; // preciscion right after power-up can be improved by adding a few seconds of stabilizing time
  boolean _tare = false; //set this to false if you don't want tare to be performed in the next step
  LoadCell.start(stabilizingtime, _tare);
  LoadCell.setCalFactor(calibrationValue); // set calibration value (float)

  Serial.println("Startup is complete");
  Serial.println(_tare);
  // }
}
//setting custom values
float fullcan = 353;
//float fullcan = 1360.78; //empty keg 4525
float leftincan = 0;
float percentleft = 0;
const int percent = 100;

void loop() {

  lcd.setCursor(0, 0);
  lcd.print("NE IPA ");
  static boolean newDataReady = 0;
  lcd.setCursor(0, 1);
  lcd.print(percentleft);
  lcd.print("% ");

  const int serialPrintInterval = 1000; //increase value to slow down serial print activity

  // check for new data/start next conversion:
  if (LoadCell.update()) newDataReady = true;

  // get smoothed value from the dataset:
  if (newDataReady) {
    if (millis() > t + serialPrintInterval) {
      float i = LoadCell.getData();
      Serial.print("Load_cell output val: ");
      Serial.print(i);
      Serial.println("grams");
      newDataReady = 0;
      float currentcan = LoadCell.getData();
      leftincan = ((currentcan / fullcan));
      Serial.print("Full Can: ");
      Serial.println(fullcan);
      Serial.print("Current Can: ");
      Serial.print(currentcan);

      percentleft = (leftincan * 100);
      Serial.println(percentleft);
      Serial.print("Percent Remaining: ");
      Serial.println(percentleft);

      t = millis();
    }
  }

  // receive command from serial terminal
  if (Serial.available() > 0) {
    char inByte = Serial.read();
    if (inByte == 't') refreshTareOffsetValueInEEprom();
  }
}

// zero offset value, calculate and save to EEprom:
void refreshTareOffsetValueInEEprom() {
  long _tare_offset = 0;
  LoadCell.tareNoDelay(); // calculate the new tare / zero offset value
  _tare_offset = LoadCell.getTareOffset(); // get the new tare / zero offset value
  EEPROM.put(tareOffsetVal_eepromAdress, _tare_offset); // save the new tare / zero offset value to EEprom
  LoadCell.setTareOffset(_tare_offset); // set value as library parameter (next restart it will be read from EEprom)
  Serial.print("New tare offset value:");
  Serial.print(_tare_offset);
  Serial.print(", saved to EEprom adr:");
  Serial.println(tareOffsetVal_eepromAdress);
}

Thanks olkal!
Tested the code out.  When it starts up, it reads a value of 5353%, after send t, it resets to 0%, which is correct.  However, after the power is unplugged\replugged in, it goes back to the 5353% instead of 0 without a can, or 100 with a can on the scale.
I'm thinking the code is writing to the eeprom, but not retrieving it when booting up.

I did some testing now, replace LoadCell.tareNoDelay(); with LoadCell.tare(); (in line 106 or so).

Thank you!  It's working great now.


npm WARN deprecated<EMAIL_ADDRESS>

This is a(n):

[ ] Update to an existing Animated Button
[x ] Any Error
[ ] Proposal to the Repository
[ ] Documentation / READ
[x ] ME.md changes

Details:
Upon initializing npm run start, the following message is shown in the terminal.
'react-scripts' is not recognized as an internal or external command, operable program or batch file.
To eliminate that: I used npm install to acquire the missing dependencies.
But during npm install, the following error occured.
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
Following the screenshots of the issues that occured

The warning message received shown in the above file indicates that the package 'stable' you have installed is deprecated. The 'stable' package was previously used to provide a stable sorting algorithm for older versions of JavaScript that did not guarantee the stability of the Array#sort() method. However, modern versions of JavaScript now ensure that Array#sort() is a stable sort, making the 'stable' package unnecessary.
The warning message suggests referring to the compatibility table on MDN (Mozilla Developer Network) to understand the browser compatibility of the Array#sort() method. The table provides information about which browser versions support stable sorting using Array#sort().
To address this issue:
we can simply use the command: npm update stable
After this when we again run the command: npm run start, the website is working just fine.
Here's the screenshot of the same.

So I would request you to kindly assign the task of updating the Readme file of the project so that I can mention how to work on the terminal if similar error occurs for an user so that the project can be used efficiently and smoothly.
A demo of how I can clearly illustrate the measures to taken if the above mentioned error arises is shown below:

@rks-031  Is this warning giving any error?

@Spyware007 Yes, due to this, I was not able to view the webpage. There is no error shown in the terminal, just a lot of warnings but if the scripts are  deprecated it can give users a real hard time to get to know what is going wrong.
So it would be better to either make ammendments in the script dependencies or give correct illustrations in the README file to users regarding how to move ahead if such warnings are encountered.

@rks-031 Ok Assigned to you!

@Spyware007 What ammendments do I have to make...other than the README file ??

@rks-031 Apart from Readme.md nothing else!
I will look into it and fix this!

@Spyware007  for ammendment of README.md file I've already done the PR

@rks-031 I will merge it asap.

@Spyware007  thanks a lot for giving me the opportunity to do my first contribution for GSSoc'23:-)


Should I look into this?

https://azure.microsoft.com/en-gb/services/devops/?&OCID=AID736752_SEM_2mLya3SN&MarinID=2mLya3SN_79714673948855_azure devops_be_c__1275433832898558_kwd-79714836669252:loc-188_

If "we" had unit tests and the like, then yes, but, this is a UI Component project, that requires hosting in forms etc, so I do not think that there is any benefit over GitHub and the views it currently has.

Maybe sometime in the future if they integrate GitHub into Azure.

Well it sort of is....
https://andrewlock.net/building-an-open-source-github-project-using-azure-devops/

I've started to notice the tight integration more with VS 2019. Won't be long until they move the entire platform over to Azure.


Incorrect result when optGroup with multiple

an error value get when init a multiple select with optGroup.
I add following code in public/index.html
      <div class="item">
          <select multiple>
            <option>Select with optgroup and multiple</option>
            <optgroup label="Group 1">
              <option>Option 1.1</option>
            </optgroup>
            <optgroup label="Group 2">
              <option selected>Option 2.1</option>
              <option selected>Option 2.2</option>
            </optgroup>
            <optgroup label="Group 3" disabled>
              <option>Option 3.1</option>
              <option>Option 3.2</option>
              <option>Option 3.3</option>
            </optgroup>
          </select>
        </div>

And get an error value after init, like this

Is this an expected performance?
Thank u for viewing this issue!

The way to calculate index of option which seleted may be not fit for this place.
    if ( $selected.length > 1 && _this.state.multiple ) {
        selectedIndex = [];
        $selected.each(function() {
          selectedIndex.push($(this).index());
        });
      }

I modified it ：
    if ( $selected.length > 1 && _this.state.multiple ) {
        selectedIndex = [];
        $selected.each(function() {
          selectedIndex.push($(_this.$element.find("option")).index(this));
        });
      }

Wish u can see this and give me a reply, thank u.

Hey, I just created a pull-request based on your work.
It works like a charm here.
Hope the maintainer will merge it soon.
In case you want to use this fork in one project via npm :
npm install --save github:Jjoye/jQuery-Selectric
Congrats 💪


Bug: Pointer types differ in mutability

Which crate is this about?
windows
Crate version
0.30.0
Summary
use windows::{core::*, Win32::Foundation::*, Win32::Graphics::Gdi::ValidateRect, Win32::System::LibraryLoader::GetModuleHandleA, Win32::UI::WindowsAndMessaging::*};

fn main() -> Result<()> {
    unsafe {
        let instance = GetModuleHandleA(None);
        debug_assert!(instance.0 != 0);

        let window_class = "window";

        let wc = WNDCLASSA {
            hCursor: LoadCursorW(None, IDC_ARROW),
            hInstance: instance,
            lpszClassName: PSTR(b"window\0".as_ptr()),

            style: CS_HREDRAW | CS_VREDRAW,
            lpfnWndProc: Some(wndproc),
            ..Default::default()
        };

        let atom = RegisterClassA(&wc);
        debug_assert!(atom != 0);

        CreateWindowExA(Default::default(), window_class, "This is a sample window", WS_OVERLAPPEDWINDOW | WS_VISIBLE, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, None, None, instance, std::ptr::null_mut());

        let mut message = MSG::default();

        while GetMessageA(&mut message, HWND(0), 0, 0).into() {
            DispatchMessageA(&message);
        }

        Ok(())
    }
}

extern "system" fn wndproc(window: HWND, message: u32, wparam: WPARAM, lparam: LPARAM) -> LRESULT {
    unsafe {
        match message as u32 {
            WM_PAINT => {
                println!("WM_PAINT");
                ValidateRect(window, std::ptr::null());
                LRESULT(0)
            }
            WM_DESTROY => {
                println!("WM_DESTROY");
                PostQuitMessage(0);
                LRESULT(0)
            }
            _ => DefWindowProcA(window, message, wparam, lparam),
        }
    }
}

Running the basic sample for create-window gives the error:
"expected raw pointer *mut u8
found raw pointer *const u8"
This seems to be the offending line: lpszClassName: PSTR(b"window\0".as_ptr()),
The function .as_ptr() gives a *const u8 but the expected type for lpszClassName is *mut u8.
My Cargo.toml file has:
[dependencies.windows]
features = [
"alloc",
"Win32_Foundation",
"Win32_Graphics_Gdi",
"Win32_System_LibraryLoader",
"Win32_UI_WindowsAndMessaging",
]
Expected behavior
I expected the sample create-windows to work
Actual behavior
I got a compiler error: error[E0308]: mismatched types
Additional comments
No response

Update: You can still cast the *const u8 pointer to *mut u8 ptr and it'll work.
Is this the solution for the bug? Is there any unintended behavior expected if we do this?

This seems to be the same issue as #777. In that case the upcoming release of 0.31.0 will address this. The recently imported metadata version 17.0.9 provides the appropriate [Const] annotations for the respective fields in the WNDCLASSA structure.

Thank you!

Yes, this was fixed with #1470.


Server detection

Servers are detecting the schematica mod and blocking login entirely, I don't know if this is an intentional packet the mod is sending or not but it should be fixed/removed.

As a developer of a plugin that blocks the Schematica mod, I don't think the packet should be removed. However, the mod is listening for special packets sent by the server that can gracefully disable the mod without blocking login entirely. So really, it's not an issue with Schematica, but rather with shoddy code written by some plugin developer(s).

I'm closing this issue as I don't see this changing and it's been open for over a year, but
The intention is to block logging in if the user has the mod installed, mods that indicate to the server will always have this problem, the solution is to only have server -> client communication to configure the mod, nothing client -> server for servers to misuse, otherwise mods like SchematicaHider will come along to disable the respectful communication entirely.


rest server return more detailed log when "internal server error"

https://github.com/Microsoft/pai/pull/660


Roslaunch ERROR

Hi, thanks for your code!
   I got an error when using "main.launch".

   Then I set "get_imu=false", another error occured.

  Can you give me some advice? Thank u!

Ubuntu18.04
Device: OAK-D-PRO-W

Ubuntu18.04
Device: OAK-D-PRO

Hi @Cxz-dev . Can you attach the GDB debugging log here?
Please change this line - https://github.com/engcang/oakd-ros-simple/blob/main/launch/main.launch#L53
into

After you launch and get the error,
then type "bt" and press enter, then you will see the GDB log about the error.

Hi @engcang . I try the GDB debugging log.
GNU gdb (Ubuntu 8.1.1-0ubuntu1) 8.1.1
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/.
Find the GDB manual and other documentation resources online at:
http://www.gnu.org/software/gdb/documentation/.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /home/cxz/dai_ws/devel/lib/oakd_ros/oakd_ros_node...done.
Starting program: /home/cxz/dai_ws/devel/lib/oakd_ros/oakd_ros_node __name:=oakd_ros_node __log:=/home/cxz/.ros/log/be435d44-92df-11ed-ad51-48e7daba6333/oakd_ros_node-1.log
[tcsetpgrp failed in terminal_inferior: 对设备不适当的 ioctl 操作]
[tcsetpgrp failed in terminal_inferior: 无效的参数]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[tcsetpgrp failed in terminal_inferior: 无效的参数]
[tcsetpgrp failed in terminal_inferior: 无效的参数]
[New Thread 0x7fffea1e8700 (LWP 19584)]
[New Thread 0x7fffe99e7700 (LWP 19585)]
[New Thread 0x7fffe91e6700 (LWP 19586)]
[New Thread 0x7fffe89e5700 (LWP 19587)]
[New Thread 0x7fffdbfff700 (LWP 19588)]
[New Thread 0x7fffd3fff700 (LWP 19589)]
[New Thread 0x7fffda7fc700 (LWP 19590)]
[tcsetpgrp failed in terminal_inferior: 无效的参数]
[tcsetpgrp failed in terminal_inferior: 无效的参数]
[Thread 0x7fffd3fff700 (LWP 19589) exited]
[ WARN] [1673611745.896928552]: SPATIAL FILTER
[ WARN] [1673611745.897751122]: TEMPORAL FILTER
[ WARN] [1673611745.897761691]: SPECKLE FILTER
[ WARN] [1673611745.897780515]: class heritated, starting node...
 ROTATION_VECTOR output is unsupported. BMI270 supports only ACCELEROMETER_RAW and/or GYROSCOPE_RAW outputs.
Thread 1 "oakd_ros_node" received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
51	../sysdeps/unix/sysv/linux/raise.c: 没有那个文件或目录.
(gdb)
Can you give me some advice? Thank u!

And when I type "bt", the log is:
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
#1  0x00007ffff233e7f1 in __GI_abort () at abort.c:79
#2  0x00007ffff2993957 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#3  0x00007ffff2999ae6 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#4  0x00007ffff2999b21 in std::terminate() ()
from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#5  0x00007ffff2999da9 in __cxa_rethrow ()
from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#6  0x00007ffff2d40f3e in dai::DeviceBase::tryStartPipeline(dai::Pipeline const&) () from /usr/local/lib/libdepthai-core.so
#7  0x00007ffff2d32e5b in dai::Device::Device(dai::Pipeline const&) ()
from /usr/local/lib/libdepthai-core.so
#8  0x00005555554133b8 in main (argc=, argv=0x7fffffffda98)
at /home/cxz/dai_ws/src/oakd-ros-simple-main/src/main_ros.cpp:16

hello. i see the same error. ubuntu20, noetic, oak-d-pro w

anyone solved it? I have exactly the same error. no device is found.

@Cxz-dev , @LanWu076 , @asimonov-TII
I also suffered the problem today and solved it by changing the USB3 cable.
I recommend to check $ lsusb, $ dmesg -w, and run depthai_demo.py from official demo first. If you cannot run official demo, solve the cable and connection issue first. It is not the case of my code.

I think you can close the ROTATION_VECTOR in main_ros.cpp L189.I can delete the 'dai::IMUSensor::ROTATION_VECTOR' to close this function.

@ahjcahkl Hi.
Do you mean getting dai::IMUSensor::ROTATION_VECTOR occur the error?

I searched for relevant issues on Luxonis and found that someone has encountered the same problem as me (regarding BMI 270). According to the official explanation, some OAK-D-PRO models of the same model use BNO085's IMU, which supports 9-axis information. But BMI does not support it, which resulted in an error. I have reviewed the relevant code and found that if an error occurs, modifying the declaration during IMU initialization can solve the problem. The above are my thoughts.

@ahjcahkl Thank you for letting me know. I will then parameterize whether turning on rotation or not in the launch file!


Cleanup handling of Overlay2 file systems

@rhvgoyal PTAL

@rhvgoyal Only changed Overlay code.

LGTM

@rh-atomic-bot r+


Add paging get object method

In my other implementation I am using generics, however I wasn't prepared to upgrade this project to go 1.18 so I went with interface{} instead.
I don't think the json.Unmarshall call will create the correct type, but I wanted to offer this up.

@hemanthKa677, I am sorry I missed this notification. I'll take a look at it today.

@hemanthKa677 I want this to work exactly like the existing GetObject for consumers with Infoblox zones that have > 1000 records. The problem is, if you call GetObject and your result query has > 1000 records, the Infoblox api returns an error. PagingGetObject will loop through the results until it can return all of the records.
I've been using this https://github.com/GeneralMills/external-dns/blob/master/provider/infoblox/paging_ibclient.go and raised a PR to the External-DNS project https://github.com/kubernetes-sigs/external-dns/pull/2996
I think it would be best to include the change in the go client, however I wrote this using generics which weren't introduced until golang 1.18. There is a separate PR https://github.com/infobloxopen/infoblox-go-client/pull/182
I don't think the implementation in this PR will work properly because I can't declare an array with the correct type to store the paging results in. (or if I can, I don't know how)
Do you think it's possible to upgrade this to use golang 1.18?


guys, how I can switch it to next 14

Just like normal, you should be able to update any of the packages. Just like a normal monorepo. Update any desired packages from the root of the repo


[v1.6] docs: Go in to more detail on the Redis settings

Description
docs: Go in to more detail on the Redis settings
This should have been included in https://github.com/datawire/apro/pull/1550.
Related Issues
https://github.com/datawire/apro/issues/1758
Testing
None, it's just a doc change.
Tasks That Must Be Done

[x] Did you update documentation?

LGTM


DEV:LOG: getWellName & getWellBoreName searches allow a Status of 400

getWellName in LogConverterExtended.java (Valve) has this code:
int status = response.getStatus();
// If there is an error, well name will return as NULL.
if (201 == status || 200 == status || 400 == status) {
// get the wellborename of the first wellbore in the response
wellName = GraphQLRespConverter.getWellNameFromGraphqlResponse(new JSONObject(response.getBody()));
        // cache the wellbore uuid/uid
        //UidUuidCache.putInCache(wellName, witsmlObject.getParentUid(), witsmlObject.getGrandParentUid());

    }

Error -> The logic should only allow 201 or 200 to continue the logic flow. Otherwise, this will bomb on "response.getBody.
Also fixing getWellBoreName for the same reason.

Verification of the fix in progress
@TessForGithub2 will update 7/18


Library will not read files greater than 2Gb in size

The internal data structure members that store file positions (_mat_t.bof, matvar_internal.datapos) are 'long' data types which are inconsistent among platforms.  By conditionally making these 64-bit integers we can support files greater than 2Gb on largefile-capable 32-bit systems as well as 64-bit Windows.  This will also necessitate using 64-bit versions of fseek() and ftell() where available.
I have encountered Matlab Level 5 formatted files greater than 2Gb as output from the SWAN numerical model (http://swanmodel.sourceforge.net/).  Matlab will read these just fine, and the Matlab file format specification does not seem to prohibit large files.
I have attached a patch against matio version 1.5.19 that I have tested working on Windows 32- and 64-bit using Visual Studio and it should also work on most Unix/Linux systems, although untested.  The approach relies on exposing 64-bit versions of fseeko() and ftello() in stdio.h but the method used should really be implemented as a compiler flag in the build system and/or in the generation of matioConfig.h, so mine is not the most elegant implementation.
Nevertheless, it works and my patch contribution is attached:
largefile.zip
Don.

Is there any plans to fix this limitation? Any work in progress?

Yes, will do.

Thanks !
Any official releases/hotfixes to include this important fix?
(The latest official release, i.e. 1.5.21 does not include this fix. )

Hi, I don't know if this is the correct place to discuss the add-lfs branch, but I couldn't find a better place.
if you need help with the CMake part, let me know. Because matioConfig.cmake.in should basically be a copy of matioConfig.h.in. And CMake is missing checks for the seek/tell functions.
There are also some other small things I like to comment on:

you added BOM encoding to mat73.c
should inflate.c use foff_t instead of off_t?
#include <sys/types.h> in matio_private.h is not needed

Thanks

I already spent far too many hours to get the configuration done (le sigh). Thanks for your offer to help. For the CMake part the configration of _FILE_OFFSET_BITS and _LARGEFILE64_SOURCE is tricky and not yet solved. (I have just pushed though).
Feel free to push to the add-lfs branch, but be cautious with the Travis CI credits.
There are also 40 tests failing for CygWin 32-bit (https://ci.appveyor.com/project/tbeu/matio/builds/42952340/job/0ifj46s9tm5mg7bb?fullLog=true). I am still clueless since I neither can reproduce nor debug locally (https://ci.appveyor.com/project/tbeu/matio/builds/42952597/job/u92mh70ja74i9ydo).
Another issue is that the CygWin 64-bit env stopped working on Appveyor. I failed to fix it.

@MaartenBent I also fixed your above mentioned findings now.


Dev setup for vscode not working

VSCode Version: 1.18.0
OS Version: OSX 10.13.1

Steps to Reproduce:

Pull latest master
Install dependencies
Build VS Code (Cmd + Shift + b).
Run built binary

Reproduces without extensions: Yes/No

Not sure what this is. How did you run it?

@roblourens this was probably some node modules installation thing. Removed my node dependencies and installed again. Working now.
Thanks. 😀


Pushing a second s2i component to the same app and project fails if no URL is explicitly created

/kind bug
What versions of software are you using?
Operating System:
Fedora 34
Output of odo version:
odo v2.2.3 (e99b14212)
How did you run odo exactly?

Create a s2i component and push it. odo create --s2i nodejs frontend; odo push.
Create another s2i component and push it. odo create --s2i python backend; odo push.

Actual behavior

Component is created and is pushed properly. This creates a URL with name "http-8080".
Component is created successfully, but component push fails with url named "http-8080" already exists in the same app named "app" error. This also creates URL with name "http-8080". This steps runs successfully if a url with different name is created.

Expected behavior

Component creation must create URL with a unique name.
Component creation must create URL with a unique name.

Any logs, error output, etc?

/lifecycle frozen
this is still relevant to devfile components.


ModuleNotFoundError: No module named 'torchsparse.point_tensor'

Is there an existing issue for this?

[X] I have searched the existing issues

Have you followed all the steps in the FAQ?

[X] I have tried the steps in the FAQ.

Current Behavior
Hi,
When I used the instruction to install the lib, but when I ran experiments I met the error, Could you please give me some advice？
torchsparse==1.4.0
best wishes to you!
Error Line
--
Environment
- GCC:
- NVCC:
- PyTorch:
- PyTorch CUDA:

Full Error Log

Error Log
[PUT YOUR ERROR LOG HERE]

This is due to the API changes from v1.4.0. You could change the import to from torchsparse import PointTensor.

ok, Thank you very much!
I have solved this problem


Test partial input to Clay v0

After some discussions, we realized that there is a technical possiblity to run the Clay v0 model with partial inputs. We need to

[ ] Create an example notebook to show how that can be done
[ ] Test the model with a benchmark that compares partial input (ideally one for Sentinel-2 and one for Sentinel-1) with full inputs.
[ ] Document this.

I suggest we make embeddings of a subset of the training data location, and compare. Probably both the usual average embeddings (at the patch level) and the smaller ones at the self-attention patch level.
In the latter case, we would only have those corresponding to the groups we used as inputs, right?
So we compare:

Input data
Embedding
Case

All 13 bands
Normal ones (average at patch level 5kmx5km)
The normal ones

All 13 bands
self-attention patch groups 300mx300m
Fine-level embeddings

Only RGB
Normal ones (average at patch level 5kmx5km)
Restricted input, same output

Only RGB
self-attention patch groups
Fine embedding of band group 300mx300m


feat: Use jest-editor-support to show messages etc

This is going to be a WIP PR, although Danger isn't on this repo, so that might make it hard for me to preview 🗡

This fixes an issue with TSC: https://github.com/facebook/jest/pull/4636

Found a way to simplify even further

OK, this should be good as a rough first draft 👍
Without seeing how Danger JS deals with it, I can't really progress much further.

At first glance, this looks awesome. Appreciate the contribution!

Without seeing how Danger JS deals with it, I can't really progress much further.

I can set up Danger on this repo in another PR/commit and then we can merge it in here to try it out.

Yeah, good call 👍

#24 has been resolved and merged, so PRs should run Danger now. I tried to check out this branch locally and push a merge commit to your forked master branch, but I'm having trouble figuring out the proper way to do it (or if it's possible?).

In theory you can, I also don't know how to do it - which is why I do branches, updating now

interesting, looks like different versions of Jest test output has different keys available

I'm going to leave this alone for a bit to think, but TBH, I think there's a good argument for letting these tests fail in master also ( so that there's always a visual of what it looks like )

I like that output :100:

OK, I'm pretty convinced on this now, 👍
I've skipped the tests which fail.

:shipit:

New release?! 💯

Yep! Give 1.1.0 a try and leave any feedback/bug reports in a new issue. ❤


refactor(protocol): delete all airdrop related contracts

I have a few ideas for redesigning these contracts. The current ones are unnecessarily complicated. A new PR will be created on top of this PR. We can leave this PR unmerged until the new PR is ready.
@2manslkh I'll let you review the new contracts' ABIs later, I think for you, the integration should be simpler.

will the contracts still be refactored? @dantaik

will the contracts still be refactored? @dantaik

Hopefully not (or not really or not much) for genesis airdrop.


Item Drop System

Item actions are handled by Interfaces, the logic is simple so I've put it in there for now. Might need to revisit after #84 and #85.


[CT-2406] [Regression] dbt build -s 3+model_name is running ALL models upstream

Is this a regression in a recent version of dbt-core?

[X] I believe this is a regression in dbt-core functionality
[X] I have searched the existing issues, and I could not find an existing issue for this regression

Current Behavior
dbt run -s 2+some_model and dbt build -s 2+some_model return a different number of models
Confirmed this is also happening in the other direction, ie.
dbt run -s some_model+2  and dbt build -s some_model+2 return a different number of models
Expected/Previous Behavior
only parental models and tests within 3 nodes should run, yet all parental models and tests are running
Steps To Reproduce
dbt run -s 3+some_model runs as expected with the 3 levels of upstream parents
dbt build -s 3+some_model runs ALL the upstream parents.
Relevant log output
No response
Environment
- OS:
- Python:
- dbt (working version):
- dbt (regression version):

Which database adapter are you using with dbt?
No response
Additional Context
There is a loom video on the Jira card showing the issue as well.

@Mathyoub Is this the same as https://github.com/dbt-labs/dbt-core/issues/5193? I agree it's unexpected behavior, but I'm not sure that it's a regression in a new/recent version of dbt-core

Closing as a duplicate of #5193


[CORE-93/CORE-172] Migrate default project name from "" to "default"

One issue with MigratePostgreSQLCollection is that we have "immutable" v2.4.0.go migration files that depend on it, but if we ever change MigratePostgreSQLCollection then that means v2.4.0.go are no longer immutable.

Excellent point. Maybe I should rename it to MigrateV2_4_0?

Another issue I'm worried about is that we don't have logic that can reverse these migrations. So how would users go back to a previously known good state if this migration fails?

Our current migration system only supports up-migrations, which means that the only solution in case of a failure is to restore from backups.

One issue with MigratePostgreSQLCollection is that we have "immutable" v2.4.0.go migration files that depend on it, but if we ever change MigratePostgreSQLCollection then that means v2.4.0.go are no longer immutable.

Excellent point. Maybe I should rename it to MigrateV2_4_0?

Up to you! This is not a blocker.

Since we are not releasing this in v2.4.0, maybe we should rename the files to v2.5.0?

I intend to do that as part of the 2.4.0 release process.

Just food for thought. We've never done migrations that necessitate this many files before. Having a bunch of v2.4.0 migration files spread throughout the repo is probably not ideal. Have you thought of alternative ways to organize these files? Perhaps have them all in a src/internal/clusterstate/v2.4.0 folder? This isn't a blocker, but I think it does set a precedence for how to implement multi-file migrations in the future.

We've never done migrations that necessitate this many files before … Have you thought of alternative ways to organize these files?

I did. I figure the two alternatives are to locate the migrations centrally or place each migration within the package it is migrating. The downside of the latter, as you note, is that there are migrations scattered throughout the codebase; the downside of the former is that knowledge of the internals of e.g. package pfsdb end up living inside package clusterstate. Also, it would not be possible to refer to unexported types, functions or variables in a migration if it lives outside the package it is migrating. I figured that these two were pretty dispositive.
However, looking at the final versions of the migrations I notice that the DB migrations themselves tend to rely on internal knowledge of package collections and do not use any private package members:

pfsdb: uses no internal references the migration doesn’t declare itself; does use knowledge of how package collections stores data on disk; exports functions for use by package ppsdb’ migration in addition to the migration function.
ppsdb: uses an internal reference to pipelineCommitKey; does not use knowledge of how package collections stores data on disk; only exports migration function.
authdb: uses no internal references; does use knowledge of how package collections stores data on disk; only exports migration function.

OTOH, collection.MigratePostgreSQLCollection_v2_4_0 does use a fair amount of internal references.
Considering the issue again, and particularly considering the issue of internal references (which shouldn’t be changed because they have been used in a migration), I think you’re correct: it would be wise to move everything into one v2.4.0 package, and duplicate any internals needed (this would preserve them unaltered in the future, which is what we would want for a migration).


fix: improper many:many association -> users have many task but task …

this PR adds 'add a task' capability to project board
fixes improper many:many association between users and tasks -> user has many tasks, each task belongs to a single user
also adjusts seed file to reflect new association method

closing this PR to add ability for multiple users to be assigned to a single task


Producing message from std::string or std::ostringstream does not give the same result

Hey there, I'm new to Kafka and I have been playing around with the
examples of librdkafka (https://github.com/edenhill/librdkafka/tree/master/examples)
and modern-cpp-kafka (https://github.com/morganstanley/modern-cpp-kafka/tree/main/examples)
One observation doesn't make sense to me. Maybe you can help to untangle my thoughts:
Looking at this example: https://github.com/morganstanley/modern-cpp-kafka/blob/main/examples/kafka_async_producer_copy_payload.cc
I have exchanged the CLI input to this:
[...]
        // Create a producer instance.
        KafkaProducer producer(props);

        std::ostringstream oss;
        oss << "I am a very long text and I will see if it can be transferred.";

        std::cout << "'" << oss.str() << "'" << std::endl;

        auto record = producer::ProducerRecord(topic,
                                               kafka::NullKey,
                                               kafka::Value(oss.str().c_str(), oss.str().size()));
[...]

The producer prints
[...]
'I am a very long text and I will see if it can be transferred.'
[...]

The outcome on the consumer side is
[...]
Value [[0x00][0x00][0x00][0x00][0x00][0x00][0x00][0x00]ery long text and I will see if it can be transferred.]

Changing the producer to
[...]
        // Create a producer instance.
        KafkaProducer producer(props);

        std::ostringstream oss;
        oss << "I am a very long text and I will see if it can be transferred.";

        std::cout << "'" << oss.str() << "'" << std::endl;
        std::string testString = oss.str();
        std::cout << "'" << testString << "'" << std::endl;

        auto record = producer::ProducerRecord(topic,
                                               kafka::NullKey,
                                               kafka::Value(testString.c_str(), testString.size()));
[...]

gives me
[...]
'I am a very long text and I will see if it can be transferred.'
'I am a very long text and I will see if it can be transferred.'
[...]

on the producer side and
[...]
Value [I am a very long text and I will see if it can be transferred.]

on the consumer side.
How does that make sense? Why is the outcome different?

I see why you met the problem.
Why not changing the following
        auto record = producer::ProducerRecord(topic,
                                               kafka::NullKey,
                                               kafka::Value(oss.str().c_str(), oss.str().size()));

to
        auto str = oss.str();
        auto record = producer::ProducerRecord(topic,
                                               kafka::NullKey,
                                               kafka::Value(str).c_str(), oss.str().size()));

Be aware that here the oss.str().c_str() is problematic, since oss.str() is just a temporary object which would be invalid right after c_str() being called. https://en.cppreference.com/w/cpp/io/basic_stringstream/str

Thanks a lot. I have done exactly that to solve the issue. But I guess, now I can remove the 'workaround'-label :)


Add subtree third_party/derp.

Add subtree third_party/derp.

It looks like the copybara workflow creates a single CL with one parent (doesn't create the subtree commit)—this would be equivalent to the squash+merge workflow when actually merging.
I don't think Copybara would be able to handle any of these 3 options well right now because it migrates based on commits on a branch, so I don't know that it would look at commits that are other parents. But we can try a few and see


Fix bug #246

Like the title said, it fixes the issue #246. SafeQL should distinguish schema in table/column resolution.
To discuss :

how to deal with the default schema ? for now I hard coded public but cannot work for all use cases

Available solutions :

put a default schema option for the plugin with a default value to public
use the current behaviour (do not take into account schema) when schemaname is not defined

@Newbie012 When do you think you can close this PR and release a new version ?


Cargo may hit 260 characters path limit on windows when installing dependencies

I encountered this issue when trying to build project that have a transitive dependency on git repository with deep nesting:
C:/Users/ivstas/.cargo/git/checkouts/servo-css-parser-6b649679bab5995b/0d528c7/servo/tests/wpt/mozilla/meta/mozilla/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/iframe-tag/same-origin-downgrade.keep-origin-redirect.http.html.ini: The filename or extension is too long.
Windows 10 has a feature that enlage this limit, but turning on this feature didn't help either.
My assumption (that could be wrong) is that win 10 has some kind of new api that allows working with paths above 260-character limit.

The limit is removed since Windows 10 1607 but:

However, you must opt-in to the new behavior.

You have to set an value in register or group policies. Go and check it out.

@PENGUINLIONG

turning on this feature didn't help either

I've turned new behaviour on in the registry. Didn't help.

@ivstas can you provide the full error message for when this happens?

@alexcrichton i'm trying to use rsx lib that has all dependencies in git. This is what I get:
C:\Users\ivstas\code\rsx-usage>cargo test --verbose
    Blocking waiting for file lock on the git checkouts
    Updating git repository `https://github.com/victorporof/rsx.git`
    Updating git repository `https://github.com/victorporof/rsx-primitives.git`
    Updating registry `https://github.com/rust-lang/crates.io-index`
    Updating git repository `https://github.com/victorporof/rsx-layout.git`
    Updating git repository `https://github.com/victorporof/webrender.git`
    Updating git repository `https://github.com/victorporof/rsx-dom.git`
    Updating git repository `https://github.com/victorporof/rsx-stylesheet.git`
    Updating git repository `https://github.com/victorporof/rsx-parser.git`
    Updating git repository `https://github.com/victorporof/yoga-rs.git`
    Updating git repository `https://github.com/victorporof/rust-self-tokenize.git`
    Updating git repository `https://github.com/victorporof/servo-css-parser.git`
error: failed to load source for a dependency on `servo-css-parser`

Caused by:
  Unable to update https://github.com/victorporof/servo-css-parser.git

Caused by:
  failed to update submodule `servo`

Caused by:
  [2/-4] failed to stat 'C:/Users/ivstas/.cargo/git/checkouts/servo-css-parser-6b649679bab5995b/0d528c7/servo/tests/wpt/mozilla/meta/mozilla/referrer-policy/origin-when-cross-origin/attr-referrer/same-origin/http-https/iframe-tag/same-origin-downgrade.keep-origin-redirect.http.html.ini': The filename or extension is too long.

Ok thanks for the info! That also means the error message is coming from libgit2, so there may not be a whole lot we can do here...

Checked out libgit2 repo, there is even an corresponding issue that nobody touched since 2013:
https://github.com/libgit2/libgit2/issues/1899

The new libgit2 issue is https://github.com/libgit2/libgit2/issues/3053, so I'd say closing this in favour of that upstream issue.


FileNotFoundError: [Errno 2] No such file or directory:  sigProfilerPlotting/templates/DBS78.pkl

Dear SigProfiler team,
I'm having the issue:
FileNotFoundError: [Errno 2] No such file or directory:

'/home/aldhair/.local/lib/python3.10/site-packages/sigProfilerPlotting/templates/DBS78.pkl'

According to pip3 list:

SigProfilerAssignment 0.0.18
SigProfilerExtractor 1.1.4
SigProfilerMatrixGenerator 1.2.13
SigProfilerPlotting 1.3.2

My code was:
from SigProfilerExtractor import sigpro as sig
sig.sigProfilerExtractor("vcf", "59only", "/home/aldhair/Apps/SigProfilerExtractor-1.1.4/59only", reference_genome="GRCh38", opportunity_genome = "GRCh38", exome = True, minimum_signatures=1, maximum_signatures=25, nmf_replicates=100, resample = True, batch_size=1, cpu=-1, gpu=False, nmf_init="nndsvd_min", precision= "single", matrix_normalization= "gmm", min_nmf_iterations= 10000, max_nmf_iterations=1000000, nmf_test_conv= 10000, nmf_tolerance= 1e-15, nnls_add_penalty=0.05, nnls_remove_penalty=0.01, initial_remove_penalty=0.05, de_novo_fit_penalty=0.02, get_all_signature_matrices= False)

I'm working on the Ubuntu subsystem for Windows 11, any idea of what is happening?
Thanks

Hi @AldhairMedico ,
The error is due to the recent update in the Sigprofilerplotting library.
However, this issue should be addressed in SigProfilerPlotting 1.3.2 as you are showing in your pip3 list.
Can you please make sure to upgrade SigProfilerPlotting to the recent version of 1.3.2 and remove any conflicting previous versions of this library installed in your environment?
Best,
Ravi

Please reopen the ticket if the issue persists.
Ravi.

I found the very same problem installing SigProfiler with SigProfilerPlotting version 1.3.2 (python 3.6)

Please remove any previous SigProfilerPlotting modules you have in your environment and reinstall SPP v1.3.2. And even then if you are having this issue please notify us.


Error in install turicreate

I couldn't install turicreate
please help
The pip version is 19.0.3
Python version is 2.7
C:\Users\asus>pip install -U turicreate
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Collecting turicreate
Using cached https://files.pythonhosted.org/packages/db/54/167837569bcb816b3fe68f003f18d07ab9d5ac31b2b12b8f9b07b1ccc7a4/turicreate-4.2.tar.gz
Building wheels for collected packages: turicreate
Building wheel for turicreate (setup.py) ... error
Complete output from command C:\Users\asus\Anaconda3\envs\venv\python.exe -u -c "import setuptools, tokenize;file='c:\users\asus\appdata\local\temp\pip-install-xjkuwu\turicreate\setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" bdist_wheel -d c:\users\asus\appdata\local\temp\pip-wheel-95kjt0 --python-tag cp27:
running bdist_wheel
running build
installing to build\bdist.win-amd64\wheel
running install
      ==================================================================================
      ERROR

      If you see this message, pip install did not find an available binary package
      for your system. Supported platforms are:

      * Linux x86_64 (including WSL on Windows 10).
      * macOS 10.12+ x86_64.
      * Python 2.7, 3.5, or 3.6.

      Other possible causes of this error are:

      * Outdated pip version (try `pip install -U pip`).

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

Failed building wheel for turicreate
Running setup.py clean for turicreate
Failed to build turicreate
Installing collected packages: turicreate
Running setup.py install for turicreate ... error
Complete output from command C:\Users\asus\Anaconda3\envs\venv\python.exe -u -c "import setuptools, tokenize;file='c:\users\asus\appdata\local\temp\pip-install-xjkuwu\turicreate\setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record c:\users\asus\appdata\local\temp\pip-record-qvsorz\install-record.txt --single-version-externally-managed --compile:
running install
        ==================================================================================
        ERROR

        If you see this message, pip install did not find an available binary package
        for your system. Supported platforms are:

        * Linux x86_64 (including WSL on Windows 10).
        * macOS 10.12+ x86_64.
        * Python 2.7, 3.5, or 3.6.

        Other possible causes of this error are:

        * Outdated pip version (try `pip install -U pip`).

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

----------------------------------------

Command "C:\Users\asus\Anaconda3\envs\venv\python.exe -u -c "import setuptools, tokenize;file='c:\users\asus\appdata\local\temp\pip-install-xjkuwu\turicreate\setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record c:\users\asus\appdata\local\temp\pip-record-qvsorz\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in c:\users\asus\appdata\local\temp\pip-install-xjkuwu\turicreate\

It looks like your operating system is Windows. We don't support windows. We do however work on Windows 10 using WSL.

I have WSL on Windows 10 but I don’t know how to use it to install turicreate. It doesn’t accept the Pip command

You probably first need to install pip in your WSL.

I am also facing the same issue. I am using python 3.7.7.
Please help me to fix this.

I have used WSL in Windows 10 Pro.
I have successfully created a virtual environment.
I am unable to install turicreate.
I am using python 3.7.7
Please help me with this

same here.

@tssrao - When you are in that virtual environment, what's the output of pip -V?

19.3.1

@Akumar132232 I faced the same issue by default I had python 3.8  in Ubuntu-20  , I did an altinstall of Python 3.6.9 and tried installing with it and it worked.
https://towardsdatascience.com/building-python-from-source-on-ubuntu-20-04-2ed29eec152b
I hope this helps

In the meantime, I have found solution for installing turicreate on Windows.
turicreate works only with UBUNTU 18.04 and python 3.7 (also works with few older versions).
It does not work with UBUNTU 20.04 or Python 3.8 or any higher versions.
So, if you are using any versions higher than UBUNTU 18.04 or Python 3.7, firstly uninstall both of them and install UBUNTU 18.04 and Python 3.7. Now turicreate will work fine.
I Hope, this may help.

Even I am having the same issue .I used WSL in windows 10. Every thing is perfect but when I install turicreate I get the same error.Please try giving any solution

@vishnu5220 which version of UBUNTU you are using?

@vishnu5220 which version of UBUNTU you are using?

Ubuntu 18.04 LTS

@vishnu5220 , python version?

@vishnu5220 , python version?

version 3.7

E

@vishnu5220 , python version?

Before this I even tried with  python 3.6 and  normal ubuntu   app from microsoft store(not ubuntu 18.04 LTS just the normal one).But that didn't work.I am struggling from 1 week but didn't get any solution

@vishnu5220 , Can you send a screenshot of your UBUNTU 18.04 LTS?

@vishnu5220 , Can you send a screenshot of your UBUNTU 18.04 LTS?

Definetly sir I am reinstalling  .Give me some time


[Event Request] table 900 "Assembly Header" - OnAfterValidateDates

Describe the request
Could you please create a new integration Event in table 900 "Assembly Header" at the end of procedure ValidateDates
    procedure ValidateDates(FieldNumToCalculateFrom: Integer; DoNotValidateButJustAssign: Boolean)
    var
        NewDueDate: Date;
        NewEndDate: Date;
        NewStartDate: Date;
        IsHandled: Boolean;
    begin
        IsHandled := false;
        OnBeforeValidateDates(Rec, FieldNumToCalculateFrom, DoNotValidateButJustAssign, IsHandled);
        if IsHandled then
            exit;

        CalculateNewDates(FieldNumToCalculateFrom, NewDueDate, NewEndDate, NewStartDate);
        if DoNotValidateButJustAssign then
            AssignNewDates(FieldNumToCalculateFrom, NewDueDate, NewEndDate, NewStartDate)
        else
            DoValidateDates(FieldNumToCalculateFrom, NewDueDate, NewEndDate, NewStartDate);

        if "Due Date" < "Ending Date" then
            Error(Text015, FieldCaption("Due Date"), "Due Date", FieldCaption("Ending Date"), "Ending Date");
        if "Ending Date" < "Starting Date" then
            Error(Text015, FieldCaption("Ending Date"), "Ending Date", FieldCaption("Starting Date"), "Starting Date");

// >> NEW
OnAfterValidateDates(Rec, FieldNumToCalculateFrom, DoNotValidateButJustAssign);
// << NEW
    end;

[IntegrationEvent(false, false)]
    local procedure OnAfterValidateDates(var AssemblyHeader: Record "Assembly Header"; FieldNumToCalculateFrom: Integer; var DoNotValidateButJustAssign: Boolean)
    begin
    end;

Additional context
There is no event in this table, where i can get the calculated dates values. To use the OnAfterModifyEvent is not the way, because every change in this table would raise my event.
It would be fine for me, when there is no var parameter, cause i don't want to modify the values.
Internal work item: AB#561121

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.
Build ID: 28338.


OpenType.js API signature changed/incompatible + OpenType.js latest release

The  version of opentype.js package listed in this package
as a dependency (^0.4.7 => v0.4.11) uses a different API,
the expected returned structure is different now.
npm install -g character map
character-map -f ./test.ttf

[...]/node_modules/character-map/index.js:29
        font.glyphs.forEach(function(glyph) {
                    ^

TypeError: font.glyphs.forEach is not a function
    at [...]/node_modules/character-map/index.js:29:14
    at [...]/node_modules/character-map/node_modules/opentype.js/src/opentype.js:220:16
    at [...]/node_modules/character-map/node_modules/opentype.js/src/opentype.js:52:9
    at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:380:3)

You can find the fixed code here: https://github.com/strarsis/font-chars/blob/master/index.js
It may be helpful to use font-chars internally in this CLI tool directly.
Furthermore opentype.js implemented WOFF support now, since release v0.5.0,
so upgrading the opentype.js dependency would add WOFF support to this tool, too.

Just had the same issue.
@strarsis: Is there a simple solution to this?

@tderkert: Yes, I based off an own module that got the API usage right:
https://www.npmjs.com/package/font-chars
See the example in its README.

@strarsis Did a pull request with a working fix similar to yours. Your for loop looks prettier though so maybe i should update that and make another pull request.

released as v1.1.0, thx for the PR


Regression test schema generated with graphql-tools?

Is there a way to test the result of makeExecutableSchema? I.e. if an object field is of type String, what (if any) is my best recourse to test that this field is a GraphQLString?

You can use a tool like this! https://github.com/entria/graphql-find-breaking-changes-cli


change default license?

Is it okay if I send a PR to change the default license in you templates to agpl?

Hi @kanishka-work,
Thanks for the suggestion. I don't think changing the default license of the templates would be a good solution: lots of users probably prefer MIT as the default license.
However, I'd very much welcome a PR to offer a choice of license as a configuration of the templates. Here's a list of license most used in Opam packages, from Drom:
https://github.com/OCamlPro/drom/blob/0fc2b8e8ac69b87ca3e4703d044f1249bf02d8dc/src/drom_lib/license.ml#L15

I will reopen a little later, if I expect to actively work on this. Probably won't get to it for a while.


OpenMLS: Async edition

Breaking changes ahead!

Note: This won't get merged as of now. We need to see with the OpenMLS team if this has a chance to ever go to mainline.
If not, this PR will stay as-is and will get rebased on top of develop regularly.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.0 out of 4 committers have signed the CLA.:x: OtaK:x: beltram:x: raphaelrobert:x: augustocdiasYou have signed the CLA already but the status is still pending? Let us recheck it.


Backtick no gfx

We can start to remove gbgfx functionality from rgbasm as we phase in rgbgfx.

What's the point in a base 4 prefix? I think that it should be kept like it is now for backwards compatibility. Also, it can be used for adding a few bytes of graphics data when a full png is overkill. I don't see the point in this change.

I agree. ` has always represented planar graphics, not base 4. In general, I’m reluctant to delete features that will cause code written for “classic” RGBDS to no longer build.
Side note: please be careful not to include commits from other pull requests when making a pull request.


Fix for issue #28 / #29 related to Mark as Junk vs. Stack All Items binding

This at least addresses the issue where "Mark as Junk" binding shows up regardless of the junk setting being disabled. It now honors this setting and if Inventory Junk setting is disabled it will display / use the "Stack All Items" as the "UI_SHORTCUT_RIGHT_STICK" binding. Issue #29 and #28 are pretty much the same issue -- with the exception that we may need to add an actions ("Y button") menu item to Stack All Items or similar.
Thanks!

Added fix for entries height.


298 page listing the episodes not yet listened

Description
Adds podcast listening time to timeline, enable filtering for unlistened podcasts.
Linked Issues
Additional context

@bastgau Could you please checkout the develop tag?

I pulled the docker with the tag:dev for testing.
Seems to work correctly but I noted two things :

'Seulement favoris podcasts' should be 'Seulement podcasts favoris'
'Pas encore joué' should be 'Pas encore écouté"

On the main page, the list of "Latest episodes" is empty. The list is not empty when I use the docker with the latest tag.
Best.

Thanks for the feedback. I fixed the bug and added your translations.


Persist CI e2e test cluster logs for debugging purposes

We need to be able to diagnose e2e test failures after the relevant test cluster has been shut down.
Right now this almost works, but not quite.
Fluentd can currently only be configured to send log files to one place, for example:

Google Cloud Logging, or
ElasticSearch (running as a pod in the e2e test cluster, and saved to local disk on the node).

With the current configuration in hack/e2e.go, logs typically go to ElasticSearch (and there is an e2e test to check that that works correctly), and tears down the e2e test cluster after each test run, so the logs are deleted.
The proposed solution is to have fluentd configurable to send to multiple log collector backends, and configure it as such to both Google Cloud Logging and ElasticSearch for CI e2e test runs to facilitate easier debugging.  Satnam6502@ has offered to sort this out.

Originally it was possible to send logs to both Elasticsearch and Cloud Logging but at some point this got made into a binary choice of one or the other (by @jbeda or @zmerlynn ?). I propose to undo this unless there are strong objections.
@zmerlynn : what do you think?

I didn't turn it into a binary choice. :)
On Thu, Apr 23, 2015 at 11:47 AM, Satnam Singh<EMAIL_ADDRESS>wrote:

Originally it was possible to send logs to both Elasticsearch and Cloud
Logging but at some point this got made into a binary choice of one or the
other (by @jbeda https://github.com/jbeda or @zmerlynn
https://github.com/zmerlynn ?). I propose to undo this unless there are
strong objections.
@zmerlynn https://github.com/zmerlynn : what do you think?
—
Reply to this email directly or view it on GitHub
https://github.com/GoogleCloudPlatform/kubernetes/issues/7236#issuecomment-95681810
.

Yeah, pretty sure it was Joe. I am sure it was a wide decision at the time.

Would be nice to have these at maximum verbosity because when we need them we need them all, IIRC we currently only get V(2) on a kube-up cluster

I see this is marked as a post v1.0 milestone? If we don't want this urgently then I will un-assign myself for now.

There is a valid argument that we would not block the 1.0 release for lack of these persisted test logs, and hence the v1.0 milestone was tentatively removed.
There is a counter argument that we stand little chance of being able to debug the existing and still-to-be-found flaky test failures in the absence of log files, and that one or more of those bugs, if not fixed, will block the launch anyway.
I'd say that if there is nothing on the v1.0 milestone that you can sensibly work on, this one is fair game.

I would find it useful, and I suppose this should be on par with writing tests (of which we have a few 1.0: https://github.com/GoogleCloudPlatform/kubernetes/issues?utf8=✓&q=is%3Aopen+is%3Aissue+milestone%3Av1.0+label%3Aarea%2Ftest)

I'm not sure we'll be able to convince folks to move this to 1.0, but @bprashanth feel free to work on this, as it seems very valuable.

I thought about changing our setup to allow both Elasticsearch and Cloud Logging to be targeted. I've been a little hesitant because this could lead to a breakage (esp. for GKE) and we are getting close to 1.0 ...

/cc @a-robinson @zmerlynn who might have memories about a GKE breakage caused by changes in env vars used for logging.

I'd love to see this fixed soon to help debug flakes, but yes, it'd be nice to at least be cc'ed on env var changes.

Try again to have it added to the high priority list, as this is making debugging the system very difficult.
cc @fgrzadkowski @davidopp Who expressed interest.

@brendanburns How do we access those logs? I tried to find them for gce-scalability jenkins suite, but didn't find it.


Check available networks

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

#397  👈
#396
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @jvmi7 and the rest of your teammates on  Graphite


Support for socket path via -S

This patch adds support for specifying the full socket path via -S.

+1

@pengwynn in addition to this, would you support the -C startup flag for iterm2 integration? :D

I'd like to see this one in. It would be useful for pair programming.


Align loader API with new tfjs loaders

tf.loadFrozenModel() -> tf.loadGraphModel()
tf.loadModel() -> tf.loadLayersModel()

depend on #214

Change:

tf.loadGraphModel() do not need to provide weightUrl

TODO:

[ ] Change tensorflow loader API, do not need to provide weightUrl


size tabs scroll

when scroll is activated tab don't resize
for(let i = 0; i < 100;i++){this.tabs.push({id: i,descricao: 'Terrible sushi restaurants - ' + i});}
<md-tab-group [(selectedIndex)]="selectedIndex"> <md-tab *ngFor="let tab of tabs">     <template md-tab-label>         <md-icon>person</md-icon>         {{tab.descricao}}         <md-icon>close</md-icon>     </template>
Terrible sushi restaurants

...
 </md-tab> </md-tab-group>

Please provide a codepen so we can investigate further

Closing this issue as it does not follow the issue template. Please file a new issue that follows the template, which gives the team the information needed to investigate.


Fix ti vs year comparisons

Several disease modules compared a time index (ti) with sim.year, which is the absolute year like 2022.63. This PR reverts everything back to time indices, but there's a case for shifting everything to floating point time (year) instead of discrete indices. Let's debate, but perhaps merge this PR first considering it should resolve issues with deaths.

Baselines aer currently only computed for SIR and HIV -- not for all diseases. Would be good to think about coverage specifically for baseline!


Add note about VS to the .NET Framework ref assemblies article

Summary
Since many users are taken to the SDK downloads page from the VS "Target framework not supported" dialog and then land on this article, it is important to create the right expectation with respect to Visual Studio.
This proposed doc change was prompted by external user feedback.

Internal previews

📄 File
🔗 Preview link

docs/framework/migration-guide/reference-assemblies.md
docs/framework/migration-guide/reference-assemblies

Looks appropriate to me (the external user mentioned).

Actually a suggestion: could you add to the text a link to the download page for older versions of  VS? This matters in some fairly common scenarios when a user has an option to build an open source project but the owners have been slow to upgrade from 4.5 (Wikipedia's AutoWikiBrowser is a current example). Signed, the external user.

Actually a suggestion: could you add to the text a link to the download page for older versions of VS? This matters in some fairly common scenarios when a user has an option to build an open source project but the owners have been slow to upgrade from 4.5 (Wikipedia's AutoWikiBrowser is a current example). Signed, the external user.

Definitely makes sense. @IEvangelist @gewarren, what would you think about making "an older version of Visual Studio" link to https://visualstudio.microsoft.com/vs/older-downloads/ ?


Issue with Timeouts windows C++ client, linux python server

I have a MSVC 2013 client written in c++ talking to a linux python server. The connection seems to work, the server gets the information, can display it, i verify that it's the same, etc. The server then replies with other information back to the client, which the client can properly display. In between those two steps though, the client reliably outputs

ReadFile overlapped error: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

which is strange because like I said, the reply comes back and is readable. This also reports WSA error 14 when I get the status error code. I've tried adjusting the deadline in the context. Is there something platform specific that is going wrong here? I'm happy to provide any other information that I can.
The client code and server code aren't significantly different from the hello world example for their respective languages. The main difference is the client creates 1 client connection to the server and repeatedly uses the rpc service method it provides. Maybe this is an issue for a message board, if such a place exists

Maybe a duplicate of #3290
On Sep 22, 2015 3:27 PM, "Nathaniel Manista"<EMAIL_ADDRESS>wrote:

Assigned #3411 https://github.com/grpc/grpc/issues/3411 to @yang-g
https://github.com/yang-g.
—
Reply to this email directly or view it on GitHub
https://github.com/grpc/grpc/issues/3411#event-416417117.

I'm not sure, I'm getting a different error. I thought it might be a time issue but I added the time preprocessor directive to my project to no avail, and removed it from the library as well, which also didn't fix my problem. Either way it times out in 20 seconds and then outputs good output.

I did more digging, including trying a local python client for my server and a local c++ client for my server, I believe I have therefore eliminated the server as the culprit,  meaning this likely stems from a problem with MSVC 2013. Since a valid reply is being received, but only parsed once the process has timed out, the communication seems like its missing some final disconnect step. Can anyone direct me to how to fix this?

turns out this was a firewall issue on my network. An extremely awful one.


Set custom Environment Variable names for secrets

Coming from Vault as a SecretsManager engine, I miss the Github Action feature that Vault implements as below:
<path> <key-irrelevant-in-AWS> | <ENV-VAR-name>

https://github.com/hashicorp/vault-action#key-syntax
This way, the action does not try to create a POSIX compatible EnvVar name, but takes what the user provides for the specific secret, and loads the value directly in ENV-VAR-name.
I would suggest a similar syntax where:

if no | is provided - the current behavior still happens (backward compatible)
if there is a | - the described behavior happens.

Example
- name: Read secrets from AWS Secrets Manager into environment variables
  uses<EMAIL_ADDRESS>  with:
    secrets: |
      my_secret_1 | A_SECRET
      dev/secrets/* | B_SECRETS

Does this work with the parse-json feature? That would be very useful to me.

Added such support in this PR: #44 (comment)
Cheers!

That's great -- thanks!


JavaScript

JavaScript
User Story
As a bootcamp student
I want the prework notes to be structured on a webpage
So that I can easily find and read the information
Acceptance Criteria
GIVEN a Prework Study Guide website
WHEN I view the study guide
THEN I can see the four topic I learned listed along with a suggestion on what I should study first

Added JavaScript to list all of the topics to study as well as a random suggestion as to what to study next.


🌐 Add Korean translation for docs/ko/docs/tutorial/body.md

translated docs/tutorial/body.md for Korean community.

I only added single .md file and modified mkdocs.yml, but the test had failed. Could anyone give me a short guideline ?

I have no idea what is the reason to happen error.
and I think this PR is duplicated. The translation for  docs/ko/docs/tutorial/body.md is already in progressed and still not merged yet: https://github.com/tiangolo/fastapi/pull/2392
I am so pleased and have my thanks for your works.
For Korean who just like you, I made checklist - https://github.com/tiangolo/fastapi/discussions/3167#discussioncomment-3335089 - and the korean translated page in nightly version (check it in comment)

📝 Docs preview for commit 3ec550f526267df0d41605963ad8f0fbd8623b8c at: https://649a1b01acd72b13fc61ea0a--fastapi.netlify.app

Thanks for your effort @strawberry-trap 🐱
However, this PR has been inactive for a while, and the changes proposed here have already been addressed in another PR (https://github.com/tiangolo/fastapi/pull/11000) that has been merged. As a result, we will be closing this PR.
We appreciate your effort and encourage you to continue contributing in the future. Please feel free to check out the other open issues and PRs. Thank you! ✨


🐛 [BUG] -

Contact
<EMAIL_ADDRESS>Version
Latest
Branch
main/
Description
Test
Reproduction URL
https://github.com/
Reproduction steps
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
5.

Screenshots
![DESCRIPTION](LINK.png)

Logs
No response
Browsers
No response
OS
No response
Code of Conduct

[X] I agree to follow this project's Code of Conduct

@all-contributors please add @GregoireF for projectManagement


Chapter 5.3: unexpected SIGINTs in gdb on M1 Mac

I am not sure if this causes any actual issues as of right now, so this might be mostly to get pointers for further digging.
When going through the Debug it section, I'm seeing
a) unexpected SIGINT right after break main
b) SIGINT when reaching line 16 (== loop {})
I also noticed that if I start stepi after breaking on break main, I get SIGINT after every command.
Full GDB session:
❯ arm-none-eabi-gdb target/thumbv7em-none-eabihf/debug/led-roulette
GNU gdb (Arm GNU Toolchain 12.2 (Build arm-12.24)) <IP_ADDRESS>21210-git
...
This GDB was configured as "--host=aarch64-apple-darwin20.6.0 --target=arm-none-eabi".
Reading symbols from target/thumbv7em-none-eabihf/debug/led-roulette...
(gdb) target remote :1337
Remote debugging using :1337
0x00000100 in nrf52833_pac::{impl#280}::fmt (self=0x281a7e10, f=0x9f867a82) at src/lib.rs:163
163	#[derive(Copy, Clone, Debug, PartialEq, Eq)]
(gdb) b main
Breakpoint 1 at 0x15c: file src/05-led-roulette/src/main.rs, line 9.
Note: automatically using hardware breakpoints for read-only addresses.
(gdb) c
Continuing.

Breakpoint 1, led_roulette::__cortex_m_rt_main_trampoline () at src/05-led-roulette/src/main.rs:9
9	#[entry]
(gdb) info thread
  Id   Target Id         Frame
* 1    Thread 1.1 (main) led_roulette::__cortex_m_rt_main_trampoline () at src/05-led-roulette/src/main.rs:9
(gdb) b 13
Breakpoint 2 at 0x168: file src/05-led-roulette/src/main.rs, line 13.
(gdb) c
Continuing.

Program received signal SIGINT, Interrupt.
led_roulette::__cortex_m_rt_main () at src/05-led-roulette/src/main.rs:10
10	fn main() -> ! {
(gdb) c
Continuing.

Breakpoint 2, led_roulette::__cortex_m_rt_main () at src/05-led-roulette/src/main.rs:13
13	    _y = x;
(gdb) c
Continuing.

Program received signal SIGINT, Interrupt.
led_roulette::__cortex_m_rt_main () at src/05-led-roulette/src/main.rs:16
16	    loop {}

Environment:

❯ sw_vers -productVersion: 13.2.1
❯ rustc -V: rustc 1.68.0 (2c8cc3432 2023-03-06)
❯ cargo embed --version: cargo embed 0.16.0 (also tried with https://github.com/probe-rs/probe-rs/pull/1565 based off current master)
❯ arm-none-eabi-gdb --version: GNU gdb (Arm GNU Toolchain 12.2 (Build arm-12.24)) <IP_ADDRESS>21210-git
microbit v2.21
flashing command: cargo embed --target thumbv7em-none-eabihf --features v2

I’m happy to dig further, but so far I was unable to understand where that message is even coming from — most of my experience with GDB came from couple of hours of reading while debugging this and #515 :)

https://github.com/probe-rs/probe-rs/issues/1235 points out that microbit v2.20/v2.21 use different interface chip, and it seems like it might behave slightly differently from v2.0. I have not looked into validating this hunch but leaving the link here just in case.

Running into this same issue.

I had this issue too.  The folks in the Rust Embedded Matrix room took a look, and could not see why it happens. However, you can just type continue in GDB, when you get the SIGINT, and carry on with the chapter.  They suggested using defmt with probe-rs for debugging embedded Rust code.


viewWillAppear called twice

Why does PPRevealSideViewController invoke viewWillAppear of its child view controllers?
It makes viewWillAppear unnecessarily called twice (another is from the UIKit).
- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
    if (!PPSystemVersionGreaterOrEqualThan(5.0)) [_rootViewController viewWillAppear:animated];

    PPRevealSideDirection direction = [self getSideToClose];
    if (direction != PPRevealSideDirectionNone) [[_viewControllers objectForKey:[NSNumber numberWithInt:direction]] viewWillAppear:animated];
}

This is just for < iOS 5.
Will clean the support for this


Bump version to 0.60.0

Coverage remained the same at 91.667% when pulling 61a296d12926d1dff40c25f3f488b3806a199374 on bump_version into dea92271bada6839b9821abf0bfd0892f33c6147 on master.

Coverage remained the same at 91.667% when pulling 61a296d12926d1dff40c25f3f488b3806a199374 on bump_version into dea92271bada6839b9821abf0bfd0892f33c6147 on master.

Coverage remained the same at 91.667% when pulling 8213cb0aa27263c2e259dc833cd23496ed15dc66 on bump_version into dea92271bada6839b9821abf0bfd0892f33c6147 on master.

Coverage remained the same at 91.667% when pulling 8213cb0aa27263c2e259dc833cd23496ed15dc66 on bump_version into dea92271bada6839b9821abf0bfd0892f33c6147 on master.


⚠ Digital Ocean - https://status.digitalocean.com/ has degraded performance

In 8e6d79e, Digital Ocean - https://status.digitalocean.com/ (https://status.digitalocean.com/api/v2/status.json) experienced degraded performance:

HTTP code: 200
Response time: 146 ms

Resolved: Digital Ocean - https://status.digitalocean.com/ performance has improved in f275b20 after 1 day, 23 hours, 59 minutes.


Building warnings

After run in console command:
npm run build

Will output warning:
[0] WARNING in ../~/express/lib/view.js
[0] Critical dependencies:
[0] 78:29-56 the request of a dependency is an expression
[0]  @ ../~/express/lib/view.js 78:29-56

It depend on https://github.com/webpack/webpack/issues/1576

It's not a boilerplate problem


tmux can not determine current working directory

Please check if a similar issue already exists or has been closed before before opening your issue.
Description
tmux' variable "#{pane_current_path}" doesn't appear to work
e.g., when using byobu tmux new-window -c "#{pane_current_path}" results in a window with the path set to the user's home directory, regardless of the path the user was in before. If I were to conjecture, I would say that tmux is unable to load #{pane_current_path}, but I can't figure out how to debug this.
Notes:

I do use a custom prompt, but I was able to reproduce the issue using the "suse" prompt.
Removing the call to .zprezto/init.zsh in .zshrc causes tmux to act as expected.
Reducing the loaded modules to zstyle ':prezto:load' pmodule prompt did not affect behavior.

Expected behavior
New windows open in the cwd
Actual behavior
New windows open in $HOME
Steps to Reproduce

byobu
cd ..
F2 / tmux new-window -c "#{pane_current_path}"

Versions

Prezto commit: 7ae7a0266c04f2645bdf9917378645fc505e7461
ZSH version: zsh 5.1.1 (x86_64-ubuntu-linux-gnu)
OS information:

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.2 LTS
Release:        16.04
Codename:       xenial

This may be related to the TMPDIR settings. If you set TMPDIR to something like /tmp in your preztorc do you still see this issue?

Adding TMP=/tmp to the end of ~/.preztorc did not alter the behavior

I can confirm this issues, which is one of the reasons I dropped tmux :( I've been using it with iTerm2 on the latest Mac OS.

I've tried to reproduce this, unfortunately with no real success. I've tried with both byobu and plain tmux and haven't seen the behavior mentioned.
@ezintz Out of curiosity, are you using the latest version of prezto? It looks like your dotfiles repo has you pinned to a custom fork which is a year or so out of date... it's also worth noting that prezto can be loaded out of any directory now, so your main reason for forking may not be needed any more. ;)
@skjbulcher Can you provide any more information about your setup? I don't see any public dotfiles for you, so I don't really have a lot to go on in trying to reproduce this.

@belak you are right, it is probably a "bit" out of date since I did do much house cleaning over there. Thanks for the hint as soon as I find some time I will give it a try and report back.

My problem was an errant cd $HOME in .zshrc. Now that I think about it, I added that line to overcome an issue where WSL didn't dump me into my home directory. >_< I think this issue can be closed.
WSL does has a problem, though, where new windows open at the root directory (/) instead of the cwd, but I can't imagine that is prezto related.

Thanks for investigating! Glad you figured it out. :)


renderComponent() replace (recycled?) child nodes with wrong reference

This pen reproduces the bug: click 'Load some data', then click it again.
The component renders
Still loading

at beginning, then rerenders this(with an error):

    Banana
    1

    Apple
    1.3

The exception occurs at baseParent.replaceChild(base, initialBase), subsequent renderings also break.
Firefox says:
HierarchyRequestError: Node cannot be inserted at the specified point in the hierarchy

Chrome says:
Uncaught (in promise) DOMException: Failed to execute 'replaceChild' on 'Node': The new child element contains the parent.

If I wrap 'Still loading' by p (or anything other than span? to prevent reusing it), every thing works fine.

I think I have a fix for this, will test and let you know. Thanks for the repro!

Confirmed, this will be fixed in 6.2! 🎉

Fix released in 6.2.


[adapter-vercel] Can't visit dynamic routes due to page/o being undefined (and a bonus of builds sometimes failing)

Describe the bug
When using the latest version of SvelteKit and the Vercel adapter, pages with dynamic routes (e.g example.com/blog/[post] return an error. The message varies between page is undefined and o is undefined. Builds also fail inconsistency with the error of rimraf is undefined. I'm unsure if this issue is just affecting me and my setup or is just a problem in general.
Reproduction
Here's the repo I'm using, simply clone and deploy to a fresh vercel project. You may also need to set the DRC_SANITY_PRJ_ID and DRC_SANITY_DATASET environment variables. Then, if you navigate to a page such as rls/test, You should observe that the error it gives you is either page or o is undefined, whereas if the page is working you'll probably get an error complaining about your sanity client.
Logs
Build Logs:
TypeError: Cannot read property 'rimraf' of undefined
    at adapt (file:///vercel/path0/node_modules/@sveltejs/adapter-vercel/index.js:17:10)
    at adapt (file:///vercel/path0/node_modules/@sveltejs/kit/dist/chunks/index5.js:623:8)
    at file:///vercel/path0/node_modules/@sveltejs/kit/dist/cli.js:948:11

Error:
500

o is undefined

ze@https://draconium-productions-murl-digital.vercel.app/_app/pages/rls/_slug_.svelte-1f6f7184.js:1:12591
_load_node@https://draconium-productions-murl-digital.vercel.app/_app/start-c1e17c54.js:1:18350
_load@https://draconium-productions-murl-digital.vercel.app/_app/start-c1e17c54.js:1:19128

500

Cannot read property 'params' of undefined

TypeError: Cannot read property 'params' of undefined

System Info
System:
    OS: Windows 10 10.0.22000
    CPU: (16) x64 AMD Ryzen 7 3700X 8-Core Processor
    Memory: 34.31 GB / 63.92 GB
  Binaries:
    Node: 17.3.0 - C:\Program Files\nodejs\node.EXE
    npm: 8.3.0 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.22000.120.0)
    Internet Explorer: 11.0.22000.120

Severity
blocking all usage of SvelteKit
Additional Information
No response

Did you take care of the breaking changes made in version next.208? The {page, ...} in the load function has been split into {url, params, ...}.
If you have and the issue still persists, provide a more minimal reproduction so that the maintainers don't have to go through the hassle of setting env vars.

Did you take care of the breaking changes made in version next.208? The {page, ...} in the load function has been split into {url, params, ...}.
If you have and the issue still persists, provide a more minimal reproduction so that the maintainers don't have to go through the hassle of setting env vars.

As mentioned by @gtm-nayan, there was a breaking change for page which likely explains the Cannot read property 'params' of undefined error. For the other errors, it should be resolved with the latest version of SvelteKit and the vercel adapter. You've mentioned that you've upgraded them to latest, but might want to double check that again.

As mentioned by @gtm-nayan, there was a breaking change for page which likely explains the Cannot read property 'params' of undefined error. For the other errors, it should be resolved with the latest version of SvelteKit and the vercel adapter. You've mentioned that you've upgraded them to latest, but might want to double check that again.

@gtm-nayan was entirely correct, replacing page with params in my load function fixed the issue, my bad! Also regarding @bluwy's comment, yes you're correct. The code on that repo is slightly out of date and I'm using the latest version locally.

@gtm-nayan was entirely correct, replacing page with params in my load function fixed the issue, my bad! Also regarding @bluwy's comment, yes you're correct. The code on that repo is slightly out of date and I'm using the latest version locally.


Kotlin Gradle scripts

In this PR we migrate our Gradle scripts into Kotlin.
Due to necessity, we also allow using different versions is base, time, and core libraries when applying the bootstrap plugin.

@armiol, PTAL.


Is there a way to import/convert an environment model to use in menge?

Is there a way to import/convert an environment model like this to use in menge?

Sadly, nothing automated. Usually, when I produce more complex scenarios, I start with an obj file. There are some tools to go from obj to Menge-compatible inputs.  I've been meaning to integrate with https://github.com/recastnavigation which is far more robust in this way, but I haven't gotten around to it.
In the case of the environment that you linked to, it'll require a navigation mesh because the traversible space isn't purely a flat terrain. But it's a relatively simple environment to create the mesh for -- assuming you can get it into a separate modeling tool.
I'm certainly open to improving the process if you've got some workable solutions. I've always been a bit embarassed about how awkward it is to introduce data into Menge.

What are these tools to convert from obj to Menge-compatible inputs?

I've got a number of python-based utilities; including one that converts an obj -> navigation mesh. Very low tech.  The utilities are here: https://github.com/curds01/MengeUtils

Thank you.


Problem with names with Special Characters

I have a lot of manga with the cover is named by !cover.png because this special character is on of the first in name sorting.
But in comictagger when the name have ! or #, and maybe other characters, is not listed.

It looks like the sorting algorithm currently puts it at the end of the list, so instead of it being the first item it shows as the last item.
I'll have to experiment with sorting to see if I can fix it.

@Rougecarlos
This is fixed in the latest release 1.5.0
If you are on linux you will need to make sure pyicu is installed, if you are on Windows or macOS you can use the pre-built apps attached to the release.


Cannot install: bower-asset/gentelella ~1.3 -> no matching package found.

Here's the error message.
$ composer require --prefer-dist yiister/yii2-gentelella "~1.0"
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - yiister/yii2-gentelella 1.1.4 requires bower-asset/gentelella ~1.3 -> no matching package found.
    - yiister/yii2-gentelella 1.1.3 requires bower-asset/gentelella ~1.3 -> no matching package found.
    - yiister/yii2-gentelella 1.1.2 requires bower-asset/gentelella ~1.3 -> no matching package found.
    - yiister/yii2-gentelella 1.1.1 requires bower-asset/gentelella ~1.3 -> no matching package found.
    - yiister/yii2-gentelella 1.1.0 requires bower-asset/gentelella ~1.3 -> no matching package found.
    - yiister/yii2-gentelella 1.0.0 requires bower-asset/gentelella ~1.3 -> no matching package found.
    - Installation request for yiister/yii2-gentelella ~1.0 -> satisfiable by yiister/yii2-gentelella[1.0.0, 1.1.0, 1.1.1, 1.1.2, 1.1.3, 1.1.4].

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting
   see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.

Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.

Installation failed, reverting ./composer.json to its original content.

I think It's the problem with fxp/composer-asset-plugin version 1.2.0.

@madeadi I'm working with fxp 1.1.. All is ok.
I will try to repeat this error with 1.2. at this weekend.
Thanks for the bug report.

I'm having the same issue. Using last stable version of  fxp/composer-asset-plugin.

Same here.


stand by mode

Hi,
when my LG is in stand by mode....he lost the service under IOBROKER instances.
The Connection is lost bei Device or Service.
Can you help me?

That is a problem of theTVThe network stack of the device is shut down in standby Mode.Von meinem/meiner Galaxy gesendet
-------- Ursprüngliche Nachricht --------Von: tommyMX @.> Datum: 23.08.21  11:55  (GMT+01:00) An: "SebastianSchultz/ioBroker.lgtv" @.> Cc: Subscribed @.***> Betreff: [SebastianSchultz/ioBroker.lgtv] stand by mode (#106)
Hi,
when my LG is in stand by mode....he lost the service under IOBROKER instances.
The Connection is lost bei Device or Service.
Can you help me?
—You are receiving this because you are subscribed to this thread.Reply to this email directly, view it on GitHub, or unsubscribe.Triage notifications on the go with GitHub Mobile for iOS or Android.

So no resolve for this problem?
I thought I can make a scene over ibroker with blocky when to start the TV with Netflix when I say something to Alexa.
But when I am in stand by and click power on the remote...then the TV awakes.
I also tried the button state in the LG Adapter, but also doesnt work....cant explain why the remote is working :-/