text:
Importing annotations without deleting current ones

My actions before raising this issue

[x] Read/searched the docs
[x] Searched past issues

When importing annotations into a task, CVAT deletes current annotations. Is there a way to keep them and have both sets of annotations in the same task?

Im having the same issue. Was it resolved?

Can you describe the problem in more detail like what web browser you're using and what step you took for the issue to occur, also please share images to show the problem better.

Hey @nmanovic, I was also able to replicate the error and would like to have a go at it.

Hey @nmanovic, I was also able to replicate the error and would like to have a go at it.

@OmarHassan2334 , could you please send me an email with a screenshot of debugging of CVAT? I cannot locate it. If you read instructions, only after you confirm that you setup the development environment, I can assign an issue.

Hi @nmanovic, I will take on this other issue to solve it

Hi, I wouldn't call it's an "easy" problem to solve, nor would I call it a bug or an error. It's implemented this way on purpose - so that after importing annotations you had only what you just uploaded. Though I agree, it can be improved by allowing to keep existing annotations. Thus, the nice solution would be:

to add a switch in UI annotation import dialog
to add a server API flag for keeping old annotations on uploading (should be enabled by default)
forward the flag from the API all the way up to this place
add corresponding tests

This should be done both for tasks and jobs as all of them allow annotation uploading.

Hi, thank you for your help, and sorry for taking so long to answer, I've
been sick this past week.
I'm having trouble understanding the complete structure of the project,
could you tell me where the server API flags are located, or provide an
example in the code of their usage?
Thank you very much.
El jue, 4 abr 2024 a las 17:53, Maxim Zhiltsov @.***>)
escribió:

Hi, I wouldn't call it's an "easy" problem to solve, nor would I call it a
bug or an error. It's implemented this way on purpose - so that after
importing annotations you had only what you just uploaded. Though I agree,
it can be improved by allowing to keep existing annotations. Thus, the nice
solution would be:

to add a switch in UI annotation import dialog
to add a server API flag for keeping old annotations on uploading
(should be enabled by default)
forward the flag from the API all the way up to this place
https://github.com/cvat-ai/cvat/blob/ea47d00103f9df8bd31102ea2ae364e32fa20f04/cvat/apps/dataset_manager/task.py#L799
add corresponding tests

This should be done both for tasks and jobs as all of them allow
annotation uploading.
—
Reply to this email directly, view it on GitHub
https://github.com/cvat-ai/cvat/issues/4747#issuecomment-2037582698, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AOCQJZOMNR22PL4TW62ACV3Y3VZOBAVCNFSM53NVNYHKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMBTG42TQMRWHE4A
.
You are receiving this because you were assigned.Message ID:
@.***>

