Many unused config values

We have a bunch of unused/outdated/un-documented values in our sample config.json.
CIDRNet - appears unused
broadcastaddr - this could do with a rename (used for on-dhcp-proxy)
apiServerAddress - not compatible with our southbound proxy config data structure. Have to define the values in two places right now
gatewayaddr - appears unused
minLogLevel - this is defined twice in the example file (once with a value of 3, again with a value of 2). This makes it harder to ask people to change their log level when debugging!
subnetmask - appears unused

during adjust DHCP IP range, I remove DHCP related unused parameters. PR is https://github.com/RackHD/RackHD/pull/386.  so after this PR.   CIDRNet ,subnetmask ,broadcastaddr will be removed. there is no 'gatewayaddr ' at present. so only below items are left:
apiServerAddress - not compatible with our southbound proxy config data structure. Have to define the values in two places right now
minLogLevel - this is defined twice in the example file (once with a value of 3, again with a value of 2). This makes it harder to ask people to change their log level when debugging!


Can't boot after installing

Which operating system are you trying to install?
Monterey
Describe the bug
After installing from the Fedora file on macOS 12 you can't boot the disc and when trying it goes back to the installer
To Reproduce
Steps to reproduce the behavior:

Install
Boot the disc

Desktop (please complete the following information):

OS: Fedora kde
Version 39

Fixed it turns out I had to readd the disc.


Question, MediaEmbed providers

MediaEmbed only adds

     <oembed url="...."></oembed>

I want him to add an iframe for youtube.
editor:{
  mediaEmbed: {
    providers: [
      {
        name: 'youtube',
        url: [
          /^(?:m\.)?youtube\.com\/watch\?v=([\w-]+)(?:&t=(\d+))?/,
          /^(?:m\.)?youtube\.com\/v\/([\w-]+)(?:\?t=(\d+))?/,
          /^youtube\.com\/embed\/([\w-]+)(?:\?start=(\d+))?/,
          /^youtu\.be\/([\w-]+)(?:\?t=(\d+))?/
        ],
        html: match => {
          const id = match[ 1 ];
          const time = match[ 2 ];

          return (
            '
' +
              `<iframe src="https://www.youtube.com/embed/${ id }${ time ? `?start=${ time }` : '' }" ` +
                'style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" ' +
                'frameborder="0" allow="autoplay; encrypted-media" allowfullscreen>' +
              '' +
            '
'
          );
        }
      }
    ]
  },
}

I tried to add youtube provider manually, but it does not work, what am I doing wrong?

@sijokun
That will solve your problem
https://ckeditor.com/docs/ckeditor5/latest/features/media-embed.html#including-previews-in-data:~:text=mediaEmbed.previewsInData to true
Regular expressions doesnt allowed in configuration because this config will transform to JSON format first before ckeditor will get it

@sijokun
That will solve your problem
https://ckeditor.com/docs/ckeditor5/latest/features/media-embed.html#including-previews-in-data:~:text=mediaEmbed.previewsInData to true
Regular expressions doesnt allowed in configuration because this config will transform to JSON format first before ckeditor will get it

Thx! How I can create custom provider for example for telegram if I can't use regex?

For now the only way is to write it in the plugin file itself https://github.com/nshenderov/strapi-plugin-ckeditor/blob/c7a892581dba0bafced0bfcb4106f7ec314376c3/admin/src/components/CKEditor/index.js#L101

I think I found a problem, everything is shown correctly in the admin panel if you add your provider to the plugin code, but the client only has
<oembed url="https://t.me/telegram/189"></oembed>

The ckeditor saves such a tag to the database and replaces it when displayed, but it sends the strapi directly from the database and does not replace it.
Do you have any ideas what to do with it?

I think this problem is because of two reasons:

the editor config is converted to JSON, truncating the html callback and your regexes. Proposed solution in https://github.com/nshenderov/strapi-plugin-ckeditor/pull/54
You have to tell mediaEmbed not to use oembed, otherwise it won't respect your html.   mediaEmbed: {
     previewsInData: true,


Version flag returns non-specific information

I ran osv-scanner --version today and got the following:
osv-scanner version: dev
commit: n/a
built at: n/a

I expected to see 1.2.

Where was the osv-scanner binary that you ran come from? The version downloaded from github releases show the correct version:
$ ./osv-scanner_1.2.0_linux_amd64 --version
osv-scanner version: 1.2.0
commit: 9647b493034ab334e071921becde06bad8de059e
built at: 2023-02-23T01:27:34Z

I used go install on my work virtual desktop. I also tried homebrew on my personal MacOS and got the same thing.

So currently we inject the version information in the .goreleaser build process, so when you build from source (which homebrew and go install both do), it doesn't have any version info.
That's not ideal but I'm not 100% sure how to go about fixing this. Maybe https://pkg.go.dev/runtime/debug#ReadBuildInfo could be used by default?
Another option is to update homebrew to use our binary builds rather than building from source, but I'm not familiar enough with how homebrew works to know if this is possible.

Actually looking at this, having homebrew use our binaries is not ideal: https://docs.brew.sh/Acceptable-Formulae#we-dont-like-binary-formulae

Maybe https://pkg.go.dev/runtime/debug#ReadBuildInfo could be used by default?

This sounds promising. What does this return exactly? A Go pseudoversion?

It just provides the git tag version (e.g. v1.2.0). So the commit field will still be unpopulated.
Another option is using go generate described here: https://levelup.gitconnected.com/a-better-way-than-ldflags-to-add-a-build-version-to-your-go-binaries-2258ce419d2d

Fixed by including the version in the source code, updating it when doing a release.


[develop]: socket.gaierror: [Errno -2] Name or service not known

Running develop run.py with develop branch...
Downloading/unpacking counterpartycli from https://github.com/CounterpartyXCP/counterparty-cli/archive/develop.zip
Cleaning up...
Exception:
Traceback (most recent call last):
  File "/home/xcp/federatednode_build/env/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/connectionpool.py", line 480, in urlopen
    body=body, headers=headers)
  File "/home/xcp/federatednode_build/env/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/connectionpool.py", line 285, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.4/http/client.py", line 1065, in request
    self._send_request(method, url, body, headers)
  File "/usr/lib/python3.4/http/client.py", line 1103, in _send_request
    self.endheaders(body)
  File "/usr/lib/python3.4/http/client.py", line 1061, in endheaders
    self._send_output(message_body)
  File "/usr/lib/python3.4/http/client.py", line 906, in _send_output
    self.send(msg)
  File "/usr/lib/python3.4/http/client.py", line 841, in send
    self.connect()
  File "/home/xcp/federatednode_build/env/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/connection.py", line 136, in connect
    timeout=self.timeout,
  File "/usr/lib/python3.4/socket.py", line 491, in create_connection
    for res in getaddrinfo(host, port, 0, SOCK_STREAM):
  File "/usr/lib/python3.4/socket.py", line 530, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/xcp/federatednode_build/env/lib/python3.4/site-packages/pip/_vendor/requests/adapters.py", line 330, in send
    timeout=timeout
  File "/home/xcp/federatednode_build/env/lib/python3.4/site-packages/pip/_vendor/requests/packages/urllib3/connectionpool.py", line 530, in urlopen
    raise MaxRetryError(self, url, e)
pip._vendor.requests.packages.urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /CounterpartyXCP/counterparty-cli/archive/develop.zip (Caused by <class 'socket.gaierror'>: [Errno -2] Name or service not known)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/xcp/federatednode_build/env/lib/python3.4/site-packages/pip/basecommand.py", line 122, in main
    status = self.run(options, args)
  File "/home/xcp/federatednode_build/env/lib/python3.4/site-packages/pip/commands/install.py", line 278, in run
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
  File "/home/xcp/federatednode_build/env/lib/python3.4/site-packages/pip/req.py", line 1197, in prepare_files
    do_download,
  File "/home/xcp/federatednode_build/env/lib/python3.4/site-packages/pip/req.py", line 1375, in unpack_url
    self.session,
  File "/home/xcp/federatednode_build/env/lib/python3.4/site-packages/pip/download.py", line 546, in unpack_http_url
    resp = session.get(target_url, stream=True)
  File "/home/xcp/federatednode_build/env/lib/python3.4/site-packages/pip/_vendor/requests/sessions.py", line 395, in get
    return self.request('GET', url, **kwargs)
  File "/home/xcp/federatednode_build/env/lib/python3.4/site-packages/pip/download.py", line 237, in request
    return super(PipSession, self).request(method, url, *args, **kwargs)
  File "/home/xcp/federatednode_build/env/lib/python3.4/site-packages/pip/_vendor/requests/sessions.py", line 383, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/xcp/federatednode_build/env/lib/python3.4/site-packages/pip/_vendor/requests/sessions.py", line 486, in send
    r = adapter.send(request, **kwargs)
  File "/home/xcp/federatednode_build/env/lib/python3.4/site-packages/pip/_vendor/requests/adapters.py", line 378, in send
    raise ConnectionError(e)
pip._vendor.requests.exceptions.ConnectionError: HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /CounterpartyXCP/counterparty-cli/archive/develop.zip (Caused by <class 'socket.gaierror'>: [Errno -2] Name or service not known)

Storing debug log for failure in /home/xcp/.pip/pip.log
2015-09-12 11:49:23,264|ERROR: Command failed: 'sudo su -s /bin/bash -c '/home/xcp/federatednode_build/env/bin/pip install --upgrade https://github.com/CounterpartyXCP/counterparty-cli/archive/develop.zip#egg=counterpartycli' xcp'

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/26636026-develop-socket-gaierror-errno-2-name-or-service-not-known?utm_campaign=plugin&utm_content=tracker%2F494308&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F494308&utm_medium=issues&utm_source=github).

Seems like a VM issue (related to DNS lookups). May need to close later if I can't duplicate on another hypervisor.

yes, just a VM connection/DNS resolve issue it appears


Release 0.3.1 amd64 windows utreexod missing

There is no utreexod in Windows amd64 binary
It just mistake ya?
but I can build it from source

Oh you are right. Thanks for catching it. It's probably something wrong with my release scripts.
I'll get on it


Currency Setting

Not sure if this is already resolved. Core wallet 4.3.0 home page, when changing the displayed currency in setting, staking info won't change until a reboot while transactions and balance do change once it's adjusted.
Minor issue I guess.

Created a PR for this here: #453

Bounty assigned to @mxaddict, pending merge

@aguycalled NRXfZ1egFxMSUsc4Ufpi4Lm7DdXStYmeBG

Paid 74e4165c820abb9a16c1724186ec81452a54846f919c2961618b9e8ddd3092e8

Closing issue since PR has been merged


[Bug]: The add button is not displayed on hover in the  context menu

Is there an existing issue for this?

[X] I have searched the existing issues

Description
The add button is not displayed on hover the data source on the context menu

Steps To Reproduce

Go to admin setting
click on roles tab
Create a new role
check on Create in application resource tab click on save
Now go to datasource & queries tab
Click on create,execute and view roles and save it
Now assign it to<EMAIL_ADDRESS>Now login as a user 1
Go to datasources section in context menu now hover on the table name The "add" is not displayed but clicking on it the queries are displayed inside the tooltip

Public Sample App
No response
Issue video log
No response
Version
localhost

