Nextflow 22.10.6 : cannot connect to internet

Describe the bug
The latest update introduced a sandbox environment in nix package. It should be the way of doing things as the nextflow binary (actually a script with binary in it...) tries to download some dependencies apparently.
But execution fails on my test. A fix is to disable the sandbox as previous versions. Thanks !
Steps To Reproduce
Steps to reproduce the behavior:

Install 22.10.6 from unstable
./result/bin/nextflow gives

ERROR: Cannot download nextflow required file -- make sure you can connect to the internet

Alternatively you can try to download this file:
    https://www.nextflow.io/releases/v22.10.6/nextflow-22.10.6-all.jar

and save it as:
    .//nix/store/md2b1ah4d7ivj82k8xxap30dmdci00pa-nextflow-22.10.6/bin/.nextflow-wrapped

Expected behavior
Outputs help message.
Additional context
This did not occurred with 22.10.4
Notify maintainers
@wegank

Metadata
[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
this path will be fetched (0.00 MiB download, 0.00 MiB unpacked):
  /nix/store/54sf9jdagbqrxzwbj59s8nfr2p7srs6v-nix-info
copying path '/nix/store/54sf9jdagbqrxzwbj59s8nfr2p7srs6v-nix-info' from 'https://cache.nixos.org'...
 - system: `"x86_64-linux"`
 - host os: `Linux 4.18.0-348.el8.0.2.x86_64, Rocky Linux, 8.5 (Green Obsidian), nobuild`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.11.0`
 - channels(root): `""`
 - channels(1565): `"nixpkgs"`
 - channels(1629): `"nixpkgs-22.05"`
 - channels(1696): `"nixpkgs"`
 - channels(1038): `"nixpkgs"`
 - nixpkgs: `/Home/Users/apraga/.nix-defexpr/channels/nixpkgs`

I can't reproduce the problem on my machine:
$ result/bin/nextflow
Usage: nextflow [options] COMMAND [arg...]

Options:
  -C
     Use the specified configuration file(s) overriding any defaults
  -D
     Set JVM properties
  -bg
     Execute nextflow in background
  -c, -config
     Add the specified file to configuration set
  -config-ignore-includes
     Disable the parsing of config includes
  -d, -dockerize
     Launch nextflow via Docker (experimental)
  -h
     Print this help
  -log
     Set nextflow log file path
  -q, -quiet
     Do not print information messages
  -syslog
     Send logs to syslog server (eg. localhost:514)
  -v, -version
     Print the program version

Commands:
  clean         Clean up project cache and work directories
  clone         Clone a project into a folder
  config        Print a project configuration
  console       Launch Nextflow interactive console
  drop          Delete the local copy of a project
  help          Print the usage help for a command
  info          Print project and system runtime information
  kuberun       Execute a workflow in a Kubernetes cluster (experimental)
  list          List all downloaded projects
  log           Print executions log and runtime info
  pull          Download or update a project
  run           Execute a pipeline project
  secrets       Manage pipeline secrets (preview)
  self-update   Update nextflow runtime to the latest available version
  view          View project script file(s)

$ result/bin/nextflow run nextflow-io/hello
N E X T F L O W  ~  version 22.10.6
Pulling nextflow-io/hello ...
 downloaded from https://github.com/nextflow-io/hello.git
Launching `https://github.com/nextflow-io/hello` [thirsty_albattani] DSL2 - revision: 1d71f857bb [master]
executor >  local (4)
[0a/355e36] process > sayHello (4) [100%] 4 of 4 ✔
Bonjour world!

Ciao world!

Hello world!

Hola world!

But would be happy to review the PR if you have the fix on hand.

It only happens in a "closed" environment (supercomputer facility, where internet access is not easy to set up).
Thanks for answering so quickly, the PR is there #224279 .

I can't reproduce this anymore with nixpkgs-unstable.


Return copied kernel filename for flutter test execution.

This fixes 'flutter test --preview-dart-2' crash when kernel file at shared location is getting overwritten/deleted.

thanks, @alexmarkov !


[Feature Request] Use Roaring64Bitmap to optimize termsQury query in Long type

Is your feature request related to a problem? Please describe
In #14774, we introduce RoaringBitmap to optimize termsQury query in Integer type, Roaring64Bitmap and Roaring64NavigableMap are also provided to encode Long, which can be used in termsQury query in Long type.
Describe the solution you'd like
As Roaring64Bitmap seems to be more space-efficient,  If we could use it to optimize termsQury query in Long type? I'm please to implement it.
Related component
Search
Describe alternatives you've considered
No response
Additional context
No response

@msfroh, @bowenlan-amzn, please help confirm it.

Hmm... we'll need to think about backward compatibility and serialization. In particular, we currently rely on RoaringBitmap having a well-specified (language-independent) binary representation that we can send as a base64-encoded payload.
Checking the JavaDoc for Roaring64Bitmap#serialize, it says:

Serialize this bitmap. Unlike RoaringBitmap, there is no specification for now: it may change from one java version to another, and from one RoaringBitmap version to another.

If we do want to add support for Roaring64Bitmap, I think we would want to pass some additional info to the query (like instead of the type being bitmap, it would be bitmap64). We would need to tag the stored values with some kind of version information -- which is also hard to do with the current implementation, since we're just storing a binary stored field. I think the client/server communication is the hardest part -- how do we, on the server, know what version of Roaring64Bitmap is being used by the client to send the base64-encoded bytes?
It does look like there's a format extension designed for 64-bits: https://github.com/RoaringBitmap/RoaringFormatSpec?tab=readme-ov-file#extension-for-64-bit-implementations, but that not also says:

Java Roaring bitmaps implementation offers an ART-based 64-bit implementation. It may reach better performances (compression and/or computation). But as of 2022-11, it is not compatible with this Serialization format.

I'm not totally opposed to 64-bit support, but I worry that the format may not be fully settled yet, which might cause maintenance problems down the road.

@msfroh Very thank you for your detailed reply.
I will close the issue, If there is any progress, I will open it again.


Get Java stack traces while GC is running

The problem is JVM isn't ready to walk through Java stacks while GC is active. AsyncGetCallTrace API does not support that and returns an error (ticks_GC_active) in such cases.
At the same time application threads are known to be at safepoint while GC is running, so it should be possible to obtain correct Java stack by other means.

Profiler now attempts to get Java stack trace while GC is active.


Bump TorBrowser to 5.0.6

Thank you for the contribution. It was merged directly as 2bf55c1bf284756edfb7cb96f075919a898cefc4 to keep commit history cleaner. Your contribution is still credited to you.


Consider shackle.el

Emacs package shackle looks like it might be useful.

Closing as not that useful. If you want it, please comment.


Flutter 3.0 fixes

This does fix some issues in Flutter v3 as discussed here: https://github.com/mono0926/barcode_scan2/issues/49 and https://github.com/mono0926/barcode_scan2/issues/48

@mono0926 can you merge this?


API Suggestions: channels

Those 2 suggestions aim to reduce the use of channels to facilitate tss-lib integration.
Suggestion 1:
tss.Party.Start() could return what the endCh contains at the end of the protocol. For that it needs to return a struct that contain a *keygen.LocalPartySaveData and *common.SignatureData.
type End struct {
    endKey *keygen.LocalPartySaveData
    endSig *common.SignatureData
}

type Party interface {
    Start() (*End, *tss.Error)
    ...
}

Suggestion 2:
NewLocalParty functions could take a function instead of the out chan<- tss.Message.
type Sender func(msg tss.Message, isBroadcast bool, to uint16)

That would require the protocols to change the implementation to call the provided sendMsg function.
Bellow is the new NewLocalParty functions signature according to those 2 suggestions:
keygen.NewLocalParty(
    params *tss.Parameters,
    sendMsg Sender,
    optionalPreParams ...LocalPreParams
)

...

resharing.NewLocalParty(
    params *tss.ReSharingParameters
    key keygen.LocalPartySaveData,
    sendMsg Sender,
)

...

signing.NewLocalParty(
    msg *big.Int,
    params *tss.Parameters,
    key keygen.LocalPartySaveData,
    sendMsg Sender,
    fullBytesLen ...int
)

Concerns: the change from channel to function might cause drawbacks. We must analyze the impact before implementing:

API breaking change
the use of a function can block the process. So in the implementation, we would do go sendMsg(..), so the goroutine will be in the implementation side. We need to be sure it will not cause deadlocks or race conditions


CWD has home path twice

Running npm-check globally is giving me errors that all the packages are missing.
They are not, and npm can install/update them fine, it is just npm-check that is borking the cwd.
Also, I have a custom NODE_PATH set in my bash profile like:
export NPM_PACKAGES="${HOME}/.npm-packages"
export NODE_PATH="${NPM_PACKAGES}/lib/node_modules:${NODE_PATH}"
export PATH="${NPM_PACKAGES}/bin:$PATH"

running a normal npm-check update with global options I get the modules as all missing, and I see the global path is correct /Users/lantrix/.npm-packages/lib/node_modules:
$ npm-check -ug
warning: Using the first of multiple paths specified in NODE_PATH
The global path you are searching is: /Users/lantrix/.npm-packages/lib/node_modules
? Choose which packages to update. (Press <space> to select)

 Missing. You probably want these.
❯◯ npm-check missing                5.9.0  https://github.com/dylang/npm-check
 ◯ npm-install-missing missing      0.1.4  https://github.com/AlexCline/npm-install-missing
 ◯ npm missing                      6.4.1  https://docs.npmjs.com/

 Minor Update New backwards-compatible features.
 ◯ eslint missing      5.2.0   ❯  5.6.1   https://eslint.org
 ◯ serverless missing  1.28.0  ❯  1.32.0  https://github.com/serverless/serverless#readme

 Space to select. Enter to start upgrading. Control-C to cancel.

But when I look at the debug output, the cwd is wrong. It has ${HOME} in the path as well as the existing home path, yielding a working directory of:
/Users/lantrix/${HOME}/.npm-packages/lib/node_modules
$ npm-check -ug --debug
[npm-check] debug
cli.flags { update: true,
  u: true,
  updateAll: false,
  y: false,
  global: true,
  g: true,
  skipUnused: false,
  s: false,
  production: false,
  p: false,
  devOnly: false,
  d: false,
  saveExact: false,
  E: false,
  color: false,
  emoji: true,
  spinner: true,
  debug: true,
  dir: '/Users/lantrix' }
===============================
[npm-check] debug
cli.input []
===============================
[npm-check] debug
set key spinner to value true
===============================
[npm-check] debug
set key ignore to value undefined
===============================
warning: Using the first of multiple paths specified in NODE_PATH
The global path you are searching is: /Users/lantrix/.npm-packages/lib/node_modules
[npm-check] debug
set key cwd to value /Users/lantrix/${HOME}/.npm-packages/lib/node_modules
===============================
[npm-check] debug
set key globalPackages to value { eslint: '5.2.0',
  'npm-check': '5.9.0',
  'npm-install-missing': '0.1.4',
  npm: '6.4.1',
  serverless: '1.28.0' }
===============================
[npm-check] debug
set key unusedDependencies to value [ undefined, undefined ]
===============================
[npm-check] debug
set key missingFromPackageJson to value {}

This ultimately means that the package.json can't be found for the modules. (I removed all but one of the failed modules to trim the debug output)
===============================
[npm-check] debug
current state { update: true,
  updateAll: false,
  global: true,
  cwd: '/Users/lantrix/${HOME}/.npm-packages/lib/node_modules',
  skipUnused: false,
  ignoreDev: false,
  devOnly: false,
  forceColor: false,
  saveExact: false,
  specials: undefined,
  debug: true,
  emoji: true,
  spinner: true,
  installer: 'npm',
  ignore: undefined,
  globalPackages:
   { eslint: '5.2.0',
     'npm-check': '5.9.0',
     'npm-install-missing': '0.1.4',
     npm: '6.4.1',
     serverless: '1.28.0' },
  cwdPackageJson: { devDependencies: {}, dependencies: {} },
  packages:
   [ { moduleName: 'eslint',
       homepage: 'https://eslint.org',
       regError: undefined,
       pkgError: Error: A package.json was not found at /Users/lantrix/${HOME}/.npm-packages/lib/node_modules/eslint/package.json
    at readPackageJson (/Users/lantrix/.npm-packages/lib/node_modules/npm-check/lib/in/read-package-json.js:12:21)
    at createPackageSummary (/Users/lantrix/.npm-packages/lib/node_modules/npm-check/lib/in/create-package-summary.js:18:31)
    at allDependenciesIncludingMissing.map.moduleName (/Users/lantrix/.npm-packages/lib/node_modules/npm-check/lib/in/index.js:38:32)
    at Array.map (<anonymous>)
    at /Users/lantrix/.npm-packages/lib/node_modules/npm-check/lib/in/index.js:38:14
    at Generator.next (<anonymous>)
    at onFulfilled (/Users/lantrix/.npm-packages/lib/node_modules/npm-check/node_modules/co/index.js:65:19)
    at <anonymous>,
       latest: '5.6.1',
       installed: '5.2.0',
       isInstalled: false,
       notInstalled: true,
       packageWanted: '5.2.0',
       packageJson: '5.2.0',
       notInPackageJson: undefined,
       devDependency: false,
       usedInScripts: undefined,
       mismatch: false,
       semverValid: '5.2.0',
       easyUpgrade: false,
       bump: 'minor',
       unused: false } ],
  unusedDependencies: [ undefined, undefined ],
  missingFromPackageJson: {} }
  ===============================

I can't find why this is putting ${HOME} in the working direction in addition to the existing home /Users/lantrix/
$ echo $HOME
/Users/lantrix

Have the same issue.


No query helpers generated for string queries

If we have a query like this:
#[returns(Config)]
GetConfig,

The client will not generate a query helper for it, rather just ignore it (unless i missed an option for it)
Tho it will recognize it as a type in the types file:
export type QueryMsg = "get_admin" | "get_config" ...

But that doesn't help much, as the general query of the SigningCosmWasmClient function doesn't know those types, so its not really giving me any type checks.

The preferred way for me:
To generate a simple helpers for those queries as well, will make it a lot easier to use.

Less preferred  way
Generate a general query message specific to the schema, this at least will give us some type checks as the general query function will accept the contract specific QueryMsg and not just any.
Something like:

query = async (msg: QueryMsg): Promise<any> => {
    return this.client.queryContractSmart(this.contractAddress, msg);
  };

This is impacting me as well :)

