fix: Make NativeNitroModules a code-gen'd TurboModule again

This has two benefits:

The app only builds if the NativeNitroModules spec is aligned with the TypeScript types
The Java module now receives ReactApplicationContext

..but one potential minor downsides:

There might be changes in CxxTurboModules in the future that could cause build issues with Nitro. Hopefully no breaking changes

ah, I forgot that we cannot do the same on Android. On Android, they expect the React Application's CMakeList.txt to compile my library's C++ code for whatever reason.
This complicates things as we cannot autolink or use prefabs anymore, so I can't go that route.


Nozzle tile support for TAS v2.11

Test the solution on TAS v2.11

Version compare dashbord https://one.nr/0VKQXGnEdja

task details https://source.datanerd.us/coreint/doc/blob/master/on-host-integrations/vmwaretanzuNozzle.md#check-tas-compatibility


Reduce memory utilization of Route/VirtualHost.

For optional config sub-messages, use unique_ptr members and a default singleton implementation.
This is a step towards more memory efficient config data structures.
This PR covers RetryPolicy, HedgePolicy and  InternalRedirectPolicy.
Issue #24154.
Signed-off-by: Yury Kats<EMAIL_ADDRESS>
Commit Message:
Additional Description:
Risk Level:
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Fixes commit #PR or SHA]
[Optional Deprecated:]
[Optional API Considerations:]

/retest

/retest

@zuercher please take a look, thanks!


[docs] useMediaQuery + test env (matchMedia)

When I inject withMobileDialog into a React component, I cannot access members of the component.
I've tried dive, Material UI shallow, mount, enzyme shallow and mount to no avail.
Without injecting withMobileDialog, I can access the members without a problem.
How do I access members on the component when using withMobileDialog()
Component
class Blog extends React.Component {
  constructor(props) {
    super(props);
    this.state = {
      open: false
    };
    this.postCount = 5;
    this.posts = this.getPosts();
  }

  setOpen = () => {
    if (this.showPosts()) {
      this.setState({ open: true });
    }
  };

  render() {
    return (
      ...
    );
  }
}

export default compose(
  observer,
  withStyles(styles),
  withMobileDialog()
)(Blog);

Test
import React from 'react';
//import { mount } from 'enzyme';
import Blog from '../blog';
import { Switch, Redirect } from 'react-router-dom';
import sinon from 'sinon';
import blog from '../blog';
import { createShallow, createMount } from '@material-ui/core/test-utils';

describe('Blog', () => {
  let blogWrapper, shallow, mount;
  beforeEach(() => {
    shallow = createShallow();
    mount = createMount();
  });

  it('should render private page with its router', () => {

    blogWrapper = shallow(
      <Blog

      />
    );

    // setOpen is undefined
    const toggleSpy = jest.spyOn(blogWrapper.instance(), 'setOpen');

    expect(blogWrapper.state.open).toBeTrue();
  });

});

Hi @oliviertassinari, I think this may be an actual bug.  I encountered it as well.  It is at least a regression.  I have not solved it yet, but it seems to be introduced by https://github.com/mui-org/material-ui/commit/942fbf2445ff736efe294e958a7b0f13a494c641#diff-33a03947dab1f076cc15415d619e4987
Before this commit, mount worked fine on components wrapped in withMobileDialog().  After, the resulting component is empty.

@koshea How can we reproduce the problem?

@oliviertassinari see here: https://github.com/koshea/jest-mui-withmobiledialog
The mounted component will be empty in version 4.1.1.  If you revert to 4.0.2 the test will pass.

@koshea Thank you for the reproduction. I can confirm the issue. It's an issue with the test environment. The withWidth helper renders null if he can't compute the correct value. We used to rely on window.innerWidth, we rely on window.matchMedia now. I think that we should add a section about tests in the documentation.
In your case, you can workaround the problem with:
import mediaQuery from 'css-mediaquery';

function createMatchMedia(width) {
  return query => ({
    matches: mediaQuery.match(query, { width }),
    addListener: () => {},
    removeListener: () => {},
  });
}

