PoC - Data Synchronization using Seedlot table between Postgres and Oracle Databases in QA environment [Batch execution]

After history load data from Seedlot tables in Oracle and Postgres Databases, data synchronization should be able to capture changes (updates/inserts) between both databases and spread the changes.
It will be done when:

All updated seedlot data in Oracle should change the right records in Postgres
All updated seedlot data in Postgres should change the right records in Oracle
All new seedlot data in Oracle should change the right records in Postgres
All new seedlot data in Postgres should change the right records in Oracle

Local tests found some discrepancies between Postgres and Oracle regarding Seedlot table described below:

--- Columns in SEEDLOT TABLE THAT EXISTS IN POSTGRES BUT NOT FOUND IN ORACLE:
area_of_use_comment column
interm_strg_locn_code
non_orchard_pollen_contam_pct
temporary_strg_client_number
temporary_strg_locn_code

--- Columns in SEEDLOT TABLE THAT EXISTS IN ORACLE BUT NOT FOUND IN POSTGRES:
--- POSTGRES SPAR SEEDLOT TABLE
COANCESTRY
COLLECTION_AREA_RADIUS
COLLECTION_BGC_IND
COLLECTION_CLI_LOCN_CD
COLLECTION_SEED_PLAN_ZONE_IND
COLLECTION_SOURCE_CODE
COLLECTION_STANDARD_MET_IND
CONE_COLLECTION_METHOD2_CODE
CONE_COLLECTION_METHOD_CODE
CONE_SEED_DESC
EXTRACTION_COMMENT
EXTRACTION_VOLUME
FS721A_SIGNED_IND
HISTORICAL_TSR_DATE
INTERM_STRG_CLIENT_LOCN
INTERM_STRG_CMT
LNGTERM_STRG_ST_DATE
NAD_DATUM_CODE
NMBR_TREES_FROM_CODE
ORCHARD_COMMENT
ORCHARD_CONTAMINATION_PCT
ORCHARD_ID
ORG_UNIT_NO
ORIGINAL_SEED_QTY
PRICE_COMMENT
PRICE_PER_KG
PROVENANCE_ID
REGISTERED_DATE
REGISTERED_SEED_IND
SECONDARY_ORCHARD_ID
SEED_COAST_AREA_CODE
SEED_PLAN_ZONE_CODE
SEED_STORE_CLIENT_LOCN
SEED_STORE_CLIENT_NUMBER
STORED_CLI_LOCN_CD
STORED_CLI_NUMBER
SUPERIOR_PRVNC_IND
UTM_EASTING
UTM_NORTHING
UTM_ZONE

To continue tests, synchronization will be done only on matching columns between databases.
CC: @RMCampos , @craigyu


Optimize variant price and is published product filters

I want to merge this change because it optimizes the filtering of products by "is published" and "variant price" filters.
is_published before (450ms)
is_published after (1,65ms) - 272x faster
variant_price before (230ms)
variant_price after (3,68ms) - 62,5x faster

Impact

[ ] New migrations
[ ] New/Updated API fields or mutations
[ ] Deprecated API fields or mutations
[ ] Removed API types, fields, or mutations

Docs

[ ] Link to documentation:

Pull Request Checklist

[ ] Privileged queries and mutations are either absent or guarded by proper permission checks
[ ] Database queries are optimized and the number of queries is constant
[ ] Database migrations are either absent or optimized for zero downtime
[ ] The changes are covered by test cases
[ ] All new fields/inputs/mutations have proper labels added (ADDED_IN_X, PREVIEW_FEATURE, etc.)
[ ] All migrations have proper dependencies
[ ] All indexes are added concurrently in migrations
[ ] All RunSql and RunPython migrations have revert option defined

FYI - I was testing the workflow to check patches on this PR, and it failed; I checked that manually, and I think it's because this branch would need a rebase with 3.20.

Hey @tomaszszymanski129 what's the status of this PR? It hasn't seen any actions for some time now 🙌

@aniav there are two things I need to check here to make sure filtering behaviour is exactly as it was, though I switched to more urgent stuff and never had the time. I'll try to test it this week and if it's fine I'll merge. If there are some changes that needs to be applied it has to wait in queue. In 2nd case, I'll write an update so we don't see it's hanging open for no reason.

Outdated, closing it for now, we have a ticket for it to tackle later, it's low prio.


ESP text becomes smaller and ureadable once ESP font is changed

The ESP when kept at default works fine but once I try to change the font, ESP txt becomes small and unreadable. Even when I switch back to default font it stays that way and is forever stuck to that config even after restart. Images attached:
Normal ESP text:

When Font is changed:

I play at 4:3 resolution if that helps

This is true, on 1080p even the text is too small, Requesting a Font size option in ESP


Array indexing of sparse matrices

After talking to @quasiben I've been looking into using CuPy as a shim to support sparse matrices in PyTorch (the current support is not great).
The gist is that I can fit a sparse matrix into GPU memory but not a dense one. So, the idea is to use a CuPy sparse matrix and a custom DataLoader: I should be able to quickly train a model by indexing into the CuPy matrix, densifying a batch of data, and doing a zero-copy conversion to a tensor to feed into my model.
Unfortunately it appears that CuPy's sparse matrices don't support array indexing, which would be the natural way to do this (in the sense that PyTorch's DataLoader class returns a list of integers to index into your data). There's definitely a way to get this working with single indices and vstack but I thought I'd raise an issue because scipy does support this and it'd be a lot cleaner for me.
Thanks!

Conditions (you can just paste the output of python -c 'import cupy; cupy.show_config()')
CuPy Version          : 6.2.0
CUDA Root             : /usr/local/cuda
CUDA Build Version    : 9000
CUDA Driver Version   : 9000
CUDA Runtime Version  : 9000
cuDNN Build Version   : 7402
cuDNN Version         : 7402
NCCL Build Version    : 2307
NCCL Runtime Version  : 2307
Code to reproduce

scipy_sparse = scipy.sparse.random(100, 100).tocsr()
scipy_sparse[[0,1],:] # this works for csr matrices

cupy_sparse = cupy.sparse.csr_matrix(scipy_sparse)
cupy_sparse[[0,1],:] # error :(

Error messages, stack traces, or logs

---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-70-425afa4195a2> in <module>
      3
      4 cupy_sparse = cupy.sparse.csr_matrix(scipy_sparse)
----> 5 cupy_sparse[[0,1],:]

/opt/conda/lib/python3.7/site-packages/cupyx/scipy/sparse/compressed.py in __getitem__(self, slices)
    247                 return self._get_major_slice(major)
    248
--> 249         raise ValueError('unsupported indexing')
    250
    251     def _get_single(self, major, minor):

ValueError: unsupported indexing

It might be possible with the changes in master to select individual indices and concatenate them together. For example one can do this with a development build of CuPy.
cupyx.scipy.sparse.vstack([cupy_sparse[0, :], cupy_sparse[1, :]])

It might be possible with the changes in master to select individual indices and concatenate them together.

Yeah I mentioned that approach above, but realistically it's not two indexes it's hundreds or thousands. I could vstack a list comprehension of rows but I suspect that will copy a bunch of memory? Even if not it's kind of a hacky addition to something that was already going to be hacky...

Ah ok. Sorry for missing that.
At worst it seems like that would double memory usage to reserve space for the copy. I don't know how tight your workloads run on the memory side. Do you know?
Yep that's fair. It's definitely hacky. Just thinking about things we have at our disposal today that might unblock this 🙂

It really depends on the specific project, but if the data is some multiple of GPU memory then that would halve your potential batch size. Which may not be a big deal, but nice to avoid if possible.
I wouldn't really call this a blocker at the moment since I'm not trying to do anything in this space right now, and when I does it just took longer than it might have.
It was more like "oh does this solve my problem easily? No? Okay maybe someday". The more hacky it gets, the harder it is to use because other parts of the methods are going to change and might require more hacks. Ideally the PyTorch folks would solve this themselves.

Ideally the PyTorch folks would solve this themselves.

@jamestwebber we're picking this up, currently @pearu is writing an RFC for major improvements needed in PyTorch sparse support. There's already https://github.com/pytorch/rfcs/pull/4, and the bigger-picture RFC will be submitted to that same repo. If you have particular pain points, your input is very welcome.

Great to hear, I'll look at that RFC soon and if I have anything to add I'll be sure to mention it.

@rgommers I guess if you're working on that I should really get back to working on that scipy issue I promised...

This is planned to be in CuPy 8.0.0.

Thanks for fixing this, I started using it about a week ago. I see about 2.5x speed increase in training my model when I can keep it entirely in GPU memory and convert to dense tensors on demand.
I wrote up my (very simple) solution in a gist in case anyone wants to use it.

Thanks for testing this out @jamestwebber ! Now for distributed GPUs :)


[Request] Remove head dot when first person spectating another player

Hey,
Currently while first person spectating a player that is a valid target for head dot, you can see a floating dot moving around which is rather distracting. Might be a good idea to remove it for the current spectate target. See below:

Thanks,
Pointy

@pointydev and fov/ viewmodel fov also

I think this has been said before, but in case no one saw it, please replace the head dot with bone esp.

please replace the head dot with bone esp.

probably not replace, but add alongside perhaps

Eye sights also have this issue.
possible solution: loop over all players and get their observers, if we see the local player we stop and skip them when rendering the esp.

if(!localPlayer->isAlive()) return: ?

localplayer doesnt refer to the spectated player.

Fixed, thanks for reporting the issue.


Setup issues.

Hey, Can you please provide more details about the Setup/Usage.
It seems like when you try to setup the DHCP/DNS on a computer that is connected to the internet through a router that has a wlan it uses DHCP from this router. It will be appreciated if you can give more details about the networking setup, the steps are clear but the setup is confusing. I want to use the tool on a Mac OS and join a client that has wifi ( like a mobile or tablet, etc...).
Thank you in advance.

My guess is that you are starting a DHCP server on the server running certmitm so that the clients will use this server as the gateway, instead of your router.

Hi，Could you please provide more details about the topology? It seems like we need two network cards, one wired and one wireless? How can my mobile phone connect to the certmitm using wifi?
Thank you for your time.


Modify chronoboost to have 2 buttons

1 button for chronoboost next unit
1 button for chronoboost previous unit. So multiple chronoboosts can be used on a long upgrade or unit

added new chronoboost button and function


Prepare for 1.2.2

@aanm make in examples/kubernetes adds some annotations. Is this OK?

This change is

test-me-please

test-me-please

test failed because missing PR https://github.com/cilium/cilium/pull/5319. It is already marked to be backported.

test-me-please

@aanm Please confirm update of tolerations

test-me-please


Not compatible with Zepto.js

Spiner not working with Zepto i think AMD related issue, Plz Help

Please provide more information, like a sample HTML page demonstrating the issue.


Revert "* Supported table.Transaction.WithCommit() method for execu…

…te query and auto-commit after"
This reverts commit 2bb8aa955365894ecbb691453172a6e67f586f5a.
I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en

Pull request type

Please check the type of change your PR introduces:

[x] Bugfix
[ ] Feature
[ ] Code style update (formatting, renaming)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] Documentation content changes
[ ] Other (please describe):

What is the current behavior?

Issue Number: N/A
What is the new behavior?

Other information

Codecov Report
Base: 62.60% // Head: 47.57% // Decreases project coverage by -15.02% :warning:

Coverage data is based on head (74c3041) compared to base (4ea5cc1).
Patch coverage: 42.85% of modified lines in pull request are covered.

Additional details and impacted files
@@             Coverage Diff             @@
##           master     #503       +/-   ##
===========================================
- Coverage   62.60%   47.57%   -15.03%
===========================================
  Files         219      132       -87
  Lines       20918    13997     -6921
===========================================
- Hits        13095     6659     -6436
+ Misses       7166     7041      -125
+ Partials      657      297      -360

Flag
Coverage Δ

1.16.x
47.15% <42.85%> (-15.23%)
:arrow_down:

1.18.x
47.61% <42.85%> (-14.90%)
:arrow_down:

1.19.x
47.61% <42.85%> (-14.92%)
:arrow_down:

connection
?

database_sql
?

discovery
?

e2e
?

integration
?

macOS-latest
47.57% <42.85%> (+0.03%)
:arrow_up:

ratelimiter
?

scripting
?

table
?

topic
?

ubuntu-latest
47.57% <42.85%> (-14.98%)
:arrow_down:

unit
47.57% <42.85%> (-0.11%)
:arrow_down:

windows-latest
?

Flags with carried forward coverage won't be shown. Click here to find out more.

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

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


CLIMATE-838 - Update configuration files and example scripts to use new DatasetLoader

This PR makes the following changes:

Datasets are now loaded from the new DatasetLoader class in run_RCMES.py.
I also cleaned up run_RCMES.py to make it more closely conform to PEP8, in particular I made many blocks of code multiline to make them more readable. There is still much more that can be done, but this seems like a good start.
Several variable names had to be changed in the config files in order to make them compatible with DatasetLoader. Also note that new blocks of info for each dataset loader are now denoted by a dash (-) under reference and targets. This will make it easy to use multiple loaders in each file.

Note that the capability of handling more than one reference (observation) dataset is still not included, I am saving that for a separate JIRA issue / PR. Right now getting these fundamental changes out of the way and making sure everything else works is a bigger priority.
So far I have only tested these changes for one config file (RCMES/configuration_files/cordex_AF_prec_subregion_annual_cycle_time_series.yaml). @huikyole, please feel free to make comments and keep me posted here.

Can one of the admins verify this patch?

This PR is a major breakthrough in RCMES development.


Add explicit version number for all ActiveRecord migrations

📖 Description and motivation
When running the initial migrations, an error was occuring:
| StandardError: An error has occurred, this and all later migrations canceled:
|
| Directly inheriting from ActiveRecord::Migration is not supported. Please specify the Rails release the migration was written for:
|
|   class CreateApplications < ActiveRecord::Migration[4.2]

Specifying a version number is now required (it was not before).
👷 Work done
Tasks

[x] Add [4.2] version number to all existing migrations

🦀 Dispatch
#dispatch/rails

🦀 Requesting reviewers for this pull request:

@lucbernard (reviewer for the rails stack)


Torch saving loading

@jason-fries I think this approach of just using torch instead of pickle to save and load the whole object should work---it does on CPU with simple test---but can you check that it works for the CPU/GPU mapping case?
If it doesn't work, then may have to save/load the model object and state_dict (buffers and Parameters) separately...

Cool. And torch.save uses python's pickle for serialization anyway, and can also store non-torch objects like dicts, etc., so it shouldn't be too different. For posterity's sake, what was the problem that you ran into @jason-fries that this is solving?

I think the major issue is that if you pickle a model that has stored .cuda() weights and try to load it on the CPU you get an error -- @jason-fries correct me if I'm wrong.

@jdunnmon is right.  I was training models on the GPU but loading them elsewhere on CPU. torch.load can handle that remapping as outlined here https://discuss.pytorch.org/t/on-a-cpu-device-how-to-load-checkpoint-saved-on-gpu-device/349

Cool. With your thumbs up then, @jason-fries, we'll merge it in.

@jason-fries ready to merge then?

Yup!


perf(vite): don't analyze compressed size after build

🔗 Linked issue
resolves nuxt/nuxt#23352
❓ Type of change

[ ] 📖 Documentation (updates to the documentation or readme)
[x] 🐞 Bug fix (a non-breaking change that fixes an issue)
[ ] 👌 Enhancement (improving an existing functionality like performance)
[ ] ✨ New feature (a non-breaking change that adds functionality)
[ ] 🧹 Chore (updates to the build process or auxiliary tools and libraries)
[ ] ⚠ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description
This disables vite reporting compressed size for client + server assets, which should save some time when building. I think we can likely rely on nitro doing this for us (https://github.com/nuxt/nuxt/issues/13764).
📝 Checklist

[ ] I have linked an issue or discussion.
[ ] I have updated the documentation accordingly.

resolves #23352

Not quite, this was already applied in the reproduction example.
It doesn't allow opt-out from the final "Nitro Server" build step, which I'm not sure what the config setting for that is.


mat: address two small TODOs

use CopyVec per a TODO, references long-resolved issue #167
in Cholesky.SymRankOne don't modify receiver if singular

i think i've pushed a version with everything cleaned up.  1 of the required travis jobs failed but the error message doesn't mean anything to me...

I gave it a kick.

We generally rebase onto master, so merging master back into working branches is unnecessary.
Can you please interactively rebase this to be two commits, one for the copy and one for the conditional update. If you want that can be rebased onto master, but that's not necessary.

ive done a fresh request with a fresh clean branch


Landing page issues

Past Issues Searched

[X] I have searched open and closed issues to make sure that the bug has not yet been reported

Issue is a Bug Report

[X] This is a bug report and not a feature request, nor asking for support

Describe the bug
I was trying out the landing.yaml to use it as the landing page for our doc set, and ran into some issues.

[ ] Can’t have book icon in upper left to logo and link to main website (e.g., I’m on docs.solo.io and want this to go back to solo.io)
[ ] Can’t have the CTA buttons as anchors to content further down the page.
[ ] Can’t add anchors to sections further down the page. At least I tried adding yaml fields for anchors and it didn't seem to do anything.
[ ] Can’t have more than one feature section for different collections of docs. It errors or only displays one of the feature sections.
[ ] In the feature section, can’t click or add a button to go to a page with more info.

Related but different issues:

https://github.com/colinwilson/lotusdocs/issues/116

Expected behavior
See the previous list, which I expected based on common landing page patterns.
Screenshots
No response
Environment
- OS: MacOS
- Browser: brave, chrome, safari
- Browser Version: Brave Version 1.58.137, Chromium: 117.0.5938.153, Safari 16.6

@artberger Thanks for this. 👍
I plan to have all the tasks you listed addressed in an update scheduled for Sunday coming.

Can’t have more than one feature section for different collections of docs. It errors or only displays one of the feature sections.

Can you expand on this task a little bit? I'm not sure I understand 100%.

@colinwilson thank you for the update!
For the features, we have a couple sets of docs and wanted to have both of them. So right now, I can get something like this for a Gloo Gateway collection:

But I thought adding another one for Gloo Mesh, such as:

It doesn't seem I can get them both to show up at the same time; i. e., you can only have one features list on the landing page.

Thanks for clarifying. 👍
Yes! This is exactly what I'm working on rectifying. It will involve a small breaking change to how the sections are defined in the landing.yaml data file. But will allow any landing 'section' template to be used multiple times.

Fixed by #132, #133, #134, #136


EN connected to GND?

1st of all, thanks a lot for the class and examples, it saves a lot of time!!
As I've seen in the code, it's not possible to connect EN to GND, and if one doesn't want to disable the multiplexer (how often does anyone disable an I/O anyway?) then anooother arduino PIN is used for this (that would make the 6th pin, which in my opinion is total overkill).
I was wondering if you were interested in allowing a "-1" value for "en" for example, or a "GND" constant in the Constructor, taking care as well of any reference to "en" attribute later on in the code.
I write to you because you are the author, and I think it would be nice to have this for the future and for everyone :)
Thanks,
Diego

Hi Diego,
To get extent that I can remember the details of the module and my library, the enable pin serves two purposes.
One consideration has to do with hardware, and yes it's not necessary in every use case. By disabling a module, you allow the use of multiple multiplexers in parallel.
Another consideration has to do with software. I use the enable pin to disable the module, as I transition between channel. My assumption here is that the current value of the sig pin could accidentally pass to the other side, and trigger an unwanted event, before the desired channel is selected.
Feel free to fork the library, and experiment with it. And if you find out that you don't have any interference problems, then go ahead and eliminate the enable pin.

Aaaah, I haven't thought of that. You must be right, i've read about issues with false positives and most probably the way you do it gets rid of it. I have everything plugged and ready but haven't tried the software yet. I'll play with it, and if anything come back to you!
Thanks again,
Diego


Module #1: Melanoma data table doesn't appear

Because I posted a "clean" version of the HTML document with no code run, the Melanoma data table does not appear as promised. I need to see if I can run just that one code chunk without showing the output from all the others.

This works now. This is a tricky one that I might have to rethink in the future. The problem is that I suppress output for all other chunks so that students have to type the commands themselves at the Console, but this one chunk has to be fun. It's fine if when I edit the file I remember to remove output AND re-run just the one chunk, but that might not be a sustainable way to edit this file in the future when I will (inevitably) forget.


[3.1] Sema: Don't infer associated types from witness candidates that contradict explicit type witnesses.

Explanation: If a conforming type provided explicit witnesses for some of its associated types and inferred others, we would still harvest inference solutions from methods that contradict the explicit witnesses, leading to bogus ambiguity errors in some situations. Fix this by skipping inference candidates that contradict explicit type witnesses.
Scope: Compatibility regression from 3.0, where we somehow didn't run into this problem given the way collection protocols were structured then.
Issue: SR-3979.
Risk: Low.
Testing: Swift CI, test case from Jira

@swift-ci Please test

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

@shahmishal The OS X builder seems to have run out of processes. Can it be cleaned up?

@swift-ci Please test macOS

Thanks @shahmishal!


[WIP] Fix Freq in GUI PSD Plot

Update PSD plot in gui _viz_manager so that min/max frequency are set… according to the plot config rather than being hard coded
See issue #910

Might consider renaming the widgets to remove the 'spectral' from the widget names. Before they were specific to the spectrogram plots, but with this change they are not.

Tested it myself and LGTM. I'll note that for the PSD plot, changing the Min or Max Spectral Frequency then clicking "Add plot" does successfully update the view. However, for the spectrogram, the view is not updated. This may be a separate bug.

I think it's over-plotting a new line when you click add-plot and then updating the axis. There's no over plotting functionality with the spectrogram, so you need to clear then "add plot" to re-plot the axis.