@RakshaKShetty Yes, we were aware of this sorry we didn't notify you earlier. This has been fixed and in PR waiting for review now. https://github.com/appsmithorg/appsmith/pull/18392. I will link this issue to that PR.


added new Sync CLI command and use new UniformSlot property - wrapperComponent

Do not merge until CLI Sync PR is merged :)

@MichaelLonin @M1r1k is this good to go with a rebase?


fix: update SCC profile_id to fe96bd4d-9b37-40f2-b39f-a62760e326a3

/run pipeline

:tada: This PR is included in version 1.10.10 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Docs reference themselves for more information which is a bit pointless

In docs/source/getting-started/installing-caliper.md it has the statement
For more information on Hyperledger Caliper: https://hyperledger-caliper.github.io/caliper/

which is pointless, we should remove it
docs/source/tutorial/fabric.md
You have successfully benchmarked a smart contract. You can repeat the test varying the benchmark parameters, as well as adding resource monitors. For the full set of options, please refer to the [Caliper Documentation](https://hyperledger-caliper.github.io/caliper/)

should reference the relative location in the docs, not the url for caliper documentation
as a side json-schema/hyperledger-caliper-runtime-configuration.schema.json
provides links which will become invalid once the new docs are released

Regarding docs/source/tutorial/fabric.md: I couldn't find the homepage (https://hyperledger-caliper.github.io/caliper/) in the source code to reference. Shall I reference this page instead: https://hyperledger-caliper.github.io/caliper/v0.6.0/getting-started/? Or perhaps I'm missing something about where to locate the homepage?
Regarding json-schema/hyperledger-caliper-runtime-configuration.schema.json: Since this is a json file rather than an md file, I'm unsure how we could reference a documentation page here?

Still need to fix the tutorial but that can be done in a new PR

last bit now
json-schema/hyperledger-caliper-runtime-configuration.schema.json
provides links which will become invalid once the new docs are released


Notice of Copyright Violation

This is an official notice of Copyright violation against the PIVX developers in which this project has been forked from. The MIT copyright license, and subsequent copyright headers in source files have been modified to explicitly exclude the PIVX developers from all copyrights.
You are hereby notified of an intention to pursue further action if this issue is not acknowledged and formally addressed with a resolution time frame commitment wherein. Failure to acknowledge and correct the violation will result in a formal DMCA take-down notice filed with GitHub Proper after no less than five business days from the date of this notice.
Explicit acknowledgement and referencing progress to maintain compliance MUST be noted in this issue's comments or referred to in any subsequent pull requests to this repository.
File in question:
  acrecoin/LICENSE

Over 3 weeks have passed and you have not solved this issue. I will be passing this notice to our legal department should you not comply within 24h.

Yo


Add option to load TileJSON via XHR

Some TileJSON sources (including Mapbox v4) do not allow to use JSONP (with ?callback=...) to load the TileJSON.
This PR adds option to specify that XmlHttpRequest should be used instead.

LGTM @petrsloup I know this extends on our use of the goog lib, but the areas you are adding have not been refactored out as yet so I guess this is okay for now. So please merge.

Yes, this uses goog.net.XhrIo, but it's already used in ol.featureloader.loadFeaturesXhr so it's not a new dependency.
Merged, thanks.

If the Mapbox v3 endpoint supports CORS, I think it would be reasonable to change the default to use XHR.  I think we risk frustrating more people by being broken in the future unless someone discovers the useXhr option.
What would others think about having a jsonp option, and having the default be false (treating the previous behavior as a bug)?

jsonp only exists because of IE9?
+1 for using xhr by default

I agree it makes sense to change the default now. See #4625.


Customisable Bot Name

Ideally an entry in the config file to allow us to customise the bot's name in Discord.

There's some rate limiting on name changes, so we'll need to check for if same then move on. As otherwise if it crashes and restarts, it'll then crash out due to trying to rename every time.

turns out I lied, you can't customise the bot name in ukulele, it just uses the application name in discord. Which makes sense. closing as unnecessary.


Number custom inserting thousands separators

Hey,
I would like suggest add in attribute custom inserting thousands separators. So, for example, you could use it as a phone number via changing separator to -

I think this would be best accomplished using custom expressions (#22) when that is implemented since you would have full control over formatting values.
For phone numbers in particular, there is already an issue because there are multiple ways phone numbers can be formatted. For me locally, a common format would be xxx-xxx-xxxx. If I entered a phone number into an attribute as<PHONE_NUMBER>, then standard number formatting would yield 1,234,567,890, and changing the separator would yield 1-234-567-890 instead of<PHONE_NUMBER>.

Actually, when you pointed this out, I fully agree! BTW. May I ask for your e-mail address?


Fix #68, check file exists before open file

Codecov Report

Merging #71 (ebf937d) into master (e1873ff) will decrease coverage by 1.35%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master      #71      +/-   ##
==========================================
- Coverage   99.77%   98.42%   -1.36%
==========================================
  Files          18       18
  Lines        1804     1780      -24
==========================================
- Hits         1800     1752      -48
- Misses          4       28      +24

Impacted Files
Coverage Δ

src/viztracer/prog_snapshot.py
99.44% <100.00%> (-0.56%)
:arrow_down:

src/viztracer/viztracer.py
95.61% <0.00%> (-4.39%)
:arrow_down:

src/viztracer/report_builder.py
96.33% <0.00%> (-3.67%)
:arrow_down:

src/viztracer/simulator.py
96.77% <0.00%> (-3.23%)
:arrow_down:

src/viztracer/flamegraph.py
97.59% <0.00%> (-2.41%)
:arrow_down:

src/viztracer/code_monkey.py
97.95% <0.00%> (-2.05%)
:arrow_down:

src/viztracer/main.py
98.84% <0.00%> (-1.16%)
:arrow_down:

src/viztracer/tracer.py
100.00% <0.00%> (ø)

src/viztracer/decorator.py
100.00% <0.00%> (ø)

src/viztracer/event_base.py
100.00% <0.00%> (ø)

... and 1 more

Continue to review full report at Codecov.

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


Consider updating package on pypi

Was pulling my hair out trying to figure out why a certain json logic expression wasn't working, but then I realized the version of the code I got from pip install json-logic is older and less complete than what's on master.
Considering publishing the latest version?

This repo does not seem to be maintained any more.
Please use a maintained fork by @qubitdigital: qubitdigital/json-logic-py. It has the most up-to-date code.
@mmniaziqb (the actual maintainer of that fork) was going to push an alternative package to PyPI. Cannot check right now if it's already available. But in any case, you can still use the following command to install it:
pip install git+https://github.com/qubitdigital/json-logic-py.git

I have uploaded latest version to pypi, you can install it using pip install json-logic-qubit

Please merge any of the working versions, it helps to avoid the "$ pip install ... " problem. Thank you.

https://github.com/Pocket/json-logic-py
https://github.com/qubitdigital/json-logic-py.git


chatbox icon is not properly aligned

Is there an existing issue for this?

[X] I have searched the existing issues

What happened?
We need to align the chatbox icon to the right side .

please assign me this issue under gssoc @anuragverma108
Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSOC'24 contributor
[X] I want to work on this issue

Is there an existing issue for this?

[x]  I have searched the existing issues

What happened?
We need to align the chatbox icon to the right side .  please assign me this issue under gssoc @anuragverma108
Record

[x]  I agree to follow this project's Code of Conduct
[x]  I'm a GSSOC'24 contributor
[x]  I want to work on this issue

Assigned!
Make sure to attach before & after screenshots in your PR and include the issue number.
Also, please star the repo before working on it. Happy open-source contributing!

Is there an existing issue for this?

[x]   I have searched the existing issues

What happened?
We need to align the chatbox icon to the right side .  please assign me this issue under gssoc @anuragverma108
Record

[x]   I agree to follow this project's Code of Conduct
[x]   I'm a GSSOC'24 contributor
[x]   I want to work on this issue

Assigned! Make sure to attach before & after screenshots in your PR and include the issue number. Also, please star the repo before working on it. Happy open-source contributing!

hey,just saw today this


Better SystemId to Entity conversions

Objective

Better SystemId <-> Entity conversion.

Solution

Provide a method SystemId::from_entity to create a SystemId<I, O> form an Entity. When users want to deal with the entities manually they need a way to convert the Entity back to a SystemId to actually run the system with Commands or World.
Provide a method SystemId::entity that returns an Entity from SystemId. The current From impl is not very discoverable as it does not appear on the SystemId doc page.
Remove old From impl.

I have some concerns, for example, SystemId fields aren't public, not sure if it was because there was some concern around creating an SystemId from raw entities causing errors or something like that.

I'm pretty sure this was just misguided bevy "type level ergonomics". The latest discussion from ecs-dev is removing SystemId completely & just using Entity. I decided to add a method for now cause that will be less controversial & receive less push back.


VoiceOver reads attributed strings in multiple segments on iOS 15

VoiceOver now appears to read attributed strings in segments based on attribute ranges. You can see this behavior through the following example:
let attributedText = NSMutableAttributedString(string: "Hello world")
attributedText.addAttributes([.kern: 1], range: NSRange(location: 9, length: 1))

let label = UILabel()
label.attributedText = attributedText

VoiceOver will read this as Hello wor, l, d. This reproduces for a variety of attributes such as kerning, foreground color, and background color.
I was able to reproduce this on iOS 15.1.1, but not on iOS 13.3. As far as I know this is a new issue on iOS 15, but it's possible it applies to 14 as well.

We have also reproduced this in iOS 15.0.

And this does not reproduce on iOS 14, so confirmed this is a behavior change in iOS 15.

Did a more thorough test on iOS 15.3.1 and found the following.
These attributes trigger this behavior:

.backgroundColor
.ligature
.kern
.tracking
.strikethroughStyle
.underlineStyle
.strokeColor
.strokeWidth
.attachment
.link
.underlineColor
.strikethroughColor
.obliqueness
.expansion
.writingDirection
.verticalGlyphForm

These attributes do not trigger the behavior:

.foregroundColor
.font
.paragraphStyle
.shadow
.textEffect
.baselineOffset

I'm not sure why some attributes do and some don't, and I had tested .foregroundColor before with a different result, so I'm not sure if that changed across minor OS versions.


Roviz: limit the number of visualized results

Until a more efficient visualization template is written, it is difficult to justify loading more than 1000-2000 experiments.
So introduce the environment variable ROVIZ_NRESULTS which is equal to 1000 by default, and indicates the max number of results to be included in the visualization.

In hindsight, this is a bad idea. Instead the web app should be made efficient enough to handle large collections of results.

In hindsight, this is a bad idea. Instead the web app should be made efficient enough to handle large collections of results.


Insert statement being called when updating a row

Describe the bug
This is the code I wrote for a function within my app. What it should do: whenever I press on one of the actions of my app's home screen, it should write on this table called RecentActions the name of the action and the count of usages, the latter being increased every time.
try {
  RecentAction recentAction =
      await Database().getRecentActionByName(identifier);

  RecentActionsCompanion entity = RecentActionsCompanion(
    id: drift.Value(recentAction.id),
    name: drift.Value(recentAction.name),
    count: drift.Value(recentAction.count + 1),
  );

  Database().updateRecentAction(entity);
} on StateError {
  RecentActionsCompanion entity = RecentActionsCompanion(
    name: drift.Value(identifier),
    count: const drift.Value(1),
  );
  Database().insertRecentAction(entity);
}

As I was testing it, I came across a StateError, when the element didn't exist to begin with. So I wrote a catch to my function that inserts the record whenever it didn't exist. After that, my problem with the StateError was solved and I moved along with my tests.
Then, I came across this issue, where, sometimes, the updateRecentAction function will throw an error:
SqliteException (SqliteException(1555): UNIQUE constraint failed: open_connections.database_pointer, constraint failed (code 1555)
  Causing statement: INSERT INTO open_connections VALUES (?, ?))

I see this as an error, because there should be no way of an insert being called when I'm trying to update a record.
Here is the code for the updateRecentAction function:
Future<bool> updateRecentAction(RecentActionsCompanion entity) async {
  return await update(recentActions).replace(entity);
}

Can anyone shed some light on this issue?
Am I missing something?
Am I doing something wrong?
(it could be, since I just recently started messing with drift) (great ORM by the way)
Also, I should clarify that I did debug my function end the error was being thrown by the updateRecentAction method.

The state error is probably from the getRecentActionByName function. If you are using getSingle() then it will error if there are no entities or more than 1. You could replace this with getSingleOrNull and it'll instead return null if there are no entities.
However, looking at your code, i think the best way to handle this is to replace the whole code with an onConflict instead:
db.into(db.recentActions).insert(RecentActionsCompanion.insert(
    name: Value(identifier),
    count: const Value(1),
  ), onConflict: DoUpdate((old) => RecentActionsCompanion.custom(
    count: old.count + const Constant(1),
  )));

I agree with what @North101 said about using an onConflict clause to combine the write with an conditional update. However,

SqliteException (SqliteException(1555): UNIQUE constraint failed: open_connections.database_pointer, constraint failed (code 1555)

This is probably a bug in drift. open_connections is an internal database drift uses to properly close databases upon hot restarts. Now that we have finalizers in Dart, it's probably best to just get rid of this functionality.
You're doing Database() for every statement. Is this a factory returning a singleton instance or are you creating a new instance of your database class every time? I strongly recommend using a singleton (well, managed in some maintainable approach like provider, riverpod or get_it to properly dispose it) for efficiency. Creating a new instance for every operation has a lot of overhead. It's also likely to cause this problem, although I blame that error on drift ;)

Should be fixed in the linked commit. That said, my recommended solution is to not open the database multiple times. If you need more pointers on how to manage a drift database instance (where to open and close it), please let me know and I'll be happy to help!

The state error is probably from the getRecentActionByName function. If you are using getSingle() then it will error if there are no entities or more than 1. You could replace this with getSingleOrNull and it'll instead return null if there are no entities.
However, looking at your code, i think the best way to handle this is to replace the whole code with an insert onConflict instead:
db.into(db.recentActions).insert(RecentActionsCompanion.insert(
    name: Value(identifier),
    count: const Value(1),
  ), onConflict: DoUpdate((old) => RecentActionsCompanion.custom(
    count: old.count + const Constant(1),
  )));

This will attempt to insert the row into the database and (assuming that name has to be unique) if there is a conflict then it will instead run the update.

I'll try your suggestion, thanks a lot! I found lots of source material on how to implement basic stuff with drift, sadly there are few that show us how to do this "properly".

I agree with what @North101 said about using an onConflict clause to combine the write with an conditional update. However,

SqliteException (SqliteException(1555): UNIQUE constraint failed: open_connections.database_pointer, constraint failed (code 1555)

This is probably a bug in drift. open_connections is an internal database drift uses to properly close databases upon hot restarts. Now that we have finalizers in Dart, it's probably best to just get rid of this functionality.
You're doing Database() for every statement. Is this a factory returning a singleton instance or are you creating a new instance of your database class every time? I strongly recommend using a singleton (well, managed in some maintainable approach like provider, riverpod or get_it to properly dispose it) for efficiency. Creating a new instance for every operation has a lot of overhead. It's also likely to cause this problem, although I blame that error on drift ;)

I'll make changes to comply with your suggestion as well. Thank you!
As I said, I barely began working with drift, it's all new to me, your suggestion means a lot.


BEAM-3314 Endpoint host port configuration reset issue

fix for https://issues.apache.org/jira/browse/BEAM-3314.

retest this please

Run Java Gradle PreCommit

It seems that RedisIOTest is failing. I'm taking a look.

Run Java Maven PreCommit

Run Java PreCommit

Run Java Gradle PreCommit

RedisIOTest systematically fails with:
org.apache.beam.sdk.Pipeline$PipelineExecutionException: redis.clients.jedis.exceptions.JedisConnectionException: java.net.SocketException: Protocol family unavailable

I wanted to include this in 2.3.0 but, in order to give me time to investigate, I will fix/merge this one for 2.4.0.

Run Java Gradle PreCommit

Run Java PreCommit

Ran into this problem myself, but didn't find this Github issue until after I discovered the underlying problem myself.
Adding the word RedisIO to the comment section to make it turn up better in issue searches.

Run Java PreCommit

I found the reason why this is not working, I am going to cherry pick this one and open a new PR with @vvarma's commit and a rebased fix. Thanks @vvarma and sorry for having taking so long to review/merge this one.


Feature Request: List templates

There are some recipes that I almost always need to go shopping for, and its nice if I can simply recall a list.

Duplicate: liahttps://github.com/SecUSo/privacy-friendly-shopping-list/issues/6


Create page at library.jmonkeyengine.org

Just a suggestion.
Add page into https://library.jmonkeyengine.org/ as Riccardo suggested
Riccardo — 14.07.2022
guys, if you can, please port your stuff to https://library.jmonkeyengine.org/ . You can use this action : https://github.com/jMonkeyEngine/jme-library-publish-action
Or just click "New Entry" and paste the github/old store link, it should work automatically

It looks like it was automatically imported from the old store. I will make sure to update it with 0.1.2 once I release it.

thanks :)


fix(@embark/deployment): fix undefined in web3 error message about number of arguments

This is caused by web3 using the method name to show which method
doesn't have the right number of arguments, but the constructor does
not have a name
Before:
[SimpleStorage]: Invalid number of parameters for "undefined". Got 0 expected 1!

After:
[SimpleStorage]: Invalid number of parameters for "constructor". Got 0 expected 1!

CI is failing due to npm. Restarted builds


How to add ObsessionStatus from tpope/vim-obsession?

I want to add tpope/vim-obsession status to a section by this plugin, but I don't know how to do so.
In help obsession-status it says:

Add %{ObsessionStatus()} to 'statusline', 'tabline', or 'titlestring' to get an indicator when Obsession is active or paused.

then I tried with the following settings but it doesn't work.
use {
  'nvim-lualine/lualine.nvim',
  requires = {
    'kyazdani42/nvim-web-devicons'
  },
  config = function()
    require'lualine'.setup {
      options = {
        theme = 'palenight', -- Purple
        disabled_filetypes = {
          "NvimTree"
        },
      },
      sections = {
        lualine_z = {'v:lua.ObsessionStatus()'}
      }
    }
  end
}

Did you try puttimg just ObsessionStatus ?
like
lualine_z = {'ObsessionStatus'}

Did you try puttimg just ObsessionStatus ? [...]

Yes, I did try that while it doesn't work. I've resolved this problem with this config (and some frustration :/ ):
sections = {
  lualine_z = { "vim.fn.ObsessionStatus('Ob', 'X')" }
}

I hope this will help other people, too.
Preview the result:

Can you try with type set to vim_fun ?
  lualine_z = {{'ObsessionStatus', type='vim_fun'}}

I just downloaded Obsession and it works fine just with
lualine_z = {'ObsessionStatus'}

It shows [$] on statusline when obsession is active and [S] on satusline when it's not . Is it suppose to do anything different ?

I just downloaded Obsession and it works fine just with
lualine_z = {'ObsessionStatus'}

It shows [$] on statusline when obsession is active and [S] on satusline when it's not . Is it suppose to do anything different ?

But in this way how can I provide parameters?

But in this way how can I provide parameters?

You can't in that way . The input is being unterpreted a viml function name, So no args there .
I'd recommend you use a lua function that handles it instead
sections = {
  lualine_z = { function() return vim.fn.ObsessionStatus('Ob', 'X') end }
}

Do we consider this issue resolved ?

Thanks! Let me close this issue.


Reword id: any other users

Currently says Is anyone else adding their name to this form with you?
Reword to ask if there are any other defendants. Current plan for this form is only 1 person will file at a time. If multiple parties need impounding, go through interview multiple times.

Done


generate robots.txt to exclude old archives from being indexed

Fixes https://github.com/duckdb/duckdb-web/issues/1806
Might be worth updating our search index generation as well

I ran it locally and it this gives me the following robots.txt file:
Sitemap: https://duckdb.org/sitemap.xml

User-agent: *

Allow: /

I ran it locally and it this gives me the following robots.txt file:
Sitemap: https://duckdb.org/sitemap.xml

User-agent: *

Allow: /

Did you run it in archive exclude mode?

No, I ran it using scripts/serve.sh which generates the full website. I pushed a new version which produces this locally:
Sitemap: https://duckdb.org/sitemap.xml

User-agent: *

Disallow: /docs/archive/0.9.1
Disallow: /docs/archive/0.9.0
Disallow: /docs/archive/0.8.1
Disallow: /docs/archive/0.7.1
Disallow: /docs/archive/0.6.1
Disallow: /docs/archive/0.5.1
Disallow: /docs/archive/0.4.0
Allow: /

No, I ran it using scripts/serve.sh which generates the full website. I pushed a new version which produces this locally:
Sitemap: https://duckdb.org/sitemap.xml

User-agent: *

Disallow: /docs/archive/0.9.1
Disallow: /docs/archive/0.9.0
Disallow: /docs/archive/0.8.1
Disallow: /docs/archive/0.7.1
Disallow: /docs/archive/0.6.1
Disallow: /docs/archive/0.5.1
Disallow: /docs/archive/0.4.0
Allow: /

Yep, looks good now - might have to tweak it further (maybe test it with some Google tooling), but let's see how it goes?


Apple UIWebView deprecated and the library is still using Twitter 3.0.2

Apple has started rejecting new apps that uses UIWebView
Date: Mon, May 4, 2020
ITMS-90809: Deprecated API Usage - New apps that use UIWebView are no longer accepted. Instead, use WKWebView for improved security and reliability. Learn more (https://developer.apple.com/documentation/uikit/uiwebview).

Any update on this issue?
Please share some solutions.


Core: Adding per-million support to assertions

When measuring the success rate in a Gatling test, the existing "percent" function is insufficient.  Most of my services require a maximum failure rate of one per thousand.
This pull request extends the "percent" concept with a per-million extension.  For my purposes, a success rate of 999000 (or a failure rate of 1000) is sufficient.  I believe that one per million is probably enough for almost any Gatling use case.

@djasonpenney Thanks, that's a good idea, and better than #2700. I suspect you're working with @infomaven? ;-)

Thank you, yes, infomaven and I are coworkers. Best regards.
On Fri, May 1, 2015 at 10:32 AM, Stephane Landelle<EMAIL_ADDRESS>
wrote:

Merged #2702 https://github.com/gatling/gatling/pull/2702.
—
Reply to this email directly or view it on GitHub
https://github.com/gatling/gatling/pull/2702#event-295071266.


How do I change  RF using Kafka manager

I configured the kafka-manager. There is  no option to increase or decrease the  replication factor .
I tried to use command line tools, but it complains JMX port is already in use. Is there a way to update the Replication Factor ?
I am running kafka - <IP_ADDRESS>
and kafka-manager -1.3.x.

Hello guys,
I am just following up on this.  Is there any solution running kafka-manager to change the replication or any workaround is fine.

AFAICT replication factor is not something kafka allows you to change after topic creation.  I had to delete my topic and create new one with the desired replication factor.  So I don't think this is issue with kafka-manager but rather kafka itself?

I think it's possible to increase the replication for a topic after creation
https://cwiki.apache.org/confluence/display/KAFKA/Replication+tools
https://kafka.apache.org/081/ops.html
Increasing the replication factor of an existing partition is easy. Just specify the extra replicas in the custom reassignment json file and use it with the --execute option to increase the replication factor of the specified partitions.

There is a tool called kafkat. helped me figure out some problem with my kafka configuration. It allows for changes to RF after topic creation using scripts provided by kafka itself.
`kafkat 0.0.12: Simplified command-line administration for Kafka brokers
usage: kafkat [command] [options]
Here's a list of supported commands:
brokers                                                             Print available brokers from Zookeeper.
clean-indexes                                                       Delete untruncated Kafka log indexes from the filesystem.
controller                                                          Print the current controller.
drain  [--topic ] [--brokers ]                   Reassign partitions from a specific broker to destination brokers.
elect-leaders [topic]                                               Begin election of the preferred leaders.
partitions [topic]                                                  Print partitions by topic.
partitions [topic] --under-replicated                               Print partitions by topic (only under-replicated).
partitions [topic] --unavailable                                    Print partitions by topic (only unavailable).
reassign [topic] [--brokers ] [--replicas ]                 Begin reassignment of partitions.
resign-rewrite                                           Forcibly rewrite leaderships to exclude a broker.
resign-rewrite  --force                                  Same as above but proceed if there are no available ISRs.
set-replication-factor [topic] [--newrf ] [--brokers id[,id]]    Set the replication factor of
shutdown                                                 Gracefully remove leaderships from a broker (requires JMX).
topics                                                              Print all topics.
`

I have managed to increase RF on an existing topic.
Kafka-manager only seems to allow reassignment of partitions to existing brokers but you can still do it manually by creating your own json file.
In this example I will be changing the replication factor of 'testtopic' (10 partitions) to 2. Make sure you make adjustments for your needs.
Save this to /tmp/increase-rf.json:

{"version":1,"partitions":[{"topic":"testtopic","partition":3,"replicas":[0,1]},{"topic":"testtopic","partition":7,"replicas":[0,1]},{"topic":"testtopic","partition":4,"replicas":[0,1]},{"topic":"testtopic","partition":1,"replicas":[0,1]},{"topic":"testtopic","partition":2,"replicas":[0,1]},{"topic":"testtopic","partition":9,"replicas":[0,1]},{"topic":"testtopic","partition":8,"replicas":[0,1]},{"topic":"testtopic","partition":0,"replicas":[0,1]},{"topic":"testtopic","partition":5,"replicas":[0,1]},{"topic":"testtopic","partition":6,"replicas":[0,1]}]}

This file contains a partitions list with an object for each partition. Each object must contain the topic name, partition, and replicas (broker ids). In the snippet above I am making the data for topic 'testtopic' under partitions 0-9 be replicated to brokers id 0 and 1.
Running the following will make the changes, as well as giving you the old assignment json incase you need to rollback.
./kafka-reassign-partitions.sh --zookeeper <IP_ADDRESS> --reassignment-json-file /tmp/increase-rf.json --execute
Hopefully kafka-manager will support adding more replicas some time in the near future.

@chilly2go had a much easier solution than @jmwri. I'm glad I found out about kafkat.

@chilly2go what is your version of kafka? I don't see the tool in the bin directory and my version is 2.12-<IP_ADDRESS>

@chilly2go this way not working any more
bin/kafka-reassign-partitions.sh --zookeeper localhost:2181 --reassignment-json-file increase-replication-factor.json --verify

@massoudAfrashteh What it in increase-replication-factor.json?

I tried @jmwri 's solution and it worked, I am using 0.9 version of Kafka

@massoudAfrashteh I got the same error when my Partition reassignment data file had trailing commas in a list in the JSON file, once I fixed that the reassignment worked

Any updates on this? I'm happy to contribute if I can get some pointers on progress

2019-05-29 still not support

Generate Partition Assignments
Force Reassign Partitions

I tried two steps above and succeeded


Document how to backup and restore your application directory

This issue requests documenting how to backup and restore your application directory, as it's a frequently asked question.

https://github.com/boldsuck/haveno-reto-docs/blob/main/docs/backup_and_restoration.md
I would like to integrate the mkdocs workflow and then let's see what we can merge.

Can b closed, fixed by:
https://github.com/haveno-dex/haveno-docs/commit/c8571343c49f65dbbf34211d23b32c95387d3715


docs: typo 'they changes' -> 'the changes'

Sorry this goes to master only since it's about the wiki. We don't update the wiki anymore so I have to check internally.


Imagick error, psym not reading project-specific php.ini

I tried to start psym on a local symfony project, which has a dependency on imagick. However when I start psym I get the following error:
Imagine\Exception\NotSupportedException^ {#1626
  #message: "Imagick driver not installed"
  #code: 0
  #file: "./vendor/imagine/imagine/src/Imagick/DriverInfo.php"
  #line: 38
  trace: {
    ./vendor/imagine/imagine/src/Imagick/DriverInfo.php:38 { …}
    ./vendor/imagine/imagine/src/Imagick/DriverInfo.php:68 { …}
    ./vendor/imagine/imagine/src/Imagick/Imagine.php:52 { …}
    ./vendor/imagine/imagine/src/Imagick/Imagine.php:41 { …}
    ./var/cache/dev/ContainerQA6qkmU/getLiipImagine_ImagickService.php:30

I have imagick installed but not loaded in global php.ini, rather in the project's folder php.ini which is used when I run symfony console commands:
extension=amqp.so
extension=imagick.so

It seems that psym does not read this file tho, leading to the error above.
Thanks.

Are you able to run bin/console?

Yes I am able, but I get an error at the end of the output: Imagick driver not installed. I usually run symfony console tho.


Update Managed ACLs in Elasticsearch Indices directly

With this PR, the AclService no longer sends messages to update the Elasticsearch indices, but does this directly via method call. This affects the updating and deleting of ManagedACLs.
An Index Rebuild for this Service is actually not necessary since the fields are already updated by the SeriesService and AssetManager respectively. So the AclService is no longer called during an Index Rebuild.
See #2311, #2351 and #2354 for similar changes to other services.
Note: Showing the correct managed ACL currently seems to be broken in the Admin UI for both series and events. I tested this by taking a look at the Event object with a debugger... :(
Attention: This PR is based on #2354 and should not be merged before that one.

Rebased onto #2595. Ready for review again!

Since Pascal approved and Greg was fine with putting this into OC 10, I'm gonna go ahead and merge this.


Comparison Azure container based options

[Enter feedback here]
this page makes no reference to the ARO Azure Red Hat openshift service when comparing. To my knowledge ARO is a full SKU part of the microsoft catalogue (co engineered and joint SRE teams in support).
Tx team
Laurent

Document details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 04491fb9-6ca7-c21a-5372-a966c8ee72be
Version Independent ID: 97fa3784-c1b4-0097-1ec9-223edaa768bc
Content: Comparing Container Apps with other Azure container options
Content Source: articles/container-apps/compare-options.md
Service: container-apps
GitHub Login: @jeffhollan
Microsoft Alias: jehollan

Thank you for your feedback! We have assigned this issue to the author to review further and take the next course of action.

Added to docs. Thanks for the feedback - it should roll out in next 24 hours. #please-close


Add test for Test.Run()

Codecov Report

Merging #58 (4d7f8a4) into main (9810551) will increase coverage by 3.16%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main      #58      +/-   ##
==========================================
+ Coverage   80.03%   83.20%   +3.16%
==========================================
  Files          21       21
  Lines        1042     1042
==========================================
+ Hits          834      867      +33
+ Misses        174      136      -38
- Partials       34       39       +5

Impacted Files
Coverage Δ

internal/model/string_expr.go
85.48% <0.00%> (+3.22%)
:arrow_up:

internal/model/test.go
73.33% <0.00%> (+51.66%)
:arrow_up:

Continue to review full report at Codecov.

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


The Crafter can loose buckets on save/load

If the Crafter has ingredients to perform a craft, and if the output slot of the Crafter is full including an item and empty bucket, when you save/quit/load the game the Crafter seems to do another craft cycle which destroys the empty bucket from the previous cycle.  Sorry, that's probably not well written, so here is an easy way to reproduce the error using the Rain Muffler recipe from Extra Utilities, since it is a simple recipe.  I verified the error with several other recipes.

In creative, place a Crafter next to a Creative Capacitor Bank
Get a couple of stacks of wool, and several full water buckets in you inventory
Open the Crafter and "program" the recipe on the left side.  It's a water bucket in the middle surrounded by eight wool.
Now put one water bucket and a couple of stacks of wool on the right ingredients side of the Crafter.
After a second or so, the water bucket and eight wool disappear, and a Rain Muffler appears in the finished product slot.  Don't pick it up yet!
Place another water bucket in the center slot of the ingredients grid.  Nothing happens because the Crafter if waiting for you to take the Rain Muffler and empty bucket from the product slot.  Don't pick them up yet!
Close the Crafter interface, Save and Quit, then reload the game.
Open the Crafter interface.  Now there are two Rain Mufflers in the product slot.  Go ahead and pick them up now.  One empty bucket will appear in the product slot.  Take it too.  That's all you get.  One bucket is missing now.

If you have a conduit feeding water buckets into the Crafter like I had you will loose a bucket every time you save/load the game.
Sorry for the wall of text.

Yes, the containerItems list which stores the "overflow" is not saved.

OK, that makes sense.  I'll have to redesign my Rube Goldberg assembly line to account for this.
Hmm.  Maybe I can combine this with issue  #2541 to break even on buckets.  :-)

@MatthiasMann would you consider this a bug? I would...


fossid-webapp: Fix regression in response deserialization

This bug addresses a regression introduced by https://github.com/oss-review-toolkit/ort/pull/4045.
The FossID get_all_scans operation has a bug and returns an array if only one scan is returned, otherwise a map.
We have to handle this case, plus the one the other PR was dealing with i.e. handling data:false when there is no result.
The result is a new Jackson serializer that handles all these cases.
This commit also contains a new test exhibiting the bug.
Signed-off-by: Nicolas Nobelis<EMAIL_ADDRESS>

There seems to be a compile error @nnobelis.

There seems to be a compile error @nnobelis.

Fixed thanks.


Bug: sometimes files are exported with wrong extension

Dear @RhetTbull I tested the --update option and works very well! But during the execution I receive some "WARNING" that I believe related to the export of some files. Even if I use the --verbose option in the log I don't find any errors. Is there any test that I can do to try to find out more precisely, what generates these errors? Thank you!

Originally posted by @NiccoStar86 in https://github.com/RhetTbull/osxphotos/issues/100#issuecomment-639812627

@NiccoStar86 I've pushed a new version, 0.29.11.  This fixes the '.tif' to '.tiff' warnings and adds additional details to the warning for the other files.  If you re-run the same command that would be helpful.  Also, there's a new --dry-run option which causes osxphotos to not actually export any photos so you can try that with a new destination directory which will cause a re-export of your entire database.  But, since you used '--dry-run`, no actual photos will be copied though you'll see any warnings that are generated.

Hi @RhetTbull I tested again the export with the version 0.29.13 and I received only this warning:

I searched for the file stored in the originals folder and I found it, with .png extension:

I searched for the original_filename in Photos and I found it, with .JPG extension:

How is it possible that a photo with .JPG is linked to a file with .png?? :) ... I could try to backup the photo, delete it from Photos, and import again, then launch again the procedure, and check the result if this can help you. Maybe it's just a sporadic case, if we consider that I exported 44614 photos without problems ... Let me know :)

Hi @RhetTbull attached the result of the command! Thank you
debug.txt

@RhetTbull I saw that already in Photos there is something of strange ...

If after a "quick" check you don't find an explanation, I can try to delete and import the image again and see the result. I don't want to waste your time on a single photo! :)

@NiccoStar86 Thanks for the debug data -- it clearly shows that Photos thinks this is a PNG that was imported as IMG_4745.JPG just as your screenshot shows.  For example, the UTI is set to PNG: 'UTI': 'public.png'  I suggest you try to export the image from Photos (select photo then File | Export Unmodified original for 1 Photo) then in the Terminal, do
file IMG_4754.JPG (assuming that's what Photos names it) -- it will either say something like:
IMG_4754.JPG: JPEG image data, Exif standard: [TIFF image data, little-endian, direntries=12, manufacturer=NIKON CORPORATION, model=NIKON D5300, orientation=upper-left, xresolution=188, yresolution=196, resolutionunit=2, software=Ver.1.00 , datetime=2019:12:03 18:45:01], baseline, precision 8, 6000x4000, components 3
or
IMG_4754.JPG: PNG image data, 1536 x 2048, 8-bit/color RGB, non-interlaced
If the latter, it's really a PNG image (just as osxphotos thought it was) but has a wrong name.

@RhetTbull I think something went wrong during the first import of the file, because by exporting the image as "original - unmodified" the saved file is ".png" ...

@NiccoStar86 I think you're right this was some sort of corrupted import.  I tried to replicate this for testing by renaming a PNG to jpeg then importing but I was not able to get the behavior you reported.  Photos added the image as a jpeg, set the UTI to jpeg, and when exported, named the photo .jpeg.  However, the image was clearly a PNG when inspected.  It seems the code in Photos that handles the database looks only at file extension and it is independent of the code that displays photos which is definitely reading the photo type from the actual file independent of the extension.  I'm going to close this issue but definitely let me know if you see more problems like this.

@RhetTbull I totally agree with you. I deleted and re-imported the exported photo in Photos, then I execute again the osxphotos with --update without any error!

... and the photo was correctly exported, with the right extension.

You can close this issue, and thank you!


emacs ctrl-comma 响应到ctrl-l

Windows Terminal version
1.15.2874.0
Windows build number
19044。2130
Other Software
wsl2 linux version :Ubuntu 22.04.1 LTS
emacs : GNU Emacs 27.1
Steps to reproduce
install emacs in wsl2 and press ctrl-comma
Expected Behavior
ctrl-comma replay ctrl-comma
Actual Behavior
ctrl-comma replay ctrl-l

Thanks for the report! We think we have an issue that's already tracking this.
/dup #3483


runtime: Channel blocks with odd len

I am pushing few messages via channel from C library (code is here https://bitbucket.org/svidyuk/lbmgo)
After processing 1-100 messages(tried with GOGC=off as well) I see that incoming channel(https://bitbucket.org/svidyuk/lbmgo/src/a9618e6ee1cd94a5237b12d2a1043408562c8f32/lbm.go?at=master&fileviewer=file-view-default#lbm.go-28) length jumps to very large number<PHONE_NUMBER>76.
At his stage all following pushes of messages block indefinitely and no new incoming data is processed.
This is the case for both 1.4.2 and 1.5.0
Address of the incoming channel is always  the same.
Simple program that I use:
var bboChan chan *lbm.Message
var receiver *lbm.WildcardReceiver

func listenBBO() {
  for {
    msg := <-bboChan
    if msg.MsgType == lbm.MSG_DATA {
      glog.Infoln("message", msg)
    }
  }

}
func subscribeBBO() {
  glog.Infoln("Configuring LBM component")
  err := lbm.Config("test.xml")
  if err != nil {
    glog.Infoln("Failed to configure subscription. Using defaults", err)
  }
  glog.Infoln("Setting up new context")
  ctx, err := lbm.NewContext()
  if err != nil {
    glog.Infoln("Failed to create context", err)
    return
  }
  bboChan = make(chan *lbm.Message, 1000)
  receiver, err = ctx.NewWildcardReceiver("/test/.*", bboChan)
  if err != nil {
    glog.Infoln("Failed to subscribe to bbo")
    return
  }
  go listenBBO()
}

Stack trace once len(incoming) is very large looks like:
panic: test

goroutine 17 [running, locked to thread]:
bitbucket.org/svidyuk/lbmgo.lbm_receiver_callback(0x0, 0x7f61fc0d9270, 0xc8200be028, 0x0)
        /home/sergey/go/src/bitbucket.org/svidyuk/lbmgo/lbm.go:39 +0x3b6

goroutine 1 [IO wait]:
net.runtime_pollWait(0x7f621aba5d78, 0x72, 0xc820014190)
        /usr/lib/golang/src/runtime/netpoll.go:157 +0x60
net.(*pollDesc).Wait(0xc8201da450, 0x72, 0x0, 0x0)
        /usr/lib/golang/src/net/fd_poll_runtime.go:73 +0x3a
net.(*pollDesc).WaitRead(0xc8201da450, 0x0, 0x0)
        /usr/lib/golang/src/net/fd_poll_runtime.go:78 +0x36
net.(*netFD).accept(0xc8201da3f0, 0x0, 0x7f6218112430, 0xc8200bb240)
        /usr/lib/golang/src/net/fd_unix.go:408 +0x27c
net.(*TCPListener).AcceptTCP(0xc8200be078, 0xc8200e5bd8, 0x0, 0x0)
        /usr/lib/golang/src/net/tcpsock_posix.go:254 +0x4d
net/http.tcpKeepAliveListener.Accept(0xc8200be078, 0x0, 0x0, 0x0, 0x0)
        /usr/lib/golang/src/net/http/server.go:2135 +0x41
net/http.(*Server).Serve(0xc8200b82a0, 0x7f62181123f8, 0xc8200be078, 0x0, 0x0)
        /usr/lib/golang/src/net/http/server.go:1887 +0xb3
net/http.(*Server).ListenAndServe(0xc8200b82a0, 0x0, 0x0)
        /usr/lib/golang/src/net/http/server.go:1877 +0x136
net/http.ListenAndServe(0xc820104670, 0x6, 0x0, 0x0, 0x0, 0x0)
        /usr/lib/golang/src/net/http/server.go:1967 +0x8f
main.main()
        /home/sergey/go/src/posmanager/posmanager.go:358 +0x9e7

goroutine 5 [chan receive]:
github.com/golang/glog.(*loggingT).flushDaemon(0xc945a0)
        /home/sergey/go/src/github.com/golang/glog/glog.go:879 +0x67
created by github.com/golang/glog.init.1
        /home/sergey/go/src/github.com/golang/glog/glog.go:410 +0x297

goroutine 6 [syscall]:
os/signal.loop()
        /usr/lib/golang/src/os/signal/signal_unix.go:22 +0x18
created by os/signal.init.1
        /usr/lib/golang/src/os/signal/signal_unix.go:28 +0x37

goroutine 9 [chan receive]:
database/sql.(*DB).connectionOpener(0xc820017360)
        /usr/lib/golang/src/database/sql/sql.go:634 +0x45
created by database/sql.Open
        /usr/lib/golang/src/database/sql/sql.go:481 +0x336

goroutine 11 [IO wait]:
net.runtime_pollWait(0x7f621aba5ef8, 0x72, 0xc820014190)
        /usr/lib/golang/src/runtime/netpoll.go:157 +0x60
net.(*pollDesc).Wait(0xc820102e60, 0x72, 0x0, 0x0)
        /usr/lib/golang/src/net/fd_poll_runtime.go:73 +0x3a
net.(*pollDesc).WaitRead(0xc820102e60, 0x0, 0x0)
        /usr/lib/golang/src/net/fd_poll_runtime.go:78 +0x36
net.(*netFD).Read(0xc820102e00, 0xc820178000, 0x1000, 0x1000, 0x0, 0x7f621aba0050, 0xc820014190)
        /usr/lib/golang/src/net/fd_unix.go:232 +0x23a
net.(*conn).Read(0xc8200580b0, 0xc820178000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
        /usr/lib/golang/src/net/net.go:172 +0xe4
bufio.(*Reader).fill(0xc820022840)
        /usr/lib/golang/src/bufio/bufio.go:97 +0x1e9
bufio.(*Reader).Read(0xc820022840, 0xc8201d8bf0, 0x8, 0x8, 0x75bd20, 0x0, 0x0)
        /usr/lib/golang/src/bufio/bufio.go:207 +0x260
io.ReadAtLeast(0x7f621814e080, 0xc820022840, 0xc8201d8bf0, 0x8, 0x8, 0x8, 0x0, 0x0, 0x0)
        /usr/lib/golang/src/io/io.go:298 +0xe6
io.ReadFull(0x7f621814e080, 0xc820022840, 0xc8201d8bf0, 0x8, 0x8, 0x8, 0x0, 0x0)
        /usr/lib/golang/src/io/io.go:316 +0x62
encoding/binary.Read(0x7f621814e080, 0xc820022840, 0x7f621814e028, 0xcb96b0, 0x7e1120, 0xc8201d8b90, 0x0, 0x0)
        /usr/lib/golang/src/encoding/binary/binary.go:216 +0x1336
bitbucket.org/svidyuk/kdbgo.Decode(0xc820022840, 0x0, 0xc8201bdc18, 0x0, 0x0)
        /home/sergey/go/src/bitbucket.org/svidyuk/kdbgo/decode.go:128 +0x131
bitbucket.org/svidyuk/kdbgo.(*KDBConn).ReadMessage(0xc82000b140, 0x2, 0x2, 0x0, 0x0)
        /home/sergey/go/src/bitbucket.org/svidyuk/kdbgo/kdb.go:100 +0x33
main.connectKDB.func1(0xc82000b140, 0xc820017360)
        /home/sergey/go/src/posmanager/posmanager.go:109 +0xb66
created by main.connectKDB
        /home/sergey/go/src/posmanager/posmanager.go:138 +0x329

goroutine 19 [chan receive]:
main.listenBBO()
        /home/sergey/go/src/posmanager/lbm.go:19 +0x1e3
created by main.subscribeBBO
        /home/sergey/go/src/posmanager/lbm.go:58 +0x6b4

goroutine 34 [syscall, locked to thread]:
runtime.goexit()
        /usr/lib/golang/src/runtime/asm_amd64.s:1696 +0x1

I don't see any calls to len in your sample code.
It sounds like your program calls C code.  The problem is almost certainly memory corruption caused by the C code.  You should also run your program under the race detector, to make sure that is not the problem.
If there is a problem in Go, then in order to fix it we will need to see a complete test case.

If I print len(incoming) before this line, I get huge number - https://bitbucket.org/svidyuk/lbmgo/src/a9618e6ee1cd94a5237b12d2a1043408562c8f32/lbm.go?at=master&fileviewer=file-view-default#lbm.go-35
I will try to run it with race detector and report back. Should I push pointers or entire messages to incoming chan?

You are passing pointers to C in a way that is most likely unsafe.  See issue #12416 .
In particular, what are you doing to ensure that the incoming channel is not garbage collected?

i have it as global in a sample above
var bboChan chan *lbm.Message

I ran it with race detector, but still end up with len(incoming) =<PHONE_NUMBER>92

On 1 October 2015 at 21:27, Sergey Vidyuk<EMAIL_ADDRESS>wrote:

I ran it with race detector, but still end up with len(incoming) =
859530690592

That's almost certainly a heap pointer, fwiw.

fmt.Println(incoming) gives consistently same address. I will try to put channels that i pass to C code into map instead of having global and see if it makes any difference

same result. I have dependency on external library. I can provide binary and some of source code if needed.
number that gets printed is 88 bytes further then address of the channel

This is pretty much what I would expect if the channel is getting garbage collected while the C code is holding on to the channel pointer.
As I said earlier, if there is a problem in Go, then in order to fix it we will need to see a complete test case.  So far I think it's very unlikely that this is a problem in Go.

How could it be fixed? It there any non trivial example of callback code?
Channel is global variable and should not be garbage collected.
Additionally it still breaks with GOGC=off
On Thu, 1 Oct 2015 16:12 Ian Lance Taylor<EMAIL_ADDRESS>wrote:

This is pretty much what I would expect if the channel is getting garbage
collected while the C code is holding on to the channel pointer.
As I said earlier, if there is a problem in Go, then in order to fix it we
will need to see a complete test case. So far I think it's very unlikely
that this is a problem in Go.
—
Reply to this email directly or view it on GitHub
https://github.com/golang/go/issues/12797#issuecomment-144756921.

OK, so it is probably not GC.  Still, it sounds like the channel memory is getting corrupted.  If I had to solve this, I would probably run the program under the debugger, find the address of the length in the channel structure, set a watchpoint on that memory location, and see when it changes.
There are various examples of callbacks in the tree, for example in misc/cgo/test, but they are all fairly trivial.

func lbm_receiver_callback(rcv unsafe.Pointer, msg unsafe.Pointer, clientd unsafe.Pointer) int {
incoming := *(*chan *Message)(clientd)
fmt.Println(clientd, &incoming)
}

should i expect address of incoming and clientd to match? above prints different address for incoming each time.

In your code fragment, incoming is a new local variable.  Changing *clientd after the assignment will not affect incoming.  It would not make sense for &incoming to be the same as clientd.

Wrapping chan to struct before passing to C code allows resulting program to run for many minutes.
See change: https://bitbucket.org/svidyuk/lbmgo/commits/5060d1f97e80eac1a6d1ed03352ec9dd880c4fb2?at=master
Is it expected behaviour? I will do more testing tomorrow and see if error comes up again

This is working with the change specified in previous message. Should it be documented that you need to be careful when passing chan pointer to c code?

The only beneficial effect I see in your change is that putting the wrapper struct in a map ensures that it will not be garbage collected while executing C code.  I think if you do the same thing with the channel then your code will work without the wrapper struct.
However, none of this code will work if the proposal I've described in https://golang.org/issue/12416 is adopted.  That proposal will outlaw passing channel pointers to C at all.
Since you have your code working I'm going to close this issue.  Feel free to reopen if I misunderstand.


Need Python Examples!

Python Function Apps have been in GA since 2018. Please add Python examples to all Azure Function docs where other runtime code samples exist.
This document and this one are examples.
Thank you

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: eb440603-950a-c224-f6c9-222ca502d5a5
Version Independent ID: 0b5c4944-0327-91fc-2b0b-c19a1b873b64
Content: Configure TLS mutual authentication - Azure App Service
Content Source: articles/app-service/app-service-web-configure-tls-mutual-auth.md
Service: app-service
GitHub Login: @cephalin
Microsoft Alias: cephalin

@SeaDude Thanks for the feedback !  I have assigned this issue to content author to investigate and update the document as appropriate.

Prime example: https://docs.microsoft.com/en-us/azure/app-service/app-service-web-configure-tls-mutual-auth

We are planning to supply more python examples to our documentation gradually and we can add one for this doc. However, the main purpose of the sample in this doc is really to show you the access the X-ARR-ClientCert header. As the doc spells out clearly, what the customer does with the client cert after that is up to them. App Service doesn't do anything for TLS mutual auth beyond providing the client cert. In that sense, getting the header is just the same as getting any other header in the HTTP request in Python.
#please-close


change HOST in production build

i have changed the default PORT for production build like,
"scripts": {
  "start": "react-scripts start",
  "build": "react-scripts build",
  "deploy": "serve -p 8002 -s build"
}

can i change the HOST (localhost) some how ?, i need to do this for the production, not for the development.

you can change hosts file
mydomain.dev <IP_ADDRESS>

and later visit http://mydomain.dev:8002.
Question is unrelated to CRA itself, though


Trivial documentation fix: remove 'region' as arg for the CLI

The website still mentions region but it has been removed since 1.10.0 via 003c8892

@jnioche Thanks for catching this! Definitely makes sense to remove, so I'll merge this in 🚀


ui updates

ui updates

check it out on desktop, looks great too.

updated base branch to master from pwa; this PR was supposed to merged into pwa initially

When I said in #36 that I was going to add images to cache, I meant this pull request.

There were these new requests for these fonts, which make the authors page look bad when not present.

It's only a problem if the user never navigated to the authors page when online (since they are dynamically cached).
For now I am content to leave it like that


Support timed publishing?

According to this url https://support.google.com/googleplay/android-developer/answer/6334282?hl=en , is any open api google have to support timed publishing and trigger go live via api?

See https://developers.google.com/android-publisher which is supported by this client. I don't know if it explicitly supports timed publishing or not, but that's the only API I know of related to android publishing.


Error when using updateCurrentRoute

Hello! I'm trying to use updateCurrentRoute like this inside a component. I first got it from useRouter.
      updateCurrentRoute({
        query: { a: 'string' },
      });

But when called it gives an error. Please tell me how to use this correctly?

Hello!
I have same issue and error after using updateCurrentRoute from useRouter. We will investigate the reason and return with fix.
As a quick fix - use action to update current route without page update, here is documentation - https://tramvai.dev/docs/features/routing/links-and-navigation?_highlight=updatecurrentroute#route-update

Hello!
I have same issue and error after using updateCurrentRoute from useRouter. We will investigate the reason and return with fix.
As a quick fix - use action to update current route without page update, here is documentation - https://tramvai.dev/docs/features/routing/links-and-navigation?_highlight=updatecurrentroute#route-update

Hi, thanks for a quick fix) I need to update query only, so in my case i use useNavigate

@andryxxa93 Hello, can I ask you for complete code snippet with updateCurrentRoute?

@SuperOleg39 yes, if i don't use destucturization - it's works fine. Thanks!


Update lessons in number sorter project to better show how inputValues works

Describe the Issue
In step 7 of the project, campers create this inputValues array
 const inputValues = [
    ...document.getElementsByClassName("values-dropdown")
  ].map((dropdown) => Number(dropdown.value));

I think it would be more beneficial to show them the original string inputs and then walk them through converting it to numbers.
Here is my proposed plan:
updated step 7
This step should just focus on having campers use map to return dropdown.value
   const inputValues = [
    ...document.getElementsByClassName("values-dropdown")
  ].map((dropdown) => dropdown.value);

new step 8
This new step should have campers log out the inputValues so they can see for themselves that the values are strings and not numbers
 console.log(inputValues)

new step 9
For this new step, this is when they update the inputValues map method to use Number(). Have campers check the console again to see that we are no longer dealing with strings but now dealing with numbers
  const inputValues = [
    ...document.getElementsByClassName("values-dropdown")
  ].map((dropdown) => Number(dropdown.value));

new step 10
This step should be to just remove the console statement.
  console.log(inputValues)

Then the project resumes as normal with new step 10 which is just this step here
If you are new to adding steps, please read through the documentation here
https://contribute.freecodecamp.org/#/how-to-work-on-practice-projects?id=how-to-work-on-practice-projects
Affected Page
https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures-v8/learn-basic-algorithmic-thinking-by-building-a-number-sorter/step-7
Your code
see explanation above
Expected behavior
see explanation above
Screenshots
No response
System

Device: [e.g. iPhone 6, Laptop]
OS: [e.g. iOS 14, Windows 10, Ubuntu 20.04]
Browser: [e.g. Chrome, Safari]
Version: [e.g. 22]

Additional context
No response

When working on this, I realized that, adding the console.log(inputValues) inside the sortInputArray does not give me an output on the Console.

However, putting the inputValues out of the function seemed to give the desired output.

How should I approach this further?

@sanskriti2005
You don't need to move the inputValues and make it global. It can stay where it is at.
The sortArray is already being called when you click on the sort button
sortButton.addEventListener("click", sortInputArray);

In the directions for the new step 8, have them add the console and then have them test it by clicking on the sort button and opening the console. Then they will see the result.
Here is an example what the direction could say
To see the result for the `inputValues` array, log out the `inputValues` array to the console. Then click on the sort button and open up the console. You should see an array of strings like this:

```
[ '8', '2', '4', '1', '3' ]
```
In the next step, you will convert those strings into numbers.

Thank you for your help!!


”Pogana”, ”Bogești”, ”Cârjoani”, ”Măscurei”, ”Tomești” are listed in the drop-down menu

Description:
When user writes ”Pogana”, ”Bogești”, ”Cârjoani”, ”Măscurei”, ”Tomești” the locations appear in the drop-down menu next to the comune and the county which is a part according to the law.
Precondition:
The website is up an running.

Step 1
Write in the search bar "Pogana"

Expected results
The location appears in the drop-down menu as "Sat Pogana, VASLUI (Pogana)".

Step 3
Write in the search bar "Bogești"

Expected results
The location appears in the drop-down menu as "Sat Bogești, VASLUI (Pogana)".

Step 4
Press "x" button.

Expected results
The location was deleted from the search bar.

Step 5
Write in the search bar "Cârjoani"

Expected results
The location appears in the drop-down menu as "Sat Cârjoani, VASLUI (Pogana)".

Step 6
Press "x" button.

Expected results
The location was deleted from the search bar.

Step 7
Write in the search bar "Măscurei"

Expected results
The location appears in the drop-down menu as "Sat Măscurei, VASLUI (Pogana)".

Step 8
Press "x" button.

Expected results
The location was deleted from the search bar.

Step 9
Write in the search bar "Tomești"

Expected results
The location appears in the drop-down menu as "Sat Tomești, VASLUI (Pogana)".


Android crashes with IllegalArgumentException

We are facing crashes on production on Android.
The issue appears  on App start
Error and stack trace:

The error thrown by the request method from 'NetworkHandlerImpl.kt' in exponea android-sdk.
The issues connected with okhttp packages for Android. This is related PR with an explanation.
Additional info:
"react-native-exponea-sdk": "1.0.0"
"react-native": "0.67.3"
I've followed the steps in the stack trace and realized that URL is broken in :

FlushManagerImpl.kt

Hi @tr3v3r thank you for your report. I'm just hoping to ask for value for that broken URL you mentioned, but do not send it if it 'critical info' for you. I would like to see what is bad in URL at all.
Back to problem. There is no catching of any technical exception according to broken URL or so. SDK is naively thinking of correct setup of baseUrl and project token (only dynamic part of URL that may cause problem). So there is no comprehensive check of configuration possibilities.
Please, am I in correct thinking of that problem? Is there some advise from you, what you would expect in this case? Thank you.

Closed due inactivity

@adam1929 We have static baseUrl. Our baseUrl is https://exponea-api.
Also I see that the crash appears not only on App start.
Sorry, I don't have any more information yet.


Use xyz coords

Fixes #1
Should I go after adjustments in tin and isolines first?

@rclark fantastic; this is much cleaner

Should I go after adjustments in tin and isolines first?

yes, let's publish all 3 at once to avoid hiccups

Closing - IETF draft makes non-altitude z-values illegal https://github.com/Turfjs/turf-planepoint/issues/1#issuecomment-225619479


Type Inconsistency for Frontend Installation

Report
I was hit with many typescript errors when attempting to run the service for the first time. The issue seemed to have been @types/react and @types/react-dom versions were conflicting. The issue was resolved by removing and re-installing those dependencies.
Environment

node version: 14.13.1
os: Mac

Hey @aguptamusic ! Can you please walk us through the process of resolving the conflicting versions. I am new to this.


implement e2e tests for FPGA plugin

implemented e2e tests for preprogrammed(af) and
orchestrated(region) plugin modes.
Fixes: #350

Looks good to me given the commented out leftovers are removed.

If you mean these 2 lines:
+       //fmw.PodClient().WaitForFinish(pod.ObjectMeta.Name, 60*time.Second)
+       //framework.RunKubectlOrDie("--namespace", fmw.Namespace.Name, "logs", pod.ObjectMeta.Name)

I left them on purpose. Sometimes it's useful to see the logs of failing container. LogFailedContainers doesn't do it for some reason.

Yes, these two lines. Could you please add comment there about the purpose? To discourage others from dropping it later. :)

@rojkov done

@mythi @kad should we remove travis-ci/pr tests or should we fix them?

@bart0sh I'll submit a PR to drop travis (I have other housekeeping items in the pipeline too)

@rojkov can you merge this PR please?


pythonPackages.stem: fix build with python 3.9

Motivation for this change
ZHF: #122042

https://github.com/torproject/stem/issues/56
https://github.com/archlinux/svntogit-community/commit/61a1a2bad04fe424823a87b114de7ba3b9186df8#diff-37538beb61ff63edebbf735dfcf39e5d732f49183d6beb097169d971875ca422

Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 123564 at 1a8549b5 run on x86_64-linux 1

10 packages built successfully:

electron-cash
nyx
onioncircuits
onionshare
onionshare-gui
prometheus-tor-exporter
python38Packages.stem
python39Packages.stem
qutebrowser
tests.trivial

1 suggestion:

warning: unclear-gpl
gpl3 is a deprecated license, please check if project uses gpl3Plus or gpl3Only and change meta.license accordingly.
Near pkgs/development/python-modules/stem/default.nix:29:5:
   |
29 |     license = licenses.gpl3;
   |     ^


bug: the alignment of some element labels is not correct

Is there an existing issue for this?

[X] I have searched the existing issues

Describe the bug
I have checked all the elements with all directions of labels but only these 5 elements seems to have not proper alignment:

Variable LED
Digital LED
RBG LED
Priority Encoder
Tunnel

Steps To Reproduce

go to https://circuitverse.org/simulator
drag any element within these 5
add labels and check for all direction
see error

Expected Behavior
The labels should be proper and visible in any direction
Device Information [optional]
- OS: MacOs
- Browser: Safari
- version: 17.1

Are you working on this issue?
Yes

@Prerna-0202 @Arnabdaz can you review this issue pls .

@niladrix719 as the pending triage has been removed, I have assigned you and you can raise the PR now.


Fix XEB error rate computation

does this mean that the value stored in record.fid is the decay constant in reality not fidility?

Yes


Healthcheck endpoint issues

Just setup the server and while attempting to verify I had my proxy and everything setup right using the /healthcheck endpoint, I found that, unless the server finds more than 100 entries in the devices table, the endpoint does not provide a response and the server panics with a message about there not being enough devices.
hishtory-hishtory-1  | 2022/11/16 04:35:15 http: panic serving <IP_ADDRESS>:38760: Suspiciously few devices!
hishtory-hishtory-1  | goroutine 131 [running]:
hishtory-hishtory-1  | net/http.(*conn).serve.func1()
hishtory-hishtory-1  |  /usr/local/go/src/net/http/server.go:1825 +0xbf
hishtory-hishtory-1  | panic({0xa406a0, 0xbbf770})
hishtory-hishtory-1  |  /usr/local/go/src/runtime/panic.go:844 +0x258
hishtory-hishtory-1  | main.healthCheckHandler({0xbc51d8, 0xc00200e0d8}, 0x415c45?)
hishtory-hishtory-1  |  /go/backend/server/server.go:352 +0x15f
hishtory-hishtory-1  | main.withLogging.func1({0xbc5418?, 0xc000734540}, 0xc000296600)
hishtory-hishtory-1  |  /go/backend/server/server.go:616 +0x111
hishtory-hishtory-1  | net/http.HandlerFunc.ServeHTTP(0x7f6b1c311318?, {0xbc5418?, 0xc000734540?}, 0x415c45?)
hishtory-hishtory-1  |  /usr/local/go/src/net/http/server.go:2084 +0x2f
hishtory-hishtory-1  | net/http.(*ServeMux).ServeHTTP(0x0?, {0xbc5418, 0xc000734540}, 0xc000296600)
hishtory-hishtory-1  |  /usr/local/go/src/net/http/server.go:2462 +0x149
hishtory-hishtory-1  | net/http.serverHandler.ServeHTTP({0xc0001e55c0?}, {0xbc5418, 0xc000734540}, 0xc000296600)
hishtory-hishtory-1  |  /usr/local/go/src/net/http/server.go:2916 +0x43b
hishtory-hishtory-1  | net/http.(*conn).serve(0xc0000c28c0, {0xbc5bc0, 0xc000314f00})
hishtory-hishtory-1  |  /usr/local/go/src/net/http/server.go:1966 +0x5d7
hishtory-hishtory-1  | created by net/http.(*Server).Serve
hishtory-hishtory-1  |  /usr/local/go/src/net/http/server.go:3071 +0x4db

Since this endpoint is typically used for checking the a service has started and is in a "healthy" state, it would probably be more useful if this endpoint simply checked that the db is connected and use that to determine the response(ok or failed) and make sure that a response to the incoming request is always given so that the client hitting the endpoint gets the correct status from the server.
loving the project so far, looking forward to diving in more!

Ah thank you for this feedback! I agree. :) Though I want to keep those checks for my own production instance, so I tweaked the code to only require this if the Host header is api.hishtory.dev.


Enh/codecov

Pushing codecov for symmetry_adapted_basis.

for the errors on nightly see https://github.com/JuliaLang/julia/issues/38422#issuecomment-757490528
It seems like it's a bug in julia, a temporary solution is to define Base.broadcastable(α::Cyclotomic) = Ref(α)

for the errors on nightly see https://github.com/JuliaLang/julia/issues/38422#issuecomment-757490528
It seems like it's a bug in julia, a temporary solution is to define Base.broadcastable(α::Cyclotomic) = Ref(α)

@tweisser you need to rebase this onto the head of enh/symmetry_adapted_basis

@tweisser you need to rebase this onto the head of enh/symmetry_adapted_basis

fixed by #15


Short identifiers issue

The warning short identifiers is throw on the following file<EMAIL_ADDRESS>It should not throw for this file. I guess the current analysis don't take in account class name and methods but I think it should.

Opened https://github.com/NodeSecure/js-x-ray/pull/69 that should fixes it


Force better decoupling of manager components

The istio/manager repo includes many components that share code. This is advantageous for code-reuse but introduces possibility of unnecessary tight coupling between components at the wrong abstraction level. It would be good to enforce stricter decoupling between these components and make the API integration points more explicit.
One solution is to use bazel's visibility capability. To ease into this change we can enable --nocheck-visibility in tools/bazel.rc and start updating package's BUILD visibility. This will likely require some refactoring to eliminate visibility violations. We can remove --nocheck-visibility once we are confident with this refactoring.
The suggestion is to start with decoupling egress from platform/kube.

Issue moved to istio/istio #1434 via ZenHub


因证书过期 导致请求失败

Certificate Error
There are issues with the site's certificate chain (net::ERR_CERT_DATE_INVALID).

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/35620727-?utm_campaign=plugin&utm_content=tracker%2F294423&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F294423&utm_medium=issues&utm_source=github).

感谢！已经修复。


subsite catalogue home is not aligned with subsite

We have a scenario where CATALOG_HOME_REDIRECTS_TO is not set.
This means that the subsite can have bot home page and catalogue page.
The catalogue page works as expected and the subsite is mantained.
From the home page, if i click on "Filter" from the subsite page, the page is redirected to the root website page
Example:

This is happening because the client use an hard-coded catalogue URL.
I suggest to add in the _geonode_config.html  the possibility to define the catalogue URL (like we do the with the siteUrl) or the client should use that as a value for the catalogue.
@dsuren1 @giohappy

This is happening because the client use an hard-coded catalogue URL.

As of now, this path is configurable but only as plugin configuration using the cfg.filterPagePath.

Change required on client side

Update templates where catalogue path is pre-configured
Update ResourceGrid plugin configurations to support CATALOG_PAGE_PATH and menu items link
Update redirection urls wherever applicable (i.e epics and in components)

Upstream issue client

config merged in subsite, now it works as expected


ui: fix add management ip range form

Description
Add management IP range form shows the same pod multiple times when the pod has multiple IP ranges.
This PR fixes the behaviour.

Types of changes

[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] New feature (non-breaking change which adds functionality)
[x] Bug fix (non-breaking change which fixes an issue)
[ ] Enhancement (improves an existing feature and functionality)
[ ] Cleanup (Code refactoring and cleanup, that may add test cases)

Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale

[ ] Major
[ ] Minor

Bug Severity

[ ] BLOCKER
[ ] Critical
[ ] Major
[ ] Minor
[ ] Trivial

Screenshots (if appropriate):
Before:

After:

How Has This Been Tested?

@blueorangutan ui

@shwstppr a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress.

UI build: :heavy_check_mark:
Live QA URL: http://qa.cloudstack.cloud:8080/client/pr/5427 (SL-JID-621)

@blueorangutan ui

@blueorangutan ui

@shwstppr a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress.

UI build: :heavy_check_mark:
Live QA URL: http://qa.cloudstack.cloud:8080/client/pr/5427 (SL-JID-631)

Tested LGTM


prune gives OS privilege error

Verify canary release

[X] I verified that the issue exists in the latest Turborepo canary release.

Link to code that reproduces this issue
https://github.com/vercel/turbo/tree/main/examples/basic
What package manager are you using / does the bug impact?
pnpm
What operating system are you using?
Windows
Which canary version will you have in your reproduction?
2.0.12-canary.1
Describe the Bug
Trying to prune the monorepo for any package gives a OS error 1314 on Windows 11: "A required privilege is not held by the client".
Expected Behavior
The repo to be pruned to the desired package, as described in the docs for the prune command.
To Reproduce
Just run turbo prune <package_name> on the repo's root.
Additional context
No response

Can you provide a little more information about your setup? This error is highly specific to user permissions and we don't do anything that weird in prune. Can you double check that you're able to do the following in the out directory that prune creates:

Create a directory (md in CMD prompt)
Create a file
Create file symlinks (mklink in CMD prompt)
Create directory symlinks (mklink /d in CMD prompt)

Closing this as there hasn't been a response on the issue. Please reopen if you're still experiencing this!


Fix flow

I generated a project from master and flow seems to be broken. There is no .flowconfig file.

Fixed in bc1d9261bbe8fb959b13c1aa8b28c9c4d39997b5 and 8ad890dcff40833d09116a0592b3b098712ed26c

@benja-M-1 i wouldn't close this issue, flow runs but the typings are failing. I have 60+ errors when generating a project 👎

Done in #193


Build failed on vs2019

I have nana 1.7.2 on Windows 10 pro and building nanapro on the latest vs2019 fails with the following 4 errors:

Error	C2440	'return': cannot convert from 'std::basic_string<char8_t,std::char_traits<char8_t>,std::allocator<char8_t>>' to 'std::basic_string<char,std::char_traits,std::allocator>' (compiling source file ....\source\filesystem\filesystem.cpp)	nana	D:\nanapro\downloads\nana\include\nana\filesystem\filesystem_ext.hpp	44
Error	C2679	binary '=': no operator found which takes a right-hand operand of type 'std::basic_string<char8_t,std::char_traits<char8_t>,std::allocator<char8_t>>' (or there is no acceptable conversion)	nana	D:\nanapro\downloads\nana\source\gui\msgbox.cpp	1250
Error	C2440	'return': cannot convert from 'std::basic_string<char8_t,std::char_traits<char8_t>,std::allocator<char8_t>>' to 'std::basic_string<char,std::char_traits,std::allocator>' (compiling source file ....\source\paint\image.cpp)	nana	D:\nanapro\downloads\nana\include\nana\filesystem\filesystem_ext.hpp	44
Error	C2440	'return': cannot convert from 'std::basic_string<char8_t,std::char_traits<char8_t>,std::allocator<char8_t>>' to 'std::basic_string<char,std::char_traits,std::allocator>' (compiling source file ....\source\gui\filebox.cpp)	nana	D:\nanapro\downloads\nana\include\nana\filesystem\filesystem_ext.hpp	44

when I try to comment out the lines with the errors the build goes well and finishes. But then I cant get to build a couple of samples which throw an error at the filesystem. Kindly advise on the way forward?

We have fixed a number of bugs and a release is spectated:  use - https://github.com/cnjinhao/nana/tree/develop
and make sure your sln/project have std:c++17 or latest set.

thanks for the quick response. Off course I am on c++17. There was some time i was using nana but i didnt have any problem building. And i never thought of using the develop branch till now.

You should update the repository download, which you link to in your tutorial blog, as soon as possible. I could only get the VS2019 build solution to compile by

setting the language to std:c++17 (c++latest did not work because of std::generic_string_uint8)
you named a member variable with the keyword 'module', renaming worked. Defined in File categorize.cpp, class trigger::scheme, line 762.

NOTE: The spectate release mentioned by @qPCR4vir builds flawlessly. I am going to use that one now.


Fs 1190 status fix

https://digital.dclg.gov.uk/jira/browse/FS-1190

Can you add a screenshot where we are making a visual change like this?

@gidsg I couldn't figure out how to nav to the page, i was advised to push anyway


Inference script that inputs mha slices

Hi Reginabarzilay group,
Firstly, thank you for making your code publically available! I would find it very useful to have an implementation of your Sybil code that inputs .mha slices (as well as .dcm slices). I have an inference script that inputs mha slices and I also made a few updates in serie.py to load them with SimpleITK. However when I compared the risk scores that I obtained with loading the .dcm slices with the risk scores from loading the .mha slices for the same case, I did not get the same risk scores. Perhaps you can suggest how to fix my implementation to load the mha slices?
Thank you!
Fennie van der Graaf

Hi Fennie,
Thanks for following up and making the PR! We had some recent updates to the repo, so many of the "changed" files in your commit are probably from an older version. It looks like the main changes are in:

inference_fennie.py
sybil/loaders/image_loaders.py

Am I missing something else that's important?
In terms of figuring out the discrepancy in risk scores, do you have the same CT in both formats (DICOM/MHA or PNG/MHA)? Also, do you have a test sample that you can share so that we might also take a closer look?

Hi,
Thanks for your quick reaction. Yes, The main changes were performed in inference_fennie.py, image_loaders.py, and in serie.py.
I am not sure yet if I can share a test case, I am waiting on my supervisor to suggest how to go about that, but for now you can replicate my inputs using a NLST mha file and the following 2 scripts:

In general, to run Sybil, I first convert a 3D mha into dcm slices, to do so I use the mha2dicom.py script I commited.
To try the mha implementation, I convert a 3D mha into mha slices using the unstackandordermha.py script I commited.
Where I think the issue is; in order to avoid the below error, I needed to make the pixel spacing 3D: so it includes [pixel spacing x, pixel spacing y, slice thickness] and then gets added to the slice thickness to get the voxel spacing, which resulted in [pixel spacing x, pixel spacing y, slice thickness, slice thickness], otherwise it considered voxel spacing to be the wrong shape and so None.
So basically I did not understand what needed to be in the third dimension of the voxel spacing to get the (4,4) shape.

Traceback (most recent call last):
File "/data/bodyct/experiments/Sybil_Fennie/bodyct-sybil-lung-cancer-risk/inference_fennie.py", line 127, in
scores = model.predict([serie])
File "/data/bodyct/experiments/Sybil_Fennie/bodyct-sybil-lung-cancer-risk/sybil/model.py", line 286, in predict
pred = self._predict(sybil, series)
File "/data/bodyct/experiments/Sybil_Fennie/bodyct-sybil-lung-cancer-risk/sybil/model.py", line 259, in _predict
volume = serie.get_volume()
File "/data/bodyct/experiments/Sybil_Fennie/bodyct-sybil-lung-cancer-risk/sybil/serie.py", line 163, in get_volume
x = tio.ScalarImage(
File "/usr/local/lib/python3.9/site-packages/torchio/data/image.py", line 815, in init
super().init(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/torchio/data/image.py", line 158, in init
affine = self._parse_affine(affine)
File "/usr/local/lib/python3.9/site-packages/torchio/data/image.py", line 514, in _parse_affine
raise ValueError(f'Affine shape must be (4, 4), not {bad_shape}')
ValueError: Affine shape must be (4, 4), not (3, 3)
Let me know if you need further clarification! Thanks!
Fennie


t_cose_crypto_pub_key_sign() could be misleading

One can assume (misunderstand) that actually the public key is used to sign the data and not the private key.
Suggestions:

t_cose_crypto_priv_key_sign().  It can be a good pair with t_cose_crypto_pub_key_verify()
t_cose_crypto_sign().   An might t_cose_crypto_verify().

Agreed: this is a very confusing name. I would even go one step further and suggest t_cose_sign() and t_cose_verify(), and assume the reader knows crypto is used under the hood :-)

Fixed by #64


Uncaught TypeError: tinymce.DOM.uniqueId is not a function

Hi,
I just added the Grid-Editor you my test (WordPress) project, it shows up but when I click some text I get :
Uncaught TypeError: tinymce.DOM.uniqueId is not a function

Standalone its working of course , so its not an issue with your PlugIn, but it would be useful for me if you have encountered that error in some combination previously.

I tried removing :
 content_types: ['tinymce'],

But I still get that error? So TinyMCE will always get hooked to grid-editor even if I dont add :
content_types: ['tinymce'],
?

Ok some new insights !
Its working with the following Versions:
    <script src="https://tinymce.cachefly.net/4.0/tinymce.min.js"></script>
    <script src="https://tinymce.cachefly.net/4.0/jquery.tinymce.min.js"></script>

but not with the actual versions on bower:
 "version": "4.2.6",

Thanks for looking into this, I will check into the bower the depenceny / update to work with the newest tinymce. For the record:

TinyMCE version 4.2.6 is not working, but 4.0 is?
What browser are you using?

Those are my inspections so far yes.

How would I need to start to add http://summernote.org/#/ instead of TinyMCE ? Please?

You should start by using the gridEditor without the TinyMCE plugin included from the src directory
Then you should write a plugin that works similarly to jquery.grideditor.tinymce.js
If you do so, I would be very interested in a pull request that adds the new plugin. :)

Ok i am on it :)
I am a lil' bit confused (no xp in that) by the following:
https://github.com/Frontwise/grid-editor/blob/master/src/js/jquery.grideditor.tinymce.js#L22
              var configuration = $.extend(
                        (settings.tinymce && settings.tinymce.config ? settings.tinymce.config : {}),
                        {
                            inline: true,
                            oninit: function(editor) {
                                try {
                                    settings.tinymce.config.oninit(editor);
                                } catch(e) {}
                                $('#'+editor.settings.id).focus();
                            }
                        }
                    );
                    var tiny = contentArea.tinymce(configuration);

Do I understand it correct that you do the following:
Check if settings.tinymce and settings.tinymce.config is present
If not just extend the configuration with an a empty object
But where is this oninit function coming from?
And where does the passed variable editor comes from ?

Here we go :
https://dl.dropboxusercontent.com/u/75681914/code/grid-editor/example/summernote.html

NO BUG !
I got it working with the latest download version :
TinyMCE 4.2.7 jQuery package
Even the Integration of elFinder is working !
AwESoME!

I will do further tests in conjunction with Wordpress, probably the error was related to a conflikt with the TinyMCE version of Wordpress?!

Well, you do need the tinyMCE jquery integration plugin. This is written in the readme as well:
If you want to use the tincyMCE integration, load tinyMCE en tinyMCE jQuery plugin as well.
So that may have been the problem with your previous tinymce 4.2.6 as well. :) I will upgrade the bower file to properly reflect this.

Yeah I have used that integration plug.

->>> http://<IP_ADDRESS>/dev/grid-editor/example/tinymce.html :dancer:

As you can see I've updated the plugin to tinyMCE 4.2.7, and as you've already concluded, it works :-)
https://transfer.frontwise.com/frontwise/grid-editor/example/
I see that the summernote plugin example you made is now offline, would you consider making a pull request for the integration plugin, so that others can benefit from your work?

I haven't made a pull request yet because the Summenote version on the cdn (buggy) is not up-to date . I thought it was no good idea that we would need to include summernote. What do you think?

How would I make a PullRequest for just that file :
https://github.com/daslicht/grid-editor/blob/master/src/js/jquery.grideditor.summernote.js

Just created a Pull Request