describe('MyTests', () => {
  beforeAll(() => {
    // Wait for JSDOM support
    window.matchMedia = createMatchMedia(window.innerWidth);
  });

or use https://github.com/bigslycat/mq-polyfill.

That solves it and makes complete sense, thank you @oliviertassinari!

Why was the title of this issue changed?

We need to document how this match media logic can be tested, for instance, we Jest and react-testing-library.

@oliviertassinari Well, the issue wasn't originally submitted regarding media queries. This code will still need to be tested when in desktop top view.

I agree it's unfortunate. Your test environment needs to be consistent. If window.innerWidth returns a value, window.matchMedias should follow it.

The problem isn't testing for mobile, its testing in desktop mode. We dont do anything with setting window props

@koshea Thank you for the reproduction. I can confirm the issue. It's an issue with the test environment. The withWidth helper renders null if he can't compute the correct value. We used to rely on window.innerWidth, we rely on window.matchMedia now. I think that we should add a section about tests in the documentation.
In your case, you can workaround the problem with:
import mediaQuery from 'css-mediaquery';

function createMatchMedia(width) {
  return query => ({
    matches: mediaQuery.match(query, { width }),
    addListener: () => {},
    removeListener: () => {},
  });
}

describe('MyTests', () => {
  beforeAll(() => {
    // Wait for JSDOM support
    window.matchMedia = createMatchMedia(window.innerWidth);
  });

or use https://github.com/bigslycat/mq-polyfill.

This solution is not working for v5

@koshea Thank you for the reproduction. I can confirm the issue. It's an issue with the test environment. The withWidth helper renders null if he can't compute the correct value. We used to rely on window.innerWidth, we rely on window.matchMedia now. I think that we should add a section about tests in the documentation.
In your case, you can workaround the problem with:
import mediaQuery from 'css-mediaquery';

function createMatchMedia(width) {
  return query => ({
    matches: mediaQuery.match(query, { width }),
    addListener: () => {},
    removeListener: () => {},
  });
}

describe('MyTests', () => {
  beforeAll(() => {
    // Wait for JSDOM support
    window.matchMedia = createMatchMedia(window.innerWidth);
  });

or use https://github.com/bigslycat/mq-polyfill.

This solution is not working for v5

Yes I am also facing the same issue.
Using -> "@mui/material": "^5.6.4"
Did you find a solution to this?

@koshea Thank you for the reproduction. I can confirm the issue. It's an issue with the test environment. The withWidth helper renders null if he can't compute the correct value. We used to rely on window.innerWidth, we rely on window.matchMedia now. I think that we should add a section about tests in the documentation.
In your case, you can workaround the problem with:
import mediaQuery from 'css-mediaquery';

function createMatchMedia(width) {
  return query => ({
    matches: mediaQuery.match(query, { width }),
    addListener: () => {},
    removeListener: () => {},
  });
}

describe('MyTests', () => {
  beforeAll(() => {
    // Wait for JSDOM support
    window.matchMedia = createMatchMedia(window.innerWidth);
  });

or use https://github.com/bigslycat/mq-polyfill.

This solution is not working for v5

Yes I am also facing the same issue. Using -> "@mui/material": "^5.6.4"
Did you find a solution to this?

Do you have any solution for @mui5?


update staert and flaeg

This PR fixes the toml parsing behavior :

If a key on a pointer field of the configuration structure is called in the toml, the default pointer value will be set in the struct.
If a under field of this pointer is called as well, its value will overwrite the default pointer value.

example 1 :
Running træfik with the following toml :
[docker]

Træfik runs with default pointer value on docker field :
Docker":{"Watch":true,"Filename":"","Constraints":null,"Endpoint":"unix:///var/run/docker.sock","Domain":"","TLS":null,"ExposedByDefault":true}

example 2 :
Running træfik with the following toml :
[docker]
watch=false

Træfik runs with default pointer value overwritten by the under field watch  :
Docker":{"Watch":false,"Filename":"","Constraints":null,"Endpoint":"unix:///var/run/docker.sock","Domain":"","TLS":null,"ExposedByDefault":true}

LGTM

LGTM 🐵


Fix download CSV when running on HuggingFace

Fix Mixed Content error (mixing https and http) when a user tried to download a CSV from the HuggingFace Space. Use SPACE_HOST environment variable to build a https URL. The underlying problem was Flask request.base_url returned a http URL when running within HuggingFace.
Fixes #78

Should we add the SPACE_HOST variable to example.env?

Should we add the SPACE_HOST variable to example.env?

Since that's a HuggingFace provided and defined environment variable I don't think so.


When multiple is true, the calendar display will roll back.

Describe the bug
When you select a date and then choose a date from another month, deselecting the previously selected date will cause the calendar to roll back to the previous month.
https://github.com/melt-ui/melt-ui/assets/91047157/1d0389a3-8b64-4e75-be9e-50cf88b05c56
Reproduction
https://melt-ui.com/docs/builders/calendar#multiple-selection
Logs
No response
System Info
System:
    OS: macOS 14.4.1
    CPU: (10) arm64 Apple M2 Pro
    Memory: 81.41 MB / 16.00 GB
    Shell: 3.6.1 - /usr/local/bin/fish
  Binaries:
    Node: 20.13.1 - /usr/local/bin/node
    npm: 10.5.2 - /usr/local/bin/npm
    pnpm: 9.1.2 - /usr/local/bin/pnpm
  Browsers:
    Chrome: 124.0.6367.208
    Safari: 17.4.1

### Severity

annoyance

Deleting the code in the referenced section resolves the bug.
https://github.com/melt-ui/melt-ui/blob/ad01dddda3b5a4ba5652aed3eb4e9bfa201511c6/src/lib/builders/calendar/create.ts#L513-L548
Is this necessary code used in other places?


⚠ Bofrost.fr has degraded performance

In 1fe7278, Bofrost.fr (https://www.bofrost.fr) experienced degraded performance:

HTTP code: 200
Response time: 1113 ms

Resolved: Bofrost.fr performance has improved in 42879cf after 6 minutes.


Skill Calculator - Add Daeyalt essence bonus

Closes #11837

Blood and Soul runes are now ignoring the bonus.


Add fallback docker images for BE

Configures the BE prod/staging with fallback images/tags.
When a new image is deployed it's done so using a unique tag - however the same image is also tagged with master or staging and pushed to DockerHub as well.

@AllenAnthes told me these were good to merge after I got the other issues working.


downside of ESP32?

Hello
I'm planning to change the wemos d1 to a wemos d1 ESP32.
The main reason is the wifi performance.
The pins are exactly the same and in yaml I thought I only would need to remove the esp8266 specific and change the pinnumbers to GPIO21.
however here it suggests that more changes are required
https://github.com/huizebruin/s0tool/issues/100#issuecomment-1385849075
https://github.com/huizebruin/s0tool/issues/125#issuecomment-1560091289
I already have to complete configuration running local without external components.
Am I missing something obvious here? or can I just go ahead and migrate to ESP32.
I think for wemos_d1 esp32 the v5 connection would be exactly the same as for esp8266

The ESP32 is a microcontroller that operates with a supply voltage of 3.3V, and its GPIO (General Purpose Input/Output) pins are also designed to work with 3.3V logic levels. Applying a voltage higher than 3.3V to the GPIO pins can potentially damage the ESP32

good to know,
but the board I'm talking about has some kind of power regulator

applying 5v to vcc should work, and also the locations of vcc, 3.3v and GND should be the same as for the other d1_mini
actually the pinout should be fully backward compatible with the d1_mini ESP8266, only the pinnumbers should sometimes be updated, and the is an additional row of pins which might prevent is from fitting in the case.

The gpio pins cant handle 5v to there gpio , and the npn sensor sends 5v out when its getting a puls, and also needs 5v to work.

Now I see, so if I would this, I need also to connect the npn to 3.3V,
Possibly also replacing the npn with one which support 3.3v
This will probably mean, I need to go full DIY and cannot use the one I ordered from the shop.
Interesting I thought the new board would be 100% backward compatible, but apparently not
I think for now I will live with the poor wifi reception.
If you ever decide to design an esp32 compatible equivalent I'm interested.

Sadly there isn't a npn with one which support 3.3v.
u can think about mesh wifi so u have better reception.
like this.
TP-Link Deco M4 github or this one  TP-Link Deco X10 github bol.com

I have roaming wifi (with TP-Link Deco M4 v2 running openwrt), and the distance to the AP probably is not a problem,
however it can be improved, there are issues with small dropouts I only experience with esp82xx devices, and even not all of them.
it has something to to with openwrt ath10k and the esp82xx driver, and I tried all solutions I could find, nothing worked for me, so probably i need to replace my accesspoints, and I'm planning for that, but for now it's just much cheaper to replace a few esp controllers.
I will close this issue as my main question has been answered.

Maybe one question.
would it be possible to add something like this
https://www.aliexpress.com/item/1005001621897460.html?src=google&src=google&albch=shopping&acnt=494-037-6276&slnk=&plac=&mtctp=&albbt=Google_7_shopping&albagn=888888&isSmbAutoCall=false&needSmbHouyi=false&albcp=19213834753&albag=&trgt=&crea=nl1005001621897460&netw=x&device=m&albpg=&albpd=nl1005001621897460&gad_source=1&gbraid=0AAAAADznYb9TdgIMCQBaC7qtG0P35yeGj&gclid=CjwKCAiA9ourBhAVEiwA3L5RFkug-5n8yEcDU6_jAP95rUL-TVqIMlEGOQ-rKARZjf3Z8WrekDkRBBoCv7UQAvD_BwE&gclsrc=aw.ds&aff_fcid=c512cd27948b41f49dbf6c95fa5b2c6b-1701003383177-05265-UneMJZVf&aff_fsk=UneMJZVf&aff_platform=aaf&sk=UneMJZVf&aff_trace_key=c512cd27948b41f49dbf6c95fa5b2c6b-1701003383177-05265-UneMJZVf&terminal_id=e4df6dff71fb4d079ab7308d56e48099&afSmartRedirect=y
to lower the voltage.
Not planning this for now. But I’m just curious if it would be possible.

No that won't work, because it is a pulse that u need to lower to the 3.3v
That pcb is only for power a tool on 3.3v.
Better to look at an opto in the tool but u must place more components on a Board.


How to make hot reloading work ?

After git clone, npm install and npm start, I edited HomePage.react.js changing Hello World to Hello Redux and saved ! Changes don't propagated to browser even after browser refresh !

Hot reloading should work out of the box, no more setup needed.
Which browser did you use, and can you try doing a hard refresh? (CMD + SHIFT + R on Mac)

Ubuntu 15.10 with Google Chrome Version 47.0.2526.106 (64-bit)
I have other boilerplate working with hot-reloading with this browser like https://github.com/gaearon/react-hot-boilerplate

Are you getting any output in the console?

Looks like content is always from cache, even after stoping the server and new browser page load it displays the old content.

Hot reloading is enabled though, it works even with the AppCache in place for me.
Will think about only adding it to prod, thanks for reporting this!

After a full browser restart and reset to defaults it's working now :) I will close as it looks unrepeatable !

Nice, glad it's working!


Closed Caption doesn't show on iOS

Hi, I'd like to report an issue.

A reproducible test case or series of steps
Start the project and open it on an iPhone (I can reproduce it on iOS 16.1 Safari, Chrome, and Firefox).
The CC doesn't show at all.

The version of our code being used
master branch (commit f0a6cc13ef0ff1e51e68538d60da9adb33499bac)

Any modifications you've made relevant to the bug
None

Anything unusual about your environment or deployment
None

I encountered this issue when using amazon-ivs-player but found little information about it. Any help would be appreciated.

Hello, thank you for this report. We have been able to reproduce the issue and are investigating.

@StephanieTM this issue should be resolved on the master branch. Note that on iOS, captioning is handled by the native iOS video controls and not all features may be available. More details are described in the PlayerSDK Known Issues and Workarounds page.
To use custom controls to enable and disable captions on iOS, you may want to consider using the JWPlayer integration or VideoJS integration.


[web] Meta Tags

We want to add meta tag preview images for the LVE site and all individual LVEs.

This should be addressed now - we have tag for severity, jailbreak and paper. More can be added in the future.


Add endpoints

Current gem is great and supports the free inference API. I've added support for 'endpoints' which are Hugging Face's product for production LLM usage. See documentation for more info. I've re-used the base_api.rb object and added a new object called EndpointsApi which can be used instead of the current InferenceAPI.

Ah - I also added sentiment analysis to the existing InferenceAPI object.

Did this prematurely, creating new PR


Web site not working

Seems like website is not working probperly.
https://material-ui.com/components/material-icons/  page icon radiobuttons not clickable. Search does not search for icons.

duplicate of #23830


Could not pod install for iOS in version 3.0.0.

First I can't login with facebook cuz SDK of facebook is too old. I'm going to see an update and read a changelog of this package. I will see a new version 3.0.0. Then I will update to this version and change my code from logInWithReadPermissions to logIn. I will prepare my old code for new version of this package. Finally I'm ready to run for test but it has been crash by pod install. It shown as below.

[!] CocoaPods could not find compatible versions for pod "FBSDKCoreKit":
In snapshot (Podfile.lock):
FBSDKCoreKit (= 4.39.1)

In Podfile:
flutter_facebook_login (from .symlinks/plugins/flutter_facebook_login/ios) was resolved to 0.0.1, which depends on
FBSDKCoreKit (~> 5.5)

You have either:

changed the constraints of dependency FBSDKCoreKit inside your development pod flutter_facebook_login.
You should run pod update FBSDKCoreKit to apply changes you've made.

It’s my mistakes. I had clean cache for pod and set iOS platform to 9.0. It will work.

@edwardmelody
I am having similar issue and clear the cache. However , I stir get the same issue "Error running pod install"..
Can you please advice how you were able to resolve the issue,,
Thanks

@edwardmelody
I am having similar issue and clear the cache. However , I still get the same issue "Error running pod install"..
Can you please advice how you were able to resolve the issue,,
Thanks

Try follow this step:

Run command "flutter clean".
Run command "pod cache clean --all"
Remove these files and folders "Podfile.lock, .symlinks, Pods"
Open Podfile, On the top of file uncomment this line and config minimum iOS platform to 9.0.

# Uncomment this line to define a global platform for your project
platform :ios, '9.0'

Run command "pod repo update"
Try to run "pod install" again

Hope this helps. These step it work for me.

@edwardmelody 's solution works!

The app crashes with this error for me, even after I performed all the steps above
(
	0   CoreFoundation                      0x000000011015d02e __exceptionPreprocess + 350
	1   libobjc.A.dylib                     0x000000010ffd5b20 objc_exception_throw + 48
	2   FBSDKCoreKit                        0x000000010af8100f +[FBSDKInternalUtility validateAppID] + 175
	3   FBSDKCoreKit                        0x000000010af811b1 +[FBSDKInternalUtility validateURLSchemes] + 33
	4   FBSDKLoginKit                       0x000000010b0e342e -[FBSDKLoginManager logInParametersWithPermissions:serverConfiguration:] + 110
	5   FBSDKLoginKit                       0x000000010b0e3e6e -[FBSDKLoginManager logIn] + 94
	6   FBSDKLoginKit                       0x000000010b0e3c35 -[FBSDKLoginManager logInWithPermissions:handler:] + 325
	7   FBSDKLoginKit               <…>
Lost connection to device.

for me

@edwardmelody
I am having similar issue and clear the cache. However , I still get the same issue "Error running pod install"..
Can you please advice how you were able to resolve the issue,,
Thanks

Try follow this step:

Run command "flutter clean".
Run command "pod cache clean --all"
Remove these files and folders "Podfile.lock, .symlinks, Pods"
Open Podfile, On the top of file uncomment this line and config minimum iOS platform to 9.0.

# Uncomment this line to define a global platform for your project
platform :ios, '9.0'

Run command "pod repo update"
Try to run "pod install" again

Hope this helps. The step it work for me.

I have tried all above steps but not worked for me.


Refactoring support for given imports

This PR makes a bunch of refactoring changes to simplify the implementation, as well as fixing one bug: when sorting importees, the SymbolsFirst option can be violated when given imports are there. For example:
import foo.{given, _}

The above import should be rewritten into
import foo.{_, given}

when importSelectorsOrder order is set to SymbolsFirst.

@liancheng any chance for a release? It would be cool to allow organize imports work with given


Releases/azcloud v1

The PR is to include support for Azure Gov Cloud. The details are listed in ADR doc:
https://github.com/github/Microsoft-Attach/blob/users/zainudv/actionsazuregovcloud/adrs/azure-integration/GitHubAction_AzureGovCloudIntegration.md
We took the #4 approach mentioned in ADR to align with Azure stack

@zainuvk  is azure powershell login handled for sovereign cloud support?

Please update the PR title.


RuntimeWarning: invalid value encountered in cast

Hi guys ! I'm running example text-to-image and I meet this error.
(py310) D:\Linh tinh\StreamDiffusion\examples>python txt2img/single.py --output output.png --prompt "A cat with a hat"
A matching Triton is not available, some optimizations will not be enabled.
Error caught was: No module named 'triton'
text_encoder\model.safetensors not found
Loading pipeline components...:  43%|██████████████████████▎                             | 3/7 [00:04<00:04,  1.24s/it]C:\Users\ADMIN\anaconda3\envs\py310\lib\site-packages\torch\_utils.py:831: UserWarning: TypedStorage is deprecated. It will be removed in the future and UntypedStorage will be the only storage class. This should only matter to you if you are using storages directly.  To access UntypedStorage directly, use tensor.untyped_storage() instead of tensor.storage()
  return self.fget.__get__(instance, owner)()
Loading pipeline components...:  57%|█████████████████████████████▋                      | 4/7 [00:04<00:02,  1.06it/s]C:\Users\ADMIN\anaconda3\envs\py310\lib\site-packages\transformers\models\clip\feature_extraction_clip.py:28: FutureWarning: The class CLIPFeatureExtractor is deprecated and will be removed in version 5 of Transformers. Please use CLIPImageProcessor instead.
  warnings.warn(
Loading pipeline components...: 100%|████████████████████████████████████████████████████| 7/7 [00:05<00:00,  1.32it/s]
C:\Users\ADMIN\anaconda3\envs\py310\lib\site-packages\diffusers\loaders\lora.py:952: FutureWarning: `fuse_text_encoder_lora` is deprecated and will be removed in version 0.25. You are using an old version of LoRA backend. This will be deprecated in the next releases in favor of PEFT make sure to install the latest PEFT and transformers packages in the future.
  deprecate("fuse_text_encoder_lora", "0.25", LORA_DEPRECATION_MESSAGE)
C:\Users\ADMIN\anaconda3\envs\py310\lib\site-packages\streamdiffusion\image_utils.py:30: RuntimeWarning: invalid value encountered in cast
  images = (images * 255).round().astype("uint8")

My GPU is GTX 1650 TI and these is some addtional information:
(py310) D:\Linh tinh\StreamDiffusion\examples>diffusers-cli env

Copy-and-paste the text below in your GitHub issue and FILL OUT the two last points.

- `diffusers` version: 0.24.0
- Platform: Windows-10-10.0.22621-SP0
- Python version: 3.10.13
- PyTorch version (GPU?): 2.1.0+cu118 (True)
- Huggingface_hub version: 0.20.3
- Transformers version: 4.37.2
- Accelerate version: 0.27.2
- xFormers version: 0.0.22.post7+cu118
- Using GPU in script?: <fill in>
- Using distributed or parallel set-up in script?: <fill in>

Please give me some help !! Tks very much !!!

i using sdxl model , txt2img mode will get this issues, if i change vae as " madebyollin/taesdxl " ,it's work well.


Error from the Google Colab: Error tokenizing data. Expected 2857 fields in line 27, saw 5059

I mounted my drive and input the file path to my model as instructed, but now I'm getting the error given in the title. The full text is given below:

ParserError                               Traceback (most recent call last)
 in <cell line: 6>()
4 ####################################
5 # Colab-specific: live displays
----> 6 num_sampled_trajectories = len(pd.read_csv(trajectory_csv))
7 num_accepted_designs = len(pd.read_csv(final_csv))
8 sampled_trajectories_label = HTML(value=f"Sampled Trajectories: {num_sampled_trajectories}")
3 frames
/usr/local/lib/python3.10/dist-packages/pandas/io/parsers/c_parser_wrapper.py in read(self, nrows)
232         try:
233             if self.low_memory:
--> 234                 chunks = self._reader.read_low_memory(nrows)
235                 # destructive to chunks
236                 data = _concatenate_chunks(chunks)
parsers.pyx in pandas._libs.parsers.TextReader.read_low_memory()
parsers.pyx in pandas._libs.parsers.TextReader._read_rows()
parsers.pyx in pandas._libs.parsers.TextReader._tokenize_rows()
parsers.pyx in pandas._libs.parsers.TextReader._check_tokenize_status()
parsers.pyx in pandas._libs.parsers.raise_parser_error()
ParserError: Error tokenizing data. C error: Expected 2857 fields in line 27, saw 5059
Could I be doing something that caused this? The pdb file I'm using was generated by Boltz hosted on Tamarind Bio, if that matters.

Can you send a screenshot of your settings.

How do I do that for the Colab file?

Can you send a screenshot of your settings.

Is this what you're after?

I mean your settings for design, the path, binder properties, etc

Sorry about that, I didn't make the connection to the settings group that was listed.

Yeah the problem is the https:// links everywhere. It needs to be linux links.  /content/drive/MyDrive/ already points to your google drive


Add missing import in Moment locale example

according to https://momentjs.com/docs/#/i18n/loading-into-browser/ locales have to be imported before being used.

[x] I have changed my target branch to develop :facepunch:

Description
Hi,
first off, this module looks great!
However, after spending too much time trying to figure out how to use moment, we found that the example was missing an import statement.
Hope this will get merged and help people skip the hours we've spent :)
Thank!

Ohh) Sorry for waisting your time.
Thanks a lot for adding a PR. :)

Can you change your target branch to master, because you have changed just the docs to have an ability merge it right now and deploy :)

Done 👍


Test change to so we can test the pipeline - won't be checked in

Hmm.. not sure what's going on here - the pipeline simply won't start. However if I manually trigger a job on the pipeline for this repo, it starts and passes

Even if you start the pipeline manually it doesn't show as if the tests passed here in github.
How can I trigger manually the tests for https://github.com/OfficeDev/Office-Addin-Scripts/pull/428 and them force merge it? I say force merge because I think the merging will be blocked until all tests have passed.
I will also raise this problem as a problem for the team.

/Azurepipelines run

/azurepipelines run

/azurepipelines run

The pipelines are not running right now. There are config changes needed.

I see that the pipeline ran. I made a tweak to it so maybe that fixed it unless someone manually ran this job?


Run unit tests in parallel

Currently lerna runs in ci unit tests from every package sequentially. To improve CI times, we should add --parallel flag to test:unit and lint script in root package.json

That blows up my laptop hahaha gets frozen immediately and requires a forced reset

That blows up my laptop hahaha gets frozen immediately and requires a forced reset

really, works fine with me and on couple of other projects. Gonna push to see how CI handles it

really, works fine with me and on couple of other projects.  Works fine with me and on couple of other projects. Gonna push to see how CI handles it

Same for other js projects, not only Lodestar. I actually have to build the source with --concurrency 1 or I have a 25% chance of freezing my laptop.
Would be cool to have some way to configure lerna in each environment so you can run with full parallelization and me with none without modifying a committed file

really?! Works fine with me and on couple of other projects. Gonna push to see how CI handles it

Same for other js projects, not only Lodestar. I actually have to build the source with --concurrency 1 or I have a 25% chance of freezing my laptop.
Would be cool to have some way to configure lerna in each environment so you can run with full parallelization and me with none without modifying a committed file

@dapplion maybe some kernel bug, do you have latest?

@dapplion maybe some kernel bug, do you have latest?

@dapplion maybe some kernel bug, do you have latest?

Updated yesterday to latest 5.4.0-64-generic and so far it hasn't crashed :+1:
However, the interlaced output is not pretty and may make things harder to debug if a test fails. I didn't noticed a significant speed increase overall running with --parallel. The units tests in lodestar package just dominate always

@dapplion maybe some kernel bug, do you have latest?

Updated yesterday to latest 5.4.0-64-generic and so far it hasn't crashed :+1:
However, the interlaced output is not pretty and may make things harder to debug if a test fails. I didn't noticed a significant speed increase overall running with --parallel. The units tests in lodestar package just dominate always

Maybe it would be better if we ran all tests except lodestar in parallel. Like:
   "test:unit": "lerna run --parallel --except @chainsafe/lodestar test:unit && lerna run --scope @chainsafe/lodestar test:unit"

Maybe it would be better if we ran all tests except lodestar in parallel. Like:
   "test:unit": "lerna run --parallel --except @chainsafe/lodestar test:unit && lerna run --scope @chainsafe/lodestar test:unit"

How many seconds would we save with that?

13s (1m22s vs 1m35s)

How many seconds would we save with that?

13s (1m22s vs 1m35s)

How many seconds would we save with that?

13s (1m22s vs 1m35s)

In my subjective opinion, it's not worth it

How many seconds would we save with that?

13s (1m22s vs 1m35s)

In my subjective opinion, it's not worth it


Command routing

Remaining tasks from #62...

[ ] Support components in annotations, eg. my_command(app: App)
[ ] Return results should be echoed.
[ ] Replace sys.exit usage with some handled exception.
[ ] Replace click.echo with a console component.
[ ] Refactor layout of tests.
[ ] Documentation.
[ ] Schema validation / error reporting.
[ ] Proper implementation of Enum type
[ ] Refactor to use new .native_type attribute in routing.
[ ] Refactor and tidy up command routing.

Support components in annotations, eg. my_command(app: App)

I've made a generic way for places where I needed the magic with this decorator.
It is a naive POC right now. If the approach and direction looks good, I can open a PR and work on polishing it/ integrating in core.
PS: If the comment doesn't fit here, feel free to delete it and continue on the discussion here.

There's some stuff to be refined here, but the fundamentals of registering commands, and supporting components in command handlers is all there.


Mutual TLS (mTLS) support

Do you support mTLS and do you have any working examples using both client and server certs? I've tried various combinations of this without success.
with gNMIclient(target=host, username='admin', password='password',
path_root='/certs/ca.cert.pem',
path_key='/certs/ca.nopass.key',
path_cert='/certs/client.crt', override='theSubject') as gc:

Hello @instantioc ,
we don't have example of the mTLS, because we so far haven't seen the usecases, where it is needed. Could you please elaborate more on what is yours one?
Best,
Anton

The use case is for more security conscious users that do not want to rely only on a username and password. The client authenticates to the server with a certificate and the client also verifies the server cert. Both certs would be issued by and verified by an enterprise CA. The gNMI implementation/spec supports mTLS already and is supported in many server/appliances from various manufacturers (Cisco, Arista, Juniper). The gNXI GO based client published by Google already supports this but I'm interested in the existing python based clients already in place and programmed around.
https://github.com/openconfig/reference/blob/master/rpc/gnmi/gnmi-authentication.md

I got this working finally. Here's a sample of what I did for others needing help. Maybe some additions to the docs would help too. The override should match a SAN in the server side certificate.

with gNMIclient(target=host, path_root='/Users/someuser/certs/ca.crt',
path_key='/Users/someuser/certs/client.key', path_cert='/Users/someuser/certs/client.crt',
override='<IP_ADDRESS>') as gc:

Thanks @instantioc ,
we'll create update docs.
Best,
Anton


[HOLD on 43397][$250] Android - QBO - Other integrations section blinks

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Version Number: 9.0.1-0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/4666345&group_by=cases:section_id&group_order=asc&group_id=309135
Email or phone of affected tester (no customers<EMAIL_ADDRESS>Issue reported by: Applause - Internal Team
Action Performed:

User should have connected QBO
Login with<EMAIL_ADDRESS>Go to Workspace> Accounting
Tap on Other integrations

Expected Result:
Other integrations section should be stable and should not blink
Actual Result:
Other integrations section blinks
Workaround:
Unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[x] Android: Native
[ ] Android: mWeb Chrome
[ ] iOS: Native
[ ] iOS: mWeb Safari
[ ] MacOS: Chrome / Safari
[ ] MacOS: Desktop

Screenshots/Videos
Add any screenshot/video evidence

https://github.com/Expensify/App/assets/78819774/fcc0792b-1a39-4f69-8a4a-57dc64ff652a
View all open jobs on GitHub
Upwork Automation - Do Not Edit

Upwork Job URL: https://www.upwork.com/jobs/~016262988a225be2e3
Upwork Job ID:<PHONE_NUMBER>556054758
Last Price Increase: 2024-07-09

Issue OwnerCurrent Issue Owner: @ishpaul777

@miljakljajic  FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors

Proposal
Please re-state the problem that we are trying to solve in this issue.
Other integrations section blinks
What is the root cause of that problem?
This issue is from react-native-collapsible, and some users have reported it in this issue.
What changes do you think we should make in order to solve the problem?
This issue has the same root cause analysis (RCA) as this issue. A contributor has proposed a solution for it, and I saw they have created a pull request for react-native-collapsible to fix it. So please wait for the new version of react-native-collapsible to upgrade the package, or use the alternative solution provided by truph01.
What alternative solutions did you explore? (Optional)

I am heading out on parental leave so assigning another BZ team member to manage this when it comes off hold

Shoot, sorry - I am actually out from 9/23-10/4 so I need to reassign this one again.

Adding the retest tag

no longer able to recreate - closing


Fix Chromatic License

### Tasks
- [x] Can we get a chromatic license (for free? :))
- [x] Try out the Storybook 8 release candidate first
- [ ] update readme

@jpzwarte can you explain what needs to be done in the readme file? Then another develop can pick this one up. Thanks


Set makefile to download 9.0.5 driver

Looks like you also need to change the MQ Advanced for Developers Dockerfile


Bad integer in asn1parse

I'm trying to understand the difference in asn1parse between openssl versions 1.0 and 1.1. Versions 1.1 and newer return a BAD INTEGER while 1.0 parsed the integer.
$ openssl version
OpenSSL 1.0.1k 8 Jan 2015

$ echo 'AgT/pBR1' | openssl asn1parse
    0:d=0  hl=2 l=   4 prim: INTEGER           :-5BEB8B

$ openssl version
OpenSSL 1.1.1n  15 Mar 2022

$ echo 'AgT/pBR1' | openssl asn1parse
    0:d=0  hl=2 l=   4 prim: INTEGER           :BAD INTEGER:[FFA41475]

That string is complete rubbish.  It's certainly not valid DER!  That 1.0.x accepted it (i.e. made an uneducated guess) was wrong, and clearly a bug.
$ echo 'AgT/pBR1' | od -t x1
0000000 41 67 54 2f 70 42 52 31 0a
0000011

The tag byte 41 means APPLICATION 1, which is undefined in this context, and the length byte 67 means that there should be 103 (= hex 67) bytes of data, which there is clearly not.
I played with PKI Inspector using the hex code of that string, and well, you can see for yourself:
https://asn1.io/PKI-inspector/default.aspx?databin=H4sIAAAAAAAEAHNMD9EvcAoy5AIABLTRVQkAAAA%3D&op=H4sIAAAAAAAEAFWMwQqDQAxE%2FyVnD%2Fa6N1v0VhTsDwSNuJBulmyKldJ%2FN0Ivvcxh5s37wIA7C84QFuRCFdzxfVtRCwS41DVU0DDL1qrK2f2ga7TRtBN9ojnIlGbKZyTzRz8Z%2Fe1Yphh9GFfZ%2BmxRkmsgmL7c9dgzOQPfA9rjLw2MAAAA
I'm rather amazed that OpenSSL ASN.1 parser actually tries to decode an integer from this!

@levitte thanks for the in-depth explanation. Shouldn't the string be base64 decoded first?
$ echo 'AgT/pBR1' | base64 --decode | od -t x1
0000000    02  04  ff  a4  14  75
0000006

Although this still incorrect; PKI Inspector says 'Redundant leading byte(s) in the Value'.

@levitte thanks a lot! Interesting detail on the redundant ff.
One remaining question is if there is a possibility to add a configuration to the openssl.cnf to be less strict.
In this specific case our supplier needs to provide an update, a configuration override would allow us to use a newer openssl version in the mean time.

No, unfortunately this behavior is not configurable.


Storage: Options for simplifying object/bucket deletion

We have a TODO for this already, but it looks like it would definitely be useful:

DeleteObjectOptions.DeleteAllVersions
DeleteBucketOptions.DeleteContents

Closing for now having added this to the backlog


docs: sim:loadable README does not explain how to test

This configuration is working, but the readme does not explain what is going on with it or how to test it.  We should add this to the the readme.
This is the key part of the configuration:
CONFIG_PATH_INITIAL="/system/bin"
CONFIG_USER_INITPATH="/system/bin/nsh"

the shell is loaded from the elf, but you can also run any of the ELFs that are in /system/bin as they are on the "PATH"
❯ ./nuttx

NuttShell (NSH) NuttX-9.1.0
nsh> help
help usage:  help [-v] [<cmd>]

  .         cd        echo      hexdump   mh        pwd       test      usleep
  [         cp        exec      kill      mount     rm        time      xd
  ?         cmp       exit      ls        mv        rmdir     true
  basename  dirname   false     mb        mw        set       uname
  break     dd        free      mkdir     poweroff  sleep     umount
  cat       df        help      mkrd      ps        source    unset
nsh> ls /system/bin
/system/bin:
 hello
 sh
 ..
 .
 nsh
nsh> hello
Hello, World!!
nsh>

@liuguo09 please take a look.

I have made PR https://github.com/apache/incubator-nuttx/pull/2134 to update sim loadable README with @btashton shown info : ) Also update sotest and module configs readme.


Port to Windows

This PR is an attempt to run Elodie on Windows platform. The following problems was fixed:

File path strings was replaced with os.path.join in core and gui app
Windows has no possibility to change current time zone. So the tests was fixed to  make the time difference calculation (ugly way but nothing else came to my mind)
GUI app: windows notification area doesn't support drag-and-drop feature. I decided to add a drop event to gui start page to get the following workflow:

click to icon in notification area brings the app start page (import window)

the drag-and-drop files to import window switches the app to update mode

It's my first JS code so any criticism is welcome. Unfortunately I have no possibility to check this changes on OS X

Looks great. Added a few comments. Thanks for the PR.

@zserg Finally merged this. Thanks!

@zserg how did you install exiftool pyexiv2 on windows?

@SamHasler, I have got exiftool from http://www.sno.phy.queensu.ca/~phil/exiftool/install.html and
windows installer for pyexiv2 from  http://tilloy.net/dev/pyexiv2/download.html

@zserg We should include that in the Readme file.


Add solid-crud-tests and web-access-control-tests

I'm adding an idp into the testnet for the web-access-control-tests.
I should first finish https://github.com/solid/web-access-control-tests/issues/5
and then edit runTests.sh so that the it first obtains an IDP_COOKIE, uses that for the tester to log in to the idp as Bob and do a request to Alice's pod on the server.


Improve filter predicates with Utf8View literals

Part of https://github.com/apache/datafusion/issues/10918
Is your feature request related to a problem or challenge?
DataFusion's predicate creation doesn't work as ideally for Utf8View constants
Specifically, I added a test i https://github.com/apache/datafusion/pull/10997
explain SELECT column1_utf8 from test where column1_utf8 = arrow_cast('Andrew', 'Utf8View');
logical_plan
01)Filter: CAST(test.column1_utf8 AS Utf8View) = Utf8View("Andrew")
02)--TableScan: test projection=[column1_utf8]

This plan is non ideal as it casts the column rather than the constant
Describe the solution you'd like
Instead of
CAST(test.column1_utf8 AS Utf8View) = Utf8View("Andrew")

the filter should be
test.column1_utf8 =  Utf8("Andrew")

So the expected plan should look like
explain SELECT column1_utf8 from test where column1_utf8 = arrow_cast('Andrew', 'Utf8View');
logical_plan
01)Filter: test.column1_utf8 = Utf8("Andrew")
02)--TableScan: test projection=[column1_utf8]

Describe alternatives you've considered
No response
Additional context
No response

I wonder why #11043 isn't able to close this issue.

I wonder why #11043 isn't able to close this issue.

I agree -- https://github.com/apache/datafusion/pull/11043 should have closed it -- thank you @doki23


camelCasing becomes camel-casing

I am unsure if this is a bug or a feature or both, dependent upon ones relative spacetime needs.
The slugify option turns camelCasing into camel-casing lowercase with the hyphen for friendly URL's.
It took the title of a webpage called WebPage and split the title of the post into web-page and created unfriendly post search engine optimization.

That is due to the default options of the underlying library being used.
If you add the lowercase and decamilize options as false in the plugins slugifyOptions property it should produce the slug as you want it.


Idea: Kotlin-specific collection-assertion helper

Main point: I want to have a single assert per test & I don't want to bother with soft assertions because reasons.
I've been using a pattern where I collect the actual values in a collection and then assert that to be equal to a collection of expected values:
@Test
public void someTest() {

  Result result = doStuff();

  assertThat(List.of(result.foo, result.bar))
    .isEqualTo(List.of("Foo", "Bar"));
}

It's simple & short, using the standard assertion stuff & not needing to "collect" all assertions.
However, for more than 2 elements it's not very readable. I'd prefer to have expected & actual results as close as possible.
In Kotlin I can use the Pair class infix operator to to achieve something like this:
@Test
fun someTest() {

  val result = doStuff()

  assertEqualityOf(
    result.foo to "Foo",
    result.bar to "Bar"
  )
}

This seems very nifty to me!
The magic assertEqualityOf helper is actually simple:
import org.assertj.core.api.Assertions.assertThat

fun assertEqualityOf(vararg equalities: Pair<Any, Any>) {
  assertThat(
    equalities.map { it.first }
  )
    .isEqualTo(
      equalities.map { it.second }
    )
}

My question is: Is it possible for me or someone else to get that Kotlin-specific helper into the AssertJ core or a module?

We can consider it as long as it does not involve adding dependencies, to keep assertj core easy to use we don't want it to have any depedencies.
Maybe open a draft PR for us to get an idea of the changes?

If I got it correctly, the helper requires the knowledge of Pair, which is a Kotlin class and would go against what Joel mentioned.
You might consider https://github.com/willowtreeapps/assertk for Kotlin specific features. Be aware that AssertK is inspired by AssertJ but it has nothing to do with it.

Thanks! Will try it out.
On Thu, 12 Aug 2021, 12:22 Stefano Cordio, @.***> wrote:

If I got it correctly, the helper requires the knowledge of Pair
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-pair/, which is a
Kotlin class and would go against what Joel mentioned.
You might consider https://github.com/willowtreeapps/assertk for Kotlin
specific features. Be aware that AssertK is inspired by AssertJ but it has
nothing to do with it.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/assertj/assertj-core/issues/2307#issuecomment-897521716,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABXN2437WRNPF5JPEZFVRXTT4OOFFANCNFSM5B7W242A
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email
.

Closing this issue for now since it looks like it would need additional dependencies but @mbjelac feel free to comment on it if you need more information from us.


Notebooks do not support showing variable values in datatips (tooltips). IW does.

When executing code via the Interactive Window a user can see the values of variables that have been initialized in the kernel.

Notebooks should be able to support the same behavior.

Dupe #1495


Does registerBeforeUnloadHandler work at all (even as beta?) I get error code 100

Hi,
just tried to implement registerBeforeUnloadHandler and get an error code of 100. I realize it's marked as beta but having a page unload event within a custom teams app would be so helpful.
 teamsCore.registerBeforeUnloadHandler((readyToUnload) => {
  //do some stuff.
  readyToUnload();
  return true;
});

results in;

is there any alternative way to achieve some capture before the unload. The context of this is to do some cleanup in a custom teams app that is used in meeting - and specifically, I want to do some just in time stuff when the user hits the leave button.
thanks.

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

ID: 3bf86c48-79ff-9fe5-9b0f-f6320856f326
Version Independent ID: ac956b0c-1dd8-a07a-9eaa-6fda7b6513bb
Content: teamsCore module - Teams
Content Source<EMAIL_ADDRESS>Service: msteams
GitHub Login: @charlesprakash
Microsoft Alias: o365devx

@AlexSapple - Thanks for reporting your issue. Currently there is no alternative way to achieve some capture before the unload.
You can suggest this feature here : Microsoft Teams Community


Expose filter feature

Add to configuration, send filter subscribe messages if set and http port.

This is still a WIP.

This branches out of https://github.com/t4lz/mirrord/pull/4 and so it contains all the changes from there, so I recommend only looking at this PR after we've merged https://github.com/t4lz/mirrord/pull/4 and I rebased this PR on it.


bin/rails webpacker:compile optiion in _build

Description
currently the bin/_build and the https://lamby.custominktech.com/docs/asset_host_and_precompiling describe only sprockets asset compilation. Rails 6 have webpacker by default to replace JavaScript compilation of sprockets.
So I think it's worth to include webpacker:compile lines in the bin/_build
I'm also planing to do PR on docs in https://lamby.custominktech.com/docs/asset_host_and_precompiling to include Webpacker section
Changes
I'm updating any occurrence of bin/_build in the project (don't have full understanding where it's really needed, so pls let me know if I've overkilled it, I can change PR)
Screenshots
here is proof that it works
https://ror.serverless-ruby.org/
https://github.com/equivalent/my_awesome_lambda-lamby/blob/master/app/javascript/controllers/hello_controller.js
https://github.com/equivalent/my_awesome_lambda-lamby/blob/master/app/views/layouts/application.html.erb#L18

Hey Tomas!
Did you use the Lamby Cookiecutter starter? It should be Webpacker ready; I started a TailwindCSS project with it recently. And yes, it would be really nice to update that guide page. The source can be found here and a PR would be most appreciative. https://github.com/customink/lamby_site Here is what I am thinking:
Remove Asset Group Hacks
I wonder if we can remove group :assets and the insert into the application.rb to make that work. My hunch is we can delete this from the starter along with sass-rails and even if people needed to added it back then they can do so without the asset group hack we needed prior to containers being the default.
Guide Getting Started with JavaScript
Right now JavaScript and Webpacker are semi turned off in the starter to make sure thing flow fast. I do not want to assume JavaScript tooling should be on by default. I'd like to provide a guide for that.
So given the above "asset group hack", the first section of this page (https://lamby.custominktech.com/docs/asset_host_and_precompiling) can be deleted. Instead, maybe we can start that page off with a section on "Setting up JavaScript & CSS" where we run thru some checklists of what to turn back on in the starter. For JavaScript, here are a few things I see that would be called out.

Uncomment bin/yarn in your bin/_setup file. See: https://github.com/customink/lamby-cookiecutter/blob/master/lambify/bin/_setup
TBD: Some callout on adding something JavaScript'y. Maybe Tailwind CSS?
Walk thru on uncommenting (or changing depending on above) these lines in app layout. https://github.com/customink/lamby-cookiecutter/blob/master/inserts/app/views/layouts/application.html.erb

Thoughts?

Hey Tomas!
Did you use the Lamby Cookiecutter starter? It should be Webpacker ready; I started a TailwindCSS project with it recently. And yes, it would be really nice to update that guide page. The source can be found here and a PR would be most appreciative. https://github.com/customink/lamby_site Here is what I am thinking:
Remove Asset Group Hacks
I wonder if we can remove group :assets and the insert into the application.rb to make that work. My hunch is we can delete this from the starter along with sass-rails and even if people needed to added it back then they can do so without the asset group hack we needed prior to containers being the default.
Guide Getting Started with JavaScript
Right now JavaScript and Webpacker are semi turned off in the starter to make sure thing flow fast. I do not want to assume JavaScript tooling should be on by default. I'd like to provide a guide for that.
So given the above "asset group hack", the first section of this page (https://lamby.custominktech.com/docs/asset_host_and_precompiling) can be deleted. Instead, maybe we can start that page off with a section on "Setting up JavaScript & CSS" where we run thru some checklists of what to turn back on in the starter. For JavaScript, here are a few things I see that would be called out.

Uncomment bin/yarn in your bin/_setup file. See: https://github.com/customink/lamby-cookiecutter/blob/master/lambify/bin/_setup
TBD: Some callout on adding something JavaScript'y. Maybe Tailwind CSS?
Walk thru on uncommenting (or changing depending on above) these lines in app layout. https://github.com/customink/lamby-cookiecutter/blob/master/inserts/app/views/layouts/application.html.erb

Thoughts?

Hi Ken,
today I've realized this isn't a bug improvement (as I've originally thought) but accidental feature improvement proposal :). Let me explain:

Did you use the Lamby Cookiecutter starter? It should be Webpacker ready;

Yep I did use the Quick Start guide and yes you are right the webpacker is added in and works for develop :+1: .
But once deployed to the lambda it wasn't doing it's job for serving application  application js file on the API Gateway url https://1m1x0sga74.execute-api.eu-west-1.amazonaws.com/production/packs/....
Of course that's now obvious why: /production/packs/  should be /packs
I didn't realize that at the time of this PR; the JS files worked on my custom domain  here .
So no problem there. Webpack/webpacker really works on prod! But because I thought this is something to do with container not able to run the webpack I've run the bin/rails webpacker:compile which would precompile the JS to /public/packs/ folder so prod Webpack don't have to do that
And here is the feature part:
As Ideally we want to limit the work on the Lambda so  we pay less. So maybe there is actuall benefit to just serve the pack files precompiled in Lamby by default. That's why adding the bin/_build to run webpacker:compile (so it behaves simmilar to what you propose in Assets section of your guide.
To be honest I've lost track of how AWS Lambda now price the execution (didn't work with it for year or two) So you are definitely better person to say if this is worth it or not.
At this stage I personally think that if there is no performance/cost benefit then my PR here is not needed. It feels like I would just complicate things. (But I will create PR on your guide with this problem described :) )
now on other topics:  Remove Asset Group Hacks and guide for JavaScript please give me few hours to think of that. You make good points but with recent discovery of my mistake I want to process it in my head before giving any suggestions :)

Hi Ken,
today I've realized this isn't a bug improvement (as I've originally thought) but accidental feature improvement proposal :). Let me explain:

Did you use the Lamby Cookiecutter starter? It should be Webpacker ready;

Yep I did use the Quick Start guide and yes you are right the webpacker is added in and works for develop :+1: .
But once deployed to the lambda it wasn't doing it's job for serving application  application js file on the API Gateway url https://1m1x0sga74.execute-api.eu-west-1.amazonaws.com/production/packs/....
Of course that's now obvious why: /production/packs/  should be /packs
I didn't realize that at the time of this PR; the JS files worked on my custom domain  here .
So no problem there. Webpack/webpacker really works on prod! But because I thought this is something to do with container not able to run the webpack I've run the bin/rails webpacker:compile which would precompile the JS to /public/packs/ folder so prod Webpack don't have to do that
And here is the feature part:
As Ideally we want to limit the work on the Lambda so  we pay less. So maybe there is actuall benefit to just serve the pack files precompiled in Lamby by default. That's why adding the bin/_build to run webpacker:compile (so it behaves simmilar to what you propose in Assets section of your guide.
To be honest I've lost track of how AWS Lambda now price the execution (didn't work with it for year or two) So you are definitely better person to say if this is worth it or not.
At this stage I personally think that if there is no performance/cost benefit then my PR here is not needed. It feels like I would just complicate things. (But I will create PR on your guide with this problem described :) )
now on other topics:  Remove Asset Group Hacks and guide for JavaScript please give me few hours to think of that. You make good points but with recent discovery of my mistake I want to process it in my head before giving any suggestions :)

clossing this issue as not the best  idea

clossing this issue as not the best  idea

hi Ken,

I wonder if we can remove group :assets and the insert into the application.rb to make that work. My hunch is we can delete this from the starter along with sass-rails

I'm in opinion that lib/framework should have some defaults  pre-configured for Junior developers even if they may not be used by more experienced users. That being said spending couple of days working with Lamby I think this will not be used by Junior developers.
Don't get me wrong everything works perfectly and you done amazing job but I think  it's  a jump for Junior developers from rails new  and heroku deploy to run  AWS SAM and all.
So that's why what you are describing to remove sass-rails, etc... makes sense if you want to bring on board more experienced developers and simplify life for them. But it will discourage Junior developers (my opinion). But this is good because you can focus on key features of Lamby, not just default JS setup support.
in  https://ror.serverless-ruby.org/ I've tried to use sprockets, I had some issues (described in next paragraph) so I didn't think twice to debug it I've went with webpacker  (and css compiled via webpack).  When I start working on http://www.serverless-ruby.org/ I jumped straight to webpacker .I actually liked that webpacker was working straight away, but this is just how I tackled the problem with CSS/JS other devs may have different approach (or don't use webpacker at all)
I  think if you remove the "sass-rails" and replace it with more step by step documentation it will be good  approach. Simply because when I was building project I relied on "sprockets working in my laptop == they will work on AWS Lambda" and I didn't read the asset precompilation documentation. So that's why I din't realize in  bin/_build I need to uncomment  rake assets:precompile
So I think having step by step manual instead of defaults will be actually much more helpful (as people will have to  read it  and see the gotchas)
One more thing in defense why you may want to consider keeping the rake assets:precompile in dev/_build and enabled by default (even if rails-sass goes away). Ruby on Rails developer needs to place images to assets/images and those needs to be recompiled in order to be used with image_tag.
JavaScript Guide
I can help you document some of the webpacker steps (and also help you document other stuff like CloudFlare DNS) .
I fully agree that crating Setting up JavaScript & CSS is a good idea but I would suggest separate secions for webpacker and sprockets  as it may be confusing having it in one
smething like:

Setting up JavaScript & CSS

Webpack
Sprockets

as for (https://lamby.custominktech.com/docs/asset_host_and_precompiling) there is lot of useful stuff but it's more advanced => bottom of sprockets section. Top of Sprockets should have some basics like how to add sass-rails etc .
@metaskills

hi Ken,

I wonder if we can remove group :assets and the insert into the application.rb to make that work. My hunch is we can delete this from the starter along with sass-rails

I'm in opinion that lib/framework should have some defaults  pre-configured for Junior developers even if they may not be used by more experienced users. That being said spending couple of days working with Lamby I think this will not be used by Junior developers.
Don't get me wrong everything works perfectly and you done amazing job but I think  it's  a jump for Junior developers from rails new  and heroku deploy to run  AWS SAM and all.
So that's why what you are describing to remove sass-rails, etc... makes sense if you want to bring on board more experienced developers and simplify life for them. But it will discourage Junior developers (my opinion). But this is good because you can focus on key features of Lamby, not just default JS setup support.
in  https://ror.serverless-ruby.org/ I've tried to use sprockets, I had some issues (described in next paragraph) so I didn't think twice to debug it I've went with webpacker  (and css compiled via webpack).  When I start working on http://www.serverless-ruby.org/ I jumped straight to webpacker .I actually liked that webpacker was working straight away, but this is just how I tackled the problem with CSS/JS other devs may have different approach (or don't use webpacker at all)
I  think if you remove the "sass-rails" and replace it with more step by step documentation it will be good  approach. Simply because when I was building project I relied on "sprockets working in my laptop == they will work on AWS Lambda" and I didn't read the asset precompilation documentation. So that's why I din't realize in  bin/_build I need to uncomment  rake assets:precompile
So I think having step by step manual instead of defaults will be actually much more helpful (as people will have to  read it  and see the gotchas)
One more thing in defense why you may want to consider keeping the rake assets:precompile in dev/_build and enabled by default (even if rails-sass goes away). Ruby on Rails developer needs to place images to assets/images and those needs to be recompiled in order to be used with image_tag.
JavaScript Guide
I can help you document some of the webpacker steps (and also help you document other stuff like CloudFlare DNS) .
I fully agree that crating Setting up JavaScript & CSS is a good idea but I would suggest separate secions for webpacker and sprockets  as it may be confusing having it in one
smething like:

Setting up JavaScript & CSS

Webpack
Sprockets

as for (https://lamby.custominktech.com/docs/asset_host_and_precompiling) there is lot of useful stuff but it's more advanced => bottom of sprockets section. Top of Sprockets should have some basics like how to add sass-rails etc .
@metaskills

Reopening till improvements are made.

Reopening till improvements are made.

OK, here are the actions I have taken to help with this.
New Custom Domain Guide
The Lamby site's Custom Domain Name section to use CloudFormation and get a 100% automated solution for the average developer to get one working. This is required for assets to be served correctly because a custom domain allows the /stage path to be mapped to the root domain. Please see this page for the new guide. https://lamby.custominktech.com/docs/custom_domain_names
Remove RAILS_GROUPS Hacks
When we used the ZIP package format for some reason we had to remove Sass from the production require. I'm not sure why but I have verified that having sass-rails which come by default is just fine with the CONTAINER format. I have also enabled the style sheet link and javascript pack tags in the application layout. The bin/_setup now calls yarn install. Lastly, bin/_build uncomments the asset precompile and removes the RAILS_GROUPS hacks. Reminder, that asset precompile also calls the Webpacker mechanics. So everything is now on by default for CSS & JavaScript.
Demo CSS & JavaScript Readiness
I updated this page (https://lamby.custominktech.com/docs/asset_host_and_precompiling) to showcase the above capabilities. This demo focuses on using the new TailwindCSS Rails (https://github.com/rails/tailwindcss-rails) gem. Note, in my little test app, I even changed the application.css to application.scss and did a little Sass test. Worked like a champ.
Thinking now this closes out this issue but would love your feedback if this helps or what more we can do?

OK, here are the actions I have taken to help with this.
New Custom Domain Guide
The Lamby site's Custom Domain Name section to use CloudFormation and get a 100% automated solution for the average developer to get one working. This is required for assets to be served correctly because a custom domain allows the /stage path to be mapped to the root domain. Please see this page for the new guide. https://lamby.custominktech.com/docs/custom_domain_names
Remove RAILS_GROUPS Hacks
When we used the ZIP package format for some reason we had to remove Sass from the production require. I'm not sure why but I have verified that having sass-rails which come by default is just fine with the CONTAINER format. I have also enabled the style sheet link and javascript pack tags in the application layout. The bin/_setup now calls yarn install. Lastly, bin/_build uncomments the asset precompile and removes the RAILS_GROUPS hacks. Reminder, that asset precompile also calls the Webpacker mechanics. So everything is now on by default for CSS & JavaScript.
Demo CSS & JavaScript Readiness
I updated this page (https://lamby.custominktech.com/docs/asset_host_and_precompiling) to showcase the above capabilities. This demo focuses on using the new TailwindCSS Rails (https://github.com/rails/tailwindcss-rails) gem. Note, in my little test app, I even changed the application.css to application.scss and did a little Sass test. Worked like a champ.
Thinking now this closes out this issue but would love your feedback if this helps or what more we can do?


Keep docstring consistent on supporting vector, array, and columnar input formats

Removed featuresCols and inputCols in docstring as they have been included in featuresCol and inputCol.

build

LGTM.


Prompt to select the function app twice when executing "Azure Functions: Restart"

OS: Windows
Build Version: 20190516.2
Regression: Not a Regression
Repro Steps:

F1 -->Type and select "Azure Functions: Restart".
Check the result.

Expect:
Complete the "Stop--> Start" at once and there is no the second request.
Actual:
Prompt to select one function app to stop --> After that, prompt to select the function app again to start.
In this case, we can select another function app at the second.

Fixed in https://github.com/microsoft/vscode-azurefunctions/pull/1320


[Reimplementation] RuntimeError: each data_itement in list of batch should be of equal size

Prerequisite

[X] I have searched Issues and Discussions but cannot get the expected help.
[X] I have read the FAQ documentation but cannot get the expected help.
[X] The bug has not been fixed in the latest version (master) or latest version (3.x).

💬 Describe the reimplementation questions
I carefully followed the instructions and tried to evaluate the pretrained model(loaded from mmselfsup model zoo) on PASCAL VOC dataset. The config file is: mmselfsup/configs/benchmarks/mmdetection/voc0712/faster-rcnn_r50-c4_ms-24k_voc0712.py, which is based on: mmdetection/configs/pascal_voc/faster-rcnn_r50-caffe-c4_ms-18k_voc0712.py
In training process, there are errors:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/dist-packages/mmdet/.mim/tools/train.py", line 124, in
main()
File "/usr/local/lib/python3.9/dist-packages/mmdet/.mim/tools/train.py", line 120, in main
runner.train()
File "/usr/local/lib/python3.9/dist-packages/mmengine/runner/runner.py", line 1701, in train
model = self.train_loop.run()  # type: ignore
File "/usr/local/lib/python3.9/dist-packages/mmengine/runner/loops.py", line 277, in run
data_batch = next(self.dataloader_iterator)
File "/usr/local/lib/python3.9/dist-packages/mmengine/runner/loops.py", line 164, in next
data = next(self._iterator)
File "/usr/local/lib/python3.9/dist-packages/torch/utils/data/dataloader.py", line 628, in next
data = self._next_data()
File "/usr/local/lib/python3.9/dist-packages/torch/utils/data/dataloader.py", line 1333, in _next_data
return self._process_data(data)
File "/usr/local/lib/python3.9/dist-packages/torch/utils/data/dataloader.py", line 1359, in _process_data
data.reraise()
File "/usr/local/lib/python3.9/dist-packages/torch/_utils.py", line 543, in reraise
raise exception
RuntimeError: Caught RuntimeError in DataLoader worker process 0.
Original Traceback (most recent call last):
File "/usr/local/lib/python3.9/dist-packages/torch/utils/data/_utils/worker.py", line 302, in _worker_loop
data = fetcher.fetch(index)
File "/usr/local/lib/python3.9/dist-packages/torch/utils/data/_utils/fetch.py", line 61, in fetch
return self.collate_fn(data)
File "/usr/local/lib/python3.9/dist-packages/mmengine/dataset/utils.py", line 94, in pseudo_collate
return data_item_type({
File "/usr/local/lib/python3.9/dist-packages/mmengine/dataset/utils.py", line 95, in
key: pseudo_collate([d[key] for d in data_batch])
File "/usr/local/lib/python3.9/dist-packages/mmengine/dataset/utils.py", line 78, in pseudo_collate
raise RuntimeError(
RuntimeError: each data_itement in list of batch should be of equal size
I didn't modified the settings related to voc dataset and only change the optimizer parameters for training on 1 GPU.
According to mmengine, this RuntimeError was caused by unconsistent sizeof data_itements in batch. I have no idea of figuring out the reason and solving this problem.
Environment
System environment:
sys.platform: linux
Python: 3.9.16 (main, Dec  7 2022, 01:11:51) [GCC 9.4.0]
CUDA available: True
numpy_random_seed:<PHONE_NUMBER>
GPU 0: Tesla T4
CUDA_HOME: /usr/local/cuda
NVCC: Cuda compilation tools, release 11.8, V11.8.89
GCC: x86_64-linux-gnu-gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0
PyTorch: 1.13.1+cu116
PyTorch compiling details: PyTorch built with:

GCC 9.3

C++ Version: 201402

Intel(R) Math Kernel Library Version 2020.0.0 Product Build 20191122 for Intel(R) 64 architecture applications

Intel(R) MKL-DNN v2.6.0 (Git Hash 52b5f107dd9cf10910aaa19cb47f3abf9b349815)

OpenMP 201511 (a.k.a. OpenMP 4.5)

LAPACK is enabled (usually provided by MKL)

NNPACK is enabled

CPU capability usage: AVX2

CUDA Runtime 11.6

NVCC architecture flags: -gencode;arch=compute_37,code=sm_37;-gencode;arch=compute_50,code=sm_50;-gencode;arch=compute_60,code=sm_60;-gencode;arch=compute_70,code=sm_70;-gencode;arch=compute_75,code=sm_75;-gencode;arch=compute_80,code=sm_80;-gencode;arch=compute_86,code=sm_86

CuDNN 8.3.2  (built against CUDA 11.5)

Magma 2.6.1

Build settings: BLAS_INFO=mkl, BUILD_TYPE=Release, CUDA_VERSION=11.6, CUDNN_VERSION=8.3.2, CXX_COMPILER=/opt/rh/devtoolset-9/root/usr/bin/c++, CXX_FLAGS= -fabi-version=11 -Wno-deprecated -fvisibility-inlines-hidden -DUSE_PTHREADPOOL -fopenmp -DNDEBUG -DUSE_KINETO -DUSE_FBGEMM -DUSE_QNNPACK -DUSE_PYTORCH_QNNPACK -DUSE_XNNPACK -DSYMBOLICATE_MOBILE_DEBUG_HANDLE -DEDGE_PROFILER_USE_KINETO -O2 -fPIC -Wno-narrowing -Wall -Wextra -Werror=return-type -Werror=non-virtual-dtor -Wno-missing-field-initializers -Wno-type-limits -Wno-array-bounds -Wno-unknown-pragmas -Wunused-local-typedefs -Wno-unused-parameter -Wno-unused-function -Wno-unused-result -Wno-strict-overflow -Wno-strict-aliasing -Wno-error=deprecated-declarations -Wno-stringop-overflow -Wno-psabi -Wno-error=pedantic -Wno-error=redundant-decls -Wno-error=old-style-cast -fdiagnostics-color=always -faligned-new -Wno-unused-but-set-variable -Wno-maybe-uninitialized -fno-math-errno -fno-trapping-math -Werror=format -Werror=cast-function-type -Wno-stringop-overflow, LAPACK_INFO=mkl, PERF_WITH_AVX=1, PERF_WITH_AVX2=1, PERF_WITH_AVX512=1, TORCH_VERSION=1.13.1, USE_CUDA=ON, USE_CUDNN=ON, USE_EXCEPTION_PTR=1, USE_GFLAGS=OFF, USE_GLOG=OFF, USE_MKL=ON, USE_MKLDNN=ON, USE_MPI=OFF, USE_NCCL=ON, USE_NNPACK=ON, USE_OPENMP=ON, USE_ROCM=OFF,
TorchVision: 0.14.1+cu116
OpenCV: 4.7.0
MMEngine: 0.7.0

Expected results
No response
Additional information
error source according to mmengine:
@FUNCTIONS.register_module()
def pseudo_collate(data_batch: Sequence) -> Any:
"""Convert list of data sampled from dataset into a batch of data, of which
type consistent with the type of each data_itement in data_batch.
The default behavior of dataloader is to merge a list of samples to form
a mini-batch of Tensor(s). However, in MMEngine, pseudo_collate
will not stack tensors to batch tensors, and convert int, float, ndarray to
tensors.
This code is referenced from:
Pytorch default_collate <https://github.com/pytorch/pytorch/blob/master/torch/utils/data/_utils/collate.py>_.
Args:
data_batch (Sequence): Batch of data from dataloader.
Returns:
Any: Transversed Data in the same format as the data_itement of
data_batch.
"""  # noqa: E501
data_item = data_batch[0]
data_item_type = type(data_item)
if isinstance(data_item, (str, bytes)):
return data_batch
elif isinstance(data_item, tuple) and hasattr(data_item, '_fields'):
# named tuple
return data_item_type(*(pseudo_collate(samples)
for samples in zip(*data_batch)))
elif isinstance(data_item, Sequence):
# check to make sure that the data_itements in batch have
# consistent size
it = iter(data_batch)
data_item_size = len(next(it))
if not all(len(data_item) == data_item_size for data_item in it):
raise RuntimeError(
'each data_itement in list of batch should be of equal size')
transposed = list(zip(*data_batch))
...

@Acuhe The meaning is that some data in your batch data have different lengths. Can you simply debug to see which fields are causing the error?

Have u fixed it? I also met it

same issue, how to fix?

I had the same issue but my solution was to do with my pipeline and dataloader. I was creating my train_pipeline but I never gave that to my train_dataloader e.g:
train_pipeline = [
dict(backend_args=None, type='LoadImageFromFile'),
dict(type='LoadAnnotations', with_bbox=True),
dict(keep_ratio=True, scale=(
1333,
800,
), type='Resize'),
dict(prob=0.5, type='RandomFlip'),
dict(type='PackDetInputs'),
]
train_dataloader = dict(
batch_size=2,
dataset=dict(
dataset=dict(
ann_file='annotations/aris_train_annotations.json',
data_prefix=dict(img='aris-train/'),
data_root='/mmdetection/data/coco',
metainfo=dict(
classes=(
'Rusted Roofing Fixture/Screw',
'Hail Hit',
),
palette=[
(
220,
20,
60,
),
(
20,
61,
196,
),
]),
type='CocoDataset',
pipeline=train_pipeline),
times=4,
type='RepeatDataset'),
num_workers=2,
persistent_workers=True,
sampler=dict(shuffle=True, type='DefaultSampler'))
And similar for my test/val pipeline and dataloader as it broke during training when testing occurred during a checkpoint save.


fixes #1683 applicative lifting for Option, Try, Future...

I created a class "Applicative" for now, but we can rename it of course. Let me know your preference.

Current coverage is 97.00% (diff: 97.56%)

Merging #1714 into master will increase coverage by 0.03%

@@             master      #1714   diff @@
==========================================
  Files            87         88     +1
  Lines         11156      11197    +41
  Methods           0          0
  Messages          0          0
  Branches       1875       1875
==========================================
+ Hits          10818      10862    +44
+ Misses          198        197     -1
+ Partials        140        138     -2

Powered by Codecov. Last update b72230a...3b417a5

I'm going to ignore the sputnik complaints about generic types being named with digits inside. Let me know if I shouldn't.

I agree with your comments, my original bug called for Option.lift, Try.lift and so on. I lamented the complexity of partial generation, and decided to go with a single file based on that. So we can pause work until we have the architecture for partially generating file, which I agree is better. Probably I won't be the person doing that work though :-(
Regarding type variants I'm not sure what is your conclusion in the end? We know what is best (and if yes, what is it?) or we don't yet?
As I said I'll also peek at the implementation in haskell, maybe we shouldn't rely on fmap to be completely correct.

so yeah I mean what is implemented is liftM2. We use the monadic functions. We could achieve the same thing without requiring monads though. But maybe it's irrelevant.

ok, let's pause until partial generation

closing the PR for now then. We can resume communication on the bug probably. When there is partial generation support you can ping me on the bug, or probably you can pick this up and code it to the end

This is dissatisfying. Anyway, thank you for all your effort! Your contributions are well thought-through and precisely implemented. I will spend some time soon on fixing the loose ends (also RedBlackTree in order to get the navigable Set additions).

Thanks for the feedback! Hopefully this work here can be resumed soon. If you think partial generation is far off, and you have a precise idea how it could be done, maybe I can assist, but I have no idea how I would get started right now.

Okay, I already thought about partial generation. I will create a ticket and write down my ideas...


CDATA Escaped characters

Issue:
Special characters like &, ", <, >, ' that can appear in a CDATA section are not replaced by their associated escaped string. This cause a problem when trying to parse a string which comes from an XMLIndexer description method.
Steps to reproduce:
let xmlIndexer = SWXMLHash.parse("<some xml>")
let description = xmlIndexer.description
let xmlIndexer2 = SWXMLHash.parse(description)

=> xmlIndexer2 has some missing nodes and inconsistent state because of the unescaped characters like & contained in description variable.
Possible solution:
Replace special characters by their associated escaped string in func parser(_ parser: XMLParser, foundCDATA CDATABlock: Data) method.

The description property doesn't actually return inner content, instead it returns the textual representation of the entire XML element currently indexed. See below from the tests:
    func testShouldBeAbleToProvideADescriptionForTheDocument() {
        let descriptionXml = "<root><foo><what id=\"myId\">puppies</what></foo></root>"
        let parsed = SWXMLHash.parse(descriptionXml)

        XCTAssertEqual(parsed.description, "<root><foo><what id=\"myId\">puppies</what></foo></root>")
    }

To get the textual content of an element with CDATA in it, you'd instead use the text property off of the element. Like so:
xml!["some"]["elem-with-cdata"].element?.text

Does this help?

I'm going to go ahead and close this as there hasn't been any activity - feel free to comment and re-open if you still are having issues. Thanks!


Issue with K3s - ~/.kube/config not found

https://github.com/ctrliq/ascender-install/blob/ed56d2200984e587b1fd6b90092a7caeaa1e1af4/playbooks/roles/k8s_setup/tasks/k8s_setup_k3s.yml#L45-L52
Had an issue here did a simple
mkdir ~/.kube/
cat /var/lib/rancher/k3s/server/cred/admin.kubeconfig >> ~/.kube/config

ps. I did run this is as root that could be the issue

Are you running the installer as root?


Can't run a demo

I've cloned the master and tried to run the demo. Both
 python -m SimpleHTTPServer

and
http-server --cors

from node.js fail to run the demo, and I only get:

The errors I get, from the server:
"POST /examples/fragments/bottom.sheet.html" Error (404): "Not found"
"POST /examples/fragments/bottom.sheet.html" Error (404): "Not found"

and from the client:
POST http://localhost:8080/examples/fragments/panel.left.html 405 (Method Not Allowed)
POST http://localhost:8080/examples/fragments/bottom.sheet.html 405 (Method Not Allowed)

What am I doing wrong? Thanks!

It looks like a problem with CORS while those two files are included by jquery.load-method.
May this answer on stackoverflow will help you any further: http://stackoverflow.com/questions/20698723/cors-405-method-not-allowed

nd2-include uses POST for loading html. This is HTTP non-standard behaviour and you have to customize server to load static resources with POST request. I suggest to change nd2-include module to use GET instead of POST.

@matejuh thanks for your input. I just changed the loading behaviour

Great, thanks! I think it will be much better for many people. I'm not Javascript developer and it took me long time to realize that when I remove post params then GET is called and wasn't sure if I should send merge request...

Hello guys,
I'm quite new to web programming and I am developing a simple web app. I would like to use the nativeDroid2 features and I cloned the repository but I'm unable to load the demo on my web browser. What I am trying to do is to run the index.html in the root directory but I only get a plain page with a title and some text as seen below. I also read the article about nd2-include but I couldn't understand much of it, unfortunately.

This happen because you are trying to open it in browser as file. Chrome block this kind of stuff cause is trying to gain access to a file in your computer…
Translation: put the file under a web server (like XAMPP) and open it with a correct url ( http://localhost/MyAwesomeProject http://localhost/MyAwesomeProject)

Il giorno 15 mar 2018, alle ore 18:13, violinazh<EMAIL_ADDRESS>ha scritto:
Hello guys,
I'm quite new to web programming and I am developing a simple web app. I would like to use the nativeDroid2 features and I cloned the repository but I'm unable to load the demo on my web browser. What I am trying to do is to run the index.html in the root directory but I only get a plain page with a title and some text as seen below. I also read the article about nd2-include but I couldn't understand much of it, unfortunately.
https://user-images.githubusercontent.com/15687836/37479137-34d7a20e-287c-11e8-9dc2-c61a618de5f8.png
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub https://github.com/wildhaber/nativeDroid2/issues/31#issuecomment-373453910, or mute the thread https://github.com/notifications/unsubscribe-auth/AOVz8JT8aUGMOf65X92lxOoWM-0Fxzeyks5teqFSgaJpZM4FtwrN.


[Bug]: Detected Wallet appears as a wallet option in the wallet select step.

Current Behavior
I'm adding only metamask
wallets: [
{
walletName: "metamask",
}]
But a "Detected wallet" appears in the list of wallets.
When clicked:
We have detected that you already have MetaMask installed. If you would prefer to use Detected Wallet instead, then click below to install.
Tip: If you already have Detected Wallet installed, check your browser extension settings to make sure that you have it enabled and that you have disabled any other browser extension wallets. Then refresh the page.
with two buttons, Back and Open Detected Wallet (nothing happens when clicked)
I've google Detected Wallet but nothing appears..
Expected Behavior
Just the metamask wallet selector
Steps To Reproduce
Rinkeby network, localhost.
Onboard Version
^1.35.4
Node Version
14.17.0
What browsers are you seeing the problem on?
Chrome
Relevant log output
No response
Anything else?
No response

adding preferred: true to the only wallets in the array, removes the Detected Wallet

Just noticed that the Detected Wallet appears when Show More is clicked.
how to remove the Detected Wallet option?

Reviewing the docs, found:
The detected wallet will be displayed as an option when an injected Ethereum provider is detected, but it is not recognized by Onboard. This allows users to connect to your app with any provider that conforms to the EIP-1193 standard.
Is there any way to prevent showing it? disable it, or check which is the provider that is making it to appear?

@lamaro, it looks like it could be related to the latest MetaMask version? As soon as I disable MetaMask's extension, the "Detected Wallet" goes away, and given that Onboard looks for injected Ethereum providers, and MetaMask injects one, could be related.
Since it seems that the detected wallet is always the first option in the list, one way of disabling it could be via CSS, setting display: none to that :first-child in particular.

@lamaro You can use this to disable if need be 👍🏾

https://docs.blocknative.com/onboard#initialization-1

Unfortunately, this solution didn't worked for me. The Detected wallet still appearing =(
This is my configuration
walletSelect: {       heading: "Connect your Wallet",       description: "Onboard JS Boilerplate",       explanation: "",       wallets: [         {           walletName: "detectedwallet",           display: {             desktop: false,             mobile: false,           },         },         {           walletName: "metamask",         },       ],     },     walletCheck: [       { checkName: "derivationPath" },       { checkName: "connect" },       { checkName: "accounts" },       { checkName: "network" },       { checkName: "balance", minimumBalance: "100000" },     ],
It seems that Detected Wallet skips the mobile/desktop display prop.
any Clue?

@lamaro I will need to debug this locally and get back to you 👍

@lamaro  fixed in latest release! v1.35.5


Add option to enforce translations

Hi,
This PR adds an option to enforce translations from location files instead of falling back to humanizing attribute names.

Also related to this is https://github.com/ruby-i18n/i18n/pull/654.
The goal being to have this kind of errors:
I18n.t(
  :"role.name",
  scope: : "simple_form.placeholders",
  default: [:"defaults.new.name", :"defaults.name"],
  raise: true)

Translation missing. Options considered were:
- en.simple_form.placeholders.role.new.name
- en.simple_form.placeholders.role.name
- en.simple_form.placeholders.defaults.new.name
- en.simple_form.placeholders.defaults.name


CEO-215 Reset plots when assignments are updated

Purpose

Checks the User & QA/QC assignments, and updates the plots when either has been modified.
Related Issues
Closes CEO-215
Submission Checklist

[x] Commits include the JIRA issue and the #review hashtag (e.g. CEO-### #review <comment>)
[x] Code passes linter rules (npm run eslint/clj-kondo --lint src)

Testing

Given I am an admin, When I am updating a project, And I change the User Assignments or Quality Control, Then I am warned that the collected plots will be deleted, And the plots are updated.

src/clj/collect_earth_online/db/projects.clj
525, What design settings to we have that dont need to be checked.?  Use keep-keys if only some need to be checked.  In the future we will be adding plot distribution, plot shape, etc to the design setting object so we can just check the whole thing.
(defn modified-design? [ds1 ds2]
  (not= (-> ds1 (tc/jsonb->clj) ds1)
        (-> ds2 (tc/jsonb->clj) ds2)))

src/js/project/ReviewChanges.js
148, assignmentsUpdated -> plotDesignChanged
149, what settings dont need to be checked?
In reviewing this code, our simpler designSetting object should probably be plotDesignSetting and sampleDesignSetting to simplify our update comparisons. This is future work.

What design settings don't need to be checked?
At this point, we can just check the whole designSettings object
In reviewing this code, our simpler designSetting object should probably be plotDesignSetting and sampleDesignSetting to simplify our update comparisons. This is future work.
Opened CEO-266

149, Can you just compare the whole object like the back end?


add computation of dhg/dq inside computecentroidaldynamicsderivatives

I extend the forceSet::motionAction to include the case when multiple column vectors are being applied to a single force vector.
Except that, the implementation is easy to understand.

It seems that I missed the motionSet::act, it is the same implementation as forceSet::motionAction.
(Which is a bit confusing, since all implementation of motion and force operations is done in the Force class, or in the forceSet namespace. motionSet::act is an outlier here.)
I've removed the commit which added forceset::motionActions.


I think it should be angular.element(child).scope()

I have the same issue on line 519 (TypeError: child.scope is not a function)
itemIndex = $.inArray(child.scope()[this.expression.item], this.originalItems);
angular: 1.4.6, jquery: 2.1.4, your lib: 0.0.5

Temporary workaround is to ensure jQuery loads before Angular.


Advance version of simdjson to the latest.

Summary:
This is to include the https://github.com/simdjson/simdjson/pull/2189
The change will allow us to support incomplete json in json_extract.
Differential Revision: D57977853

CC: @rui-mo @FelixYBW

@PHILO-HE let's upgrade the version in vcpkg as well.


amazon/amazon-eks-gpu-node-1.26-v20240129 AMI does not allow GPU access with g3.8xlarge nodes

What happened: Our g3.8xlarge nodes recently started having issues. We have not made any explicit changes on our side and things were working fine until a few days ago but we use karpenter and default to the latest AMI available.
The nodes get attached to the cluster okay but our nvidia-device-plugin and dcgm-exporter daemonsets fail to run and other pods can't access GPUs either.
nvidia-device-plugin logs:
...
│ I0201 22:44:21.277485       1 main.go:256] Retreiving plugins.                                                                               │
│ W0201 22:44:21.277717       1 factory.go:31] No valid resources detected, creating a null CDI handler                                        │
│ I0201 22:44:21.277776       1 factory.go:107] Detected non-NVML platform: could not load NVML library: libnvidia-ml.so.1: cannot open shared │
│ I0201 22:44:21.277811       1 factory.go:107] Detected non-Tegra platform: /sys/devices/soc0/family file not found                           │
│ E0201 22:44:21.277824       1 factory.go:115] Incompatible platform detected                                                                 │
│ E0201 22:44:21.277828       1 factory.go:116] If this is a GPU node, did you configure the NVIDIA Container Toolkit?                         │
│ E0201 22:44:21.277832       1 factory.go:117] You can check the prerequisites at: https://github.com/NVIDIA/k8s-device-plugin#prerequisites  │
│ E0201 22:44:21.277836       1 factory.go:118] You can learn how to set the runtime at: https://github.com/NVIDIA/k8s-device-plugin#quick-sta │
│ E0201 22:44:21.277840       1 factory.go:119] If this is not a GPU node, you should set up a toleration or nodeSelector to only deploy this  │
│ E0201 22:44:21.291477       1 main.go:123] error starting plugins: error creating plugin manager: unable to create plugin manager: platform  │

