Parse error on valid json file

I validated my JSON file with various tools online and they confirm that my JSON file has valid syntax. Yet I get a parse error
[
  {
    "particles": [
      ["antilepton", "lepton"],
      ["antilepton", "lepton"],
      ["photon"]
    ],
    "indices": [
      [],
      [],
      ["mu"]
    ],
    "rule": "-i*e*GA[mu]"
  }
]

what():  [json.exception.parse_error.101] parse error at line 1, column 1: syntax error while parsing value - unexpected end of input; expected '[', '{', or a literal
To read the file I copied the example code from the README
std::ifstream ifs("my_file.json");
/*
std::stringstream ss;
ss << ifs.rdbuf();
std::cout << ss.str() << "\n";
// prints the file, so path is correct
*/

JSON json;
ifs >> json;
std::cout << json << "\n";

I also tried adding zeros in the empty arrays, but that didn't help either.

I wish I could say more than that the parse error indicates that it was not possible to retrieve any byte from the input. Can you try reading the input into a string and parse from there?

Thanks, the following seems to be a workaround:
    std::ifstream ifs("my_file.json");
    std::stringstream ss;
    ss << ifs.rdbuf();
    std::string json_string = ss.str();

    JSON json = JSON::parse(json_string);


SDK Overview documentation page refers to archived repositories

The WSO2 Identity Server v6.1.0 documentation contains references to archived Github repositories for some sample SDKs in [1]. These need to be replaced with up-to-date references.
[1] - https://is.docs.wso2.com/en/latest/sdks/sdk-overview/

This issue is being closed due to extended inactivity. Please feel free to reopen it if further attention is needed. Thank you for helping us keep the issue list relevant and focused!


[review] Make RHS Contents not sticky but Keep "Back to Top" as Sticky

The RHS Contents sidebar creates some business when reading a lecture and focusing on content.
It would be nice for:

the contents component to be not-sticky so slides of the page as you scroll down
Keep "back to top" as sticky

No problem - there is the jijna markup in there to have a next/previous links next to the back to top. But it doesn't appear to be passed through. Wonder if I could get some help with this one. Here is the line:
https://github.com/QuantEcon/quantecon-book-theme/blob/33d45b56a24f9d96a940eacc90049e66e5e3b45b/quantecon_book_theme/layout.html#L67

Done. https://github.com/QuantEcon/quantecon-book-theme/commit/971550d93b6aee771fb446e3fb91929a99596465


Add ability to configure SSL timeout per host

I found a need for this and thought others might benefit from it as well.  This is a quick drive-by, so let me know if any documentation or tests needs to be updated.
🍻

Hmmm.  New to Travis CI & can't really figure out how to dive into the failures here.  Any pointers in the right direction would be appreciated, @jwilder, as a learning experience so I can get this fixed up.


Update README and example

I want to bring up some minor things that I noticed while reading through the docs yesterday.
From the README:
  "devDependencies": {
    "gulp": "^3.9.1",
    "gulp-wp-toolkit": "^1.0.1"
  }

The version for gulp-wp-toolkit should probably be "^2" so that new users jump into using version 2 right away.
Also, the line below should be all lower case (basefontsize) or else the value will not be recognized.
https://github.com/craigsimps/gulp-wp-toolkit/blob/6a3a36c1e1f3651f58643b5433cbf85f6d4fe5c5/example/Gulpfile.js#L82

Fixed these issues within https://github.com/craigsimps/gulp-wp-toolkit/commit/c954ca9949ad69125aa3552536ebf07d5a12b19c -- they are in the 2.1.0 release version.


Add classification metrics

Adding classification metrics

Categorical Cross-Entropy
Precision
Recall
F1-Score
AUC-ROC score

@JuliaRegistrator register()

Registration pull request created: JuliaRegistries/General/54213
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:
git tag -a v0.0.1 -m "<description of version>" b2559323b7aad079710025f674879eff2910cf75
git push origin v0.0.1

@JuliaRegistrator register()

Error while trying to register: "Tag with name v0.0.1 already exists and points to a different commit"

Error while trying to register: "Tag with name v0.0.1 already exists and points to a different commit"


Make version in bip152 an enum

          OT but this should be an enum. Honestly last time I looked at this module I didn't like it at all. IIUC it's a literal transaction from C++ Core code, so that's why it's not idiomatic.

Originally posted by @Kixunil in https://github.com/rust-bitcoin/rust-bitcoin/pull/2987#discussion_r1671571767

I agree with making this an enum, but in order to do so, it would require a change to the public API from
pub fn from_block(
        block: &Block,
        nonce: u64,
        version: u32,
        mut prefill: &[usize],
    )

to
pub fn from_block(
        block: &Block,
        nonce: u64,
        version: Version,
        mut prefill: &[usize],
    )

Just wanted to double check: Should we deprecate the function with a u32 version and add a new one?

Should we deprecate the function with a u32 version and add a new one?

I don't think it's worth it.

For this module, which has never seen much love, I think it's fine to just redo the API entirely.

I think we should still do it with deprecations so we don't further the pains from #3166

One way to do it is to deprecate the entire module in favor of a new crate that people can opt to use. Then at some point later replace the module with a reexport of the crate.

Okay that makes sense. If someone has the time, could you please create the BIP 152 crate for me? On a related note, is the plan to eventually move BIPs to their own crates where applicable?

I'd prefer somebody (could be you) would create the repo under their personal org, get it into reasonable shape, and then request to move it into here. If I create an empty repo in the rust-bitcoin org, but I'm not prepared to steward it, there's a risk that it basically dies on the vine and pollutes the org.

Sounds good, I'll start working on that
I think this issue should be able to be closed then since we're going down that path


LibGfx: "WebContent process crashed!"

