Log unknown errors

In this case I was hitting this error because I was returning the empty string
for a HTTP response, instead of returning a decodable JSON object and it was
difficult to track down why this was happening. Let's log an error message if
we hit an unknown error so we can see why we are hitting this error case.
Also fixes the docstring for queued_jobs.Get.

(I am making requests to a PHP server which was recording success before client.Job.Post returned! You can't do things in the background in PHP)

looks good to me 👍


Error: Inconsistent number of annotations

Hi,
I am getting this error while trying out the custom_parser tutorial on my own dataset.
imageid->0 has an inconsistent number of annotations, all annotations must have the same length.
Number of annotations: {'labels': 16, 'bboxes': 1}

What does number of annotations mean?
I have converted my dataset from COCO JSON format to WheatParser CSV format.
Only change made is I added a label column, and modified WheatParser class like so:
    def labels(self, o) -> List[str]:
        return o.label

Please help me in understanding how to resolve this error.
Thanks!

The error means that for the same image, your parser is returning 16 labels but only 1 bounding box.
Probably there are some bounding boxes on your image that you're missing to parse.

Also, keep in mind that labels should return a list of ints, from the code provided it seems you're returning a str.
That is most likely the error, consider creating a dictionary that maps your strings to ints (starting from 1)

Thanks!
I changed my labels to ints, but from my JSON file my categories actually map beginning from 0. The id:0 belongs to a class that equates to 'Background', no objects to detect, no bboxes.
Right now, this is the error I see:
----> 3 train_records, valid_records = parser.parse(data_splitter)

2 frames
/usr/local/lib/python3.6/dist-packages/mantisshrimp/parsers/parser.py in parse(self, data_splitter, idmap, show_pbar)
     72     ) -> List[List[RecordType]]:
     73         data_splitter = data_splitter or SingleSplitSplitter()
---> 74         records = self.parse_dicted(show_pbar=show_pbar, idmap=idmap)
     75         splits = data_splitter(records.keys())
     76         return [[{"imageid": id, **records[id]} for id in ids] for ids in splits]

/usr/local/lib/python3.6/dist-packages/mantisshrimp/parsers/parser.py in parse_dicted(self, show_pbar, idmap)
     45
     46             for name, func in annotation_parse_funcs.items():
---> 47                 records[imageid][name].extend(func(sample))
     48
     49         # check that all annotations have the same length

<ipython-input-105-26615e917f45> in bboxes(self, o)
     27
     28     def bboxes(self, o) -> List[BBox]:
---> 29         return [BBox.from_xywh(*np.fromstring(o.bbox[1:-1], sep=","))]

TypeError: a bytes-like object is required, not 'list'

I suppose we can avoid this by just using the parser for COCO you just put out. Colab is not pulling the changes yet, it says datasets.coco has no attribute 'parser'

I believe the error you're seeing comes from np.fromstring, is o.bbox a string or a list?
You said you parsed your data to a dataframe right? So the your bounding box is mostly likely already a list, if so, you can simply do BBox.from_xywh(*o.bbox) (assuming your bbox cordinates are "x, y, width, height".

For the colab error, you can either try reset factory runtime or install mantis again with --upgrade flag at the end

I believe the error you're seeing comes from np.fromstring, is o.bbox a string or a list?
You said you parsed your data to a dataframe right? So the your bounding box is mostly likely already a list, if so, you can simply do BBox.from_xywh(*o.bbox) (assuming your bbox cordinates are "x, y, width, height".
For the colab error, you can either try Runtime -> reset factory runtime or install mantis again with --upgrade flag at the end

Hey, thanks. Yes, I just tried converting my bbox to a string, so that it matches the expectations of the code.
I changed now to what you suggested and it works!
Only thing is how do I get the string_label to display instead of the id?
Thanks!

Only thing is how do I get the string_label to display instead of the id?

When calling the show methods, you use the parameter classes to pass a list of your classes. Internally we convert the ID to the class name by indexing that list.
So if the id is 1, and your classes are ['background', 'dog'] it will show dog


Execute order

plus we are having some assertions that all of these functions are not going to be called with wrong arguments and still continue executing


any_of and any_of_equal call std::find_if and std::find respectively

any_of calls std::find and checks against range end. STL implementations should be trusted to perform this more efficiently than the hand-written search.
All tests pass.

I tried your benchmark, and I got different results - the current implementation was equal to the fastest.
0.000021s wall, 0.000000s user + 0.000000s system = 0.000000s CPU (n/a%)
0.000018s wall, 0.000000s user + 0.000000s system = 0.000000s CPU (n/a%)
0.000020s wall, 0.000000s user + 0.000000s system = 0.000000s CPU (n/a%)
0.000018s wall, 0.000000s user + 0.000000s system = 0.000000s CPU (n/a%)
0.000019s wall, 0.000000s user + 0.000000s system = 0.000000s CPU (n/a%)
(clang trunk, Mac OS X, libc++, -O3)


[#4959] feat(Iceberg): support Iceberg REST extend API

What changes were proposed in this pull request?
support Iceberg REST extend API
Why are the changes needed?
Fix: #4959
Does this PR introduce any user-facing change?
no
How was this patch tested?

add new operation classes with new URI PATH to org.apache.gravitino.iceberg.service.rest2
config gravitino.iceberg-rest.extension-packages to  org.apache.gravitino.iceberg.service.rest2
start Gravitino IcebergRESTServer
check new URI is accessable.

I think you'd better discuss with the Pinterest team about the solutions before proposing it, to see if it can satisfy their needs. Moreover, it would be better to let them do it.

@SinghAsDev this PR add a configuration to extend the REST API packages, is it meet your requirement?

Hi @FANNG1 thanks for the change, I think it's in the right direction. Can you help add a test case that adds an extension uri, and run some test against it.

ok

@FANNG1 Thanks for sharing this. I am curious in this PR, how can users access icebergCatalogWrapperManager instance if user plugin their API into IRC?

@FANNG1 Thanks for sharing this. I am curious in this PR, how can users access icebergCatalogWrapperManager instance if user plugin their API into IRC?

IcebergCatalogWrapperManager injected to jersey in RESTService.java

    icebergCatalogWrapperManager = new IcebergCatalogWrapperManager(icebergConfig.getAllConfig());
    icebergMetricsManager = new IcebergMetricsManager(icebergConfig);
    config.register(
        new AbstractBinder() {
          @Override
          protected void configure() {
            bind(icebergCatalogWrapperManager).to(IcebergCatalogWrapperManager.class).ranked(1);
            bind(icebergMetricsManager).to(IcebergMetricsManager.class).ranked(1);
          }
        });

The user plugin could use the injected IcebergCatalogWrapperManager like IcebergTableOperations

  @Inject
  public IcebergTableOperations(
      IcebergCatalogWrapperManager icebergCatalogWrapperManager,
      IcebergMetricsManager icebergMetricsManager) {
    this.icebergCatalogWrapperManager = icebergCatalogWrapperManager;
    this.icebergObjectMapper = IcebergObjectMapper.getInstance();
    this.icebergMetricsManager = icebergMetricsManager;
  }

Add a test to produce "hello" message, please help to review this when you are free.   @SinghAsDev @puchengy @jerryshao


Hosting 3s latency

The first request 302s and the next one takes a while http://www.webpagetest.org/result/150505_TB_NXX/
This is because of githubs attack mitigation strategy, from github support:

You can avoid the 302 redirects by either putting your page on a subdomain and using a CNAME record pointing to username.github.io, or using an ALIAS record with an apex domain (not supported by all DNS hosts).

If your DNS host does support ALIAS records, you can find instructions here:

https://help.github.com/articles/tips-for-configuring-an-a-record-with-your-dns-provider/#configuring-an-alias-or-aname-record-with-your-dns-provider

If you'd like to move to a subdomain, you can find instructions here:

https://help.github.com/articles/tips-for-configuring-a-cname-record-with-your-dns-provider/

Another alternative is to use a different hosting altogether, it's set up to deploy to s3, we could point at that with cloudfront or cloudflare.

Yeah finding a DNS provider that supports ALIAS records isn't much fun, and would cost to transfer.
I'll +1 moving to S3.


Regression test improvements

The first commit fixes a bug where the destination collection was not deleted if 1) the result is streamed, 2) the last stage is a map-reduce, and 3) the result isn't read all the way to the end. All of which happened to be true of our regression tests for joins, with the result that my test DB was gradually filling up with orphaned temporaries, making one of the other tests hang eventually.
The second commit just reduces the data size for the map-reducing regression tests, so that they run in no more than few seconds each (down from more than a minute in some cases). The new dataset, largeZips, contains only large individual zip codes, including at least one from each state, plus all the zips in Colorado, and every city that resembles BOULDER (because some of the tests expected to see those cities).
The result is the build runs about 5 minutes faster on Travis, and the regression tests specifically take less than a minute locally, down from several minutes.

Current coverage is 81.46%

Merging #1021 into master will decrease coverage by -0.01% as of 62c27cb

@@            master   #1021   diff @@
======================================
  Files          121     121
  Stmts         8412    8411     -1
  Branches       288     288
  Methods          0       0
======================================
- Hit           6854    6852     -2
  Partial          0       0
- Missed        1558    1559     +1

Review entire Coverage Diff as of 62c27cb

Powered by Codecov. Updated on successful CI builds.

Odd that one of the three builds timed out last night, but Travis seemed to be having capacity issues at the time, so I restarted it this morning and it ran fine. Restarted the whole shebang this morning to get a second opinion.

👍🏾


feat: TLS based on the key and cert (not root-ca/mTLS)

Reason for This PR
closes: https://github.com/roadrunner-server/roadrunner/issues/1237
Description of Changes

Simple key-cert based TLS for the temporal connection options.

License Acceptance
By submitting this pull request, I confirm that my contribution is made under
the terms of the MIT license.
PR Checklist
[Author TODO: Meet these criteria.]
[Reviewer TODO: Verify that these criteria are met. Request changes if not]

[x] All commits in this PR are signed (git commit -s).
[x] The reason for this PR is clearly provided (issue no. or explanation).
[x] The description of changes is clear and encompassing.
[x] Any required documentation changes (code and docs) are included in this PR.
[x] Any user-facing changes are mentioned in CHANGELOG.md.
[x] All added/changed functionality is tested.

Codecov Report

Merging #250 (bb3fe9d) into master (1fc9dd9) will decrease coverage by 0.06%.
The diff coverage is 0.00%.

@@            Coverage Diff            @@
##           master    #250      +/-   ##
=========================================
- Coverage    3.55%   3.48%   -0.07%
=========================================
  Files          15      15
  Lines        1352    1376      +24
=========================================
  Hits           48      48
- Misses       1302    1326      +24
  Partials        2       2

Impacted Files
Coverage Δ

config.go
0.00% <0.00%> (ø)

plugin.go
0.00% <0.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


Issue - Azure Billing

Azure wants to charge hundreds for running multiple SQL/MySQL databases

