Add MSYS2 to the install instructions

That's right, it compiles and it's now available! :)

@ErichDonGubler when I try to use this feature in both msys bash and conEmu. I get nothing and the UI will get stuck after a simple ls -l|fzy. Can you please help? Thanks.

@jesse23: Where are you getting the fzy binary from?

@ErichDonGubler  pacman -S fzy in the latest msys2

@jesse23 Could you give me some repro and environment information? I definitely want fzy to be as usable as possible on a platform like MSYS2 -- you said you've used this in ConEmu and msys bash (which I assume to mean MinTTY)?
If the latter is true, that's interesting...because I originally did my testing and package creation with MinTTY itself:

@jesse23: Just installed ConEmu and used the msys2-64 preset...and it seems to work just fine. Do you have some configuration that's different from a preset?

@ErichDonGubler  Many thanks for looking at this issue.
Yes I think it maybe caused by conemu-msys2-64.exe. (link)
Below is my configuration:
https://github.com/jesse23/dev_home/blob/master/conEmu/ConEmu.xml
My conEmu version is ConEmu 171025 [64]
I start my session with {{Bash:MSYS2}} in this config.
I will try to run it in clean machine later to verify it.

I don't have access to a Windows machine this Thanksgiving weekend, but I'll try to take a look at this next week. :) I hope I can repro the issue!

Let's move this discussion to https://github.com/ErichDonGubler/fzy/issues/2, since it doesn't really fit the scope of this PR. I will move details from here to there when I take a closer look.

Merged as 47609dbf73789bc28289576a12177965c04ef49b. Hope that looks good.


Create project for global metadata reference and store

Provide taxonomy specific to highly regulated industries that will help with supply chain management

Metadata - inclusive of community health metadata, risk-based rubrics

Also includes data on drift and provenance, and change over time

when and where was it created externally, when was it introduced internally

state of the systems when software is used - OS, runtimes, etc - see eg. solarwinds

signatures

"build profiles" part of SPDX 3.0 (now in RC2)

Can we standardize metadata gathering sources and methodologies

Metadata: static or dynamic? Should not be "just" a snapshot

"deployment BOMs"? Defining data interchanges?

"hardware BOM" - also part of working groups

See also: package management ecosystem, registries, and protections

@johnmark during todays working call the focus was for ingesting vendor products into financial organization.  Most of our experience is helping organizations build automated governance / policy as code for their own in house development.  We are happy to share our experience and some reference architecture.  I can't imagine there would be a chasm of difference as to what would be expected from product companies providing binaries or SaaS offerings. cc: @alexashley
Here is our perspective:

https://github.com/liatrio/gh-trusted-builds-app?tab=readme-ov-file#gh-trusted-builds-app
https://www.youtube.com/watch?v=63XD4j5BCYE


Windows Getting Started Fault

On Windows, the following command is deceptive: javac --module-path %PATH_TO_FX% --add-modules=javafx.controls,javafx.fxml HelloFX.java because it will report the error: invalid flag
Reason: Doesn't interpret Program Files as program files but instead "Files".
Correctable to:  javac --module-path "%PATH_TO_FX%" --add-modules=javafx.controls,javafx.fxml HelloFX.java

Another way to work around this is to set the complete PATH_TO_FX environment variable into double quotes, like:
PATH_TO_FX="C:\Program Files\JavaFX\javafx-sdk-11.0.2\lib"
or
PATH_TO_FX = "%ProgramFiles%\JavaFX\javafx-sdk-11.0.2\lib"
Alternatively just add double quotes to the part of the path containing white space:
PATH_TO_FX="C:\Program Files"\JavaFX\javafx-sdk-11.0.2\lib
or
PATH_TO_FX="%ProgramFiles%"\JavaFX\javafx-sdk-11.0.2\lib
All these solutions are a bit easier, since you don't need to add the double quotes on each javac call on the command line...

I do not see this as a fault in the documentation.
It depends on the JDK path. If the path contains space, it is the responsibility of the user to make necessary changes either to the environment variable or to the java/c command.


Allow Parameterizing Gradle Login Dialog Title For Client Re-use

Allow setting the login dialog title, so clients may use the login to collect other credentials at runtime if desired

Added a constructor which accepts a title


To extract out B2, B3, B4, B8 bands and merge them

from where did you get it or how could I use it

Hi @zafor44,
Do you mean the images? I downloaded them from Google Earth Engine. You could mail me at<EMAIL_ADDRESS>for further discussion, instead of opening issues here.


Remove target=es3

This removes ES3 related code, including transformES5 (which does ES5 -> ES3), specific ES3 errors and language, and so on.
The actual enum value is kept; since our deprecation system detects deprecated values after parsing, we can't delete it because we won't know the value is wrong.
If ES3 is set, it just turns into ES5. Doing this involved fixing how we compute the actual target, fixing some places to use the computed value, and fixing the harness (which eagerly resolved the computed value).
Package size report
Overall package size

Before
After
Diff
Diff (percent)

Packed
5.56 MiB
5.55 MiB
-6.24 KiB
-0.11%

Unpacked
30.86 MiB
30.82 MiB
-46.20 KiB
-0.15%

Files

Before
After
Diff
Diff (percent)

lib/tsc.js
5.62 MiB
5.61 MiB
-12.69 KiB
-0.22%

lib/tsserver.js
8.24 MiB
8.22 MiB
-12.76 KiB
-0.15%

lib/typescript.d.ts
584.73 KiB
584.76 KiB
+27.00 B
+0.00%

lib/typescript.js
8.72 MiB
8.70 MiB
-13.18 KiB
-0.15%

lib/typingsInstaller.js
1.68 MiB
1.67 MiB
-7.59 KiB
-0.44%

Removing the feature added lines to the repo thanks to the test harness fixing. Oh well.

Probably I'm going to split this PR in two to fix harness problems; this PR is noisier than it should be.

With #57526 in, this is a lot clearer.

note to self: the website still lists es3 and even says it's the default even though it hasn't been for a while.


Init method screws up the select box

Go to "Programmatic access" example on the https://select2.github.io/examples.html and click on "Destroy" and "Init" buttons.  It looks too narrow.

Duplicate of https://github.com/select2/select2/issues/2935, will be fixed in 4.0.0-beta.3.


[WIP] Add a proper REPL

This PR will introduce a proper Repl using rustyline and the jit backend.
My current plan is to have a buffer which holds the code.
Every line will be processed like this:

append code to code buffer
check semantics of buffer
if new code contains main method, execute it and reset the buffer
otherwise just add the code to the buffer

It's probably possible to not reset the buffer and just override the main method in the existing program.
I'n also thinking about making the buffer not a string, but a list of parsed statements.

if new code contains main method, execute it and reset the buffer, otherwise just add the code to the buffer

I'd actually like to evaluate things as expressions by default, not as declarations. This is how node behaves:
> 1 + 2
3

and also GHCI and python
Prelude> 1 + 2
3
>>> 1 + 2
3

You can parse things as expressions by creating a new Analyzer and calling .expr(). This would be easiest by using the analyze function in src/analyze/mod.rs - it's currently test-only, but I think it's fine to make it usable in all contexts.

But how should the result of the expression then be calculated? We do not have an interpreter, only a jit and I have no idea how we can get the result of the jitted code that gets executed.

I will close this pull request and reopen one because I have lost the overview and am not really satisfied with this one.


Add silent.html to allowed redirect uris for js_oidc client.

The silent.html redirect uri needs to be added to the list here:
https://github.com/IdentityServer/IdentityServer4.Samples/blob/2bf6eed7d9d2be5214001d09d5a76f97e4a3c0f7/NodeJsApi/src/QuickstartIdentityServer/Config.cs#L63
Because the javascript client will attempt to silently renew to this redirect location.
https://github.com/IdentityServer/IdentityServer4.Samples/blob/2bf6eed7d9d2be5214001d09d5a76f97e4a3c0f7/Clients/src/JsOidc/wwwroot/app.js#L23
Since the default access token time is 1 hour, it might help to shorten the lifetimes in the sample so refresh can be observed.

@AlexZeitler -- can you do this?

Yes, but might take a few days (Saturday/Sunday).

Ok thanks.

@brockallen @ngbrown which value for the access token time would be useful for you?

These are the times that I ended up using to see the refreshes on a regular basis:
                new Client
                {
                   //...
                    AbsoluteRefreshTokenLifetime = 200,
                    IdentityTokenLifetime = 15,
                    AccessTokenLifetime = 100,
                    AuthorizationCodeLifetime = 15,
                    SlidingRefreshTokenLifetime = 120,
                   //...
                },

@brockallen done. Took a few days longer as I have been sick over the weekend.

Thanks and feel better! :)


Update Set-MpPreference.md

Added DisableFtpParsing
Fixes https://github.com/MicrosoftDocs/windows-powershell-docs/issues/3503
This is avaialble only in windows 11 and windows 2022

@JohanFreelancer9 Please copy review

@tiburd
PR has been copyedited and is ready for final review, could you please check and merge? Thanks!


Setup codecov

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@5acae49). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master       #1   +/-   ##
=========================================
  Coverage          ?   68.32%
  Complexity        ?      115
=========================================
  Files             ?       15
  Lines             ?      584
  Branches          ?       76
=========================================
  Hits              ?      399
  Misses            ?      156
  Partials          ?       29

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


Delete X-Frame-Options header from default.

I'm sorry for bother you.
This PR will delete X-Frame-Options and remove potential side-effect of this plugin.
#3

@rhukster I thought the default was SAMEORIGIN when there was no X-Frame-Options header, but I just realized it allows all iframes regardless origin.
For now, the problem of Grav itself is solved by this PR, but X-Frame-Options: SAMEORIGIN can also lead to unintended problems.
However, it seems impossible to allow all frames with the X-Frame-Options header. (Unfortunately, allow-from option deprecated)
I suggest you that delete X-Frame-Options from default example.

Probably right,  you can add it back if required


Latest Docker fails to start /docker-entrypoint.sh: exec: line 38: illegal option --

cconetboxpi01:/home/phpIPAM$ sudo docker run openspeedtest/latest --restart=unless-stopped --name openspeedtest -d -p 80:3000
/docker-entrypoint.sh: exec: line 38: illegal option --
Since the recent update I can't setup openspeedtest on machines that haven't had it before.
I've tried Ubuntu 20.04 LTS and 22.04 LTS but both give this error.
However it works fine on a Windows Docker with Ubuntu 20.04 LTS backend so unsure what the cause is.
Can you please review docker-entrypoint.sh in the docker?

My bad I had the command slightly out of order.
Got it going now.


Separate medic-specific functionality

difference-in-months, added in https://github.com/medic/openrosa-xpath-evaluator/commit/b36c6225fb3191a863a68ad80696fe6d71719061, is specific to Medic Mobile.  There should be a separately-defined and -tested medic-xpath-extensions, which "extends" openrosa-xpath-extensions.

This probably requires using require() properly both in the tests and in the code itself.

difference-in-months() was removed in 895a2e73e1c8d304696c601577b1367ca4efaf8b.
cc @garethbowen

difference-in-months() was removed in 895a2e73e1c8d304696c601577b1367ca4efaf8b.
cc @garethbowen