Appears to be an index out of bounds bug in Path.cpp. Happens when accessing https://territorial.io/.
494│
495│         auto shape_idx = 0u;
496│
497│         auto slope = [&] {
498│             return angle_between(shape[shape_idx], shape[shape_idx + 1]);
499│         };
500│
501├───────> auto start_slope = slope();
502│         // Note: At least one range must be active.
503│         auto active = *active_ranges.find_first_index_if([&](auto& range) {
504│             return range.in_range(start_slope);
505│         });
506│
507│         while (shape_idx < shape.size()) {
508│             add_vertex(shape[shape_idx] + pen_vertices[active]);
509│             auto slope_now = slope();
510│             auto range = active_ranges[active];
<ladybird repo>/Userland/Libraries/LibGfx/Path.cpp

(gdb) p shape
$1 = {m_span = {<AK::Detail::Span<Gfx::Point<float> const>> = {m_values = 0x5b2ccc0c64a0, m_size = 1}, <No data fields>}}

My initial attempts to fix this have not been successful, so not sure what the correct solution is here.

I think this is obsolete as that Path class has been replaced with the Skia library.


Emoji parsing

Hello,
I'm trying to extract emojis from a text file where they aren't well encoded.
For instance  :
"lorem ipsum unicode-d83d\ude18"
I used Regex to transform the text into :
"lorem ipsum \uD83D\uDE18"
When I try to call EmojiParser.parseToUnicode() or EmojiParser.parseToAliases() as written in the documentation, emojis aren't matched. How should I transform my text to extract emojis ?
Thank you !

Hi @erwanlenagard  is it still open ? I could work on this.

Hi !
Thank you. I found a solution using Regex. I'm a newbie programming Java, so there is probably a more straightforward solution to solve the issue...
comment=comment.replaceAll("(unicode)-","\\u");
Pattern pattern_emoji = Pattern.compile("\\u(\w*[0-9a-zA-Z]+\w*[0-9a-zA-Z])");
Matcher  matcher_emoji = pattern_emoji.matcher(comment);
while (matcher_emoji.find()) {
comment=comment.replace(matcher_emoji.group(),"");
String emojitmp = matcher_emoji.group().toUpperCase();
emojitmp=emojitmp.replace("U","u");
comment=comment.replace(matcher_emoji.group(),emojitmp);
}
comment =StringEscapeUtils.unescapeJava(comment);
List collectEmoji = EmojiParser.extractEmojis(comment);

and do you have some another open issue which is not so difficult and i can work on it ? :D

Looks like this was resolved.


🐛 : UI Scroll Bug in Languages, Profiles

Expected behavior
Maybe Expanded or similar to current app, no need to scroll.
Screenshots
https://github.com/langx/langx-flutter/assets/3280475/7757728f-9f5a-4ebb-8941-89df10c1d75c

iPhone SE iOS 17.5

Also, why do you use here, SizedBox, didnt understand @Addison1
https://github.com/langx/langx-flutter/blob/f213f318a520e7f3393aa58c8837bf08c601aa40/lib/components/profile/about_me_card.dart#L44-L48
It is the same here
https://github.com/langx/langx-flutter/blob/f213f318a520e7f3393aa58c8837bf08c601aa40/lib/components/profile/mother_tongues_card.dart#L16-L17
and study languages component as well. It changes number of users languages that.
Thank you


🐛 semantic-release

Description
Use semantic-release instead of the buggy hand-rolled solution
Has This Been Tested?
mostly
Checklist:

[x] I've read the contributing guidelines of this project
[x] I've installed and used .pre_commit on all my code
[x] I have documented my code, particularly in hard-to-understand areas
[x] I have made any necessary corresponding changes to the documentation

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


[Feature Request]Add the function of importing cookies.

LGTM.
@chihchy please rename this issue to [Feature Request] Import cookies and add an enhancement label.


The "#pragma GCC system_header" blocks the display of the document

#include <algorithm>

int main() {
    int a, b;
    std::swap(a, b);
}

The document of the swap function cannot be displayed.

Open the header file containing the swap function.

The document of the swap function is displayed normally.

@sam-mccall
This problem may be caused by #pragma GCC system_header.

test.h

#pragma GCC system_header

// Doc Test
void docTest();

main.cpp

#include "test.h"

int main() {
    docTest();
}

The document is not displayed while hovering.

Once test.h is opened, the document can be displayed.

@sam-mccall
The -fretain-comments-from-system-headers flag can help solve this problem.

https://reviews.llvm.org/D69928


Cannot pass for loop variables to image()

Hi,
I used to plot images with the following code (edited example) passing the mz argument to the image function via a for loop.
par(mfrow = c(2,2),     mar = c(5, 5, 5, 5),     oma = c(0, 0, 5, 0),     cex = 0.8)   for (i in 400:403) {     image(msi,           mz = i,           plusminus = 0.001,           col.regions = inferno(n = 100),           colorkey = TRUE)
I wanted to change my script using Cardinal v2.2.6 and it seems like the mz argument of the image function does not take the variable of the for loop anymore. I know that you implemented the layout function now, but I need to use the par(mfrow=) function to add further labels (e.g. compound name, adduct) to the image. Is there a way to still pass mz via a for loop variable? If this example is not clear enough I can attach my files.
Cheers, Dennis

I just figured out that it is working for MSImageSet format but not for MSImagingExperiment. Do you know why that is?
You probably won't update the image() function for the old MSImageSet format right? Do have any suggestions how to workaround this issue?

Please try print(image(msg, mzi=i, ...))
Similar to graphics from the lattice and ggplot2 packages, the plot() and image() methods in Cardinal now produce printable objects rather than plotting anything themselves.
This allows for greater flexibility and modularity in the implementation (as well as the ability to store plots as variables) but requires explicitly print()-ing the plots whenever print() wouldn't be called implicitly (such as in the body of a for loop).
Please let me know if this doesn't work.

Also, if you want to control the layout yourself, you may want to include layout=FALSE or layout=NULL (they do the same thing) to make sure the auto-layout is suppressed.

There are no plans to change or update any of the methods for MSImageSet.

Thanks a lot! The print() was exactly what I needed.


Schema generation with GenericModel and multiple enums is broken since 1.8.0

Checks

[X] I added a descriptive title to this issue
[X] I have searched (google, github) for similar issues and couldn't find anything
[X] I have read and followed the docs and still think this is a bug

Bug
Since pydantic 1.8.0 schema generation with GenericModel and multiple Enum fields using this GenericModel fails with a KeyError. I have tried the fix in https://github.com/samuelcolvin/pydantic/pull/2536 but this seems to be another corner case that has to be fixed.
Output of python -c "import pydantic.utils; print(pydantic.utils.version_info())":
             pydantic version: 1.8.1
            pydantic compiled: True
                 install path<EMAIL_ADDRESS>               python version: 3.7.10 (default, Mar  4 2021, 21:37:12)  [Clang 12.0.0 (clang-1<IP_ADDRESS>)]
                     platform: Darwin-20.3.0-x86_64-i386-64bit
     optional deps. installed: ['typing-extensions']

from enum import Enum
from typing import TypeVar, Generic, Optional
from pydantic import BaseModel
from pydantic.generics import GenericModel

ConfigValueT = TypeVar("ConfigValueT")

class ConfigOption(GenericModel, Generic[ConfigValueT]):
    value: ConfigValueT
    value_source: str

class EnumA(str, Enum):
    a = "a"
    aa = "aa"

class EnumB(str, Enum):
    b = "b"
    bb = "bb"

class TestModel(BaseModel):
    option_a: ConfigOption[EnumA]
    option_b: ConfigOption[EnumB]  # it also works with only `option_a` but not with multiple

print(TestModel.schema_json())  # This works until 1.7.3 but crashes on 1.8+

This results in a KeyError:
Traceback (most recent call last):
  File "test.py", line 29, in <module>
    print(TestModel.schema_json())  # This works until 1.7.3 but crashes on 1.8+
  File "pydantic/main.py", line 715, in pydantic.main.BaseModel.schema_json
  File "pydantic/main.py", line 704, in pydantic.main.BaseModel.schema
  File "pydantic/schema.py", line 167, in pydantic.schema.model_schema
  File "pydantic/schema.py", line 548, in pydantic.schema.model_process_schema
  File "pydantic/schema.py", line 589, in pydantic.schema.model_type_schema
  File "pydantic/schema.py", line 241, in pydantic.schema.field_schema
  File "pydantic/schema.py", line 495, in pydantic.schema.field_type_schema
  File "pydantic/schema.py", line 839, in pydantic.schema.field_singleton_schema
KeyError: <class '__main__.ConfigOption[str]'>

Thank you for your work on this amazing library!

Hi @pboehm!
Thank you for reporting with a clear example AND for checking open fixes like #2536. Always nice to spare some time 🙏
You're absolutely right and the fix has in fact nothing to do with schema generation per se. I opened a fix I'll see if fastapi tests are ok


Eclipse Che

This new browser based IDE allegedly makes it easy to convert eclipse based plugins to run in the browser as part of the development environment. They are having licencing issues with their existing database tools. Thought it might be worth a look: https://eclipse-che.readme.io/docs/plug-ins

Interesting!  I'm not sure how much work it would be to migrate. This is the best info I've found so far:

As a general rule, the objective is to be able to plug existing
libraries for various languages to run natively within the workspace, and
then to create Che plug-in wrappers around those libraries, turning them
into RESTful services.

So it may be as simple as creating a wrapper, or...not.

I'm afraid this will require a lot of efforts.
I definitely don't have time for that.
But if anyone would want to do such a wrapper - be my guest. I can only assist with something.


fixed some typos, formatted document

Please do the review, and if everything is perfect merge it, or else I will re-edit it again.

@ArshErgon Can you please resolve conflicts? Thank you!

@ArshErgon Can you please resolve conflicts? Thank you!

@ArshErgon Can you please resolve conflicts? Thank you!


Make cucumber support a separate project

Cucumber support has been sketchy and community-driven for a while. See the disclaimer at http://angular.github.io/protractor/#/frameworks#using-cucumber
Now that a custom framework can be used, we should just make it a separate project to clarify this separation, and unblock protractor releases when weird things are going on with cucumber.

I'd like to take a crack at this. When are you planning on creating another repo for the cucumber custom framework integration?

Yeah, I actually just started on this!  We need to merge https://github.com/angular/protractor/pull/2691 first, and then we can split cucumber out.  Probably going to publish to an npm module like protractor-cucumber-framework or something, at which point people would be able to use frameworkPath: 'protractor-cucumber-framework' to access the framework.
We're actually looking for an owner for the project though!  We (the core team) have never really used or understood much about cucumber, and so support was always kind of spotty.  If you're interested in taking control that'd be awesome!  (If not that's okay too :stuck_out_tongue:)

Sure, if you're looking for an owner I can maintain the framework module. I just signed a CLA and subscribed to https://github.com/angular/protractor/pull/2691 for updates. Thanks!

Ok, #2691 isn't actually necessary (my bad).  So we're good to go with separation!  Here's an outline of how I'd do it (feel free to ignore):

Clone https://github.com/angular/protractor-timeline-plugin.  Just delete index.js and everything in the spec folder except environment.js.  This'll give you a tiny version of the test app which cucumber currently runs against.

Move lib/frameworks/cucumber.js to the new projects' index.js

Move spec/cucumberConf.js and spec/cucumber/ into the new repo's spec/ folder.

Update cucumberConf.js to use a custom framework pointing to index.js

Possibly fix some relative paths

In test.js, update passingTests to ['node node_modules/protractor/lib/cli.js spec/cucumberConf.js']

Fix the package.json

Remove dependency on ConfigParser.  Basically you'll replace
cucumberResolvedRequire =
  ConfigParser.resolveFilePatterns(
    runner.getConfig().cucumberOpts.require,
    false,
    runner.getConfig().configDir);

with something like
var requirePatterns = runner.getConfig().cucumberOpts.require;
var configDir = runner.getConfig().configDir;

requirePatterns = (typeof requirePatterns === 'string') ?
    [requirePatterns] : requirePatterns;

cucumberResolvedRequire = [];

if (requirePatterns) {
  for (var i = 0; i < requirePatterns.length; ++i) {
    // Cucumber allows running a spec given a line number.
    // If you deprecated node < v0.12, switch to using path.parse
    var fileName = requirePatterns[i];
    var lineNumber = /:\d+$/.exec(fileName);
    if (lineNumber) {
      fileName = fileName.slice(0, lineNumber.index);
      lineNumber = lineNumber[0].slice(1);
    }
    var matches = glob.sync(fileName, {cwd: configDir});

    if (!matches.length) {
      log.warn('pattern ' + requirePatterns[i] + ' did not match any files.');
    }
    for (var j = 0; j < matches.length; ++j) {
      var resolvedPath = path.resolve(configDir, matches[j]);
      if (lineNumber) {
        resolvedPath += ':' + lineNumber;
      }
      cucumberResolvedRequire.push(resolvedPath);
    }
  }
}

which is just the internal implementation.

Run the tests

Let's take a quick step back - @mattfritz it would be awesome if you're interested in owning the cucumber framework. We can provide links from the protractor repo, and a migration path. @mattfritz where would you like the repo to live? Once we get a location, @sjelin and I can help with the steps above.

@juliemr Do you have a convention for framework repos like you do for plugins? I can host the framework at mattfritz/protractor-cucumber-framework if that seems reasonable. Let me know and I'll create the repo this afternoon. Thanks!
@sjelin That is in great detail, thank you for outlining the process!

We don't have a convention yet, so mattfritz/protractor-cucumber-framework sounds great to me!

I have this working with cucumber-js v0.8.1 and below, but v0.9.0 (which just got released this week) breaks the CLI arguments implementation. I'll get it working with the new version tomorrow and add more documentation for framework setup.
https://www.npmjs.com/package/protractor-cucumber-framework
https://github.com/mattfritz/protractor-cucumber-framework
Let me know if this is good enough to go ahead with for now and I'll submit a PR to remove remnants of cucumber from protractor for the v3.0 release. Thank you!

LGTM!  I left one comment on the first commit, but otherwise seems good.  Also, could you add angularcore as a contributor on NPM?

I added angularcore as a contributor on NPM and I'm still hacking on<EMAIL_ADDRESS>Let me know if I need to add additional docs to the PR above. Thanks!

Done with ddb8584!  Thanks @mattfritz


Initialize initial pythonPath value more quickly during startup so Terminal starts the correct environment

When switching to the "Terminal" tab in VS Code, the selected Python environment is automatically started. This is really useful. However, if I accidentally leave the Terminal tab open when I close VS Code and later restart it, the Terminal is started with the wrong Python environment because the Python extension hasn't yet initialized the value of the selected environment.
I realize that the extension needs to enumerate all of the Python environments, and this takes a while, but it would be great if it could load the previously-saved environment path early in its initialization before the Terminal starts.
This would also help other extensions like Pyright that use the Python extension's API to retrieve the selected Python environment. Currently, the wrong path is passed via this API, then it is updated a second later. This causes spurious errors to be reported during that time.

Should no longer be the case since we've moved on to new storage and APIs.


'Save As' does not work on MacOS

The save as function doesnt work on MacOS, save works fine. Tried digging deeper and realised the
await _channel.invokeMethod<String>(_saveAs, args) in _openFileManager doesnt complete or return any value. Cant go any deeper as I do not write swift.
MacOS, Monterey, version 12.6
Weldone on such a great package though, really helpful.

It is resolved in the latest version please check, reopen the issue if not

Hi,  when I used the version 0.2.0. it is still not working.

Hi @incrediblezayed
Thank for you updating. It is working now.

This doesn't work for me still. I am using version 0.2.6. The saveAs method doesn't return anything, so the future never completes. I am on MacOS Ventura 13.0 (M1 Chip). Flutter version is 3.7.5. The saveFile method works fine though. The reason I wanted to use saveAs was the saveFile method was not overwriting the file if it had the same name.

This doesn't work for me still. I am using version 0.2.6. The saveAs method doesn't return anything, so the future never completes. I am on MacOS Ventura 13.0 (M1 Chip). Flutter version is 3.7.5. The saveFile method works fine though. The reason I wanted to use saveAs was the saveFile method was not overwriting the file if it had the same name.

I really can't reproduce this, since I've already tested this multiple times, have you added the required entitlements in DebugProfile.entitlements?

Yes, it's there. I double checked everything, but still couldn't get it to work.
await FileSaver.instance.saveAs(name: fileName, bytes: Uint8List.fromList(export.codeUnits), ext: 'csv', mimeType: MimeType.csv);
This is the code.

Yes, it's there. I double checked everything, but still couldn't get it to work.
await FileSaver.instance.saveAs(name: fileName, bytes: Uint8List.fromList(export.codeUnits), ext: 'csv', mimeType: MimeType.csv);
This is the code.

I actually have the exact same macbook as you, but I never faced this, I'll try this tomorrow morning, can you join discord if possible?

I figured out what was happening. As you can see from the screenshot in my previous reply, I have App Sandbox enabled as it's a requirement to publish to App Store. So, I had to also add com.apple.security.files.user-selected.read-write key in entitlements file as App Sandbox disables it by default. When a Save As dialog appears, it no longer becomes a Downloads folder access, but a 'User Selected' one, so that's why.
<key>com.apple.security.files.user-selected.read-write</key> 	<true/>

I figured out what was happening. As you can see from the screenshot in my previous reply, I have App Sandbox enabled as it's a requirement to publish to App Store. So, I had to also add com.apple.security.files.user-selected.read-write key in entitlements file as App Sandbox disables it by default. When a Save As dialog appears, it no longer becomes a Downloads folder access, but a 'User Selected' one, so that's why.
<key>com.apple.security.files.user-selected.read-write</key> 	<true/>

Is it fixed now?

Yes, working fine after adding com.apple.security.files.user-selected.read-write key to the entitlements file. Thanks!

So closing the issue

Should probably update the readme with this info here
Just encountered this issue and this was the fix ^^


Tensor data is incorrectly loaded from FlatBuffers on big-endian targets

Currently InitializeTfLiteTensorFromFlatbuffer and InitializeTfLiteEvalTensorFromFlatbuffer refer to a data in a FlatBuffer using a direct pointer. For example in https://github.com/tensorflow/tflite-micro/blob/a9f2e03b943990bc958ce3b92ca76ffc27fcf6d6/tensorflow/lite/micro/micro_allocator.cc#L440:
result->data.data = GetFlatbufferTensorBuffer(flatbuffer_tensor, buffers);

Because data in FlatBuffers is always little-endian, on big-endian machines it causes problems because any type wider than 8 bits will be read with bytes swapped.

This issue is related to tensorflow-micro, so I'll report it there. Closing this one.


scipy.special.owens_t reports incorrect value if second argument is infinite

My issue is about scipy.special.owens_t not returning the correct value when the second argument is infinity.
For example, scipy.special.owens_t(0,numpy.inf) should return 0.25, not 0.5.
It looks as if scipy.special.owens_t(x,numpy.inf) always returns twice the value that it should do. Please see https://en.wikipedia.org/wiki/Owen's_T_function for some basic information about the function. I have given some example code where the second argument gets successively larger, and it is clear what the asymptotic value should be.
Reproducing code example:

large = 1e16
larger = 1e32
largest = numpy.inf
scipy.special.owens_t(0, large) # almost equal to 0.25
scipy.special.owens_t(0, larger) # equal to 0.25
scipy.special.owens_t(0, largest) # equal to 0.5 It should be 0.25

Scipy/Numpy/Python version information:

1.5.2 1.19.1 sys.version_info(major=3, minor=8, micro=5, releaselevel='final', serial=0)

I tried out this code in the current main branch and it works:
In [1]: from scipy import special
In [2]: import numpy as np
In [4]: special.owens_t(0, np.inf)
Out[4]: 0.25

@owenmorgannicholas you expect the output to be 0.25, right?


This is merging in the changes from the Master version.

Sorry, I was trying to do the opposite, Merge your changes in to our fork.


Syntax tree exposed

Hey there,
JSLint has a simple way to access the parsed syntax tree. Is there a way to do this in jshint?

We will add that but only after we switch parsers.


onDragEnd is triggered on mouse over

onDragEnd event is triggered unexpectedly on mouse over without even dragging the gutter. I've created an example here to demonstrate the problem.

Hover your mouse from div id one to div id two: dragEnd event for div three-four is triggered.
Hover your mouse from div id two to outside of example div: dragEnd event for div one-two is triggered.
Hover your mouse from div four to outside of example div: dragEnd event for both one-two and three-four is triggered.

Very true, thanks for the great bug report. I'll look into this right away.

Thanks! New version released with the fix.

Wow! That was lightning fast, thank you! :+1:


Add test for observation repository

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


Adding lathe cutter example

This add one of the examples on the course.
@PipKat could you please give it a look? I feel I didn't do a good on the writing.
Close #1125

Some pictures:


impl FromSkyhashBytes for RawString

There's an impl IntoSkyhashBytes for RawString but no impl FromSkyhashBytes for RawString, and I do not understand why. Can you either add this or add a note explaining why it doesn't make sense?
Thanks!

Please see my comment here: https://github.com/skytable/client-rust/pull/16#discussion_r1056055108


Import fails in Godot 3.2 beta 2

I added the plugin to the 3.2 beta to see if any updates will be required for, and it appears to fail currently:
ERROR: Cannot get class 'QuakeMap'.
   At: core/class_db.cpp:343

Curious, do any obvious errors appear in the log if you open addons/qodot/resources/quake_map.gd in the editor?
I've not messed with 3.2 at all yet, but support will be inevitable given time!

This is fixed- turns out it was an issue with class names getting changed in the code, but not in serialized import files.
The latest commit to master fixes the import plugin, but you'll need to reimport all of your maps (and possibly their entries in the .import folder, along with the inline .import files generated by the editor) in order for the error to go away.


build: update node and yarn to latest stable versions

Some CI jobs currently fail because db283f11eaf895e1e0b084a826cc9e3d6218e695 removed
Node v11 from the supported node versions. Some of CI jobs use Node v11 though, so they
currently fail. e.g. https://circleci.com/gh/angular/components/89692.
In order to fix this, we ensure that we use consistent versions. For Node, we use the current
active LTS version (v12). And for Yarn, we use the latest stable yarn version.

For reference: a few goldens had to be updated because the method overloads are now sorted based on their declaration order. This previously was not the case because Array.sort was not stable for more than 10 elements. see: https://bugs.chromium.org/p/v8/issues/detail?id=90

@josephperrott Feedback addressed. Please have another look

How is requiring NodeJS 12 working with relation to the fact that Gulp 3 doesn't work with it?
We're still on "gulp": "^3.9.1",.


feat: docs banner

could we make it link to the new docs for the current thing you're looking at, rather than to the index page?

@nornagon we thought about it but because there are changes in the folder structure is not obvious to always point to the right place.
At the end we decided it was better to ship sooner, gather feedback/data, and adjust later if needed.


GameSettings: 'TMPE_Keybinds' is not found or cannot be loaded

Only very minor issue that doesn't break anything, but just flagging it up:
GameSettings: 'TMPE_Keybinds' is not found or cannot be loaded. Make sure to call GameSettings.AddSettingsFile() to register a settings file before using SavedValue().  [Settings - Internal]

The game auto-creates it anyway, but seems to nag if you haven't used GameSettings.AddSettingsFile(). I see this with several other mods too. While only minor, would be nice if we could play ball as I assume CO added that log trace for a reason.
output_log.txt

Warning from CO implementation, can be ignored. Closing.


Drive unmout automatically after a while..

Hello,
I mount the drive with drive init /path and after few hours it's says that is unmount and i need to init again.
Where I can lookup for logs?
Thanks.

Fixed: I use JSON Google Service Account credentials, please write in README that Oath2 it not a permanent solution.


Use downloaded video files?

Is it possible to use video files that have been downloaded to the device later? They end up in a data-folder or a folder on the sdcard, but not inside the app package itself.

@odbol & @Duncank Have either of you run into any issues with videos playing on some Samsung devices with custom ROMs?
For some of our users the videos just show up as white boxes and nothing else. I gave in and bought a Samsung S3 and installed Dirty Unicorns 4.4.4 [Final KitKat Version].
When I review the Logcat logs I am getting the following error (the same error repeats about 20 times before failing on the last line) which point to an OpenGL issue which I haven't been able to find a workaround for yet:
01-05 11:32:14.604: E/MediaPlayer(4560): Should have subtitle controller already set
01-05 11:32:14.669: E/chromium(4560): [ERROR:gles2_cmd_decoder.cc(5942)] [.Compositor-Onscreen-0x5e458860]GL ERROR :GL_INVALID_OPERATION : glUseProgram: program not linked
01-05 11:32:14.669: E/chromium(4560): [ERROR:gles2_cmd_decoder.cc(5718)] [.Compositor-Onscreen-0x5e458860]GL ERROR :GL_INVALID_OPERATION : glUniformMatrix4fv: wrong uniform function for type
01-05 11:32:14.669: E/chromium(4560): [ERROR:gles2_cmd_decoder.cc(5718)] [.Compositor-Onscreen-0x5e458860]GL ERROR :GL_INVALID_OPERATION : glUniform1iv: wrong uniform function for type
01-05 11:32:14.714: E/chromium(4560): [ERROR:gles2_cmd_decoder.cc(5942)] [.Compositor-Onscreen-0x5e458860]GL ERROR :GL_INVALID_OPERATION : glUseProgram: program not linked
01-05 11:32:14.714: E/chromium(4560): [ERROR:gles2_cmd_decoder.cc(5718)] [.Compositor-Onscreen-0x5e458860]GL ERROR :GL_INVALID_OPERATION : glUniformMatrix4fv: wrong uniform function for type
01-05 11:32:15.999: E/MediaPlayer(4560): Should have subtitle controller already set
01-05 11:32:15.999: D/AudioPlayer(4560): Send a onStatus update for the new seek
01-05 11:32:16.084: E/chromium(4560): [ERROR:gles2_cmd_decoder.cc(5942)] [.Compositor-Onscreen-0x5e458860]GL ERROR :GL_INVALID_OPERATION : glUseProgram: program not linked
01-05 11:32:16.084: E/chromium(4560): [ERROR:gles2_cmd_decoder.cc(5718)] [.Compositor-Onscreen-0x5e458860]GL ERROR :GL_INVALID_OPERATION : glUniformMatrix4fv: wrong uniform function for type

01-05 11:32:16.334: E/chromium(4560): [ERROR:logger.cc(46)] Too many GL errors, not reporting any more for this context. use --disable-gl-error-limit to see all errors.

Sorry I've never seen that before, and I've tested this on a SGS3 with stock 4.3 ROM. Seems like it's probably a custom ROM issue...

Hy @gylippus ,
I've found the same errors, did you finally found a solution ?

@lalop unfortunately not. Would love to find out a way to though. The only progress I was able to make on this was to at least test and confirm that it does indeed work fine if the app is using Crosswalk. We are going to work on trying to improve the error handling for the plugin and hopefully that might be able to shed some light. Will share anything we do find.

@gylippus I've reencoded my video via handBrake, I can play it now

@lalop, very interesting, any chance you can share the Handbrake settings that you used? Maybe even the video. Would be interested to it on the device we had the custom ROM on.

I use the android preset, with 30fps, 1000kbps as average bitrate and profile baseline.
I can't share the video sorry

@gylippus I attempt to play downloaded files by following your way:

Change HTML5Video.java to point to cordova.file.externalDataDirectory
Change FileTransfer.java with file.setReadable(true, false);

Unfortunately the file still dont playback. Have you made other changes?
Thanks in advance

I finally make it work by.. not using html5video at all.
So for app which plays videos in a html tag and requires offline playback:

Download the files with fileTransfer plugin into cordova.file.externalDataDirectory.
And
Add the line file.setReadable(true, false);  to FileTransfer.java line 820 as discribed by @gylippus

Hope this save hours of research for someone else. :)

