[3.1] Sema: Ban single-labeled element tuples harder.

Explanation: Swift's prohibitions against single-element tuples missed the case of a parenthesized tuple in a function argument type, and changes to the type checker in Swift 3.1 to solidify the new function argument model have caused code that relied on this to break more reliably. It would be extremely fragile to maintain the 3.0 behavior in compatibility mode, so this fix makes us reliably diagnose the underlying limitation that single-element tuples aren't allowed instead of letting it manifest itself in inscrutable downstream type errors.
Scope: Source break with Swift 3.1 with one known report in SR-3788. Fix is straightforward: change the labeled tuple to a scalar.
Issue: SR-3788.
Risk: Low
Testing: Swift CI, test case from bug report

@swift-ci Please test

Build failed
Jenkins build - Swift Test OS X Platform
Git Commit - 0f7bcb6d901edce461ab996899a113353abb47fc
Test requested by - @jckarter

@swift-ci Please clean test OS X


FileNotFoundError: [Errno 2] No such file or directory when writing to_csv

I'm getting the following error when trying to write using to_csv. It works fine using pandas.
import dask.dataframe as dd

Filename = '\FreshPlanet_SongPop_0317.txt'
Filepath = r'O:\Song Pop\01 Originals\2017'
OutputFilepath = r'O:\Song Pop\01 Originals\2017\FreshPlanet_SongPop_0317_FORMATTED.txt'
df = dd.read_csv(Filepath + Filename, sep='\t', encoding='ansi', keep_default_na=False)

dd.to_csv(df=df, filename=OutputFilepath, index=False, header=False, float_format='%.7f', sep='\t')

Error:
Traceback (most recent call last):
  File "C:/Users/PycharmProjects/Freshplanet/TestDask.py", line 12, in <module>
    dd.to_csv(df=df, filename=OutputFilepath, index=False, header=False, float_format='%.7f', sep='\t')
  File "C:\ProgramData\Miniconda3\lib\site-packages\dask\dataframe\io\csv.py", line 505, in to_csv
    delayed(values).compute(get=get)
  File "C:\ProgramData\Miniconda3\lib\site-packages\dask\base.py", line 99, in compute
    (result,) = compute(self, traverse=False, **kwargs)
  File "C:\ProgramData\Miniconda3\lib\site-packages\dask\base.py", line 206, in compute
    results = get(dsk, keys, **kwargs)
  File "C:\ProgramData\Miniconda3\lib\site-packages\dask\threaded.py", line 75, in get
    pack_exception=pack_exception, **kwargs)
  File "C:\ProgramData\Miniconda3\lib\site-packages\dask\local.py", line 521, in get_async
    raise_exception(exc, tb)
  File "C:\ProgramData\Miniconda3\lib\site-packages\dask\compatibility.py", line 60, in reraise
    raise exc
  File "C:\ProgramData\Miniconda3\lib\site-packages\dask\local.py", line 290, in execute_task
    result = _execute_task(task, data)
  File "C:\ProgramData\Miniconda3\lib\site-packages\dask\local.py", line 271, in _execute_task
    return func(*args2)
  File "C:\ProgramData\Miniconda3\lib\site-packages\dask\bytes\core.py", line 29, in write_block_to_file
    with lazy_file as f:
  File "C:\ProgramData\Miniconda3\lib\site-packages\dask\bytes\core.py", line 311, in __enter__
    f = f2 = self.myopen(self.path, mode=mode)
  File "C:\ProgramData\Miniconda3\lib\site-packages\dask\bytes\local.py", line 61, in open
    return open(path, mode=mode)
FileNotFoundError: [Errno 2] No such file or directory: 'O:\\Song Pop\\01 Originals\\2017\\FreshPlanet_SongPop_0317_FORMATTED.txt\\6.part'

The to_csv method is going to create a directory and write many files to that directory.  I suspect that the filename that you have provided is already a file and so Windows is unable to create a directory of the same name.

Hi there - i've checked the file path and the file doesn't exist at the point of running the script (and nothing is output after it errors) - which is why the error confused me.
Is there a way to just get one .csv created rather than many?

Is there a way to just get one .csv created rather than many?

No, but you can concatenate them afterwards

@kingblah you need to provide a globstring (including a *) or a list of filenames: http://dask.pydata.org/en/latest/dataframe-api.html#dask.dataframe.to_csv

@TomAugspurger thanks - that fixed the error! I'll guess I need to formulate a looping function afterwards to concatenate the .csvs afterwards. Apologies, my python isn't great.

We could potentially interpret foo.csv as [foo.csv], but I like the current behavior of raising if a globstring is not provided.
We could improve this by:

checks the output filename for a globstring and raises with a nice error message if one isn't found
Update the documentation to recommend using a length-one list if you want a single file.

@kingblah would you be able to submit a pull request doing that?

@TomAugspurger Using a length one list worked great (blocksize=None on the read_csv). Will dask still enforce a globstring (-*.csv)?
Sure, what do you need in the pull request?

Using a length one block worked great (blocksize=None on the read_csv). Will dask still enforce a globstring (-*.csv)?

Yes, I think so.

Sure, what do you need in the pull request?

In https://github.com/dask/dask/blob/b1ff82604af5360b7972cd613e57d47688824316/dask/dataframe/io/csv.py#L388 I would add a check like
if isinstance(filename, six.string_types):
    if '*' not in filename:
        raise ValueError(nice message)

Update the documentation to recommend using a length-one list if you want a single file.

It looks like I was wrong about this. This only contained the the first partition. @martindurant do you think we should check that len(filename) equals df.npartitions when filenames is a list?

A list of length one is not generally a good solution to this problem.
There is no easy way to have many threads/processes write in parallel to a
single linear file of unknown length.
On Tue, Sep 5, 2017 at 8:35 AM, Tom Augspurger<EMAIL_ADDRESS>wrote:

Using a length one block worked great (blocksize=None on the read_csv).
Will dask still enforce a globstring (-*.csv)?
Yes, I think so.
Sure, what do you need in the pull request?
In https://github.com/dask/dask/blob/b1ff82604af5360b7972cd613e57d4
7688824316/dask/dataframe/io/csv.py#L388 I would add a check like
if isinstance(filename, six.string_types):
if '*' not in filename:
raise ValueError(nice message)
Update the documentation to recommend using a length-one list if you want
a single file.
It looks like I was wrong about this. This only contained the the first
partition. @martindurant https://github.com/martindurant do you think
we should check that len(filename) equals df.npartitions when filenames
is a list?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/dask/dask/issues/2656#issuecomment-327161971, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AASszBTDuzuPQ59N3fZdTeCfN7y4-431ks5sfUArgaJpZM4PMtkx
.

Ah, OK. Would it therefore be more efficient to write to multiple files, and then concatenate them afterwards (outside of dask?), as you suggested?

Yes
On Tue, Sep 5, 2017 at 8:41 AM, kingblah<EMAIL_ADDRESS>wrote:

Ah, OK. Would it therefore be more efficient to write to multiple files,
and then concatenate them afterwards (outside of dask?), as you suggested?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/dask/dask/issues/2656#issuecomment-327163201, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AASszCduEGGFpp7cZStdSNk9DPbB0wkIks5sfUFsgaJpZM4PMtkx
.

The check that Tom points out sounds like a good one to me to avoid wrong
results.  @martindurant would probably have a more informed perspective
here though.
On Tue, Sep 5, 2017 at 8:44 AM, Matthew Rocklin<EMAIL_ADDRESS>wrote:

Yes
On Tue, Sep 5, 2017 at 8:41 AM, kingblah<EMAIL_ADDRESS>wrote:

Ah, OK. Would it therefore be more efficient to write to multiple files,
and then concatenate them afterwards (outside of dask?), as you
suggested?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/dask/dask/issues/2656#issuecomment-327163201, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AASszCduEGGFpp7cZStdSNk9DPbB0wkIks5sfUFsgaJpZM4PMtkx
.

Yes, I agree with @TomAugspurger on both things: we should accept only lists or strings, the former to have the right number of partitions, the latter to be an expandable pattern - otherwise error early.