Yep, you're right, clearing the axis and then re-adding the plot successfully changes the frequency range for the spectrogram too.
Because this is needed for Thursday's gamma tutorial and I can't find problems with it, merging.


Add backprop functionality for concat.

We don't currently support concat on the Graph as we don't have shaders written for backprop.
To do this (for each concat dimensionality):

Add NDArrayMath methods NDArrayMath.concatND backprop.
Add an Operation for the concat. concat3d has been started here which does the forward / backwards passes.
Add them to the Graph, with an associated Node, for example this was started for concat3d here
Add code in operation_emitter which maps the Node to the Operation.

Closing since this is obsolete since the 0.5.0 release (graph is deprecated and we have gradients for concat)


add command line option for timeout

Thanks for making this very useful plugin! 🙏
Is your feature request related to a problem? Please describe.
I have some very slow notebooks that need a long timeout (longer than the default of 300s). I'm finding it inconvenient to edit the notebook json metadata manually, i.e. adding
  "execution": {
    "timeout": 3000
  },

Describe the solution you'd like
It would be great to be able to instead specify this option on the command line from pytest, e.g.
pytest --nbmake-timeout=3000 --nbmake notebook.ipynb

Great idea @rabernat , thanks for the write up.
I reckon I'll add this arg in the next week.

@rabernat  I've released 1.0 with this feature


Initial Makefile

Initial Makefile
I know $(GOCMD) is longer than go but not sure which one to keep.
We definitely need to talk about the logic of a lot of these targets. There are some that are useless, some that make no sense and some that are just duplicated in logic. This is a first draft of what I have that produces some actual output.

Should fix #33 when it's done.

@Anastasiadis @cerebrux please review

@ktsamis I found a better way of handling the go get. Please read: https://github.com/go-modules-by-example/index/blob/master/010_tools/README.md
Actually it was part of https://github.com/drpaneas/romie/issues/20

Sorry for not reviewing the changes earlier. I'm glad it worked out :)


[SCTP] Stream::read: partial read OR returning the expected size of the buffer

The problem I'm facing right now is where I'm passing a buffer to Stream::read, which is not big enough (Error::ErrShortBuffer). Note there's no indication of the expected size => you're forced to guess the number.
Also note it's different from TcpStream https://doc.rust-lang.org/std/io/trait.Read.html#tymethod.read, which partially reads the data and does not put any restrictions on the size of the buffer (i.e. you, the caller, is in control of how fast you're consuming data).
I can see that the code in Pion is identical to one here, but I nonetheless think we need to change something.
Either

switch to "tcp stream" partial reading model
indicate the expected buffer size by changing ErrShortBuffer to be ErrShortBuffer { min: usize }

(1) is more "rust" therefore preferred.
There's also talk about auto-tuning buffer size, which is slightly related https://github.com/pion/sctp/issues/218#issuecomment-1080008490

https://github.com/webrtc-rs/sctp/blob/ed21dae1aa7dc5f37bd40fb344fa19746b932570/src/queue/reassembly_queue.rs#L282
also, why are we subtracting n_bytes before we've actually successfully written them to client's buffer?

Migrated from https://github.com/webrtc-rs/sctp/issues/28

From the last issue, the agreement seems to be that we should mimic the TCP implementation. My only concern is whether it would be tricky to use an API like this for the data channels

If anyone is interested in looking at this the first step should be to verify that the change in SCTP would not make its use impossible in the upstream crates. If it turns out to be okay the next step is to implement this

I'm looking at this right now.

If anyone is interested in looking at this the first step should be to verify that the change in SCTP would not make its use impossible in the upstream crates. If it turns out to be okay the next step is to implement this

what is the best way to do it?
opened https://github.com/webrtc-rs/webrtc/pull/304

Well, with the merged monorepo I should think that we are okay as long as the code still compiles and the tests all pass 🤔

See https://github.com/webrtc-rs/webrtc/pull/304#issuecomment-1271652707. Requires more thinking and design.


Fix sample construction in Frankenstein server.

Thats what I get for not testing this I guess...
LGTM


For update the limit for number of sites on WAF.

Application Gateway has the limit for number of sites.
The limit is 100 as the following document show even though using WAF SKU. But this document shows the limit is 20 on WAF.
Application Gateway limits
https://docs.microsoft.com/en-us/azure/azure-subscription-service-limits#application-gateway-limits

The following table applies to v1, v2, Standard, and WAF SKUs unless otherwise stated.
Number of sites	100
Could you change the description?

@mamaejim : Thanks for your contribution! The author, @vhorne, has been notified to review your proposed change.


Remove actions-rs GitHub Actions

GitHub is deprecating the node 12 runtime for GitHub Actions. actions-rs/toolchain and actions-rs/clippy are unmaintained and currently emit warnings due to the deprecation.
Replace these with actions from https://github.com/artichoke/setup-rust.
Audit and rustdoc workflows are not updated since these are managed by Terraform in artichoke/project-infrastructure.
Skip miri workflow, blocked on https://github.com/artichoke/setup-rust/issues/6.

LeakSan build failures on macOS reported here: https://github.com/rust-lang/rust/issues/103404. It looks like the macOS runner updated to macOS 12.6 from macOS 11.7 between the scheduled run earlier this week and this PR.

admin merge to bypass broken leaksan test on macos. See:

https://github.com/rust-lang/rust/issues/103404


Add SpanJson to Benchmarks

Added Reference to nuget package.
Added Utf16 Version to Serializer and Deserializer Comparison. I postfixed the name with Utf16 as this is consistent with my own tests and it's easier to add an Utf8 version later.
Added both Utf8/Utf16 versions to JsonReaderComparison.

Benchmarks are in #2288

Tagging @ahsonkhan as requested.

It would be good if the description of this PR included the pref results (i.e. BenchmarkDotNet report)

I added the benchmark results to the description too and added the actual benchmark names (those I missed before).
@adamsitnik  Thanks for the praise, but most of that belongs to all of you implementing the performant Span and related APIs.

@tornhoof, Thanks!
@ahsonkhan, @joshfree, we need to think which set of technologies are included in this benchmark suite. So that we don't end up with 100s of libraries being benchmarked here. I would propose something like the following:

Corfxlab tenchnologies ... duh :-)
Popular established technologies (JSON.NET, JIl) we chose.
The fastest technology submitted by the technology owner.

@KrzysztofCwalina agreed.  Also we should be clear in the benchmarks that this is temporary/experimental for @ahsonkhan 's investigation - and at some point in the near future the benchmarks will go away.


Proposed Solution: A Neural Compiler for Direct Hardware Execution

Improved Proposal
Proposed System Summary
Imagine instructing a computer in plain English to solve a complex problem. Our system would not only understand your request but would also dynamically create highly optimized microcode tailored to your specific needs. This microcode would be generated on-the-fly, leveraging the unique capabilities of the underlying hardware, from CPUs to GPUs.
By bypassing traditional compilation processes and directly interfacing with the hardware, we aim to achieve unprecedented computational efficiency. Our system would essentially become a co-creator, working alongside you to transform your ideas into optimized machine code. This innovative approach has the potential to revolutionize problem-solving across various domains.
Comparison of Abstraction Layers

Layer
Traditional C++ Programming
Proposed System

Highest
Application Logic
Natural Language Input

Intermediate
Language Constructs (classes, functions, variables)
Probabilistic Model, Semantic Representation

Low-Level
Compiler, Assembler, Machine Code
Neural Compiler, Optimized Microcode

Hardware
CPU, Memory, Peripherals
CPU, GPU, Accelerators, Interconnects

Note: The Bender interpreter, while using C++, operates at a higher level of abstraction due to its focus on a specific domain (robot control). The proposed system aims to eliminate many of these intermediate layers, directly mapping natural language to optimized machine code.
Would you like to delve deeper into a specific layer or explore potential challenges and benefits of this approach?
Proposed Solution: A Neural Compiler for Direct Hardware Execution
Objective: Develop a neural compiler capable of translating natural language instructions directly into optimized machine code, bypassing traditional compilation and microcode stages to achieve unprecedented performance.
Approach:

Language Model Integration: Incorporate a powerful language model to understand and interpret human-readable instructions with high accuracy.
Hardware Knowledge Base: Create a comprehensive database detailing the architecture, instruction sets, and capabilities of target CPUs and GPUs.
Neural Network Compiler: Design a neural network to map natural language instructions to optimized machine code sequences, leveraging the hardware knowledge base.
Iterative Optimization: Employ reinforcement learning to refine the compiler's output through continuous simulation and performance evaluation.

Key Features:

Direct Hardware Mapping: Eliminate intermediate representations for maximum efficiency.
Dynamic Instruction Generation: Allow the system to invent new instruction-like operations as needed.
Extreme Optimization: Pursue performance gains beyond those achievable through conventional compiler techniques.

Challenges and Considerations:

Hardware Complexity: Accurately model the intricacies of modern processors.
Data Requirements: Gather sufficient high-quality training data for the neural compiler.
Debugging and Verification: Develop effective methods for identifying and correcting errors in generated code.

Alternative Approaches:

Hybrid Compilation: Combine neural compilation with traditional compiler techniques for specific optimizations.
Quantum-Inspired Computing: Explore quantum computing principles for novel optimization algorithms.
Specialized Hardware Accelerators: Design hardware specifically tailored for neural compilation and code execution.

Timeline: Realizing a fully functional system of this nature is a significant challenge requiring substantial advancements in several fields. However, incremental progress is achievable through focused research and development efforts.
Additional Notes:

Consider using more precise terminology (e.g., "neural compiler" instead of "interpreter") to clarify the system's function.
Emphasize the potential for groundbreaking performance improvements and novel algorithm discovery.
Acknowledge the exploratory nature of the proposal and the need for rigorous evaluation.

By refining the language and structure of the proposal, we can enhance its clarity and impact.
Would you like to delve deeper into a specific aspect of this proposal?

This is unrelated to Bend


want to add word counting program

Please assign me this task under HacktoberFest 2024 #76

Please assign me this task under #76

/assign


Start a new file

I would like to be able to start Zed and just open a new file without opening a local folder or editing an existing file.
Can this be added to the start options?
Thanks!

Hi,
I'm very new to Zed, just downloaded today in fact, but this seems like a pretty common thing to want to do?  As in, start work on a file and only later decide where to store it, or even name it?  As in, don't start with it persisted at all, and have a 'save as' function (with save redirecting to 'save as' if the file hasn't previously been saved).
I'm not familiar with chrome app architecture, but the 'in a temp folder' to be saved elsewhere is a fairly common pattern (Notepad++ for instance does exactly that, if you look under the hood), so it seems a reasonable approach, and fits (or at least it seems to me) with the 'just get on with it' philosophy.


error when creating yaml file.

Traceback (most recent call last):
File "C:\Program Files\Python36\lib\runpy.py", line 193, in run_module_as_main
"main", mod_spec)
File "C:\Program Files\Python36\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "kijiji_repost_headless_main.py", line 200, in
main()
File "kijiji_repost_headless_main.py", line 51, in main
args.function(args)
File "kijiji_repost_headless_main_.py", line 196, in generate_post_file
generator.run_program()
File "kijiji_repost_headless\generate_post_file.py", line 199, in run_program
address_map = restart_function(get_address_map)
File "kijiji_repost_headless\generate_post_file.py", line 109, in restart_function
returned_value = func()
File "kijiji_repost_headless\generate_post_file.py", line 34, in get_address_map
resp.raise_for_status()
File "C:\Program Files\Python36\lib\site-packages\requests\models.py", line 940, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://nominatim.openstreetmap.org/search?q=Brampton%2C+ON%2C+Canada&addressdetails=1&format=json