Breaking Change: Query crashes when compiled with VS2015 RTM (Roslyn compiler)

The following query crashes when compiled with VS2015 RTM, but works when compiled with the old compiler in VS2013:
public async Task<List<ProductRelation>> FailingQuery(SampleEnum queryOption)
        {
            using (var context = new SampleContext())
            {

                int[] ids = await Task.FromResult(new[] { 1, 2, 3, 4 });
                return await (from order in context.Set<Order>()
                              where ids.Contains(order.OrderId)
                                 && queryOption == SampleEnum.Value1
                              from pr in context.Set<ProductRelation>()
                              select pr).ToListAsync();
            }
        }

(Not that the query has been simplified for demonstration purposes, it obviously makes no sense in this shape but I have reduced it as much as possible).
Exception:

System.NotSupportedException: LINQ to Entities does not recognize the method 'System.Data.Entity.DbSet`1[RoslynEfTest.UnitTest1+ProductRelation] Set[ProductRelation]()' method, and this method cannot be translated into a store expression.

I have attached a sample unit-test project which illustrates the error.

Ported from CodePlex https://entityframework.codeplex.com/workitem/2785

Hello,
Is there any news about this bug ? We have a huge codebase and cannot migrate to VS2015 with this bug active. I have retrieved the solution provided in the codeplex forum and tried the code given in both VS 2013 and VS 2015. Indeed, the code does not work in VS2015.
It seems that the expression that EF is trying to convert is not the same in both environments :
In VS2015, this is as following :
value(System.Data.Entity.Core.Objects.ObjectQuery``1[RoslynEfTest.UnitTest1+Order]).MergeAs(AppendOnly).MergeAs(AppendOnly).Where(order => (value(System.Int32[]).Contains(order.OrderId) AndAlso ([-1] == 0))).SelectMany(order => value(RoslynEfTest.UnitTest1+SampleContext).Set(), (order, pr) => pr)
In VS2013, the expression is :
value(System.Data.Entity.Core.Objects.ObjectQuery``1[RoslynEfTest.UnitTest1+Order]).MergeAs(AppendOnly).MergeAs(AppendOnly).Where(order => (value(System.Int32[]).Contains(order.OrderId) AndAlso ([-1] == 0))).SelectMany(order => value(System.Data.Entity.Core.Objects.ObjectQuery``1[RoslynEfTest.UnitTest1+ProductRelation]).MergeAs(AppendOnly), (order, pr) => pr)
The relevant difference is that in one case, the Set method is interprated as a "MergeAs" call to an objectquery
value(System.Data.Entity.Core.Objects.ObjectQuery``1[RoslynEfTest.UnitTest1+ProductRelation]).MergeAs(AppendOnly)
whereas in the other case, it is still a call to the Set method.
 value(RoslynEfTest.UnitTest1+SampleContext).Set()
It appears that the expression provided to DbQueryProvider.CreateQuery is not the same in both environments. I still have to figure what called this CreateQuery method.

Hi again
I have found the root of this issue. In the DbQueryVisitor class, you traverse the expression tree in order to replace all the calls to context "Set" methods by the invocation of those methods (in VisitMethodCall method). If the visited node is a member expression, you retrieve the the context instance through the GetContextFromConstantExpression method. The issue is in this method.
In this method, you assume that the left operand of the expression is a ConstantExpression, otherwise you return null. This was the case in VS2013 as the context instance was directly integrated in a constant. Since VS2015 (probably since Roslyn ?), the context provided in the code above is not directly embedded in a constant but rather in a field of this constant.
A simplified example would be :
in VS 2013, the expression tree was value(SomeRuntimeTypeVariable).context.Set, but now it is value(SomeRuntimeTypeVariable).SomeField.context.Set. The left part of the expression starting from the context is now a MemberAccess on a field, and not a Constant directly. I suspect that the more inner linq contexts are in the query, the more inner field there will be in the expression tree.
I wrote a correction locally, I can submit a pull request. The correction consists in replacing the code by a call to a method that retrieve the value of the expression recursively, going up in the tree until it finds a constant value
The original code is :
            var constant = expression as ConstantExpression;
            if (constant != null)
            {
                var value = constant.Value;
                if (value != null)
                {
                    return GetContextFromMember(member, value);
                }
            }

The new code could be :
           //Retrieve the context value from the encapsulated scope
            object value = GetExpressionValue(expression);
            if (value != null)
            {
                return GetContextFromMember(member, value);
            }

With the helper method as follow :
        // <summary>
        // Tries to retrieve the value of an expression
        // If the expression is a constant, it returns the constant value.
        // If the expression is a field or property access on an expression, it returns the value of it recursively.
        // Otherwise it returns null
        // </summary>
        // <param name="expression">The expression</param>
        // <returns> The expression value. </returns>
        private static object GetExpressionValue(Expression expression)
        {
            //If the given expression is a constant, we just return its value
            ConstantExpression constantExpression = expression as ConstantExpression;
            if(constantExpression!=null)
            {
                return constantExpression.Value;
            }

            //If the given expression is a member access on an inner expression, we recursively reterieve the value of the inner expression, and get the member value from it.
            MemberExpression memberExpression = expression as MemberExpression;
            if(memberExpression!=null)
            {
                var asField = memberExpression.Member as FieldInfo;
                if (asField != null)
                {
                    object innerValue = GetExpressionValue(memberExpression.Expression);

                    if (innerValue != null)
                    {
                        return asField.GetValue(innerValue);
                    }
                }

                var asProperty = memberExpression.Member as PropertyInfo;
                if (asProperty != null)
                {
                    object innerValue = GetExpressionValue(memberExpression.Expression);

                    if (innerValue != null)
                    {
                        return asProperty.GetValue(innerValue, null);
                    }
                }
            }

            return null;
        }

anyone here ? @rowanmiller @maumar  ?

Hey ! Thank you for your answer ! Yes, a nightly build would unblock us, as our only issue is that we don't have your private key (obviously :) ) in order to generate a new package for our own purpose that would still work with 3rd party assemblies that also relies on EF DLLs.