@mrocklin I've just done some testing and, at least with my file, writing to 7 csv's (that's how many partitions dask gave the csv when read) and then subsequently concatenating each of the 7 output csv's into one single csv takes significantly longer (presumably due to two large writing operations) than just setting blocksize = None and dask writing out one single csv all in one operation.  I'm probably missing something here!

You can run .compute() and write to CSV using Pandas if your aggregated data will fit into memory. Might be easier depending on your application.

@TomAugspurger I provided a glob including a * but still had the same problem

By the way I am running in distributed mode

Do all your workers have access to the same filesystem? If you're running on AWS EC2, e.g. they won't, so you would need to use something like S3.

Thanks, I was beginning to suspect that was the issue. I was trying to store locally.

Is there a way to just get one .csv created rather than many?
No, but you can concatenate them afterwards

I think you can always re-partition to npartitions=1, at the cost of doing that, and the potential consequences on performance of the export and re-import.  But you'll get a single CSV file.

I visited this issue when triaging some bugs.  One thing I observed is that Dask wasn't creating any parent-paths for me, so errored-out when attempting to to_csv() or to_json() into a non-existent path.  This wasn't completely unexpected, but might cause some confusion when the last directory-path-segment is viewed or treated like a pseudo-filename, because it is actually a container for the exported file-partitions.

I agree that we could have these call mkdirs on the filesystem in each case, and this could even like in the open_files machinery, rather than being specific to the CSV or JSON writers. mkdirs is indeed one of the required methods on a dask file-system, even if it has no effect on object stores like s3. However, there are always errors of this sort that can happen, particularly lack of permissions, which will not surface until the lazy operations are being executed later.

I changed file name from multiData(copy).csv to multiData.csv. It works

All Possible working solution added [Solved] FileNotFoundError: [Errno 2] No such file or directory

If the user does not pass the full path to the file (on Unix type systems this means a path that starts with a slash), the python file path is interpreted relatively to the current working directory. The current working directory usually is the directory in which you started the program. In order to make this work, the directory containing the python executable must be in the PATH, a so-called environment variable that contains directories that are automatically used for searching executables when you enter a command.
In any case, if your Python script file and your data input file are not in the same directory, you always have to specify either a relative path between them or you have to use an absolute path for one of them.


shapeless-3 K1 deriving not working for extension methods

K1 deriving doesn't seem to work with traits with extension methods:
trait Functor[F[_]] {
  def (x: F[A]) map [A, B] (f: A => B): F[B]
}
implicit def functorGen[F[_]](implicit inst: => K1.Instances[Functor, F]): Functor[F] = new Functor[F] {
  def (x: F[A]) map [A, B] (f: A => B) =
    inst.map(x)([t[_]] => (ft: Functor[t], ta: t[A]) => ft.map(ta)(f))
}

It fails to compile with the following error messages:
Found:    F[A](x)
[error] Required: shapeless.K1.Instances[bengal.Functor, F] => Any
[error]
[error] where:    F is a type in method functorGen with bounds <: [_$2] => Any
[error]       inst.map(x)([t[_]] => (ft: Functor[t], ta: t[A]) => ft.map(ta)(f))
[error]                ^
[error] one error found

shapeless-3 has moved to its own repo in the Typelevel github organisation ... would you mind reopening this ticket there?


Update online file installation instructions in using-dumpling.md

As stated in the title

thank you c:


Implement RMQ Integration for registry

https://github.com/airavata-courses/CloudElves/tree/HW2/registry


Error loading configuration issue

Background
I followed the steps for deployment of binaryalert using ubuntu based EC2 instance, with all configurations done. When I ran './manage.py deploy' , it displayed this error

Error loading configuration: Error loading /home/ubuntu/binaryalert/terraform/cloudwatch_dashboard.tf: Error reading config for aws_cloudwatch_dashboard[binaryalert]: local.dashboard_body: resource variables must be three parts: TYPE.NAME.ATTR in:
${local.dashboard_body}
Traceback (most recent call last):
File "./manage.py", line 488, in
main()
File "./manage.py", line 484, in main
manager.run(args.command)
File "./manage.py", line 348, in run
getattr(self, command)()  # Command validation already happened in the ArgumentParser.
File "./manage.py", line 421, in deploy
self.apply()
File "./manage.py", line 372, in apply
subprocess.check_call(['terraform', 'init'])
File "/usr/lib/python3.6/subprocess.py", line 291, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['terraform', 'init']' returned non-zero exit status 1.

Can you please suggest any configuration mistake I may have done, or is it a known bug?

Hi @boodera! I don't think we've seen this before. My guess is that you're running an older version of Terraform. What version of Terraform are you running? terraform --version Try upgrading to the latest version (0.11.X).
You can test whether Terraform understands the config by cd terraform && terraform validate

I'm closing the issue for now, but feel free to re-open if you're still experiencing any issues!


v0.8.0: node_modules in the server-function directory does not include all dependencies

Using Monorepo nextjs and SST. The server-function directory inside the .open-next folder does not contain the required node_modules. This results in a number of dependency issues when run on AWS Lambda. Reverting to 0.7.0 fixes the issue.

Hmm that's weird. Can you post this on #help on Discord?

Had the same issue with yarn workspaces and SST, downgrading to 0.7.0 fixes it.
  // Create a Next.js site
  const site = new NextjsSite(stack, "App", {
    path: "frontend",
    buildCommand: "npx<EMAIL_ADDRESS>build"
  });

@fzia @roman-myroshnyk This should be fixed in v0.9.0!
Let me know if it works for you.

@fwang Thank you for fast action.
Can confirm that this issue is fixed!


Improve performance on distinct

The difference in performance on distinct vs array_unique is so large that we've decided to refactor some of our code to use the latter instead.
I wanted to see if I could improve the performance on distinct. I copied a one of the benchmarks in tests/performance and modified it to compare distinct vs array_unique instead.
I ran the benchmark using the current solution and got this result:
+-------------------------------------------------------------------------------------------+-----------------------+---------------------------+----------------------+
| operation details                                                                         | native execution time | collection execution time | difference (percent) |
+-------------------------------------------------------------------------------------------+-----------------------+---------------------------+----------------------+
| array_unique vs Collection::distinct on 10000 integers (addition)                           | 0.00062398910522461s  | 0.17144465446472s         | 27475%             |
| array_unique vs Collection::distinct on 10000 strings (concatenation)                       | 0.00031847953796387s  | 1.1402836799622s          | 358039%            |
| array_unique vs Collection::distinct on 10000 md5 invocations                               | 0.00044071674346924s  | 1.3995371103287s          | 317559%            |
| array_unique vs Collection::distinct for 10000 integers n, counting sum(0, n) the naive way | 0.00051562786102295s  | 0.14881670475006s         | 28861%             |
+-------------------------------------------------------------------------------------------+-----------------------+---------------------------+----------------------+

I then changed the distinct implementation. I don't know anything about the underlying implementation of array or in_array in PHP, I just know PHP arrays are also key/value maps. Key/value maps tend to have very fast lookup in programming languages.  According to this then in_array have a time complexity of O(n) while isset have a time complexity of "close to O(1)". By switching to isset we'll get a huge time complexity improvement.
I ran the benchmark again and got this result:
+---------------------------------------------------------------------------------------------+-----------------------+---------------------------+----------------------+
| operation details                                                                           | native execution time | collection execution time | difference (percent) |
+---------------------------------------------------------------------------------------------+-----------------------+---------------------------+----------------------+
| array_unique vs Collection::distinct on 10000 integers (addition)                           | 0.00050990581512451s  | 0.050813627243042s        | 9965%                |
| array_unique vs Collection::distinct on 10000 strings (concatenation)                       | 0.00026485919952393s  | 0.050021052360535s        | 18885%               |
| array_unique vs Collection::distinct on 10000 md5 invocations                               | 0.00030789375305176s  | 0.053486967086792s        | 17371%               |
| array_unique vs Collection::distinct for 10000 integers n, counting sum(0, n) the naive way | 0.00073227882385254s  | 0.065831804275513s        | 8989%                |
+---------------------------------------------------------------------------------------------+-----------------------+---------------------------+----------------------+

That's a huge improvement! Unfortunately, still not nearly as good as array_unique. Is there any other way this can be done? Let me know if you have any questions or comments.

I had some colleagues point out that this would be a breaking change since in_array can take an object, while isset can't.
An alternative solution would be to do something like this:
function distinct($collection)
{
    $generatorFactory = function () use ($collection) {
        $distinctValues = [];
        $distinctObjects = new \SplObjectStorage();

        foreach ($collection as $key => $value) {
            if (is_object($value)) {
                if (!$distinctObjects->contains($value)) {
                    $distinctObjects->attach($value);
                    yield $key => $value;
                }
            } else {
                if (!isset($distinctValues[$value])) {
                    $distinctValues[$value] = true;
                    yield $key => $value;
                }
            }
        }
    };

    return new Collection($generatorFactory);
}

Let me know what you think.

The problem is, that in_array cannot only handle objects, but even arrays (see: https://www.php.net/manual/en/function.in-array.php#example-6324), etc (probably everything that can be an array element), while isset can only handle elements that are valid as array keys (basically ints and strings)...

@jdreesen That's a fair point.
I propose one of these solutions:

Use isset and introduce a backwards incompatible change
Use SplObjectStorage for checking distinct objects. Use an array to check distinct primitive values
Create a wrapper for primitive values so that everything can be stored in a SplObjectStorage
Keep using in_array

It would be a shame to keep the solution as-is. Decreasing the time complexity from O(n^2) to O(n) is a huge improvement, even if it requires some weird code. This is truly the example where the benefits of optimized code outweighs readable code. :)


Mouse Wheel sanity check

This will check that the event sent to the mouse wheel input manager is a pointer wheel event.

I'm merging but we won't need it soon:)


Documentation on using token for authentication

I see that we can use token authentication method but there is no documentation on how to switch to token authentication from session authentication.

Assuming that 'rest_framework.authtoken' is already in your INSTALLED_APPS, you need to add 'rest_framework.authentication.TokenAuthentication' to 'DEFAULT_AUTHENTICATION_CLASSES' in REST_FRAMEWORK setting, like shown here:
https://github.com/szopu/django-rest-registration/blob/f7c9bd68c43877d907aeb41cd087bdd2a7c2988c/examples/sharedlinks/sharedlinks-backend/sharedlinks/settings.py#L168-L172
This should cause the login view to return the token in result dict when login is successful.
I think it would be nice to have better documentation than just bare README.md but this may take some time to do.

This worked thanks


Is it possible to use GatewayClass to create Contour instances directly in the future?

As the title suggests, I'm not quite sure what the guidance for implementing the gateway api is, but it would certainly simplify the process.

https://github.com/projectcontour/contour/blob/main/design/automated-provisioning-design.md
This design document should explain what our current direction is around gateway api and automated installs of contour

In short, it is not yet, but it will be, but there are some side-effects for the operator. The details are in the document @sunjayBhatia linked above, please check them out.


Update caliban, caliban-zio-http to 2.0.1

Updates

com.github.ghostdogpr:caliban
com.github.ghostdogpr:caliban-zio-http

from 2.0.0 to 2.0.1.
GitHub Release Notes - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Files still referring to the old version number
The following files still refer to the old version number (2.0.0).
You might want to review and update them manually.
CHANGELOG.md
build.sbt

Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "com.github.ghostdogpr" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "@monthly" },
  dependency = { groupId = "com.github.ghostdogpr" }
}]

labels: library-update, early-semver-patch, semver-spec-patch, old-version-remains, commit-count:1

Superseded by #233.


⚠ Processors has degraded performance

In 6456b4f, Processors ($STATUS_URL) experienced degraded performance:

HTTP code: 200
Response time: 67 ms

Resolved: Processors performance has improved in fc52fdb.


jest commands hangs

Do you want to request a feature or report a bug?
Bug
What is the current behavior?
I just followed this guide: https://facebook.github.io/jest/docs/en/getting-started.html, but when I run jest, nothing happens, the terminal seem to hang/freeze.

If the current behavior is a bug, please provide the steps to reproduce and either a repl.it demo through https://repl.it/languages/jest or a minimal repository on GitHub that we can yarn install and yarn test.
Any repository will probably do, but for example:
https://repl.it/L6JH/0
What is the expected behavior?
The expected behaviour is that it won't freeze/hang, and that my tests are running.
Please provide your exact Jest configuration and mention your Jest, node, yarn/npm version and operating system.
jest version 21.1.0, but also tested at 20.0.4, 19.0.2, 13.2.3
node v8.5.0, but same at 7.5.0 and 6.5.0
tested on yarn 1.0.2, npm5 and npm4
macOS Siera 10.12.6
It is super strange, I just seem to come in an endless loop or something? Anything that I can do to give you guys more information?

brew upgrade watchman fixed this for me
it seems like the reason it was hanging was because the command watchman version was hanging, and jest was executing that with execSync

Same problem here (watchman 4.9.0, the latest according to Homebrew) – fixed by brew uninstall watchman...

Had to do a brew reinstall watchman before it would work.

@blamh I love you ❤

In my case (Which i think is rare) I fixed it by adding --forceExit flag

Upgrading, reintstalling and uninstallin watchman are all not working for me to fix my problem on macOS 10.15

I had the same problem on macos catalina. I don't know why but there is an error on system permissions and with sudo npm test it runs...


DOC: Update docs of jnp.all and jnp.any

Part of #21461

Can you please squash the commits?

Squashed the commits.


change uml

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Great change! Adds to readability


Change how loading works

Currently, loading is done by taking all files in the top level of a folder inside of the "modules" folder, and making them one string. This string is then passed into the global nashorn script engine, along with all of the other modules. This means that if two modules have the same global variable or function name, there will be errors.
Goals

Ability to declare top level variables with the same name in different modules.
Keep the ability to make libraries or APIs by having global functions or variables.
Add more robust support for Sentry when loading scripts/modules for better error reporting.
Add support for nested folders to load for more organization.
Support for disabling modules through module metadata file

