Rust 2018 Edition Support

Is your feature request related to a problem? Please describe.
I'd like to use generated code in a Rust 2018 edition project.
What would it take to have grpc-rs support both Rust 2015 and 2018 editions?
Additional context

The release of Rust 1.31.0 on December 6th will be the first release of “Rust 2018.”

https://blog.rust-lang.org/2018/07/27/what-is-rust-2018.html

PTAL @Hoverbear

Currently, here is the change to Cargo.toml that I'm using to make the current auto-generated code compile in my Rust 2018 project:
[dependencies]
futures = "*" # grpcio
grpcio = "0.4"
protobuf = "*" # grpcio

@xpe Hi! This should be part of the first release after the official Rust 2018 release date, so sometime after December 6th. :)

@Hoverbear thanks. If I took a stab at Rust 2018 beta compatibility (announced today 1), would that be useful? Any tips on how to "feature gate" it until the release comes out?

For context, from the announcement above:

You may recall from the Preview 2 announcement that we were evaluating two variants for the module system (“anchored paths” vs “uniform paths”). This evaluation continues in the beta, which means that the compiler accepts only code that both variants would accept. You can use #![feature(uniform_paths)] on Nightly to try out the uniform paths variant. Based on the feedback receiver thus far, the current tentative plan is to stabilize uniform paths, but not as part of the initial Rust 2018 release (i.e., not until 1.32.0 at the earliest).

(The main difference between that two variants is that uniform_paths permits you to write use foo::bar to refer to either an external crate named foo or a local module. In other words, you no longer need to write use self::foo::bar (except for cases of ambiguity, where there exists an external crate and a local module). This means that paths in use statements and paths outside of use statements work roughly the same way. Note that this is a pure extension of the current beta behavior, which always requires use self::foo for local modules, but still errors in the case of ambiguity.)

On second thought, December 6 is way closer than I realized... :)

@xpe We would definitely accept a PR moving to 2018 edition. Please don't bother to feature flag it, I'm not sure it's possible. By the time we merge it we'll already be in the clear. :)

Unless somebody else gets to it first I will start on this after https://github.com/tikv/tikv/issues/3896.
I mentioned in the other thread that I think turning on Rust 2018 requires a major version bump because using any 2018 features breaks backwards compatibility. Does anybody have opinions or has seen any discussion on this subject?

I went ahead and posted a PR https://github.com/pingcap/grpc-rs/pull/291


Why does it type one character after one character, can it type instantly

can it not type as full bang so that we can save time

Because TagUI is a RPA tool. When a normal user type into a text box it is character by character.
To speed up, you can use the clipboard() function to put long text there and use keyboard [ctrl]v to paste quickly. See example here - https://github.com/kelaberetiv/TagUI#helper-functions

Hi, when I use Clipboard function also, it is typing so slowly...  Should I use Ctrl V

type customer-filter-input as [ctrl]v
this is not working Sir.

Below code is enough to do what you are trying to do above -
clipboard(xlPath);
keyboard [ctrl]v
keyboard [enter]

If the textbox is not yet in focus you can do a click text_box.png to highlight it first before doing the keyboard [ctrl]v

Actually I used click 'element_id' and it clicked also
but while using keyboard [ctrl]v - it pastes in URL.
Are there 2 cursors that it creates?

Make sure you use click element_id.png using an image snapshot of the element in the browser. To be sure do it 2 times. The first click is to make sure Chrome browser is in the foreground. The second click is to make sure the text box is selected. After that do keyboard [ctrl]v
click element_snapshot.png
click element_snapshot.png


[WIP] Initial commit for gain

Skeleton for function to incorporate gain into torchaudio
 |  gain(self, gain_db=0.0, normalize=True, limiter=False, balance=None)
 |      Apply amplification or attenuation to the audio signal.
 |
 |      Parameters
 |      ----------
 |      gain_db : float, default=0.0
 |          Gain adjustment in decibels (dB).
 |      normalize : bool, default=True
 |          If True, audio is normalized to gain_db relative to full scale.
 |          If False, simply adjusts the audio power level by gain_db.
 |      limiter : bool, default=False
 |          If True, a simple limiter is invoked to prevent clipping.
 |      balance : str or None, default=None
 |          Balance gain across channels. Can be one of:
 |           * None applies no balancing (default)
 |           * 'e' applies gain to all channels other than that with the
 |              highest peak level, such that all channels attain the same
 |              peak level
 |           * 'B' applies gain to all channels other than that with the
 |              highest RMS level, such that all channels attain the same
 |              RMS level
 |           * 'b' applies gain with clipping protection to all channels other
 |              than that with the highest RMS level, such that all channels
 |              attain the same RMS level
 |          If normalize=True, 'B' and 'b' are equivalent.

See comment in #260 for VCTK.

TODO: Add filters to dither
Options:            Lipshitz - `L`
                    F-Weighted - `FW`
                    Modified-E-Weighted - `MEW`
                    Improved-E-Weighted - `IEW`
                    Gesemann - `G`
                    Shibata - `S`
                    Low-Shibata - `LS`
                    High-Shibata - `HS`


Fixes 126: Add openapi docs and generation

added a make task to generate markdown api docs
markdown can be checked in to main, served via https://content-services.github.io/content-sources-backend/

https://issues.redhat.com/browse/HMSCONTENT-126

i'll look!

I think i got them all, but let me know @rverdile if i missed any

We're using redoc btw... that's quite a nice tool as well: https://redocly.github.io/redoc/?url=https://raw.githubusercontent.com/RHEnVision/provisioning-backend/main/api/openapi.gen.json


RR Generation Handler

Here's my implementation of RR Generation handler.
Tried to follow all your suggestion (https://github.com/ging/licode/pull/687#discussion_r96769698).
Let me know what do you think

I will really appreciate you help with UTs, cause I never did one and I really haven't time to do them in these days.
I'd love if you can implement them!

@lodoyun have I done something wrong with the auto merge? all tests passed in my local environment

Yep, they passed for me locally also. I'm on it, trying with a clean build.


Few fixes and improvements.

Fixed broken sky issue that resolves #59
Fixed GM collision detection.
Fixed /time command for gms.
Implemented new /fog command for gms(useful for debugging things related to rendering and can be good for gms sometimes to play around with it). Note regarding this, that i added a flag that set to false since we don't want to affect developers who haven't update their Text_us.tbl and have some weird behavior.

Great, maybe make command .time for user to show time?

I don't have think a command is needed. Later in newer clients the time is displayed on screen by opening the server name box in the top right corner.

@janekback Sure, if you want it to display, just call in User.cpp CUser::SendTime(Paket &pkt) the g_pMain->SendHelpDescription function.

Sorry for the delay, I'll probably have another look on the weekend as I'm currently renovating the flat.

So this is the kind of behavior we want for /time command to do? now it updates for all online users:

I completely forgot i can use the official binary client for debugging purposes. ^_^
@janekback I also added so it notify the user who executed it when the time is modified.

Pull request #89 is now updated with the new changes.

I manually merged in the changes that didn't include custom behaviour (aside from the sky fog behaviour, which doesn't affect anything of importance).
There's a ton of work that needs to be done on this without having to maintain and allow for custom behaviour, so it's just best we just keep it in forks for now. Perhaps in future when the project is in a more stable place we can have a branch for it, but certainly not now.
Also, I'd have merged in those changes a long time ago if they were isolated and not in one giant pull request of miscellaneous things. Use branches for this, e.g.:
https://github.com/srmeier/KnightOnline/pull/91
Makes life so much easier and I don't feel nearly as bad for waiting on merging in things that are fine to do so (because they're mixed in with changes that aren't).

#101 fixes all that was broken with the /TIME command, i.e. just the server not handling the packet. The client was already handling everything correctly.
This is why it's very important to see how things behave in the official client instead of assuming things work as you might expect them to :)

To be honest, i definitely misunderstood how the /time command works. At the beginning i though it needs to update also the server time and should be parsed with the 2 dots (e.g /time 21:30) instead of spaces and this is why i also implemented parsing date because of the way the packet is structured in the server, which is why it over complicated things.
I already knew that the server doesn't support it, which is why i removed it on commit ddf8bd1 the check you did for the packet opcode and wrapped it into a different function instead of using it in UpdateWeather, because in my opinion it's cleaner when each command has it's own implementation.
But since /time command doesn't updates the server time, it kind of make sense to use it in UpdateWeather even though it's not very obvious, because it's like you say here, "We updating time, but hey, we also updating weather, right? ;)", but when you see the packet structure on the server, you asking your self, "Hmmm....what does date has to do with weather??? xD", i hope you get what i mean lol.
Regarding the /fog command, yea, maybe it's a bit custom, but it's more of a backend thing and it doesn't effect anyone. for that reason i included in my description that it's useful when debugging things such as rendering etc... But if you feel like merging it, let me know, because i stashed that one and can add it into a new pull request on a different branch if you like. Probably on the weekend I'll have time.
P.S: Do you have any links to the official untouched clients of different KO versions? Because the only thing i found on my hdd atm, is an old client that is already modified. Looking for untouched files. So if you have versions:
10xx, 12xx, 15xx, 18xx, that would be cool. Because i remember it was possible to get it from kingofknight.com, but i couldn't find it unfortunately.

http://www.kingofknight.com/patches/KnightOnlineSetup1453.exe
https://mega.nz/#!NEUXhCYS!um4-FFiIzCs8S9MJ-HWPfZ4L26NO1EWgFaNPTYg8t_w
The second link is 1299 client.
have nice day :)

Cool! Thank you @janekback! Have a nice day too! :)
If anyone know where can we find the 10xx and other client versions, that would be also nice to have.


[ENH] Implement pure-Python ICA with mixture modeling

Closes #2.
TODO:

[x] Incorporate license and attribution info for nipy's GGM.
[x] Convert pseudocode to real code (this mostly means supporting images in addition to arrays and getting computefeats2 working).
[ ] Compare mixture modeling results to MELODIC.
[ ] Add tests.
[x] Integrate changes into workflow.

Changes proposed in this pull request:

Add GGM class from nipy for mixture modeling.
Use tedana for PCA + ICA.

As discussed with @CesarCaballeroGaudes yesterday, the mixture modeling is not necessary but it helps with the accuracy.
The ICA-AROMA paper states:

To increase accuracy of the spatial features, IC spatial maps are first thresholded using a Gamma/Gaussian alternative testing approach (p N 0.5). This approach is automated in FSL's MELODIC.

So, we could try running the workflow without the mixture modeling first and see if the results look good. If we see the mixture modeling is critical for accuracy, we can open a new PR with it.

To be honest, I'm not confident that either the features or the classifier in AROMA are robust enough to handle inputs that don't exactly match the original method. From a conceptual standpoint, unthresholded maps may be fine, but from a practical one, I'm not so sure.

I have https://github.com/Brainhack-Donostia/aroma/pull/22 open now, so I'm going to close this.


IT'S LAUGHABLE AND IRRESPONSIBLE for Microsft to release something like PowerToys OUTSIDE OF The Microsoft Store. It should be a 100% NO-BRAINER to have it included in the Microsoft Store (even as a Centennial Bridge App). InstallSheild and *.msi NEEED TO DIE. PERIOD.

Environment
Windows build number: [run "ver" at a command prompt]
PowerToys version:
PowerToy module for which you are reporting the bug (if applicable):

Steps to reproduce

Expected behavior

Actual behavior

Screenshots

FIX TO THE PROBLEM?
Incorporate the "new" PowerToys into the Microsoft Store (even as only a "Centennial Bridge" App). After all, isn't The Microsoft Store the "FUTURE" of Microsoft Windows App(s)/(lications)???
I see ZERO REASON fro PowerToys to EVEN EXIST outside of The Windows Store. After all, doesn't the  "*.appx" wrapper make the "downloadability" of an ALPHA/BETA/TESTING App BETTER since it will be checked for MALWARE, as well as  being AVAILABE across ALL DEVICES via a User's Microsoft Account?
This LAZY CODING that is a contraindiation to the "Future" as presented by Windows 10 / Apps / The Microsoft Store just a symptom of tired, pointless, sad, and BACKWARD programming?
Compared to the Self-Updating, Malware-checked, Future-forward implementation of an App as part of the Microsoft Store counterparts, PowerToys isn't powerful; it's a STEP IN THE WRONG DIRECTION for Microsoft/Windows 10 distribution of Software.
WAKE UP. FIX THIS. JOIN THE MODERN AGE of Verified Apps via a PROPERLY IMPLEMENTED (software)/(Microsoft) Store "Experience" that is cross-device/cross-platform.
NON-Store, "InstallSheild/.msi/.exe"-style Installation is COUNTER-PRODUCTIVE, and threatens the Future-Forward momentum that is a VERIFIED, MALWARE-FREE User Experience3 (UX) that TODAYS Microsoft Operating System User's not only DESERVES, but is in their BEST INTERESTS.
WHY ???
NOT utilizing the Microsoft Store as a Distribution Channel with it's built-in MALWARE/VIRUS/TROJAN/ADWARE-killing Distribution Channel is a STEP IN THE WRONG DIRECTION, and sends the message that The Windows Store is WORTHLESS; while in actuality, the Windows Store is the FUTURE of PC App Discoverability, Distribution , and Quality??? (NOT to mention SAFETY)???
FIX. PLZ. THX.

Hi @my-life-is-confetti
thank you for your feedback.
We are already tracking the issue here https://github.com/microsoft/PowerToys/issues/413
Closing this one as duplicate.
Thank you.


Running heavy tests that want servers in checkPhase

I'm currently working on packaging Cuckoo Sandbox and making a module for it ( https://github.com/NixOS/nixpkgs/issues/56975 ).
It has an extensive test suite that's run by PyTest during checkPhase, part of which involves accessing some SQL databases, which can be seen being set up in https://github.com/cuckoosandbox/cuckoo/blob/c41c7c5cb09416b7cfc6159811792679e20762f2/.travis.yml
People have suggested to me to try using containers and things such as runc, but I haven't been able to find any existing examples. I'm probably looking for the wrong thing. I presume there might be issues with running in the nix sandbox.
Are there any recommended ways of implementing something like this?

What might work is to look at what the mysql NixOS service does, and to replicate that in the Nix build. The only potential problem I see is that mysql might want to run as root.

Well, for the PostgreSQL stuff I ended up just running the server normally, incidentally using ephemeralpg.


Fix Issue #132 -- Make let Lazily Evaluated

The previous implementation would cause all let blocks to be evaluated at the start of the test rather than on an as-needed basis, which is inconsistent with the behavior developers who are used to RSpec would expect. Now, let only evaluates its block when the test first needs a value, allowing the let block to depend on state that is being setup by other blocks (beforeEach, other let blocks, etc).
Despite this, there was value in preserving the old implementation as Spectrum's equivalent to let! from RSpec. As such, I've moved that implementation over to a new DSL helper called eagerLet. One use case where this is useful is defining values that can be used in a beforeEach block.
Closes #132.

Thanks for the contribution @GuyPaddock. This looks great,


Create Plugin: Support different Node package managers

What this PR does / why we need it:
This PR aims to give plugin devs the option to use a node package manager other than Yarn 1. The associated issue highlights that Yarn 1 is indeed deprecated and will reach end of life at some point (it's not been updated in over 1.5 years). It also raises the question over using a different package manager to speed up tasks.
I'm not sure if we should force a package manager on users. Instead I've opted to let the user decide what they want to use. So scaffolding a plugin using whichever package manager is used at scaffold time...

npx @grafana/create-plugin@latest
yarn create @grafana/plugin@latest
pnpm dlx @grafana/create-plugin@latest

This means yarn 1 is still an option but users can also use NPM or PNPM. I've opted not to introduce support for yarn berry as I believe a lot of developers have been put off by yarns direction.
I've created a test repo here that tries to benchmark some plugin related frontend tasks regarding the different package managers. There are also some successful workflow runs.
Based on these I'm not sure NPM is actually any faster than Yarn 1. PNPM however is a 🚀 .
I've also not opted to do anything with updates or migrations right now as I'd like some opinion on:

Should we offer support for multiple package managers? (Similar to the current state of this PR.)
Should we only support NPM?
Should we instead move users to yarn berry with a node-linker setting of node_modules to match as closely as possible to current workflows?
How will this impact plugin validation?

Which issue(s) this PR fixes:

Fixes #156
Special notes for your reviewer:

📦 Published PR as canary version: Canary Versions

:sparkles: Test out this PR locally via:
npm install<EMAIL_ADDRESS># or
yarn add<EMAIL_ADDRESS>

My 2 cents:

Support npm only due to https://github.com/github/roadmap/issues/657 and it's wide support and adoption because it will keep being the 1st class citizen for npmjs

Thanks for putting this together @jackw !

Should we offer support for multiple package managers? (Similar to the current state of this PR.)
Updates don't handle anything related to the package manager. The migration script also doesn't modify anything related to package manager as far as I remember. Update and migrate are both based on the templates content.

Should we only support NPM?
If we merge this PR we'll have to modify the update and migrate scripts to maintain the existing package manager or forcing everyone that runs update/migrate to start using NPM. If we have to take a decision like this my vote is to either keep only supporting yarn or support all 3 yarn, npm and pnpm

Should we instead move users to yarn berry with a node-linker setting of node_modules to match as closely as possible to current workflows?
Please no.

How will this impact plugin validation?
Plugin validation is only affected by package managers when OSV scanner is involved and osv scanner supports 3 package managers in this PR. Levitate isCompatible only supports yarn and npm but we don't use it in the plugin validation.

Nice one @jackw! 👏
Pretty cool that you have put together that test repo with the benchmarks.
I would vote for supporting all three of them (yarn 1, npm, pnpm), and to not support Yarn berry. By seamlesslynallowing folks to use whatever main package manager they like the most, I think we could prevent some future requests / questions. An argument could be that like this we need to give support for 3 different package managers, however I don't think that's necessarily true, we just need to make sure that our starter works with all 3 of them.
Sigstore: I believe that we should be able to provide a script to sign the plugin and interact with Sigstore in a way that is package-manager independent.
Update and migrate: as we discussed and as @academo pointed it out as well, we somehow need to detect what package manager the project is using before generating the new templates. But I guess this is not part of this draft PR yet only because you wanted to get some input on the idea first.


Might be a bug for contrib.legacy_seq2seq

Hi,
I am using the embedding_attention_seq2seq with output_projection. The document from https://www.tensorflow.org/api_docs/python/tf/contrib/legacy_seq2seq/embedding_rnn_decoder says,

outputs: A list of the same length as decoder_inputs of 2D Tensors with shape [batch_size x num_decoder_symbols] containing the generated outputs.

But the output seems to be the output before projection when I used it. So I go through the source code from https://github.com/tensorflow/tensorflow/blob/master/tensorflow/contrib/legacy_seq2seq/python/ops/seq2seq.py ,
embedding_attention_seq2seq is base on the embedding_attention_decoder and attention_decoder. It has to give output_size to attention_decoder, but output_size is set to None when output_projection is not None.
def embedding_attention_seq2seq(encoder_inputs,
                                decoder_inputs,
                                cell,
                                num_encoder_symbols,
                                num_decoder_symbols,
                                embedding_size,
                                num_heads=1,
                                output_projection=None,
                                feed_previous=False,
                                dtype=None,
                                scope=None,
                                initial_state_attention=False):
    ... # skip
    output_size = None
    if output_projection is None:
      cell = core_rnn_cell.OutputProjectionWrapper(cell, num_decoder_symbols)
      output_size = num_decoder_symbols

    if isinstance(feed_previous, bool):
      return embedding_attention_decoder(
          decoder_inputs,
          encoder_state,
          attention_states,
          cell,
          num_decoder_symbols,
          embedding_size,
          num_heads=num_heads,
          output_size=output_size,
          output_projection=output_projection,
          feed_previous=feed_previous,
          initial_state_attention=initial_state_attention)

When output_size is None, the output_size is simply the cell's output_size. And so the shape of output for embedding_attention_seq2seq will be [batch_size x cell's output_size]  rather than [batch_size x num_decoder_symbols]
def attention_decoder(decoder_inputs,
                      initial_state,
                      attention_states,
                      cell,
                      output_size=None,
                      num_heads=1,
                      loop_function=None,
                      dtype=None,
                      scope=None,
                      initial_state_attention=False):
  ... # skip
  if output_size is None:
    output_size = cell.output_size
  ... # skip
      with variable_scope.variable_scope("AttnOutputProjection"):
        output = linear([cell_output] + attns, output_size, True)
      if loop_function is not None:
        prev = output
      outputs.append(output)

  return outputs, state