Our plan is to tackle most of the issues assigned to the 6.2 release in early December (just to give you an idea of timeline so that you aren't left hanging 😄). BTW also feel free to send a Pull Request if you want,  given you already did a lot of the work to isolate the issue.

Hello Rowan !
I've already sent a pull request ( #104 ) with the relevant modification. Technically, the correction should not have any side effect.
I am new to github and git, and did not find the way to create a pull request with only the DbQueryVisitor.cs modification. It also included an irrelevant .sln modification I had to do which is not related to the current bug. Should I create a new pull request with only the .cs or can you merge just the .cs file from the existing pull request ?

Sorry I missed the PR you sent (and thank you for sending it!). We'll get someone to review it. The .sln changes look reasonable to me, but the developer that reviews your PR can confirm. We'll be processing all the outstanding PRs during the same timeframe I mentioned above.

Fixed in https://github.com/aspnet/EntityFramework6/commit/926744d447e3ddfa78a7f4af6c095373b7c8213a https://github.com/aspnet/EntityFramework6/commit/6463c603fe8b9f8132c7766c446fc76f58bf748e https://github.com/aspnet/EntityFramework6/commit/e7628ba43584da9d406d00726ecc6a96846f1209 https://github.com/aspnet/EntityFramework6/commit/f47edd8ba3e34515e8204090e18b9c1165e6fe71


Unable to open app through HA

Hi there,
I recently discovered this custom component for HA and I installed it through HACS to control my samsung TU8500 since I'm making automation to open Netfix on my TV automatically. The problem I encountered is whenever I changed my source through HA to an app (YouTube, Netflix or Spotify) it won't change to that app but if I change the source to HDMI1 (ST_HDMI1), HDMI3 (ST_HDMI3) or TV it will work.
As a side note I have followed the instructions to enable smartthings api and I have configured the configuration.yaml accordingl and also all apps have been configured manually through app_list just as instructed in the guide.
If there anything I should attach let me know.
Thanks in advance

Are you setting both the numerical ID and alphanumerical ID for each app? (example:<PHONE_NUMBER>1/org.tizen.netflix-app)
If so, you could try the possible fix from this issue: https://github.com/jaruba/ha-samsungtv-tizen/issues/77

I'm having the same issue.   I can open TV apps using the SmartThings app on my phone but not from HASS.
Things I tried...

all the app_list examples
I reset the TV to factory defaults and no change.
opening the SmartThings app on the TV.
deleting the TV from my smartthings account and re-adding it.

@bbrendon @josiamichael
I received another complaint about this from someone with a 2020 TV, in order to solve this we need to somehow find the common link between the people that complain about it. (as there are very few that complained about it)
So my question is, are both your TVs fabricated in 2020 also?

Also, please mention the Tizen version your TVs are using.

Btw, there have been similar issues in other setups that were fixed by starting the SmartThings app on the TV or by resetting SmartThings, more details here: https://github.com/jaruba/ha-samsungtv-tizen/issues/77
Please attempt the suggested solution from that other thread and report back so we're sure it's not the same thing.

I just purchased my TV a few weeks ago. How about people post the output of curl http://<IP_ADDRESS>:8001/api/v2/ | jq .
Does that include everything?
https://pastebin.com/jQsBRMLc

Oh, I'm currently using the other integration though it seems like development of it is going to stop? I got it working finally. I'm not sure if that would have solved it with this one. I'll probably at some point switch back to this one, but for now "If it ain't broke, dont fix it" :)
https://github.com/ollo69/ha-samsungtv-smart/issues/27#issuecomment-728647880

@bbrendon We're trying to merge the changes of that fork into samsungtv-tizen, it's good to know what worked for u, but I doubt that there's something specific to that integration that made it work.

Hi, I tried what @bbrendon did in his solution (remove everything from Device Connect Manager and then restart smart things on the phone and restart HASS). When I change the input of the TV to any of the apps, on the TV screen I see a message that asks me to connect to an external device but even if I accept it doesn't change to the app I'm trying to set.
My TV:
mnmo: QE50Q60TAUXZT
mnmn: Samsung Electronics
mnos: Tizen
mnpv: 5.5
st: 2020-11-23T10:32:21Z

I have two Samsung TVs - one I can run Apps via HA, and one I can't:
This one does NOT work:  QN49Q7DRAFXZA
This one DOES work:  QN65Q65F - It's a year older
Anything else I can do to provide more info?

Same problem here. Also tried to reset Smarthings and even changed API key, with no luck.
Here the response to curl -s "http://<IP_ADDRESS>:8001/api/v2/"
{
  "device": {
    "FrameTVSupport": "false",
    "GamePadSupport": "true",
    "ImeSyncedSupport": "true",
    "Language": "es_ES",
    "OS": "Tizen",
    "PowerState": "on",
    "TokenAuthSupport": "true",
    "VoiceSupport": "false",
    "WallScreenRatio": "0",
    "WallService": "false",
    "countryCode": "ES",
    "description": "Samsung DTV RCR",
    "developerIP": "<IP_ADDRESS>",
    "developerMode": "0",
    "duid": "*****",
    "firmwareVersion": "Unknown",
    "id": "*******",
    "ip": "<IP_ADDRESS>",
    "model": "20_KANTSU2_UHD_BASIC",
    "modelName": "UE50TU7072UXXH",
    "name": "[TV] Tele",
    "networkType": "wireless",
    "resolution": "3840x2160",
    "smartHubAgreement": "true",
    "ssid": "*****",
    "type": "Samsung SmartTV",
    "udn": "******",
    "wifiMac": "*******"
  },
  "id": "*******",
  "isSupport": {
    "DMP_DRM_PLAYREADY": "false",
    "DMP_DRM_WIDEVINE": "false",
    "DMP_available": "true",
    "EDEN_available": "true",
    "FrameTVSupport": "false",
    "ImeSyncedSupport": "true",
    "TokenAuthSupport": "true",
    "remote_available": "true",
    "remote_fourDirections": "true",
    "remote_touchPad": "true",
    "remote_voiceControl": "false"
  },
  "name": "[TV] Tele",
  "remote": "1.0",
  "type": "Samsung SmartTV",
  "uri": "http://<IP_ADDRESS>:8001/api/v2/",
  "version": "2.0.25"
}
``

I'm also unable to change the apps from HA on qe65q77tat.
I've used the Tizen Studio method from https://github.com/tavicu/homebridge-samsung-tizen/wiki/Applications to extract the application list.
I've observed that this request changes the app to Spotify as desired:
http://<IP_ADDRESS>:8001/api/v2/applications/3201606009684/
So I replaced this line:
https://github.com/jaruba/ha-samsungtv-tizen/blob/a49e349e59b87d875eb7f8a2ec95f442991a7c5c/custom_components/samsungtv_tizen/media_player.py#L515
with
requests.post('http://<IP_ADDRESS>:8001/api/v2/applications/{value}'.format(value=payload), timeout=0.5)
and to my surprise, it's working!
I don't know the difference between those two APIs and I'm afraid of making a PR with mentioned replacement because It may break integration for someone else, but it may be some hint for the @jaruba

@rowysock I guess we can create an optional parameter defined in configuration.yml to select app invocation method, and based on that we either use the current implementation or your alternative. Both can be defined inside a "run_app" method that chooses between http requests and websockets

https://pastebin.com/zU5APiT3 i have this problem too

I'm also unable to change the apps from HA on qe65q77tat.
I've used the Tizen Studio method from https://github.com/tavicu/homebridge-samsung-tizen/wiki/Applications to extract the application list.
I've observed that this request changes the app to Spotify as desired:
http://<IP_ADDRESS>:8001/api/v2/applications/3201606009684/
So I replaced this line:
https://github.com/jaruba/ha-samsungtv-tizen/blob/a49e349e59b87d875eb7f8a2ec95f442991a7c5c/custom_components/samsungtv_tizen/media_player.py#L515
with
requests.post('http://<IP_ADDRESS>:8001/api/v2/applications/{value}'.format(value=payload), timeout=0.5)
and to my surprise, it's working!
I don't know the difference between those two APIs and I'm afraid of making a PR with mentioned replacement because It may break integration for someone else, but it may be some hint for the @jaruba

This working for me

I'm also unable to change the apps from HA on qe65q77tat.
I've used the Tizen Studio method from https://github.com/tavicu/homebridge-samsung-tizen/wiki/Applications to extract the application list.
I've observed that this request changes the app to Spotify as desired:
http://<IP_ADDRESS>:8001/api/v2/applications/3201606009684/
So I replaced this line:
https://github.com/jaruba/ha-samsungtv-tizen/blob/a49e349e59b87d875eb7f8a2ec95f442991a7c5c/custom_components/samsungtv_tizen/media_player.py#L515
with
requests.post('http://<IP_ADDRESS>:8001/api/v2/applications/{value}'.format(value=payload), timeout=0.5)
and to my surprise, it's working!
I don't know the difference between those two APIs and I'm afraid of making a PR with mentioned replacement because It may break integration for someone else, but it may be some hint for the @jaruba

That worked for me also! I have a 2020 model, it's a 50 inch Q60T. First I tried just replacing the values of app IDs for my TV (they correspond to those of the list in the GitHub link) but it didn't work still. Then I made the change on the code of media_player.py and it finally worked!
Thank you so much for the suggestion!

Hi, you may find a workaround in this issue
https://github.com/jaruba/ha-samsungtv-tizen/issues/124
Hop it helps in the meantime

Hi,
I am currently facing kind of the same problem. My TV is from 2020, and I am not using smart things. When I add Netflix to the config with the numerical and the alphanumerical number, I can see it in the drop list but when I click on it, my TV  just ask me if I accept to link, and then nothing happen. It's been a week now and I am out of any idea. Other app doesn't work as well.
Any help would be appreciated and maybe help other people to sort it out !

I use the rest commands and it works like a charm
Just change the ip

rest_command:
  netflix:
    url: "http://192.168.0.X:8001/api/v2/applications/3201907018807"
    method: post
    content_type: "application/x-www-form-urlencoded"
  prime_video:
    url: "http://192.168.0.X:8001/api/v2/applications/3201910019365"
    method: post
    content_type: "application/x-www-form-urlencoded"
  youtube:
    url: "http://192.168.0.X:8001/api/v2/applications/111299001912"
    method: post
    content_type: "application/x-www-form-urlencoded"
  spotify:
    url: "http://192.168.0.X:8001/api/v2/applications/3201606009684"
    method: post
    content_type: "application/x-www-form-urlencoded"
  steam_link:
    url: "http://192.168.0.X:8001/api/v2/applications/3201702011851"
    method: post
    content_type: "application/x-www-form-urlencoded"

OK your solution is working and is really simple ! For people that have the same issue I just add exactly the code shown above in my config.yaml and then created a script that call the service RESTful. Thank you stan69b !

I'm also unable to change the apps from HA on qe65q77tat.
I've used the Tizen Studio method from https://github.com/tavicu/homebridge-samsung-tizen/wiki/Applications to extract the application list.
I've observed that this request changes the app to Spotify as desired:
http://<IP_ADDRESS>:8001/api/v2/applications/3201606009684/
So I replaced this line:
https://github.com/jaruba/ha-samsungtv-tizen/blob/a49e349e59b87d875eb7f8a2ec95f442991a7c5c/custom_components/samsungtv_tizen/media_player.py#L515
with
requests.post('http://<IP_ADDRESS>:8001/api/v2/applications/{value}'.format(value=payload), timeout=0.5)
and to my surprise, it's working!
I don't know the difference between those two APIs and I'm afraid of making a PR with mentioned replacement because It may break integration for someone else, but it may be some hint for the @jaruba

This working for me. i'm take fork. And add config variable for year tv

I had multiple TVs so I changed it to
requests.post('http://'+self._host+':8001/api/v2/applications/{value}'.format(value=payload), timeout=0.5)


Modules in paths are highlighted inconsistently

ast:: is two different colors; it should be the same in both (maybe green is correct?).
https://github.com/rust-lang/rust/blob/c3ed6681ff8d446e68ce272be4bf66f4145f6e29/src/librustdoc/clean/types.rs#L620-L628

I can't reproduce this outside of rustc.
What do you get if you choose "Inspect Editor Tokens and Scopes" and move the cursor over the two ast instances?

What do you get if you choose "Inspect Editor Tokens and Scopes"

This hangs for me. How long does it normally take? It's been over a minute.

If it helps, 'go to definition' on ast correctly points to https://github.com/rust-lang/rust/blob/2ad5292aea6328113b55968b4322528d48261316/compiler/rustc_ast/src/lib.rs#L41 for both ast snippets (although it also shows https://github.com/rust-lang/rust/blob/2ad5292aea6328113b55968b4322528d48261316/src/tools/clippy/clippy_lints/src/utils/sugg.rs#L139 for some reason).

It should be instantaneous. It shows a pop-up with highlight information, without even calling into the LSP server.

Well it is definitely not instantaneous for me :laughing: in case it matters, I'm using VSCode Remote-SSH.

in case it matters, I'm using VSCode Remote-SSH.

this is unrelated, it works on a different project, just not rust-lang/rust.

I think @jonas-schievink might be able to test this.

Can reproduce. None of the ast tokens resolve correctly for me. In fact, none of the extern crates in librustdoc resolve. Is that the issue here? Do I have to do anything special for that to work, @jyn514?
(naturally, all tokens in the from_ast function header types are of type unresolvedReference, and the inconsistent colors are due to the textmate grammar)
The output panel contains this, normally this only breaks paths to libcore, but maybe it decided to break rustc crates this time:
[ERROR project_model::workspace] cyclic deps: cargo_test_support(CrateId(160)) -> cargo(CrateId(144))
[ERROR project_model::workspace] cyclic deps: rustc_std_workspace_core(CrateId(1142)) -> core(CrateId(226))
[ERROR project_model::workspace] cyclic deps: wasi(CrateId(1664)) -> rustc_std_workspace_alloc(CrateId(1141))

This is on rust-lang/rust@1e88a1769f69f944e16cba13ba174c1d6e494b36 with rust-analyzer 2020-12-14.

In fact, none of the extern crates in librustdoc resolve.

Ahh, that's probably it - those crates are loaded from the sysroot, not from cargo. Didn't rust-analyzer add support for rustc_private recently? Or am I misremembering? If it helps, you don't need to use the toolchain directly (and it would be hard because it's a stage 1 build), you can just look at the sources in compiler/.

Oh, yeah, if they're from the sysroot then that explains it. I'm not sure how our support looks there.

This can be fixed by setting "rust-analyzer.rustcSource": "./Cargo.toml", in the rust-lang/rust workspace. I don't think that's the correct path, but stage0 does not download rustc-src, so you'd have to manually install the beta compiler and point it there.
Closing as fixed in any case!

I don't think that's the correct path, but stage0 does not download rustc-src, so you'd have to manually install the beta compiler and point it there.

This seems wrong, it should use the in-tree sources, not the sources of the beta compiler. I think ./Cargo.toml is correct.
Thanks for the workaround :) I'll add this to the dev-guide.

That seems wrong, it should use the in-tree sources, not the sources of the beta compiler. I think ./Cargo.toml is correct.

Err, I guess it depends if it's building with stage 0 or stage 1. But I doubt there's any way to get rust-analyzer to know about both, so hard-coding stage1 seems fine, that's the one download-rustc uses and what I'd expect most rustdoc contributors to be using.

Err, I guess it depends if it's building with stage 0 or stage 1.

Wait no, I was right the first time. The sysroot for stage 0 tools is newly built compiler. https://github.com/rust-lang/rust/blob/2bd17c1d43bba43412cc2f051323a279d6751e43/src/bootstrap/builder.rs#L1080


Create Lime Gen 3 Motor Controller Readout disassembled.ASM

This ist the disassembled version of the .HEX from the Motor Controller like the .hex, if you can read it, here you go.

Thanks for the contribution!
I have a request, if you have an SJ3, could you please take some external/internal photos?
What ESC model is being used, etc?