Reverting to amazon/amazon-eks-gpu-node-1.26-v20231230 fixes the problem. I have not tried the versions between these two, but based on the timing of the issue appearing I am reasonably confident the issue appeared in v20240129 or potentially v20240117.
What you expected to happen: We should be able to run the nvidia daemonsets and pods requiring GPU access as before.
How to reproduce it: Presumably launch a g3.8xlarge node with the amazon/amazon-eks-gpu-node-1.26-v20240129 AMI and try deploying a pod which requires GPU access, but I have not tried reproducing outside of our current context.
Anything else we need to know?:
Environment:

AWS Region: us-west-2
Instance Type(s): g3.8xlarge
EKS Platform version: eks.11
Kubernetes version: 1.26
AMI Version: amazon/amazon-eks-gpu-node-1.26-v20240129
Kernel (e.g. uname -a): ?
Release information (run cat /etc/eks/release on a node): ?

@knordstrom-muon this should be fixed in the latest AMI release, v20240202.

@knordstrom-muon this should be fixed in the latest AMI release, v20240202.

Hi @cartermckinnon, thank you very much!


podman pull randomly produces panic runtime error

Is this a BUG REPORT or FEATURE REQUEST?:
[//]: # kind bug
Description
In OpenStack CI, we replaced Docker by Podman, and we now see random runtime error when running podman pull.
Steps to reproduce the issue:
It is hard to reproduce but we see it on a node that is short on memory, pulling large images.
Describe the results you received:
    "panic: runtime error: invalid memory address or nil pointer dereference",
    "[signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0xc46e67]",
    "goroutine 1 [running]:",
    "github.com/containers/libpod/vendor/github.com/containers/image/storage.(*storageImageDestination).Commit(0xc42045c1c0, 0x13eee40, 0xc420034140, 0x0, 0x0)",
    "\t/builddir/build/BUILD/libpod-6e1aeb06f86bfed7045be19c8e8b09c1bf5ba55f/_build/src/github.com/containers/libpod/vendor/github.com/containers/image/storage/storage_image.go:601 +0x407",
    "github.com/containers/libpod/vendor/github.com/containers/image/copy.Image(0x13eee40, 0xc420034140, 0xc42042a940, 0x13fa040, 0xc42013c780, 0x13fa340, 0xc4204201a0, 0xc42013c9c0, 0xc4200fc000, 0x1dca, ...)",
    "\t/builddir/build/BUILD/libpod-6e1aeb06f86bfed7045be19c8e8b09c1bf5ba55f/_build/src/github.com/containers/libpod/vendor/github.com/containers/image/copy/copy.go:178 +0x59e",
    "github.com/containers/libpod/libpod/image.(*Runtime).doPullImage(0xc4201d0980, 0x13eee40, 0xc420034140, 0xc420330500, 0xc420258810, 0x1, 0x1, 0x0, 0x0, 0x0, ...)",
    "\t/builddir/build/BUILD/libpod-6e1aeb06f86bfed7045be19c8e8b09c1bf5ba55f/_build/src/github.com/containers/libpod/libpod/image/pull.go:258 +0x333",
    "github.com/containers/libpod/libpod/image.(*Runtime).pullImageFromHeuristicSource(0xc4201d0980, 0x13eee40, 0xc420034140, 0x7ffed5b927e4, 0x5f, 0x13dd4a0, 0xc42000e020, 0x0, 0x0, 0x0, ...)",
    "\t/builddir/build/BUILD/libpod-6e1aeb06f86bfed7045be19c8e8b09c1bf5ba55f/_build/src/github.com/containers/libpod/libpod/image/pull.go:212 +0x1e0",
    "github.com/containers/libpod/libpod/image.(*Runtime).New(0xc4201d0980, 0x13eee40, 0xc420034140, 0x7ffed5b927e4, 0x5f, 0x0, 0x0, 0x0, 0x0, 0x13dd4a0, ...)",
    "\t/builddir/build/BUILD/libpod-6e1aeb06f86bfed7045be19c8e8b09c1bf5ba55f/_build/src/github.com/containers/libpod/libpod/image/image.go:148 +0x1c1",
    "main.pullCmd(0xc4201266e0, 0x0, 0x0)",
    "\t/builddir/build/BUILD/libpod-6e1aeb06f86bfed7045be19c8e8b09c1bf5ba55f/_build/src/github.com/containers/libpod/cmd/podman/pull.go:128 +0x825",
    "github.com/containers/libpod/vendor/github.com/urfave/cli.HandleAction(0x10efc00, 0x13381d0, 0xc4201266e0, 0x0, 0xc4202ba480)",
    "\t/builddir/build/BUILD/libpod-6e1aeb06f86bfed7045be19c8e8b09c1bf5ba55f/_build/src/github.com/containers/libpod/vendor/github.com/urfave/cli/app.go:501 +0xc8",
    "github.com/containers/libpod/vendor/github.com/urfave/cli.Command.Run(0x12a8812, 0x4, 0x0, 0x0, 0x0, 0x0, 0x0, 0x12cb595, 0x1d, 0x0, ...)",
    "\t/builddir/build/BUILD/libpod-6e1aeb06f86bfed7045be19c8e8b09c1bf5ba55f/_build/src/github.com/containers/libpod/vendor/github.com/urfave/cli/command.go:165 +0x47d",
    "github.com/containers/libpod/vendor/github.com/urfave/cli.(*App).Run(0xc42018ea80, 0xc420030090, 0x3, 0x3, 0x0, 0x0)",
    "\t/builddir/build/BUILD/libpod-6e1aeb06f86bfed7045be19c8e8b09c1bf5ba55f/_build/src/github.com/containers/libpod/vendor/github.com/urfave/cli/app.go:259 +0x6e8",
    "main.main()",
    "\t/builddir/build/BUILD/libpod-6e1aeb06f86bfed7045be19c8e8b09c1bf5ba55f/_build/src/github.com/containers/libpod/cmd/podman/main.go:263 +0x1816",
    "2018-10-30 20:06:20,502 WARNING: 9470 -- retrying pulling image: <IP_ADDRESS>:8787/tripleomaster/centos-binary-ironic-api:current-tripleo-updated-20181030192232",
    "2018-10-30 20:06:20,874 WARNING: 9469 -- podman pull failed: Trying to pull <IP_ADDRESS>:8787/tripleomaster/centos-binary-heat-api:current-tripleo-updated-20181030192232...Getting image source signatures",

Describe the results you expected:
Podman pull should work.
Additional information you deem important (e.g. issue happens only occasionally):
dstat output:
http://logs.openstack.org/58/609858/6/gate/tripleo-ci-centos-7-containers-multinode/27bedd3/logs/undercloud/var/log/extra/dstat.html.gz
See at 20:06 when the pull fails.
Output of podman version:
podman-<IP_ADDRESS>-2.git6e1aeb0.el7.x86_64

Output of podman info:
host:
  BuildahVersion: 1.5-dev
  Conmon:
    package: podman-<IP_ADDRESS>-2.git6e1aeb0.el7.x86_64
    path: /usr/libexec/podman/conmon
    version: 'conmon version 1.12.0, commit: 097cf71375bd18454d1c48b9fdf8ccff2ed995f8-dirty'
  Distribution:
    distribution: '"centos"'
    version: "7"
  MemFree: 576225280
  MemTotal:<PHONE_NUMBER>
  OCIRuntime:
    package: runc-1.0.0-54.dev.git2abd837.el7.x86_64
    path: /usr/bin/runc
    version: 'runc version spec: 1.0.0'
  SwapFree:<PHONE_NUMBER>
  SwapTotal:<PHONE_NUMBER>
  arch: amd64
  cpus: 8
  hostname: undercloud.localdomain
  kernel: 3.10.0-862.14.4.el7.x86_64
  os: linux
  uptime: 1h 5m 46.27s (Approximately 0.04 days)
insecure registries:
  registries:
  - <IP_ADDRESS>:8787
  - <IP_ADDRESS>:8787
registries:
  registries:
  - docker.io
  - registry.fedoraproject.org
  - quay.io
  - registry.access.redhat.com
  - registry.centos.org
store:
  ContainerStore:
    number: 1
  GraphDriverName: overlay
  GraphOptions:
  - overlay.override_kernel_check=true
  GraphRoot: /var/lib/containers/storage
  GraphStatus:
    Backing Filesystem: extfs
    Native Overlay Diff: "true"
    Supports d_type: "true"
  ImageStore:
    number: 19
  RunRoot: /var/run/containers/storage

Additional environment details (AWS, VirtualBox, physical, etc.):
Logs of the failure:
http://logs.openstack.org/58/609858/6/gate/tripleo-ci-centos-7-containers-multinode/27bedd3/logs/undercloud/home/zuul/install-undercloud.log.txt.gz

@mtrmac Looking at this one, it looks like it's happening in c/image code
Per discussion in IRC, the node is under memory pressure - possibly an OOM somewhere?

@mheon  I don't see any OOM in journal log: http://logs.openstack.org/58/609858/6/gate/tripleo-ci-centos-7-containers-multinode/27bedd3/logs/undercloud/var/log/journal.txt.gz

AFAICS this is https://github.com/containers/image/blob/4b6d9cf918c1e79a605265568c93cb35185ad25d/storage/storage_image.go#L597-L601 : if a layer already exists locally, PutLayer returns (nil, _, storage.ErrDuplicateID).
@nalind Should the code just call store.Layer to look up the layer by the ID in that case?

@mtrmac fix should be https://github.com/containers/storage/pull/234 right?

@mtrmac fix should be containers/storage#234 right?

Sure, that looks even more efficient.

@mheon let me know if I'm doing wrong but I think we can close this one since https://github.com/containers/storage/pull/234 seems to be the fix. If yes, feel free to close. Thanks


Design for Blog Posts

* Draft *
The following are the possible to-dos in the Blog Post section of the webpage.

[x] Add separate Route for Blogs
[x] Design for Blog Posts Page
Using Jekyll's site builder to create .html pages for the blogs directly from .md files
[x] ~Allow creating Blog Posts directly on the web - application (Need to consider the feasibility)~
Won't implement. As the page belongs only to the author, there is no point in adding this functionality (as it requires implementing authentication features also so that no one else edits the page)

Closed.
#05301d implements it


Theme of Leader Board

Please assign me this issue I would work on making the theme of the leader Board matching with the rubik cube game.
I will work as a contributor of GSSOC'2024.

Hey @Dev-tanay  please assign me this issue. I will over the same issue creating a box around the leaderboard and all other things required to make the page look better.
I want to contribute under GSSOC'2024.