Need to find a fix (Docker?)
Documentaiton currently removed until fix found

Possible fix - Use a local SQL instance using Docker


CollectComponentInteraction is failing on the first interaction for every message.

The CollectComponentInteraction isn't functioning correctly. The initial interaction consistently fails.
if let Some(mci) = CollectComponentInteraction::new(ctx.clone())
    .message_id(message_id)
    .filter(|_| true)
    .await
{

However, when utilizing a Message component, the interaction doesn't fail:
if let Interaction::MessageComponent(button) = &interaction {

CollectComponentInteraction is a feature from serenity itself, not poise which is built on top of serenity. This issue would likely be better served in the serenity repo.

That said, what do you mean by it "consistently fails"? That you get something like this in Discord?

If so, Discord requires that interactions are "acknowledged". This can be done by creating a follow up, editing the original message, or sending a DEFERRED_UPDATE_MESSAGE response. CollectComponentInteraction will do none of these by default so it is on you to respond to the interaction somehow. I'm not sure how you're acquiring a reference to an Interaction in your second case, but is it possible that you're acknowledging the interaction somehow in that case?

I think @taimurey may be hitting the issue that I fixed here: https://github.com/serenity-rs/serenity/pull/2388
That fix will be released with the next major version of serenity

This has been fixed upstream.


Send account

User should not be able to send the same account information twice.
Including a send cooldown to prevent spam

body resolved with JSON.parse


Raw socket support

Discussed in https://github.com/libuv/libuv/discussions/4251

Originally posted by vaguue December 16, 2023
I'm currently developing a Node.js application where I need support for raw sockets across various operating systems. I'm referencing libuv's code for this purpose. This has led me to wonder why libuv doesn't natively support raw sockets. Are there specific limitations or challenges that prevent this functionality from being implemented in libuv? Any insights would be greatly appreciated!
Thank you,
Seva D.

Answered in the discussion thread.
I'll go ahead and close this; there are no plans to support raw sockets. You can integrate them using uv_poll_t.


Custom Interceptors

I would like to discuss one of the ideas for future releases.
This idea consists in creating a custom interceptor, the logic of which can be described in a class, for example, inheriting from CustomKeyboardInterceptor.
The logic is as follows: before any button press is processed, we pass through registered interceptors such as KeyboardListener, KeyboardManipulator, etc. If at least 1 interceptor does not allow processing of the press, it will not be processed anywhere and the OnPipelineFailed method will be called, if all interceptors allow processing of the key, the OnPipelineSuccess method will be called.
So, I'm thinking of making it possible for the user to create custom interceptors that will be registered with all other interceptors in one pipeline. This would allow the user to decide and define the processing logic. But this way is a bit more complicated than usual, so I want to focus on convenient methods, and leave this option as the last one.
Here is an example of one such class:

How do you feel about that?

An example of a simple keyboard logger.

Yes, it looks very useful in certain scenarios. Ideally, make 95% of all needs covered by already written interceptors, like KeyboardListener. But in the case where that's not enough, this way could make it much easier to implement.
I support this idea.

Added in 0.6 release! Changelog

Added in 0.6 release! Changelog

Excellent! You solve problems so quickly.


Configuration:

Web browser and its version: Google Chrome 83.0.4103.61 , also Firefox 76.0.1
Operating system and its version: Win 7 x64
PDF.js version: 2.3.164 version of extension
Is a browser extension: yes

Steps to reproduce the problem:

Select any "Spreads" mode of view. Or "No spreads", but wrapped scrolling mode - doesn't matter.
Select "Page Fit" zoom mode. We should get several pages per screen
Try to scroll document by any of keys: Page Down, n, j, Space Bar

I expect to see the next group of pages (for example, if there are 5 pages on the screen, I expect to see the next 5 pages)
What went wrong? Scrolling goes one page at a time, so if I have 5 pages on the screen, nothing happens when I pressed Page Down 5 times . For the 6th time I finally see the next group of pages.
Just for example: Adobe Reader scrolls properly in two-page mode, 2 pages at once.
P.S. Sorry for my English, I hope I correctly stated the essence of the problem

Please let me know if this is a known mistake, or if it is not considered a mistake at all.
Should I hope that it will be fixed in the future?
Just to be sure that I clearly explain the problem, I attach 2 screenshots. I expect to see pages 4-7 after the first press of a key "Page Down". But I have to press it 4 times, of which the first three times nothing happens.

I have also noticed this behavior. When showing multiple pages, you must remember which "page" you are on when using previous/next page keys because they operate on a page level and not on the view level.
This seems to be an issue due to the following lines in web/app.js:
function webViewerNextPage() {   PDFViewerApplication.page++; } function webViewerPreviousPage() {   PDFViewerApplication.page--; }
I think it could possibly be fixed by adjusting to the following code:
function webViewerNextPage() {   PDFViewerApplication.page += PDFViewerApplication.pdfViewer._getVisiblePages().views.length; } function webViewerPreviousPage() {   PDFViewerApplication.page -= PDFViewerApplication.pdfViewer._getVisiblePages().views.length; }
But there probably is a better way.

Hii, I will be creating a pull request soon, to fix this issue. Currently I am thoroughly testing it.

Please note that the changes suggested in https://github.com/mozilla/pdf.js/issues/11946#issuecomment-663090342, for a variety of reasons, are unfortunately not a good idea in general.

Please note that the changes suggested in https://github.com/mozilla/pdf.js/issues/11946#issuecomment-663090342, for a variety of reasons, are unfortunately not a good idea in general and that a proper solution would be more involved than it may look at first (which is why this issue is still open).

Please note that the changes suggested in https://github.com/mozilla/pdf.js/issues/11946#issuecomment-663090342, for a variety of reasons, are unfortunately not a good idea in general and that a proper solution will be more involved than it may look at first (which is why this issue is still open).

okay thanks, i was about to create a pull request.


queues MaxPollingInterval is a timespan in v2

if you set maxPollingInverval to an integer, it treats it as days in v2 host.json.  Looking at the code, it seems to parse this as a timespan so you'd set it like "maxPollingInterval": "00:00:02" for 2 seconds

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

ID: 27150c55-615f-fb44-d5e4-7b5815631c7d
Version Independent ID: 271006dc-afce-99f3-0790-41fa2e35b22b
Content: host.json reference for Azure Functions
Content Source: articles/azure-functions/functions-host-json.md
Service: azure-functions
GitHub Login: @ggailey777
Microsoft Alias: glenga

Thanks for the question! We are investigating and will update you shortly.

From this test it appears that both are valid but adding @mathewc and @paulbatum to confirm

Nope maybe not. Definitely does support time interval.  Will need to see if this was a change between v1 and v2. Thanks for raising

Yes, I've confirmed that there was an inadvertent change between v2 and v3 here. See the PR I just opened here: https://github.com/Azure/azure-webjobs-sdk/pull/1988.
I've updated the wiki doc here to include an example: https://github.com/Azure/azure-functions-host/wiki/host.json-(v2)#sample-hostjson


The heading "WEATHER APP" must be made dynamic according to the place searched

I would like to work on this issue of making the heading dynamic. Kindly assign it to me.

Okay @siddhiagarkar you can start working on this issue


Disable renovate for go dependencies

Is there an existing issue for this?

[X] I have searched the existing issues

Current Behavior
Renovate bot tries to update dependencies, this could cause the build to fail and the dependencies going out of sync with the vendored third party packages.
Expected Behavior
We should disable the renovate bot updates for golang dependencies and keep the ones for the github actions.
Steps To Reproduce
No response
Environment
No response
Anything else?
No response

Agree too.

We could create a custom updatecli job that checks for new releases of kyverno

@flavio collected in a new issue: https://github.com/kubewarden/kyverno-dsl-policy/issues/24


Manual marking of message - low offset override high offset

Version of Ruby: ruby 2.4.1p111
Version of Kafka: 1.1.0
Version of ruby-kafka: 0.7.1.beta1 (master@d57e6db)

When manually marking message, marking message with offset lower than previously marked offset overwrites the higher offset with the lower one.
Is this the intended behaviour?
Steps to reproduce
require 'kafka'

brokers = ['<IP_ADDRESS>:9092']
topic = 'marking'
group_id = 'SSD'

client = Kafka.new(brokers)
client.delete_topic(topic) rescue nil

producer = client.producer
(1..4).each do |i|
  puts "Produce: msg#{i}"
  producer.produce("msg#{i}", topic: topic)
  producer.deliver_messages
end

consumer = client.consumer(group_id: group_id)
consumer.subscribe(topic)

# Queue is accessed by some worker pool
q = SizedQueue.new(10)
thr = Thread.new do
   consumer.each_message(automatically_mark_as_processed: false) do |msg|
      puts "Offset:#{msg.offset} - Value:#{msg.value}\n"
      q.push(msg)
   end
end

m = Array.new(4) { q.pop }

# Some race condition made the marking not ordered
puts "Marking offset #{m[2].offset} as processed"
consumer.mark_message_as_processed(m[2])
puts "Marking offset #{m[0].offset} as processed"
consumer.mark_message_as_processed(m[0])

consumer.commit_offsets
consumer.stop

puts 'New consumer...'
consumer2 = client.consumer(group_id: group_id)
consumer2.subscribe(topic)

trap('TERM') { consumer2.stop }

consumer2.each_message do |msg|
  puts "Offset:#{msg.offset} - Value:#{msg.value}\n"
end

Expected outcome
Produce: msg1
Produce: msg2
Produce: msg3
Produce: msg4
Offset:0 - Value:msg1
Offset:1 - Value:msg2
Offset:2 - Value:msg3
Offset:3 - Value:msg4
Marking offset 2 as processed
Marking offset 0 as processed
New consumer
Offset:3 - Value:msg4

Actual outcome
Produce: msg1
Produce: msg2
Produce: msg3
Produce: msg4
Offset:0 - Value:msg1
Offset:1 - Value:msg2
Offset:2 - Value:msg3
Offset:3 - Value:msg4
Marking offset 2 as processed
Marking offset 0 as processed
New consumer
Offset:1 - Value:msg2
Offset:2 - Value:msg3
Offset:3 - Value:msg4

@pascalmail I think this is not a bug to me. The offset is replaced when you call mark_message_as_processed before committing offset to Kafka. In almost cases, the messages from a same partition are handled in order; after a message is consumed, it is marked as processed and offsets are committed to Kafka. If you turn off automatically_mark_as_processed option, you'll have to take a risk and handle the offsets by yourself.

@pascalmail I will close this issue due to the lack of activities. Feel free to re-open it if you need anything else related to this issue.


Bugfix 5931 scrollable content accessibility

Ref: https://github.com/github/accessibility-audits/issues/5931
Scrollable content (HTML <pre> elements) are not getting focussed while using keyboard tab key to navigate the pages.
Fix is to add the tabIndex property with value 0 for all those elements.

.deploy production


setup pagination for chat room

This PR closes issue no. #936
I have added pagination on the chat room and also made it scroll from bottom to top.

I think adding unsubscribe method should work, and this pagination is fine as well. If we get into a problem with this though, we can add pagination to be not on scroll but a button load more

I think adding unsubscribe method should work, and this pagination is fine as well. If we get into a problem with this though, we can add pagination to be not on scroll but a button load more

I knew that providing a cleanup function is important but due to lack of experience I was not able to grasp its importance. After watching this and reading more about it I understand why it is important. I will do the required changes in it. Should I add a button now for loading chats or not?

I think adding unsubscribe method should work, and this pagination is fine as well. If we get into a problem with this though, we can add pagination to be not on scroll but a button load more

I knew that providing a cleanup function is important but due to lack of experience I was not able to grasp its importance. After watching this and reading more about it I understand why it is important. I will do the required changes in it. Should I add a button now for loading chats or not?

it's your call, if it doesn't seem like it, let it be,else you definitely can! :)

I have done the required changes. Can you please check.

I have done the required changes. Can you please check.

aight, on it!

Wait, does it work at all @Palakkgoyal ;-; I missed to check and now on production, I don't think it works ;-;

I checked it worked but I don't know about the production.

I checked it worked but I don't know about the production.

yes it works there, but doesn't at all in production version.

I tried to give a good cleanup to it using AbortController but don't know why it was not working.

I tried to give a good cleanup to it using AbortController but don't know why it was not working.

now I think abortcontroller is what's causing it to abort.

But I didn't used it cause AbortController wasn't even working during development.

But I didn't used it cause AbortController wasn't even working during development.

lol, btw in mobile devices, the feature work, but not in desktops... I'll go through the code again and try to fix as well

But I didn't used it cause AbortController wasn't even working during development.

lol, btw in mobile devices, the feature work, but not in desktops... I'll go through the code again and try to fix as well

Is it? That's seems typical.

But I didn't used it cause AbortController wasn't even working during development.

lol, btw in mobile devices, the feature work, but not in desktops... I'll go through the code again and try to fix as well

Is it? That seems typical.

I feel the same, but it worked ;-;

That's amazing.


One proxy for swift(3), python and docker actions

Adds "action proxy" a new base image for actions including swift and "black box" using a common proxy server coded in python and using flask. The proxy implements the required init and run routes. The container include a sample shell script making it useful as a stand alone example action. It also allows arbitrary shell scripts (python, perl, bash, etc.) to run by initializing the internal action code on init. The run methods always prints the required sentinels, making actions that inherit from this proxy compliant with the invoker's expectations for extracting user log streams.
Elaborates bash example with comments and showing logging as well as receiving action input.
Rebase swift/3 and python to use canonical image (which also becomes the docker skeleton).
Add Python actions to set of sentinelled actions for which the invoker will wait for marker while fetching logs.
Fixes #1012.
Fixes #691.
Fixes #661.
Fixes #518.
@psuter @ioana-blue @bjustin-ibm @perryibm for your review. The commits are grouped and are progressive, so that it's easier to process.
PG pending.

Are core/actionProxy/init.py and core/actionProxy/run.py needed?

Added https://github.com/openwhisk/openwhisk/pull/1038/commits/da8a138bed947bc94240aac859656b7a9d5a6105 to address feedback from @bjustin-ibm.

PG1-158 approved.

@rabbah As far as I can tell, the code changes seem solid. However, what seems to be missing is documentation describing this new system. It seems that individual action runners have certain obligations and opportunities to customize the way their container runs by implementing one or more of the lifecycle functions defined by the base ActionRunner (e.g. epilogue, verify, build, etc.). However, I don't see any documentation describing these aspects.
I think it would be valuable to have either comments in actionproxy.py describing the lifecycle and customization points or, perhaps better, a separate document describing how to create a new action container.

@psuter Addressed your comment re BIG hack here: https://github.com/openwhisk/openwhisk/pull/1038/commits/1d1fc6bee561c2c7b58afa173df4b67be3f0a933.

@bjustin-ibm addressed your request here: https://github.com/openwhisk/openwhisk/pull/1038/commits/e3063b67476c57f5b41cfbe158f614778de8fdca.

@psuter replaced "default" stub here: https://github.com/openwhisk/openwhisk/pull/1038/commits/d4147d11e4aaabae81a36b0350cd21c53dcb4877. Made the docker example self-contained and a derived image.

@rabbah I made some minor edits to the README and opened a PR directly to your fork here: https://github.com/rabbah/openwhisk/pull/1

Adding tests to confirm actions have expected environment available. Also going to refactor some of the common tests to reduce clone and own.

Commits reorganized and squashed. PG1-233 pending.

Commits reorganized and squashed. PG1-238 approved.

Need to update https://github.com/openwhisk/openwhisk/blob/master/docs/actions.md#creating-docker-actions


Can't install onto tool palette - vs 2019

I have VS 2019
I get this error when trying to browse/install the dll's into the toolbox

Hi @pixelinkmedia
It looks like that you're using a very old version of the toolkit. What .NET version are you using, so that I can direct you to the right NuGet packages to install?

I am Using VS 2019
.NET 4.7.2

Hi @pixelinkmedia
If you look at this page, and add these NuGet packages to your project, it'll solve the problem for you.

Look at what page?

@pixelinkmedia
Sorry, I forgot to add this link

Well, got it hooked up to Nuget, but after closing the NuGet Manager window, it tries to load the package, but it just hangs saying "loading..." Stayed like that fro 45 minutes. However, it is already in the online version, inside NuGet anyways,... installed that fine

I downloaded the Examples, but they are only EXE's. Do you have VB source examples. ?

Never, mind, I found the code example

I found the example code, but it require .NET 4.7 and would not work. Designer errors galore.
Do you have 4.7.2 Examples?

I found the example code, but it require .NET 4.7 and would not work. Designer errors galore.
Do you have 4.7.2 Examples?
or do you have an online help with example VB syntax.
I am really interested in on how to skin (or Patelette) designer works

The examples are only available in C#, since all new versions are a port of the original 4.4.0 version. If you're interested in using custom palettes, I've provided a VB snippet here

Though, I could convert the C# examples over to VB while preserving the C# examples!

Hi,
I after getting the install to work.
If I create a new project all the Controls have disappeared from the toolbox.
How come?

Its because you need to install the NuGet packages into every project that you create. The binaries are not installed to your machine like a normal piece of software.

pixelinkmedia did you or anyone else figure out how to get the controls in toolbox in Visual Studio. I am using Visual Studio 2017 Enterprise.
I would really like to have these controls in my Visual Studio toolbox.
Thanks.

Yes, as per instructions from Wagnerp, you need to install the Nugent packages into every project. Then the components will be loaded into the toolbox for that particular project

Wow. I found a way and it stays in your toolbox. Download the NuGet package (kryptonsuite47b.4.7.0.nupkg) and install from the command prompt as instructed on NuGet.
After that open or create a new project. Open your toolbox in Visual Studio, right click on the toolbox and add a tab. Find your krypton dll's (should be 6) and copy them and then right click and paste them into the krypton tab in the toolbox.
Save your project and exit VS. The controls should now be in your krypton tab every time you open or create a new project in VS. It is for me at least. Have both Visual Studio 2017 & 2019 Enterprise.


Outdated detectable documentation translation

Feature Description
Currently, when you view a non-English documentation, you don't know if it's outdated or not.
I propose adding new metadata key version to every documentation page like
---
date: "2016-12-01T16:00:00+02:00"
version: 1
---

And everytime a documentation update, we need to check whether we need to upgrade the version within the PR.
If it's an English documentation and extra content added, the version should be incremented 1.
If it's a non-English documentation and the change will make it keep consistent with related English version, then change the version to the same value which is in the English version documentation.
So, when we generated non-English version documentation, if version is not the same as related English version, it's outdated. Then we can add a top warning bar to display that this documentation is outdated.
Screenshots
No response

Or we simply start adding our docs files to Crowdin/ Weblate/ …, and can simply use the latest version without a version requirement.

Or we simply start adding our docs files to Crowdin/ Weblate/ …, and can simply use the latest version without a version requirement.

I don't whether it's suitable to translate the article in crowdin?

Or we simply start adding our docs files to Crowdin/ Weblate/ …, and can simply use the latest version without a version requirement.

I don't whether it's suitable to translate the article in crowdin?

looks the wails project has using crowdin for the documents translation, ref: https://crowdin.com/project/wails/zh-CN

Resolved by https://gitea.com/gitea/gitea-docusaurus/pulls/25


Use translations in a component outside of the translation wrapper?

Hello, I would like to request help regarding translating my current app. Currently, I have a fixed header and a footer in my layout.tsx file:
export default function RootLayout({
  children,
  params,
}: {
  children: React.ReactNode
  params: { locale: string }
}) {
  return (
    <html lang={params.locale}>
      <body>
        <Header />
        <main>
          {children}
        </main>
        <Footer />
      </body>
    </html>
  )
}

With the main element containing my main page, which is successfully translated for both server and client components when I follow instructions on the website:
export default async function Home({ params }: { params: { locale: string } }) {
  const { t, resources } = await initTranslations(params.locale, i18nNamespaces);

  return (
    <TranslationsProvider
      namespaces={i18nNamespaces}
      locale={params.locale}
      resources={resources}>
        {/* ... */}
    </TranslationsProvider>
  )
}

But I would also want to translate the <Header /> and <Footer /> components in the layout. I want to keep them there for consistency. But they are not wrapped in the <TranslationsProvider /> so they aren't translated. The header is a client component and the footer is a server component. So I would like to ask for a guide on this. I have searched but haven't found a good answer. Thank you in advance.

If your Header is a client component, it should be able to access translations via the useTranslations hook. For all nested server components, you will need to use initTranslations again.


武汉被确诊护士:一样被感染 为何仅医生能申请补助?

https://web.archive.org/web/20200415205846/https://news.163.com/20/0415/14/FA8TRKL50001899O.html

keep fighting


Wrong ftp filename

Environment
https://digi.bib.uni-mannheim.de/tesseract/
Current Behavior:
tesseract-ocr-w32-setup-v<IP_ADDRESS>90314.exe contains tesseract v<IP_ADDRESS>90314, not v4.1.0.
Expected Behavior:
Suggested Fix:
Rename file accordingly.

The filename is correct, but the version, but the executables show a wrong version. I strongly suggest to use the latest version of the installer (5.0).


build react native android errors

react-native 0.46.4
react-native-fcm 6.2.3
node_modules/react-native-fcm/android/src/main/java/com/evollu/react/fcm/FIRMessagingPackage.java:29: error: method does not override or implement a method from a supertype

Same problem here, I'm using version 7.4.0

I forgot to update in this issue just upgrading to newer versions solve the problem not sure why it broke suddenly tho.
I upgraded all the way to 15.0.0

@i3IGm try the latest version


Update Song “index”

Automatically generated by Netlify CMS

👷 Deploy Preview for tubular-dusk-8911cd processing.

Name
Link

🔨 Latest commit
23e9def034e48337bfc503f87083ff164332f2d4

🔍 Latest deploy log
https://app.netlify.com/sites/tubular-dusk-8911cd/deploys/65521a0c5e600100081aeeda


Additional toggles on Stream View toolbar

I think adding some additional toggles on the Stream View toolbar that change the visibility of certain visual elements for the Stream user would be useful.
The two use cases that come to mind are:

Foreground Layer: useful to toggle roofs or overlays
Journal Notes: change how much detail is shown on an overworld map

There was some funky stuff to handle both of these:

The foreground layer active state is not reported correctly for non-GM users - had to make the test also check for the alpha value to make this work properly (issue reported upstream).
Notes don't show up unless you switch to/from the notes layer when toggling the value

In any case, these are implemented now.

thank you so much!


[embedded] Avoid marking all public symbols as 'do not dead strip' in embedded Swift

@swift-ci please test

@swift-ci please test


NVIDIA support for RHEL nodes

Issues Resolved by this Pull Request
NVIDIA support will be available on RHEL nodes.
Fixes #1258
Description of the Solution
Execute omnia.yml on GPU supported servers.
Suggested Reviewers
@j0hnL

Hi @j0hnL ,
Can you please review the changes in omnia for supporting GPU drivers?


Update README.md

Updated the Props section and table
Sorry about not completely finishing it, I realized I had no way to figure out the type or description of the functions (since I'm the one writing the documentation and don't use reactjs) but figured I would commit what I had anyways. It should be easy to change if others want to improve it, as the layout is complete
Fixes some issues in #25 - Not a complete fix

Hey @aman601 thanks for the contribution. Can you add the types and description for the rest of the properties as well? Otherwise, I cannot merge this Pull Request. If you have questions regarding any of these properties, feel free to reach out to me

@igeligel
I would be happy to when I get time to look into the project more...could you help direct me in finding the rest of the types and descriptions? Should I be looking for where you use them? I am unsure of how to discover these (I don't use reactJS)...
Any suggestions are appreciated but I'll look into it more either way!

No stress, I will write you a detailed guide tomorrow about it. I will assign the issue to you so no one else will work on it. I hope that's alright for you 🙂

That would be perfect, thank you!

I don't mean to pester @igeligel, but I can't figure some of these things uses out. If you could write a guide, great. If not, feel free to open the issue to others as I will not be able to fix it completely :)

Ahh sorry for no answer.
So, you should have a look at the interface first defining all prop types:
export interface Props extends HTMLAttributes<HTMLDivElement> {
  inValue: string;
  outValue: string;
  onInInput: (text: string) => void;
  inOptions: InOptions;
  onInOptionsUpdate: (newInOptions: InOptions) => void;
  outOptions: OutOptions;
  onOutOptionsUpdate: (newOutOptions: OutOptions) => void;
}

The first thing to understand is the onInInput. This is basically a function that is called to listen to when the text on the left-hand side changes. So every time you type something in the left textarea this function is called with a new value.
The other important thing now is to understand what InOptions and OutOptions are. That is because inValue and outValue are described already.
The InOptions and OutOptions are defined in ./src/types.ts and look like this:
export interface IInOption {
  name: string;
  active: boolean;
}

export type InOptions = Array<IInOption>;

export interface IOutOption extends IInOption {
  activeClicked: boolean;
}

export type OutOptions = Array<IOutOption>;

So InOptions is a list of IInOption. Means an array of these objects:
const inOptions = [
  {
    name: "Chinese",
    active: true,
  },
  {
    name: "German",
    active: false,
  },
];

Basically represents the left side of the options you can select, in our examples, these are languages since we orientate on Google Translate. The active property describes which item is actually active (so underlined). Just one item can be active.
The out options look similar but have one quirk:
const outOptions = [
  {
    name: "Chinese",
    active: false,
    activeClicked: true,
  },
  {
    name: "German",
    active: false,
    activeClicked: false,
  },
];

As you can see these have one property that is differently called activeClicked. This is because I wanted to have a separator between a pre-selected right-hand language and an actively clicked one. You can see this for example by:

Go to https://caseconverter.pro/app
Enter the text testCase on the left side
The right case selection will switch to kebab-case - in that case the active property would be true but the activeClicked would be false
Now click on "PascalCase" -  in that case the active property would be false but the activeClicked would be true

Another thing are the action handlers:
So you can pass the options initially like the one above for the inOptions:
const inOptions = [
  {
    name: "Chinese",
    active: true,
  },
  {
    name: "German",
    active: false,
  },
];

Now if I would click on German the onInOptionsUpdate function would be called with the parameter newInOptions being:
[
  {
    name: "Chinese",
    active: false,
  },
  {
    name: "German",
    active: true,
  },
];

I hope that makes the options understandable.

Ok, I'm not sure how to update a pull request but I committed my changes again and I believe this pull request has been updated. It should now be complete, but please review the table
That makes much more sense, thank you. I think the thing that tripped me up the most was this notation that I don't really understand
onInInput: (text: string) => void;
Thank you so much for your help, I do appreciate choosing to work through it with me instead of doing it yourself

Hey @aman601 The Pull request looks good but there are conflicts.
There are guides out there on how to do this:

https://docs.github.com/en/free-pro-team@latest/github/collaborating-with-issues-and-pull-requests/resolving-a-merge-conflict-on-github
https://docs.github.com/en/free-pro-team@latest/github/collaborating-with-issues-and-pull-requests/resolving-a-merge-conflict-using-the-command-line

Would be nice if you could do that. Then I will merge your Pull Request 👍

Please review, but I believe I have resolved the conflict correctly. Thank you!

Merged ✅
@all-contributors please add @aman601 for docs


Can't import gem vendored Sass stylesheets

When following the sass-rails to cssbundling-rails upgrade instructions (step 2 of the guide), the default build:css script fails for (legacy) imports of stylesheets embedded within Ruby gems (within their vendor/assets/stylesheets), e.g. @import "foundation/functions";. There is an error Error: Can't find stylesheet to import.
How can gem vendored Sass stylesheets be made available to the sass CLI?

I'm facing the same error with normal stylesheets folder, when i change the import to relative way it works. However, i dont like this solution. I have try to add multiple load paths in sass command (https://sass-lang.com/documentation/cli/dart-sass#load-path), for me does not works, but you could give a try, changing in build:css command:
--load-path=node_modules to --load-path=node_modules vendor/assets/stylesheets

I have also used a small gem flag-icons-rails with Rails 4 which provides the country flags as images and a few scss styles for them.
It is implemented as a rails::Engine and adds the paths to assets:path:
module FlagIconsRails
  module Rails
    class Engine < ::Rails::Engine
      initializer 'flag-icons-rails.assets.precompile' do |app|
        %w[stylesheets images].each do |sub|
          app.config.assets.paths << root.join('app', 'assets', sub).to_s
        end
      end
    end
  end
end

adding @import "flag-icon" to app/assets/stylesheets/application.bootstrap.scss give only the error: Can't find stylesheet to import when running rake assets:precompile
As far as I understand rake assets:precompile calls yarn sass which is a Javascript node module, thus has nothing to do with rails or Rails:Engine. ?!?
( BTW the RailsGuides does not mention yarn at all )
So how can I include SASS stylesheets and images from a gem in Rails 7 ?

Using normal CSS files from gems with url seems to work, e.g. @import url(foo/bar.css), where you can basically place anything in the url helper that rake assets:reveal outputs (at least when using Propshaft).
The file is put trough the compiler of propshaft, and the file will be updated with the digest in its path, e.g. url("/assets/foo/bar-48af5572e05314eee7ab2f264966821632ea3913.css");.
However this only works for vendored CSS, as this will just trigger another GET request from the browser to fetch the other stylesheet, which then is applied by the browser. Using this for SASS is not possible, as the browser can't use SASS.
I tried changing the Propshaft::Compilers::CssAssetUrls class, such that SASS assets are inlined instead of imported by URL, however the compile step of propshaft is called after the yarn build:css step, i.e. it's operating on compiled CSS and as such this did not work.
Adding each gem to the load path isn't really that useful, is there really no other way to use the vendored SASS files?

I have a node_module referencing another modules sass file and sass won't compile because it cant find file. (yes the package is there. no I can't edit the third party import.
@import 'node_modules/scut/dist/scut'
here's the cli line
"build:css": "sass ./app/assets/stylesheets/application.sass.scss ./app/assets/builds/application.css --no-source-map --load-path=node_modules

Using normal CSS files from gems with url seems to work, e.g. @import url(foo/bar.css), where you can basically place anything in the url helper that rake assets:reveal outputs (at least when using Propshaft). The file is put trough the compiler of propshaft, and the file will be updated with the digest in its path, e.g. url("/assets/foo/bar-48af5572e05314eee7ab2f264966821632ea3913.css");.
However this only works for vendored CSS, as this will just trigger another GET request from the browser to fetch the other stylesheet, which then is applied by the browser. Using this for SASS is not possible, as the browser can't use SASS.
I tried changing the Propshaft::Compilers::CssAssetUrls class, such that SASS assets are inlined instead of imported by URL, however the compile step of propshaft is called after the yarn build:css step, i.e. it's operating on compiled CSS and as such this did not work.
Adding each gem to the load path isn't really that useful, is there really no other way to use the vendored SASS files?

I found that there's no such thing as "rake assets:reveal"

@MrNagoo I was using dartsass-rails but couldn't get my image_urls to work in my scss files. I tried to move to cssbundling-rails but it's been a nightmare and I can't get any of my variable imports (previously working with @use "config"; for example) to work. How do you do image urls with dartsass-rails?

any update on this?
We're trying to migrate to propshaft with cssbundling-rails, but not being able to include our vendored sources is a major blocker.


How to use provenance-hash?

Is there an implementation for provenance hash in the contract? If yes, Please tell me how to use it. If not, could you consider adding it?

Hi @Lypheal, this is a duplicate of #1. I hope this helps.


Support Consul Service Registry

Fixes ISSUE #900
Motivation
make an implement of RegistryService which is support by consul
Modifications
Describe the modifications you've done.
Add ConsulRegistryService and ConsulConstant for implement
Add ConsulRegistryServiceTest for test
Documentation

Does this pull request introduce a new feature? (yes / no)
If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)
If a feature is not applicable for documentation, explain why?
If a feature is not documented yet in this PR, please create a followup issue for adding the documentation