Possibly due to Openstreetmap thinking that you are violating their terms of service and thus blocking you specifically.
I can verify that this OSM query returns results for me when I send the request from my end. Have you been going over their rate limit of one request per second?
We may need to look at including a truthful HTTP referer or UserAgent string to identify this project when we make queries to OSM.

i just tried first time but didn't work and i didn't do anything to violation

[{"place_id":235780634,"licence":"Data © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright","osm_type":"relation","osm_id":2407358,"boundingbox":["43.6018018","43.8480959","-79.8888473","-79.6302939"],"lat":"43.6858146","lon":"-79.7599337","display_name":"Brampton, Peel Region, Golden Horseshoe, Ontario, Canada","class":"boundary","type":"administrative","importance":0.8268914513324357,"icon":"https://nominatim.openstreetmap.org/images/mapicons/poi_boundary_administrative.p.20.png","address":{"city":"Brampton","county":"Peel Region","state_district":"Golden Horseshoe","state":"Ontario","country":"Canada","country_code":"ca"}},{"place_id":16646012,"licence":"Data © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright","osm_type":"node","osm_id":1551461111,"boundingbox":["43.6818917","43.6918917","-79.7696832","-79.7596832"],"lat":"43.6868917","lon":"-79.7646832","display_name":"Brampton, Railroad Street, Ridgehill, Brampton, Peel Region, Golden Horseshoe, Ontario, L6X 1R2, Canada","class":"railway","type":"station","importance":0.6787056755444555,"icon":"https://nominatim.openstreetmap.org/images/mapicons/transport_train_station2.p.20.png","address":{"station":"Brampton","road":"Railroad Street","neighbourhood":"Ridgehill","city":"Brampton","county":"Peel Region","state_district":"Golden Horseshoe","state":"Ontario","postcode":"L6X 1R2","country":"Canada","country_code":"ca"}},{"place_id":78346303,"licence":"Data © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright","osm_type":"node","osm_id":7034733826,"boundingbox":["43.6864776","43.6865776","-79.7661082","-79.7660082"],"lat":"43.6865276","lon":"-79.7660582","display_name":"Brampton, Railroad Street, Ridgehill, Brampton, Peel Region, Golden Horseshoe, Ontario, L6X 1R2, Canada","class":"railway","type":"stop","importance":0.32100000000000006,"address":{"address29":"Brampton","road":"Railroad Street","neighbourhood":"Ridgehill","city":"Brampton","county":"Peel Region","state_district":"Golden Horseshoe","state":"Ontario","postcode":"L6X 1R2","country":"Canada","country_code":"ca"}},{"place_id":274545744,"licence":"Data © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright","osm_type":"node","osm_id":5875522755,"boundingbox":["43.6872293","43.6873293","-79.7623089","-79.7622089"],"lat":"43.6872793","lon":"-79.7622589","display_name":"Brampton, Brampton Bus Terminal, Ridgehill, Brampton, Peel Region, Golden Horseshoe, Ontario, L6X 1R2, Canada","class":"railway","type":"stop","importance":0.32100000000000006,"address":{"address29":"Brampton","road":"Brampton Bus Terminal","neighbourhood":"Ridgehill","city":"Brampton","county":"Peel Region","state_district":"Golden Horseshoe","state":"Ontario","postcode":"L6X 1R2","country":"Canada","country_code":"ca"}}]

X-Firefox-Spdy
h2

access-control-allow-methods
OPTIONS,GET

access-control-allow-origin
*

content-type
application/json; charset=UTF-8

date
Fri, 14 Feb 2020 07:21:29 GMT

expect-ct
max-age=0, report-uri="https://openstreetmap.report-uri.com/r/d/ct/reportOnly"

server
Apache/2.4.29 (Ubuntu)

strict-transport-security
max-age=31536000; includeSubDomains; preload

its working when i put the url in the browser

i fixed it by adding  UserAgent parameter in the request function

Can you Submit a pull request for your fix please?

On Feb 14, 2020, at 3:04 AM, Subaharan Nithiyananthan<EMAIL_ADDRESS>wrote:

i fixed it by adding UserAgent parameter in the request function
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.


Extract ESLint docs

Spoiler: we'll force a migration to ESLint in seek-module-toolkit so that the path from there to skuba is smoother.
I wish we had more documentation around the move but I'm hoping this can be community-contributed. I can't make much up off the top of my head.

We can probably feed back the questions from #typescriptifcation here. Even though I've spent about a month of my waking life fixing ESLint nothing springs to mind here either.

👍 I'll also put out a call for feedback once the seek-module-toolkit change is in.


Refactor ckb-tthw-js

Changes

refactor the cell capacity calculation code
refactor the logic of injectCapacity and payFee
fix code format
add more comments
add a helper function to convert a string to hexadecimal format
add Jest as Test Framework
update the image of CKB Testnet explorer

Tutorial: Inscribe "Hello Common Knowledge Base!" to CKB Testnet
In this tutorial, you will learn how to write "Hello Common Knowledge Base!" into a cell on CKB testnet using Lumos, a JavaScript/TypeScript library for Nervos CKB. You will also learn how to check the transaction on CKB explorer.
Prerequisites
Before we begin, it is better that you have some basic knowledge of Nervos CKB.
But if you don't, there's no need to worry, just follow this tutorial step by step.
Only 3 Steps
Although some of the complexity is wrapped up, intuitively writing "Hello Common Knowledge Base!" into a cell on CKB testnet is really just three steps:
https://github.com/Flouse/ckb-tthw/blob/42bf1b5a3566e2d8adf6ef79aad8580de0d79281/js/index.ts#L125-L136
Talk is cheap. Run the code.
git clone https://github.com/Flouse/ckb-tthw.git
cd ckb-tthw/js

# Install dependences such as @ckb-lumos, etc.
npm install

# Let's run it.
npm run start
# Result
# Transaction 0xad66eb1d076cfef73a98a8b76e6bc6c21b2c564011c30e0436de2f5f89579c84 sent.
# See https://pudge.explorer.nervos.org/transaction/0x57ff3a724b41808d1bae9a7d611956145542cd70cd2e1c6c43dab34ab28b9ea7

Would you like to change onChainMemo string and re-run it again?
Show me the code
Let's dive into two functions that take up most of the code space. The code and comments are quite self-explained.
Function constructHelloWorldTx
This function creates a new transaction that adds a cell with the proposed on-chain message.

Create a transaction skeleton that serves as a blueprint for the final transaction.
Define the output cell, which includes the capacity and lock script, and add it to the transaction skeleton, which is a mutable data structure used to construct a CKB transaction incrementally.
Modify the transaction skeleton to include the necessary capacity to cover the output cell by injecting enough input cells.
Pay the transaction fee by payFeeByFeeRate function, again, provided by Lumos.

Function signAndSendTx
This function is self-explanatory:

Sign the transaction skeleton using a test private key.
Send the signed transaction to CKB testnet.

Check the message on CKB explorer

The cell data is the hexadecimal format of "Hello Common Knowledge Base!".
You might want to query https://www.ascii-code.com to check for the on-chain message.
Conclusion
In this tutorial, you learned how to write a message into a cell on CKB testnet using Lumos. You also learned how to check the transaction on CKB explorer. Lumos provides a set of helper functions that make it easy to interact with the CKB blockchain. With Lumos, you can easily create, sign, and send transactions to the CKB blockchain.
References

CKB basic theoretical knowledge
CKB basic practical operation
Lumos Examples

Preview and interact with simple transfer code online through codesandbox.
https://codesandbox.io/s/github/ckb-js/lumos/tree/develop/examples/secp256k1-transfer?file=/lib.ts
etc.

Tutorial: Inscribe "Hello Common Knowledge Base!" to CKB Testnet
In this tutorial, you will learn how to write "Hello Common Knowledge Base!" into a cell on CKB testnet using Lumos, a JavaScript/TypeScript library for Nervos CKB. You will also learn how to check the transaction on CKB explorer.
Prerequisites
Before we begin, it is better that you have some basic knowledge of

Nervos CKB.
Typescript

But if you don't, there's no need to worry, just follow this tutorial step by step.

Installnation
git clone https://github.com/Flouse/ckb-tthw.git
cd ckb-tthw/js

# Install dependences such as @ckb-lumos, etc.
npm install

Only 3 Steps
Although some of the complexity is wrapped up, intuitively writing "Hello Common Knowledge Base!" into a cell on CKB testnet is really just three steps, If you're confused about the methods used, don't worry, we'll explain in detail what each method does later on.
step 1
//index.ts
// Step 1: this is the message that will be written on chain
const onChainMemo: string = "Hello Common Knowledge Base!";

step 2
//index.ts
// Step 2: construct the transaction
let txSkeleton = await constructHelloWorldTx(onChainMemo);

step 3
//index.ts
// Step 3: sign and send the transaction
const txHash = await signAndSendTx(txSkeleton, testPrivKey);
console.log(`Transaction ${txHash} sent.\n`);

// Done, let's see the transaction in CKB Testnet Explorer
console.log(`See ${CKB_TESTNET_EXPLORER}/transaction/${txHash}`);

You could find the full code here

Talk is cheap. Run the code.
# Let's run it.
npm run start
# Result
# Transaction 0xad66eb1d076cfef73a98a8b76e6bc6c21b2c564011c30e0436de2f5f89579c84 sent.
# See https://pudge.explorer.nervos.org/transaction/0x57ff3a724b41808d1bae9a7d611956145542cd70cd2e1c6c43dab34ab28b9ea7

Would you like to change onChainMemo string and re-run it again?
Show me the code
Let's dive into two functions that take up most of the code space. The code and comments are quite self-explained.
Function constructHelloWorldTx
This function creates a new transaction that adds a cell with the proposed on-chain message.

Create a transaction skeleton that serves as a blueprint for the final transaction.
Define the output cell, which includes the capacity and lock script, and add it to the transaction skeleton, which is a mutable data structure used to construct a CKB transaction incrementally.
Modify the transaction skeleton to include the necessary capacity to cover the output cell by injecting enough input cells.
Pay the transaction fee by payFeeByFeeRate function, again, provided by Lumos.

Function signAndSendTx
This function is self-explanatory:

Sign the transaction skeleton using a test private key.
Send the signed transaction to CKB testnet.

Check the message on CKB explorer

The cell data is the hexadecimal format of "Hello Common Knowledge Base!".

