Error when clicking "more" and having exactly 10 books.

Deploy part 2 - using datastore > visit /books > click "more" > Internal server error

Can you send over any stacktrace? Does this occur locally?
On Mon, Oct 12, 2015 at 1:05 PM Shun Fan<EMAIL_ADDRESS>wrote:

Deploy part 2 - using datastore > visit /books > click "more" > Internal
server error
—
Reply to this email directly or view it on GitHub
https://github.com/GoogleCloudPlatform/getting-started-python/issues/8.

Seems to happen locally as well.
<IP_ADDRESS> - - [12/Oct/2015 13:18:27] "GET /books/?page_token=CkUKEwoFdGl0bGUSChoIdGhlb2RvcmUSKmoVc35iaWd0YWJsZS1zZmFuLXRlc3QxchELEgRCb29rGICAgIC+goMKDBgAIAA= HTTP/1.1" 500 -
Traceback (most recent call last):
File "/Users/sfan/.homebrew/lib/python2.7/site-packages/flask/app.py", line 1836, in call
return self.wsgi_app(environ, start_response)
File "/Users/sfan/.homebrew/lib/python2.7/site-packages/flask/app.py", line 1820, in wsgi_app
response = self.make_response(self.handle_exception(e))
File "/Users/sfan/.homebrew/lib/python2.7/site-packages/flask/app.py", line 1403, in handle_exception
reraise(exc_type, exc_value, tb)
File "/Users/sfan/.homebrew/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app
response = self.full_dispatch_request()
File "/Users/sfan/.homebrew/lib/python2.7/site-packages/flask/app.py", line 1477, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/Users/sfan/.homebrew/lib/python2.7/site-packages/flask/app.py", line 1381, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/Users/sfan/.homebrew/lib/python2.7/site-packages/flask/app.py", line 1475, in full_dispatch_request
rv = self.dispatch_request()
File "/Users/sfan/.homebrew/lib/python2.7/site-packages/flask/app.py", line 1461, in dispatch_request
return self.view_functionsrule.endpoint
File "/Users/sfan/test/2-structured-data/bookshelf/crud.py", line 26, in list
books, next_page_token = get_model().list(cursor=token)
File "/Users/sfan/test/2-structured-data/bookshelf/model_datastore.py", line 57, in list
entities, more_results, cursor = it.next_page()
File "/Library/Python/2.7/site-packages/gcloud/datastore/query.py", line 391, in next_page
pb.start_cursor = base64.b64decode(start_cursor)
File "/Users/sfan/.homebrew/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/base64.py", line 76, in b64decode
# Transform this exception for consistency
TypeError: Incorrect padding

Thanks! Will investigate.
On Mon, Oct 12, 2015 at 1:20 PM Shun Fan<EMAIL_ADDRESS>wrote:

Seems to happen locally as well.
<IP_ADDRESS> - - [12/Oct/2015 13:18:27] "GET
/books/?page_token=CkUKEwoFdGl0bGUSChoIdGhlb2RvcmUSKmoVc35iaWd0YWJsZS1zZmFuLXRlc3QxchELEgRCb29rGICAgIC+goMKDBgAIAA=
HTTP/1.1" 500 -
Traceback (most recent call last):
File "/Users/sfan/.homebrew/lib/python2.7/site-packages/flask/app.py",
line 1836, in call
return self.wsgi_app(environ, start_response)
File "/Users/sfan/.homebrew/lib/python2.7/site-packages/flask/app.py",
line 1820, in wsgi_app
response = self.make_response(self.handle_exception(e))
File "/Users/sfan/.homebrew/lib/python2.7/site-packages/flask/app.py",
line 1403, in handle_exception
reraise(exc_type, exc_value, tb)
File "/Users/sfan/.homebrew/lib/python2.7/site-packages/flask/app.py",
line 1817, in wsgi_app
response = self.full_dispatch_request()
File "/Users/sfan/.homebrew/lib/python2.7/site-packages/flask/app.py",
line 1477, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/Users/sfan/.homebrew/lib/python2.7/site-packages/flask/app.py",
line 1381, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/Users/sfan/.homebrew/lib/python2.7/site-packages/flask/app.py",
line 1475, in full_dispatch_request
rv = self.dispatch_request()
File "/Users/sfan/.homebrew/lib/python2.7/site-packages/flask/app.py",
line 1461, in dispatch_request
return self.view_functionsrule.endpoint http://**req.view_args
File "/Users/sfan/test/2-structured-data/bookshelf/crud.py", line 26, in
list
books, next_page_token = get_model().list(cursor=token)
File "/Users/sfan/test/2-structured-data/bookshelf/model_datastore.py",
line 57, in list
entities, more_results, cursor = it.next_page()
File "/Library/Python/2.7/site-packages/gcloud/datastore/query.py", line
391, in next_page
pb.start_cursor = base64.b64decode(start_cursor)
File
"/Users/sfan/.homebrew/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/base64.py",
line 76, in b64decode
Transform this exception for consistency
TypeError: Incorrect padding
—
Reply to this email directly or view it on GitHub
https://github.com/GoogleCloudPlatform/getting-started-python/issues/8#issuecomment-147509678
.

https://github.com/GoogleCloudPlatform/getting-started-python/blob/master/bookshelf/model_datastore.py#L56
I think it has to do with this line. You return a token if there are 10 books, but if there are exactly 10 books, it will try to load an additional page when there aren't any more books.
Seems like there should be the same issue in the cloudsql backend.

@dhermes sigh, cursors aren't encoded with the urlsafe base64 encoding. Is there any reason for this? Should user apps just explicitly translate to urlsafe or do you feel like this should be fixed in gcloud-python?

Here's your sign line:
https://github.com/GoogleCloudPlatform/gcloud-python/blob/7e999cfb0af59712a4106c51b63325b5b63addaa/gcloud/datastore/query.py#L424

I don't have an opinion on urlsafe vs. regular b64. Maybe someone else does?

I have a pretty strong opinion that we should use urlsafe, especially given the context that a cursor is very often passed around via URLs or forms.
Also, ndb's cursors objects that serialize to urlsafe b64, so pleaseeeeee? :D

I'm super busy for the next 7-10 days. Care to send a PR (I can code review from my phone on public transit, can't write code though)?

Absolutely. Thanks!

:+1: Thank YOU Jon

Closing this, as it should be fixed upstream.


Merged class namespace types not visible from a subclass

TypeScript Version:  2.2.1
I have a namespace merged with a class. This namespace has exported types as well as values. The exported values are accessible from (inherited by) derived subclasses, but the exported types are not. I can't seem to find anything about this in the language spec, but my intuition is that the types would be inherited as well, unless overridden by the subclass.
class Foo {
  a: number;
}

namespace Foo {
  export interface IStuff {
    thing: string;
  }
  export class Data {
    value = 'data';
  }
  export const apple = 42;
}

class Bar extends Foo {
  b: number;
}

namespace Bar {

}

let stuff: Bar.IStuff;       // not okay: "Namespace 'Bar' has no exported member 'IStuff'."
let data: Bar.Data;          // not okay: "Namespace 'Bar' has no exported member 'Data'."
let data2 = new Bar.Data();  // okay `data2` has type 'Foo.Data'
let apple = Bar.apple;       // also okay

I don't think there's support for types inside classes to begin with, which is probably why this is happening. Personally, I would certainly appreciate that feature.

I am not sure why we even support Bar.apple as a value..

This would be a breaking change if modified -- it's legal to declare a new IStuff inside Bar today and that already has a meaning; we can't change it now.


IE11: not posting FormData correctly if request has 'Content-Type' set

This works in IE11:
var request = {
  method: 'POST',
  body: new FormData(document.getElementById('ContactUsForm')),
  credentials: 'same-origin',
  mode: 'no-cors',
  cache: 'default'
};
fetch('/Company/SubmitContactUs',  request);

However, when I add 'Content-Type', like below:
if (options.isJson) { request.headers = { 'Content-Type': 'application/json' }; }
It does not get picked up correctly by my back end application (ASP MVC Core). Basically, nothing binds correctly.
This works in all other browsers, including Edge. The only browser with the problem is IE11 (and probably below).
Doing request.headers = { 'Content-Type': null }; also causes it to not work. However, without any content type, it works well.
POST result:
Without setting "Content-Type"
Content-Type: multipart/form-data; boundary=---------------------------7e23621391bde
After setting "Content-Type" to json (Not working)
content-type: application/json, multipart/form-data; boundary=---------------------------7e22c935391bde
"Content-Type" in Chrome, even after setting json (works).
Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryrvtIIT7v5nQSWYLl
Any idea? Are content-type not supposed to add "application/json"?  or if it's FormData, am I never supposed to mess with "content-type"?

I had a similar problem within another project. but want to share these article which explains this issue and how to fix them.
article summary:

the issue only happens when the last form element is a checkable input and is not checked, adding another hidden input that has arbitrary name is a workaround:

https://blog.yorkxin.org/2014/02/06/ajax-with-formdata-is-broken-on-ie10-ie11.html


Check out railties to auto add the ascii serializer directory

@darkhelmet I played around with this over Xmas... and... you can't add to the autoload path in a railtie... and railties don't exist in 2.3 apparently.


WASM support

jsonschema could be used right now in e.g. wasm32-wasip1 if compiled with --no-default-features. However, there are a few usability issues that obscure the whole WASM story.
Documentation & error messages

[x] Add a separate section about WASM that will explain how to compile jsonschema and how to use it
[x] Better compile errors, specifically for WASM (like tokio does)

Run tests on WASM

[ ] Do not use mockito on wasm32, but rather a custom in-memory resolver with all things. Actually, it could be an even better way to go outside of wasm - fewer deps, simpler & faster test suite.
[x] Add another CI job for it (use wasmtime)

Demo website
Similar to what I have for https://css-inline.org, I'd like to have some bindings to run jsonschema in a browser.
HTTP(S) reference resolving
In a browser, it could be feasible to use some custom resolver that will use wasm-bindgen-futures to make calls (or reqwest), but it will require support for non-blocking resolving.

Running test suite will come later, as well as js bindings & a website


[NFC] clean-up collectExistentialConformances

reword a comment, remove incorrect method from its request.

@swift-ci smoke test


Assure return None annotation for each function which shouldn't return any value.

Suggest we ignore this rule for tests, just seems overkill and mypi doesn't seem to care either.


Drop dependency on "buffer" by replacing "keccack" library

Solves https://github.com/spruceid/siwe/issues/106.
The dependency "keccak" makes use of the "Buffer" API, which causes issues as seen here: https://github.com/spruceid/siwe/pull/103 .
Replacing that library with the minimalistic noble hash function should be enough to solve these issues.

It looks like main branch tests are still flaky:

Should be good now: https://github.com/spruceid/siwe/pull/115


up cake version to 0.26.1

@vaital3000 Thank you for the PR. The package is currently validating on nuget, so it should be up soon-ish


Bump patch version

