text:
More info in the Opacity of the WebView section

I do not see the scanner open up when the method is fired. I think this is because the webview is blocking it, because I can see that background: 'transparent'; is applied but I guess it's not enough. I have tried applying background: 'transparent'; to other layers, like ion-app and ion-content, to no avail.
Any tips or examples of other plugins getting the webview transparent?
I am trying to use this in an Ionic Capacitor app. The scanner doesn't show up on Android or iOS.

I got it to work by adding:
Android, on the body tag:
opacity: 0;
background: none;
iOS, on the html tag:
opacity: 0;

Thanks for sharing!

I got it to work by adding:
Android, on the body tag:
opacity: 0;
background: none;
iOS, on the html tag:
opacity: 0;

If the root Html tag is set to "opacity: 0", then how can we implement custom UI on camera view?

@lewdea Fair point. Changing the opacity should not be necessary. Most of the time you should just change the background of one of more divs to none. You can try opening up the app with chrome://inspect/#devices for example and inspect every div (top to bottom) to hide their background.

@lewdea Good point. Were you able to get it working without using the opacity? I would like to utilize custom UI on the camera view so I guess I'll have to figure something else out.
@tafelnl I tried putting transparent on multiple levels in an Ionic app and nothing seemed to make the camera view show up, but I will try to play around with it some more.

What you could do to discover what divs are responsible for it, is the following:
Inspect your webapp in your browser. Add some very noticeable background color to . Then delete the most upper root div and see if you can see the background color of . You do? Nice. Undo the deletion and remove the child of that div. Etc etc. This way you can gradually debug and discover what divs are responsible for overlaying the barcode scanner.

@Jacobra93   I got it working by setting body tag background to transparent too.   There is no need to set every element's style. My app is built with ionic-vue and capacitor.
BarcodeScanner.hideBackground(); document.body.style.background = "transparent"; result.value = await BarcodeScanner.startScan();

What you could do to discover what divs are responsible for it, is the following:
Inspect your webapp in your browser. Add some very noticeable background color to . Then delete the most upper root div and see if you can see the background color of . You do? Nice. Undo the deletion and remove the child of that div. Etc etc. This way you can gradually debug and discover what divs are responsible for overlaying the barcode scanner.

I got the IonTabs component is hiding it, so, how can i handle it? Also, if we want to create a custom UI, how can we do that?

You should probably use the native Ionic way of hiding such components (which I do not know anything about unfortunately). You could also try and hide it with JavaScript.
Custom UI can be created in any way you like. An example can be found here: https://github.com/capacitor-community/barcode-scanner/tree/main/examples/scan-area-layout

@tafelnl is there no other way to do this without handling background by ourselves? cardIo scanner put the camera over the browser markup as far as i could understand.

I am not sure what you are willing to accomplish. Your screenvideo looks good to me. Could you elaborate?

Every time i have to reload the app, the scanner screen is showed, it must not be like that; but when i open the scanner, well, i couldn't handle the IonTabs component opacity yet.

I am trying my best to understand @SalahAdDin . But I am still not sure what you mean. What exactly do you mean by reloading? And what exactly happens that you think should not happen?

I made my template like this:

Kameranızı bir barkoda doğrultun

.scanner-ui has display: none by default.
In React i get both one and i switch them when it is required.
Thanks.

@lewdea I am having a similar issue with vuejs, do you mind posting a snippet?

Thanks @lewdea  I tried this based on your idea above and it essentially worked
const startScan = async () => {
        document.body.style.opacity="0.2";
      document.body.style.background = "transparent";

       BarcodeScanner.hideBackground(); // make background of WebView transparent

      const result = await BarcodeScanner.startScan(); // start scanning and wait for a result

      // if the result has content
      if (result.hasContent) {
          document.body.style.background = "";
          document.body.style.opacity="1";
        console.log(result.content); // log the raw scanned content
      }
    }

@SalahAdDin did you succeed with this plugin and your design?
Our app has a background, and as other posters that meant I needed the background='transparent' and opacity
I would have liked to have just a portion of the screen with the camera...
Its OK, client doesn't require it, but I just had a vision :)

We handle it by changing the body display attribute while the scanner is on.