@sauvainr, are you using entry.toNativeURL() with and just setting it as video src?

Hi just the fileEntry.toURL() method.


JSP parse errors fixed

What's changed?

What's your motivation?

Anything in particular you'd like reviewers to focus on?

Anyone you would like to review specifically?

Have you considered any alternatives or workarounds?

Any additional context
Closes issue #4240
Checklist

[ ] I've added unit tests to cover both positive and negative cases
[ ] I've read and applied the recipe conventions and best practices
[ ] I've used the IntelliJ IDEA auto-formatter on affected files

Hey @timtebeek do checkout this PR
Thanks

That won't work here @Riyazul555 ; We want to faithfully reproduce the files as parsed; this workaround would likely lead to unintended changes, as you'll likely see when you add a unit test.
For any contribution I think it's best that we start with a unit test at what's intended, and then work from there. Typically I'd only expect a PR to be opened up for review when your tests pass, or when you're looking for help.

I'm going to close this PR for now, as we need a very different approach to get this to work, unlikely to reuse the work done in this PR so far. If this branch is updated to contain tests then we could reopen this again. Until then let's make it clear this is not a fix just yet.

I will try to see what I can come up with "if this keeps me awake 😅" in my fork with some tests already, though I am no jsp expert.


Upgrade to node 12