Patch bump seemed okay to me but a minor could also be in order if #151 has the potential to adversely affect any code that was assuming FFTW defaulted to multiple threads.

Actually, disregard this. The patch version was already bumped in #149.


Error: Couldn't launch the stream

Whenever I attempt to open a stream it comes up with "Error: Couldn't launch the stream" followed by this:
"usage: livestreamer.exe [OPTIONS] [URL] [STREAM] livestreamer.exe: error: unrecognized arguments: ----default-stream=source"
Before I couldn't even launch a stream and once I reinstalled both livestreamer and twitch gui this error message starts coming up, is there anything I could fix in a config file?

Hi!
The --default-stream livestreamer parameter is not used by the application, so the issue must be in your livestreamer config or maybe you're using an alias for the livestreamer executable. See here: http://livestreamer.tanuki.se/en/latest/cli.html#cmdoption--default-stream

Sorry, I don't really know what half of this means. Does that mean I should delete something from the config file and how do I tell if I'm using an alias? Thanks.

:+1:


Supporting aarch64-apple-darwin

I was hoping that OpenSSL would accept the PR that adds support to their build system for aarch64-apple-darwin, but with 1.1.1h released without it, it seems unlikely by the end of 2020. As such, I'd like to discuss how the project feels about applying our own patches on top of the official release.
Specifically, the patch in question only modifies the build system to use existing pieces in new ways.
With that applied, and a single line added to this crate to map target triples, it's possible to cross-compile to aarch64-apple-darwin:
% SDKROOT=$(xcrun -sdk macosx11.0 --show-sdk-path) MACOSX_DEPLOYMENT_TARGET=$(xcrun -sdk macosx11.0 --show-sdk-platform-version) cargo +462ec6baef52edea591eab1a070ed4e18b80d094 build --target=aarch64-apple-darwin --features vendored
   Compiling cc v1.0.60
   Compiling pkg-config v0.3.18
   Compiling autocfg v1.0.1
   Compiling libc v0.2.77
   Compiling bitflags v1.2.1
   Compiling foreign-types-shared v0.1.1
   Compiling openssl v0.10.30 (/Users/shep/Projects/rust-openssl/openssl)
   Compiling cfg-if v0.1.10
   Compiling lazy_static v1.4.0
   Compiling foreign-types v0.3.2
   Compiling openssl-src v111.10.2+1.1.1g (/Users/shep/Projects/openssl-src-rs)
   Compiling openssl-sys v0.9.58 (/Users/shep/Projects/rust-openssl/openssl-sys)
    Finished dev [unoptimized + debuginfo] target(s) in 29.71s

This should make it possible to build Cargo for this platform as well.

It feels kind of bad, but given that it's already shipping in Homebrew maybe not the worst option: https://github.com/openssl/openssl/pull/12369#issuecomment-683977255

Ah yes, I meant to mention that we wouldn’t be the first to go down that path.

We already do a bit of munging for MUSL here: https://github.com/alexcrichton/openssl-src-rs/blob/master/src/lib.rs#L449, so this could follow that pattern.

Yeah given how small the patch is I think it's fine to get it working here in this crate locally, and we can remove the workaround when it's released upstream.


v1.70: incorrect sagemaker resource naming

Hi!
After upgrading module from 1.67 to 1.70 started getting this error:
Error: Error asking for user input: Error parsing address 'module.vpc.aws_vpc_endpoint.sagemaker.runtime': Unexpected value for InstanceType field: "runtime"

Looks like it relates to a typo in name of resource (sagemaker.runtime vs sagemaker_runtime):
https://github.com/terraform-aws-modules/terraform-aws-vpc/blob/79d3a3560a39545a099820f48c3e051db4baf1dc/vpc-endpoint.tf#L916
@DrFaust92

It was a mixup on my part as there is not uniform way that Endpoints are named.
some are "endpoint-name" and some are "endpoint.name".

@klebediev Please use v1.71.0.

Thanks, guys!


Fix up libpod.conf man pages and referencese to it.

Remove podman --config option, since it does not do anything.
Signed-off-by: Daniel J Walsh<EMAIL_ADDRESS>

I figured I would open a PR for the less controversial parts of https://github.com/containers/libpod/pull/1406

I think we should just implement --config - I know this worked originally, but it might have been broken around the original Varlink changes.

Just need a GlobalIsSet("config") and if it is set, call NewRuntimeFromConfig instead of NewRuntime

Changes LGTM

We are getting weird spurious failures.

@rh-atomic-bot r=mheon


How do I change the micro themes to use the same background as my terminal background?

Specifications

Commit hash: 2.0.9
OS: Ubuntu 22.04.1 LTS x86_64
Terminal: zsh 5.8.1

Just omit the 2nd color in a color-link spec, e.g. use "#F8F8F2" instead of "#F8F8F2,#282828".

@dmaluka , I don't know what you mean. Can you please explain step-by-step how to do this?

A colorscheme file consists of lines like the following:
color-link comment "#75715E,#282828"

which specifies 2 colors: #75715E as the foreground color and #282828 as the background color. If the second color is omitted, i.e. in this example if the line is the following:
color-link comment "#75715E"

then it means that the terminal background color is used instead of #282828.
So if you are already using a custom colorscheme file in your ~/.config/micro/colorschemes directory, you can modify this file: remove this custom background color from all the lines where it occurs, e.g. with the above example, replace color-link comment "#75715E,#282828" with color-link comment "#75715E" and similarly for all other lines where #282828 occurs as the background color. BTW it can be easily done by opening the colorscheme file in micro and running the command:
replace ",\\#282828" "" -a

If you are using not a custom scheme but one of the built-in Micro's schemes, for example the default one, then you can copy its colorscheme file from runtime/colorschemes in Micro source to your ~/.config/micro/colorschemes and modify it as described above.


crypto: remove crypto crate in favor of fastcrypto

closing in favor of https://github.com/MystenLabs/narwhal/pull/823


Update Readme to have proper markdown title sizes

#12 I should look at existing PR's before proposing fixes... lol mb.


Validate OTP

Hi dear friend @mohammad-fouladgar  @50bhan  @MizouziE
I used the package that you took pains to write and came across the following things that I think are bugs and it is very important.
The first thing is that in the config:
token_length and token_lifetime are set to OTP_TOKEN_LENGTH, which should be separate
The second case is in the approval of the OTP use code :
I have set the token_lifetime parameter to 2 minutes and it is stored correctly in the database, but when validating it, it allows login even though its time has expired.
public function verifyOtp()
    {
        try {
            $user= OTP()->useProvider('users')->validate($this->mobile,$this->token);
            Auth::loginUsingId($user->id);
            $this->emit('showAlert','ورود موفق');
            return  redirect()->route('panel.dashboard.index');
        } catch (InvalidOTPTokenException $exception){
            $this->emit('showAlert',"توکن منقضی شده یا نامعتبر است.",'متاسفیم','error');
            $this->emit('verfiyOtp',['mobile' => $this->mobile]);
        } catch (Throwable $ex) {
            $this->emit('showAlert', 'کد وارد شده صحیح نمیباشد','متاسفیم!','error');
            $this->emit('verfiyOtp',['mobile' => $this->mobile]);
        }
    }

I use livewire and that's why I used this method
Because OTPService could not be defined in the mount method.

Hi @rezakiamanesh . Thank you for reporting this issue. I fixed that.

Hi @rezakiamanesh . Thank you for reporting this issue. I fixed that.
Now, you can use and test the latest version v3.0.1.


Hide access_token from appearing in logs. Now the log  line is masked…

… with NOT_LOGGING_PARAMETER

the issue has been addressed in a more common way


TEST ONLY

build

build

build

build

@NvTimLiu the Scala 2.13 support has been merged -- is this still needed?

@NvTimLiu the Scala 2.13 support has been merged -- is this still needed?

this should be used for test only. Tim is on vacation, let me close this one for now


Merge 2.5.4 fixes

Test will fail in this branch since black upgrade is in https://github.com/zillow/metaflow/pull/164 to reduce number of files to be reviewed.


waller-server docker image seems to be broken

The lbry/wallet-server:latest-release docker image seems to be broken. It fails with the following message...

/entrypoint.sh: line 23: /home/lbry/.local/bin/lbry-hub-elastic-sync: No such file or directory

This script is referenced in the entrypoint.sh file...
https://github.com/lbryio/lbry-sdk/blob/master/docker/wallet_server_entrypoint.sh
This file isn't copied in the Dockerfile and that hasn't been edited for a while so I'm not sure why this error has happend...
https://github.com/lbryio/lbry-sdk/blob/master/docker/Dockerfile.wallet_server
FYI - I use this image in the following GitHub CI https://github.com/ansible-collections/community.lbry/actions/runs/2961875512/jobs/4738804298
This started failing around 2 months ago.

It's cause wallet-server is being replaced by https://hub.docker.com/r/lbry/hub


Fix the under-spawning of haulers

This issue is the result of no recording of path lengths in memory anymore


Added missing plugins and client-plugins folders in prod docker

Not creating these additional subfolders to mount into docker was causing problems when trying to activate and run plugins (e.g., Jira)

Switching reviewers over to @levb and @cpanato for their expertise context in plugins and docker.

I am a little confused here.

Why do we need to pre-create these folders?
I am unaware of client-plugins - what is it used for?

Hey @levb  - So those changes came about through a journey of helping a customer get their PoC environment running with the Jira plugin.  They were having permissions issues, and I start reviewing docs to reproduce:

First https://docs.mattermost.com/install/prod-docker.html#production-docker-setup-on-ubuntu.  Note step 3.
Second https://github.com/mattermost/mattermost-docker#startingstopping-docker.  Note the equivalent line mentions a mkdir for the plugins folder.

I testing this change and it resolved things for me.  I recommended it to the customer and it fixed their issue.
Admittedly I'm very new to docker stuff.... @cpanato - Do you have the concrete answer?
client-plugins was more for symmetry with what I saw happening in the app Dockerfile with all those folders.


Add an Upgrading Kubernetes lab.

Document how to upgrade a Kubernetes cluster.

I'm going to leave upgrades out of this guide mainly because I don't have the bandwidth to do it here. Upgrading Kubernetes depends on the version and gets into areas such as backups and updating configs: enough moving parts to require it's own detailed guide.


Update spacy.gold to offsets_to_biluo_tags

Description
This suggestion updates the spacy methods in order to use latest package version available. According to this documentation, spacy.gold was replaced by spacy.training with different method signatures.
Fixes #35
Type of change
Please delete options that are not relevant.

[x] Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

[x] Exported a .jsonl dataset from doccano and converted to spacy() format.

Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[x] Any dependent changes have been merged and published in downstream modules

@Hironsan 正しいPRと思います ! : )


Custom attribute tooltip is overwritten

Issue:
When using a MinMaxSlider and a ToolTip attribute, the text passed to the Tooltip gets overwritten with the currently selected min value the currently selected max value and the range between those two values.

Actual:

Min: 1
Max: 1
Range: 0

Expected:

Sets the frequency of the sound. Use this to slow down or speed up the sounds.
Min: 1
Max: 1
Range: 0