It seems that MacOS 11 build scrip is failed, because could not get resource

seems miss lisence declare

FAILURE: Build failed with an exception.
38 actionable tasks: 5 executed, 33 up-to-date

What went wrong:
Execution failed for task ':eventmesh-common:compileJava'.

Could not resolve all files for configuration ':eventmesh-common:compileClasspath'.
Could not download log4j-core-2.17.1.jar (org.apache.logging.log4j:log4j-core:2.17.1)
Could not get resource 'https://maven.aliyun.com/repository/public/org/apache/logging/log4j/log4j-core/2.17.1/log4j-core-2.17.1.jar'.
Premature end of Content-Length delimited message body (expected: 1,790,452; received: 70,916)

Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.

Get more help at https://help.gradle.org/

BUILD FAILED in 2m 10s
it seems there is something wrong with gradle build

@xiaoyang-sde please help to review

yep. I will fix it later or tomorrow, work is busy

@huyuanxin any udpates?

@li-xiao-shuang please help to review.

already done, but some check still can't be resolved. I can't figure it out
在 2022年6月10日，16:24，Eason Chen @.***> 写道：

@huyuanxinhttps://github.com/huyuanxin any udpates?
—
Reply to this email directly, view it on GitHubhttps://github.com/apache/incubator-eventmesh/pull/901#issuecomment-1152107277, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AKC764POFM5KLP3ZKE3DAM3VOL3SNANCNFSM5XMX3GHA.
You are receiving this because you were mentioned.Message ID: @.***>

