[VT-128] configure hardcodes /usr/bin/perl as required dependency

Alick Zhao on 2016-03-08T04:00:12Z says:
Hi,
It seems that in the configure file, perl is needed exactly at /usr/bin/perl, which is not the case with Mac OS X [1].
It might also cause issues on Fedora, since /bin is essentially a symbolic link to /usr/bin/ there. Interestingly, this does not happen if one logs in normally, because /bin is not in the default PATH. However, when using sudo, /bin/ is before /usr/bin in PATH, and thus configure fails.
Besides, more generally, if the user maintains his own version of perl in a nonstandard path, and wishes to build against it, configure will fail too.
[1] https://trac.macports.org/ticket/39373

Migrated metadata:
Created: 2016-03-08T04:00:12Z
Modified: 2017-12-17T23:05:35Z

Scott Kostyshak on 2016-03-08T06:29:45Z says:
Thanks for the report. You make good points. If someone posts a patch, I'll take a look.

Eric Hymowitz on 2016-11-18T03:01:36Z says:
I don't have a patch, but you could probably handle it in the Makefile with a %PERL% tag the same way you have %TASK% and %CLEAR%.

Paul Beckingham on 2016-11-18T13:19:14Z says:
Workaround:
$ /path/to/my/special/perl configure

Edit: Not a workaround, I misunderstood - configure is a shell script.

Eric Hymowitz on 2016-11-18T13:33:39Z says:
$ configure PERL=/usr/bin/perl

worked for me.

Alick Zhao on 2017-12-15T18:33:03Z says:
Seems to me configure PERL=/path/to/perlalso works in spec files for RPM packaging. So change the wording of suggestion to "please try configure PERL=/path/to/your/perl" might suffice, so that people with perl not under /usr/bin will know how to walkaround. I can prepare a patch for that if I get a +1.

Scott Kostyshak on 2017-12-17T02:34:08Z says:
How is it possible that setting PERL environment variable works? It seems that inside vit.pl the following is hardcoded:
{code:java}

!/usr/bin/perl -w
{code}

I agree we should improve this and not rely on paths. If we must rely on a default path, would it be better to rely on the following?
{code:java}
/usr/bin/env perl
{code}
By the way, I don't know much about these kinds of issues as I'm only familiar with Debian derivatives. Also, as you can tell by "git log configure" I haven't touched the configure script.

Alick Zhao on 2017-12-17T23:05:35Z says:
Then if there is no perl under /usr/bin, vit probably won't work either, even if configure goes through with a customized value for $PERL. This is exactly the case with Mac OS X.

Maybe we should just take the patches used by the Macports guys? [1] Basically they changed perl to env perl in shebang, and removed the configure warnings entirely when the found perl is not /usr/bin/perl.

[1] https://trac.macports.org/changeset/106751

#167 should fix this

1.3 branch is no longer receiving non-security updates. Closing.


Change Mdns deployment type to StatefulSet

This commit changes the Mdns deployment type as well
as updating how the predictable IP map is generated.

/retest

/retest

I keep getting
error: error creating buildah builder: initializing source docker://registry.build06.ci.openshift.org/ci/managed-clonerefs@sha256:8045e4633e3e825a92fa4fbe58ad6e7cc73bd45e5c0f207a0cc0c3666b49949f: pinging container registry registry.build06.ci.openshift.org: Get "https://registry.build06.ci.openshift.org/v2/": dial tcp: lookup registry.build06.ci.openshift.org on <IP_ADDRESS>:53: no such host

/retest

Small nit  but looks good otherwise.

So cool, the new checks  caught a problem. Seems we cannot remove status fields.

So cool, the new checks caught a problem. Seems we cannot remove status fields.

That's weird, because it didn't fail the pre commit checks on my local environment, and as far as I understand, we are now bound to have fields that we won't use...

/lgtm


Timestamp filter values aren't being fetched correctly

What happened:
When fetching filter values, we call getTerms without a range value, which means that when timestamp values are fetched they're always from the default range.
What you expected to happen:
I expect it to fetch all and only the values from the range
How to reproduce it (as minimally and precisely as possible):
Create a PPL query (local traces with the ppl query source = security-auditlog-2023.07.12 but replace the auditlog date with a day with data) and click filter for value for a timestamp value. If you open the filter dropdown/check the network tab, you should see that it's using the default range.
Anything else we need to know?:
Even after fixing this, filtering on a timestamp still won't work until https://github.com/grafana/opensearch-datasource/issues/212 is fixed.
Environment:

Grafana version:
Plugin version:

Hello!
Any updates on whether this issue will be worked on in the near future?
AMG customers are hoping for a fix. Thank you!


Maintainer for Rails gems wanted

As I mentioned in my talk at RubyKaigi 2024, we need "Gem Reviewers" for Rails gems, such as activesupport, activerecord, and so on.
https://speakerdeck.com/pocke/community-driven-rbs-repository
This issue describes what is expected of the maintainers in detail.
We are looking for two roles: core maintainer and ordinary gem reviewer.
Core maintainers
Core maintainers work on the ecosystem of RBS and Rails.
We expect them to design, develop, and maintain the ecosystem.
For example:

Review pull requests in this repository for rails gems

You become a gem reviewer of these (all?) gems.

Maintenance rbs_rails gem

Implement new features
Design the structure

Collabolation between rbs_rails gem, RBS definitions in ruby/gem_rbs_collection, and RBS feature / language spec.

In other words, they will do everything related to RBS and Rails.
I expect one or two developers will become this role.
Requirements

Periodic meeting with me (and other members)
Understand RBS basics

Do not need to understand RBS completely. I'll teach RBS

Understand Rails deeply

Ordinary gem reviewers
Ordinary gem reviewers review pull requests for Rails gems in this repository.
They cooperate with the core maintainers.
Woking other repositories is optional.
They should become a gem reviewer for one or more Rails-related gems.
We do not limit the number of developers.
How to become core maintainers/gem reviewers
First, comment on this issue and describe which role you are interested in.
We'll discuss how to work as a maintainer or gem reviewer on this issue. After that, I'll promote them.
@pocke's work in the future
I've spent much time on the RBS and Rails ecosystem. I'll continue to work on this area, but I plan to hand over the maintainer role to a successor(s).
I'll support the successor, especially at the beginning of their work. I'll continue to work on the RBS, of course.

Hi 👋  Thanks for opening the issue pocke! It's my pleasure to be able to help with the gems I use daily. I'm interested in both roles, but I'd like to start by being an ordinary gem reviewer assuming there are enough candidates for the core maintainers.

Hello.
I'm interested in to be a gem reviewer.
However I worry about that I don't have enough knowledge about RBS. I would like to learn about it more.

@ksss @hibariya @ericgpks Thanks for your comments!
I'd like to entrust you with the maintainer. I also want to keep this issue open for a while because we welcome more maintainers, especially ordinary gem reviewers.
I'm planning the concrete process to delegate maintainer works.
Probably we need to do the following things:

Update _reviewers.yaml

Could you open a PR to update the file yourself? Because I do not know which gems @hibariya and @ericgpks want to maintain.
Example of _reviewers.yaml is here: https://github.com/ruby/gem_rbs_collection/blob/40bc6f347bd515583de8d04422ffdffd3e7766f0/gems/ast/_reviewers.yaml

Arrange meeting w/ @ksss

We already have a regular meeting, so I think we do not need to arrange a new meeting

Write a document of RBS Rails's current state

I'll work on it soon
like a design doc

I'm also thinking about meetings with all the maintainers. I think regular meetings are not necessary. We can discuss on GitHub issue and so on.
But a kick-off meeting can probably be meaningful.
Currently I have no topics to talk about in the meeting, but feel free to ask us if you want a meeting.

However I worry about that I don't have enough knowledge about RBS. I would like to learn about it more.

Hmm, I can help you, but I have no concrete idea how to help you. Probably I can provide documents, hands-on, or something. Do you have any preference?

Hi, all 👋
I would like to help with overall maintenance.
I am interested in the ActiveRecord area and would like to pay particular attention to that area.
Also, although this is a bit off topic from this issue, I would like to help with rbs_rails, which is being developed by @pocke .

Hi. I think many Rails applications would benefit greatly from a type if the Rails gem was given a type. So I'd like to help with this project. I'm running for general gem reviewer. (Active Support)

Hmm, I can help you, but I have no concrete idea how to help you. Probably I can provide documents, hands-on, or something. Do you have any preference?

@pocke @ericgpks I'd also like to attend if you guys will do some knowledge-sharing events at some point since I'm also new here 🙏
Also, I think it might be great if we have some async communication channels (a bit more chatty than here, like Discord, Slack, etc?) since I will need to ask some questions in the near future. What do you think?

Hmm, I can help you, but I have no concrete idea how to help you. Probably I can provide documents, hands-on, or something. Do you have any preference?

I hope I can get documents to understand about this project and basic knowledge about RBS.
Thank you.

Thanks for your comments!

Also, although this is a bit off topic from this issue, I would like to help with rbs_rails, which is being developed by @pocke .

@Little-Rubyist
Actually, it is not off-topic because it's smoother that the activerecord maintainer maintains RBS Rails, too.

Also, I think it might be great if we have some async communication channels (a bit more chatty than here, like Discord, Slack, etc?) since I will need to ask some questions in the near future. What do you think?

@hibariya
We already have a slack channel in ruby-jp workspace. You can join the workspace from here https://ruby-jp.github.io/ and find #types channel. We can discuss this in this channel.

I hope I can get documents to understand about this project and basic knowledge about RBS.

@ericgpks
For RBS newbies, I recommend this document https://github.com/ruby/rbs/blob/master/docs/rbs_by_example.md
syntax.md is also a good document to learn RBS deeply. https://github.com/ruby/rbs/blob/master/docs/syntax.md

@Little-Rubyist @ydah Feel free to add your name to the _reviewers.yaml 🚀

I wrote a design doc of this repository and RBS Rails. https://hackmd.io/DJhoAYXnRfyT1JerQ3PePg
I'm thinking I should copy the design doc to RBS Rails repository. I'll organize the document after a while.

Hi, I'm also interested in improving and maintaining rbs_rails and the types of rails.
Either core maintainers or reviewers are okay with me.


Remove spurious debug output

What this PR does / why we need it:
It removes spurious debug output which pollutes stdout.
Special notes for your reviewer:
If applicable:

[ ] this PR contains documentation
[ ] this PR contains unit tests
[ ] this PR has been tested for backwards compatibility

On a side note, I think it may be prudent to consolidate these two functions somewhere to keep the code more DRY. That way we don't have to update the code in two locations. The function signature, name, and behaviour is identical.

On a side note, I think it may be prudent to consolidate these two functions somewhere to keep the code more DRY. That way we don't have to update the code in two locations. The function signature, name, and behaviour is identical.

That's what I thought too but then saw the comment of the function:

// The following functions (writeToFile, createOrOpenFile, and ensureDirectoryForFile)
// are coppied from the actions package. This is part of a change to correct a
// bug introduced by #8156. As part of the todo to refactor renderResources
// this duplicate code should be removed. It is added here so that the API
// surface area is as minimally impacted as possible in fixing the issue.