Example code:
#if UNITY_EDITOR
        [MinMaxSlider(-3, 3f, SliderFieldPosition.Left, SliderFieldPosition.Right)]
#endif // UNITY_EDITOR
        [Tooltip("Sets the frequency of the sound. Use this to slow down or speed up the sounds.")]
        public Vector2 pitch2 = new Vector2(1f, 1f);

Library code:
The library seems to check if the actual content.tooltip isn't empty and if it isn't append the text instead. From what I could debug tough the content.tooltip, is always null even tough there is a Tooltip attribute and switching the lines so that the [Tooltip("")] is  before or after [MinMaxSlider()] didn't matter.

I edited some code and it seems I fixed it.

As far as I know the main culprit was not passing the GUIContent from the OnGUI into the constructor but instead creating a new label from the property.displayName attribute with the EditorGUIUtility.TrTempContent(label) method.
This causes the tooltip to be always empty because we are actually creating a completely new GUIContent object that does not retain the previously changed information.

I only fixed it for the MinMaxSliderInt for now to test it. See the adjusted constructor below (The other 2 constructors are not needed anymore, because we don't need to construct a GUIContent ourselves from the property.displayName.
public static void MinMaxSliderInt(Rect position, SerializedProperty property, GUIContent label, int minLimit, int maxLimit, SliderFieldPosition minValueFieldPosition = MinMaxSliderAttribute.DefaultMinFieldPosition, SliderFieldPosition maxValueFieldPosition = MinMaxSliderAttribute.DefaultMaxFieldPosition)
{
        var propertyLabel = EditorGUI.BeginProperty(position, label, property);
        Vector2Int value = property.vector2IntValue;
        EditorGUI.BeginChangeCheck();
        value = MinMaxSliderInt(position, propertyLabel, value, minLimit, maxLimit, minValueFieldPosition, maxValueFieldPosition);
        if (EditorGUI.EndChangeCheck())
        {
            property.vector2IntValue = value;
        }
        EditorGUI.EndProperty();
}

New way to call the constructor
// Check for Vector2Int
else if (property.propertyType == SerializedPropertyType.Vector2Int)
{
    MMSEditorGUI.MinMaxSliderInt(position, property, label, Mathf.RoundToInt(minMaxAttribute.Min), Mathf.RoundToInt(minMaxAttribute.Max), minMaxAttribute.MinFieldPosition, minMaxAttribute.MaxFieldPosition);
}

-----------------------------------------------------------

If you want to I can create a pull request and integrate the changes myself. Would be probably be able to do that this saturday.

Thank you for your thorough investigation of the issue. I have just updated the project with a new version containing a fix.
I have kept all constructors as before, as not everyone wants to bother with GUIContent. But the properties will now properly pass the available GUIContent.
By the way, the new version also supports display of the range in the actual slider. :)

Would be nice if a short documentation section could be added about. Displaying the Range value on the Slider.
MMSEditorGUI.ShowRangeValue = true;
base.OnInspectorGUI();

And the issue has been resolved and works like a charm thanks a lot. Amazing library by the way :D.


Bestbuy API implementation

Also here is a bestbuy api:
https://www.bestbuy.com/api/tcfb/model.json?paths=[["shop"%2C"buttonstate"%2C"v5"%2C"item"%2C"skus"%2C6429440%2C"conditions"%2C"NONE"%2C"destinationZipCode"%2C92582%2C"storeId"%2C 1441%2C"context"%2C"cyp"%2C"addAll"%2C"false"]]&method=get
sku can be replaced.....and between using these two apis, it will reduce bandwidth usage by a great margin, be faster, and reduce issues compared to trying to load product page. Url was cleaned up so it only shows the important information. I know lots of people were complaining about bandwidth usage so I am doing all i can.
example of item in stock:
https://www.bestbuy.com/api/tcfb/model.json?paths=[["shop"%2C"buttonstate"%2C"v5"%2C"item"%2C"skus"%2C6260915%2C"conditions"%2C"NONE"%2C"destinationZipCode"%2C92582%2C"storeId"%2C 1441%2C"context"%2C"cyp"%2C"addAll"%2C"false"]]&method=get
Both apis load instantly and have no rate limits.

Awesome! Thanks a lot for scraping this information. I appreciate the help! Hopefully we can get this in here soon enough!

Awesome! Thanks a lot for scraping this information. I appreciate the help! Hopefully we can get this in here soon enough!
Also, how can you be sure about this?

Both apis load instantly and have no rate limits.

I know normally requests get sent back some sort of rate limit header, but some APIs do not. Have you sent N requests to test?

I have done the tests that I can, and no issue.....I even tried spamming for a while but no rate limits were detected as far as I can see.

Is there any other configuration needed for the newegg api implementation? Ill run constant hits all night

Nope! Should just be able to set the STORES=newegg and be good to go. I'll run it myself! Good thinking.

Right now, the code is doing both lookups, API and browser. I suppose we should probably only do API. I'll make a note of that here and when we implement bestbuy, we can update that as well.

Is there a quick way to make it search only api for tests over night?

I would caution against polling the real time API unless the website indicates possible stock. I happen to know some DevOps folks at Best Buy and their origins are... not great.
Can always try though. Otherwise I can implement the same thing I did for Newegg, for Best Buy

I would caution against polling the real time API unless the website indicates possible stock. I happen to know some DevOps folks at Best Buy and their origins are... not great.
Can always try though. Otherwise I can implement the same thing I did for Newegg, for Best Buy

If you want to create a beta branch with bestbuy api implemented, Ill run it for a day and see how it is. Just make sure to make it so it only checks the api page and not the main product page.

I can take this, maybe today. I'm going to first add it as a redundancy for the normal store page, but also will add the API only option as a different store

I can take this, maybe today. I'm going to first add it as a redundancy for the normal store page, but also will add the API only option as a different store

Yeah thats what I was thinking, make it newegg-api like how nvidia is setup

but also will add the API only option as a different store

I think that's a good idea with newegg as well.
I won't step over you if you'd like to work on this. Thanks!

Asus definately times you out fast if you use both.

@TheTabKey nah, Asus has been throwing a ton of 503s and routing you to their other servers. I think they are having outages, I was seeing 503s even when manually browsing w/ no snatcher running

Just an FYI, I've been scraping the bestbuy API for a bit over a month now, the API seems to be a bit behind what is actually displayed on the page, could be 20 seconds behind or 2 minutes. Also there are 2 implementations you can do, the authenticated API will rate limit you, the non-authed seemed good for about 2 hits a second.

Just an FYI, I've been scraping the bestbuy API for a bit over a month now, the API seems to be a bit behind what is actually displayed on the page, could be 20 seconds behind or 2 minutes. Also there are 2 implementations you can do, the authenticated API will rate limit you, the non-authed seemed good for about 2 hits a second.

That api tells the page what to display....Maybe its a mix of check intervals and the queue system implementation? Unless your referring to cooperate api? After investigation though, that api tells the page what button to display.


RTC

File: https://github.com/embeddedalpha/STM32F411CEU6/blob/main/RTC/RTC.c
Line: 111:  	monthu = (d & 0xf00) >> 12;
Should be: monthu = (d & 0xf00) >> 8;
;)

Great catch! Issue is fixed now. My notifications were off so I couldn't fix it right away. Kindly take a look at my other repos.


the question about torch.load()

Thanks for your code which help me a lot. I want to segment my road figure, this is my test, not belong to any research or commodity. I wrote a new code. this code is just load the pre-trained model and use it to process my picture. But, when I load the model, the error arises.
"_pickle.UnpicklingError: A load persistent id instruction was encountered,
but no persistent_load function was specified."
i have searched some explanation, which one tells me this is because of verison of torch, but I am sure my version meets the requirements.

The only thing that comes to my mind is that I saved the pre-trained models with a recent PyTorch version (1.6 or maybe 1.7) and lower versions cannot load it.
What version of PyTorch are you using?

The only thing that comes to my mind is that I saved the pre-trained models with a recent PyTorch version (1.6 or maybe 1.7) and lower versions cannot load it.
What version of PyTorch are you using?

Maybe this is the reason, the version of Pytorch i use is 1.2， i will retry the program with higher version. Thank you very much!(^_^)


Fixed cursor positioning after hitting tab button

Motivation
https://issues.jboss.org/browse/AEROGEAR-7789
What
Previously, in the schema editor, when you hit TAB button, new tab character was added as expected, but a cursor jumped to the last character of the whole schema
How
By passing a callback to setState function, which may not be the best approach.
Unfortunately the only one that worked for me (feel free to suggest a better way)
Record position of cursor after Tab key was hit and fix its position in componentDidUpdate lifecycle method.
Verification Steps
Go to schema editor, type couple of lines of text, move cursor to the middle (between characters) and press tab. It should behave like you're used to in common text editor.

@josemigallas if you're happy with the variable name, let's merge this guy :D

Schema editor is lacking the basic functionalities - it's not worth to invest time to improve that. We can use existing solutions like prisma


Animated Splash Screen

I want to make the splash screen animated. Can you assign me this?

Sure! I have assigned the issue to you @Kajal13081. All the best :)

I am working on an animation splash screen can u please assign me this??

#45
issue fixed @Archita01

@namra4122 it's already assinged you can  take another issues .
all the best


set QEMU boot-order (virtual hard drive first and CD-ROM second)

set QEMU boot-order (virtual hard drive first and CD-ROM second)

this will be managed by https://github.com/rancher/harvester/issues/71

close as UI added the bootOrder config


Drastic increase in build and warm up times when upgrading to 3.9.0

Environment
- Operating System: Windows_NT
- Node Version:     v18.18.2
- Nuxt Version:     3.8.2
- CLI Version:      3.10.0
- Nitro Version:    2.8.1
- Package Manager<EMAIL_ADDRESS>- Builder:          -
- User Config:      telemetry, experimental, devtools, components, app, nitro, imports, vite, css, modules, pinia, image, proxy, runtimeConfig
- Runtime Modules<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>- Build Modules:    -

Reproduction
I tried, but it does not really show with an empty project 🤔
3.8.2 https://stackblitz.com/edit/github-r32mz1-hj5c5o?file=package.json
3.9.0 https://stackblitz.com/github/nuxt/starter/tree/v3/?file=package.json
Describe the bug
My (large) project:
3.8.2:

3.9.0:

Switching back to 3.8.2 leads to the shorter loading times again.
Additional context
No response
Logs
No response

Would be nice to see if it is based on the amount of components or something else triggeres the high build time. Can you try to repro?

We'd definitely want to tackle this if you can provide a reproduction.
Can you try installing vite v5 in your Nuxt 3.8.2 project, to see whether that's the cause? It should be completely compatible, but you'll need to use npm/pnpm/yarn resolutions/overrides.

We'd definitely want to tackle this if you can provide a reproduction.
Can you try installing vite v5 in your Nuxt 3.8.2 project, to see whether that's the cause? It should be completely compatible, but you'll need to use npm/pnpm/yarn resolutions/overrides.