Possibly could be done by declaring in the module metadata.json whether or not the entire module is global. In this case, then every method and top level variable would be available to all modules, global or not.
Issues arise when thinking about how to have each module have its own trigger environment, for example, how would a trigger know what context to switch to when calling its callback method? A possible solution would be to require the module name when registering triggers, however, that would make registering less clean. A possible fix would be providing a JavaScript level API that would allow them to write code such as
register("moduleName",
    [
        ["tick", "tickMethod"],
        ["step", "stepMethod"]
    ]

The issue with that then comes with how to configure each individual trigger. The easiest, but probably not cleanest solution would be to add the module name parameter to the end of the register() helper method.

Disabling and enabling of modules should be handled through the metadata.json file. This would allow me to add easy support for gui button(s) in the module gui for quick enabling and disabling of modules without moving around files. This extra value will be appended to the end of the json object as true by default when a module is imported.
This will require that all modules have a metadata file including personal modules so there would have to be a way to auto generate a metadata file and fill it with empty values. This could also potentially help people fill in their metadata file before uploading because then they at least have a skeleton to fill in instead of just guessing values or leaving it blank.

Local scoping has been achieved with the 0.14 release and improved in the 0.15 release with the use of unanimous function object passed into the trigger registers. The script loader should still be cleaned up, but those changes solves this for what I wanted. If anyone still wants a more locally scoped module loading, re-open this issue with a description of how this could be done better.


gz service -l does not always output the full list of services

Environment

OS Version:  Ubuntu 22.04
Gazebo garden, built from source

Description

Expected behavior: output of gz service -l should always list all available services
Actual behavior: output of gz service -l randomly shows either the full list, or only a subset of the avalable services

Output
E.g. two consecutive calls of gz service -l yield following output:
$ gz service -l
/gui/camera/view_control
/gui/camera/view_control/reference_visual
/gui/camera/view_control/sensitivity
/gui/copy
/gui/follow
/gui/follow/offset
/gui/move_to
/gui/move_to/pose
/gui/paste
/gui/screenshot
/gui/view/collisions
/gui/view/com
/gui/view/frames
/gui/view/inertia
/gui/view/joints
/gui/view/transparent
/gui/view/wireframes
/marker
/marker/list
/marker_array
/world/Scara_Picker/level/set_performer
$ gz service -l
/gazebo/resource_paths/add
/gazebo/resource_paths/get
/gazebo/resource_paths/resolve
/gazebo/worlds
/gui/camera/view_control
/gui/camera/view_control/reference_visual
/gui/camera/view_control/sensitivity
/gui/copy
/gui/follow
/gui/follow/offset
/gui/move_to
/gui/move_to/pose
/gui/paste
/gui/screenshot
/gui/view/collisions
/gui/view/com
/gui/view/frames
/gui/view/inertia
/gui/view/joints
/gui/view/transparent
/gui/view/wireframes
/marker
/marker/list
/marker_array
/server_control
/world/Scara_Picker/control
/world/Scara_Picker/control/state
/world/Scara_Picker/create
/world/Scara_Picker/create_multiple
/world/Scara_Picker/declare_parameter
/world/Scara_Picker/disable_collision
/world/Scara_Picker/enable_collision
/world/Scara_Picker/entity/system/add
/world/Scara_Picker/generate_world_sdf
/world/Scara_Picker/get_parameter
/world/Scara_Picker/gui/info
/world/Scara_Picker/level/set_performer
/world/Scara_Picker/light_config
/world/Scara_Picker/list_parameters
/world/Scara_Picker/playback/control
/world/Scara_Picker/remove
/world/Scara_Picker/scene/graph
/world/Scara_Picker/scene/info
/world/Scara_Picker/set_parameter
/world/Scara_Picker/set_physics
/world/Scara_Picker/set_pose
/world/Scara_Picker/set_pose_vector
/world/Scara_Picker/set_spherical_coordinates
/world/Scara_Picker/state
/world/Scara_Picker/state_async
/world/Scara_Picker/system/info
/world/Scara_Picker/visual_config
/world/Scara_Picker/wheel_slip
$

It is random, e.g. sometimes many consecutive gz service -l each return the full list, but then sometimes a reduced set is reported.
At one time even just one service was reported:
$ gz service --list
/gui/follow
$

Thanks for reporting the issue. See https://github.com/gazebosim/gz-transport/pull/415.

Closed by #415


Handle global options parsing with default values

Amazing, thanks! Will this be released soon?

At the moment I am not sure when the next version will be released. My plan is to release a v1.0.0-rc.1 soon, but there are a few things I want to look into first. If it takes longer i will do a separate release before v1.0.0-rc.1. But if you need it earlier, you can also import a specific commit directly from github. This commit contains the fix:
import { Command } from "https://raw.githubusercontent.com/c4spar/deno-cliffy/ddd3e5365c31d30d44d2349d74d479d85e9371dc/command/mod.ts";

@c4spar Thank you! I will be using the github link for now to unblock the Deno upgrade my team plans to use.


Having more than one sample

Hi immunarch team
I have 10x TCR and BCR sequencing + 5' GEX
I have several samples
For one sample I know I should do like this
> setwd("/Users/angel/Downloads/p1_sample_feature_bc_matrix")
> list.files()
[1] "filtered_contig_annotations.csv"
> file_path =getwd()
> immdata_10x <- repLoad(file_path)

== Step 1/3: loading repertoire files... ==

Processing "/Users/angel/Downloads/p1_sample_feature_bc_matrix" ...
  -- [1/1] Parsing "/Users/angel/Downloads/p1_sample_feature_bc_matrix/filtered_contig_annotations.csv" -- 10x (filt.contigs)

== Step 2/3: checking metadata files and merging files... ==

Processing "/Users/angel/Downloads/p1_sample_feature_bc_matrix" ...
  -- Metadata file not found; creating a dummy metadata...

== Step 3/3: processing paired chain data... ==

Done!

Warning messages:
1: The following named parsers don't match the column names: barcode,is_cell,contig_id,high_confidence,length,chain,v_gene,d_gene,j_gene,c_gene,full_length,productive,fwr1,fwr1_nt,cdr1,cdr1_nt,fwr2,fwr2_nt,cdr2,cdr2_nt,fwr3,fwr3_nt,cdr3,cdr3_nt,fwr4,fwr4_nt,reads,umis,raw_clonotype_id,raw_consensus_id,exact_subclonotype_id
2: In for (i in seq_len(n)) { :
  closing unused connection 3 (/Users/angel/Downloads/0001.png)

From 5' GEX data I have made a Seurat object, how I can merge Seurat with immdata_10x object"?
Thanks for an y help

To add to the question above:
I am also working with scTCRseq and scBCRseq data. I am able to read in multiple sample files with a function, but I am not able to run any analysis as the expected "CD3.AA" etc column names are different by default in CellRanger processed files.
Any updated guidelines on the single-cell pipeline would be much appreciated!


Add support for custom type/file "registries" to WithProtoJSON

Is your feature request related to a problem? Please describe.
I'm working a lot with google/protobuf/any.proto and also created some kind of "descriptor-lookup" service pbtype-server. While retrieving FileDescriptor works pretty well I needed to copy&paste the protoJsonCodec to support a custom resolver.
Describe the solution you'd like
It would be awesome to extend the current WithProtoJSON to accept a custom type and message resolver.
Describe alternatives you've considered
Copy & paste the current protoJsonCodec implementation and add support to configure the type resolver.
Solution
Before:
path, handler := expamlev1connect.NewExampleClient(
    http.DefaultClient,
    url,
)

After:
path, handler := expamlev1connect.NewExampleClient(
    http.DefaultClient,
    url,
    connect.WithProtoJsonRegistry( myCustomerTypeResolver{} )
)

The interface should enforce implementation of either linker.Resolver or, if not required, protoreflect.MessageTypeResolver and protoreflect.ExtensionTypeResolver  at least.
For example:

https://github.com/tierklinik-dobersberg/events-service/blob/main/cmds/events-service/main.go#L108
https://github.com/tierklinik-dobersberg/events-service/blob/main/internal/codec/json.go

I'd like to propose a PR but wanted to ask for feedback before!

Thanks for the proposal. I don't think this is something we'd accept in the mainline repository - this seems like a perfect case to maintain your own Codec. We want to keep this library as lean as possible, and your extension for your advanced use case should live in your repository.

@ppacher, FWIW, there is a third-party library you could use to do this, created by one of the authors of connect-go: https://github.com/akshayjshah/connectproto
It allows you to create a codec where you can set the Resolver field in the protojson.MarshalOptions, protojson.UnmarshalOptions, and proto.UnmarshalOptions structs.

@bufdev, @jhump , thanks for the response!
While I understand that you want to keep the lib as lean as possible I still think that the addition of a WithProtoJSONOptions( WithResolver(...))  wouldn't blow up the API surface to much and while still preserving backward comptability. Though, if this is out of scope for connect-go I'll accept it and try the mentioned solution from @jhump.


Default loaders and custom loaders

The extension builder has a bunch of loaders already enabled in DEFAULT_LOADERS as well as the css-loader.
For extension builders, it may come as a surprise. In the case of widget packages, I have a list of loaders in a variable that I use for all the bundles (embedder, classic notebook, extension), which I cannot use for the labextension because it causes those that are also in DEFAULT_LOADERS to be called twice...
Do we need all these loaders enabled by default?

I just opened it as a heads up since it bit me a couple of times already.

We're trying to cover the common cases, so people don't have to write a webpack file in the common case. Which loaders do you think would not be commonly used?

On the other hand, @SylvainCorlay, you can just set useDefaultLoaders to false: https://github.com/jupyterlab/extension-builder/blob/master/src/builder.ts#L163

See https://github.com/bloomberg/bqplot/pull/358 for an example.


how can i use bulkWrite for Update query ?

my query is
    require('vendor/mongodb/mongodb/src/BulkWriteResult.php');
    $bulk = new \MongoDB\Driver\BulkWrite();
    foreach ($request->allocation_data as $key => $value) {
            $bulk->update(
                                      ["userid" => $value],
                                      [  '$set' => [ "flag" => 1,  "status" => "Allocated" ]  ]
                               ); }
   $manager = new \MongoDB\Driver\Manager('mongodb://localhost:27017');
   $result = $manager->executeBulkWrite('db.collection', $bulk);

from where i can import  $bulk and $manager object in this library,
i don't want to use mongodb connection again

rep

Apologies for bumping an old issue, but I just came across this while researching whether the this library provides an API for bulk writes. #500 does not address the original question and the response in that issue also appears to conflate multi-document update and delete operations with the bulk write API found in MongoDB drivers. The update and delete commands allow specifying multiple write statements, each of which may apply to one or multiple documents matching the query filter.
The discussion in #2316 may be more accurate, as it demonstrates using raw() to access the underlying MongoDB\Collection object to invoke MongoDB\Collection::bulkWrite(). That method would allow an application to issue a single update command consisting of many individual update operations, and is the library equivalent of the OP's code using foreach to iteratively stage operations on a MongoDB\Driver\BulkWrite object prior to execution.
Best I can tell, this library does not provide an API for issuing bulk writes, short of using raw() or some other escape hatch to access the library or extension directly.


Blog: Use natural language to execute SQL queries

Use natural language to execute SQL queries
Link: https://devblogs.microsoft.com/semantic-kernel/use-natural-language-to-execute-sql-queries/
This blog explains how to implement "natural language to sql" application.

DB Schema meta-data is stored as YAML files. Examples are here - https://github.com/microsoft/kernel-memory/tree/NL2SQL/examples/200-dotnet-nl2sql/nl2sql.config/schema.


CLI struct.error

The device was OFF.
The empty line after PyGMC - Live GMC Heartbeat should've had the Geiger Counter model-version.
I was expecting some connection error or something that indicates the device is not ON.
I thought get version worked even when device is off. Is this just a GMC-800 thing?
pygmc -p /dev/ttyUSB1 live -t 5
PyGMC - Live GMC Heartbeat

Start=2024-07-18 17:09:11 counts=5
Traceback (most recent call last):
  File "/home/thomaz/tmp/testcli/.venv/bin/pygmc", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/thomaz/tmp/testcli/.venv/lib/python3.12/site-packages/pygmc/cli.py", line 159, in main
    _live_flow(args)
  File "/home/thomaz/tmp/testcli/.venv/lib/python3.12/site-packages/pygmc/cli.py", line 119, in _live_flow
    gc.heartbeat_live_print(count=args.time)
  File "/home/thomaz/tmp/testcli/.venv/lib/python3.12/site-packages/pygmc/devices/device_spec404.py", line 359, in heartbeat_live_print
    for i, cps in enumerate(self.heartbeat_live(count=count)):
  File "/home/thomaz/tmp/testcli/.venv/lib/python3.12/site-packages/pygmc/devices/device_spec404.py", line 341, in heartbeat_live
    cps = struct.unpack(">I", raw)[0]
          ^^^^^^^^^^^^^^^^^^^^^^^^
struct.error: unpack requires a buffer of 4 bytes

Device was GMC-800Re1.08

I'm inclined to suspect some VMware/Ubuntu/USB-Cable weirdness.
It didn't print out version... but it was able to successfully get the version to identify the correct device seen in traceback above.
Additionally, get_version() has a len requirement else it raises a timeout error which is not what the traceback shows.
Today installed pygmc==0.14.0, with a GMC-600+ (and device powered on) I get...
pygmc live -t 3
PyGMC - Live GMC Heartbeat

Start=2024-08-02 17:41:36 counts=3
 cps=1       | max=1       | total=2           | loop=2
Finish=2024-08-02 17:41:39

Then remove and reconnect the USB cable and... now the version is printed.
pygmc live -t 3
PyGMC - Live GMC Heartbeat
GMC-600+Re 2.52
Start=2024-08-02 17:47:51 counts=3
 cps=0       | max=1       | total=1           | loop=2
Finish=2024-08-02 17:47:54


Escape double-quotes in head tag attribute values

To reproduce the bug:
// config.js
module.exports = {
  head: [
    ['script', {
       src: 'https://something.com/foo.js',
       'data-payload': '{"token": "hello"}',  // Use an attribute value with a JSON-encoded string.
    }],
  ],

You should run into the following error:
Document.querySelectorAll: 'head > script[src="https://something.com/foo.js"][data-payload="{"token": "hello"}"]' is not a valid selector

The problem is that the data-payload value is a JSON-encoded string, which requires double quotes, but the current implementation simply wraps the CSS selector for that call to querySelectorAll in double quotes and calls it a day. Use JSON.stringify instead. Since value is known to be a string in this context, this should always work (tested locally manually).

I think users should escape those chars by themselves in the head config 🤔

Escaping is for string literals. It happens at compile time, not run time; there is no "second round" of escaping when you interpolate a string at run time, so this is impossible.

We are always using double quotes everywhere, and double quotes is not allowed in a property value surrounded by double quotes. So to perform adding a valid tag, you are supported to escape them yourself. I think that's the central point meteorlxy express.

The problem is that this is simply impossible when string interpolation is involved. Let me give you some examples to illustrate:
s = '{"a": "5"}';
`foo: "${s}"`                        // -> 'foo: "{"a": "5"}"'
s = '{\"a\": \"5\"}';
`foo: "${s}"`                        // -> 'foo: "{"a": "5"}"'
s = '{\\"a\\": \\"5\\"}';
`foo: "${s}"`                        // -> 'foo: "{\\"a\\": \\"5\\"}"'
s = '{\\\"a\\\": \\\"5\\\"}';
`foo: "${s}"`                        // -> 'foo: "{\\"a\\": \\"5\\"}"'

As you can see, no amount of backslashes will give you the result you want. You can verify this in your JS console. I only patched this one line since it solved the specific problem I was running into, but if you are indeed "using double quotes everywhere" then this problem will exist everywhere that a string containing double quotes is interpolated into a template literal that also contains double quotes. I could submit a larger PR if you'd like and try to get the rest of the cases, just want to make sure we're on the same page first.

Lol I now realize where the confusion came from. Nevermind!


Better zones UI

Add names to zones(spots) with serialization/deserialization
Support zone tab reordering
Disable closing and reordering Base tab

Still a WIP. There's a bug during deserialization where opening unopened tabs makes them refresh and reorder.

@chrxh ready for review

My regular work schedule is highly variable at the moment, but I do not think it will take weeks to make these changes. Enjoy your time off!

Thanks!
The part about the weeks referred to changes that I still want to make and had planned for v4.10. Your changes could then also be included in that version :)


Monster target with a captured monster

Choosing a target for monster widget when there is a dead monster can show wrong monster's info. It gets fixed when the corpse despawns. Might be because the dead monster was originally first in the list and now the new target is also first?

Dead monster or captured monster? That's a known issue for captured monsters (since I haven't found what exactly indicates whether a monster is captured or not), will hopefully fix it after implementing monster action tracker.

Might have been captured every time it happened, yeah.

(https://github.com/Haato3o/HunterPie/commit/a2971f2b4941a325ff15ecd430d0f71e65725279) Fixed capture issue, the update is live on BETA if you want to test it


[Automated] Update eventing-kafka-broker-eventing-kafka nightly

/assign @knative/delivery-wg-leads
/cc @knative/delivery-wg-leads
Produced via:
for x in channel-crds.yaml source-crd.yaml; do
  curl https://storage.googleapis.com/knative-nightly/eventing-kafka/latest/$x > ${GITHUB_WORKSPACE}/./third_party/eventing-kafka-latest/$x
done

Details:

/retest

/retest

/test pull-knative-sandbox-eventing-kafka-broker-integration-tests


Remove support for delete_matched

delete_matched is optional, it may be removed in Rails 8.0 and relies on the index on the key column which will be removed in future.

This is great. After this gets merged, what will be next that should be resolved ? Hash index #94 or you will working on constraining cache storage to certain size #116 ?

Hey @skatkov! I'll be working on the changes for key_hash next. It will include the migrations for size estimation as well so we only need one set of migrations.
The changes are straightforward, but the main problem will the migration steps for existing users. I'll be working through those and testing them out on our apps.

Do you need any assistance with key_hash @djmb?

@skatkov - I'll have something ready for it next week. We can then look at if a postgresql hash index fits in to what we've got.

Hi there, I was previously using delete_matched until upgrading recently. After poking around a bit, I'm not seeing a good way to continue doing some of the things I was using solid_cache for. Namely, caching counts based on a the organization performing the query (org id used as a namespace) and the ActiveRecord cache_key to set the cache key for the filters which were applied for the query.
It appears that I can't even use a namespace to clear cache entries and will instead have to know the exact cache key. Am I correct in that assumption or is there some workaround/functionality I'm missing. Thanks!

Hey @namolnad!
I removed delete_matched support as it requires a large index, and it's likely to be removed from the API for Rails 8, though I don't think that's official.
You can add support back in yourself though by:

Adding an index on the key column
Deleting entries directly with something like SolidCache::Entry.where("key like 'prefix%'").delete_in_batches

@djmb thanks so much for the quick follow up and the workaround — I'll see if I can rework how I'm doing things, but this workaround may come in handy!


Converting sound/voice to text

Script Title - Able to convert sound to its text. Can be done using "librosa" library
what will change - Adding script of voice_to_text convertor
Instructions

Create a new folder for your script and the file/folder name should be appropriate.
Create a README.md in your folder for program Instructions
add requirements.txt if needed

Please add/delete options that are not relevant.

[x] Adding New Code

Programming Language

[x] Python

Happy Coding,

@pawangeek Can you assign this to me?

Okay go ahead :)

Hey I want to contribute in this i also proceeded with the code can you please add me up

Hello @Anustup900, this issue is assigned to @Saumya-Mishra9129. Can you do the reverse of that? I mean from text to sound ??

Hello @Anustup900, this issue is assigned to @Saumya-Mishra9129. Can you do the reverse of that? I mean from text to sound ??

Yes I can ,please assign it to me , am on it

Sure @Anustup900  Just comment on this #50 and I will assign this to you

Sure @Anustup900 Just comment on this #50 and I will assign this to you

Done

hey, any update @Saumya-Mishra9129

Hello @pawangeek ,
Wouldn't it be simpler to use PocketSphinx library for voice recognition instead? If it'll do you can assign this issue to me.

@Crowfunder I think it's for live voice recognition, isn't it?


sea-orm-migration still depend on async-std

Description
from #748
this is because sea-orm-cli which sea-orm-migration depends on, depend on async-std that is not optional.
Versions
sea-orm-migration v0.9.3

Hey @Uskrai, thanks for catching this! I'll open a PR to optimize it :)


Light node throws unexpected INFO line

My validator node and full node are working as expected, but my light node gave me back a line i would expect from a validator or full node in case some resources are exhausted. I am using a quad-core 8GB RAM 200GB SSD VPS. Another node is running too on the same machine and quite constant CPU consumption is at 45% and ram at 49% without and peaks. SSD should not be an issue with the current block height. It was suggested in discord to raise an issue here, so i hope this is helpful for future development. All the best celestia team!

Hello, thank you for reporting this. This is a known issue and will be fixed as we update DASing related component. A simple restart will fix this.
Also, are you able to find the DASing error in your logs?
@renaynay, this issue can only happen when a DAS failed. When such an event happens, the DASer does not retry and shuts down without continuing further DASing, so we need a (1)retrying mexanism and (2)stop failing completely.

Thank you for reporting this bug @fontm2

@Wondertan
Looks like DASer only returns for a canceled context - if failures, it logs err and continues trying from the sub.
https://github.com/celestiaorg/celestia-node/blob/main/das/daser.go#L68-L93
Can you point me to the place you're referring to?


LinuxCommand/01more

添加了“基本功能”“常用情况”

@Chengtian0730
Please read README.md more carefully for conventions and you can also view recent PRs as examples.
PRs that do not follow the conventions will be rejected and closed.


Contributing to nixpkgs

How to get started contributing to nixpkgs with an example of updating some package, showing how to fork nixpkgs, clone it locally, figure out what to change, how to test the change, committing and pushing the change, then opening a PR for it and pinging the right people. Essentially a 0-100 for how to get started with nixpkgs contributing.

I think the next mile would be interesting as well. Like how can you help with reviewing the PRs of other people, maybe test them, would it be helpful to review and put "LGTM", etc.?

We looked at the basic contribution flow for nixpkgs in this weeks nix hour: https://www.youtube.com/watch?v=VpUHb-GagBE
@Frostman Sounds good, I'll leave this ticket open for your question :slightly_smiling_face:

In the last Nix hour we addressed this partially: https://www.youtube.com/watch?v=QUnJ9q3Np7I&t=1399s
I'll close this issue for now, but feel free to ask more questions in this or a new issue :)


RDKit does not apply settings when rendering reactions

What happened?
When using RDKit.js to render SMILES, it does not apply visual style settings to reactions. The background is opaque and white and the theme is the default.
What did you expect to happen?
The reactions would have had the same style as other SMILES strings: the same font size, colors, clear background, etc.
How can we reproduce it (as minimally and precisely as possible)?
Render any reaction SMILES string with RDKit.js.
Example:
C(C)(C)=C(C)(C).[Br][Br]>>
C(C)(C)=C(C)(C).[Br][Br]

Result:

The individual molecules are rendered as expected, but the reaction is not.
Anything else we need to know?
This article solves a similar issue with RDKit in Python, and could provide some clues.
Plugin version
0.4.0
Obsidian version
1.7.7

Thanks for mentioning this. This limitation was logged together with several others when I first introduced RDKit.js, here. Will check the post and the JS API to see would it be a simple implementation


Create tests for vessel-charging/messages/DeclineMessageParams using jest

Description

Created a Jest test to check the serialize and deserialize methods return the expected object.
Related Issue

https://github.com/DAVFoundation/dav-js/issues/26
Motivation and Context

To validate our expected results are returning correctly.
How Has This Been Tested?

This has been tested by running command npm run jest
Screenshots (if appropriate):
Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

[x] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[x] I have read the CONTRIBUTING document.
[x] I have added tests to cover my changes.
[x] All new and existing tests passed.

Did not merge my change into my forked master.

New PR opened: https://github.com/DAVFoundation/dav-js/pull/60


OkHttp 4.3.1 spams log, didn't find class "org.conscrypt.ConscryptHostnameVerifier" on path

A trivial use of OkHttp 4.3.1 causes some spam in the device log.
https://gist.github.com/jamesonwilliams/8ab7237083467ed3cb8680115a3e3829
This code:
Disposable disposable = Single.fromCallable(() ->
    new OkHttpClient().newCall(new Request.Builder()
        .url("https://raw.githubusercontent.com/square/okhttp/master/README.md")
        .get()
        .build())
    .execute()
    .body()
    .string()
)
.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
.subscribe(
    textView::setText,
    failure -> textView.setText(Log.getStackTraceString(failure))
);

With this OkHttp:
implementation 'com.squareup.okhttp3:okhttp:4.3.1'

Causes this spam, as the out-of-the-box default:
I: Rejecting re-init on previously-failed class java.lang.Class<okhttp3.internal.platform.ConscryptPlatform$configureTrustManager$1>: java.lang.NoClassDefFoundError: Failed resolution of: Lorg/conscrypt/ConscryptHostnameVerifier;
I:     at okhttp3.internal.platform.android.SocketAdapter okhttp3.internal.platform.android.ConscryptSocketAdapter$Companion.buildIfSupported() (ConscryptSocketAdapter.kt:62)
I:     at void okhttp3.internal.platform.AndroidPlatform.<init>() (AndroidPlatform.kt:44)
I:     at okhttp3.internal.platform.Platform okhttp3.internal.platform.AndroidPlatform$Companion.buildIfSupported() (AndroidPlatform.kt:212)
I:     at okhttp3.internal.platform.Platform okhttp3.internal.platform.Platform$Companion.findPlatform() (Platform.kt:207)
I:     at okhttp3.internal.platform.Platform okhttp3.internal.platform.Platform$Companion.access$findPlatform(okhttp3.internal.platform.Platform$Companion) (Platform.kt:169)
I:     at void okhttp3.internal.platform.Platform.<clinit>() (Platform.kt:170)
I:     at void okhttp3.OkHttpClient.<init>(okhttp3.OkHttpClient$Builder) (OkHttpClient.kt:220)
I:     at void okhttp3.OkHttpClient.<init>() (OkHttpClient.kt:212)
I:     at java.lang.String okhttp.conscrypt.issue.MainActivity.lambda$onCreate$0() (MainActivity.java:28)
I:     at java.lang.Object okhttp.conscrypt.issue.-$$Lambda$MainActivity$HFmP7xhC1oUdC6d5U0mKIdLTGns.call() (lambda:-1)
I:     at void io.reactivex.internal.operators.single.SingleFromCallable.subscribeActual(io.reactivex.SingleObserver) (SingleFromCallable.java:44)
I:     at void io.reactivex.Single.subscribe(io.reactivex.SingleObserver) (Single.java:3666)
I:     at void io.reactivex.internal.operators.single.SingleSubscribeOn$SubscribeOnObserver.run() (SingleSubscribeOn.java:89)
I:     at void io.reactivex.Scheduler$DisposeTask.run() (Scheduler.java:578)
I:     at void io.reactivex.internal.schedulers.ScheduledRunnable.run() (ScheduledRunnable.java:66)
I:     at java.lang.Object io.reactivex.internal.schedulers.ScheduledRunnable.call() (ScheduledRunnable.java:57)
I:     at void java.util.concurrent.FutureTask.run() (FutureTask.java:237)
I:     at void java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run() (ScheduledThreadPoolExecutor.java:272)
I:     at void java.util.concurrent.ThreadPoolExecutor.runWorker(java.util.concurrent.ThreadPoolExecutor$Worker) (ThreadPoolExecutor.java:1133)
I:     at void java.util.concurrent.ThreadPoolExecutor$Worker.run() (ThreadPoolExecutor.java:607)
I:     at void java.lang.Thread.run() (Thread.java:761)
I: Caused by: java.lang.ClassNotFoundException: Didn't find class "org.conscrypt.ConscryptHostnameVerifier" on path: DexPathList[[zip file "/data/app/okhttp.conscrypt.issue-2/base.apk"],nativeLibraryDirectories=[/data/app/okhttp.conscrypt.issue-2/lib/x86, /system/lib, /vendor/lib]]
I:     at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:56)
I:     at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:380)
I:     at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312)
I:     at okhttp3.internal.platform.android.SocketAdapter okhttp3.internal.platform.android.ConscryptSocketAdapter$Companion.buildIfSupported() (ConscryptSocketAdapter.kt:62)
I:     at void okhttp3.internal.platform.AndroidPlatform.<init>() (AndroidPlatform.kt:44)
I:     at okhttp3.internal.platform.Platform okhttp3.internal.platform.AndroidPlatform$Companion.buildIfSupported() (AndroidPlatform.kt:212)
I:     at okhttp3.internal.platform.Platform okhttp3.internal.platform.Platform$Companion.findPlatform() (Platform.kt:207)
I:     at okhttp3.internal.platform.Platform okhttp3.internal.platform.Platform$Companion.access$findPlatform(okhttp3.internal.platform.Platform$Companion) (Platform.kt:169)
I:     at void okhttp3.internal.platform.Platform.<clinit>() (Platform.kt:170)
I:     at void okhttp3.OkHttpClient.<init>(okhttp3.OkHttpClient$Builder) (OkHttpClient.kt:220)
I:     at void okhttp3.OkHttpClient.<init>() (OkHttpClient.kt:212)
I:     at java.lang.String okhttp.conscrypt.issue.MainActivity.lambda$onCreate$0() (MainActivity.java:28)
I:     at java.lang.Object okhttp.conscrypt.issue.-$$Lambda$MainActivity$HFmP7xhC1oUdC6d5U0mKIdLTGns.call() (lambda:-1)
I:     at void io.reactivex.internal.operators.single.SingleFromCallable.subscribeActual(io.reactivex.SingleObserver) (SingleFromCallable.java:44)
I:     at void io.reactivex.Single.subscribe(io.reactivex.SingleObserver) (Single.java:3666)
I:     at void io.reactivex.internal.operators.single.SingleSubscribeOn$SubscribeOnObserver.run() (SingleSubscribeOn.java:89)
I:     at void io.reactivex.Scheduler$DisposeTask.run() (Scheduler.java:578)
I:     at void io.reactivex.internal.schedulers.ScheduledRunnable.run() (ScheduledRunnable.java:66)
I:     at java.lang.Object io.reactivex.internal.schedulers.ScheduledRunnable.call() (ScheduledRunnable.java:57)
I:     at void java.util.concurrent.FutureTask.run() (FutureTask.java:237)
I:     at void java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run() (ScheduledThreadPoolExecutor.java:272)
I:     at void java.util.concurrent.ThreadPoolExecutor.runWorker(java.util.concurrent.ThreadPoolExecutor$Worker) (ThreadPoolExecutor.java:1133)
I:     at void java.util.concurrent.ThreadPoolExecutor$Worker.run() (ThreadPoolExecutor.java:607)
I:     at void java.lang.Thread.run() (Thread.java:761)