Thanks.

Please take a look @ebrevdo. Thanks!

+1 I am observing this same behavior in embedding_rnn_decoder -- are there any updates or workarounds here? Is there a way to get the output_projection weights and multiple them?
My current workaround is to create a dense later that takes in outputs and converts to the num_decoder_size, but this feels inaccurate.

I'm not sure what you want to achieve: when output_projection is given, you are passing the variables to the dense layer yourself, right? In that case, num_decoder__symbols is ignored, as I think we specify. Could you explain the problem?

So I am actually trying to point out the opposite.  When output_projection = None, then num_decoder_symbols should not be ignored and the outputs should be a list of outputs with shape [batch_size x num_decoder_symbols], but what is actually happening is that with output_projection = None the outputs are coming out as [batch_size x cell.output_size] so I am actually being forced to pass the variables to the dense layer myself.  I would like to not have to use output_projection if it can be avoided, but it seems there is no way to avoid it at the moment.

I can hardly believe this is ignored, it's in the code above:
if output_projection is None:
      cell = core_rnn_cell.OutputProjectionWrapper(cell, num_decoder_symbols)
      output_size = num_decoder_symbols

So if output_projection is None, then we wrap the decoder cell and make sure it outputs num_decoder_symbols. How comes it doesn't work for you?

I am actually using [embedding_rnn_decoder] (https://github.com/tensorflow/tensorflow/blob/r1.3/tensorflow/contrib/legacy_seq2seq/python/ops/seq2seq.py#L233) (sorry if that caused confusion) so I don't see where num_symbols is passed into the cell?  The line you mentioned is in the embedding_rnn_seq2seq, but the functionality is not replicated in the embedding_rnn_decoder. I think that if the code snippet you mentioned was added before cell was passed then the issue I am seeing would be solved?

At the very least, the documentation is misleading for embedding_rnn_decoder as it suggests that if output_projection is None that the output projection layer will be wrapped automatically.

Yes - the functionality isn't replicated in embedding_rnn_decoder because you can just wrap the cell before passing it there. It's also not claimed anywhere that embedding_rnn_decoder does this, it doesn't even have a parameter num_decoder_symbols. So this is solved, I'm still unclear about the original issue, which was clearly with output_projection.

Maybe we are reading different documentation, because it is claimed that embedding_rnn_decoder does this.
embedding_rnn_decoder has a parameter num_symbols which is the same as num_decoder_symbols and hte documentation says "It is of shape [batch_size x num_decoder_symbols] when output_projection is None." so at the very least it seems that this documentation is in fact unclear.  Would you prefer if I open up a separate issue for this?


Add support for checking for unused signals in CI

This is not usable for now until #37604 will be fixed.
For now it should fail, but later could find where unused signal will be added(not always since it only check files, but not real signal usage in Godot)
It uses compiled binary of https://github.com/qarmin/godot_signal_checker

I found that some signals looks that are unused but are used in Javascript and don't know how to handle it.

I found that some signals looks that are unused but are used in Javascript and don't know how to handle it.

I found that some signals looks that are unused but are used in Javascript and don't know how to handle it.

I suppose you could define a list of signals that should always be considered used in the CI file.

I found that some signals looks that are unused but are used in Javascript and don't know how to handle it.

I suppose you could define a list of signals that should always be considered used in the CI file.


Write_dataset new options error

Using writeDataset with new options properties course error because type is not defined.
https://github.com/HDF-NI/hdf5.node/blob/master/src/h5_lt.hpp#L840
Should we use:
if (buffer->Has(String::NewFromUtf8(v8::Isolate::GetCurrent(), "type"))) {
  type_id = toTypeMap[(H5T)buffer->Get(
    String::NewFromUtf8(v8::Isolate::GetCurrent(), "type"))->Int32Value()];
} else {
  get_type(options, [&](hid_t _type_id){type_id=_type_id;});
}

Or read the type from the datset itself:
hid_t H5Dget_type(hid_t dataset_id )

I would prefer the second way, because no one can forget to set the type.
Or could it be possible that someone writes different types to the same dataset?

Switched to second way. User shouldn't need to set the type at all for a write or read; only creation. Will commit soon
I think most are going into
https://github.com/HDF-NI/hdf5.node/blob/master/src/h5_lt.hpp#L821
because of the node::Buffer::HasInstance change

@NINI1988  check your case for this one?

I'll look on Monday.

Sure:-) Make better use of the weekend:-)

write_dataset with new options works. :+1:

At first nodejs had a buffer separate from the typed arrays; then v8 changes made them choose the Uint8Array as their buffer;  now in later versions(v8 on) the base class ArrayBufferView https://v8docs.nodesource.com/node-9.3/da/d3d/classv8_1_1_array_buffer_view.html of all typed arrays is considered  node::Buffer
It was all nice and neat back then when the node::Buffer was separate and node::Buffer::HasInstance distinguished exactly.
To be compatible back to v8 it needs the difference of NODE_VERSION_AT_LEAST to know to check for IsUint8Array to use it differently if there is a type set in the type property (now in options) that isn't H5T_NATIVE_UINT8.
The extra calls to make_dataset_from_buffer, make_dataset_from_typed_array etc were introduced by Sutoiku although they weren't aware of the throws-are-scheduled nature of v8. But to organize the code a bit

Thanks for this explanation.


CI: run unit tests on multiple Nodejs versions

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (a4e4aa7) 90.41% compared to head (0478a7d) 90.41%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #220   +/-   ##
=======================================
  Coverage   90.41%   90.41%
=======================================
  Files          61       61
  Lines        1408     1408
  Branches      232      232
=======================================
  Hits         1273     1273
  Misses         84       84
  Partials       51       51

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Dropdowns within cells?

How would I go about using a different input element in a cell like a dropdown? Where would I give the props.children?
This doesn't work obviously, so what is the solution?
`  cellRenderer = (props) => {
const {
cell,
row,
col,
columns,
attributesRenderer,
selected,
editing,
updated,
style,
...rest
} = props;
if (col === 3) {
  return (
    <select value={cell.value} {...rest}>
      <option value="a">a</option>
      <option value="b">b</option>
      <option value="c">c</option>
    </select>
  );
}`

EDIT: I can't get the editor to format the code right, but you get the idea

Seems like this already present in the demos? Specifically the Sheet with custom renderers demo, last column.
Source code below
https://github.com/nadbm/react-datasheet/blob/master/docs/src/examples/CustomRendererSheet.js

I also needed to implement something like this. Unfortunately there doesn't seem to be a way to do it simply. In the demo you need to double click to make it appear. I gave it a valueViewer select component but there's all sorts of inconsistencies with edit mode (which is enabled only by double clicks). The way I see it, either choose another lib or be prepared to fork this and rework the internals.

@luciancic another approach would be to override the higher level renderers. For example, in a specific instance, rather than deal with custom renderers on a cell, I overrode the row renderer to implement custom cells rendering. Note, this may collide with expected functionality of the sheet if the implementation or use case do not align with the spreadsheet mode.

Hi @ririvas, could you share your example?


GitHub Sponsors

Would you be interested in setting up GitHub Sponsors? Our organization loves this tool and would like to donate.

Is anyone maintaining this project anymore?


2.1.1 issue - ActionBar text is hidden

I've been experiencing this crazy issue and I'm not quite sure whats causing it, but upgrading from 2.1.0 to 2.1.1 causes the action bar title text to disappear on almost all of my activities. My activities are themed with Base.Theme.AppCompat and extend ActionBarActivity. An odd thing I noticed is that in 2.1.1, the AppCompatActivity class does not exist and in 2.1.0, ActionBarActivity extends AppCompatActivity. That might possibly be related to the issue. Using 2.1.1, the only way I can get the action bar text to come back is by removing CalligraphyContextWrapper.
I know this might not be a whole lot to go off of, but maybe you can take it from here.