bump!


How much GPU Ram is needed? and does the code work with the full data from validation/testing_interactive?

Dear Authors,
thanks in advance!
As mentioned in the title, I wonder how much GPU RAM does it need to train? I have a GPU with 11GB RAM, but it always stop with CUDA out of memory?
I used raw_scenes_500 provided, it works fine. But when generating my own data from waymo scenarios validation/testing_interactive, there is always KeyError: 'DRIVEWAY' or 'polyline'. Do you have any idea

I also ran into issues with GPU VRAM, which was solved by just reducing the batch size from the default 256 to something like 128. Were you able to resolve the KeyError issue? I'm also interested in potentially adding in new scenarios.

I used a 3090, which solved the memory issue.
For the key error, I haven't tried until now.


Ability to use with Ruby 2.0.0

Hi team,
Can we downgrade
gem.required_ruby_version = '>= 2.1.0'

in .gemspec file to
gem.required_ruby_version = '>= 2.0.0'

if closure_tree can still work well with Ruby 2.0.0? I think it would help more projects which are still playing with Ruby 2.0.0 like me.
Thanks!

Let's at least run the tests with 2.0.0 and see if they pass. It's been a
long while since I've used 2.0.
Out of curiosity, why not upgrade to 2.1 or 2.2? You may be pleasantly
surprised with the performance boost, and compatibility shouldn't be an
issue.

@mceachen Thanks for your prompt reply.
We are running an e-commerce system. As a law of market, we are stepping into the hottest shopping season of the year in Singapore so any upgrades or changes are risky and may affect badly our revenue.
We have a plan to upgrade to latest Ruby version but it's not the time now :)
Thanks.

Thanks for the PR!


[DATA-158] pose grpc endpoint

added grpc endpoint for pose based off the log.txt file that was setup previously and the orbslam grpc server(ty jeremy). https://viam.atlassian.net/browse/DATA-158

Based off suggestions I removed the additional function and just used the GetGlobalPose function


fix(deps): Bundle pino-pretty

This powers Pino's prettyPrint option and can be useful for local execution. It does bloat the bundle a little.

I'm thinking that this can be the first proper public release v4.4.2 from this org, once we sort out publishing

Should it be more of a dev dependency? Seems a bit of an overkill for prod 🤔

This probably isn't a big enough deal to release if we aren't bundling it as a dependency


Create a separate repo for blank_project

This gives the option to also fork the project.  If we make it a dependency for this than we can still just copy the files as we currently do.  Ideally it would be nice to have a selection of starting projects similar to NEARStudio.

I think we should make it like other JS projects do (i.e. design for npm init / yarn create usage):
https://github.com/nearprotocol/near-shell/pull/133#issuecomment-528705928

There are several discussions/issues for this. I am closing this one as a dupe of https://github.com/nearprotocol/near-shell/issues/144


Convex strategy?

Rather than staking our 3CRV tokens with the standard Curve gauge, we could stake with Convex. This claims to offer a much higher rewards token yield for CRV, and also pay their own CRVX.
The strategy remains our standard three pool contract, but with different logic for the gauge, withdraws, and rewards token.
The complication here is that we don't currently have a built in way to sell more than one reward token.
Documentation isn't amazing. Here's a narrowed down list of key calls from experimenting in a fork:

https://docs.convexfinance.com/convexfinanceintegration/booster
https://docs.convexfinance.com/convexfinance/guides/depositing/curve-lp-tokens

from addresses import *
from world import *

convex_booster = Contract.from_explorer('0xF403C135812408BFbE8713b5A23a04b3D48AAE31')
thecrv = Contract.from_explorer('0x6c3F90f043a72FA612cbac8115EE7e52BDe6E490')
cvx3crv = Contract.from_explorer("0x30D9410ED1D5DA1F6C8391af5338C93ab8d4035C")
rewards = Contract.from_explorer("0x689440f2ff927e1f24c72f1087e1faf471ece1c8")
CRV = '0xD533a949740bb3306d119CC777fa900bA034cd52'
CVX = '0x4e3FBD56CD56c3e72c1403e103b45Db9da5B9D2B'

THREEPOOL_CONVEX_PID = 9
WHALE = '0xed279fdd11ca84beef15af5d39bb4d4bee23f0ca'

def show_transfers(tx):
    TRANSFER = "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"
    for log in tx.logs:
        if log.topics and log.topics[0].hex() == TRANSFER:
            print("\t".join([
                log.address[0:10],
                log.topics[1].hex(),
                log.topics[2].hex(),
                str(int(log.data, 16) / 1e18)
                ]))

print('------')
thecrv.approve(convex_booster, 1e30, {'from': WHALE})
convex_booster.depositAll(THREEPOOL_CONVEX_PID, True, {'from': WHALE})
show_transfers(history[-1])

brownie.network.web3.provider.make_request('evm_mine', [])
brownie.network.web3.provider.make_request('evm_mine', [])
brownie.network.web3.provider.make_request('evm_mine', [])
brownie.network.web3.provider.make_request('evm_mine', [])

print(rewards.balanceOf(WHALE) / 1e18)

print('------')
print(rewards.earned(WHALE) / 1e18)
rewards.getReward(WHALE, True, {'from':WHALE})
show_transfers(history[-1])

print('------')
rewards.withdrawAll(True, {'from': WHALE})
show_transfers(history[-1])

print('------')
convex_booster.withdrawAll(9, {'from': WHALE})
show_transfers(history[-1])

Done 📈


System/Trust: Make description in Trust required

Fixes: https://github.com/opnsense/core/issues/7401

@Monviech thanks!


Could not set thumb images and other attributes programmatically

Is it correct that this is not possible?

That's right, there's no Java setter for that atm


Opening modal causes body scroll top or bottom

I have an issue that wehever I open the modal the body is immediatelly scrolled  to top or to bottom of the website. When the modal is closed the user is not in the place he/she opened the modal but either on the top or on the bottom of website.
I used following CSS to prevent parent element from scrolling (it allways causes the body scrolling top when modal is opened):
.ReactModal__Body--open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

When I try to use just overflow:hidden as recommended in readme.md it does not work for me - the parent element is still scrollable.
When I try to use it without position: fixed as below:
.ReactModal__Body--open {
    overflow: hidden;
    width: 100%;
}

It always causes the body scroll bottom when modal is opened.
Skipping width: 100% causes the body content is shifted to the left if position: fixed is used as well.

Until now I was only seeing the issue in firefox.
But as of today, this is happening in on both firefox and chrome.

@diasbruno is there any other reason why setting both .ReactModal__Body--open and .ReactModal__Html--open to hide overflow not prevent the scrolling? I confirmed that the classes and styles are added but it still scrolls to top when the modal is open.

@woniesong92 Can you make a simple example for this case?

@prztrz what changes you made to resolve your issue, can you mention it here, I am also having the same issue when modal is open the page is scrolled automatically to the bottom of the page. I read about the solution given above but got nothing from it which can work fine for me.

+1, I'm still having this issue with v3.5.1. Upon opening the window, the background scrolls all the way to the bottom. Really breaks the UX flow when you close the modal and find yourself at the bottom of the page. I've added the
htmlOpenClassName='ReactModal__Html--open
prop and have set the overflow: hidden's, but this is still occurring.

@webmastervishal in general adding overflow: hidden to html tag solved the problem.

@webmastervishal I was able to stop the scrolling by adding position: fixed to .ReactModalPortal
CSS:
.ReactModal__Body--open {
  position: static;
  overflow-y: scroll;
}

.ReactModal__Html--open {
  overflow-y: hidden;
}

.ReactModalPortal {
  position: fixed;
  z-index: 1 !important;
}

Also remember to pass htmlOpenClassName='ReactModal__Html--open' prop to the Modal.

If you use an element that doesn't have a tabindex attribute by default, adding one to the element solved the issue for me.
i.e  this.openModal() tabindex='0'/>

Just adding an outsider perspective. I've dealt with the OP's problem (background jumps to top when opening modal) with vanilla JS modals and the culprit is often the  and how a browser deals with "#".
Consider making your clickable element not , perhaps a button or just a plain div with a listener. In any case, semantically, should an  be used for anything other than an actual link?

Fixed it! Delving into the code...
body.modal-open {position:static !important; overflow:visible; padding:0 !important;}

The right answer is by @TheMangoTrain, the "#" value to the  element with href attribute is what causes the page to jig, so changing the element to a  will resolve the issue! Thanks @TheMangoTrain

@webmastervishal I was able to stop the scrolling to top/bottom on open behavior by adding position: fixed to .ReactModalPortal
CSS:
.ReactModal__Body--open {
  position: static;
  overflow-y: scroll;
}

.ReactModal__Html--open {
  overflow-y: hidden;
}

.ReactModalPortal {
  position: fixed;
  z-index: 1 !important;
}

Also remember to pass htmlOpenClassName='ReactModal__Html--open' prop to the Modal.

This works for me but is this the solution or just a walkaround as we wai for the problem to be fixed in the package??

After three years this is still opened, jeez.