I am not using Conscrypt. I do not include it in my Android project's Gradle dependencies. I do agree with the view point of this StackOverflow comment from kroegerama@:

If okHttp needs conscrypt, it should reference this library instead of forcing us to add this dependency. This should not be marked as accepted. Better file a bug report on square's github repo. – kroegerama Nov 7 '19 at 14:07

Please reopen if this is still happening with the latest version

The error sill occurs with OkHttp 4.4.1.

I do not use conscrypt lib, but have to include it, if I do not then I am unable to perform any network calls. All the network calls from OKHttp fails. This fails in both emulator and real devices.
As a side effect, this lib also increased my app size to approx ~4 Mb

Can you post the failures? The logging is done by Android internals so it's hard to avoid but isn't expected to stop things working. Something else is going wrong in your app.

@rinav #5760 is discussing a functioning system which generates spam in the Android log. Please open a separate issue for this report of a functional defect. It is not the nature of #5760.

I do not use conscrypt lib, but have to include it, if I do not then I am unable to perform any network calls. All the network calls from OKHttp fails. This fails in both emulator and real devices.

@yschimke @jamesonwilliams
I created created a new issue as you suggested along with stack trace #5894

Hopefully fixed on 4.5.  We can reopen if it's still happening.  Otherwise, not sure what else to do, we don't control this logging and need to use Conscrypt util classes to cleanly detect whether it is installed correctly with native libs for platform.