Well 2.1.1 is WIP snapshot, so the way it handles the Toolbar text inflation is experimental.
AppCompatActivity and ActionBarActivity are part of the support library, really you should not be including any transitive dependences from Calligraphy. We don't use anything from the support library. (Apart from checking the classpath to see if they exist).
The only thing I would say, is drop Toolbar in for Actionbar. Actionbar is actually backed by the Toolbar`.
Also do not use the Base.* themes. Use Theme.AppCompat.*
Look at the Sample app: styles.xml
And activity.xml
If you want to keep using what you have you will need to give a full example, otherwise I'm just guessing your implementation.

Hey try the released 2.2.0, I tweaked the way we handle the Toolbar.


Error when using export new instance

Given I have the following code:
export default new winston.Logger({
  transports: [
    new winston.transports.File({filename: path.join(logsPath, 'server.log')})
  ]
});

ESDoc fails with:
/home/NullDivision/Projects/MyProject/server/node_modules/esdoc/out/src/ESDoc.js:409
            throw _iteratorError5;
            ^

TypeError: Cannot read property 'replace' of undefined
    at DocFactory._inspectExportDefaultDeclaration (/home/NullDivision/Projects/MyProject/server/node_modules/esdoc/out/src/Factory/DocFactory.js:170:51)
    at new DocFactory (/home/NullDivision/Projects/MyProject/server/node_modules/esdoc/out/src/Factory/DocFactory.js:101:10)
    at Function._traverse (/home/NullDivision/Projects/MyProject/server/node_modules/esdoc/out/src/ESDoc.js:439:21)
    at /home/NullDivision/Projects/MyProject/server/node_modules/esdoc/out/src/ESDoc.js:187:26
    at Function._walk (/home/NullDivision/Projects/MyProject/server/node_modules/esdoc/out/src/ESDoc.js:394:13)
    at Function.generate (/home/NullDivision/Projects/MyProject/server/node_modules/esdoc/out/src/ESDoc.js:127:12)
    at ESDocCLI.exec (/home/NullDivision/Projects/MyProject/server/node_modules/esdoc/out/src/ESDocCLI.js:90:28)
    at Object.<anonymous> (/home/NullDivision/Projects/MyProject/server/node_modules/esdoc/out/src/ESDocCLI.js:146:7)
    at Module._compile (module.js:413:34)
    at Object.Module._extensions..js (module.js:422:10)

ESDoc 0.4.4 does not raise this error. However, it is not showed in documentation. I consider this issue.


✨ Parse list notation

Issue : fix #151

Codecov Report

Merging #159 into master will not change coverage.
The diff coverage is 100%.

@@          Coverage Diff          @@
##           master   #159   +/-   ##
=====================================
  Coverage     100%   100%
=====================================
  Files          79     79
  Lines         298    308   +10
=====================================
+ Hits          298    308   +10

Impacted Files
Coverage Δ

packages/immutadot/src/path/toPath.js
100% <100%> (ø)
:arrow_up:

packages/immutadot/src/path/consts.js
100% <100%> (ø)
:arrow_up:

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 191ad38...c894457. Read the comment docs.

I deliberatly changed the behavior of incomplete notation for the list.
Instead of running to the end of the path like array and slice do, we make a prop including the opening curly until the next segment.
I think most of the time this will give a result closer to what the user meant, and highlight his mistake with the opening curly included in the prop.
@hgwood @frinyvonnick What do you think ? If you are OK, I will comment on #113 in order to refactor array and slice to make the same.
I also mutualized the later parsers in only one.
I had not anticipated the removal of str => [[prop, str]], but code coverage reported that this code was dead, and all the tests were still working ! The perks of having 100% coverage !

@nlepage *their mistake :)
That last parser is dead because pathSegmentEndedByNewSegment already matches everything. Again, nice simplification.
As for the incomplete cases, I'm fine both ways.

@hgwood I've used a generator to extract list props, and propMatch elements are now named as you suggested, what do you think ?
Regarding the main regexp, I don't see how to split quoted and bare case... Do you have any pointers ?

@nlepage i agree for incomplete cases !

@nlepage Great improvement to listNotationParser, I think it is a lot faster to read and understand now.
As for splitting the regex, I see now that you cannot really do that as you may have lists with both quoted and unquoted props. I'm still a bit worried by the length of the regex and also the duplication. I think I may have an idea to mitigate that, but I don't want to block this PR on it.
My idea is to go full parser combinators to have modular, composable, easy-to-understand parsers so you could describe lists like between("{}", interspersedBy(",", maybeBetween(''""))). Might be an interesting refactoring to undertake, but again, not worth blocking on.

Nice work 👍


en-de monotransquest DA example cannot reproduce the result

Hi, thank you for sharing the code!

I’m trying to reproduce the results on en-de test20 DA.  When I train the model with examples/sentence_level/wmt_2020/en_de/monotransquest.py, I get pearson correlation of 0.41, while in the paper you reported 0.46. More than that, I’m pretty sure that a couple of months ago I trained it and got something similar to 0.46 too.
I speculate this is related to the numpy/torch versions (I don't have the old virtual env I used then). What are the exact versions you used? Do you have any idea what might cause this drop?

In the paper you created augmentations from the parallel training data to boost the performances. I experimented with the augmentations myself, and didn’t manage to make it improve the results. Did you use some heuristics to choose the pairs you used, other than just sampling them randomly?

I also encountered this issue. I am providing the torch and numpy versions I used, in case this helps: torch==1.10.2, numpy==1.22.3. I would also be happy to hear how the results from the paper can be reproduced. Thanks!


Way to fallback to be able to open network login page on public network

Many public network like they are present in hotels, trains, etc. use a so called "network login page" where one has to login or just acknowledge some terms of use.
I am using dnscrypt-proxy 2.0.19 on Debian 10 (buster) on a single system (laptop) and experienced that sometimes this login page can not be opened.
I suspect that this is because DNS traffic is blocked until the login process for the public network is completed. But since I had to disable the automatic DNS setup of NetworkManager in order to not override my settings to use dnscrypt-proxy i have no way to know which IP this login page would be one.
Do you have any recommendations on how to solve this?
Thank your for your efforts, i really like dnscrypt-proxy. :)

captive-browser is a very good way to deal with these annoying captive portals in a secure way.

Thank you very much, i will give it a try.


PJAX + ADFS?

If a user becomes logged out, following PJAX links does not respect the 302 redirect to the SAML provider's login page - what solution are people using for this?

This is what I'm doing right now, but let me know if there's something built in to handle this (using MS MVC and ADFS)
$(document).on("pjax:end", function (event, options) {
    if (event.getResponseHeader("location")) {
        window.location = event.getResponseHeader("location");
    }
});


add installation guide to README

 Добавить в readme инструкцию по установке для чистого компа

please rebase & merge changes with Sergey's part of README

Installation guide assumes installation of XGBoos and LightGBM of particular versions.
The regular use case is that those packages are installed already with likely some different versions.
Probably a hint about versions consistency could help users to avoid hustle?


update dependencies

Codecov Report

Merging #685 (62e5960) into main (4286c2b) will decrease coverage by 0.09%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main     #685      +/-   ##
==========================================
- Coverage   80.08%   79.99%   -0.10%
==========================================
  Files          93       93
  Lines       10100    10100
==========================================
- Hits         8089     8079      -10
- Misses       1536     1544       +8
- Partials      475      477       +2

Impacted Files
Coverage Δ

pkg/filters/validator/basicauth.go
77.41% <0.00%> (-3.23%)
:arrow_down:

pkg/cluster/cluster.go
59.57% <0.00%> (-0.53%)
: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 4286c2b...62e5960. Read the comment docs.


should we verify the construction of the clues somewhere?

Starting with #1312 we'll be adding clues into transactions. There is not a 1:1 mapping between clues and outputs however. I'm wondering if we should verify the clue generation somewhere (in ZK) to check that the clues were constructed for the right clue keys. Rephrased, we would verify (perhaps in each output proof) that there exists a valid clue in a list of clues for the diversified clue key of the destination address. Does this make sense to do?

The clue construction isn't snark-friendly, so this would be very expensive to do in a circuit. In addition, it's not clear what the privacy benefit would be -- if the transaction constructor is malicious, they can already compromise privacy (by tweeting out the transaction contents, for instance), so it seems better to leave them unverified, similar to the in-band note encryption.


fixing vulnerabilities in handlebars, uglify-js and commander

this patch fixes vulnerabilities in outdated dependcies:
"handlebars": "4.1.2" ->  "4.5.3",
"uglify-js": "3.6.0" -> "3.6.9",
"commander": "~2.20.0" -> "~2.20.3"

Hi, @mlechner .  I just wanted to let you know that I saw this.  I'll review as soon as I can.  Thank you!
In the meantime, would you be able to remove the dist/mgrs.js from the Pull Request?  I believe the project owners established the practice that we only make a new build in dist when we are cutting a new major release.  Thank you!

replaced by #56 - closing without merge

another PR for nodejs updates coming soon


Implement NSDecimalNumber

This is not yet ready to be merged, will have to wait until @msft-Jeyaram is back.


Tensor wrong shape (swag)

I tried following the instructions in @38 but ran into the following bug when computing the tensors:
ValueError: Cannot reshape a tensor with 128 elements to shape [8,4] (32 elements) for 'loss/Reshape' (op: 'Reshape') with input shapes: [32,4], [2] and with input tensors computed as partial shapes: input[1] = [8,4].
To note, my input_ids/input_masks/segment_id's all have shape [4,max_seq_length], my model_fn rehapes to [32, max_seq_length], and I used the exact code for computing logits as run_classifier.py except that I reshaped logits to be [8,4], which resulted in the aforementioned error.

Resolved!

@klxiao  can you please share  your code?


Add publisher for AVPlayerItemDidPlayToEndTime

Fixes #23
As the first example of wrapping AVFoundation notifications, this PR adds a publisher which emits a value when  a AVPlayerItemDidPlayToEndTime notification is fired.
To demonstrate, I also updated the demo app:

a "replay overlay" is shown when the video ends: this is a dimmed overlay with a button in the center
to position the overlay properly, I needed to observe the videoBounds property on AVPlayerViewController. I found this to be a bit awkward, but still the most accurate option.

Currently the replay button uses the icon for the play button, but it would be nice for it to have a dedicated asset.

@piterwilson that works for me 👍

@jozsef-vesza This is what i did:

Renamed didPlayToEndTimePublisher and included the Notification on its type
Updated the Replay button graphic
Moved the layout logic to VideoPlayerContentOverlay

I understand now the difficulty to get the video bounds which you were using to size the Replay overlay. I sidestepped the whole issue by re-designing the Replay so that when it is shown, it hides the progress bar and play/pause button.
I did this for 2 reasons:

Better not to have both the play/pause button and the repay button on screen, it's simpler UI that way
The whole communication of the video bounds is feaseble but i feel it distracts too much from the topic at hand as it would involve some back and forth between VideoPlayerContentOverlay and VideoPlayerViewController

@piterwilson Thanks, I love the updated version, much better than what I did!


Patch pg array doesn't work

I'm tring to apply this nice project to my admin page.
My db has pg array for store tags.
The following code is minimal case and result to use pg-array (character varying[])
PATCH /posts?id=eq.1234
{
  "id": 1234,
  "name": "Title",
  "tags": [ "a", "b", "c"]
}

Error Result
{
  "hint": null,
  "details": "\"[\" must introduce explicitly-specified array dimensions.",
  "code": "22P02",
  "message": "malformed array literal: \"[\"a\",\"b\",\"c\"]\""
}

I found a workaround using pg array representation
PATCH /posts?id=eq.1234
{
  "id": 1234,
  "name": "Title",
  "tags": "{a,b,c}"
}

The pg-array style is right way? Or do you have any plan to fix?
If pg-array style is right, please write this to document. :smile:
Have a nice day.

Cool workaround, good to know that works. Another workaround is to use json or jsonb in the column rather than a postgres array.

I ran into the same issue with rpc
Using an array inside JSON for a parameter with an array type doesn't.
The workaround above also works but it's a bit strange to use, I need to stringify an normal array to the pgsql syntax.
@begriffs would you consider supporting arrays?

I think it's ambiguous when you post
{ "foo": [1,2,3] }

whether it is destined for a function taking a postgres array for its argument named foo, or whether the argument is of type json. If you guys can think of a way to disambiguate it then I'm happy to accept a pull request.

if i set the param foo to JSON or JSONB and send
{ "foo": [1,2,3] }

it errors out with "there is no function( foo TEXT)

I want just to notice. (but i found duplicate issue #282, sorry)
I think this workaround is strange, but not very strange because PostgreSQL has same syntax to represent array. My admin page already had perprocessor that convert comma separated string to javascript array. so I just change target to pg array. I think it will be easy to use preprocessor in many cases.
What just confused me is that GET is perfectly supported, but the issue of POST and PATCH is not even documented.
I close this issue because it is duplicated. Thanks!


Handling voltage measurements

These are currently three-phase even though users are single-phase. This is not realistic.
While we wait for PMD v0.10.0 to only explicitly define conductors, do we keep this hack or propose a more realistic work around?
A possible solution would be to give only a measurement on the user's phase and set the other two voltages equal to the voltage on the adjacent three-phase main bus. It entails more equality constraints but doesn't look like comp time would go up because of this.

Awaiting PMD v0.10.


Blocked: Adding FSharpLint

Trying again after feedback from FSharpLint project owner

There is an error in FSharpLint so it will not work on AppVeyor until this has been fixed.


⚠ Bofrost.at has degraded performance

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

HTTP code: 200
Response time: 1587 ms

Resolved: Bofrost.at performance has improved in 3254994.


Move project to Python package

It will be much more convenient to install and use.
Install

Using pip:

pip install .

Using setuptools:

python setup.py install

Using
After installing pacakge just open terminal and type:
$ discord_monitor

Notes

If you deploy this package on PyPi, then it can be easily installed. It would be cool.

Need to think a little about the name of the package if you do merge anyway :)

I think it's a good idea. I will check PR it tomorrow

Chtozh, are we going to merge?

Very busy week. I hope I will have time today at evening to deploy the project to PyPi.

Actually, looks like there will be no use for this project soon: https://webrtc-review.googlesource.com/c/src/+/148768


BinExport2: better expression pruning

more precise pruning of BinExport2 expressions. better rendering, too.
Checklist

[ ] No CHANGELOG update needed

[x] No new tests needed

[x] No documentation update needed

great, but tests are not happy


Change default children type to {[string]: any}

Right now, the children type is set to {any}, this means that froact is OK with you not giving each child in the children a string key. By changing this to {[string]: any} this would catch a lot of issues where you accidentally forget to write the name of the child you're going to make, which causes the children to be named with sequential numbers, which is super annoying to read in the explorer. However, having to write the name of every children sucks a lot and a lot of existing froact code would probably turn into a lot of errors without a clear reason why. This is semi-related to #9

Nvm, this isn't even possible unless we give Element a more definitive type, since it's currently typed as any

This is the following code we'd need to change.
https://github.com/fewkz/froact/blob/c9790a07feaea1ef6a598c0471ad8a12752251b0/froact.lua#L25-L27
We currently have it so you can pass a single child in the second argument to anything. This is cool, but stylua really doesn't like it:

It might be worth it to deprecate this feature, with the benefit of allowing us to type children as {[string]: any} in order to catch more headaches before they occur.


New [Category] button not working

The 'New [category] hobby' that appears in the #hobby section button doesn't do anything at the moment

button is working now!


APT repository (debian.usebruno.com) seems to be down

(just in case no one has noticed it yet)

Thanks @RalfNaujokat
This has been fixed now.


unable to find the view live buttons when wagtail is integrated into existing django app

I followed the link and integrated wagtail to my existing django project .
I am unable to find the view live buttons for pages. https://docs.wagtail.io/en/stable/getting_started/integrating_into_django.html
Unable to see VIew live buttons while or Live buttons
Note : I am not overriding any settings or header config

I have fixed using the following in setting.py. It should be mentioned in the documentation

WAGTAIL_CONTENT_LANGUAGES = [
    ("en", _("English")),
]
WAGTAIL_I18N_ENABLED = True

WAGTAIL_CONTENT_LANGUAGES and WAGTAIL_I18N_ENABLED do not affect the presence of the "view live" button - most likely, the problem was that you hadn't created a site record under Settings -> Sites.
For future support queries, please use the Wagtail tag on Stack Overflow, or see the Support page in the documentation for other options.


Messages: add support for cyrillic script

There are two problems now.
Current custom font does not have cyrillic symbols.
Strings loaded from the json map have a different format/encoding(?)
However, changing the pygame font and pasting text into the source file with u'Текст' works.

I have tested writing in cyrillic in the text events and it worked. So the main problem is with the fonts.

Готово.


✨ Improve IPython support

The layout only really works in Jupyter, it's not great in colab.

Updates for Jupyter made as part of creating Binder demos


Need to update docs

We need to update docs after merging #201 #183 #185. The getting started can be drastically simplified now, and we can add the cloudflare/edge part as advanced topic.

We need to document also the Gluster storage on dedicated nodes

Most of the documentation has been updated. We need a section "advanced topics" where we explain how to deploy: edge nodes, glusterfs nodes, cloudflare DNS records, proxied Cloudflare services and single node deployments. I am short in time right now, but we can leave this out for 0.3.0. Maybe @carmat88 could take care of this, I guess this is a nice way to dig into more advanced k8s topics. This has not super hight priority, I think that most of those features are for power users, and it is to some extent easy to guess the configuration from the templates.

Sure, always glad to contribute and dig into new topics. Will then ping you in regard of such matter.


Why did you choose ray instead of using torch distributed?

I'm curious why you guys are using ray as a devicemeshQAQ

I have the same question, maybe ray is more flexible as a devicemesh?

ray is more flexible tanks to its actor mode


Parallel requests - unexpected DEADLINE_EXCEEDED errors

An Ads API customer reports that they are experiencing higher than expected DEADLINE_EXCEEDED errors after switching some calls to run in parallel.
They should have a separate InstantiatingGrpcTransportChannelProvider for each thread.
There is no sign of the DEADLINE_EXCEEDED error in our server logs (ESF proxy). They are sending deadline=60mins and the longest running request is ~ 2 seconds.
Thoughts/questions:

Is there possibly some global resource contention either in GAX or gRPC Java? For instance, a global thread pool?
Is the deadline recorded in wall clock time? If so could this be captured by a lambda (or similar) prior to running the RPC?

Here are our dependency versions.
    <netty.version>2.0.26.Final</netty.version>
    <gax.version>1.50.1</gax.version>
    <grpc.version>1.25.0</grpc.version>
    <protobuf.version>3.10.0</protobuf.version>

Would the customer be willing to enable opencensus tracing export to stack driver?
Awhile back I implemented tracing for cloud bigtable and pushed it down into gax. The traces should give you and the customer more insight as to whats happening.
You can enable tracing in gax by:

adding dependencies for opencensus-impl and opencensus stackdriver exporter
enable and configure opencensus exporter
then enable tracing in gax by instantiating an instance of OpencensusTracerFactory and setting it on the stub settings

Also looking at the sample code in the linked bug:
try (CampaignBudgetServiceClient campaignBudgetServiceClient =
        googleAdsClient.getLatestVersion().createCampaignBudgetServiceClient())

It seems like they are creating a new client for each request. From my experience with cloud bigtable, this is very problematic. By default a gapic client create a grpc connection with every client, this is a very heavyweight operation. A grpc connection is meant to be long lived, usually scoped to the lifetime of the application. Opening a connection for every request, will probably be interpreted as a DOS attack by the GFEs.
A grpc connection can have 100 outstanding requests. If the customer needs more outstanding requests or this is hot spotting an AFE. Then the channel pooling feature of the InstantiatingGrpcTransportChannelProvider should be used.
In any case, I dont think this is a gax issue. Most likely the issue is in the customer application or how the ads client is implemented

@igorbernstein2 thank you so much for monitoring and sharing your advice - this was super helpful!

Another thought occurs - this customer has 1 OAuth credential per request. Am I right in saying that, currently, there is no good model to allow multiple credentials to use the same Channel?

I believe you can override the call credentials using the ApiCallContext

@nwbirnie, I assume this issue is related to our recent discussions around retry options. I'm closing this issue for now since we have a path forward for the fix in short term and also long term (as part of micro-generator). Please re-open otherwise. Thanks!


Add dbus infrastructure for remote URL opening

[DBUS] prepare .desktop files
[DBUS] Add listener to application window

If I try to build your branch the harbour-hydrogen-open-url.desktop file is not in the rpm.


repo_ssh_key required

the parameter repo_ssh_key is required while you mentioning it is optional.

Hi @Dylan-Prins, are you running into a specific error message? If so, could you post it here?
Generally the repo_ssh_key is optional, as you can use the repo_token via GITHUB_TOKEN if you do not need to trigger follow up actions. An example for a valid config is described here https://github.com/SimonTheLeg/semver-tag-from-pr-action#a-i-just-want-to-tag-no-need-to-trigger-any-follow-up-action


Failed to calculate number of tokens, falling back to approximate count Error: Unknown model

Checked other resources

[X] I added a very descriptive title to this issue.
[X] I searched the LangChain.js documentation with the integrated search.
[X] I used the GitHub search to find a similar question and didn't find it.
[X] I am sure that this is a bug in LangChain.js rather than my code.
[X] The bug is not resolved by updating to the latest stable version of LangChain (or the specific integration package).

Example Code
Does anyone know how to implement a custom tokenizer? At the moment if you try to use any chat model other than ChatOpenAI you get this error:
Failed to calculate number of tokens, falling back to approximate count Error: Unknown model
It seems with OpenAI the tiktoken tokenizer is downloaded from a remote url and used. But for all other models it seems like its up to us to implement a custom one. I can't find any instructions in the docs on how to do this.
I am trying to use the ChatTogetherAI class to load the Llama 3 model. There is this local tokenizer for llama 3 I can use:
https://github.com/belladoreai/llama3-tokenizer-js
but I don't know how to actually hook this up with my chain:
this.model = new ChatTogetherAI({
  model: 'meta-llama/Meta-Llama-3-8B-Instruct-Turbo',
  apiKey: 'xxx',
  temperature: 1.0,
  maxRetries: 3,
  timeout: 10 * 1_000,
  maxTokens: MAX_OUTPUT_TOKENS,
  verbose: VERBOSE,
  streaming: this.streaming
});

this.history = new ChatMessageHistory([
   ....
]);

this.memory = new ConversationSummaryBufferMemory({
  llm: this.model,
  chatHistory: this.history,
  memoryKey: 'chat_history',
  inputKey: 'user_message',
  outputKey: 'response',
  maxTokenLimit: 20_000,
  returnMessages: true
});

this.chain = new ConversationChain({
  llm: this.model,
  memory: this.memory,
  prompt: promptChain,
  outputKey: 'response'
});

Error Message and Stack Trace (if applicable)
No response
Description
When using any custom model other than open ai:

Failed to calculate number of tokens, falling back to approximate count Error: Unknown model

Docs not clear about how to add local tokenizer for other providers.
System Info
langchain": "^0.2.5"
OS: Mac
Node: v20.9.0
Yarn: 1.22.22

@dosu should I be making this change to the TogetherAI class or the ChatTogetherAI class?
export class TogetherAI extends LLM<TogetherAICallOptions> {
  // etc...


feat(txid): Link ABC token tx to be.cash

PR related to this trello task --> https://trello.com/c/Gwbvu1M8

:tada: This PR is included in version 1.21.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Loading

Loading
User Story
AS AN employer looking for candidates with experience building single-page applications
I WANT to view a potential employee's deployed React portfolio of work samples
SO THAT I can assess whether they're a good candidate for an open position
Acceptance Criteria
GIVEN a single-page application portfolio for a web developer
WHEN I load the portfolio the first time
THEN the About Me title and section are selected by default

This has been completed


fix: the google button is loading when going to login with Google and close the google page

this yet is not OK


add screenshot to aa test

add screenshot to aa test

🚀 Deployed on https://6362ac4bf87f2e3368591291--cozy-fox-0defec.netlify.app


Finding dumped hs.app

In Part 3, Section V, item 4, it would be good to point out that hs.app will be found in the files9 folder on the SD card. (I assume that will always be the case if following this guide?)

Added


Resend test events from 12/12 to 1/4 to the UP

Background
Due to a bug on their side, RS did not send any reports to CA from Dec 12th, 2023 to Jan 4th, 2024. They've asked us to resend all test events sent to the UP during that time period. We can exclude any Covid-only test events, since those would get dropped anyway.
Action requested

Get the list of test event IDs for test events created from Dec 12th to Jan 4th, inclusive, that map to at least one non-Covid condition (can use https://www.simplereport.gov/metabase/question/682-ids-of-test-events-with-a-non-covid-result-sent-between-12-31-1-4)
Use the resendToReportStream mutation to resend the events to the UP only (fhirOnly parameter set to false)

Open questions
Do we need to break these up so as not to overload our queue? What's a rough number we're confident our system can handle?
~This doesn't resend anything that was uploaded with our bulk uploader. Need to work with ReportStream to get bulk uploads re-sent from their end.~

@alismx to verify queue capacity


Got SSL related error

I tried to use this GEM. However I got the error:
OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv2/v3 read server hello A: unknown protocol
The site I am trying to access is a SSL site. Please help. Thanks!

Can you post a link to the server in question?
This error indicates an SSL/TLS protocol mismatch between client and server. You either have an out-of-date version of OpenSSL installed locally, or the server has an out-of-date SSL configuration.

Can I just pass by the SSL option. I think Ruby built in http has the option to ignore the SSL connection. My server is OpenSSL 1.0.1e-fips 11 Feb 2013.
I am not sure the SSL configuration of the server I am connecting to.
Thank you!

We do not provide a first-class API for using HTTPS insecurely by-design.
However, we do let you pass in a custom SSLContext object you can configure
to be as secure or as insecure as you desire. The API is documented here:
https://github.com/httprb/http/wiki/HTTPS
--
Tony Arcieri

Thank you for the help. I just made a simple trick, instead of GET or POST to the HTTPS based URL, i did it with HTTP based URL. It seems the gem does not complain the SSL error anymore.

FWIW, this works for me to ignore server certificate errors:
ctx = OpenSSL::SSL::SSLContext.new
ctx.verify_mode = OpenSSL::SSL::VERIFY_NONE

Then pass ssl_context: ctx as your final parameter to HTTP.post


Error: Failed to create Watson Assistant skill: Error: connect ETIMEDOUT <IP_ADDRESS>:443

After adding the RUNTIME ENV VAR:  ASSISTANT_APIKEY
The app failed to initialize properly. Setup and restart needed. Error: Failed to create Watson Assistant skill: Error: connect ETIMEDOUT <IP_ADDRESS>:443

As briefly mentioned in the instructions.  This app requires runtime env vars to be set in order to do the assistant setup.
What isn't mentioned is that it seems to take multiple restarts to get through all the setup problems.  Restart is mentioned, but it seems like this app now hits one error after another before it really is up and connected and working.  So check the logs and restart and restart.

I think the auto-feed of Discovery and auto-import of the Assistant skill will probably be removed in favor of manual steps plus runtime config.


how to set test batch size separately?

Don't know it's a bug or something I missed. training is normal while test always out of memory.
I have one card with 12 G gpu memory. any one knows why this happen?
train_cfg = dict()
test_cfg = dict(
    nms_pre=500,
    score_thr=0.1,
    mask_thr=0.5,
    update_thr=0.05,
    kernel='gaussian',  # gaussian/linear
    sigma=2.0,
    max_per_img=100)
# dataset settings
dataset_type = 'CityscapesDataset'
data_root = 'data/cityscapes/'
img_norm_cfg = dict(
    mean=[123.675, 116.28, 103.53], std=[58.395, 57.12, 57.375], to_rgb=True)
train_pipeline = [
    dict(type='LoadImageFromFile'),
    dict(type='LoadAnnotations', with_bbox=True, with_mask=True),
    dict(type='Resize',
         img_scale=[(1280, 800), (1280, 768), (1280, 736),
                    (1280, 704), (1280, 672), (1280, 640)],
         multiscale_mode='value',
         keep_ratio=True),
    dict(type='RandomFlip', flip_ratio=0.5),
    dict(type='Normalize', **img_norm_cfg),
    dict(type='Pad', size_divisor=32),
    dict(type='DefaultFormatBundle'),
    dict(type='Collect', keys=['img', 'gt_bboxes', 'gt_labels', 'gt_masks']),
]
test_pipeline = [
    dict(type='LoadImageFromFile'),
    dict(
        type='MultiScaleFlipAug',
        img_scale=(1024, 800),
        flip=False,
        transforms=[
            dict(type='Resize', keep_ratio=True),
            dict(type='RandomFlip'),
            dict(type='Normalize', **img_norm_cfg),
            dict(type='Pad', size_divisor=32),
            dict(type='ImageToTensor', keys=['img']),
            dict(type='Collect', keys=['img']),
        ])
]
data = dict(
    samples_per_gpu=3,
    workers_per_gpu=2,
    train=dict(
        type=dataset_type,
        ann_file=data_root + 'annotations/instance_train.json',
        img_prefix=data_root + 'images/train/',
        pipeline=train_pipeline),
    val=dict(
        type=dataset_type,
        ann_file=data_root + 'annotations/instance_val.json',
        img_prefix=data_root + 'images/val/',
        pipeline=test_pipeline),
    test=dict(
        type=dataset_type,
        ann_file=data_root + 'annotations/instance_val.json',
        img_prefix=data_root + 'images/val/',
        pipeline=test_pipeline))

Seems abnormal if the testing runs out of memory. Did you mean the validation during training or simply testing?

@hellock  Testing oom, it seems community issues have simillar with this, I decreased the resized size when testing still got one. After upgrade mmdetection, it runs in another error can not be able to train now...


Error: ERROR CODE 2704 - RPC Error: BLOCK_NONEXISTENT in method keybase.1.SimpleFS.simpleFSWait at new RPCError

I tried accessing my files and I keep getting this error.
Reenabled the finder integration, but it didn't seem to help. I believe it's a MacFUSE issue, but I could be updating to macOS Monterey...
So sad about this app, since Zoom bought it, I think it was such a great tool!
my log id: 960d8f900bcd0683aa6dba1c

Likely a duplicate of the following issues. I saw the comment https://github.com/keybase/client/issues/24636#issuecomment-981931397 and it made me very excited, looking forward to seeing this tool revived!
https://github.com/keybase/client/issues/24668
https://github.com/keybase/client/issues/24578
https://github.com/keybase/client/issues/24636


Alternative Usage/Installation method which does not require a node env

In CI/CD environments it would be handy to have an alternative installation method which does not require to have a running node and npm, pnpm, yarn, etc. setup in place. This would greatly reduce CI/CD setup time.
For instance for biome we can do:
jobs:
  quality:
    name: Quality Checks
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: biomejs/setup-biome@v2
      - run: biome ci . --reporter=github

and this finished usually within 5-7 seconds, whereas the setup of node and a package manager alone takes often times between 15-20 seconds. Its not much difference, but since sherif is a binary anyways, it would be an easy win.

This would be an amazing thing to have!

https://github.com/biomejs/setup-biome/blob/main/src/setup.ts#L41 Here is the biome source code for this, I think this would just be adapted to sherif for it to work

That's a good idea! Will take a look this weekend.

<EMAIL_ADDRESS>was just released and now contains the binaries in the GitHub release, so we should be able to do something similar as https://github.com/biomejs/setup-biome

Tested here and seems to work as expected now! The README has been updated to display a minimal example:
name: Sherif
on:
  pull_request:
jobs:
  check:
    name: Run Sherif
    runs-on: ubuntu-22.04
    steps:
      - uses: actions/checkout@v4
      - uses: QuiiBz/sherif@v1
        # Optionally, you can specify a version and arguments to run Sherif with:
        # with:
          # version: 'v1.0.1'
          # args: '--ignore-rule root-package-manager-field'


filter aggregations from API by defaultWorkTypes

A change to the API wellcometrust/catalogue#321 means that all workType aggregations are now available in the UI

This means users can access works we're not ready to cope with yet on the front end, and can cause errors.
This PR filters the aggregations returned from the API by the defaults we have set in the project, so this doesn't occur. We'll be working to remove this defaults soon.

@gestchild apologies - I saw this as an issue in Slack, but also did some perf monitoring and for workType aggregations only we're good to go with having them from the initial request as in #4985


URL behind "My Work Items" does not show only my work items but all

I'm not sure if this is a bug in platform or planner but in the Analyze section there's this box:

The URL behind the "My Work Items" link is https://openshift.io/kkleine/test_2/planbut I think it should be https://openshift.io/kkleine/test_2/plan?assignee=kkleine%20(me) in order to show only my work items and not the ones that are generally in the space.

Agreed that this should link to a filtered list of work items assigned to me.


Access lost - popup

Add popup with information You've been logged out. Most likely your role/permissions has changed. Please login again or something like that once there's a change on user perms/roles.
Backend is responding with empty data after we lose privileges. Maybe changing HTTP status of response and handling it on front would be enough.

Hello, I did work around and placed in in motd. Everyone who don't have access got information that they aren't subscribers or it expired.

It's more about taking an action in the moment of losing user privileges. At this moment, POI are disappearing and are no longer spawned, but no refresh is done. After manual refresh, login screen is present.
Leaving a task for self/other reference, but thanks for constructive workaround :)

Resolved in #448


Extremely Slow API Reparse

Also we should freeze the API so it doesn't do weird things and act that the block index is continually decrementing.
We need to do a proper performance optimization of this process. Looks like there's gains to be had.
If that doesn't work, we may have to implement snapshotting of some kind.
We can also allow nodes to bypass the API DB and go straight to the main DB as necessary (if that isn't too much code duplication!)

See https://github.com/CounterpartyXCP/counterparty-core/issues/2517


ceylon.net  is still 1.2.2 on herd.ceylon-lang.org

https://herd.ceylon-lang.org/modules/ceylon.net
No 1.3.0 available.

ceylon.net was split into multiple modules in 1.3.0, see issue #567.

ceylon.http.client
ceylon.http.common
ceylon.http.server
ceylon.uri

splitted multiple modules are not categorized under SDK in herd.ceylon

splitted multiple modules are not categorized under SDK in herd.ceylon

@FroMage ?

Fixed.

@FroMage They're also missing names.

I don't know if this falls somehow into this bug, but when googling for ceylon.http, I always get ceylon.net version 1.2.2 as first result. This may easily cause the confusion.
We might need a way in Herd to indicate this type of module name changes.
Also maybe some cleverness targeted towards Google bots, redirecting to new library version, but that is a slippery slope ...

@FroMage They're also missing names.

Done.

We might need a way in Herd to indicate this type of module name changes.

Yeah, good point: https://github.com/ceylon/ceylon-herd/issues/272

Btw I also added https://github.com/ceylon/ceylon-herd/issues/273 which I think would be very useful as well in cases like this


conda-unpack-script.py line 226 and line 66

overall the application 1clickinstall that I purchased months ago has never worked well;
for example every time I start win_config.bat:
Traceback (most recent call last): File "C:\IOPaint-v1\installer\Scripts\conda-unpack-script.py", line 226, in  update_prefix(os.path.join(new_prefix, path), new_prefix,
File "C:\IOPaint-v1\installer\Scripts\conda-unpack-script.py", line 66, in update_prefix with open(path, 'rb+') as fh:
PermissionError: [Errno 13] Permission denied: 'C:\IOPaint-v1\installer\DLLs/_tkinter.pyd'
or other times:
Traceback (most recent call last): File "C:\IOPaint-v1\installer\Scripts\conda-unpack-script.py", line 226, in
update_prefix(os.path.join(new_prefix, path), new_prefix,
File "C:\IOPaint-v1\installer\Scripts\conda-unpack-script.py", line 66, in update_prefix
with open(path, 'rb+') as fh:
FileNotFoundError: [Errno 2] No such file or directory: 'C:\IOPaint-v1\installer\Library/lib/tdbc1.1.3/tdbcConfig.sh'Channels:
then it starts but sometimes it doesn't save the configuration correctly and, when it happens, it completely ruins the installation.
I tried download the 1clickinstall application again hoping that it had been fixed but apparently it hasn't been...
I ask that it be fixed (even more so because it is paid) and that adequate support be given
Thanks

I split the old win_config.bat file.

win_setup.bat: Used for installing dependencies for the first time
win_config.bat: Launches the gradio parameter configuration interface
win_update.bat: To be executed when you need to update the iopaint version

Please unzip the original zip again and download the three bat files mentioned above.


[AutoPR containerregistry/resource-manager] Revert the previous change: remove the identity properties

Created to sync https://github.com/Azure/azure-rest-api-specs/pull/4220

This PR has been merged into https://github.com/Azure/azure-sdk-for-go/pull/3003


treewide: drop libatomic workaround for riscv

Description of changes
Now that we are using gcc13 by default, the workaround is no longer required.

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Tested nix build .#pkgsCross.riscv64.numactl .#pkgsCross.riscv64.zstd .#pkgsCross.riscv64.glslang .#pkgsCross.riscv64.aws-sdk-cpp .#pkgsCross.riscv64.cmake .#pkgsCross.riscv64.libjxl, but not .#pkgsCross.riscv64.mariadb due to dependency failure.


Hello_world_3-6.py

python 3 and above

I don't think I need this. Because in this repository have code same with this but just tag to python 2.


Add support for closed-form posteriors

We need to copy over the kanren relations in symbolic_pymc so that we can sample directly from closed-form posteriors—when possible.  See the basic example here.
Within the general process of constructing a sampler for a model graph (see #3), we could apply these rewrites as well, and—in some cases—simply return a graph of the joint posterior, instead of a sampler graph.

FYI: If we lift random/measurable variables through mixtures, we can enable some important closed-form posterior opportunities.
For example:
import aesara
import aesara.tensor as at

srng = at.random.RandomStream(4238)

I_rv = srng.bernoulli(0.5, name="I")

Z_1_rv = srng.gamma(10, 100, name="Z_1")
Z_2_rv = srng.gamma(1, 1, name="Z_2")

Z_rv = at.stack([Z_1_rv, Z_2_rv])

# Observation model
Y_rv = rng.poisson(Z_rv[I_rv], name="Y")

Conjugate updates are available between Y_rv and the two Z_*_rv, conditional on the values of I_rv.
The model after marginalization should be equivalent to the following:
Z_1_new_rv = rng.poisson(Z_1_rv, name="Z_1_new")
Z_2_new_rv = rng.poisson(Z_2_rv, name="Z_2_new")

# New observation model
Y_new_rv = at.stack([Z_1_new_rv, Z_2_new_rv])
Y_new_rv.name = "Y_new"

The Z_*_new_rv terms are now amenable to the Poisson-gamma conjugate rewrites.

@ricardoV94, @rlouf, @zoj613, we should try to get this example working next.  It's something that could be set up without too much effort and makes for a great combination of all our efforts.

We should split this off into a bunch of sub-issues for each (group of) closed-form posteriors we want to implement.


Detection of hardware attacks such as rowhammer, spectre, and meltdown

Motivation
Hardware attacks such as rowhammer, as well as software attacks on flaws embedded in microprocessors (like Spectre and Meltdown), are potentially the greatest of security threats, with possibly the highest risk being in cloud environments, because they are very difficult, if not impossible, to patch fully and properly.
Frequently, the user is left without a way to detect and report or mitigate such an attack due to the fact that the attack is coming from a side channel such as another cloud instance deployed on the same node, and the user has no way to access or monitor what is happening on those other instances.
Additionally, there is a large financial burden on the cloud service provider and hardware manufacturers when such vulnerabilities are first reported, as well as a long period of end users being vulnerable, because such vulnerabilities require new hardware designs to be created and then manufactured, and then cloud service providers have to purchase and setup the hardware before it can be used, which leads to a possibility of in-the-wild attacks happening until all of the above happens.
New rowhammer article released today:
https://www.zdnet.com/article/this-new-attack-bypasses-rowhammer-defenses-in-most-dram-say-researchers/
Feature
It would be a huge win to be able to use Falco to detect and report on such attacks based on system calls which Falco can already monitor and report on, or novel methods which Falco doesn't yet support.
Alternatives
N/A
Additional context

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close.
Provide feedback via https://github.com/falcosecurity/community.
/lifecycle stale

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
If this issue is safe to close now please do so with /close.
Provide feedback via https://github.com/falcosecurity/community.
/lifecycle rotten

@poiana: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.
Provide feedback via https://github.com/falcosecurity/community.
/close

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.


MacOS not automatically taking screenshot on level

Are you training hunter by any chance?

Yes training hunter at red sallys

On 8 May 2018, at 18:59, Kamiel<EMAIL_ADDRESS>wrote:
Are you training hunter by any chance?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/runelite/runelite/issues/2485#issuecomment-387489287, or mute the thread https://github.com/notifications/unsubscribe-auth/AlJ9K0R4vZ1ycycoFM9hoHPilL89g-1Zks5twdz8gaJpZM4T3FJP.

It is a known problem and more specifically, it fails to screenshot on hunter level ups. The rest should be working fine.


MWPW-160143 - arbitrary fix

Resolves: MWPW-160143
Links:
Before: https://stage--dme-partners--adobecom.hlx.page/channelpartners/drafts/dragana/announcements?filters=yes&audience=sales&georouting=off
After: https://mwpw-160143-arbitrary-fix--dme-partners--adobecom.hlx.page/channelpartners/drafts/dragana/announcements?filters=yes&audience=sales&georouting=off

Codecov Report
Attention: Patch coverage is 0% with 6 lines in your changes missing coverage. Please review.

Project coverage is 83.57%. Comparing base (847b508) to head (ab38e43).

Files with missing lines
Patch %
Lines

edsdme/components/PartnerCards.js
0.00%
6 Missing :warning:

Additional details and impacted files
@@           Coverage Diff           @@
##            stage      #87   +/-   ##
=======================================
  Coverage   83.57%   83.57%
=======================================
  Files          10       10
  Lines        3179     3179
=======================================
  Hits         2657     2657
  Misses        522      522

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


When using "az login" to log in, the web page give a<EMAIL_ADDRESS>isn't in our system

When I want to use azure-sdk-for-java 1.0.0-beta3 to create a virtual machine, I need to create a Service Principal in Azure by following https://github.com/Azure/azure-sdk-for-java/blob/master/AUTH.md.

Azure CLI is downloaded, and run "az login".
Follow the order from "az login", I open "https://aka.ms/devicelogin" and input the code to authenticate.
3.Then the web page is directed to https://login.microsoftonline.com/common/oauth2/deviceauth, I input my account like<EMAIL_ADDRESS>and password. (I make sure the account and password are correct. For I can login www.azure.cn with the accunt and password.)  But the page give me a hint<EMAIL_ADDRESS>isn't in our system ".

So I do not know how to solve this issue.

Hi @baochunliu
Azure CLI 2.0 doesn't support logging with environment settings right now. It will be supported in a few weeks. You can use Azure Xplat CLI (Node.JS based instead of Python based) to do similar things:

Make sure you install Node.JS 4+
Run npm install azure-cli.
Login in the same way, except, with --environment parameter.
After you logged in, run azure ad sp create -n myspn -p MyPassWord!123. This will give you a service principal. Copy out the object ID of the service principal.
Run `azure role assignment create --objectId <Object ID from previous command> --roleName Owner --scope "/subscriptions/<subscription Guid>"