For someone still wondering how to achieve that on an ionic app:
There should be a file ionicapp/src/theme/variables.css. Here you could set the background to transparent on the items .md body { and .ios body {. For example:

The opacity is set by the last two digits on an hexadecimal color. So using 00 at the end will be full transparent.

on ionic, insted of transparent I put a display none on body, like this on global styles:
body.scanner-active {
--background: transparent;
--ion-background-color: transparent;
display: none;
}
works, but how to get out? theres no cancel button and the slide to left dont work either

@betosimo with display:none you basically remove/hide your entire app. A cancel button is then also hidden, and swipe gesture probably doesn't work because there is nothing to swipe on.
What you would have to do is make everything transparent except your cancel/back button.

on ionic, insted of transparent I put a display none on body, like this on global styles: body.scanner-active { --background: transparent; --ion-background-color: transparent; display: none; } works, but how to get out? theres no cancel button and the slide to left dont work either

this worked for me too :)
What you can do is:

if the scan is successful, you set the background back to its original value --> this is what I do
you can have a timeout to stop the scan if the scan is not successful for some seconds.

authors: Jacobra93 JanMisker SalahAdDin betosimo lewdea renatojobal selcukbeyhan tafelnl tpharaoh

repo: capacitor-community/barcode-scanner


text:
Undefined symbol: type metadata for CapacitorCommunitySqlite.JsonView

Describe the bug
After upgrading to version 3.2.2 from 3.2.0, I am getting the following error while building the IOS app in Xcode
Undefined symbols for architecture arm64:
  "type metadata for CapacitorCommunitySqlite.JsonView", referenced from:
      CapacitorCommunitySqlite.Database.importFromJson(jsonSQLite: CapacitorCommunitySqlite.JsonSQLite) throws -> [Swift.String : Swift.Int] in Database.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

OS: [IOS]

EDIT
I am on Capacitor 3.2.3 and plugin version 3.2.0 does not have this error.

@t4tapas thanks for using the plug-in after updating to 3.2.2 did you remove the iOS folder from your app and after npm run build do npx cap add ios and after npx cap copy. Tell me if after having done this you still have the error. Which framework are you using?

@jepiqueau , I am using Ionic 5 with Angular. I will do the removing the iOS folder test and let you know.

@t4tapas Any news, i updated https://github.com/jepiqueau/angular-sqlite-app-starter to @capacitor/core@3.2.2 as well as @capacitor/android, @capacitor/ios and @capacitor-community/sqlite@3.2.2 and i do not have any building issues.

@t4tapas Any progress on your side. if no news from you i will close the issue

@t4tapas Not having news from you, i assume it is solved so i close the issue. Feel free to re-opens it in case

source: gharchive/issue

repo: capacitor-community/sqlite

license: MIT

license_type: permissive

license_source: github-api


text:
KeyError: 'num_layers'

After updating to model52 and trying to launch on master (afdb864713a0200ea403fcbd60387e7f2789f689) I get the following error.
$ ./start_bayou.sh
/build_scripts/out$ 2017-10-19 18:13:57.573:INFO::main: Logging initialized @12205ms to org.eclipse.jetty.util.log.StdErrLog
2017-10-19 18:13:58.237:INFO:oejs.Server:main: jetty-9.4.z-SNAPSHOT
2017-10-19 18:13:58.671:INFO:oejs.AbstractConnector:main: Started ServerConnector@75c072cb{HTTP/1.1,[http/1.1]}{0.0.0.0:8080}
2017-10-19 18:13:58.672:INFO:oejs.Server:main: Started @13305ms
2017-10-19 18:14:17.958477: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.1 instructions, but these are available on your machine and could speed up CPU computations.
2017-10-19 18:14:17.958537: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.2 instructions, but these are available on your machine and could speed up CPU computations.
2017-10-19 18:14:17.958555: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX instructions, but these are available on your machine and could speed up CPU computations.
===================================
    Loading Model. Please Wait.
===================================
Traceback (most recent call last):
  File "/home/barnett/workDev/bayou/repos/github/capergroup/bayou/master/tool_files/build_scripts/out/python/bayou/server/ast_server.py", line 176, in <module>
    bp = BayesianPredictor(args.save_dir, sess)  # create a predictor that can generates ASTs from evidence
  File "/home/barnett/workDev/bayou/repos/github/capergroup/bayou/master/tool_files/build_scripts/out/python/bayou/experiments/low_level_evidences/infer.py", line 39, in __init__
    config = read_config(json.load(f), chars_vocab=True)
  File "/home/barnett/workDev/bayou/repos/github/capergroup/bayou/master/tool_files/build_scripts/out/python/bayou/experiments/low_level_evidences/utils.py", line 59, in read_config
    config.evidence = bayou.experiments.low_level_evidences.evidence.Evidence.read_config(js['evidence'], chars_vocab)
  File "/home/barnett/workDev/bayou/repos/github/capergroup/bayou/master/tool_files/build_scripts/out/python/bayou/experiments/low_level_evidences/evidence.py", line 51, in read_config
    e.init_config(evidence, chars_vocab)
  File "/home/barnett/workDev/bayou/repos/github/capergroup/bayou/master/tool_files/build_scripts/out/python/bayou/experiments/low_level_evidences/evidence.py", line 30, in init_config
    self.__setattr__(attr, evidence[attr])
KeyError: 'num_layers'

I'm closing this because it's just that the model file is outdated. The newly released model should not have this problem. Do re-open this if it still persists.

authors: rmbarnett-rice vijay-murali

repo: capergroup/bayou

license_source: bigquery


text:
Can't add anything to dashboard.

Installed Mongo
Downloaded Hygieia V1.2.0
Successfully ran mvn clean compile install package
Created application.properties in corresponding config folders for Hudson Collector and Subversion Collector
Run both hudson and subversion collector with java -jar
Run gulp serve in the UI folder
Everything appears to come up ok
I see data has been created in mongo
I can add a dashboard in the UI
But, I can not succesffuly add any widgets via the UI.
For subversion the dialog box comes up and and can select subversion and provide a url, but it will not save.
Debugging the JS I see
    function submitForm(valid, url, repoType) {
        ctrl.submitted = true;
        if (valid && ctrl.collectors.length) {

ctrl.collectors.length is 0
For the build widget, it comes up but there are no options avaible in the "Select a build job" drop down.
I've reviewed the documentation several time, but I feel like I'm missing some simple step.
Thanks,
Tony Perkins
Fidelity Investments

Tony,
Great progress looks like you are almost there  , can you make sure the collectors are running against your Hudson/Jenkins instance and same for Subversion, the collectors help populate the drop downs in the screen shot you have sent .

The collector seems to be running ok. If found the jobs initially.

I see data in mongo.

Not sure why it says "enabled":false tho

You can now select the build job in the Build Widget config. This will turn the HudsonCollectorItem's enabled (your screen shot above) to true.
The idea is this: Gather all the build job names and URLs so that the drop down can be populated- but don't collect build data yet. Collect build data only for the jobs that have been configured on dashboards.
Let us know how it goes.

This is where the problem is. Even though I see the collector running and the data in mongo, but the drop down in the widget still does not populate.

Do you get a json back from this: localhost:8080/api/dashboard?

Yep
[{"id":"55cb3dab5b6660b9e4bedf21","template":"capone","title":"My first dashboard","application":{"name":"Jumbo","components":[{"id":"55cb3dab5b6660b9e4bedf20","name":"Jumbo","collectorItems":{}}]},"widgets":[],"owner":"admin"}]

I am on gitter now - join me on gitter - (badge right below the Hygieia logo on GH)

mmm I think I found something ...
In API mongoconfig the mongo credentials are hardcoded:
databaseName = properties.getProperty("dbname", "dashboard");
host = properties.getProperty("dbhost", "localhost");
port = Integer.parseInt( properties.getProperty("dbport", "27017") );
userName = properties.getProperty("dbusername", "");
password = properties.getProperty("dbpassword", "").toCharArray();
System.out.println("dbusername=" + userName + ", password=" + password.toString());
I used 'dashboarddb' as database as I followed the api REAME example [dashboarddb].

@asperkins reported he had two databases in Mongo: dashboard and dashboarddb.
He removed the dashboard database things worked. I will check what created the dashboard database.

Actually I changed my collectors to use dashboard instead of dashboarddb. I think the api component may not be reading the properties file.

I got the Github collector and widget working.
The api component uses hard-coded properties in the  com.capitalone.dashboard.config.MongoConfig. So, I changed application.properties of the Github collector so it uses the same database ('dashboard') as MongoConfig. During startup, the collector is registered in the dashboard collection. Then I could add a Github widget in the UI.
It would help if there is a simple step-by-step tutorial which shows all the steps needed from building to create a new widget. The dashboard.properties example  '[dashboarddb]' in the README in API module put me on the wrong foot.

agreed - we need a better getting started guide

I am facing problem with my Github collector and the data it should show on the dashboard.
Please see it once -

Now  I have tried to add repo link to get a representation on the Dashboard UI, but I am not able -

In addition to that, The drop down boxes are empty ,, help me out please

How to get this github collector working ?

Unable to configure my github collector:
When I tried to enter my URL and click "SAVE", nothing happens.
I changed my db to "dashboard" and used the same in the collector.properties file and tried again but didn't work.  This is my api contents. Please help with your inputs in configuring the same.

Hurray.. I was able to configure the GIT dashboard.  This is what I did:

Switched to "dashboard" db.
Created the user in "dashboard" db.
Changed my application.properties file and dashboard.properties file to point to "dashboard" db.
Ran my API , gulp serve, and my collector again.
Deleted my cookies and browsing history and temp files and logged into my dashboard.
Configured the scm widget and it worked.

The tutorial should be updated with proper steps. I was going round and round with API, collector and DB for the past 2 days. Thank you all for your help !!! :) :) :) 👍

authors: admiresail amitmawkin asperkins golokeshpatra45 jdamick mgijsbertihodenpijl tabladrum

repo: capitalone/Hygieia


text:
[Bug]: Implement scrollable Tab Header

Components Version
0.9.1
Which package type are you using?
Bundled for ESM
What type of bug is this?
Rendering Error
Test Case/Reproduction
No response
Description
Issue reported on project leveraging the Tab related components.
By default when using the tab related components in this case using a tab-group with nested tabs this will generate tab headers.
When the amount of tabs causes some of the tab headers to be rendered off-screen we require the ability to scroll the specific tab header into view so that tab can be selected.
Code of Conduct

[X] I agree to follow this project's Code of Conduct
[X] I have searched for existing issues and to the best of my knowledge this is not a duplicate

Suggested solution is to add the following css to the tab-bar class in the TabGroup component.
overflow-x: auto
overflow-y: hidden

repo: capitec/omni-components


text:
Tree view can not deselect items

Tree view
For tree view multiselect, after selecting an item you cant deselect it

Unfortunately multiSelect is marked as Experimental and it may be removed in next major release. Our current implementation was based off react, but we can probably toggle the node selection every click 🤔


text:
ComposedModal's onKeyDown does not work

Currently working on accessibility issues on ICP.  We are not able to use the esc key to quickly close the ComposedModal.

I see that there is logic to listen for an esc key press and set the open state to false.
https://github.com/carbon-design-system/carbon-components-react/blob/master/src/components/ComposedModal/ComposedModal.js#L22
However, I think the div that is being returned by ComposedModal needs a tabIndex='0' in order to be able to listen to keyboard events in React.
https://github.com/carbon-design-system/carbon-components-react/blob/master/src/components/ComposedModal/ComposedModal.js#L75

I came across these two sources that mentioned tabIndex being required to use onKeyDown:

https://stackoverflow.com/questions/43503964/onkeydown-event-not-working-on-divs-in-react?answertab=active#tab-top

https://drkbl.com/div-not-response-to-keyboard-event-without-tabindex/

Hi @showeimer! 👋 Thanks so much for taking the time to make this issue! Will definitely investigate further to see what the root cause is here. Will also accept any/all PRs that help to address this, in the meantime!

authors: joshblack showeimer


text:
error: i use webpack,but see this error

when i try
  import { Button  } from "carbon-components-svelte/";