The error sill occurs with OkHttp 4.5
> Task :app:minifyReleaseWithR8
AGPBI: {"kind":"warning","text":"Missing class: org.conscrypt.ConscryptHostnameVerifier","sources":[{}],"tool":"R8"}

The error sill occurs with OkHttp 4.5
> Task :app:minifyReleaseWithR8
AGPBI: {"kind":"warning","text":"Missing class: org.conscrypt.ConscryptHostnameVerifier","sources":[{}],"tool":"R8"}

That's different. This bug is about spamming the error log at runtime. We can't avoid the problem you have raised without reverting to basically everything being done dynamically via reflection.

@yschimke ok, i see

Same bug, Android plugin 3.6.3, Logging Interceptor version 4.5.0

Its still happening.
My Gradle config:
def retrofit_version = "2.8.1"
implementation "com.squareup.retrofit2:retrofit:$retrofit_version"
implementation "com.squareup.retrofit2:converter-gson:$retrofit_version"
implementation("com.squareup.okhttp3:logging-interceptor:4.5.0")

I don't have a good solution for this currently.  We need to detect presence of certain classes at runtime.  Just doing this can cause this message and it's logged within Android, so we don't see this ourselves.

I had this issue only when i upgraded to 4.6.0, used to work correctly on 4.5.0