You might want to query https://www.ascii-code.com to check for the on-chain message.
Conclusion
In this tutorial, you learned how to write a message into a cell on CKB testnet using Lumos. You also learned how to check the transaction on CKB explorer. Lumos provides a set of helper functions that make it easy to interact with the CKB blockchain. With Lumos, you can easily create, sign, and send transactions to the CKB blockchain.
References

CKB basic theoretical knowledge
CKB basic practical operation
Lumos Examples

Preview and interact with simple transfer code online through codesandbox.
https://codesandbox.io/s/github/ckb-js/lumos/tree/develop/examples/secp256k1-transfer?file=/lib.ts
etc.

Tutorial: Inscribe "Hello Common Knowledge Base!" to CKB Testnet
In this tutorial, you will learn how to write "Hello Common Knowledge Base!" into a cell on CKB testnet using Lumos, a JavaScript/TypeScript library for Nervos CKB. You will also learn how to check the transaction on CKB explorer.
Prerequisites
Before we begin, it is better that you have some basic knowledge of

Nervos CKB.
Typescript

But if you don't, there's no need to worry, just follow this tutorial step by step.

Installnation
git clone https://github.com/Flouse/ckb-tthw.git
cd ckb-tthw/js

# Install dependences such as @ckb-lumos, etc.
npm install

Only 3 Steps
Although some of the complexity is wrapped up, intuitively writing "Hello Common Knowledge Base!" into a cell on CKB testnet is really just three steps, If you're confused about the methods used, don't worry, we'll explain in detail what each method does later on.
step 1
//index.ts
// Step 1: this is the message that will be written on chain
const onChainMemo: string = "Hello Common Knowledge Base!";

step 2
//index.ts
// Step 2: construct the transaction
let txSkeleton = await constructHelloWorldTx(onChainMemo);

step 3
//index.ts
// Step 3: sign and send the transaction
const txHash = await signAndSendTx(txSkeleton, testPrivKey);
console.log(`Transaction ${txHash} sent.\n`);

// Done, let's see the transaction in CKB Testnet Explorer
console.log(`See ${CKB_TESTNET_EXPLORER}/transaction/${txHash}`);

You could find the full code here

Talk is cheap. Run the code.
# Let's run it.
npm run start
# Result
# Transaction 0xad66eb1d076cfef73a98a8b76e6bc6c21b2c564011c30e0436de2f5f89579c84 sent.
# See https://pudge.explorer.nervos.org/transaction/0x57ff3a724b41808d1bae9a7d611956145542cd70cd2e1c6c43dab34ab28b9ea7

Would you like to change onChainMemo string and re-run it again?
Show me the code
Let's dive into two functions that take up most of the code space. The code and comments are quite self-explained.
Function constructHelloWorldTx
This function creates a new transaction that adds a cell with the proposed on-chain message.

Create a transaction skeleton that serves as a blueprint for the final transaction.
Define the output cell, which includes the capacity and lock script, and add it to the transaction skeleton, which is a mutable data structure used to construct a CKB transaction incrementally.
Modify the transaction skeleton to include the necessary capacity to cover the output cell by injecting enough input cells.
Pay the transaction fee by payFeeByFeeRate function, again, provided by Lumos.

Function signAndSendTx
This function is self-explanatory:

Sign the transaction skeleton using a test private key.
Send the signed transaction to CKB testnet.

Check the message on CKB explorer

The cell data is the hexadecimal format of "Hello Common Knowledge Base!".
You might want to query https://www.ascii-code.com to check for the on-chain message.
Conclusion
In this tutorial, you learned how to write a message into a cell on CKB testnet using Lumos. You also learned how to check the transaction on CKB explorer. Lumos provides a set of helper functions that make it easy to interact with the CKB blockchain. With Lumos, you can easily create, sign, and send transactions to the CKB blockchain.
References

CKB basic theoretical knowledge
CKB basic practical operation
Lumos Examples

Preview and interact with simple transfer code online through codesandbox.
https://codesandbox.io/s/github/ckb-js/lumos/tree/develop/examples/secp256k1-transfer?file=/lib.ts
etc.

will apply some suggestions of @lee920217 in another PR


exporter/importer and unit test

this PR contains two commits as below:

resource exporter/importer

exporter:

serviceexport_controller.go is responsible to reconcile ServiceExport resource in member cluster and write wrapped ResourceExport into leader cluster, meanwhile it will add a new label antrea.io/multi-cluster to exported Service so they can be watched by serviceexport_controller through event mapping and update ResourceExport when exported Service/Endpoints are updated.
resourceexport_controller is responsible to reconcile ResourceExport resources and write wrap all ResourceExports from different member clusters into one ResourceExport in leader cluster if the resources are exported with the same namespaced name and the same kind, for now, we only support Service, Endpoints.
service_controller.go is mainly do Service clean up, it will reconcile any Service with label antrea.io/multi-cluster-autogenerated in member cluster and clean up it when there is no corresponding ResourceImport in leader cluster.

importer

remote_resourceimport_controller.go will watch leader cluster's ResourceImport events and create corresponding Service and Endpoints with label antrea.io/multi-cluster-autogenerated in member cluster

add unit test for exporter/importer

add unit test target in Makefile

use structure log

temporary common area
common area is owned by @aravindakidambi , she will submit a new PR,
I add these codes temporarily in a standalone commit
so we can have the full view and make sure unit test
can work for resource controllers.
I will do rebase when common area PR is ready and merged.

Signed-off-by: Lan Luo<EMAIL_ADDRESS>

Codecov Report

Merging #3024 (71c418f) into feature/multi-cluster (9b32acf) will increase coverage by 0.63%.
The diff coverage is 56.16%.

@@                    Coverage Diff                    @@
##           feature/multi-cluster    #3024      +/-   ##
=========================================================
+ Coverage                  40.17%   40.81%   +0.63%
=========================================================
  Files                        166      181      +15
  Lines                      20750    21759    +1009
=========================================================
+ Hits                        8337     8880     +543
- Misses                     11598    11990     +392
- Partials                     815      889      +74

Flag
Coverage Δ

unit-tests
40.81% <56.16%> (+0.63%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

.../controllers/multicluster/clusterset_controller.go
0.00% <0.00%> (ø)

...ontrollers/multicluster/internal/remote_cluster.go
0.00% <0.00%> (ø)

...ontrollers/multicluster/internal/leader_elector.go
24.24% <24.24%> (ø)

...ers/multicluster/internal/local_cluster_manager.go
29.41% <29.41%> (ø)

...rs/multicluster/internal/remote_cluster_manager.go
43.13% <43.13%> (ø)

...ter/controllers/multicluster/service_controller.go
57.77% <57.77%> (ø)

...llers/multicluster/internal/fake_remote_cluster.go
66.66% <66.66%> (ø)

...ntrollers/multicluster/serviceexport_controller.go
69.36% <69.36%> (ø)

...uster/internal/remote_resourceimport_controller.go
69.42% <69.42%> (ø)

...trollers/multicluster/resourceexport_controller.go
71.06% <71.64%> (ø)

... and 11 more

Hi @jianjuns  @aravindakidambi I have created a separate PR https://github.com/antrea-io/antrea/pull/3153 to rename core package and move
ServiceExport and ServiceImport CRD manifest to a new forlder. please help to take a look. thanks

Hi @jianjuns  I fixed the last comment in this PR, Could you help to approve this if it looks good to you? I will rebase the PR#3153 and address your comments on it.


Promote Link at other repos

Promote Link at other repos, like

https://github.com/containernetworking/cni
https://github.com/kubernetes/website/blob/main/content/zh-cn/docs/concepts/cluster-administration/addons.md

great , after 0.4.0 released recently , lots of these work will proceed

https://github.com/kubernetes/website/pull/44097/files


[Fabric 1.20.1] - Version 2.0.0 - Some glass disappear after touching water

Some walk throughable glass block from your mod like ghost glass is disapear right after touching water
I have test it with fabric api version 0.89.0, no other mod is install.
Can you check this bug and release a fix on Fabric 1.20.1, thanks ♥

Wrong repo, this is the Forge one. I'm not maintaining the Fabric version so go here instead: https://github.com/Up-Mods/Glassential


Show loaded content immediately on Admin panel

Some routes take longer than others, show the loaded ones immediately

add {noLeaseEnd: true} to attach GPU call body - add toggle button when leasing GPU for admins only for Infinite lease.


assign specific id

assigning id of my model as name to task

Is this a question or an idea??

Question
On Wed, 11 Dec 2019, 7:44 pm Philippe O. Wagner<EMAIL_ADDRESS>wrote:

Is this a question or an idea??
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/arteria/django-background-tasks/issues/214?email_source=notifications&email_token=ALILUZLEEXERQR7ETJMBN6TQYDYTPA5CNFSM4JZPPZJKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGTIIQQ#issuecomment-564560962,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ALILUZMXFCRNK3DCRKT2UZ3QYDYTPANCNFSM4JZPPZJA
.

This is not possible.


x/tools/benchmark: support parsing custom metrics

What version of Go are you using (go version)?

$ go version
go version go1.13 darwin/amd64

Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
GO111MODULE="on"
GOARCH="amd64"
GOBIN="/Users/jsternberg/go/pkg/bin/github.com/influxdata/flux"
GOCACHE="/Users/jsternberg/Library/Caches/go-build"
GOENV="/Users/jsternberg/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/jsternberg/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/Cellar/go/1.13/libexec"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/Cellar/go/1.13/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/jsternberg/go/src/github.com/influxdata/flux/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/w5/25fg3zv56y7cgd20q4fx_24m0000gn/T/go-build317574403=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?
I used ReportMetric when running a benchmark and attempted to use benchcmp to compare the benchmarks.
What did you expect to see?
I expected benchcmp to add an additional section showing the change in numbers for the custom benchmarks.
I then took a look at golang.org/x/tools/benchmark/parse to see if that functionality had been added or if the library had been updated so I could write the tool myself, but I see that the code there has not been updated to either read or expose the new custom metrics.
It would be very helpful to update this tool to support these custom metrics. We are beginning to use them to track other metrics and we would like to see how these other metrics change between two changesets.
What did you see instead?
Nothing.

CC @ianthehat

If there's interest, I wrote some code to be able to accommodate my own personal need and it's in a fork at https://github.com/jsternberg/tools. I can clean it up and make it into a changeset if there is interest.


Terminal broken again after crf-search

I've got the same issue as in #51. I think noteworthy is that, when the results cache is hit, the issue is not there. So maybe it is indicatif again?

ab-av1 0.7.18
up-to-date Arch x86_64

Can report the same issue on up-to-date ubuntu :)

Thanks for the report, I found vmaf ffmpeg process inheriting stdin could be causing this. Will be fixed in the next version if that is the case. I wonder why this doesn't affect fish shell at all.


wireless/gs2200m: Release all blocking socket

Summary
When dis-associtaion happens, the socket is destroyed. And all blocking
sockets are released for that error handling can be performed.
Impact
Only gs2200m usrsock daemon.
This commit is related on https://github.com/apache/incubator-nuttx/pull/6747
Testing
Check if tcpblaster on spresense:wifi work well and if it received an error when disassociation happened.