Hello, I have a few photos, i can send you the Photos, i will make more photos if i have time.
The Motor controller is potted, i removed the Potting material, and know now there is a STM32F103C8T6 inside. The Mosfets are ST110N7F6, there is a 4 Pin Falshing port in the Controller, the Processor is not locked. Here the Photos:
[img]https://i.imgur.com/7A93lVD.jpg[/img]
[img]https://i.imgur.com/nUzxONl.jpg[/img]
[img]https://i.imgur.com/SgZUp8P.jpg[/img]
[img]https://i.imgur.com/kXgUQGc.jpg[/img]
[img]https://i.imgur.com/cVvcmHb.jpg[/img]
[img]https://i.imgur.com/SvAE2Zt.jpg[/img]
[img]https://i.imgur.com/5HhSmEv.jpg[/img]
[img]https://i.imgur.com/7EgFrek.jpg[/img]
The more interesting Part of the Scooter is the green Box, if we can hack the Software on the Box, we are able to unlock the Scooter for example by SMS to a personal SIM Card in the Scooter. The green Box has three connectors, two of them are connected in the Scooter, the third one, the green one with 5pins is a service connector, it is not connected in the scooter, und i think you can acces the Software over this connector, but i do not know the Pinout. Sorry for bad english, i come from Germany i am better in reverse engineerin than speaking english...

Here this is inside the Green Box, a black box, in this black box is a green Board:
[img]https://i.imgur.com/PnZ4RDY.jpg[/img]
[img]https://i.imgur.com/fPvKHRH.jpg[/img]
[img]https://i.imgur.com/Bw3gSp6.jpg[/img]
[img]https://i.imgur.com/xBlSwNe.jpg[/img]
[img]https://i.imgur.com/VOVAxBB.jpg[/img]
[img]https://i.imgur.com/JzX50lC.jpg[/img]

Here the Board without the antennas:
[img]https://i.imgur.com/Not8bcf.jpg[/img]

Here the controller and wiring in the under case:
[img]https://i.imgur.com/gNCmaGR.jpg[/img]
[img]https://i.imgur.com/nuvH1Gp.jpg[/img]
[img]https://i.imgur.com/4oswWxG.jpg[/img]
[img]https://i.imgur.com/h4oC3LX.jpg[/img]
[img]https://i.imgur.com/fAZHGa2.jpg[/img]
[img]https://i.imgur.com/FhSGUAc.jpg[/img]
[img]https://i.imgur.com/a0MTSJE.jpg[/img]
[img]https://i.imgur.com/xirlWKx.jpg[/img]
[img]https://i.imgur.com/fFfQGnX.jpg[/img]
[img]https://i.imgur.com/DRfQmEV.jpg[/img]
[img]https://i.imgur.com/3gYuHFl.jpg[/img]
[img]https://i.imgur.com/7C9EZWU.jpg[/img]
[img]https://i.imgur.com/WyxIu7Z.jpg[/img]
[img]https://i.imgur.com/45xou2E.jpg[/img]

Hi, not sure if you are interested in what I have done (reverse engineer display module for 2.5).
Couldn't find contact.
Available here:
https://github.com/viktor76525/micro/tree/master/scooter_display

Hello,

Its always intersting to see reversing about Lime scooters, but I cannot test it, because I am in Germany, there
are no Lime Gen 2.5, only gen 3. Can you take a look sometime on the Software from the motor controller from the lime gen 3
I have posted? I want to make the Scooter a little bit stronger, but to do that, you have to set the motor current higer, and this is only possible if its possible to modify the software in this way.

Best Regards Elias