Description
Node 10 is end of life, therefore upgrading to 12.
Other changes
I had to run yarn test -u to upgrade the snapshots, which is a bit worrying. Still looking into why.
Tested
This affects the app as well as these packages: notification-service, moonpay-auth, komencikit, indexer, dev-utils, cloud-functions.
Of course it's hard to make sure nothing breaks so we should proceed carefully.
How others should test
First, people need to upgrade to node 12 locally. Something like:
nvm install 12.22.1 && nvm use 12.22.1
Then, just to be safe I would do a:
yarn reset && yarn && yarn build:wallet
Run end to end tests:
yarn test:e2e:android
yarn test:e2e:ios
Related issues

Fixes #445

I moved linting to a github workflow.  Would you mind rebasing with main, bumping the node version to 12, and checking that it still runs correctly?
I'd also be happy to do that and push the changes to your branch.  Let me know what works best.

I moved linting to a github workflow.  Would you mind rebasing with main, bumping the node version to 12, and checking that it still runs correctly?
I'd also be happy to do that and push the changes to your branch.  Let me know what works best.

I can do it! Thank you!


:book: Update  docs

Adds entangle reference docs with runnable examples
Add full p2p samples
Add MetalLB example

cc @vfiftyfive this is setting up the example section


Cannot open in MacOS: The app has been modified or damaged

Hi, I'm getting the following error when I try to open the macOS application file from animref-arm64-1.0.4.dmg and animref-darwin-arm64-1.0.4.zip:
The app has been modified, and its code does not match the original signed code. The app may be broken or corrupted, or it may have been tampered with. If you think that an app has been damaged or tampered with, you should delete it by dragging it to the Trash.
Wondering if there are any pointers on this.

Nevermind. This link helped me solve it.


Make /settings/user adapter hit /api/users/:slug to fetch a user

From core/client/routes/settings/users/user.js
// TODO: Make custom user adapter that uses /api/users/:slug endpoint
// return this.store.find('user', { slug: params.slug });