Please fix
gs2200m_main.c: In function 'gs2200m_loop':
Error: gs2200m_main.c:1695:22: error: 'DISASSOCIATION_CID' undeclared (first use in this function)


Add http cache infinity header to all the /ipfs/Qmhash paths

This way, browsers don't have to hit the gateways after they first loaded an IPFS hash :)
Idea by the great @olizilla \o/

We've already been doing that for ages: https://github.com/ipfs/go-ipfs/blob/eef022cd5ecfc818205b6d015772f411bc18a3e8/core/corehttp/gateway_handler.go#L253-L258


changes for Issue #5: browser findes files when they are in a subfolder on the server

fixed thanks :)

@simbo1905 thx :)


coal/metal bars glitching into infinite piles and clobbering inventory when running inside a shaft at logout

This is slightly speculation because I haven't had time to reproduce yet, but it seems like leaving items on the ground in the mineshafts when you logout causes them to glitch out and start multiplying. The error log mentioned something about null ownership, I think? I lost the copy I saved, unfortunately. I think that something around the logout/login process on a local-only world (didn't try in a server) orphans the objects and makes it so they don't despawn when you pick them up. This causes them to follow your character on the ground bouncing, and when you use E to pick them up, their number either stays constant or multiplies.
When I tried to drop the glitched coal, other items in my inventory started to turn into the glitched coal stacks, deleting things like my cape.
If I dropped the glitched stacks outside the mineshaft, near the entrance above ground, the glitch items would appear back inside the shaft, entirely skipping the overworld.

Nvm, I was able to reproduce, it had the equipment and quickslots extended items framework stuff in the stacktrace.


Re: VitamioView shows blank

<View>
<VideoView style={styles.video} streamUrl="rtmp://fms.12E5.edgecastcdn.net/0012E5/mp4:videos/8Juv1MVa-485.mp4"/>
    </View>

But shows black screen....

This video link not work i try with another link but same issue. Hope someone can help about this err.


SPInstallPrereqs: Get-SPDSCAssemblyVersion is not recognized

Details of the scenario you try and problem that is occurring:
Today, I saw this error several times:
[[SPInstallPrereqs]InstallPrereqs] Getting installation status of SharePoint prerequisites
The term 'Get-SPDSCAssemblyVersion' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path
was included, verify that the path is correct and try again.
    + CategoryInfo          : ObjectNotFound: (Get-SPDSCAssemblyVersion:) [], CimException
    + FullyQualifiedErrorId : CommandNotFoundException

The error occurs on the first (and sometimes second) start of a DSC configuration. The issue is reproducible.
The DSC configuration that is using the resource:
Shortend configuration
Configuration SharePoint
{
    param( [string]$NodeName  )

    Import-DscResource -ModuleName SharePointDsc -ModuleVersion <IP_ADDRESS>

    node $NodeName
    {
SPInstallPrereqs InstallPrereqs {
            Ensure        = "Present"
            OnlineMode    = $true
            InstallerPath = "$($binaryPath)\Sources\prerequisiteinstaller.exe"
            DependsOn     = @("[Script]DownloadSources", "[Group]LocalAdministrators")
        }
}
}

Version of the Operating System and PowerShell the DSC Target Node is running:
WIN2012R2
PSVersion 5.1.14409.1005
Version of the DSC module you're using:
<IP_ADDRESS>

@andikrueger can you post the output of running the following PoSh commands on that box?

Please find attached the configuration. I skipped the parts after SPCreateFarm.
The configuration should target future dev environments. The systems are based on azure WIN2012R2 boxes with SQL2014 preinstalled.
SharePointPreperation.txt
Let me know if you want to have a look at the server. I'm glad to help.

Further investigation showed an error with the script resource block:

The script resource block did not show any error on my first VM. On another VM the script resource did throw an error: "The term 'Install-Module' is not recognized as the name of a cmdlet..."
a) Adding the PsDscRunAsCredential did resolve the error.
b) I do not understand why this error did not occur on the first VM
The configuration did use the variable $domainAdminCred that was never initiated or set.

Changing 1. and 2. did solve the initial issue.

Hi,
I'm having the same issue, but can't find the cause of this error in my config.
VERBOSE: [EURMDIMDEVDK4W]: LCM:  [ Start  Test     ]  [[SPInstallPrereqs]PrerequisitesInstallation]
VERBOSE: [EURMDIMDEVDK4W]:                            [[SPInstallPrereqs]PrerequisitesInstallation] Importing the module MSFT_SPInstallPrereqs in force mode.
VERBOSE: [EURMDIMDEVDK4W]:                            [[SPInstallPrereqs]PrerequisitesInstallation] Importing the module MSFT_SPInstallPrereqs in force mode.
VERBOSE: [EURMDIMDEVDK4W]:                            [[SPInstallPrereqs]PrerequisitesInstallation] Testing installation status of SharePoint prerequisites
VERBOSE: [EURMDIMDEVDK4W]:                            [[SPInstallPrereqs]PrerequisitesInstallation] Getting installation status of SharePoint prerequisites
The term 'Get-SPDSCAssemblyVersion' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
    + CategoryInfo          : ObjectNotFound: (Get-SPDSCAssemblyVersion:) [], CimException
    + FullyQualifiedErrorId : CommandNotFoundException
    + PSComputerName        : eurmdimdevdk4w

VERBOSE: [EURMDIMDEVDK4W]:                            [[SPInstallPrereqs]PrerequisitesInstallation] Getting installed windows features
The term 'Get-SPDscOSVersion' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
    + CategoryInfo          : ObjectNotFound: (Get-SPDscOSVersion:) [], CimException
    + FullyQualifiedErrorId : CommandNotFoundException
    + PSComputerName        : eurmdimdevdk4w

VERBOSE: [EURMDIMDEVDK4W]:                            [[SPInstallPrereqs]PrerequisitesInstallation] Checking windows packages from the registry
VERBOSE: [EURMDIMDEVDK4W]:                            [[SPInstallPrereqs]PrerequisitesInstallation] Prerequisite AppFabric 1.1 for Windows Server was not found on this system
VERBOSE: [EURMDIMDEVDK4W]:                            [[SPInstallPrereqs]PrerequisitesInstallation] Prerequisite Microsoft CCR and DSS Runtime 2008 R3 was not found on this system
VERBOSE: [EURMDIMDEVDK4W]:                            [[SPInstallPrereqs]PrerequisitesInstallation] Prerequisite Microsoft Identity Extensions was not found on this system
VERBOSE: [EURMDIMDEVDK4W]:                            [[SPInstallPrereqs]PrerequisitesInstallation] Prerequisite Microsoft Sync Framework Runtime v1.0 SP1 (x64) was not found on this system
VERBOSE: [EURMDIMDEVDK4W]:                            [[SPInstallPrereqs]PrerequisitesInstallation] Prerequisite WCF Data Services 5.6.0 Runtime was not found on this system
The term 'Test-SPDscParameterState' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
    + CategoryInfo          : ObjectNotFound: (Test-SPDscParameterState:) [], CimException
    + FullyQualifiedErrorId : CommandNotFoundException
    + PSComputerName        : eurmdimdevdk4w

VERBOSE: [EURMDIMDEVDK4W]: LCM:  [ End    Test     ]  [[SPInstallPrereqs]PrerequisitesInstallation]  in 0.6720 seconds.
The PowerShell DSC resource '[SPInstallPrereqs]PrerequisitesInstallation' with SourceInfo 'D:\DSC\IMDevEnv.ps1::170::9::SPInstallPrereqs' threw one or more non-terminating errors while running the Test-TargetResource functionality. These errors are logged to the ETW channel called Microsoft-Windows-DSC/Operational. Refer to this channel for more details.
    + CategoryInfo          : InvalidOperation: (:) [], CimException
    + FullyQualifiedErrorId : NonTerminatingErrorFromProvider
    + PSComputerName        : eurmdimdevdk4w

The DSC configuration that is using the resource:
https://gist.github.com/SvenLauterbach/34d9bd86cd58d134d975574f273ff4e3
The output of the requested command:
PS C:\Users\Lauterbach Sven> Import-Module SharePointDSC -Force
PS C:\Users\Lauterbach Sven> Get-Command | ?{$_.ModuleName -eq "SharePointDSC"}

CommandType     Name                                               Version    Source
-----------     ----                                               -------    ------
Function        Add-SPDSCUserToLocalAdmin                          <IP_ADDRESS>    SharePointDSC
Function        Clear-SPDscKerberosToken                           <IP_ADDRESS>    SharePointDSC
Function        Convert-SPDscADGroupIDToName                       <IP_ADDRESS>    SharePointDSC
Function        Convert-SPDscADGroupNameToID                       <IP_ADDRESS>    SharePointDSC
Function        ConvertTo-ReverseString                            <IP_ADDRESS>    SharePointDSC
Function        ConvertTo-TwoDigitFlipString                       <IP_ADDRESS>    SharePointDSC
Function        Format-OfficePatchGUID                             <IP_ADDRESS>    SharePointDSC
Function        Get-SPDSCAssemblyVersion                           <IP_ADDRESS>    SharePointDSC
Function        Get-SPDSCContentService                            <IP_ADDRESS>    SharePointDSC
Function        Get-SPDscFarmAccount                               <IP_ADDRESS>    SharePointDSC
Function        Get-SPDscFarmAccountName                           <IP_ADDRESS>    SharePointDSC
Function        Get-SPDscFarmProductsInfo                          <IP_ADDRESS>    SharePointDSC
Function        Get-SPDscFarmVersionInfo                           <IP_ADDRESS>    SharePointDSC
Function        Get-SPDSCInstalledProductVersion                   <IP_ADDRESS>    SharePointDSC
Function        Get-SPDscOSVersion                                 <IP_ADDRESS>    SharePointDSC
Function        Get-SPDSCRegistryKey                               <IP_ADDRESS>    SharePointDSC
Function        Get-SPDscRegProductsInfo                           <IP_ADDRESS>    SharePointDSC
Function        Get-SPDSCServiceContext                            <IP_ADDRESS>    SharePointDSC
Function        Get-SPDSCUserProfileSubTypeManager                 <IP_ADDRESS>    SharePointDSC
Function        Invoke-SPDSCCommand                                <IP_ADDRESS>    SharePointDSC
Function        Remove-SPDSCGenericObject                          <IP_ADDRESS>    SharePointDSC
Function        Remove-SPDSCUserToLocalAdmin                       <IP_ADDRESS>    SharePointDSC
Function        Rename-SPDSCParamValue                             <IP_ADDRESS>    SharePointDSC
Function        Resolve-SPDscSecurityIdentifier                    <IP_ADDRESS>    SharePointDSC
Function        Set-SPDscObjectPropertyIfValuePresent              <IP_ADDRESS>    SharePointDSC
Function        Test-SPDSCIsADUser                                 <IP_ADDRESS>    SharePointDSC
Function        Test-SPDSCObjectHasProperty                        <IP_ADDRESS>    SharePointDSC
Function        Test-SPDscParameterState                           <IP_ADDRESS>    SharePointDSC
Function        Test-SPDSCRunAsCredential                          <IP_ADDRESS>    SharePointDSC
Function        Test-SPDSCRunningAsFarmAccount                     <IP_ADDRESS>    SharePointDSC
Function        Test-SPDSCUserIsLocalAdmin                         <IP_ADDRESS>    SharePointDSC

