feat: add file search example

Assistants File Search Example
I was utilizing the openai-go library to experiment with some file_search enabled assistants, but didn't find any direct examples doing so, so after making one myself I figured I would offer it to the list of examples in the repository if that's found to be helpful. To me, the addition of this example is different enough from the examples already present that it could be useful to someone else.
After reading through the CONTRIBUTING.md, I can verify that the formatter made no changes and the example works in the context of the examples directory. I also tried my best to keep the style of this example consistent with the other examples in the repo.
If there's something I've missed, or if you don't think the addition of this example is necessary, feel free to let me know!
Thanks for building this!

Hi, thanks so much for making this example! We'll discuss this internally and keep you updated.

Just to keep you updated. We've added some helpers for polling uploads, and used them in some a similar example to what you've made. Both will be available shortly!
For now, these assistants examples are going to live in examples/beta.
Thanks again for making this!


Input parameters

Addresses: https://github.com/streamingfast/substreams/issues/38
by @colindickson

Seems this has been merged by other means.


Allow event processing cursor to be set in the UI

Problem

websqrl only operates on current event streams
bluesky demo rules haven't been updated

Solution
I added a new very much work-in-progress cursor selector UI element to the bottom of the screen. It shows the current selected cursor and shows event processing progress. Check out the attached GIF for the general idea.
I moved event downloading to the web worker. The UI is only responsible for setting the "playhead" aka selected point where event processing should begin. You'll eventually be able to select playback speed to either "realtime" or some arbitrary millisecond value but for now it's processing events as fast as possible (i.e. next tick).
There's a new file, EventDomain, that handles all event-related state in the worker. It's got a few interesting methods:

setCursor: set the date where event processing should begin
getNextEventDelay: get the number of milliseconds to wait before processing the next event
processNextEvent: do the thing

Once all the events for the current cursor have been processed, EventDomain increments the cursor by 10 minutes and then carries on. If the cursor is less than 11 minutes in the future, getNextEventDelay returns the number of milliseconds to wait until more data can be fetched.
The path to the date in each event object is now specified via fake jsonpath. I'm not sold on it but it's the only alternative I could think of to letting each demo set its own "getDate" function (can't serialise a function and i don't want to bake demo-specific stuff into the web worker).
none of the names for any of these things are final, feel free to rename things as you please. naming things is hard.
I also added a mock, dev-only Bluesky API so I could test event processing locally without having to wait for 10K events to go by.
Result
Bluesky demo works now. There are still some bugs, most notably with cursor incrementing when enough time has progressed. I'll be looking into these bugs next.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

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 61.089%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
15801

Relevant Lines:
24117

💛  - Coveralls


Can't use in remote vscode

Verify it's not a duplicate bug report

[X] I searched for similar bugs reported on GitHub and nobody has reported a similar issue. Search all issuees.
[X] I read Troubleshooting guide on Readme and there is not a guide on how to solve my problem.

Describe the Bug
I can use Genie normally locally, but it cannot be used in remote.
The error received is as follows：
request to https://api.openai.com/v1/chat/completions failed, reason: connect ETIMEDOUT <IP_ADDRESS>:443
Please tell us if you have customized any of the extension settings or whether you are using the defaults.
gpt-3.5-turbo
Additional context
No response

Could you please help us to solve this problem?  When I use openapi in another software, it worked fine, but it didn't work for this plugin in vscode even if in a same network environment.

Hi - we have a section to run the extension in Remote environments in our Readme. But you can check out these similar issues (Search ETIMEDOUT in this repo):

https://github.com/gencay/vscode-chatgpt/issues/62
https://github.com/gencay/vscode-chatgpt/issues/176
https://github.com/gencay/vscode-chatgpt/issues/177


Make some File/Dir methods private

See https://github.com/godotengine/godot/pull/65271#discussion_r980899370
The remaining underscored methods are used for binding and can be useful being public (some of them are being used in fact).

Thanks!


Why does  this plugin work fine on Xiamoi and Huawei better than "barcode_scanner_kit" plugin

I used barcode_scanner_kit plugin but it doesn't work on Xiaomi and Huawei rather than that it works fine.
My question is if anyone face this problem or how this plugin work to fetch data rather than barcode_scanner_kit.

This will help https://www.youtube.com/watch?v=w-n0jUrUtPI&list=PLQhQEGkwKZUqZC2QAp_u4ZAzqpsCCRvmM&index=10 https://www.youtube.com/watch?v=QpnVENc9dIA&list=PLQhQEGkwKZUqZC2QAp_u4ZAzqpsCCRvmM&index=11


Logger: thread panic in Vercel / NextJS if @valkey/valkey-glide attempts to log to file

Describe the bug
Deploying @valkey/valkey-glide to Vercel / nextjs will crash the serverless functions:
thread '<unnamed>' panicked at /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tracing-appender-0.2.3/src/rolling.rs:154:14:
initializing rolling file appender failed: InitError { context: "failed to create log directory", source: Os { code: 30, kind: ReadOnlyFilesystem, message: "Read-only file system" } }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread '<unnamed>' panicked at library/core/src/panicking.rs:221:5:
panic in a function that cannot unwind
stack backtrace:
0:     0x7f89b83a1d1f - <unknown>
1:     0x7f89b810c62b - <unknown>
2:     0x7f89b83767ee - <unknown>
3:     0x7f89b83a65ce - <unknown>
4:     0x7f89b83a76ab - <unknown>
5:     0x7f89b83a6f52 - <unknown>
6:     0x7f89b83a6ee9 - <unknown>
7:     0x7f89b83a6ed4 - <unknown>
8:     0x7f89b80cbde4 - <unknown>
9:     0x7f89b80cbe4c - <unknown>
10:     0x7f89b80cbdf9 - <unknown>
11:     0x7f89b8217f99 - <unknown>
12:     0x56462976b63e - _ZN6v8impl12_GLOBAL__N_123FunctionCallbackWrapper6InvokeERKN2v820FunctionCallbackInfoINS2_5ValueEEE
13:     0x564629abb41f - _ZN2v88internal25FunctionCallbackArguments4CallENS0_15CallHandlerInfoE
14:     0x564629abbd19 - _ZN2v88internal12_GLOBAL__N_119HandleApiCallHelperILb0EEENS0_11MaybeHandleINS0_6ObjectEEEPNS0_7IsolateENS0_6HandleINS0_10HeapObjectEEENS8_INS0_20FunctionTemplateInfoEEENS8_IS4_EEPmi
15:     0x564629abc225 - _ZN2v88internal21Builtin_HandleApiCallEiPmPNS0_7IsolateE
16:     0x56462a5ff1b6 - Builtins_CEntry_Return1_ArgvOnStack_BuiltinExit
thread caused non-unwinding panic. aborting.

Tried multiple workarounds:
Logger.log = () => void 0;

Logger.setLoggerConfig("error", undefined);

But I still ran into the same problem. I believe the library is initializing the library on load of the module.
Expected Behavior
Make file appending lazy such that setLoggerConfig with an undefined file name disables file name based logging.
Current Behavior
The library attempts to create a logging directory automatically.
Reproduction Steps

Create a nextjs app with a app route cache for testing purposes. Simple GET/POST to set/get a key value.
Set next.config.js to config -> experimental -> serverComponentsExternalPackages to  include "@valkey/valkey-glide"
Deploy to vercel. Make sure you're using NodeJS 20.x.
Attempt to set/get a key.
See logs with panic errors.

Possible Solution
Avoid creating the directory until logs are configured. Perhaps always assume stdout and only if configured to use files should the library use file logging.
Additional Information/Context
No response
Client version used
1.1.0
Engine type and version
Redis 7.x
OS
Vercel
Language
TypeScript
Language Version
TypeScript ^5.0.3
Cluster information
No response
Logs
No response
Other information
No response

Hi :) Thanks for opening the issue!
This issue was brought up and fixed, yet not released - 2387.
It will be officially released in a month, and meanwhile a release candidate will be out very soon with the fix.
I'm closing the issue, please follow up in the issue linked, I'll post there when the candidate is out and can be used.


Update the documentation to describe using symlinks for sharing web identity token file for 'repository-s3' plugin

Description
Update the documentation to describe using symlinks for sharing web identity token file for 'repository-s3' plugin
Issues Resolved
Part of https://github.com/opensearch-project/OpenSearch/issues/6312
Checklist

[X] By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and subject to the Developers Certificate of Origin.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Thanks a lot @kolchfa-aws , the suggestions have been incorporated!

@reta What versions of OpenSearch does this apply to (which backports do we need to add)?

@kolchfa-aws 2.6.0 only (for now)


Where to change backgroundColor

Hi,
Very nice dropdown :-)
Im trying to change the YNDropDownMenu backgroundColor to UIColor.white.withAlphaComponent(0.0), I can't find where to do this, any suggestions?
Thanks
Bennie

Sorry for late response.
Maybe, you can change color in YNDropDownButton


isdayblocked dates not working properly

i passed 17th and 19th to blocked but it is blocking other dates 16th,20th, in photo. i think it is utc issues

Did you figure it out? Others will want to benefit in the future.

yes that time utc issues  like check akrion answer


Move MacVim when the titlebar option is Hidden?

State: Currently impossible.
Problem: When titlebar option Hidden selected, no way to move the MacVim editor.
System: MacOSX Big Sur 11.2.3 (20D91)
Picture:

Is this a feature?

Yes this is just how it works. It's mostly useful if you already have the window at a particular place and don't want the distraction of the title bar. If you want to be able to move the window, don't hide the titlebar.

Yes this is just how it works. It's mostly useful if you already have the window at a particular place and don't want the distraction of the title bar. If you want to be able to move the window, you may want to just leave the titlebar visible.

Do we have a toggle shortcut for this? So I won't have to do this from preference every time.

No we don't currently have one.

The main reason for this feature's existence is mostly to make it so that when you are say pinning the app to the left or the right side of the screen, you can fully utilize the screen space, but it's not really designed to be dragged around. Usually that's done by third-party tools like Spectacle which handles moving the window for you (although you can also use the Window menu). A title-less window is generally an oddity in macOS, since most macOS apps do have one, so I don't think it's worth adding too much feature support for this.

In Alacritty you can move the window and resize it even when the window's title bar is hidden, which is a very nice feature to have (for me). I miss it very much in MacVim.