This will give you a service principal. Thanks.

Hi @jianghaolu
Thanks for your help.
After consulting China Azure Support, we can past the compute-java-manage-vm test cases.
The steps are:
1.azure account clear
2.azure login -u  -p  -e AzureChinaCloud
3. Switch to ARM mode.
azure config mode arm
4.Create an application
azure ad app create -n create-for-rbac -p Fit2Cloud* -m 'http://localhost/index.html'  -i http://localhost/index.html
5.Create a service principal for the application
azure ad sp create -a 264c12a9-0643-4bea-87f7-7a4027b0325d
###-a is the application id, which is get from the step 4.
6.Authorize the principal in step 5. Assign a role to the principal.
azure role assignment create --objectId 42d447ff-7539-4325-9fb8-0f4c60a8f304 --roleName Contributor
the --objectID is the ObjectID of step 5.
7.Get the subscription id and the tenant id.
azure account  show -s
8.
azure provider register Microsoft.Compute
azure provider register Microsoft.Network
azure provider register Microsoft.Storage
9.Execute the test cases
export AZURE_AUTH_LOCATION=/Users/brent/azure/brent_china.properties
cd compute-java-manage-vm/
mvn clean compile exec:java
############
subscription=xxxxxxxx
client=xxxxxxxxxxxx
key=xxxxxxxxxx
tenant=xxxxxxxxxxxxxx
managementURI=https://management.core.chinacloudapi.cn/
baseURL=https://management.chinacloudapi.cn/
authURL=https://login.chinacloudapi.cn/
graphURL=https://graph.chinacloudapi.cn/

