npm run setup:fem fails....Need help!

When I run npm run setup:fem.... seems lint fails....
My npm and node versions:
npm -v = 3.8.6
node -v = v6.0.0
23:40:29-yc03648~/workshop/webpack/es6-todomvc (master)$ npm run setup:fem

> @ setup:fem /Users/yc03648/workshop/webpack/es6-todomvc
> git checkout FEM/07.1-deploy-surge && npm install && npm run validate && rimraf dist coverage && git checkout FEM/00-original-project

Branch FEM/07.1-deploy-surge set up to track remote branch FEM/07.1-deploy-surge from origin.
Switched to a new branch 'FEM/07.1-deploy-surge'
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none was installed.

> @ validate /Users/yc03648/workshop/webpack/es6-todomvc
> npm-run-all --parallel lint build test

> @ lint /Users/yc03648/workshop/webpack/es6-todomvc
> eslint .

▀ ╢░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟

> @ test /Users/yc03648/workshop/webpack/es6-todomvc
> karma start
▀ ╢░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟

> @ prebuild /Users/yc03648/workshop/webpack/es6-todomvc
> rimraf dist

> @ build /Users/yc03648/workshop/webpack/es6-todomvc
> webpack --env.prod -p

  build [==                  ] 10%
/Users/yc03648/workshop/webpack/es6-todomvc/src/app.js
  1:8   error  Unable to resolve path to module 'todomvc-app-css/index.css'  import/no-unresolved
  2:8   error  Unable to resolve path to module './app.css'                  import/no-unresolved
  4:19  error  Unable to resolve path to module './helpers'                  import/no-unresolved
  5:26  error  Unable to resolve path to module './todo'                     import/no-unresolved
  6:25  error  Unable to resolve path to module './graph'                    import/no-unresolved

/Users/yc03648/workshop/webpack/es6-todomvc/src/bootstrap.js
  2:41  error  Unable to resolve path to module 'offline-plugin/runtime'  import/no-unresolved
  3:22  error  Unable to resolve path to module './app'                   import/no-unresolved
  4:19  error  Unable to resolve path to module './helpers'               import/no-unresolved

/Users/yc03648/workshop/webpack/es6-todomvc/src/controller.test.js
  1:24  error  Unable to resolve path to module './controller'  import/no-unresolved

/Users/yc03648/workshop/webpack/es6-todomvc/src/graph/index.js
  1:34  error  Unable to resolve path to module '../todo'  import/no-unresolved

/Users/yc03648/workshop/webpack/es6-todomvc/src/graph/render.js
  1:19  error  Unable to resolve path to module 'react'      import/no-unresolved
  2:22  error  Unable to resolve path to module 'react-dom'  import/no-unresolved
  3:24  error  Unable to resolve path to module 'rd3'        import/no-unresolved
  4:21  error  Unable to resolve path to module 'lodash'     import/no-unresolved

/Users/yc03648/workshop/webpack/es6-todomvc/src/store.js
  1:22  error  Unable to resolve path to module './helpers'  import/no-unresolved

/Users/yc03648/workshop/webpack/es6-todomvc/src/todo.js
  1:18  error  Unable to resolve path to module './view'        import/no-unresolved
  2:24  error  Unable to resolve path to module './controller'  import/no-unresolved
  3:19  error  Unable to resolve path to module './model'       import/no-unresolved
  4:19  error  Unable to resolve path to module './store'       import/no-unresolved
  5:22  error  Unable to resolve path to module './template'    import/no-unresolved
  6:22  error  Unable to resolve path to module './helpers'     import/no-unresolved

/Users/yc03648/workshop/webpack/es6-todomvc/src/view.js
  2:48  error  Unable to resolve path to module './helpers'  import/no-unresolved

✖ 22 problems (22 errors, 0 warnings)

npm ERR! Darwin 15.6.0
npm ERR! argv "/Users/yc03648/.nvm/versions/node/v6.0.0/bin/node" "/Users/yc03648/.nvm/versions/node/v6.0.0/bin/npm" "run-script" "lint"
npm ERR! node v6.0.0
npm ERR! npm  v3.8.6
npm ERR! code ELIFECYCLE
npm ERR! @ lint: `eslint .`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ lint script 'eslint .'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the  package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     eslint .
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/yc03648/workshop/webpack/es6-todomvc/npm-debug.log

> @ postbuild /Users/yc03648/workshop/webpack/es6-todomvc
> cpy favicon.ico dist

ERROR: "lint" exited with 1.

npm ERR! Darwin 15.6.0
npm ERR! argv "/Users/yc03648/.nvm/versions/node/v6.0.0/bin/node" "/Users/yc03648/.nvm/versions/node/v6.0.0/bin/npm" "run" "validate"
npm ERR! node v6.0.0
npm ERR! npm  v3.8.6
npm ERR! code ELIFECYCLE
npm ERR! @ validate: `npm-run-all --parallel lint build test`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ validate script 'npm-run-all --parallel lint build test'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the  package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     npm-run-all --parallel lint build test
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/yc03648/workshop/webpack/es6-todomvc/npm-debug.log

npm ERR! Darwin 15.6.0
npm ERR! argv "/Users/yc03648/.nvm/versions/node/v6.0.0/bin/node" "/Users/yc03648/.nvm/versions/node/v6.0.0/bin/npm" "run" "setup:fem"
npm ERR! node v6.0.0
npm ERR! npm  v3.8.6
npm ERR! code ELIFECYCLE
npm ERR! @ setup:fem: `git checkout FEM/07.1-deploy-surge && npm install && npm run validate && rimraf dist coverage && git checkout FEM/00-original-project`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ setup:fem script 'git checkout FEM/07.1-deploy-surge && npm install && npm run validate && rimraf dist coverage && git checkout FEM/00-original-project'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the  package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     git checkout FEM/07.1-deploy-surge && npm install && npm run validate && rimraf dist coverage && git checkout FEM/00-original-project
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/yc03648/workshop/webpack/es6-todomvc/npm-debug.log

Hmmm.... It appears there may be an issue with eslint-plugin-import. Could you try this again in a day or two (maybe the bug will be fixed by then). Or you might dig a little deeper.
On the bright side, the linting stuff isn't super important, so you should be able to continue by running git checkout FEM/00-original-project and start from there...