I could not find any information on how to do this. Simply using "overrides": {         "vite": "5.0.11"     }, did not do anything.

How can I force Nuxt 3.8.2 to use Vite 5?
How can I make sure it is indeed using Vite 5?

All right, @manniL helped me 👍. Vite 5 seems to be the culprit:

It would be great to have a reproduction. Hopefully this is something we can solve in vite. 🙏

One thing - when you set vite.warmupEntry to false, this should disappear (as it disables the 'in-advance' warmup). I'd be interested to know, however, if your initial browser request to your site is a similar length of time.

One thing - when you set vite.warmupEntry to false, this should disappear (as it disables the 'in-advance' warmup). I'd be interested to know, however, if your initial browser request to your site is a similar length of time.

So I did some tests and took screenshots of the nitro console and the browser timeline in the network tab. I waited for all chunks to be loaded:
3.8.2 with warmupEntry true

3.8.2 with warmupEntry false

3.9.0 with warmupEntry true

3.9.0 with  warmupEntry false

cc: @antfu would love your thoughts on this

From the glance I can't really tell what's the cause. I think we still need a minimal reproduction to move forward

Not sure if this helps and unfortunately also no minimal reproduction, but I think I know why the warmup time is so much longer in our project with<EMAIL_ADDRESS>First, I noticed that inside warmupViteServer<EMAIL_ADDRESS>looks at more than double the amount of files than in<EMAIL_ADDRESS>for our project.
I then looked at what is returned in deps in the warmup-function and noticed this difference:
//<EMAIL_ADDRESS>with url = virtual:nuxt:/Users/[...]/.nuxt/routes.mjs
deps = [ '/pages/index.vue?macro=true' ]

//<EMAIL_ADDRESS>with url = virtual:nuxt:/Users/[...]/.nuxt/routes.mjs
deps = [
  ...,
  '/pages/imprint.vue?macro=true',
  '/pages/index.vue?macro=true',
  '/pages/login.vue?macro=true',
  ...
] // all pages of our project

And it seems that .nuxt/routes.mjs is warmed up a couple of times and every time, all pages are returned as dependencies.
Then, as an experiment I did this in this line in<EMAIL_ADDRESS>if (url.includes('.nuxt/routes.mjs')) {
  await Promise.all(['/pages/index.vue?macro=true'].map((m) => warmup(m)));
} else {
  await Promise.all(deps.map((m) => warmup(m)));
}

With which the warmup time went down a lot (Nitro built in 7977 ms for me vs. Nitro built in 1473 ms in<EMAIL_ADDRESS>without modifications).
I am still looking for a way to create a minimal reproduction out of this and I don't know if this is a problem or it is by design that<EMAIL_ADDRESS>should look at all files multiple times at warmup. Maybe we should manually specify which files to warmup in the config, I will try that next.

Was this helpful at all, or is there something else I could try to help solving this issue? 🤔

@manniL suggested that I "empty" my templates and try again. We have +/-350 vue files and I replaced all templates by <template>
Hello
</template>
These are the startup times:

Although significantly decreased, the build time with Nuxt 3.9.3 is almost double the time it took with Nuxt 3.8.2.
The warm up times also increased by a lot.

So this issue seems to be resolved with 3.11.1... closing this.


Example Structure

Tutorial: Exploring seaborn's taxis Dataset
Summary about tutorial purpose
Summary about dataset - columns of interest
# Loading the dataset (using `seaborn` - dependency of package)
# show `.head()`

Quick overview of functions
Exploring binary features
Narrative around plot_binary()
Exploring categorical features
Narrative around plot_categorical()
Exploring numeric features
Narrative around plot_numerical()
Exploring time series data
Narrative around plot_time_series()

You are well organized, and thank you for your notes. It is perfect.


Regenerate SDK, add the full version including registries

This checklist is used to make sure that common guidelines for a pull request are followed.

[ ] The PR has modified HISTORY.rst describing any customer-facing, functional changes. Note that this does not include changes only to help content. (see Modifying change log).

[ ] I adhere to the Command Guidelines.

@ehotinger Nope, still waiting for a few last minute minor changes.


Multiple components fail to load: aiohttp.TCPConnector(loop=hass.loop, ssl=ssl_context) - TypeError: init() got an unexpected keyword argument 'ssl'

Home Assistant release with the issue:
0.66.0 and 0.66.1
Last working Home Assistant release (if known):
0.65.6
Operating environment (Hass.io/Docker/Windows/etc.):
PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
NAME="Raspbian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
pip, virtualenv
Component/platform:
Multiple, at least Philips Hue, yr and luftdaten
https://www.home-assistant.io/components/hue/
https://www.home-assistant.io/components/sensor.yr/
https://www.home-assistant.io/components/sensor.luftdaten/
Description of problem:
After upgrading to HA 0.66.0 and 0.66.1 (using pip), the above mentioned components fail with the error message provided in the respective section of this template. HA continues to start and works but the affected sensors are not working.
When I downgrade to 0.65.6 everything works as expected.
Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):
These are the related configuration entires (I don't think they are relevant in this case).
# Weather prediction
sensor 1:
  - platform: yr

sensor 4:
  - platform: luftdaten
    sensorid: XXXX
    monitored_conditions:
      - P1
      - P2

# Discover some devices automatically
discovery:

Traceback (if applicable):
2018-04-01 21:30:42 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
    result = coro.send(None)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/hue/__init__.py", line 90, in async_bridge_discovered
    'phue-{}.conf'.format(discovery_info['serial']))
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/hue/__init__.py", line 147, in async_setup_bridge
    await bridge.async_setup()
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/hue/__init__.py", line 184, in async_setup
    websession=aiohttp_client.async_get_clientsession(self.hass)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/aiohttp_client.py", line 38, in async_get_clientsession
    hass.data[key] = async_create_clientsession(hass, verify_ssl)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/aiohttp_client.py", line 55, in async_create_clientsession
    connector = _async_get_connector(hass, verify_ssl)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/aiohttp_client.py", line 164, in _async_get_connector
    connector = aiohttp.TCPConnector(loop=hass.loop, ssl=ssl_context)
TypeError: __init__() got an unexpected keyword argument 'ssl'

I have only copied the hue error message, but the error messages for the other components are identical.

Thanks a lot for your time and effort!

It looks like the offending line is https://github.com/home-assistant/home-assistant/blob/0081764ddc05f6146de45db091bd5202c3946499/homeassistant/helpers/aiohttp_client.py#L164
aiohttp doesn't accept a ssl argument. When I changed ssl to ssl_context it started working, i.e.:
connector = aiohttp.TCPConnector(loop=hass.loop, ssl_context=ssl_context)

I hope someone more knowledgable with AIOHTTP than me reviews this and fixes it.

Thanks, I can confirm that change prposed by kirichkov is fixing the issue.

This indeed fixes the issue. Thanks.

Same issue here, it's breaking Philips Hue on 0.66.1

I think this is a conflict between AppDaemon (version 3.0 installs aiohttp-2.3.10) and HASS, which requires version 3.0.
So I guess everyone who has that problem is running appdaemon and hass from the same virtual environment

I think you made a typo there and inverted what is deprecated. It's ssl_context that is deprecated.

So I guess everyone who has that problem is running appdaemon and hass from the same virtual environment

I do not have AppDaemon installed and I don't have aiohhttp 2.3.x installed in my virtual environment (but it was at some point). I have remove all files under /deps and I will see with the next release whether the issue still persists.

I can confirm that the issue started after installing Appdaemon in the same virtualenv as HASS.

Ran into this today during an upgrade of HA. I updated to Raspbian Stretch and then upgraded HA. Among other things, HA failed to automatically install pyatv==0.3.9, so I did so manually. This appears to have removed aiohttp-3.1.3 and installed aiohttp-2.3.10:
Installing collected packages: aiohttp, cffi, cryptography, pyatv
  Found existing installation: aiohttp 3.1.3
    Uninstalling aiohttp-3.1.3:
      Successfully uninstalled aiohttp-3.1.3
Successfully installed aiohttp-2.3.10 cffi-1.11.5 cryptography-2.2.2 pyatv-0.3.9

It was after this change that the error about ssl and ssl_context appeared. Manually upgrading aiohttp again resolved the issue.


nvim handling error

environment

vim: 7.4 (2013 Aug 10, compiled Nov 24 2016 16:44:48)
vim-airline: 2c05a48
OS: Ubuntu 16.04 4.4.0-92-generic
Have you reproduced with a minimal vimrc: yes
What is your airline configuration: none
if you are using terminal:
terminal: GNOME Terminal 3.18.3
$TERM variable: xterm-256color
color configuration (:set t_Co?): not set
if you are using Neovim: not using nvim
does it happen in Vim: yes

