Creating own instance of cors-anywhere

Hi I was wondering how I would create my own instance of the cors-anywhere proxy. I have an apache server so I'm not sure what to do with the code and how to run it?

If you don't mind using a different port, just start listening on <IP_ADDRESS> and your specific port.
If you really insist on hosting CORS Anywhere at a subpath of your Apache server, e.g. https://example.com/some/path/to/cors-anywhere/https://another.example.com, then there are lots of tutorials on the internet that shows how to do it. E.g. http://stackoverflow.com/questions/9831594/apache-and-node-js-on-the-same-server

I have setup a standalone local instance and it works very well. How do I secure it with https? I have my certificates.


Implements --exclude-file

Implemented https://github.com/lycheeverse/lychee/issues/302.
This is my first rust code, so talk to me like a 2yo :)

I think your original proposal of .lycheeignore is great.
We should make it default.
And this also allows the possibility for per-directory exclusion list.

I'll merge this now. Expect a new release soon. Created a ticket for discussing the future addition of .lycheeignore at https://github.com/lycheeverse/lychee/issues/308.
Thanks for first (but hopefully not last) your contribution @dblock. ⭐ And welcome to the Rust community! 🦀


Your paypal donation link is on french

It's need to be changed to english, I guess.


why use val_dataloader in eval

Hi,
I want to know why use val_dataloader in eval scripts?
https://github.com/cv-rits/MonoScene/blob/master/monoscene/scripts/eval_monoscene.py#L67
thanks.

Hi @807660937, because the evaluation on test set is done on Semantic KITTI server.


Remove experimental flag for amp-image-slider

amp-image-slider is no longer experimental and will be released soon

@dandv You are right... Did not expect to be published this soon (we missed the canary, so even though amp-image-slider on the master is no longer experimental, it is still experimental in production) Could we temporarily revert this? Sorry about this.

I reverted the experiment flag, all working now!

@kul3r4 Seems experimental flag is now removed in production. Can you check if it is working now and probably reapply the changes? Thanks!

I removed the experiment and the page is loading correctly.


Useless green cube item

About the PR

Added a useless green cube item. It contains 1 nutriment and 1 vitamin.
Why / Balance

As a test to get my first real hands-on experience in implementing an item and loot tables and then creating a pull request. It's also a Homestuck reference, to whoever that's relevant to.
I attempted to make it edible, because the imagery of taking a bite out of a green cube for no apparent reason is funny.
I don't mind if this gets denied or closed, it's primarily a test to figure out how to do this. It would be funny if this showed up in the game though.
Technical details

This is not a code change- I modified YMLs and added a sprite, and modified a json to let the game reference the cube's appearance in the files.
Media

[x] I have added screenshots/videos to this PR showcasing its changes ingame, or this PR does not require an ingame showcase

Breaking changes

None. I was recently made aware that this isn't considered a fruit or meat item (it shouldn't be anyways) and so is not edible to some species.
Changelog
🆑

🆕 Added a useless green cube that rarely spawns in science lockers or maintenance cabinets.

"but for some reason I haven't been able to feed it to my character on the dev server."
cause you're playing lizard and forgor to give the cube the reptilian edible tag thingy

Good job on your first PR. We won't be accepting it at this time (since it's by definition a useless item) but I eagerly anticipate your future PRs.
Thank you for your contribution.

based


What is the license of this driver?

Hi,
I would like to use this driver in a project of mine, but need to know what the license is or negotiate one to use it. I hope to hear from you soon.
Best regards and a happy new year

Work on this project was mostly a one time deal. It was meant to update and deprecate the original VMulti driver that I had used for Touchmote and antimicro in the past. VMulti was derived from code in the vhidmini2 project provided by Microsoft code samples.
https://github.com/djpnewton/vmulti
https://github.com/microsoft/Windows-driver-samples/tree/master/hid/vhidmini2
The Microsoft code samples are provided under the MS-PL license and the VMulti project is MIT licensed. I guess I can continue with licensing this derived project under the MIT license. I will add license info to the repo later.
There are some small update ideas I have had for this project but I have been more invested in other projects. My gamepad mapper experiments have benefited from using this driver rather than SendInput.

Thanks for the quick reply Ryochan7 :+1:.
My project is in its early research stages, so no rush.
If you like, I could try to write the update ideas that you had in my own fork as a thank you for providing this driver free, signed and permissively licensed :smiley:.


subtract & addition in where

Something like [+] or [-], and other things, would be nice in the where condition.
In some events I need to do this, but didn't find anything in the documentary.
Some example:
$dbmedoo->delete('cookies', [
'AND' => [
'expire[!]' => 0,
'(lastupdate[+]expire)[<]' => microtime(true),
],
]);
should make for mysql:
DELETE FROM cookies WHERE expire != 0 AND ((lastupdate+expire) <<PHONE_NUMBER>.7132)

Check out the new feature raw object https://medoo.in/api/raw.


Reprogram F1 help key option

Make it easy/possible to reprogram F1 help key, to say ^F1 so that programs that use ESC  often (next to F1 key) don't go off in the weeds loading help, just for a fat finger slip.

key remapping tools can remap any keys. This is not something special with just F1

Just going to lump this into #6  as this would have to support that scenario.


Use secrets for Gradle dev info

Description
Store developer information in secrets for delivering the library to Maven Central Repository.
Checklist

[x] Update Gradle configuration.
[x] Update Continuous Delivery workflow.

Done.


Re-use some Mica code from upstream Chromium to improve native titlebar appearance

On upstream Chromium, when running Windows 11 with the Mica title-bar flag enabled, Chromium not only enables the system-drawn title-bar a-la Supermium, but also makes a few neat aesthetic tweaks too, like making inactive tab backgrounds completely transparent, alongside making the new tab button background transparent too, as seen below:

The resulting effect looks pretty nice IMO, and may be worth bringing down to Supermium when using the system-drawn title-bar (i.e. when using Vista/7/8 or when using 10 with the feature flag enabled). Granted, I don't believe this is especially accurate to how Chrome actually used to behave on 7, particularly during it's prime (2008-14) where I'm fairly sure inactive tab backgrounds were still drawn, so it should probably be optional.

If I do it on Vista/7, it would have to be a semi-transparent inactive tab background as the readability of the text with Aero Glass is questionable (especially with the opaque maximized frames on Vista).

Fair point, maybe rendering some sort of visual styles text glow behind the inactive tab labels could work, if Chrome would actually allow that (like how ribbon apps behaved back in Vista/7 and whatnot). Such an issue could also affect 10 when using stuff like Glass8 (although the text glow idea wouldn't work so well there if using the stock visual styles), and iirc I think when forcing the use of Acrylic on Chrome under 11 it also didn't exhibit the best text readability either (although it did still seem readable enough to me).


renderBackground Image does not fill height of parallaxHeaderHeight before scrolling

Hey!
Thanks for this great react native component!
I have tested it on a simple news reader app that shows an article heading, title and HTML body. The parallax effect works fine but upon loading the background image does not fill the complete height of the header. I did not find this in the issues yet. And I wonder if there is a workaround for it. I have tried with different heights of the image and header.. no luck.
This also happens with the nested example.
Here is a GIF of my test, where you see it happen two times.
http://gfycat.com/FirstMeatyBunny
And the code for the render function (contains the HTMLView component)

    render () {
        return (
            <ParallaxScrollView
                parallaxHeaderHeight={300}
                renderBackground={() => <Image source={{ uri: this.props.post.thumbnail_images.medium_large.url, width: window.width, height: 300 }}/>}
                >
                <View style={styles.header}>
                <Text style={styles.headerText}>
                    {this.props.post.title}
                </Text>
                </View>
              <View style={styles.loremBody}>
                <HTMLView
                    value={this.props.post.content}
                    onLinkPress={(url) => console.log('navigating to: ', url)}
                    stylesheet={styles}/>
                <TouchableOpacity onPress={ () => {this._scrollView.scrollTo(0, 0);}}>
                  <Text style={{color: '#00A7FF'}}>
                    Scroll to top
                  </Text>
                </TouchableOpacity>
              </View>
            </ParallaxScrollView>
        );
    }

@ruudkalis Hey, thanks for reporting this issue! I'll have a look within the next 2-3 days. It's been pretty busy for me lately.

@ruudkalis I think the problem is that your image's ratio is not the same as window.width x 300. You can try using Image#resizeMode.
e.g.

      <ParallaxScrollView
        parallaxHeaderHeight={300}
        renderBackground={() =>
        <Image
          resizeMode="contain"
          source={{ uri: `https://placekitten.com/${window.width}/400`, width: window.width, height: 300 }}/>}>
        <Text>Meow!</Text>
      </ParallaxScrollView>

Thanks for the advice!


WIP: concat changes

Codecov Report

Merging #289 (af5af36) into main (a165c30) will decrease coverage by 0.42%.
The diff coverage is 42.69%.

:exclamation: Current head af5af36 differs from pull request most recent head 4c88db2. Consider uploading reports for the commit 4c88db2 to get more accurate results

@@            Coverage Diff             @@
##             main     #289      +/-   ##
==========================================
- Coverage   72.21%   71.79%   -0.43%
==========================================
  Files         182      184       +2
  Lines        6213     6294      +81
  Branches      644      661      +17
==========================================
+ Hits         4487     4519      +32
- Misses       1496     1544      +48
- Partials      230      231       +1

Impacted Files
Coverage Δ

towhee/engine/_operator_io.py
63.44% <32.60%> (-26.95%)
:arrow_down:

.../mock_operators/concat_operator/concat_operator.py
34.78% <34.78%> (ø)

...ts/mock_operators/split_operator/split_operator.py
62.50% <62.50%> (ø)

towhee/engine/operator_context.py
92.30% <83.33%> (-1.90%)
:arrow_down:

Continue to review full report at Codecov.

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


add education dao

Not sure if I added the correct information

Yup you did @critesjosh!
We'll work on finishing the bakend setup and ready to start reporting.
What're you thinking about for timeline on launching?

Shared on discord as well, but shooting for the beginning of April


⚠ Bofrost.at has degraded performance

In b08c249, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 2514 ms

Resolved: Bofrost.at performance has improved in bdbd7bc after 6 minutes.


feat(material-experimental/mdc-button): add extended fab

Add extended FAB to align with MDC https://material.io/components/buttons-floating-action-button#extended-fab

I still need to fix the unit tests but wanted to see if the inputs/classes should be added this way

I still need to fix the unit tests but wanted to see if the inputs/classes should be added this way

Addressed comments and split up mat-fab and mat-mini-fab since the extended input should only be available for the normal mat-fab

Addressed comments and split up mat-fab and mat-mini-fab since the extended input should only be available for the normal mat-fab


Allow specifying network name for communication with the server

Use machine ssh config values (port, host, username) for ssh_info action.

Is this going to be merged?


Close JDBC connections after executing sqls

JDBC connections are not getting closed as per the existing code. So a lot of connections are opened at the source end(RightNow) and the mysql database is down.
So I made a small change in JDBCExtractor to close connections in the finally block. This is the only change. But you may see small alignment differences in the diff.

LGTM.


Pass pool_kwargs rather than updating connection_pool_kw

This addresses an issue where making HTTPS through proxies used the
default urllib3 connection pool settings.
fixes #3633

This is only a problem in the proposed/3.0.0 branch so even though this breaks the API that's okay, right?

Yup, no problem at all.

I have made it so.

Failing tests. =)