Version of the Operating System and PowerShell the DSC Target Node is running:
WIN2012R2
5.1.14409.1012
Version of the DSC module you're using:
<IP_ADDRESS>
Please let me know if you need more informations.

@NikCharlebois should I open a new Issue?

Hi @SvenLauterbach I will reopen this issue, so we can start investigating the issue.

This looks like a timing or scope issue: Either the nested modules are not yet loaded when the resource code is executing or the nested module is loaded in a different scope. Will have to think about a method to tackle this issue. Maybe you can use test with a config that just contains the SPInstallPrereqs resource and see if the issue occurs then. If so, start debugging the resource using this method https://docs.microsoft.com/en-us/powershell/dsc/debugresource

Removing everything from the config except the SPInstallPrereqs works, is there some kind of workaround for timing/scope issues?

@SvenLauterbach Are you using the DependsOn parameters? Can you share your config? Can you try to add the resources one by one back into your config and try again? I am wondering if there is a specific resource that triggers this issue or maybe a certain number of resources?
Haven't seen this type of issue before, so not sure what we can do to troubleshoot the issue.

Ok, I tried adding back the resources and it only required one resource to trigger the error:
SQLSetup SQLSetup
{
	InstanceName = "MSSQLServer"
	SourcePath = 'D:\DSC\SQL Server Setup'
	UpdateEnabled = $true
	UpdateSource = 'D:\DSC\SQL Server Setup\Updates'
	Features = "SQLENGINE"
	SQLCollation = "Latin1_General_CI_AS"
	InstallSharedDir = "D:\Program Files\Microsoft SQL Server"
	InstallSharedWOWDir  = 'D:\Program Files (x86)\Microsoft SQL Server'
	InstanceDir          = 'D:\Program Files\Microsoft SQL Server'
	SQLSysAdminAccounts = @($Node.Owner, $setup_account.UserName)
	PsDscRunAsCredential = $setup_account
   # DependsOn = @("[FireWall]SQLFirewallRule", "[cNtfsPermissionEntry]DDrivePermissionSet", "[cNtfsPermissionEntry]DefaultUserFolderPermissionSet");
}

SPInstallPrereqs PrerequisitesInstallation
{
	InstallerPath = "D:\DSC\SharePoint 2013 setup\prerequisiteinstaller.exe"
	OnlineMode = $True
	Ensure = "Present"
	PsDscRunAsCredential = $setup_account
	DependsOn = @("[SQLSetup]SQLSetup")
}

Right after adding the SQLSetup resource the error occured. Hope this helps.

In issue https://github.com/PowerShell/SharePointDsc/issues/912#issuecomment-509200770  @goorallab reported that this was caused by using the same PSRunAsCredential for both the SQLServerDsc and SharePointDsc resources.
@SvenLauterbach I see in your config that you were using the same account as well. Can you please test with different accounts and validate that this solves the issue?

I will try it

My configuration has also the same account in both resources in PSRunAsCredential. It takes some time to get a second account setup

Small Update. I removed the PSRunAsCredential from the SQLServerDSC commands (so that they should run under the SYSTEM account?) and used the PSRunAsCredential only on the SharePoint DSC resources.
However, still the same issue. I will try to create a minimal example and post the Verbose output later.

Can you use a different service account for SQLServerDsc, not the System account?

I ran the SQLServerDSC under a different account than the SharePointDSC resource, still getting the same error.

Have been able to create a reproduction!
Environment: Single server with SQL 2012 SP4 and SharePoint 2013 SP1, SQLServerDsc v14.2.0, SharePointDsc (Dev version), SQLPS installed via https://sqlpadawan.com/2018/08/01/how-to-install-sql-server-sqlps-powershell-module/

Scenario 1: Using SQLPS, one SQL and one SP resource, using same PSDscCredential account: Error is thrown.
Scenario 2: Using SQLPS, one SQL and one SP resource, using different PSDscCredential account: All works well.
Scenario 3: Installed SQLServer module, one SQL and one SP resource, using same PSDscCredential account: All works well.

So workarounds for now: Use different PsDscRunAsCredential or install SQLServer module
Now trying to find the root cause.

Did some more troubleshooting:
When loading the SQLPS module, the PSModulePath variable is changed to this value:
C:\windows\system32\WindowsPowerShell\v1.0\Modules\;C:\Program Files (x86)\Microsoft SQL Server\110\T
ools\PowerShell\Modules\;C:\Program Files\AppFabric 1.1 for Windows Server\PowershellModules;C:\Program Files\Microsoft SQL Server\110\Tools\PowerShell\Modules\

It looks however that this is placed back to the original value with time. When I debug the resource and step through the code, after a couple of seconds, the PSModulePath value is correct again. Since the SQLPS module is a binary module, I have to use reflector to look into the code behind.
@johlju Do you have any clue why this is happening or can explain what is going on?

Just to make sure:
Because the PSModulePath is updated, the SharePointDsc module cannot be found and therefore all the functions inside the Utils module are also not found.
For now the best solution is to update to the SQLServer module, since the SQLPS is no longer updated:

There are two SQL Server PowerShell modules; SqlServer and SQLPS. The SQLPS module is included with the SQL Server installation (for backwards compatibility), but is no longer being updated. The most up-to-date PowerShell module is the SqlServer module. The SqlServer module contains updated versions of the cmdlets in SQLPS, and also includes new cmdlets to support the latest SQL features.

Can anyone that encountered this issue test if it also occurs when using SQLServer instead of SQLPS??

It looks however that this is placed back to the original value with time. When I debug the resource and step through the code, after a couple of seconds, the PSModulePath value is correct again.

I have never encountered that the path is changed when importing SQLPS module. $PSModulePath should always contain the path to the SQLPS module (as far as I know it is set during install of SQL Server). I have never seen it changing $PSModulePath during import.

This issue is most probably caused by the fact that SQLPS is used and both the SQL and SP resources are using the same PsDscRunAsCredential. More details are described here.
Closing the issue since the solution is to use the SQLServer module instead and SQLPS is no longer updated.
Please add comments if these solutions don't work, so we can investigate further.


(maint) Confirm use of Chocolatey Test Environment

Description
Make it clear that only the Chocolatey Test Environment has been used.
Motivation and Context
There is sometimes some ambiguity about what test environment committers are using.
How Has this Been Tested?
N/A
Screenshot (if appropriate, usually isn't needed):
N/A
Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Migrated package (a package has been migrated from another repository)

Checklist:

[ ] My code follows the code style of this repository.
[ ] My change requires a change to documentation (this usually means the notes in the description of a package).
[ ] I have updated the documentation accordingly (this usually means the notes in the description of a package).
[ ] I have updated the package description and it is less than 4000 characters.
[ ] All files are up to date with the latest Contributing Guidelines
[ ] The added/modified package passed install/uninstall in the chocolatey test environment.
[ ] The changes only affect a single package (not including meta package).

:white_check_mark: Package verification completed without issues. PR is now pending human review


Better resize cursors on rotated elements

This is something I gave up in #1099, because creating arbitrary cursors is not trivial.
However, rotating existing cursors is not hard, and this is it.

We might want a custom cursor for rotation, though.

Works great! We can use this solution for the time being, as it's good enough.

Very smart :)


Apply mean/min/max on dataframe to graph structure

We can use built-in pandas functions to compute the mean, min, max, etc. of the dataframe. Can we update the graph based on this aggregate? Possibly add a mean/min/max operand on the graphframe, but a challenge is deciding on a generic interface.
Use case: I have several trials of the same execution, and want to compute the average performance over all trials, and use this as the "main" graphframe" for doing comparisons across nightly runs.

Currently, this can be accomplished using native pandas functions on the dataframe to manipulate the data:
# iterate over all unique nodes
for n in gf.dataframe["node"]:
    # grab all rows corresponding to all trials for a given node n
    d = gf.dataframe[gf.dataframe["node"].map(lambda x: x.frame == n)]
    # compute the min, mean, and max time value for this filtered data, store into a dict
    node_dict = {"node": n, "max_time": d["time"].max(), "avg_time": d["time"].mean(), "min_time": d["time"].min()}
    node_dicts.append(node_dict)

# transform the list of dicts into a new dataframe with the aggregated values, set the index level
res_df = pd.DataFrame.from_dict(data=node_dicts)
res_df.set_index("node", inplace=True)
display(HTML(res_df.to_html()))

Currently, this can be accomplished using native pandas functions on the dataframe to manipulate the data:
# iterate over all unique nodes
for n in gf.dataframe["node"]:
    # grab all rows corresponding to all trials for a given node n
    d = gf.dataframe[gf.dataframe["node"].map(lambda x: x.frame == n)]
    # compute the min, mean, and max time value for this filtered data, store into a dict
    node_dict = {"node": n, "max_time": d["time"].max(), "avg_time": d["time"].mean(), "min_time": d["time"].min()}
    node_dicts.append(node_dict)

# transform the list of dicts into a new dataframe with the aggregated values, set the index level
res_df = pd.DataFrame.from_dict(data=node_dicts)
res_df.set_index("node", inplace=True)
display(HTML(res_df.to_html()))


Building tests fails

Hello @jeremyong,
Thanks for this awesome library! I'm looking forward to start writing some code with it!
However, I'm trying to run the tests as indicated in the readme, but so far no success. Compiling one of the tests seems to fail on a clone I made today.
The steps I'm following:
# From the root directory of this project
mkdir build
cd build

# Optionally supply release type, flags, etc and pick your favorite generator
cmake .. -G Ninja

# ... or whichever (ideally multicore-friendly) build system you choose
ninja

# Run the tests
./bin/gal_test

Output from cmake:
-- The C compiler identification is GNU 7.4.0
-- The CXX compiler identification is GNU 7.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/u0114255/projects/GAUGE/gal/build

(Summary of) output from ninja:
In file included from ../public/gal/engine.hpp:4:0,
                 from ../public/gal/pga.hpp:3,
                 from ../test/test_dfa.cpp:3:
../public/gal/entity.hpp: In instantiation of ‘constexpr std::array<short int, sizeof... (N)> gal::detail::construct_element_lut(std::index_sequence<I ...>) [with unsigned char ...E = {}; long unsigned int ...N = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15}; std::index_sequence<I ...> = std::integer_sequence<long unsigned int, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15>]’:
../public/gal/entity.hpp:64:46:   required from ‘constexpr const std::array<short int, 16> gal::entity<gal::algebra<gal::metric<3, 0, 1> >, float>::element_lut’
../public/gal/entity.hpp:91:60:   required from ‘constexpr auto gal::entity<A, T, E>::select() const [with unsigned char ...S = {1, 2, 4, 8}; A = gal::algebra<gal::metric<3, 0, 1> >; T = float; unsigned char ...E = {}]’
../public/gal/pga.hpp:369:66:   required from ‘constexpr gal::pga::plane<T>::plane(gal::entity<gal::algebra<gal::metric<3, 0, 1> >, T, E ...>) [with unsigned char ...E = {}; T = float]’
../test/test_dfa.cpp:157:72:   required from here
../public/gal/entity.hpp:49:36: error: no matching function for call to ‘indexof<0, 0>()’
         return {indexof<N, 0, E...>()...};
                 ~~~~~~~~~~~~~~~~~~~^~