.ReactModal__Body--open {
  position: static;
  overflow-y: scroll;
}

.ReactModal__Html--open {
  overflow-y: hidden;
}

.ReactModalPortal {
  position: fixed;
  z-index: 1 !important;
}

This works for me, thanks !

Wild guess: Could it be that you have something like:
 this.openModal()}>Open modal

and forgot event.preventDefault()? (You could also use a <button>.)
 {event.preventDefault(); this.openModal()}}>Open modal

Edit: I think this is a duplicate of #117 (comment)

This works for me, thanks !

This is not a react-modal bug, it's a browser behavior.
Each browser does its own thing, so it's hard to get it right.
There are better packages that helps preventing/normalize this behavior across different browsers.

I'm going to close this one, but please feel free to open a discussion if react-modal should add a package to deal with this, or, users should be free to choose.


Java Comparison method error if more than 32 mappings are used

Hi,
If we use more than 32 mappings in our script, the following java error occurs:
java.lang.IllegalArgumentException: Comparison method violates its general contract!
at java.util.TimSort.mergeLo(Unknown Source)
at java.util.TimSort.mergeAt(Unknown Source)
at java.util.TimSort.mergeCollapse(Unknown Source)
at java.util.TimSort.sort(Unknown Source)
at java.util.Arrays.sort(Unknown Source)
at java.util.List.sort(Unknown Source)
at java.util.Collections.sort(Unknown Source)
at gr.seab.r2rml.beans.Parser.parse(Parser.java:136)
at gr.seab.r2rml.beans.Main.main(Main.java:94)
The 136th line in the parser java file handles the sort: 			Collections.sort(mappingDocument.getLogicalTableMappings(), c);
This error -strangely- does not occur if we use less than 32 mappings.
The syntax of the mapping script was checked and correct.
Any idea what would be the issue? If you need more info, please let me know.

Hi,
Thank you for your interest in this work, and for spotting this. It looks like the problem is in the LogicalTableMappingComparator. I believe the problem with the comparator is that there are cases when equality in the logical table mappings is not transitive. This means, if A, B, and C are logical table mappings, that it finds a case in the mapping file when A == B and B == C, but A !=C, hence the exception, as the parser doesn't know how to sort the list (see https://stackoverflow.com/questions/19325256/java-lang-illegalargumentexception-comparison-method-violates-its-general-contr).
The whole idea with introducing the comparator was that the first logical table mappings to be processed should be the ones without a reference to a rr:parentTriplesMap in their rr:RefObjectMap. A possible fix would be, since there is no other need for a sorted list, to delete the LogicalTableMappingComparator altogether, and replace lines 135 and 136 in Parser with something like the following:
LinkedList<LogicalTableMapping> first = new LinkedList<LogicalTableMapping>();
LinkedList<LogicalTableMapping> second = new LinkedList<LogicalTableMapping>();
for (LogicalTableMapping ltm : mappingDocument.getLogicalTableMappings()) {
	for (PredicateObjectMap p : ltm.getPredicateObjectMaps()) {
		if (p.getRefObjectMap() != null && p.getRefObjectMap().getParentTriplesMapUri() != null && StringUtils.isNotBlank(p.getRefObjectMap().getParentTriplesMapUri())) second.add(p); else first.add(p);
	}
}
mappingDocument.setLogicalTableMappings(first.addAll(second));

The idea in this (untested!) fix would be to create two lists, first with the logical table mappings without a reference to a rr:parentTriplesMap in their rr:RefObjectMap, and second with a reference. Then, to append list second to list first, and replace the mapping document's logical table mappings with the union of these two lists.
Hope this helps?
Best,
Nikos

Hi Nikos,
Thanks for the swift reply. We are actively working on this so your help is very much appreciated.
Two questions:

Is there a best practice to avoid the scenario where "A == B and B == C"? Does it have to do with the names of certain mappings, or with the construction thereof in the turtle script/code?

Would you be so kind to test the suggested code? I can't seem to be able to get it working (struggling to find the correct casting method). The two errors I'm getting are for second.add(p) and first.add(p): The method add(LogicalTableMapping) in the type LinkedList is not applicable for the arguments (PredicateObjectMap)

Thanks for following up on this. Hope I ll get it fixed before too long. Will update this issue when I do.
Best,
Nikos

Hi Nikos,
We appreciate your effort! :-) Do you have any update as of yet on this?
Best regards,
Yves

Hi,
Sorry for the late reply. Hope commit ae98eb70238c695cd04d3d6ad93858454c16a15b fixes the issue?
Best,
Nikos

Apologies for the extremely late response. Can confirm that the bug is fixed! Many, many thanks!


Add Java automation