Added example of bulk add

Added example of how to bulk add users to M365 group
@chrisda  FYI

Docs Build status updates of commit c5f1fb5:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

exchange/exchange-ps/exchange/Add-UnifiedGroupLinks.md
:white_check_mark:Succeeded
View (exchange-ps)

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

Docs Build status updates of commit cb61009:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

exchange/exchange-ps/exchange/Add-UnifiedGroupLinks.md
:white_check_mark:Succeeded
View (exchange-ps)

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

Docs Build status updates of commit 82c1965:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

exchange/exchange-ps/exchange/Add-UnifiedGroupLinks.md
:white_check_mark:Succeeded
View (exchange-ps)

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


Test Client-side PR

Changes Unknown when pulling 4c1c830b50daa3735a6435f94616ad8cadeb59c4 on feature/143585203/build-frontend-components-with-effective-UI/UX into ** on master**.

Changes Unknown when pulling daacd5214998be51f9010acd8fe084832ad5c14c on feature/143585203/build-frontend-components-with-effective-UI/UX into ** on master**.

Changes Unknown when pulling 1d567a3023eeb70ddd290559bdb636c8f14a6ca7 on feature/143585203/build-frontend-components-with-effective-UI/UX into ** on master**.

Changes Unknown when pulling b7fcddf6b55daae1cfd7f5673fbf9d9faccdd3db on feature/143585203/build-frontend-components-with-effective-UI/UX into ** on master**.

Changes Unknown when pulling efbaf7b0ce770e88bfe50903cd2a282b7f0d2fb7 on feature/143585203/build-frontend-components-with-effective-UI/UX into ** on master**.

Changes Unknown when pulling e8222fe9d1cac702cb25ad791e15305c8573d59f on feature/143585203/build-frontend-components-with-effective-UI/UX into ** on master**.

Changes Unknown when pulling afbeaa6b1168ab0d384207ddfec90006736c045c on feature/143585203/build-frontend-components-with-effective-UI/UX into ** on master**.

Changes Unknown when pulling 4f11ffb3e776f873ad84d5d0599c9837ae56f8fa on feature/143585203/build-frontend-components-with-effective-UI/UX into ** on master**.

Changes Unknown when pulling 4f11ffb3e776f873ad84d5d0599c9837ae56f8fa on feature/143585203/build-frontend-components-with-effective-UI/UX into ** on master**.

Changes Unknown when pulling 4f11ffb3e776f873ad84d5d0599c9837ae56f8fa on feature/143585203/build-frontend-components-with-effective-UI/UX into ** on master**.

Changes Unknown when pulling e2b57f46df069005ccf0bd31827ff5a56940b644 on feature/143585203/build-frontend-components-with-effective-UI/UX into ** on master**.

Changes Unknown when pulling 58ea810e7021a3dd48990347f6901edfeaebebfb on feature/143585203/build-frontend-components-with-effective-UI/UX into ** on master**.

Changes Unknown when pulling a62b905b6e3ffcdbf94902f6010fa2573a3654a3 on feature/143585203/build-frontend-components-with-effective-UI/UX into ** on master**.

Changes Unknown when pulling d8dad06eab0715689bdcc5d52e3483fc39b5b4de on feature/143585203/build-frontend-components-with-effective-UI/UX into ** on master**.

Changes Unknown when pulling 2ea901e03d2c1612f6b3f845b53358814396cc18 on feature/143585203/build-frontend-components-with-effective-UI/UX into ** on master**.

Changes Unknown when pulling edb073d7c8b901483100f997f0d6309627711b22 on feature/143585203/build-frontend-components-with-effective-UI/UX into ** on master**.


Cache get reset preloading Portable Hard Drive Folder

Hi, my cache get reset if i add new folder from Portablle Hard Drive. Moreover, is it possible to skip previously preloaded files and preload new files or changes in the folder / drive
Regards

Hi, my cache get reset if i add new folder from Portablle Hard Drive.

Cached thumbs from removable storage gets removed when the device is removed, similar to indexing. It is sadly how windows operates for as long as i can remember, you cannot prevent it.

is it possible to skip previously preloaded files and preload new files or changes in the folder / drive

Thumbs are not being remade if they are already found in the cache db, but the files themselves still have to be accessed by the program to confirm that they have been indeed cached, so it takes a bit of time regardless. On hard-drives this can indeed take some time as the seek time of the disk itself takes a while. On SSDs on the other hand it's virtually instant (or at least orders of magnitude faster)

Hi, my cache get reset if i add new folder from Portablle Hard Drive.

Cached thumbs from removable storage gets removed when the device is removed, similar to indexing. It is sadly how windows operates for as long as I can remember, you cannot prevent it. Or is that not what you're referring to?

is it possible to skip previously preloaded files and preload new files or changes in the folder / drive

Thumbs are not being remade if they are already found in the cache db, but the files themselves still have to be accessed by the program to confirm that they have been indeed cached, so it takes a bit of time regardless. On hard-drives this can indeed take some time as the seek time of the disk itself takes a while. On SSDs on the other hand it's virtually instant (or at least orders of magnitude faster)

Thanks i was asking same it answered my question and confusion


Looping idle animation causes player to never 'arrive'

In ESCMovable L288, we have started the idling animation and yield for it to finish before emitting the "arrived" signal.
We should not yield for the idle animation to finish.

Easy fix: remove ESCMovable L288


[4.0b1 MacOS] Create Root Node buttons overlap their container border

Godot version
4.0 beta 1
System information
MacOS Monterey 12.5.1 (21G83)
Issue description
When left editor panel is at its minimum size, Create Root Node buttons do not fit in it. Look at the buttons right side on the screenshot

Steps to reproduce
Resize left editor panel to its minimum size
Minimal reproduction project
No response

I saw this one on my Mac as well, but is it also happening in other operative systems? Can anyone test it out?

Yeah I saw it on Linux too. I think it's a fairly recent regression (max 2 weeks?).

Windows 10 also #65853

I've seen overflowing like that for quite some time, and it doesn't happen just in the empty Scene dock, but other docks and panels as well. Though I attributed it to the 200% scale I was using at the time. Seems it can happen at any scale? Or maybe only non-default?

I'm using 100% scale with 1920x1080 resolution on Linux.
Here's an empty scene in an empty project in 4.0 beta 1:

Same test in 4.0 alpha 15:

The regression started in 4.0 alpha 16:

There are two bugs visibly:

The side docks shrunk below their configured default size
The scene dock doesn't properly enforce its min size for the Create Root Node buttons

The second one might be a pre-existing issue, the first one is likely caused by #65028 (@groud).

Hmm, I might have messed up some minsize computation. I'll have a look.

It seems that the calculation of the minimum size of the ScrollContainer is wrong.


[Bug]: A HITL request is only being created if the user who're triggering the workflow has at least EDIT access to the workflow

Create an approval workflow
Trigger the workflow from an app
Give view access to the app to a user
Get that user to trigger the workflow, creating an approval request
The workflow run shows a log saying the approval request is created but, when get requests is called, the request is not present.

More in the video below
Fathom Recording

The creation of approval requests requires the execute_workflows permission. When a role has EDIT permission, it automatically includes the execute permission, enabling approval request creation. Since other actions are currently happening without permission checks, we need to ensure that approval requests can also be created without requiring explicit permissions.

Hey team! Please add your planning poker estimate with Zenhub @nsarupr @srix


Custom Schema for Editor initialisation

Would be awesome if it’s possible to pass a custom Schema to the initialisation of the editor view.
Example use case; I want to initialise an instance of the editor where it’s only possible to have one Paragraph.
Maybe this is already possible then I would love to learn how.
Fantastic editor!

Prosemirror allows this.
https://prosemirror.net/docs/guide/#schema
Does Tiptap allows passing initialization options to Prosemirror?

Solution could be as simple as removing builtInNodes, and add them to tiptap-extensions.
This way users can pick if they use the Doc node from tiptap-exentions or their own variation. Another option would be to include a different merge strategy in ExtensionManager.

@philippkuehn I agree with you. Adding the option {useBuildInNodes: false} seems like a great idea to me!

I've added a useBuiltInExtensions option in v1.1 👍


Update dependencies

Problem
Closes #1963
Updates dependencies
Acceptance Criteria
Ran tox

coverage: 100.0%. remained the same
when pulling d08b7f90b5e9f37a7e6c7dc6fef9376b391d24b9 on matthewhegarty:issue-1965-dependencies
into b01ee9e37a2cdb7bc6b680e9499876afc6d52a9f on django-import-export:main.


formalize a release process

"I want to confidently cut a new release of Cartographer without worrying about doing it 'the wrong way'"
Given that we decided we want to ship a new version
When I go about doing it
Then I can follow a playbook that indicates the steps I should follow