Already done. But I can't figure out how to fix the action checks
在 2022年6月10日，16:24，Eason Chen @.***> 写道：

@huyuanxinhttps://github.com/huyuanxin any udpates?
—
Reply to this email directly, view it on GitHubhttps://github.com/apache/incubator-eventmesh/pull/901#issuecomment-1152107277, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AKC764POFM5KLP3ZKE3DAM3VOL3SNANCNFSM5XMX3GHA.
You are receiving this because you were mentioned.Message ID: @.***>

@li-xiao-shuang please help to review.

Yes, I'm working on it

You should create a META-INF/eventmesh/org.apache.eventmesh.api.registry.RegistryService file for the consul plugin so the eventmesh spi will find it

How does the heartbeat of the consul service work? Need manual maintenance?

@huyuanxin, please fix the issues that reqeust by @li-xiao-shuang

        ok， I will fix it later---- Replied Message ----FromEason<EMAIL_ADDRESS>19:28<EMAIL_ADDRESS>CcYuanXin ***<EMAIL_ADDRESS>[apache/incubator-eventmesh] Support Consul Service Registry (PR #901)

@huyuanxin, please fix the issues that reqeust by @li-xiao-shuang
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.>
[
{
@.": "http://schema.org",
@.": "EmailMessage",
"potentialAction": {
@.": "ViewAction",
"target": "https://github.com/apache/incubator-eventmesh/pull/901#issuecomment-1153800207",
"url": "https://github.com/apache/incubator-eventmesh/pull/901#issuecomment-1153800207",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
@.***": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]

please solve the conflic files @huyuanxin .

@huyuanxin can you please fix the conflicts？

@huyuanxin can you please fix the conflicts？

fixing

I cherry pick from latest upstream

I have created the registry-consul branch please merge this pr to this branch and we will fix the ci problems later. @huyuanxin


Add portmap plugin

This makes hostPort work with the Flannel charm. See https://github.com/juju-solutions/bundle-canonical-kubernetes/issues/456
This requires an update to the flannel-amd64 and flannel-s390x resources. PR for that here: https://github.com/juju-solutions/kubernetes-jenkins/pull/133

lgtm +1


[Feat]: Implement Portfolio Tracker Feature

The website currently lacks a Portfolio Tracker feature that allows users to manage and monitor their investments effectively. This feature is essential for users who want to keep track of their portfolio's performance over time. I propose developing a Portfolio Tracker that provides users with insights into their investments.
Proposed Features:
Add Investments: Allow users to add various types of investments, including stocks, cryptocurrencies, and mutual funds, along with relevant details like purchase price, quantity, and date of purchase.
Performance Tracking: Implement functionality to display the current value of each investment, the overall portfolio value, and percentage changes over specified time frames (daily, weekly, monthly).
Visualizations: Provide charts and graphs to visualize portfolio performance, such as pie charts for asset allocation and line graphs for performance over time.
User-Friendly Interface: Design an intuitive interface that enables users to easily navigate through their portfolio and access important metrics.
Save and Retrieve Data: Ensure that user data is securely saved and can be retrieved on subsequent logins.
https://github.com/user-attachments/assets/f4478f4b-2462-4969-bae6-612ab0c1f5c0
If you assign me, I would love to work on this. Please assign this to me @vanshchauhan21 🙏

The website currently lacks a Portfolio Tracker feature that allows users to manage and monitor their investments effectively. This feature is essential for users who want to keep track of their portfolio's performance over time. I propose developing a Portfolio Tracker that provides users with insights into their investments.
Proposed Features: Add Investments: Allow users to add various types of investments, including stocks, cryptocurrencies, and mutual funds, along with relevant details like purchase price, quantity, and date of purchase. Performance Tracking: Implement functionality to display the current value of each investment, the overall portfolio value, and percentage changes over specified time frames (daily, weekly, monthly). Visualizations: Provide charts and graphs to visualize portfolio performance, such as pie charts for asset allocation and line graphs for performance over time. User-Friendly Interface: Design an intuitive interface that enables users to easily navigate through their portfolio and access important metrics. Save and Retrieve Data: Ensure that user data is securely saved and can be retrieved on subsequent logins.
Portfolio.Tracker.mp4
If you assign me, I would love to work on this. Please assign this to me @vanshchauhan21 🙏

Oky dude do your best


Added unit test for tcp server

Added a check that the thread is running before joining.
Made it possible to reuse the port, after the server has been closed.
Added a check that the callback functions has been configured before starting the worker thread.

Merging this despite the failing link checks. I checked the links manually and they are valid. There seem to be issues with the w3.org servers.


[Feature Request] Fallback to the current file directory if there is no active project

It looks like the init-lsp function uses the project directory to set the workspaceFolders for the lsp server.
It may make sense to fall back to atom.workspace.getActiveTextEditor().getDirectoryPath() and atom.workspace.getActiveTextEditor().getFileName() if atom.project.getPaths() is empty - in the event that someone only has a single file open, but would still like to use a LSP.

I would be possible, BUT - at least clojure-lsp, rust-analyzer and clangd all expect to see some specific files on the workspace path. So, while it would allow you to run the LSP server, it will probably not be useful and it'll report weird, invalid, and confusing things...


Bech32 (BIP173) address support

Added bech32 (code by Peter Wuille).
Adapted the unit tests to our library.

I took sipa's and dropped over this version to see the diff:
--- a/segwit_addr.c
+++ b/segwit_addr.c
@@ -51,9 +51,13 @@ int bech32_encode(char *output, const char *hrp, const uint8_t *data, size_t dat
     uint32_t chk = 1;
     size_t i = 0;
     while (hrp[i] != 0) {
-        if (hrp[i] >= 'A' && hrp[i] <= 'Z') return 0;
-        if (!(hrp[i] >> 5)) return 0;
-        chk = bech32_polymod_step(chk) ^ (hrp[i] >> 5);
+        int ch = hrp[i];
+        if (ch < 33 || ch > 126) {
+            return 0;
+        }
+
+        if (ch >= 'A' && ch <= 'Z') return 0;
+        chk = bech32_polymod_step(chk) ^ (ch >> 5);
         ++i;
     }
     if (i + 7 + data_len > 90) return 0;

When given an invalid HRP, like 0x80 or 0x20, sipa's will return 0 (fail to encode) and this version encodes an invalid bech32 string ("�1wzqgcn" and " 1nwldj5", respectively).
Neither version accepts uppercase HRP values. They could as long as they follow the BIP guidance that "The lowercase form is used when determining a character's value for checksum purposes." and "Encoders MUST always output an all lowercase Bech32 string."
Thus, input HRP=A and data=empty would generate: "a12uel5l"
The various reference implementations handle this differently.
The python version is invalid according to the BIP, e.g.:
>>> import segwit_addr
>>> segwit_addr.bech32_encode('a', [])
'a12uel5l'
>>> segwit_addr.bech32_encode('A', [])
'A1g7sgd8' <-- BUG: should output 'a12uel5l'

This was helpful for testing: make clean && make test_check && ./test_check
The reference code has not been updated to include all of the latest test vectors either (https://github.com/bitcoin/bips/blob/master/bip-0173.mediawiki)
The C++ version that got merged into Bitcoin Core got more review (https://github.com/bitcoin/bitcoin/pull/11167) and is implemented differently with better comments. You may want to start from that version and back out the C++ specific stuff like std::string, etc...

I imported the source code a while ago, just found the time to add it.  But I can update the last patches from Sipa's repository.  Hope that the changes to the tests apply without too much conflict...
I'm not sure I want to get the C++ code and backport it to C.  It may introduce new problems with memory management, since C++ strings resize themselves automatically.  I think it is better to stick to the reference implementation in sipa's repository unless there is a known problem with it.

Right, there are some practicalities that make the inconsistencies with the BIP less of a concern. I think another one might be around empty HRP IIRC (https://github.com/bitcoin/bips/pull/587#discussion_r140643173).
I wrote some java that tried to adhere closely to the BIP (https://github.com/sipa/bech32/pull/35/files) so that's why I'm aware of this.
You're probably right that the best strategy is to just use sipa's reference code and then update if the reference code updates.


NTR: [Fc receptor-mediated immune complex endocytosis]

Please provide as much information as you can:

Suggested term label: Fc receptor-mediated immune complex endocytosis

**Definition (free text) The Fc receptor-mediated endocytosis and delivery of antigen-bound immunoglobulin to an
intracellular compartment where the antigen can be processed and loaded onto MHC molecules. Selectively targets antigens for presentation by MHC class I or MHC class II.
**

Reference, in format PMID:9143687; PMID:9463401; PMID:28389502

Gene product name and ID to be annotated to this term - A0A0B4J1G0 and more

Parent term(s) GO:0006898  receptor-mediated endocytosis

**Children terms (if applicable) ** Should any existing terms that should be moved underneath this new proposed term?

**Synonyms (please specify, EXACT, BROAD, NARROW or RELATED)

EXACT antigen-antibody immune complex uptake via Fc receptor
EXACT Ig-complexed antigen endocytosis via Fc receptor
RELATED Fc receptor-mediated immune complex internalization
**

Cross-references

For enzymes, please provide RHEA and/or EC numbers.

Can also provide MetaCyc, KEGG, Wikipedia, and other links.

**Any other information
**

Thanks a lot!
To further clarify the definition, could you please replace
Selectively targets antigens for presentation by MHC class I or MHC class II.
with
Selectively targets antigens for presentation by MHC class II or cross-presentation by MHC class I.
Thanks again for your help,
Nevila

Done. Thanks. @nnouspikel


Fix UI button not exiting focus mode bug

Codecov Report
Base: 62.89% // Head: 62.83% // Decreases project coverage by -0.05% :warning:

Coverage data is based on head (4bfba1b) compared to base (31e8314).
Patch coverage: 0.00% of modified lines in pull request are covered.

Additional details and impacted files
@@             Coverage Diff              @@
##             master     #238      +/-   ##
============================================
- Coverage     62.89%   62.83%   -0.06%
  Complexity      611      611
============================================
  Files           110      110
  Lines          2113     2115       +2
  Branches        225      225
============================================
  Hits           1329     1329
- Misses          710      712       +2
  Partials         74       74

Impacted Files
Coverage Δ

src/main/java/seedu/taassist/ui/MainWindow.java
0.00% <0.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


install insights via rendering

Signed-off-by: Cameron Wall<EMAIL_ADDRESS>

/hold

A new> I built the image from this branch and swapped it in to a 2.5.1 environment. I expected the policyreport-sub appsub to go away, but nothing has happened. I think this still needs more testing in an upgrade scenario.

Just doing a code walk by eye the place where the appsub is specified is in mceUninstallList. This gets called in ensureConflictingMCEComponentsGone which is called in prepareForMultiClusterEngineInstall, but only if len(existingMCEList.Items) == 0 . In my case len(existingMCEList.Items) == 1 because ACM is already present so the cleanup doesn't happen.

I built the image from this branch and swapped it in to a 2.5.1 environment. I expected the policyreport-sub appsub to go away, but nothing has happened. I think this still needs more testing in an upgrade scenario.
Just doing a code walk by eye the place where the appsub is specified is in mceUninstallList. This gets called in ensureConflictingMCEComponentsGone which is called in prepareForMultiClusterEngineInstall, but only if len(existingMCEList.Items) == 0 . In my case len(existingMCEList.Items) == 1 because ACM is already present so the cleanup doesn't happen.

A new app sub removal function has been added to the top of the reconcile loop which should resolve this

/lgtm

/unhold


[DRAFT][CI] License Checker

This draft is for enabling license checker in CI.
ONE-vscode-DCO-1.0-Signed-off-by: Seok NamKoong<EMAIL_ADDRESS>
Parent Issue : #285

#288 replace this, close!


Mesh Parametrization Checkerboard Visualization

Hi,
Thanks for making your codebase available.
I'm interested in the surface parameterizations offered by this method. I was wondering how you produced the checkerboard visualizations which demonstrate the distortion? Apologies if I have missed it, but I can't find this code in the repo. Any tips on how to reproduce these results?
Many thanks,
Tom

@vokim may be able to help

@ThumbmasWalker Not sure which figure are you referring to. But AtlasNet produces a UV parameterization by construction: each 3D point was mapped from some 2D location. If you store these 2D locations as UV coordinates, in, say, OBJ file, you can apply any kind of material to it, including a checkerboard texture. You can simply add material header to OBJ file and manually create corresponding MTL file that references a 2D texture of your choice.
We also visualize optimized UV maps after distortion minimization. For this, I would just use off-the-shelf geometric optimization (e.g., SLIM: https://github.com/MichaelRabinovich/Scalable-Locally-Injective-Mappings ) to get better UVs.

Thanks for the reply this is really helpful (I am coming from a machine learning background rather than a CG background so this is quite new to me). Are there any programs you would recommend to create the mtl file? Thanks again.

Don't worry, think I've figured it out!
All the best,
Tom


Dev 888 Add email notification for new/join team registration

SonarQube analysis reported 12 issues

 9 critical
 1 major
 2 minor

Watch the comments in this conversation to review them.
4 extra issues
Note: The following issues were found on lines that were not modified in the pull request. Because these issues can't be reported as line comments, they are summarized here:

 RegistrationServiceImpl.java#L250: Define a constant instead of duplicating this literal "email" 4 times.
 RegistrationServiceImpl.java#L251: Define a constant instead of duplicating this literal "phone" 3 times.
 RegistrationServiceImpl.java#L252: Define a constant instead of duplicating this literal "institution" 3 times.
 RegistrationServiceImpl.java#L258: Define a constant instead of duplicating this literal "country" 3 times.

SonarQube analysis reported 1 issue

 1 critical

Watch the comments in this conversation to review them.


Compatibility SharpZipLib <IP_ADDRESS>8 with 7Zip 9.20

I realize this is a somewhat weired question, but here it is:
I used an old version of SharpZipLib (<IP_ADDRESS>) to create lots of ZIP files.
They open OK in 7zip 9.20.
Now I updated to SharpZipLib 0.860.518 (no changes to code) and again make lots of ZIPs... but they don't open with 7zip 9.20 anymore ('compression method not supported'). They open OK with 7zip 16.02.
"Just update 7zip", you'll tell me. However, my ZIPs are fed into a complicated system of which I'm not sure how it goes about unzipping them - it might use 7zip 9.20.
So the question is : is there a way to make the latest version of SharpZipLib (0.860.518 as of now) create ZIPs so they still open with 7zip 9.20? Does anybody know what has changed that might cause the problem?
I tried ICSharpCode.SharpZipLib.Zip.UseZip64.Off but no luck. Any other ideas?
Thanks,
Werner
Steps to reproduce
1.Make a Zip with SharpZipLib 0.860.518
2.Try to unzip with  7zip 9.20
Expected behavior
I'd like to unzip with 7zip 9.20
Actual behavior
Error 'compression method not supported'
Version of SharpZipLib
0.860.518
Obtained from (place an x between the brackets for all that apply)

[ ] Compiled from source
branch: _______
commit: _______
[ ] Downloaded DLL from GitHub
[X ] Downloaded DLL from SourceForge
[ ] Downloaded DLL from _______
[ ] DLL included as part of
Package installed using:
[ ] NuGet
[ ] MyGet
[ ] Chocolatey

I think your issue is related to mine: https://github.com/icsharpcode/SharpZipLib/issues/131. It looks like there are serious problems when it comes to SharpZipLib backwards compatibility.
Can you please tell me what compression level you're setting when creating the archives with the new SharpZipLib version?

Thanks for looking at this. The level used is 6 :
zipOutputStream.SetLevel(6);

@wkeilholz In my issue (#131) the workaround with setting UseZip64 off worked for backwards compatibility with version 0.84. Are you sure you're setting it in the right place? It should be right after creating the ZipOutputStream, before writing any entry or file into the archive.

I just tried again, and no, it doesn't work even with
ZipOutputStream s = new ZipOutputStream(File.Create(zipFileName));
s.UseZip64 = ICSharpCode.SharpZipLib.Zip.UseZip64.Off;
Note, however, that my case is more complicated, as it involves an outdated version of a third-party tool (7-zip 9.20).
The 7-zip manager (9.20) is actually able to show the content of the archive, but attempts to unzip yield 'unknown compression method'. The problem may as well be on the 7-zip side (and fixed in the meantime in its latest version).

@wkeilholz I see what you mean. You say 7Zip can show the content of the archives, can you check the properties of a file in the archive and see what's in the "Version" field? I think that value might give you a hint, there's a ZipFile class here in the GitHub repository with some version codes.

It says version 20 (method=deflate, host os=FAT32)

@wkeilholz
Without knowing the specific internal workings of 7-Zip 9.20, and any changes that were made between it and 7-Zip 16.02, I don't know where the specific problem might be or how 7-Zip may have been fixed. Without that information, I don't know in what way SharpZipLib would have broken compatibility with 7-Zip 9.20 that was fixed with 7-Zip 16.02.
Because you are dependent on 7-Zip 9.20, I think the simplest answer for your application is to stick with SharpZipLib 0.84. It appears to be the most compatible for your application. If you want to dig into the internals of SharpZipLib, I've pointed out a few places where Zip64 support has varied in my response to #131
If you come up with a fix that doesn't revert the current Zip64 defaults, please open up a pull request.
-Neil

Zip archive formats are messy full stop.  There are many possible places
where things can go awry.  Worse much of the code handles special cases
were other existing code is wrong but tolerated so its even possible that
the problem is in handling of bad code rather than disagreeing on how
things should really be done.  In short Neils view that you should stick
with what works #Zip 0.84 and 7Z 9.20 is correct and the only workable
solution until/if the underlying issue is found.  Given the situation it
may not be found.
On Sun, 14 Aug 2016 at 11:25 Neil McNeight<EMAIL_ADDRESS>wrote:

@wkeilholz https://github.com/wkeilholz
Without knowing the specific internal workings of 7-Zip 9.20, and any
changes that were made between it and 7-Zip 16.02, I don't know where the
specific problem might be or how 7-Zip may have been fixed. Without that
information, I don't know in what way SharpZipLib would have broken
compatibility with 7-Zip 9.20 that was fixed with 7-Zip 16.02.
Because you are dependent on 7-Zip 9.20, I think the simplest answer for
your application is to stick with SharpZipLib 0.84. It appears to be the
most compatible for your application. If you want to dig into the internals
of SharpZipLib, I've pointed out a few places where Zip64 support has
varied in my response to #131
https://github.com/icsharpcode/SharpZipLib/issues/131
If you come up with a fix that doesn't revert the current Zip64 defaults,
please open up a pull request.
-Neil
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/icsharpcode/SharpZipLib/issues/126#issuecomment-239646937,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAVbBqZ0f-vGZUpksBjHHXuKNzDl9SHXks5qflJggaJpZM4JWIcv
.

Having said all that the simplest way it to compare the archives and see
what is different about them which is sometimes not very much.  It may
actually be easy to figure out whats going wrong.  I did have some code
that analysed ZIP archive in some detail that allowed that kind of thing to
be done which I might have lurking somewhere....
Is it possible to get working / non-working  files which have the same
contents so they can be looked at?  This brings up issues of size of the
archives and the sensitivity of the contents etc, but if its possible then
yeah lets have a look.
On Sun, 14 Aug 2016 at 23:07 Johnno<EMAIL_ADDRESS>wrote:

Zip archive formats are messy full stop.  There are many possible places
where things can go awry.  Worse much of the code handles special cases
were other existing code is wrong but tolerated so its even possible that
the problem is in handling of bad code rather than disagreeing on how
things should really be done.  In short Neils view that you should stick
with what works #Zip 0.84 and 7Z 9.20 is correct and the only workable
solution until/if the underlying issue is found.  Given the situation it
may not be found.
On Sun, 14 Aug 2016 at 11:25 Neil McNeight<EMAIL_ADDRESS>wrote:

@wkeilholz https://github.com/wkeilholz
Without knowing the specific internal workings of 7-Zip 9.20, and any
changes that were made between it and 7-Zip 16.02, I don't know where the
specific problem might be or how 7-Zip may have been fixed. Without that
information, I don't know in what way SharpZipLib would have broken
compatibility with 7-Zip 9.20 that was fixed with 7-Zip 16.02.
Because you are dependent on 7-Zip 9.20, I think the simplest answer for
your application is to stick with SharpZipLib 0.84. It appears to be the
most compatible for your application. If you want to dig into the internals
of SharpZipLib, I've pointed out a few places where Zip64 support has
varied in my response to #131
https://github.com/icsharpcode/SharpZipLib/issues/131
If you come up with a fix that doesn't revert the current Zip64 defaults,
please open up a pull request.
-Neil
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/icsharpcode/SharpZipLib/issues/126#issuecomment-239646937,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAVbBqZ0f-vGZUpksBjHHXuKNzDl9SHXks5qflJggaJpZM4JWIcv
.


Can I customize the visibility of parts of the schema?

Hi!
I want to know can I customize the visibility of parts of the schema with graphql-php? just like how the graphql-ruby deals with the visibility of schema.
I have a project with 3 types of account (admin,client,user), currently, all of the schema mixed together, I want to separate the schema by the account type.
with this we can:

skip unnecessary parsing
skip unnecessary authorization logic
better security (especially, in terms of introspection)

currently, to achieve 2 and 3 I have to write the check logic manually, which can be a big pain when the project get bigger and bigger.

This is a nice feature, but it is not supported in this library. There is a related issue in the reference implementation: https://github.com/graphql/graphql-js/issues/113
I think we'll wait until it is resolved there. Feel free to re-open when it happens.

@yaquawa I'd love to know how you implemented this feature, I need to skip fields as well based on the user.


Updates to bootPath templating

fixes an edge case when no index.html in bootPath causes an exception;
makes inclusion of boot.js done by templates;
tests for missing templates.
Please check out see https://github.com/qooxdoo/qooxdoo-compiler/blob/ee7307acfc0460871eefd844f145fb8d2600510d/docs/compiler/CustomAppStartup.md#custom-indexhtml-for-your-applications for details of the changes to boot files

Merging, thank you @johnspackman !


can't open or create project

I got stratuseditor running, i registered and logged in, and am presented with the "open project" dialog along with a "new project" button.  i click on "new project" but nothing happens.   no errors come out on the command line, except on startup I get this error:
Error: EACCES, permission denied '/usr/local/lib/node_modules/stratus/public/stylesheets/site-index.css'
Is there a way to log errors to stdout to see what the problem is?  Or do you know what the problem could be?
update:  I see this in the browser console: Uncaught Error: Cannot find module 'stratus-ui'

I have the same problem with stratus-ui - browserify.js:40

Sorry about that, the issue was with browserify's crazy handling of package paths. It should if you install<EMAIL_ADDRESS>Thanks for taking the time to try it out!


Wrong URL in setup.py

Your setup.py has its URL set to "http://pyopengl.sourceforge.net"
But shouldn't this say instead "https://github.com/latte10am/pyVulkan" ?
I noticed because the URL is displayed prominently at https://pypi.python.org/pypi/pyVulkan/0.5
Or is this pyVulkan really a component of pyOpenGL now?

It's just because I copied pyOpenGL's setup script and didn't modify it by mistake. Thank you for reporting.


exporter/promethues: wrong count data

Prometheus exporter currently adds the CountData to an existing counter. CountData is already the aggregated count. We should only add the difference between since last Collect.
counter := sc.(prometheus.Counter)
counter.Add(float64(*data))

/cc @odeke-em

An easier fix looks possible via NewConstMetric, will send a change.

Interesting that these fixes require usage of New*Metric


Add new menu links #565

Add 'My changesets' and 'My reviews' options to users menu dropdown

Merged through #575


incorrect data updated  when editing and the initial select is over multiple tables. with un aligned pk's , but  identical join condition

Description
if you have a simple join of 2 tables and the tables are not ordered exactly teh same the update results are wrong.
DBeaver Version
Version <IP_ADDRESS>401072024
Operating System
12.7.2
Database and driver
postgres 15
Steps to reproduce
take two basic tables with a pk
in the second table make the join condition the first table pk
SELECT *
FROM customer , workers
where customer.id=partner_id
when the second table content is edited , the data updated goes into the second table  record of the first tables PK
so if the first table has a pk of 295  & the second table has a pk of 13
when any column related to  table 2 is edited, it goes into the record of teh first tables pk
so data from table 2 shown on screen with record 295 TB1,record 13 TB2
would actually go into record 295 of TB2 instead of record 13 TB2
Additional context
No response

partial fix....
it now updates the correct table, but throws another error when both tables are edited.
see new bug filed

Hello @we-sell-bags
Please provide table DDLs.

provide it in .
" error thrown when updating multiple tables (related to other update bug) #22528 "

@we-sell-bags Hi, the #22528 looks pretty similar to the current issue. Are there any noticeable differences?

Closed as a duplicate of https://github.com/dbeaver/dbeaver/issues/22528
If issues are different, please let me know ad provide additional information about it.


Wallet tmp files being left on Windows

In the wallet directory there are wallet tmp files being left behind on Windows.
theses should be secure deleted

This may be caused by not using the solution suggested in this closed JVM bug: http://bugs.java.com/bugdatabase/view_bug.do?bug_id=4171239. We may need to use the NIO approach rather than Guava's createTempDir. Alternatively we could add a ShutdownHook (which is pretty much what deleteOnExit does anyway) and review any change in behaviour.

There are also zip backups and rolling backups present so it looks like the SecureDelete isn't clearing out the files correctly

I've checked with a hex editor that the file contents have been overwritten, it is just the file itself has not been deleted by the OS

Consider using NIO approach (you'll need to change the import I expect):
Line 84:
      // Ensure we push this out to the file system
      buffer.force();

      // Use JDK7 NIO Files to delete the file since it offers the following benefits:
      // * best chance at an atomic operation
      // * relies on native code
      // * works on Windows
      boolean deleteSuccess = Files.deleteIfExists(file.toPath());

It might be worth going the whole way here and updating createTemporaryDirectory to use the NIO approach as well:
Line 187 (after mods):
    // Use JDK7 NIO Files for a more secure operation than Guava
    File temporaryDirectory = Files.createTempDirectory("mbhd").toFile();

Reinstated slowSecureDelete from MB Classic for Windows operation.
multibit-hd.jar built, copied to Windows machine and checked.
Closing.


Firmware download error CERTIFICATE_VERIFY_FAILED

Dear Ben,
I'm using the latest HASS docker image and your module, via git custom_components added to HASS, throws this error 1000x:
2023-04-09 17:44:36.776 WARNING (Thread-91 (do_request_available_firmware_version)) [custom_components.luxtronik2] Could not request download portal firmware version.
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
    httplib_response = self._make_request(
  File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
    self._validate_conn(conn)
  File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
    conn.connect()
  File "/usr/local/lib/python3.10/site-packages/urllib3/connection.py", line 419, in connect
    self.sock = ssl_wrap_socket(
  File "/usr/local/lib/python3.10/site-packages/urllib3/util/ssl_.py", line 449, in ssl_wrap_socket
    ssl_sock = _ssl_wrap_socket_impl(
  File "/usr/local/lib/python3.10/site-packages/urllib3/util/ssl_.py", line 493, in _ssl_wrap_socket_impl
    return ssl_context.wrap_socket(sock, server_hostname=server_hostname)
  File "/usr/local/lib/python3.10/ssl.py", line 513, in wrap_socket
    return self.sslsocket_class._create(
  File "/usr/local/lib/python3.10/ssl.py", line 1071, in _create
    self.do_handshake()
  File "/usr/local/lib/python3.10/ssl.py", line 1342, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
    resp = conn.urlopen(
  File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 787, in urlopen
    retries = retries.increment(
  File "/usr/local/lib/python3.10/site-packages/urllib3/util/retry.py", line 592, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.heatpump24.com', port=443): Max retries exceeded with url: /software/fetchSoftware.php?softwareID=2 (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_
FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)')))

Can you maybe add a parameter to disable cert checking? Like curl -k ;-)
Thx

Do you use a proxy server or a gateway with own certificates.
I think it is not a good idea to disable the cert check.


Return value of lang() must be of the type string, array returned

"Return value of lang() must be of the type string, array returned" this is the error I got when I was trying to access language with list array as per example https://codeigniter4.github.io/CodeIgniter4/outgoing/localization.html#nested-arrays
Language/en/Login.php
`return [
    'list' => [
        // Heading
        'heading_title'         => 'User',

        // Text
        'text_success'          => 'Success: You have modified attributes!',
        'text_list'             => 'User List',
        'text_add'              => 'Add User',
        'text_edit'             => 'Edit User',

        // Column
        'column_name'            => 'User Name',
        'column_attribute_group' => 'User Group',
        'column_sort_order'      => 'Sort Order',
        'column_action'          => 'Action',

        // Entry
        'entry_name'             => 'User Name',
        'entry_attribute_group'  => 'User Group',
        'entry_sort_order'       => 'Sort Order',

        // Error
        'error_permission'       => 'Warning: You do not have permission to modify attributes!',
        'error_attribute_group'  => 'User Group Required!',
        'error_name'             => 'User Name must be between 1 and 64 characters!',
        'error_product'          => 'Warning: This attribute cannot be deleted as it is currently assigned to %s products!',
    ]
];`

I'm trying access all in one go to avoid call lang function again and again.
In Controller
  $data['lang_list_array'] = lang('Login.list', [], 'en');

The Result I got is "Return value of lang() must be of the type string, array returned". Is it a bug or error on my side, what mistake did I made?
I also tried this from documentation but it also didn't work
return [
    'list' => [
        'Apples',
        'Bananas',
        'Grapes',
        'Lemons',
        'Oranges',
        'Strawberries'
    ]
];

CodeIgniter 4 version
v4.0.0-beta-3
Context

OS: Windows 10
Web server Apache 2.4.37
PHP version 7.2.14

lang() can indeed return an array. Examples in the website2 repo.


Can increase the ray function?

Ray can be calculated at any position, from the start point to the end point of the collision between
Based on the navmesh

Allow the air projection rays

I'm not totally sure what you're asking - are you asking for support for raycasting against navmesh geometry as if the navmesh was collision geometry? As in, you would like to find the intersection between an arbitrary 3D ray and the navmesh geometry?
If that's what you're asking - I don't think something we are going to support (unless someone gives a very good example for its use), since it's outside the scope of the library. The navmesh geometry is in a format designed to support navigation queries, and spatial queries in navmesh-space only. If you want general spatial queries, you'd be better off extracting the navmesh geometry into some spatial data structure and using another raycasting library. I've done this before with RaycastMesh, a nice simple project by John Ratcliff: https://code.google.com/archive/p/raycastmesh/
If that's not what you're asking, can you try again to explain what you need?
Thanks!

I'll close this for now as I have a feeling it's a feature request that we're not going to implement. @malong007 if you have any more input, please leave it here as a comment and we can reopen the issue.


DOC: optimize: Mark depreciated linprog methods explicitly

Currently in the Notes section of the optimize.linprog docs it's described that the ‘interior-point’, ‘revised simplex’, and ‘simplex’ solvers are legacy methods, but it's currently not listed explicitly in the Parameters section, which is the part most people will read.

Thanks for catching that, I cleaned up the commits to a single one.

Thanks for merging, and noted!

Thanks @EwoutH. Would you also open a PR copying that information from the HiGHS docs to the linprog page?

Maybe merge #16268 first? Or integrate it in that PR? Otherwise we might get conflicts.

I don't think there will be conflicts, but if there are I'll resolve them. I'd say go for it!

@EwoutH would you still like to open a PR copying that information from the HiGHS docs to the main linprog page?


First attempt at hooking doesn't seem to work.

First and foremost you'll have to bear with me as I am more or less new to this stuff. I'm just trying to fix an API issue with an old game I have. Now on to the problem: I'm trying to adapt code from the C++ Easyhook tutorial so that it will override CreateWindowExA into using NULL for hMenu:
http://pastebin.com/rVcDmwuY
Problem is while the project does compile to a DLL, and it does appear to load using an ASI loader (you know, like the ones used for GTA games), it doesn't appear to be able to override the said function. Am I doing it wrong with the code?

You are using SetInclusiveACL which prevents any other thread from being intercepted, instead use SetExclusiveACL

Are there anything else I need to fix besides the ACL stuff? Tried using SetExclusiveACL to no avail. :/

You are uninstalling the hook immediately

How do I make sure that it doesn't unhook as such then?

Don't call LhUninstallHook :)

OK, noted.

Hmm, still no dice.

Could you talk through how you are trying to use this currently? Or how you would like to be using it? I think probably just a step is being missed but I'm not sure of the context in which u are using it.
In the current process? Or in another process with injection? The snippet you have pasted doesn't do anything in dllattach and if it is the app the main function doesn't actually end up calling CreateWindowExA so your hook would never be called.
Your "myWundowHook" should probably be calling CreateWindowExA to call the original function, passing your modified parameter through or whatever you need to do in it.
Hope this helps

Also if this is with injection, have you seen the remote hook tutorial?

Yes I'm using EasyHook on a DLL to which I am injecting to a game in order to fix an issue, similar to this thread on GTAForums:
http://gtaforums.com/topic/517994-creating-asi-files-for-gta-sa/
I hope you don't mind if you can chat with me for a while so I can explain things more thoroughly regarding my problem.

Hmm, guess I might as well rewrite things then. I think i can more or less figure things out now. ;)

Good luck

Thanks!


Added i2c-hs support for i2c-device

Hi!
Changes:

cocotbext/i2c/i2c_device.py
tests/i2c/test_py.py

I added to the i2c_device.py in _run() the possibility of making a high-speed transaction.
In the _run() method of the i2c_device class, when the first byte is received and stored in addr, if it is not a device address, the code will check if it is one of the high-speed special addresses. If yes, it will wait for more bytes to be read and function as a normal transaction.
I also added a little test in test_py.py to see its functioning!
I need to test the highspeed function of an I2C core I am developing, so I thought it might be helpful for me and everyone else to simulate it with cocotb.

I'm thinking to properly support I2C HS, it would make more sense to create new objects that inherit from and extend the existing objects.  That way, the user has the choice between using the I2C HS models or "normal" I2C models.  Presumably the API will also have to be adjusted in some way for high-speed transfers; not sure the best way to do this, perhaps read_hs/write_hs or something along those lines in addition to read and write, coupled with a way to specify the bit rate for high speed mode.  I2C HS functionality also needs to be implemented in both the master and in the device so that everything can be properly tested.
Also, please do not commit any generated code (anything in pycache, .pyc files, results.xml, .vvp files, etc.).

Thank you for your feedback! I will make some changes based on what you've said.


Create dataset loader for ViMMRC

Dataloader name: vimmrc/vimmrc.py
DataCatalogue: http://seacrowd.github.io/seacrowd-catalogue/card.html?vimmrc

Dataset
vimmrc

Description
ViMMRC, a challenging machine comprehension corpus with multiple-choice questions, intended for research on the machine comprehension of Vietnamese text. This corpus includes 2,783 multiple-choice questions and answers based on a set of 417 Vietnamese texts used for teaching reading comprehension for 1st to 5th graders.

Subsets
-

Languages
vie

Tasks
Commonsense Reasoning

License
Unknown (unknown)

Homepage
https://sites.google.com/uit.edu.vn/uit-nlp/datasets#h.1qeaynfs79d1

HF URL
-

Paper URL
https://ieeexplore.ieee.org/document/9247161

#self-assign

Hi @holylovenia. The homepage in datasheet said that I need to

contact us via email<EMAIL_ADDRESS>(Mr. Kiet Nguyen) to sign the corpus user agreement and then receive the corpus.

But from here (the author's blog), the dataset is publicly available. I'm wondering how should I approach this one?

Hi @holylovenia. The homepage in datasheet said that I need to

contact us via email<EMAIL_ADDRESS>(Mr. Kiet Nguyen) to sign the corpus user agreement and then receive the corpus.

But from here (the author's blog), the dataset is publicly available. I'm wondering how should I approach this one?

Let's go with the author's blog for convenience. 😂 Maybe the policy has changed and now it became publicly available.


Memory Issue

So I have been playing around with mmdbctl and I was doing simple mmdb export to json and import back to mmdb. However, the process started taking up to 46 GB of memory. Luckily my machine had plenty of memory so import was successful. However, systems with low memory may run into problems.
I did some digging into source and found that mmdbctl is holding all data into memory and writing into file at once after processing is done. Can we do buffered writing and flush incrementally to prevent huge memory usages?
https://github.com/ipinfo/mmdbctl/blob/6d422a6ba3bc472ca1c525eb95afa7fa56b46270/lib/cmd_import.go#L453
Task Manager:

MMDB file used: GeoLite2-City.mmdb

@hyperxpro mmdbctl uses the underlying mmdb-writer library for creating the actual MMDB, which doesn't support incremental writes. The MMDB format itself isn't very friendly to incremental writes, which is the root of the problem. It's probably not impossible, but it'd be a really complex and sensitive algorithm using partial files to help deal with the memory growth (similar to a large-scale merge-sort solution).
In practice, almost anyone producing a big enough MMDB file ends up having large RAM machines to do it, which is cheap these days, so little effort has been invested into optimizing that.
It could be something we do!

Can we not write N bytes into the file and flush and increase offset and repeat the process? I am not sure if it is entirely possible like this is there any workaround we can do at the I/O level to fix this?

@hyperxpro unfortunately, the memory and I/O model for MMDBs, and the relationship between them, is more complex than that.
See https://maxmind.github.io/MaxMind-DB for the actual MMDB spec

For reference in my custom mmdb, it takes around 800G of ram and many hours to compile from an optimized ip_trie that takes a fraction of the time and memory to build and is threadsafe.  From my shallow dive into it, a large part of it is the fact that the mmdb writer library uses reflection all over the place since it was written before real generics were part of the language.

Hitting the same problem here, doing the same thing.  MMDB->JSON->MMDB.  JSON file  has ~15m routes/prefixes. Un-possible thus far on any of the systems we have here (512G is max) to turn back into MMDB.


[REPLAY-10] Oauth Login to Orchestration Service Via Github

Requires a single stable orchestration instance with a fixed IP address.
The idea is to enable authentication via github oauth and check for membership in a specific github group. This would provide a way to log into the orchestration without a new username/password.

Following process here https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/authorizing-oauth-apps#web-application-flow


LLVMPasses: mark the dump as debug code

This limits the dumping of the variables to the debug build since
llvm::Value::dump is only available in debug builds of LLVM.

Replace this paragraph with a description of your changes and rationale. Provide links to external references/discussions if appropriate.

Resolves SR-NNNN.

@swift-ci please smoke test


Error while showing table records Cannot read property 'total' of undefined

Describe the bug
Unable to 'Show Table Records' with Postgres Connector

Logs
[1598850286310] INFO  (ext): EXECUTING COMMAND => sqltools.showOutputChannel
[1598850312313] INFO  (ext): EXECUTING COMMAND => sqltools.showRecords
[1598850312314] INFO  (ext): EXECUTING COMMAND => sqltools.getConnections
[1598850312315] INFO  (ls): REQUEST RECEIVED => connection/GetConnectionsRequest
[1598850312316] INFO  (ext): Connection explorer changed. Will be updated.
ns: "conn-man:explorer"
[1598850312402] INFO  (ext): EXECUTING COMMAND => sqltools.getConnections
[1598850312403] INFO  (ls): REQUEST RECEIVED => connection/GetConnectionsRequest
[1598850312448] INFO  (ext): EXECUTING COMMAND => sqltools.getChildrenForTreeItem
[1598850312450] INFO  (ls): REQUEST RECEIVED => connection/GetChildrenForTreeItemRequest
[1598850313320] INFO  (ext): EXECUTING COMMAND => sqltools.getConnections
[1598850313320] INFO  (ls): REQUEST RECEIVED => connection/GetConnectionsRequest
[1598850313322] INFO  (ls): REQUEST RECEIVED => connection/RunCommandRequest
[1598850313367] INFO  (ext): EXECUTING COMMAND => sqltools.getChildrenForTreeItem
[1598850313367] INFO  (ls): REQUEST RECEIVED => connection/GetChildrenForTreeItemRequest
[1598850313369] INFO  (ext): EXECUTING COMMAND => sqltools.getChildrenForTreeItem
[1598850313370] INFO  (ls): REQUEST RECEIVED => connection/GetChildrenForTreeItemRequest
[1598850313609] INFO  (ext): EXECUTING COMMAND => sqltools.getChildrenForTreeItem
[1598850313610] INFO  (ls): REQUEST RECEIVED => connection/GetChildrenForTreeItemRequest
[1598850313613] INFO  (ext): EXECUTING COMMAND => sqltools.getChildrenForTreeItem
[1598850313614] INFO  (ls): REQUEST RECEIVED => connection/GetChildrenForTreeItemRequest
[1598850314232] ERROR (ext): ERROR: Execute query error Cannot read property 'total' of undefined, 'Cannot read property 'total' of undefined'
ns: "error-handler"
[1598850314233] ERROR (ext): ERROR: Error while showing table records Cannot read property 'total' of undefined, {"code":-1,"data":{"driver":"PostgreSQL","driverOptions":{}}}
ns: "error-handler"
To Reproduce
Steps to reproduce the behaviour:

Connect to a Postgres database
Click on any database, navigate through tables
Click on the 'magnifying glass' to 'Show Table Records`
Error log showed (pop up) on bottom right

Expected behaviour
The records of tables shown on a new tab
Screenshots

Desktop (please complete the following information):

SQLTools Version: v0.23.0
VSCode Version: v1.48.2
OS: Linux Ubuntu 18.04.5 LTS
Driver:

[x] PostgreSQL/Redshift
[ ] MySQL/MariaDB
[ ] MSSQL/Azure
[ ] SQLite
[ ] Other? Which...

I get the error

Cannot desctructure property name of 'undefined' or 'null'.

when I use a table with a column called name. (I put the backticks around "name" because it's a keyword in MySQL/MariaDB.)

Ive had the same issue. In two of my projects.
postgresql

@spiderrobb please confirm that you are using the latest versions of the extensions.