Gesendet: Donnerstag, 16. April 2020 um 13:00 Uhr
Von: "Viktor Polak"<EMAIL_ADDRESS>An: "oneohtrix/lime-scooter-reversing"<EMAIL_ADDRESS>Cc: "M20001"<EMAIL_ADDRESS>"Author"<EMAIL_ADDRESS>Betreff: Re: [oneohtrix/lime-scooter-reversing] Create Lime Gen 3 Motor Controller Readout disassembled.ASM (#6)

Hi, not sure if you are interested in what I have done (reverse engineer display module for 2.5).
Couldn't find contact.
Available here:
https://github.com/viktor76525/micro/tree/master/scooter_display
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

hey, has anyone made any progress on the combox or any of the the other components on the gen3 scooters?


Update Actions for AVH-1.1.1

AVH 1.1.1 comes with CMSIS build 0.10.4 and cmake 3.22 which introduce some changes:

cp_install.sh is not provided anymore as part of CMSIS build
Policy CMP0123 warnings are displayed by cmake when building but can safely be ignored

@armflorentlebeau It looks like instead of cp_install.sh we can utilize cpackget.


Price Suggestion Model - To suggest prices for products when you are selling them in a marketplace like Amazon

💥 Proposal
Hello, I am Siddhant Dutta - I am a GSSOC'23 Contributor. This is my resume - Resume
Introduction
The Price Suggestion Model is an open-source project aimed at predicting the prices of products listed on online marketplaces like Amazon. The goal is to provide sellers with accurate price suggestions for their products based on various attributes such as brand, category, description, name, shipping, and item condition. This project utilizes machine learning algorithms, including LGBM and Neural Networks, to predict prices and employs techniques like Bayesian search and ensemble methods to optimize model performance.
Objectives

Develop a machine learning model capable of predicting prices for products listed on online marketplaces.
Implement various algorithms, including LGBM and Neural Networks, to achieve accurate price predictions.
Utilize techniques such as Bayesian search and ensemble methods to optimize the performance of the price prediction model.
Evaluate the model's performance using metrics such as Mean Squared Error (MSE) and Root Mean Squared Logarithmic Error (RMSLE).
Provide an open-source solution that can be used by sellers on marketplaces like Amazon to improve their pricing strategies.

Deliverables:
The project will deliver the following components:

Source code of the price suggestion model implemented in Python.
Preprocessing scripts for cleaning and transforming the dataset.
Jupyter notebooks or Python scripts showcasing the implementation of various machine learning algorithms.
A trained model file that can be used for price prediction as well as the h5 weight file of the final deep learning model.
Documentation detailing the project's methodology, including preprocessing steps, algorithm selection, hyperparameter tuning, and evaluation metrics.

Methodology:

Obtain a suitable dataset from platforms like Kaggle, containing product attributes and their corresponding prices.
Preprocess the dataset, including cleaning and transforming the data, handling missing values, and encoding categorical variables.
Split the dataset into training, cross-validation & testing sets to train and evaluate the machine learning models.
Implement machine learning algorithms, including LGBM and Neural Networks, to build the price prediction model.
Utilize techniques like Bayesian search and ensemble methods to optimize the model's hyperparameters and overall performance.
Evaluate the model's performance using custom loss functions & metrics such as MSE and RMSLE, comparing the predicted prices with the actual prices in the test dataset.
Iterate and refine the model based on the evaluation results to improve accuracy.

Timeline
EDA, Data Cleaning & preprocessing: 1 week
Feature Engineering Model implementation: 2 weeks
Optimization & Evaluation and refinement: 1 week
Documentation and finalization: 1 week

@elucidator8918
I want to work on this project, I am a girls script summer of code aspirant.
Please assign it to me.

@elucidator8918   - you can go ahead! We are assigning you 21 days for this project, after which it will be assigned to someone else if not completed. All the best!
Name the file as: algorithm_dataset.ipynb and link it in the readme of the labeled directory as algorithm - dataset.
@varsha089    - since we are following the first-come-first-serve policy, we will not be able to assign you this issue. However, you can create another issue on the similar lines.


Can not add user

Describe the bug
The adduser command get the error npm ERR! Registry returned 407 for PUT on http://localhost:4873/-/user/org.couchdb.user:XX
To Reproduce
Working with npm behind proxy, running verdaccio according to the documentation
Expected behavior
Add a user
Configuration File (cat ~/.config/verdaccio/config.yaml)
storage: ./storage
http_proxy: http://XX:YYYY@ZZZ
https_proxy: http://XX:YYYY@ZZZ
plugins: ./plugins
web:
title: Verdaccio
auth:
htpasswd:
file: ./htpasswd
uplinks:
npmjs:
url: https://registry.npmjs.org/
packages:
'@/':
access: $all
publish: $authenticated
unpublish: $authenticated
proxy: npmjs
access: $all
publish: $authenticated
unpublish: $authenticated

proxy: npmjs

server:
keepAliveTimeout: 60
middlewares:
audit:
enabled: true
logs:

{ type: stdout, format: pretty, level: http }

Environment information
System:
OS: Windows Server 2016 10.0.14393
CPU: (8) x64 Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz
Binaries:
Node: 10.13.0 - C:\Program Files\nodejs\node.EXE
npm: 6.4.1 - C:\Program Files\nodejs\npm.CMD

407 means https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/407 , the error seems to be in your side.


Create SAS logical Interconnet group does not allow to use name instead of uri

Scenario/Intent
Create playbook for SAS logical interconnect group with name instead of Uri
Environment Details

**Module Version:**5.3.1
Ansible Version: 2.7.15+
OneView Appliance Version: 4.20.01
OneView Client API Version: 800
Python Version: 2.7
**python-hpOneView SDK Version:**5.0.0
Platform: Ubuntu

Steps to Reproduce
 - name: Create SAS logical interconnect group LIG-SAS
   oneview_sas_logical_interconnect_group:
     config: '{{config}}'
     state: present
     data:
         name:                        'LIG-SAS'
         description:                 nan
         enclosureType:               SY12000
         interconnectBaySet:          1

         enclosureIndexes:
             - 1
         interconnectMapTemplate:
             interconnectMapEntryTemplates:
                 - permittedInterconnectTypeUri: "/rest/sas-interconnect-types/Synergy12GbSASConnectionModule"
                   enclosureIndex:                   1
                   logicalLocation:
                     locationEntries:
                         - relativeValue:            1
                           type:                     'Bay'
                         - relativeValue:            1
                           type:                     'Enclosure'

                 #- permittedInterconnectTypeUri: "/rest/sas-interconnect-types/Synergy12GbSASConnectionModule"
                 - permittedInterconnectTypeName: "Synergy 12Gb SAS Connection Module"

Expected Result
LIG created for SAS.
Note: it works for VC 40G F8 and VC-FC
Actual Result
TASK [Create SAS logical interconnect group LIG-SAS] ***********************************************************************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: HPOneViewException: (u'Unrecognized JSON field.', {u'errorSource': None, u'recommendedActions': [u'Check the valid fields for this JSON object and remove or correct the unrecognized field.'], u'data': {}, u'errorCode': u'UNRECOGNIZED_JSON_FIELD', u'details': u'The field named permittedInterconnectTypeName near line 1, column 1,078 is not a valid field in this JSON object.', u'message': u'Unrecognized JSON field.', u'nestedErrors': []})
fatal: [localhost -> localhost]: FAILED! => {"changed": false, "module_stderr": "Traceback (most recent call last):\n  File "/home/dung/.ansible/tmp/ansible-tmp-1567537593.92-5098982024313/AnsiballZ_oneview_sas_logical_interconnect_group.py", line 114, in \n    _ansiballz_main()\n  File "/home/dung/.ansible/tmp/ansible-tmp-1567537593.92-5098982024313/AnsiballZ_oneview_sas_logical_interconnect_group.py", line 106, in _ansiballz_main\n    invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n  File "/home/dung/.ansible/tmp/ansible-tmp-1567537593.92-5098982024313/AnsiballZ_oneview_sas_logical_interconnect_group.py", line 49, in invoke_module\n    imp.load_module('main', mod, module, MOD_DESC)\n  File "/tmp/ansible_oneview_sas_logical_interconnect_group_payload_lOgEkr/main.py", line 152, in \n  File "/tmp/ansible_oneview_sas_logical_interconnect_group_payload_lOgEkr/main.py", line 148, in main\n  File "/tmp/ansible_oneview_sas_logical_interconnect_group_payload_lOgEkr/ansible_oneview_sas_logical_interconnect_group_payload.zip/ansible/module_utils/oneview.py", line 445, in run\n  File "/tmp/ansible_oneview_sas_logical_interconnect_group_payload_lOgEkr/main.py", line 142, in execute_module\n  File "/tmp/ansible_oneview_sas_logical_interconnect_group_payload_lOgEkr/ansible_oneview_sas_logical_interconnect_group_payload.zip/ansible/module_utils/oneview.py", line 508, in resource_present\n  File "/tmp/ansible_oneview_sas_logical_interconnect_group_payload_lOgEkr/ansible_oneview_sas_logical_interconnect_group_payload.zip/ansible/module_utils/oneview.py", line 525, in _update_resource\n  File "build/bdist.linux-x86_64/egg/hpOneView/resources/resource.py", line 73, in wrap\n    return obj(*args, **kwargs)\n  File "build/bdist.linux-x86_64/egg/hpOneView/resources/resource.py", line 230, in update\n    self.data = self._helper.update(resource, uri, force, timeout, custom_headers)\n  File "build/bdist.linux-x86_64/egg/hpOneView/resources/resource.py", line 469, in update\n    return self.do_put(uri, resource, timeout, custom_headers)\n  File "build/bdist.linux-x86_64/egg/hpOneView/resources/resource.py", line 756, in do_put\n    task, body = self._connection.put(uri, resource, custom_headers=custom_headers)\n  File "build/bdist.linux-x86_64/egg/hpOneView/connection.py", line 373, in put\n    return self.__do_rest_call('PUT', uri, body, custom_headers=custom_headers)\n  File "build/bdist.linux-x86_64/egg/hpOneView/connection.py", line 403, in __do_rest_call\n    raise HPOneViewException(body)\nHPOneViewException: (u'Unrecognized JSON field.', {u'errorSource': None, u'recommendedActions': [u'Check the valid fields for this JSON object and remove or correct the unrecognized field.'], u'data': {}, u'errorCode': u'UNRECOGNIZED_JSON_FIELD', u'details': u'The field named permittedInterconnectTypeName near line 1, column 1,078 is not a valid field in this JSON object.', u'message': u'Unrecognized JSON field.', u'nestedErrors': []})\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}

Going forward, all the enhancement requests will be addressed in the NEW HPE OneView Ansible Collection. Please consider migration to the Ansible Collection.
Migration support material can be found in the Migration Support folder.
We have added this resource in our ansible collections backlog.
https://github.com/HewlettPackard/oneview-ansible-collection


new version: 2.2

2.2 was released. Upstream kept the 2.1 release around this time so things won't break. New build defs are ready, just need a new branch

Done.


Add fuzzing

Codecov Report

Merging #26 into master will decrease coverage by 0.46%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master      #26      +/-   ##
==========================================
- Coverage   70.20%   69.74%   -0.47%
==========================================
  Files          12       13       +1
  Lines         923      932       +9
==========================================
+ Hits          648      650       +2
- Misses        153      161       +8
+ Partials      122      121       -1

Impacted Files
Coverage Δ

pkg/file/file.go
71.42% <ø> (ø)

test/fuzz-reader/reader.go
0.00% <0.00%> (ø)

pkg/file/person.go
60.49% <0.00%> (+0.82%)
:arrow_up:

Continue to review full report at Codecov.

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


Trim Bundled Requirements

Current requirements.txt has a lot of dev dependencies and I'm not really sure where numpy is coming from, but it'd be good to reduce that.

Ok, numpy is gone, but the dev requirements (jedi, pynvim, black, etc.) should be separated as well.


TCP backend

This is quite a big PR, but it includes some changes which will increase overall quality of the library.
The most important addition is of course the new backend sending messages to Graylog over TCP. On broken connection the backend tries to reconnect with backoff and all of the logs received during the time of disconnection will be lost.
The second biggest change is the reimplementation of the GELF formatter. Previous formatter formatted log severity in the wrong way (levels which appeared in Graylog were not the same as on the Erlang side) and encoded numbers as strings. I haven't used full fledged JSON encoder (even though GELF is essentially JSON) to format the logs, because I am not sure if any encoder is able to always format floats with only 6 decimal places (that's the requirement imposed by the GELF format, but I am not sure what would happen in reality if floats were encoded in a different way). New formatter also gives greater flexibility when it comes to filtering metadata or adding it dynamically to logs sent to Graylog.
For now I have removed the tests for the UDP backend, since they wouldn't compile anyway. The next step after this PR is to write proper tests for the UDP backend and document it properly. After that, we'll be able to release version 0.2.0.

Since you added tests and care about dialyzer I think it'd be good to add this repo to travis and have it tested regularly.

And of course thanks for the effort! Good work!

@michalwski Yes, I plan to add CI before releasing the next version of the library.

And thanks for the review ❤


Fixes int overflow issue for large TTL values

Fixes #3357.
The line indexTtl * 1000 will produce an integer overflow for large indexTtl values. For example 7890000 * 1000 will produce an integer overflow (some negative number).
The simple fix is to use long in the multiplication.

Ping @anuraaga
On Sat, 14 Aug 2021, 22:16 m, @.***> wrote:

Fixes #3357 https://github.com/openzipkin/zipkin/issues/3357.
The line indexTtl * 1000 will produce an integer overflow for large
indexTtl values. For example 7890000 * 1000 will produce an integer
overflow (some negative number).
The simple fix is to use long in the multiplication.
You can view, comment on, or merge this pull request online at:
https://github.com/openzipkin/zipkin/pull/3367
Commit Summary

Fixes int overflow issue for large TTL values

File Changes

M
zipkin-storage/cassandra/src/main/java/zipkin2/storage/cassandra/CassandraSpanStore.java
https://github.com/openzipkin/zipkin/pull/3367/files#diff-d85e858924df5caed00b20b67deac8389b768227fc7fdf8f7575884ae941a663
(2)

Patch Links:

https://github.com/openzipkin/zipkin/pull/3367.patch
https://github.com/openzipkin/zipkin/pull/3367.diff

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/openzipkin/zipkin/pull/3367, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAXOYATCSMZBLEHKGXAOGLTT43FLVANCNFSM5CFNDVLA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email
.

@vy8 could you add a unit test for this?

Hey @jcchavezs just did. Even thought it's a simple test that checks if startMillis is smaller than endMillis it will fail with the old code that doesn't have the explicit 'L' for long.

Somehow the test is failing. Would you please look into it?

@jcchavezs bumped the year in the license from 2020 to 2021 and all should be good.

thanks. will be in next release


If you did not read the following, please do.

https://my.learn.co/courses/630/pages/technical-project-manual

Ordering the issues list


Serialization support for primitive Spark SQL types

Add support for additional Spark SQL types:

BinaryType
ByteType
CalendarIntervalType
NullType
ShortType
TimestampType

This is work in progress on #39.

Thanks!


fix: remove instanceid field

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


add importance_sample method to NestedSamples and MCMCSamples

As suggested in #120, this PR implements a method for importance re-weighting the nested samples, which allows e.g. discarding/penalising samples as done in #120, but also allows adding to logL, e.g. with data from a different experiment.
Some things to keep in mind:

We should note that this is a distinct advantage of doing it this way, rather than manually computing log volumes, since we get an error bar.

In general, reweighting doesn't solve everything, as if there is a big difference between the importance sampled likelihood and the actual one you sampled over in the first place then you won't have enough sampling coverage to get decent posteriors and evidences, but it would definitely be worth doing in a similar context to the planck parameters table, where the reweighting is more minor.

Checklist:

[x] I have performed a self-review of my own code
[x] My code is PEP8 compliant (flake8 anesthetic tests)
[x] My code contains compliant docstrings (pydocstyle --convention=numpy anesthetic)
[x] New and existing unit tests pass locally with my changes (python -m pytest)
[x] I have added tests that prove my fix is effective or that my feature works

postscript -- mine and Andrew's comments overlap (apologies, I was mid-review and did not see andrew).

@pstoecker, given your work on gambit related importance weighting, you will likely be interested in this PR when it is merged later today, as well as the conversation in #120.

One further optional addition is to add an inplace=False optional kwarg to importance_sample, in the same vein as NestedSamples.set_beta, and generally quite common in pandas for this kind of large-scale operation.. This would be implemented simply as
def importance_sample(self, logL_new, action='add', inplace=False):
￼....
     if inplace:
        self = samples
    else:
        return samples

The situation here is a tiny bit more complicated than for set_beta, as self might (or probably will) change shape here. I gave it a try and it didn't work as easily as anticipated and now I'm wondering whether this is really needed?
Typical situations where inplace is used is where the structure of the object stays intact and only some elements are modified, e.g. to get a perfomance gain. This is not the case, here, so I'd vote for leaving this option out.

Sorry to be a pain in requesting another change, but something I just realised when adjusting the title is that a key thing that this PR is missing is an equivalent method for MCMCSamples, which would just reweight the logL column. NestedSamples should then super() call the reweighting portion, and then recompute the nlive with merge_nested_samples

This thing made me wish for docstring inheritance (#22, #24) again... In the current version the docstrings for the MCMCSamples and the NestedSamples method are almost identical...

Many thanks to @andrewfowlie and @williamjameshandley for your helpful input!


[Museformer]Update script for running inference directly.

Hi, thanks for sharing your great work!
However, I was confused a lot when I just wanted to try Museformer with the inference step. It seems that the inference step only needs a "dict.txt" copied from data/meta/ to data-bin/lmd6remi/ rather than preparing the whole dataset. That is, the Dataset preparation and the training steps are unnecessary if someone just wants to try Musefomer, is it?
I add some init commands to the inference script. The readme is also updated about this. I think these could make the project clear to those who want to try Museformer.

@microsoft-github-policy-service agree


Is there a way to renter a partial and update the specific DOM element

Hey @henrydjacob
Yes, you can use CableReady for that.
In your controller, you will have to include CableReady::Broadcaster
class MessagesController < ApplicationController
  include CableReady::Broadcaster

# POST /messages
  def create
    @message = Message.create(message_params)

<EMAIL_ADDRESS>      selector: "#timeline",
      position: "afterbegin",
      html: render_to_string(partial: 'message', locals: { message: @message })
    )
    cable_ready.broadcast
  end

I hope this helps.
You can read more about it here:
https://cableready.stimulusreflex.com/

This is great, can we also subscribe to a specific room and send these updates only to those users who are subscribed

Exactly! You get the 💡 now.


get_chebyshev_schedule not working

when i call get_chebyshev_schedule with any integer value like get_chebyshev_schedule(5), it will error on return steps[perm]: IndexError: index 3 is out of bounds for axis 0 with size 3
Am I using this wrongly?

Thanks for the report. the usage is correct!
Actually, the current implementation is brought from here, and the formula seems okay (I just checked the paper), But needs to fix the implementation.


Turn on edit sessions makes badge show "1"

This seems like it's about turning something on, as opposed to a pending user action, so we shouldn't use any notification badge at all.

The problem I am trying to solve by showing the global activity badge is that if a user is using Continue On from a client where they have enabled edit sessions to a client where they have not enabled edit sessions, then their edit session will fail to restore with no indication that they need to do something to retrieve their changes.
The reason I went with the global activity badge is to be consistent with what we already do for settings sync (there, we also show the account badge but only if settings sync was previously enabled and subsequently disabled due to successive auth failures):
https://github.com/microsoft/vscode/blob/f23f2e5b4db2ffb89d721445a0ac05b0ca3d3dd2/src/vs/workbench/contrib/userDataSync/browser/userDataSync.ts#L475
It seems like the global activity menu primarily means to the user that there is a pending VS Code update, so it's probably not a good idea for edit sessions to overload the meaning of that badge. Some alternative solutions:

Rename the item in the global activity menu to 'Check for pending edit sessions', which is more accurate to the intention of showing that badge
Show the badge in the account menu instead (this is also not great since the user may not have taken an explicit action)
Introduce a new status bar item to communicate that there may be edit sessions (which has the advantage that users can hide it)
Introduce some query parameter to the app protocol handler which indicates that VS Code was launched via Continue On, and use this to either show the global activity badge or even display a sign in modal since in this scenario we are confident that the user needs and wants to turn on edit sessions

From my closed issue (https://github.com/microsoft/vscode/issues/160530) - I have not used nor touched the "Edit Sessions" menu item, the badge just showed up when I updated Insiders and VSCode restarted.

Also I cannot actually click on the tooltip: "Manage: Turn on Edit Sessions..." it disappears when I try to click on it. Hopefully not by design!

Also I cannot actually click on the tooltip: "Manage: Turn on Edit Sessions..." it disappears when I try to click on it. Hopefully not by design!

Tooltips like this aren't clickable, but when you click the gearwheel you should see a suitable option in its context menu.

When I mouse over the gear icon, I see "Manage: Turn on Edit Sessions..."

However, I cannot find the "Manage: Turn on Edit Sessions..." in the menu when opening

@roblourens The scenario is that if you come from github.dev, choose to Continue On with edit sessions, and say you want to clone a repo locally, but you haven't turned on edit sessions locally, we will launch VS Code locally and clone your repo but your edit session will fail to restore.
I think

Introduce some query parameter to the app protocol handler which indicates that VS Code was launched via Continue On, and use this to either show the global activity badge or even display a sign in modal, since in this scenario we are confident that the user needs and wants to turn on edit sessions

is probably the most targeted way to deal with this scenario but I want to get @joaomoreno's thoughts on whether there are other better alternatives.

Same here, not used edit sessions in any way.

Actually, I do often make changes in a PR on GH and push that to the PR, not sure that would count as an edit session? The changes are never left without commit though.

@bpasero That wouldn't be an edit session. You create an edit session when you use Continue Working On to switch development environments (which in insiders will now ask you if you want to also bring your uncommitted changes with you via edit sessions).

I should note that I am using: Version: 1.72.0-insider (user setup)
Commit: 0dce868b85978716d4fc7bc48b6a6a54c6a39fd0
Date: 2022-09-09T05:17:41.485Z
Electron: 19.0.12
Chromium: 102.0.5005.167
Node.js: 16.14.2
V8: <IP_ADDRESS>-electron.0
OS: Windows_NT x64 10.0.22000
Sandboxed: Yes

we will launch VS Code locally and clone your repo but your edit session will fail to restore.

Seems like a notification would be better for that, if I am missing changes that I want to work on right now. People are good at ignoring updates (via the badge)

Introduce a new status bar item to communicate that there may be edit sessions (which has the advantage that users can hide it)
Introduce some query parameter to the app protocol handler which indicates that VS Code was launched via Continue On, and use this to either show the global activity badge or even display a sign in modal since in this scenario we are confident that the user needs and wants to turn on edit sessions

These two options resonate with me. We need a better heuristic of whether the user might be in that situation and the query param seems like a good option. We have to consider what that means in terms of whether it matters only for the window that the URL resulted in, whether that remains when reloading the window or restarting VS Code, etc. As to what UX affordance to use, status bar is interesting, though I'm not sure how well that would scale. UX discussions would be nice.


Uncaught TypeError: Cannot read property 'getPath' of undefined

[Enter steps to reproduce below:]

Select Packages > open-in-browsers > Toggle
Error

Atom Version: 1.5.4
System: Mac OS X 10.11.3
Thrown From: open-in-browsers package, v0.0.11
Stack Trace
Uncaught TypeError: Cannot read property 'getPath' of undefined
At /Users/Chris/.atom/packages/open-in-browsers/lib/open-in-browsers-view.coffee:64

TypeError: Cannot read property 'getPath' of undefined
    at OpenInBrowsersView.getFilePath (/Users/Chris/.atom/packages/open-in-browsers/lib/open-in-browsers-view.coffee:64:21)
    at OpenInBrowsersView.open (/Users/Chris/.atom/packages/open-in-browsers/lib/open-in-browsers-view.coffee:84:14)
    at OpenInBrowsersView.openBrowser (/Users/Chris/.atom/packages/open-in-browsers/lib/open-in-browsers-view.coffee:52:8)
    at atom-workspace.subscriptions.add.atom.commands.add.open-in-browsers:toggle (/Users/Chris/.atom/packages/open-in-browsers/lib/open-in-browsers.coffee:135:27)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:260:29)
    at CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61)
    at CommandRegistry.module.exports.CommandRegistry.dispatch (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:160:19)
    at AtomEnvironment.module.exports.AtomEnvironment.dispatchApplicationMenuCommand (/Applications/Atom.app/Contents/Resources/app.asar/src/atom-environment.js:1013:28)
    at emitOne (events.js:77:13)
    at EventEmitter.emit (events.js:169:7)