StackOverFlow
https://stackoverflow.com/questions/58630667/rejecting-re-init-on-previously-failed-class-in-okhttp

Same log spam with
okhttp:4.6.0
logging-interceptor:4.6.0
retrofit:2.8.1

Hi! Noticed the same logs for
versionRetrofit = '2.9.0'
versionOkHttp = '4.7.2'

Hopefully fixed (or minimised away from likely to occur in 4.8) when it's released.

Hi! I just noticed that the error keeps occurring with OkHttp 4.8.1, along with other missing classes from bouncycastle, openjsse and android:
okhttp3.internal.platform.ConscryptPlatform$platformTrustManager$2: can't find superclass or interface org.conscrypt.ConscryptHostnameVerifier
okhttp3.internal.io.FileSystem$Companion$SYSTEM$1: can't find referenced class okhttp3.internal.io.FileSystem$DefaultImpls
okhttp3.internal.platform.BouncyCastlePlatform: can't find referenced class org.bouncycastle.jsse.BCSSLSocket
okhttp3.internal.platform.BouncyCastlePlatform: can't find referenced class org.bouncycastle.jsse.provider.BouncyCastleJsseProvider
okhttp3.internal.platform.BouncyCastlePlatform: can't find referenced class org.bouncycastle.jsse.BCSSLParameters
okhttp3.internal.platform.ConscryptPlatform: can't find referenced class org.conscrypt.ConscryptHostnameVerifier
okhttp3.internal.platform.ConscryptPlatform: can't find referenced class org.conscrypt.Conscrypt
okhttp3.internal.platform.ConscryptPlatform$Companion: can't find referenced class org.conscrypt.Conscrypt
okhttp3.internal.platform.ConscryptPlatform$platformTrustManager$2: can't find referenced class org.conscrypt.ConscryptHostnameVerifier
okhttp3.internal.platform.Jdk9Platform: can't find referenced method 'void setApplicationProtocols(java.lang.String[])' in library class javax.net.ssl.SSLParameters
okhttp3.internal.platform.Jdk9Platform: can't find referenced method 'java.lang.String getApplicationProtocol()' in library class javax.net.ssl.SSLSocket
okhttp3.internal.platform.OpenJSSEPlatform: can't find referenced class org.openjsse.javax.net.ssl.SSLParameters
okhttp3.internal.platform.OpenJSSEPlatform: can't find referenced class org.openjsse.javax.net.ssl.SSLSocket
okhttp3.internal.platform.OpenJSSEPlatform: can't find referenced class org.openjsse.net.ssl.OpenJSSE
okhttp3.internal.platform.android.Android10SocketAdapter: can't find referenced method 'java.lang.String getApplicationProtocol()' in library class javax.net.ssl.SSLSocket
okhttp3.internal.platform.android.Android10SocketAdapter: can't find referenced class android.net.ssl.SSLSockets
okhttp3.internal.platform.android.Android10SocketAdapter: can't find referenced method 'void setApplicationProtocols(java.lang.String[])' in library class javax.net.ssl.SSLParameters
okhttp3.internal.platform.android.BouncyCastleSocketAdapter: can't find referenced class org.bouncycastle.jsse.BCSSLParameters
okhttp3.internal.platform.android.BouncyCastleSocketAdapter: can't find referenced class org.bouncycastle.jsse.BCSSLSocket
okhttp3.internal.platform.android.BouncyCastleSocketAdapter$Companion$factory$1: can't find referenced class org.bouncycastle.jsse.BCSSLSocket
okhttp3.internal.platform.android.ConscryptSocketAdapter: can't find referenced class org.conscrypt.Conscrypt
okhttp3.internal.platform.android.ConscryptSocketAdapter$Companion$factory$1: can't find referenced class org.conscrypt.Conscrypt

Have we got any update on this bug? In the meantime, I guess I'll downgrade to version 4.5.0.

> Task :app:minifyReleaseWithR8
AGPBI: {"kind":"warning","text":"Missing classes detected while running R8. Please add the missing classes or apply additional keep rules that are generated in E:\\app\\build\\outputs\\mapping\\release\\missing_rules.txt.\n","sources":[{}]}
AGPBI: {"kind":"warning","text":"Missing class com.android.org.conscrypt.SSLParametersImpl (referenced from: void org.conscrypt.KitKatPlatformOpenSSLSocketImplAdapter.<init>(org.conscrypt.AbstractConscryptSocket))\r\nMissing class org.apache.harmony.xnet.provider.jsse.SSLParametersImpl (referenced from: void org.conscrypt.PreKitKatPlatformOpenSSLSocketImplAdapter.<init>(org.conscrypt.AbstractConscryptSocket))\r\nMissing class org.bouncycastle.jsse.BCSSLParameters (referenced from: void okhttp3.internal.platform.BouncyCastlePlatform.configureTlsExtensions(javax.net.ssl.SSLSocket, java.lang.String, java.util.List) and 1 other context)\r\nMissing class org.bouncycastle.jsse.BCSSLSocket (referenced from: void okhttp3.internal.platform.BouncyCastlePlatform.configureTlsExtensions(javax.net.ssl.SSLSocket, java.lang.String, java.util.List) and 5 other contexts)\r\nMissing class org.bouncycastle.jsse.provider.BouncyCastleJsseProvider (referenced from: void okhttp3.internal.platform.BouncyCastlePlatform.<init>())\r\nMissing class org.openjsse.javax.net.ssl.SSLParameters (referenced from: void okhttp3.internal.platform.OpenJSSEPlatform.configureTlsExtensions(javax.net.ssl.SSLSocket, java.lang.String, java.util.List))\r\nMissing class org.openjsse.javax.net.ssl.SSLSocket (referenced from: void okhttp3.internal.platform.OpenJSSEPlatform.configureTlsExtensions(javax.net.ssl.SSLSocket, java.lang.String, java.util.List) and 1 other context)\r\nMissing class org.openjsse.net.ssl.OpenJSSE (referenced from: void okhttp3.internal.platform.OpenJSSEPlatform.<init>())","sources":[{}],"tool":"R8"}

Hi! Noticed the same logs for
versionOkHttp = '4.9.2'
AGPBI: {"kind":"warning","text":"Missing class: org.conscrypt.ConscryptHostnameVerifier","sources":[{}],"tool":"R8"}
AGPBI: {"kind":"warning","text":"Missing class: com.android.billingclient.api.PurchaseHistoryResponseListener","sources":[{}],"tool":"R8"}
AGPBI: {"kind":"warning","text":"Missing class: com.android.billingclient.api.SkuDetailsResponseListener","sources":[{}],"tool":"R8"}
AGPBI: {"kind":"warning","text":"Missing class: com.android.billingclient.api.PurchasesUpdatedListener","sources":[{}],"tool":"R8"}
AGPBI: {"kind":"warning","text":"Missing class: com.android.billingclient.api.BillingClientStateListener","sources":[{}],"tool":"R8"}

I'm having the same problem with OkHttp 4.10.0 when trying to make an apk release, I don't if it's a problem from R8 or OkHttp.


/var/run/redis_2323 directory cannot be created in systemd service

Ubuntu 16.04 service not working by default.
Problem:
ExecStartPre=-/bin/mkdir /var/run/redis
Fails on service start (after reboot) because /run is tmpfs, and var/run/redis is removed on reboot. The error is:
# systemctl restart redis_2323
Job for redis_2323.service failed because the control process exited with error code. See "systemctl status redis_2323.service" and "journalctl -xe" for details.

# journalctl -xe
mkdir[1937]: /bin/mkdir: cannot create directory '/var/run/redis': Read-only file system
chown[1940]: /bin/chown: cannot access '/var/run/redis': No such file or directory
systemd[1]: redis_2323.service: Control process exited, code=exited status=1
systemd[1]: Failed to start Advanced key-value store.
-- Subject: Unit redis_2323.service has failed
...

For workaround, I set this in the variables:
redis_pidfile: "/var/lib/redis/{{ redis_port }}.pid"

I tried this in the [Service]:
PermissionsStartOnly=true
It did not helped.

I met the exact same issue, as well on Ubuntu 16.04. Thanks for the work-around, will try that out!

From what I can tell, it looks like the right way to handle this is with tmpfiles.d: https://www.freedesktop.org/software/systemd/man/tmpfiles.d.html. Thanks systemd!

ubuntu@ubuntu-xenial:~$ cat /etc/tmpfiles.d/redis.conf
d    /run/redis   0755 redis redis

This did the trick for me. I'll create a branch for some further testing.

https://github.com/DavidWittman/ansible-redis/tree/132-systemd-tmpfiles seems to work in my testing. @thbar or @DBLaci let me know if you have any issues with this.

@DavidWittman I upgraded to 9937b2e5ec8c371f77f384b8252049e3344ffce7 this morning and did a bit of testing. Everything seems to run smoothly including at reboot time in my VM. Thanks for the fast patch!
& thanks again @DBLaci for initially reporting this, I was really wondering what was happening there.


Fix the tree background color for the cities demo

Because the globals.css contains a media query setting the body and background colors for prefers-color-scheme: dark, the tree on this demo becomes unreadable for "dark mode" users
(to test in chrome, dev tools, ctrl+shift+p > emulate dark)
before

after

also changed the focused text color to black

another option would be just deleting the media query from the globals.css


Title: Display day and date along with time in the digital clock.

Is your feature request related to a problem? Please describe.
A digital clock usually displays the date and day along with time. But in this particular digital clock only time is displayed.
Describe the solution you'd like.
Day and date should also be displayed in the digital clock.
Describe alternatives you've considered.
I can add date and day feature with proper styling to this digital clock.
Add any other context or screenshots about the feature request here.
No response

Please assign the issue to me

@meetarora10 Thank you for providing your insight but it is not required as of now.


Update commit hash for AGC merge

Updates the commit hash for the AGC merge coming from ads-release

looks like an ADS PR validation pipeline run wasn't automatically started for this PR. Can you manually start one?


initial adaptor commit

Signed-off-by: kumarabd<EMAIL_ADDRESS>

@leecalcote I made this commit for @tingkai-zhang  to get started with contributing. We will start pushing features this week and have the adaptor ready soon.

Thanks. LGTM.


Allow creation of CustomActions

    "custom_actions": [
    	{
    		"id": "CertAction",
    		"property": "",
    		"exe_command": "\"[INSTALLDIR]bin\\script.exe\"",
    		"execute": "deferred",
    		"return": "ignore",
    		"impersonate": "no",
    		"after": "InstallFiles"
    	}
    ],

Looks good, but every new feature should come with a test project using it so we can ensure it works and does not break accidentally in the future. Please add one.

Im going on  vaccation for 2 weeks. I will look at it after.

The test fails with this with WiX:
C:\Users\IEUser\sharpkit\customactions\customaction.wxs(29) : error CNDL0006 :
The CustomAction/@Property attribute's value cannot be an empty string. If a value
is not required, simply remove the entire attribute.

You might also want to rebase this against master, since it now conflicts with the other PR that was merged. Thanks.