actual behaviour
At startup I get the following errors
Error detected while processing function airline#extensions#branch#get_head[1]..airline#extensions#branch#head[6]..<SNR>42_update_untracked[33]..airline#async#nvim_vcs_untracked:
line    1:
E700: Unknown function: s:nvim_untracked_job_handler
E700: Unknown function: s:nvim_untracked_job_handler^[[>1;4205;0c
E700: Unknown function: s:nvim_untracked_job_handler

at the beginning.
expected behaviour
No errors.
Extended Information
In combination with tpope/vim-fugitive I got the errors mentioned above. The minimal vimrc to reproduce the procedure is
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'gmarik/Vundle.vim'
Plugin 'vim-airline/vim-airline'
Plugin 'vim-airline/vim-airline-themes'
Plugin 'tpope/vim-fugitive'
call vundle#end()
filetype plugin indent on

Using the commit 4c74a95 it works, switching to 2c05a48 or f4caf59 gives errors at startup. As I use Git very often, showing the current status of files in Vim is essential for me. If I can provide further information to help to track down the code changes that produce this behaviour, please let me know.

that is already fixed


Skip Images pulling

Hi,
I would like to use this tool in a cluster which doesn't have access to any docker registry. I loaded the debug-agent and netshoot images manually (docker save/docker load commands) but I don't know how to tell kubectl-debug not to try pulling those two images each time it starts (I'd like to use the agent less mode).
Thanks

Have the same problem. Is there some fix that we can implement without updating the executable?
I run it with daemonset, so have only problem with nicolaka/netshoot image.

Hi, I was create a PR to solve this problem.
#111


remove rosdep 'linux-headers-generic'

The linux-headers-generic rosdep key does not guarantee that the headers of the running kernel will be installed. E.g. on a Ubuntu 18.04 LTS, the rosdep and package linux-headers-generic will depend on linux-headers-4.15.0-72-generic, while point releases (.2, .3, ...) will likely have packages linux-headers-generic-hwe-18.04 installed, which will depend on linux-headers-5.0.0-37-generic.
The build system has to determine the running kernel version in any case and this rosdep key just installs "old" unused header packages.

Any news on this?

Thanks @christian-rauch , sorry for the delay

This issue was closed before this fix was even submitted https://github.com/IntelRealSense/librealsense/issues/4039


Submit a test that does not exist. What's the outcome?

I am trying to understand from the general code and xray endpoint documentation what happens if I create a test with an identifier (e.g. PROJ-1234) that is not assigned to a test (e.g. PROJ-1234 is a Story) or is not existent at all (e.g. PROJ-1234 does not exist).
Unfortunately I can't mess with my current Jira and run an experiment, but a colleague informed me that the xray endpoint might create an empty xray test automatically. Is this actually true, and if so, is there some mechanism in the plugin to prevent this from happening (that is, only accept the submission if all tests exist)

Hi @stefanoborini, unfortunately I don't have access to Jira Xray. I am maintaining this plugin based only on the Xray documentation. So if you have any question about its functionality you need to ask someone from Jira/Xray support.


Static Path

Describe the problem
The automated script is returning the following error:
fatal: could not create leading directories of '/home/pi/SlowMovie': Permission denied
Latest OS versions require you to create a user instead of using the default "pi". I reviewed the script and updated the following lines with correct path:
# set the local directory
LOCAL_DIR="/home/pi/$(basename $GIT_REPO)"

cd /home/pi/

I am not a coder so I can't improve code to change the splash screen options or make it dynamic.
Steps to Reproduce
Run main script
Platform Information
Raspberrybi Zero W
Debian Bulleye

Thanks for pointing this out. I saw some news about the pi user account a while back but didn't think about it's impact to this script specifically.
I'll get a PR going but the fix is pretty basic, just need to insert the actual username into that line:
LOCAL_DIR="/home/$USER/$(basename $GIT_REPO)"

There are some other locations where the home path is given as well that will need to be updated.


problem with prebuilts apks

hi firends, i'm build kenvyra for mi 11 lite 4g and i'm facing troubles with verify uses-libraries:
Verifying uses-libraries: external/GmsCompatConfig/prebuilt/GmsCo FAILED: out/target/common/obj/APPS/GmsCompatConfig_intermediates/enforce_uses_libraries.status /bin/bash -c "(rm -f out/target/common/obj/APPS/GmsCompatConfig_intermediates/enforce_uses_libraries.status ) && (build/soong/scripts/manifest_check.py 	   --enforce-uses-libraries 	  --enforce-uses-libraries-status out/target/com mon/obj/APPS/GmsCompatConfig_intermediates/enforce_uses_libraries.status 	   --aapt out/host/linux-x86/bin/aapt 	   	   	   	   	  external/GmsCompatConfig/prebuilt/GmsCompatConfig.apk )" error: Command '['out/host/linux-x86/bin/aapt', 'dump', 'badging', 'external/Gms CompatConfig/prebuilt/GmsCompatConfig.apk']' returned non-zero exit status -4
hope you answer with a possible fix, thank you

Hi @meloalfa159  , you most likely have old(ish) CPUs in your computer, right? The fix is to apply this patch to your zlib: https://github.com/Tomoms/android_external_zlib-ng/commit/b20fe23575d065e23dfcb84834d8a1af089d071a

Hi @meloalfa159 , you most likely have old(ish) CPUs in your computer, right? The fix is to apply this patch to your zlib: Tomoms/android_external_zlib-ng@b20fe23

thank you for the answer. yes, i have a super old FX-8350 but it do his job and for me is okay. i will follow your advice, thank you!


Multiple prompt support over stdin.

In pull 416, the ability to enter multiple prompts over STDIN directly seems to have been removed.
To work around this, I recently made an except script (assembler in Fish) which filters out the interface related outputs elements of ollama run.
In version 0.4.3, this achieves the desired effect of only outputting model output through the pipe, while allowing for multiple prompts.
I will share my script in the first comment.
As I mentioned in issue 7820, this method of inputting has been broken as per version 0.4.4.
And as mentioned by @rick-github in their comment, this likely is by design, due to pull 7360.
Which at face value seems to completely cover my use-case and avoids the jank of a script parsing the interface information.
But the current implementation breaks entering prompts manually or through expect (my issue 7820 again), while piping the output to tee or similar.
I will explore the proposed script based workaround mentioned by @rick-github, either adding it to or replacing my expect based workaround with it.
Like my script, this still is an excessive level of workarounds to make something which would be expected functionality work.
Potential solutions:

Not having ollama run immediately close with output redirection, as the implementation from pull 7360 does.
Having some form of delimiter within the """ syntax, for starting a new prompt, like:

"""
First prompt.
---
Second prompt.
"""

This could start processing the first/earlier prompt after the --- delimiter is received to allow for full dialogue

Some feature flag to interpret STDIN as user input, similar to pull 6130 (which pull 7360 replaced).
Perhaps --input user, --nogui, --keeppipe, ect.
Having multiple prompts passed as arguments processed sequentially, like the shared script does.

Of course, this is only a feature request, it's fine if piping multiple prompts over STDIN or as arguments is not supported.
In which case I would be fine with looking further and interested in suggestions for other frontends or libraries to use.
P.S. Since making such a feature request is a first for me, constructive criticism is welcome if you can spare the time.
Either way, have a nice rest of your day!

Addendum: A function/script which provides the requested functionality in ollama 0.4.3.
#!/bin/fish

# The first argument is the model to use. This argument is succeptible to shell injection, WONTFIX.
# Subsequent arguments become individual prompts, use \n or \r characters for multiple lines.
# Returns the full model output as one text over STDOUT, by cat-ing a mktemp tempfile.

function prompt-ollama

    # We are piping to a temporary file within expect to separate the ollama throbber.
    # The use of a temporary file is beneficial for longer or interupted prompt output.
    set TEMP_FILE ( mktemp )

    set MODEL $argv[1]
    set PROMPT_LIST $argv[2..]

    # Assembles a script for the expect command to run the desired model and queue our prompts.
    # The full ollama output gets stored to the tempfile, including interface related elements.
    # All prompts get queued within """ syntax, \n and \r characters become newlines to the model.
    # We escape the symbols I caught to cause shell injection, escaping the send command or """ syntax.
    set EXPECT_SCRIPT ( echo \
    "
        set timeout -1
        spawn fish -c \"ollama run $MODEL > $TEMP_FILE\"
        $( for PROMPT in $PROMPT_LIST
            echo \
            "
                send -- \"\\\"\\\"\\\"\r\"
                send -- \"$( echo $PROMPT | sed \
                '
                    s/\\\\/\\\\\\\\/g
                    s/\\\\\\\\n/\\\\n/g
                    s/\\\\\\\\r/\\\\r/g
                    s/\"/\\\\\"/g
                    s/\$/\\\\\$/g
                    s/\[/\\\\\[/g
                ' \
                )\r\"
                send -- \"\\\"\\\"\\\"\r\"
            "
        end )
        send -- \"/bye\r\"
        send -- \"\x04\"
        interact
    " \
    | string collect -N )

    # Piping to /dev/null to remove the ollama throbber from output.
    # Comment > /dev/null out when debugging in a shell.
    expect -c $EXPECT_SCRIPT > /dev/null

    # Ollama output gets cleaned from interface related lines at this final step.
    # This so false positives can be extracted from the leftover tempfile if required.
    cat $TEMP_FILE | grep -v -e '^>>> ' -e '^\.\.\. ' -e '^\033'

end

These are further answers made to @dhiltgen their question in my issue 7820.
In some cases, I am relying on the prior context, like I would in a chat.
This varies from separating questions to work around a smaller model shortening answered otherwise.
To the ollama run [model] | tee [file] use-case I mentioned in the issue.
Or simply sending a few 'continue' or similar prompts and leaving this running in the background, without mixing these prompts with the already given output (like the interactive chat does).
If it was not for that, the existing single prompt restriction on both STDIN and arguments would not be an issue.
Pull 7360 effectively fixes this scripting use-case, within this limit.
And before that, separating out STDERR and using grep -v -e '^>>> ' -e '^\.\.\. ' -e '^\033' achieves the same result, barring false positives.
Similarly, so would ollama run [model] $( echo -e "\"\"\"\n$( cat [file] )\n\"\"\"" ) before pull 416.
But this does open up the can of worms of shell injections and accidental escapes of the """ block, again making it sensible to have fixed.
That still leaves the removal of having multiple prompts through any other means than an interactive chat.
With the program now immediately exiting, without having received an EOF, this requires fully emulating a user chat session.
Returning back to issue 6120, the very thing I wrote a monstrosity of a script for to work around this.
I will note that this script was written as an educational exercise in getting comfortable with Fish shell, fuelled by a "this should work, let's actually make it" mindset, not as a practical nor correct solution.
In this specific case the catalyst was wanting to automate parts of an upcoming "prompt engineering" assignment of my Uni, but also interest for further small and local projects.
This example specifically entails having different models generate texts and having other models analyse these, something most easily set up in a shell script.
Here the desire for multiple prompts stems from comparing making continued questions versus a clean session with fresh context.
Additionally attempting to preserve resources on limited hardware, though I have yet to test which approach is more efficient.
It is reasonable to be expected to use the API instead.
Before going the scripting route I have explored the API and got single responses through curl so far, matching the ollama run behaviour.
But making multiple prompts work seems like more work and complexity than using the existing chat-like functionality.
So in the end I would find or make a minimal program, which would do close to the same, so I can easily whip up further shell scripts using it.
Which seems weird, since ollama run has the exact needed functionality and now works mostly as expected in a shell script, but arbitrarily limits this to single prompts.
On which I understand this being the default, but do not grasp why there is no flag or syntax for it otherwise.

In case this request gets anywhere in the future, it might help to clarify some things:
Having had a peek in the code, Ollama seems to switch to a batch processing mode of single prompts.
My expectation was that it would continue as a normal chat, but exclude interface elements and if relevant interpret input in a more script friendly manner.
This is in line with most coreutils which I have used, whereas Ollama completely changing the way it processes inputs without command flags threw me off-guard.
The usecase was locally scripting prompts, possibly with multiple queued queries in the same context.
For example to store clean output from the chat without manually copy-pasting, by manually interacting with STDIN.
Or generating texts with different models, then letting models analyse and answer questions about the texts, storing the results.
The downgrade functioned for long enough for me to use the shared script to achieve this, now this assignment is done for me.
The merits of the current batch prompting implementation or this requested script friendly chatting are not the most important point here, since if the software can reasonably do either, I feel that it should.
Most problematic was the lack of documentation and unexpected nature of this switch to bach processing mode when standard output gets detected.
This made well-considered changes in behaviour appear as bugs or obvious mistakes, the actual mistake being my unmet expectation of the working of ollama run without feature flags staying consistent.

#!/usr/bin/env python3

import ollama
import argparse
import readline
import sys

parser = argparse.ArgumentParser()
parser.add_argument("-s", "--stream", help="Enable streaming", default=False, action="store_true")
parser.add_argument("model")
parser.add_argument("prompts", nargs='*')
args = parser.parse_args()

client = ollama.Client()
userprompt = ">>> " if sys.stdin.isatty() else ""

def chat(messages, prompt):
  messages.append({"role":"user", "content": prompt})
  response = client.chat( model=args.model, messages=messages, stream=args.stream)
  m = ''
  for r in response if args.stream else [response]:
    c = r['message']['content']
    print(c, end='', flush=True)
    m = m + c
  print()
  messages.append({"role": "assistant", "content": m})
  return messages

messages = []
for prompt in args.prompts:
  messages = chat(messages, prompt)
while True:
  try:
    prompt = input(userprompt)
  except:
    break
  if prompt == "/bye":
    break
  messages = chat(messages, prompt)
print()

$ ./ollama-pipe.py llama3.2 'an apple costs $1.50'
That's an affordable price for a delicious apple! Would you like to know the total cost of a few apples or perhaps calculate how many apples you can buy with a certain amount of money?
>>> how much does two apples cost?
Easy math!

If one apple costs $1.50, then:

2 apples = 2 x $1.50
= $3.00

So, two apples will cost you $3.00!
>>> /bye

$ echo 'how much does two apples cost?' | ./ollama-pipe.py llama3.2 'an apple costs $1.50'
That's a relatively affordable price for an apple! Would you like to know the cost of some other common items, or is there something else I can help you with?
Easy calculation!

If one apple costs $1.50, then two apples would cost:

$1.50 x 2 = $3.00

So, two apples would cost $3.00.

$ ./ollama-pipe.py llama3.2 'an apple costs $1.50' | tee /tmp/o.log
That's a relatively affordable price for an apple! Would you like to calculate the total cost of a certain number of apples, or perhaps estimate how many apples you can buy with a specific amount of money?
>>> how much does 3 apples cost?
Easy math!

If one apple costs $1.50, then 3 apples would cost:

$1.50 x 3 = $4.50

So, 3 apples would cost you $4.50!
>>> /bye

$ cat /tmp/o.log
That's a relatively affordable price for an apple! Would you like to calculate the total cost of a certain number of apples, or perhaps estimate how many apples you can buy with a specific amount of money?
>>> Easy math!

If one apple costs $1.50, then 3 apples would cost:

$1.50 x 3 = $4.50

So, 3 apples would cost you $4.50!
>>>

@WyvernDotRed thanks so much for the issue and sorry for the slow response. ollama run is designed to take a single input and output a single output - it can be scripted as shown above to prompt the model multiple times (or this can be done via the Chat API). Hope this helps


Is ist possible to have a login?

Hi!
I think this project is the best and simplest http server for c#. But im wondering, if its possible to handle a login, because i have to have that function in my project.
Greets Marcel

Ok, Im so stupid........

I didn't saw the BasicAuthenticationHander before...
Im so sorry.
Greets Marcel


Playroom: Black Hole Simulator

Quickly converted one of my Processing sketches to p5.js, with super verbose commits explaining the process. Hope this is helpful for you game, @taylorcate!

 I can't wait to explore this further


asset download should give !=0 returncode when no assets found/other error happens

Tool should return non success return code when asset download fails or no assets found with used PATTERN. This would simplify/help scripting..

Agreed. I use githubrelease as part of CI and if it doesn't return an error code when the asset is not found, the CI system won't know that something went wrong.


Unable to complete last two steps in detailed training notebook.

Hello! This is the error that I receive while attempting to complete the 'Train the Model' step #2
/usr/local/lib/python3.10/dist-packages/torchvision/io/image.py:13: UserWarning: Failed to load image Python extension: '/usr/local/lib/python3.10/dist-packages/torchvision/image.so: undefined symbol: _ZN3c104cuda20CUDACachingAllocator9allocatorE'If you don't plan on using image functionality from torchvision.io, you can ignore this warning. Otherwise, there might be something wrong with your environment. Did you have libjpeg or libpng installed before building torchvision from source?
warn(
INFO:root:##################################################
Computing openwakeword features for generated samples
##################################################
Traceback (most recent call last):
File "/content/openwakeword/openwakeword/train.py", line 638, in
compute_features_from_generator(positive_clips_train_generator, n_total=len(os.listdir(positive_train_output_dir)),
File "/content/openwakeword/openwakeword/utils.py", line 556, in compute_features_from_generator
F = AudioFeatures(device=device)
File "/content/openwakeword/openwakeword/utils.py", line 84, in init
self.melspec_model = ort.InferenceSession(melspec_model_path, sess_options=sessionOptions,
File "/usr/local/lib/python3.10/dist-packages/onnxruntime/capi/onnxruntime_inference_collection.py", line 419, in init
self._create_inference_session(providers, provider_options, disabled_optimizers)
File "/usr/local/lib/python3.10/dist-packages/onnxruntime/capi/onnxruntime_inference_collection.py", line 452, in _create_inference_session
sess = C.InferenceSession(session_options, self._model_path, True, self._read_config_from_model)
onnxruntime.capi.onnxruntime_pybind11_state.NoSuchFile: [ONNXRuntimeError] : 3 : NO_SUCHFILE : Load model from /content/openwakeword/openwakeword/resources/models/melspectrogram.onnx failed:Load model /content/openwakeword/openwakeword/resources/models/melspectrogram.onnx failed. File doesn't exist
And this happens on the next step immediately after:
/usr/local/lib/python3.10/dist-packages/torchvision/io/image.py:13: UserWarning: Failed to load image Python extension: '/usr/local/lib/python3.10/dist-packages/torchvision/image.so: undefined symbol: _ZN3c104cuda20CUDACachingAllocator9allocatorE'If you don't plan on using image functionality from torchvision.io, you can ignore this warning. Otherwise, there might be something wrong with your environment. Did you have libjpeg or libpng installed before building torchvision from source?
warn(
Traceback (most recent call last):
File "/content/openwakeword/openwakeword/train.py", line 666, in
F = openwakeword.utils.AudioFeatures(device='cpu')
File "/content/openwakeword/openwakeword/utils.py", line 84, in init
self.melspec_model = ort.InferenceSession(melspec_model_path, sess_options=sessionOptions,
File "/usr/local/lib/python3.10/dist-packages/onnxruntime/capi/onnxruntime_inference_collection.py", line 419, in init
self._create_inference_session(providers, provider_options, disabled_optimizers)
File "/usr/local/lib/python3.10/dist-packages/onnxruntime/capi/onnxruntime_inference_collection.py", line 452, in _create_inference_session
sess = C.InferenceSession(session_options, self._model_path, True, self._read_config_from_model)
onnxruntime.capi.onnxruntime_pybind11_state.NoSuchFile: [ONNXRuntimeError] : 3 : NO_SUCHFILE : Load model from /content/openwakeword/openwakeword/resources/models/melspectrogram.onnx failed:Load model /content/openwakeword/openwakeword/resources/models/melspectrogram.onnx failed. File doesn't exist

This is likely the same bug that was reported in #55, which should be fixed now. In particular, in the first code cell of the Colab notebook it downloads these assets which are missing.
If you made a copy of the Colab notebook, you might need to make a new copy with the updated version.

@JigglesTheFett thank you for continuing to report issues, and apologies that the process hasn't been as smooth as intended! This seems to be an intermittent bug I've seen on Colab, so I've updated the notebook to include another cell with a function to convert the .onnx file to .tflite:
# Manually save to tflite as this doesn't work right in colab
def convert_onnx_to_tflite(onnx_model_path, output_path):
    """Converts an ONNX version of an openwakeword model to the Tensorflow tflite format."""
    # imports
    import onnx
    import logging
    import tempfile
    from onnx_tf.backend import prepare
    import tensorflow as tf

    # Convert to tflite from onnx model
    onnx_model = onnx.load(onnx_model_path)
    tf_rep = prepare(onnx_model, device="CPU")
    with tempfile.TemporaryDirectory() as tmp_dir:
        tf_rep.export_graph(os.path.join(tmp_dir, "tf_model"))
        converter = tf.lite.TFLiteConverter.from_saved_model(os.path.join(tmp_dir, "tf_model"))
        tflite_model = converter.convert()

        logging.info(f"####\nSaving tflite mode to '{output_path}'")
        with open(output_path, 'wb') as f:
            f.write(tflite_model)

    return None

Amazing! Thanks so much, and no worries it on not being all that smooth, you've created something amazing here, so it's more than worth the slight amount of hassle.


[🐛 Bug]: Redirecting in middleware causes query string parameters to be retained

next-on-pages environment related information
Relevant Packages:
@cloudflare/next-on-pages: 1.1.0
Description
If you create a middleware and return a redirect like so:
return new Response('', {
        status: 302,
        headers: {
          Location: 'http://localhost:8788/',
        }
      })

If the original request URL has query string parameters like ?foo=bar, the Location header will be http://localhost:8788/?foo=bar which is not the intended redirect URL.
Same behaviour is exhibited if using Response.redirect or NextResponse.redirect.
This seems to be causing the issue: https://github.com/cloudflare/next-on-pages/blob/2c8748176ffed5d50585bd86e14b1f2c974d0c96/packages/next-on-pages/templates/_worker.js/handleRequest.ts#L75
Commenting this out and just returning the unmodified Location header results in the correct Location header being returned.
Reproduction
No response
Pages Deployment Method
Direct Upload (wrangler pages publish or the @cloudflare/pages-action GitHub Action)
Pages Deployment ID
No response
Additional Information
No response
Would you like to help?

[ ] Would you like to help fixing this bug?

Hey there, thanks for raising this - we merged a fix for this issue yesterday and it should be included in the next release. Alternatively, you can try it out now in the latest beta release 🙂


Package some stuff as independent lib

Seems to me a lot of what's in client-js isn't particularly tightly coupled with LabRAD. Any plans to package independently?

no plans, but certainly possible. Do you mean like the basic framework of having a project set up with npm, bower, gulp, etc.?

That and the rpc stuff.

I'm going to close this for now. Let's focus on getting things working before we think about splitting pieces out and packaging them separately. Packaging and distribution is not trivial (we have to figure out how to distribute npm packages containing typescript code, etc. etc.), and we should focus on building something that works first.


Tokenizer rewrite

Currently, the tokenizer is a quickly written naive implementation: 1) it is not efficient as it copies the whole input string; 2) it uses libc strtok_r() to replace the separator bytes with NIL terminator which may break UTF-8 strings.
Objective: write an efficient and UTF-8 compatible tokenizer, probably using a simple state machine, perhaps leveraging some UTF-8 helpers from the libicu Unicode library.
The new tokenizer should handle:

Remove symbols, commands dots, etc.
Add a stop-word filter.
Handle words with dots or dashes "U.S.A." or "I.B.M." or "truck-driver".

We could use the Unicode text segmentation algorithm" see: https://unicode.org/reports/tr29/

@toloco: That is pretty much what we want. Please go ahead with the implementation!


current project status

Is this project under active maintainance?

Yes, this repo and the opc Terraform provider are still maintained for for the OCI "Classic" Compute service.


Backend: Label Update failure

Describe the bug
Label properties (name, type) is not updated
To Reproduce
Steps to reproduce the behavior:

Go to 'Project Labels' of a project
Edit label name, Click Update
Label not updated

Expected behavior
Label to be updated
Screenshots

Desktop (please complete the following information):

OS: [e.g. iOS]
Browser [e.g. chrome, safari]
Version [e.g. 22]

Smartphone (please complete the following information):

Device: [e.g. iPhone6]
OS: [e.g. iOS8.1]
Browser [e.g. stock browser, safari]
Version [e.g. 22]

Additional context
Add any other context about the problem here.

I am on it


Update sgc-symposium24.md

add link to speakers and Osires workshop description

Improved Osires workshop description to sync with other


Press the Enter key to log in

I think this feature is necessary for when users log in, but right now, the button in makepad-widget doesn't have a corresponding returned method. I'll try to implement this feature.
The issue in makepad over here

I fix this issue #212

Thanks. Closed by #212.


Protobuf Client in Project has no Navigation

I am building a small project using Rust and the Tonic library, developing in CLion using the plugins newest version.
When using the plugin there is no navigation in the client.rs file but the server.rs works just fine for whatever reason. I tried to invalidate the caches and deleted the .idea folder but none of these things seems to help.
My folder structure looks like this:
<root>
└── src/
    ├── util/
    ├── client.rs
    └── server.rs

Any ideas what could potentially cause this?

In theory, my plugin will not affect the functionality of other languages

Can you take a screenshot for your plugin list

I debugged some more and it seems to be an issue on Jetbrains side. Sorry for the trouble.


[TextInput] Add autoGrow support

Auto-growing TextInput is useful as the input doesn't have to take too much space, and the user can still see all the text if he enters multiple lines, especially in chat applications.
Currently I can auto grow it by adding a invisible Text element with exact same content, measuring it's height on the onLayout event and setting height of the TextInput element. But it doesn't feel natural, as the height doesn't change instantly.

There's currently two PR's that are trying to address this. #3097 #1229

Unfortunately, both seem to be iOS only :(

Sorry, didn't know you were referring to android. Could you possibly update the issue title to specify android?

@christopherdro I was referring to both iOS and Android.

cc @andreicoman11

@satya164 - I created an issue for this on Product Pains! See it here. Go ahead and upvote it -- this is our new way of prioritizing non-trivial issues (details here).

@brentvatne Thanks. Done.


Inference shape is not 8

Thank you for the good code. However, the inference code appears as follows. The value of the first dimension of the actual raw_emb tensor is 0, not 8.

The transformers and tokenizer library versions are the same.


Cannot install blueprint because async param missing

See screenshot

How did you produce it? I can't reproduce it on the current installation?

Can't reproduce with last version. close


Postprocessing issue: retargeting the truebone zoo data samples

Hi there,
Thanks for your nice work!
I'm currently trying to produce some visualization demos on the Truebone zoo data samples, but have some problems with retargeting the generated bvh source to the fbx file provided in Truebone zoo.
As shown in the figure below, I'm testing the retargeting (with Rokoko) using exactly the same motion as the fbx(provided as bvh in the dataset). The first row is the original skeleton and skin mesh in fbx file; second row is after correcting the bone orientation when loading fbx; third row is the bvh source they provide in their dataset.
The retargeting results using Rokoko are as the two columns in the last row. The retargeted armature is not correct.
I've also tried to transfer the fbx with orientation corrected skeleton to bvh file, resulting in exactly the same skeleton structure. And then retarget this bvh to the fbx armature. But the retargeting with Rokoko still fails.
I'm wondering if you have come across this problem before, and if you have any idea of the solutions?

Hi @YiLin32Wang,
Apologies for the late reply.
Have you tried our utils/fbx2bvh.py conversion?
We are unfamiliar with Rokoko, so sadly, I don't think we can help here.
Regards,
Sigal


Alternate Infinite Materials code that excludes fairies

Using your new Infinite Materials code found here:
https://github.com/bad1dea/NXCheats/blob/main/The Legend of Zelda Tears of the Kingdom/0100F2C0115B6000 v196608 for Yuzu/%2337. Inf. Materials %26 Zonai Devices (Set To Minimum Qty.500)/cheats/168DD518D925C7A3.txt
It's working great so far and seems like a good way to handle infinite materials, but having infinite fairies is way too game breaking for my taste. Wondering if it's possible to create an alternate version of the code that excludes fairies and just keeps them at the original number I have?

Can you show me.. where they are located in inventory? (Picture) + Where to find them?

Hm, well I'm using a sorting mod and it puts them as the first thing in my bag when sorted by type. Does that mod matter for what you need? Currently, I decided to remove them from my bags using the online save editor as it was just too game breaking, infinite lives pretty much.
As for where to find them, do you mean in-game? I haven't came across many, but they seem to be in some wells and caves.

Just need the picture.. :) I don't play the game, so I'll have to add it to inventory.

Well I'm currently not at the PC with the game, but here is a screenshot showing the item in the save editor, which seems to use the same icons. If this doesn't help, I will get an in-game screenshot later today.
https://imgur.com/a/1nscBQ3

No rush. Not sure I'll be able to filter it out since I just do a filter on Material / Zonai Devices vs Weapon/Shield/KeyItems.
What I can probably do is.. :P make a seperate code that sets faries to something less.. lol

Would the in-game screenshot still be helpful then?
Not sure having less fairies would really help the problem. Having just one infinite fairy is too much, they resurrect you upon death. If possible, need a way to keep fairies as the game intended, only having a finite amount available. Your code is great for having infinite fire arrows for example, but with fairies being infinite too it becomes infinite materials and infinite lives rolled into one.
Also just wanted to say thanks for the work your doing! I like to use codes to save time on tedious tasks in open world games and your codes really help.

OK was able to get a screenshot in-game. The fairy is highlighted in the top left:
https://imgur.com/a/IGeFRZX

Too complicated to do, with asm..
You can use Eiffels code that ads/removes items from inventory..


Support spconv=1.1 ?

Hi.
I was wondering if you are planning to add support for spconv 1.1. Spconv seems to compile smoothly for Python3.7, Cuda 10.2 and Pytorch 1.5.
Spconv 1.0 doesn't seem to work with Pytorch 1.1.
Perhaps the changes in the spconv/functional.py code are sufficient to ensure compatibility with PointGroup code.
Thanks.

Hi,
You could use spconv1.1 with the changes in the spconv/functional.py.
I have roughly tested the newest spconv 1.2.1 with:

Python 3.7
CUDA 10.1
Pytorch 1.3
torchvision 0.4.1
cuDNN 7.6.5

It seems that the changes in the spconv/functional.py is enough.


[FEATURE]

Description
Describe your request here.
Requirements (place an x in each of the [ ])

[ ] I've read and understood the Contributing guidelines and have done my best effort to follow them.
[ ] I've read and agree to the Code of Conduct.
[ ] I've searched for any related issues and avoided creating a duplicate issue.

Description
Describe your request here.
Requirements (place an x in each of the [ ])

[ ] I've read and understood the Contributing guidelines and have done my best effort to follow them.
[ ] I've read and agree to the Code of Conduct.
[ ] I've searched for any related issues and avoided creating a duplicate issue.


Something wrong :trying to map your surrounding

Overview
Add A city model in Hololens , error： the APP will be stuck in Trying to map your surrounding.
Actual Behavior
2018.11.15Update
I rebuilt this scene and exported it to Hololens Emulator,I found this error log
If your machine has multiple graphics adapters, Unity may have created a WindowContext on the wrong adapter. If you experience a black screen when playing, please restart the Editor.

(Filename: C:\buildslave\unity\build\Runtime/VR/VRDevice.cpp Line: 218)

The referenced script on this Behaviour is missing!

(Filename: C:\buildslave\unity\build\Runtime/Mono/MonoBehaviour.cpp Line: 1510)

The referenced script on this Behaviour (Game Object 'International City_0') is missing!

(Filename: C:\buildslave\unity\build\Runtime/Mono/MonoBehaviour.cpp Line: 1753)

Setting up 1 worker threads for Enlighten.

  Thread -> id: 550 -> priority: 1

UnloadTime: 6.645600 ms

Holographic Tracking State Lost. New State: 1

(Filename: C:\buildslave\unity\build\Runtime/VR/HoloLens/HoloLensWorldManager.cpp Line: 166)

Failed to get spatial stage statics - can't retrieve or interact with boundaries! Error code: '0x80040154'.

And the display in Hololens Emulator is

** I build a app on Hololens.I hadn't added spatial mapping,but there is error in my app.When I open app, it will always be stuck in this **

And I tested that everything was removed but a city model which was exported by CityEngine with a format of .FBX in the same Unity project,sure there were still same MRTK configure scene components，this error still existed. Finally, I just used a cube and removed the city model to test. In the same project ,same configure setting , this error didn't exist.
The city model is about 27 mb ,  the Unity interface is as bellow:

Unity Editor Version
2017.2.1f1
Mixed Reality Toolkit Release Version
2<IP_ADDRESS>

Have you tried launching other apps to see if the problem is hardware specific?

Also, try removing the tooklit completely and just putting an empty scene with the fbx model.

This is not a message that the toolkit displays, it is coming from the HoloLens operating system.

Yeah, I tried, other app in Hololens is okay. Meanwhile, I reinstall Hololens emulator , this error still exist, so I am sure the hardware is ok.
And I just tested only the city model in the scene ,and build an .exe ,there is still no problem.

What's up?Should I change a version of MRTK or Unity?

Bulk closing older HTK bug. Please reopen if you can repro this issue in MRTK v2.
Thanks!
Yoyo


Sluggish adaptive card rendering on mobile devices

Background
This issue follows the recommended action at the end of Issue #388.
Our current proactive bot posts an hourly notification to a Teams channel containing detailed information on various systems, including both current status and changes over time. Because of the breadth of the data, the report is converted to an image and posted to the Teams channel (actually we continue to rely on a Slack channel, but would like to switch to Teams).
This is an example of the image (with content blurred for privacy/IP reasons). The general structure of the data presentation can still be made out:

However, due to Teams not having consistent in-app expandability (ie within the app, not separate loading in a browser app) of images across devices (as mentioned in #388--though this will apparently hopefully be resolved soon), we decided to test converting the underlying data to a pure json-format adaptive card.
Attached (card.zip) is a zip of the card json. Business values and strings have been obfuscated for privacy/IP reasons. Please ignore the lack of formatting cleanliness - our intention was to only initially test structure and basic usability. Fine-tuning of formatting would come later. (With real data it actually is already quite readable - but with the random characters it looks terrible.)
When we initially tested sending this card, it failed, with a response of
{"error":{"code":"MessageSizeTooBig","message":"Message size too large."}}
For reference, the http post content-length with the attached is ~97KB. This size card is only sent once per week. The normal card sent hourly is ~50-60KB as it has two less buttons with expanding content at the bottom. From what we've read on various forums, people have previously observed a 25-30KB limit on card message sizes in Teams. We replicated that limit by incrementally down-sizing our card until it finally sent through.
That said, by enabling the developer preview mode in Teams on desktop and mobile (and potentially also by changing the card to version 1.2 -- though I can't recall if we did that before or after the above msgsize error), the size limit appears to have been raised or removed, and our full-size cards are successfully getting sent through. Or perhaps our actions here are just coincidence.
The Main Problem
Rendering quality and behavior varies by device.
Teams on iOS (iPhone 7):
Rendering is very sluggish. The card takes 3-5 seconds to load/appear when switching into the channel. Clicking on the buttons can be quite unpredictable (sometimes they don't react; sometimes the app crashes). When clicking the button, the card re-renders in a flash, with the buttons scrolling up and then back down. Scrolling back through earlier cards causes the app to slow down to a sputter, and freeze for lengthy periods. It feels like what happens when memory utilization is very high.
Teams on iOS (iPad - a bit younger than the iPhone 7):
Similar, but a bit better rendering to the iPhone as mentioned above.
Teams on Win10 (3yr old thinkpad):
Renders fine. A slight bit of sluggishness when clicking the buttons that expand the content.
Teams on macOS (5yr old macbook air):
Renders fine.
Teams in browser (modern Edge on Win10):
Very smooth rendering.
Teams in browser (Chrome on Win10):
Renders fine.
A smaller issue (or design choice?) on the mobile devices is that depending on how you touch the adaptive card and its buttons, especially when it is acting sluggish, Teams will sometimes load the card in a separate window (screen shifts to the right). Similar behaviors there.
We would really like to be able to switch entirely to a fully json-based version of our adaptivecard (ie without an embedded image), but the inconsistency of rendering across mobile vs. full-size devices is too large. One might argue that we are putting too much data in our adaptivecard -- but to that we'll counter-argue that that data is precisely what is shown in the alternative image approach. The metrics have been chosen with care and designed with precision. Our users have relied on this information on a daily basis for several years now. For now we continue to share this information via Slack using an image (with in-app expandability).
If Teams can't support this much content in raw json, then hopefully the image expandability feature will be enabled soon to bring that aspect of images to parity with Slack, and we will then move over completely.
Thank you very much for your help and advise.

@stpeteparadox , Can you please share the iOS version and MS Teams build version of the device (iPhone 7). Also if you are not on latest version of MS Teams, can you please try updating it.
Regarding the earlier issue, Teams has a limitation of size 28 KB for the entire message payload, not just the Adaptive Card. Teams will add more data to your card. Here is the doc link

@Subhasish-msft
iPhone 7 iOS version: 13.4.1
Teams iOS version: 2.0.8 (build 1.077.2020042201; calling version 2<IP_ADDRESS>)
Thanks for the link to the message payload limit documentation. Are these limits temporarily removed or raised in developer mode? Why are we able to exceed them at the moment?

Thanks for the detail @stpeteparadox, I will be creating a bug for this. Can you please share the sample card json with which we can reproduce it. Previously shared card seems to be very large(353 KB) and we can not use it.
Regarding card size, Developer preview does not remove card size limit. As per guideline, It has to be within the limit. Can you confirm the exact size of the card which got posted successfully in dev preview mode.

@Subhasish-msft  The card json I previously shared is precisely what we send each time, just with the property string values obfuscated (but same string length).
As for the card size, it's unfortunate to observe this, but in my experience the Microsoft Docs, in particular those for Teams, can be out-of-date. I'm not sure if that's what's happening in this case, but as I have already described above, our messages post without issue. The problem appears to be in the client-side rendering on mobile, which is sluggish.
I believe you may be looking at the on-disk json card size (353 KB) which appears to be different from the http post body content-length of 98 KB. Not sure if there's any compression going on, but I do know that the on-disk size of the non-obfuscated json card is currently ~280 KB vs. 353 KB for obfuscated on-disk card. As mentioned the string lengths are all the same, except that in the obfuscated card, the string values are all rather unique.
If you need further proof that our 98KB messages are being successfully posted despite what the documentation may say, please see below screenshots. Sensitive values have been removed.

Perhaps if I have time later I can send another card json where the obfuscated values are all the same string value, so that in case there is compression going on, it will compress a bit better.

@stpeteparadox , We have created a bug for this.

@Subhasish-msft
To clarify, you mean a bug for messages exceeding the supposed card size limit, or the sluggish card behavior?

@stpeteparadox ,Bug is for sluggish behavior.

@Gousia-MSFT why is this now closed? Remains very much open on our side... Would be ideal to have some communication from Microsoft side regarding issue resolution or what not before closing.

@stpeteparadox, We will communicate it back in this discussion once the issue is fixed.


add syntax keynote file

For use in translations

Thanks @AmeliaMN. Can you remove the .DS_Store file from the PR?

Thanks again, @AmeliaMN!

Ugh, my nemesis, Mr. DS_Store. I'm not sure how it even got added, looking at the .gitignore. Did that latest commit fix it, or should I roll back and try again?

I think we're good, and I feel your pain!
On Thu, Feb 15, 2018 at 11:55 AM, Amelia McNamara<EMAIL_ADDRESS>wrote:

Ugh, my nemesis, Mr. DS_Store. I'm not sure how it even got added, looking
at the .gitignore. Did that latest commit fix it, or should I roll back and
try again?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/rstudio/cheatsheets/pull/31#issuecomment-366008910,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAFMFkYI4ZGryKMzV2gA9lX8lv_ajP1qks5tVG-JgaJpZM4SHOij
.


drivers: sdhc: esp32: remove unused code

Removed unused entry in SDHC driver and initialize variables accordingly. It updates hal_espressif to also remove one unused definition presented in there which is not caught by CI.

Sorry folks, needed to add another one.

I had to rebase and update west.yml due to conflict.


[novamov] simplify info extraction

Media downloaded with this approach is of worse quality than one of the current approach.
This approach does not detect some errors (e.g. "The video is being transfered"), a webpage is downloaded instead of throwing an error.


settings(admin/org): Add CSS for overflowing URLs in custom user fields

WIP #21680
The following CSS has been added to popovers.css
overflow: hideen;
text-overflow: ellipsis;
width: 300px;
Further planning is to add Show more button to show the full link
GIFs or screenshots:

@Arch0125 just a quick bump to address the feedback above, including the commit message. Thanks!

@alya Really sorry for being inactive in the community for past 1 month due to some unavoidable circumstances I will get back to contributing from the starting of the upcoming month.

No worries, looking forward to seeing you around soon!

@Arch0125 Could you please comment on why you closed this PR?

Closing as this issue was fixed by https://github.com/zulip/zulip/pull/24921.


Icons for search results

See if the UI/UX team can help generate some icons for the following data types:

Raster: geospatial imagery
ImageSetSpatial: a group of images
Geometry: vector geometry/shape
SpatialAsset: group of arbitrary files
Mesh3DSpatial: a 3D mesh
FMV: full motion video (overhead video)

@banesullivan  did you say there were icons currently in use somewhere or am I remembering that incorrectly?

Nope, no current icons - we'll need the UI/UX team to create some or find some icons we can use without restriction

Ok, good to know. Thanks


Introduce redux

Overview
This PR includes the following proposed change(s):

{List all the changes, if possible add the linked issue/ticket #}

Type of change

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Refactoring / Documentation
[ ] Version change

if your change is a breaking change, please add breaking change label to this PR
How Has This Been Tested?
Please describe the tests that you ran to verify your changes.
Screenshots
Please add any relevant UI screenshots if applicable.
Checklist:

[ ] My code follows the style guidelines of this project
[ ] I have performed a self-review of my own code
[ ] I have made corresponding changes to the documentation
[ ] New and existing unit tests pass locally with my changes

dev can't build - I think this one needs a bit more testing/tweaks so going to roll it back to unblock some other work


Show {{action}} used with (route-action)

This addon's great— thank you for maintaining it. I thought this usage was not very obvious: {{action (route-action ...)}} and very useful.

Great addition

Thank you!


[docs] Fix typo in Dialog

Fixes a small typo I found in the Dialog CSS API, under scrollBody:
bodyr → body

👌


parametarise AccessFileName, which defaults to .htaccess

Hi,
Thanks for this. Do we want to add some chefspec/serverspec tests to ensure that the security rules work? I think it would be pretty scary if we leave a whole here.

Did we ever end up writing any tests for this? I'd like to pull it in, but want to make sure we have test coverage.

@svanzoest
chefspec: check if template generate proper config file for default access file name (.htaccess) and custom access file name (.customaccess)
serverspec: check if apache config file contain access file name
Please review. Thank you.

:+1: merged.


Refactor CLI args processing

The only functional change is that directories passed to detekt CLI are validated as directories. Other than that, this just makes the code a bit more consistent by using more of JCommander's features, and using stronger typing when args are processed.

Warnings

:warning:
This PR is approved with no milestone set. If merged, it won't appear in the detekt release notes.

  Generated by :no_entry_sign: dangerJS against 578ef5199cd42a9e73dc5a172b055d9c2d665725

This PR also have another functional change that I think is good but just to point it out. When passing the inputs we allowed things like this "src/main , foo" and we map that to src/mainandfoo. Now we map it to src/main and foo`.
Also the new exception doesn't allow to spot those errors easily because the path doesn't quote the path so it is really difficult to spot that space. I'm going to create a new PR to fix this last point.

Also we should use the splitter on the --includes and --excludes too. But I would like to first merge #7007 to avoid more conflicts.


Please invite me to the community

Name
Alexander Tatevosyan (mangaka585)
Additional Context
I would like to improve open source projects with you

Invitation sent to join the GitHub Organization. Welcome to Infraform 🎉Please check your mail to accept the invitation sent by GitHub! 🤖About usInfraform is an open source solution for serverless platforms, it is designed for developing solutions and enhancing creators to create their infrastructure 💻 Great to have you in our community ✨ Looking forward to your valuable contributions! 🤓 You can also check our community ✨ Github ✨ LinkedIn 💜 You can also share our community with other folks who want to learn about development, DevOps, tech, and contribute together and with us 👉💜👈


VisualStudioVersion not set correctly for portable projects

I compiled and included the latest open source MSBuild so that VisualStudioVersion would be set correctly when loading projects . Unfortunately, it appears that this solution may not be working for portable projects.
original problem: https://github.com/ctaggart/SourceLink/issues/50
original solution: http://blog.ctaggart.com/2015/05/sourcelinkmsbuild-uploaded-to-nuget.html
On AppVeyor it evaluated to 10.0:
https://github.com/fsharp/FSharp.Data/pull/852

On my computer it evaluated to 11.0:

In both cases, it should have been set to 12.0 for Visual Studio 2013.
The original work-a-round was to hardcode the setting to load:
let proj = VsProj.Load file ["Configuration","Release"; "VisualStudioVersion","12.0"]

Instead of:
let proj = VsProj.LoadRelease file

Another test work trying is commenting out Common.props.
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />

I filed this as https://github.com/Microsoft/msbuild/issues/122.

I'll upgrade MSBuild versions as they come out. Not much I can do about this.