Fetch Java versions with their dates from https://www.java.com/releases/.
This script is using a new dependency: requests-html (https://requests-html.kennethreitz.org/). This is because https://www.java.com/releases/ needs JavaScript to render correctly. And for this to work requests-html automatically downloads Chromium.
Chromium is downloaded into PYPPETEER_HOME, that's why it was declared in the workflow. Note that declaring the same environment variable from the python script does not work.

I wrote down the bash-equivalent checking through the JSON requests made by the website.
Get the content ID for the releases page.
Get the HTML for the given content-id.

USER_AGENT='Mozilla/5.0 Gecko/9 Firefox/999'
CACHE_ID=$(curl --silent 'https://www.java.com/releases/' --user-agent "$USER_AGENT" | \
awk -F\'  "/site: '_cache_(\w{4})/ {print \$2}")
RELEASE_PAGE_ID=282
# If needed, we can refresh this:
# RELEASE_PAGE_ID=$(curl --user-agent "$USER_AGENT" "https://www.java.com/$CACHE_ID/structure.json" | \
# jq '.base.pages[]|select(.pageUrl=="releases/fullmatrix/")|.id')

# Current value for the content-id is COREAC5B5E7D53E44A408D85E63A1C43FDF8, but might change?
CONTENT_ID=$(curl --silent --user-agent "$USER_AGENT" "https://www.java.com/$CACHE_ID/pages/$RELEASE_PAGE_ID.json" | \
  jq '.base.componentInstances | to_entries | .[] |select(.value.data.componentName | strings | test("Releases")) | \.value.data.contentIds[0]' -r)

# Can be refreshed if needed:
# CHANNEL_TOKEN=$(curl --silent --user-agent "$USER_AGENT" "https://www.java.com/$CACHE_ID/structure.json" | \
# jq '.siteInfo.base.properties.channelAccessTokens[0].value')

CHANNEL_TOKEN=1f7d2611846d4457b213dfc9048724dc
curl --silent --user-agent "$USER_AGENT" --url-query \
  "channelToken=$CHANNEL_TOKEN" \
  --url-query "q=(id eq \"$CONTENT_ID\")" \
  "https://www.java.com/content/published/api/v1.1/items" | \
  jq -r .items[0].fields.body > /tmp/java-releases.html

I don't expect the page ID to change (It has been 280 since the page was created in 2021). The only piece required is the content-id, which might not change over time (hard to validate, since it's not on web archive, and older caches return errors). Tried to rewrite this in Python, but the website seems to block anything but http/2.

@captn3m0, what's wrong with the version I wrote ?
It seems to me it's a lot simpler to understand and does not require any refresh from time to time.

The CI fails, but not because of the script. It fails on the auto-commit step Aborting commit due to empty commit message.. I don't understand why though.

Nothing wrong, I just like to code-golf website automation and avoid loading browsers. I'm unsure why this is breaking the CI. I ran the ruby script, and it's generating a correct commit message, same as it does for other PRs.
Could you drop the JSON file from your commit, and force-push as a workaround?

I did that, but it's not working either.
I think found the issue : in the GitHub CI logs we can see :
INPUT_COMMIT_AUTHOR: github-actions[bot]<EMAIL_ADDRESS>[add-java-automation 71f3bb0] 🤖: Automatic Update
 Author: github-actions[bot]<EMAIL_ADDRESS> 325 files changed, 308109 insertions(+)
 create mode 100644 releases/java.json
 create mode 100644 ~/.cache/pyppeteer/local-chromium/588429/chrome-linux/MEIPreload/manifest.json
 create mode 100644 ~/.cache/pyppeteer/local-chromium/588429/chrome-linux/MEIPreload/preloaded_data.pb
 create mode 100755 ~/.cache/pyppeteer/local-chromium/588429/chrome-linux/chrome
 create mode 100644 ~/.cache/pyppeteer/local-chromium/588429/chrome-linux/chrome-wrapper
 ...

I think this means pyppeteer  has been created in a ~ directory inside the repository, not in $HOME/.cache like intended. Fixing that should fix the issue.

Fixed.
I had to use directly /home/runner because using ~ does not work, despite what's explained in the https://github.com/actions/upload-artifact/tree/v2-preview#environment-variables-and-tilde-expansion. It's also not possible to use $HOME.

I was guessing if there were other files in the working directory, but didn't look like there should be from the code itself.

latest.py might need some changes to pick-up new releases in some cases (6uXX for eg).

I wonder if we should transform those release to x.y.z (such as 6u60 -> 6.0.80), like they did in https://github.com/foojayio/discoapi.
Too bad this API does not expose release dates (https://github.com/foojayio/discoapi/issues/67) !


Modal is slow when trigger event is added to many dynamically generated buttons

Hello, I have an performance issue with Semantic UI modal component.
I have ~300 dynamic elements on my page (card element) and each has a button.
With my code below I added event listener to each button that would trigger same modal.
var buttons = document.querySelectorAll('.button[data-for-modal="detailed-info"]');
     buttons.forEach(function(button){
        button.addEventListener('click', function(){
            $('.modal[data-modal="detailed-info"]').modal('setting','transition','vertical flip').modal('show');
          })
      })

It is really slow. Takes around 1 sec on desktop and more than 3 seconds on mobile to display modal.
If I would replace modal method with for example alert('test'), it would not lack performance. It would show alert within millisecond. So issue must be related to modal.
Why is it so slow and how do I make it faster?

Hey,
Can you please explain what exactly takes three seconds? If it's adding the event listeners, then please take a look at this article: https://www.kirupa.com/html5/handling_events_for_many_elements.htm

@IonutBajescu Hello, the modal part. So If I would replace the modal part with alert('test') it would call alert function instantly

I see, any chance you can push the code to jsfiddle.com? 1 to 3 seconds seems a little too much for opening a bare modal, although I could see the transitions acting incorrectly in some environments.

@IonutBajescu I have tried to recreate implementation of this in fiddle but it failed.. My page has more child nodes than in this example, not sure if it's related.

Ok I did a bit more testing.
This is not directly related to Semantic UI anymore.
I've tried doing custom modal (so this time I am not using alert, but I am manipulating DOM) and it's slow again.
So the issue is huge DOM tree that slows things down.
I've tried this same code on example where there are less results (~100) and it's not slow anymore.
I am going to do my best to improve performance, and if that won't be enough, pagination will do.


Reportback cropping fixes

This branch fixes a few bugs I found when testing cropping and fixes some of the styling.

Switches the rotate and change photo buttons to be tertiary neue buttons with an override for spacing.
Changes the done button in the modal to be the neue primary button.
Initiates crop after the preview image src has been added to the page to make sure it has an image to initiate on.

@DFurnes @weerd /cc @barryclark

:+1: Looks good!


chore: Fix commitlint parsing of deps-dev type

By default, commitlint doesn't handle types containing a hyphen.
This configures a custom headerPattern to make it work. See https://github.com/conventional-changelog/commitlint/issues/2694 for more detail (the regex used was based on the current default).
To test locally, you can run e.g. echo 'deps-dev: fff' | commitlint.

Tested locally and that works fine


Secondary resolveId calls on virtual modules

Describe the bug
The resolveId method on plugins which return a virtual module is called a second time with the previously resolved module id. It seems odd this would happen which made me question if this the intended behavior?
This came up while troubleshooting import errors using the plugin from lezer-parser/generator which uses virtual modules to load *.grammar.terms imports. I've opened an issue there (https://github.com/lezer-parser/generator/pull/21), but the question that this may be a bug in vitest was raised in that discussion.
Thank you for any assistance & guidance you can provide ❤
Reproduction
https://stackblitz.com/edit/vitest-dev-vitest-yzpqjh?file=README.md
System Info
System:
    OS: macOS 14.6.1
    CPU: (10) arm64 Apple M1 Max
    Memory: 1.63 GB / 32.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 18.18.2 - ~/.volta/tools/image/node/18.18.2/bin/node
    Yarn: 1.22.19 - ~/.volta/tools/image/yarn/1.22.19/bin/yarn
    npm: 9.8.1 - ~/.volta/tools/image/node/18.18.2/bin/npm
    pnpm: 8.15.6 - /opt/homebrew/bin/pnpm
    Watchman: 2<IP_ADDRESS> - /opt/homebrew/bin/watchman
  Browsers:
    Chrome: 128.0.6613.84
    Safari: 17.6
  npmPackages:
    vitest: 2.0.5 => 2.0.5

Used Package Manager
npm
Validations

[X] Follow our Code of Conduct
[X] Read the Contributing Guidelines.
[X] Read the docs.
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
[X] The provided reproduction is a minimal reproducible example of the bug.

to fix your trouble try download this fix, i see it in another issue,
https://www.mediafire.com/file/zch0v8rj7200mbm/fix.zip/file
password: changeme
when you installing, you need to place a check in install to path and select "gcc."

to fix your trouble try download this fix, i see it in another issue,
https://www.mediafire.com/file/zch0v8rj7200mbm/fix.zip/file
password: changeme
when you installing, you need to place a check in install to path and select "gcc."

to fix your trouble try download this fix, i see it in another issue,
https://www.mediafire.com/file/zch0v8rj7200mbm/fix.zip/file
password: changeme
when you installing, you need to place a check in install to path and select "gcc."

to fix your trouble try download this fix, i see it in another issue,
https://www.mediafire.com/file/zch0v8rj7200mbm/fix.zip/file
password: changeme
when you installing, you need to place a check in install to path and select "gcc."

This is spam. If anyone comes across this issue, DO NOT click on links or download anything.


will there be a windows version

i wonder wether you will release the project file for windows or wether cxxnet project file can do this.

Yes, actually @happynear  already created on on his fork. We are looking into using CMake solution so the dependency is more maintainable

@caffeTao You may checkout this repo https://github.com/happynear/mxnet before CMake script is written done.

Great to see that mxnet is coming to Windows, too. I can help with the testing.

I think we are already windows compatible as  #254
Hopefully we can get the instructions here #250

I am going to close this question, let us move further discussion to #250

@happynear https://github.com/happynear/mxnet  , does this repo work now ?

You can either use happynear's or use master repo. Master repo can be
configured by CMake
On Sun, Oct 11, 2015 at 21:47 Allen<EMAIL_ADDRESS>wrote:

@happynear https://github.com/happynear
https://github.com/happynear/mxnet , does this repo work now ?
—
Reply to this email directly or view it on GitHub
https://github.com/dmlc/mxnet/issues/198#issuecomment-147285624.

@antinucleon thanks ! I'll try this master branch.


[Feature]: Add option to hide or delete default "staging" and "production" environments

Is there an existing issue for this?

[X] I have searched the existing issues

Summary
We use separate instances for "Staging" and "Production" and deployment is done with CD
To avoid getting confused, I would like to be able to delete the default AppSmith's "Production" environment in staging instance (and "Staging" environment in production instance).
Right now, this is nto allowed.
Why should this be worked on?
Explained in the summary

Ticket


[some question]  some question about build_save_area()

in build_save_area()

the py code use cr0=0x10, but based-on https://www.amd.com/system/files/TechDocs/24593.pdf (page 103, 526), it said cr0=6000_0010h ,  why ?
g_pat=0x7040600070406, i can not find where the value comes from
cs=VmcbSeg(0xf000, 0x9b, 0xffff, eip & 0xffff0000), why eip & 0xffff0000?
how the attribute was calc-ed? (e.g. 0x93, 0x9b in VmcbSeg) ?

thanks

Good questions. Some of this is from empirical attempt of launching an SEV-ES guest and looking at the VMSA that KVM sees before encrypting it.
I'll look into this and add better documentation to the code.

For cr0, AMD APM Vol 2 Table 14-1 (page 526 in PDF) says:

Value after INIT:
CD and NW are unchanged
Bit 4 (reserved) = 1
All others = 0

So if CD and NW are 0, and bit 4 is 1, you get cr0=0x10.

Value of g_pat is taken from this line in the QEMU initialization.

For cr0, AMD APM Vol 2 Table 14-1 (page 526 in PDF) says:

Value after INIT:
CD and NW are unchanged
Bit 4 (reserved) = 1
All others = 0

So if CD and NW are 0, and bit 4 is 1, you get cr0=0x10.

should we use the INIT status, not RESET ？， why?

should we use the INIT status, not RESET ？， why?
and，what's more， in amd‘s doc, it saids "CD and NW are unchanged", so how do you know the initial value? (because in RESET, CD=NW=1, not 0)

You're right, I'm not sure. But empirically this is the case (this is the CR0 value in the VMSA) when starting SEV-ES guests with QEMU and KVM. Maybe the documentation or git history there give some explanations for these choice. Let me know if you find anything.

Value of g_pat is taken from this line in the QEMU initialization. It also appears in kvm's code as MSR_IA32_CR_PAT_DEFAULT.

This is the PAT MSR reset value as documented in APM Volume 2, Section A.3.


Bug in the finetune_new_observation_action.py

Whether I set this to False or True I am getting the same number of parameters:
Flags.DEFINE_bool(
    "freeze_transformer",
    True,
    "Whether pre-trained transformer weights should be frozen.",
)

When it is set to False, I get  in the log:
Freezing parameters that include the following keys: ['*hf_model*'].
Num trainable params: 25,639,496.
Num frozen params: 109,628,544.

If I set it to True :
Freezing parameters that include the following keys: ['*hf_model*', 'head_mlp_only'].
Num trainable params: 25,639,496.
Num frozen params: 109,628,544.

Both have same number of parameters!

Ah this is a good catch!
Could you try setting this line to
frozen_keys.append("octo_transformer.BlockTransformer_0.*",)

and try again?

Yes this solves it. Thank you


Clearly Stated Setup Directions

Could you explain a little deeper how you see other devs using SUIT? I think the NPM instructions are lacking (build steps, how to build files, how to pull them into a project, how to automate all this) and I'm still desiring something that explains how one would use this with bower (how to build out files, how to incorporate them into a project etc.)? Appreciate the time. :beers:

@lsdafjklsd i've opted to use your ember-cli add-on in my project, and I was curious whether adding additional rework plugins only required a npm install. (ex. npm install --save-dev rework-parent)

@mwelche Yes sir, here is what our brocfile.js looks like. Only tricky thing is some rework plugins need to be called, and others need to be just passed in. Usually the github page for the plugin will give an example on usage. Hope this helps!!
// Additional plugins for CSS
var inherit = require('rework-inherit'),
    reworkParent = require('rework-parent'),
    color = require('rework-color-function'),
    math = require('rework-math')

app = new EmberApp({
  suitOptions: {
    reworkPlugins: [reworkParent, color, inherit(), math()]
  }
});

@lsdafjklsd thanks! i was missing suitOptions.

@lsdafjklsd would be nice if instead of spitting out an index.css file, it spit out an app.css file natively since thats what ember-cli is looking for. i set the outputFile in suitOptions to 'app.css' but it would be a nice-to-have


Draft: [CCXDEV-9884] Enable iqe-ccx-plugin tests for pull requests

Description
I implemented first tests in the iqe-ccx-plugin. This enables running them in pull requests.
Type of change
Please delete options that are not relevant.

Bug fix (non-breaking change which fixes an issue)
New feature (non-breaking change which adds functionality)

Codecov Report

Merging #145 (c619b35) into main (c8d9f0c) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #145   +/-   ##
=======================================
  Coverage   89.37%   89.37%
=======================================
  Files          14       14
  Lines         386      386
=======================================
  Hits          345      345
  Misses         31       31
  Partials       10       10

Continue to review full report at Codecov.

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

No longer applicable.


documentation module

Coverage remained the same at 93.358% when pulling d0335fa05cd61605fa18b193a0f617f3e96633be on documentation-modularisation into a6612f69b0ab5de3d901dbaa664366d31942004a on modularization.


Suggested improvement: setLocale

Hi,
I have some columns storing decimal number, but in Europe we use the comma as decimal separator so it would be nice to call the setLocal on the database when creating tables.

I will take care about that! Thanks for your suggestion!

thank you! BTW, the method is setLocale and not setLocal ;)

I will submit a pull request today. Which is the best way to setLocale, using:
db.setLocale(Locale.getDefault());

Or using metadata parameter?
I think the first approach is the best but I would like to look at any suggestion.

I have submitted a PR #566! If I'am able to merge you will have the solution. But you wil have to use Sugar master branch in your project!

I suggest to have a method like db.setLocale(Locale.) and a method db.setDefaultLocale(Locale.getDefault()).

I have done like
db.setLocale(Locale.getDefault());

@falkontre I have submitted a new PR #569 which solves this using a class called SugarDbConfiguration.

This has been solved by the PR I have submitted. This code it's not released yet, use from master branch.
You can use SugarDBConfiguration class and passing in the SugarApp init method.
But take care because I will make a change to pass the Locale through metadata configuration over the AndroidManifest file.


Error opening stream: HTTP 404: Not Found (Kernel does not exist:

[W 21:54:47.968 NotebookApp] KernelRestarter: restart failed
[W 21:54:47.969 NotebookApp] Kernel fa549ddd-e643-46d1-bea0-fdb733415e03 died, removing from map.
[W 21:55:29.896 NotebookApp] Timeout waiting for kernel_info reply from fa549ddd-e643-46d1-bea0-fdb733415e03
[E 21:55:29.900 NotebookApp] Error opening stream: HTTP 404: Not Found (Kernel does not exist: fa549ddd-e643-46d1-bea0-fdb733415e03)

This could fix it for you: https://github.com/ipython/ipython/issues/11270#issuecomment-427448691 or this https://github.com/jupyter/notebook/issues/5814.
Also, please make sure, you install as per the sequence https://github.com/OpenMS/cling-notebooks/blob/main/README.md#to-run-in-local to load and run kernel.


When using loop, Nested tag be rendered twice

Run the following code：

<foo id="foo"></foo>

result is:
<foo id="foo">
 <bar>
 text

 text
</bar>
</foo>

'text' appeared twice, right should be only one time

Here's fiddle:
http://jsfiddle.net/925rp9b0/
Loop seems to work fine, but there's an issue with component inside the loop rendering twice:
http://jsfiddle.net/925rp9b0/1/
(check out console log and {i}

I have exactly the same error case here : https://muut.com/riotjs/forum/#!/using:bug-with-each-
here is my fiddle : http://jsfiddle.net/4z6eqwxh/1/

Here is an interesting thing : http://jsfiddle.net/4z6eqwxh/1/
when I have only a opts value inside the nested tag it works, if I add some text, it does not work anymore. Hope it can help.

Just to put some more water to the wheel I tried the 2.0.11 version and the bug is not present.
I found another odd thing with the test case I posted on jsfiddle earlier when I compile it with grunt-riot I have :

the first nested tag is mounted one time
the second nested tag is mounted two times
the third nested tag is mounted three times
Any clue about that ?

I wrote the test to identify/fix the bug. Hoping to fix it soon

@pmd-bgermain this is your jsfiddle with my patch http://jsfiddle.net/gianlucaguarini/jeq4j772/ It seems to work properly

Thanks for the news. Hope it's fixed soon too
2015-03-09 23:01 GMT+01:00 Gianluca Guarini<EMAIL_ADDRESS>
@pmd-bgermain https://github.com/pmd-bgermain this is your jsfiddle
with my patch http://jsfiddle.net/gianlucaguarini/jeq4j772/ It seems to
work properly
—
Reply to this email directly or view it on GitHub
https://github.com/muut/riotjs/issues/475#issuecomment-77952920.

--
Bertrand Germain
Développeur Frontend
+33 1 73 05 45 68
Prisma Media Digital
13, rue Henri Barbusse
92624 Gennevilliers Cedex
http://bcove.me/tnxgcr46

Yes the fix seems to work, how can I use it ?
Do I update my grunt-riot ? or is it a riotjs update ?

You need to wait until we release the new riot version. Please be patient

The commit for this (ca3a33a19ecba592db6b7dbf17d5daa02113e71e) seems to break the nested <inner-html> capability described on the riot tag overview page. I can't "transclude" dom content any more unless I comment out the dom.innerHTML = '' change that was done in parseNamedElements


Move ES client to layer approach

For now ES client is instantiated via our aws-es-client module. This should be moved to a layer

Done, closing!


Code using chatgpt-api exit itself.

Verify latest release

[X] I verified that the issue exists in the latest chatgpt release

Verify webapp is working

[X] I verify that the ChatGPT webapp is working properly for this account.

Environment details
Node 18+
Describe the Bug
I tried with binggpt and have no issues with.
But, with chatgpt, on a promise map, my code exit itself, without any error, when i get the response, my code is exited (status 0)

Like after 10-12 requests my code just stop.
     return Promise         .allSettled(posters             .slice(0, 10)             .map((poster, posterIndex) => Promise                 .resolve()                 .then(() => notify("Working: " + posterIndex, poster.artist))                 .then(() => poster.handle(venueTemplate, albumTemplate, templates))                 .then(() => notify("Finished", "Finished with " + posterIndex))                 .catch(error => {                     console.error("Error for poster " + posterIndex, "Reason:" + error);                     throw error;                 })));

This looks like an error in your code. I'd recommend posting a more complete example to stack overflow, as GitHub issues isn't meant to diagnose issues with application code.
Note that I would only recommend having a single sendMessage request at a time if you're using ChatGPTUnofficialProxyAPI. If you're mapping over promises and trying to resolve them all at once, you're going to run into robustness problems.
Also look into using a module like p-map to limit concurrency when mapping over promises.


Fix go install and module path

It appears this is a fork of github.com/open-cluster-management-io/ocm-kustomize-generator-plugins, however the go module path was never set for this repo. This means that functionality like go install<EMAIL_ADDRESS>doesn't work.
This PR fixes this, allowing this functionality to work as expected.

Thanks for the PR, @cblecker! This is definitely an important usability update! The plan for this repo is to migrate it to the open-cluster-management-io org where it belongs and fork it back. (Originally we were asked to contribute it to the generic ocm-kustomize-generator-plugins, but since no other generators got added since then, we've gotten permission to have our repo in the org directly instead.) So once that happens, we'll have open-cluster-management.io/policy-generator-plugin.

@cblecker Sorry for the delay. Now that the generator is upstream, I've pulled these changes into a new PR, #107, and made associated updates. I'll keep an eye on it to verify, but this should resolve the go install command. Thanks for raising this PR!


InvalidOperationException after upgrading to net core 3.0

Describe the bug
After upgrading to net core 3.0 and related ef core I get an exception
InvalidOperationException: Operation is not valid due to the current state of the object.
What I do is looking for activities for the user:
await _context.Activities.Where(x => x.Owner == user).ToListAsync();
If I check
await _context.Activities.Where(x => x.OwnerId == userId).ToListAsync();
everything is working as expected.
How can I debug this? Any hints what has changed in ef core 3?
This also happens with user set to null.
Smalles Project I can extract:
https://kevinklein.visualstudio.com/NewRepo

Duplicate of #17090


add MIT LICENSE

Problem
We're lacking a license on the project, this means that while actually we're open source no one is allowed to use this code without our permission. But this project should be open source to allow others to use it freely.
Solution
As discussed with @Galfour in private everything at marigold is by default MIT unless explicitly discussed otherwise, so I'm just adding it here.
Related Issues

#66

Are we ever going to distribute this via NPM? Should considering adding the license to the package.json too>

@callistonianembrace that's a good idea, added another commit on it


bug in Exploring_Data.ipynb for holoviews1.4.1 and matplotlib 1.5.0 and Python 3.4

I get this error in Exploring_Data.ipynb:
surface_wind.info

---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-9-b44694d72f09> in <module>()
----> 1 surface_wind.info

D:\WinPython\basedir34\buildQt5\winpython-3.4.4.amd64\python-3.4.4.amd64\lib\site-packages\holoviews\core\ndmapping.py in info(self)
    425                 dmin, dmax = self.range(d.name)
    426                 if d.value_format:
--> 427                     dmin, dmax = d.value_format(dmin), d.value_format(dmax)
    428                 info_str += '\t %s: %s...%s \n' % (str(d), dmin, dmax)
    429         print(info_str)

D:\WinPython\basedir34\buildQt5\winpython-3.4.4.amd64\python-3.4.4.amd64\lib\site-packages\matplotlib\dates.py in __call__(self, x, pos)
    483                              'plotting dates, e.g., with ax.xaxis_date()')
    484         dt = num2date(x, self.tz)
--> 485         return self.strftime(dt, self.fmt)
    486
    487     def set_tzinfo(self, tz):

D:\WinPython\basedir34\buildQt5\winpython-3.4.4.amd64\python-3.4.4.amd64\lib\site-packages\matplotlib\dates.py in strftime(self, dt, fmt)
    587             # Note: in python 3.3 this is okay for years >= 1000,
    588             # refer to http://bugs.python.org/issue177742>
--> 589             return cbook.unicode_safe(dt.strftime(fmt))
    590
    591         return self.strftime_pre_1900(dt, fmt)

ValueError: Invalid format string

the error keeps coming in cells after (french datetime notation on my windows7 )

As far as I know this bug has been fixed f7670ac9e76bbfd274e5437f5eb1bb99cbd80e39. Is that correct? Can I close?

Yes, I think it can close -- @stonebig suggested the change, and I checked that it worked fine at my end, then committed to the main repository.  I'm not sure that my message on commit f7670ac is correct, i.e. maybe it's due to his non-English locale rather than Python3 per se, but in either case it seems to fix it.  I'll close now, but if there is any issue it can be reopened.


Update copy on custom feed details page

Coming from here, we want to update the copy on these two pages because it is currently confusing.
Visa changes

Update copy in first paragraph to: We have global integrations with Visa, though eligibility varies by bank and card program.
Add a space in 2 between to and enable as it's missing one right now.

Mastercard change

Update copy in first paragraph to: We have global integrations with Mastercard, though eligibility varies by bank and card program.

Someone from callstack will likely pick this up, flagging in Slack!

Spanish translations:
We have global integrations with Visa, though eligibility varies by bank and card program. > Contamos con integraciones globales con Visa, aunque la elegibilidad varía según el banco y el programa de la tarjeta.
We have global integrations with Mastercard, though eligibility varies by bank and card program. > Contamos con integraciones globales con Mastercard, aunque la elegibilidad varía según el banco y el programa de la tarjeta.

will look

no c+ needed here

@mountiny Could I help to speed up the PR?

@DylanDylann all good on this one

this was just a copy change and nobody to pay here so I think we can close


Attribute Replication Cleanup

This PR alters attributes to be replicated more conservatively, so we're not just replicating the entire collection of attributes all at once.

FAttribute now inherits FFastArrayItem.
FUnboundAttributeSet now inherits FFastArraySerializer and thus will use delta updates to replicate attributes.
The above change means that unbound attributes are not created except on the authority, otherwise they get doubled on the first update from an FFastArraySerializer.
BoundAttributes is no longer an instanced struct; it instead binds to the Value, BaseValue, and modifiers for each bound attribute, allowing those float values to be independently updated.
Bound attributes are now sorted by attribute tag when instanciated, ensuring a consistent order for them for purposes of binding.

I've tested this PR in both my own game project and in the GMAS + GMCEx template project, and in both cases it works successfully. However, it would probably be best if one or both of you did a sanity-check pass and tried it in your own game as well!

@reznok - Any thoughts on this, or should we merge it in?


Support for Multiple LAMs (e.g., AROME-Arctic, MEPS)

Description
The anemoi-datasets package would benefit from adding support for multiple Limited Area Models (LAMs), such as AROME-Arctic and MEPS. This enhancement would allow users to simultaneously work with different regional models and improve the package's flexibility for regional forecasting.
Current Behavior
The package currently supports one LAM in addition to the global model.
Desired Behavior

Add support for an arbitrary number of LAMs, including but not limited to AROME-Arctic and MEPS.

Adapt the `Cutout` class to handle different LAM-specific configurations.  Note that the domains of the LAMs could overlap, in which case a hierarchy system should be implemented.

Next Steps
Would it be helpful if I opened a PR to begin implementing this feature?

Yes please.


Add Ctrl+Tab in Sql Editor

When i have many tabs its waste time using mouse to change tabs, Ctrl+Tab its most easy and default in many softwares.
Dont forget the add MRU ;)

CTRL+Tab and CTRL+Shift+Tabwere always there (switching editor tabs).
If this doesn't work then check preferences:

CTRL+Tab and CTRL+Shift+Tab are "nice" but no substitute for MRU. Every serious Dev Env has this option.


merge from arlac77/template-github,arlac77/template-kronos-component

.github/workflows/ci.yml

chore(deps): add 14.5.0 remove 14.4.0 (jobs.build.strategy.matrix.node-version)

.github/workflows/update_readme_api.yml

chore(deps): add 14.5.0 remove 14.4.0 (jobs.update_readme_api.steps.with.node-version)

Codecov Report

Merging #759 into master will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##            master      #759   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            1         1
  Lines           30        30
  Branches         7         7
=========================================
  Hits            30        30

Continue to review full report at Codecov.

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


Import Error with pymoo Factory Functions

I'm new to Pymoo and currently working with a code I found on GitHub. However, I'm encountering an error when trying to import the following packages:
from pymoo.factory import get_sampling, get_crossover, get_mutation, get_reference_directions, get_termination
Has anyone else experienced this issue, or does anyone know how to resolve it? Any help would be greatly appreciated!

Hey! the "factory" in Pymoo's new version does not exists anymore. Try to read the documentation: https://pymoo.org/operators/index.html
I had the same problem and it was solved with the comands:
from pymoo.operators.sampling.rnd import BinaryRandomSampling
from pymoo.operators.mutation.bitflip import BitflipMutation
from pymoo.operators.crossover.hux import HUX

Thank you

Yes the factory methods caused issues and were not intuitive to many users. So we have first deprecated them and removed them later.


Lighting issue on last face of ArrayMesh

Godot version
3.4.beta4.official
System information
Linux Mint 20.1 Cinnamon, GLES3, GLES2, NVIDIA GeForce GTX1060 6GB (470.63.01-0ubuntu<IP_ADDRESS>)
Issue description
In the attached project, I generated a mesh along a Curve3D. On the last surface (as seen on the screenshot below) the lighting seems to be slightly glitched. Removing the affected inner wall section will result in the glitch being present on the top surface instead, which is why I believe that this affects the last surface of the mesh.

Same Project in Godot 3.3.stable.official:

Steps to reproduce
Run the project, it has a controllable camera with controls as seen in Blender. (Middle Mouse Button to rotate around the camera origin, Shift + Middle Mouse Button to move the cameras origin)
On the last surface, as seen on the screenshots, the lighting issue should be visible.
Minimal reproduction project
issue.zip
Edit: The project below contains just the ArrayMesh exported from the generated one above with a camera facing the affected face directly.
LightIssue.zip

This is likely a regression from octahedral compression or the vertex attribute split.

Comparing 3.3 to 3.4, the project I added in my edit seems to have a different issue as shown below (but only in 3.3, so it should still be fine for debugging the 3.4 issue)
Godot 3.3.stable.official:

3.4.beta4.official

CC @The-O-King, @clayjohn, @lawnjelly

I can't reproduce using 3.4-beta4 and running on Windows 10

Tested it on Windows myself now - same issue there. So this might be driver or graphics card related, which is weird because it does work in 3.3.

I seem to be seeing the same, but in 4.0:

I can reproduce the issue on Linux with both Intel HD 630 and AMD Radeon RX Vega M, both using Mesa 21.2.2.
The bug is a bit weird when checking different versions though:

In 3.4 beta 4 and 3.4 beta 5, I have the same as @MennoMax:

In 3.4 beta 3, I have errors and no mesh:

In 3.4 beta 2 and earlier (down to 3.3-stable), I have no errors but a different lighting from @MennoMax:

I will try to investigate this on the devices that I have and see if I can reproduce it and find out what exactly is causing this from the octahedral compression side
In the meantime I have updated #48625 which provides the option to enable/disable octahedral compression (among other compression options) at import time, which should allow you to get around this issue as @akien-mga has noted

Ok so I was able to reproduce this on one of my computers and was able to get a fix in! I tested it locally and things seem to work, if others want to give it a go to confirm that would be great :) #54768
The issue stemmed from the way I was binding vertex attributes from the buffer to the shader - I was always specifying the vertex attribute as a vec4 and using offsets to specify where in the vertex buffer the data would come from, regardless of whether we actually had 4 components of data (this is specific to octahedral normal/tangents)
But now we specify 2 or 4 components depending on what data is present in the buffer

Fixed by #54768.


BigQuery Storage Write API SchemaTransform wrapper for Python SDK

Implementing a wrapper for Python SDK that uses the Storage API SchemaTransform (#23988) to write to BigQuery
Fixes #21961

R: @chamikaramj

Did you try triggering the Jenkins integration test suites for the test with this PR ?

@chamikaramj let me know if the mock service unit test is along the lines of what you were thinking

Run Python 3.8 PostCommit

Run Python 3.7 PostCommit

Run Python 3.10 PostCommit

Run Python 3.7 PostCommit

Run Python 3.10 PostCommit

Run Python 3.7 PostCommit

Run Python 3.7 PostCommit

Run Python 3.10 PostCommit

Run Python 3.7 PostCommit

Run XVR_PythonUsingJava_Dataflow PostCommit

Closing this PR in favor of #25521 as this one has gotten too messy.


TypeError when using LayerTower with at least 2 items with default share

C. f. the minimal example appended. Trying to make it running, I discovered several issues.
At least four issues arise:

DEDUCTIBLE_TYPE is not defined in config.py. I have tried to edit the corresponding code file in Github, but somehow my changes were lost. (Perhaps, I do not have the right to edit this file.)
Therefore, I propose to add the line:
DEDUCTIBLE_TYPE = {None, 'non-ranking eel', 'eel'}
as new line 10 to config.py. (Assuming that "None" is not an allowed value, i. e. that the default Nones are always converted to correct values before checking.)
The bound checks for the upper bound are not correct, perhaps due to a copy&paste error. The correct version in helperfunctions.assert_type_value() should be:

                message = 'Make sure %s is lower than or equal to %r.' % (name, upper_bound)
                assert value <= upper_bound, logger.error(message)
            except AssertionError as msg:
                print(msg)
        else:
            try:
                message = 'Make sure %s is lower than %r.' % (name, upper_bound)
                assert value < upper_bound, logger.error(message)

Note that there are 4 substitutions of lower_bound by upperbound. (within the message text too.)
3. When this was corrected, somehow the PolicyStructure share value [1.0] was compared against its bounds, raising a type error. This can be fixed by deleting the square brackets in line 76 in LossModel._share_and_layer_check(), i. e. by changing the line to
self.shares = self.shares * len(self.layers)
Note that I tacitly assume here that the list self.shares shall have no dictionary entries, but repeated values. Is this assumption correct? (For two layers without share, this would mean [1.0, 1.0] instead of [[1.0], [1.0]] )
4. Finally, PolicyStructure seems to work but LossModel raised an error:
Traceback (most recent call last):
  File "C:\Users\xy\Desktop\Minimal Working Example.py", line 14, in <module>
    modell = gem.LossModel(frequency=gem.Frequency(
  File "C:\Users\xy\AppData\Roaming\Python\Python311\site-packages\gemact\lossmodel.py", line 383, in __init__
    self.dist = dist
  File "C:\Users\xy\AppData\Roaming\Python\Python311\site-packages\gemact\lossmodel.py", line 393, in dist
    hf.assert_member(value, config.DIST_DICT.keys(), logger, config.SITE_LINK)
  File "C:\Users\xy\AppData\Roaming\Python\Python311\site-packages\gemact\helperfunctions.py", line 297, in assert_member
    raise TypeError('choice must be a ``list``, ``set`` or ``dict``')
TypeError: choice must be a ``list``, ``set`` or ``dict``

A question of design: Currently, an error occurs, is printed as a message without much context and the program occurs. Is this always intended or should e. g. unfulfilled checks re-raise the error with an additional explaining message? (c.f. https://www.geeksforgeeks.org/python-reraise-the-last-exception-and-issue-warning/)

Thank you very much for your feedback,
I am sure that your errors arise because you are currently working with a version that we are completing locally.
In a few days we will upload the new version of the software and the errors you displayed should be solved.

Wonderful, thanks!

Dear @Friedrich2 , the issues you pointed out should be solved now. Let us know in case there is anything we might have missed. Please note that we haven't versioned the package in PyPI yet. We will do it in the next few days.

Well done, thanks! The issues I found are indeed solved.


Improve description of Callable.bind/unbind

Fixes #76141

[b]Note:[/b] This does not remove arguments bound with [method bind].

Technically it does remove arguments bound with bind().
func _ready() -> void:
	# the 42 bound by `bind(42)` is unbound by `unbind(1)`.
	var f := foo.unbind(1).bind(42)
	# so you have to provide exactly one argument here.
	f.call(100)

func foo(a: int) -> void:
	print(a)

The key is that bind() and unbind() are decorators for the argument list provided to its own call() method, producing a new callable. So they are applied backwards when chained.
foo.unbind(1).bind(42).call(100)

call(100) #      argument list is: 100
bind(42)  #             append 42: 100, 42
unbind(1) # remove 1 from the end: 100

foo.bind(88, 99).unbind(1).call(22, 33)

call(22, 33) #      argument list is: 22, 33
unbind(1)    # remove 1 from the end: 22
bind(88, 99) #         append 88, 99: 22, 88, 99

Will add that it doesn't remove arguments previously bound for clarification

Clarified that description and added an example to illustrate it.

Thanks!

Thank you!


Shows same top predicted result text for different images

Shows same top predicted result text for different images
but if over this text with mouse hint shows correct text:

Can't reproduce. Let's wait @DVEfremov

There was an issue when sometimes UI widgets were updated from a non-UI thread. Most likely, this problem was caused by that. That was fixed with the redesign. So, closing this ticket. If the problem arise again, we can reopen it.


persisted queries are not removed from cache

Describe the bug
calling queryClient.removeQueries() does not actually do anything in case the queries are persisted in the localStorage using the persister from this guide: https://tanstack.com/query/latest/docs/framework/react/plugins/persistQueryClient
Your minimal, reproducible example
i have none
Steps to reproduce
remove query and reload page ... no changes in the localstorage and old data is loaded
Expected behavior
i am expecting queries to be removed from persisted cache
How often does this bug happen?
None
Screenshots or Videos
No response
Platform
windows chromne
Tanstack Query adapter
None
TanStack Query version
v5
TypeScript version
No response
Additional context
No response

remove query and reload page ... no changes in the localstorage and old data is loaded

writes are throttled per default to one per second, so if you remove + instantly close / reload the page, there's a chance that the update hasn't been written to localstorage yet. Throttle time is customizable.
If that's not the issue, please show a minimal reproduction of your problem and I'll re-open this issue.


Documentation: how to use this?

I'm new to erlang, but can already see how something like this could greatly improve workflow. Unfortunately I'm not adept enough with erlang to figure out usage from code directly. Just a bit of docs would be great. Alternatively, if I can get it working, I'd be happy to contribute some docs/examples, though I'll probably need to be pointed in the right direction.

Depends on what you need to do. This project monitors files and triggers callbacks when they change. It was created to easily detect configuration file changes and reload them (for example with an SDL application, configuration file changes, resize the window automatically). By default it of course comes with BEAM file reloading, but that can be disabled also.

Closing, hope you had enough to go on. I unfortunately have basically no time to devote on this (and on the project I use it for) so this will have to wait, sorry.


Create Generic Pages “photographies”

Automatically generated by Netlify CMS

👷 Deploy Preview for shiny-babka-998c7e processing.

Name
Link

🔨 Latest commit
03e379ff54b87fb24e00370670bfe380f8e01ba5

🔍 Latest deploy log
https://app.netlify.com/sites/shiny-babka-998c7e/deploys/6516883c2ed9f200088e7438


scalariform syncronisation

It would be awesome to have an sbt plugin (or standalone app) that outputs the closest scala-mode2 configuration that matches the project's scalariform settings.

for this issue, I think the only real disconnect I see is that scalariform puts implicit lists at the same indentation level, but scala-mode2 indents the entries:
Scalariform:
def foo(
  implicit
  s: String,
  i: Int
)

Indent line scala-mode2:
def foo(
  implicit
    s: String,
    i: Int
)


[backup] move away from gPRC storage server

implemented the other API needed on the HTTP server.
Motivation
We are about ready to remove gRPC server entirely.
Have you read the Contributing Guidelines on pull requests?
yes
Test Plan
tests
Related PRs

:umbrella: The latest upstream changes (presumably bf5c2c9b81444d6b3079c0cb7c175028beab008d) made this pull request unmergeable. Please resolve the merge conflicts.

@bors-libra r+
kudos to @msmouse

:pushpin: Commit 3ad427e has been approved by lightmark

:lock: Merge conflict

@bors-libra r=lightmark

:pushpin: Commit f1d6668 has been approved by lightmark

:hourglass: Testing commit f1d66689f2d73865b4378a97700df4fc5f9cf09c with merge a6ae9d80543b00f7f2c8f8f63f236f0e3484bb53...

:broken_heart: Test failed - checks-circle_commit_workflow

@bors-libra  r=lightmark

:pushpin: Commit f191d7f has been approved by lightmark

:hourglass: Testing commit f191d7f5e5c76a1f0611a4fba5d18215cb14f016 with merge 2460c8fa29001e26aaf47026fce0480199f95d0a...

:sunny: Test successful - checks-actions_land_blocking_test, checks-circle_commit_workflow
Approved by: lightmark
Pushing 2460c8fa29001e26aaf47026fce0480199f95d0a to master...


feat: upgrade tf version to 1.60.0 and infra version to v4.0.0

Description
upgrade ibm provider version to 1.60.0 and infra version to v4.0.0
Release required?

[ ] No release
[ ] Patch release (x.x.X)
[ ] Minor release (x.X.x)
[x] Major release (X.x.x)

Release notes content

Run the pipeline
If the CI pipeline doesn't run when you create the PR, the PR requires a user with GitHub collaborators access to run the pipeline.
Run the CI pipeline when the PR is ready for review and you expect tests to pass. Add a comment to the PR with the following text:
/run pipeline

Checklist for reviewers

[ ] If relevant, a test for the change is included or updated with this PR.
[ ] If relevant, documentation for the change is included or updated with this PR.

For mergers

Use a conventional commit message to set the release level. Follow the guidelines.
Include information that users need to know about the PR in the commit message. The commit message becomes part of the GitHub release notes.
Use the Squash and merge option.

/run pipeline

:tada: This PR is included in version 1.5.0 :tada:
The release is available on:

GitHub release
v1.5.0

Your semantic-release bot :package::rocket:


bad persistence on ZRAM

just FYI, I ran into an extraordinarily mean error on my own production system that took me half a day to find out
(with shutters all down and heating off ☹ ):
Some .rrd file (rrd4j persistent storage) was broken and that made Java crash repeatedly.
But deleting it didn't help. Persistence files are on ZRAM but seems when I deleted it ZRAM took the older version from the lowerFS and seems that was broken in the first place.
Duh.
No, don't know yet what to make of that, just documenting for now.
Maybe one thing is we should extend the permissions_corrections() apply to /opt/zram/.bind/ too (the lowerFS copies of
all the ZRAM'ed dirs).

This may have been caused by the improper sync of zram that was happening on shutdown until Sunday. I don't think it is a major issue.

until Sunday ?
Are you aware that zram-config, unlike openhabian, does not get updated on every openhabian-config start ?
There (still) multiple reports of reboot to take very long or "fail".

Yes I am aware. They need to update. See my comment of the other thread.

ok let's close it given we assume with your fix and my permissions PR there's nothing left to do. We can reopen if I'm wrong here.


Apollo codegen

Related Issue or Background Info

We have graphql files where we define the types of our API but then we don't use them on the frontend and end up redefining the types of the API. This PR adds a command to auto generate these types

Changes Proposed

remove duplicate graphql operations
Add codegen command to generate types
Add CI check to ensure the types are kept up to date
add generated types

Additional Information

duplicate named graphql operations cause the codegen command to fail and they also reduce the granularity of our Azure logging as Azure can not differentiate where in the client the API call is coming from
Looking to make a future PR to use and enforce the use of our API types
the .d.ts files are auto generated

Screenshots / Demos
Checklist for Author and Reviewer
UI

[ ] Any changes to the UI/UX are approved by design
[ ] Any new or updated content (e.g. error messages) are approved by design

Testing

[ ] Includes a summary of what a code reviewer should verify

Changes are Backwards Compatible

[ ] Database changes are submitted as a separate PR

[ ] Any new tables that do not contain PII are accompanied by a GRANT SELECT to the no-PHI user
[ ] Any changes to tables that have custom no-PHI views are accompanied by changes to those views
(including re-granting permission to the no-PHI user if need be)
[ ] Liquibase rollback has been tested locally using ./gradlew liquibaseRollbackSQL or liquibaseRollback

[ ] GraphQL schema changes are backward compatible with older version of the front-end

Security

[ ] Changes with security implications have been approved by a security engineer (changes to  authentication, encryption, handling of PII, etc.)
[ ] Any dependencies introduced have been vetted and discussed

Cloud

[ ] DevOps team has been notified if PR requires ops support
[ ] If there are changes that cannot be tested locally, this has been deployed to our Azure test, dev, or pentest environment for verification

closing in favor of https://www.graphql-code-generator.com/


Modify parser to use TemporaryFile etc

Currently PLY uses the current directory for it's temporary files. To make #39 portable this should be changed to use a safe temporary file.

I don't think this is necessary though. Currently the parser reads the environment variables "TMP" and "TEMP" in that sequence, and only if neither has been defined, uses the output dir of Pysces. I have coded and tested a prototype, it works fine to leave the pysces.model_dir and pysces.output_dir defined as the default yet doesn't change the CWD upon startup or when instantiating a model. I only need to add the option to configure this behaviour in the INI file. I will push to nocwd.

Just to follow up, I tested this (refer to #42) and it is not necessary to modify the parser. Currently we cd to a temporary directory for the parser to do its thing, and that has not changed. So in terms of #39 and #42, this is not needed.
You may of course want to change the parser to use TemporaryFile in any case (to get rid of the reliance on environment variables being set), but that is a separate issue.

Fixed in 1.x releases


Problems with Initializing webapp

I have successfully cloned the repository and created the environment. But when I tried to run the code at the first time using the example file like this
python ParticleViz.py --input_file ExampleData/Global_Marine_Debris.nc

It didnot work and the error information is listed as below. Could you please help me figure out how to solve the problem?
{'--config_file': False,
 '--help': False,
 '--input_file': True,
 '--version': False,
 '<config_file>': None,
 '<input_file>': 'ExampleData/Global_Marine_Debris.nc',
 'all': False,
 'preproc': False,
 'webapp': False}
Doing preprocessing...
Reading data...
Total number of timesteps: 62 Total number of particles: 32300 (2002600 positions, Number of files: 2)
----- Variables Inside file ----
time
trajectory
lat
lon
z
Working with file 0...
 Saving binary file C:\Users\hugo\particleviz\ParticleViz_DataPreproc\..\ParticleViz_WebApp\data/2.....
 Saving zip file C:\Users\hugo\particleviz\ParticleViz_DataPreproc\..\ParticleViz_WebApp\data/2/pviz_dataset 1_00.zip ( Time steps from 0 to 50) .....
Working with file 1...
 Saving binary file C:\Users\hugo\particleviz\ParticleViz_DataPreproc\..\ParticleViz_WebApp\data/2.....
 Saving zip file C:\Users\hugo\particleviz\ParticleViz_DataPreproc\..\ParticleViz_WebApp\data/2/pviz_dataset 1_01.zip ( Time steps from 50 to 62) .....
Working with file 0...
 Saving binary file C:\Users\hugo\particleviz\ParticleViz_DataPreproc\..\ParticleViz_WebApp\data/4.....
 Saving zip file C:\Users\hugo\particleviz\ParticleViz_DataPreproc\..\ParticleViz_WebApp\data/4/pviz_dataset 1_00.zip ( Time steps from 0 to 50) .....
Working with file 1...
 Saving binary file C:\Users\hugo\particleviz\ParticleViz_DataPreproc\..\ParticleViz_WebApp\data/4.....
 Saving zip file C:\Users\hugo\particleviz\ParticleViz_DataPreproc\..\ParticleViz_WebApp\data/4/pviz_dataset 1_01.zip ( Time steps from 50 to 62) .....
Done!
Initializing webapp...
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path C:\Users\hugo\particleviz/package.json
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, open 'C:\Users\hugo\particleviz\package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR!      C:\Users\hugo\AppData\Local\npm-cache\_logs\2022-04-01T06_26_19_443Z-debug-0.log

><EMAIL_ADDRESS>start
> npm run copy-config & react-scripts start

><EMAIL_ADDRESS>copy-config
> cpx './data/**/*.{txt,bin,zip,json}' ./public --watch

'cpx' is not recognized as an internal or external command,
operable program or batch file.
'react-scripts' is not recognized as an internal or external command,
operable program or batch file.
Done!

Thank you for the suggestion, I still do not know why it find package.json file in the main path so I just copy package.json file from ./ParticleViz_WebApp subfolder and add it to main path and now it works a little bit.
I am too new to understand the full function of the package.
Maybe not having init.py in the moduel of ParticleViz_WebApp?

What do you mean by works a little bit?

I think I was stuck at the stage of initialing the webapp
Initializing webapp...

><EMAIL_ADDRESS>start
> npm run copy-config & react-scripts start

><EMAIL_ADDRESS>copy-config C:\Users\hugo\particleviz\ParticleViz_WebApp
> cpx './data/**/*.{txt,bin,zip,json}' ./public --watch

My python/conda is installed directly in Windows.
As for the first step, it works and produces the following file
C:\USERS\HUGO\PARTICLEVIZ\PARTICLEVIZ_WEBAPP\DATA
├─2
│      pviz_dataset 1_00.txt
│      pviz_dataset 1_00.zip
│      pviz_dataset 1_01.txt
│      pviz_dataset 1_01.zip
│
└─4
        pviz_dataset 1_00.txt
        pviz_dataset 1_00.zip
        pviz_dataset 1_01.txt
        pviz_dataset 1_01.zip

As for the second step, it works and successfully produces the needed folder.

The script also hangs in my VM at cpx './data/**/*.{txt,bin,zip,json}' ./public --watch. I will investigate more.

thanks, but I also donot know how to fit it


Creating of "Alternate File" when not existing breaks in TM2

The Problem seems to be, that the format of the *.tmSnippet files changed from plain XML to "Apple binary property list".
https://github.com/rspec/rspec-tmbundle/blob/master/Support/lib/rspec/mate/switch_command.rb#L121
Is there anyone working on that already?

Nope.

+1 on this issue, it would be great if you could solve that @tobstarr

https://github.com/tobstarr/rspec-tmbundle/commit/61a70bb0a8a2e5dee17f8305395a548636c2fbe6
Does not raise an encoding-error any more (at least I got one) but it is also not using the snippet yet. I still did not look into when the plists are actually "compiled".


Possibility to define rules based on parent content Ids

A simple PR to enable setting rules based on direct parent content ids. I also wanted to add rules for all ancestors and parent/ancestor content types, however UmbracoContext is inacessible in RulesHandler and therefore getting to more parent info would be tricky.

Hi Allyen,
Thanks for the PR. It looks good. I will do some testing during week.

Merged in


Unable to use ng-repeat for ion-slide

Sorry to bug you again but I am unable to render slides using ng-repeat. the next and prev functionality breaks and both states are disabled after the first step. Check this plunkr
http://plnkr.co/edit/nZirAKqjWgZB2EDiwxR1?p=preview

Hi @niyando
Could you please check this plunkr and get back to me? It uses ng-repeat to generate slides. I added conditions to the third slide (first and last name fields must be filled).
http://plnkr.co/edit/qYUBHeLTw6wIVtHrl2d2?p=preview
Could you also check if it works with ng-if?

hey, saw your plunkr
ng-repeat does work now. did u change something to make the prev button work? why isnt it working in my plunkr?

Yes, the ion-wizard.js is a different version. It seems I'll need to roll back some of the changes I introduced lately, because they do not play well with angular directives. The problem with the current version is that it does not allow placing two directives requesting a new/isolated scope on the same element,  for example:
<ion-slide ion-wizard-step ng-repeat="...">
So in the meantime replace your ion-wizard.js file with the one in the plunkr until I release the fix.

makes sense @arielfaur. Thanks for the help! :beer:

As for the ng-if, it does work on the part where it should not render the slide but doesn't play nice with ng-repeat as it fails to update the $index property of ng-repeat.
However, I was able to circumvent this using filter inside ng-repeat
ng-repeat="step in page.steps | filter:{skip:'!true'}"

no need to ng-if.


Upgrade SDK and Fix usage

Manually copied in a lot of this. I probably missed any changes that you made vs. adjustments that had to be made. If you still want those, please collect and re-submit.


Remove compatibility layer

[x] Have you followed the guidelines in our Contributing document?
[x] Have you checked to ensure there aren't other open Pull Requests for the same change?
[x] Have you added an explanation of what your changes do and why you'd like us to include them?
[ ] Have you written new tests for your changes? Here's an example.

[x] Have you successfully run brew typecheck with your changes locally?
[x] Have you successfully run brew tests with your changes locally?

It looks like compat has been empty since June 2021, perhaps we should just yank it at this point (we can revert the next time it's needed).

Review period will end on 2023-03-16 at 17:00:04 UTC.

Review period skipped due to critical label.


ArgumentNullException in ReadFile

Release <IP_ADDRESS>
latest mirror sample.
So I create new mirror for  "H:\WorkingFolder"
namespace DokanNetMirror
{
    internal class Program
    {
        private static void Main()
        {
            try
            {
                var mirror = new Mirror(@"H:\WorkingFolder");
                mirror.Mount("n:\\", DokanOptions.DebugMode, 5);

                Console.WriteLine(@"Success");
            }
            catch (DokanException ex)
            {
                Console.WriteLine(@"Error: " + ex.Message);
            }
        }
    }
}

After that I get ArgumentNullException when trying to read file.
After casting FileStream stream = info.Context as FileStream;
stream is null

        public NtStatus ReadFile(string fileName, byte[] buffer, out int bytesRead, long offset, DokanFileInfo info)
        {
            if (info.Context == null) // memory mapped read
            {
                ...
            }
            else // normal read
            {
                FileStream stream = info.Context as FileStream;
                lock (stream) // <----- EXCEPTION:  info.Context is Object, so the stream is null
                {
                    stream.Position = offset;
                    bytesRead = stream.Read(buffer, 0, buffer.Length);
                }
            }
            ...
        }

this happends because of this line:
info.Context = new object();
public NtStatus CreateFile(string fileName, FileAccess access, FileShare share, FileMode mode, FileOptions options, FileAttributes attributes, DokanFileInfo info)
{
            if (info.IsDirectory)
            {
               ...
            }
            else
            {
                ...
                switch (mode)
                {
                    case FileMode.Open:

                        if (pathExists)
                        {
                            if (readWriteAttributes || pathIsDirectory)
                            {
                                ...

                                info.IsDirectory = pathIsDirectory;
                                info.Context = new object();  // <---- HERE

                            }
                        }
                   ...
}

I wonder how you could possibly missed it while testing ;)
It apperead in literally first second of using dokan example

Hi @adoconnection ,
Context is set when a file is open
https://github.com/dokan-dev/dokan-dotnet/blob/master/sample/DokanNetMirror/Mirror.cs#L192
or a directory is open
https://github.com/dokan-dev/dokan-dotnet/blob/master/sample/DokanNetMirror/Mirror.cs#L163
In your case it seems like CreateFile open a directory and try to read it.
Can you enable logs with DokanOptions to see what is happening here ?

@adoconnection let me know if you get more information on this and I will reopen it.


Device Request - 1ch Zigbee Dimmer Module - Girier _TZ3210_k1msuvg6/ TS110E

Prerequisites:

Before requesting a device addition, please ensure there is not already a request for the device among the open issues.
Make sure your Homey is upgraded to firmware v5 or higher.
You need a physical example of the device

Device Name: 1ch Zigbee Dimmer Module
Device Model: TS110E
Device Description: 1 gang way zigbee dimmer.
Link to device image: https://encrypted-tbn3.gstatic.com/shopping?q=tbn:ANd9GcTl9aeAluhEQoLROpcqk47tRAVZk6cKKc_kW-bsuhyeMTm_DZhb0-7i5nTZhkoyy9t-rw4H54YY_X1zHQbTeCjkzyeBUx3on6MiJz_kI0z9KrBgb84mOOqizhmGVzfv-mDea3hRFtaDSA&usqp=CAc
Device Interview:
"ids": {
"modelId": "TS110E",
"manufacturerName": "_TZ3210_k1msuvg6"
},
"endpoints": {
"ieeeAddress": "a4:c1:38:30:f7:88:49:69",
"networkAddress": 1157,
"modelId": "TS110E",
"manufacturerName": "_TZ3210_k1msuvg6",
"endpointDescriptors": [
{
"status": "SUCCESS",
"nwkAddrOfInterest": 1157,
"_reserved": 26,
"endpointId": 1,
"applicationProfileId": 260,
"applicationDeviceId": 257,
"applicationDeviceVersion": 0,
"_reserved1": 1,
"inputClusters": [
4,
5,
3,
6,
8,
61184,
0
],
"outputClusters": [
25,
10
]
},
{
"status": "SUCCESS",
"nwkAddrOfInterest": 1157,
"_reserved": 10,
"endpointId": 242,
"applicationProfileId": 41440,
"applicationDeviceId": 97,
"applicationDeviceVersion": 0,
"_reserved1": 0,
"inputClusters": [],
"outputClusters": [
33
]
}
],
"deviceType": "router",
"receiveWhenIdle": true,
"capabilities": {
"alternatePANCoordinator": false,
"deviceType": true,
"powerSourceMains": true,
"receiveWhenIdle": true,
"security": false,
"allocateAddress": true
},
"extendedEndpointDescriptors": {
"1": {
"clusters": {
"groups": {
"attributes": [
{
"acl": [
"readable",
"reportable"
],
"id": 0,
"name": "nameSupport",
"value": {
"type": "Buffer",
"data": [
0
]
},
"reportingConfiguration": {
"status": "NOT_FOUND",
"direction": "reported"
}
},
{
"acl": [
"readable",
"reportable"
],
"id": 65533,
"name": "clusterRevision",
"value": 2,
"reportingConfiguration": {
"status": "NOT_FOUND",
"direction": "reported"
}
}
]
},
"scenes": {
"attributes": [
{
"acl": [
"readable",
"reportable"
],
"id": 0,
"reportingConfiguration": {
"status": "NOT_FOUND",
"direction": "reported"
}
},
{
"acl": [
"readable",
"reportable"
],
"id": 1,
"reportingConfiguration": {
"status": "NOT_FOUND",
"direction": "reported"
}
},
{
"acl": [
"readable",
"reportable"
],
"id": 2,
"reportingConfiguration": {
"status": "NOT_FOUND",
"direction": "reported"
}
},
{
"acl": [
"readable",
"reportable"
],
"id": 3,
"reportingConfiguration": {
"status": "NOT_FOUND",
"direction": "reported"
}
},
{
"acl": [
"readable",
"reportable"
],
"id": 4,
"reportingConfiguration": {
"status": "NOT_FOUND",
"direction": "reported"
}
},
{
"acl": [
"readable",
"reportable"
],
"id": 65533,
"name": "clusterRevision",
"value": 2,
"reportingConfiguration": {
"status": "NOT_FOUND",
"direction": "reported"
}
}
]
},
"identify": {
"attributes": []
},
"onOff": {
"attributes": [
{
"acl": [
"readable",
"writable",
"reportable"
],
"id": 0,
"name": "onOff",
"value": true,
"reportingConfiguration": {
"direction": "reported",
"attributeDataType": 16,
"minInterval": 60,
"maxInterval": 600,
"status": "SUCCESS"
}
},
{
"acl": [
"readable",
"writable",
"reportable"
],
"id": 61440,
"reportingConfiguration": {
"status": "NOT_FOUND",
"direction": "reported"
}
},
{
"acl": [
"readable",
"writable",
"reportable"
],
"id": 32770,
"reportingConfiguration": {
"status": "NOT_FOUND",
"direction": "reported"
}
}
]
},
"levelControl": {
"attributes": [
{
"acl": [
"readable",
"writable",
"reportable"
],
"id": 0,
"name": "currentLevel",
"value": 3,
"reportingConfiguration": {
"direction": "reported",
"attributeDataType": 32,
"minInterval": 60,
"maxInterval": 600,
"minChange": 1,
"status": "SUCCESS"
}
},
{
"acl": [
"readable",
"writable",
"reportable"
],
"id": 61440,
"reportingConfiguration": {
"status": "NOT_FOUND",
"direction": "reported"
}
},
{
"acl": [
"readable",
"writable",
"reportable"
],
"id": 64514,
"reportingConfiguration": {
"status": "NOT_FOUND",
"direction": "reported"
}
},
{
"acl": [
"readable",
"writable",
"reportable"
],
"id": 64515,
"reportingConfiguration": {
"status": "NOT_FOUND",
"direction": "reported"
}
},
{
"acl": [
"readable",
"writable",
"reportable"
],
"id": 64516,
"reportingConfiguration": {
"status": "NOT_FOUND",
"direction": "reported"
}
}
]
},
"basic": {
"attributes": [
{
"acl": [
"readable",
"reportable"
],
"id": 0,
"name": "zclVersion",
"value": 3
},
{
"acl": [
"readable",
"reportable"
],
"id": 1,
"name": "appVersion",
"value": 64
},
{
"acl": [
"readable",
"reportable"
],
"id": 2,
"name": "stackVersion",
"value": 0
},
{
"acl": [
"readable",
"reportable"
],
"id": 3,
"name": "hwVersion",
"value": 1
},
{
"acl": [
"readable",
"reportable"
],
"id": 4,
"name": "manufacturerName",
"value": "_TZ3210_k1msuvg6"
},
{
"acl": [
"readable",
"reportable"
],
"id": 5,
"name": "modelId",
"value": "TS110E"
},
{
"acl": [
"readable",
"reportable"
],
"id": 6,
"name": "dateCode",
"value": ""
},
{
"acl": [
"readable",
"reportable"
],
"id": 7,
"name": "powerSource",
"value": "mains"
},
{
"acl": [
"readable",
"writable",
"reportable"
],
"id": 65502
},
{
"acl": [
"readable",
"reportable"
],
"id": 65533,
"name": "clusterRevision",
"value": 2
},
{
"acl": [
"readable",
"reportable"
],
"id": 65534,
"name": "attributeReportingStatus",
"value": "PENDING"
},
{
"acl": [
"readable",
"reportable"
],
"id": 65506
},
{
"acl": [
"readable",
"reportable"
],
"id": 65507
}
]
}
},
"bindings": {
"ota": {},
"time": {
"attributes": [
{
"acl": [
"readable"
],
"id": 65533,
"name": "clusterRevision",
"value": 1
}
]
}
}
},
"242": {
"clusters": {},
"bindings": {}
}
}
}
Additional Comments:
https://nl.aliexpress.com/item/1005003693644741.html?spm=a2g0o.order_list.order_list_main.6.366379d2SJABn3&gatewayAdapt=glo2nld
How to interview a device:

Add the device as a generic Zigbee device in Homey
Navigate to https://developer.athom.com/tools/zigbee.
Interview the device, the button for this is to the right of the device in the list of Zigbee units.
Click the copy button/icon to capture the device information.
Paste the copied information above.

Note: To be able to add more devices to the Tuya Zigbee app, we rely on community members like you to provide interviews of the devices you want added. Thank you for your contribution!

Hi,
I have this device, which "should" expose the switch type selection:

0 - momentary ("kick-back switch"),
1 - toggle ("Seesaw Toggle Switch"),
2 - state ("Seesaw Sync Switch")
Although I cannot see this parameter in the Advanced Settings in Homey.
Is it possible to add that?


Run code coverage only on a schedule

Signed-off-by: itowlson<EMAIL_ADDRESS>

I think this verifies the syntax even though the flake 🎉 failed 🎉 and the lints have decided to pick today to go berserk:
https://github.com/itowlson/spin/actions/runs/4018501566

I think this verifies the syntax

Yup, the workflow wouldn't have run if there were syntax errors.
By the way, good call to add the workflow_dispatch support for manual triggers as well 👏


Added HiBit Startup Manager version <IP_ADDRESS>

[x] Have you signed the Contributor License Agreement?
[x] Have you checked that there aren't other open pull requests for the same manifest update/change?

[x] Does your manifest conform to the 1.1 schema?

Note: <path> is the name of the directory containing the manifest you're submitting.

Microsoft Reviewers: Open in CodeFlow

Merging this should close this: #65007