Commands
     -1:20.1.0 tree-view:add-file (span.name.icon.icon-repo)
  2x -1:15.2.0 application:add-project-folder (span.name.icon.icon-repo)
     -0:01.0 open-in-browsers:toggle (atom-pane.pane.active)

Config
{
  "core": {
    "openEmptyEditorOnStart": false
  }
}

Installed Packages
# User
docblockr, v0.7.3
open-in-browsers, v0.0.11
refactor, v0.6.0

# Dev
No dev packages

Can you check the latest patch.


DBZ-5613 Wait before SQL server container is considered as started

We execute init script once the container is started, but started container may not be initialized yet and e.g. setting CDC for tables may fail with:
Cannot perform this operation while SQLServerAgent is starting. Try again later.

This happens especially in CI where the machines are slower. Add startup strategy to wait for 5 seconds until container is considered as started.
https://issues.redhat.com/browse/DBZ-5613

@vjuranek Applied, thanks


Sample lengths in an unlabeled c3D file

Hi! I've successfully trained the network with some labeled c3ds using the default options of 10 epochs and 120 window size. However, when I offer an unlabeld c3d track, I get the following error:
Traceback (most recent call last):
  File "C:\tools\miniconda3\envs\AutoLabel\lib\site-packages\flask\app.py", line 2447, in wsgi_app
    response = self.full_dispatch_request()
  File "C:\tools\miniconda3\envs\AutoLabel\lib\site-packages\flask\app.py", line 1952, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "C:\tools\miniconda3\envs\AutoLabel\lib\site-packages\flask\app.py", line 1821, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "C:\tools\miniconda3\envs\AutoLabel\lib\site-packages\flask\_compat.py", line 39, in reraise
    raise value
  File "C:\tools\miniconda3\envs\AutoLabel\lib\site-packages\flask\app.py", line 1950, in full_dispatch_request
    rv = self.dispatch_request()
  File "C:\tools\miniconda3\envs\AutoLabel\lib\site-packages\flask\app.py", line 1936, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "C:\tools\miniconda3\envs\AutoLabel\lib\site-packages\dash\dash.py", line 1078, in dispatch
    response.set_data(func(*args, outputs_list=outputs_list))
  File "C:\tools\miniconda3\envs\AutoLabel\lib\site-packages\dash\dash.py", line 1009, in add_context
    output_value = func(*args, **kwargs)  # %% callback invoked %%
  File "markerLabelGUI.py", line 538, in label_data
    pts, modelpath, trainvalpath, markersetpath, fs, windowSize
  File "D:\Documents\auto-marker-label\automarkerlabel.py", line 1251, in marker_label
    probWindow = predict_nn(modelpath, pts, windowIdx, scaleVals, num_mks, max_len)
  File "D:\Documents\auto-marker-label\automarkerlabel.py", line 1157, in predict_nn
    outputs = net(data, data_lens)
  File "C:\tools\miniconda3\envs\AutoLabel\lib\site-packages\torch\nn\modules\module.py", line 532, in __call__
    result = self.forward(*input, **kwargs)
  File "D:\Documents\auto-marker-label\automarkerlabel.py", line 1015, in forward
    x.float(), x_lens, batch_first=True, enforce_sorted=False
  File "C:\tools\miniconda3\envs\AutoLabel\lib\site-packages\torch\nn\utils\rnn.py", line 233, in pack_padded_sequence
    _VF._pack_padded_sequence(input, lengths, batch_first)
RuntimeError: Length of all samples has to be greater than 0, but found an element in 'lengths' that is <= 0

From what I read, this happens when empty data is fed to either the training algorithm or the labeling process, but I have no empty markers. I am using gait c3d files, where missing markers are much more common, specially at the beginning and the end. I attach an unlabeled sample here, any advice would be really appreciated.
unlabeled_sample.zip

It was because there are 4 frames at the beginning when only one marker is visible. I just added a check for that so I think it should work now. Let me know if that solves the problem.

Amazing, that did it, thanks!

I'll play around with some of the parameters now, I trained the model with just 7 trials from the same subject, and left one for testing. With the current settings and that scarce training, it misses most of the markers, and more worryingly, some wrong labels have really high confidence. I'll play around with window size (we capture at 100 Hz, so that might be a factor) and epochs, and see what I can get.
Really looking forward to your paper!

Glad it's running at least!
Another thing to check is the rotation of the person. The data are all rotated so that the person faces +x for training, so you need to do the same when labelling (or should be anyway, using the two markers you specify). I noticed in your file the person walks forward in y which would need a -90 in the 'Rotation about z' box in the GUI. I can't see the axis labels in your picture, so not sure if you've taken care of that already.
You can also always try generating the simulated trajectories for training to give it some more data to train on.

This works amazingly!
I changed all my c3Ds in training to face +X, and trained 300 epochs (by the way, instead of fixing epochs, could this be done until a threshold loss is achieved?). Then, as you suggested, faced my test trials +x in the markerLabelGUI.

Great!
Yes, that is a good suggestion, I should look into having a criterion for stopping the training.


[Feature] - Create Element Template Generator for Camunda 8