Cool! Please continue to provide feedback as it will be greatly appreciated.

Hi,
I run into an issue, when I use the azure-sdk-java 1.0.0-beta3.
After :
Azure azure = Azure
.configure()
.withLogLevel(HttpLoggingInterceptor.Level.NONE)
.authenticate(credFile)
.withDefaultSubscription();
1.my account is from CHINA.
2.I want to know which LOCATIONS or Region I can choose by SDK JAVA API.
For example in China, there are two regions chinaeat and chinanorth, how
can I get chinaeast and chinanorth by SDK api?
Thanks,
Brent
2016-10-18 11:01 GMT+08:00 Jianghao Lu<EMAIL_ADDRESS>
Cool! Please continue to provide feedback as it will be greatly
appreciated.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/Azure/azure-sdk-for-java/issues/1197#issuecomment-254393928,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ATNLFCg6WEc70cz_pfqGEgjHXSxzSZeXks5q1DaUgaJpZM4KX-P0
.


(Potential overloaded) "Lost connection to server" when playing in single player

Issue description:
First of all, the issue might not be with Refined Storage, however i was working with RS when the issue occurred, and I'm not sure where the problem is at, when I read through the Game Output (the game doesn't crash, so that is all i got, since no crash log seems to be generated).
I was playing the Sky Factory 3 modpack from the Curse client.
When the initial issue occurred, i was working on automation with RS. I had a way to automating the Mystical Agriculture essence's, but as it is known, when using the Master crystal (the one with unlimited uses), the recipes are acting up. I then decided to change it to something more reliable.
I then changed it to using a RS Crafter pointing to a Crafter from RFTools (on top, if that helps). Under the RFTolls Crafter I've placed an RS Importer (the issue occurred after I've inserted a stack upgrade and 3 speed upgrades in the RS Importer). The RFTools Crafter was set in fast mode. It kept putting content to the RFTools Crafter output buffer as the RS Importer was importing (it kept pulling from the top right slot in the RFTools Crafter's output buffer, since it kept crafting items), which is why I might suspect that this new setup might got overloaded somewhere. When I've noticed that the RS Importer couldn't clear the output buffer on the RFTools Crafter, I've headed over to my Grid's to check if it was actually importing and crafting (about 3 seconds away from the location the setup where). But when i was about to right click (didn't made it) my Crafting Grid (my pointer was looking at an RS Network Transmitter, not clicking or interacting with), at that moment the game froze for like a halt second, and then I was presented with a "disconnect" screen like it I was playing on a multiplayer server (I know the single player creates a local server that you connect to, and then you just play on your own, until you open it up to the LAN). When I click the button on the "disconnect" screen, I then get the screen where I can choose a server to join. The client searched for local and LAN servers, but find none.
When I then exit the multiplayer screen, and try to load up the world from single player, then it joins the world, and almost instantly I get the "disconnect" screen again. That keeps happening, and I've tried to restart minecraft, but no luck.
What happens:
It seems like the local server crashes, however the client, doesn't. But I get presented with a "disconnect" screen. Read the section above for more details on how I've got there
What you expected to happen:
That I could keep playing.
Steps to reproduce:
Written in details in the issue description.
Version (Make sure you are on the latest version before reporting):