Oh yeah, that's Python 2.6 because I used a dictionary comprehension in the tests. I can switch it to not use a comprehension, I just thought 2.6 was getting dropped in 3.0.0 and couldn't resist the opportunity to use them :smile:

heh, right now we can't remove them from the test matrix, so you might have to just tolerate not having it. :grin:

It's left me with a heavy heart, but the dictionary comprehension has been excised and tests pass on Python 2.6 again.


feat: save cache on job failure

Context
As stated by @TimJentzsch in #14:

Unfortunately, the cache action only saves the cache if the workflow succeeded.
For cargo, this doesn't make much sense as e.g. a failing test doesn't influence the build artifacts.
The difficulty here is that the action does not provide any option to configure this.
We could use the actions/cache@main/save action to manually save the cache, but then we can't put it at the end of the job, since compose actions don't have a way to set a post action to my knowledge...

Proposed Solution
The actions/cache action was upgraded to v4 in the previous pull request. This update brought forth the save-always option, allowing the cache to be preserved even in the event of a preceding step failure.
To align with this enhancement, I am introducing the save-always action input to the cargo-cache action and cascading it to the internal actions/cache step. If the save-always action parameter is not set, by default, the cache will always be saved.
This PR resolves #14

Actually, Alice is recovering from the Bevy release so I'll just go ahead and merge this

@LNSD Released as v1.2.0 and v1!


Find way to do dataloading without torchvision

I would love to not need to install torchvision and PyTorch just to load data into Spyx, as Torch often lags JAX in terms of CUDA support.

Torchvision has been eliminated as a dependency, so users are not forced to install it and PyTorch if they don't wish to do so. Users could use Tonic and then Tensorflow datasets as a possible alternative.


[Feature] Node Reader

Similar to https://github.com/chrisgoringe/cg-quicknodes - but with usability like the fast muter/bypasser nodes. Example desired behavior: connect the output of a node, and have the node reader export all the values that are not natively exported.
An example situation is to be able to hook up KSampler (Efficient) to SD Prompt Saver node (after converting the widgets to inputs).

Here's a workaround, that would be nice to have simplified


Whitespace not erased when aligning text to the right / center

Expected Behavior
The last character of a line of text should not be whitespace. Some weird stuff is happening when you align text to the right. Maintains whitespace, sometimes more than 1 space.

Spaces to be removed at the alignment side (right side in this case)
Current Behavior

Some weird stuff is happening when you align text to the right. Maintains whitespace, sometimes more than 1 space.
Also when aligning to the center, takes into consideration whitespace and therefore is not perfectly aligned.
Steps to Reproduce

.then(font => {

	let maxWidth = 679;
	let maxHeight = 64;

	tpl.print(
		  font,
		  10,
		  10,
		  {
		        text: 'My text here',
			alignmentX: Jimp.HORIZONTAL_ALIGN_RIGHT
		   },
		   100,
		   100
         );
});

Context

Jimp Version: 0.4.0
Operating System: Mac OS
Node version: 10.7.0

Released in v0.5.0


Remove default date strings from api v5

KNTK-407

remove default date strings from api v5

Looks like isort is unhappy. Please fix.


Fast Dispatch + multiple ethernet cores sharing a kernel id via CoreRange doesn't work

Steps to reproduce:

Check out `tests/tt_metal/tt_metal/unit_tests/common/watcher/test_waypoint.cpp
Change the test body to use a single kernel id for all eth cores (using eth_core_ranges)
Run TT_METAL_SLOW_DISPATCH_MODE=1 ./build/test/tt_metal/unit_tests --gtest_filter=*.TestWatcherWaypoints -> Passes
Run ./build/test/tt_metal/unit_tests_fast_dispatch --gtest_filter=*.TestWatcherWaypoints -> Fails on one of the ethernet cores

We observed that the L1 memory where the kernel should be on the failing core is all 0s

Suspect shared root cause with #5604

Taking a look, today and tomorrow

fixed on main, closing now


(SERVER-332) Allow all TLS algorithms in the dev lein profile

Without this patch the unit tests fail on JVM versions more recent than
1.7.0_u75 because SSLv3 is disabled at the JRE layer by default.  This
is a problem because the end user may explicitly configure the JRE to
allow SSLv3 algorithms, even though we disable them by default at the
application layer, and we need to test the behavior of the system in
this scenario.  This patch addresses the problem by allowing all SSLv3
algorithms by overriding the java.security jdk.tls.disabledAlgorithms
property.
This patch employs an override file rather than passing
-Djdk.tls.disabledAlgorithms= as a java option because passing the java
option doesn't work.  Similarly, passing
-Ddeployment.security.SSLv3=true as a java option as mentioned at 1
does not have the desired effect of enabling SSLv3.
The properties file is located in dev-resources because the directory
contains files needed by the tests and shouldn't ever be changed by end
users.

This has already been reviewed in #380 so merging into stable and up into master.


Tag Command doesn't work

https://github.com/product-os/flowzone/blob/fe7b608c37e49f3d1ee72344f0fead3157ac2961/flowzone.yml#L116
This command turns up empty when I was in process of stealing it for another job. Using git describe to extract the tag seems to be working. Reporting here for y'all to double check.
~/work/leviathan-worker$ git tag --points-at HEAD
~/work/leviathan-worker$ git describe --tags --always --dirty
v2.4.1-184-gb015d6d9
~/work/leviathan-worker$ npx -q -y -- semver -c -l "$(git describe --tags --always --dirty)"
2.4.1

Might remove --dirty flag to get the desired outcome
Not quite sure why it isn't working for. It is not the wrong command as also stated here: https://stackoverflow.com/questions/56788186/git-detect-that-local-head-is-pointing-to-a-git-tag

@vipulgupta2048 git tag --points-at HEAD will only return the tags that are on the current HEAD commit. So if the current commit is not tagged directly it should return nothing.
This line is only used by Flowzone if versioning is disabled, and instead done manually by tagging commits, in which case the above would return a tag.


docs: add aikit to integrations

Description
adds https://github.com/sozercan/aikit to integration docs
Notes for Reviewers
I copy pasted the readme without github specific markdown, let me know if any of the sections should be changed
X/Twitter handle: @sozercan
Signed commits

[x] Yes, I signed my commits.

@sozercan maybe want also to add it here https://github.com/mudler/LocalAI#-community-and-integrations ?

@mudler thanks! updated readme too

@sozercan / @mudler mergeing


Columns are not updating in metadata view pane

System information:

Operating system (distribution) and version: Microsoft Windows 10 Enterprise 10.0.17763 Build 17763
DBeaver version: <IP_ADDRESS>102281712
Java version: 1.8.0_261; Java(TM) SE Runtime Environment (build 1.8.0_261-b12); Java HotSpot(TM) Client VM (build 25.261-b12, mixed mode)
Additional extensions: None for DBeaver

Connection specification:

Database name and version: PostgreSQL 12.3 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-39), 64-bit
Driver name: PostgreSQL Binaries; psql (PostgreSQL) 12.2
Do you use tunnels or proxies (SSH, SOCKS, etc)? No

Describe the problem you're observing:
The listing of the fields is not updated after the new query runs in the same window
Steps to reproduce, if exist:
Just try any two queries resulting in different columns
Step 1: Enter query: "select 1::bigint as one", and execute
Step 2: Observe column "one" showing in metadata pane or results
Step 3: Add/amend the query: "select 1::bigint as one, 2::numeric as two"
Step 4: Observe again only column "one" showing in metadata pane or results, where should be two columns now
NOTE: this happens regardless of how you execute -- complete window <Alt+X>, or just selected code by <Ctrl+Enter>
Step 5: If you switch to another pane in the group, like "Value" and then back to "Metadata" -- them column list IS refreshed. But the hope is that, like results themselves, metadata would update automatically.
Include any warning/errors/backtraces from the logs

Thanks for your great work at DBeaver!

Please write any details

Apologies, posting first time here, prematurely created the item, thinking I would search for title... Now posted details in edit. Unfortunately do not know if can edit the title -- would make it more informative, like "Columns are not updating in metadata view pane"

Cannot reproduce. Do you refresh the table after making changes? Please write steps to reproduce, DBeaver version, your database.

Wrote steps.
Also, I expect the window with metadata to update after execution of new query just as results themselves are updated. I believe this is a reasonable expectation.
Thanks for such a quick reaction!
Great tool overall - keep enjoying it!

Added, to main issue post, one action leading to update of columns (switch to "Value" and back), which is akin to refresh. I am using it currently, but this is a slow-down, and, occasionally, if I do not do it immediately -- throws me off when I try to look at which columns I have...
So, it is not a show-stopper, of course, but would be nice to make it a consistent and more efficient experience we are growing to expect from this great team.

Fixed.

Verified


Warn instead of error out for missing .env file of PORT_GIT_DEPS programs?

For the programs specified for PORT_GIT_DEPS, e.g make, git, they are already pre-installed somewhere on the machine I'm using, but I have to manually create empty .env files under ${HOME}/zot/prod/${dep}/.env in order for the build.sh script to keep going and not report error during checkDeps() step. This gives a bit inconvenience and confusion.

Is this still an issue? I would recommend people use the z/OS Open Tools make, git, curl, etc. and if they are using alternates, then it is probably useful to create the .env to 'fit into' the zopen model so the tools know how to set up the environment for the tool.

I'm inclined to mark this 'not fix' unless there are more compelling details?


code release？

Hi, thanks for this great work!Any plan to release code?

No response.

No response.


fix: list protobufjs as direct dependency (#423)

[x] Make sure to open an issue as a bug/issue before writing your code!  That way we can discuss the change, evaluate designs, and agree on the general idea
[x] Ensure the tests and linter pass
[x] Code coverage does not decrease (if any source code was changed)
[x] Appropriate docs were updated (if necessary)

Fixes #423 by listing protobufjs as direct dependency 🦕

@googlebot I signed it!

It's by design
The new yarn PnP functionality has a stricter module resolution that will prevent packages to require dependencies that they don't explicitly list (even if one of their other dependencies happens to depend on it)

Thanks @DRoet for reporting this. It's indeed a problem, but we'll better fix it in the place where we generate protos/protos.js and protos/protos.d.ts by depending on the protobufjs re-exported from google-gax. We really don't want to have an extra dependency here.
Fixing here: https://github.com/googleapis/gax-nodejs/pull/868

@alexander-fenster sounds good, closing this in favor of that solution


WIP: 4-ci-srv-02: [no-test] Check for NPM dependency updates

Check for any outstanding update of point version of any outstanding NPM package dependency

[ ] npm-update

npm-update in progress on 4-ci-srv-02.
Log: https://logs.cockpit-project.org/logs/npm-update-1072-20200802-133333/


Disable auto-rotate while user is interacting with the model

Currently auto-rotate continues to spin the model's "turntable" even while the user is interacting with it. It seems likely that this is undesirable in most cases. Let's consider disabling auto-rotation while the user is interacting with the model.

Would love this. What are people's thoughts on how it should resume animation? I see three possibilities:

Don't rotate anymore after it has been interacted with
Rotate as soon as the interaction is done (mouse up)
Wait a small delay of time after interaction is done before rotating again

I'm leaning towards 3 where it takes a second or two before easing back into its rotation.

I agree that option 3 (resume after a delay) is best. Generally IMO the auto-rotate capability is primarily used to indicate to the user that the element is a 3D model (not an image) and suggest that they can interact with it. Once the user interacts, we should assume that they have specific intent and want to look at the model from their prescribed angle... likely for some period of time longer than a second or two. In fact I'd suggest we only want to resume rotating the model when it's likely the user has finished interacting, may have moved on to something else, and the auto-rotation should resume only as a reminder that the model is still interactive. So - I agree with option 3 but suggest at least a 30-second delay before auto-rotation resumes.

I'd love to do some user testing around discoverability of 3D with auto-rotating. I'd like to know if it is effective in catching attention, but I'm more interested to find out if it is distracting at all. If you were on a wikipedia article and the image on the right was a big rotating 3D model, would that be annoying? Would it be distracting on an online store where the featured image is a spinning 3D model? hmm

What I would probably propose here is that we add a auto-rotate-delay attribute and then choose some reasonable default. That way we can bike shed about the default, with the knowledge that all delays (including no delay at all) are possible 😄

I'm going to try to work on option #3 today.

You'll find auto-rotate in the recently minted "Staging" feature. The attribute itself dates back to our prototyping days, so pardon our dust 🙇

Oh, also relevant: there is a big change landing today related to controls, including a conversion of the "Controls" feature to TypeScript. You might want to take a peek at https://github.com/GoogleWebComponents/model-viewer/pull/452 if you find yourself diving through there.

@mikkoh FYI #452 has landed in master

It might take me a bit to get up and running. It's been awhile since I've looked at this code. But landing #452 will def makes a lot of sense.

This was fixed by #469


Allow pypi dependencies in global envs

Problem description
The global feature is really great and complements perfectly the project-based approach IMO. I know it's not fully released yet, but I wanted to check whether you are planning to support pypi dependencies in global envs?
One of the use cases is, for example, using a global tool either from its released version but also from its dev version at the same time. Something like:
[envs.smithy]
channels = ["conda-forge"]
dependencies = { conda-smithy = "*" }
exposed = { conda-smithy = "conda-smithy" }

[envs.smithy-dev]
channels = ["conda-forge"]
pypi-dependencies = { conda-smithy = "https://github.com/conda-forge/conda-smithy/archive/refs/heads/main.zip" }
exposed = { conda-smithy-dev = "conda-smithy" }

Hi @hadim,
We expected this to be one of the first feature requests. The short answer is "Not now". While we see the value, we're working on some much heavier features around pixi build. This limits us on time on pixi global, pypi features are the biggest producer of issues on pixi so we plan to keep global lean for now.

If you want this, like(👍) the Issue itself.


No notification shown

On Android Oreo, I cannot see any notification during the record, even though the toggle is enabled. The (unclickable) overlay is displayed, however.
May be related to #149

Actually, nevermind as I thought it would start a record immediately after the FAB is clicked.


XD-2707 Check the payload type for Message

When the spark streaming RDD items are iterated, add a check to see if the
item is of type spring Message before we proceed with building one.

LGTM; rebased, squashed, and merged


React routerv4/ssr. Merged functionality of #1745 and #1236

React Boilerplate
Since there was a vote to merge either react router v4 or server side rendering, I was looking to implement both in this boilerplate. I have merged code from both the commits and got React router v4 working with Server side rendering, solving errors as I encountered them. I know there is bit of work to be done with my pull request. Can someone check this work and tell me what I need to do to get this merged. I have not written corresponding scripts and test (because I dont yet know how), I can learn and implement them. Please suggest other changes to be done.
To run:
npm run ssr:clean
npm run ssr:generate
npm run start
Sometimes npm run start needs to be done twice. I need to fix it.

@ax-hd this does not actually render components containers on server, I think it is because inside AsyncRoute containers are loaded like promises, and SSR doesn't really wait for these import promises to be resolved.
If you disable JS and load a page you are gonna see that imported components are not rendered

@TheRusskiy Yes, I noticed that too. The header and footer render but the inner components don't, because they are using Async Component, which relies on lifecycle methods that react SSR does not execute.
I read this article a while back, it may prove useful, particularly the piece where you essentially have different require statements for server/client for your component containers: https://github.com/react-boilerplate/react-boilerplate/pull/1913

I used @tomazy 's ssr branch of this repo and for lazy component loading on server I used https://github.com/seeden/babel-plugin-dynamic-import-node-sync
but you would have to be careful to make sure that import is not used as a promise anywhere on the server

OK, I will look into it. Thanks for reporting. @TheRusskiy


#3509 fixed the alignment of donate btn

#3509
Fixes:  #3509
Description
I have fixed the alignment of the buttons in donate section. Now they are in same base line and looks good in the website.
#3509
Type of PR

[x] Bug fix
[ ] Feature enhancement
[ ] Documentation update
[ ] Other (specify): _______________

Screenshots / videos (if applicable)
Before:

After:

Checklist:

[x] I have made this change from my own.
[x] My code follows the style guidelines of this project.
[x] I have performed a self-review of my own code.
[x] My changes generate no new warnings.
[x] I have tested the changes thoroughly before submitting this pull request.
[x] I have provided relevant issue numbers and screenshots after making the changes.

Resolve conflicts @jayashisbarua

Resolve conflicts @jayashisbarua

Done ma'am.
Ma'am  I have a request, I am a new contributor to GSSOC'24 and have been contributing to this project. However, I have reached the points cap for Level 1, and as I don’t have other projects left in my area of expertise, I would like to request a Level 2 tag so I can continue contributing and raise my total points to 60.

@sailaja-adapa Thank you ma'am 😊

Wlcm @jayashisbarua


[Doc]  Create optimal Content Security Policy

As part of the issue #6261, it is required to document the optimal Content Security Policy for API Manager.

This should be documented and also delivered by default in a feature release.


Return ruleSet.getSelectors() as list from array

This returns the ruleSet.getSelectors() array as a list sense the update that made it return an array.

Thanks for the PR. I am little out of touch with this code. Will review it sometime this week.
@chetankothari is the main author of this. Chetan, if you have any comments, please let us know.

@xaoseric Can you please provide the JS that triggers this? It will help me quickly get into context.

You changed it from a list to an array awhile back, so the Array.aslist that I added in fixes the issue with returning CombinedSelector[] instead of List, you can see the code that triggers it below, IntelliJ highlighted it as an error so that's how I found it as I'm working on merging the cobra rendering stuff into its own package org.cobraparser.
https://github.com/radkovo/jStyleParser/commit/4bbce63eb24d7c5becef5d31d3ad586fdbf7e3cf

@xaoseric Thanks!

@xaoseric FYI, I have fixed some more build errors and pushed to master.


Update to log4j 2.16.0.

Log4j 2.16.0 is further hardened and makes it impossible for users to stumble into a configuration that is vulnerable to the CVE-2021-44228 issue. I don't think this is a fire-drill update, because Druid 0.22.1+ with Log4j 2.15.0 is not vulnerable in its default configuration. (We don't ship with any JNDI features enabled.) But the additional hardening would be beneficial to our users.
See announcement at: https://lists.apache.org/thread/t72msv9cpxw9q5zw8rfkhx52v24z57f1

"(We don't ship with any JNDI features enabled.)"
I don't want to upgrade druid verison, so I plan to delete jndilookup in older release like 0.20.1 to avoid this CVE-2021-44228 issue like this
zip -q -d log4j-core-*.jar org/apache/logging/log4j/core/lookup/JndiLookup.class
in  apache-druid-0.20.1/lib/log4j-core-2.8.2.jar
this operation should be OK? will not affect the druid cluster functions?

@hzluyang removing the JndiLookup class from the log4j-core jar is OK. We tested doing that, and Druid still works fine afterwards.

Which version will include that 2.16 ? next 0.22.2 ?

I'm waiting for 0.22.2 too ;)


Missing LUT3DEffect error

Hi,
I have an error with the newest version:
"dependencies": {
"@angular-three/cannon": "^5.5.0",
"@angular-three/controls": "^2.0.0-beta.8",
"@angular-three/core": "^5.5.0",
"@angular-three/postprocessing": "^5.5.0",
"@angular-three/schematics": "^5.5.0",
"@angular-three/soba": "^5.5.0",
"@angular/animations": "^14.1.0",
"@angular/common": "^14.1.0",
"@angular/compiler": "^14.1.0",
"@angular/core": "^14.1.0",
"@angular/forms": "^14.1.0",
"@angular/platform-browser": "^14.1.0",
"@angular/platform-browser-dynamic": "^14.1.0",
"@angular/router": "^14.1.0",
"rxjs": "~7.5.0",
"three": "^0.142.0",
"tslib": "^2.3.0",
"zone.js": "~0.11.4"
},
"devDependencies": {
"@angular-devkit/build-angular": "^14.1.0",
"@angular/cli": "^14.1.0",
"@angular/compiler-cli": "^14.1.0",
"@types/jasmine": "~3.10.0",
"@types/node": "^12.11.1",
"@types/three": "~0.141.0",
"jasmine-core": "~4.0.0",
"karma": "~6.3.0",
"karma-chrome-launcher": "~3.1.0",
"karma-coverage": "~2.1.0",
"karma-jasmine": "~4.0.0",
"karma-jasmine-html-reporter": "~1.7.0",
"postprocessing": "^6.28.4",
"typescript": "~4.6.2"
}
./node_modules/@angular-three/postprocessing/fesm2020/angular-three-postprocessing-effects.mjs:1802:11-22 - Error: export 'LUT3DEffect' (imported as 'LUT3DEffect') was not found in 'postprocessing' (possible exports: AdaptiveLuminanceMaterial, AdaptiveLuminancePass, BlendFunction, BlendMode, BloomEffect, BlurPass, BokehEffect, BokehMaterial, BrightnessContrastEffect, ChromaticAberrationEffect, CircleOfConfusionMaterial, ClearMaskPass, ClearPass, ColorAverageEffect, ColorChannel, ColorDepthEffect, ColorEdgesMaterial, ConvolutionMaterial, CopyMaterial, CopyPass, DepthComparisonMaterial, DepthCopyMaterial, DepthCopyMode, DepthCopyPass, DepthDownsamplingMaterial, DepthDownsamplingPass, DepthEffect, DepthMaskMaterial, DepthOfFieldEffect, DepthPass, DepthPickingPass, DepthSavePass, DepthTestStrategy, Disposable, DotScreenEffect, EdgeDetectionMaterial, EdgeDetectionMode, Effect, EffectAttribute, EffectComposer, EffectMaterial, EffectPass, GammaCorrectionEffect, GlitchEffect, GlitchMode, GodRaysEffect, GodRaysMaterial, GridEffect, HueSaturationEffect, Initializable, KawaseBlurMaterial, KawaseBlurPass, KernelSize, LUT3dlLoader, LUTCubeLoader, LUTEffect, LUTOperation, LambdaPass, LookupTexture, LookupTexture3D, LuminanceMaterial, LuminancePass, MaskFunction, MaskMaterial, MaskPass, NoiseEffect, NoiseTexture, NormalPass, OutlineEdgesMaterial, OutlineEffect, OutlineMaterial, OverrideMaterialManager, Pass, PixelationEffect, PredicationMode, RawImageData, RealisticBokehEffect, RenderPass, Resizable, Resizer, Resolution, SMAAAreaImageData, SMAAEffect, SMAAImageGenerator, SMAAImageLoader, SMAAPreset, SMAASearchImageData, SMAAWeightsMaterial, SSAOEffect, SSAOMaterial, SavePass, ScanlineEffect, Section, Selection, SelectiveBloomEffect, SepiaEffect, ShaderPass, ShockWaveEffect, TetrahedralUpscaler, TextureEffect, Timer, ToneMappingEffect, ToneMappingMode, VignetteEffect, VignetteTechnique, WebGLExtension)

My guess is "three": "^0.142.0", is not supported by @angular-three 5.5.0 yet.  If you remove this entry, does it help?

Does upgrading to version 6.0.0 clear this error?

I will check it and I will let you know

work fine


orbax equivalent to load_state_dict(strict=False)

I am trying to convert checkpoints to orbax format and getting a bad traceback:
  File "/home/sam/.conda/envs/char-latest/lib/python3.8/site-packages/orbax/checkpoint/utils.py", line 260, in _reconstruct_from_keypath
    if not isinstance(result, list) and key_name not in result:
TypeError: argument of type 'LazyValue' is not iterable

Higher level problem: is it possible to tell PyTreeCheckpointHandler to not load params that aren't present. like load_state_dict(strict=False) in pytorch?
orbax-checkpoint==0.2.3

(Assuming your specific problem is related to the higher-level problem you mention.)
This can be done using transformations. If there are a number of keys in the checkpoint that you wish to not load, you can just pass transforms={} to PyTreeCheckpointHandler.restore. You will also need to pass the item argument. Whatever the tree structure of your item is, that's what you'll get back - any extra keys in the checkpoint will automatically dropped. Also, if you have extra keys in item relative to the checkpoint, those will just get carried over into the result without being touched.

is transforms the way to cast params to fp32 after load?
        items = {MS: {PARAMS: unboxed_train_state.params}}
        kw = {MS: {"restore_args": {PARAMS: restore_args.params}}}
        params = ckpt_manager.restore(
            step=ckpt_manager.latest_step(), items=items, restore_kwargs=kw
        )

No, check out RestoreArgs, there is a dtype parameter and it does casting for you.

That worked thx!


Create issue templates

Having issue templates for participants to use when reporting bugs or feature requests will be useful in helping obtain useful information up front that aids in resolving the problem or implementing the feature.
Possible templates include...

Bug reporting - when the clarity software breaks we need to understand why and under what circumstances so we can investigate and resolve.
Feature request - allowing users to request new features will be invaluable to growing the software and increase its functionality.
Challenge problems - somewhere for people to report problems they are having with the challenge itself.

There may be more, please add them if you think there are other scenarios that may be useful.
A repository of templates for issue reporting can be found at stevemao/github-issue-templates: A collection of GitHub issue and pull request templates.

There are now three issue templates available for...

Bug Report
Feature Request
Question

If changes need to be made you can do so from Settings > General > Features > Setup up Templates (see Configuring issue templates for your repository).


Named AMD Modules as a compiler switch

This is a question/feature request combo. I understand it doesn't really fit the "issue guidelines" but I consider it fits better here as it does on StackOverflow.
It's been almost 3 years since this reply. If I understand correctly, the problem is with the tooling. 3 years is a lot, given the frequency of Visual Studio and Visual Studio Code updates we're seeing. I am wondering if it's still the same case. Is it still not possible to directly emit AMD Module Names without using the amd-module directive?
My scenarios is this: we have a codebase of >100 .ts filese, originally written using namespaces, that we need to change to use modules instead. We are using ASP.Net MVC and we want to still take advantage of the built-in bundling & minification process. We don't want to build a single output and instead want to create bundles for specific "features" of our app. This is currently not possible without adding the  amd-module directive in every app, which is a tedious task and it makes it hard to spot naming changes or conflicts.

I'm having the same need here : I'm using AMD/requiredjs on my growing app.
Today, I am currently using outFile in my tsconfig.json file and everything is working well : AMD module name are emitted into this single outFile, and module resolution is performed well.
However, concatenating everything in a single file prevents me from incremental compilation : since my codebase is growing and a ts (full) compilation takes 15-16s now, I considered switching to the outDir compiler option in order to benefit from incremental compilation.
The thing is .. as soon as I switch to outDir, AMD module names are not emitted anymore, and then I get tons of errors like Mismatched anonymous define() module because requirejs needs named modules.
The only solution I see currently is to switch to another build tool (currently using custom grunt scrips) like Webpack, but it would represent a lot of effort for the project to sustain such migration just for incremental compilation.
And honestly, I really don't understand why tsc behaviour is changing regarding emitted module names as soon as we switch from outFile to outDir ... at least, wouldn't it be possible to provide a compiler option allowing to emit AMD module names to keep backward compat ?


special forms should be just regular native functions but with no arguments evaluation */

introduced in #539

@rexim your assumption is wrong:

A special form is a primitive function specially marked so that its arguments are not all evaluated.

https://www.gnu.org/software/emacs/manual/html_node/elisp/Special-Forms.html
So some of the arguments of a special form can be evaluated.


Out of date documentation for component based modal

Hallo,
I'd like to use the same confirmation dialog all in my app. So I want to create a component based modal like in the example area. But I  think the example of the component based modal is a little bit out of date.
In the example the SuiModal want 3 Parameter, but in the code there are only two.
Example:
constructor(public modal:SuiModal<IConfirmModalContext, void, void>)
Code:
export class SuiModal<T, U> implements OnInit, AfterViewInit {...}
I tried this with constructor(public modal:SuiModal<IConfirmModalContext, void, void>) `, then I get "No provider for SuiModal!". After that I add SuiModal to providers. Then I get "No provider for Renderer2!".
What I am doing here wrong? I think the SuiModal were not created, so the imports from modal.ts were not imported. How I get this working?
Thanks,
eddi0815