It still fails:
C:\Users\IEUser\sharpkit\customactions\customactions.wxs(5) : error LGHT0091 :
Duplicate symbol 'WixAction:InstallExecuteSequence/RemoveExistingProducts' found.
This typically means that an Id is duplicated. Check to make sure all your identifiers
of a given type (File, Component, Feature) are unique.
C:\Users\IEUser\sharpkit\customactions\customactions.wxs(27) : error LGHT0092 :
Location of symbol related to previous error.

I don't see why it should be Duplicate. Here is what "wixl" generates:
<?xml version="1.0" ?> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">  <Product Codepage="1252" Id="*" Language="1033" Manufacturer="Somebody" Name="Custom Action test" UpgradeCode="2DE3A7D5-0B2A-6A45-A93E-7700766A811F" Version="1.0.0">   <Package Comments="Custom Action creation for executing script doing install" Compressed="yes" Description="Custom Action test 1.0.0 installer" Id="*" InstallerVersion="500" Keywords="Installer" Languages="1033" Manufacturer="Somebody" Platform="x64" SummaryCodepage="1252"/>   <MajorUpgrade DowngradeErrorMessage="A newer version of Custom Action test is already installed."/>   <Media Cabinet="customactions.cab" EmbedCab="yes" Id="1"/>   <Directory Id="TARGETDIR" Name="SourceDir">    <Directory Id="ProgramFiles64Folder">     <Directory Id="INSTALLDIR" Name="customactions">      <Component Guid="3462AB0D-42E1-444B-A765-453F53343CF9" Id="ApplicationFiles0" Win64="yes">       <File Id="main_test.txt" Name="test.txt" Source="main/test.txt"/>       <File Id="main_prog.bat" Name="prog.bat" Source="main/prog.bat"/>      </Component>     </Directory>    </Directory>    <Directory Id="ProgramMenuFolder"/>   </Directory>   <Property Id="WIXUI_INSTALLDIR" Value="INSTALLDIR"/>   <Feature ConfigurableDirectory="INSTALLDIR" Description="The complete package" Display="expand" Id="Complete" Level="1" Title="Custom Action test 1.0.0">    <Feature Absent="disallow" Description="This does nothing" Id="MainProgram" Level="1" Title="The Program">     <ComponentRef Id="ApplicationFiles0"/>    </Feature>   </Feature>   <InstallExecuteSequence>    <RemoveExistingProducts After="InstallFinalize"/>    <Custom Action="ActionIdentifier" After="InstallFiles"/>   </InstallExecuteSequence>   <Property Id="cmd" Value="cmd.exe"/>   <CustomAction ExeCommand="/c "[INSTALLDIR]prog.bat"" Execute="deferred" Id="ActionIdentifier" Impersonate="no" Property="cmd" Return="ignore"/>  </Product> </Wix>

Maybe Windows automatically creates a "RemoveExistingProducts" ?

Maybe. But this still needs to be fixed before it can be merged.

@jpakkane I want to try to fix the failing test, could you please give me any pointers?

First you should clone the repo with the MR to your own machine, run the test suite and then verify that you get the same error.
Then it is a matter of examining the XML file that MsiCreator produces and trying to determine a) what the duplicate token is anc b) why it is getting generated. The error message's hint of "This typically means that an Id is duplicated. Check to make sure all your identifiers of a given type (File, Component, Feature) are unique." might be useful or it might not (I don't really know, this is the joy of debugging).

@jpakkane Please, how do I run the test suite and is there a guide I can follow on how to use the project?

There's no guide as such, but roughly:

on Windows install Python and Visual Studio
start the x64 native tools command prompt (from Visual Studio)
cd into the directory where you have the checkout
run python run_tests.py

is it still open to fix the failed testing?

Sure, this will be closed when the issue is fixed.

It has been solved with https://github.com/jpakkane/msicreator/pull/15?


Evaluation score is not shown if there is more than one finished event for it

The score is missing if there is more than one finished event inside the evaluation.

(if you expand the evaluation there is another started and finished event)
The score should be taken from either the latest finished event or the latest finished event of the lighthouse service instead of the first finished event.

https://app.zenhub.com/files/166831098/fef9ccf8-3c57-449d-8df0-642537838b33/download


Added two new books on the IoT and the WoT

Hey! Thanks for the contribution, loks good to me 😄

Great, thanks a lot!


Nested multibulk

Hi, this branch adds support for parsing nested multibulk
responses, such as you might get from an EXEC statement.

Hi, thanks for the patch. Looks good!


jit: support for clz, ctz and popcnt

[x] clz
[x]  ctz
[x] popcnt

lol CLZ is only failing on macos 😄