//What we're doing instead is..
 // get all the users and then manually find by slug
 return this.store.find('user').then(function (result) {
     var user = result.findBy('slug', params.slug);
     return user;
 }

And actually, if you have a large number of users and haven't loaded all of them when you go to users/user, default pagination (15?) means that this perhaps won't find the user? Is this a bug waiting to happen?

Closing this as there was no consensus on what to do: https://github.com/TryGhost/Ghost/pull/4440#issuecomment-84379109


Update  contributor section

I know we can have more, but we need to add here only very active contributor.

I know we can have more, but we need to add here only very active contributor.

We value all contributions - no matter when they were made.
Rejected.


Subsetting service: final bin of distribution histogram should maybe be inclusive of binEnd

https://localhost:3000/eda-subsetting-service/studies/PRISM0001-1/entities/PCO_0000024/variables/EUPATH_0000026/distribution
{
	"binSpec": {
		"binWidth": 2,
		"displayRangeMax": 30,
		"displayRangeMin": 0
	},
	"filters": [],
	"valueSpec": "count"
}

There's one instance of the value 30 in this dataset.  The final bin returned  is
{
	"14": {
		"value": 0,
		"binStart": "28.0",
		"binEnd": "30.0",
		"binLabel": "[28.0,30.0)"
	}
}

I think perhaps it should be
{
	"14": {
		"value": 1,
		"binStart": "28.0",
		"binEnd": "30.0",
		"binLabel": "[28.0,30.0]"
	}
}

or alternatively, return an extra 30-32 bin?
Note that this isn't the default binWidth.  With the default binWidth (2.1) the 30 value is returned in the final bin
{
	"14": {
		"value": 1,
		"binStart": "29.40000000000001",
		"binEnd": "31.50000000000001",
		"binLabel": "[29.40000000000001,31.50000000000001)"
	}
}

attn @ryanrdoherty

Per discussion on Slack, resolution to this is:
In distribution, currently we treat displayRangeMax as an exclusive value (i.e. rows with that value are excluded from the histogram, not put in a remainder bin).  We will switch it to inclusive, but NOT change the range end of the final bin to inclusive, thus creating a remainder bin.

Done.  We now add an extra bin containing values excluded by a bin whose end coincides with the range end.


add db3 network

For all PRs

[X] I read the Contribution Guide

For new stacks

[x] I followed the do's and don'ts
[x] This stack does not already exist

@xuman2019 Thanks!


erb template not working with bosh director 1.3262.23.0

Hi,
The latest docker-boshrelease seems to contain erb templating that bosh director 1.3262.23.0(PCF 1.8) can’t handle. I tried to fork it and revert the below commit, but it is failing in bosh director 260.0.0(PCF 1.9).
https://github.com/cloudfoundry-community/docker-boshrelease/commit/ed6fb072bc81470491bb07b16f2614498367a41a
Error 100: Unable to render instance groups for deployment. Errors are:
   - Unable to render jobs for instance group 'docker-bosh-tg_test_app4'. Errors are:
     - Error filling in template '(unknown)' (line (unknown): containers/monit:1: syntax error, unexpected ';'
    ...rs', []).each do |container| -; _erbout.concat "\ncheck proc...
    ...                               ^
    containers/monit:7: syntax error, unexpected ';'
    ;  end -; _erbout.concat "\n"
             ^)
     - Unable to render templates for job 'docker'. Errors are:
       - Error filling in template '(unknown)' (line (unknown): docker/bin/job_properties.sh.erb:22: syntax error, unexpected ';'

@cppforlife when did bosh add support for -%> in templates?

Thanks for the fix in #84. Released in https://github.com/cloudfoundry-community/docker-boshrelease/releases/tag/v30.1.3


[Bug Report] Upload multiple only callback once on-success?

Element UI version
2.0.0
OS/Browsers version
Mac OS X 10_13_1 Chrome/61.0.3163.100
Vue version
2.5.2
Reproduction Link
https://zy62.com/upload/
Steps to reproduce
选择多张图片上传仅收到一个on-success回调，由于我上传的token有时效性，很抱歉没用jsfiddle的链接
What is Expected?
收到多个on-success回调
What is actually happening?
仅收到一个on-success回调

Duplicate of #8047


how to run a specific doctest?

having an easy way to run a specific doctest (or at least run only doctests in a specific file) would allow for faster iteration as you could retry just the test that failed.

You can usually filter tests with ./x t library/std -- pattern, where pattern is part of the name of the test or the module. Does that help?


Use procfs-core rather than procfs to reduce dependencies.

@gabrielesvelto this should make vendoring easier.

FYI I just tested vendoring this and it's fine. We only have to bump a couple more crates but they're either written by us or I can do  the audit myself quickly.

Thanks Jake, merging


use background thread to refresh domain cache

manually tested failover using canary without local activity, mostly works

Coverage decreased (-0.04%) to 65.477% when pulling 0030aebbe38bdf8f46da5e0346dec085feee5812 on refresh0-cache into e515b0d27befbefd8232be708f4177c410f140d9 on master.


docs: Add Portability section for TryFromBytes enum usage

closes #1778

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

Project coverage is 89.46%. Comparing base (a80c2d4) to head (ee9e0c8).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1993   +/-   ##
=======================================
  Coverage   89.46%   89.46%
=======================================
  Files          16       16
  Lines        5838     5838
=======================================
  Hits         5223     5223
  Misses        615      615

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


Assert: "throws" removed signature (block, string, string) not in migration guide despite reference to migration guide in exception message

Maybe this belongs on jquery/qunitjs.com, if so I can move it there.
The "throws" assertion throws an exception when given (block, string, string) arguments. It mentions the migration guide, but the migration guide does not contain information about this at all.

Yes, this is missing in the guide and we need to add this to qunitjs.com. Do you mind opening an issue there? We may close this one when everything is set.

@leobalter Thanks for the quick response. Do you believe there is anything to do in this repo? (I'm leaning towards no.)

AFAIK, that was a change we predicted for 2.0, but as a signature change it is not much visible and I missed it.

@leobalter Fair enough. I'm going to close this since I created the qunitjs.com issue-- please reopen if you believe a code change needs to be done here.


Shears shearn't shear.

Where? Latest release.
What? Full grown dragon, try to shear it with diamond shears.
If it works for you then it was local issue, but I see this on Discord, so I am not alone.

issue is being watched thank you


added text snippets

@Premkolte assign me this also
and i will create PR that will merge both

Good work


v0.2

This version allows users to manually input pixel size and grid spacing.

pixel size is expressed in nanometers (1000 nm = 1 um) because fractions are not supported
grid spacing is expressed in micrometers
both of them are isotropic, apply to horizontal and vertical axes

Thanks! I will test!

Thanks! I will test!

Thanks! I will test!

I have tested and it works great, thanks!
The next step would be to implement adjustable atlas hierarchies. I thought I could start working without this, but in practise it's too time consuming to work out which boundaries I ought to be using. The finest level of granularity is too detailed for the datasets I'm working on. Really great if you could implement this ASAP.


Attention sink error with h2oai/h2ogpt-4096-llama2-13b-chat

Hello,
I tried out attention sink with the example command in the FAQ, and it works fine:
python generate.py --base_model=mistralai/Mistral-7B-Instruct-v0.2 --score_model=None --attention_sinks=True --max_new_tokens=100000 --max_max_new_tokens=100000 --top_k_docs=-1 --use_gpu_id=False --max_seq_len=4096 --sink_dict="{'num_sink_tokens': 4, 'window_length': 4096}"
However, if I change the base model to h2oai/h2ogpt-4096-llama2-13b-chat, and I got the error below:
File "/h2ogpt_conda/lib/python3.10/site-packages/gradio/queueing.py", line 501, in call_prediction
output = await route_utils.call_process_api(
File "/h2ogpt_conda/lib/python3.10/site-packages/gradio/route_utils.py", line 252, in call_process_api
output = await app.get_blocks().process_api(
File "/h2ogpt_conda/lib/python3.10/site-packages/gradio/blocks.py", line 1664, in process_api
result = await self.call_function(
File "/h2ogpt_conda/lib/python3.10/site-packages/gradio/blocks.py", line 1217, in call_function
prediction = await utils.async_iteration(iterator)
File "/h2ogpt_conda/lib/python3.10/site-packages/gradio/utils.py", line 526, in async_iteration
return await iterator.anext()
File "/h2ogpt_conda/lib/python3.10/site-packages/gradio/utils.py", line 519, in anext
return await anyio.to_thread.run_sync(
File "/h2ogpt_conda/lib/python3.10/site-packages/anyio/to_thread.py", line 56, in run_sync
return await get_async_backend().run_sync_in_worker_thread(
File "/h2ogpt_conda/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2144, in run_sync_in_worker_thread
return await future
File "/h2ogpt_conda/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 851, in run
result = context.run(func, *args)
File "/h2ogpt_conda/lib/python3.10/site-packages/gradio/utils.py", line 502, in run_sync_iterator_async
return next(iterator)
File "/h2ogpt_conda/lib/python3.10/site-packages/gradio/utils.py", line 685, in gen_wrapper
response = next(iterator)
File "/workspace/src/gradio_runner.py", line 4600, in bot
for res in get_response(fun1, history, chatbot_role1, speaker1, tts_language1, roles_state1,
File "/workspace/src/gradio_runner.py", line 4495, in get_response
for output_fun in fun1():
File "/workspace/src/gen.py", line 4096, in evaluate
for r in run_qa_db(
File "/workspace/src/gpt_langchain.py", line 5676, in _run_qa_db
answer = yield from run_target_func(query=query,
File "/workspace/src/gpt_langchain.py", line 5849, in run_target
raise thread.exc
File "/workspace/src/utils.py", line 476, in run
self._return = self._target(*self._args, **self._kwargs)
File "/h2ogpt_conda/lib/python3.10/site-packages/langchain/chains/base.py", line 316, in call
raise e
File "/h2ogpt_conda/lib/python3.10/site-packages/langchain/chains/base.py", line 310, in call
self._call(inputs, run_manager=run_manager)
File "/h2ogpt_conda/lib/python3.10/site-packages/langchain/chains/combine_documents/base.py", line 136, in _call
output, extra_return_dict = self.combine_docs(
File "/h2ogpt_conda/lib/python3.10/site-packages/langchain/chains/combine_documents/stuff.py", line 244, in combine_docs
return self.llm_chain.predict(callbacks=callbacks, **inputs), {}
File "/h2ogpt_conda/lib/python3.10/site-packages/langchain/chains/llm.py", line 293, in predict
return self(kwargs, callbacks=callbacks)[self.output_key]
File "/h2ogpt_conda/lib/python3.10/site-packages/langchain/chains/base.py", line 316, in call
raise e
File "/h2ogpt_conda/lib/python3.10/site-packages/langchain/chains/base.py", line 310, in call
self._call(inputs, run_manager=run_manager)
File "/h2ogpt_conda/lib/python3.10/site-packages/langchain/chains/llm.py", line 103, in _call
response = self.generate([inputs], run_manager=run_manager)
File "/h2ogpt_conda/lib/python3.10/site-packages/langchain/chains/llm.py", line 115, in generate
return self.llm.generate_prompt(
File "/h2ogpt_conda/lib/python3.10/site-packages/langchain_core/language_models/llms.py", line 521, in generate_prompt
return self.generate(prompt_strings, stop=stop, callbacks=callbacks, **kwargs)
File "/h2ogpt_conda/lib/python3.10/site-packages/langchain_core/language_models/llms.py", line 671, in generate
output = self._generate_helper(
File "/h2ogpt_conda/lib/python3.10/site-packages/langchain_core/language_models/llms.py", line 558, in _generate_helper
raise e
File "/h2ogpt_conda/lib/python3.10/site-packages/langchain_core/language_models/llms.py", line 545, in _generate_helper
self._generate(
File "/workspace/src/gpt_langchain.py", line 1769, in _generate
rets = super()._generate(prompts, stop=stop, run_manager=run_manager, **kwargs)
File "/h2ogpt_conda/lib/python3.10/site-packages/langchain_community/llms/huggingface_pipeline.py", line 203, in _generate
responses = self.pipeline(batch_prompts)
File "/h2ogpt_conda/lib/python3.10/site-packages/transformers/pipelines/text_generation.py", line 241, in call
return super().call(text_inputs, **kwargs)
File "/h2ogpt_conda/lib/python3.10/site-packages/transformers/pipelines/base.py", line 1177, in call
outputs = list(final_iterator)
File "/h2ogpt_conda/lib/python3.10/site-packages/transformers/pipelines/pt_utils.py", line 124, in next
item = next(self.iterator)
File "/h2ogpt_conda/lib/python3.10/site-packages/transformers/pipelines/pt_utils.py", line 125, in next
processed = self.infer(item, **self.params)
File "/h2ogpt_conda/lib/python3.10/site-packages/transformers/pipelines/base.py", line 1102, in forward
model_outputs = self._forward(model_inputs, **forward_params)
File "/workspace/src/h2oai_pipeline.py", line 260, in _forward
return self.__forward(model_inputs, **generate_kwargs)
File "/workspace/src/h2oai_pipeline.py", line 296, in __forward
generated_sequence = self.model.generate(input_ids=input_ids, attention_mask=attention_mask, **generate_kwargs)
File "/h2ogpt_conda/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context
return func(*args, **kwargs)
File "/h2ogpt_conda/lib/python3.10/site-packages/transformers/generation/utils.py", line 1544, in generate
return self.greedy_search(
File "/h2ogpt_conda/lib/python3.10/site-packages/transformers/generation/utils.py", line 2404, in greedy_search
outputs = self(
File "/h2ogpt_conda/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1511, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "/h2ogpt_conda/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1520, in _call_impl
return forward_call(*args, **kwargs)
File "/h2ogpt_conda/lib/python3.10/site-packages/accelerate/hooks.py", line 166, in new_forward
output = module._old_forward(*args, **kwargs)
File "/h2ogpt_conda/lib/python3.10/site-packages/transformers/models/llama/modeling_llama.py", line 1177, in forward
outputs = self.model(
File "/h2ogpt_conda/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1511, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "/h2ogpt_conda/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1520, in _call_impl
return forward_call(*args, **kwargs)
File "/h2ogpt_conda/lib/python3.10/site-packages/accelerate/hooks.py", line 166, in new_forward
output = module._old_forward(*args, **kwargs)
File "/h2ogpt_conda/lib/python3.10/site-packages/transformers/models/llama/modeling_llama.py", line 983, in forward
past_key_values = DynamicCache.from_legacy_cache(past_key_values)
File "/h2ogpt_conda/lib/python3.10/site-packages/transformers/cache_utils.py", line 166, in from_legacy_cache
for layer_idx in range(len(past_key_values)):
Could you help with this issue? thank you very much!

Looks like a bug in transformers.  They don't support the older models as well for such new features.  Mistral based models are better anyways.


Right to Left Input

Hey! First off, thank you so much for this! This is awesome.
My question is how to make inputs go from right to left.
This is my input box:

This is the code I am using for input mask:
$(document).ready(function(){
$("#jquery-mask").inputmask("99:99:9",{"placeholder": "0"});
When I type in "12345" I want it to look like 1:23:45. Instead it looks like 5:43:21. So technically it is going from right to left but in the way that I want it to :-)
Is this something that can be easily fixed? Thank you!!

@hot-Whiskey ,
I wrongly implemented rtl support.  I still need to fix it.  But in your case adding the numericInput: true option will do.

Woo! Thank you! In case any one else is having this issue, you need to have numericInput: true BEFORE the placeholder value :
$(document).ready(function(){
$("#jquery-mask").inputmask("9:99:99",{numericInput:true},{"placeholder": "0"});
Otherwise it doesn't change the behavior.
Thank you Robin!

@hot-Whiskey,
Actually you need to use it like below, the order doesn't matter.
$("#jquery-mask").inputmask("9:99:99", { numericInput: true, placeholder: "0"});

Robin ;-)

hey @RobinHerbots  - I'm having the same issue above but on Android. It's working perfectly fine on iPhone and desktop browsers but in Chrome on Android it is entering the way I mentioned at first. Any ideas? I tried the insertMode:true but didn't seem to help. Thanks!

It only appears to be a problem on Chrome on Android. It works fine on Firefox on Android.
Cheers, Michael

Any updates on this?  I would love to use your plugin, but it's broken in Chrome on Android.

Same issue in Chrome on Android here


Errors not Displayed by ExternalLoginCallback

When enabling for example, the rule for Forcing EMail Verification, the default Auth0AccountController.cs does not parse the Error/Error_Description sent to it by Auth0.
A simple update allows the error message to be displayed:
    [AllowAnonymous]
    public async Task<ActionResult> ExternalLoginCallback(string returnUrl, string error, string error_description)
    {
        if (!string.IsNullOrEmpty(error))
        {
            return Content("ERROR: " + error_description);
        }
        AuthenticationManager.SignOut(DefaultAuthenticationTypes.ExternalCookie);

        var externalIdentity = await AuthenticationManager.GetExternalIdentityAsync(DefaultAuthenticationTypes.ExternalCookie);
        if (externalIdentity == null)
        {
            throw new Exception("Could not get the external identity. Please check your Auth0 configuration settings and ensure that " +
                                "you configured UseCookieAuthentication and UseExternalSignInCookie in the OWIN Startup class. " +
                                "Also make sure you are not calling setting the callbackOnLocationHash option on the JavaScript login widget.");
        }

        AuthenticationManager.SignIn(new AuthenticationProperties { IsPersistent = false }, CreateIdentity(externalIdentity));
        return RedirectToLocal(returnUrl);
    }

@adamreed90
We are no longer including the Auth0AccountController class. You can handle this very easily yourself by setting the ErrorRedirectPath of Auth0AuthenticationOptions, e.g. ErrorRedirectPath = new PathString("/Home/Error").
Then create a controller action which handles that route, and extract the error and error_description querystring values to display a proper authentication failed message to the user.


Replace Forum link in Observability plugin README.md

Signed-off-by: cwillum<EMAIL_ADDRESS>Description
Replaced the link to the Forum discussion in the README.md file so that it points to the OpenSearch forum rather than the defunct Open Distro forum.
Issues Resolved
This fixes the issue for the Observability plugin in #921.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Codecov Report

Merging #999 (431f701) into main (e755d2b) will increase coverage by 16.11%.
The diff coverage is n/a.

@@              Coverage Diff              @@
##               main     #999       +/-   ##
=============================================
+ Coverage     55.75%   71.87%   +16.11%
  Complexity      291      291
=============================================
  Files           263       42      -221
  Lines          8829     2311     -6518
  Branches       2021      240     -1781
=============================================
- Hits           4923     1661     -3262
+ Misses         3732      509     -3223
+ Partials        174      141       -33

Flag
Coverage Δ

dashboards-observability
?

opensearch-observability
71.87% <ø> (ø)

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

Impacted Files
Coverage Δ

...g_controls/config_heatmap_color_palette_picker.tsx

...config_panes/config_controls/config_panel_item.tsx

...vability/common/constants/application_analytics.ts

...public/components/common/field_icon/field_icon.tsx

...ponents/common/helpers/ppl_docs/commands/search.ts

...onents/event_analytics/redux/slices/query_slice.ts

...nts/visualizations/assets/chart_bar_horizontal.tsx

...fig_panes/config_controls/config_gauge_options.tsx

...components/event_analytics/explorer/no_results.tsx

...onents/event_analytics/redux/slices/field_slice.ts

... and 211 more

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

@opensearch-project/observability Thanks for the review. When there's time, could I get one more? And then would someone merge the PR? I don't have that permission in the repo. Thanks.


[Feature Request] Toggle Neptune specific features

There is certain functionality that is Neptune specific. We need a way to inform Graph Explorer what the connection database is so that it can utilize the correct functionality for that database.

SPARQL cancel action
Gremlin cancel action

Originally discussed by @charlesivie in https://github.com/aws/graph-explorer/pull/265#discussion_r1528743866

Related to

#400


Added docstrings to several undocumented functions

Documented various functions that we found particularly lacking of docstrings.

Job d2l-zh/PR-1057/1 is complete.
Check the results at http://preview.d2l.ai/d2l-zh/PR-1057/

Thanks. We close this draft due to lack of activity. Feel free to re-open it.


Create DaemonSet YAML

See https://kubernetes.io/docs/concepts/extend-kubernetes/compute-storage-net/device-plugins/#device-plugin-deployment.

Fixed in 02a068e864b8a63bd6ab1b4c09659328f50b5b97.


Remove interpreter dependency on org.scalameta:trees

Currently, the Ammonite interpreter module has a dependency the Scalameta module trees https://github.com/com-lihaoyi/Ammonite/blob/0f0d597f04e62e86cbf76d3bd16deb6965331470/build.sc#L296
This dependency is only used to access internal APIs to read/write protobuf files
https://github.com/com-lihaoyi/Ammonite/blob/0f0d597f04e62e86cbf76d3bd16deb6965331470/amm/interp/src/main/scala/ammonite/interp/script/SemanticdbProcessor.scala#L8
Those APIs are intentionally under scala.meta.internal because they may introduce source+binary breaking changes on every release. The ideal way to consume those classes is to generate your own code from the semanticdb.proto file here https://github.com/scalameta/scalameta/blob/5c308e6452705542a4799a82c627e73c55a0f8a7/semanticdb/semanticdb/semanticdb.proto
This dependency makes it impossible to use newer versions of Scalameta trees with the Ammonite REPL. See https://github.com/scalameta/scalameta/issues/2294 The problem is that Scalameta releases are not forwards binary compatible, they're only backwards compatible with each other. Forwards compatibility means you can't add any new method to the API without breaking the major release.
cc/ @alexarchambault

An alternative middleground is that we publish a new module org.scalameta:semanticdb that includes the auto-generated classes that Ammonite can depend on. The generated classes will remain internal and discouraged for public usage, but it would still fix this issue because Ammonite doesn't need the rest of Scalameta (parsers, trees, ...) to work.

I opened https://github.com/scalameta/scalameta/pull/2299 moving the auto-generated ScalaPB classes to the module org.scalameta:common that doesn't bring in Scalameta trees/parsers.

@olafurpg Ammonite can be run with the --thin option, hiding many of its internal dependencies:
$ amm
Loading...
Welcome to the Ammonite Repl 2.3.8-65-0f0d597f (Scala 2.13.5 Java 11.0.7)
@ import scala.meta._
import scala.meta._

@ exit

$ amm --thin
Loading...
Welcome to the Ammonite Repl 2.3.8-65-0f0d597f (Scala 2.13.5 Java 11.0.7)
@ import scala.meta._
cmd0.sc:1: object meta is not a member of package scala
did you mean math?
import scala.meta._
             ^
Compilation Failed

@

I believe there shouldn't be conflicts this way.

When run with --thin, Ammonite only exposes the class path of its compiler and repl-api modules:
$ cs resolve com.lihaoyi:ammonite-repl-api_2.13.5:2.3.8-65-0f0d597f com.lihaoyi:ammonite-compiler_2.13.5:2.3.8-65-0f0d597f
com.github.javaparser:javaparser-core:3.2.5:default
com.lihaoyi:ammonite-compiler-interface_2.13.5:2.3.8-65-0f0d597f:default
com.lihaoyi:ammonite-compiler_2.13.5:2.3.8-65-0f0d597f:default
com.lihaoyi:ammonite-interp-api_2.13.5:2.3.8-65-0f0d597f:default
com.lihaoyi:ammonite-ops_2.13:2.3.8-65-0f0d597f:default
com.lihaoyi:ammonite-repl-api_2.13.5:2.3.8-65-0f0d597f:default
com.lihaoyi:ammonite-util_2.13:2.3.8-65-0f0d597f:default
com.lihaoyi:fansi_2.13:0.2.9:default
com.lihaoyi:fastparse_2.13:2.3.0:default
com.lihaoyi:geny_2.13:0.6.2:default
com.lihaoyi:mainargs_2.13:0.2.0:default
com.lihaoyi:os-lib_2.13:0.7.1:default
com.lihaoyi:pprint_2.13:0.6.0:default
com.lihaoyi:scalaparse_2.13:2.3.0:default
com.lihaoyi:sourcecode_2.13:0.2.1:default
io.get-coursier:interface:0.0.21:default
net.java.dev.jna:jna:5.3.1:default
org.javassist:javassist:3.21.0-GA:default
org.jline:jline:3.19.0:default
org.scala-lang:scala-compiler:2.13.5:default
org.scala-lang:scala-library:2.13.5:default
org.scala-lang:scala-reflect:2.13.5:default
org.scala-lang.modules:scala-collection-compat_2.13:2.4.0:default
org.scala-lang.modules:scala-xml_2.13:2.0.0-M3:default

@alexarchambault just curious, what is a reason for not having it as a default thing? If something is not needed why to include it by default?

--thin was added https://github.com/com-lihaoyi/Ammonite/pull/941, and we settled on making it opt-in at the time (cc @lihaoyi).
I'd have a slight preference for it to be opt-out too. It leads to less surprising things down the road, such as this issue.

Or we could go for a middle ground somehow: hide Ammonite's internals by default (like --thin does), but keep exposing most com.lihaoyi::* libraries.

Or we could go for a middle ground somehow: hide Ammonite's internals by default (like --thin does), but keep exposing most com.lihaoyi::* libraries.

That would probably be sensible. Those libraries are pretty nice to have without ivy imports, but things like scalameta doesn't really need to be alongside them.

Sounds good. We have merged the PR that moved the SemanticDB classes to the org.scalameta:common module. Once the next release is out, we'll send a PR updating the Ammonite depencency to use that instead of the trees module to avoid the need for the --thin option. Thank you @alexarchambault !

Hey, are we able to hide scalameta from ammonite scripts by default now?


JNLP encryption

In Readme you have said:
"Note: Using a JNLP slave does not provide any encryption when communicating with the master. In an untrusted network this is not recommended. Use instead the ssh slave image."
But seems it's not true for now https://i.imgur.com/yHWlLn3.png. Am I correct?

@ipeacocks I think the current JNLP slave uses the old, unencrypted, variant. But you can just try it out and report back which version the image uses. If you manage to get it working with encryption I'm happy to merge a pull request.

As I can see from code:
def slave_download(target):
    if os.path.isfile(slave_jar):
        os.remove(slave_jar)

    loader = urllib.URLopener()
    loader.retrieve(os.environ['JENKINS_URL'] + '/jnlpJars/slave.jar', '/var/lib/jenkins/slave.jar')

def slave_run(slave_jar, jnlp_url):
    params = [ 'java', '-jar', slave_jar, '-jnlpUrl', jnlp_url ]
    if os.environ['JENKINS_SLAVE_ADDRESS'] != '':
        params.extend([ '-connectTo', os.environ['JENKINS_SLAVE_ADDRESS' ] ])

Python launches code via JNLP protocol from Jenkins server (master) and it provides latest version of slave.

@ipeacocks Does look good, had you a chance to try it out a test if it really works?
If yes, feel free to create a pull request that updates the documentation. :)


kubeutil manifest split should not modify a manifest body

Currently if there is a whitespace in a manifest it will be dropped from the
manifest string. This is fine more most cases, but cause an issue with
multiline strings as it changes the string.

The only actual code change is here: https://github.com/golingon/lingon/pull/48/files#diff-f9b077d07140be2998931dcccf02b6c9c260ae4f77ff90e75de34f012e05e97eR50
The rest of the changes are updating golden test cases...

Thanks for the direct link. On my way to the airport, so that was super easy to review! Thanks


Sandwich menu is not visible in all tabs of a topic

Make it visible on every tab, on "messages" tab make it after the "produce message" button.

@Haarolean this on is already fixed


[Event Request] Report 202 "Sales Document - Test" OnAfterCheckSalesDocLine

Similar to the issue #21518, there is an event OnAfterCheckSalesDoc(), but it provides possibility to access only Sales Header error list.
It would be good to have also access to Sales Line's errors.
report 202 "Sales Document - Test"
{
...
    dataset
    {
        dataitem("Sales Header"; "Sales Header")
        {
...
            dataitem(PageCounter; "Integer")
            {
...
                dataitem(CopyLoop; "Integer")
                {
...
                    dataitem(RoundLoop; "Integer")
                    {
...
                        trigger OnAfterGetRecord()
                        var
                            TableID: array[10] of Integer;
                            No: array[10] of Code[20];
                            Fraction: Decimal;
                            IsHandled: Boolean;
                        begin
                            if Number = 1 then
                                TempSalesLine.Find('-')
                            else
                                TempSalesLine.Next();
                            "Sales Line" := TempSalesLine;

                            with "Sales Line" do begin
...
                                        if not DimMgt.CheckDimValuePosting(TableID, No, "Dimension Set ID") then
                                            AddError(DimMgt.GetDimValuePostingErr());
                                    end;
                            end;
                            // New code start
                            OnAfterCheckSalesDocLine("Sales Line", ErrorText, ErrorCounter);
                            // New code end
                        end;
...
                    }
...
                }
...
            }
...
        }
...
    }
...
    // New code start
    [IntegrationEvent(false, false)]
    local procedure OnAfterCheckSalesDocLine(SalesLine: Record "Sales Line"; var ErrorText: array[99] of Text[250]; var ErrorCounter: Integer)
    begin
    end;
    // New code end
}

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.
Build ID: 52577.


The encoder-options attribute, when defined, is not applied to output result

I'm submitting a bug report

Framework Version:
1.2.1

Please tell us about your environment:

Operating System:
Linux (Ubuntu 16.04 LTS)

Node Version:
8.9.4

NPM Version:
6.0.0

JSPM OR Webpack AND Version
Aurelia CLI 0.33.0

Browser:
Chrome Version 65.0.3325.181 (64-bit)
Firefox 59.0.2 (64-bit)

Language:
all

Current behavior:
Using a modified example of the code provided here that includes encoder-options:
<file-reader
  file.bind="myFile"></file-reader>

<image-resizer
  if.bind="myFile"
  input.bind="myFile"
  output.bind="output"
  height="256"
  width="256"
  zoom.bind="zoom"
  encoder-options="0.5"></image-resizer>

The defined value is not applied to the output result.  The toDataURL default value is used.

What is the expected behavior?

The value when defined is applied to the output result.

Thank you, you can upgrade with npm ;)


If using rsync to copy data, then rsync -a option is not supported.

The article says "If using rsync to copy data, then rsync -a option is not supported."
rsync -a is just a shortcut for -rlptgoD. (https://linux.die.net/man/1/rsync)
Presumably it would be more accurate to state which of -rlptgoD are not supported.

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

ID: 5668d422-72a3-2f5c-298d-90d5b33a0613
Version Independent ID: ce9c6b4e-2d70-0074-1343-e08ec2ecb102
Content: Azure Stack Edge Pro 2 limits for device and service
Content Source: articles/databox-online/azure-stack-edge-pro-2-limits.md
Service: databox
Sub-service: edge
GitHub Login: @alkohli
Microsoft Alias: alkohli

@entropical
Thank you for bringing this to our notice. We will investigate this further and will get back to you.


Add Readme and Error when running main.py

No clear instructions on how to run your code and what is the repository about.
Running python main.py gives this error :
File "main.py", line 23     return [(lambda s: [s] + [s := s * (r - t) // (t + 1) for t in range(r)])(1) for r in range(n)]                                 ^ SyntaxError: invalid syntax

Good Evening Sir
Kindly check your telegram, I texted you regarding the problem.
Thanks.
في الجمعة، 30 سبتمبر 2022 في 5:59 م تمت كتابة ما يلي بواسطة Gcinizwe
Dlamini @.***>:

No clear instructions on how to run your code and what is the repository
about.
Running python main.py gives this error :
File "main.py", line 23 return [(lambda s: [s] + [s := s * (r - t) // (t +

for t in range(r)])(1) for r in range(n)] ^ SyntaxError: invalid syntax

—
Reply to this email directly, view it on GitHub
https://github.com/AhmadTaha96/Software-Design-With-Python/issues/2, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AVXIL2DFYVXL54U5HRMJYC3WA3553ANCNFSM6AAAAAAQZ3JQXA
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>


Residual capacities of technologies in 2030

A question for the base scenario which also will become relevant for the scenario variations:
How do we handle residual capacities of technologies which already exist in 2016 but will remain for longer than 2030? In the current format, existing capacities are also given for 2016 while non exist in 2030. That means, that the whole energy system will have to be built in 2030.
To give an illustrative example of some issues which might arise:
The politically targetted year of phasing out coal power plants is 2038, hence in 2030 coal will still be relevant in electricity generation. However, if all currently existing coal power plants are not carried over to 2030, the frameworks would have to make the decision to invest into coal power plants, which won't be usable in 2050.
My suggestion would be to extend the existing capacities to 2030 (and possibly 2050 if applicable? not sure). Of course, we would have to decide how many capacities would be carried over, since some power plants might stop producing beforehand.

From the discussion 18.02.21 the following was noted:

we take residual capacities in 2016 over to 2030 and 2050 based on the assumed remaining lifetime in 2016
coal & nuclear will be phased out in respective years according to policy measures
technologies without residual capacities in 2030 and 2050 cannot be invested in the respective year

* we take residual capacities in 2016 over to 2030 and 2050 based on the assumed remaining lifetime in 2016

In the base scenario this will not be implemented. Possible for variation 1 or 2.
2030 starts with residual capacities from 2016.
2050 will have the optimised installed capacities of 2030 as its input.

I think the last comment is not accurate anymore, just for the record

With the latest comment from Jonas, the current situation is recaped and from my perspective this is agreed by all of us so I believe we can close this?

yes I would say so

me too


Serializing node size 1 can cause error

Fix by:
if(listNode === undefined) break;

fixed in<EMAIL_ADDRESS>


Program Producer Dummy in second programming language

User Story

As a Developer,
I want to code our Java Producer Dummy in Python
to extend our Software for various programming laguages.

Acceptance Criteria

Coded in Python
Holistic Dummy with same functions as Java Producer Dummy
Functions checked: compare to first Producer Dummy via peer code review

Definition of done

deprecated- decided in team that we dont need feature anymore


token is malformed error when using zitadel

I tried this package with ZITADEL. How did you configure the zitadel project and app?
With my config i get this error after login:
token is malformed: token contains an invalid number of segments

Hi @vanlueckn
this is my ZITADEL config:
Application Type: Web
Response Types: Code
Authentication Method: Basic
Grant Types: Authorization Code
Under "Token Settings" make sure you set Auth Token Type to JWT.
I think this is the cause for this error.

Thank you, it does work now


Is there a easy way to script?

I mean, I see many companies here selling bots from hubot using diagrams to build and stuff like that. Is there a kind of website where we can do it for free or need to be manual?

Belated answer, but: the website for how to script is at https://hubot.github.com/docs/#scripts


assert self._unsub_sun is not None

What happened?
I get this error in the log when calculating or reseting buckets.
How to reproduce
Wait automatic calculation at 23:00
config_entry-smart_irrigation-97016f6e7231a5e3167776bdd9b143c9.json.txt
Relevant log output
2023-10-20 23:00:00.357 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/home/homeassistant/.homeassistant/custom_components/smart_irrigation/__init__.py", line 541, in _async_calculate_all
    return
  File "/home/homeassistant/.homeassistant/custom_components/smart_irrigation/__init__.py", line 920, in register_start_event
    await self.handle_reset_all_buckets(None)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/homeassistant/lib/python3.11/site-packages/homeassistant/helpers/event.py", line 1558, in async_detach
    assert self._unsub_sun is not None
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError

Which version are you running?
v2023.9.3
Diagnostics file

[X] I have attached a diagnostics file

Additional information
No response

I can't reproduce this :( @gatonero are you still seeing this? You confirmed it was gone in beta 5.

I haven't seen this since then again.

Hello, sorry, you're right, I am not getting it anymore now.
You can close the bug.


Doesn't build on Ubuntu 14.04

Currently attempting to run docker-slim and docker-slim-sensor on Ubuntu and I've gotten
"bash :./docker-slim: cannot execute binary file: Exec format error"
Is there anyway to convert the Mac binary to be compatible with Linux?

The released binaries are for Macs. You can build it for Linux too. The command to do that is commented out in scripts/src.build.sh (gox -osarch="linux/amd64" -output="$BDIR/bin/linux/docker-slim").
If you are ok with waiting a bit the next release binaries will include Linux versions too.

Oh, wow sorry about thanks for the tip. Just out of curiosity how long is going to be till the next release. Also, I would be willing to help if you need someone for go stuff :)

The next release will be done by the end of this weekend. However, I also updated the current release to include Linux binaries: https://github.com/cloudimmunity/docker-slim/releases/download/1.11/dist_linux.zip
Yes, it'll be great if you could help. What would you like to do? Any preferences or ideas?

hey sorry about the late response but what would you need done? I'm pretty much getting into go myself and I would like to help with anything. So, what can I do for you?


Serialize contracts

Implement serialization for contract::Contract struct.
This is required for gnosis/ethcontract-rs/170.

Tests are still in progress.

The clippy check fails on code that wasn't modified in this PR. I'll fix this in a separate PR and rebase this one.

Fixed clippy in #227.

Branch rebased, all checks passed.

a bunch of types that could make use of deriving it instead of manually implementing

I've tried to use deriving where possible. Are there anything I've missed?

I mean the existing manual Deserialize implementations. I didn't look too hard but it felt like some of them could make use of https://serde.rs/attributes.html to derive in more places. Don't think we have to look at it for this PR though.


it does work in vim, but does not work in mccvim

it does work in vim, but does not work in mcvim

By mcvim, do you mean MacVim? I don't use Mac myself, so you would need to make much more specific bug report (e.g. what are your settings / mappings, what exactly does not work, etc.).


GRPC 1.4.4 for PHP error on Mac OSX (and timeout on Linux)

MAC OSX
When calling the gRPC libraries on Mac OX, I receive the following error:
E0808 14:59:19.592674000<PHONE_NUMBER>34944 sync_posix.c:60]              assertion failed: pthread_mutex_lock(mu) == 0
/usr/local/bin/phpunit: line 2: 81049 Abort trap: 6           /usr/bin/env php -d allow_url_fopen=On -d detect_unicode=Off /usr/local/Cellar/phpunit/5.3.2/libexec/phpunit-5.3.2.phar "$@"

I've also received this error:
line 2: 84323 Segmentation fault: 11  /usr/bin/env php -d allow_url_fopen=On -d detect_unicode=Off /usr/local/Cellar/phpunit/5.3.2/libexec/phpunit-5.3.2.phar "$@"

To further confuse things, occasionally the tests pass, but a warning is thrown after execution:
/usr/local/bin/phpunit: line 2: 84797 Abort trap: 6           /usr/bin/env php -d allow_url_fopen=On -d detect_unicode=Off /usr/local/Cellar/phpunit/5.3.2/libexec/phpunit-5.3.2.phar "$@"

This error only takes place on a SPECIFIC TEST, even though there are 5 other tests that all use the GRPC extension. The specific call here is DLP::ListInfoTypes. I am looking into this call to find any clues as to why this one would throw an error.
UPDATE I also have now received this error
Assertion failed: (prior > 0), function gpr_ref_non_zero, file /private/tmp/pear/temp/grpc/src/core/lib/support/sync.c, line 106.

Linux
These travis builds install using pecl install grpc, but when the extension is called (the tests that run in the dlp/ directory), the call hangs and the build times out after 10 minutes.

Breakthrough for MAC OSX
The error is thrown for that specific function because in that test, two GRPC calls are made. So the issue is that the GRPC connection is used twice. If I make two GRPC calls in any one PHP request, I can reproduce the error.

I am actively looking into this

Here are my php config options for PHP 7.1:
--prefix=/usr/local/Cellar/php71/7.1.8_20 --localstatedir=/usr/local/var --sysconfdir=/usr/local/etc/php/7.1 --with-config-file-path=/usr/local/etc/php/7.1 --with-config-file-scan-dir=/usr/local/etc/php/7.1/conf.d --mandir=/usr/local/Cellar/php71/7.1.8_20/share/man --enable-bcmath --enable-calendar --enable-dba --enable-exif --enable-ftp --enable-gd-native-ttf --enable-mbregex --enable-mbstring --enable-shmop --enable-soap --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-wddx --enable-zip --with-freetype-dir=/usr/local/opt/freetype --with-gd --with-gettext=/usr/local/opt/gettext --with-iconv-dir=/usr --with-icu-dir=/usr/local/opt/icu4c --with-jpeg-dir=/usr/local/opt/jpeg --with-kerberos=/usr --with-mhash --with-ndbm=/usr --with-png-dir=/usr/local/opt/libpng --with-xmlrpc --with-zlib=/usr --with-readline=/usr/local/opt/readline --without-gmp --without-snmp --with-libxml-dir=/usr/local/opt/libxml2 --with-pdo-odbc=unixODBC,/usr/local/opt/unixodbc --with-unixODBC=/usr/local/opt/unixodbc --with-bz2=/usr --with-openssl=/usr/local/opt/openssl --enable-fpm --with-fpm-user=_www --with-fpm-group=_www --with-curl --with-xsl=/usr --with-ldap --with-ldap-sasl=/usr --with-mysql-sock=/tmp/mysql.sock --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --disable-opcache --enable-pcntl --enable-dtrace --disable-phpdbg --enable-zend-signals

Should be fixed in 1.4.6


fix,tests: Improve search for Pulumi.yml and Pulumi.yaml to prevent 'not found' message; Add tests for Pulumi section

Description
With the current version of the Pulumi section each time that I arrive at a folder without the Pulumi.y*ml file the console adds an unneeded message spaceship_pulumi:6: no matches found: Pulumi.y*ml.
On this PR I improved the Pulumi search file since YAML only has two possible extensions .yml & .yaml; also I added test for this section.
Screenshot

Tests passing

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

good bro good
Denys Dovhan @.***>, 27 Mar 2024 Çar, 15:07 tarihinde
şunu yazdı:

🎉 This PR is included in version 4.15.1 🎉
The release is available on:

npm package @.*** dist-tag)
https://www.npmjs.com/package/spaceship-prompt/v/4.15.1
GitHub release
https://github.com/spaceship-prompt/spaceship-prompt/releases/tag/v4.15.1

Your semantic-release
https://github.com/semantic-release/semantic-release bot 📦🚀
—
Reply to this email directly, view it on GitHub
https://github.com/spaceship-prompt/spaceship-prompt/pull/1417#issuecomment-2022609206,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AM72X4YLWOKDC6BLCCJ2AYTY2KR5NAVCNFSM6AAAAABBP7N776VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRSGYYDSMRQGY
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>


illegal memory access

Please take a look at the following:
nvcc -O3 -arch=sm_80 test_radik.cu -lcurand
Please enter BATCHSIZE:
16
Please enter power of N(max val 29):
29
Please enter K:
512
Please enter RANDOM_TASK:
0-each task length in this batch will be N
1-each task length in this batch will fluctuate randomly between 0.9 * N and 1.1 * N
0
Please choose whether scaling or not (0: N, 1: Y)
0
batchSize: 16, K: 512
[0, 536870912]
[1, 536870912]
[2, 536870912]
[3, 536870912]
[4, 536870912]
[5, 536870912]
[6, 536870912]
[7, 536870912]
[8, 536870912]
[9, 536870912]
[10, 536870912]
[11, 536870912]
[12, 536870912]
[13, 536870912]
[14, 536870912]
[15, 536870912]
terminate called after throwing an instance of 'std::runtime_error'
what():  cuda call failed (700) at topk_radixselect.h:150 : an illegal memory access was encountered
Aborted (core dumped)

I believe this is due to GPU OOM. Please try with smaller batch sizes or smaller N.


Security: Can't find lead maintainer email

Hey team, happy new year!
Your security policy suggests sending an email to the lead maintainer @dougwilson but I can't seem to find it anywhere...
Am I missing something?

You can find it in the license, package.json and in commits authored @dougwilson.

Thanks a lot! :)

Thanks for your fast response guys! haha your vigilance makes absolute sense😅
We run a bug bounty board where we pay researchers and maintainers for securing open source code called huntr.dev ~
I sent you the magic links to the reports so there's no need to give us your GitHub token or anything and you can visit our website to validate our legitimacy...
I defaulted to that rather than copy pasting the POCs because unless you approve the disclosures through huntr, the participants won't get paid... but maybe I should follow up with the POCs so that you can give them a preliminary scan?

sorry for the redundancy, just got your email :)

Haha, it's ok. I'm not sure what hunder.dev is, but we only accept reports via email. We have not signed up to use any kind of site to manage our reports, as we don't do anything like fund bounties (this project doesn't have any funds program currently) and we have an account to issue our own CVEs when they arrise.

https://huntr.dev/policy

Respect a project's policies (e.g. Terms & Conditions, Security Policy), as defined on their GitHub/Website

It looks like huntr.dev "encourage all of [their] security researchers" to follow our policy, which is to include all the details in the email body. I would encourage you to do so, as it looks like from huntr.dev that not doing so "can lead to further actions being taken such as the loss of bounties and account suspension."

Yes, thanks for taking the time to go through the policy!
For the record, we sponsor the bounties (more accurately, a mystery corporate sponsor that depends on express does) and if you ever decide to join the platform, you can award the fix bounty to yourself or whoever patched the vulnerability.
It's our way of addressing the funding problem with open source security – currently the researcher gets $500 for finding a vul in express and the maintainer $125 for fixing it.
But we can forward any future disclosures we receive in express via email if that's what you prefer :))


Image not loading in the documentation: BasicContent/HowtoConfigureApersonalGithubPage

This picture is relatively large. It may be because of the network on your side. It looks fine to me.


Scroll long output

As reported in this more general SO question
https://stackoverflow.com/questions/72260604/output-scroll-with-sphinx-in-jupyter-notebook
Is ti possible using nbsphinx to enable the scroling behaviour for long output?
I have tried to add the output_scroll tag to my cells, but it doesn't seem to work.

See #372, #417.


Introduce version 0.8

Changes:
More task generators
Get task using its exercise
Separate pages (bug fix) --> new page system
Updated theming --> fixing some colors
New page hierarchy --> removed some nested pages
Some page's design is changed

Get task using its exercise -> is going to be delayed or not added. Reason: some weird behavior is found.

Also new update system for Windows is going to be implemented earlier 1.0 :P


OnBeforeDeleteEvent example syntax error

Hi Business Central Docs Team,
I believe there is an error in the the example syntax. I've copy pasted the example
[EventSubscriber(ObjectType::Table, Database::<Table Name>, 'OnBeforeDeleteEvent', '', <SkipOnMissingLicense>, <SkipOnMissingPermission>)]
local procedure MyProcedure(Rec: Record, RunTrigger: Boolean)
begin
    ...
end;

However, there should be a semicolon between the function parameters instead of the comma. The line could look like the below.
local procedure MyProcedure(Rec: Record <Table Name>; RunTrigger: Boolean)

Would be happy to create a PR but couldn't find the ModernDev repo.

Thanks and kind regards,
Alex

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

ID: bc731d55-d904-c284-30e4-7b1b58ad7181
Version Independent ID: ef9713f7-0cd1-9555-fa21-17627d1a6a00
Content: OnBeforeDeleteEvent (Table) Trigger Event - Business Central
Content Source: dev-itpro/developer/triggers-auto/events/table/devenv-onbeforedeleteevent-table-trigger.md
Service: dynamics365-business-central
GitHub Login: @SusanneWindfeldPedersen
Microsoft Alias: solsen

It looks related to this https://github.com/MicrosoftDocs/dynamics365smb-devitpro-pb/issues/1987


Items are shown with double the amount

When placing anything into the storage it will be shown with double the amount.
Minecraft Version: 1.18
Fabric Version: 0.12.12
I connect my chest via trims and 1 connector.
I tested this with normal chests and it is the same issue so i dont think the iron chests are at fault here

Same here.

I'm having same problem with the double chests showing double but when I make them all single chests they show correct.amount

Duplicate #69


Upgrade to syn 2.0.0

This PR bumps the syn dependency to version 2.0.0
It also removes the default features of proc-macro-error (which weren't used) to remove the transitive dependency on syn 1.0.0.

Thank you!


Gradle 4.4, app crash on getAll?

Hi all, recently I updated my rn project in order to use gradle 4.4 (because of firebase integration) and suddenly my app started crashing everytime I call the getAll method.
Sadly I'm not even able to debug it natively since I've got some gradle problems there
Is it possible that these two things are correlated?
I also tried to apply this PR #258 manually, but it didn't work

Thanks, we've solved it!
Basically we changed the target sdk too while editing the build.gradle and with that one (27), it's needed the permissions request... without it the app crashes
PS. I'm strongly convinced that it depends on the target sdk and not on the android OS version as someone else stated in some other issue, this because I've never changed the os version on the emulator

Got it. I'll leave this open in case others run into issues as well.

我也遇到这个问题

@dltjiangfeipeng really?
So you believe we should all know your language? 😅

How did you fix it

@giacomocerquone   我刚遇到，还没有解决，谢谢

+1

I wrote in my second-last comment (https://github.com/rt2zz/react-native-contacts/issues/303#issuecomment-392618137) how I fixed it guys... if this doesn't work for you, sadly I can't do nothing! The library too has its problems, so it may be something else (see this for example #247 or this #291)

Thanks @giacomocerquone
i tried that and it doesnt work for me :( still get crash when i called getAll...

Fix is up in https://github.com/rt2zz/react-native-contacts/pull/324