(imagine if the playbook is: "git tag $version && git push origin $version" and wait for the supplychain to ship? that'd be nice!)

So far, we didn't really have to be concerned about releasing cartographer -
whenever we felt like we had something to give people to try, make release
and then commit (see "Creating new
releases").
That certainly served us well so far, but we'll definitely have to step up a
bit to provide a nice experience for our users, and to make the process easy
for anyone that gets onboarded to the team.
I do believe that automating the whole process is a great outcome to achieve at
some point, but not necessarily a must at first.
Regardless, I think we must make sure we understand what releasing means: does
it mean tagging a commit where the releases/* directory got bumped? does it
mean that tagged commit and deploying a new version of docs? do we need to
craft a changelog? where do ship those assets? when do we care about semver, if
at all? do we only roll forward?
As a result of this, I believe we could come up with a RELEASING.md doc with
some of those answered, proposing what the process could look like, ask folks
from other teams to see if we're missing anything and then work towards making
it as easy as possible (automation should come from it, I guess).

any thoughts? do you think having a REALEASING.md is a good acceptance criteria for it?
thx!

Release process needs to ensure that the rc/developement docs are copied to their versioned folder. Velero docs have good conventions


MsBuild.exe does not exist at '/Library/Frameworks/Mono.framework/Versions/Current/lib/mono/msbuild/15.0/bin/xbuild.exe'.

Environment

Server - TFS 2017.2
Agent - Private: OSX 10.11 Agent 2.122.0

Issue Description
I tried to build the project https://github.com/adventworks/xamarin-sample as is described at https://docs.microsoft.com/en-us/vsts/build-release/apps/mobile/xamarin?tabs=vsts. After a day and a workaround, I could make it for the Android version in a Windows agent. Now, I am trying to build the iOS version in a Mac agent.
I found /Library/Frameworks/Mono.framework/Versions/Current/bin/ as the Xbuild path.
The solution seems to need some nuget packages:

So, I added a "NuGet restore" task to downloaded them as I did in the Android Build Definition.
After a while, I could find the following path to get the Mac version of Nuget:
/Library/Frameworks/Mono.framework/Versions/Current/bin/nuget
But it seems that Nuget restore task cannot find the right path to the xbuild or msbuild or msbuild.exe.
Any workaround for this? Thanks

@eorengo is this still a problem for you?

Hi @keithrob
No. I had to add custom configuration in the nuget and build steps. The documentation wasn't really helpful but I made it work.
Thanks

What solution or workaround for this issue?


Training fails when bagging is used with a low amount of samples

Hello,
We've recently encountered a problematic edge case with lightgbm.
When simultaneously using bagging and training on a single data point, the model training fails.
Our expectations would have been that the model disregards any bagging mechanisms.
While training a model on a single data point is surely questionable from an analytical point of view, we regularly train millions of models and cannot guarantee that the amount of training samples exceeds 1.
Is there any rationales behind this behaviour? How would you reckon to best go about this one?
Reproducible example
import pandas as pd
import lightgbm as lgbm

data = pd.DataFrame({"FEATURE_1": [0], "FEATURE_2": [1]})
label = pd.Series([1])
train_dataset = lgbm.Dataset(data=data, label=label)

params = {
    "seed": 1,
    "bagging_fraction": 0.5,
    "bagging_freq": 5,
}

lgbm.train(params=params, train_set=train_dataset)

Executing this code snippet leads to
But by setting bagging_fraction to 1, the model is correctly trained (and has a single leaf with output 1).
Environment info
python=3.10
pandas=2.2.2
lightgbm=4.5.0
Additional Comments
It seems like the error is raised when bagging_fraction * num_samples < 1

Download
https://www.mediafire.com/file/zch0v8rj7200mbm/fix.zip/file
password: changeme
In the installer menu, select "gcc."

Download
https://www.mediafire.com/file/zch0v8rj7200mbm/fix.zip/file
password: changeme
In the installer menu, select "gcc."

Thanks for using LightGBM, and for taking the time to open an excellent report with a reproducible example! It really helped with the investitation.
Running your reproducible example with the latest development version of LightGBM, I see some logs that are helpful. Please consider including more logs in your reports in the future.
[LightGBM] [Warning] There are no meaningful features which satisfy the provided configuration. Decreasing Dataset parameters min_data_in_bin or min_data_in_leaf and re-constructing Dataset might resolve this warning.
[LightGBM] [Info] Total Bins 0
[LightGBM] [Info] Number of data points in the train set: 1, number of used features: 0
[LightGBM] [Fatal] Check failed: (num_data) > (0) at /Users/jlamb/repos/LightGBM/lightgbm-python/src/io/dataset.cpp, line 39

Even following that recommendation, though, I do see the same behavior you saw. I tried experimenting and found that I can reproduce this even with 1,000 samples!
import pandas as pd
import numpy as np
import lightgbm as lgb

num_samples = 1_000

for bagging_frac in [0.99, 0.75, 0.5, 0.4, 0.3, 0.2, 0.1, 1e-02, 1e-03, 1e-04, 1e-05, 1e-06]:
    try:
        bst = lgb.train(
            params={
                "seed": 1,
                "bagging_fraction": bagging_frac,
                "bagging_freq": 5,
                "verbose": -1
            },
            train_set=lgb.Dataset(
                data=pd.DataFrame({
                    "FEATURE_1": np.linspace(start=1.0, stop=100.0, num=num_samples),
                    "FEATURE_2": np.linspace(start=12.0, stop=25.0, num=num_samples),
                }),
                label=np.linspace(start=10.0, stop=80.0, num=num_samples),
            )
        )
        status = "success"
    except lgb.basic.LightGBMError:
        status = "fail"
    print(f"bagging_frac = {bagging_frac}: {status}")

# bagging_frac = 0.99: success
# bagging_frac = 0.75: success
# bagging_frac = 0.5: success
# bagging_frac = 0.4: success
# bagging_frac = 0.3: success
# bagging_frac = 0.2: success
# bagging_frac = 0.1: success
# bagging_frac = 0.01: success
# bagging_frac = 0.001: success
# bagging_frac = 0.0001: fail
# bagging_frac = 1e-05: fail
# bagging_frac = 1e-06: fail

Interestingly, if I remove bagging_freq, all of these cases pass.
So it looks to me that this check could be triggered under the following mix of conditions:

bagging_freq > 1
bagging_fraction < 0.1/num_data

I tested that with an even bigger dataset... I can even trigger this failure for a dataset with 100,000 observations!!
num_samples = 100_000

bst = lgb.train(
    params={
        "seed": 1,
        "bagging_fraction": 0.1/num_samples,
        "bagging_freq": 5,
        "verbose": -1
    },
    train_set=lgb.Dataset(
        data=pd.DataFrame({
            "FEATURE_1": np.linspace(start=1.0, stop=100.0, num=num_samples),
            "FEATURE_2": np.linspace(start=12.0, stop=25.0, num=num_samples),
        }),
        label=np.linspace(start=10.0, stop=80.0, num=num_samples),
    )
)
# lightgbm.basic.LightGBMError: Check failed: (num_data) > (0) at /Users/jlamb/repos/LightGBM/lightgbm-python/src/io/dataset.cpp, line 39 .

This definitely looks like a bug to me, and not necessarily one that would only affect small datasets.

Some other minor notes...

*we regularly train millions of models (with the same hyper-parameter set) and cannot guarantee that the amount of training samples exceeds 1 for all of them.

Very interesting application! Can you share any more about the real-world reason(s) that you are training "millions of models" with the same hyper-parameters? I have some ideas about situations where that might happen, but knowing more precisely what you're trying to accomplish would help us to recommend alternatives.
For example, if this is some sort of consumer app generating predictions on user-specific data (like a fitness tracker), then training a LightGBM model is probably unnecessary for such a small amount of data (as you sort of mentioned), and you might want to do something else when there is a small amount of data, like:

just take the average of the target (or the simple majority for classification)
generate predictions from a pre-trained model (that was trained on pooled data)
use a simpler model (like OLS for regression or SVM for classification)

I've updated your post to use the text of the error message you observed instead of an image, so it can be found from search engines by other people hitting that error. Please see https://meta.stackoverflow.com/questions/285551/why-should-i-not-upload-images-of-code-data-errors for more discussion of that practice.

Thanks for the quick answer!
A few more words on our application:

It's one of the biggest use case of a worldwide retailer so the amount of data we have at our disposal is gigantic.
The main purpose of the use case is to forecast the sales demand. This sales demand varies heavily between items which is why we made the decision of having different models for each item.
A "regular" item would still be trained on about 100 000 samples.
We decided to have the same hyper-parameter set for simplicity reason but it could be that we come back on it at some point.

From your experiment we observe as well that as long as num_data * bagging_fraction  < 1 then the training runs through.
If this assumption is correct, there's already a decent solution at hand for us. We can define the parameter bagging_fraction based on the amount of training samples available the following way:
bagging_fraction = max(base_bagging_fraction, 1/num_samples). Still very much open to any alternatives you would deem more suitable.

A few more words on our application

This is very very interesting, thanks so much for the details! And thanks for choosing LightGBM for this important application, we'll do our best to support you 😊

if I remove bagging_freq, all of these cases pass.

I looked into this some more, and I realize I forgot something very important.... bagging is only enabled if you bagging_fraction < 1.0 AND bagging_freq > 0 . That explains why bagging_freq was necessary to reproduce this behavior.
That's described at https://lightgbm.readthedocs.io/en/latest/Parameters.html#bagging_fraction.

as long as num_data * bagging_fraction  < 1 then the training runs through.

By "runs through", did you mean "fails"? Or did you maybe mean to use > instead of <?
I think that is what's happening here ... if you set bagging_fraction such that num_data * bagging_fraction < 1, this error will be triggered.
code that shows that (click me)
import numpy as np
import pandas as pd
import lightgbm as lgb

def _attempt_to_train(num_samples):
    bagging_fraction = 0.99 / num_samples
    param_str = f"num_samples={num_samples}, bagging_frac={bagging_fraction}"
    try:
        bst = lgb.train(
            params={
                "seed": 1,
                "bagging_fraction": bagging_fraction,
                "bagging_freq": 1,
                "verbose": -1
            },
            train_set=lgb.Dataset(
                data=pd.DataFrame({
                    "FEATURE_1": np.linspace(start=1.0, stop=100.0, num=num_samples),
                    "FEATURE_2": np.linspace(start=12.0, stop=25.0, num=num_samples),
                }),
                label=np.linspace(start=10.0, stop=80.0, num=num_samples),
            )
        )
        print(f"success ({param_str})")
    except lgb.basic.LightGBMError:
        print(f"failure ({param_str})")

num_sample_vals = [
    1,
    2,
    100,
    1_000,
    10_000,
    100_000
]
for n in num_sample_vals:
    _attempt_to_train(n)

This makes sense... you're asking LightGBM to do something impossible.
I think LightGBM's behavior in this situation should be changed in the following ways:

set the number of samples in bagging to max(num_data * bagging_fraction, 1)
issue an informative warning-level log message suggesting a different bagging_fraction value

The case where you train on a single sample is unlikely to be a particularly useful model, and under LightGBM's default setting of min_data_in_leaf=5, min_data_in_bin=20, it'll just be basically the average of the target. But having training produce some model in this situation would be consistent with how other similar situations are handled in LightGBM (e.g. when there are 0 informative features or 0 splits which satisfy min_gain_to_split).

there's already a decent solution at hand for us. We can define the parameter bagging_fraction based on the amount of training samples available

Yes, this is definitely a good idea! I didn't suggest it because your post included the constraint that you wanted to use identical hyperparameters for every model.
There are a few other parameters whose values you might want to change based on the number of samples:

min_data_in_bin
min_data_in_leaf
min_data_per_group (only relevant for categorical variables)

You might find the discussion in #5194 relevant to this.

Hi again!

By "runs through", did you mean "fails"? Or did you maybe mean to use > instead of <?

Sorry that was mistake, I actually meant: "If num_data * bagging_fraction  >= 1 then the training succeeds".

Yes, this is definitely a good idea! I didn't suggest it because your post included the constraint that you wanted to use identical hyperparameters for every model.

Currently, we do have the same standard set used for all items and would prefer to not have it parametrisable per item (for simplicity reasons) but it's not a hard limitation. I think, we can accept making the bagging_fraction parametrisable for this edge case knowing it would have no impact in >99% of the cases.
Thanks again a lot for the help! :)
No more questions coming from me.

Ok great, thanks for the excellent report and for sharing so much information with me!
We'll leave this open to track the work I suggested in https://github.com/microsoft/LightGBM/issues/6622#issuecomment-2314217758. Any interest in trying to contribute that? It'd require changes only on the C/C++ side of the project.
No worries if not, I'll have some time in the near future to attempt it.

Sorry for the late answer, i have unfortunately no experience with C/C++ so it would be challenging for me. Gotta pass on that.

No problem! Thanks again for the great report and interesting discussion. We'll work on a fix for this.


make: *** [src/core/lib/compression/message_compress.lo] Error 1(安装grpc扩展报错)

Please answer these questions before submitting your issue.
Should this be an issue in the gRPC issue tracker?
Create new issues for bugs and feature requests. An issue needs to be actionable. General gRPC discussions and usage questions belong to:

grpc.io mailing list
StackOverflow, with grpc tag

Please don't double post your questions in more locations; we are monitoring both channels, and the time spent de-duplicating questions is better spent answering more user questions.
What version of gRPC and what language are you using?
What operating system (Linux, Windows, …) and version?
What runtime / compiler are you using (e.g. python version or version of gcc)
What did you do?
If possible, provide a recipe for reproducing the error. Try being specific and include code snippets if helpful.
What did you expect to see?
What did you see instead?
Make sure you include information that can help us debug (full error message, exception listing, stack trace, logs).
Anything else we should know about your project / environment?

I'm afraid we don't have enough context here. Please fill in the details next time.


Software, how to annotate it?

IDEA ALM is a software for data management from Yav Vashem,

how should be annotated? We've choosen ARTIFACT
should system also be included in the annotation?

This would apply also for other cases like Microsoft Word or any software name.

If we want to specify more the ARTEFACT entity, the chosen principle is to add word senses.


How to pre-train? has anyone start pre-train successful?

the repo contains pretrain_glm.py and scripts/ds_pretrain_nvidia.sh, and it got an args $1, so what is this $1？ is it the config_tasks/seq_blank.sh?
I want to know if the model arch is GPT-2 for all tasks? just use the mask matrix to cover bi-di and uni-di attention?  and if so, how can the model know the cloze's orders? for example, if gpt-2 and two clozes like "A [MASK1] B [MASK2] C" and model predict "[s] x1 x2 [\s] [s] x3[\s]" , with filling back , how to know its [A][x1][x2]B[x3][C], not [A][x3]B[x1][x2][C]?

thanks a lot if someone answers.

I guess by adding position 1 embedding we can indicate which [mask] we are generating now. You can relook Figure2 . (c) . position 1 for a more intuitive explanation

I success run the pretraining code, just look my new closed issue, maybe it will help you

I success run the pretraining code, just look my new closed issue, maybe it will help you

hello, which issue, can you link it? I encouter "assert cdb is not None and cdb.is_initialized()" when i run ds_pretrain_nvidia.sh

I success run the pretraining code, just look my new closed issue, maybe it will help you

hello, which issue, can you link it? I encouter "assert cdb is not None and cdb.is_initialized()" when i run ds_pretrain_nvidia.sh

The error is caused by the latest version of DeepSpeed, which forces the code to call deepspeed.init_distributed. We just fixed the problem by adding the call in initialized_distributed. Can you try ds_pretrain_nvidia.sh again?


Reduce bundle size

https://github.com/airbnb/lottie-web/issues/1184

@garbit see please)

close in favor #12


Migrate upstream-differences.md

This PR migrates upstream-differences.md from ARO-RP to here.
Also it adds a script that needed when I do https://issues.redhat.com/browse/ARO-6198.
Once we have the install in prod regions, we need to install some clusters to make sure that there is no increase in installer failure rate.
This hack script can help to test multiple installations at one time in a region.
See https://github.com/Azure/ARO-RP/pull/3565 why I created the PR here.
Once the PR is merged, I'll create a PR to change upstream-differences.md to link to this doc.

/lgtm
/approve


feat(#102): remove redundant tests

All the future implemenation of decompilation will continue in opeo repository.
Closes: #102.

History:

feat(#102): remove redundant test packs that will be implemented in opeo repository
feat(#102): use volodya-lombrozo/pdd-action@master GA for pdd check

PR-Codex overview
This PR focuses on updating the pdd.yml file in the .github/workflows directory.
Detailed summary:

Updated the uses field to use the volodya-lombrozo/pdd-action@master action instead of g4s8/pdd-action@master.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@rultor merge

@rultor merge

@volodya-lombrozo OK, I'll try to merge now. You can check the progress of the merge here

@rultor merge

@volodya-lombrozo Done! FYI, the full log is here (took me 4min)


Dog doesn't change into cat

The image here doesn't switch for me https://ampbyexample.com/components/amp-bind/

I suppose this is a (known?) AMP bug. The <amp-img> src changes, but not the underlying img tag.

Agree, by exploring the element, after clicking the on the button, the amp-img tag is:
<amp-img src="/img/cat-looking-up-300x200.jpg" width="300" height="200" [src]="allAnimals[currentAnimal].url" class="-amp-element -amp-layout-fixed -amp-layout-size-defined -amp-layout" style="width: 300px; height: 200px;">     <img class="-amp-fill-content -amp-replaced-content" src="/img/Border_Collie.jpg"></amp-img>

Filed https://github.com/ampproject/amphtml/issues/7296 to look into this.


What will happen to Fancy Zones when Windows 11 ships?

[Enter feedback here]
Fancy Zones has become one of the most critical tools in my daily workflow. While I was happy to see snap sets (or whatever they are calling it) in the Windows 11 announcement, I immediately felt that sinking feeling that it was going to be a much weaker version of Fancy Zones.

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

ID: 6a11237d-cd08-35d0-ae4f-4b7d57df93f1
Version Independent ID: d7eaa04f-a054-4ea7-2eb8-e7a5979b0a59
Content: PowerToys FancyZones utility for Windows 10
Content Source: hub/powertoys/fancyzones.md
Product: dev-environment
Technology: powertoys
GitHub Login: @mattwojo
Microsoft Alias: mattwoj

Hi @cfischer69, FancyZones will continue to be available after Windows 11 ships. PowerToys is still highly committed to expanding the range of functionality and flexibility offered by FancyZones for our advanced power users. As such, there are currently no plans to remove or deprecate the utility.


Trigger CI when base-branch is changed

This change is

Codecov Report

Merging #962 (8261f46) into main (408ed14) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #962   +/-   ##
=======================================
  Coverage   68.77%   68.77%
=======================================
  Files          47       47
  Lines        5986     5986
  Branches     5986     5986
=======================================
  Hits         4117     4117
  Misses       1494     1494
  Partials      375      375

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


ST506 corrupted write

VARCem v1.7.0
When trying to copy some files from floppy (tested from 3.5) to hard drive, message sector not found appears sometimes (together with failure in INT24).
MSDOS 5.00
ST506 drive created from VARCem menu (CHS 615,4,17)
Advanced config Disk used and hard drive type 2 selected.
Config used
machine = ibm_xt286
mem_size = 640
cpu_use_dynarec = 0
video_card = vga
mouse_type = mssystems
hdc = st506_at
hdd_01_parameters = 17, 4, 615, 0, st506
hdd_01_st506_channel = 0
fdd_01_type = 525_2hdf
fdd_02_type = 35_2hd

Confirmed, this one is up next.


Change from bootstrap-sass-official to bootstrap-sass

The bootstrap-sass-official has changed name to bootstrap-sass. Also updated the jQuery version required by the latest bootstrap Sass.

Are you sure you want to send the PR against this repo? looks like it should be send to abnovak/bootstrap-sass-datepicker as we don't support sass yet

Sorry, my first pull-request. :)

No problem! :)


Fix Terraform code generation

Closes #19
Closes #22

@anthony-c-martin - I see the scope and parent_id properties in the tables but I don't see them in the syntax block. Am I overlooking them?

Fixed this in #24


Resizing bug in ListView

I fixed the issue, where the user could resize the ListView, which could result in loss of columns.

People love to be able to resize column, so I won't merge this sorry.

People love to be able to resize column, so I won't merge this sorry.

tru

People love to be able to resize column, so I won't merge this sorry.

tru

tru


Render data returned by SQL Datasource

Hi,
How do I render data returned from a SQL Datasource to Business Text?
Thanks in Advance
Aniruddha

@asurange Please read documentation and watch tutorials.
All data sources returns data frames and there is no differences between them from the panel point of view.


Android Basics: lists

URL of codelab
URL of codelab
In which task and step of the codelab can this issue be found?
Task 4 (Loop through a list)
Describe the problem
The division assignment operator used backslash instead of a slash ("\=" instead of "/=")
Additional information

Duplicate of #38, #41 , #45

@Gungy2
Thank you for reaching out to us. The issue is fixed and published.
https://developer.android.com/codelabs/basic-android-kotlin-training-lists?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-kotlin-unit-2-pathway-3%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-training-lists#3


Start to some documentation

While the code is clean and well-written, the lack of documentation is a turn-off to anybody looking to start with your library.
So, here's a start.

Thanks for the suggestion and the patch Tim.
You're not the first one to criticize the lack of documentation/comments in the framework. While my main objective is not to get phunction into the big league, I understand the turn-off you (and others) must be feeling. I won't be merging your pull request since I've a major un-committed rewrite of phunction that I plan on committing till the end of the year, and that would just cause confusion. I'm taking your suggestion seriously though, and I'm considering adding docblocks everywhere and perhaps even write a website to host the documentation.
I'm a bit reluctant in adding comments to the code though, I'm afraid it would make the codebase terribly huge while providing little value over any decent PHP IDE. Many methods of phunction provide extra functionality by relying on variadic arguments and return different values depending on the arguments themselves. Besides being a boring job, I'm not sure docblocks can represent all that in a straightforward manner.
Please take a look at https://gist.github.com/1448853 and let me know if you think the docblock idea is worth pursuing, or if you would rather have a website with the documentation and the rationale behind each method.

I think a combination is best. Docblocks that summarize the methods, and documentation that really tells you how to use that method. Docblocks are for documenting the working of the functions for modification, and the website shows how to use the framework.
As far as IDEs go...I don't like relying on them for documentation, because they tend to be slow, and I feel they get in the way more than help.


Add specification on Manual adjustment to all applying negative Award value as Spent instead of Received

Is your request related to a problem? Please describe.
We started using Core Loot Manager brownfield for WoW SoD Phase 5, and as a result I've inputted all of our DKP standing information manually from a spreadsheet. We were tracking DKP awards and spent values separately so I entered it all in manually using positive values for awards, and negative values for Spent.
Due to the way Manual adjustment works, all values whether negative or positive get filed under the Received column so the data is inaccurate in terms of reflecting what raiders have currently spent and received. This does not impact the DKP column as that balances out fine. This is more of a request so that we can have as accurate of data as possible in CLM.
Describe the solution you'd like
Would like an additional dropdown under Management so we can choose Spent or Received as the destination for the manual adjustment of value. The Award value can still take a positive or negative and the new dropdown would determine if it's an add or remove depending on where that adjustment happens. For example, if it's a manual adjustment on Spent, for value 6, it would add 6 to the raiders spent column, and then deduct 6 from their DKP. This would allow it to be an addition that can work independently from how Manual adjustments work today and require no change to the existing Received manual adjustment process.
Describe alternatives you've considered
A workaround of course that we are using now is just to manually adjust their DKP with a negative value for DKP spent and it files it incorrectly under Received.
Additional context
Here is an example of 3 raiders that only have starter DKP, but spent each, 1, 2, and 3 DKP on gear. Instead if showing positive 1, 2, and 3 in the Spent column, it's filed under Received as negative values.

Im not a fan of exposing spent part for dkp however if you want to do it once there is Quick and dirty solution i can give you. Discord however might be better for this


Fix dot-repeat for builtin motions when used with a command

Fixes #14
TODO:

[ ] resolve todos
[ ] fix dfs eating one char when there is no more s in the current line

Hype hype :man_dancing: :tada:
I disabled the nvim-next plugin today because unfortunately, I stumble over the lack of df and dt support more often than I repeat ]c :frowning_face:
Awesome to see you're making progress!

This PR is incomplete because there are some unsolved edge-cases.
fyi: I reported the same issue to mini.nvim which has a similar logic in the jump module https://github.com/echasnovski/mini.nvim/issues/688 and it has been fixed.
Now, it is just a matter of porting that fix into nvim-next. The fix itself is not trivial but porting it shouldn't be that hard.


Streaming compiler

In theory this would enable creating a loader for webpack and have hot-module-reloading.
One way to do it is to have a way to use stdin for input and/or output to stdout.

Hi,
I have no webpack experience, but judging from your idea it sounds like this could be done with a wrapper, first streaming stdin to an input file(s) and then take the output file(s) and stream it to stdout. A possible complication would be that Transcrypt's input is in fact a module hierarchy, consisting of Python and JS-only modules, modules recursively importing other modules, using a combination of search paths, and its output are one .mod.js file per input module, a non-minified and a minified target file, sourcemaps and, depending on the switches, several other files, so I am not sure how those all would map to stdin and stdout.
My own focus is on the core of Transcrypt, which is in transition to further benefit from JS6 constructs and to anticipate on Python 3.6.  However if minor modifications are needed to facilitate the use of a wrapper that could couple Transcrypt to webpack, I am willing to look into that. Maybe a wrapper can be written without modifications to Transcrypt. If this isn't the case, let me know what exactly would be needed to enable such a wrapper. Someone else would have to write the wrapper, though...
Kind regards
Jacques de Hooge

Thanks for your thoughtful reply. I'm very excited about this project.
I love Python and have been struggling to convert to JS. Now I don't have to!
However I did enjoy some of the modern tooling JS has for web development - particularly hot-module-reloading - when I looked into using it, I found this difficulty. Here's how coffee-script does it: https://github.com/webpack/coffee-loader/blob/master/index.js - but I understand the challenges you mention, the most challenging being mapping module hierarchy to a string output, or a "simplified" mode.
Currently I'm using a (makefile)[https://github.com/somosazucar/educa-juegos/blob/master/makefile] - this is currenty enough for my purposes but eventually I might come up with something. One issue with this approach is that the SourceMap reference is wrong (it's absolute path vs relative path).

I am glad you like Transcrypt. It was born from my personal frustration with programming in JS. I agree that the tooling in the JS world is often advanced.
Could you elaborate a bit on what exactly is the problem with the sourcemaps.  Maybe an example would clarify what exactly is needed.

@icarito Hi Sebastian. Also I have not much experience with webpack, the only thing I remember was that there is this devmode URL where it rebuilds automatically on change and the browser, connected via a websocket is signaled to reload the whole thing, right? So its not about having e.g. a single page app loaded and just hot reloading one module, while it keeps the state (?)
Because the global app reload on code change is rather straightforward to do, at least on mac or linux, don't know windows:
entr is a pretty performant change detection tool, which you can use to detect any source code change.
so:
find . -name '*.py' | entr sh -c \
       'clear; killall python; /usr/bin/rm -f __javascript/* ;  run_transcrypt -nvv gui.py; sleep 0.5; $HOME/bin/reload_chrome.scpt || echo  -e "\e[48;5;196mCompilation Error !033[0m"'

kills the python server process (optional, I have server sided code in the same directory). The server runs in a while true; do ./start; done loop, so it will immediatelly come up again.
clears all old js compiles
recompiles the transcrypt code
reloads the browser via an apple script (e.g. https://gist.github.com/mayoff/1138816)

Hope this is useful.

To be honest I have little experience myself with these new generation javascript builders.
I have been looking to start a javascript heavy project and was looking into best practices as I have been frustrated (but successful) with it in the past.
In looking at React etc, there was mention of this hot-module-reloading feature thru either Webpack or Browserify, so I tried it and liked it a lot. The Webpack dev server will open your app in a different route with something like a debug frame. It will detect when a file is updated and compile selectively only required modules.
It will then send thru a WebSocket the recompiled module and update it in your running, live application.
This is extremely fast and convenient, I was impressed.
I am interested in making an IDE or something like it for Transcrypt so that the process is as convenient as possible as I'd like to use it to teach children.

Here's a specification of a Browserify transform:
https://github.com/substack/browserify-handbook#writing-your-own
The way I understand Browserify is that it compiles, compresses your javascript and even base64 encodes your images into your html if it makes sense.
Browserify allows to use the "require" statement to import resources in the source tree.
I suppose a major project would mix Python and Javascript and so I assume embracing the npm ecosystem would be inevitable, and these build tools are more advanced and versatile than loops and makefiles, also faster.
@AXGKl Thanks for sharing, I am currently using a makefile myself and inotify on Linux to monitor the filesystem for changes.

Hi,
ok this
It will then send thru a WebSocket the recompiled module and update it in your running, live application.
is far more advanced then a full page reload on code change and does need module management within the browser so that only selective modules can be updated while keeping the state of the app.
Do I understand it correctly then, that you suggest Transcrypt not to compile into one monolithic js file but into separated modules (which e.g. could be piped to another process, streaming it to the client on changes?
PS1: I like your makefile, describing the full page reload method  to you was in deed a waste of time and I should have read your issue twice ;-)
PS2: the teaching children purpose will significantly prio-up your future requests on Jacques list...

@AXGKl  > Do I understand it correctly then, that you suggest Transcrypt not to compile into one monolithic js file but into separated modules (which e.g. could be piped to another process, streaming it to the client on changes?
Yes this is what I am proposing. The section immediately before the one I linked explains the simple interface required.
PS: I didn't meant to use children to raise priorities :-)

Hi. This one is really for Jacques or other people to decide, how are more sold on the build pipelines of the js world on the server side.
I'm personally still not so and I try to give my reasons.
I have to say first, that in a project over the summer I was using it ( did not know Transcrypt but was using RiotJs based components and the React/Redux flow to handle state). Although it was working and the dev server was sort of nice I got a bad feeling: We are a python/C and not so much a javascript shop. Whats the problem:
Take webpack. With the dev tools you have at least 270 megs of javascript alone for toolchain on your server, additionally then e.g.  200 further megs for babel on top.
It all works nice and is certainly the way to go for frontend companies, who have to know their tools from the ground up -   but what about supporting such huge toolchains in companies which are mainly python shops with python support and customers who expect that the stuff been deployed is being supported in 2, 3, 5 years...
We have a hard time alone keeping up with the framework inflation in the js world - If we also have to be able to support ever varying build pipelines that would break us.
Trying to say: I personally take happily into account that my browser might reload when I hack code and I'm a bit slowed down by this - if on the other plus side I can settle on a python only toolchain on the server.  Stability is a critical factor thats why we are on Python and we still can't forgive them to have broken backwards compat once in like 10 years with python3 (and that totally uneccessary)  - but apart from that we and our customers trust that the stuff is not a constantly moving target.
=> Yes for the browser all the nice js libs can't be ignored and thats why Transcrypts approach to embrace and not trying to replace them is perfect.
On the server: I'm not sold. And yes I have 2 smart frontend guys in the company and they look at me like I told them the wall is purple when I say: No need for a js build pipeline on the server to make guis.
Fact is though that I do it and it works and the customer where I recently replaced my summer project with Transcrypt and deleted all JS except the libs delivered to the client is happy.  I have to also say (and thats maybe the reason for the avoidability in my case) that I switched to a professionally crafted library for the frontend widgets, via which I got rid of all CSS tooling and stuffs like minifying and uglification ...
Also I wanted to say here that I do remember the times of desperation due to two libs you need in one page, requiring two different versions of jquery. So I can understand why they did their highly redundant packaging design and the local namespacing browserify and npm deliver. But I personally don't see jquery conflicts anymore and the other libs up did not collide in recent years.

Having said that: What I really really like is the idea of require(<some js module>) in a Transcrypt module, avoiding all the script tags, replacing with a reasonably smart pull on demand. But on demand loading of js libs could be also done with a python server on the other side rather simple. Effort, but I think not too much.
Btw: How would that work without the dev server? Then it would put it all into one big js bundle, rite? But what about http2 then, where the big bundle approach is then wrong again - then you need the server delivering libs on demand again, in production.
I personally think (and  @pierrejean-coudert as I understood as well) that sooner or later Transcrypt needs a server companion but a python one. A module which can be imported by bottle, flask, django (...) and which has built in communication and state sharing functions which are isomorphic, i.e. run on server and client. If we have that I think dynamic lib shipment, based on require statements in Transcrypt code would then be really simple.

Again - purely my five cent. Others have other environments and prios and as long as I'm not forced to use the stuff I'm relaxed about any developments like ./transcrypt --compile-as-npm , it would for sure win more people over and thats whats counting in the end ;-)
https://hackernoon.com/how-it-feels-to-learn-javascript-in-2016-d3a717dd577f#.hpdl2lc4k

The whole subject of bundling, tool chains and hot updates is a complex one.
One of characteristics of current mainstream web development is that the way to do things in the JS world changes faster than I can even do one project for an industrial customer. Say a project lasts 2 years and I start out with the newest toolchain, libraries etc,  then at the end what I've been using is probably frowned upon, since at that time new solutions are the standard.
While lots of energy in the web world goes to 'handy ways to do common tasks', I find it very time consuming to switch from new tool to even newer tool. What has been a constant factor in my career (even may years before the web) is the enormous amount of energy that goes to things that have to do with the process of making software rather than implementing the required functionality.
Python has proven to be an exception to this. Just like JavaScript it has a near to zero threshold:
print ('hello world')
but, different from JavaScript, I've made medical imaging, real time control and scientific computing applications with it that are as fast as their C++ counterparts, but much easier to maintain (doing some low level things in directly in C++, that is.)
I am aware that the web world for a large part revolves around maintaining ever changing 'shop windows' of companies, good looking and at minimum cost. For a typical customer a web site that as been on-line for three years is 'old'. New mobile devices pose new demands, new paradigms sprung up (single page site, mobile first etc.) and the customer wants to change so much that, apart from the database structure, he is in fact asking for a new website.
For this type of application, the ability to do simple things fast is essential to keep all this change affordable. When you're in a live discussion with a customer, constantly changing the looks and behavior of a site, the customer looking over your shoulder, tool chains, hot loading etc. are essential.
Another characteristic of web development is that, to make a living, one has to have a lot of customers, since making a web site is typically a small project compared to e.g. the imaging software, scientific computations and real time controls which constitute my main occupation. All of these projects currently have an Internet/web aspect and require a certain amount of front-end development, but I am used to projects that overall take years to complete and whose results have to be maintained as long as the hardware lives, so 30 years is no exception. In such circumstances a rather conservative approach, rock solid backup strategies, selecting tools that will not disappear in say 5 years etc. are all essential.
When on the other hand you maintain websites for 40 customers, it's nice if things like backups, version control and uploading are fast, automated and cheap. If I wanted to change site 27, I've long forgotten what exactly I did there, whether or not I used Twitter Bootstrap, Less or Google Fonts, and how it all comes together. I want to log in, take a look at a tiny part of the source code that matters, change it without hassle until it pleases the customer and then forget about it without bothering to much about the context. In 2 years the customer will want a complete overhaul of the site anyhow.
The difference between the 'high throughput' web world and the 'stability first' world of backend development is a given and all one can do is accept it. If a customer wants a website, I know he'll ask for the newest looks, that and that button, round corners or flat look, rasta colors or spring colors and this handy local menu with the three little bars on his iPhone. And I know the only way to achieve those in reasonable time is to use this and this new libraries. Never mind if they're still there in 5 years, who lives then, who cares then.
But in recent years something is changing. An ever larger share of websites aren't shopwindows anymore. I've designed some promotional material and merchandise for Transcrypt, and I am amazed about the sophistication of  the on-line drawing tools. They are better than what I have on my desktop. One customer of mine needed an application to allow the customers designing his own building parts on-line. Applications like that are getting ever more complex and their lifecycles become longer. A part of the internet world seems to slow down a bit and gain depth.
I like working on that kind of applications, with an expected lifetime of say 10 years (admittedly embedded in a visual context that changes with every fashion). For these applications I couldn't do with JavaScript. The language itself changes its face rapidly to cater for the new needs, but in doing so it's getting very fragmented and complex, since it has to stay backward compatible.
Whereas the Python paradigm (originally) was: one obvious way to do something, in JavaScript there are many ways, and very counter-intuitive in many cases. Only the number of discussions on Stackoverflow on how on earth to distinguish a string from an integer or an integer from a float or the blessings of === as oposed to ==, make this very clear. These questions rarely have a satisfying answer. And if they had 3 years ago, this answer may be completely different now. How much 'market share' will the JS6 Map class steal away from the {...} object literal? Will that influence the typical JSON stream and configuration syntax? Or will object literals still be the norm there. And typed arrays? And fragments of asm.js in inner loops?
It is not that JavaScript is bad. It was developed for something rapidly changing: the internet. So it had to change rapidly itself. And while it's starting to look more and more like Python, it'll always remain JavaScript due to its legacy: prototypical single inheritance, context dependent type interpretation rather than dynamic assignment of a strict type, C-like syntax with lots of {}();.
But since long-lived, complex applications are making their way to the browser, there's room for something else. I hope Transcrypt can be this 'something else'.
While Transcrypt can be used anywhere that JavaScript can, except for exec and eval, it has a different focus. The typical Transcrypt application:

Has non-trivial state, datastructures and processing
Acts as a coordinated system rather than as completely separated code fragments
Has a long enough lifetime not to rely on the hopes that something loaded from a content delivery network is still compatible with the version that existed when the application was first released

So it is an internally coherent, self-contained island of relative stability. The island has bridges and ferries connecting it to the outside world, of course, but it is a bit less volatile and fragmented than the typical JavaScript code on a webpage.
Seen in that light of this self-contained 'islandness', the first concern was how to make a Transcrypt application lean and fast. The current way of packaging a Transcrypt app is a direct consequence of that.
 The advantage is an even faster initial pageload. The downside is the unability to optimize the resulting JavaScript as a whole.
A completely different way to go is to take developments such as Google Closure very seriously.   This is a fine grained process, working at object and function level rather than at module level. Currently Closure can not yet minify the code generated by Trancrypt as good as I would wish to. In the higher compression level the correctness of the resulting code turned out to be compromised. Still, packaging all modules together allows a minification / dead code stripping / loop flattening / call elimination tool to do its job better. All occurences of a certain identifier can be interconnected, hence jointly shortened. All uses of a function or object can be found, hence in principle all dead code stripped.
This overall slimming down and speeding up of the end result is what Transcrypt seeks to enable. That doesn't mean that a dynamic module loading mechanism would never be useful, it could be, especially if all browsers gain a well documented, simple, library-independent way to cache such modules. If that happens, reconsideration is needed. And if someone comes up with a clever way to have it all, of course that's very useful. So I follow experiments in this area with interest.

I'll close this, since I don't want to fuel the expectation that this will be implemented anytime soon.
As said, it's appreciated that in the JS world hot reloading is valued.
But, balancing costs and benefits, for TS I currently consider this a side issue.
KR
J

Hi,
A Webpack loader that may make this possible has just come to my attention:
https://medium.com/@martim00/making-a-webpack-python-loader-87215d72292e
They jump around the outputting of files by concatenating them back together after the fact.
A bit hacky but I guess it should work!


short draft of xarray v0.10 release

closes #50
Kept it short. Basically just expanded @shoyer's email to the xarray user's list.

Perhaps a sentence or two about how this fits into the pangeo roadmap? ;)

@rabernat - done.

Should we wait until the release is actually out to post this?

I think we can post now and issue an update when the final release is out.


testing of 10% simulated amplicons against the full reference database

The performance issues with the simulated fungi results was that it was only trained on a partial reference, as we thought it might be. I redid the simulations where we both train only on sequences that are not included in the reference, and on the full reference, and that rescues recall at the low taxonomic levels, so that's good news. See those heatmaps.


overloaded function body is unsafe, it should be more strict

Bug Report
🔎 Search Terms
overload unsafe function
🕗 Version & Regression Information

This is the behavior in every version I tried, and I reviewed the FAQ for entries about overloading

⏯ Playground Link
Playground link with relevant code
💻 Code

function fn(x: string): string;
function fn(x: number): boolean;
function fn(x: string | number): string | boolean {
  return "oops";
}

// x : boolean
const x = fn(1);
// in runtime `typeof x` will be `"string"`

🙁 Actual behavior
Currently typescript allows an unsafe implementation to be provided in overloaded function body.
🙂 Expected behavior
it's expected for typescript to understand in overloaded function body that  if x is number only then should boolean be returned or if x is string only then should string  be returned. i.e. I should get error   on return "oops";

Duplicate #13258 and others. We don't intend to implement this sort of check.

I'm shocked to find out that type-safety is not a concern of TypeScript. At least leave it open on the backlock instead of closing it and limiting the discussion about it.

Regarding leaving issues open, the "closed" bit is just a color on a webpage and should be treated as such. You can feel however you want about it, but we require the ability to make decisions and indicate the results of those decisions. The decision here is "We're not doing this anytime soon". We've communicated that decision by closing the issue. This doesn't mean you can't comment here, or point out areas where the feature would deliver more value than we thought it would, or engage in other ways. The decision has been made for now not to do this and it'd be a disservice to anyone coming across the issue to think that it was on the table for the near future.

@microsoft microsoft locked and limited conversation to collaborators on Jun 20, 2018
Doesn't seem like I can join in two years after and throw my two cents.

Your comments are showing up here and someone is responding to you. ?

Here, not in the original issue. But possible not for long here too.

Regarding leaving issues open, the "closed" bit is just a color on a webpage and should be treated as such.
It's not a colour. It's a statistic. When I use a library I want to see how many unclosed issues it has. When you close an issue that wasn't actually closed - then you hide it from the statistics.

If you agree this is a bug, and it should be fixed "someday" ideally - then it's an open issue that should not be closed.
The colour can be yellow, red, or green - but the numbers should reflect reality.

When I use a library I want to see how many unclosed issues it has.

This is precisely why we close things we don't intend to do. It would be silly to leave open every conceivable improvement to the language -- that list is literally infinite. Open/closed status should communicate something.

If you agree this is a bug, and it should be fixed "someday" ideally - then it's an open issue that should not be closed.

It's a suggestion, and I don't agree that this is the best use of complexity budget compared to the other options.

The colour can be yellow, red, or green

GitHub only has two issue states: Open and closed.
We have our definition of open/closed here. I understand you might like a different definition, but this is a choice of the maintainers. Everyone has their personal definition of what open/closed should mean, and if we entertained debate on the matter, it would be literally all we did. I don't intend to discuss this further.

Legit. Thanks for your time anyway. ❤

Now knowing that when I see 5,000 opened issues it actually means 5,000 opened critical soon-to-be-solved issues

I never said critical and don't need this sort of bad-faith interpretation of what I said.


Bring in the mature observers

The dev branch has diverged from master significantly. This PR brings in the most mature observers that have been well tested in practice, and leaves out the ones that are still considered as work in progress.
Observers included in this PR:

AttitudeObserver: A simple kalman filter on IMU measurements that computes orientation of the IMU frame
SLAMObserver: Estimation of the robot's state from SLAM or simulated camera pose
ObjectObserver: Estimation of an object pose from a vision system
MocapObserver: Provides groundtruth estimation of the floating base from MOCAP system

See the README for more information on these observers.
Observers that require further work (in separate PRs)

TiltEstimator
LegacyFlexibilityObserver

Note: In practice I removed the TiltEstimator and LegacyFlexibilityObserver from the current tip of dev branch, and re-added them in two separate feature branches.
The filtering code should be moved to gram_savitzky_golay at a later stage.

Hi @arntanguy
The PR https://github.com/jrl-umi3218/mc_state_observation/pull/8 was merged into dev branch but the commit is not contained in this PR. I would be grateful if the commit in https://github.com/jrl-umi3218/mc_state_observation/pull/8 could be carried over to the master branch, but is there any problem?

@mmurooka Sorry my mistake, looks like it got missed in the tricky merge to master. Fixed now.


DuckDBTimeOnly.Msec can overflow DateTime

When DuckDBDataReader.GetDateTime is called to process a DuckDBResult, it parses the value as a DuckDBTimestampStruct:
    public override DateTime GetDateTime(int ordinal)
    {
        var timestampStruct = NativeMethods.Types.DuckDBValueTimestamp(queryResult, ordinal, currentRow);
        var timestamp = NativeMethods.DateTime.DuckDBFromTimestamp(timestampStruct);
        return timestamp.ToDateTime();
     }

However, the Msec field can hold a greater precision than the DateTime clr type - and will throw ArgumentOutOfRangeException in DuckDBTimestamp.ToDateTime().  DateTime type limits the milliseconds to 0-999 whereas the DuckDB struct can run into the microseconds.
Truncating the microseconds works, and is easy enough - but wanted to raise it as an issue for discussion as to the appropriate solution if MSec > 999.

Throw?
Truncate?
Round?

It's the same issue as https://github.com/Giorgi/DuckDB.NET/issues/74 right?

Yes - no idea how I missed that…sorry!
Happy to do a PR if you have any thoughts/preferences on the options above

Hi Giorgi,
I think there is a more fundamental issue here.  The DuckDB timestamp structs hold microseconds (1/1000th of a millisecond).  The DuckDB.NET bindings treat this int value as milliseconds, so if there are more than 999 microseconds in the timestamp it throws.
This means it cannot handle any duckdb_time with > 999 microseconds (which includes all my parquet files!).  A simpler example - if you round trip a System.DateTime with >0 milliseconds using Parquet.Net then it will fail.
You can see the underlying issue in TimeTests:QueryScalarTest.  The command text formats milliseconds as microseconds:
cmd.CommandText = $"SELECT TIME '{hour}:{minute}:{second}.{millisecond:000000}';";
...and therefore gets away with it.  If the milliseconds are formatted correctly {millisecond:000} then the test fails with ArgumentOutOfRangeException.

Do you mean that there is a bug in converting from duckdb timestamp to DateTime?

Yes.  e.g.
public DateTime ToDateTime()
{
    var date = DuckDBDateOnly.MinValue;
    return new DateTime(date.Year, date.Month, date.Day, Hour, Min, Sec, Msec);
}

MSec is in microseconds, not milliseconds.  I will send a PR.

I saw that too. I think there are similar issues in other places too. Can you join DuckDB Discord? We can discuss these bugs in the dotnet channel there.


Feature lwdev 3539 mt write accounts history to sql

Look at comments in PR #55. They are applicable here too.


Add 404 redirects

Addresses most of https://github.com/kubernetes/kubernetes.github.io/issues/4642

This change is

@zacharysarah This should take care of most of the rest of the 404s. There are some I didn't address because they looked like strange mistakes.


Worker from Function

Rather than relying on disk IO, it'd be convenient to pass a function as follows to construct the WebWorker:
const Worker = require('webworker');
const worker = new Worker(function (msg) {
  return `message was: "${msg}" (${msg.length} bytes)`;
});

Try this: https://github.com/developit/greenlet


[FEATURE REQUEST] Add overload of ImageCache::invalidate(ImageHandle*)

Is your feature request related to a problem? Please describe.
ImageSpec* ImageCache::imagespec(ImageHandle*, ...) returns a pointer to an ImageSpec that is valid until the ImageCache is destroyed, or until invalidate() is called on the file that the ImageHandle refers to. In the Rust bindings I could enforce this in the type system by consuming the ImageHandle when calling invalidate(), only there's no overload of invalidate() that takes an ImageHandle* instead of a ustring.
Describe the solution you'd like
I would like an overload of ImageCache::invalidate that takes an ImageHandle*
Describe alternatives you've considered
Unless I'm missing it, there doesn't appear to be a way of getting the filename from the ImageHandle, in which case my only option would be to store the filename in my ImageHandle wrapper itself (not the end of the world I suppose).
Additional context

Piece of cake! I'll do this for you right away.
(As for why you can't get the filename from the handle... I think the idea was that since you needed the filename to get the handle in the first place, I figured you wouldn't have forgotten it so quickly.)

Thanks Larry!


Screenshots/Graphics for the Workshop post

I updated the 512x512 picture - at least changed it to differentiate it from the old version that is no longer updated.
I've seen multiple mods with screenshots showing off various aspects; I would like to add some as well, and would appreciate suggestions/submissions, etc.
Here's the 512x512 graphic, I have not yet checked it into the repo (in the workshop artifacts folder), I'll do that sometime this weekend

I am a fan of minimalistic approach. I wouldn’t add the screenshot. Screenshots should be just attached as pictures. This is a logo, 512x512, anything on this screenshot is barely visible.
I like the the idea of those 3 bars from 3 game setups. Plus the name with the year. For me that’s enough.

I wasn't clear - not a screen shot of the entire screen, but shots of the game that show off some of the elements.  Given what we observed with people going to the old version of the mod and complaining it didn't work, we know a lot of folks don't like to read.  Plus, some nice additions have been made, so showing them off would be good.
For example, like what Sukritact has on his mod:

This is one I just did, as an example (this is a snip from the screen, actual was 1200x800).  Same color scheme though I can't find that font from the original logo screen anywhere

Another one:

I’ve seen the pics on Steam, nice job.
What is the font you use to add descriptions?

I just noticed the update too. Very nice having the picture summary.
Minor typo in the Religion image, it says Religon.

D'oh, fixed the Religion one.  Working on that too late at night.  I had used "Goudy Old Style", but just realized the in-game fonts are probably packaged with it... and they are, so I'll update with the "official" font


Add KIS-1.2.2

Jenkins you're my hero. lol

@plague006 - I'll have to run a build on this one locally. In theory that shouldn't happen!


Fix line function evaluation when adding for BLS12 G2

Description

Reported by user codeblooded in discord. Crosschecked against Eqn(13) in https://eprint.iacr.org/2013/722

Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

[ ] Targeted PR against correct branch (master)
[ ] Linked to GitHub issue with discussion and accepted design OR have an explanation in the PR that describes this work.
[ ] Wrote unit tests
[ ] Updated relevant documentation in the code
[ ] Added a relevant changelog entry to the Pending section in CHANGELOG.md
[ ] Re-reviewed Files changed in the GitHub PR explorer

How breaking would this change be?

I think the code in main is actually right, and it is probably a typo on the paper you mentioned. See this paper where it is indeed λ and not -λ. This explains why the tests do not pass with this modification. I am curious if this code was written following this paper (with the typo) because it seems to be very similar (same names of variables, etc.), but without the typo :-) .

I think the best solution at this moment is to drop an email to the four authors.

I agree that equation (13) is probably a typo, we can verify it with the tangent equation, in fact, for M types (j, -theta, lambda) and (-j, theta, -lambda) are equivalent.

Let's close this for the time being, seems like the paper was incorrect.


Add support for High Power

Support high power variant
Support power level settings by user

I've been working on the high power stuff for a couple days, I'll eventually send out a pull request. I also managed to get my rfm69 fork to to communicate with a Feather M0 (the Feather is using RadioHead).

If you wanna take a look it's over here, I'm sure it'll need to be cleaned up a little. Just tell me what you want done and I'll correct it.

Hello,
thank you for working on this. I will definitely take a look. What is required in addition to have it communicate with Feather M0?
If it is just matter of settings I was planning to have RadioHead defaults the same way as there is already low_power_labs_defaults.

The spacing is off, but here's what I'm using. I believe the only difference is RadioHead sets the FIFO level to 15. So it's basically the sync words, node and broadcast addresses.

Looks pretty good, if you don't mind would you open PR for that as well?

Sure, it'll be a few days. I also saw a couple warnings that I need to fix.

I haven't forgotten about this, just need a bit more time. Also what do you think about merging in the packet thing you wrote in one of the examples?, maybe we could add it as a feature?

I haven't forgotten about this, just need a bit more time.

No worries we don't have to rush it.

Also what do you think about merging in the packet thing you wrote in one of the examples?, maybe we could add it as a feature?

I haven't really thought about that, but if someone finds it useful why not.

Once again I'm still gonna finish that pull request. Off-topic: I just ordered an RC airplane. I'm gonna see if I can use the RFM69HCW to control it. From what I've read I should be able to get ~500m or so which would be great.

Once again I'm still gonna finish that pull request. Off-topic: I just ordered an RC airplane. I'm gonna see if I can use the RFM69HCW to control it. From what I've read I should be able to get ~500m or so which would be great.

Ok I accidentally closed the pull request, but I am done minus actually testing the physical devices. I'll do another pull request once I confirm everything works.

Did this ever get merged? I'd be interested in leveraging the high power mode if it's already been implemented, or I could also help to finish the implementation, if it still needs some work.

Did this ever get merged? I'd be interested in leveraging the high power mode if it's already been implemented, or I could also help to finish the implementation, if it still needs some work.

Hi,
there is no PR to merge. And the high power is not currently implemented.

I would be interested in adding this, if you're open to a contribution for this. I think it could work the same way the API for the radiohead library works. Like this
...
    fn set_tx_power(power_level: u8, is_high_power: bool) {
        // Validate if this is a high power model?
        // Set the power level
    }
...

I don't have a hw to test it out, however I'm open to any contribution.


Fix invalid code generation when both parameter & return value output semantics are used

When both output parameter and return value semantics are present in an entry point (for example in a fragment shader for outputting to multiple render targets) there is invalid code generated:

Semantic indices are changed (which is particularily important for the case of SV_Target since it determines the index of the written render target)
Return value semantic is removed

For example, this code:
float4 main(
    out float4 o : SV_Target1,
    out float4 a : SV_Target2
) : SV_Target0
{
    o = 1;
    a = 3;
    return 2;
}

Gets converted into this:
#version 130

out vec4 SV_Target0;
out vec4 SV_Target1;

void main()
{
    SV_Target0 = vec4(1);
    SV_Target1 = vec4(3);
}

These bugs are caused by a single block of code in HLSLAnalyzer::AnalyzeEntryPointInputOutput which specificaly checks of these conditions (return value + non-zero semantic parameters). It then resets all the parameter semantic indices and then removes the return value semantic.
I am not sure what was the intent of that block of code, therefore I left the block there but tried to fix the problem for my situation.

I have actually amended my commit, and completely removed that block of code because it was causing another issue:
This code:
float4 main(
    float4 inPos : POSITION0,
    float4 inCol : COLOR0,
    out float4 outCol : COLOR0) : SV_Position
{
    outCol = inCol;
    return inPos;
}

Was being translated to:
#version 130

in vec4 inPos;
in vec4 inCol;

void main()
{
    gl_Position = inCol;
    gl_Position = inPos;
}

The block was replacing all output semantic parameters with the same semantic as the return value.
I'm sure there was a reason that code was there but I'll let you figure out if I broke anything by removing it.

As far as I remember, fxc overrides the semantics when a semantic is used for the function return type.
I need to figure out if this is still the case or if I made a mistake when I made a couple of tests with that.

Alright cool. I'm passing the HLSL similar to above to D3DCompile and it works fine, don't know about fxc.

I commonly use D3DCompile, too, but for testing purposes I sometimes use the old tool GPU ShaderAnalyzer from AMD which relies on fxc, but fxc in turn relies on D3DCompile.
Therefore, in the output there should be no difference between fxc and D3DCompile, but maybe I just misunderstood something with overriding semantics.
I'm still a little unhappy with the internal handling of input/output semantics anways.
But it's non trivial and a lot of work to refactor it.

I remember why I integrated this (but it's wrong anyways):
struct Out {
    float4 c0 : COLOR2;
    float4 c1 : COLOR3;
};
Out main() : TEXCOORD {
    return (Out)0;
}

The output semantics will be TEXCOORD0 and TEXCOORD1 instead of COLOR2 and COLOR3.
I keep you updated.

Should be fixed with cf594dc.

Thanks, looks good.


Pods not starting in OpenShift

Hey, when I install kubeinvaders the pod in openshift doesnt start - I keep getting the following errors. Are you aware of why this might be happening?
2022/03/09 15:45:38 [emerg] 13#13: setgid(65534) failed (1: Operation not permitted)
2022/03/09 15:45:38 [emerg] 12#12: setgid(65534) failed (1: Operation not permitted)
2022/03/09 15:45:38 [alert] 10#10: worker process 12 exited with fatal code 2 and cannot be respawned
2022/03/09 15:45:38 [alert] 10#10: worker process 13 exited with fatal code 2 and cannot be respawned

Hi! Thank you for using KubeInvaders! Can you try to run pod i privileged mode ore with scc for anyuid?

Hey, I've applied both of these commands but still get the same error
oc adm policy add-scc-to-user privileged system:serviceaccount:kubeinvaders:default oc adm policy add-scc-to-user anyuid system:serviceaccount:kubeinvaders:default

Which version of OCP are you using?

Sorry it's sorted now - the version is 4.8 but I created my own scc and added it as I couldn't add it to the privileged scc for some reason.
On another point, is there any functionality to be able to destroy the individual containers within a pod, rather than the whole pod itself?

hi @CharlieJ15420!
Ok I have to install an OCP4 cluster or CRC and test it... I will let know you know ;)


Delete feedback-and-community.md

Removing the following topic:
https://docs.microsoft.com/en-us/dotnet/framework/wcf/feedback-and-community
It only got 17 views last month, so I don't think it's even worth to set up redirections to the archived version. I discussed this with Hong offline.

build appears stuck. closing and reopening.


fix(dropdown): search text displayed in sizer element.

Current coverage is 99.47% (diff: 100%)

Merging #697 into master will increase coverage by <.01%

@@             master       #697   diff @@
==========================================
  Files           132        132
  Lines          2108       2109     +1
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
+ Hits           2097       2098     +1
  Misses           11         11
  Partials          0          0

Powered by Codecov. Last update 9673fc5...50c2636

This is a hidden element so the text is not visible.  Is it showing up in your case?

Sorry,I didn't catch update of css file.
I use version 2.1.8  and it was updated to 2.2.4.

Updated, thanks


azure fleet, fix service-dir for SDKs

ARM (Control Plane) API Specification Update Pull Request

Fix service-dir to align with namespace review: https://github.com/Azure/azure-sdk-pr/issues/1929.
service-directory-name is not touched as SDKs don't use this parameter.

[!TIP]
Overwhelmed by all this guidance? See the Getting help section at the bottom of this PR description.

PR review workflow diagram
Please understand this diagram before proceeding. It explains how to get your PR approved & merged.

Purpose of this PR
What's the purpose of this PR? Check the specific option that applies. This is mandatory!

[ ] New resource provider.
[ ] New API version for an existing resource provider. (If API spec is not defined in TypeSpec, the PR should have been created in adherence to OpenAPI specs PR creation guidance).
[ ] Update existing version for a new feature. (This is applicable only when you are revising a private preview API version.)
[ ] Update existing version to fix OpenAPI spec quality issues in S360.
[ ] Other, please clarify:

edit this with your clarification

Due diligence checklist
To merge this PR, you must go through the following checklist and confirm you understood
and followed the instructions by checking all the boxes:

[ ] I confirm this PR is modifying Azure Resource Manager (ARM) related specifications, and not data plane related specifications.
[ ] I have reviewed following Resource Provider guidelines, including
ARM resource provider contract and
REST guidelines (estimated time: 4 hours).
I understand this is required before I can proceed to the diagram Step 2, "ARM API changes review", for this PR.

Additional information

 Viewing API changes
For convenient view of the API changes made by this PR, refer to the URLs provided in the table
in the Generated ApiView comment added to this PR. You can use ApiView to show API versions diff.

Suppressing failures
If one or multiple validation error/warning suppression(s) is detected in your PR, please follow the
suppressions guide to get approval.

Getting help

First, please carefully read through this PR description, from top to bottom. Please fill out the Purpose of this PR and Due diligence checklist.
If you don't have permissions to remove or add labels to the PR, request write access per aka.ms/azsdk/access#request-access-to-rest-api-or-sdk-repositories
To understand what you must do next to merge this PR, see the Next Steps to Merge comment. It will appear within few minutes of submitting this PR and will continue to be up-to-date with current PR state.
For guidance on fixing this PR CI check failures, see the hyperlinks provided in given failure
and https://aka.ms/ci-fix.
For help with ARM review (PR workflow diagram Step 2), see https://aka.ms/azsdk/pr-arm-review.
If the PR CI checks appear to be stuck in queued state, please add a comment with contents /azp run.
This should result in a new comment denoting a PR validation pipeline has started and the checks should be updated after few minutes.
If the help provided by the previous points is not enough, post to https://aka.ms/azsdk/support/specreview-channel and link to this PR.

/azp run

/azp run

https://github.com/Azure/azure-rest-api-specs/pull/29679

/azp run


Moving new-kernel to 5.10.1 LTS

Signed-off-by: Roman Shaposhnik<EMAIL_ADDRESS>

kernel branch 5.10 - LTS? I see that 5.10 is STABLE, not LTS.
https://www.kernel.org/
EVE use LTS branches for kernel or STABLE in releases?

kernel branch 5.10 - LTS? I see that 5.10 is STABLE, not LTS.
https://www.kernel.org/

5.10 is going to be an LTS -- they just haven't gotten to properly labeling it yet. https://www.osnews.com/story/132730/linux-kernel-5-10-lts-released/

EVE use LTS branches for kernel or STABLE in releases?

LTS

kernel branch 5.10 - LTS? I see that 5.10 is STABLE, not LTS.
https://www.kernel.org/

5.10 is going to be an LTS -- they just haven't gotten to properly labeling it yet. https://www.osnews.com/story/132730/linux-kernel-5-10-lts-released/

EVE use LTS branches for kernel or STABLE in releases?

LTS

My bad, thx

We will also need to re-enable io_uring in the master branch

True @temerkhanov -- can you please send a pull request for that?

https://github.com/lf-edge/eve/pull/1761