Perhaps it'd be better to demote this informational message to debug

Good point, I'll take a look.

This looks like a duplicate of #8673 which was not merged due to backwards-compatibility concerns and the ease of working around it.  But @bacongobbler  would know better than I if this should go ahead or not.

In this particular case I think it can be argued that this was intended to be debug output and therefore a bug. Users can still fetch this information with helm install --debug. I do not believe this could be a breaking change for some users, but I have been wrong before.
The more conservative approach may be to hold off on merging this until Helm 4.

Is the decision final to wait for Helm 4?
I'd also argue that it's a bug and the previous behavior can be re-enabled with --debug.

As much as I'd love to see this change, reading the discussion on the referenced PR does seem like this is pretty clearly considered a breaking change so the finial decision is, indeed, to wait for Helm 4.


Data Querying Documentation

import atoti as tt
the problem is : ModuleNotFoundError: No module named 'atoti'
I installed atoti through python and conda package and this error still there.

Hello, this issue is not clear enough. Can you provide more details and update the title to make it match the description?

I installed atoti through python and conda package

You need to pick one of the installation ways: either Python package or Conda package, not bot.


Disable CPU/GPU measurement on BackdropFilter test

This test is flaky if CPU/GPU measurement is enabled due to
https://github.com/flutter/flutter/issues/41577

Merge on red to fix the flakiness.


Fix typegen script shell directory paths

Setup

Rancher version: any
Rancher UI Extensions:
Browser type & version:

Describe the bug

The publish shell workflow is not properly generating the TS types needed for the Shell package to produce a valid build of an extension. Problem lies on the Shell directory paths in the typegen script
To Reproduce

Check Shell workflow runs

Result

TS types not generated successfully

Expected Result

TS types should be generated successfully

Screenshots

Additional context

/backport v2.9.3

/backport v2.8.9


house images

@Mekaboo did you draw the textures ? and if not could you point us at the source so that we could validate the license compatibility ?

@sebavan I didnt do the textures but here are the links to the sites:
https://www.freepik.com/free-vector/store-window-shop-building-glass-facade-luxury-house-exterior-grey-stone_13924260.htm#&position=15
https://www.freepik.com/free-vector/house-facade-with-red-brick-wall-window-door_17740248.htm#&position=4
I just noticed it says free but with attribution...that will make a difference

I d say it would be an issue, in this case, you should store it on your own github account, no reason to place it here if not for the doc or sharing with the community what you built :-)
@PatrickRyanMS could help confirm

We can't put these image on our asset server from the standpoint of the IP terms of use:

Except as expressly authorized under these Terms, the reproduction or distribution, as well as transformation, producing any derivative works of any kind, public communication, making available, extraction, reuse or any other use of the Website, the Services, the Freepik Content or any of its parts, is strictly forbidden.
The Third Party Content and the Sponsored Content are protected by intellectual property rights, as appropriate, and belong to their owners. Although the Services can locate and provide access to these contents, its download and use is subject to the conditions set by the relevant third party. The Company is not the owner and cannot grant any license or authorization in relation to Third Party Content or Sponsored Content. The User must obtain authorizations that are, in each case, required to use any Third Party Content or any Sponsored Content.

The license says that it is free for use in personal or commercial applications, but does not stipulate distribution, which is what storing it on our asset server is doing, separating the asset from the third party owner's control over distribution when they uploaded it to Free Vector as the license and protections offered by Free Vector have been sidestepped here. The IP terms of use also state that we would need to go back to the original owner to get permission for distribution.
This is why we don't merge any content that we can't draw a straight path to creation (i.e. the person uploading the file actually created it). It may seem overly cautious, but it's very easy to separate content from the original user's intent (i.e. it gets moved to a site that does not offer the same license protections for the creator) and end up with a legal mess.


Add editor option to allow selection highlighting of multiline selections and another option to control max length

Previously multiline was not possible, it was hardcoded to disable selection highlighting with a claim of performance issues but in my initial testing everything seems fine. What does it matter if a selection is 10 chars and happens to have a newline in it versus not?
Furthermore, the max length of a highlight was hard coded to 200 chars. I added another option for that. Including the option to not limit the length.
I will do further analysis of these changes to see if anything else is impacted. So far it works great!
FYI this has been previously discussed https://github.com/microsoft/vscode/issues/10588 with no resolution and a closed ticket.
Currently, I have not updated the minimap code. I am happy to look into that too if there is interest in this PR.
Here is an example:

@microsoft-github-policy-service agree


Is the WiFi turned off completely?

When this (or a similar) firmware is applied, does it meant the WiFi module is turned off and there will be no RF emissions? Or is it just not successfully establishing a connection, but still being "on"?
I have no knowledge whatsoever in this field. But I am curious about the potential behaviour.

The lamp is controlled by the ESP8266, which has integrated WiFi support. This micro controller controls the lamp, but the firmware in this repository never enables the WiFi support. Therefor there isn't any RF from the WiFi part.
I'm not sure what you want to archive, but there are two switch mode power supplies for the LEDs, that radiate small amounts of RF (like in nearly every power supply).

Again, I'm only starting to get into getting to know the ESP8266 and I stumbled upon this question on the Arduino StackExchange website: https://arduino.stackexchange.com/questions/43376/can-the-wifi-on-esp8266-be-disabled
My takeaway is that the WiFi needs to be turned off explicitly. Reading your code, I couldn't find any reference to functions or instruction related to that, hence my question.
Is there a reason why it's not needed in this case? Does it have anything to do with the Arduino way of doing things? Any hint on the direction I should look into, in order to understand this better would be appreciated.


add closeSrc option

There's sometimes a need to specify your own image for the close icon
While you can run hideCloseButton and create your own image with your
own binding it's much easier to just specify your url for it.
Compiled version was done with java -jar compiler.jar --compilation_level ADVANCED_OPTIMIZATIONS --externs google_maps_api_v3_16.js --output_wrapper '(function(){%output%})();'  --js_output_file=src/infobubble-compiled.js 'src/infobubble.js'
I also changed url for externs because old one didn't work.
The only version of the file I managed compiled version to work with is for 3.16
I am not sure if I should've done it, so please advise.
Individual CLA is signed.

@skarEE @brendankenny PTAL!

LGTM!


Saga theme not working

The main screen doesn't show the posts. The console logs these errors:
https://cgarciae.github.io/themes/Saga/assets/js/helper/masonry.pkgd.min.js?_=1467081055778 Failed to load resource: the server responded with a status of 404 (Not Found)
https://cgarciae.github.io/themes/Saga/assets/js/helper/jquery.fitvids.js?_=1467081055777 Failed to load resource: the server responded with a status of 404 (Not Found)
3VM461 extensions::uncaught_exception_handler:8 Error in event handler for (unknown): TypeError: Cannot read property 'shortcutLock' of undefined
    at chrome-extension://oknpjjbmpnndlpmnhmekjpocelpnlfdi/js/content.js:32:32

Thank you! the problem is here:
https://github.com/HubPress/dev.hubpress.io/blob/development/src/themes/saga/assets/js/scripts.js#L5
I will make a fix asap

0.6.0 is out with a fix for that, feel free top reopen if necessary

Thanks!


A picture or video would be nice considering this example code wont work without a bunch of modifications...

... so we can at least see if the thing we hack together based on this code looks like you expect it to look.
Please make the XAML (Page) to be consistent with the c# (Window)
Its also not clear that the two blocks of code should be used as one or the other, not both.  Where does the c# code go in a blank WPF app?
The c# code as it is produces 25 compiler errors.  And thats not counting the runtime errors because the smiley png does not exist anywhere.

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

ID: 2d210673-78b4-3eb7-d949-3fdc492c0caa
Version Independent ID: 55957ba3-8779-5965-804c-17849e3513df
Content: How to: Choose Between StackPanel and DockPanel - WPF .NET Framework
Content Source: dotnet-desktop-guide/framework/wpf/controls/how-to-choose-between-stackpanel-and-dockpanel.md
Product: dotnet-framework
Technology: dotnet-wpf
GitHub Login: @adegeo
Microsoft Alias: adegeo

Yuck... The C# code should just be removed


Fix generated Module Spec

Fix import by using named import
Fix TypeScript noImplicitAny by adding a type
Fix TSLint by adding a missing semicolon

Is this now considered merged?
Should I close the PR?

@Hirse sorry it took me a while to respond, but the PR was only closed later on. We usually review and merge PRs separately.

No worries.
When I wrote the comment it looked like the commit was merged/cherry-picked somewhere.


[BUG]: InterleavedPipelineSchedule fails to run

🐛 Describe the bug
I am trying to reproduce the resnet50-pipeline parallel demo in this page: https://colossalai.org/docs/features/pipeline_parallel
I can go well with the code in this page.
However, I'd like to try the interleaved scheduler. And I tried the following things:

simply setting NUM_CHUNKS=2 in the above example. I got an error msg like: RuntimeError: Given groups=1, weight of size [512, 2048, 1, 1], expected input[64, 1024, 14, 14] to have 2048 channels, but got 1024 channels instead
I read the code and foud that I have to set model.num_chunks in CONFIG to create a InterleavedPipelineSchedule object. I did so and got another Error msg:

Traceback (most recent call last):
  File "test_pp.py", line 166, in <module>
    engine, train_dataloader, test_dataloader, lr_scheduler = colossalai.initialize(model, optimizer, criterion,
  File "/mnt/.local/lib/python3.8/site-packages/colossalai/initialize.py", line 463, in initialize
    engine = Engine(model=model,
  File "/mnt/.local/lib/python3.8/site-packages/colossalai/engine/_base_engine.py", line 94, in __init__
    self._schedule.pre_processing(self)
  File "/mnt/.local/lib/python3.8/site-packages/colossalai/engine/schedule/_pipeline_schedule.py", line 490, in pre_processing
    elif isinstance(engine.model[0], NaiveAMPModel):
TypeError: 'PipelinableModel' object is not subscriptable

code script:
# Define some config
BATCH_SIZE = 512
NUM_EPOCHS = 2
NUM_CHUNKS = 1
# CONFIG = dict(NUM_MICRO_BATCHES=8, parallel=dict(pipeline=2))
CONFIG = dict(NUM_MICRO_BATCHES=8, parallel=dict(pipeline=2), model=dict(num_chunks=NUM_CHUNKS))

# Train
disable_existing_loggers()
parser = colossalai.get_default_parser()
# args = parser.parse_args()
rank, world_size, port,addr= setup_distributed_slurm()
colossalai.launch(config=CONFIG, rank=rank, world_size=world_size, port=port, host=addr)
logger = get_dist_logger()
pipelinable = PipelinableContext()

# build model
with pipelinable:
    model = resnet50()

exec_seq = [
    'conv1', 'bn1', 'relu', 'maxpool', 'layer1', 'layer2', 'layer3', 'layer4', 'avgpool',
    (lambda x: torch.flatten(x, 1), "behind"), 'fc'
]
pipelinable.to_layer_list(exec_seq)
#pipelinable.policy = "uniform"
#pipelinable.to_layer_list()

model = pipelinable.partition(NUM_CHUNKS, gpc.pipeline_parallel_size, gpc.get_local_rank(ParallelMode.PIPELINE))

# build criterion
criterion = nn.CrossEntropyLoss()

# optimizer
optimizer = torch.optim.Adam(model.parameters(), lr=1e-3)

# build dataloader
root = os.environ.get('DATA', './data')
# train_dataloader, test_dataloader = build_cifar(BATCH_SIZE, root, padding=4, crop=32, resize=32)
train_dataloader, test_dataloader = get_dataloaders(BATCH_SIZE, [3,224,224], 40000, 100)
test_dataloader=None
lr_scheduler = col_nn.lr_scheduler.LinearWarmupLR(optimizer, NUM_EPOCHS, warmup_steps=1)
engine, train_dataloader, test_dataloader, lr_scheduler = colossalai.initialize(model, optimizer, criterion,
                                                                                train_dataloader, test_dataloader,
                                                                                lr_scheduler)
timer = MultiTimer()

trainer = Trainer(engine=engine, timer=timer, logger=logger)

hook_list = [
    hooks.LossHook(),
    hooks.AccuracyHook(col_nn.metric.Accuracy()),
    hooks.LogMetricByEpochHook(logger),
    hooks.LRSchedulerHook(lr_scheduler, by_epoch=True)
]

beg=time.time()
trainer.fit(train_dataloader=train_dataloader,
            epochs=NUM_EPOCHS,
            test_dataloader=test_dataloader,
            test_interval=1,
            hooks=hook_list,
            display_progress=True)

Environment
No response

You were still NUM_CHUNKS=1. How about setting it to 2?

You were still having NUM_CHUNKS=1. How about setting it to 2?

Thanks, I've set it to 2 (but not shown in the code above) .
File "/mnt/.../.local/lib/python3.8/site-packages/colossalai/engine/schedule/_pipeline_schedule.py", line 490, in pre_processing
    elif isinstance(engine.model[0], NaiveAMPModel):
TypeError: 'PipelinableModel' object is not subscriptable

It happens that PipelinableModel wraps around a list of modules without exposing them. Can you try temporarily patching this function as below?
    def pre_processing(self, engine):
        from colossalai.zero.sharded_model.sharded_model_v2 import ShardedModelV2
        if isinstance(engine.model, ShardedModelV2):
            self.dtype = torch.half
        modules = engine.model._module_list;
        if isinstance(modules[0], NaiveAMPModel):
            self.dtype = torch.half
        for model in modules:
            if isinstance(model, NaiveAMPModel):
                model = model.model
            sig = inspect.signature(model.forward)
            for p in sig.parameters.values():
                assert p.kind != inspect.Parameter.VAR_POSITIONAL, '*args is not supported'

We will seek to solve in better ways soon!

@ver217 , may you take a look at this bug, or was it indeed a bug? Thanks!

It happens that PipelinableModel wraps around a list of modules without exposing them. Can you try temporarily patching this function as below?
    def pre_processing(self, engine):
        from colossalai.zero.sharded_model.sharded_model_v2 import ShardedModelV2
        if isinstance(engine.model, ShardedModelV2):
            self.dtype = torch.half
        modules = engine.model._module_list;
        if isinstance(modules[0], NaiveAMPModel):
            self.dtype = torch.half
        for model in modules:
            if isinstance(model, NaiveAMPModel):
                model = model.model
            sig = inspect.signature(model.forward)
            for p in sig.parameters.values():
                assert p.kind != inspect.Parameter.VAR_POSITIONAL, '*args is not supported'

We will seek to solve in better ways soon!

Thanks, I tried and got another error msg:
  File "/mnt/xxx/.local/lib/python3.8/site-packages/colossalai/engine/schedule/_pipeline_schedule.py", line 586, in forward_backward_step
    input_objs = [[] for _ in range(len(model))]
TypeError: object of type 'PipelinableModel' has no len()

Yes, we should expect this error. Let's wait for some reply!

@YuliangLiu0306 Did pipelinable models support interleaved 1f1b?


[e2e]: go schedule main config-ldflags-main slsa3

Repo: https://github.com/slsa-framework/example-package/tree/main
Run: https://github.com/slsa-framework/example-package/actions/runs/3249249347
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.go.schedule.main.config-ldflags-main.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.go.schedule.main.config-ldflags-main.slsa3.yml
Trigger: schedule
Branch: main
Date: Fri Oct 14 10:28:45 UTC 2022

Repo: https://github.com/slsa-framework/example-package/tree/main
Run: https://github.com/slsa-framework/example-package/actions/runs/3252008673
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.go.schedule.main.config-ldflags-main.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.go.schedule.main.config-ldflags-main.slsa3.yml
Trigger: workflow_dispatch
Branch: main
Date: Fri Oct 14 18:28:02 UTC 2022

Repo: https://github.com/slsa-framework/example-package/tree/main
Run: https://github.com/slsa-framework/example-package/actions/runs/3252279625
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.go.schedule.main.config-ldflags-main.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.go.schedule.main.config-ldflags-main.slsa3.yml
Trigger: workflow_dispatch
Branch: main
Date: Fri Oct 14 19:04:19 UTC 2022
Tests are passing now. Closing this issue.


fix SA name in placement role binding and reconcile retries

Signed-off-by: Roke Jung<EMAIL_ADDRESS>https://github.com/stolostron/backlog/issues/22215

Get ArgoCD instance's application set controller SA name properly
Fix reconcile retries when reconcile fails to verify the ArgoCD instance namespace

/lgtm


Added another group of tests for increased code coverage.

Coverage increased (+8.87%) to 37.44% when pulling a616a5ee386517bd1c2e67e6984746aadf4f1c85 on code-coverage into 7ed79832b0a95d1f55745cabdaf14cbc2f5b5c80 on master.


Expose a JS API (for use within Node.JS / browser?)

This tool would be super-useful inside tests, but it currently requires starting a HTTP server - which is not ideal.
If the API provided a way to provide a seed to the randomness, it would allow for the predictability required in tests

@samdenty You can try to use fakeSchema directly:
https://github.com/APIs-guru/graphql-faker/blob/master/src/fake_schema.ts#L66
Just build your SDL with buildSchema before passing it to fakeSchema.

@samdenty You can try to use fakeSchema directly:
https://github.com/APIs-guru/graphql-faker/blob/master/src/fake_schema.ts#L66
Just build your SDL with buildSchema before passing it to fakeSchema.

fakeSchema isn't exposed through the lib though. You can import it directly through const fakeSchema = require('graphql-faker/dist/fake_schema').fakeSchema but it doesn't seem to work with a basic use case.

@jsphweid 	See here for a example of how I used it, for Jest tests

How comfortable are the maintainers with people using this API directly? This is exactly what I want, happy to help out making it a fully supported API if needs be.

@TimPerry I'm in a process of switching to the new internal API based on default resolvers: https://github.com/graphql/graphql-js/pull/1332
After that is done I have no problem if someone export and document default field and type resolvers.

Awesome, sounds great.

@TimPerry As promised, I switched internal implementation to expose fakeTypeResolver & fakeFieldResolver in 6b3e743e59977c7437f395efc5b2a0fde45f1151 and released it 2.0.0-rc.8 📦

@IvanGoncharov It would be handy if you could export a function from the index, eg.
export const executeQuery = (idlPath: string, query: DocumentNode, variables?) =>

so we don't have to directly use private APIs


Support scenes

Create scene entities for One Smart Control scenes.
Command domain: COMMAND_PRESET and/or COMMAND_PRESET_GROUP
Actions:

ACTION_LIST --> Create entities
ACTION_PERFORM --> On scene activation

Events:

TOPIC_PRESET, EVENT_PRESET_PERFORM
TOPIC_PRESET_GROUP, EVENT_PRESET_GROUP_PERFORM

Partial support added as switches in #24


feat: delete dimension api and ui

Problem
Implement delete dimension api
Solution
Implemented delete dimension api and ui , restricted to delete variantIds and also dimensions which are used in any contexts
Environment variable changes
NA
Pre-deployment activity
NA
Post-deployment activity
Things needed to be done after deploying this change (if any)
API changes

Endpoint
Method
Request body
Response Body

API
GET/POST, etc
request
response

Possible Issues in the future
Describe any possible issues that could occur because of this change


Replace bs4 with beautifulsoup4

Don't use bs4 dummy package as distributions don't ship it. They use beautifulsoup4.

Interesting, I had no idea that bs4 was a dummy package! Thanks for the fix!


Data prepare

When I try to train the model,  there are some problems with the Dataloader. I get many errors such as
'Error while read file idx 433 in conceptual_caption_val_0 -> cannot identify image file <_io.BytesIO object at 0x7f36766d9bd0>'.
Many images can not be load. I don't know why. Do you have any suggestions? or Can you share the scripts for downloading the GCC, SBU dataset？  Thank you very much!  :)

I guess the image files were corrupted in the first place.
It also happened to me, thus I made the dataset to use another random index if such error occurs.
However, considering the size of the dataset (several million), I remember that the number of corrupted files was not that many.
FYI, I used aria2c to download images from the image URLs text directly.
$ aria2c -i uris.txt

This is how i downloaded SBU (it took alot, days for the complete images).
import requests
import shutil
import os
import json

if not os.path.isdir('images'):
    os.mkdir('images')

num_images_to_download = 10e5

urls = []
with open('sbu/SBU_captioned_photo_dataset_urls.txt') as f:
    for line in f:
        urls.append(line.strip())

captions = []
with open('sbu/SBU_captioned_photo_dataset_captions.txt') as f:
    for line in f:
        captions.append(line.strip())

img_id = 0
filtered_captions = []

for url,caption in zip(urls, captions):

    img_id += 1

    response = requests.get(url, stream = True)

    if response.status_code == 404:
        continue
    else:
        with open('images/' + str(img_id) + '.png', 'wb') as out_file:
            shutil.copyfileobj(response.raw, out_file)
        filtered_captions.append(caption)

    if img_id == num_images_to_download:
        break

f = open('filtered_sbu_caps.txt','w')
for c in filtered_captions:
    f.write(c +'\n')

f.close()


How to recover from error on nextUpdateSync

In all the examples and documentation if method nextUpdateSync returns nil. Proposed way to behave is to log error and exit. But what to do if I want to recover from error by, for instance, restarting bot after 5 minutes. Can you give an example of how it can be done?
It is important to me because sometimes telegram servers return 504, and I don't want to shut down bot because of that.

You could setup something like supervisord to manage bot process, you can configure restart retries.

For example (will retry in 5 sec):
#!/bin/bash
for (( ; ; ))
do
   ./bot
  sleep 5
done


Fix tls's proto type to u8

Codecov Report
Patch and project coverage have no change.

Comparison is base (f0ef0a9) 41.76% compared to head (5bc8676) 41.76%.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
Additional details and impacted files
@@           Coverage Diff           @@
##             main      #49   +/-   ##
=======================================
  Coverage   41.76%   41.76%
=======================================
  Files          11       11
  Lines         522      522
=======================================
  Hits          218      218
  Misses        304      304

Impacted Files
Coverage Δ

src/ingest/network.rs
5.29% <ø> (ø)

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


Using value from batch within pipeline transforms

My dict contains an image and a heading angle float. Is it possible to use the heading tensors from the same dict to crop my images with an FFCV custom fast transform?
Thanks

If it really is just a single float per example, I'd recommend keeping the array of floats in memory, and then using a custom transform with inds (https://docs.ffcv.io/ffcv_examples/transform_with_inds.html) to access the right one. Let me know if this doesn't work!


Queue, Enable / Disable in Sidekiq Tab

Would be nice to have this functionality that is available in https://github.com/ondrejbartas/sidekiq-cron
We switched away because sidekiq-cron doesn't appear to be working properly with high volume in Sidekiq 4, but this feature was definitely nice so you don't have to redeploy if you just need to disable a scheduled task.

Ok, I will work on this.
Thank you

Add column Last enqueued would be wonderful too (:

+1 for the Last Enqueued as well!

+1

PR #143 is merged into master


Added Prometheus, Grafana, and load-tests

Description
This PR includes the changes used as base to deploy and run the tests for the celo-blockchain bubble during the last milestone. Most notorious changes:

Added Grafana and Prometheus to scrape and show the cluster metrics if desired (configurable using an env variable).
Load-test changes (client and threading, commands helping the deployment for multiple threads, faucet)
New account type for validators group.
Changes to celotool/protocol to derivate the group addresses from mnemonic (instead of randomly generating a new account).
Changed block Gas Limit after contract migration to 13M.
Blockscout upgrade command changes (fix the schema upgrade/migration and also if --reset is provided).
Blockscout password policy updated.

Tested
Just tested deploying a new testnet (testnet, contracts and load tests).

Close in favor of #4965


Simplify CI pipelines by allowing for non-existent baselines

There's a bit of a chicken-and-egg problem when composing performance regression pipelines with NLU.DevOps. The --baseline option for the compare command fails when the file at the given path does not exist. This means, in order to achieve performance regression testing, we must have a baseline to compare against. We should relax this constraint and instead warn when the baseline file does not exist.

Not useful, it's a bit of a workaround to allow pipeline artifact downloads for non-existent builds.

Perhaps using continueOnError will help.

Although arguably an explicit error is better than a less observable one.


[flash_ctrl] Reduce severity of ECC error from fatal to recoverable

Description
We want to give the option for one stage of FW (e.g. ROM) to be able to read a potential candidate for the next stage of FW (ROM_EXT), and treat an ECC failure as a corrupted potential image (similar to signature verification failure) instead of resetting the chip.
See more background discussion in #21353

After having more context, I think this option makes a lot of sense. IIUC, the alert classification inside the alert handler is quite flexible: once the FW stage of interest has passed, the severity of the corresponding alert can be raised again at the alert handler end. The only difference to the current implementation would then be that the alert would no longer be sticky at flash_ctrl end. But already today, ECC errors inside flash_ctrl don't completely lock up flash_ctrl. It's just that the alert is sticky right now.

I've now prepared a PR to fix this here: #22431.


404 for most ui elements at gopherize.me

Hi! As example:
https://storage.googleapis.com/gopherizeme.appspot.com/artwork/026-Facial_Hair/amazing_beard.png - 404
<Error>
NoSuchKey
<Message>The specified key does not exist.</Message>
</Error>

hm, sorry, now problem is gone

Artwork is in flux still - once it settles down, these issues will go away.


Remove use of the fallthrough macro

Keeping pattributes in the portable library in case the usercode requires it.
The fallthrough define is no longer used internally and therefor not defined by default,
i.e PORTABLE_EXPOSE_ATTRIBUTES is not enabled by default.
No implicit-fallthrough build errors given in ./scripts/test.sh
Fixes #247

Maybe you liked the label names like lbl_fallthrough better?

Well, on naming, in cases where fallthrough is at the very core, maybe fallthrough is the right label, but in general I tend to prefer names where it would also work if I moved the code around.

I'm still looking through the code, but one thing:
I think the label should be after the case label, not before. This both ensures that when moving code, it remains stable, and technically you still have fall through if you goto before the case label. And this is also how I have seen others suggest it.

Yeah, aside from the two comments I added, I think it looks fine. Let me know if you disagree.

I'll update, I've now seen some suggestion about having the label after the case.
I was thinking that if a new case was entered in the middle, or if a case was moved it wouldn't be a fallthrough anymore, more of a stepping over a case..

I was thinking that if a new case was entered in the middle, or if a case was moved it wouldn't be a fallthrough anymore, more of a stepping over a case..

True, speaking generally and on this code in particular, often fall through is just a convenient placement and not truly a fall through, more like implementing a flow graph. Rather than trying to emulate fall through I think it is better to see at as a goto driven flow graph similar to goto error: labels. But it depends on the situation. In the case with falling numbers, fall through is at the very core of the logic.

OK if you are happy, I'm ready to merge.

It got a bit verboser, but I'm happy its according to recommendations.


✨ PIP_COMPILE_DISABLE

Disables any changes to a lockfile if the PIP_COMPILE_DISABLED env var is set
closes https://github.com/juftin/hatch-pip-compile/issues/19

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


Inconsistency in 'Site template JSON schema' article

In the section for addContentTypesFromHub, it states: "Once addContentTypesFromHub is applied on a site, the addContentType subaction on a list will be able to add it to the list by name."
But in the addContentType section, it states "Currently we do not support adding enterprise content types."
I just tested addContentType to add a Content Type I had added using addContentTypesFromHub, and it worked by providing the name of the Content Type only - not also the id.
My suggestion would be to amend the addContentType note, as it seems to be incorrect.
One caveat, though: the Content Type added to the site using addContentTypesFromHub shows the current site ('Finance') as the Source, whereas a Content Type added manually from the CTH shows 'Content  type hub', as shown in the screenshot below. This seems like a bug.

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

ID: 68267476-ee8d-7b95-446b-711ddb683da2
Version Independent ID: aa099b9d-48db-5513-11c7-32c49a27e5be
Content: Site template JSON schema
Content Source: docs/declarative-customization/site-design-json-schema.md
Service: sharepoint-online
GitHub Login: @VesaJuvonen
Microsoft Alias: vesaj

I'm using two Site Scripts combined into a Site Template for this
_DepartmentBase.json
{
  "$schema": "https://developer.microsoft.com/json-schemas/sp/site-design-script-actions.schema.json",
  "actions": [
    {
      "verb": "joinHubSite",
      "hubSiteId": "da791064-e2aa-4df6-aa51-5213cf5311c7"
    },
    {
      "verb": "addContentTypesFromHub",
      "ids": ["0x0101008A49CF890E9DDF4BBC1B9B2FB2A4B45001"]
    }
  ]
}

Policies.json
{
  "$schema": "https://developer.microsoft.com/json-schemas/sp/site-design-script-actions.schema.json",
  "actions": [
    {
      "verb": "createSPList",
      "listName": "Policies",
      "templateType": 101,
      "subactions": [
        {
          "verb": "addContentType",
          "name": "Policy"
        },
  ...


Get this into Bintray and Maven Central

It's in bintray as of yesterday.

What is the current situation with Maven Central?

v0.9.3 is in Maven Central but unfortunately I royally screwed up the
groupId.
v0.9.5, hopefully including your Oracle-XE and JDK7 PRs is what I'll try to
put in to Maven Central at the weekend.
On Fri, Jun 26, 2015 at 9:18 AM, gusohal<EMAIL_ADDRESS>wrote:

What is the current situation with Maven Central?
—
Reply to this email directly or view it on GitHub
https://github.com/rnorth/test-containers/issues/1#issuecomment-115438584
.


[USMON-1083] usm: http2: rename remainder to incomplete

What does this PR do?
Renames terminology from remainder or a frame to incomplete_frame
Motivation
Clarity in the code
Describe how you validated your changes

Possible Drawbacks / Trade-offs
Additional Notes

/merge


Training Classifiers not available in Business Premium

Please correct your documentation to reflect the fact that training classifiers are not available in BP licensed tenants, thanks!

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

ID: c11defbb-77c3-c56c-41f2-65e3a4dfafc5
Version Independent ID: bde5b77f-712d-f811-2315-d775d66fc8a6
Content: Get started with the default DLP policy - Microsoft Purview (compliance)
Content Source: microsoft-365/compliance/get-started-with-the-default-dlp-policy.md
Service: o365-seccomp
GitHub Login: @chrfox
Microsoft Alias: chrfox

@beachgrootbreadalto Thank you for your feedback.  You must have one of these subscriptions to make use of them. This is available in the prerequisites section of trainable classifiers -https://learn.microsoft.com/en-us/microsoft-365/compliance/classifier-get-started-with?view=o365-worldwide#licensing-requirements
Hope this helps!
Thanks
Sri

Good morning. Confusion stems from the fact that the Default DLP Policy can exist without the mentioned classifiers (for example with a Business Premium tenant) without mention that the classifier policies will only appear in licensed up tenants. Thanks!

@msbemba

@beachgrootbreadalto Thank you for your feedback. I have added that requirement as a note in the document via PR#https://github.com/MicrosoftDocs/microsoft-365-docs/pull/12268
Once the author approves, the changes will be live.
Thanks
Sri

@beachgrootbreadalto Thanks for your feedback! New issues and pull requests for this content are closed while we update this content to support upcoming feature improvements.


Change side bar color and fix side bar 100% height

Changing the color is simple:
import SideNav from "@trendmicro/react-sidenav";

const StyledSideNav = styled(SideNav)`
    background-color: #0057c3;
`;

The bar out-of-the-box works for 100% height for me, do you have a picture to show what you mean?

I actually found out your problem, of the 100% height. try adding this inside you SideNav component:
   style={{
                        position: "fixed",
                    }}

this will fix the navbar to the right, and then the user can scrooll the page and it will always show it in same place. It is no 100% height but it works for desktop at least

Changing the color is simple:
import SideNav from "@trendmicro/react-sidenav";

const StyledSideNav = styled(SideNav)`
    background-color: #0057c3;
`;

The bar out-of-the-box works for 100% height for me, do you have a picture to show what you mean?

`render() {
const { expanded} = this.state;

const StyledSideNav = styled(SideNav)`
background-color: #808080;

`;
return (

 (

        <SideNav StyledSideNav={StyledSideNav}

`
Should it bi like this ? it didn't wordk for me ?

I also cannot change the background. Do you find the solution?
version:   react-sidenav: "^4.0.6"


Add RuboCop as a .config supporting tool

https://github.com/rubocop/rubocop/pull/12700

@ssbarnea I am starting to create PRs on projects where I add the possiblity to have the config in the .config folder, for that I would love to have this website have at least rubocop added before starting outreach.
The more 'big tools' are on the list, the better the argument for this.
Can you merge this in the near future? That would be great <3 .
If you lost interest in the project I totally would understand. THen I will create my own version of the page.

Ah and the rubocop documentation for the config can be found here:
https://docs.rubocop.org/rubocop/1.66/configuration.html


upgrade --all installs packages that are already up to date

Brief description of your issue
When I run the winget upgrade --all winget tries to upgrade software that are already the latest.
In this example, it tried to update 2 software.

AIMP
Discord.

I should mention that I had these apps installed form their respected websites before I had winget installed.
Steps to reproduce
I opened the term application as admin, and executed winget upgrade --all
In the attached screenshot, you will see I have discord, and AIMP open with their versions before I ran the update.

Discord's installed version is 1.0.9002
AIMP's installed version is 4.70.2251
Initially I thought it might be related to this issue: https://github.com/microsoft/winget-cli/issues/696#issuecomment-771856473
But when I checked the versions for both apps, I saw that winget lists the same versions that was installed.
To see the discord version, I ran: winget search discord
To see the AIMP version, I ran: winget search aimp
Expected behavior
I expected that when the upgrade command is executed, that software that are up to date doesn't try to download and install the same version.
Actual behavior
Up to date software gets re-downloaded and installed (in the example, Discord and AIMP).
Environment
[winget --info]
Windows Package Manager version: v1.0.11451
Windows: Windows.Desktop version: v10.0.19043.985
Package: Microsoft.DesktopAppInstaller version:  v1.11.11451.0

Any other software?

I did see this issue looks to be related: https://github.com/microsoft/winget-cli/issues/1009
And saw he ran winget upgrade
I did the same, and saw that the versions don't match, this the reason it tries to install already up to date versions.
Name                          Id                                     Version                Available            Source
-----------------------------------------------------------------------------------------------------------------------
AIMP                          AIMP.AIMP                              v4.70.2251, 23.05.2021 4.70.2251            winget
Battle.Net                  Blizzard.BattleNet                     Unknown                      <IP_ADDRESS>40       winget
Discord                      Discord.Discord                        0.0.309                          1.0.9002             winget

I am guessing thats the reason.

It was previously discussed that the version displayed and the version number are not the same. There are even times when the commercial version number is different from the actual version number in the program itself.
Variations in the display of the version number. So either you have to teach winget to interpret the version numbers, or read the version number from the program file (exe, dll, etc), which will be specified with a relative path in the manifest.
I cooperate with the AIMP player team and at the moment I was only able to make a limitation so that it would not be possible to downgrade the version number when updating. When a forced downgrade occurs, the player stops working with newer databases.

Something similar happened to me.
I did a first upgrade --all this 2 apps where updated, after that version becomes unknown and it tries to update every time although it is already updated

PS C:\Users\NLxDoDge> winget upgrade
Name                Id                              Version                Available    Source
----------------------------------------------------------------------------------------------
AIMP                AIMP.AIMP                       v4.70.2251, 23.05.2021 4.70.2251    winget
Battle.Net          Blizzard.BattleNet              Unknown                <IP_ADDRESS>40 winget
Bulk Rename Utility TGRMNSoftware.BulkRenameUtility Unknown                <IP_ADDRESS>      winget
Discord             Discord.Discord                 1.0.9000               1.0.9002     winget
MEGASync            Mega.MEGASync                   Unknown                <IP_ADDRESS>      winget
Mozilla Thunderbird Mozilla.Thunderbird             78.10.2                78.11.0      winget
GOG Galaxy          GOG.Galaxy                      Unknown                <IP_ADDRESS>4   winget
Windscribe          Windscribe.Windscribe           2.2 Build 10           latest       winget

These are all packages that have issues on my personal system. Each of these is the latest version, but tries to update.
For example: Windscribe uses latest as a version and some software reports an Unkown version on my system. But I installed everything with Winget.
Windows Package Manager v1.0.11451
Windows: Windows.Desktop v10.0.19043.1023
Package: Microsoft.DesktopAppInstaller v1.11.11451.0

I just experienced this issue.
It turned out that Blender and Teracopy that were repeatedly wanting to Upgrade each had two versions installed, listed in 'Apps and Features'.  The current version and a previous version.
Uninstalling the older versions fixed this.

Found another package that updates infinitely:
TechPowerUp GPU-Z TechPowerUp.GPU-Z Unknown 2.40.0    winget

I have the same problem with Windscribe.
Windscribe Windscribe.Windscribe 2.2 Build 10 latest         winget

I also have this problem and I have it with Display Fusion installed from steam because in program and features there are two entries of display fusion one is for steam and the other one is for display fusion when installed normally.

"DisplayFusion 9.8" is the entry which is also created by standard installer when installing display fusion from official website but that entry called just "DisplayFusion" without any numbers is created by steam but winget falsly detects the steam entry instead of standard entry.

I have same issue. Battle.Net keeps retrying due to the Unknown

I am also experiencing this issue..

I am also experiencing this issue..

@leochras https://github.com/microsoft/winget-cli/issues/1191#issuecomment-886416694

I believe we can address this with the v1.1 schema with multiple ARP entry support. The version in the manifest will be able to report a "marketing" version, but the ARP entry section can match what is actually installed.

https://github.com/microsoft/winget-cli/issues/1073#issuecomment-921870634

This is similar to this issue: https://github.com/microsoft/winget-cli/issues/1105

I believe this has been addressed with Windows Package Manager 1.3.
Unknown versions are excluded from winget upgrade --all
Manifests can also now have AppsAndFeatures entries to allow a "marketing" version displayed for the user, but the upgrade comparison will be performed against the registry value for the software.
If this is not the case, then feel free to re-open the Issue and provide feedback.

This is still an issue.

winget upgrade --all
Name               Id                        Version     Available   Source

Amazon Kindle      Amazon.Kindle             <IP_ADDRESS>350 <IP_ADDRESS>673 winget
Vim 9.1 (x64)      vim.vim                   9.1.0       9.1.0312    winget
foobar2000 v1.6.16 PeterPawlowski.foobar2000 1.6.16      2.1.4       winget
MySQL Shell 8.1.1  Oracle.MySQLShell         8.1.1       8.2.0       winget
4 upgrades available.
1 package(s) have pins that prevent upgrade. Use the 'winget pin' command to view and edit pins. Using the --include-pinned argument may show more results.
Installing dependencies:
This package requires the following dependencies:

Packages
Microsoft.VCRedist.2015+.x64
(1/3) Found Vim [vim.vim] Version 9.1.0312
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Downloading https://github.com/vim/vim-win32-installer/releases/download/v9.1.0312/gvim_9.1.0312_x64.exe
██████████████████████████████  10.7 MB / 10.7 MB
Successfully verified installer hash
Starting package install...
Successfully installed

(2/3) Found foobar2000 [PeterPawlowski.foobar2000] Version 2.1.4
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Downloading https://www.foobar2000.org/files/foobar2000-x64_v2.1.4.exe
██████████████████████████████  6.48 MB / 6.48 MB
Successfully verified installer hash
Starting package install...
Successfully installed
(3/3) Found MySQL Shell [Oracle.MySQLShell] Version 8.2.0
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Downloading https://cdn.mysql.com/Downloads/MySQL-Shell/mysql-shell-8.2.0-windows-x86-64bit.msi
██████████████████████████████  60.9 MB / 60.9 MB
Successfully verified installer hash
Starting package install...
Successfully installed

winget upgrade
Name               Id                        Version     Available   Source

Amazon Kindle      Amazon.Kindle             <IP_ADDRESS>350 <IP_ADDRESS>673 winget
Vim 9.1 (x64)      vim.vim                   9.1.0       9.1.0312    winget
foobar2000 v1.6.16 PeterPawlowski.foobar2000 1.6.16      2.1.4       winget
MySQL Shell 8.1.1  Oracle.MySQLShell         8.1.1       8.2.0       winget
4 upgrades available.


Testnet Joe?

What are the addresses for Factory and router on the fuji testnet? I am unable to find the addresses for these contracts.

We we're not on Fuji. Instead we're on Rinkeby:
JoeFactory: 0x86f83be9770894d8e46301b12E88e14AdC6cdb5F
JoeRouter02: 0x7E2528476b14507f003aE9D123334977F5Ad7B14


Sveltekit 2 dependencies

Sveltekit 2 has been released this week but when upgrading I see this warning from Vite
└─┬ svelte-algolia-instantsearch 0.12.0
  └── ✕ unmet peer @sveltejs/kit@">= 1 < 2": found 2

I ran my project with the upgraded version of sveltekit and the current of version of svelte-algolia-instantsearch and it's not breaking anything.

Done ! I'll look at the rest of the issues over the weekend


Show more data in Extrinsic status

For example show the extrinsic blockchain explorer

include icon/name of the chain, where the transaction happened


New Feature: Search and Filter

Adds a feature to filter posts by companies.
Partially fixes Issue#3 New Feature: Search and Filter

Awesome job! Thanks so much for working on this, I'll get this merged later today!


Add CHECK constraint support

I want to add support for the CHECK constraint and wanted to ask for your opinion about the possible approaches.
I wanted to change ast package like the following. By introducing TableConstraint/Constraint, it becomes easier to add support for the different kinds of constraints and keep the order of constraint nodes. However, this breaks the backward compatibility.
 type CreateTable struct {
 	Name              *Ident
 	Columns           []*ColumnDef
 	PrimaryKeys       []*IndexKey
-	ForeignKeys       []*ForeignKey
+	Constraints       []TableConstraint
 	Cluster           *Cluster                 // optional
 	RowDeletionPolicy *CreateRowDeletionPolicy // optional
 }

+type TableConstraint struct {
+	ConstraintPos token.Pos
+
+	Name       *Ident // optional
+	Constraint Constraint
+}
+
+type Constraint interface {
+	isConstraint()
+	Node
+}

 type ForeignKey struct {
-	// pos = Constraint || Foreign
+	// pos = Foreign
 	// end = Rparen + 1
+	Foreign token.Pos // position of "FOREIGN" keyword
+	Rparen  token.Pos // position of ")" after reference columns

-	Constraint token.Pos // position of "CONSTRAINT" keyword when Implicit is true
-	Foreign    token.Pos // position of "FOREIGN" keyword
-	Rparen     token.Pos // position of ")" after reference columns
-
-	Name             *Ident // optional
 	Columns          []*Ident
 	ReferenceTable   *Ident
 	ReferenceColumns []*Ident
 }

+func (*ForeignKey) isConstraint() {}
+
+// CHECK is check clause in CREATE TABLE and ALTER TABLE.
+//
+//     CHECK ({{.Expr}})
+type Check struct {
+	// pos = Check
+	// end = Rparen + 1
+	Check  token.Pos // position of "CHECK" keyword
+	Rparen token.Pos // position of ")" after Expr
+
+	Expr Expr
+}
+
+func (*Check) isConstraint() {}

Or I can add Check struct like the following to keep the backward compatibility.
But all constraint types must have Name fields and the parser implementation becomes a little clumsy.
It also makes it harder to keep the order of constraints in the statement.
 type CreateTable struct {
 	Name              *Ident
 	Columns           []*ColumnDef
 	PrimaryKeys       []*IndexKey
	ForeignKeys       []*ForeignKey
+	Checks            []*Check
 	Cluster           *Cluster                 // optional
 	RowDeletionPolicy *CreateRowDeletionPolicy // optional
 }

+type Check struct {
+	// pos = Constraint || Check
+	// end = Rparen + 1
+	Constraint token.Pos // position of "CONSTRAINT" keyword when Implicit is true
+	Check  token.Pos // position of "CHECK" keyword
+	Rparen token.Pos // position of ")" after Expr
+
+	Name *Ident // optional.
+	Expr Expr
+}

Adding Constraint seems canonical to me. I'm not sure how problems this backward incompatibility causes. What do you think @tyamagu2?

I mean, the first approach changes the exported struct of ast package. If that doesn't matter, I'd like to take the first approach.

I think this change can be acceptable. PR is welcome. I will review it.


Cli should use custom user agent when making requests to all SDK

Description
See Connection structure that does define all APIs.
When building API objects we need to override User-Agent with RHOAS CLI name and it's version.

Example:
https://github.com/redhat-developer/app-services-cli/blob/metadata/pkg/connection/keycloak_connection.go#L366:L366

cfg.UserAgent = "rhoas-cli_" + version

@wtrocki I would like to work on this one if you do not mind.

@alexal Actually this sounds like bug on go SDK: We do not expose ability there to setup custom user agent (or anything in the config). We  need to triage this issue first with @craicoverflow

We do not expose the ability there to set up a custom user agent (or anything in the config).

Yeah we can just add this new field to the SDK config.

SO actually this would be 2 PRs:

In https://github.com/redhat-developer/app-services-sdk-go to add agent to every config field
Then use agent in the CLI

@alexal this is still for grabs if you want to

@wtrocki yes

@wtrocki please review the first one here https://github.com/redhat-developer/app-services-sdk-go/pull/259


Update for Regulation Endpoint for e85 Regulation schema changes

test suite is failing on the regulatory endpoints
can you check the regulatory.t and overlap.t tests work with your changes?

is this still needed or is it included in the other schema change PR?


fix deadlink

fix bad link.

This change is

Done, thanks @tengqm

cc @tengqm  Please help review this pr, thanks!

This is not a valid change.
If wget https://k8s.io/docs/..../abc.yaml is not returning you a YAML, something is wrong.

Results in mine VMs:
root@SZX1000380318:/ycj/tempfile# wget https://raw.githubusercontent.com/kubernetes/website/master/docs/tutorials/stateful-application/zookeeper.yaml
--2017-11-28 16:13:08--  https://raw.githubusercontent.com/kubernetes/website/master/docs/tutorials/stateful-application/zookeeper.yaml
Connecting to <IP_ADDRESS>:8118... connected.
Proxy request sent, awaiting response... 200 OK
Length: 2967 (2.9K) [text/plain]
Saving to: ‘zookeeper.yaml’

100%[=====================================================================================>] 2,967       --.-K/s   in 0.001s

2017-11-28 16:13:09 (5.54 MB/s) - ‘zookeeper.yaml’ saved [2967/2967]

That's ok! @tengqm

@chenopis Please take a look at this. I have searched the whole project for the secret sauce but failed. It seems that files from /docs/tutorials/stateful-applications/ are suffering from the problem that raw yaml files cannot be returned.
e.g.  This is bad:
wget -v https://kubernetes.io/docs/tutorials/stateful-application/webp.yaml

But, this is good:
wget -v https://kubernetes.io/docs/tutorials/stateful-application/mysql-wordpress-persistent-volume/local-volumes.yaml

This is good too:
wget -v https://kubernetes.io/docs/tutorials/clusters/hello-apparmor-pod.yaml

related issue report: #6043

I think using https://raw.githubusercontent.com/kubernetes/website/master/... is a sufficient workaround. I have a guess as to why this might be happening and will follow up in the issue.

Okay, @chenopis. Let's get the workaround in and figure out a proper fix later by tracking #6043.


Casualmeter Crashes right after opening it

2016-06-05 23:09:32,159 [1] ERROR CasualMeter.App - System.NullReferenceException: Object reference not set to an instance of an object.
at CasualMeter.Common.Helpers.SettingsHelper..ctor() in D:\Workspace\visualstudio\CasualMeter\CasualMeter.Common\Helpers\SettingsHelper.cs:line 40
at CasualMeter.Common.Helpers.SettingsHelper.<>c.<.cctor>b__21_0() in D:\Workspace\visualstudio\CasualMeter\CasualMeter.Common\Helpers\SettingsHelper.cs:line 17
at System.Lazy1.CreateValue() --- End of stack trace from previous location where exception was thrown ---    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()    at System.Lazy1.get_Value()
at CasualMeter.Common.Helpers.HotkeyHelper.Deactivate() in D:\Workspace\visualstudio\CasualMeter\CasualMeter.Common\Helpers\HotkeyHelper.cs:line 56
at CasualMeter.Common.Helpers.ProcessHelper.UpdateHotKeys() in D:\Workspace\visualstudio\CasualMeter\CasualMeter.Common\Helpers\ProcessHelper.cs:line 42
at CasualMeter.Common.Helpers.ProcessHelper.OnFocusedWindowChanged(IntPtr hWinEventHook, UInt32 eventType, IntPtr hwnd, Int32 idObject, Int32 idChild, UInt32 dwEventThread, UInt32 dwmsEventTime) in D:\Workspace\visualstudio\CasualMeter\CasualMeter.Common\Helpers\ProcessHelper.cs:line 47
Help!
My app crashes by itself right after opening it. I tried turning malwarebytes, windows defender, smartscreen and firewall off but same issue. Its been like this for 2 months and i tried fixing myself before bothering you, searched for similar issues but didnt find any.
Windows 10 Home . Exe files and desktop shortcuts were ran as admin.
I appreciate any help! thanks.

Try to delete %appdata%\CasualMeter\settings.json

Thanks Gi0 your suggestion worked! CM working perfectly now.


#134 기업 정보 확인 API

Resolved #134

Codecov Report

Merging #137 (9b767bb) into main (7da7e8b) will decrease coverage by 1.76%.
The diff coverage is 0.00%.

@@             Coverage Diff              @@
##               main     #137      +/-   ##
============================================
- Coverage     33.41%   31.64%   -1.77%
  Complexity      132      132
============================================
  Files            80       81       +1
  Lines           862      910      +48
  Branches          8        8
============================================
  Hits            288      288
- Misses          574      622      +48

Impacted Files
Coverage Δ

...m/benecia/domain/attachment/domain/Attachment.java
16.66% <ø> (ø)

...m/benecia/domain/enterprise/domain/Enterprise.java
16.66% <ø> (ø)

.../enterprise/presentation/EnterpriseController.java
16.66% <0.00%> (-3.34%)
:arrow_down:

...n/payload/response/EnterpriseInfoListResponse.java
0.00% <ø> (ø)

...ation/payload/response/EnterpriseInfoResponse.java
0.00% <0.00%> (ø)

...a/domain/enterprise/service/EnterpriseService.java
1.04% <0.00%> (-0.37%)
:arrow_down:

...ts/dsm/benecia/domain/recruitment/domain/Form.java
100.00% <ø> (ø)

...benecia/domain/recruitment/domain/Recruitment.java
14.81% <ø> (ø)

Continue to review full report at Codecov.

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


ios: sharing system screen snapshot doesn't open the app

Hi,
When taking a screen snapshot and want to share it, my app appears in share menu. If i choose it, the share view of my app appears, but when i click to publish, the menu closes and my app is not displayed.
If i try same thing with example provided in this repository, the app's share menu appears and closes immediately.
Any idea
?

Facing Same issue! @xavax31 Did you find any solution?

@iamjatttin, a lot of hacks. The main problem found was that snapshot app doesn't give simply a image type, but a public url. I finally resolved for my use by opening public.url attachment type in the info.plist of shared extension, and doing some change in swift code, but without really swift skills  ( my fork here ).
I needed also  to change my react native code, to copy the provided file in my app tmp directory, to avoid security access error.
Not perfect because in my case, I only want images or pdf, but the public.url type include every file format.
But this resolve many cases where the plugin didn't work correctly, and is sufficient for me.
info.plist:
	<key>NSExtensionAttributes</key> 		<dict> 			<key>NSExtensionActivationRule</key> 			<string>         SUBQUERY (           extensionItems,           $extensionItem,             SUBQUERY (               $extensionItem.attachments,               $attachment,               ANY $attachment.registeredTypeIdentifiers UTI-CONFORMS-TO "public.image"               || ANY $attachment.registeredTypeIdentifiers UTI-CONFORMS-TO "public.url"             ).@count == 1         ).@count == 1 			</string> 		</dict>

@xavax31
I've had a similar but a but different problem (sharing screenshots)
I've noticed that within your storeImageRawData function you're loading the item again from the provider. Not sure whether this is intended to work in swift, but then again, I'm lacking swift skills myself. Once I've removed this, your solution of handling it as UIImage has worked nicely for me, so thanks! Posting my unverified, single device, limited manual tested, slim patch for others that end up here
diff --git a/node_modules/react-native-share-menu/ios/Modules/ShareMenuReactView.swift b/node_modules/react-native-share-menu/ios/Modules/ShareMenuReactView.swift
index e290cce..7380ee4 100644
--- a/node_modules/react-native-share-menu/ios/Modules/ShareMenuReactView.swift
+++ b/node_modules/react-native-share-menu/ios/Modules/ShareMenuReactView.swift
@@ -147,7 +147,7 @@ public class ShareMenuReactView: NSObject {
                                         // Writing the image to the URL
                                         try imageData.write(to: imageURL)

-                                        results.append([DATA_KEY: imageUrl.absoluteString, MIME_TYPE_KEY: imageURL.extractMimeType()])
+                                        results.append([DATA_KEY: imageURL.absoluteString, MIME_TYPE_KEY: imageURL.extractMimeType()])
                                     } catch {
                                         callback(nil, NSException(name: NSExceptionName(rawValue: "Error"), reason:"Can't load image", userInfo:nil))
                                     }
diff --git a/node_modules/react-native-share-menu/ios/ReactShareViewController.swift b/node_modules/react-native-share-menu/ios/ReactShareViewController.swift
index f42bce6..ee36062 100644
--- a/node_modules/react-native-share-menu/ios/ReactShareViewController.swift
+++ b/node_modules/react-native-share-menu/ios/ReactShareViewController.swift
@@ -13,7 +13,7 @@ class ReactShareViewController: ShareViewController, RCTBridgeDelegate, ReactSha
   func sourceURL(for bridge: RCTBridge!) -> URL! {
 #if DEBUG
     return RCTBundleURLProvider.sharedSettings()?
-      .jsBundleURL(forBundleRoot: "index.share", fallbackResource: nil)
+      .jsBundleURL(forBundleRoot: "index.share")
 #else
     return Bundle.main.url(forResource: "main", withExtension: "jsbundle")
 #endif
diff --git a/node_modules/react-native-share-menu/ios/ShareViewController.swift b/node_modules/react-native-share-menu/ios/ShareViewController.swift
index 12d8c92..4653c4c 100644
--- a/node_modules/react-native-share-menu/ios/ShareViewController.swift
+++ b/node_modules/react-native-share-menu/ios/ShareViewController.swift
@@ -166,10 +166,6 @@ class ShareViewController: SLComposeServiceViewController {
         self.exit(withError: error.debugDescription)
         return
       }
-      guard let url = data as? URL else {
-        self.exit(withError: COULD_NOT_FIND_IMG_ERROR)
-        return
-      }
       guard let hostAppId = self.hostAppId else {
         self.exit(withError: NO_INFO_PLIST_INDENTIFIER_ERROR)
         return
@@ -181,18 +177,41 @@ class ShareViewController: SLComposeServiceViewController {
         return
       }

-      let mimeType = url.extractMimeType()
-      let fileExtension = url.pathExtension
-      let fileName = UUID().uuidString
-      let filePath = groupFileManagerContainer
-        .appendingPathComponent("\(fileName).\(fileExtension)")
+      if let uiImage = data as? UIImage {
+        let fileExtension = "png"
+        let fileName = UUID().uuidString
+        let filePath = groupFileManagerContainer
+          .appendingPathComponent("\(fileName).\(fileExtension)")

-      guard self.moveFileToDisk(from: url, to: filePath) else {
-        self.exit(withError: COULD_NOT_SAVE_FILE_ERROR)
+        guard let rawData = uiImage.pngData()
+        else {
+          self.exit(withError: "Error while getting raw data")
+          return
+        }
+
+        guard FileManager.default.createFile(atPath: filePath.path, contents: rawData)
+        else {
+          self.exit(withError: "Error while createFile")
+          return
+        }
+        self.sharedItems.append([DATA_KEY: filePath.absoluteString, MIME_TYPE_KEY: "image/png"])
+      } else if let url = data as? URL {
+        let mimeType = url.extractMimeType()
+        let fileExtension = url.pathExtension
+        let fileName = UUID().uuidString
+        let filePath = groupFileManagerContainer
+          .appendingPathComponent("\(fileName).\(fileExtension)")
+
+        guard self.moveFileToDisk(from: url, to: filePath) else {
+          self.exit(withError: COULD_NOT_SAVE_FILE_ERROR)
+          return
+        }
+
+        self.sharedItems.append([DATA_KEY: filePath.absoluteString, MIME_TYPE_KEY: mimeType])
+      } else {
+        self.exit(withError: COULD_NOT_FIND_IMG_ERROR)
         return
       }
-
-      self.sharedItems.append([DATA_KEY: filePath.absoluteString, MIME_TYPE_KEY: mimeType])
       semaphore.signal()
     }
   }

@filipgerat Is this your patch from @xavax31 's fork? Or is that patch from rn-share-menu master branch? I'm currently trying to get the fork running.

@filipgerat Your patch is working great! Thank you so much. Been struggling with this for a long while.

The error is in the ShareMenuReactView class in the extractDataFromContext function


graphics: HTML5-Canvas-like API

Random note
How to implement
For simple primitives, GLSL would work. For complex things like filling polygon, GLSL would also work but stencil buffers might be better.
Or, how about implementing scan-line algorithm on GLSL without vertices?
What kind of features there are in HTML5 Canvas
Ref: https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D

Shapes / Paths

Line
Rectangle
Polygon
Arc

Circle
Ellipse

Bezier Curve
Quadratic Curve

Line style

Width
Cap
Join
Miter Limit
Dash

Fill/Stroke Style

Solid
Gradient
Pattern

Shadow

Blur
Color
Offset

Paths

Fill (non-zero / even-odd) (NanoVG supports only even-odd)
Stroke
Clip

Others

imageSmoothingEnabled (Anti alias)

I don't think we need all the above items though...
Text
As for text rendering, we already have github.com/hajimehoshi/ebiten/text and that's fine. For true type fonts, using bezier curves might be more effective, but the text package accepts more general font.Face interface, that can be any rasterized data.
Filling pattern / Clip
We already have composition modes, so I don't think we need API to specify complex filling pattern and clipping. Just filling with a solid color might be enough.
Actual use cases
I need actual use cases before considering API. This is similar way to Go2 language change.

Prototyping
Graphs or charts
UI

Let's see what NanoVG https://github.com/memononen/nanovg is doing and decide if I should convert this into Go or take another way.

Random note
How to implement
I was thinking how to implement this. For simple primitives, GLSL would work. For complex things like filling polygon, GLSL would also work but stencil buffers might be better.
What kind of features there are
Ref: https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D

Shapes / Paths

Line
Rectangle
Polygon
Arc

Circle
Ellipse

Bezier Curve
Quadratic Curve

Line style

Width
Cap
Join
Miter Limit
Dash

Fill/Stroke Style

Solid
Gradient
Pattern

Shadow

Blur
Color
Offset

Paths

Fill (nonzero / evenodd)
Stroke
Clip

I don't think we need all the above items though...
Text
As for text rendering, we already have github.com/hajimehoshi/ebiten/text and that's fine. For true type fonts, using bezier curves might be more effective, but the text package accepts more general font.Face interface, that can be any rasterized data.

It looks like pygame has not-so-complex API
http://www.pygame.org/docs/ref/draw.html

@hajimehoshi my use case is to design high quality UI.
The first comment you make in this issue pretty much sums it up. It also makes sense to use Canvas2D Web as a basis.
I guess its a matter of implementing these for opengl also ? These i assume woudl be GLSL accelerated ?
--
i am fiddling around with how to make it easier to design with these primitives. Almost like a higher level markup. I knwo that is out of scope, but just letting you know.

my use case is to design high quality UI.

Speaking of high quality, you might need https://github.com/hajimehoshi/ebiten/issues/395. Ebiten now treats only platform-independent pixels and can't draw high resolution images that matches high-dpi displays.
I understand your use case but introducing such big feature is very risky and I'd like to consider it very carefully.

The first comment you make in this issue pretty much sums it up. It also makes sense to use Canvas2D Web as a basis.
I guess its a matter of implementing these for opengl also ? These i assume woudl be GLSL accelerated ?

I'm thinking to use GLSL. Canvas is useful but it would make Ebiten internal implementation more complex.

I noticed the DPI problem too so glad you mentioned it.
Regarding using glsl, I think your right.
If you have a basic example of doing it with glsl I can try out different use cases to extent it and see how I go and push it's back if I get anything worthwhile going.

No examples here.
BTW, if you want to make a UI, doesn't 9-patches way work?

yeah i saw the 9 patches technique you used.
Its basically just a raster image though ?
My main reason for bringing this up is to support different screen sizes. That tends to mean

making the source of controls vector based. I was thinking about an idea of creating raster images at compile time and embedding them as a work around.
detecting DPI at runtime.
layout constraints to allow the different GUI components to resize based on screen size differences and window resizes.

OK, so how about detecting the platform's DPI and using 9-patches? You'd need to prepare same images for multiple resolutions.

http://godoc.org/github.com/hajimehoshi/ebiten/ebitenutil#DrawLine Added DrawLine and DrawRect mainly for debugging or prototyping purpose. These are just for debugging, and we might still need HTML5-Canvas-like APIs.

great . thanks for the update. THat a perfect base.
next wil be to try out constraint solvers for different layouts and resizes. There are good ones in match that can be used.

Regarding detecting the DPI can we do that now ?

I wanted to know whether you really need vector graphics instead of 9-patches. If we can know DPI, I think 9-patches would work even in high-definition.

Maybe it's best if I just explain what I am doing with ebiten and where I am hitting problems.
On desktop I need to run full screen.
At the moment this results in the ebiten canvas getting scaled up to fit the entire window / full screen.
So I guess knowing the DPI will allow us to start to render elements at the right size.
Most of my GUI uses the lines and reactances primitives in ebiten. I also do use images for logos and things like that
So I am guessing then that once we know the DPI we can start to do some logic in the way we scale things...
Sorry about late reply !

I am currently using the constraints engine in matcha to layout UI and have it adapt to new content and screen sizes in terms of responsive design.
Thought this is relevant since you asked for use cases.
His code does the layout calc at golang level and then sends all sizes to native GUI over protocol buffers, which is if course a different architecture stack to ebiten. But the point is that the layout / constraints code works fantastically and could be used to help with the scaling aspects that all developers will inevitably hit with different screen sizes and DPI.
https://github.com/gomatcha/matcha/tree/master/layout

OK so probably what you want is to detect the native DPI. Let's discuss at #395 if needed.

Ok i asked over at #395

As a person who wants and uses primitives: Pixel's interface to these is moderately useful. Of particular note/import are polylines. Polyline support is very helpful for a lot of use cases. But even just line segments that can specify world-space width and length and transforms are pretty handy. And honestly, a "rect" type that can do arbitrary transforms is probably fine, but there are definite performance advantages to being able to specify more stuff in fewer vertexes. (Polyline approaches one point per line segment; rectangles are two triangles per line segment, and require you to compute four or six points, depending.)
For my immediate purposes, I'll probably just make a generic texture that's all-pixels-FFFFFFFF, and draw scaled/rotated copies.

For my immediate purposes, I'll probably just make a generic texture that's all-pixels-FFFFFFFF, and draw scaled/rotated copies.

ebitenutil.DrawRect and DrawLine do the same thing. Please take a look: https://godoc.org/github.com/hajimehoshi/ebiten/ebitenutil#DrawLine

They do, but DrawLine doesn't seem to have a width specification, and DrawRect doesn't provide a rotatable thing. So if I want a pretty antialiased line-segment-like-thing, I think I need to draw an "image", even if it's an all-pixels-white image, so I have all the transforms available.

Ah, that makes sense.

Speaking of performance, rendering lines by rects would not be good, but I
guess this would matter when 20k or so many lines are rendered. How many
like segments do you plan to render?
2017年12月31日(日) 4:25 seebs<EMAIL_ADDRESS>
They do, but DrawLine doesn't seem to have a width specification, and
DrawRect doesn't provide a rotatable thing. So if I want a pretty
antialiased line-segment-like-thing, I think I need to draw an "image",
even if it's an all-pixels-white image, so I have all the transforms
available.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/hajimehoshi/ebiten/issues/137#issuecomment-354563762,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AABCNpoiE5Q7Z2Sk4DqaEzRcLMj73jTFks5tFo4_gaJpZM4HUCbS
.

As many as I can. 20k sounds good. Fewer is probably fine. depends on other issues also.

What's the status of drawing shapes in ebiten? Rectangles are trivial, is there an efficient way to draw triangles / circles ?

No progress so far. Now I'm busy with working on performance optimization especially for mobiles.

The standard use case for me would be debugging collisions, having an easy way to draw circles and triangles is a quick way to visualize collision boxes.

Ah, that makes sense...

This can be indirectly supported by DrawTriangle. I think adding a package to draw primitive shapes would be very useful.

What about directly using other libraries like
https://github.com/fogleman/gg and
https://github.com/llgcode/draw2d/

They manipulates pixels and doesn't use polygons, right?

As the first step, I think I'll implement these features:

Shapes:

Line
Rectangle
Circle
Ellipse
Arc

Option to fill or not

Reference: https://www.pygame.org/docs/ref/draw.html

https://godoc.org/github.com/hajimehoshi/ebiten/vector Created a 'vector' package. I think I'll add more various functions to Path.

Let me close this issue by the following issues:

vector: Add various shapes
vector: Fill


Upgrade grey/charcoal

Feature
This update pulled the latest colorway version to update the grey and charcoal color. This version also add support for the ash color (which is the same as grey)

Pull Request Test Coverage Report for Build 3408

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 94.545%

Totals

Change from base Build 3406:
0.0%

Covered Lines:
6355

Relevant Lines:
6589

💛  - Coveralls


[exporter/datasetexporter]: Call the currect function on shutdown

Description: When exporter is shutting down, we have to call the correct shutdown function.
We have introduced new function that should be called during the shutdown but we haven't updated the datasetexporter code.
Link to tracking Issue: https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/24253
Testing:
Documentation:
see also https://github.com/scalyr/dataset-go/pull/30/files

This is the following task - https://sentinelone.atlassian.net/browse/DSET-4050 and I am planning to verify it. For now I do not know, how to verify it, that it's work as expected, that would really convince me. So I will do some best effort.

@martin-majlis-s1 One easy quick manual way could be to test it with the helm chart / Kubernetes.
Create new helm chart deployment, send some data, stop sending data, run helm upgrade to upgrade the app.
This will result in new app roll out (old pod will be and new one created). If the change is working correctly, old pod should stop fast (since no data is flowing in) and Kubernetes shouldn't need wait up to 60 seconds / configured grace period before killing the pod.
Keep in mind though that this only covers simple "no data is flowing in" path. It would still be nice to also test data is flowing in and new data is being rejected flow.

I actually assume you wanted to create this branch against datasetexporter-latest branch and not the main one, or?


Esc and Tab do not playback correctly

The values for Esc/Tab are injected correctly during playback but the engine doesn't register them. They're likely privileged keys or something.
DirectInput mouse movement has similar behavior where we have to mask off the writes from polling in order to inject the playback. Might be something similar here.

Input is now going to be handled at a lower level through dinput8 hooks: https://github.com/Scaless/HaloTAS/commit/05a74f82b57bbbe42b0ab79070d217ecd39fafc4


[Beta5] Creating Crucible Crashes

Right clicking Cauldron with Salis Mundus (Creating the Crucible) causes a crash. Loading back into the world, the Cauldron remains unchanging, and the Salis Mundus is still available to be used. This does not effect the Arcane Workbench, though I can not say if it effects anything else, as I'm not that far into the mod ;P
Cheating in a Crucible seems to work fine.
Crash Report

Fixed in Beta 6, bud.

@Dayyer1 I posted this when B5 had just come out, but thanks for letting me know B6 was a thing ^-^


Evolution doesn’t see installed Aspell dictionaries

Issue description
In the Evolution mail client, I can only see a “Hebrew” dictionary, while EN and DE are installed in the system.
Setting ASPELL_CONF="dict-dir /run/current-system/sw/lib/aspell" doesn’t help either.
Steps to reproduce

Install the following packages: gnome3.evolution, aspell, aspellDicts.en, aspellDicts.de.
Open Evolution and go to Edit → Preferences → Editor → Spell checking.
There, you can only see Hebrew.

Technical details

System: 17.03.1700.51a83266d1 (Gorilla)
Nix version: nix-env (Nix) 1.11.13
Nixpkgs version: "17.03.1700.51a83266d1"
Sandboxing enabled: yes

The ASPELL_CONF variable is used only by aspell binary and not by libaspell library.
I'm using this patch and something like this in configuration.nix
system.replaceRuntimeDependencies = with pkgs; [
    { original = aspell;
      replacement = aspell.overrideAttrs (oldAttrs: rec {
         patchPhase = oldAttrs.patchPhase + ''
         patch -p1 < ${./dict-dir-from-nix-profiles.patch}
       '';
      });
   }
];

It its similar to how is setup the ASPELL_CONF in Nix now, but works even for libaspell.
I cloud make pull request if anyone likes this.

♥ Awesome! Please, do!

Some details:
ASPELL_CONF is read by Config.read_in_settings, which is not consistently used in the libaspell API, especially not when listing dictionaries. The aspell binary always calls read_in_settings at start. So the ASPELL_CONF is partially broken in the aspell upstream.

I confirm this works on nixos-unstable.
Thank you very much, @deedrah!
Maybe you could also look at https://github.com/NixOS/nixpkgs/issues/30920 — it seems similar. For some reason LibreOffice is not picking this. :/


Add breadcrumb for blog posts

Have you read the Contributing Guidelines on issues?

[X] I have read the Contributing Guidelines on issues.

Description
Add 2 breadcrumbs to blogs functionality; so blogs would have breadcrumbs in the same way docs have breadcrumbs:

Blog archive page

[BLOG ROOT URL] -> Archive

Any blog post page

[BLOG ROOT URL] -> Archive -> [BLOG POST]

Has this been requested on Canny?
Yes: https://docusaurus.io/feature-requests/p/add-breadcrumb-for-blog-posts
Motivation
I've been on a bit of a mission to improve my Docusaurus blogs SEO. The agency I'm working with suggested adding breadcrumb Structured Data. I've done that implement an invisible breadcrumb using JSON-LD here:
https://johnnyreilly.com/docusaurus-blogs-adding-breadcrumb-structured-data
I'm happy with what I've done, but I'm wondering if it might make sense for Docusaurus to have a breadcrumb in place for blog posts by default.  Given that docs already have a breadcrumb (and one that surfaces Structured Data), I'm wondering if it might be useful if blog to as well?
If the answer if "yes", the follow on question becomes: what breadcrumb makes sense? In my head, this makes sense (and it's what I've implemented for my blog):
[BLOG ROOT URL] -> Archive -> [BLOG POST]
API design
I'm unsure what level of configuration would make sense here.  Perhaps as simple as having a breadcrumbEnabled: boolean option that defaults to true to allow people to opt out.
It seems likely that we could reuse the existing breadcrumb mechanism (I've had a quick look at the code and it seemed potentially shareable.)
What do you think?
Have you tried building it?
No
Self-service

[X] I'd be willing to contribute this feature to Docusaurus myself.

[BLOG ROOT URL] -> Archive -> [BLOG POST]

That looks kind of weird to me. It looks related to your usage of Docusaurus but would anyone else use this? I wouldn't turn it on our own blog for example.
Maybe it makes sense for users to have multiple blogs? 🤷♂
The home link seems legit, but the "archive" link looks a bit unnatural to me.
Maybe it's better to see if there's traction/upvotes/feedback from the community.

Canny: https://docusaurus.io/feature-requests/p/add-breadcrumb-for-blog-posts

docusaurus.io/blog
It has the archive under it:
docusaurus.io/blog/archive

I don't really agree with that statement 🤪
The blog home is currently a paginated list, and for me the archive is not a "child" of the home. It's just another independent blog page feature, similar to any tag page that also link to the blog post. We can't say there's a parent>child relationship, it's just a different way to access the blog post.
Similarly, we could add later:

A blog author page. Should the author appear in the breadcrumb? (and what if there are multiple authors 🤷♂ )
A blog landing page showing the most popular posts, again should it appear in the breadcrumb
A blog graph view showing an interactive graph with connections between various node types (authors, tags, posts...)

Adding "Archive" in the breadcrumb would mean we bias toward the archive page feature. In the end, there are multiple possible breadcrumb options (or will be once we add more features), and what we have is more of a graph than a tree hierarchy.

In the end, there are multiple possible breadcrumb options (or will be once we add more features), and what we have is more of a graph than a tree hierarchy.

I think you raise an interesting point. Essentially what you're saying is: which breadcrumb should the physical breadcrumb be? In my post around adding a structured data breadcrumb, I could implement all permutations - so that's what I did based on the Google guidelines:
https://johnnyreilly.com/docusaurus-blogs-adding-breadcrumb-structured-data
Having a physical breadcrumb means rendering a single breadcrumb (or at least I've never seen anyone render multiple). I picked Home -> Archive -> Blog because it means people can get to all possible posts from there.
As a side note, in my SEO travels I've been learning that one of the issues with default Docusaurus from an SEO perspective is that the archive page isn't surfaced into navigation by default. As a consequence, crawlers navigate to older blog posts by crawling the pagination. And that crawling of pagination amounts to reduced SEO juice the more crawling is required. Weird but apparently that's a ranking factor.

Now, having "Home > Post" makes sense to me.

I think this would be good also. Would you be happy with that?

Not sure what you mean by "Physical" 😅 Is this the one that ends up being rendered?
Is it common to render all possible permutations as structured data?

The blog breadcrumb should be consistent with docs, and it has a link to the site homepage.
"Site Home > Blog Home > Blog Post" seems appropriate. You can create a PR and we can see if it looks good in practice.

the archive page isn't surfaced into navigation by default

Yes this is a problem. The only way for Google to find is by submitting the sitemaps manually. In your case it shouldn't change anything because you have a link to the archive page in your navbar. But it is indeed a SEO problem for many other Docusaurus sites.
My idea was to introduce the concept of blog sidebar items, and allow us to add an item of type "archiveLink" so that we can access the archive page from the bottom of the blog sidebar:

That's probably also worth adding this right now, even if the blog sidebar items thing is not yet ready and would require a little breaking change (because we now need an item of type "postList" or something)

Not sure what you mean by "Physical" 😅 Is this the one that ends up being rendered?

Yup!

Is it common to render all possible permutations as structured data?

I don't know - I did it because it was possible. I'm not that sure it's useful.

My idea was to introduce the concept of blog sidebar items, and allow us to add an item of type "archiveLink" so that we can access the archive page from the bottom of the blog sidebar:

sounds good. Is that different from the "last X posts" that currently exists? Or is the idea that existing component might slot into a new blog sidebar alongside say an archiveLink?

this is what I meant by last X posts. I think you and I are talking about the same thing.

My idea is to have something like this:
blogSidebarItems: [
  {type: "xLastPosts",limit: 10},
  {type: "archiveLink",label: "See all posts"},
  {type: "popularTags",limit: 5},
  {type: "popularAuthors",limit: 5},
]

Oh nice!


quality of life - open "node properties" on double-click

Background
Currently, opening the "node properties" menu (image 1) is not intuitive and requires multiple clicks.
To open the menu, you must either right-click on a node (image 2)  or know about the small button at the top right (image 3).
Proposal
I believe the intuitive behavior is that double-clicking on a node expands/collapses the "node properties" menu.
Appendix
Image 1

Image 2

Image 3

Duplicate of https://github.com/elyra-ai/elyra/issues/2017, which requires https://github.com/elyra-ai/elyra/issues/2275 to make the behavior customizable.