[x] Description created
[x] Reviewed by peer (24 hr window):
[x] Prioritised

Description
As a developer I want to generate Element Templates from code to increase the reusability of the integrations I have written. This should be possible via a simple maven or gradle dependency. It saves me time not to create the JSON templates by myself and have them generated.
This should apply for Camunda Platform 8.
Sub-Tasks
### Tasks
- [ ]  Draft a prototype
- [ ]  Write test cases
- [ ]  Refactor
- [ ]  Create documentation
- [ ]  Release as maven or gradle dependency

@peterhnm - looks about right! 👍

❓ @Hafflgav jsonschema2pojo does have problems generating pojos form this schema. @rami-nk descriped this in #51. Do I need to create the schema myself or am I using jsonschema2pojo incorrectly?

❓ @Hafflgav jsonschema2pojo has problems generating pojos form this schema. @rami-nk descriped this in #51. Do I need to create the schema myself or am I using jsonschema2pojo incorrectly?

Puh, apparently I do not know this right away. Isn't this evident from the code @rami-nk  wrote for the C7 Element Template Generator?


Server returns a 404 Error

I've been trying to compile my modification of Fromage, but when I attempted to install CandyK, I get a 404 error.

I removed it to save VPS space a long time ago, hoping to move it over to my new and improved work-in-progress toolchain. Alas, apparently I've miscalculated.

I uploaded a backup of an older version of the toolchain. I think I've updated GCC/binutils since, but it should be new enough to compile Fromage. Does this work for you?

It managed to download, but unfortunately I can't compile Fromage

So I'm attempting to install Candy-K PSX again after a while, and I'm getting a 404 error like before

You'll need to add SigLevel = Optional to the repository definition in your pacman.conf


Refactor!/move code gen to separate package

This is primarily beneficial because it removes dev related dependencies from the Swift package. This will make it play nicer as an import because it won't force consumers to clone and build all the non-product dependencies.
This is also pretty important for getting the package to work on linux since by separating the dev/code-gen dependencies from the production code we free up the opportunity to use non-linux dev/code-gen tools/dependencies (which is fine in my use case) while still maintaining the production code's ability to compile on linux.
There's still some stuff I haven't totally grokked about your CI/dev setup to effectuate this change fully so this will probably need from edits from your side.
See https://github.com/CrownedPhoenix/swift-graphql-code-gen/tree/experiment/separate-code-gen-package for an example of the separate package in action. Obviously, you ought to make a new repo under your namespace and transfer the code and fix it up.

Current focus has been on v6 which resolves these and many other issues. The plan wasn't to make large scale changes to the existing library to minimise impact on those not ready to migrate when v6 releases.
I'll take a deeper look at this when I have some time, but I'm hesitant at a glance, purely since it doesn't align with current planned work and we have extremely limited time as it is.


macOS 12 sometimes kills Node.js process when loading the QE library

When there's a fresh release that not a lot of people have run on their machines yet, macOS 12+ on Apple Silicon often kills the Node.js process when trying to load the library. This happens with dev builds all the time, and recently we started getting reports from people encountering it with public releases.
Logs in /Applications/Utilities/Console.app show it was killed because of "Invalid code signature".
When this happens, one can either:

Sign the Query Engine with their own Apple Developer ID — this immediately fixes the issue locally.
find . -name libquery_engine-darwin-arm64.dylib.node | xargs codesign -f -s '<YOUR NAME AS IN APPLE DEVELOPER ID CERT>'

(for example, find . -name libquery_engine-darwin-arm64.dylib.node | xargs codesign -f -s 'Oleksii Orlenko')

Wait until the Query Engine hash is whitelisted by macOS Gatekeeper and the issue magically resolves itself. This usually takes up to a day.

Try using the binary engine instead of the library. macOS is usually not as strict towards the standalone binary as it is towards a dynamic shared library loaded by the Node.js process. Perhaps also because Node.js binary itself is signed?

Ostensibly, this happens because we don't sign our binaries, and should be fixed by signing them with a valid Apple Developer ID.

Confirmed cases:

https://github.com/prisma/prisma/issues/14057
https://prisma-company.slack.com/archives/C016KUHB1R6/p1655233721657349
https://prisma-company.slack.com/archives/CUXLS0Z6K/p1637144570062100?thread_ts=1637143821.061000&cid=CUXLS0Z6K

Suspected cases:

https://www.reddit.com/r/node/comments/vj4atm/prisma_314_315_node_crash/

Some "keywords" to make this issue googleable and maybe gather more cases:
zsh: killed     npx prisma generate

zsh: killed     ts-node index.ts

zsh: killed     npm start

More context:

https://github.com/prisma/prisma/issues/12016#issuecomment-1050360310
https://openradar.appspot.com/FB8914243

Per the Open Radar putting the engine file into a location that includes its version (either CLI or Engine should work) might avoid this problem as it seems to depend on being in the same location as a previous file.


github: add feature request issue template

I recently saw people using the bug template for feature requests, so here is a template for feature requests.

Can we also link this to https://github.com/cilium/design-cfps? It would be great to have a place to keep track of these


CHORE: provide a sample code snippet of how to insert records into the

... new proposed table structure of "all bots in the deposit table, bot specific details in a bot data table"

https://www.notion.so/volumefi/EPIC-07-19-23-Separate-SQLite-DB-table-0fa9e96132d84b0295f91f31b9b73422?pvs=4


How to pre-process normal dataset

If my dataset's images and masks are like Pascal Voc, which means they are .png or .jpg. How to transfer for that kind of dataset.
Thank you very much for you kindly help.

A video tutorial will be available by the end of this week.

Hi @Kalfredwv
I just created a 2D tutorial
https://github.com/bowang-lab/MedSAM/blob/main/finetune_and_inference_tutorial_2D_dataset.ipynb
The video tutorial will be available by the end of this Sunday (Toronto Time).

Thank you very much!

Here you go
https://github.com/bowang-lab/MedSAM#model-training-video-tutorial


Disable change notifications for internal transient realms

A customer using partial sync and thread-safe references with .NET on Android reported a deadlock in a peculiar scenario.
Basically he had a partial realm where he was writing objects that didn't match any of the subscriptions and so the server was deleting them from the partial realm.
On Linux (and Android) this causes a lot of churn in ExternalCommitHelper because of the constant opening and closing of realms due to GetInstance and ResolveReference calls coupled with the sync client integrating frequent changesets. This apparently causes ExternalCommitHelper::DaemonThread::m_mutex to deadlock.
The solution is to disable automatic change notifications for realms that don't need them so that ExternalCommitHelper instances don't get created needlessly.
The .NET reproduction follows.
public class Person : RealmObject
{
    public string Name { get; set; }

    [Backlink(nameof(Dog.Owner))]
    public IQueryable<Dog> Dogs { get; }
}

public class Dog : RealmObject
{
    public string Name { get; set; }

    public Person Owner { get; set; }
}

async Task Repro()
{
    var config = new SyncConfiguration(user, serverUri)
    {
        IsPartial = true,
        ObjectClasses = new[] { typeof(Person), typeof(Dog) }
    };

    var person = new Person { Name = "Пешо" };
    var realm = Realm.GetInstance(config);
    var query = await realm.SubscribeToObjectsAsync<Person>("Name == 'Пешо'");

    realm.Write(() => realm.Add(person));

    var thread = new AsyncContextThread();
    await Enumerable.Range(0, 100).Select(i =>
    {
        var @ref = ThreadSafeReference.Create(person);
        return thread.Factory.Run(() =>
        {
            using (var realm = Realm.GetInstance(config))
            {
                var @object = realm.ResolveReference(@ref);
                realm.Write(() =>
                {
                    realm.Add(new Dog { Name = $"Шаро №{i + 1}", Owner = @object });
                });
            }
        });
    }).WhenAll();
}

The ThreadSafeReference change is definitely fine, but I'm not totally confident that SyncMetadataManager will work correctly without autorefresh.

As far as I can tell all the methods on SyncMetadataManager open the metadata realm as a local variable. But SyncUserMetadata holds on to a realm instance - I suppose I can re-enable automatic change notifications for the realm it's created with as it's a distinct instance from SyncMetadataManager's.
It was the client_uuid() method that caused the issue in this particular test, because it was polled every time the partial realm was opened.

It's opening the realm with caching enabled, so there's no guarantee that it's actually getting a fresh instance. That said, I'm not very familiar with the workings of the sync metadata realm so I have no idea if it'll ever actually get a cached one. If in practice it's never using a cached one, then disabling both change notifications and caching would be safe. If it is actually sometimes using the cache, then adding an explicit refresh() call to each of the read function would suffice.

For client_uuid() specifically it's probably just worth storing the value on an instance variable since it appears to never actually change after it's set, rather than reopening the Realm to read it every time.


How to load static files?

I'm sure I'm missing the obvious here. My form displays a blank space where the map should go, essentially because the static files do not get loaded (or referenced for that matter) in my template. How should I link them? How should I configure the static files?

I've the same problem: while the admin example application works very well, there is no documentation about template rendering

My Django is rusty, but I get it to work by quick hack i.e. loading the form.js, jquery.livequery.js and maps.google.com/maps.api manually in my template:
then I have this issue https://github.com/caioariede/django-location-field/issues/78

@jupiterkenji Can you explain how you have loaded it manually? I too would like it fixed, but for what i am doing a quick hack is enough

I'm seeing the same issue. The code that shows the widget in my admin interface (not just the example one, but my own models) does not work in forms. @jupiterkenji it would be very helpful if you could state exactly how you did this as a workaround, because my own attempt to do this just triggers more errors.

Sorry for late reply, I should pay more attention to my email. What I meant was loading it on template like so:
`{% extends 'base.html' %}
{% load staticfiles %}
{% load sekizai_tags %}
{% block content %}
{% addtoblock "js" %}
	<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js"></script>
	<script src="/assets/location_field/js/jquery.livequery.js"></script>
	<script src="/assets/location_field/js/form.js"></script>
	<script src="//maps.google.com/maps/api/js?key=......"></script>
{% endaddtoblock %}`

Hope that helps.

Fixed in #123
Documentation now includes a section about this: https://django-location-field.readthedocs.io/en/latest/install.html#rendering-form-with-a-map


Use consistent tile coordinate keys

Tile coordinate keys from ol.tilecoord.toString() are different than the ones
from Array.prototype.toString(). Both were used, potentially causing problems.
This change makes them consistent and removes the now unnecessary
ol.tileCoord.toString() function.

LGTM @ahocevar

The only visual change will be in the canvas tiles example where the key is displayed but this shouldn't matter


no lts

我想问问 no lts 是不是就是没有启动lts呀