i see this error:
ERROR in ./node_modules/carbon-components-svelte/src/ComboBox/ComboBox.svelte 1034:6
Module parse failed: Unexpected token (1034:6)
File was processed with these loaders:

./node_modules/svelte-loader/index.js
You may need an additional loader to handle the result of these loaders.
|               $$invalidate(1, open = false);
|               $$invalidate(22, inputValue = "");
| >               ref?.focus();
|       }
|
@ ./node_modules/carbon-components-svelte/src/ComboBox/index.js 1:0-56 1:0-56
@ ./node_modules/carbon-components-svelte/src/index.js
@ ./src/shared/Sidebar.svelte
@ ./src/App.svelte
@ ./src/main.js
@ multi ./src/main.js

ERROR in ./node_modules/carbon-components-svelte/src/ContextMenu/ContextMenu.svelte 217:33
Module parse failed: Unexpected token (217:33)
File was processed with these loaders:

./node_modules/svelte-loader/index.js
You may need an additional loader to handle the result of these loaders.
|                       if (target != null) {
|                               if (Array.isArray(target)) {
| >                                       target.forEach(node => node?.removeEventListener("contextmenu", openMenu));
|                               } else {
|                                       target.removeEventListener("contextmenu", openMenu);
@ ./node_modules/carbon-components-svelte/src/ContextMenu/index.js 1:0-62 1:0-62
@ ./node_modules/carbon-components-svelte/src/index.js
@ ./src/shared/Sidebar.svelte
@ ./src/App.svelte
@ ./src/main.js
@ multi ./src/main.js

but when i use :
import Button  from "carbon-components-svelte/src/Button/Button.svelte";
it works

What Svelte version are you using?
The optional chaining operator is supported since Svelte version 3.24.

this is my conig:
"@babel/core": "^7.13.10",
"@babel/preset-env": "^7.13.12",
"@storybook/addon-actions": "^6.1.21",
"@storybook/addon-essentials": "^6.1.21",
"@storybook/addon-links": "^6.1.21",
"@storybook/preset-scss": "^1.0.3",
"@storybook/svelte": "^6.1.21",
"@testing-library/jest-dom": "^5.11.10",
"@testing-library/svelte": "^3.0.3",
"@testing-library/user-event": "^12.8.3",
"@types/file-saver": "^2.0.1",
"@types/jest": "^26.0.22",
"appwrite": "^2.0.0",
"babel-jest": "^26.6.3",
"babel-loader": "^8.2.2",
"carbon-components-svelte": "^0.50.1",
"carbon-icons-svelte": "^10.38.0",
"carbon-preprocess-svelte": "^0.6.0",
"cross-env": "^7.0.3",
"css-loader": "^4.3.0",
"date-fns": "^2.19.0",
"electron": "^11.4.1",
"electron-builder": "^22.13.1",
"electron-winstaller": "^5.0.0",
"eslint": "^7.22.0",
"eslint-plugin-svelte3": "^2.7.3",
"file-loader": "^6.2.0",
"file-saver": "^2.0.5",
"husky": "^4.3.8",
"jest": "^26.6.3",
"jest-transform-svelte": "^2.1.1",
"license-checker": "^25.0.1",
"mini-css-extract-plugin": "^0.11.3",
"normalize.css": "^8.0.1",
"npm-run-all": "^4.1.5",
"prettier": "^2.2.1",
"prettier-plugin-svelte": "^1.4.2",
"sass": "^1.32.8",
"sass-loader": "^10.1.1",
"style-loader": "^1.3.0",
"svelte": "^3.35.0",
"svelte-htm": "^1.1.1",
"svelte-i18n": "^3.3.7",
"svelte-jester": "^1.3.2",
"svelte-loader": "^3.1.2",
"svelte-preprocess": "^4.6.9",
"svelte-spa-router": "^3.1.0",
"webpack": "^4.46.0",
"webpack-cli": "^3.3.12",
"webpack-dev-server": "^3.11.2",
"workbox-webpack-plugin": "^5.1.4",
"workbox-window": "^5.1.4"

i imporve wepack4 to  5,
import statement have not error,but when i use the component,it tip me:
Uncaught (in promise) TypeError: parent_component is undefined

There's a working webpack 5 example set-up in this repo. If you're still seeing this error, please provide a minimal repro and I'd be happy to investigate.

authors: jeasoncc metonym


text:
Website: [Lead space search] component guidance content

@RobertaJHahn commented on Tue Apr 27 2021
Objective
Provide Carbon for IBM.com adopters the most up-to-date best practices and guidance they need to adopt Carbon for IBM.com.

Task types

[x] Fix something on the website
[x] Update content on the website
[x] Add new Content on the website to an existing website page
[x] Craft and publish new content on a new website page

Get started

[ ] For existing website page update - navigate to the existing page on the live website, click on the Edit this page on GitHub text link located in the bottom left corner of the website page to get started.
[ ] For new website content crafting - navigate to the How to publish component usage documentation section on the Contribution /Components section and use the markdown template to get started.
[ ] For new website page design and image creation - download the Sketch work file here to get started.
[ ] For new or existing thumbnail image update on the Components overview page - use the master Sketch work file here to get started.

🌟Acceptance criteria (The meaning of "Done")

[ ] Updates or new Content is showing up on the live website.

Additional resources
➜ For general contribution - Please visit the Contributing page for information and process detail.
➜ For the website content publishing process - Please visit the Publishing process wiki page for detail.
➜ For how to create and submit PR - Please visit the Submitting a Pull Request section to learn more.
➜ For Markdown best practices - Please visit the Production guideline to learn more.
FAQ
How do I name the work file for website tasks?
Work files are named using the format: Name of the category + components/pattern/guideline + version.
Examples:
Components-Feature card block v1.0
Guidelines-Expressive theme v1.0
Help-Overview v1.0, etc.
How do I name an image file for a website page?
Images are named using the format: page name - section name - usage.file format
Examples:
masthead-beheavor-default.png
footer-variations-usecase 01.jpg
See detail around image requirements here.
Where do I save the work file for website tasks?
Please save all content publishing work files (box, markdowns link, or Sketch file) in the proper sub-folder under the ✍ Content + Design folder.
What are the general steps for the content task to go live on the website?
In general, for a new component website page, the tasks involve the following steps/items.

Content crafting (include images, if any) are reviewed by the DDS designers
Content crafting (include images, if any) are finalized
Content is published with markdowns, and PR is ready for review
PR reviewed and QA'd by Jenny
Update the Overview page component table list with the guideline name, link, description, and status when the Markdown is done.
QA'd by Jenny.
Web page preview is approved by Linda, Jeff, and Shixie.
PR merged by Jenny.
Content goes live on the website.

Questions and Support
Please reach out to @JennySanchez for a quick task or process walk-through or ask questions you may have related to this task.

This is waiting on development. Should be closed right now.

Done and approved. The page is here. It's not live, as it is waiting on development. As soon as dev makes it available, this page is merged.

But this should be closed as far as I'm concerned.

authors: DragosRistici JennySanchez


text:
Transposition of data attributes to support target analytics in web components

The problem
In order for Adobe Target Experiments to transmit information to Google Analytics, a series of html attributes have been created for the DBDM analytics code to identify elements modified by Adobe Target.
Example:
data-experimentid="12345"
data-dynamic-content="true"
data-driverintent="interactive"
data-driverformat="CF603"
data-driversource="target"
data-driverlocation="dds-leadspace__cta-0"
data-drivertype="TY702"
The solution
When placing these attributes on elements with href, need for these attributes to be transposed to the create html elements with the anchor
<dds-some-item href="https://www.google.com"
data-experimentid="12345"
data-dynamic-content="true"
data-driverintent="interactive"
data-driverformat="CF603"
data-driversource="target"
data-driverlocation="dds-leadspace__cta-0"
data-drivertype="TY702"

Should be transposed to:
<a href="https://www.google.com"
data-experimentid="12345"
data-dynamic-content="true"
data-driverintent="interactive"
data-driverformat="CF603"
data-driversource="target"
data-driverlocation="dds-leadspace__cta-0"
data-drivertype="TY702"

Additional Information

DDS will implement as a generic solution that will transpose all data attributes except autoid.
Tracking the data attributes is difficult for this team without this feature in place.

@leetsao Recommend attending the Engineering Office Hours.  The meeting takes place every Wednesday morning at 9 ET.  Here is a link to the meeting information:  https://ibm.ent.box.com/notes/799374147228

This was previously discussed in an office hours and I was asked to create this feature request.
I have time on the next office hours and we can continue to discuss there.

Lee TsaoSenior Solutions Architect, IBM IXe: @.: 248-470-6725

----- Original message -----From: "RobertaJHahn" @.>To: "carbon-design-system/carbon-for-ibm-dotcom" @.>Cc: "Lee Tsao" @.>, "Mention" @.***>Subject: [EXTERNAL] Re: [carbon-design-system/carbon-for-ibm-dotcom] Transposition of data attributes to support target analytics in web components (#6813)Date: Tue, Aug 10, 2021 9:41 AM      @leetsao Recommend attending the Engineering Office Hours. The meeting takes place every Wednesday morning at 9 ET. Here is a link to the meeting information: https://ibm.ent.box.com/notes/799374147228 — You are receiving this because    ZjQcmQRYFpfptBannerStart
This Message Is From an External Sender
This message came from outside your organization. ZjQcmQRYFpfptBannerEnd

@leetsao Recommend attending the Engineering Office Hours. The meeting takes place every Wednesday morning at 9 ET. Here is a link to the meeting information: https://ibm.ent.box.com/notes/799374147228
—You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub, or unsubscribe.Triage notifications on the go with GitHub Mobile for iOS or Android.

QA URL that is modified by Target: https://www.ibm.com/topics/edi-electronic-data-interchange?at_preview_token=lIs_-apTKomYU1rYN9Q8BQ&at_preview_index=1_1&at_preview_listed_activities_only=true

Will need to transpose for any anchors and cards. Example above would need to include this for dds-link-list-item-card, for example.

authors: RobertaJHahn jeffchew leetsao


text:
Library Sidenav visual error when scrollbar: always setting set

Description
Tell us more about the problem that you're running into. What did you see? What did you expect to
see?
When scrollbars are always visible, the inner navigation of the library sidenav looks askew

Steps to reproduce
Steps to reproduce
Example page: https://next.carbondesignsystem.com/libraries/carbon-react/latest
Mac - Go into "settings -> general -> show scroll bars" and set it to "always".

Fix should be to set this to overflow: auto instead of scroll

authors: francinelucca jdharvey-ibm

repo: carbon-design-system/carbon-platform


text:
Asset detail page always links to latest library version

Browser
No response
Description
Asset detail pages have a link with the version that takes you up to the library. That link should be version aware.
If you're viewing an asset with no specified version:
https://next.carbondesignsystem.com/assets/carbon-charts-angular/latest/area-simple
The version properly takes you to library with no version:
https://next.carbondesignsystem.com/assets/carbon-charts-angular
We should keep that as-is, but if we detect that there's a version in the URL:
https://next.carbondesignsystem.com/assets/carbon-charts-angular/v0.55.1/area-stacked
Then the version anchor should take you to that version:
https://next.carbondesignsystem.com/assets/carbon-charts-angular/v0.55.1
Potential solution
For that link, just remove the asset slug so if it has a specified version in the URL, it's still there.
Steps to reproduce

Go here https://next.carbondesignsystem.com/assets/carbon-charts-angular/v0.55.1/word-cloud
Click v0.55.1
It takes you latest which is v0.57.0 https://next.carbondesignsystem.com/assets/carbon-charts-angular

Expecting https://next.carbondesignsystem.com/assets/carbon-charts-angular/v0.55.1

Hey team! Please add your planning poker estimate with ZenHub @alisonjoseph @francinelucca


text:
Add nav data to library schema

Libraries need documentation pages that vary on a per-library basis. For example, some libraries have contribution guidance and Medium articles to highlight; other libraries have tutorials. This needs to happen through remote MDX pages, and the schema is how we can let the web application know what pages to link where in the side nav.
(1) In the shared schemas portion, create a navData entry: https://github.com/carbon-design-system/carbon-platform/blob/main/docs/resource-schemas.md#shared-schemas.
(2) The navData array should support two levels of navigation like:
navData:
  - title: A page
    path: '/a-page'
  - title: Another page
    items:
      - title: Sub page
        path: '/another-page/sub-page'
        hidden: true
      - title: Another sub page
        path: '/another-page/another-sub-page'

The navData array determines what MDX pages get rendered in the web app, as well as the link order in the side nav.
There's also a need for libraries to publish pages often in draft form that need to be live on the site but not linked to from the side nav. We could use a hidden key for that?
(3) Add navData as a library key and create a new version of the @carbon-platform/schema package.

Hey team! Please add your planning poker estimate with ZenHub @alisonjoseph @andreancardona @francinelucca


text:
🛑 mainnet - API is down

In d08aa19, mainnet - API (https://api.beta.explorer.cardano.org/api/v1/epochs) was down:

HTTP code: 0
Response time: 0 ms

Resolved: mainnet - API is back up in 7a3e3ff after 1 minute.

repo: cardano-foundation/cf-explorer-status


text:
Problem executing scripts APT::Update::Post-Invoke

Issue Description
When attempting to build the Docker image via Dockerfile, the following error is encountered upon running the command docker build --tag vcam_image .:
W: http://packages.ros.org/ros2/ubuntu/dists/jammy/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
E: Problem executing scripts APT::Update::Post-Invoke 'rm -f /var/cache/apt/archives/*.deb /var/cache/apt/archives/partial/*.deb /var/cache/apt/*.bin || true'
E: Sub-process returned an error code

The error is further narrowed to this:
One is unable to run apt-get update within Ubuntu 22.04 docker. The docker image pulled in this context is specifically ros:humble-ros-base-jammy.
Further investigation is required to further narrow down the source of this error.

Solution
The docker CLI tool I was using in my development was apparently outdated at ver 20.10.6.
To resolve this, simply upgrade docker (to at least >= 20.10.9) using apt-get:
sudo apt-get update
sudo apt-get upgrade docker

Reference: https://stackoverflow.com/a/72057185

On a side note, I have also encountered the following sub-issue when attempting to debug this one:
Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.

Apparently, Ubuntu 22.04 has transitioned from using /etc/apt/trusted.gpg to using individual .gpg files located in /etc/apt/trusted.gpg.d.
Reference: https://askubuntu.com/q/1407632
Solution
mv /etc/apt/trusted.gpg /etc/apt/trusted.gpg.d/


text:
Support rustls (instead of OpenSSL)

Hey! 🐻
For the context, I'm coming here from https://github.com/shuttle-hq/shuttle/issues/100
I don't know if it is possible to use rustls for cargo-generate but wanted to bring this issue to your attention.
Would it be feasible to support rustls?

Hey @orhun,
BTW very cool that you work now on shuttle!

Would it be feasible to support rustls?

The Question would be does git2 support rustls instead? Because cargo-generate pulls this very dependency to openssl from git2 as you can see here:
https://github.com/cargo-generate/cargo-generate/blob/b9f9b438e0b4d1cd8171da39fb897b583643e82d/Cargo.toml#L75

Hey Sven!

BTW very cool that you work now on shuttle!

Thank you! 🚀🚀🚀

The Question would be does git2 support rustls instead?

Ah I see, then I need to go one layer deeper.
⛏ https://github.com/rust-lang/git2-rs/issues/623
BTW are there plans to switch to gitoxide in the future?

For some features we use gitoxide already. E.g gitconfig parsing etc.
But I watch the progress on gitoxide and at some point I have high hopes to be able to switch over. So yes there are plans :)

Great news, so it is possible to get rid of OpenSSL in the feature, nice! 🐻

will close this for now, and keep the tracking issue #1037 instead.

authors: orhun sassman

repo: cargo-generate/cargo-generate


text:
Compiled PythonAPI on macOS fails to load in Python

Carla 0.9.10.1 on macOS 11 (Big Sur) using llvm@8 from homebrew
I was previously able to compile and use the 0.9.9 PythonAPI without any problems (apart from minor changes to the code and setup files). After getting 0.9.10.1 to build, I run into a symbol error when importing carla. The error trace is below. The library for osm2odr is built without issue. Any ideas?

import carla
Traceback (most recent call last):
File "", line 1, in
File "/Users/name/carla-0.9.10.1-pythonAPI/carla-0.9.10-py3.9-macosx-10.15-x86_64/carla/init.py", line 8, in
from .libcarla import *
ImportError: dlopen(/Users/name/carla-0.9.10.1-pythonAPI/carla-0.9.10-py3.9-macosx-10.15-x86_64/carla/libcarla.cpython-39-darwin.so, 2): Symbol not found: __ZN7osm2odr21ConvertOSMToOpenDRIVEENSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEENS_15OSM2ODRSettingsE
Referenced from: /Users/name/carla-0.9.10.1-pythonAPI/carla-0.9.10-py3.9-macosx-10.15-x86_64/carla/libcarla.cpython-39-darwin.so
Expected in: flat namespace
in /Users/name/carla-0.9.10.1-pythonAPI/carla-0.9.10-py3.9-macosx-10.15-x86_64/carla/libcarla.cpython-39-darwin.so

I had this problem and found that my extra_link_args in setup.py was missing the following:
os.path.join(pwd, 'dependencies/lib/libosm2odr.a'),
os.path.join(pwd, 'dependencies/lib/libxerces-c.a'),

I had this problem and found that my extra_link_args in setup.py was missing the following:
os.path.join(pwd, 'dependencies/lib/libosm2odr.a'),
os.path.join(pwd, 'dependencies/lib/libxerces-c.a'),

@wbridewell Thanks for your patience, are you still facing this issue?

I moved forward to 0.9.11 and with this and a few other changes was able to get the Python API working.

Carla 0.9.10.1 on macOS 11 (Big Sur) using llvm@8 from homebrew
I was previously able to compile and use the 0.9.9 PythonAPI without any problems (apart from minor changes to the code and setup files). After getting 0.9.10.1 to build, I run into a symbol error when importing carla. The error trace is below. The library for osm2odr is built without issue. Any ideas?

import carla
Traceback (most recent call last):
File "", line 1, in
File "/Users/name/carla-0.9.10.1-pythonAPI/carla-0.9.10-py3.9-macosx-10.15-x86_64/carla/init.py", line 8, in
from .libcarla import *
ImportError: dlopen(/Users/name/carla-0.9.10.1-pythonAPI/carla-0.9.10-py3.9-macosx-10.15-x86_64/carla/libcarla.cpython-39-darwin.so, 2): Symbol not found: __ZN7osm2odr21ConvertOSMToOpenDRIVEENSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEENS_15OSM2ODRSettingsE
Referenced from: /Users/name/carla-0.9.10.1-pythonAPI/carla-0.9.10-py3.9-macosx-10.15-x86_64/carla/libcarla.cpython-39-darwin.so
Expected in: flat namespace
in /Users/name/carla-0.9.10.1-pythonAPI/carla-0.9.10-py3.9-macosx-10.15-x86_64/carla/libcarla.cpython-39-darwin.so

Do you found the solution for this problem?

repo: carla-simulator/carla


text:
Absolute determinism for apply_control

I have noticed that Carla.Vehicle.apply_control and world.spawn_actor is not completely deterministic (even in Carla 9.11). For example, in synchronous mode, I run
Vehicle.apply_control(carla.VehicleControl(throttle=0.5, steer=0,brake=0))
For my first run I get the velocity vector/spawn coordinates
timestep 1:
'agent_x': [88.61997985839844], 'agent_y': [275.4779052734375], 'agent_z': [0.0015703010139986873]
'velocity_x': [2.9633368e-08], 'velocity_y': [-5.812376e-10]
timestep 2:
'agent_x': [88.61997985839844], 'agent_y': [275.4779052734375], 'agent_z': [0.0014941215049475431]
'velocity_x': [1.1473212e-08], 'velocity_y': [1.2927589e-09]
For my second run I get
timestep 1:
'agent_x': [88.61997985839844], 'agent_y': [275.4779052734375], 'agent_z': [0.001629047328606248]
'velocity_x': [1.93825e-09], 'velocity_y': [6.7664435e-10]
timestep 2:
'agent_x': [88.61997985839844], 'agent_y': [275.4779052734375], 'agent_z': [0.0015344810672104359]
'velocity_x': [-3.19796e-08], 'velocity_y': [2.3540284e-08]
For each run, the vehicle is spawned at the same position, but for some reason at different z coordinates. I am using a frame rate of 10hz, have set the weather to carla.WeatherParameters.ClearNoon with the same vehicle (model 3), the same map (Town 01), and reload the map every run.
Does Carla currently support absolute determinism for apply_control, or does this lie in the physics engine?
Note: I am using Vehicle.get_velocity() to read the velocity values.

Hi @Stephanehk , I know it is an old issue, but still... what was your conclusion on this issue? I'm also experiencing similar problems with determinism, when applying control. The thing i found out that usually takes longer for the vehicle to respond to applied control only the first time after the spawning. I think it has to do something with physics engine, as well as some other issue which I'm trying to figure it out.
Thanks


text:
CarlaUE4.sh crash without logs in docker

CARLA version: 0.9.13
Platform/OS: Ubuntu 18.04
Problem you have experienced: CarlaUE4.sh crash without logs
What you expected to happen: Find CarlaUE4 logs to debug the reason
Steps to reproduce:
I'm trying to run Carla in a customized docker image with off-render mode, the required dependencies are already installed, but the CarlaUE4.sh crashs without logs, so I don't have any clue about the reason.
> ./CarlaUE4.sh -RenderOffScreen
4.26.2-0+++UE4+Release-4.26 522 0
Disabling core dumps.
> nvidia-smi
Tue Jan 10 11:49:01 2023
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 515.43.04    Driver Version: 515.43.04    CUDA Version: 11.7     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  NVIDIA GeForce ...  On   | 00000000:01:00.0  On |                  N/A |
| N/A   44C    P8     7W /  N/A |    812MiB /  6144MiB |     12%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
+-----------------------------------------------------------------------------+

Also tried methods in https://github.com/carla-simulator/carla/issues/3834, doesn't work.

still having the same issue using a 20.04 container.

authors: Pyrestone YaoWang-Pony


text:
Carla UE5 build failed due to clang 16 compatibility issue

Hello,
I am trying to build the Carla version with Unreal Engine 5 from the official docs given here
I am getting clang cannot find /lib64/ld-linux-x86-64.so.2 error, I have tried on two different linux machines and encountering the same error.
My machine has 64 GB RAM and 24 GB VRAM so I don't think it's an issue. I tried reinstalling system clang from the git (to version 20.0) and it still gives error. I figured the error lies from the fact that clang 16.0.6 from UE5 might be having error with the Ubuntu version 24.04 during compilation (or boost) of carla since the error comes when running ./Setup.sh AND I can see

**********  SUCCESS ****************
Setup successful.

from UE5 setup script. It's the configuration line in carla setup script which gives this error:
retry --until=success --times=10 -- cmake -G Ninja -S . -B Build \
    --toolchain=$PWD/CMake/LinuxToolchain.cmake \
    -DLAUNCH_ARGS="-prefernvidia" \
    -DCMAKE_BUILD_TYPE=Release \
    -DENABLE_ROS2=ON \
    -DBUILD_CARLA_UNREAL=ON \
    -DCARLA_UNREAL_ENGINE_PATH=$CARLA_UNREAL_ENGINE_PATH

The error is as follows:
CMake Error at /opt/cmake-3.28.3-linux-x86_64/share/cmake-3.28/Modules/CMakeTestCCompiler.cmake:67 (message):
  The C compiler

    "/home/jeromepatel/Documents/CVL/UnrealEngine5_carla/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v22_clang-16.0.6-centos7/x86_64-unknown-linux-gnu/bin/clang"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: '/home/jeromepatel/Documents/CVL/CarlaUE5/Build/CMakeFiles/CMakeScratch/TryCompile-tedqrJ'

    Run Build Command(s): /usr/bin/ninja -v cmTC_afeca
    [1/2] /home/jeromepatel/Documents/CVL/UnrealEngine5_carla/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v22_clang-16.0.6-centos7/x86_64-unknown-linux-gnu/bin/clang   -fms-extensions -fno-math-errno -fdiagnostics-absolute-paths -MD -MT CMakeFiles/cmTC_afeca.dir/testCCompiler.c.o -MF CMakeFiles/cmTC_afeca.dir/testCCompiler.c.o.d -o CMakeFiles/cmTC_afeca.dir/testCCompiler.c.o -c /home/jeromepatel/Documents/CVL/CarlaUE5/Build/CMakeFiles/CMakeScratch/TryCompile-tedqrJ/testCCompiler.c
    [2/2] : && /home/jeromepatel/Documents/CVL/UnrealEngine5_carla/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v22_clang-16.0.6-centos7/x86_64-unknown-linux-gnu/bin/clang  -stdlib=libc++ -L/home/jeromepatel/Documents/CVL/UnrealEngine5_carla/Engine/Source/ThirdParty/Unix/LibCxx/lib/Unix/x86_64-unknown-linux-gnu CMakeFiles/cmTC_afeca.dir/testCCompiler.c.o -o cmTC_afeca   && :
    FAILED: cmTC_afeca
    : && /home/jeromepatel/Documents/CVL/UnrealEngine5_carla/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v22_clang-16.0.6-centos7/x86_64-unknown-linux-gnu/bin/clang  -stdlib=libc++ -L/home/jeromepatel/Documents/CVL/UnrealEngine5_carla/Engine/Source/ThirdParty/Unix/LibCxx/lib/Unix/x86_64-unknown-linux-gnu CMakeFiles/cmTC_afeca.dir/testCCompiler.c.o -o cmTC_afeca   && :
    /home/jeromepatel/Documents/CVL/UnrealEngine5_carla/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v22_clang-16.0.6-centos7/x86_64-unknown-linux-gnu/bin/x86_64-unknown-linux-gnu-ld: warning: /lib/x86_64-linux-gnu/Scrt1.o: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0008002
    /home/jeromepatel/Documents/CVL/UnrealEngine5_carla/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v22_clang-16.0.6-centos7/x86_64-unknown-linux-gnu/bin/x86_64-unknown-linux-gnu-ld: warning: /lib/x86_64-linux-gnu/libc.so.6: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0008002
    /home/jeromepatel/Documents/CVL/UnrealEngine5_carla/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v22_clang-16.0.6-centos7/x86_64-unknown-linux-gnu/bin/x86_64-unknown-linux-gnu-ld: /lib/x86_64-linux-gnu/libc.so.6: unknown type [0x13] section `.relr.dyn'
    /home/jeromepatel/Documents/CVL/UnrealEngine5_carla/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v22_clang-16.0.6-centos7/x86_64-unknown-linux-gnu/bin/x86_64-unknown-linux-gnu-ld: skipping incompatible /lib/x86_64-linux-gnu/libc.so.6 when searching for /lib/x86_64-linux-gnu/libc.so.6
    /home/jeromepatel/Documents/CVL/UnrealEngine5_carla/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v22_clang-16.0.6-centos7/x86_64-unknown-linux-gnu/bin/x86_64-unknown-linux-gnu-ld: cannot find /lib/x86_64-linux-gnu/libc.so.6
    /home/jeromepatel/Documents/CVL/UnrealEngine5_carla/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v22_clang-16.0.6-centos7/x86_64-unknown-linux-gnu/bin/x86_64-unknown-linux-gnu-ld: /lib64/ld-linux-x86-64.so.2: unknown type [0x13] section `.relr.dyn'
    /home/jeromepatel/Documents/CVL/UnrealEngine5_carla/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v22_clang-16.0.6-centos7/x86_64-unknown-linux-gnu/bin/x86_64-unknown-linux-gnu-ld: skipping incompatible /lib64/ld-linux-x86-64.so.2 when searching for /lib64/ld-linux-x86-64.so.2
    /home/jeromepatel/Documents/CVL/UnrealEngine5_carla/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v22_clang-16.0.6-centos7/x86_64-unknown-linux-gnu/bin/x86_64-unknown-linux-gnu-ld: cannot find /lib64/ld-linux-x86-64.so.2
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    ninja: build stopped: subcommand failed.

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:34 (project)

-- The C compiler identification is Clang 16.0.6
-- The CXX compiler identification is Clang 16.0.6
-- The ASM compiler identification is Clang with GNU-like command-line
-- Found assembler: /home/jeromepatel/Documents/CVL/UnrealEngine5_carla/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v22_clang-16.0.6-centos7/x86_64-unknown-linux-gnu/bin/clang
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: /home/jeromepatel/Documents/CVL/UnrealEngine5_carla/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v22_clang-16.0.6-centos7/x86_64-unknown-linux-gnu/bin/clang
-- Check for working C compiler: /home/jeromepatel/Documents/CVL/UnrealEngine5_carla/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v22_clang-16.0.6-centos7/x86_64-unknown-linux-gnu/bin/clang - broken
-- Configuring incomplete, errors occurred!
retry: cmake returned 1, backing off for 10 seconds and trying again...

To check whether the issue is clang from UE5, I tried running the following simple command
UnrealEngine5_carla/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v22_clang-16.0.6-centos7/x86_64-unknown-linux-gnu/bin/clang test.c -o test_program

and it gives the exact same error so now I know where it's coming from (clang is broken inside UE5). I tried to look it up where it's setting up this exact version of LLVM but couldn't find anywhere where it's setting this up from.
Is there a way to resolve this issue ? Any help would be appreciated. I am guessing if I can work with my system clang (since it works) then I would be able to build the CarlaUE5 properly.
Thanks!

Closing this issue since after spending many hours I still couldn't figure out how to make Carla UE5.3 work in Ubuntu 24.04 (probably in future if someone visits this issue again). The solution is to basically change OS to either Ubuntu 22.04 or Windows 10/11. I did later and with few minor errors I was able to make UE5.3 work in windows 11.
In case someone encounters this issue, it is regarding UE5.3 internal Clang Toolchain compiler only supporting Linux version upto 22.04 (more info here), This is exact compiler which is being used inside Setup.sh script during compiling. (One crude solution is to remove that and use system's default Clang toolchain but also requires configuring UE5 compiler too), in case the clang support has been extended in future then you can use Ubuntu 24.04 with Carla UE5 without any hassle. Commenting this so that no-one else have to waste many hours on a dead-end.

Hello Jerome,
I would use Ubuntu 22.04, since this is the version which is recommended on the offical CARLA docs. Could not read anything mentioned Ubuntu 24.04

Hi,
Yes, I resorted to using Windows 11 since it was more convenient for me to use. You are right that Ubuntu 24.04 is not mentioned anywhere, I was hoping to make it work but didn't succeed.


text:
Added support for visibility for fields

Added support through the vis function like in function.
Added support for new field function to support builder pattern for visibility.
Added test for new functionality.

Fixes #10

Note: re-filed this MR against lovoslav's fork here: https://gitlab.com/IovoslavIovchev/codegen/-/issues/4
https://gitlab.com/IovoslavIovchev/codegen/-/merge_requests/2

source: gharchive/pull-request

repo: carllerche/codegen


text:
Growable notify queue as an option / feature.

I know mio by default does not allocate, but I really need grow-able queues. When the queue is full, there's nothing good to do about it. If I spin I get deadlocks (like https://github.com/dpc/mioco/issues/69), if I don't I need to introduce a grow-able queue manually anyway.
How about we make a growable queue a Cargo feature or option in EventLoopConfig? I'm thinking about taking one of crossbeam queues:
http://aturon.github.io/crossbeam-doc/crossbeam/sync/index.html
Will such a PR be accepted? Any other ideas?

May I suggest you to take the MIO queue implementation and benchmark it against crossbeam? Crossbeam itself already has an mpsc benchmark implementation.
It may shed some light into this.

I could but I don't care about speed really. Only about making the queue growable.

Well, I assume any alternatives must be performant in order to be merged upstream.
My current pet project is notify heavy, for example.

It won't be a total switch because mio does not allocate during runtime. Growing is allocating, thus a total switch to any growable queue is no-no. I'm sure most users are perfectly fine with current queue, so I'm looking for a way to just opt-out to a growable queue, on demand. Other than growing, I have no requirements. Faster implementation can be provided later if the one I've proposed turns out to be not enough.

I went ahead and modified crossbeam tests to use 24 byte messages, results bellow (in ns, so smaller is better)
mpsc mpsc: 57.2908633
Seg mpsc: 102.8092363
bounded mpmc: 28.5960358
2 Threads
mpsc mpsc: 70.08888965
Seg mpsc: 83.1784077
bounded mpmc: 97.38312855
3 Threads
mpsc mpsc: 69.12842666666667
Seg mpsc: 57.32806733333334
bounded mpmc: 111.13411283333333
4 Threads
mpsc mpsc: 66.938316525
Seg mpsc: 51.626926525
bounded mpmc: 125.61349105

Code is here: https://github.com/arthurprs/crossbeam
I think it's safe to say that 99.9% of MIO notify producers are not busy loops like this benchmark. So the current implementation is indeed the best choice since it's really efficient at low levels of contention.
If you can get it to reallocate safely with little overhead it'd be a nice addition.

Adding a little bit of work (atomic increment a counter 20 times) between pushes I get
1 Threads
mpsc mpsc: 248.952823
Seg mpsc: 240.2846536
bounded mpsc: 217.0402997
2 Threads
mpsc mpsc: 151.00095085
Seg mpsc: 143.70620145
bounded mpsc: 162.57680625
3 Threads
mpsc mpsc: 147.77742146666668
Seg mpsc: 101.88968686666666
bounded mpsc: 126.13010226666667
4 Threads
mpsc mpsc: 91.335810275
Seg mpsc: 106.21642755
bounded mpsc: 110.363010425

The pattern holds, the bounded queue starts ahead and falls behind when there's increased contention but the margin is very small.

Interesting and good to know.

If you can get it to reallocate safely with little overhead

My impression was that nothing special has to be done for it to grow.

@dpc I'm afraid it's not that simple

The API has only new, pop and push... http://aturon.github.io/crossbeam-doc/crossbeam/sync/struct.SegQueue.html what am I missing?

Oh, I see. I thought you wanted to make the current queue implementation growable.

I have been discussing a strategy with @aturon and @alexcrichton related to this. We are going to attempt to remove a hard coded queue in favor of some sort of notification gate (similar to thread park / unpark). This will allow the queue to be pluggable.

Great. I'll wait then.

This has been fixed by allowing arbitrary queues.

authors: arthurprs carllerche dpc

repo: carllerche/mio

license: mit


text:
[WIP] Add termios bindings.

This includes almost all constants/functions from /usr/include/sys/termios.h on OSX 10.9.5. Looking for feedback on the naming/uses of bitflags! and enums.
For the record, I used this script I wrote to get the values of these constants.

Looking good. Let me know when this can be merged (I assume the WIP implies that it is still a work in progress).

I modified tcgetattr a bit to make it possible to use it without unsafe code (like sys::stat::stat) in https://github.com/carllerche/nix-rust/commit/a757e4ae9b07ff198a4067a8e871c57eeceb3163. What do you think? If that's okay, this is ready to be merged.

Thanks. I merged this da900c6932254fa5e3b2a44b3ac9160fd275d261

authors: carllerche utkarshkukreti

repo: carllerche/nix-rust


text:
Added token authentication

It is now possible to restrict access to the dashboard using a request token by defining  the OPCACHE_DASHBOARD_TOKEN environment variable.

This seems like a great idea to protect the risky features. What do you think about making it "secure by default" so that requests are rejected unless the token is present and an admin can disable the token by setting the value to an empty string? As currently built this requires extra effort to enable the security feature. IMO it should work in reverse where disabling the security requires extra effort.

authors: greggles trivoallan

repo: carlosbuenosvinos/opcache-dashboard


text:
Facebook friendship anniversary video breaks fetchTreadMessages

Description of the problem
fetchThreadMessage fails to fetch Facebook friendship anniversary video shared to messenger.
Code to reproduce
# Example code
from fbchat import Client
client = Client("[REDACTED_USERNAME]", "a_password_with_%")

Attachment causing the issue (in french) :
'story_attachment': {
	'description': {
		'text': '... et ... sont ami(e)s sur Facebook depuis 5 ans. Regardez la vidéo qui fête cette amitié.'
	},
	'media': {
		'animated_image': None,
		'image': {
			'uri': 'https://scontent.fcdg2-1.fna.fbcdn.net/v/...',
			'height': 426,
			'width': 426
		},
		'playable_duration_in_ms': 0,
		'is_playable': False,
		'playable_url': None
	},
	'source': None,
	'style_list': ['fallback', 'fallback'],
	'title_with_entities': {
		'text': 'Un amiversaire à fêter\xa0!'
	},
	'properties': [],
	'url': 'https://www.facebook.com/onthisday/message/?cid=XXX&source=message',
	'deduplication_key': '...',
	'action_links': [],
	'messaging_attribution': None,
	'target': {
		'__typename': 'ExternalUrl'
	},
	'subattachments': []
}

Traceback
Traceback (most recent call last):
...
  File "/.../ENV/lib/python3.7/site-packages/fbchat/client.py", line 1105, in fetchThreadMessages
    for message in j["message_thread"]["messages"]["nodes"]
  File "/.../ENV/lib/python3.7/site-packages/fbchat/client.py", line 1105, in <listcomp>
    for message in j["message_thread"]["messages"]["nodes"]
  File "/.../ENV/lib/python3.7/site-packages/fbchat/graphql.py", line 399, in graphql_to_message
    attachment = graphql_to_extensible_attachment(message["extensible_attachment"])
  File "/.../ENV/lib/python3.7/site-packages/fbchat/graphql.py", line 202, in graphql_to_extensible_attachment
    source=story["source"].get("text"),
AttributeError: 'NoneType' object has no attribute 'get'

Environment information
Python version 3.7
fbchat version 1.6.4

Thanks for the report, I'll fix it in an upcoming release!


text:
Code in exercises is "very low contrast" error in accessibility checker

this might not be the right place, but while doing accessibility checks on an incubator lesson I noticed this.
Is there a different way lesson authors should denote code in exercise blocks? or is this an acceptable low contrast? (the exercise block background is the same color as a code block background)
linking to review issue for future reference

I can confirm that, based on https://coolors.co/contrast-checker/d63384-f8f9f9, this falls short of the 4.5:1 ratio required for the WCAG AA success criterion. The code-formatted text on pure white background meets that ratio exactly (see https://coolors.co/contrast-checker/d63384-ffffff).
Can we adjust the colour for inline code to keep a high contrast on this grey background, e.g. to #A50D5E?

Thanks for this issue @brownsarahm. The @carpentries/workbench-maintainers started to discuss this at our meeting today. Here's what we've tracked down so far:
Kelly and I started by inspecting the code for in-line code within an exercise block. The color for the in-line code appears to come from the _rfs.scss stylesheet (line 294).

This sylesheet appears to be imported from Bootstrap, but line 294 of this style sheet appears to be about resizing safari iframes. We have no idea how this is related to setting text color.

Varnish's styles.css.scss imports codeblocks.scss, which includes a definition of a code element starting on line 46. Line 53 sets the color property for the code element to inherit.

We found a tutorial video about css cascading that seems relevant, but haven't yet been able to track down where the code element is inheriting its color from. We are pretty confident we can override this inhertance by defining code color somewhere, but we don't know where it should be defined.
We'll be checking in with the other Workbench Maintainers next week, who know a lil' more about css (😂) and hopefully figure out where this property needs to be set. This is turning into a great learning opportunity for us to understand how the Workbench uses css.

Note that the issue is with contrast of inline code (i.e. monospaced text within a paragraph of normal text), rather than code in codeblocks. e.g. code {color: #a50d5e;} rather than
code {
    color: #a50d5e;
}

So codeblocks.scss may not be the correct location for making a change like this. Having said that, I am not sure where else to suggest! But it could be an important distinction.

Hi all. The CSS of the code block declaration in bootstrap is overridden by the syntax-highlighting.scss class in varnish. @ErinBecker is correct that inheritance is in play here, but as the syntax-highlighting.scss inherits from the bootstrap code class, but doesn't specify its own color, then it will inherit the bootstrap color. We can override this by adding a specific color property in the syntax-highlighting.scss class:

Many thanks for raising this @brownsarahm - @zkamvar and I went through this today, and we agreed that setting the background-color to white for the inline code should increase the contrast. I've implemented a fix and it will be in the upcoming varnish 0.3.2 release.

Just a note, Rob created the release 20 minutes ago and it is now live on the R universe: https://carpentries.r-universe.dev/varnish

authors: ErinBecker brownsarahm froggleston tobyhodges zkamvar

repo: carpentries/workbench


text:
Feature Request Challenge

User Story
AS A marketing agency
I WANT a codebase that follows accessibility standards
SO THAT our own site is optimized for search engines

Acceptance Criteria
GIVEN a webpage meets accessibility standards
WHEN I view the source code
THEN I find semantic HTML elements
WHEN I view the structure of the HTML elements
THEN I find that the elements follow a logical structure independent of styling and positioning
WHEN I view the icon and image elements
THEN I find accessible alt attributes
WHEN I view the heading attributes
THEN they fall in sequential order
WHEN I view the title element
THEN I find a concise, descriptive title

Completed task. Issue resolved.


text:
Issues with sideloaded permissions in group

I am using the very handy setPermissionsAttribute() on the Group and User models (Eloquent) for loading permissions. This works find, however, I am having to do the following:
$groups = Sentry::findAllGroups();
foreach ($groups as $group) {
    if ($group->name == 'foo') {
        $group->setPermissionsAttribute('foo.bar');
    }
}

$user = Sentry::getUser();
$user->inGroup('foo'); // true, user is in this group
$user->hasPermission('foo.bar'); // this should be true but it's false

To work around this, I am having to do:
foreach ($user->getGroups() as $userGroup) {
    if ($group->name == 'foo') {
        $group->setPermissionsAttribute('foo.bar');
    }
}

...which is problematic when dealing with multiple users.

Can you elaborate on your issue? I'm very confused on what you're expecting to happen here.

Sure,
$user->hasPermission('foo.bar'); should return true not false. This is because $user in the group foo, and for that group I already called $group->setPermissionsAttribute('foo.bar');

Essentially, if I load permissions directly on $user object via $user->setPermissionsAttribute() things work fine.
However, when I load a permission 'foo.bar' directly on the $group object via $group->setPermissionsAttribute() and if a user belongs to that group, then I expect the $user->getMergedPermissions() to contain 'foo.bar' but it doesn't.

@aleemb you should store the user/group object after setting the permissions so that it can be fetched from the database.
You also don't have to call the setPermissionsAttribute method here, you simply do
$group->permissions = ['foo.bar' => 1];
$group->save();

That way, the permissions are fetched from the database on subsequent calls.

@suwardany, yes that's exactly right but for my use-case I want to sideload the permissions and bypass the DB. In fact, in my app the DB contains null permissions and all permissions are loaded at runtime.

authors: aleemb brunogaspar suwardany

repo: cartalyst/sentry


text:
Request instance fix if request binding does not exist in the application

In testing environment request instance does not exist, Sentry fails, so we create a new request instance if app does not have a matching binding.

This is on the wrong branch sorry.

I'm sorry, I'm new to this. To which branch should I request a pull request?

To the same branch you did the changes from, feature/laravel-5.

authors: briedis brunogaspar


text:
chore: wallet-connect domain verification changes.

Summary
Code changes as instructed by Reown to verify the domains used by the Cartesi Staking App.
Testing Instructions
Once changes are deployed and the code is validated in the Reown cloud dashboard, the warning message when using Ledger Live to connect should disappear.
Related Issue(s)
closes #148

Pull Request Test Coverage Report for Build 11449702926
Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 77.511%

Totals

Change from base Build 10275653551:
0.0%

Covered Lines:
338

Relevant Lines:
401

💛  - Coveralls

authors: brunomenezes coveralls

repo: cartesi/explorer


text:
Add documentation about PXtoREM (postcss task)

Project version:
eg: v1.0.0
Issue type:

Tick one of the below and label if necessary

[ ] Bug
[ ] New expansion pack proposal

Note: if you want to suggest a new expansion pack for Cartridge please make sure you are doing so in the main project repository.
Expected behaviour:

If a bug, write the expected behaviour here

Actual behaviour:

If a bug, write the actual behaviour here

Steps to reproduce the behaviour:

If a bug, write the steps to reproduce the behaviour here

@bmds I raised this issue and have no idea why, do you have any idea?

No idea either ¯_(ツ)_/¯

repo: cartridge/cartridge-sass


text:
docs: Update LogError.md

Update LogError.md of initialzing enforcer with a logger.

lgtm

authors: hsluoyz kocoler

repo: casbin/casbin-website


text:
fix: safari show bug and synchronize phone regex for regex.go

Fix: #128
Signed-off-by: wasabi 690898835@qq.com

demo link: http://testb.rescld.cn/, open on safari brower successfully.

Replaced by: https://github.com/casbin/casdoor/commit/2ba44748c296ffd396533189b13387470f65e18c

repo: casbin/casdoor


text:
It is allowed to modify the jwt parameter,

translate:
if the generated token is  parsed, an nbf error will be reported. Here you can allow to manually set the error through the parameter leeway to solve this problem.

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

authors: CLAassistant hopomi

repo: casdoor/casdoor-python-sdk


text:
Ability to select/sort UTXOs used for inscription

So let’s say we fund our wallet with two UTXOs:
UTXO-1: 10,000 sats
UTXO-2: 1,000 sats
And two inscriptions we want to make, one (Inscription A) that requires 5,000 sats and the other (Inscription B) that requires 500.
Let's say we want to submit Inscription B first, or we have some automated logic to do so. And we now we spend UTXO-1 to submit Inscription B. Inscription A cannot be sent now, because we don’t have any UTXOs that are spendable that exceed 5,000 sats.
I took a quick look through the code and it doesn't seem like there's logic to "optimize" UTXO use depending on the total fees (to minimize the amount of "change" given). In the absence of this, maybe being able to explicitly specify which UTXO you'd like to use would be valuable?

would the --satpoint option do what you want here?

@rot13maxi that works great, thank you for the heads up on this! gonna close this issue then, and for anyone stumbling across this in the future:
> ord wallet outputs
abc…xyz:1	345929

> ord wallet inscribe {file} --satpoint abc…xyz:1:0

repo: casey/ord


text:
yaml configuration is error-prone

I maintain a Misk-based app. Yesterday, I added a backend to it via Guice injection, and added fake and real Guice modules for the binding. All tests passed. But when I deployed the change to the app's staging environment, it failed:
com.google.inject.ProvisionException: Unable to provision, see the following errors:
        1) Error in custom provider, java.lang.IllegalArgumentException: no client configuration for endpoint [redacted]
          at misk.client.HttpClientModule.configure(HttpClientModule.kt:23) (via modules: [redacted] -> misk.client.TypedHttpClientModule -> misk.client.HttpClientModule)
          while locating okhttp3.OkHttpClient annotated with @com.google.inject.name.Named(value=[redacted])
          at misk.client.TypedHttpClientModule.configure(TypedHttpClientModule.kt:45) (via modules: [redacted] -> misk.client.TypedHttpClientModule)
          while locating [redacted] annotated with @com.google.inject.name.Named(value=[redacted])

After reading Misk docs, I realized I needed to add a line to app-staging.yaml corresponding to this new backend.
Could this error have been surfaced before deploying? I realize that app-staging.yaml is meant for the staging environment, but it should be possible to write a tool that would do some static analysis on the yaml file and realize there's a missing backend. (I'm filing this issue here, rather than against my own app, because it seems like it would be valuable for every Misk app.)

Sorry about the long delay in replying.
I think that a test on the Injector with different envs should have picked this up.
While we've added config-checking via hoplite, that particular error stems from the module trying to pull dynamically from the config, so without changing how the module works, an injector test is probably the way to go.

repo: cashapp/misk


text:
Request Mint Refactor

Refactored the request mint wallet method to generate the invoice  #from a returned MintQuoteResponse.
https://github.com/cashubtc/nutshell/issues/500

I wonder why this doesn't run the pipeline...

repo: cashubtc/nutshell


text:
Import hadoop version 2.7.0

import latest hadoop cookbook release

import only, merging

repo: caskdata/coopr-provisioner