I get this error (not pasting everything, just the part where the syntax error starts:

@ build /work/other/frontendmasters.com/webpack/es6-todomvc
webpack --env.prod -p

06 01 2017 13:06:06.586:ERROR [config]: Invalid config file!
SyntaxError: Unexpected token {
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:373:25)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object. (/work/other/frontendmasters.com/webpack/es6-todomvc/karma.conf.js:3:23)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object.parseConfig (/work/other/frontendmasters.com/webpack/es6-todomvc/node_modules/karma/lib/config.js:307:22)
at new Server (/work/other/frontendmasters.com/webpack/es6-todomvc/node_modules/karma/lib/server.js:56:20)
Is this a karma config file error or webpack config file?

This is most likely because you're using the wrong version of node. Make sure you're on version 6

I hate to say this, but yes I was still on v.4.6.1... Somehow seeing the "6" in there made me think it was on version 6... silly me.
Upgraded node and npm to latest and greatest and your steps are working fine now. Thanks!

just cloned the repo and tried npm run validate after the npm install: errors:
9 verbose lifecycle @~validate: CWD: /home/ronald/projects/tryout/ikwilnunaardefilm/src/main/webapp/js/es6-todomvc
14 10 silly lifecycle @~validate: Args: [ '-c', 'npm-run-all --parallel lint build test' ]
15 11 silly lifecycle @~validate: Returned: code: 1  signal: null
16 12 info lifecycle @~validate: Failed to exec validate script
17 13 verbose stack Error: @ validate: npm-run-all --parallel lint build test
18 13 verbose stack Exit status 1
19 13 verbose stack     at EventEmitter. (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:285:16)
20 13 verbose stack     at emitTwo (events.js:125:13)
21 13 verbose stack     at EventEmitter.emit (events.js:213:7)
22 13 verbose stack     at ChildProcess. (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
23 13 verbose stack     at emitTwo (events.js:125:13)
24 13 verbose stack     at ChildProcess.emit (events.js:213:7)
25 13 verbose stack     at maybeClose (internal/child_process.js:927:16)
26 13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
27 14 verbose pkgid @
28 15 verbose cwd /home/ronald/projects/tryout/ikwilnunaardefilm/src/main/webapp/js/es6-todomvc
15,1          50%


New members

Please add active contributors to the vale-at-red-hat group:

@deerskindoll
@michelle-purcell
@jhradilek
@osslate
@apupier
@abhatt-rh
@mjahoda
kquinn1204

kquinn1204

rohennes

Invites sent to current non-members.


LintHelper should not work at the time of searching for all references

I don't think this is the way to solve this issue. There is already work in progress for this and other similar UX problems with the Results panel. Hopefully tomorrow will be pushed.

When using the find all references, files are opened this triggers diagnostics.
Which in turn breaks the output of the result and leads to the closing of the editor, because on my project the answer from the compiler will be about two minutes later, and the file will be already closed.

I see, for that one there is also another work in progress. But I will merge this in the meantime.

Thanks


Not returning empty cells

In my xlsx file I have some empty cells what are not returned, simply I'm getting the next cell. That cause I can not be sure about which column is really returning to me.
I do not know which is the internal logic, but will be better if I can tell how many columns I want to be returned rather jumping empty cells.

Unfortunately, it's unavoidable. Empty cells are simply not mentioned in XML inside .xlsx file (which is simple zip-archive), so every iterator skips them. Also it skips empty rows as well. The only way is to go with index from 0 to sheet.lastRowNum and from 0 to row.lastCellNum in every row, but you lose stream benefits.

Understood, thanks for your answers

Unfortunately, it's unavoidable. Empty cells are simply not mentioned in XML inside .xlsx file (which is simple zip-archive), so every iterator skips them. Also it skips empty rows as well. The only way is to go with index from 0 to sheet.lastRowNum and from 0 to row.lastCellNum in every row, but you lose stream benefits.

@Aguinore  I was trying to get complete sheet data, including all empty rows and columns as null. I am using a pointer variables to detect iterator skip(same as apache poi), but row.getRowNum() and colIndex do not give any skip in their values for completely empty row and column. How do you detect a skip?


Preparing laptop reviews data for BERT Language Model Finetuning

when I run python prepare_laptop_reviews.py
I am getting this:
Found 0 laptop items
Loading and Filtering Reviews
Found 0 laptop reviews
Tokenizing laptop Reviews...
Segmented 0 laptop sentences
0it [00:00, ?it/s]
Removed 0 reviews due to overlap with SemEval Laptops Dataset
Done writing to data/transformed/laptop_corpus_0.txt
And this gives me laptop_corpus_0.txt file, which is empty file
I downloaded Amazon electronics reviews (meta_Electronics.json.gz, reviews_Electronics.json.gz) and putted  them into data/raw folder
I have SemEval 2014 ABSA train and test data in data/raw/semeval214/ folder
Am I missing something? Could you please help me to figure it out?
PS Preparation of restaurant reviews worked just fine and I got transformed restaurant_corpus.

It works fine.


Add style

[ ] add style for the project ✔
[ ] fix linters ✔
[ ] set up react ✔
[ ] connect react-redux ✔
[ ] connect API ✔

thank you for your comment and approval
On Fri, Dec 23, 2022 at 5:18 PM Olaoluwa Owoeye @.***>
wrote:

@.**** approved this pull request.
Hi @atatm https://github.com/atatm,
Your project is complete! There is nothing else to say other than... it's
time to merge it [image: :shipit:]
Congratulations! 🎉
https://camo.githubusercontent.com/5a3a0aeb695e1a0e7c9cb8c5ad662d6d8f791402d56af001a5a7e70f0a15d082/68747470733a2f2f6d65646961302e67697068792e636f6d2f6d656469612f6a4a5143327075565a70544d4f34765573302f67697068792e676966
Highlights

Linters passed ✔
Styling according to wireframe ✔
Styling best practice ✔

Optional suggestions
Every comment with the [OPTIONAL] prefix won't stop the approval of this
PR. However, I strongly recommend you to take them into account as they can
make your code better. Some of them were simply missed by the previous
reviewer and addressing them will really improve your application.
Cheers and Happy coding!👏👏👏
Feel free to leave any questions or comments in the PR thread if something
is not 100% clear.
Please, remember to tag me in your question so I can receive the
notification.
As described in the Code reviews limits policy
https://microverse.zendesk.com/hc/en-us/articles/1500004088561 you have a
limited number of reviews per project (check the exact number in your
Dashboard). If you think that the code review was not fair, you can request
a second opinion using this form https://airtable.com/shrQAqnBwek5a0O0s.
—
Reply to this email directly, view it on GitHub
https://github.com/atatm/book-store/pull/5#pullrequestreview-1229017450,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AZKNXDEBJA4GJPIH2XJTXH3WOWYCHANCNFSM6AAAAAATHYJBRU
.
You are receiving this because you were mentioned.Message ID:
@.***>


Update for all versions of Streamlit

Description

Update st.experimental_rerun() to st.rerun()
Add a condition to use always st.exprimental_rerun() if Streamlit version under 1.27

How to use:

download streamlit_modal folder with init.py from my fork https://github.com/Jumitti/streamlit_modal
put streamlit_modal folder at the root of your python script
don't forget to install deprecation package (pip install deprecation)
That all folks !

Thanks @Jumitti! Could you revert the change in the README? Would like to merge this one.
Also thanks to @bedaw99 for the initial PR.

Done 🎈


Add a TranslationContext field to ShelleyLedgerExamples

This is extracted from https://github.com/input-output-hk/ouroboros-network/pull/3214.

bors merge


missing reflect-metadata shim on my Windows machine

Getting Uncaught reflect-metadata shim is required when using class decorators.

dup of #65

Hmmm didn't see a fix on #65.
I added this to vendor.ts before Angular2
// Fixes for Uncaught reflect-metadata shim is required when using class decorators
import "zone.js/dist/zone";
import "reflect-metadata";

Thanks for the great repo!

If there were a fix on #65 it would be closed and not open :P
That is a temporary workaround if you wish.
angular2-polyfills needs to be loaded before everything, included webpack. Doing an import like you did works, but any user using your app could be running outside a zone so they will get no change detection.
That is the reason I changed how this work. Problem is that in Windows the plugin is broken.


Minimum window size

How can I specify minimum window size?
If you restrict through WindowSizeChanged, by reassigning sizes, then it looks terrible in the final form, the window context starts jumping when it is reduced.

Good feature request. We'll put it on the list. It will have to happen in Photino.Native and be implemented here as well.

@NewMySQL How did you implement your workaround solution, I'm in dire need to set a minimum width/height for an application.

@LauraWebdev you can use the .RegisterSizeChangedHandler(WindowSizeChanged) with a delegate function to resize if a certain minimum size was reached.
We still need to implement configuration properties for MinHeight/Width and MaxHeight/Width and enable this behavior in the native implementation for all OS.

@philippjbauer that does seem to work, but only for a few calls until it can be resized again. (Unless I'm doing something completely wrong here).
.RegisterSizeChangedHandler((sender, size) =>
{
    var window = (PhotinoWindow?)sender;

    if (size.Width < 600)
    {
        Console.WriteLine("Window Width Too Small");
        window?.SetWidth(600);
    }
    if (size.Height < 400)
    {
        Console.WriteLine("Window Height Too Small");
        window?.SetHeight(400);
    }
})

Console output does show it's called on resize, but after clipping the window at W600 / H400, it doesn't do it anymore. I s that worth a bug issue?
https://github.com/tryphotino/photino.NET/assets/7365286/65741a3c-91a9-4711-8f21-ebd6a9c3c0cc

This is on Ubuntu (I believe it's 20.04 LTS).

@philippjbauer just checked and it doesn't happen on Windows 11 either.

I can reproduce the error on Ubuntu as well. From what I can tell this might be an issue with the GTK event queue that can't handle the deluge of resize commands that pour in from this fairly simple implementation. I've played around with debouncing the resize event and forcing a redraw of the window but the results are not great.
The way to implement this in Linux is to add the following GTK code to the Linux native library:
void Photino::SetMinimumSize(int minWidth, int minHeight)
{
    GdkGeometry hints;
    hints.min_width = minWidth;
    hints.min_height = minHeight;
    hints.min_aspect = 0.0;
    hints.max_aspect = 0.0;

    gtk_window_set_geometry_hints(GTK_WINDOW(_window), NULL, &hints, GDK_HINT_MIN_SIZE);
}

This is tested code that works. We will have to include equivalent code for WIN32 and Cocoa (macOS) native library and expose the SetMinimumSize method in the C# environment.
The implementation for WIN32 might look like:
void SetMinimumSize(HWND hWnd, int minWidth, int minHeight)
{
    RECT rect;
    GetWindowRect(hWnd, &rect);

    int width = rect.right - rect.left;
    int height = rect.bottom - rect.top;

    int newWidth = max(width, minWidth);
    int newHeight = max(height, minHeight);

    SetWindowPos(hWnd, NULL, 0, 0, newWidth, newHeight, SWP_NOMOVE | SWP_NOZORDER);
}

and for macOS:
void SetMinimumSize(NSWindow* window, CGFloat minWidth, CGFloat minHeight)
{
    NSSize minSize = NSMakeSize(minWidth, minHeight);
    [window setMinSize:minSize];
}

Equivalent SetMaximumSize methods should be introduced to compliment the minimum size constraint functionality.

This has been implemented at the Photino.Native level and surfaced at the Photino.NET level. It will be in the next release.


HTTP Error 403: The user '' isn't allowed to upload to project ''

I'm facing on the same/similar issue with this issue.
I tried to publish my python package "hippos" to PyPI, but it failed with the error of this PR title even though that name doesn’t seem to exist in PyPI. Could you please help me?🙏
Btw, I actually first tried to register using the name "cat", but that gave me the same error.  And really, if I can use ”cat”,  I might want to use "cat".  Anyways, sorry, for now, I'm happy if I would be able to register it under the name "hippos" first 🙇 (For now, I already had registered under the name "Cattt" because I needed to register in a hurry.)

ah.. sorry, I just realized I misunderstood cat  doesn't exist in PyPI. There is cat in PyPI.
On the other hand, hippos doesn't seem to really exist in PyPI at this time at the least. (https://pypi.org/project/hippos/ -> HTTP 404)

I just found the another similar issue from already closed issues.
https://github.com/pypa/warehouse/issues/10139
I saw that in that Issue above the person was told to open PEP 541 request on pypi-support.
However, both the above issue and mine are not name conflict issues but the unavailability of a name that does not appear to exist in PyPI. Even if so, should I open the PEP 541 request form?
If I should, and if doing so would solve my issue quickly, I would like to do so.
I would appreciate, the authorized person, could give me your opinion and instructions.
Maybe in a few more hours, I may start thinking of another name (because I want to get my package naming issue done by the end of this weekend...).  But, I have already spent a lot of time trying to come up with a name for my package... I'm not sure if I will come up with a new name soon.

I just found a discussion about namespaces. Thanks to those who are working on issues like namespaces.

I just now decided to use another name, so I'm going to close this issue for now.
I may reopen this issue if that another name is not available as well.
Thank you.


Add network-routing clarification to toolbox/for-mac comparison

Proposed changes
Adds a single line mentioning what I think is a very important distinction to make between docker-toolbox and docker-for-mac, namely that the latter doesn't support routing traffic to containers. As a result, running containers are not exposed how one might expect. Copied part of the line from docker-for-mac's own docs.

Deploy preview for docsdocker ready!
Built with commit 0d8a5a46df1503d6bb9d03e11b9cd8ffc4d153b6
https://deploy-preview-7749--docsdocker.netlify.com

LGTM


Search should search commands, not just block names

Sorry, I don't know how to use github PRs well.  This is for issue  #774
https://imgur.com/iEYTzda
In this image you can see I'm searching for a term that is in a command (a variable in an IF statement). But, the block is still grayed out as if that search term doesn't match.
Does the search only find block names? Is there a way to have it search content inside blocks?
If this feature doesn't exist, what's a good work around? My game is going to have 1000s of blocks, I can't be clicking on them one by one to find where a particular variable was set.

Thanks for the PR, a good addition.


Update README.md

Sorry for my mess

Cherry-picked in 5b9752df8ec2b7e55bcb785d5eae61c0ac6fb045. I fixed your commit message this time, but please read How to Write a Git Commit Message before contributing here in the future (or anywhere else, really).


Android endAllCalls not removing incoming call

When there is an incoming call and I use FlutterCallkitIncoming.endAllCalls() I expect this to disappear.

This does not happen on Android.
It works fine on iOS.

i have the same case.
FlutterCallkitIncoming.activeCalls()
activeCalls => []

Please check with version 1.0.1+3

I confirm this issue is solved

I confirm too, thx !


Document that pod template spec should be used instead of flags

Document that new configuration options for ACME HTTP-01 solver pod need to be added via pod spec template on issuer config instead of adding new flags to controller.
See https://kubernetes.slack.com/archives/CDEQJ0Q8M/p1660041935692369 for context
I considered documenting this in the contributing section on the website, but it feels too small for that and seems like it would be more noticeable by anyone looking to add extra config options as code comments.
NONE

Makes sense to me.
/lgtm

🤔
/approve

/test pull-cert-manager-master-make-test


[Bug][Go SDK]: Plumb the allowed lateness. It is getting ignored in graphx/translate.go

What happened?
Right now, users of Go SDK can set the AllowedLateness for windows but it gets ignored in graphx/translate.go.  It always sets it to 0 instead of setting it from WindowingStrategy.
Issue Priority
Priority: 2
Issue Component
Component: sdk-go

.take-issue


Disable dev-setup "Develop" mode in setup.py

May need to make a pass over the dev_requirements. We'll see.

Can one of the admins verify this patch?

/azp run python - client

/azp run python - client

/azp run python - client

/azp run python - client

/azp run python - storage - ci


Complex to implement IConvertible

Hi,
I have a scenario where the return type of a formula is not known in advance.
Hence, I would like to write something like this :
Type t = GetTheReturnType(); // ex: typeof(int)
return Convert.ChangeType(resultAsComplex.ToNumber(), t);

This would require the Complex type to implement IConvertible.
public partial record Complex : Number, IConvertible

I noticed that implicit operators for conversion are already in place so implementing the interface is feasible.
Anyone has some feedback on this proposition ?

It will make Number CLS non-compliant. It might be an issue here

But. We can decompose it into a separate type inheriting from IConvertible, and make an extension method for it.
public sealed class Convertible : IConvertible
{
    internal Convertible(Number number);
    // implementing the interface
}

...

public static Convertible ToConvertible(this Convertible @this) => new(@this);

And as a use case, Convert.ChangeType(resultAsComplex.ToNumber().ToConvertible(), t);
I'll think whether we can do it this way

It will make Number CLS non-compliant. It might be an issue here

Is CLS still useful in this day and age? I view it as deprecated as Code Access Security. I'd put IConvertible in here as well.

This would require the Complex type to implement IConvertible.

There is no value in implementing that and producing lots of boilerplate. You should just add a
public object Convert(Number x, Type t) =>
    t == typeof(int) ? (int)x
    : t == typeof(long) ? (long)x
    : t == typeof(double) ? (double)x
    : t == typeof(float) ? (float)x
    : t == typeof(short) ? (short)x
    : t == typeof(byte) ? (byte)x
    : t == typeof(uint) ? (uint)x
    : t == typeof(ulong) ? (ulong)x
    : t == typeof(ushort) ? (ushort)x
    : t == typeof(sbyte) ? (sbyte)x
    : t == typeof(string) ? x.Stringize()
    : t == typeof(System.Numerics.Complex) ? (System.Numerics.Complex)x
    : t == typeof(bool) ? x != 0
    : throw new InvalidCastException($"Cannot convert {typeof(int)} to {t}.");

And you can extend this to include more types than default IConvertible as seen in the System.Numerics.Complex branch. You also get to customise the conversion behaviour!

Alright, let's keep the issue here for now, until it's 100% clear. @tongbong, for now you can apply the idea with an extension method for your project.

Yes that is what I did.


use asdf local dependencies when running install

Describe the bug
I tried to do an asdf install awscli latest and got an error relating to python not being installed.
I have a version of python installed via asdf install python latest I think asdf-awscli should be smart enough to use local dependencies when running an install.
Steps to reproduce
install local version of python into a folder
install awscli and watch it fail (must remove global versions of python)
Expected behavior
awscli should install
Screenshots

Additional context

Hello,
Unfortunately I need more information from you to determine what's going wrong here.
asdf install awscli latest will grab the latest v2 version, which comes with a vendor-ed python that ignores your local dependencies (this is intentional for v2 of awscli). This process is outlined in https://github.com/MetricMike/asdf-awscli/blob/main/lib/utils.bash#L64-L100.
Unless you're using Windows (which has some weirdness described in #2 and isn't actively tested yet), I'm not quite sure what you're seeing. Could you run the following commands and post the output here?
python --version
which python
asdf info
aws --version
which aws
For v1, this plugin relies on a working python3 installation available on the ${PATH} which is the only supported installation method by the awscli tool itself.

@MetricMike I see, I was hoping v1 could use a python version locally, but if its baked into the installer then we can close this issue. Might be worth pointing that out in the readme.

V1 is using a local python version available on ${PATH}. The README explicitly calls out a dependency on a python available on PATH


Unable to work on samp version 0.37

Unable to work on samp version 0.37, the server's previous version is 0.3z.
Error message;
Script[gamemodes/SAMP.amx]: Run time error 19: "File or function is not found"
Number of vehicle models: 0

I'm sure samp.amx exists because he's normal in the 0.3z version.

What version of FCNPC you are using?

You can use crashdetect to see the missing functions, it may not be related to fcnpc

The version I used before is 1.0
Current version 1.2.1

@ziggi

So, you should upgrade your plugin to latest (1.8.2) update the include and fix your scripts.


Fix panic with MQTT toml configuration generation

Previously, the NewClientF being exported was causing the our toml
package to panic.
Fixes https://github.com/influxdata/kapacitor/issues/1697
Required for all non-trivial PRs

[x] Rebased/mergable
[x] Tests pass
[x] CHANGELOG.md updated

@nathanielc should be good to go.


Split vk.rs into multiple files

This PR updates the generator to produce multiple output files instead one large vk.rs. In addition, the generator can now be run from the project root directory.
The initial motivation for this was that after the latest update to ash, IntelliJ couldn't handle the parsing vk.rs file due to its size exceeding the default threshold. I've verified that both IntelliJ and VSCode + rust-analyzer work as expected with these changes.
Related:
https://github.com/intellij-rust/intellij-rust/issues/5192
A few other benefits to this change include:

It should make it easier to see how changes vk.xml or the generator affect the output, now that its not one huge file.
Ash compiles slightly faster.

Before
$ cargo build --lib
   Compiling cc v1.0.50
   Compiling winapi v0.3.6
   Compiling libloading v0.5.2
   Compiling ash v0.30.0 (D:\projects\ash\ash)
    Finished dev [unoptimized + debuginfo] target(s) in 16.31s

After
$ cargo build --lib
   Compiling cc v1.0.50
   Compiling winapi v0.3.6
   Compiling libloading v0.5.2
   Compiling ash v0.30.0 (D:\projects\ash\ash)
    Finished dev [unoptimized + debuginfo] target(s) in 14.79s

Thank you for the PR, I'll have a closer look at it later today. I think I am okay with all of this, as I have also been thinking about splitting up vk.rs for a while. Might be a could time to move all of this into a new crate ash-sys.

Might be a could time to move all of this into a new crate ash-sys.

Although I used to be in favor of this, I now think that splitting it out into a separate crate will actually be more of a burden. The generator, bindings, and wrapper are all closely coupled to vk.xml and the wrapper would have to expose the sys crate in it's public API anyway.

Non-demanding users might appreciate skipping potentially a large chunk of ash's considerable build time by omitting the higher level complexities like builders.

I got curious and took out all of the builder code. That shaved off another 3-4 seconds.
Note that I also had to disable the ray tracing and amd extensions (with rather broad strokes) because they depended on the builders.
    Finished dev [unoptimized + debuginfo] target(s) in 11.45s

I have mixed feelings about the builders. They should really be marked as unsafe because they erase lifetimes (I've shot myself in the foot with this before), but they offer a lot of convenience with both array/slices and the structure types.
This got me thinking... The builders are really just a bunch of setters. They shouldn't create that much extra build time. They do, however, all have lifetimes, where are known to balloon build times. The lifetimes are rather useless though because they just convert the slices to raw pointers and then discard them with build. I removed the lifetimes from the builders...
    Finished dev [unoptimized + debuginfo] target(s) in 11.98s

So.. the builders themselves are < 0.5 seconds of compile time. The lifetime in the builders is what what slows things down by another 4 seconds. Considering that the lifetimes don't add any additional safety, I think we should just remove them, but keep the builders overall.
I can submit that change in another PR though if there is interest. I'd prefer not to add it to this one in order to narrow the scope of change.

[Builders] should really be marked as unsafe

No, they should not. They do not perform any unsafe operations whatsoever; constructing a raw pointer from a reference is specifically safe. Vulkan functions that might dereference them are unsafe already.

[builders] erase lifetimes

No, they do not. Preserving lifetime information is a large part of the point of builders, and removing it would make them of questionable value. What erases lifetimes is calling build, which is almost never necessary due to Deref. In the rare cases where it is necessary, such as when you need to construct an array of Vulkan structures, you can reliably avoid problems by remembering one simple rule: defer calling build until you are syntatically inside the function call that consumes the result.

I think build should be marked unsafe in its current form. In any case, the usage of deref for the builders goes against the documented intended use:
https://doc.rust-lang.org/std/ops/trait.Deref.html

Implementing Deref for smart pointers makes accessing the data behind them convenient, which is why they implement Deref. On the other hand, the rules regarding Deref and DerefMut were designed specifically to accommodate smart pointers. Because of this, Deref should only be implemented for smart pointers to avoid confusion.

Removing the lifetime from the builders reduces the build time by a non-trivial amount, but like I said, I'm not going to add it to this PR.

I think the point of the borrow system is so you don't have to remember. It's statically enforced by the compiler unless you opt out with unsafe.

In this case, it is merely statically enforced in the overwhelming majority of cases. This is better than statically enforced in zero cases. Still, people who aren't interested in static error checking at that level, it might be useful to disable them entirely.

Based on this, I think build should be marked unsafe in its current form.

That would be an incorrect use of unsafe. There is no way to use build in and of itself, or in combination with any other safe interface, to produce UB. This is exactly analogous to the construction of raw pointers from references in general.

In any case, the usage of deref for the builders goes against the documented intended use:

Nonetheless, it's what we've got. Better solutions welcome.

@MaikKlein I didn't like vk/prelude.rs either. It's now gone :) I've addressed all the other comments too.


[Backport 2.x] Update Faiss engine to allow PQ and HNSW

Backport #1074 to 2.x
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Mac:
    {"error":{"root_cause":[{"type":"action_request_validation_exception","reason":"Validation Failed: 1: Model with id=\"test-model-id\" already exists;"}],"type":"action_request_validation_exception","reason":"Validation Failed: 1: Model with id=\"test-model-id\" already exists;"},"status":400}

Seems to be a flaky test ID as I did not create one with "test-model-id" in this PR.

Above has an existing flaky GH issue: https://github.com/opensearch-project/k-NN/issues/888


row height

please let me know how to set row height of rct-bs-tbl-next.
what i following
class Itable extends Component {
rowStyle = (row, rowIndex) => {
// row.index = rowIndex;
// const style = {};
// style.height = '15px';
// return style;
return {height: '10px'}
}
render(){
return(

<BootstrapTable
keyField='id'
data={ products }
columns={ columns }
hover
rowStyle = {this.rowStyle}
bordered={true}
selectRow={ { mode: 'radio', clickToSelect: true } }
/>

)
}
but i cannot set  row height .
earliest reply will be appreciated
}

Hi @MaheshYTech you can use rowStyle={{ height: '100px'}}.
Here is a working example

Thanks @Ymbere

Thanks Xavier
On Sun, Feb 16, 2020 at 1:43 PM Allen<EMAIL_ADDRESS>wrote:

Closed #1199
https://github.com/react-bootstrap-table/react-bootstrap-table2/issues/1199
.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/react-bootstrap-table/react-bootstrap-table2/issues/1199?email_source=notifications&email_token=AMXETWBFV6BRZSPUEBW7223RDDYTHA5CNFSM4J2CJ66KYY3PNVWWK3TUL52HS4DFWZEXG43VMVCXMZLOORHG65DJMZUWGYLUNFXW5KTDN5WW2ZLOORPWSZGOWVD74EQ#event-3041394194,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AMXETWBJEBYHYUZP3ZRC34DRDDYTHANCNFSM4J2CJ66A
.

rowStyle={{ height: '100px'}}. I tried this,but it didnt work


Ability to track this component with custom_updater and tracker card

Would be great if we could track updates to this with HA's custom_updater and tracker card - A custom_components.json file

Requested multiple times. Custom_updater does not meet the needs of SmartIR. A new version comes soon with the ability to self-update.

Please read this post:
https://community.home-assistant.io/t/smartir-climate-component/100798/80

@smartHomeHub I think it is now support:
https://github.com/custom-components/custom_updater/wiki/components
It was good, because I can track all my components on one page. If it is possible, please consider to re-add it.


[BUG] AttributeError: 'FusedAdam' object has no attribute 'set_grad_none'

Describe the bug
When I use FusedAdam from deepspeed as an optimizer, without any other DeepSpeed features, it seems to crash due to a missing attribute. This is clear from the error trace. This is odd to me, because the init clearly has a set_grad_none attribute.
https://github.com/microsoft/DeepSpeed/blob/b4e5826a60b275600673a77478ecb749519caaf0/deepspeed/ops/adam/fused_adam.py#L70
ds_report output
DeepSpeed C++/CUDA extension op report
--------------------------------------------------
NOTE: Ops not installed will be just-in-time (JIT) compiled at
      runtime if needed. Op compatibility means that your system
      meet the required dependencies to JIT install the op.
--------------------------------------------------
JIT compiled ops requires ninja
ninja .................. [OKAY]
--------------------------------------------------
op name ................ installed .. compatible
--------------------------------------------------
cpu_adam ............... [YES] ...... [OKAY]
fused_adam ............. [NO] ....... [OKAY]
fused_lamb ............. [YES] ...... [OKAY]
sparse_attn ............ [NO] ....... [OKAY]
transformer ............ [NO] ....... [OKAY]
stochastic_transformer . [NO] ....... [OKAY]
async_io ............... [NO] ....... [OKAY]
transformer_inference .. [NO] ....... [OKAY]
utils .................. [NO] ....... [OKAY]
quantizer .............. [NO] ....... [OKAY]
--------------------------------------------------
DeepSpeed general environment info:
torch install path ............... ['/home/bram/.local/share/virtualenvs/tolkien-transformers-aNvOnYab/lib/python3.9/site-packages/torch']
torch version .................... 1.9.1+cu102
torch cuda version ............... 10.2
nvcc version ..................... 10.2
deepspeed install path ........... ['/home/bram/.local/share/virtualenvs/tolkien-transformers-aNvOnYab/lib/python3.9/site-packages/deepspeed']
deepspeed info ................... 0.5.4, unknown, unknown
deepspeed wheel compiled w. ...... torch 1.9, cuda 10.2

Error trace
Traceback (most recent call last):
File "python3.9/site-packages/torch/multiprocessing/spawn.py", line 59, in _wrap
fn(i, *args)
File "python3.9/site-packages/pytorch_lightning/plugins/training_type/ddp_spawn.py", line 201, in new_process
results = trainer.run_stage()
File "python3.9/site-packages/pytorch_lightning/trainer/trainer.py", line 1000, in run_stage
return self._run_train()
File "python3.9/site-packages/pytorch_lightning/trainer/trainer.py", line 1049, in _run_train
self.fit_loop.run()
File "python3.9/site-packages/pytorch_lightning/loops/base.py", line 111, in run
self.advance(*args, **kwargs)
File "python3.9/site-packages/pytorch_lightning/loops/fit_loop.py", line 200, in advance
epoch_output = self.epoch_loop.run(train_dataloader)
File "python3.9/site-packages/pytorch_lightning/loops/base.py", line 111, in run
self.advance(*args, **kwargs)
File "python3.9/site-packages/pytorch_lightning/loops/epoch/training_epoch_loop.py", line 130, in advance
batch_output = self.batch_loop.run(batch, self.iteration_count, self._dataloader_idx)
File "python3.9/site-packages/pytorch_lightning/loops/batch/training_batch_loop.py", line 100, in run
super().run(batch, batch_idx, dataloader_idx)
File "python3.9/site-packages/pytorch_lightning/loops/base.py", line 111, in run
self.advance(*args, **kwargs)
File "python3.9/site-packages/pytorch_lightning/loops/batch/training_batch_loop.py", line 147, in advance
result = self._run_optimization(batch_idx, split_batch, opt_idx, optimizer)
File "python3.9/site-packages/pytorch_lightning/loops/batch/training_batch_loop.py", line 201, in _run_optimization
self._optimizer_step(optimizer, opt_idx, batch_idx, closure)
File "python3.9/site-packages/pytorch_lightning/loops/batch/training_batch_loop.py", line 395, in _optimizer_step
model_ref.optimizer_step(
File "python3.9/site-packages/pytorch_lightning/core/lightning.py", line 1616, in optimizer_step
optimizer.step(closure=optimizer_closure)
File "python3.9/site-packages/pytorch_lightning/core/optimizer.py", line 206, in step
self.__optimizer_step(closure=closure, profiler_name=profiler_name, **kwargs)
File "python3.9/site-packages/pytorch_lightning/core/optimizer.py", line 128, in __optimizer_step
trainer.accelerator.optimizer_step(self._optimizer, self._optimizer_idx, lambda_closure=closure, **kwargs)
File "python3.9/site-packages/pytorch_lightning/accelerators/accelerator.py", line 292, in optimizer_step
make_optimizer_step = self.precision_plugin.pre_optimizer_step(
File "python3.9/site-packages/pytorch_lightning/plugins/precision/native_amp.py", line 57, in pre_optimizer_step
result = lambda_closure()  # native amp does not support closures
File "python3.9/site-packages/pytorch_lightning/loops/batch/training_batch_loop.py", line 235, in _training_step_and_backward_closure
result = self.training_step_and_backward(split_batch, batch_idx, opt_idx, optimizer, hiddens)
File "python3.9/site-packages/pytorch_lightning/loops/batch/training_batch_loop.py", line 543, in training_step_and_backward
self._optimizer_zero_grad(batch_idx, optimizer, opt_idx)
File "python3.9/site-packages/pytorch_lightning/loops/batch/training_batch_loop.py", line 426, in _optimizer_zero_grad
self.trainer.accelerator.optimizer_zero_grad(self.trainer.current_epoch, batch_idx, optimizer, opt_idx)
File "python3.9/site-packages/pytorch_lightning/accelerators/accelerator.py", line 308, in optimizer_zero_grad
model_ref.optimizer_zero_grad(current_epoch, batch_idx, optimizer, opt_idx)
File "python3.9/site-packages/pytorch_lightning/core/lightning.py", line 1639, in optimizer_zero_grad
optimizer.zero_grad()
File "python3.9/site-packages/deepspeed/ops/adam/fused_adam.py", line 78, in zero_grad
if self.set_grad_none:
AttributeError: 'FusedAdam' object has no attribute 'set_grad_none'
System info (please complete the following information):

OS: Ubuntu 20.04
GPU count and types: 4x Tesla V100
Python version: 3.9

Launcher context
Are you launching your experiment with the deepspeed launcher, MPI, or something else? Through PyTorch Lightning

Working on this right now.

@BramVanroy could you please provide a script to repro the bug? Thanks.


requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=10000)

Traceback (most recent call last):
File "/output/.pylibs/lib/python3.10/site-packages/gradio/queueing.py", line 624, in process_events
response = await route_utils.call_process_api(
File "/output/.pylibs/lib/python3.10/site-packages/gradio/route_utils.py", line 323, in call_process_api
output = await app.get_blocks().process_api(
File "/output/.pylibs/lib/python3.10/site-packages/gradio/blocks.py", line 2018, in process_api
result = await self.call_function(
File "/output/.pylibs/lib/python3.10/site-packages/gradio/blocks.py", line 1579, in call_function
prediction = await utils.async_iteration(iterator)
File "/output/.pylibs/lib/python3.10/site-packages/gradio/utils.py", line 691, in async_iteration
return await anext(iterator)
File "/output/.pylibs/lib/python3.10/site-packages/gradio/utils.py", line 685, in anext
return await anyio.to_thread.run_sync(
File "/usr/local/lib/python3.10/site-packages/anyio/to_thread.py", line 56, in run_sync
return await get_async_backend().run_sync_in_worker_thread(
File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2177, in run_sync_in_worker_thread
return await future
File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 859, in run
result = context.run(func, *args)
File "/output/.pylibs/lib/python3.10/site-packages/gradio/utils.py", line 668, in run_sync_iterator_async
return next(iterator)
File "/output/.pylibs/lib/python3.10/site-packages/gradio/utils.py", line 829, in gen_wrapper
response = next(iterator)
File "/output/GLM-4-Voice/web_demo.py", line 107, in inference_fn
response = requests.post(
File "/output/.pylibs/lib/python3.10/site-packages/requests/api.py", line 115, in post
return request("post", url, data=data, json=json, **kwargs)
File "/output/.pylibs/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/output/.pylibs/lib/python3.10/site-packages/requests/sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
File "/output/.pylibs/lib/python3.10/site-packages/requests/sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
File "/output/.pylibs/lib/python3.10/site-packages/requests/adapters.py", line 700, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=10000): Max retries exceeded with url: /generate_stream (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fd6219fe680>: Failed to establish a new connection: [Errno 111] Connection refused'))

同样的问题，你是怎么解决的

这一步需要先启动模型服务
python model_server.py --model-path glm-4-voice-9b
然后再使web_demo


ERROR Illegal state: failed to start kafka

this is still happening from time to time.
I read a past post but I don't see the kafka/zdata stuff to delete.
what part of the log do you need to see what happens ?

seems to be kind of:
NoNode for /brokers /config /admin things

removing the runtime engine subfolder seems to solve the issue.

Hi @vince62s ,
first of all thanks for the solution 😄
Anyways, the logs of the embedded Kafka process are reported in file runtime/<engine-name>/logs/embedded-kafka.log.
You don't find the folder kafka/zdata because we moved it in runtime and it's deleted every time MMT is restarted so we avoid the bug with Zookeeper.
Regarding your issue I have probably an idea of what happened: we store the various processes' pids in runtime folder. Now it can happen that after machine reboot a process gets exactly the same pid reported in our runtime folder.
If this happens, MMT thinks that a component is already running and don't start it. This of course could create problem with the engine start. Removing the runtime folder deletes this files so MMT is forced to restart everything again.
Have you noticed if you encounter this problem more often after a reboot?

this is definitely part of the problem, I figured it out.


Is there any limit for the archive tar.gz distro?

Hi,
I'm trying to create a LXC container from my docker image.
I'm getting some errors. The archive is not completely unzipped and untarred.
It seems that the archive tar.gz file is big more than 1.8 G.
Is there any limit for the archive tar.gz distro?
Best

No there is no limit. WSL just need a working bash or sh binary in /bin. But the .tar.gz file should be properly compressed with tar -czf command.

Closing as no response.

Sorry for not answering earlier, here are the steps to reproduce the problem:
On  a Linux Debian/Testing:
docker export $(docker create trophime/salome-8.4.0:nvidia) --ouptu="salome.tar"
gzip salome.tar

Then I copy the gzipped tarball on my Windows 10:
LXRunOffline.exe install -n Salome \
   -f C:/path/to/salome.tar.gz \
   -d C:\directory\you\want\to\keep\salome

and then I got an error see attached file.
salome.log

One more note: in the gzipped tarball
ar ztvf salome-8.4.0-nvidia.tar.gz | grep "opt/salome/Salome-V8_4_0-univ/modules/ADAO_V8_4_0/lib/python2.7/site-packages/salome/ADAO_COMPONENT"
drwxr-xr-x 71289/70017       0 2018-02-26 19:47 opt/salome/Salome-V8_4_0-univ/modules/ADAO_V8_4_0/lib/python2.7/site-packages/salome/ADAO_COMPONENT/
-rw-r--r-- 71289/70017     242 2018-02-26 19:08 opt/salome/Salome-V8_4_0-univ/modules/ADAO_V8_4_0/lib/python2.7/site-packages/salome/ADAO_COMPONENT/__init__.py
drwxr-xr-x 71289/70017       0 2018-02-26 19:47 opt/salome/Salome-V8_4_0-univ/modules/ADAO_V8_4_0/lib/python2.7/site-packages/salome/ADAO_COMPONENT__POA/
-rw-r--r-- 71289/70017     252 2018-02-26 19:08 opt/salome/Salome-V8_4_0-univ/modules/ADAO_V8_4_0/lib/python2.7/site-packages/salome/ADAO_COMPONENT__POA/__init__.py
-rw-r--r-- 71289/70017    4062 2018-03-19 13:27 opt/salome/Salome-V8_4_0-univ/modules/ADAO_V8_4_0/lib/python2.7/site-packages/salome/ADAO_COMPONENT_idl.py
lrwxrwxrwx 0/0                 0 2018-03-19 13:26 opt/salome/appli_V8_4_0/lib/python2.7/site-packages/salome/ADAO_COMPONENT -> /opt/salome/Salome-V8_4_0-univ/modules/ADAO_V8_4_0/lib/python2.7/site-packages/salome/ADAO_COMPONENT
lrwxrwxrwx 0/0                 0 2018-03-19 13:26 opt/salome/appli_V8_4_0/lib/python2.7/site-packages/salome/ADAO_COMPONENT__POA -> /opt/salome/Salome-V8_4_0-univ/modules/ADAO_V8_4_0/lib/python2.7/site-packages/salome/ADAO_COMPONENT__POA
lrwxrwxrwx 0/0                 0 2018-03-19 13:26 opt/salome/appli_V8_4_0/lib/python2.7/site-packages/salome/ADAO_COMPONENT_idl.py -> /opt/salome/Salome-V8_4_0-univ/modules/ADAO_V8_4_0/lib/python2.7/site-packages/salome/ADAO_COMPONENT_idl.py

@DDoSolitary seems like the error message concerns a soft link...
Could you please tell me what is the best way to "transform" a docker image into a Lxc image for WSL?

I don't think this error was caused by the symlink because the file couldn't be created is the link target rather than the link itself.

And in theory the tar.gz file is supported by LxRunOffline so it doesn't require any conversion.

I don't think this error was caused by the symlink because it is the link target rahter than the link itself that could't be created.

no need to compress it one way or the other?
What is exactly the difference between docker export and docker save?

Fixed in v3.
#36


Regular Expressions or Inheritance for keyd-application-mapper Classes

I'm wondering if keyd-application-mapper can be updated to accept a regular expression for X11 window class names.
There are cases where I'm trying to apply the same key bindings to an array of applications like both code-oss and firefox. Regular expression could help simplify the configuration as:
[(code-oss|firefox)]
# Swap Modifier Keys
meta = leftcontrol
control = leftmeta

# Preserve WM Meta key bindings
control.space = M-space
control.tab = M-tab
meta.space = C-space
meta.space = C-space

Otherwise, I'm curious about inheritance or anything else that can be used to simplify a configuration where different applications might use similar key bindings.
[mod-swap]
# Swap Modifier Keys
meta = leftcontrol
control = leftmeta

# Preserve WM Meta key bindings
control.space = M-space
control.tab = M-tab
meta.space = C-space
meta.tab = C-tab

[code-oss]
include mod-swap

[firefox]
include mod-swap

# Quit window using Mod+q
control.q = C-S-w

Unfortunately, for cases where you have a set of binds to apply to a set of applications, * and ? wildcards are not enough to help manage a use case like this elegantly.

At this point I don't want to break backward compatibility. The next major release (3.0) will probably introduce a different mechanism for application remapping to which I am not opposed to adding something like this, though I am not yet convinced that shared application bindings are common enough to warrant the additional complexity.

I mostly am trying to use MacOS like keybindings for M-c copy M-v paste on a Mac layout keyboard to keep shortcuts consistent when switching between MacOS and Linux.

I'm also using a software based KVM to share the same keyboard between Linux workstation and MacOS simultaneously. The layers configuration in default.conf works vary well so far, except when cutting over to the MacOS system while the conversion layers are still applying.

If the KVM uses uinput to generate events, then the best solution is to run the server on the macos machine and install the client on your linux machine.

If the keyd user can have the ability to pause the default.conf bindings while over software KVM, then this layers solution will work for me. There was a mention of being able to pause keybindings here, is that pause feature only for keyd-application-mapper or is it for all keyd bindings?

There is no way to 'pause' bindings without killing keyd, but you can override them (e.g keyd -e reset meta=layer(meta)) whenever your script detects a change.
For now I think I can use the MacOS layer configuration and kill the keyd service while on the native MacOS system and restarting it when connecting to the workstation.

Even with layer configurations I'm still using an "exclude" list of the root window, terminal and gaming applications that I don't wish to use those layer on. It would still be useful to configure an array of applications with a set of keybinds.

At the moment the only way to achieve this is to duplicate the bindings for each application:
e.g
[xterm]
meta = layer(meta)
[firefox]
meta = layer(meta)
etc..

Thank you for the suggestions, currently keyd -e reset meta=layer(meta) on change to MacOS is working perfectly. For per app configurations meta = layer(meta) works great as well. Using layers in this method reduced the unnecessary complexity in my configurations.

I am not yet convinced that shared application bindings are common enough to warrant the additional complexity.

Now that I have layers configured a little more properly, I'm not sure this additional complexity is worth it either.

Upvote (although it works just fine as-is, using repetition).
Many applications use "C-delete" and "C-backspace" for deleting words. Others use "A-d" and "A-backspace".
If one uses keyd-application-mapper to make application conventions consistent and if there are more applications than key use conventions, being able to specify a list of application names (instead of just globbing) would reduce repetition in the configuration file.


GSI ROM Support

The problem:
On my samsung galaxy a53 on stock rom this app was working without problem with 5 dim levels. Than I decided to flash a GSI (specifically Lineage OS 21). This obviously changed my device's properties, causing the app to not recognise my device. If I change back the device identifiers using a root shell, or editing the build.prop this isnt the case, but that causes a bunch of other issues on my device, since I'm not using stock rom, but still having the same values.

My idea for a possible solution:
If it was possible to manually define the device within the app. (or loading a stock build.prop file from internal storage)
Or an even simpler solution: an option in the app that would automatically identify the device, even on gsi roms by looking at /vendor/build.prop (since almost all people on custom gsi roms have root anyway).

Thanks for the input.
Sounds interesting, but to develop something like your proposed solution I would need to have a rooted device.
Maybe I will root one of my older Samsung phones at some point

Thanks for the input. Sounds interesting, but to develop something like your proposed solution I would need to have a rooted device.
Maybe I will root one of my older Samsung phones at some point

Not necessarly. But not just for my rootless soulution idea. For testing I can recommend emulating android using Waydroid (that you can root by super easily), since testing the flashlight might not be neceassry if we only talk about custom device detection

Thanks for the input. Sounds interesting, but to develop something like your proposed solution I would need to have a rooted device.
Maybe I will root one of my older Samsung phones at some point

Not necessarly. But not just for my rootless soulution idea. For testing I can recommend emulating android using Waydroid (that you can root by super easily), since testing the flashlight might not be neceassry if we only talk about custom device detection

I've read something about Waydroid a few days ago, I will try that out when I find time for this :)

@rabaimorp I am playing around with a different solution as proposed in #74, as the reporter seems to already have a working POC on his physical device.
Now I am curious if that solution would also work for your case, so please try out the POC at https://github.com/EmilEmilchen/simpleFlashDimmer.

I don't have "/sys/class/leds/torch-light0/brightness". "logcat | grep CitUtils" also returns nothing

This method would also not only require root but an rw system partition, which is not the default since Android 10

For my device I can do:
Level 1: echo 1001 > /sys/class/camera/flash/rear_flash
Level 2: echo 1002 > /sys/class/camera/flash/rear_flash
Level 3: echo 1004 > /sys/class/camera/flash/rear_flash
Level 4: echo 1006 > /sys/class/camera/flash/rear_flash
Level 5: echo 1009 > /sys/class/camera/flash/rear_flash
Off (disable light): echo 0 > /sys/class/camera/flash/rear_flash
This solution is geat, its just device specific. But an option to set a custom profile would solve the issue. Than you could just find out the trigger, and your levels, and just make a profile for your device in the app.

I don't have "/sys/class/leds/torch-light0/brightness". "logcat | grep CitUtils" also returns nothing

There may be be something at /sys/class/leds/, for me the folders have a different name than "light0".

This method would also not only require root but an rw system partition, which is not the default since Android 10

I'm not really into rooted OSs, but in my case I can write to that file on rooted Android 15 without any problem.

For my device I can do: Level 1: echo 1001 > /sys/class/camera/flash/rear_flash Level 2: echo 1002 > /sys/class/camera/flash/rear_flash Level 3: echo 1004 > /sys/class/camera/flash/rear_flash Level 4: echo 1006 > /sys/class/camera/flash/rear_flash Level 5: echo 1009 > /sys/class/camera/flash/rear_flash
Off (disable light): echo 0 > /sys/class/camera/flash/rear_flash
This solution is geat, its just device specific. But an option to set a custom profile would solve the issue. Than you could just find out the trigger, and your levels, and just make a profile for your device in the app.
Verified profiles could also be integrated into the app, so not everyone would have to create one manually. Since this method requires root anyways the app could look in /vendor/build.prop to find out the harware regardless of the custom rom installed. And than it could auto detect if there is a profile preset is available for that device already and auto apply it if so.

The idea with the profiles sounds promising, I can then only hope that people are collaborating and contributing their specific device setups.

Well, I alreaded shared the profile for my device (Samsung Galaxy a53)

For my device I can do:
Level 1: echo 1001 > /sys/class/camera/flash/rear_flash
Level 2: echo 1002 > /sys/class/camera/flash/rear_flash
Level 3: echo 1004 > /sys/class/camera/flash/rear_flash
Level 4: echo 1006 > /sys/class/camera/flash/rear_flash
Level 5: echo 1009 > /sys/class/camera/flash/rear_flash
Off (disable light): echo 0 > /sys/class/camera/flash/rear_flash

How did you find these values (1001, 1002, 1004, ...)?
That would be interesting for supporting other phones.

How did you find these values (1001, 1002, 1004, ...)? That would be interesting for supporting other phones.

By using and adb, or local root shell (termux for example).
First.  Got the file path. And since I'm on a gsi, I used phh treble to set my flashlight to every level and used "cat /sys/class/camera/flash/rear_flash" to get every value. (Setting the flashlight with phh is really inconvenient that why I want a better solution). If other people don't have access to set flashlight values at all, they could quickly dsu back to their stock rom (or any other rom that does) and find out there. All recent gsi's have this in phh, and most device specific roms also allow some way to change brightness if the hardware is capable.


Max LL and Average LL

Hello. Something just grabbed my attention. My model's log_likeligood in each and every iteration was around 70,000 but at the end the average LL was only 3.9676. Can anybody explain how the Average was calculated?

Average LL = LL/(number of observations)
3.96 is your average LL and around 70,000 is your LL.  Are you getting different numbers in the progress bar?

@mohrezazali  did this answer your question?

Closing. Feel free to reopen if needed!


KAFKA-12572: Add import ordering checkstyle rule and configure an automatic formatter

This PR is a part of KAFKA-10787 umbrella task, replacing the previous implementation here. In short, this PR provides automatic import ordering and checking configurations, which will be a foundation of actual code formatting tasks later. Here are some backgrounds.
When I first started KAFKA-10787, I thought it is a trivial one and can be resolved with only one PR. But it is entirely wrong.

It modifies hundreds of files; it is not only hard to review but also, every time it has some code conflict with the trunk branch.
As @mjsax already pointed out, the previous implementation omits the essential way of solving this problem - automatic import formatter. Since it includes the checkstyle rules only, it shows error messages for the import ordering violation and that's it.

For the reasons above, it is almost impossible to resolve this issue with one commit or PR.
So, I restarted this feature from scratch. First of all, I changed the approach like following:

Take an incremental approach, i.e., enlarge the import ordering rules applied area gradually. (In other words, narrow down the exception area to the import ordering rules, step by step.)
By adopting automatic code formatter, make the build tool to apply the import order automatically.

This approach has the advantages like:

We can apply the import order step by step; it is feasible to review and greatly reduces the possibility of code conflict.
The dev team doesn't have to care about the formatting anymore; the build tool automatically take cares of it.

With this scheme, we can expand the scope of auto-formatting and checkstyle incrementally.
In turn, I converted KAFKA-10787 into an umbrella one. As the first subtask, this PR do the following:

Define the import ordering rule in checkstyle: kafka, org.apache.kafka, com, net, org, java, javax and static imports. It is identical to what we discussed in the dev mailing list, except each package is grouped independely. (e.g., kafka and org.apache.kafka are regarded as independent groups.)
Add an eclipse formatter file, which includes:

Minimal formatting rules that follow current checkstyle rules.
ImportOrder rule for the newly introduced import ordering rule.

Add a spotless configuration to reformat the subset of modules automatically.

Here are some reasons for the decisions I made:

Why choose eclipse formatter?
As all of you know, Apache Kafka is using gradle as its build tool. To automatically apply the import ordering rule with gradle, we have to use spotless, which supports two formatters - google formatter and eclipse formatter.
If we choose google formatter, it changes not only import ordering but also the other aspects of code, like an indentation. To minimize non-import ordering modifications, I choose eclipse formatter, which supports a custom formatter configuration.
As you can see here, the formatter defines a minimal rules for out code only.

The original proposal consists of 3 groups: kafka/org.apache.kafka, com/org/net, java/javax, and static imports. Why are those packages separated into independent groups?
It's simple - the spotless automatic formatter doesn't allow packages with different prefixes into one group. So I separated them.

* Updated (June 10th 2021): The core module is excluded from the PR, and it now only focuses on providing auto-formatting configurations.
Committer Checklist (excluded from commit message)

[ ] Verify design and implementation
[ ] Verify test coverage and CI build status
[ ] Verify documentation (including upgrade notes)

I think @ijuma would be the best reviewer for the new gradle configuration introduced here.
@hachikuji @mjsax @ableegoldman @cadonna Could you have a look? The automatic formatter formatted core module here. Have a try! :smiley:

@cadonna Hi Bruno, Congratulations on becoming a committer.
Could you have a look? :bow:

Hi @cadonna,
Thanks again for your detailed review. Here is the update.
Following your suggestions, I tried some other configurations. First of all, there is no way to use automatic import ordering only - without any configuration, the formatter formats the code with its default configuration. So, we have to find the least-effecting configuration.
The major differences between the last draft are like the following:

Remove line wrapping rule for 120 characters.
Comment is not formatted anymore.
Remove bracing-related rules.

But, I kept the other rules, like:

As of present, both of 4 space indenting and 8 space indenting are co-existing in the code. I configured to use 4 space indenting for its majority.
Several styles for the parameter formatting for the class and method definition also exist in the code. It is configured to the least-effecting configuration.

Please have a look when you are free. Thanks again for the review!
+1. It would be better to check how the new configuration formats streams module. I tested with that module, for it has so many *.java files. :wink:

Hi @cadonna, Here is the fix.

Added a license header to eclipse-formatter.xml.
Re-add line break formatting with 200 characters. (It resolved lots of formatting issues!)

+1. in ClusterTestExtensions.java, a space is added between default and :, resulting default :; It seems like a bug in eclipse formatter. :disappointed:

Rebased onto the latest trunk. cc/ @cadonna

@cadonna I greatly appreciate your detailed review. Here is the update! :smile:

Shameless plug and related to CheckStyle:  ⏩  #10698 (needs a review / approval).

@cadonna Here it is, with the following: 1. making server-common to ignore import orders. 2. rebasing onto the latest trunk.
+1. It seems like we can make the eclipse formatter do not insert a newline at the end of the class, but not removing it. (see here.) So I reformatted the core module from the latest trunk.

@cadonna Here it is. Rebased onto the latest trunk + manually formatted MockController#{legacyAlterConfigs, incrementalAlterConfigs}. I also reviewed the other files and it seems no more similar cases exist.

@cadonna Here is the update. I excluded the core module from this PR (i.e., it contains formatting configurations only, not actual formatting now) and opened separate issues:

KAFKA-12910: Configure automatic formatter for org.apache.kafka.streams.state
KAFKA-12911: Configure automatic formatter for org.apache.kafka.streams.processor

As soon as this PR is merged, I start the issues above.

@cadonna Here it is. Rebased onto the latest trunk and removed the formatting section from README.md.

Rebased onto the latest trunk. cc/ @cadonna

Rebased onto the latest trunk. Also, I reflected the recent project structure change (i.e., storage → storage/api) by updating suppressions.xml. cc/ @cadonna @ableegoldman

Retest this please.

@dongjinleekr Do you have free time to fix the conflicts? I'd like to review it!


Fix a thread handle leak in the Process window Threads tab

Pretty sure this is a thread handle leak. The other code paths (e.g. for priority) call NtClose; but this particular one (critical) doesn't.

Pretty sure this is a thread handle leak

Yep it's a leak. Good catch!
The original code does close the handle but that line wasn't copied over for some reason when it was merged:
https://github.com/processhacker/plugins-extra/blob/a313bee6d290c5c0b6bf2ae04d1d16b688eed366/SetCriticalPlugin/main.c#L159-L171


Development

Coverage increased (+0.01%) to 99.536% when pulling b7374d64ae810681eb976a985b71d6ebada105cf on development into fa8f5a7c40253887c149d93dd2dfc4112bd21864 on master.

Coverage increased (+0.01%) to 99.536% when pulling b7374d64ae810681eb976a985b71d6ebada105cf on development into fa8f5a7c40253887c149d93dd2dfc4112bd21864 on master.

Coverage increased (+0.01%) to 99.536% when pulling b7374d64ae810681eb976a985b71d6ebada105cf on development into fa8f5a7c40253887c149d93dd2dfc4112bd21864 on master.


How to use v-if directives inside custom directives？

What problem does this feature solve?
I want to implement such a directive, but I don't know how to do it ！
There is no introduction in the document. Help me！
<template>

    <select-product-dialog v-if="showA" />

    <select-project-dialog v-if="showB"/>

    <settlement-dialog v-if="showC"/>

</template>

new Vue({
   data: {
       showA: false,
       showB: false,
       showC: false
   },
   created () {
       setTimeout(() => {
           this.showA = true;
           this.showB = true;
           this.showC = true;
       }, 0);
   }
});

What does the proposed API look like?
<template>

delay title

    <delay-component v-delay="100" />

</template>

Vue.directive('delay', {
    bind: function (el, binding, vnode) {
      // ??? how use v-if
    },
    inserted: function (el, binding, vnode) {

    },
    update: function (el, binding, vnode) {

    },
    unbind: function (el, binding, vnode) {

    },
  })

There is no such access in a directive. When the component is inserted, it means the v-if is true. if it triggers unbind, then it must have been removed by either the parent, a v-for or a v-if.

Hi, thanks for your interest but Github issues are for bug reports and feature requests only. You can ask questions on the forum, the Discord server or StackOverflow.


[Bug] Saving 3d lidar detection visualization results on a headless linux server

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 (dev-1.x) or latest version (dev-1.0).

Task
I'm using the official example scripts/configs for the officially supported tasks/models/datasets.
Branch
main branch https://github.com/open-mmlab/mmdetection3d
Environment
sys.platform: linux
Python: 3.8.17 (default, Jul  5 2023, 21:04:15) [GCC 11.2.0]
CUDA available: True
numpy_random_seed:<PHONE_NUMBER>
GPU 0: NVIDIA A30
CUDA_HOME: /usr
NVCC: Cuda compilation tools, release 11.2, V11.2.67
GCC: gcc (GCC) 8.4.1 20200928 (Red Hat 8.4.1-1)
PyTorch: 1.12.1+cu113
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.3
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.5.2
Build settings: BLAS_INFO=mkl, BUILD_TYPE=Release, CUDA_VERSION=11.3, 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 -Wno-missing-field-initializers -Wno-type-limits -Wno-array-bounds -Wno-unknown-pragmas -Wno-unused-parameter -Wno-unused-function -Wno-unused-result -Wno-unused-local-typedefs -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.12.1, USE_CUDA=ON, USE_CUDNN=ON, USE_EXCEPTION_PTR=1, USE_GFLAGS=OFF, USE_GLOG=OFF, USE_MKL=ON, USE_MKLDNN=OFF, USE_MPI=OFF, USE_NCCL=ON, USE_NNPACK=ON, USE_OPENMP=ON, USE_ROCM=OFF,

TorchVision: 0.13.1+cu113
OpenCV: 4.8.0
MMEngine: 0.8.2
MMDetection: 3.0.0
MMDetection3D: 1.2.0+8d14daa
spconv2.0: True
Reproduces the problem - code sample
For this problem, I haven't added any code other than the official source code
The version of the code I used was Merge branch 'main' into dev-1.x
Reproduces the problem - command or script
python tools/test.py projects/BEVFusion/configs/bevfusion_lidar_voxel0075_second_secfpn_8xb4-cyclic-20e_nus-3d.py trained_models/bev_lidar_only_epoch20.pth --show-dir work_dir/test_visual --task lidar_det
python demo/pcd_demo.py demo/data/kitti/000008.bin pointpillars_hv_secfpn_8xb6-160e_kitti-3d-car.py hv_pointpillars_secfpn_6x8_160e_kitti-3d-car_20220331_134606-d42d15ed.pth --out_dir work_dirs/test_visual/ --snapshot
Reproduces the problem - error message
Error Message for the first command:
/.conda/envs/openmmlab/lib/python3.8/site-packages/mmdet/models/task_modules/builder.py:17: UserWarning: ``build_sampler`` would be deprecated soon, please use ``mmdet.registry.TASK_UTILS.build()``
...
mmdetection3d/mmdet3d/evaluation/functional/kitti_utils/eval.py:10: NumbaDeprecationWarning: ...
Loads checkpoint by local backend from path: hv_pointpillars_secfpn_6x8_160e_kitti-3d-car_20220331_134606-d42d15ed.pth
 08/08 16:57:51 - mmengine - WARNING - `Visualizer` backend is not initialized because save_dir is None.
/.jhjobs/1691484341.145803.1.shell: line 13: 2690866 Segmentation fault      (core dumped) python tools/test.py projects/BEVFusion/configs/bevfusion_lidar_voxel0075_second_secfpn_8xb4-cyclic-20e_nus-3d.py trained_models/bev_lidar_only_epoch20.pth --show-dir work_dir/test_visual --task lidar_det

Error Message for the second command:
Segmentation fault      (core dumped) python demo/pcd_demo.py demo/data/kitti/000008.bin pointpillars_hv_secfpn_8xb6-160e_kitti-3d-car.py hv_pointpillars_secfpn_6x8_160e_kitti-3d-car_20220331_134606-d42d15ed.pth --out-dir work_dirs/test_visual/
Additional information
I tried to save visualization results on an Ubuntu server without a display, but received a "segmentation fault" and "core dumped" error.
Using the following command, I tested the BEVFusion lidar-only network on the nuscenes dataset (official implementation: mmdetection3d/projects/BEVFusion/configs/bevfusion_lidar_voxel0075_second_secfpn_8xb4-cyclic-20e_nus-3d.py). I attempted to save the visualization effect using the --show_dir parameter.
I then attempted to save the results of a single frame by running demo/pcd_demo.py using the official example.
Whether or not I add the --snapshot parameter, I receive the "segmentation fault" and "core dumped" error
So, I'd like to know if there's an issue with my command-line parameters for saving results without online visualization. If there's an issue, could you advise on how to save visualization results? If the command-line parameters are correct, then it might be a bug causing the issue. I appreciate any responses!

In our latest version ' --snapshot' should have been deprecated (of course it's a bug), and we currently do not support saving 3d lidar detection visualization results on a headless linux server. Besides, if you want to save the results and open it on your local monitor,  you may need to save the results into meshlab format.


kafka sink connection is slower in writing in DB

Used MQTT - Malaria to publish the message to Kafka, The MQTT takes only 1 min to publish 4 million records from MQTT to Kafka but in Scylla insertion, it takes 10 mins.
Why its 10 times slower?
Is there any way to make it faster?

You should try to improve the performance by:

Setting higher tasks.max (higher parallelism for connector)
Higher number of partitions of source topic (should be higher than tasks.max)

No performance increment, Changed the partition topic to
10 and task.mx =12 but still slower when writing to the scylla

Could you provide some more details about the node size of your Scylla cluster? What is the number of shards/vCPUs in that cluster, was smp configuration modified? What is the CPU/disk usage of it (is some core pegged at 100%)?
Could it be that you have many writes to a single partition key - causing a hot partition in Scylla? (You could use this tool: https://docs.scylladb.com/operating-scylla/nodetool-commands/toppartitions/ to check it. Note that it works "in real-time", not after the fact)

Machine type
e2-standard-16 (16 vCPUs, 64 GB memory) -HDD
3 Node cluster
Moderately using the processor.
While using sink connection taking 30-35 mins for dumbing 6 Million records, i.e 3000-4000 records per second.
Is this Kafka-Scylla-sink connection performance is normal or it needs to be enhanced for better performance?
We tried increasing and changing many methods/configurations in the Kafka server. But in end, it takes above mentioned time dilation.

After upgrade from HDD to SSD disk, we achieve 12 million data in 19 minutes with machine configuration (e2-standard-16 (16 vCPUs, 64 GB memory) . Attached log for your reference
We are monitoring scylla using nodetool command
nodetool toppartitions mqtest topic1 5000  and  nodetool tablehistograms mqtest topic1 (Took log when write data 12 million data's) -PFA
Scylla nodes using local SSD disks.
MQTT proxy -> Confluent kafka producer time (2.8 minutes) for 12 million data
Confluent kafka producer -> kafka sink scylla connector -> dump in scylla DB took 19 minutes
Above logs are confirmed using confluent kafka control center

Messages reached Confluent-Kafka from MQTT-Malaria within 3 mins using Confluent-Kafka-MQTT-Proxy, but still, 6 times [19 mins]slower for dumbing records to Scylla using sink connection in Kafka.

Created a Pull Request #36, that improves the way we insert rows to Scylla. I believe it will help the performance and scalability in this issue.

Have to check the above method.
Have another doubt, the machine we use  16 core process.  Scylla-shard is using 2 cpu only

Is this setup correct!.
Tried to increase using below method:
https://docs.scylladb.com/getting-started/scylla_in_a_shared_environment/
Got an Error while starting the Scylla

What installation method did you use in the beginning? (For example in: https://www.scylladb.com/download/#server, we have installers for specific Linux distributions, Docker and Unified Installer)
Could you post the output of running hwloc-ls command? (you might need to install a package to have this command on your system)

Installation Method: Linux distribution
Result of running  hwloc-ls in scylla machine:

What are the contents of your /etc/scylla.d/cpuset.conf file? Did you manually change it or run scylla_cpuset_setup?
Also your systemctl status scylla-server.service screenshot is truncated (e.g. full command line options are not visible).
Could you post the full log? (piping journalctl into file). That way we could determine if there is also --cpuset command line option there.

The default config is left unchanged in
/etc/scylla.d/cpuset.conf
which is mentioned below
# DO NO EDIT
# This file should be automatically configure by scylla_cpuset_setup
#
# CPUSET="--cpuset 0 --smp 1"
CPUSET="--cpuset 0-1 "

log is attached as text file below, when tried to increase the shard
scylla_log.txt

So /etc/scylla.d/cpuset.conf file with --cpuset 0-1 causes this problem. Scylla tries to launch only on cores 0, 1 - not utilizing all other cores.
A temporary fix would be to change this file to:
CPUSET="--cpuset 0-15 "

I am now trying to determine why the setup configured it that way. Unfortunately, I have not been able to reproduce this issue myself, even on similar Google Cloud instances.
It would be very helpful if you could describe:

What Linux distribution version are you running? (What image did you select in Google Cloud?)
What types of disks and how many did you attach to this instance? (Balanced persistent disk? SSD persistent disk? Standard persistent disk? Local SSD?)
Did you run scylla_setup? Did it complete 100% successfully?

Tested withCPUSET="--cpuset 0-10 " and
CPUSET="--cpuset 0-15 "

and cpu info are shared below for CPUSET="--cpuset 0-15 "
scylla- master:

scylla-1:

scylla-2:

But result are same as previous of using 0-1 cpu for both CPUSET="--cpuset 0-10 " and CPUSET="--cpuset 0-15 " tesst
i.e : avg 8.5k records per sec only.
Inference of defaut cpu config:

Inference of 0-10 cpu config:

Inference of 0-15 cpu config:

SSD persistent disk

Its completed 100%

I did a performance test today trying to replicate your environment (same instance types etc.) and I was easily able to achieve 90000 msg/s replicated to Scylla.
Here's how I configured it, so you can compare it with your setup and determine what's different. I tried to make it as similar to your setup according to the information you gave us:
Configuration
I started 4 e2-standard-16 instances. 3 of them used for Scylla, 1 used for Kafka (Confluent Platform). All instances were configured with Ubuntu 20.04 LTS (ubuntu-2004-focal-v20210415), 64 GB SSD persistent disk. Note that Scylla does NOT recommend using SSD persistent disks - they have worse performance than SSD local NVMe disks (those are available on GCP). Best to my knowledge, persistent disk IOPS is related to its size (so smaller disks have slower performance). If I were to guess, if you started GCP instances with smaller disks that could be a reason for slower performance. Just to be thorough: those instances were all started in the same us-east1-b zone. GCP assigned Haswell CPU to those started instances.
I installed Scylla 4.4.1 on 3 instances, sticking to those install instructions for Ubuntu 20.04: https://www.scylladb.com/download/#server
I created the following schema:
CREATE KEYSPACE ks WITH replication = {'class': 'SimpleStrategy', 'replication_factor': '1'};
CREATE TABLE ks.mytopic (
    pk text,
    ck text,
    v1 text,
    v2 text,
    PRIMARY KEY (pk, ck)
);

I then installed Confluent Platform the fourth instance. I installed Confluent 6.1.1 and started it in "local" mode:
bin/confluent local services start

I then created mytopic topic with 10 partitions. I did not use "MQTT - Malaria" to insert the data, but I did write a script myself to insert the data to Kafka. The data is inserted in JSON format. The data in those messages is 100 bytes large (saw that size on one of your screenshots) - 4 fields of 25 bytes. Here's an example message I inserted:
Key:
{"pk":"0834588735394723782854083","ck":"1278455771788978695108659"}

Value:
{"pk":"0834588735394723782854083","ck":"1278455771788978695108659","v1":"4780395579276126211315500","v2":"1765827918224656554653845"}

Here's a script that I used to generate:
import random
import string

for i in range(20000000):
    pk = ''.join(random.choice(string.digits) for i in range(25))
    ck = ''.join(random.choice(string.digits) for i in range(25))
    v1 = ''.join(random.choice(string.digits) for i in range(25))
    v2 = ''.join(random.choice(string.digits) for i in range(25))
    print(f'{{"pk":"{pk}","ck":"{ck}"}}${{"pk":"{pk}","ck":"{ck}","v1":"{v1}","v2":"{v2}"}}')

I piped it into kafka-console-producer --broker-list localhost:9092 --topic mytopic --property "parse.key=true" --property "key.separator=$" > /dev/null, thereby inserting 20 million messages to Kafka (3.93GB of data).
Only after that, I started the connector. The connector will therefore catch up on those 20 million messages. This is a time I measured to determine messages per second.
I started the connector with the following configuration:
{
  "name": "mytopic_connector",
  "config": {
    "connector.class": "io.connect.scylladb.ScyllaDbSinkConnector",
    "tasks.max": "10",
    "key.converter": "org.apache.kafka.connect.json.JsonConverter",
    "value.converter": "org.apache.kafka.connect.json.JsonConverter",
    "topics": "mytopic",
    "scylladb.contact.points": "<IP_ADDRESS>",
    "scylladb.port": "9042",
    "scylladb.keyspace": "ks",
    "key.converter.schemas.enable": "false",
    "value.converter.schemas.enable": "false"
  }
}

The connector replicated all those 20M messages in about ~4 minutes. The metrics in Confluent Control Center said it was consuming the messages 90k per second.
Comparing with cassandra-stress
For comparison, I ran cassandra-stress to insert similar data to Scylla. cassandra-stress started with 32 threads was able to insert 64k rows per second. When started with 256 threads, it is able to insert 180k rows per second. I would consider those numbers the upper limit of operations per second that the connector could achieve.
You could run it to benchmark your Scylla cluster directly (to better locate where are the bottlenecks).
Here's the commands I used:
contents of test_profile.yaml:
keyspace: ks
table: t
keyspace_definition: |
  CREATE KEYSPACE IF NOT EXISTS ks WITH replication = {'class': 'SimpleStrategy', 'replication_factor': '1'};
table_definition: |
  CREATE TABLE ks.t (
    pk text,
    ck text,
    v1 text,
    v2 text,
    PRIMARY KEY (pk, ck))
columnspec:
  - name: pk
    population: uniform(1..1B)
    size: fixed(25)
  - name: ck
    population: uniform(1..1B)
    cluster: fixed(1)
    size: fixed(25)
  - name: v1
    size: fixed(25)
  - name: v2
    size: fixed(25)
insert:
  partitions: fixed(1)
  batchtype: UNLOGGED
  select: fixed(1)/1
queries:
  dummy:
    cql: select * from ks.t where pk = ?
    fields: samerow

cassandra-stress user profile="test_profile.yaml ops(insert=1) cl=QUORUM n=100000000" -port jmx=6868 -mode cql3 nativ
e -rate threads=256 -log level=verbose interval=5 -errors retries=999 ignore -node <IP_ADDRESS>

/cc @haaawk @mailmahee - any further suggestions?

How to pipe the script to console producer? Is that we have write the output of python script to text file and have to pass like below
 kafka-console-producer --broker-list localhost:9092 --topic mytopic --property "parse.key=true" --property "key.separator=$" > **/home/msg.txt**
https://grokbase.com/t/kafka/users/157b71babg/kafka-producer-input-file
in above link they suggested  '<' instead of '>'
But in this one.  kafka-console-producer --broker-list localhost:9092 --topic mytopic --property "parse.key=true" --property "key.separator=$" > **/home/msg.txt** ,  after executing this one, again its asking from terminal only , the message from the file is not written, and also the text file messages are deleted and '>' symbol only exists in that file.
So tried the link, but in that got an error as below:
>>>>>>>org.apache.kafka.common.KafkaException: No key found on line 7:
	at kafka.tools.ConsoleProducer$LineMessageReader.readMessage(ConsoleProducer.scala:290)
	at kafka.tools.ConsoleProducer$.main(ConsoleProducer.scala:51)
	at kafka.tools.ConsoleProducer.main(ConsoleProducer.scala)

my msgs.txt file contains following data:
{"pk":"5383050633966007251767624","ck":"2351157012664789339162111"}${"pk":"5383050633966007251767624","ck":"2351157012664789339162111","v1":"1817516021340158203567587","v2":"2910965515187087901012931"}
{"pk":"6994899163657923407089875","ck":"5289415245892327891422090"}${"pk":"6994899163657923407089875","ck":"5289415245892327891422090","v1":"0417224890743411888265830","v2":"9922395026236272145178648"}
{"pk":"6374381658119263847927150","ck":"2726060561016862847553900"}${"pk":"6374381658119263847927150","ck":"2726060561016862847553900","v1":"0907483986010632348576128","v2":"6449874579723786924708913"}
{"pk":"8470349218715220430052984","ck":"3934975212135931424421814"}${"pk":"8470349218715220430052984","ck":"3934975212135931424421814","v1":"6628719981145888385828291","v2":"1946994662626878622031433"}
{"pk":"9027299519289724274975092","ck":"4995944009183369868274592"}${"pk":"9027299519289724274975092","ck":"4995944009183369868274592","v1":"5557268425012649342769310","v2":"2843189179918797221756187"}
{"pk":"8981545887416410257532957","ck":"1002198171808576158529184"}${"pk":"8981545887416410257532957","ck":"1002198171808576158529184","v1":"0658244957680336832084997","v2":"0698490331806279932790852"}

How to pipe the script to console producer?

Assuming the script is saved to gen.py:
python3 gen.py > msg.txt
bin/kafka-console-producer --broker-list localhost:9092 --topic mytopic --property "parse.key=true" --property "key.separator=$" > /dev/null < msg.txt

Closing as it seems it was environment problem


Create dev VM Vagrantfile

ubuntu/trusty64 ubuntu/xenial64 base image.
Should provision Docker and any other dev tools needed.
Use VirtualBox provider for now.  Switch to Hyper-V later.

Troubleshooting to install vboxdrv service on Windows 10 Home:

https://stackoverflow.com/a/38773334/152963
https://stackoverflow.com/a/34778257/152963

tl;dr; Registry entry for service definition was wrong.

Vagrantfile created:
https://gist.github.com/patheard/f6d0d79e5d6049554d6ae7e07e31f961
Related #3

ubuntu/xenial64 Vagrantfile:
https://gist.github.com/patheard/665b125bb522352d5d63df2fe9f363ed

Docker commands for CI:
# html-proofer
$ docker run -v $PWD/_site:/site 18fgsa/html-proofer /site --alt-ignore "/assets/img/dtf-logo.svg"

# jekyll build
$ export JEKYLL_VERSION=3.8
$ docker run --rm --volume="$PWD:/srv/jekyll" -it jekyll/builder:$JEKYLL_VERSION jekyll build


Django: Extend Admin Dashboard to show which instance of the db is loaded/running

The Admin Dashboard banner (at login and after login) shows which PostgreSQL instance is loaded in prod, as originally requested in Issue #124 and as implemented in PR #134. But as the next step, this feature needs to be extended to show in the staging pipeline as well as locally with db.sqlite.
The problem is that the local dev server Admin banner says: “Currently there is no database set to DATABASE_URL”.
The other problem is that Admin banner in the staging pipeline says: “Currently you are running app on localhost”
What I need is for the Admin banner (for both staging and locally) to be more specific and look more like prod by showing this for example: “HEROKU_POSTGRESQL_NAVY_URL / postgresql-real-1”

I've determined that this feature is more work than it is worth. Closed


Issue with Reproducing Results

Hello, great work on your paper! I am trying to reproduce the results but am having some issues for some environments, most notably for humanoid-dir and walker-rand-params.
I'm running experiments on a machine with Ubuntu 18.04.4 LTS and TITAN RTX. I am trying to run on Ubuntu 16.04 (but not GPU) and am getting similar results.
I have plots humanoid-dir and walker-rand-params. The blue curves are the results you uploaded to Dropbox; the orange is what I produced (I haven't ran them for that long but they look very different from what you had. I've tested from a clean clone of this repo  and am using the same configs.
Do you have any idea why this is happening? Thanks in advance!

Thanks for bringing this issue to our attention! Please see the latest two commits which fix the problem. Let us know if you have any other problems with code.