^Z
[4]+  Stopped                 ghostunnel server --listen <IP_ADDRESS>:10111 --target localhost:10024 --key out/suidao.xiaofeiji.ml.key --cert out/suidao.xiaofeiji.ml.crt --cacert out/CA.pem --allow-all
You have new mail in /var/spool/mail/root
[root@vultr sui]# ghostunnel server     --listen <IP_ADDRESS>:10024     --target localhost:10111     --key out/suidao.xiaofeiji.ml.key     --cert out/suidao.xiaofeiji.ml.crt     --cacert out/CA.pem     --allow-all
[29869] 2020/02/04 01:18:42.542730 starting ghostunnel in server mode
[29869] 2020/02/04 01:18:42.544809 using target address localhost:10111
[29869] 2020/02/04 01:18:42.544917 listening for connections on <IP_ADDRESS>:10024
[29869] 2020/02/04 01:22:16.353696 opening pipe: tcp:<IP_ADDRESS>:50014 [CN=zj1.cu.xlddns.xyz] <-> tcp:<IP_ADDRESS>:10111 [no tls]
[29869] 2020/02/04 01:22:40.655474 closed pipe: tcp:<IP_ADDRESS>:50014 [CN=zj1.cu.xlddns.xyz] <-> tcp:<IP_ADDRESS>:10111 [no tls]
[29869] 2020/02/04 01:22:47.809732 opening pipe: tcp:<IP_ADDRESS>:50016 [CN=zj1.cu.xlddns.xyz] <-> tcp:<IP_ADDRESS>:10111 [no tls]
[29869] 2020/02/04 01:22:52.194035 closed pipe: tcp:<IP_ADDRESS>:50016 [CN=zj1.cu.xlddns.xyz] <-> tcp:<IP_ADDRESS>:10111 [no tls]
[29869] 2020/02/04 01:23:03.087347 opening pipe: tcp:<IP_ADDRESS>:50018 [CN=zj1.cu.xlddns.xyz] <-> tcp:<IP_ADDRESS>:10111 [no tls]
[29869] 2020/02/04 01:23:07.769304 closed pipe: tcp:<IP_ADDRESS>:50018 [CN=zj1.cu.xlddns.xyz] <-> tcp:<IP_ADDRESS>:10111 [no tls]
[29869] 2020/02/04 01:38:56.464599 opening pipe: tcp:<IP_ADDRESS>:50022 [CN=zj1.cu.xlddns.xyz] <-> tcp:<IP_ADDRESS>:10111 [no tls]
[29869] 2020/02/04 01:39:00.832294 closed pipe: tcp:<IP_ADDRESS>:50022 [CN=zj1.cu.xlddns.xyz] <-> tcp:<IP_ADDRESS>:10111 [no tls]
[29869] 2020/02/04 01:39:14.787360 opening pipe: tcp:<IP_ADDRESS>:50024 [CN=zj1.cu.xlddns.xyz] <-> tcp:<IP_ADDRESS>:10111 [no tls]
[29869] 2020/02/04 01:39:32.692920 closed pipe: tcp:<IP_ADDRESS>:50024 [CN=zj1.cu.xlddns.xyz] <-> tcp:<IP_ADDRESS>:10111 [no tls]
[29869] 2020/02/04 01:42:06.929593 opening pipe: tcp:<IP_ADDRESS>:50026 [CN=zj1.cu.xlddns.xyz] <-> tcp:<IP_ADDRESS>:10111 [no tls]
[29869] 2020/02/04 01:42:08.729295 closed pipe: tcp:<IP_ADDRESS>:50026 [CN=zj1.cu.xlddns.xyz] <-> tcp:<IP_ADDRESS>:10111 [no tls]
[29869] 2020/02/04 01:42:09.109780 opening pipe: tcp:<IP_ADDRESS>:50028 [CN=zj1.cu.xlddns.xyz] <-> tcp:<IP_ADDRESS>:10111 [no tls]
[29869] 2020/02/04 01:42:13.792893 closed pipe: tcp:<IP_ADDRESS>:50028 [CN=zj1.cu.xlddns.xyz] <-> tcp:<IP_ADDRESS>:10111 [no tls]
[29869] 2020/02/04 01:42:20.611597 opening pipe: tcp:<IP_ADDRESS>:50030 [CN=zj1.cu.xlddns.xyz] <-> tcp:<IP_ADDRESS>:10111 [no tls]
[29869] 2020/02/04 01:42:25.180550 closed pipe: tcp:<IP_ADDRESS>:50030 [CN=zj1.cu.xlddns.xyz] <-> tcp:<IP_ADDRESS>:10111 [no tls]
[29869] 2020/02/04 01:56:29.130661 opening pipe: tcp:<IP_ADDRESS>:50032 [CN=zj1.cu.xlddns.xyz] <-> tcp:<IP_ADDRESS>:10111 [no tls]
[29869] 2020/02/04 01:56:54.356635 closed pipe: tcp:<IP_ADDRESS>:50032 [CN=zj1.cu.xlddns.xyz] <-> tcp:<IP_ADDRESS>:10111 [no tls]

这是我的日志

Ghostunnel is a proxy, one side of the connection will have TLS and the other will not. In server mode, the target will not have TLS. In client mode, the client will not have TLS but the target will. This is expected behavior.

好的 谢谢哦

I still do not get it How can I build a lts tunnel

Maybe you want to run two instances of ghostunnel? It's unclear to me what you are trying to achieve.
   |--- LOCALHOST ---|      |--- NETWORK ---|         |--- LOCALHOST ---|

tcp client <= TCP => ghostunnel1 <= TLS => ghostunnel2 <= TCP => tcp service
the TCP connections are insecure but over localhost.
the TLS connection is secure.


doc: change "certifictes" to "certificates"

fix minor typo in doc/man7/ossl-guide-tls-introduction.pod
The on-line version is here:
https://www.openssl.org/docs/manmaster/man7/ossl-guide-tls-introduction.html

[x] documentation is added or updated

This pull request is ready to merge

Merged to master and 3.2. Thank you.


3rd assignment

Received labs 3-6. It seems that lab 5_3 is not complete, and the model in lab 6_3 has not been trained. Please confirm your repo is up to date. Thanks!

Dear Prof. Danil
I have updated new versions
Thanks!
On Tue, Dec 20, 2016 at 2:30 PM, Danil Nagy<EMAIL_ADDRESS>wrote:

Received labs 3-6. It seems that lab 5_3 is not complete, and the model in
lab 6_3 has not been trained. Please confirm your repo is up to date.
Thanks!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/dmc-2016/dmc/pull/138#issuecomment-268335264, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AVOslomWtrz52BhQ03o50MZtwdrDlDVdks5rKCzQgaJpZM4LQRgA
.


Rexyls

https://gist.githubusercontent.com/RexyLS/18d43a293a136ef8b15dbdf19ede386d/raw/968c9ced3458b57718a87f12af435fce7c343407/Week%25203%2520programming%2520assignment_b.r

no description and the link is dead. pls close it


Added Raspbian 64bit builds (aarch64)

Tested on my own build of Elementary OS (based off Ubuntu 20.04) for the Raspberry Pi and Ubuntu 22.04 aarch64 on a Raspberry Pi 4B.

Forgot to mention also works on Rasbian aarch64


Admin UI - Unhelpful Error w/ Missing Organization Name and Email-based Connectors

Bug Description
In the admin UI, when an organization name is not yet specified and an admin goes to create an email-based connector, an error notice is displayed, but no helpful error message accompanies it. The error, [INFO]: Email connector test failed with exception Cannot send an email to third-party vendor. No organization name found makes its way into the container's logs, but not the admin UI, and not with an appropriate log level (should be WARN or ERROR, not INFO)
For example, the following is what I encountered while trying to create an Attentive integration.

Steps to Reproduce

Spin up a new Fides server that does not yet have an organization name assigned
Create an Attentive connection
Click Save or Test Email

Expected behavior

See a helpful error message that prompts the tells the user that the organization name has yet to be set.
Possibly offer a link to information on how to set the organization name
Container log level should be set to WARN or higher.

Environment

Version: 2.11.x

@Roger-Ethyca  can we confirm that this is resolved?


fix(CX-2248): broken onboarding webview links on android

The type of this PR is: Bugfix

This PR resolves CX-2248
Description

Added the right navigation to Onboarding, Terms of Use, Privacy Policy and Conditions of Sale pages, Android. Fixes the bug introduced in CX-2204.

PR Checklist (tick all before merging)

[x] I have included screenshots or videos to illustrate my changes, or I have not changed anything that impacts the UI.
[x] I have tested my changes on iOS and Android.
[x] I have added tests/stories for my changes, or my changes don't require testing/stories, or I have included a link to a separate Jira ticket covering the tests.
[x] I have added a feature flag, or my changes don't require a feature flag. (How do I add one?)
[x] I have documented any follow-up work that this PR will require, or it does not require any.
[x] I have added an app state migration, or my changes do not require one. (What are migrations?)
[x] I have added a changelog entry below or my changes do not require one.

To the reviewers 👀

[ ] I would like at least one of the reviewers to run this PR on the simulator or device.

Changelog updates
Changelog updates

Cross-platform user-facing changes

iOS user-facing changes

Android user-facing changes

Onboarding screens, Terms of Use, Privacy Policy  and Conditions of Sale pages are opened in a WebView on Android -Daria

Dev changes

Added three webview components and used them in the Onboarding StackNavigator.Navigator
Implemented navigation conditionally. For iOS - navigate function from lib/navigation/navigate. For Android - react-navigation

Warnings

:warning:

❌ An error occurred while validating your changelog, please make sure you provided a valid changelog.

  Generated by :no_entry_sign: dangerJS against 44fa5fc62f6bfbaa879e95f2881853ae3615d986

#squashongreen

Hey @Nargle30 It seems like your git is not configured properly, that's why your profile picture is not showing up properly. You can do so as described here https://www.codeblocq.com/2016/10/Github-Avatar-not-showing-on-list-of-commits/


popover 'Auto left' / 'Auto right' placement bug latest Chrome (Version 54.0.2840.71 (64-bit))

Running the latest Chrome, when using 'auto left' or 'auto right' with the popover placement attribute, the popover arrow is initially misaligned. For clarity, if you select 'auto left' and the popover gets adjusted right for lack of room on the left, then the arrow is misaligned, otherwise it looks fine on the left.   Any event that changes a css property will somehow fix the issue on the page for the opened popover e.g. expanding the browser past a MQ breakpoint or manually adjusting any css element of the popover arrow in the devtools, but when you close and reopen the popover the issue will re-present itself.
I have noticed that this issue is not present on machines with older chromes v.53 and under. This issue is not present in FF or Safari.  You can duplicate this issue with the angular bootstrap popover plunker link by adding  'auto' to the popover-placement attribute, and select left for the button.
https://plnkr.co/edit/cld8q7rtEa6O9zSGuGlW?p=preview
Again, this only affects the repositioned 'auto left' and 'auto right' placement in the latest version of chrome.

:+1: I am also seeing this with auto bottom and auto top

Closing as a won't fix given v3's state (we're not actively developing it while working on v4).


Stalling after merging a PR

currently opam-repo-ci stalls after merging a PR and both the web-ui and main admin page return 405s for a few minutes after.
There is probably some code that takes a long time and doesn't use Lwt somewhere.
It seems this happened somewhere after the merge of https://github.com/ocurrent/opam-repo-ci/pull/70

Running perf top on ci3 while this is happening might discover the problem.

#81 fixed the issue


Integrate character detail view with backend

Integrate character detail view with backend
Display character's data & configure route

Please add your planning poker estimate with ZenHub @AnnieTran13