Looks like we have to implement something like this only for mac (from https://developer.apple.com/documentation/apple-silicon/addressing-architectural-differences-in-your-macos-code)
int cnt(int x){
    int count;
    if(x == 0){
        return (sizeof(x) * CHAR_BIT);
    }
    __asm__ (
        "bsrl %1, %0\n\t" // undefined when operating on 0
        "xorl $0x1f, %1"
        : "=r" (count)
        : "r" (x)
    );
    return count;
}

I hope https://github.com/tetratelabs/wazero/pull/113/commits/898a8b639a608363b9f9e90916a99d00b80e1172 fixed for mac.

now only failing for the case where the target value is zero

ok realized that now CLZ succeeded on mac but the only failing case is for CTZ

ready for review!

Thanks for the look!


Missing PS script in files

Hello, Maili
Thanks for sharing your amazing script,
I want to donwload the Azure PRT Login Script PS, but is not in there the PS, please upload the script.

File has been updated and uploaded. Thanks.


perf(rspack_core): Improve code splitting

Summary
Previously we were using HashMap<usize, _> for id mappings inside the module graph. Performance degrades heavily when there are lots of modules (100,000+) due to hashing inside hot paths.
In this PR, I changed the backing storage with a Vec, the index becomes the id so lookups become O(1).
As a bonus, both AtomicUsizes are removed, because ModuleGraph algorithms are single threaded.

The IDs should be global, closing for now.


Transformation when advertising and subscribing poses

    laserOdometry.header.stamp = cloudHeader.stamp;
    laserOdometry.pose.pose.orientation.x = -geoQuat.y;
    laserOdometry.pose.pose.orientation.y = -geoQuat.z;
    laserOdometry.pose.pose.orientation.z = geoQuat.x;
    laserOdometry.pose.pose.orientation.w = geoQuat.w;
    laserOdometry.pose.pose.position.x = transformSum[3];
    laserOdometry.pose.pose.position.y = transformSum[4];
    laserOdometry.pose.pose.position.z = transformSum[5];

Like the code above，the poses are transformed before advertising and after subscribing.I wonder the transformation is offset. What is the purpose of doing so?

maybe just for V-loam. lego-loam is inherited from loam, its author may want to add a camera coordinate system.
------------------ 原始邮件 ------------------
发件人:                                                                                "RobustFieldAutonomyLab/LeGO-LOAM"<EMAIL_ADDRESS>发送时间: 2020年11月5日(星期四) 下午4:41
收件人<EMAIL_ADDRESS>抄送<EMAIL_ADDRESS>主题: [RobustFieldAutonomyLab/LeGO-LOAM] Transformation when advertising and subscribing poses (#209)
 laserOdometry.header.stamp = cloudHeader.stamp;     laserOdometry.pose.pose.orientation.x = -geoQuat.y;     laserOdometry.pose.pose.orientation.y = -geoQuat.z;     laserOdometry.pose.pose.orientation.z = geoQuat.x;     laserOdometry.pose.pose.orientation.w = geoQuat.w;     laserOdometry.pose.pose.position.x = transformSum[3];     laserOdometry.pose.pose.position.y = transformSum[4];     laserOdometry.pose.pose.position.z = transformSum[5];

Like the code above，the poses are transformed before advertising and after subscribing.I wonder the transformation is offset. What is the purpose of doing so?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.


RDKSEC-71 Build failure in wpeframework recipe while adding distro fe…

…ature for DOBBY_CONTAINERS
(| Source/processcontainers/libWPEFrameworkProcessContainers.so.2.1.11: error: undefined reference to 'sd_bus_message_read_array' | Source/processcontainers/libWPEFrameworkProcessContainers.so.2.1.11: error: undefined reference to 'sd_bus_message_skip' | Source/processcontainers/libWPEFrameworkProcessContainers.so.2.1.11: error: undefined reference to 'sd_bus_message_peek_type' | Source/processcontainers/libWPEFrameworkProcessContainers.so.2.1.11: error: undefined reference to 'sd_bus_message_at_end' | Source/processcontainers/libWPEFrameworkProcessContainers.so.2.1.11: error: undefined reference to 'sd_bus_message_append_array)
Reason for change: Stable build
Test Procedure: None.
Risks: None.

Blackduck scan failure details
Summary: 0 violations, 0 files pending approval, 1 file pending identification.


Python Version Inconsistence Problem

I would like to install open-clip, which required python>=3.7, but deltaco is developed on python=3.6.5. How to resolve the problem? Thanks :)

Deltaco's python code should be able to run with python3.7 with very minimal (or no) code changes, though some of the packages in our requirements.txt may need to be upgraded to a slightly later version to be compatible with python3.7.
I am looking at the requirements.txt in open-clip. Are you having trouble installing a package specifically that conflicts with deltaco's packages?

Seems resolved based on #2.


document details page (frontsite): bookshop url

When the book is tagged with BOOKSHOP, add an url to the bookshop ( in the loan/access grey panel) to point to the book on EDH (CERN specific use case)
URL as in example https://cds.cern.ch/record/2737334?ln=en

Here is a URL as example: https://edh.cern.ch/edhcat/Browser?command=searchItems&argument=&top=&showAdvanced=&scem=<IP_ADDRESS>5.2&keywords=
The SCEM '<IP_ADDRESS>5.2' can be changed in the URL to match the alternative_identifiers.value when alternative_identifiers.scheme = SCEM

For the new version of Infor LN (Baan), the contact person in FAP-BC is Wim van Leersum. It is foreseen in 2022. I don't know if the URL structure will change.

the link to be added on SCEM identifier and on the BOOKSHOP tag (if possible, if not possible the place to be determined)

tags: link to search with the tag (not bookshop though)


Remove archived dependency and add --version

Hi,
hugopl/version_from_shard was archived by me, so I'm replacing it by a simple macro.
It get the version from shards.yml and add a build to it with a short git hash or "unknown" if it wasn't built from a git repository (e.g. tarballs).
So version 0.15.0 is now show as 0.15.0+f8aa5c6, i.e. the build part of the version will always present. If this isn't desired I can update the PR.
Then I also add a --version flag, so neovim (and probably other editors) can show crystalline version on UI, nowadays it can't:

With this patch:

Hey @hugopl :wave:

hugopl/version_from_shard was archived by me, so I'm replacing it by a simple macro.

Oh, thanks for dedicating some time to update this! :bow:

Thanks, crstalline have --version now finally.

print version use  --version still not work after download from https://github.com/elbywan/crystalline/releases/tag/v0.15.0

Oops, sorry, this PR merged after 1.15.0 released.


Fixed requirements and moved to py-moneyed 0.7.0

Fixes the following error when used with django-money which in turn is using py-moneyed==0.7.0
Could not find a version that matches py-moneyed==0.6.0,>=0.7
Tried: 0.3, 0.4, 0.4.1, 0.5.0, 0.6.0, 0.7.0, 0.7.0
There are incompatible versions in the resolved dependencies.

Coverage remained the same at 88.108% when pulling c426144eb8be20b88fcfc2c45adca4640e9688e6 on afeef:master into ac1f7636b9a38d3e153eb833019342c4d88634c2 on evonove:master.

Already fixed here https://github.com/evonove/django-money-rates/pull/24


Editing tasks is not working while this plugin is installed.

Kanboard Version: git master (2020-03-11; The issue also occurred before updating).
Tried:

Click "Edit" from menu from board view.
Click "Edit" link while in task view.
Click "Uninstall" on a plugin.

No editing interface appears.
Uninstalling KanboadOffline prevents the issue. Uninstall must be executed from terminal, since Uninstall link is broken.

i can confirm this issue. the interesting fact: editing works in firefox, but not in Chome.


Delete new dhe_context check for enhance code performance

Fix: #1617
Signed-off-by: Wenxing Hou<EMAIL_ADDRESS>

I dont understand why we need it.
Whenever you talk about "performance", please show me the data - how many seconds you have saved?

Thanks. I will close the PR, because the PR will make others confused.


Extra class in Pagination example?

Under the Pagination section of the UI Elements guide, the last (third) example applies the CSS class "overflow-hidden" on both the containing div and the div around the numeric paging buttons. I understand the use of the inside "overflow-hidden" but the outside one doesn't seem to serve a purpose for this example. Is that right?

I'd have to double check but I think that's serving as a clear fix that also keeps the border radius for hover states of the buttons, which aren't rounded.


How do I pass additional data to the tooltip in a sankey diagram?

I am trying to display some extra info per node and per link through the tooltip. I am unable to figure out how to do this. Here is what I've tried:
chartConfig(chart) {
                chart.tooltip().html(function(d) {
                    console.log('hello');
                    return (d.key);
                });

                chart
                    .sankey()
                    .sankey()
                    .nodePadding(100)

                chart
                    .sankey()
                    .nodeDraggableY(true)
  }

But it says that chart.tooltip() is not a function. How do you pass some custom data to the tooltip here?. Any help with this would be great.

Hey there,
You are very close but instead of using chart.tooltip() for the sankey you must use chart.nodeTooltip() or chart.linkTooltip().
So something like..
    chartConfig(chart) {
      chart.nodeTooltip().html((d) => {
        console.log(d);
        return d.data.name;
      })
    }

Hope this helps!

Side note.. as of the latest d2b version these configurations can be included into the chart data itself. So the above would be..
        chartData: {
          node: {
            tooltip: {
              html(data) {
                return data.name
              }
            },
          },
          ...
        }

You can even embed the tooltip content directly into the node object itself..

        chartData: {
          nodes: [
            {name: 'Node A', tooltip: 'Custom tooltip for node A..'},
            {name: 'Node B'},
            {name: 'Node C'},
            {name: 'Node D'},
            {name: 'Node E'},
          ],
          ...
        },

And the same carries for links as well.
Cheers!

Thanks! figured it out. Also one more thing is it possible to add formatting to the node name as well (such a going to a new line, colors. etc.)?


Remove sudo from Travis testing script

Travis runs Python in a virtualenv, so there's no need for sudo.

Travis passed its checks for my commit and Pull Request, if that's what you mean. It's also how I use it locally, inside a Virtualenv environment on both Linux and Windows.
The instructions in the documentation on using this with Travis already rely on this, as they don't use sudo.


Get return value of a function. Do you still need the delegate?

Hi,
I want to hook a function to obtain its return value. I do not want to call the function on my own. Do I still have to provide the delegate of the function?
I got the memory address of the function and the IDA pseudo code.
Thanks!

If using EasyHook you still need to define a delegate, call the original and then you have the return value.
Looks like you have the function definition there so all good, just make sure you match the calling convention correctly.


Cell alignment doesn't work when used more than once.

To reproduce execute following example:
using System.IO;
using NPOI.SS.UserModel;
using NPOI.XSSF.UserModel;

namespace NPOITest {
    internal class Program {
        static void Main() {
            var workbook = new NPOI.XSSF.UserModel.XSSFWorkbook(XSSFWorkbookType.XLSX);
            var sheet = workbook.CreateSheet("Test");
            var row = sheet.CreateRow(0);
            var cell1 = row.CreateCell(0);
            var cell2 = row.CreateCell(1);
            var cell3 = row.CreateCell(2);
            cell1.SetCellValue("L");
            cell2.SetCellValue("C");
            cell3.SetCellValue("R");
            cell1.SetCellType(CellType.String);
            cell2.SetCellType(CellType.String);
            cell3.SetCellType(CellType.String);
            var style1 = workbook.CreateCellStyle();
            var style2 = workbook.CreateCellStyle();
            var style3 = workbook.CreateCellStyle();
            style1.Alignment = HorizontalAlignment.Left;
            style2.Alignment = HorizontalAlignment.Center;
            style3.Alignment = HorizontalAlignment.Right;
            cell1.CellStyle = style1;
            cell2.CellStyle = style2;
            cell3.CellStyle = style3;
            using var fileStream = new FileStream("test.xlsx", FileMode.Create, FileAccess.Write, FileShare.ReadWrite);
            workbook.Write(fileStream);
        }
    }
}

Expected behavior is 3 different cell alignments. When only 1 cell is created and aligned - the alignment is applied properly.
When I create 3 different cells with 3 different styles - they are all aligned to the left, instead of the alignment set in example.
Consider another example:
using System.IO;
using NPOI.SS.UserModel;
using NPOI.SS.Util;
using NPOI.XSSF.UserModel;

namespace NPOITest {
    internal class Program {
        static void Main() {
            var workbook = new NPOI.XSSF.UserModel.XSSFWorkbook(XSSFWorkbookType.XLSX);
            var sheet = workbook.CreateSheet("Test");
            var row = sheet.CreateRow(0);
            var cell1 = row.CreateCell(0);
            var cell2 = row.CreateCell(1);
            var cell3 = row.CreateCell(2);
            cell1.SetCellValue("L");
            cell2.SetCellValue("C");
            cell3.SetCellValue("R");
            cell1.SetCellType(CellType.String);
            cell2.SetCellType(CellType.String);
            cell3.SetCellType(CellType.String);
            //CellUtil.SetAlignment(cell1, HorizontalAlignment.Left);
            CellUtil.SetAlignment(cell2, HorizontalAlignment.Center);
            CellUtil.SetAlignment(cell3, HorizontalAlignment.Right);
            using var fileStream = new FileStream("test.xlsx", FileMode.Create, FileAccess.Write, FileShare.ReadWrite);
            workbook.Write(fileStream);
        }
    }
}

In example above the second cell should be centered, the last one - aligned to the right.
What actually happens is the second AND THIRD cell is centered. It behaves as each subsequent setting of the alignment woud assign the same value as before, instead of user provided value.

I'm using NPOI 2.5.4 and try to reproduce your issue. But I cannot reproduce it.

Here is my code
            IWorkbook workbook = new XSSFWorkbook();
            ISheet sheet1=workbook.CreateSheet("Sheet 1");

            var row = sheet1.CreateRow(0);
            var cell1 = row.CreateCell(0);
            var cell2 = row.CreateCell(1);
            var cell3 = row.CreateCell(2);
            cell1.SetCellValue("L");
            cell2.SetCellValue("C");
            cell3.SetCellValue("R");
            var style1 = workbook.CreateCellStyle();
            var style2 = workbook.CreateCellStyle();
            var style3 = workbook.CreateCellStyle();
            style1.Alignment = HorizontalAlignment.Left;
            style2.Alignment = HorizontalAlignment.Center;
            style3.Alignment = HorizontalAlignment.Right;
            cell1.CellStyle = style1;
            cell2.CellStyle = style2;
            cell3.CellStyle = style3;

            using (FileStream sw = File.Create("test.xlsx"))
            {
                workbook.Write(sw);
            }

Do you use it with .NET 5.0 on x64? It's weird, your code is the same as mine and it works on your configuration, but doesn't work on mine. Maybe it's .NET version compatibility issue? Is this Libre Office Calc? I test it on Libre Office Calc <IP_ADDRESS>.

I'm on Windows and Microsoft Office 2016. I don't think this is something related to .NET version. It may be the compability issue of Libre Office. Have you tried to open your generated file in google sheet?

Yes, you were right - it's an issue with LibreOffice. On Google Sheet it's displayed properly.
It is however quite weird, since I'd guess Apache Open Source project would be more compatible with Libre than with M$ ;)
Maybe it could be worked around somehow?
For now I'm working on a small extension for NPOI doing automatic exports based on properties attributes, I can test the features on Google Sheets. The version on my GitHub doesn't support configurable alignment yet, mostly because of the problem I had. It also has a small performance issue (a very minor one) that is fixed in my local sources, I just held with push until I solve the alignment issue.


Update compileSdkVersion and gradle plugin

This change was made using AS's tool. Also updates compile sdk version to 31

Updates gradle (and other dependencies) using Android Studio's AGP tool.
This also requires updating compile sdk version to 31.

Verified the changes by running the app locally.
@gino-m  PTAL?

Codecov Report

Merging #1186 (1239d0f) into master (66ffd1f) will increase coverage by 1.54%.
The diff coverage is n/a.

 Take ten seconds to tell us how you rate us.


feat: add save full models

Closes https://github.com/jina-ai/jerboa/issues/99
This PR takes in already saved adapter weights, and model name and saves the full pytorch model weights to upload it in hf models and activate inference API
related discussion: https://github.com/huggingface/peft/issues/636

The issue seems to be a change to transformers that does not allow for .to(device) if we use quantization: https://github.com/huggingface/transformers/blob/66954ea25e342fd451c26ec1c295da0b8692086b/src/transformers/modeling_utils.py#L1897. Trying to fix this with the PR: https://github.com/jina-ai/jerboa/pull/104.


Byteman test locking solved

@ederign It was not running in parallel, but it was getting stuck because of the repeatead rendezvous name. I've changed it and now is working properly

thanks @adrielparedes! +1


Add Concept of Syntactic Sugar

Calls to "syntactic sugar" could be distinguished with ! for example, like macro calls in Rust.  Current items of syntactic sugar we have are:

assert e
succeeds e1, e2
returns e1, e2

Also, static jumps could be considered syntactic sugar.


RecentDmConversationsPage: Fix RTL layout problem

Fixes: #337

Sure, looks good, merging.
I think at this stage we shouldn't spend any significant amount of time thinking about RTL layout. It won't benefit users until we actually add an RTL locale, and when we do go into that I think it'll be pretty efficient to do so as a general sweep through the app, which we have an issue for (#77). The issue is post-launch because no existing Zulip client supports it, including Zulip web.
I think it does make sense to generally have a habit of taking designs that are given in terms of left and right, and expressing them in our code in terms of start and end, as this PR does. That'll probably reduce the amount we have to change when we eventually do that sweep #77. But it's OK that we may have some places where we say left and right instead, and consequently a mixture where the layout doesn't totally come out correctly because some things are left/right and others are start/end. Those will just be among the things we find when we eventually do #77, and they'll have no user impact until then.