../public/gal/entity.hpp:29:37: note: candidate: template<unsigned char E, short int I, unsigned char E1, unsigned char ...Es> constexpr int16_t gal::detail::indexof()
     GAL_NODISCARD constexpr int16_t indexof() noexcept
                                     ^~~~~~~
../public/gal/entity.hpp:29:37: note:   template argument deduction/substitution failed:
../public/gal/entity.hpp:49:36: note:   couldn't deduce template parameter ‘E1’
         return {indexof<N, 0, E...>()...};
                 ~~~~~~~~~~~~~~~~~~~^~
../public/gal/entity.hpp:49:41: error: could not convert ‘{<expression error>}’ from ‘<brace-enclosed initializer list>’ to ‘std::array<short int, 16>’
         return {indexof<N, 0, E...>()...};
                                         ^
../public/gal/entity.hpp: In instantiation of ‘constexpr const std::array<short int, 16> gal::entity<gal::algebra<gal::metric<3, 0, 1> >, float>::element_lut’:
../public/gal/entity.hpp:91:60:   required from ‘constexpr auto gal::entity<A, T, E>::select() const [with unsigned char ...S = {1, 2, 4, 8}; A = gal::algebra<gal::metric<3, 0, 1> >; T = float; unsigned char ...E = {}]’
../public/gal/pga.hpp:369:66:   required from ‘constexpr gal::pga::plane<T>::plane(gal::entity<gal::algebra<gal::metric<3, 0, 1> >, T, E ...>) [with unsigned char ...E = {}; T = float]’
../test/test_dfa.cpp:157:72:   required from here
../public/gal/entity.hpp:64:46:   in constexpr expansion of ‘gal::detail::construct_element_lut<, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15>((std::make_index_sequence<16>{}, std::make_index_sequence<16>()))’
../public/gal/entity.hpp:63:81: error: constexpr call flows off the end of the function
     constexpr static std::array<int16_t, (1 << algebra_t::metric_t::dimension)> element_lut
                                                                                ^~~~~~~~~~~
[7/8] Building CXX object test/CMakeFiles/gal_test.dir/test.cpp.o
ninja: build stopped: subcommand failed.

Versions I'm using:
cmake 3.15.5
ninja 1.8.2
gcc 7.4.0
Can you help me understand whether I did something wrong or if this is a (new) issue?

Hey! I think your gcc version is a bit behind. GAL relies on a number of pretty heavy duty C++17 tricks to get fast compilation time, and unfortunately, older compiler versions (even ones that claim C++17 support) have issues and were not 100% conformant. Can you try a more recent gcc and report back?

Also, thanks for taking interest in the library :) It's still a WIP as you can tell, but I'd love to hear about what you hope to do with it and what your use case is. On my todo list, there are still a number of things I need to check off before I'd be comfortable "releasing" it with an official stable release.

Thank you for your quick reply! I should've remembered that actually, @enkimute told me that this library was being developed right on the cutting edge. I upgraded to gcc 9.2.1 and now all the tests succeeded! (A bit annoying that gcc 7 claims C++17 since I double checked that before starting.)

I'm doing lattice QCD, so my usecase is large numbers of SU(N) elements :). Since this library seems to be very powerful, it seems like a good place to start! Any suggestions you might have for me on how to generate general R^N algebra's would be welcome btw, although I'll start reading the source now. I'm particularly interested in R^6.

Hehe ok, a good file to start looking at is pga.hpp. At the top, you'll see how a metric and algebra are defined followed by literals that can be used like 1_e12 for example. Later, in this case, you'd include using namespace gal::pga so that the file uses pga (substitute for 600). The file itself is optional for working with the library but defines convenient entities like a "point" representation. You don't need to create these entities if you don't want. Using auto return type deduction gives you a templated entity type (see here. You can then use operator[N] to index the nth element of the returned result. If you need to select a particular coefficient of the multivector, use result.select(e) where e is the element in question.
For example, auto result = compute([](auto ...) { ... }, ...; return result.select(0b110); returns the value in the e_12 component of the result of that computation.
Documentation is unfortunately sparse right now (the library API isn't 100% stable) so apologies for that in advance.
I don't foresee any issues defining the R600 metric, but let me know if you encounter any problems. Be advised that "late-stage CSE" is something that's still on my todo list so maybe if there was one concern, it's that computation still isn't 100% as fast as I would like (but still pretty competitive with alternatives).

Excellent, thanks for your quick reply! I'll just start playing around with it a bit and let you know if I run into problems. With those pointers I have enough information to get started, thanks. The "not as fast as possible" performance wont be an issue for me during my playing around :P.


[Feature] Add support for "MARS 5e - Moerills alternative rolling style for 5e"

Moerills roll system  is fantastic, and would benifit if you added support for it.
https://github.com/Moerill/fvtt-mars-5e

Can use the following hooks to potentially pull data from the module. All are in message.js


Cannot get autoplay feature to work

Hello ! First of all, thank you for this really nice piece of software ! :)
That said I'm having trouble figuring out how to use the autoplay feature. I've tried the following methods:

with the following, at the end of the first video, no other video starts playing:

$ straw-viewer -n --autoplay <search terms>
> 1

Here all the search results are played in order (which I guess is fair):

$ straw-viewer -n --autoplay -A <search terms>

Same as the first one: video ends then nothing happens:

$ straw-viewer -n --autoplay "https://www.youtube.com/watch?v=65As1V0vQDM"

No luck either via the CLI:

$ straw-viewer -n
> <search terms>
> :autoplay=1

Am I doing this wrong or is the feature broken/not fully implemented ?

Hi. I'm glad you find straw-viewer useful. :)
I just added basic support for related videos, which also implements --autoplay, which was previously not implemented.
Thanks for reporting the issue!


Explain how to work with Date Picker (input) field

I'm trying to calculate a date based on two user inputs:

Start date: Date picker field
Number of weeks: slider (values between 1 & 5)

I would like to understand what the formula for another View only date-field should be like:

The "Show text, dates, and times in canvas apps" page, however, only explains how to use Text fields. I want to know how to get it working with Date Picker fields

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

ID: 2548fd17-5e1c-99d3-b7f7-a0b48c56c2bf
Version Independent ID: f645f526-3e2c-ae5f-965d-a64c6a9094df
Content: Show text, dates, and times in canvas apps - Power Apps
Content Source: powerapps-docs/maker/canvas-apps/show-text-dates-times.md
Service: powerapps
Sub-service: canvas-maker
GitHub Login: @tapanm-MSFT
Microsoft Alias: tapanm

Actually just found the thing that made my formula work: had to add .SelectedDate
I found it on this page. Would still be helpful for others I assume to have an example with Date Picker.

Thanks for reaching out, will update the documentation to include relevant links.


CVE-2023-39325

Welcome!

[X] Yes, I've searched similar issues on GitHub and didn't find any.
[X] Yes, I've searched similar issues on the Traefik community forum and didn't find any.

What did you do?
A zero-day vulnerability related to HTTP/2 was disclosed today.
I suspect that Traefik could be affected due to its dependency on x/net/http. A fix was released earlier today.
For more details, refer to this Cloudflare blog post.
What did you see instead?
N/A
What version of Traefik are you using?
N/A
What is your environment & configuration?
# (paste your configuration here)

Add more configuration information here.
If applicable, please paste the log output in DEBUG level
No response

New go version has been released
https://github.com/golang/go/releases/tag/go1.21.3

Hello,
We are aware of this information, and we will create a release tomorrow (EU time).

Any chance this issue could be left open until then? (So folks can actually subscribe to it 😅 - and also for visibility when folks open the repo to check for a release)

Hello, you can follow the release notification, I think will be more accurate because we will not change the code as the fix is inside Go.
Note: the Docker image of Traefik is an official Docker image, we don't handle the build process and we cannot know exactly when the image will be ready.


WIP: updates spot market order details format to follow derivative order details format

This PR:

resolves #421
updates spot market order details format to follow derivative order details format

Note: this PR is not ready to be merged yet, @cmhchoi wants to confirm this implementation with the trading team, please merge this only after he approves the PR.
Screenshots:

Before

buy order details
sell order details

After

buy order details
sell order details

This is good, but, next time we should first confirm the implementation before actually implementing anything. Implementation should be the final phase.


ECS disk optimization tips

"ECS disk clean up" part looks good, ship it!

On Tue, Jan 24, 2017 at 3:09 PM Min<EMAIL_ADDRESS>wrote:

"ECS disk clean up" part looks good, ship it!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/open-guides/og-aws/pull/379#issuecomment-274939377,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AS8r-XBvISTBOObOUDC-dZlN2MQ5kRmiks5rVmiUgaJpZM4LscKn
.

--
Allison

Thank you @DorrinPk!


.ios.conf error after 0.93 update

After upgrade 0.93 (from 0.92.2) on HA installed on Raspbian, I had:
hass[1113]: 2019-05-16 00:00:00 ERROR (Thread-20) [homeassistant.util.json] Could not parse JSON content: /home/homeassistant/.homeassistant/.ios.conf

error, with iOS integration failure.
After .ios.conf deletion and HA restart, everything went well.

Your .ios.conf became malformed somehow... Have you ever manually modified the file? There haven’t been changes to that file structure or even the component itself in a very long time. Closing this as its almost certainly a user specific issue.


Propagate errors from Mapbox GL JS

Problem
The Mapbox GL JS library has tons of built-in error checking for tokens, styles, and sources.  In order to provide relevant and useful error messages to a user creating a visualization, we'd have to re-create many error checks in the Python mapboxgl library.
Proposal
Propagate errors that affect the visualization (invalid token, invalid Mapbox style sheet, missing source, etc) and throw them from the python mapboxgl code execution.  We wouldn't want to propagate all types of errors - only ones that prevent a valid data visualization layer from being drawn on the map, or from the map being initialized.
Reference PR by @EtienneDesticourt  - https://github.com/mapbox/mapboxgl-jupyter/pull/59#issuecomment-371403399
@perrygeo @sgillies, any thoughts on this approach?

@ryanbaumann Sounds like a good idea to me. A Python exception is way better than map that never renders. I'm really interested in seeing how it would be done!


UI - Copying an Analysis Profile shows Add screen, but no buttons are present

In Configuration / Settings, copy an existing Analysis Profile.  An add screen is displayed, but there are not Add/Cancel buttons present.  Doing a normal add, does show the buttons.

Bz link- https://bugzilla.redhat.com/show_bug.cgi?id=1248329