I realise it's been a while since you made this issue, but thought i would try and help anyway.
The 3 types in the  are actually in the constructor of the ModalControls class (https://github.com/edcarroll/ng2-semantic-ui/blob/master/src/modules/modal/classes/modal-controls.ts).
All you need to add to your app.module.ts is the modal content component, in both the declarations array and the entryComponents array (assuminmg you already have SuiModule in the imports).
I agree the documentation is kinda confusing as the example is split up into 3 different components and it's not clear what you need to import in each of the files. For example, it doesn't mention you need to import SuiModalService and inject it into the constructor of the component where you want to call this.modalService from (private modalService: SuiModalService)

Will have a look at the documentation to see what bits could be cleared up here. Any specific suggestions you had would be very helpful!

Thanks for the reply
In my opinion, it would be helpful if there was a minimal example of creating a modal (as sometimes you just want to create a basic modal without too much boilerplate).
Here's a very rough example of how to create a modal component, and open the modal from a parent component.
Modal component
import { Component } from '@angular/core';
import { SuiModal, ComponentModalConfig, ModalSize } from 'ng2-semantic-ui';

@Component({
  selector: 'app-create-server',
  templateUrl: './create-server.component.html',
})
export class ModalContent  {
  data: string = 'complete';

  constructor(public modal: SuiModal<void, void>) {}

  async closeModal() {
    this.modal.approve(data);
  }
}

export class CreateModal extends ComponentModalConfig<void, void, void> {
  constructor() {
    super(ModalContent);
    this.size = ModalSize.Small;
  }
}

Parent component
import { Component } from '@angular/core';
import { SuiModalService } from 'ng2-semantic-ui/dist';
import { CreateModal } from './modal-content.component.ts';

@Component({
  selector: '...',
  templateUrl: '...',
})
export class ParentComponent {
  constructor(private modalService: SuiModalService) {}

  openModal() {
    this.modalService
      .open(new CreateModal())
      .onApprove((data) => {
        console.log(data);
      })
      .onDeny((data) => {
        console.log(data);
      });
  }
}

I am having the exact same issues. I've set everything up like in the docs but I still get a StaticInjectorError for SuiModal. If I provide SuiModal directly in the providers array for the ConfirmModalComponent the Modal will function however it has no 'context' property and therefore no title or question property etc.
Any clues? Did Eddi0815 ever resolve this?

You need to check from where you are importing SuiModal. I did face the same issue but I found that I had imported like this - import {SuiModal} from 'ng2-semantic-ui/dist' which actually should be import {SuiModal} from 'ng2-semantic-ui'
So removing 'dist' from import fixed the issue for me

I got it working. I didnt had to pass SuiModal, but Modal to the constructor of the component.


Cracking the TSreamerLoop

This is a follow-up on https://github.com/scikit-hep/uproot/issues/407
The main problem is a branch which cannot be parsed automatically and has a streamer called TStreamerLoop.
I managed to access all the data I need, but it's far from optimal from the users point of few: I need uproot.asdebug and additional information about the underlying data structure which needs to be hardcoded.
Here is a complete script which is running uproot v3.10.12 and parses a ROOT file from https://github.com/KM3NeT/km3io/blob/master/tests/samples/jpp_v12.0.0.root
A bit of background information: the data of interest is in the vector<KM3NETDAQ::JDAQSuperFrame>.buffer branch and consists of a ragged array of JDAQHits which is a simple struct:
    typedef  unsigned char             JPMT_t;    //!< PMT channel in FPGA
    typedef  unsigned int              JTDC_t;    //!< leading edge [ns]
    typedef  unsigned char             JTOT_t;    //!< time over threshold [ns]

The actual script with explanations:
import uproot

uproot.__version__   # 3.10.12

f = uproot.open("jpp_v12.0.0.root")

tree = f["KM3NET_TIMESLICE_L1"]

tree.keys() # [b'km3net_timeslice_L1']

frames = tree[b'km3net_timeslice_L1'][b'KM3NETDAQ::JDAQTimeslice'][b'vector<KM3NETDAQ::JDAQSuperFrame>']

frames.show()
# vector<KM3NETDAQ::JDAQSuperFrame>
#                           TStreamerSTL               asdtype('>i4')
#vector<KM3NETDAQ::JDAQSuperFrame>.length
#                           TStreamerBasicType         asjagged(asdtype('>i4'))
#vector<KM3NETDAQ::JDAQSuperFrame>.type
#                           TStreamerBasicType         asjagged(asdtype('>i4'))
#vector<KM3NETDAQ::JDAQSuperFrame>.fUniqueID
#                           TStreamerBasicType         asjagged(asdtype('>u4'))
#vector<KM3NETDAQ::JDAQSuperFrame>.fBits
#                           TStreamerBasicType         asjagged(asdtype('>u4'))
#vector<KM3NETDAQ::JDAQSuperFrame>.detector_id
#                           TStreamerBasicType         asjagged(asdtype('>i4'))
#vector<KM3NETDAQ::JDAQSuperFrame>.run
#                           TStreamerBasicType         asjagged(asdtype('>i4'))
#vector<KM3NETDAQ::JDAQSuperFrame>.frame_index
#                           TStreamerBasicType         asjagged(asdtype('>i4'))
#vector<KM3NETDAQ::JDAQSuperFrame>.timeslice_start.UTC_seconds
#                           TStreamerBasicType         asjagged(asdtype('>u4'))
#vector<KM3NETDAQ::JDAQSuperFrame>.timeslice_start.UTC_16nanosecondcycles
#                           TStreamerBasicType         asjagged(asdtype('>u4'))
#vector<KM3NETDAQ::JDAQSuperFrame>.id
#                           TStreamerBasicType         asjagged(asdtype('>i4'))
#vector<KM3NETDAQ::JDAQSuperFrame>.daq
#                           TStreamerBasicType         asjagged(asdtype('>i4'))
#vector<KM3NETDAQ::JDAQSuperFrame>.status
#                           TStreamerBasicType         asjagged(asdtype('>i4'))
#vector<KM3NETDAQ::JDAQSuperFrame>.fifo
#                           TStreamerBasicType         asjagged(asdtype('>i4'))
#vector<KM3NETDAQ::JDAQSuperFrame>.status_3
#                           TStreamerBasicType         asjagged(asdtype('>i4'))
#vector<KM3NETDAQ::JDAQSuperFrame>.status_4
#                           TStreamerBasicType         asjagged(asdtype('>i4'))
#vector<KM3NETDAQ::JDAQSuperFrame>.numberOfHits
#                           TStreamerBasicType         asjagged(asdtype('>u4'))
#vector<KM3NETDAQ::JDAQSuperFrame>.buffer
                           TStreamerLoop              None

As seen, all branches are parsed correctly but the the .buffer, which has a TStreamerLoop streamer.
frames[b'vector<KM3NETDAQ::JDAQSuperFrame>.buffer'].show()
# vector<KM3NETDAQ::JDAQSuperFrame>.buffer
#                           TStreamerLoop              None

To explore the buffer:

```python
buffer = frames[b'vector<KM3NETDAQ::JDAQSuperFrame>.buffer']

buffer.array(uproot.asdebug)
# <JaggedArray [[64 4 130 ... 237 5 30] [64 4 125 ... 245 5 17] [64 4 128 ... 245 5 26]] at 0x0001139f1610>

# The very first byte of 64 is kind of a ROOT header as you (Jim) mentioned in https://github.com/scikit-hep/uproot/issues/407?

# The file contains 3 super frames (timeslices), and each of them consists of 69 frames
# the 69 however is not fixed, it can vary from slice to slice! Each frame
# consists of hits (vector of JDAQHit<6bytes>) and corresponds to an optical module
# which registers those. It is already a good sign that the jagged arrays has 3 sub-arrays, since
# we have 3 super frames!

# The first timeslice which contains exactly 49243 hits from various different
# optical modules
ts = buffer.array(uproot.asdebug)[0]

ts
# array([ 64,   4, 130, ..., 237,   5,  30], dtype=uint8)

len(ts)
# 295464

295464 bytes - 6 bytes offset (don't yet understand why 6, but it works)
give 295458 bytes of raw JDAQHit data, which makes sense, since we know
that we have 49243 hits and 49243*6 == 295458
Now to parse the data, I extract a flat array of hits and manually slice it into a dictionary
flat_array_of_hits = frames[b'vector<KM3NETDAQ::JDAQSuperFrame>.buffer'].array(
                uproot.asjagged(uproot.astable(
                    uproot.asdtype([("pmt", "u1"),
                                    ("tdc", "u4"),
                                    ("tot", "u1")])),
                                skipbytes=6))

ts_hits = flat_array_of_hits[0]
len(ts_hits)
# 49243

ts_hits["tot"]
# array([27, 24,  5, ..., 44, 14, 30], dtype=uint8)

So the problem is now, that it's a flat array of hits, however, they should be grouped the module ID .numberOfHits and .id tells us more:
n_hits = frames[b'vector<KM3NETDAQ::JDAQSuperFrame>.numberOfHits'].array()[0]
n_hits
# array([ 984, 1004,  251,  729,  787,  243,  223,  891,  693, 1138,  524,
#        1089,  734,  819,  927,  849,  281,  711,  913,  714, 1046,  681,
#         515,  708,  762,  570,  433, 1106,  987,   94,  798,  312,  776,
#         224,  612,  443,  803,  774,  719,  792,  625,  229,  454,  634,
#         533, 1103,  693,  776,  815,  442,  671,  939,  876,  803,  643,
#        1058,  501, 1126, 1028,  442,  919,  670,  339, 1057,  800, 1010,
#         863,  809,  726], dtype=uint32)

module_ids = frames[b'vector<KM3NETDAQ::JDAQSuperFrame>.id'].array()[0]
module_ids
# array([806451572, 806455814, 806465101, 806483369, 806487219, 806487226,
#        806487231, 808432835, 808435278, 808447180, 808447186, 808451904,
#        808451907, 808469129, 808472260, 808472265, 808488895, 808488990,
#        808489014, 808489117, 808493910, 808946818, 808949744, 808951460,
#        808956908, 808959411, 808961448, 808961480, 808961504, 808961655,
#        808964815, 808964852, 808964883, 808964908, 808969848, 808969857,
#        808972593, 808972598, 808972698, 808974758, 808974773, 808974811,
#        808974972, 808976377, 808979567, 808979721, 808979729, 808981510,
#        808981523, 808981672, 808981812, 808981864, 808982005, 808982018,
#        808982041, 808982066, 808982077, 808982547, 808984711, 808996773,
#        808997793, 809006037, 809007627, 809503416, 809521500, 809524432,
#        809526097, 809544058, 809544061], dtype=int32)

Now the fun part: the first set of hits belong to module (.id) == 806451572, and consists
of 984 hits
Here is an inefficient loop to fill the hits:
hits = {}
idx = 0
for module_id, n_hits in zip(module_ids, n_hits):
    hits[module_id] = ts_hits[idx:idx+n_hits]
    idx += n_hits

# quick check against the PyROOT framework:
# [ins] In [15]: ts_hits[ts_hits.dom_id == 808972593]
# Out[15]: TimesliceHits <class 'km3pipe.dataclasses.Table'> (rows: 803)

len(hits[808972593])
# 803, fine!

# another check to see if the data is correct, expecting:
# [ins] In [16]: ts_hits[ts_hits.dom_id ==808972593].tot[:10]
# Out[16]: array([25, 31, 43, 21, 25, 24, 31, 25, 30, 23], dtype=uint8)
hits[808972593]["tot"][:10]
# array([25, 31, 43, 21, 25, 24, 31, 25, 30, 23], dtype=uint8)

Perfect! But a bit "whacky" and inefficient ;)
I am not so familiar with [jr]agged arrays yet, but I am sure one can somehow pass this this structure to the flat array and get it in one shot or something like this?
The module IDs are then just encoded by the index and one need another lookup in .id or so...

Discussed offline—the conclusion was that the above is a good way of dealing with complex C++ hierarchies that can't be easily (or can't be?) derived from streamers. We didn't find, for instance, anything in TStreamerLoop that indicated the data should have "pmt", "tdc", and "tot" fields.
So not wacky an inefficient! Cheers!

Thanks Jim!
Btw. during the live terminal session you could actually retrieve that superframes has frames and frames have numberOfHits JDAQHits.
So I think that maybe providing some kind of message that "JDAQHits structure is required to parse ..." could be helpful in future. But that's just a comment if we pick this issue up again ;)


Bilingual Translation in Fairseq

I am trying to train a Multilingual MT between two languages, English(En) and German(De). It is expected to be a Bilingual (Bidrectional) training.
Can I do it without using the following command: task multilingual_translation --lang-pairs de-en,en-de? This requires that I have two copies of the training data? Or can I achieve the training without the multiple copies ?

I think you can just preprocess the data for one direction and then follow the naming conventions and use symbolic links for the other direction, to avoid two copies of the data.

I think you can just preprocess the data in one direction and follow the naming conventions and create symbolic links for the other direction, to avoid duplicating the data.


Change Revenue from $911 to $969.2

The city's revenue from last year was $911 million, so I was just going off that until this year's budget proposal cam out, so the new revenue/General Fund budget is 969.2

Updated in the styling branch. Hope I did the thing right.
@mateoclarke check the latest styling branch to be sure. 👀

u dun gud


App crashes when trying to visit banned subreddits

I know this is a far-edge case, but I think the app should handle this.
Full trace:
Traceback (most recent call last):
  File "~/py3env/lib/python3.4/site-packages/rtv/content.py", line 240, in __init__
    self.get(0)
  File "~/py3env/lib/python3.4/site-packages/rtv/content.py", line 309, in get
    submission = next(self._submissions)
  File "~/py3env/lib/python3.4/site-packages/praw/__init__.py", line 508, in get_content
    page_data = self.request_json(url, params=params)
  File "~/py3env/lib/python3.4/site-packages/praw/decorators.py", line 163, in wrapped
    return_value = function(reddit_session, *args, **kwargs)
  File "~/py3env/lib/python3.4/site-packages/praw/__init__.py", line 561, in request_json
    retry_on_error=retry_on_error)
  File "~/py3env/lib/python3.4/site-packages/praw/__init__.py", line 403, in _request
    _raise_response_exceptions(response)
  File "~/py3env/lib/python3.4/site-packages/praw/internal.py", line 178, in _raise_response_exceptions
    response.raise_for_status()
  File "~/py3env/lib/python3.4/site-packages/requests/models.py", line 834, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "~/py3env/bin/rtv", line 7, in <module>
    from rtv.__main__ import main
  File "~/py3env/lib/python3.4/site-packages/rtv/__main__.py", line 133, in <module>
    sys.exit(main())
  File "~/py3env/lib/python3.4/site-packages/rtv/__main__.py", line 116, in main
    page.loop()
  File "~/py3env/lib/python3.4/site-packages/rtv/subreddit.py", line 45, in loop
    self.controller.trigger(cmd)
  File "~/py3env/lib/python3.4/site-packages/rtv/page.py", line 140, in trigger
    return func(self.instance, *args, **kwargs)
  File "~/py3env/lib/python3.4/site-packages/rtv/subreddit.py", line 88, in prompt_subreddit
    self.refresh_content(name=name)
  File "~/py3env/lib/python3.4/site-packages/rtv/subreddit.py", line 54, in refresh_content
    self.reddit, name, self.loader)
  File "~/py3env/lib/python3.4/site-packages/rtv/content.py", line 295, in from_name
    return cls(display_name, submissions, loader)
  File "~/py3env/lib/python3.4/site-packages/rtv/content.py", line 243, in __init__
    raise SubredditError(display_name)
NameError: name 'display_name' is not defined

Whoops I made a typo, see aa91c18a2512d9c1961db0707eb7ea17b0a1e6b9
Since I pooped the bed with v1.2, I just upped the version to v1.2.1

Sweet, just pulled it and didn't receive the error again.

I just got this error with version 1.4.2. Can you guys verify it?

Can confirm, the error message is different though -
Traceback (most recent call last):
  File "/usr/local/bin/rtv", line 7, in <module>
    from rtv.__main__ import main
  File "/usr/local/lib/python2.7/dist-packages/rtv/__main__.py", line 138, in <module>
    sys.exit(main())
  File "/usr/local/lib/python2.7/dist-packages/rtv/__main__.py", line 118, in main
    page.loop()
  File "/usr/local/lib/python2.7/dist-packages/rtv/subreddit.py", line 49, in loop
    self.controller.trigger(cmd)
  File "/usr/local/lib/python2.7/dist-packages/rtv/page.py", line 225, in trigger
    return func(self.instance, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/rtv/subreddit.py", line 92, in prompt_subreddit
    self.refresh_content(name=name)
  File "/usr/local/lib/python2.7/dist-packages/rtv/subreddit.py", line 58, in refresh_content
    self.reddit, name, self.loader)
  File "/usr/local/lib/python2.7/dist-packages/rtv/content.py", line 314, in from_name
    return cls(display_name, submissions, loader)
  File "/usr/local/lib/python2.7/dist-packages/rtv/content.py", line 258, in __init__
    self.get(0)
  File "/usr/local/lib/python2.7/dist-packages/rtv/content.py", line 328, in get
    submission = next(self._submissions)
  File "/usr/local/lib/python2.7/dist-packages/praw/__init__.py", line 524, in get_content
    page_data = self.request_json(url, params=params)
  File "/usr/local/lib/python2.7/dist-packages/praw/decorators.py", line 173, in wrapped
    return_value = function(reddit_session, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/praw/__init__.py", line 579, in request_json
    retry_on_error=retry_on_error)
  File "/usr/local/lib/python2.7/dist-packages/praw/__init__.py", line 424, in _request
    _raise_response_exceptions(response)
  File "/usr/local/lib/python2.7/dist-packages/praw/internal.py", line 198, in _raise_response_exceptions
    raise NotFound(_raw=response)
praw.errors.NotFound

It looks like in PRAW 3 they switched from requests.HTTPError to praw.errors.NotFound. The try-except block in content.py catches the former but not the latter. It's kind of annoying that they broke so many of the exceptions, but the fix should be easy.


plugin.dbt Docker taskRunner causing java.nio.file.NoSuchFileException error

Expected Behavior
In order to run dbt against MS SQL Server a custom container image is required and should function just like supported containers in the dbt.cli.Build plugin.
Actual Behaviour
No matter how the plugin is configured it always results in the error:
java.nio.file.NoSuchFileException: /tmp/kestra-wd/tmp/5oYlYsnswKF7R7wM6pIIYn/dbt-env/bin/python3.10
Before the tmp folder is removed I've managed to connect to the container shell & verify that the file and directory does in fact exist
The solution proposed by @loicmathieu in Slack is to add fileHandlingStrategy: MOUNT on the Docker task runner. This fixed the issue.
Steps To Reproduce
Running docker compose in ubuntu with the task:

id: transform
type: io.kestra.plugin.core.flow.WorkingDirectory
tasks:

id: clone_repository
type: io.kestra.plugin.git.Clone
url: https://github.com/[repo]
branch: main
id: dbt
type: io.kestra.plugin.dbt.cli.Build
dbtPath: /usr/local/bin/dbt
taskRunner:
type: io.kestra.plugin.scripts.runner.docker.Docker
containerImage: docker.io/craigbloodworth/dbt-sqlserver:latest
profiles: |
...profile

Environment Information

Kestra Version: 0.18.1
Plugin version: 0.18.1
Operating System (OS / Docker / Kubernetes): Docker on Ubuntu 22.04.4 LTS

Example flow
No response

@loicmathieu I guess the next step is to make fileHandlingStrategy: MOUNT the default setting on the Docker task runner?

I guess the next step is to make fileHandlingStrategy: MOUNT the default setting on the Docker task runner?

No, we should avoid using MOUNT as much as possible, as it has issues with a lot of setups.
We need to fix DBT to work with a volume.

@craigbloodworth our typical example works:
id: dbt-build
namespace: company.team

tasks:
  - id: working-directory
    type: io.kestra.plugin.core.flow.WorkingDirectory
    tasks:
    - id: cloneRepository
      type: io.kestra.plugin.git.Clone
      url: https://github.com/kestra-io/dbt-demo
      branch: main

    - id: dbt-build
      type: io.kestra.plugin.dbt.cli.Build
      taskRunner:
        type: io.kestra.plugin.scripts.runner.docker.Docker
      dbtPath: /usr/local/bin/dbt
      containerImage: ghcr.io/kestra-io/dbt-duckdb
      profiles: |
        jaffle_shop:
          outputs:
            dev:
              type: duckdb
              path: ':memory:'
              extensions:
                - parquet
          target: dev

Can you test it on your side?
If it also works, please give us a reproducer that fail.
If it didn't work, please provide logs and machine specification including Docker version.

cc @craigbloodworth do you still see the issue? can you reproduce with the example Loic shared?


Changed default Servlet charset to ISO-8859-1

Description

Logbook violates the servlet spec because we use UTF-8 as the default fallback charset, when in fact we should be using ISO-8859-1.
Motivation and Context

Fixes #870
Types of changes

[x] 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)

Checklist:

[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[ ] I have added tests to cover my changes.

@tian-jeff Could you check out this branch, build it locally and verify that it fixes your issue?

@tian-jeff Could you check out this branch, build it locally and verify that it fixes your issue?

Sorry about the late, i verify on this branch, but it's looks not OK.
according to my debug, i found the HttpMessage getCharset() will return ISO8859-1, but the body's correct encoding is UTF8
default String getBodyAsString() throws IOException {
        return new String(getBody(), getCharset());
    }

But then it should've worked before, shouldn't it?

ServletResponse default encoding is ISO8859-1, so the encoding is ISO8859-1 before too.

I don't get it.

Set some data by UTF-8 encoding in business logic.
This data will be store in response by byte[], but the response's default charset is ISO8859-1.
LogBook get byte array and use response's charset decode.
client receive byte[] data, and use UTF-8 decode it.

But in that case, you should also see an incorrect encoded response unless
your client uses UTF-8.
There is no way for Logbook to figure this out. Either you set a charset
explicitly or use the default. Anything else don't work.
On Thu, 12 Nov 2020, 14:08 Jeff<EMAIL_ADDRESS>wrote:

Set some data by UTF-8 encoding in business logic.
This data will be store in response by byte[], but the response's
default charset is ISO8859-1.
LogBook get byte array and use response's charset decode.
client receive byte[] data, and use UTF-8 decode it.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/zalando/logbook/pull/887#issuecomment-726066647, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AADI7HPJDNGFDQCWZGJKWYDSPPM4DANCNFSM4TQMJGBQ
.

I agree with you.
tomcat don't care content encoding, the encoding agreement by server and client.
but in this case, if any possible pls leave a configuration field for content encoding.

but in this case, if any possible pls leave a configuration field for content encoding.

For me it would make more sense to just specify the charset encoding that you use explicitly in your response. Then Logbook would make use of it.
Alternatively, you already found a way to configure it which has the same effort and effect: https://github.com/zalando/logbook/issues/870#issue-728841403

👍

This fix will be part of 2.5.0.


Naming/FileName: make CheckDefinitionPathHierarchy roots configureable

fixes https://github.com/rubocop/rubocop/issues/10220

[X] The PR relates to only one subject with a clear title and description in grammatically correct, complete sentences.
[X] Wrote good commit messages.
[X] Commit message starts with [Fix #issue-number] (if the related issue exists).
[X] Feature branch is up-to-date with master (if not - rebase it).
[X] Squashed related commits together.
[X] Added tests.
[X] Ran bundle exec rake default. It executes all tests and runs RuboCop on its own code.
[X] Added an entry (file) to the changelog folder named {change_type}_{change_description}.md if the new code introduces user-observable changes. See changelog entry format for details.

confirmed that it fixes the issue:
parts/monitors/foo/bar.rb:1:1: C: Naming/FileName: bar.rb should define a class or module called Monitors::Foo::Bar. (https://rubystyle.guide#snake-case-files)
module Monitors
^

@dvandersluis could you take a look at this PR plz :)

Can you please rebase? The specs were changed in #10223 (although magically this doesn't seem to have added a conflict somehow!)
Also, please add tests for CheckDefinitionPathHierarchyRoots specifically.

both the "file is under roots" and "file is not under roots" cases are already covered and the test uses the new configuration option ... but added a new test anyway
removed the doc addition

good to go ?

Thanks @grosser !


💲[Native Checkout] RewardCardView states VM tests

📲 What
This adds the unit tests for RewardCardContainerViewModel and RewardCardViewModel for the work done in #779. This is just a separate PR to try to make it easier to review, it's still a lot though 😓
🤔 Why
Tests gotta test.
🛠 How

Added a ButtonStyleType which @ifbarrera and I chatted about doing so that we wouldn't be returning an actual styling function from the VM. Swift also doesn't support equality checks on function types so this is necessary for unit test assertions. We can decide where to put this type.
Replicated the snapshot tests from #779 as unit tests in RewardCardContainerViewModelTests given that there's such a large amount of state combinations to cover. This is a slight deviation from how we usually write tests but I think I've put all of the necessary assertions in place for it to make sense.
Tweaked some outputs slightly to make this work 👌

✅ Acceptance criteria

[ ] Tests pass.
[ ] Tests make sense.
[ ] I've covered all of the variations.

 Reward States


Update Readme to link to docs tooling

@kvish lets update the schema rpcs in above json once all the requests from k8 are shipped.


Poor map using demo_depth_camera_2d.launch

Thanks a lot for the great work!
When I am running the demos, I have some questions, would you please help us to improve it?
1.  Environment:

Ubuntu 16.04
ROS kinetic
Building and Installation refered to https://google-cartographer-ros-for-turtlebots.readthedocs.io/en/latest/
cartographer_turtlebot: Latest version
cartographer: version 1.0.0
cartographer_ros: version 1.0.0
ceres-solver: version 1.13.0

2. Launch Lidar Demo with bag cartographer_turtlebot_demo.bag

Command Line:
roslaunch cartographer_turtlebot demo_lidar_2d.launch bag_filename:=${HOME}/Downloads/cartographer_turtlebot_demo.bag
Map result as follows

3. Launch 2D Depth Camera demo with bag cartographer_turtlebot_demo.bag

Command Line:
roslaunch cartographer_turtlebot demo_depth_camera_2d.launch bag_filename:=${HOME}/Downloads/cartographer_turtlebot_demo.bag
Map result as follows

4. Questions?

The above two demos use the same bag (cartographer_turtlebot_demo.bag), so I think they should output the similar map, am I right? If no, would you please correct me.
To make the 2D Depth Camera demo output the good map that is the same as Lidar Demo, how to tuning the parameters?

Let me know if you need any other files or information in order to reproduce the issue. Thanks!

This seems like a regression in demo_depth_camera_2d.launch.
Of course, the input is very noisy, but there was a time when all launch files created a valid map.

Would you please tell me what time did all launch files create a valid map, so that I test it and find the difference?

@SirVer, can you perhaps point to a version when demo_depth_camera_2d.launch created a map?

I had read all the issues of this project, and improve the configuration file "turtlebot_depth_camera_2d.lua", please find here, the map results as follows.   https://github.com/tiaopao/doc/blob/master/cartographer/turtlebot_depth_camera_2d.lua#L54

This would fix local SLAM to constant velocity, so this unfortunately doesn't solve it.
I'd rather try out fine changes to hit/miss_probability and/or real_time_correlative_scan_matcher with a small search window, and setting the ceres translation_weight rather low.
Please find the tuning guide here: https://google-cartographer-ros.readthedocs.io/en/latest/tuning.html

@gaschler Thanks for your great suggestions, I will try it.

Command Line:
roslaunch cartographer_turtlebot demo_lidar_2d.launch bag_filename:=${HOME}/Downloads/cartographer_turtlebot_demo.bag
Code version 0.1.0

cartographer: version 0.1.0
cartographer_ros: version 0.1.0
cartographer_turtlebot: version 0.1.0
ceres-solver: version 1.13.0
map results:

Code version 0.2.0

cartographer: version 0.2.0
cartographer_ros: version 0.2.0
cartographer_turtlebot: version 0.2.0
ceres-solver: version 1.13.0
map results:

Code version 0.3.0

cartographer: version 0.2.0
cartographer_ros: version 0.2.0
cartographer_turtlebot: version 0.2.0
ceres-solver: version 1.13.0
When running, there is an exception.

Question
@SirVer which version is correct for the map?


[ko] Translate the glossary term 'Event' into Korean

This is a Feature Request
What would you like to be added
Translate the glossary term 'Event' into Korean

link to en entry: https://kubernetes.io/docs/reference/glossary/?fundamental=true#term-event
link to ko entry: https://kubernetes.io/ko/docs/reference/glossary/?fundamental=true#term-event

Why is this needed
Not translated yet
Comments
/language ko
/assign

/triage accepted

Resolved by

#35502 (→ dev-1.24-ko.2)
#35767 (dev-1.24-ko.2 → main)

/close


Disable weave restart policy

Fixes #1249

@jnummelin @SpComb ping

Hmm... I suppose this would be ideal, but testing the restart logic is a bit hairy.
Maybe the smaller attach_router change in #1251 would be simpler for 0.16.1, and then go for this + #1241 in 0.17?

I prefer this PR over #1251 because this is simpler and does not bring any new weave calls into the mix (are we really really sure that attach-router is ok to run).

Maybe we need to add backoff logic? This healing might be very resource intensive if weave does not want to stay alive (bad config etc).
I'll look #1251 with fresh eyes and check if we can minimize the attach-router calls.

Is this a good idea anymore? Should we close?

I think this ties into the broader theme of #1241 and the new Kontena::Workers::ContainerStarterWorker, maybe we should be doing something similar for all containers, not just weave?
None of the Docker restart-after-reboot policies really work, the only container that can actually do anything useful after a reboot is the kontena-agent. Having Docker start the etcd and kontena-ipam containers just leads to longer restart cycles once the agent does get everything up and running.

@jnummelin what do you think, close or continue?

I would close this and maybe (at some point) work on the broader restart-policy scope as @SpComb also mentions.


version number of 1.2.9 release

when selecting it in the Finder, version 1.2.9 claims to be actually version 1.2.8

thanks"

np. I hope to have a new binary for everyone soon. :smile:


1132 [SEO] Minified the JS with Terser CLI

Please always provide the GitHub issue(s) your PR is for, as well as test URLs where your change can be observed (before and after):
Fix #1132
Test URLs:

Before: https://main--danaher-ls-aem--hlxsites.hlx.page/
After: https://1132-seo-minify-franklin-script-js--danaher-ls-aem--hlxsites.hlx.page/

@davenichols-DHLS and @amlan18041996 , Please do test on Safari browser on Mac OS and then proceed merging this PR. Thanks.


Clean up testing vs linting concepts, plus misc fixes.

Fix #109:

Remove "coverage" as a concept from nbcelltests.lint.
Remove "lines_per_cell", "cells_per_notebook", "function_definitions", "class_definitions" as concepts from nbcelltests.test.

Fix #120: test.runWith*() fns were not applying any rules. Also, add some basic/beginning testing of test.runWith()* fns (but see #122)
Also:

Fix coverage calc in the case of 0 cells
Renamed coverage.ipynb, because when coverage.py is auto-generated, it causes confusion (see #121).

@vidartf I got distracted and clicked in the wrong place on #124 when I came to merge. Please could you approve this one (it's identical). Thanks!


As a user(any role) I want to view materials in "Materials" section

User (any role) should view materials with direction corresponding to Direction page in "Materials"("Матеріали") section.
Each material card should contain:

Author's picture, first name, last name, primary place of work
Material type (article, note, video, course etc.), direction and title. For articles, notes: preview of material (4 lines). For video: player preview
Date of adding
Materials should be sorted by date of adding, newest to oldest.

Clicking on "More materials" (Більше матерілів) should load 6 more materials to section and focus the page on them.
User should have possibility to filter materials by material type and tags.
Material page should be opened by clicking on material card.


Jupyter notebook integration

https://github.com/akabe/ocaml-jupyter seems pretty straightforward to integrate into polars-ocaml; we should probably add some functionality so that the dataframes / series are rendered in a prettier way in jupyter but doesn't feel like a ton of work.

https://github.com/mt-caret/polars-ocaml/pull/10 which I think was a blocker has been merged.

On a whim I tried out ocaml-jupyter to see what sort of issues I'll hit when using polars-ocaml and... it just worked?

I guess next steps would be better integration with the jupyter ecosystem so dataframes and stuff are rendered properly (rather than via the pretty printer), but even without that this seems pretty usable.

With https://github.com/mt-caret/polars-ocaml/pull/93 we now can just #require "core.top" to have all the relevant pretty-printers installed automatically:

One interesting issue is that if you don't have monospace font installed+configured and have "wide" CJK characters in the table, the string representation is pretty unreadable in Jupyter. I don't have a screenshot, but something like:

This is probably a good reason to try and have series and dataframes properly rendered as HTML tables in Jupyter.

Is Jupyter integration the main reason that this project is not compatible with OCaml 5? Or are there other serious obstacles

@patrick-nicodemus Hey; that's one reason but not the main one. https://github.com/tizoc/ocaml-interop, which is the library used by this one to interoperate between OCaml and Rust doesn't yet support OCaml 5 yet. We're working on some things internally, though, so this might no longer be a blocker in a few months.


Better booting messages and errors

CUtils::PrintStatus with no message parameter just pastes 'ok' in your terminal.
This message is rather useless, and sometimes gets used in repeat.
This change fixes that by being more verbose, telling the user exactly WHAT happened.
New:
[ .. ] Checking for list of available modules...
[ >> ] List of available modules has been found.
[ .. ] Opening config [/home/zarthus/.znc/configs/znc.conf]...
[ >> ] Reading config...
[ .. ] Loading global module [webadmin]...
[ >> ] Global module [webadmin] loaded successfully.
[ .. ] Binding to port [+1111]...
[ >> ] Listening on secure port [+1111].
[ ** ] Loading user [zarthus]
[ ** ] Loading network [freenode]
[ .. ] Adding server [chat.freenode.net +6697 ]...
[ >> ] Added server [chat.freenode.net +6697 ]
[ .. ] Loading user module [chansaver]...
[ >> ] User module [chansaver] loaded successfully.
[ .. ] Loading user module [controlpanel]...
[ >> ] User module [controlpanel] loaded successfully.
[ .. ] Forking into the background...
[ >> ] [pid: 28281]
[ ** ] ZNC 1.7.x-git-442-2a57f69 - http://znc.in

Old:
[ .. ] Checking for list of available modules...
[ >> ] ok
[ .. ] Opening config [/home/zarthus/.znc/configs/znc.conf]...
[ >> ] ok
[ .. ] Loading global module [webadmin]...
[ >> ] [/home/zarthus/znc-build/lib/znc/webadmin.so]
[ .. ] Binding to port [+1111]...
[ >> ] ok
[ ** ] Loading user [zarthus]
[ ** ] Loading network [freenode]
[ .. ] Adding server [chat.freenode.net +6697 ]...
[ >> ] ok
[ .. ] Loading user module [chansaver]...
[ >> ] ok
[ .. ] Loading user module [controlpanel]...
[ >> ] ok
[ .. ] Forking into the background...
[ >> ] [pid: 28778]
[ ** ] ZNC 1.7.x-git-441-d66cb36 - http://znc.in

[ .. ] Checking for list of available modules...
[ >> ] List of available modules has been found.

I think this string could have some improvement.

[ .. ] Opening config [/home/zarthus/.znc/configs/znc.conf]...
[ >> ] Reading config...
[ .. ] Loading global module [webadmin]...
[ >> ] [/home/zarthus/znc-build/lib/znc/webadmin.so]

How about Loaded module webadmin from /home/zarthus/znc-build/lib/znc/webadmin.so?

[ .. ] Binding to port [+1111]...
[ >> ] Listener on port [+1111] has been added.

I know that ZNC talks about listeners, but for other users Listening on SSL port 1111 would be more clear or at least Listening on port +1111.

<snip>
[ .. ] Loading user module [chansaver]...
[ >> ] Module [chansaver] loaded successfully.
[ .. ] Loading user module [controlpanel]...
[ >> ] Module [controlpanel] loaded successfully.
<snip>

Where did the paths disappear?

I think this string could have some improvement.
I'm turning some blanks. None of what I can think of can be phrased in a way that would say "your installation does not appear to be horribly fucked."

How about Loaded module webadmin from /home/zarthus/znc-build/lib/znc/webadmin.so?
Will be improved in my next commit to follow in line.

[ >> ] Listener on port [+1111] has been added.
Changed to Listening on secure port [+1111]

Where did the paths disappear?
Not sure if this problem should be tackled in this pull request, a followup where the three modules get standard outputs might be nice.

Some history on where these "[ ok ]" come from.
Once upon a time we used some magic to overwrite the "[ .. ]" at the beginning of the line with "[ ok ]". That magic (mostly just a \r) caused problems and was removed.
Having said that, I wonder: Can we just remove these "ok" messages? If no error is reported, then we can assume that things worked successfully.
Alternative idea:
Checking for list of available modules...ok

(Instead of printing the "ok" on its own line, append it to the previous line)

I like the idea of removing CRLF for the 'ok' messages, but since it was used in CUtils I wasn't sure how often and where it was used, and what it would affect. So I took the safer and more verbose approach.
A snippet from the dev channel:
(13:15:43) <Zarthus> znc is really all over the place and it's difficult to find all 'unintentional' empty strings being passed
(13:16:04) <Zarthus> for a while I considered passing a third optional parameter that would determine a default message
(13:16:23) <Zarthus> the other thing I considered is going "the linux way" and not giving output if all is okay
(13:16:47) <Zarthus> but all of it boils down to making a workaround for the existing problem

In addition to removing them, znc's terminal uses several states (error, success, and pending). And it would look weird to see everything pending and no real green.
I don't know for sure what the most favourable approach really is, but I think the one that will satisfy the most people is to just give more of a description of what happened. I also vaguely recall seeing multiple "ok"s in a row, so by removing \r\n you might end up with Doing something awesome... okokok

Checking for list of available modules...ok

I like this idea.

Um, this seems to conflict with #1124

@DarthGandalf: Correct, I kept both PR's open in case users preferred one way over another.  I stated the conflict in issue 1124 -- sorry if that was not clear enough
With that said, this PR should probably be closed.


Add request IDs to error responses

Attaching the request and trace IDs to all OperationOutcome error responses is intended to aid in troubleshooting by allowing easy correlation of a given error response to all server logs associated with the corresponding request.  For example, an error response from the server might look like:
{
    "extension": [
        {
            "extension": [
                {
                    "url": "requestId",
                    "valueUuid": "6bf2cf1d-9b75-4547-b0a9-61cc2c7aa99f"
                },
                {
                    "url": "traceId",
                    "valueUuid": "44130e70-8ca3-4400-b270-c05ea7085787"
                }
            ],
            "url": "https://medplum.com/fhir/StructureDefinition/tracing"
        }
    ],
    "id": "not-found",
    "issue": [
        {
            "code": "not-found",
            "details": {
                "text": "Not found"
            },
            "severity": "error"
        }
    ],
    "resourceType": "OperationOutcome"
}

In AWS CloudWatch Logs Insights, you can easily query for all associated logs in chronological order:
fields timestamp, level, msg
| filter requestId = '6bf2cf1d-9b75-4547-b0a9-61cc2c7aa99f'
| sort timestamp asc

coverage: 94.08%. remained the same when pulling c8938a3f66c6db2bc3d002122baddf328c994b2d on validator-error-info into a229348844a7b241c632ba7ba9956202d513cfa7 on main.


ServiceBus and EventHub SDK for NET

Can one of the admins verify this patch?

Hi @sazeesha, I'm your friendly neighborhood Azure Pull Request Bot (You can call me AZPRBOT). Thanks for your contribution!

It looks like you're working at Microsoft (sazeesha). If you're full-time, we DON'T require a contribution license agreement.

If you are a vendor, DO please sign the electronic contribution license agreement. It will take 2 minutes and there's no faxing! https://cla.azure.com.

TTYL, AZPRBOT;

@sazeesha Please rebase your changes and clean up these commits - there should be a small number of logical commits in a PR of this size.

Will create a new clean PR


optimize VarTimeDoubleScalarBaseMult

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

124 of 126 (98.41%)  changed or added relevant lines in 3 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.5%) to 70.977%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

internal/edwards448/scalar.go
48
50
96.0%

Totals

Change from base Build<PHONE_NUMBER>:
0.5%

Covered Lines:
5615

Relevant Lines:
7911

💛  - Coveralls

name                                 old time/op  new time/op  delta
TestSetUniformBytes-8                 162ns ± 5%   164ns ± 7%     ~     (p=0.224 n=20+20)
ScalarBaseMult1-8                     118µs ± 9%   113µs ± 2%   -4.19%  (p=0.002 n=19+20)
ScalarBaseMultMinus1-8                113µs ± 4%   112µs ± 2%   -1.67%  (p=0.004 n=20+19)
ScalarMult1-8                         319µs ± 7%   303µs ± 3%   -4.90%  (p=0.000 n=19+19)
ScalarMultMinus1-8                    306µs ± 4%   318µs ± 9%   +3.98%  (p=0.002 n=19+19)
VarTimeDoubleScalarBaseMult1-8        421µs ±10%    11µs ± 6%  -97.39%  (p=0.000 n=20+20)
VarTimeDoubleScalarBaseMultMinus1-8   415µs ± 5%   253µs ± 2%  -39.20%  (p=0.000 n=20+19)

name              old time/op  new time/op  delta
KeyGeneration-8    151µs ± 4%   142µs ± 1%   -6.11%  (p=0.000 n=19+20)
NewKeyFromSeed-8   154µs ± 5%   142µs ± 2%   -7.76%  (p=0.000 n=19+20)
Sign-8             183µs ±10%   163µs ± 7%  -10.72%  (p=0.000 n=19+20)
Verify-8           606µs ± 5%   332µs ± 3%  -45.15%  (p=0.000 n=20+20)


When will v2 of your xstate course be released?

Hi, I'm really interested in getting your course but I've seen you're working on a v2 for it, so I was just wondering how far away that is from being completed?
Cheers :)

Hi, I'm really interested in getting your course but I've seen you're working on a v2 for it, so I was just wondering how far away that is from being completed?
Cheers :)

I was just watching the course and was wondering the same thing. It feels outdated and incomplete at the moment. Any estimate on when you'll be able to publish the new material?

Hey @fdjones and @martijnsenden,
Sorry for the slow reply, have been working on getting a new course platform out the door (which I did just last night!).
v2 of the course has been written, but I'm waiting on the release of XState v5 before recording. It's a completely rewritten course (materials and associated app)... no longer using react-automata, now using Hooks, added a module on TypeScript, added coverage of the Actor model, and a whole lot of other things.

Ah right, that makes sense @jonbellah, cheers for the update :)


Update taskflow.md

PR types

Others
PR changes

Docs
Description

Fix a syntax bug.

Fixed the typos in another pr.


Doctrine instead of pdo?

Is it easy to implement doctrine instead of pdo connector?

Yes. Just check if given user exist in database and the password is correct. If yes then return boolean true. If no return boolean false.

Ok thanks for your help ;-)


Command "module:make-policy" is not defined.

when i creating policy , it throw this error
Command "module:make-policy" is not defined.
please help me

I am having this same issue. @nWidart , reading from the documentation, Artisan commands, it shows that command is supported. Maybe its a mistake?  I think the documentation should be updated cos the command is shown there as one of the commands the package supports.

Made a PR on the doc to Removed "module:make-policy" command from doc

Little update, I can see the command here: https://github.com/nWidart/laravel-modules/blob/master/src/Commands/PolicyMakeCommand.php


Use az rest with access token

Related command
az rest
Is your feature request related to a problem? Please describe.
I want to change the merge strategy of a pull request with az repos pr update. But it does not support this. Therefore I wanted to use az rest from an azure pipeline, but I have no means of authorizating without an azure subscription.
Describe the solution you'd like
I would want to be able to do something like:
az rest -m patch -b <MY_JSON> --azure-pat $(System.AccessToken) -u <MY_URL>
Describe alternatives you've considered
The following does not work either:
az rest \
  -m patch \
  -b '{"completionOptions":{"mergeStrategy":"rebaseMerge"}}' \
  -u https://dev.azure.com/<Organization>/<Project>/apis_/git/repositories/pullrequests/<PR_ID>?api-version=7.0 \
  --skip-authorization-header \
  --headers "Authorization=Bearer $(System.AccessToken)" "Content-Type=application/json"; \

and returns
ERROR: Not Found({"error":{"code":"MissingSubscription","message":"The request did not have a subscription or a valid tenant level resource provider."}})

@jiasli for awareness


Get-CsOnlineUser - Output refactored, valuable parameters lost?

Hello,
with v2.5.0 of MicrosoftTeams, the output was refactored. While I welcome the switch to the AutoRest query, I lament the lost of backwards compatibility.

Modernized versions of Get-CsTenant and Get-CsOnlineUser (with -identity parameter only) have been released. They no longer emit deprecated properties and have some formatting changes compared to their remoting counterparts.

Issue: Calls with Switch Identity return different Object
Workaround: Call without switch Identity (OK)
As I would want to use the new output, I have found a few drawback based on the new Output object, or to be more precise, the parameters now missing/removed. May I have clarification on new object please?:

[ ] Parameter ObjectId removed:
Parameter was used to find Users (ObjectAd from AzureAd-Object and CsOnlineUser-Object were congruent!)

[ ] How to replace ObjectId (with Identity?)

[ ] Parameter VoicePolicy removed:
I have multiple scripts built on the table outlining the configuration in the Migrate to Direct Routing  document.

[ ] How do I identify the Voice Configuration Type now correctly?

[ ] Parameter TelephoneNumber removed:

[ ] How to identify a Calling Plan Number?
[ ] Follow up: How will I be able to identify a Operator Connect Number?

[ ] Parameter LineUri: Output changed, TEL URI displayed without "tel:+" prefix!
The output format is used to model input format for SET-CmdLets.

[ ] Will this have an impact for Set-CsUser and others?

[ ] Policy Parameters - Output changed from String to Object.

[ ] What is the expected use for displaying an Object here, rather than the singularly assigned Name/Id?
[ ]  TenantDialPlan - This generates issues with Scripts using $CsUser.TenantDialPlan for queries, not for T/F assignment queries, but for the actual name for further use...
now: if ($CsUser.TenantDialPlan) {$CsUser.TenantDialPlan.Name} else {}
[ ] OnlineVoiceRoutingPolicy - Output changed from String to Object, but works fine with String query?!
Is this the desired behavior and has this been missed from TenantDialPlan and other policies?
What is the expected use for displaying an Object here, rather than the singularly assigned Online Voice Routing Policy?
[ ] Other policy parameters... (all?): Wide ranging impact to multiple scripts if not documented properly.
Which Parameters are affected here? All ending in -Policy?

Thank you,
David
PS: These are just for the most important parameters, I have not dug into all potentially used parameters yet
Track & Link: https://github.com/DEberhardt/TeamsFunctions/issues/95

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

ID: 7008ec10-a056-d8bb-bb4e-b4690a84adfd
Version Independent ID: 2dcb78d9-7f36-208e-0989-184905d73011
Content: Get-CsOnlineUser (SkypeForBusiness)
Content Source: skype/skype-ps/skype/Get-CsOnlineUser.md
Service: skypeforbusiness-powershell
GitHub Login: @tomkau
Microsoft Alias: tomkau

@DEberhardt
I currently face the same issue. I maintain the Direct Routing for users. Therefore, the following attributes of the Cmdlets Get-CsOnlineUser and Set-CsUser are crucial in order to verify settings:
-OnPremLineURI
-Phone
-EnterpriseVoiceEnabled
-HostedVoicemail
I raised a Microsoft support ticket. Finally, I had to figure it out myself. I found out that the attribute's output is available in the PSVersion 2.3.1 of the MicrosoftTeams PowerShell module, but is not available in the PSVersion 2.5.0.
Therefore, I rolled back to v2.3.1
Uninstall-Module -Name 'MicrosoftTeams'
Install-Module -Name 'MicrosoftTeams' -RequiredVersion '2.3.1'

@yogkumgit
The Microsoft Teams PowerShell module must continue to include this outputs. I cannot even verify current or modified settings by means of Get-CsOnlineUser at the moment.
There was no notification in the admin center / message center on this vast Cmdlet changes ....
However, rolling back an older PS module version is not an satisfying option.
Installing several PS module versions side by side is also not satisfying.
What is the reason why these outputs are not included / available anymore?

Markus, the output as before is still available in v2.5.0 - you have to drop -Identity from the Cmdlet call and just run Get-CsOnlineUser<EMAIL_ADDRESS>to get it.
That said, since Friday last week, v2.5.0 has been retracted, making v2.3.1 the most recent version. :)

@DEberhardt
Hmm, okay.
In my opinion not really self-explaining and not annouced or mentioned in advance or at least by means of a warning when using that attribute.
The PnP PowerShell proceeded that way. So you were aware of upcoming changes.
I will try your approach without the -Identity parameter tomorrow and also inform the Microsoft support agent of my support case lol

I don't really have any more information than what has been published. This particular nugget is in the Release notes :smile:
In the meanwhile v2.5.1 has been published, but no information is yet given on potential changes from v2.5.0: https://docs.microsoft.com/en-us/MicrosoftTeams/teams-powershell-release-notes

It's utterly bizarre that not specifying the -Identity parameter brings back the "deprecated properties". I'm not aware of this esoteric behaviour being mirrored in any other modules. Also, these "deprecated properties" are particularly pertinent to Team Direct Routing (onpremlineuri, hostedvoicemail etc.) and Direct Routing isn't deprecated...

'tis unusual but not unwelcome to have this workaround. Technically, I find it kinda neat. If someone on this forum knows how this is coded please let me know.
I do agree though that these things should be firmly on the pre-release track until they are thoroughly tested and documented. Documentation and communication should come before the release, not months after...

@DEberhardt David, with 2.5.1 and 2.5.2-preview the outputted properties seem to be back.

@DEberhardt I could confirm that the team is working on getting missing properties back in the following releases.
@yogkumgit please close.


Is boost a US software and is the community registered in the US

boost community is affected by U.S. technology export policies?

A better place to ask this is on the boost mailing list - see https://lists.boost.org/mailman/listinfo.cgi/boost for subscription info.
You can also search the archives there to see if this has been asked before (I'm pretty sure it has)


When creating an application, you can see the projects of other teams

What changes were proposed in this pull request
Issue Number: close #2306

Brief change log

Verifying this change

This change is a trivial rework / code cleanup without any test coverage.
(or)
This change is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:

Does this pull request potentially affect one of the following parts

Dependencies (does it add or upgrade a dependency): (yes / no)

cc @1996fanrui  PTAL, thx


remix_and_resample effect optimization

                if isinstance(data, rtc.AudioFrame):
                    # TODO(theomonnom): The remix_and_resample method is low quality
                    # and should be replaced with a continuous resampling
                    frame = data.remix_and_resample(
                        self._sample_rate, self._num_channels
                    )

When will this TODO be optimized? After testing, the accuracy of this solution is much different from that of using pyaudio to read data from the microphone.

yeah we are working on it

Great job, looking forward to it, thank you

+1

Hey, sorry for the late reply.
We released a high-quality resampler in rtc-v0.17.1 (using SoX)
https://github.com/livekit/python-sdks/releases/tag/rtc-v0.17.1