@EBayego, I hope you feel better now. For API please check cvat/apps/*/views.py, mostly engine.views. An example of a parameter is conv_mask_to_poly.

@zhiltsov-max
Yes, I'm feeling better now, thank you!
If I'm not mistaken, the parameter is retrieved from a query using request.query_params.get(), but I can't find where it's created. Could you give me a quick guide of how the flow works? I'm sorry for needing this much help. Thank you!

Hi, I'm facing I suppose the last problem. I'm trying to maintain the current annotations by creating new shapes (and probably tags and tasks too) with the same data, but letting django create new ids for them in order to avoid errors. But even with that, I'm getting the following error:

I'm only creating new ids for those who already exists, by checking the list that contains current shapes. models.LabeledShape.objects.values_list('id', flat=True). Any idea on how to deal with this?
Thank you!

Hi,

I'm facing I suppose the last problem. I'm trying to maintain the current annotations by creating new shapes (and probably tags and tasks too) with the same data, but letting django create new ids for them in order to avoid errors.

It's certainly doable this way too, but why did you decide to it like this? Did you try to comment the annotation removal line?
About the error - are you sure it's about annotation ids? It's hard to say for sure without the stack trace, please try to check it via docker logs cvat_worker_import.

It's certainly doable this way too, but why did you decide to it like this? Did you try to comment the annotation removal line?

Yes, you are right, that's the option I tried at first, but I encountered an error which I attempted to resolve in this way. However, I am no longer able to reproduce it in any way, so it was likely my mistake in the import file format or in managing labels or not saving annotations, i don't really know.
Finally, regarding the tests, I simply modified the lines where it calls import_task_annotations by adding a final True corresponding to the new flag I created. Should I create any more tests? Thank you very much for your help and time, I appreciate it!

@EBayego, we're trying to move away from using the django-based tests. Please add a test in the tests/python/rest_api tests.

Okay, in that case, I believe that this existing test, if runs successfully, covers the development I have done, as I have only included a parameter in the internal query, the same case as conv_mask_to_poly. I will prepare the pull request following your documentation. If there are any changes or suggestions, let me know!

I believe that this existing test, if runs successfully, covers the development I have done, as I have only included a parameter in the internal query, the same case as conv_mask_to_poly.

I'm not sure I got what you mean here. In this PR there is a new API option to allow keeping the old annotations during the import. In needs to be tested. There is no way it could be covered by any existing test, as it didn't exist before this PR.

I assumed that this was a parameter with the same functionality as the one you gave me as an example, conv_mask_to_poly. In the Swagger documentation, this parameter does not appear:

And in the code, therefore, it also does not appear as an OpenApiParameter. However, it is taken from the query parameters within the method here. I assumed that either the Swagger documentation had not been updated, or that it was simply an internal parameter relevant only for specific queries, and the parameter was just a part of 'options', which is a list sent along with other options, in this case only conv_mask_to_poly from here.
If it needs to be added to the Swagger documentation, then I imagine the test I need to perform is similar to this one, but adding the part of passing more parameters to the query and not just the file format and the file to import.
Since I don't see direct examples to follow and save time, it will take me more time to figure out how to write the appropriate tests. And given that today, if I'm not mistaken, is the last day to have a PR ready, I will submit the PR to document what I've done so far, and I will continue with the development in the coming days.

In the Swagger documentation, this parameter does not appear

Most of the OpenAPI parameters must be added manually with the decorator, except regular filtering parameters and several others. conv_mask_to_poly was supposed to be a temporary solution, and it can be considered deprecated, so we don't want to advertise it in the API.

authors: ArtMarciano EBayego OmarHassan2334 domef nmanovic zhiltsov-max

repo: cvat-ai/cvat


text:
Failed to download spring dependency when using maven repo (tcljava)

I gave the maven repo a try, however my system failed to fetch the tcljava depedency. Is there a way I can get around this?
I was using group/artifact/version
"com.github.cverges.expect4j" % "expect4j" % "1.6",
[error] (*:update) sbt.ResolveException: download failed: net.sourceforge.tcljava#com.springsource.tcl.lang.jacl;1.4.1!com.springsource.tcl.lang.jacl.jar
I naively tried to add the spring source repositories (but i think they are already supposed to be copied to the central maven repository)

Marking as closed due to unresponsiveness.  Please re-open if the information requested can be provided.

I'm facing the same issue for expect4j-1.6 even after adding the repositories in pom.xml

com.github.cverges.expect4j
expect4j
1.6

[INFO] Scanning for projects...
[INFO]
[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building hivelevel1smoke 0.7.0-altiscale-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for net.sourceforge.tcljava:com.springsource.tcl.lang.jacl:jar:1.4.1 is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.669 s
[INFO] Finished at: 2015-07-26T20:57:56+05:30
[INFO] Final Memory: 17M/310M
[INFO] ------------------------------------------------------------------------

Can you post your pom.xml file contents?

<groupId>expect4j-test</groupId>
<artifactId>expect4j-test</artifactId>
<version>1.0</version>
<name>expect4j-test</name>
<dependencies>
	<dependency>
		<groupId>com.github.cverges.expect4j</groupId>
		<artifactId>expect4j</artifactId>
		<version>1.6</version>
	</dependency>
</dependencies>
<repositories>
	<repository>
		<id>com.springsource.repository.bundles.release</id>
		<name>SpringSource Enterprise Bundle Repository - SpringSource Bundle Releases</name>
		<url>http://repository.springsource.com/maven/bundles/release</url>
	</repository>
	<repository>
		<id>com.springsource.repository.bundles.external</id>
		<name>SpringSource Enterprise Bundle Repository - External Bundle Releases</name>
		<url>http://repository.springsource.com/maven/bundles/external</url>
	</repository>
</repositories>

Infact, while opening the dependency link  [om.springsource.tcl.lang.jacl-1.4.1] (http://mvnrepository.com/artifact/net.sourceforge.tcljava/com.springsource.tcl.lang.jacl/1.4.1) in expect4j-1.9, it throws "404 error" Not Found: /artifact/net.sourceforge.tcljava/com.springsource.tcl.lang.jacl/1.4.1

I just reinitialized my local Maven repository and was able to resolve the POM dependencies for JACL 1.4.1.  See below for the URLs.
http://repository.springsource.com/maven/bundles/external/net/sourceforge/tcljava/com.springsource.tcl.lang.jacl/1.4.1/com.springsource.tcl.lang.jacl-1.4.1.pom
http://repository.springsource.com/maven/bundles/external/net/sourceforge/tcljava/com.springsource.tcl.lang/1.4.1/com.springsource.tcl.lang-1.4.1.pom
It is not surprising that the dependency link you mentioned (http://mvnrepository.com/artifact/net.sourceforge.tcljava/com.springsource.tcl.lang.jacl/1.4.1) isn't working.  The JACL 1.4.1 package isn't hosted on mvnrepository.com, so they wouldn't have an auto-generated page for it.  You have to go to SpringSource.com to get the details on the package: http://ebr.springsource.com/repository/app/bundle/version/detail?name=com.springsource.tcl.lang.jacl&version=1.4.1.
Try doing the following as a test:

Clone the Expect4J repository locally: git clone https://github.com/cverges/expect4j.git
Build the repository: cd expect4j && mvn package
Now try building your project.

Alternatively, you could try specifying the JACL dependency in your own pom.xml.  Note that I don't consider this to be a good fix, just a workaround for the fact that JACL 1.4.1 isn't up on Maven Central.

source: gharchive/issue

authors: cverges fjtllc sarathkumarp-altiscale

license_type: permissive

license_source: bigquery


text:
‘IntegrityError: UNIQUE constrint failed:cameras.camera_id’

Hi ,guys, I met this porblem ‘IntegrityError: UNIQUE constrint failed:cameras.camera_id’ when i ran pipeline_Aachen.ipynb，did someone else  meet the same problem？ How to solve  this problem？ Thx。

This happens when creating a new camera in a SQL database but the camera already exists. This can happen if the reconstruction or triangulation failed, and you relaunched without deleting the working directory. Solution: delete outputs/aachen/sfm_superpoint+superglue and run the triangulation again.

yeah， i did   as  you said， the  problem solved。thank  you！

authors: Skydes gavinbai

repo: cvg/Hierarchical-Localization

license_source: github-api


text:
A question:about camera pose optimization!

Hello, I am very interested in your work and would like to make some applications based on line map, such as visual localization..
Now that I have the initial pose and some 2D-3D line correspondences, how can I construct optimization problems to optimize the initial pose? （In the case of using only line correspondences instead of point line union）
Looking forward to your reply and wishing you a happy life！

There is a ceres-based optimizer LineLocEngine (https://github.com/cvg/limap/blob/8450057d6182097b285de6094d68409cfadab37b/limap/optimize/line_localization/lineloc.h#L22) that only takes line correspondences and optimizes the initial camera pose. Take a look at limap.optimize.line_localization.solve_lineloc() and solve_lineloc_merged() for examples of how to use the optimizer from Python. You could also just use the point-line joint optimizer (JointLocEngine) while passing empty lists for point correspondences.
On a higher level, the heart of all our visual localization experiments is the function limap.estimators.pl_estimate_absolute_pose() (https://github.com/cvg/limap/blob/8450057d6182097b285de6094d68409cfadab37b/limap/estimators/absolute_pose/pl_estimate_absolute_pose.py). When ransac.method is set to None in the configs, the localization is done using the optimizer mentioned over the initial pose; otherwise (hybrid) RANSAC is employed to robustly estimate the camera pose (in which case the initial pose is irrelevant). As line correspondences can be noisy, a RANSAC estimation might be preferred. Again, the joint optimization/hybrid RANSAC can be used with only line correspondences by passing empty lists for point correspondences).
We are currently working on making documentation to better explain all these functionalities in detail :)

repo: cvg/limap


text:
build(docker): upgrade base ubi image to latest

build(docker): upgrade base ubi image to latest version (ubi9/ubi:9.4-947).
build(cmvfs): upgrade cvmfs binaries to latest version (2.11.3).

Combined with upgrading to latest version of go + library dependencies this reduces the number of vulnerabilities reported from trivy by 95 (195 total remaining). To tackle this further would require likely require running in a distroless image which feels like a large piece of work to plan for.

LGTM.

source: gharchive/pull-request

repo: cvmfs-contrib/cvmfs-csi


text:
[1.1] Get QP code path working

The QP code path does not work. Here is the output of running nosetests cvxpy/tests/test_qp.py
EEEE
======================================================================
ERROR: test_all_solvers (cvxpy.tests.test_qp.TestQp)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/Akshay/projects/cvxpy/cvxpy/tests/test_qp.py", line 73, in test_all_solvers
    self.quad_over_lin(solver)
  File "/Users/Akshay/projects/cvxpy/cvxpy/tests/test_qp.py", line 104, in quad_over_lin
    self.solve_QP(p, solver)
  File "/Users/Akshay/projects/cvxpy/cvxpy/tests/test_qp.py", line 69, in solve_QP
    return problem.solve(solver=solver_name, verbose=True)
  File "/Users/Akshay/projects/cvxpy/cvxpy/problems/problem.py", line 271, in solve
    return solve_func(self, *args, **kwargs)
  File "/Users/Akshay/projects/cvxpy/cvxpy/problems/problem.py", line 465, in _solve
    data, inverse_data = self._solving_chain.apply(self)
  File "/Users/Akshay/projects/cvxpy/cvxpy/reductions/chain.py", line 65, in apply
    problem, inv = r.apply(problem)
  File "/Users/Akshay/projects/cvxpy/cvxpy/reductions/matrix_stuffing.py", line 63, in apply
    new_obj, new_var, r = self.stuffed_objective(problem, extractor)
  File "/Users/Akshay/projects/cvxpy/cvxpy/reductions/qp2quad_form/qp_matrix_stuffing.py", line 49, in stuffed_objective
    P, q, r = extractor.quad_form(problem.objective.expr)
  File "/Users/Akshay/projects/cvxpy/cvxpy/utilities/coeff_extractor.py", line 151, in quad_form
    quad_forms)
  File "/Users/Akshay/projects/cvxpy/cvxpy/utilities/coeff_extractor.py", line 117, in extract_quadratic_coeffs
    P = c_part @ P
ValueError: matmul: Input operand 1 has a mismatch in its core dimension 0, with gufunc signature (n?,k),(k,m?)->(n?,m?) (size 2 is different from 1)

======================================================================
ERROR: Test solve parametric problem vs full problem
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/Akshay/projects/cvxpy/cvxpy/tests/test_qp.py", line 453, in test_parametric
    prob.solve(solver=solver)
  File "/Users/Akshay/projects/cvxpy/cvxpy/problems/problem.py", line 271, in solve
    return solve_func(self, *args, **kwargs)
  File "/Users/Akshay/projects/cvxpy/cvxpy/problems/problem.py", line 465, in _solve
    data, inverse_data = self._solving_chain.apply(self)
  File "/Users/Akshay/projects/cvxpy/cvxpy/reductions/chain.py", line 65, in apply
    problem, inv = r.apply(problem)
  File "/Users/Akshay/projects/cvxpy/cvxpy/reductions/matrix_stuffing.py", line 80, in apply
    Afull, bfull = extractor.affine(expr_list)
ValueError: too many values to unpack (expected 2)

======================================================================
ERROR: Test issue arising with square plus parameter.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/Akshay/projects/cvxpy/cvxpy/tests/test_qp.py", line 484, in test_square_param
    prob.solve()
  File "/Users/Akshay/projects/cvxpy/cvxpy/problems/problem.py", line 271, in solve
    return solve_func(self, *args, **kwargs)
  File "/Users/Akshay/projects/cvxpy/cvxpy/problems/problem.py", line 465, in _solve
    data, inverse_data = self._solving_chain.apply(self)
  File "/Users/Akshay/projects/cvxpy/cvxpy/reductions/chain.py", line 65, in apply
    problem, inv = r.apply(problem)
  File "/Users/Akshay/projects/cvxpy/cvxpy/reductions/matrix_stuffing.py", line 80, in apply
    Afull, bfull = extractor.affine(expr_list)
ValueError: too many values to unpack (expected 2)

======================================================================
ERROR: Test warm start.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/Akshay/projects/cvxpy/cvxpy/tests/test_qp.py", line 428, in test_warm_start
    result = prob.solve(warm_start=False)
  File "/Users/Akshay/projects/cvxpy/cvxpy/problems/problem.py", line 271, in solve
    return solve_func(self, *args, **kwargs)
  File "/Users/Akshay/projects/cvxpy/cvxpy/problems/problem.py", line 465, in _solve
    data, inverse_data = self._solving_chain.apply(self)
  File "/Users/Akshay/projects/cvxpy/cvxpy/reductions/chain.py", line 65, in apply
    problem, inv = r.apply(problem)
  File "/Users/Akshay/projects/cvxpy/cvxpy/reductions/matrix_stuffing.py", line 63, in apply
    new_obj, new_var, r = self.stuffed_objective(problem, extractor)
  File "/Users/Akshay/projects/cvxpy/cvxpy/reductions/qp2quad_form/qp_matrix_stuffing.py", line 49, in stuffed_objective
    P, q, r = extractor.quad_form(problem.objective.expr)
  File "/Users/Akshay/projects/cvxpy/cvxpy/utilities/coeff_extractor.py", line 151, in quad_form
    quad_forms)
  File "/Users/Akshay/projects/cvxpy/cvxpy/utilities/coeff_extractor.py", line 117, in extract_quadratic_coeffs
    P = c_part @ P
ValueError: matmul: Input operand 1 has a mismatch in its core dimension 0, with gufunc signature (n?,k),(k,m?)->(n?,m?) (size 200 is different from 1)

----------------------------------------------------------------------
Ran 4 tests in 0.027s

FAILED (errors=4)

Many but not all of the QP tests fail at line 105 of matrix_stuffing.py:
# TODO QPs go here for constraints. Need to cast into right dimensions.
Afull, bfull = extractor.affine(expr_list)

@SteveDiamond , what needs to be done to address that TODO?

42b916c addresses the TODO mentioned in the previous comment, and it also fixes dual variable retrieval.
Here's the output of test_qp.py now:
ERROR: Test solve parametric problem vs full problem
Traceback (most recent call last):
File "/Users/Akshay/projects/cvxpy/cvxpy/tests/test_qp.py", line 453, in test_parametric
prob.solve(solver=solver)
File "/Users/Akshay/projects/cvxpy/cvxpy/problems/problem.py", line 284, in solve
return solve_func(self, *args, **kwargs)
File "/Users/Akshay/projects/cvxpy/cvxpy/problems/problem.py", line 532, in _solve
data, inverse_data = self._solving_chain.apply(self)
File "/Users/Akshay/projects/cvxpy/cvxpy/reductions/chain.py", line 65, in apply
problem, inv = r.apply(problem)
File "/Users/Akshay/projects/cvxpy/cvxpy/reductions/solvers/conic_solvers/mosek_conif.py", line 174, in apply
inv_data = {self.VAR_ID: problem.variables()[0].id,
TypeError: 'list' object is not callable
-------------------- >> begin captured stdout << ---------------------
[array(0.5), array(0.1)]
[array(0.5), array(0.09999993)]
--------------------- >> end captured stdout << ----------------------
======================================================================
FAIL: test_all_solvers (cvxpy.tests.test_qp.TestQp)
Traceback (most recent call last):
File "/Users/Akshay/projects/cvxpy/cvxpy/tests/test_qp.py", line 77, in test_all_solvers
self.quad_form(solver)
File "/Users/Akshay/projects/cvxpy/cvxpy/tests/test_qp.py", line 154, in quad_form
self.assertItemsAlmostEqual(z, var.value, places=4)
File "/Users/Akshay/projects/cvxpy/cvxpy/tests/base_test.py", line 34, in assertItemsAlmostEqual
self.assertAlmostEqual(a[i], b[i], places)
File "/Users/Akshay/projects/cvxpy/cvxpy/tests/base_test.py", line 38, in assertAlmostEqual
super(BaseTest, self).assertAlmostEqual(a, b, places=places)
AssertionError: -1.4543656745987648 != 635.1749306787997 within 4 places (636.6292963533984 difference)

Ran 4 tests in 0.218s
FAILED (errors=1, failures=1)

resolved by 147a578bd8455798f4c870226ab6bddd77226f7d

repo: cvxgrp/cvxpy


text:
Add SOC2PSD Reduction

Description
Added a reduction SOC2PSD that converts the SOC constraints to PSD constraints, for solvers that support the PSD cone but not the second order cone.
This enables the SDPA solver to be used for solving QPs and SOCPs.
Type of change

[x] New feature (backwards compatible)
[ ] New feature (breaking API changes)
[ ] Bug fix
[ ] Other (Documentation, CI, ...)

Contribution checklist

[x] Add our license to new files.
[x] Check that your code adheres to our coding style.
[x] Write unittests.
[x] Run the unittests and check that they’re passing.
[x] Run the benchmarks to make sure your change doesn’t introduce a regression.

This is quite a nice contribution, thanks! We definitely should have an SOC2PSD reduction. The solving_chain code is very critical and already pretty messy so may require more organization.

scipy.sparse.eye uses the DIAgonal format by default and cvxpy.bmat accepts it.
I believe conversion from diagonal format to either CSR or CSC should have the same complexity, so we should perhaps let CVXPY decide whichever is more appropriate when it needs to performs matrix operations internally.

Thanks for making the change!

scipy.sparse.eye uses the DIAgonal format by default and cvxpy.bmat accepts it.
I believe conversion from diagonal format to either CSR or CSC should have the same complexity, so we should perhaps let CVXPY decide whichever is more appropriate when it needs to performs matrix operations internally.

I agree that we should let cvxpy decide on any conversions if needed. I just didn't know if we accepted diagonal format SciPy sparse matrices.

Note: the test failures are unrelated. (They're due to a test where we expect an ARPack convergence failure in is_psd but ARPack actually converges.)

@SteveDiamond can you take another look and see if it's good from your perspective?

authors: SteveDiamond rileyjmurray usamamuneeb

repo: cvxpy/cvxpy


text:
Open-source for more experimental details

Thank you for your open source code. I found your work reproduced co-teaching and SD-LocNet, so I wonder if you can release these codes too!

Thanks for your interest.  but we currently have no plan to release the implementation of Co-Teaching and SD-LocNet.
Instead, the implementation details of Co-Teaching and SD-LocNet can be found in the supplementary (Sec. 5). In addition, hyper-parameter tuning may be necessary to obtain reasonable results.
For Co-Teaching, you can refer to the official implementation.

Thanks for your reply! I will take a closer look.

license: MIT


text:
🛑 ubuntuusers.de is down

In 75cf26d, ubuntuusers.de (https://ubuntuusers.de/) was down:

HTTP code: 502
Response time: 1790 ms

Resolved: ubuntuusers.de is back up in 987703d after 8 minutes.


text:
ES6 typings missing

Please add
typings install dt~es6-shim --save --global
to readme

Closed via #11

authors: artfuldev tomasz-szymanek


text:
Incremental-DOM driver

I just stumbled across cycle today and it really looks awesome. I've been playing with incremental-dom by using https://github.com/jsx-ir/jsx-to-idom in one of my own personal projects. I thought it would be really awesome to combine the two or maybe even just jsx-ir which would give even more rendering flexibility.
I'd love to work on this, maybe with a nudge in the right direction =).
What do you think?

I finally got around to doing this.
https://github.com/tylors/cycle-jsx-ir
Love to gather everyone's thoughts.

I don't think that there is much interest here anymore.
@staltz do you think it is safe to close this?

Sure

authors: TylorS staltz

repo: cyclejs/cycle-core

license: mit


text:
DOM: readyState fires complete without interactive

https://github.com/cyclejs/cyclejs/blob/master/dom/src/makeDOMDriver.ts#L84
if (document.readyState === 'interactive') {
   rootElement$.addListener(listener);
}

I faced situation (on latest chrome) where readyState is complete on the first fire time without firing interactive.
Also it is known that IE 10 (which is still a target browser), has problems with firing interactive too early. So possible solutions:

check complete event instead of interactive
check first event and drop other, for IE check completed event.

@whitecolor do you think this will fix it? https://github.com/cyclejs/cyclejs/pull/719/files#diff-bb656acbfe74e1759e3753244ac3b5dfR60

I believe it should.

I'll release an rc and then you can test it out and see if it fixes the issue.

Try out @cycle/dom@20.0.0-rc.1 and @cycle/run@4.0.0-rc.4

Think can be closed.

authors: staltz whitecolor

repo: cyclejs/cyclejs


text:
DarculaComboBoxUI crash

java.lang.NullPointerException
at com.intellij.ide.ui.laf.darcula.ui.DarculaComboBoxUI.getSizeWithButton(DarculaComboBoxUI.java:412)
at com.intellij.ide.ui.laf.darcula.ui.DarculaComboBoxUI.getMinimumSize(DarculaComboBoxUI.java:426)
at javax.swing.plaf.basic.BasicComboBoxUI.getPreferredSize(BasicComboBoxUI.java:910)
at com.intellij.ide.ui.laf.darcula.ui.DarculaComboBoxUI.getPreferredSize(DarculaComboBoxUI.java:421)
at javax.swing.JComponent.getPreferredSize(JComponent.java:1663)
at com.intellij.openapi.ui.ComboBox.getPreferredSize(ComboBox.java:259)
at com.intellij.openapi.ui.ComboBox.getMinimumSize(ComboBox.java:253)
at java.awt.CardLayout.minimumLayoutSize(CardLayout.java:311)
at java.awt.Container.minimumSize(Container.java:1849)
at java.awt.Container.getMinimumSize(Container.java:1833)
at javax.swing.JComponent.getMinimumSize(JComponent.java:1747)
at javax.swing.BoxLayout.checkRequests(BoxLayout.java:483)
at javax.swing.BoxLayout.maximumLayoutSize(BoxLayout.java:351)
at java.awt.Container.getMaximumSize(Container.java:1893)
at javax.swing.JComponent.getMaximumSize(JComponent.java:1707)
at com.intellij.application.options.schemes.AbstractSchemesPanel.createControlsPanel(AbstractSchemesPanel.java:130)
at com.intellij.application.options.schemes.AbstractSchemesPanel.createUIComponents(AbstractSchemesPanel.java:84)
at com.intellij.application.options.schemes.AbstractSchemesPanel.(AbstractSchemesPanel.java:79)
at com.intellij.application.options.schemes.AbstractSchemesPanel.(AbstractSchemesPanel.java:74)
at com.intellij.application.options.schemes.SimpleSchemesPanel.(SimpleSchemesPanel.java:34)
at com.intellij.application.options.codeStyle.CodeStyleSchemesPanel.(CodeStyleSchemesPanel.java:40)
at com.intellij.application.options.CodeStyleSchemesConfigurable.ensureModel(CodeStyleSchemesConfigurable.java:205)
at com.intellij.application.options.CodeStyleSchemesConfigurable.buildConfigurables(CodeStyleSchemesConfigurable.java:185)
at com.intellij.openapi.options.SearchableConfigurable$Parent$Abstract.getConfigurables(SearchableConfigurable.java:94)
at com.intellij.openapi.options.ex.ConfigurableWrapper$CompositeWrapper.getConfigurables(ConfigurableWrapper.java:253)
at com.intellij.ide.actions.ShowSettingsUtilImpl.collect(ShowSettingsUtilImpl.java:89)
at com.intellij.ide.actions.ShowSettingsUtilImpl.collect(ShowSettingsUtilImpl.java:89)
at com.intellij.ide.actions.ShowSettingsUtilImpl.getConfigurables(ShowSettingsUtilImpl.java:80)
at com.intellij.ide.util.gotoByName.GotoActionModel.lambda$new$0(GotoActionModel.java:90)
at com.intellij.openapi.util.VolatileNotNullLazyValue$1.compute(VolatileNotNullLazyValue.java:54)
at com.intellij.openapi.util.VolatileNotNullLazyValue.getValue(VolatileNotNullLazyValue.java:34)
at com.intellij.ide.util.gotoByName.GotoActionModel.getConfigurablesNames(GotoActionModel.java:335)
at com.intellij.ide.util.gotoByName.GotoActionItemProvider.processOptions(GotoActionItemProvider.java:120)
at com.intellij.ide.util.gotoByName.GotoActionItemProvider.filterElements(GotoActionItemProvider.java:77)
at com.intellij.ide.util.gotoByName.GotoActionItemProvider.filterElements(GotoActionItemProvider.java:61)
at com.intellij.ide.util.gotoByName.ChooseByNameBase$CalcElementsThread.addElementsByPattern(ChooseByNameBase.java:1437)
at com.intellij.ide.util.gotoByName.ChooseByNameBase$CalcElementsThread.fillWithScopeExpansion(ChooseByNameBase.java:1413)
at com.intellij.ide.util.gotoByName.ChooseByNameBase$CalcElementsThread.populateElements(ChooseByNameBase.java:1395)
at com.intellij.ide.util.gotoByName.ChooseByNameBase$CalcElementsThread.performInReadAction(ChooseByNameBase.java:1358)
at com.intellij.openapi.progress.util.ReadTask.lambda$runBackgroundProcess$0(ReadTask.java:66)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:949)
at com.intellij.openapi.application.ReadAction.compute(ReadAction.java:57)
at com.intellij.openapi.progress.util.ReadTask.runBackgroundProcess(ReadTask.java:66)
at com.intellij.ide.util.gotoByName.ChooseByNameBase$CalcElementsThread.runBackgroundProcess(ChooseByNameBase.java:1345)
at com.intellij.openapi.progress.util.ProgressIndicatorUtils.lambda$runUnderProgress$4(ProgressIndicatorUtils.java:227)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:173)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$1(CoreProgressManager.java:157)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:580)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:525)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:85)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:144)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:173)
at com.intellij.openapi.progress.util.ProgressIndicatorUtils.runUnderProgress(ProgressIndicatorUtils.java:225)
at com.intellij.openapi.progress.util.ProgressIndicatorUtils.access$100(ProgressIndicatorUtils.java:33)
at com.intellij.openapi.progress.util.ProgressIndicatorUtils$4.run(ProgressIndicatorUtils.java:176)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

Something to look into with the eap
IntelliJ IDEA 2018.2 EAP (Ultimate Edition)
Build #IU-182.3569.1, built on July 3, 2018
IntelliJ IDEA EAP User
Expiration date: August 2, 2018
JRE: 1.8.0_152-release-1226-b7 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Linux 4.13.0-45-generic

 VM438:2 # 36   DarculaComboBoxUI crash   https://api.github.com/repos/cyclic-reference/ddlc-jetbrains-theme/issues/36

repo: cyclic-reference/ddlc-jetbrains-theme


text:
Unable to navigate away from shell selection

When I configure ly on an Ubuntu 16.04 system, I am unable to return the cursor to the username field when I switch the shell from "console" to anything. Filling out both username and password then switching to the shell field, I'm unable to submit the form (enter).

This is the expected behaviour of the desktop field: it is not a text input, but a list. You can change the target with the left/right arrows when it's focused, or type the exact name of the desired entry. If what you typed is not an element of the list though, you won't be able to escape the field with enter. The "shell" entry automatically starts your user's configured shell, it does not expect you to replace the entry's name by that of the shell you want. Can you confirm I did not misunderstood your issue ? Thanks :)

authors: cylgom volfco

repo: cylgom/ly

license: WTFPL


text:
added className property for custom styling

Hello,
I am really thankful for this component. This PR just makes it a little easier to style. This allows a user to customize the look of the component by supplying a class name and then using that class name in a stylesheet to make customizations.

:+: and sorry for the very very slow response on this -- I'm merging and I'll get a new version published.

4.2.0 is now published. Thanks!

authors: brandonFaf cymen

repo: cymen/react-floating-label-input


text:
Update all major base images to have libgbm library

To be able to run Cypress v5.0.0 on cypress/base:10, cypress/base:12, and cypress/base:14

cypress/base:12.18.3 is cypress/base:12 and cypress/base:latest

All these images should be able to run Cypress v5

Hi there, sorry to dig out this issue.
I still have this issue concerning Cypress v5 (more details here: https://github.com/cypress-io/circleci-orb/issues/308) when trying to use the cypress/base:14 image  into circle-ci pipeline.
Since there is no closing comment, I wonder if anyone has found a solution for this ?

authors: avallete bahmutov

repo: cypress-io/cypress-docker-images


text:
optimize

optimize base on https://github.com/cytoscape/cytoscape.js-navigator/issues/46

@haohailiang, would you provide a description of your change and the approach that you used?
@canbax, would you be able to evaluate to what degree this makes a difference for your use case?

authors: haohailiang maxkfranz


text:
Messages setting displays twice

https://github.com/cyyynthia/toprole-everywhere/blob/69473f615ed927b058c24bb0d7a19130f61077f6/Settings.jsx#L58-L71
https://i.imgur.com/Y1mD0aZ.png

Fixed in latest update.

repo: cyyynthia/toprole-everywhere


text:
output json instead of csv

json might be better suited here because its a better way to represent hierarchical data, such as
cell -> gene -> amino acid mutation relationships
also nice for very sparse matricies like ours

addressed by 470e6ee929a4f5ab2a9a23282e5da16ac7d2b5f1

repo: czbiohub/cerebra


text:
EventSub "subscribe to channel reward remove events" causing invalid subscription error

Bug Report
Code
const rewardRemoveSub = await eventSub.subscribeToChannelRewardRemoveEvents(userId, onRewardRemove);

Expected behavior
Return a subscription object with no error.
Actual Behavior
Fails to return a subscription object and throws a rejection with the following error:
HttpStatusCodeError: Encountered HTTP status code 400: Bad Request

Body:
{
  "error": "Bad Request",
  "status": 400,
  "message": "invalid subscription type and version"
}

Cause of Error
In: https://github.com/d-fischer/twitch/blob/versions/4.4/packages/twitch/src/API/Helix/EventSub/HelixEventSubApi.ts#L349
Typo: 'channel.channel_points_custom_rewards.remove'
Subscription type should be: 'channel.channel_points_custom_reward.remove'
Environment

Version: 4.4.7
Node Version: 12.16.1
Operating system: Windows 10

I'm not sure why the merge didn't close this automatically, but this is fixed in 4.4.11. Thanks for reporting!

authors: d-fischer jayther

repo: d-fischer/twitch


text:
about plot

Thanks to the author for open source, as a newbie, I would like to ask how your four curves are drawn on a picture?thanks！

refer to https://matplotlib.org/api/_as_gen/matplotlib.pyplot.plot.html

net = oct_resnet50(pretrained=True) model = net.load_state_dict(torch.load('oct_resnet50_cosine.pth'))
I call your pre-training weights like this.Is right？

model
Then I enter the model command again.
And this is  output，not error！
IncompatibleKeys(missing_keys=[], unexpected_keys=[])
I think it is different from the official pytorch.
I want to know how you loaded the pre-training model.thanks！

authors: AnswerLinyi Git-Fastai d-li14


text:
🛑 Staging Webhook Public Api is down

In f152118, Staging Webhook Public Api ($STAGING_WEBHOOK) was down:

HTTP code: 503
Response time: 438 ms

Resolved: Staging Webhook Public Api is back up in 8343308.


text:
add Chap2_preliminaries and Chap3_linear-neural-networks of paddle-ve…

add Chap2_preliminaries and Chap3_linear-neural-networks of paddle

Thanks. Could you send one chapter on each PR? It will make review easier.

Thanks. Could you send one chapter on each PR? It will make review easier.

ok

authors: astonzhang tngt


text:
Spline scale

I would like to create a scale which would use the following settings. Would this be possible with any of the d3 scales?

Greetings, you mention "the following settings" but then there are no "settings" that follow. What would be the settings exactly? Does this type of scale exist in any other library?

Sorry about that. After doing some more reading on D3 scales, I guess the setting I'm referring to would be the exponent. My use case is that I have a dataset with a few outliers which are fairly big compared to the other values, and to be able to scale the small values so that they do no disappear visually, I've used a logarithmic spline to try and "blend out" the smallest and largest values.
The screenshot is from a software called Gephi, where you can apply this scale (where both the lower and top values gets a cap), and I'm trying to find the correct representation of the scale in D3.

I'd suggest using a Lamé transformation, which is a generalization of the circle equation x^k + y^k = 1:

y = Math.pow(1 - Math.pow(x, k), 1/k)

See https://observablehq.com/@enjalot/square-a-circle
To do it in D3 you might use an interpolator, see https://observablehq.com/@fil/squircle-interpolator

authors: Fil curran havardl


text:
Sketch 52.1 version is not available

Sketch 52.1 version
No reaction after use

Thank you for the report, #2 should fix this!


text:
Account locked

Define your async function
async def login_user(client, username, email, password):
await client.login(auth_info_1=username,
auth_info_2=email,
password=password)
return client
Define the function to handle saving cookies
def save_cookies(client, filename='cookies.json'):
# Assuming client.save_cookies is an async function
client.save_cookies(filename)
Main function to run the asynchronous code
async def main(client, username, email, password):
client = await login_user(client, username, email, password)
save_cookies(client)
def load_cookies(client, filename='cookies.json'):
client.load_cookies(filename)
async def search_user_0(query, count=1):
user_profile_results = await client.search_user(query, count,)
return user_profile_results
if name == "main":
# login credentials
config = ConfigParser()
config.read('config.ini')
username = config['X']['username']
email = config['X']['email']
password = config['X']['password']

# create client
client = Client(language='en-US')

# Run the main function with asyncio
#asyncio.run(main(client, username, email, password))
load_cookies(client)

# # params
minimum_users = 1
query = input('Type in username: ')
query = f'@{query}'

user_profile_results = asyncio.run(search_user_0(query, 1))
#print(user_profile_results)

# # get point-zero username profile
for user in user_profile_results:
    print(vars(user))
    break

My accounts keep getting locked. does anyone know a way around this?

being using vpn and kept the 'count' param at 20 for search_user()


text:
Should we require two dagger packages to be imported?

I think that requiring two packages to be imported instead of a single one (which we had before #1866) doesn't sit right:

Could we simplify this so that only a single package would need to be imported?

Follow-up to https://github.com/dagger/dagger/pull/1866 cc @helderco @shykes

I think we're in good shape with the new docs page added this week. In particular:

Core Actions Reference
Dagger Actions

authors: gerhard shykes

repo: dagger/dagger


text:
✨ Support Scheduling Build Steps on K8s Nodes

What are you trying to do?
We have the circumstance where a build could engage a large amount of expensive steps to all be engaged in order to assemble the pieces necessary to create a final build artifact. A number of these steps are large enough that even a well equipped machine might have a hard time coping with it.
My intent is to be able to schedule some/all actions as separate Pods scheduled on a K8s cluster. We could define their resource constraints so that K8s would be able to schedule them to run on nodes that have the needed capacity. This would also prove useful in the case the BuildKit starts supporting Windows Containers (not Linux containers running on Windows via Hyper-V, but actual Windows Containers). We could specify a node tag that would cause steps that require Windows containers to run on Windows K8s nodes &etc.
Why is this important to you?
Because we have large jobs that couldn't run on a dev machine unless it was super beefy, and even on a server, if run in parallel with other jobs, probably would get too large to run there, this is really a pre-requisite for any build system we would be able to utilize in our industry. We are building FPGAs and embedded software with lots of moving parts making very elaborate builds. We need to be able to run the steps in parallel and be properly scheduled in order to meet our speed and practicality requirements.
How are you currently working around this?
We have an elaborate bespoke build system in place that has pools of servers able to handle the load, or is able to block builds until resources become available. It still has its issues, which has led us to look into building a new K8s powered build system, but we would prefer to work in tandem with a product like this to pool resources and make this sort of functionality available to the world.

That's an amazing idea, being able to split task into multiple pod.
It requires a lot of thinking and design but result would be awesome!
I'm not sure it's a priority for now, I have tagged this issue with discussion so  it will not be forgotten

My team would be open to discuss this sometime soon if you'd like. We have a design for a new bespoke system that would fit our needs that would be a large effort for us to build. If we could come to an arrangement perhaps our effort could be spent making this sort of thing work over Dagger instead.

https://www.youtube.com/watch?v=wTENRhYt3mw is a video by Apple on front-ending BuildKit with K8s jobs so you can pass through resource constraints and have K8s schedule it. If this could somehow be hooked into Dagger, it would be a possible way to tackle this.

authors: Jitsusama TomChv


text:
npm package?

What is the issue?
I've looked all over the place, but any searching regarding "dagger.io" and "npm" shows absolutely nothing. Is there really not an npm package? I see there's a yarn one in the "dagger universe".

@troncoso thanks for this issue! We're creating some quickstart templates for node.js including for npm and yarn. The templates will have an example Dagger project that will show how to run dagger do build or similar to get your node project to build, test, etc. Inside, the Dagger plan would run npm install, npm xxx, etc.
Would it be valuable to have an example like that?
Would you like to see an npm package with certain features?

@jpadams I figured it out for myself. I don't know if there was an easier way, but I just copied the yarn package and changed everything to be "npm". Also for the packages installed by in alpine I changed them from "yarn" to "nodejs-current" (for node 18) and "npm".

@troncoso here's another simpler approach you could try as well:
package main

import (
	"dagger.io/dagger"
	"dagger.io/dagger/core"
	"universe.dagger.io/bash"
	"universe.dagger.io/docker"
)

dagger.#Plan & {
	actions: {
		build: {
			checkoutCode: core.#Source & {
				path: "."
			}
			pull: docker.#Pull & {
				source: "node:lts"
			}
			copy: docker.#Copy & {
				input:    pull.output
				contents: checkoutCode.output
			}
			install: bash.#Run & {
				input: copy.output
				script: contents: """
					npm install
					npm run build
					npm run test
					"""
			}
		}
	}
}

@troncoso Hoping you can make a PR for this from what you have working above 🙏 for npm.

@troncoso what about creating a new field in your npm package to be able to specify node version in your plan ? that would be awesome 🚀

I created a PR for this: https://github.com/dagger/dagger/pull/2908. After learning a bit more about the yarn package, I found that if you really wanted a different version, you can actually just build your own image and pass it to the npm commands.

authors: jpadams slumbering troncoso


text:
OpenSSL cannot read SSH keys mounted as secrets

What is the issue?
While working on #7202 I noticed that mounting an SSH key as a secret in a container always leads to Load key "/ssh-key": error in libcrypto errors.
Dagger version
dagger v0.11.2 (registry.dagger.io/engine) darwin/arm64
Steps to reproduce
The code reproducing the issue can be found in my daggerverse:
git clone https://github.com/sagikazarmark/daggerverse.git
cd daggerverse
git checkout ssh-key-repro
cd ssh-key-repro
chmod 600 id_ed25519

# Test that mounts the ssh key as a file
dagger call test-ok stdout

# Test that reads the ssh key as a file and creates a secret
dagger call test-ok-too stdout

# Test that reads the ssh key as a file and creates a secret
dagger call test-fail --ssh-key file:id_ed25519 stdout

Log output
❯ dagger -- call test-ok stdout
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIF0PEuo6tWBJ3kuKjBAx/MxxKnzO6AwL/rRo2YjxqA7i mark@Mark-M2MBP.localdomain

❯ dagger -- call test-ok-too stdout
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIF0PEuo6tWBJ3kuKjBAx/MxxKnzO6AwL/rRo2YjxqA7i mark@Mark-M2MBP.localdomain

❯ dagger -- call test-fail --ssh-key file:id_ed25519 stdout
✔ SshKeyRepro.testFail(
    sshKey: ✔ setSecret(name: "60a21fa96beb12b2d78c933778c32887cf5ddfbffc6d2755e4ad8d889c693c5f"): Secret! 0.0s
  ): Container! 1.4s
  ✔ Wolfi.container(packages: ["git", "openssh"]): Container! 1.2s
    ✔ Apko.wolfi(packages: ["git", "openssh"]): Container! 1.0s
      ✔ Container.from(address: "cgr.dev/chainguard/apko"): Container! 0.7s
        ✔ HTTP GET 0.4s
        ✔ remotes.docker.resolver.HTTPRequest 0.2s
          ✔ HTTP HEAD 0.2s
✘ Container.stdout: String! 0.1s
! process "ssh-keygen -y -f /ssh-key" did not complete successfully: exit code: 255
  ✘ exec ssh-keygen -y -f /ssh-key 0.1s
  ! process "ssh-keygen -y -f /ssh-key" did not complete successfully: exit code: 255
  ┃ Load key "/ssh-key": error in libcrypto

Error: response from query: input: container.import.withMountedSecret.withExec.stdout resolve: process "ssh-keygen -y -f /ssh-key" did not complete successfully: exit code: 255

Stderr:
Load key "/ssh-key": error in libcrypto

When passing a *Secret type file like --ssh-key file:id_ed25519, Dagger trims whitespace from the file content, which corrupts the sshkey file format.
To reproduce compare mounted file contents from @sagikazarmark's reproduce module.

When passing a *Secret type file like --ssh-key file:id_ed25519, Dagger trims whitespace from the file content, which corrupts the sshkey file format.

https://github.com/dagger/dagger/blob/030ffc107b43ebcc167484531605c4595cf049a8/cmd/dagger/flags.go#L362-L367
This looks like a failure introduced by https://github.com/dagger/dagger/pull/6845. cc @kpenfound @sipsma @vito

This looks like a failure introduced by https://github.com/dagger/dagger/pull/6845.

The change introduced by #6845 also valid concerns, I wonder, is it meaningful to add TrimSpace option to ContainerWithMountedSecretOpts?

:wave:  from discord

yes, that make sense. Maybe this might be changing the current implementation to https://go.dev/play/p/h5UXovuGHsl could be more accurate

here's the Z unicode category for the reference:

thoughts? @kpenfound @jedevc @aweris ?

Here is an ugly workaround then until it's fixed:
	return dag.
		Wolfi().
		Container(WolfiContainerOpts{
			Packages: []string{"git", "openssh"},
		}).
		WithMountedSecret("/ssh-key", sshKey).
		WithExec([]string{"cp", "/ssh-key", "/ssh-key2"}).
		WithExec([]string{"sh", "-c", "echo '' >> /ssh-key2"}).
		WithExec([]string{"ssh-keygen", "-y", "-f", "/ssh-key2"})

https://github.com/sagikazarmark/daggerverse/commit/72f87df2da60e95cfe1104375c83cbbfcb1a0c02

Actually, this is a terrible idea: this would result in the ssh key being cached.

This looks like a failure introduced by #6845.

The change introduced by #6845 also valid concerns, I wonder, is it meaningful to add TrimSpace option to ContainerWithMountedSecretOpts?

The current implementation trims spaces upon reading the file (ie. dag.SetSecret is unaffected) which kinda makes sense, but at the same time makes it impossible to add this as an option to ContainerWithMountedSecretOpts.

Actually, this is a terrible idea: this would result in the ssh key being cached.

You could use WithMountedTemp and copy the "workaround" key there. That will not store it in the cache.

That's a good idea, thank you @marcosnils

The current implementation trims spaces upon reading the file (ie. dag.SetSecret is unaffected) which kinda makes sense, but at the same time makes it impossible to add this as an option to ContainerWithMountedSecretOpts.

not affecting secret mounting to dag kinda makes sense but not sure about modifying file content event it's a whitespace.
I think this only applies to files like SSH keys or TLS certificates. There are two options available:

not touch files even white spaces to keep contents the same as the source
apply @marcosnils suggestion and keep that specific whitespace in the files

option 2 is kinda ugly but will make both sides happy.

I don't think we should do this with options at the point of use. Secrets should be marked to do this at point of load.
Something like @sipsma's suggestion in https://github.com/dagger/dagger/pull/6845#pullrequestreview-1920691440 seems reasonable:

--token=file-raw:/some/token/file/where/trailing/newlines/matter

That said, I'm almost tempted to suggest reverting #6845 since this is a pretty big edge case, but I have no suggestions to how to otherwise solve the original problem :thinking: So probably not an option.

That said, I'm almost tempted to suggest reverting https://github.com/dagger/dagger/pull/6845

after reading this I reconsidered this option and it made sense.
The example from #6845, uses echo $TOKEN command which adds a new line to the file.  if this is unwanted behavior I would prefer changing this to echo -n $TOKEN or something else rather than expecting dagger cli would solve it for me.

That said, I'm almost tempted to suggest reverting #6845 since this is a pretty big edge case, but I have no suggestions to how to otherwise solve the original problem 🤔 So probably not an option.

SGTM @jedevc

I'm good with reverting the change to strip newlines. I think we could consider the inverse of my suggestion on that PR and instead support a CLI syntax that does strip newlines for use cases that call for that. But I think this situation proves it's probably better to default to the exact contents of the file/command/env var.

authors: aweris jedevc marcosnils sagikazarmark sipsma


text:
Corp can rez during Runner paid window

Rezzing window needs to be bound to the Corp paid window.

Paid ability windows are not only for paid abilities. Rez windows don't exist. Some paid ability windows allow for rezzing (non-ice or any) cards, scoring, breaking subs, etc.
Details in CR: 9.2.7.

repo: dagguh/data-hunt

license: Unlicense


text:
AuthzReportSecurityEvent method call error Index not found. (0x80131124)

Hello, AuthzReportSecurityEvent method call error
System.BadImageFormatException: 'Index not found. (0x80131124)'

I can't see how you've used the function. Does this sample code help? https://github.com/dahall/Vanara/blob/3e1596ba7f60f6478e9efd0d5c1b30d102df9439/UnitTests/PInvoke/Security/Authz/AuthzTests.cs#L334

Sample code error

What error did the line above report?

Sometimes returns false

the first time

the second time

Write once, there are two logs

On the failure for a second call to AuthzRegisterSecurityEventSource, check here.
I'm not clear from your screen captures what the steps are to reproduce each problem. Will you please outline those steps?

Thank you very much for your reply.
How to add Name property to EventData Data？
Like this

How to add multiple EventData Data？

I don't have an answer yet on your Name attribute question, but have corrected and tested the code to get multiple Data elements. See test case here. Using that pattern also avoids the privilege error.

I have fixed problems now with AuthzReportSecurityEventFromParams and verified that there is no user API that allows the Name attribute to be added to the Data element.

authors: dahall lovesuch

repo: dahall/Vanara


text:
Repo Status in Submodule

Currently we show "(unknown)" when the current directory is within a submodule. Should display part of the submodule SHA instead (like bash).

Is this still an issue?  I don't see unknown but the SHA1 for commit we are using for a particular submodule:
[(e19af12...)] ~\GitHub\rkeithhill\PowerShellEditorServices\submodules\PSScriptAnalyzer
24>

authors: dahlbyk rkeithhill

repo: dahlbyk/posh-git


text:
Adding a LICENSE file to your work

Hi @daigo0927 ,
Your work was useful to me when I started implementing PWC-Net using TensorFlow. I want to add links to your work and need to know what kind of license you are sharing your code under.
Would you mind adding a LICENSE file to your repo so that we can reference your work appropriately?
Thank you so much for all your hard work!
PS: If you're interested, my implementation is at https://github.com/philferriere/tfoptflow

Thanks for your kind suggestion. Your code is also cool.
I'm going to add MIT license in a few days.

Thanks for the kind suggestion. Your code and notebook are also cool.
I add MIT license.

Thank you for the compliment, @daigo0927 , and for adding a license to your repo.
By the way, If you ever get tired of maintaining your own codebase and/or would like to submit PRs to my repo instead, you are more than welcome to do so! Regards, -- Phil


text:
App is crashing after updating my gradle build to 3.2.1 and applying google gms plugin

when i launch the app i get this error 'com.google.android.gms.ads.identifier.advertisingidclient not found'
i made a search and i found that google has moved all its libraries to gms plugin i think your library needs an update.
thnx

Hi! I assume this happens with the sample app in this repo, right ? Does the error happen at runtime or compiletime ?

authors: abderrahmantalbi martinbonnin


text:
Is it possible to manage the roles of (Non-ldap) database users through ldap2pg?

Hi ldap2pg community,
Sorry if this question has already been asked before, but I then can't find the answer.
Also, I do understand my question goes beyond the goal of ldap2pg, but it seems to me this might be possible. Hence my question.
So, here's my case:
I have two types of users in my database:

"Application users": These are typically created manually in the database, connect by providing a userid and password (method MD5) and cannot be found in the LDAP server. They are used by applications only and come in three forms:
a. Maintaining the content/data in the database (Read/write on all tables or specific schema's, doing mainly inserts and updates).
b. Installing/updating DDL as part of the install or update of the application
c. Reading data with the goal of additional processing and storing elsewhere.
"In person" users: persons that have a need to query or manage the data. These users are all found on the LDAP server and thus follow the normal ldap2pg process.

My question is about the first, the "application users". Would it be possible to manage the roles assignment by ldap2pg?
Looking at the postgres:managed_roles_query example (https://ldap2pg.readthedocs.io/en/latest/postgres/#synchronize-a-subset-of-roles), it seems to me like database users can be included in the managed roles.
But then, How do I link them to roles? Is that even possible? Or am I crossing the ldap2pg borders here?
Thanks in advance!
Regards,
Arjan

Hi @arjan-saly-tfs ,
Yes, ldap2pg can create static roles and configure them just like roles created from LDAP searches. Just skip the ldapsearch stanza:
sync_map:
- description: "Static application roles"
  roles:
  - name: myapprole
  grant:
  - privilege: ddl
    to: myapprole

You can't user curly substitution in such roles.
Is it clearer for you ?

Hi @bersace,
Thanks for explaining. Tried it and this works very well.
One follow up question though: In your example, no password is mentioned. By result the role is created without a password being set. Is it possible to set an MD5 password for this role "myapprole" using ldap2pg?
(Not sure if I would really want to have such a password in a config file like this. I'm exploring to what extent I could use this and where the boundaries are, preparing for questions I expect to be asked by our developers... ;-) .

Hi @bersace,
Thanks for confirming, fits my expectations.
When looking back to my original question however, the answer actually is "no" as I mentioned in my first bullet these "application users":

connect by providing a userid and password (method MD5) and cannot be found in the LDAP server

Thus:

Yes, ldap2pg can create users (roles with connect privilege)
No, ldap2pg cannot set passwords for them

Hence, using ldap2pg to create and maintain non-ldap user-roles can be useful when Authorization is done externally. Could be peer, could be any of the other external methods. It becomes counter-productive though for the methods "password" and "MD5" as the password can't be set and thus must be set manually afterwards.
For those it works better to create them manually or by script and configure ldap2pg to ignore them.
Thanks again for clarifying!

Hi @arjan-saly-tfs yes. static roles in ldap2pg are usualy groups.

Closing stale issue.

authors: arjan-saly-tfs bersace

license: PostgreSQL


text:
No queries recorded - cannot get query listed

This may be a problem on usage but I cannot get any query shown on the «running queries» panel.
I open another connection against the database, do queries on my own and the «TPS» value goes up and down but there are no running queries on the list.
I also tried to put the «set log_statement = 'all'» and while it records que queries on the logs they do not show up in the list.
I was thinking that perhards the queries are "too fast" but in the documentation example there are queries in the order of .5ms so it cannot be the case.
How should I proceed?

Hi,
The query list pg_activity shows are not coming from postgres logs, so log_statement does not have any effect on its behavior.  This query list is coming from postgres internal view : pg_stat_activity.
What postgres doc says about this internal view  : One row per server process, showing information related to the current activity of that process, such as state and current query.
So, you'll see only queries running when this list is built.

A FAQ has been added to the README.md to document possible reasons why queries might not show.
If you have more question on this topic feel free to reopen the issue.

authors: blogh julmon paurullan


text:
added README.md, docs folder and docuemnted APIs

With this PR there is now a documentation for HNS explaining how and why things work in the project and explaining how to run it. In addition, the API is now documented

/assign @liadlauber

repo: dana-team/hns


text:
Add "std" feature everywhere to support no_std envs

I made these changes to be able to run prost in a no_std environment where alloc is still available.
This is similar to #215 except it uses slightly different naming conventions in different places (i.e. the feature is called std instead of use_std consistently and so on).  Truth be told, I created this version without being aware of the other one. Maybe the two approaches could be combined!

Synced with the authors offline, and I will close this PR in favor of #215

repo: danburkert/prost


text:
Got rid of last unsafeForeignFunction

Nothing out of the ordinary, but even more idiomatic :-)

Good, thanks 👍


text:
Add middleware support for cookie-parser.

Add middleware support for cookie-parser.

Thanks!


text:
"Apply" button in main menu creates new Client record

Apply button in black bar menu on top to create a new Client Application currently redirects to the Application link in the public Catalystnw.org website. Instead of doing this, clicking on the Apply button when logged into the AppVetting tool should create a new client record that the Vetting Agent can then fill out using the Vetting Application view. This would also solve the problem of getting back to the AppVetting tool when a Vetting agent manually enters a paper application.

Not a problem

authors: CatalystNW dandahle

repo: dandahle/Catalyst-AppVetting


text:
Mark tests requiring network access and add a test workflow that disables network access

Closes #87.

are test fails against dandi-cli  the same as recently encountered in dandisets (https://github.com/dandi/dandisets/pull/87/commits/7ec49def8935aca47a4efc2b49bfe943325634c4) requiring to wait for it to become "valid"?  I even wonder now if such logic should be somehow incorporated into .publish with some time out (e.g. of 5 seconds, which should be sufficient for unittesting) since it seems to become a common pattern and ideally should not be duplicated across codebase?

@yarikoptic That failure reason only applies to one test.  Most of the failing tests are likely due to some mismatch in dandischema versions, and the failure is only exacerbated by the fact that trying to show the validation errors fails because dandi-cli's master branch expects version validation errors to be reported in a key that was removed from the API without telling me (addressed in https://github.com/dandi/dandi-cli/pull/775/commits/45a4215089699366c4b067d86417b86cd5005c50).

is only exacerbated by the fact that trying to show the validation errors fails because dandi-cli's master branch expects version validation errors to be reported in a key that was removed from the API without telling me (addressed in dandi/dandi-cli@45a4215).

shouldn't we have caught it somehow by integration testing in dandi-api against dandi-cli -- https://github.com/dandi/dandi-api/actions/workflows/cli-integration.yml seems to stay green

@yarikoptic We don't have any tests that expect Dandiset validation to fail.

Thank you @jwodder, let's proceed.
@Thechymera , set DANDI_TESTS_NONETWORK=1 env var while running tests and those which require outbound network will be skipped

thanks, it worked ^^

authors: TheChymera jwodder yarikoptic

repo: dandi/dandischema


text:
Running when merge to master

Report
What did you do?
Merge a MR to master
What did you expect to happen?
Still run Danger and show log.
What happened instead?
Not a GitLabCI Pull Request - skipping `danger` run

Is it possible running Danger when I merge to master, because I used  Danger-xcov to parse my coverage report.
Your Environment

Which CI are you running on?  GitLab CI
Are you running the latest version of Danger? Yes

Maybe through Danger local? I can't remember how danger ruby works anymore.

repo: danger/danger


text:
Danger status don't right

Report
What did you do?
Set up Danger and them make a PR and test it
What did you expect to happen?
ℹ If these are some swiftlint problem show on the GitHub and has a right status
What happened instead?
ℹ There is a danger report but the status is wrong

Your Environment

Which CI are you running on? Bitrise
Are you running the latest version of Danger? Yes
What is your Dangerfile?

Maybe the swiftlint plugin isn't declaring these as fails?

authors: orta wongkaking


text:
Adds a fix for #790

Adds a check before running the includes - thank #790

          1 Error

:no_entry_sign:
Please include a CHANGELOG entry.
You can find it at CHANGELOG.md.

          1 Warning

:warning:
Tests were not updated

  Generated by :no_entry_sign: Danger

authors: DangerCI orta


text:
IE 11 problem

In IE 11, CKEditor doesn't get content if it's exist. It shows only the empty editor. It shows permision error in console log.

@rsmalc Thank you very much. I will fix it soon.

I'm using vue-ckeditor 1.18.0 where the fix is already commited but still getting "permission denied" error in IE11 console. I get this error even when IE 11 displays the content correctly.
So I could just ignore it but in some cases (like in bug #42) it also shows an empty editor when setting the data after ajax request for example.

I got this problem too, is there anyway to fix it?

Hi @vicnoob
I will fix soon. Thank you very much for feedback.

@dangvanthanh It seems to be CKeditor's problem in general. I found in #42  that use :value can use in this situation, but it's 1 way binding, isn't it?

@vicnoob
When use v-model, it will ignore value attributes on any form elements. This is two-way binding.

@dangvanthanh I know v-model is two-way binding, quoted from issue #42

Hey guys, i had the same issue.
Now work for me using :value instead of v-model

He's using :value which is one way binding to fix the problem. I am wondering if I use @input to make the instance 2 way binding again, will the problem happen again?

It seems that permission denied happened because Vue-ckeditor make the ckeditor into iframe? Is that right?

@dangvanthanh I tried to use pure CK editor, there is no error, it seems to be vue-ck2's error

@vicnoob
Yes, It occur when using with vue-ckeditor2 because I wrapper Ckeditor with Vue.js. I will try find error and fix it.

@dangvanthanh Thank you. It's urgent for me :(

authors: dangvanthanh rsmalc usolved vicnoob


text:
Row Selection Background Color

When a row is selected its background color should be darkened to Grey 100 (#F5F5F5).
the following css class is available,
table[md-data-table] > tbody > tr.md-selected {
  background-color: #f5f5f5;
}

The issue is adding and removing the class appropriately when the row is selected.

This issue has been resolved

repo: daniel-nagy/md-data-table


text:
Uncaught TypeError: Cannot read property 'open' of undefined

[Enter steps to reproduce below:]

...
...

Atom Version: 1.11.2
Electron Version: 0.37.8
System: Mac OS X 10.11.6
Thrown From: project-manager package, v3.3.2
Stack Trace
Uncaught TypeError: Cannot read property 'open' of undefined
At /Users/democle/.atom/packages/project-manager/lib/views/projects-list-view.js:116

TypeError: Cannot read property 'open' of undefined
    at ProjectsListView.confirmed (/Users/democle/.atom/packages/project-manager/lib/views/projects-list-view.js:116:7)
    at ProjectsListView.module.exports.SelectListView.confirmSelection (/Users/democle/.atom/packages/project-manager/node_modules/atom-space-pen-views/lib/select-list-view.js:338:21)
    at space-pen-li.<anonymous> (/Users/democle/.atom/packages/project-manager/node_modules/atom-space-pen-views/lib/select-list-view.js:139:19)
    at HTMLOListElement.jQuery.event.dispatch (/Users/democle/.atom/packages/project-manager/node_modules/jquery/dist/jquery.js:4435:9)
    at HTMLOListElement.elemData.handle (/Users/democle/.atom/packages/project-manager/node_modules/jquery/dist/jquery.js:4121:28)

Commands
     -7:12.1.0 core:undo (atom-text-editor.editor.is-focused)
     -7:11.3.0 core:redo (atom-text-editor.editor.is-focused)
     -7:09.1.0 core:undo (atom-text-editor.editor.is-focused)
  4x -7:07.1.0 core:redo (atom-text-editor.editor.is-focused)
     -7:05.8.0 core:undo (atom-text-editor.editor.is-focused)
     -7:05.4.0 core:save (atom-text-editor.editor.is-focused)
     -7:03.4.0 core:redo (atom-text-editor.editor.is-focused)
     -7:02.2.0 core:undo (atom-text-editor.editor.is-focused)
     -2:28.8.0 core:close (atom-text-editor.editor.is-focused)
     -2:23.3.0 core:copy (atom-text-editor.editor.is-focused)
     -2:22.5.0 docblockr:parse-enter (atom-text-editor.editor.is-focused)
     -2:22.5.0 editor:newline (atom-text-editor.editor.is-focused)
     -2:21.9.0 editor:select-to-first-character-of-line (atom-text-editor.editor.is-focused)
     -2:21.6.0 core:delete (atom-text-editor.editor.is-focused)
     -2:21.1.0 core:save (atom-text-editor.editor.is-focused)
     -1:14.7.0 project-manager:list-projects (atom-text-editor.editor.is-focused)

Config
{
  "core": {
    "automaticallyUpdate": false,
    "projectHome": "/Users/democle/Documents/EnjoyItaly",
    "telemetryConsent": "limited",
    "themes": [
      "one-dark-ui",
      "robin-hood-syntax"
    ]
  }
}

Installed Packages
# User
angular-jonpapa-snippets, v0.7.0 (active)
angularjs, v0.3.5 (active)
atom-beautify, v0.29.13 (active)
atom-formatter-jsbeautify, v1.1.2 (active)
atom-jasmine, v0.8.1 (active)
atom-jshint, v2.0.0 (active)
color-tabs, v0.1.8 (active)
docblockr, v0.8.7 (active)
editorconfig, v1.5.3 (active)
language-jasmin, v0.2.0 (active)
language-ngdoc, v0.1.0 (active)
livereload, v0.4.4 (active)
local-history, vundefined (active)
pinned-tabs, v0.4.1 (active)
project-manager, v3.3.2 (active)
robin-hood-syntax, v1.0.0 (active)
split-diff, v1.0.5 (inactive)
stash-tabs, v0.1.0 (active)
terminal-plus, v0.14.5 (active)
atom-dark-syntax, v0.27.0 (inactive)
atom-dark-ui, v0.52.0 (inactive)
atom-light-syntax, v0.28.0 (inactive)
atom-light-ui, v0.44.0 (inactive)
base16-tomorrow-dark-theme, v1.2.0 (inactive)
base16-tomorrow-light-theme, v1.2.0 (inactive)
one-dark-ui, v1.6.0 (active)
one-light-ui, v1.6.0 (inactive)
one-dark-syntax, v1.3.0 (inactive)
one-light-syntax, v1.3.0 (inactive)
solarized-dark-syntax, v1.0.2 (inactive)
solarized-light-syntax, v1.0.2 (inactive)
about, v1.7.0 (active)
archive-view, v0.61.1 (active)
autocomplete-atom-api, v0.10.0 (active)
autocomplete-css, v0.11.2 (active)
autocomplete-html, v0.7.2 (active)
autocomplete-plus, v2.31.1 (active)
autocomplete-snippets, v1.11.0 (active)
autoflow, v0.27.0 (inactive)
autosave, v0.23.1 (active)
background-tips, v0.26.1 (active)
bookmarks, v0.42.0 (active)
bracket-matcher, v0.82.1 (active)
command-palette, v0.38.0 (inactive)
deprecation-cop, v0.54.1 (active)
dev-live-reload, v0.47.0 (active)
encoding-selector, v0.22.0 (active)
exception-reporting, v0.40.0 (active)
find-and-replace, v0.201.1 (active)
fuzzy-finder, v1.4.0 (active)
git-diff, v1.1.0 (active)
go-to-line, v0.31.0 (inactive)
grammar-selector, v0.48.2 (active)
image-view, v0.59.0 (active)
incompatible-packages, v0.26.1 (active)
keybinding-resolver, v0.35.0 (active)
line-ending-selector, v0.5.0 (active)
link, v0.31.1 (inactive)
markdown-preview, v0.158.0 (active)
metrics, v1.0.0 (active)
notifications, v0.65.1 (active)
open-on-github, v1.2.0 (inactive)
package-generator, v1.0.0 (inactive)
settings-view, v0.242.2-hotfix1 (active)
snippets, v1.0.2 (active)
spell-check, v0.68.2 (active)
status-bar, v1.4.1 (active)
styleguide, v0.47.0 (active)
symbols-view, v0.113.1 (inactive)
tabs, v0.101.0 (active)
timecop, v0.33.2 (active)
tree-view, v0.209.3 (active)
update-package-dependencies, v0.10.0 (active)
welcome, v0.35.1 (active)
whitespace, v0.33.0 (active)
wrap-guide, v0.38.2 (active)
language-c, v0.52.1 (active)
language-clojure, v0.21.0 (active)
language-coffee-script, v0.47.2 (active)
language-csharp, v0.12.1 (active)
language-css, v0.37.1 (active)
language-gfm, v0.88.0 (active)
language-git, v0.15.0 (active)
language-go, v0.42.1 (active)
language-html, v0.45.1 (active)
language-hyperlink, v0.16.0 (active)
language-java, v0.23.0 (active)
language-javascript, v0.119.0 (active)
language-json, v0.18.2 (active)
language-less, v0.29.5 (active)
language-make, v0.22.2 (active)
language-mustache, v0.13.0 (active)
language-objective-c, v0.15.1 (active)
language-perl, v0.35.0 (active)
language-php, v0.37.2 (active)
language-property-list, v0.8.0 (active)
language-python, v0.45.0 (active)
language-ruby, v0.69.0 (active)
language-ruby-on-rails, v0.25.0 (active)
language-sass, v0.56.0 (active)
language-shellscript, v0.22.4 (active)
language-source, v0.9.0 (active)
language-sql, v0.23.0 (active)
language-text, v0.7.1 (active)
language-todo, v0.28.0 (active)
language-toml, v0.18.0 (active)
language-xml, v0.34.9 (active)
language-yaml, v0.26.0 (active)

# Dev
No dev packages

I had the same issue after updating. Restarting atom fixed it for me.

I can confirm that the problem is when the package is updated to v3.3.2 and that the problem goes away when Atom is re-started.

Looks like it's an update issue. I was able to reproduce this and saw that some of the previous package modules were still in use by atom. Maybe there is some additional tidy up that needs to happen when the package is deactivated during updates?
Others are having similar issues too 😞  msaraiva/atom-elixir#19

Can confirm that restarting Atom fixed it for me too

Maybe there is some additional tidy up that needs to happen when the package is deactivated during updates?

Yeah, probably. I guess it's hard to fix it for older versions, but probably something that should be looked at for the current version for future updates that could break something. Not sure what would have to be done, but the issue over at atom-elixir looked interesting as a starting point.

yes, after restart it fixed also for me.
Shall I close this issue? Or @danielbrodin you will take care?

@xdemocle Happy to hear it worked after the restart 👍

authors: BarryThePenguin danielbrodin marcerbil oriolmirosa shadymoses xdemocle

repo: danielbrodin/atom-project-manager


text:
Goofy no longer displays chat names

Out of nowhere tonight my Goofy app, which has not worked flawlessly, but has worked up until now, suddenly stopped displaying any of the names of my chats or contacts, just displaying the avatar image and a blank space. The app did not update, and when deleted and reinstalled the problem persisted. I have no idea what could be causing this, but I would dearly like it fixed.

Hm,…
this is dependant on the size of the window. If you make the window larger, the name get visible again. However, this should be fixed.

On 12 Oct 2016, at 08:26, killersquirrel59 notifications@github.com wrote:
Out of nowhere tonight my Goofy app, which has not worked flawlessly, but has worked up until now, suddenly stopped displaying any of the names of my chats or contacts, just displaying the avatar image and a blank space. The app did not update, and when deleted and reinstalled the problem persisted. I have no idea what could be causing this, but I would dearly like it fixed.
https://cloud.githubusercontent.com/assets/22786033/19299599/2aaf51fc-900a-11e6-8898-7d9a33838624.png
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub https://github.com/danielbuechele/goofy/issues/285, or mute the thread https://github.com/notifications/unsubscribe-auth/AAp2rG8zQ2CQqJGPmUK5HMyRAISITJv0ks5qzH2qgaJpZM4KUaLU.

I guess messenger.com changed. The names have started folding in to be just pics at a certain size.

repo: danielbuechele/goofy


text:
Fixes to allow the code to compile with Swift 2.0

Failable initializers can’t override non-failable initializers
observeValueForKeyPath’s signature didn’t match the signature of the
method it was overriding

Oops, sorry about that :-)

repo: danielgindi/ios-charts


text:
[R2V2 dataset download] Permission denied - Maybe you need to change permission over 'Anyone with the link'?

Hi,
it seems that there's an issue (possibly related to an gdown's issue), which raises the following error during downloading R2V2 dataset files from Google Drive. For instance,

Permission denied: https://drive.google.com/uc?id=16FCN7dZ4dBUPYSbuaJq4dD3x_SNYRXn1
Maybe you need to change permission over 'Anyone with the link'?

This happens for the majority of the links found in r2v2_drive_urls.txt, all but 6 files, at least in my case.
Also, would that be possible to provide a list of md5sums for any file that needs to be downloaded from Google Drive? That would help a lot towards verifying validity of the downloaded files before extracting.

I believe gdown gets rate-limited after 20 links for 24 hours. You should still be able to download the links by hand. This kind of sucks, but I didn't want people to have to download one really large file in case it got interrupted. I can make the one-large-file option available, but I'm not sure if it will be more useful.
https://github.com/wkentaro/gdown/issues/43

Here is the full dataset as one large tar file. https://drive.google.com/open?id=1JGwb6ai1NugeW7KJDDE7G_bZ54D69teF

@danielgordon10 thank you! This actually helps a lot :)

I met the same error when I try to download many big files from my google drive, have anyone fixed it?


text:
fix issue with no tty

When running this hook locally I was getting an error about the input device not being a TTY:
$ pre-commit run --all
CircleCI config validation...............................................Failed
hookid: circleci-validate

Begin circleci config validation
the input device is not a TTY

A simple modification to the shell script gets it working again for me. I found the solution on the CircleCI blog:  https://circleci.com/blog/circleci-hacks-validate-circleci-config-on-every-commit-with-a-git-hook/

d'oh, i just saw this now. thanks for the contributions! too bad i only noticed this after deprecation.

authors: bradym danielhoherd

repo: danielhoherd/pre-commit-circleci


text:
🛑 DevOps App Roadmap Prod is down

In b4cf549, DevOps App Roadmap Prod (https://roadmap-app.onrender.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: DevOps App Roadmap Prod is back up in 0002241 after 16 minutes.

repo: danielitogomez/upptime


text:
[REQUEST] Fake item unbox(chat) and trade massage?

Does anyone have Fake item unbox and trade massage for that is working as dll?
i tried @DoomFishWasTaken Pull req but ain't working..
I can give a one skin for this!

I've think that problem is to change colour of guns...

I've tried #1483 , works perfectly but you need attack your teammates (like Fake Ban).

Hi @cailloubr, can you drop me .dll file of that? If you still have that mate

My project has external dependencies (user activity on my forum), so it won't load :(

My project has external dependencies (user activity on my forum), so it won't load :(
He is avaliable on cheaters.pro (in portuguese)

@cailloubr who is?

@ghost fixed the pull :)

@danielkrupinski close this, the guy deleted his github acc

authors: ADGAYMILK DoomFishWasTaken RichhieCheaterfun cailloubr

repo: danielkrupinski/Osiris


text:
Fix of #40

This is a feature pull request.
In this pull request the XSS wordlists are formated in machine readable format.
Additionally, some fixes are made to XSS-Vectors-Mario.txt(in robot-friendly). The issue with it is that the contents are Mangled and in no particular order.
Do take note that the files in robot-friendly may have some entries removed/mangled due to me accidentally removing them.

May conflict with #952

Thanks for doing this @molangning !

repo: danielmiessler/SecLists


text:
HomematicIP (local) cannot be downloaded after Update HA Core to 2024.2.1

I agree to the following

[X] I have read the documentation right now
[X] I have read the FAQs right now
[X] I am aware of the latest release notes
[X] I am aware that an integration that was installed via HACS also needs to be updated via HACS
[X] The Backend (CCU/Homegear/...) is working as expected, devices are taught in and are controllable by its own UI.
[X] I am running the latest version of the custom_component (and Home Assistant)

The problem
I used 1.54.0 with HA Core 2024.1.x successfully. After updating Core to 2024.2.1 the HomematicIP integration didn't work anymore. I have tried to reload the integration, unfortunately without success. Then I tried to reload custom_homematic from the HACS, but that didn't work either (see excerpt from the HA log).
What version of HomematicIP (local) has the issue?
1.55.0
What was the last working version of HomematicIP (local)?
1.54.0
What type of installation are you running?
Home Assistant OS
What type of installation are you running for your homematic backend?
CCU3
Which version of your homematic backend are you running?
3.73.9
What hardware are you running for your system?
No response
Which config details do you use

[ ] TLS
[ ] callback data (see)

Which interfaces do you use?

[X] Homematic IP
[ ] Homematic (Bidcos-RF)
[ ] Groups (Heating-Group)
[ ] BidCos-Wired (HM-Wired)

Diagnostics information (no logs here)
No response
Log file extract. Anything in the logs that might be useful for us? The log (Setting/System/Logs -> load full log) is the best source to support trouble shooting!
2024-02-14 07:00:02.905 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [139827476998080] Error handling message: Unknown error (unknown_error) Rüdiger from 192.168.178.68 (Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36)
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 26, in _handle_async_response
    await func(hass, connection, msg)
  File "/config/custom_components/hacs/websocket/repository.py", line 234, in hacs_repository_download
    await repository.async_install()
  File "/config/custom_components/hacs/repositories/base.py", line 899, in async_install
    await self.async_install_repository()
  File "/config/custom_components/hacs/repositories/base.py", line 982, in async_install_repository
    await self.download_content()
  File "/config/custom_components/hacs/repositories/base.py", line 629, in download_content
    await self.download_repository_zip()
  File "/config/custom_components/hacs/repositories/base.py", line 686, in download_repository_zip
    zip_file.extractall(self.content.path.local, extractable)
  File "/usr/local/lib/python3.12/zipfile/__init__.py", line 1721, in extractall
    self._extract_member(zipinfo, path, pwd)
  File "/usr/local/lib/python3.12/zipfile/__init__.py", line 1762, in _extract_member
    raise ValueError("Empty filename.")
ValueError: Empty filename.

Additional information
No response

Sorry, but this is not a problem of the integration.
Check outstanding updates. Maybe HACS is outdated.

Same problem. But HACS is udated.
HA Core == 2024.2.2
homematicip_local == 1.55.0
Log:
`Logger: homeassistant.setup
Source: setup.py:251
First occurred: 21:56:18 (1 occurrences)
Last logged: 21:56:18
Setup failed for custom integration 'homematicip_local': Unable to import component: Exception importing custom_components.homematicip_local
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/loader.py", line 827, in get_component
ComponentProtocol, importlib.import_module(self.pkg_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/importlib/init.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1387, in _gcd_import
File "", line 1360, in _find_and_load
File "", line 1331, in _find_and_load_unlocked
File "", line 935, in _load_unlocked
File "", line 994, in exec_module
File "", line 488, in _call_with_frames_removed
File "/config/custom_components/homematicip_local/init.py", line 21, in
from .control_unit import ControlConfig, get_storage_folder
File "/config/custom_components/homematicip_local/control_unit.py", line 87, in
from .support import (
File "/config/custom_components/homematicip_local/support.py", line 128, in
class HmBinarySensorEntityDescription(HmEntityDescription, BinarySensorEntityDescription):
TypeError: metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 251, in _async_setup_component
component = integration.get_component()
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 835, in get_component
raise ImportError(f"Exception importing {self.pkg_path}") from err
ImportError: Exception importing custom_components.homematicip_local`
Regards, Eckart

Definitely not the same, or do I miss the the same exception?
Looks like the integration is not updated to 1.55.

If the problem still exists after the update, the create your own issue and provide as much of the requested information, esp. the integration diagnostics is required.

authors: Eckart0 RueKow SukramJ


text:
🛑 PSE - Portal is down

In bcabe55, PSE - Portal (https://www.pse.com.co/persona) was down:

HTTP code: 0
Response time: 0 ms

Resolved: PSE - Portal is back up in 7e21df3.

repo: danielqb/status


text:
I have successfully added a Scroll to top button on bottom right corner

Hey @danishzayan , I have completed my work please make a merge of my PR.

@Eyesnatcher-coder  It goes at once top page and it is not smooth scrolling... Plz fix this after that I will merge ur code...

Thanks @danishzayan :)

Thanks @danishzayan :)

Wlcm

@danishzayan I am extremely sorry, I didn't saw your comment, I got to know now when you merged.
Sorry for inconvenience  :(

@danishzayan I am extremely sorry, I didn't saw your comment, I got to know now when you merged. Sorry for inconvenience :(

It's okay.. no matter

authors: Eyesnatcher-coder danishzayan

repo: danishzayan/YourQuotes-App


text:
Message between earliest and latest

Hi @blankensteiner thanks for your effort on this!
Please I will need to be able to achieve this: To create a reader that will read from some message between earliest and latest with the library! I see this is possible on the java client but not fully implemented on dotPulsar
MessageId id = MessageId.fromByteArray(msgIdBytes);
Reader<byte[]> reader = pulsarClient.newReader()
    .topic(topic)
    .startMessageId(id)
    .create();

Would love to see this feature implemented
Thanks a lot!!

Hi @eaba
Unless I'm not understanding your correctly, this is already possible. When creating a reader, you can set the StartMessageId.
Let me know if that floats your boat :-)

The emphasis is on "between earliest and latest" - like BatchMessageIds!

Precisely. You have a messageId (saved as a byte array or json or whatever somewhere) and now you want to create a reader starting from that id.
The class DotPulsar.MessageId has a constructor for creating the messageId:  MessageId(ulong ledgerId, ulong entryId, int partition, int batchIndex) (the lederId, entryId, partition and batchIndex are all public getter properties on MessageId).
Then you pass that message to StartMessageId on the ReaderBuilder or the Reader's constructor.
I'm not sure what is missing here? Could you elaborate?

Maybe it is the way Pulsar docs put it that is the issue.
By "To create a reader that will read from some message between earliest and latest" my understanding is that we can have StartMessageId range (like bucket) e.g. Messages between 10 and 20.
which makes the Reader to stop reading at 20 automatically!

Can the Message SequenceId be taken to be the same as the MessageId?
Like I save the message SequencId and then construct a MessageId with it?

I could be wrong, but I don't think any client supports the functionality described. Looking at the java client the startMessageId method only takes a MessageId, not a range. If I'm not correct, please let me know.
In regards to the sequenceId: This is metadata controlled by the producer. You sadly cannot rely on it or deduce a MessageId from it. The messageId is generated (at east the first 3 parts) from Apache BookKeeper, so you need to know the exact messageId of your starting point. Creating a range of "from X and 10 messages forward" is something that can easily be handled in application code.

How does the MessageId.Latest work? I saw long.MaxValue was used and that informed my decision to use Message.SequenceId.

Ah.
MessageId.Earliest and MessageId.Latest are just default values, so that the Pulsar server knows whether you want to start at the beginning or the end. They could also have been implemented as an enum or boolean, but they chose to use a "fake" MessageId to make the API easier I guess.
A messageId consist of 4 properties: LedgerId, EntryId, Partition and BatchIndex. Consider them as random.
The sequenceId is something the producer provides. It can help with deduplication, but again you can not depend on it being in sequence or unique. That's how it's implemented server side and you can not just "skip to sequenceId X", that is simply not possible via the protocol.
If I knew more about your use case, I could maybe provide some more guidance.
It sounds like you want the functionality of a consumer (meaning a cursor, so what you start consuming from where you last left off), but you want to use a Reader for doing this. If that is the case, then you need to save the MessageId and use that when creating the Reader.
Makes sense?

Makes sense. @blankensteiner thanks for your time.

@blankensteiner one more thing: do you think am thinking right?
.Where(x => (x.MessageId.LedgerId >= start.LedgerId) && (x.MessageId.EntryId >= start.EntryId))
.Where(x => (x.MessageId.LedgerId <= end.LedgerId) && (x.MessageId.EntryId <= end.EntryId))

I guess you can assume that EntryIds within the same ledger will be sequential, but not that the LedgerId will be.
I would suggest trying it out on a real cluster and maybe ask Apache Pulsar/Bookkeeper if they can offer any guaranties on this matter.
Again, I need to know your specific use case if I am to provide any valuable guidance :-)

Here https://github.com/eaba/Akka.Persistence.Pulsar
Am working on a pulsar event backend for Akka.net
Please take a look and see where I am failing!

Am experiencing this issue
[ERROR][1/11/2020 5:32:23 PM][Thread 0008][akka://SampleSystem/user/SampleActor] Rejected to persist event type [Pulsar_Sample.Event.ReadSystemCurrentTimeUtc] with sequence number [4] for persistenceId [sampleActor] due to [Cannot access a disposed object.
Object name: 'AsyncLock'.].
Cause: System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'AsyncLock'.
   at DotPulsar.Internal.AsyncLock.Lock(CancellationToken cancellationToken)
   at DotPulsar.Internal.Executor.Execute[TResult](Func`1 func, CancellationToken cancellationToken)
   at DotPulsar.Internal.Producer.Send(MessageMetadata metadata, ReadOnlySequence`1 data, CancellationToken cancellationToken)
   at DotPulsar.Internal.Producer.Send(MessageMetadata metadata, ReadOnlyMemory`1 data, CancellationToken cancellationToken)
   at DotPulsar.Internal.MessageBuilder.Send(ReadOnlyMemory`1 data, CancellationToken cancellationToken)
   at Akka.Persistence.Pulsar.Journal.PulsarJournal.WriteMessagesAsync(IEnumerable`1 messages) in C:\Users\Technical\source\repos\Akka.Persistence.Pulsar\Akka.Persistence.Pulsar\Journal\PulsarJournal.cs:line 156

here:
protected override async Task<IImmutableList<Exception>> WriteMessagesAsync(IEnumerable<AtomicWrite> messages)
        {

            var failures = ImmutableArray.CreateBuilder<Exception>(0);
            foreach (var write in messages)
            {
                try
                {
                    var persistentMessages = (IImmutableList<IPersistentRepresentation>) write.Payload;
                    foreach (var message in persistentMessages)
                    {
                        var producer = await GetProducer(message.PersistenceId, "Journal");
                        var messageBuilder = new MessageBuilder(producer);
                        messageBuilder.Key($"{message.PersistenceId}-{message.SequenceNr}");
                        messageBuilder.SequenceId((ulong)message.SequenceNr);//used in reconstructing MessageId
                        if(message.Payload is Tagged t)
                        {
                            var tgs = 0;
                            foreach(var tg in t.Tags)
                            {
                                messageBuilder.Property($"Tag-{tgs}", tg);//Tag messages
                                tgs++;
                            }
                        }

                        var journal = Context.System.Serialization.Serialize(message.Payload);
                        var messageid = await messageBuilder.Send(journal, cancellationToken: default);//For now
                        await SaveMessageId(message.PersistenceId, message.SequenceNr, messageid, DateTimeOffset.UtcNow.ToUnixTimeMilliseconds());// https://github.com/danske-commodities/dotpulsar/issues/12

                    }
                }
                catch (Exception e)
                {
                    failures.Add(e);
                }
            }

            return failures.ToImmutable();
        }

Solved it!
I was caching a disposed object

authors: blankensteiner eaba

repo: danske-commodities/dotpulsar


text:
Add emacs hm module

Closes #55.
Feedback is really appreciated, I'm not that experienced with elisp.
Line 48/49 sadly add more than intended to the custom-theme-load-path (the directory with the combined emacs packages), but that might be a minor issue, as it (AFAICT) only affects custom-theme-load-path, thus the theme engine, nothing else.
It works on my system (:tm:) when using my fork with this module.

This looks reasonable in terms of the NixOS module and how it will combine with any existing configuration.
I don't use emacs so there's not much I can say about the lisp code. I'll merge this as-is soon unless anyone else leaves a review.

I found a solution for the "big" impact of line 48/49. emacs provides a method to resolve symlinks, making it easy to resolve the symlinks.custom-theme-load-path is now extended with the path to only the stylix theme package, nothing more.

Looks good to me as a lisper

authors: CRTified Gavinok danth

repo: danth/stylix