Minecraft: 1.10.2
Forge: <IP_ADDRESS>5
Refined Storage: 1.2.18 (default in the Sky Factory 3 modpack on the Curse launcher).
Sky Factory 3: 3.0.6

I've added "InventoryTweaks-1.61-58" to the pack I'm playing, using the Curse client (it have been working for days without issues).
Does this issue occur on a server? [yes/no]
no (haven't tested, in an actual multiplayer server).
If a (crash)log is relevant for this issue, link it here:
This log is from a single session. Unfortunately I didn't copy the Game Output from the session where the issue occurred, but when I try to play the world, the same thing keeps happening when the world is loaded.
https://gist.github.com/soerenkk/0a743421a81ae5cf6142a114ccbba02c
Notice: Complete "Game Output" log, replaced my player name and UUID, beside that, it is unaltered.

Can you try updating HWYLA?

In fact, just update SF3. The latest SF3 version is 3.0.7, you're on 3.0.6.

SF3 3.0.7 is marked as beta, but I'll give it a go. I'll let you know.

Well that seems to have done the job, I can load my world again, and it seems to work now.
Thank you very much. And I really like this mod 👍


Profile.js components overlapping on each other

Describe the bug
Both the  and  are rendered at the same time causing them to overlap on each other
To Reproduce
Steps to reproduce the behavior:

Go to https://spendwise-seven.vercel.app/
Log in or create account (if not done previously)
Click on username on to- right
See error

Expected behavior
Respective components should be rendered when clicked on the respective buttons on the left side bar
Screenshots

Assign me please..


Support guards on all interaction based components

Describe the feature
No response
Examples
No response

Merging this issue into #37


Achievement Diary Ardougne

Nothing particular to note, fairly straightforward  diary entry. Bunch of TODOs that I'll get to after I'm done the rest of the diaries.

Oh and like the wildy if you have a completed or even semi completed elite diary can you provide the output of '::getvarp 1197', so I can confirm the bits are lining up

@Zoinkwiz Don't merge this yet I had a few suggested changes I never suggested, let me check if they've been fixed.

Thanks @Felanbird great suggestions, added them in 😄


global: set Cache-Control to no-cache

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

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

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
0

Relevant Lines:
0

💛  - Coveralls


Development

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (5a5c9a6) 100.00% compared to head (39f2551) 100.00%.
Report is 1 commits behind head on main.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff            @@
##              main       #40   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            2         2
  Lines            5         5
=========================================
  Hits             5         5

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Improved ripple effect contrast / colors

Feature request type
Enhance component
Component name
MudRipple
Is your feature request related to a problem?
The ripple effect is very hard to see in some cases, especially on filled purple buttons.
Describe the solution you'd like
Improved defaults by choosing a suitable ripple color based on the primary color or text color. Some component variants (for example outlined and filled buttons) require different approaches. Ideally the ripple colors should be easily configurable.
I will try to improve the defaults in a PR but i'm not sure how to implement user configurable color options.
Have you seen this feature anywhere else?
Most other material design libraries allow customizing the ripple colors, for example: https://material.angular.io/components/ripple/overview
Describe alternatives you've considered
No response
Pull Request

[X] I would like to do a Pull Request

Code of Conduct

[X] I agree to follow this project's Code of Conduct

I like the ones in MUI a lot too

@meenzen that comment from @github-actions should say:

👋 Thanks for wanting to do a PR! We will try to merge all (non-breaking) bugfix PRs and we will deliberate the value of feature PRs for the community. But be warned that there is no guarantee that new features will be merged. If you want to be sure before investing the work please contact the team about your planned feature PR

I think if you worked on some samples so the team could see it would spark good discussion.


Would it like add support for stable branch?

Would it like add support for stable branch?

As of now we do need some stuff the master branch offers, but on next stable flutter I'll try to be compatible with it

@HrX03  thank u! that's really helpful. any time schedual on this?

New flutter stable should come out around February 2021, so you could expect support around there

@HrX03  thank u so much!


make test: Intermittent failure of tests/realmath test

I was building the current (5387ccb041f4acafc96c7b3fcf8db04dddfb8ab5) version of yosys and decided to run "make test".
The test was being run with a local build of the latest iverilog from git<PHONE_NUMBER>2577e3abd12a182b97d605bd4572a6) and I received the following error for a test failure one time.
cd tests/realmath && bash run-test.sh ""
generating tests..
running tests..
[0][1][2][3][4][5][6][7][8][9][10][11][12][13][14][15][16][17][18][19][20][21][22]
 67:<PHONE_NUMBER>000000000000000000000000000000000000011000101100000111<PHONE_NUMBER>000000000000000000000000000000000000010000000000000000
                                                     ^   ^ ^^     ^^^                                                 ^   ^ ^^     ^^^

For some reason, upon simply re-running "make test", this error went away, and I haven't been able reproduce it since, but I thought it was worth reporting anyway, just in case.

Fixed in the crudest way possible in 9820ed6.