Learning rate for ResNet 110

I am trying to train resnet110. After the first epoch, the learning rate does not return to .1.

I believe this yields expected behavior (if it is actually desired that only the first epoch have learning rate of .01).
for epoch in range(args.start_epoch, args.epochs):
    if epoch == 1:
        for param_group in optimizer.param_groups:
            param_group['lr'] *= 10

`


How to use SetBackground

Hi
Thank you for this useful tool
How to use SetBackground to change the background from transparent to another color?

Could you please clarify: the background of what? Of a particular formula element or of the whole control?

Thanks, i find a solution to set the background of the image
If you can replace brush with System.Drawing.Color this will be better .....SetBackground(System.Drawing.Color)
var mediaBackClr = System.Windows.Media.Color.FromArgb(backClr.A, backClr.R, backClr.G, backClr.B);
var backsolidbrush = new System.Windows.Media.SolidColorBrush(mediaBackClr);
var backBrush = WpfMath.Rendering.WpfBrush.FromBrush(backsolidbrush);
latexformula.SetBackground(backBrush);

Ok, now I see what you mean.
Unfortunately, I don't think we are going that way.
While not exactly, System.Drawing.Color is mostly associated with Windows Forms and not WPF; as you can see, WPF uses its own color types (while, for simple coloring, they directly correspond to each other).
WPF part of XAML Math is only going to deal with WPF types. Aside from color types, this allows you to apply any WPF brush to select coloring, even a texture brush or whatnot.
We will be developing a separate Windows Forms backend (#378), though, that will allow you to use WinForms Brush instead. And that one is a bit easier to construct from a System.Drawing.Color.
Note that it will never be possible to mix WPF rendering and Windows Forms brushes, though.


Out of Identifier Error

I have a rule file consisting of 241 rules that correspond to OWL 2 QL reasoning and I have a facts file that contains 26618 rules and a query file that corresponds to the datalog translation of the SPARQL query.  The Purpose is to translate ontology into a datalog program and use the fixed rules (241) and Facts to answer the query.
The rules in the rules.txt contain no negation and are recursive in nature.
When I execute this file in Clingo it gives me an "Out of Identifier" error. This is unusual for me because when the same 241 rules I used with different fact files they worked but with this particular file "MEF0" it give me this error.
I have attached all the files:
MEF0.txt
rules.txt
query0.txt
I wanted to ask:
How much large input file we can use with Clingo?
Is there a way to increase the size?
Is there any way to make above MEF0 work?
Thankyou!
Kind Regards,
Haya

I have tried DLV2, and it worked.
I wanted to made it work with Clingo.

It runs through with the --text option.

Yes it run continuously, i waited for more then 30 minutes  and then i killed it.  I want particular predicate result in output. But this command output all the predicates.

Yes it run continuously, i waited for more then 30 minutes and then i killed it. I want particular predicate result in output. But this command output all the predicates.

You can use tools like grep or one of the many alternatives. The following pipe produces a line similar to what clingo without option --text would output:
clingo --text MEF0.txt rules.txt query0.txt | grep '^result' | tr -d '.' | paste -s -d ' '

In case you are using Windows, a modern shell like the power shell should provide the necessary tools. I just cannot help you there.


Internal error with super method call

The following code compiled with --language_in=ECMASCRIPT6_STRICT -O SIMPLE:
class Foo {
  m() {}
}
class Bar extends Foo {
  m() {
    super.m(); // `super['m']()` also crashes
  }
}

Crashes with the following trace:
INTERNAL COMPILER ERROR.
Please report this problem.

Unexpected variable arguments
  Node(NAME arguments): bug_closure.js:5:0
class Bar extends Foo {
  Parent(CALL): bug_closure.js:5:0
class Bar extends Foo {

	at com.google.javascript.jscomp.VarCheck.visit(VarCheck.java:202)
	at com.google.javascript.jscomp.NodeTraversal.traverseBranch(NodeTraversal.java:609)
	at com.google.javascript.jscomp.NodeTraversal.traverseBranch(NodeTraversal.java:603)
	at com.google.javascript.jscomp.NodeTraversal.traverseBranch(NodeTraversal.java:603)
	at com.google.javascript.jscomp.NodeTraversal.traverseBlockScope(NodeTraversal.java:652)
	at com.google.javascript.jscomp.NodeTraversal.traverseBranch(NodeTraversal.java:597)
	at com.google.javascript.jscomp.NodeTraversal.traverseFunction(NodeTraversal.java:643)
	at com.google.javascript.jscomp.NodeTraversal.traverseBranch(NodeTraversal.java:595)
	at com.google.javascript.jscomp.NodeTraversal.traverseBranch(NodeTraversal.java:603)
	at com.google.javascript.jscomp.NodeTraversal.traverseBranch(NodeTraversal.java:603)
	at com.google.javascript.jscomp.NodeTraversal.traverseBranch(NodeTraversal.java:603)
	at com.google.javascript.jscomp.NodeTraversal.traverseBranch(NodeTraversal.java:603)
	at com.google.javascript.jscomp.NodeTraversal.traverseRoots(NodeTraversal.java:314)
	at com.google.javascript.jscomp.VarCheck.process(VarCheck.java:142)
	at com.google.javascript.jscomp.PhaseOptimizer$NamedPass.process(PhaseOptimizer.java:285)

The ES6 to ES6 complication is still experimental, please use --language_out=ECMASCRIPT5_STRICT for the time being.

The ES6 to ES6 compilation is still experimental, please use --language_out=ECMASCRIPT5_STRICT for the time being.

Will do, thanks, but doesn't fix this crash unfortunately.

I'm actually seeing this for an even simpler case:
class Foo {}
class Bar extends Foo {}

Maybe something to do with one of the recent changes from NodeTraversal.traverse to NodeTraversal.traverseEs6

git bisect says 30433568c712a3846947faef5bb6bc4465680bf3 is to blame.

So it seems to be failing on the synthetic constructor that is inserted by the compiler, which looks like
class Bar extends Foo {
  constructor() {
    Foo.apply(this, arguments);
  }
}

But if you add that constructor explicitly then it doesn't fail. What's strange is, it's crashing in the second checkVars pass (the "sanity check" that happens at the end) not the one that was moved in 3043356.

Yay, thanks guys!


Altered demo

@softdesign-ro , please include these documents in the demo (and potentially tests).


[v4.0.0-beta.6] Rendering issue about custom initial animated value inside renderItem

Is this a bug report, a feature request, or a question?
It's a bug.

Have you followed the required steps before opening a bug report?

[x] I have read the guidelines regarding bug report.
[x] I have reviewed the documentation in its entirety, including the dedicated documentations :books:.
[x] I have searched for existing issues and made sure that the problem hasn't already been reported.
[x] I am using the latest plugin version.
[x] I am following the issue template closely in order to produce a useful bug report.

Have you made sure that it wasn't a React Native bug?
No, it's not a React Native bug.

Is the bug specific to iOS or Android? Or can it be reproduced on both platforms?
Yes this bug can be reproduced on both iOS and Android.
Is the bug reproductible in a production environment (not a debug one)?
Yes this bug is reproductible in a production environment.

Environment

Environment :
React: 16.11.0
React native : 0.62 (Expo SDK 38)
react-native-snap-carousel: 4.0.0-beta.6
Expected Behavior

It is expected that animations made inside rendered items components are fired.
Actual Behavior

Animations inside renderItem component don't fire at all.
Reproducible Demo
Really, it's impossible to provide a snack exemple because of the complexity of my app. I rely on way too much libraries, backend services and custom primitive components. But I'm 100% sure the problem isn't related to this. It'd take a complete day of work to build a working snack exemple.
If needed, I will try to provide a very simple snack exemple of the issue.

Steps to Reproduce

Put some React Animated API color interpolations animations inside your rendered components (renderItem).
Fire animations by touching some TouchableOpacity components located inside rendered components.
See that everything works but animations don't fire, even with useScrollView prop set (I thought it could be related to Flatlist).

IMPORTANT

Animations I use don't rely on useNativeDriver since they are used by backgroundColor props.
Animations are perfectly working inside components rendered by react-native-swiper library or horizontal ScrollView components.
useScrollView prop doesn't seem to fix the problem.
I'm using the latest react-native-snap-carousel version (4.0.0-beta.6)

I just figured out that animation doesn't fire because the previous value it takes (initialValue) is the same as the toValue prop. Don't know why it changes from a library to another though.
Here's the culprit :
export const useTemperatureColorAnimation = (
  temperature: number,
  temperatureType: AppTemperatureType = 'setpoint',
): Animated.AnimatedInterpolation => {
  const animatedTemperature = useAnimation({
    type: 'spring',
    // initialValue: temperature (-1 || +1)
    toValue: temperature,
    useNativeDriver: false, // unfortunately not possible by native...
  });

  return useConstant(() => {
    const inputRange = [
      TemperatureThresholds.off,
      TemperatureThresholds.off + 1,
      TemperatureThresholds.antifreeze,
      TemperatureThresholds.min,
      TemperatureThresholds.medium - 1,
      TemperatureThresholds.medium,
      TemperatureThresholds.hot - 1,
      TemperatureThresholds.hot,
    ];
    const outputRangeColors: AppColorName[] = [
      getTemperatureColor(TemperatureThresholds.off, temperatureType),
      getTemperatureColor(TemperatureThresholds.antifreeze, temperatureType),
      getTemperatureColor(TemperatureThresholds.antifreeze, temperatureType),
      getTemperatureColor(TemperatureThresholds.min, temperatureType),
      getTemperatureColor(TemperatureThresholds.min, temperatureType),
      getTemperatureColor(TemperatureThresholds.medium, temperatureType),
      getTemperatureColor(TemperatureThresholds.medium, temperatureType),
      getTemperatureColor(TemperatureThresholds.hot, temperatureType),
    ];
    const outputRange = outputRangeColors.map(colorName =>
      getAppColor(colorName),
    );

    return animatedTemperature.interpolate({
      inputRange,
      outputRange,
      extrapolate: 'clamp',
    });
  });
};

The initialValue prop should be infered from the last function call, but with react-native-snap-carousel library, it doesn't. Any ideas ?
PS: I'm using react-native-animation-hooks lib.

Problem solved ! It wasn't about the library, sorry for opening an issue.
The problem is that I was using the renderItem prop this way :
renderItem={({ item: group }: { item: AppGroup }) => <RenderItem group={group} />}

And not this way :
renderItem={renderItem}

I was doing this because my RenderItem was using hooks, so it can't be rendered as a function and needed to be a real React functional component.
I found a solution for using hooks outside my function and then renamed "RenderItem" to "renderItem", which allowed my animations to infer the value of the initialValue with toValue prop of the previous useTemperatureColorAnimation() call.
I don't know why this was occuring, but this is now working ! If you have some explanations about this weird behaviour I'd be interested reading it.
Anyway, i can close this issue, hoping somebody will find this helpful.

Thank you for sharing your findings @ajacquierbret!
I'm sure it will help other people in the same situation :-)

Btw, here's a working snack example of the solution : https://snack.expo.io/@ajacquierbret/react-native-snap-carousel-issue


add controller for BarcodeWidget

add controller for BarcodeWidget
add autoStop for BarcodeWidget default to false

When to use it?

When to use it? As a breaking change rather than a compatibility modification, it will only be merged if it is truly necessary.

https://github.com/fluttercandies/scan_barcode/pull/3#issuecomment-1809421378
Stop scanning when match a result or when do other actions(eg: detect a qrcode from an image in the same page)
The changes in this PR are compatible with the previous version in terms of usage.


Can’t rename a template via fragments

Windows Terminal version
No response
Windows build number
No response
Other Software
No response
Steps to reproduce
Ship a template fragment with something like:
"profiles": [
      {
        "updates": "{f184b75f-6c82-5ea5-9b3e-3203d66c5f82}",
        "name": "My new profile name",
      },
    ]
  }

Then restart the terminal to take the new fragment in account.
Expected Behavior
"My new profile name" should appear as the profile name
Actual Behavior
The old name still appears, "name" in case of "update" is discared.
The rationale here is to replace the generated named in WSL, which is using the registered WSL ID (Ubuntu2004LTS for instance) instead of the Display Name registered (and used as the tab name entry) like the more readable Ubuntu 20.04 LTS.
Other kind of entries are overridden by the fragment, but not the name one.
The workaround right now is to hide the generated template with hidden: true and add a whole new entry.

Huh. It should be able to do that. Why doesn't that work? I bet this regressed in one of the many settings refactors over the last few months.
Thanks for filing this! Let's make sure to get this fixed.

/cc @lhecker for this one ;)

I'll debug this issue starting next week. 🙂

The problem here is that fields in a user's settings.json take precedence over fragments. Since profiles are created and written with a "name" field, the "name" field in fragments usually has no effect. If you were to remove the "name" field from your settings.json this would work as expected.
What is unexpected however is that we don't respect such updates when the dynamic profile is first added. I'm going to submit a PR for that.


Rewrite routines generating resource maps

The routines in this package that generate resource maps aren't smart (enough). They totally disregard the triples in previous versions of the resource map and generate the next version's resource map from scratch. This isn't usually a problem but it will be once/if we add PROV triples to resource maps because they'll get removed when we update a package.
Off the top of my head, the only function that needs changing is:

update_resource_map

I think what I want to do is have the routine split the resource map into two sets of triples:

Basic housekeeping triples such as

ore:aggregates / cito:documents statements
other basic statements like cito:identifier and such

Extra triples

Then, when updating a resource map, the routine would only need to generate a new resource map from scratch and then add the triples from (2).

FIxed in 3dc4b147947e474a6a1f189fc31b89d7c3d5d5bb


fix: Fixed the example module name

Overview
Fixed the example module name

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Network not responding

Hello,
We have an architecture where IOT2050 reads data from a PLC using Modbus TCP (cycle 1s) and sends it via MQTT to a AWS private server. We use NodeRed for data reading and manipulation. We have configured 2 networks:
1 - connected to PLC AB - static IP
2 - connected to a MUM853-1 - static IP and gateway
The problem is that after a period of time ( sometimes after the router loses GSM signal) the network is not responding. We can see the device in ARP list of router but we cannot ping or ssh into it. After restart everything is back again working.
System logs are here: https://s.go.ro/w3np1a4d | password: 539737
What can be the cause of this problem? Thank you!

pretty large logs!
any idea when the problem occurred (estimated date/time)?
/var/log/messages is ~350k lines
I would suggest running tcpdump on the iot2050 and router (or another machine being on the same network) to check how much they are talking when you start having network hiccups
would you be able to connect a monitor and keyboard to the iot2050 and open a shell?
could you alternatively open a shell via the debug console?

NetworkManager logs (journalctl -D log/journal -u NetworkManager) do not seem to exhibit anything abnormal. In particular, I was checking for log entries just before a -- Boot line (since you had indicated that you were forced to reboot the IOT2050 to restore the network connection. Logs that I see in your archive:
Jun 10 21:28:38 IOT NetworkManager[676]: <info>  [1718047718.4917] policy: set 'eno2-connection' (eno2) as default for IPv4 routing and DNS
Jun 10 21:28:38 IOT NetworkManager[676]: <info>  [1718047718.5026] device (eno2): Activation: successful, device activated.
Jun 10 21:28:38 IOT NetworkManager[676]: <info>  [1718047718.5066] manager: NetworkManager state is now CONNECTED_GLOBAL
-- Boot 7b0617bd9c7848e59c6cc47fa6d68b4e --

Is the IP address you are trying to ping / ssh-to <IP_ADDRESS>?

We have set the following
IP1:<IP_ADDRESS> /24- Static
IP2:<IP_ADDRESS>/24 - Static with <IP_ADDRESS> gateway (MUM)
IP2 is routed via MUM to have access from the private APN.
The last problem occurred on Wed, 5 Jun 2024 at 19:14 . This is the date where the IOT lost the connection with AWS.
I had this problem in the past (i do not know the date exactly) but it was the same reaction. The network did not respond to ping. I tried to connect directly with the cable to avoid the router and no answer. I tried to connect to IP1 and it worked . After restart everything was in order. I uploaded also the MUM logs.
startup_SCALANCE_M800.zip


Schema docs could use more description on how to directly leverage the data structures defined

We could use better documentation on how to leverage the schemas to make use of the data structures that they define.
This is a companion to #814 which may result in actual changes to the schemas.

Now that we have a development page in the documentation we can ameliorate this with some code there.


There was a resource authorization issue

I have an Azure DevOps job where I am using a template task. The pipeline fails with:
There was a resource authorization issue: "The pipeline is not valid. Job createResources: Step AzureCLI2 input connectedServiceNameARM references service connection $(serviceConnectionName) which could not be found. The service connection does not exist or has not been authorized for use. For authorization details, refer to https://aka.ms/yamlauthz. Job createResources: Step AzureCLI3 input connectedServiceNameARM references service connection $(serviceConnectionName) which could not be found. The service connection does not exist or has not been authorized for use. For authorization details, refer to https://aka.ms/yamlauthz."
If I click on "authorize resource" and reurn the pipeline, the same happens.
How do I fix this?
On further testing: If I have a pipeline > job template > task template, I get the error.
If I have a pipeline > job no template > task template, this works.
Is this a bug?

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

ID: ee4ec9d0-e0d5-4fb4-7c3e-b84abfa290c2
Version Independent ID: 3e2b80d9-30e5-0c48-49f0-4fcdfedf5eee
Content: Define YAML resources for Azure Pipelines - Azure Pipelines
Content Source: docs/pipelines/process/resources.md
Service: azure-devops-pipelines
Sub-service: azure-devops-pipelines-process
GitHub Login: @juliakm
Microsoft Alias: jukullam

@am8448 -- thank you for your well-researched feedback.  This repo is solely for documentation issues, and this seems product-related.  Please add it here:

Developer Community

Also, consider these resources:

Azure DevOps Services
Azure DevOps on Stack Overflow

I am closing this issue now.  You are welcome to @ mention me for any followup.  We hope to hear from you again.


[Icon Request] Support for Inno Setup

[x] I'm sure this issue is not a duplicate.

[x] I'm submitting an icon request:

Type: extension
Icon Name: Inno Setup
Extensions: .iss

Language Extensions: https://marketplace.visualstudio.com/items?itemName=idleberg.innosetup

More info:
HomePage: http://www.jrsoftware.org/

file-icon support .iss extension file, but its format supported is ttf, not svg.

This one is a hard to make due to the gradient pattern on the official logo.
The good thing is that file-icon has an svg (black and white) version of the icon so probably gonna base my work on it.

Thanks.


Automatic PR from RestAPI-PR954

Generated from RestAPI PR: https://github.com/Azure/azure-rest-api-specs/pull/954

Codecov Report

Merging #1008 into master will decrease coverage by -0.01%.
The diff coverage is 63.73%.

@@            Coverage Diff             @@
##           master    #1008      +/-   ##
==========================================
- Coverage   57.85%   57.84%   -0.01%
==========================================
  Files        1931     1933       +2
  Lines       53398    53455      +57
==========================================
+ Hits        30891    30921      +30
- Misses      22507    22534      +27

Impacted Files
Coverage Δ

...ql/azure/mgmt/sql/operations/servers_operations.py
60.58% <ø> (ø)
:white_check_mark:

...mgmt-sql/azure/mgmt/sql/models/slo_usage_metric.py
57.14% <ø> (ø)
:white_check_mark:

.../azure/mgmt/sql/operations/databases_operations.py
32.88% <ø> (-0.36%)
:x:

...gmt-sql/azure/mgmt/sql/models/recommended_index.py
27.77% <ø> (ø)
:white_check_mark:

...re/mgmt/sql/operations/elastic_pools_operations.py
11.49% <ø> (+0.13%)
:white_check_mark:

...ure-mgmt-sql/azure/mgmt/sql/models/elastic_pool.py
35.71% <ø> (-2.75%)
:x:

...sql/azure/mgmt/sql/models/elastic_pool_activity.py
19.23% <ø> (-3.5%)
:x:

...mgmt-sql/azure/mgmt/sql/models/replication_link.py
27.77% <ø> (-7.94%)
:x:

.../azure/mgmt/sql/models/recommended_elastic_pool.py
29.41% <ø> (ø)
:white_check_mark:

...-sql/azure/mgmt/sql/models/server_firewall_rule.py
100% <100%> (ø)
:white_check_mark:

... and 13 more

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 a1bbd28...3b48d19. Read the comment docs.


Change database.test.js to better test package renaming

Tests for package renaming scenarios.
The main difference is that these use insertNewPackageVersion instead of insertNewPackageName. The latter is no longer really used; insertNewPackageVersion also better captures the fact that a renamed package necessarily has at least two versions.
I'd changed getPackageByName.js locally in such a way as to make these tests pass, but my approach locally won't actually work; the database migration proposed by @confused-Techie is wiser. My way of figuring out a package's canonical name was to find out what the name was on the most recently published version of the package, but that approach won't work if a package is renamed and then the version associated with the renaming is deleted. In that scenario, we need a way of figuring out that the newer package name is still canonical even though there aren't any (non-deleted) package versions under that name.

It occurred to me just now that these tests pass on master. Since the package backend doesn't seem to do the right thing at the moment, these tests shouldn't pass. I'll dig deeper.

Yeah, this isn't the problem — the main problem is in ppm. There's a problem somewhere in this repo, since I got an internal server error when I fixed the bug in ppm, but we can figure that out later.
These tests are still more accurate, but they're not urgent to land.


feat: add verible language server configuration

Adds the verible language server configuration.

Apologies! Forgot to run stylua after adding the docs part.

thanks for cleaning up (and merging)


Support for AWS Lambda?

Maybe a tutorial using Zappa or other similar library.

Check out:
https://github.com/mcrowson/zappa-hug-example


getNeighbours method

Neighbor
Parent or child.

Solved in https://github.com/Raiper34/simple-tree-utils/commit/0ae9eed204c13a46c01cb681fd567696db7d612f


Can you give the config, train and data processing code?

Desire to learn，thank u！

Sorry, currently I don't have a plan to open training code for this project because the base of this project is developing in commercial for now.

OK, thanks


fix: only print status message when explicitly provided in Actor.exit()

The default (generic) status message from Actor.exit was always overriding the final status message from basic crawler (that has much more information). This removes the default messages from there, keeping the one from basic crawler.
Sidenote: maybe we should also add current concurrency to the status messages?

Hmm, apparently, the codeowners thing won't add multiple people (even in a public repo).

Hmm, apparently, the codeowners thing won't add multiple people (even in a public repo).

So it should be a single line I guess.
https://stackoverflow.com/questions/66821568/require-github-pr-approvals-from-multiple-groups


feat: display shimmer while loading event types

Fixes: #1573
Changes:
Add shimmer while loading event types
Screenshots for the change:

@iamareebjamal @nikit19 review

@nikit19 I just forked #1576 and resolved conflicts


fibers issue on circleci.com

I'm getting the error below when I run wdio wdio.conf.js on circleci.com.
[0] Running on http://<IP_ADDRESS>:4001 [copied to clipboard]
[1] ## There is an issue with `node-fibers` ##
[1] `/home/ubuntu/myproject/node_modules/wdio-mocha-framework/node_modules/wdio-sync/node_modules/fibers/bin/linux-x64-51/fibers.node` is missing.
[1]
[1] Try running this to fix the issue: /opt/circleci/nodejs/v7.5.0/bin/node /home/ubuntu/myproject/node_modules/wdio-mocha-framework/node_modules/wdio-sync/node_modules/fibers/build
[1] ERROR: Couldn't initialise framework "wdio-mocha-framework".
[1] Error: Missing binary. See message above.
[1]     at Object.<anonymous> (/home/ubuntu/myproject/node_modules/wdio-mocha-framework/node_modules/wdio-sync/node_modules/fibers/fibers.js:20:8)
[1]     at Module._compile (module.js:571:32)
[1]     at Object.Module._extensions..js (module.js:580:10)
[1]     at Module.load (module.js:488:32)
[1]     at tryModuleLoad (module.js:447:12)
[1]     at Function.Module._load (module.js:439:3)
[1]     at Module.require (module.js:498:17)
[1]     at require (internal/module.js:20:19)
[1]     at Object.<anonymous> (/home/ubuntu/myproject/node_modules/wdio-mocha-framework/node_modules/wdio-sync/node_modules/fibers/future.js:2:13)
[1]     at Module._compile (module.js:571:32)
[1]
[1]     at Runner.initialiseFramework (/home/ubuntu/myproject/node_modules/webdriverio/build/lib/runner.js:561:27)
[1]     at Runner._callee3$ (/home/ubuntu/myproject/node_modules/webdriverio/build/lib/runner.js:120:55)
[1]     at tryCatch (/home/ubuntu/myproject/node_modules/webdriverio/node_modules/babel-runtime/node_modules/regenerator-runtime/runtime.js:64:40)
[1]     at Generator.invoke [as _invoke] (/home/ubuntu/myproject/node_modules/webdriverio/node_modules/babel-runtime/node_modules/regenerator-runtime/runtime.js:355:22)
[1]     at Generator.prototype.(anonymous function) [as next] (/home/ubuntu/myproject/node_modules/webdriverio/node_modules/babel-runtime/node_modules/regenerator-runtime/runtime.js:116:21)
[1]     at step (/home/ubuntu/myproject/node_modules/webdriverio/node_modules/babel-runtime/helpers/asyncToGenerator.js:17:30)
[1]     at /home/ubuntu/myproject/node_modules/webdriverio/node_modules/babel-runtime/helpers/asyncToGenerator.js:35:14
[1]     at F (/home/ubuntu/myproject/node_modules/webdriverio/node_modules/babel-runtime/node_modules/core-js/library/modules/_export.js:35:28)
[1]     at Runner.<anonymous> (/home/ubuntu/myproject/node_modules/webdriverio/node_modules/babel-runtime/helpers/asyncToGenerator.js:14:12)
[1]     at Runner.run (/home/ubuntu/myproject/node_modules/webdriverio/build/lib/runner.js:351:29)

@xpepermint what node version are you running there?

oh v7.5.0

Thanks @christian-bromann for your quick response. I tried with diferent 7.X versions.

either use Node v6.X or use this solution: https://github.com/laverdet/node-fibers/issues/331

Hum... thanks for that. I'm not sure I get it just yet.

I'm not sure I get it just yet.

What do you mean?

I just closed the issue because it is a dependency issue and not something that can be fixed in this project. Feel free to also reach for support on the WebdriverIO Gitter channel.

I wonder how to transform
+env:
+  - CXX=g++-4.8
+
+addons:
+    apt:
+      sources:
+        - ubuntu-toolchain-r-test
+      packages:
+        - g++-4.8

into command line :). Can you help?

https://discuss.circleci.com/t/using-node-js-4-0-on-circleci/26

Thanks man for your help, you are very kind. I tried that but unfortunately it doesn't work. Any other ideas?

Ref: https://github.com/laverdet/node-fibers/issues/321#issuecomment-276758931


Remove information about POLYPATH in README.md

Current version of Polytracker doesn't use POLYPATH env var. POLYPATH is mentioned in the readme.

Another option is of course to implement support for it.


I want show tool tip/title  when we use max-labels

i want tool tip of all selected items when i mouse over on the control
Is it possible to show tool tip/title of all selected items  when i use max-labels ?

Hi @nikeshjain ,
I'm not sure, I've never used tool tip with this directive. You have to try it yourself.


[WIP] Fix completion for double ticked module values

This fixes https://github.com/Microsoft/visualfsharp/issues/97

It works for backticked (BTW, what is the right name for such identifiers?) identifiers, except provided ones. I've explored everything in PropInfo.ProvidedProp here https://github.com/Microsoft/visualfsharp/blob/master/src/fsharp/NameResolution.fs#L215 and it does not contain neither backticked name nor any flag saying that it has such a name.
/cc @dsyme

All fixed.

If these are all fixed can WIP be removed from the title?


bump azure runtime version

update the azure runtime version
update plugin version
format

Codecov Report

Merging #97 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master      #97   +/-   ##
=======================================
  Coverage   64.86%   64.86%
=======================================
  Files          44       44
  Lines        1389     1389
  Branches      149      149
=======================================
  Hits          901      901
  Misses        433      433
  Partials       55       55

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 4f2812f...3440341. Read the comment docs.


Executing a method on the model after model binding

Suppose that we have a simple action:
public IActionResult Foo([FromBody] FooModel model)
{
    ...
}

We can use IValidatableObject (by implementing it on the model) to run custom validation when the model is being validated. Is there a similar interface to implement in order to run a custom method on the model when model binding finishes?
The use case is to make simple changes to the model after model binding (for example trimming some strings among other things). Rather than having to call a method on the model in every action, having a custom method execute with model binding would be helpful and cleaner.
I looked at the code extensively, but couldn't find anything.

Now that I think about it, it might be possible to replace the default BodyModelBinder for a custom one and run the custom method at the end of model binding if the model implements a certain custom interface.

This is a good use case for implementing an IActionFilter if you want this to run on model after modelbinding/validation but before the action.
If you want to run custom code after model binding but before validation then you'll need to implement a custom model binder.

@rynowak yeah it would work as an action filter. But it doesn't differ a lot from calling model.Foo() in each action (I know that I can have an action on the controller itself).
What I picture is having a method on the model itself that will be executed all the time whenever model binding does its work. It's a lot cleaner this way, and really it's the model's job to do those minor edits on its properties (like calling ToLowerCase on a certain property for example).

But it doesn't differ a lot from calling model.Foo() in each action (I know that I can have an action on the controller itself).

The difference is that you can apply an action filter globally. I'd do it something like this:
public interface INeedsCleanup
{
    void DoCleanup();
}

public class SomeModel : INeedsCleanup
{
   ....
}

public class MyCleanupFilter : IActionFilter
{
    public void OnActionExecuting(ActionExecutingContext context)
    {
        foreach (var kvp in context.ActionArguments)
        {
            (kvp.Value as INeedsCleanup)?.DoCleanup();
        }
    }
}

...
services.AddMvc(options => options.Filters.Add(new MyCleanupFilter());

This way your model gets to decide how to do the cleanup, and your filter just acts as a hook.
More to the point, is there something we're not doing in model binding that you think is 'cleanup' we should be doing? Is there a missing feature or setting here?

Oh, I see your point here. This is a nice solution to the problem without there being support from model binding itself.
The thing that made me think about this is when I learned about IValidatableObject as a way to run custom validation on the model itself. So naturally I thought that there's a similar interface that would let me run code on the model after model binding, which of course I didn't find. So I'd call it a missing feature (maybe a not so important one), because it naturally came to mind.
But your solution would suffice for the use case I presented 👍


Fix Oracle vector store integration

Description
This PR aims to fix three issues with the current PR:

Fix delete operation (changes picked from #16373)
Unable to insert nodes containing a lot of text. From Oracle documentation, CLOB binds should be at the end of the bind list. This is fixed by moving the text column to the last position of the declared global column_config dict.
Unable to insert nodes with a high embedding dim.

Currently, we cast the list with the float values to a string and then insert the data into the VECTOR typed column in the Oracle.
Behind the scenes, this string is assigned to the temporary variable with type VARCHAR2, before being stored as a VECTOR
VARCHAR2 has a max size of 32,767. When string representation with a bigger size is stored, the error is raised
Wrapping the array into array.array, not converting into a string, as suggested in oracledb doc, resolves the issue

Fixes # (issue)
New Package?
Did I fill in the tool.llamahub section in the pyproject.toml and provide a detailed README.md for my new integration or package?

[ ] Yes
[x] No

Version Bump?
Did I bump the version in the pyproject.toml file of the package I am updating? (Except for the llama-index-core package)

[x] Yes
[ ] No

Type of Change
Please delete options that are not relevant.

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

How Has This Been Tested?
Your pull-request will likely not be merged unless it is covered by some form of impactful unit testing.

[x] I've tested this update in my project (no testing infrastructure exists for this package)
[ ] I added new unit tests to cover this change
[ ] I believe this change is already covered by existing unit tests

Suggested Checklist:

[x] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] I have added Google Colab support for the newly added notebooks.
[x] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[x] I ran make format; make lint to appease the lint gods

Unfortunately, I'm unable to invest in unit tests without any existing unit testing infrastructure (no existing unit tests, no fixtures), however, I've provided the details of all introduced changes as well as the motivation behind them. Hope it helps!
These updates were tested in my project


When is the code coming?

Great work! I have read the paper and can't wait for the code. Just wonder how soon it would be here?

Hi chrenx,
Thanks for your interests. I am sidetracked by other works now. But I'm aware that there is a fast approaching deadline. So I just released a messy version of the original code we used for development here, just for people with urgent need. Thanks again for your question!


azure/readme.md  megatron tutorial link is broken

Current link points to
https://github.com/microsoft/DeepSpeed/blob/master/tutorials/megatron
Which is broken

Fixed in https://github.com/microsoft/DeepSpeed/pull/436


batch response: Currently only supports Enterprise projects

Dear friends:
when I use command:
git lfs install
git lfs clone https://github.com/microsoft/AEC-Challenge AEC-Challenge
there always are errors: batch response: Currently only supports Enterprise projects
and I searched google, but I am not able to find solution, do you know how to fix it please?
Thanks

Does git clone https://github.com/microsoft/AEC-Challenge/ work?


Just a little detail

Please correct documentation. The right lines to write in resources.yaml are:

url: /hacsfiles/lovelace-time-picker-card/time-picker-card.js
type: module
not
url: /local/time-picker-card.js
type: module
Congrats for this plugin!!!!!

Thanks! I updated the README, hope it's more clear now!


Shell install script not working on Archlinux (zsh)

Not sure what's going on but it does not seem to work on archlinux (zsh shell). The prompt for the password has never come up and I have got the following error:
./try-reflex
If you have any trouble with this script, please submit an issue at https://github.com/ryantrinkle/try-reflex/issues
In order to continue, ./try-reflex must install the Nix package manager.  This requires root access, so you will be prompted for your password.  If you do not wish to continue, just hit Ctrl-C at the password prompt.
unpacking Nix binary tarball for x86_64-linux from `https://nixos.org/releases/nix/nix-1.8/nix-1.8-x86_64-linux.tar.bz2'...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 68.9M  100 68.9M    0     0   339k      0  0:03:27  0:03:27 --:--:--  338k
performing a single-user installation of Nix...
directory /nix does not exist; creating it by running ‘mkdir -m 0755 /nix && chown pierre /nix’ using sudo
copying Nix to /nix/store..........................
initialising Nix database...
error: couldn't change to directory of ‘/nix/var/nix/daemon-socket/socket’: No such file or directory
nix-binary-tarball-unpack/nix-1.8-x86_64-linux/install: unable to register valid paths
./try-reflex: line 31: /home/pierre/.nix-profile/etc/profile.d/nix.sh: No such file or directory

FWIW, I also had a go with a pre-installed nix from arch (AUR) and ran in other issues:
If you have any trouble with this script, please submit an issue at https://github.com/ryantrinkle/try-reflex/issues
Entering the reflex sandbox...
error: file ‘nixpkgs’ was not found in the Nix search path (add it using $NIX_PATH or -I)
error: cannot start daemon worker: the group ‘nixbld’ specified in ‘build-users-group’ does not exist
(use ‘--show-trace’ to show detailed location information)
error: cannot start daemon worker: the group ‘nixbld’ specified in ‘build-users-group’ does not exist
(use ‘--show-trace’ to show detailed location information)

Cheers

Hi @PierreR,
Are you able to install any other packages using Nix?  It looks like there's a problem with the Nix build daemons.

No I haven't done anything with nix just yet (at least on archlinux). In the second case (nix installed using AUR), the daemon is up and running and seems to work fine.  I will try to investigate this further.
As a note, I have just tried the provided script on Ubuntu and it works just fine.

I've asked around, and it seems better to not have the nix AUR package installed.  Unfortunately, I'm not too familiar with Arch, but I do know that @bgapinski has managed to get try-reflex working on Arch; perhaps he will be able to help you out.

So the issue if I don't use nix from AUR but install it with the provided script seems related to #2.
I had to visudo and remove the NOPASSWD directive from there and ... Success !!
Thanks for your help.


Add ImGuilistClipper struct under CIMGUI_DEFINE_ENUMS_AND_STRUCTS

Hello,
I had to add a definition for the list clipper struct under CIMGUI_DEFINE_ENUMS_AND_STRUCTS in order to reproduce this memory editor example.

sure thanks for the PR!!


Adding extra context?

I'm trying to add some extra context to my client, but nothing is ever populating (yes, there are values that match the keys in event). The doc's say that Client is a singleton so I assumed what I have below would work...but it's not. Am I missing something obvious here?
from raven import Client
from raven_python_lambda import RavenLambdaWrapper

@RavenLambdaWrapper()
def handler(event, context):
    client = Client()
    client.extra_context({'src_key': event.get('src_key'),
                          'mapping': event.get('mapping'),
                          'prefix': event.get('s3prefix'),
                          'message_id': event.get('message_id')
                          })
...

Bit of a long shot, but did you ever resolve/workaround this @stickystyle ?

@JoeAlamo Yes, for me after upgrading to sentry-sdk I've been able to add the extra context to my client.


[Bug]: CSS File not linked properly

Give a brief about the bug ✍
Description
When you navigate to http://localhost:3000/products page
the design, font and the colors are not applied properly linked to the html file.

What is the expected behavior? 🤔
Description
Please assign this issue to me.
Provide step by step information to reproduce the bug 📄
Description
Set up the project as given and navigate to http://localhost:3000/products
Select program in which you are contributing
No response
Code of Conduct

[X] I follow CONTRIBUTING GUIDELINE of this project.

please assign it to me.

please assign to me

I am interested in doing this task please assign it to me


Re-encrypt segment error: get full samples: offset in mdata beyond size

Hello! I have a usecase when I need to reencrypt segments: so I need to decrypt it and then encrypt again (with different key probably).
In general it combines the code from two examples: decrypt and encrypt.
Something like this:

func main() {
	key := []byte{
		0x69, 0x4F, 0x3E, 0xAA,
		0xBD, 0x56, 0xA2, 0x58,
		0x28, 0x2E, 0xE3, 0x0E,
		0x99, 0x6A, 0x32, 0x18,
	}
	keyIV := make([]byte, 16)

	initFile, err := os.ReadFile("init.m4i")
	encryptedVideoFile, err := os.ReadFile("video.m4v")
	initMp4, err := mp4.DecodeFile(bytes.NewReader(initFile))
	decryptInfo, err := mp4.DecryptInit(initMp4.Init)

	mp4File, err := mp4.DecodeFile(bytes.NewReader(encryptedVideoFile))
	for _, seg := range mp4File.Segments {
		err := mp4.DecryptSegment(seg, decryptInfo, key)
		if err != nil {
			fmt.Printf("Error decrypt segment: %v\n", err)
		}
	}

	// Uncomment this and error is gone
	// var buf bytes.Buffer
	// mp4File.Encode(&buf)
	// mp4File, err = mp4.DecodeFile(bytes.NewReader(buf.Bytes()))

	protectData, err := mp4.InitProtect(initFile.Init, key, keyIV, "cenc", key, decryptInfo.Psshs)
	for _, s := range mp4File.Segments {
		for _, f := range s.Fragments {
			err := mp4.EncryptFragment(f, key, keyIV, protectData)
			if err != nil {
				// HERE WE'VE GOT AN ERROR
				fmt.Printf("Error encrypting fragment: %v\n", err)
			}
		}
	}
}

And then it returns an error: get full samples: offset in mdata beyond size.
If I decrypt, then Encode() to buffer, then decode again and encrypt - it works.  Can't attach init and video files here for some reason. Let me know if you need them, but I don't think it is the particular stream that causes this issue.

@xzerth Sorry for the slow response.
I haven't looked into this use case, but it seems that the mp4File that you get after decryption still has some traces of the encryption that cause the error.
You should be able to output details about the mp4File you have after decryption by using the same mechanism as in mp4ff-info, which is
        err = mp4FIle.Info(os.Stdout, "all:1", "", "  ")

You can then compare that with what you get after the extra encode/decode step.
A potential issue is that you use initFile.init for the encoding. That init segment is from the encrypted input, but it should be an init segment for a clear file, so it should be better to use the decrypted initMp4 segment.
I hope this helps. Personally, a next step would be to use the debugger to find out where the problem happens and why.

I found the problem. There was an offset in mdat that was not changed as the encryption boxes were removed. The fix will be part of a PR soon.


Error when snippet includes ]

The default ultisnips for Rust have a snippet attr that contains a ].
This breaks the string escaping in https://github.com/quangnguyen30192/cmp-nvim-ultisnips/blob/main/autoload/cmp_nvim_ultisnips.vim#L29 with the following error:
Error detected while processing TextChangedI Autocommands for "*":
E5108: Error executing lua Vim(return):Error invoking 'python_execute' on channel 3 (python3-s
cript-host):
Traceback (most recent call last):
  File "<string>", line 21, in <module>
  File "/usr/local/lib/python3.9/dist-packages/pynvim/api/nvim.py", line 287, in command
    return self.request('nvim_command', string, **kwargs)
  File "/usr/local/lib/python3.9/dist-packages/pynvim/api/nvim.py", line 182, in request
    res = self._session.request(name, *args, **kwargs)
  File "/usr/local/lib/python3.9/dist-packages/pynvim/msgpack_rpc/session.py", line 104, in re
quest
    raise self.error_wrapper(err)
pynvim.api.common.NvimError: Vim(lua):E5107: Error loading lua [string ":lua"]:1: unexpected s
ymbol near ']'

Thanks for reporting, @smjonas  could you have a look?

I have a PR that fixes my immediate problem. Not sure how it affects snippets in general.

Thank you @pianohacker for reporting. I didn't know pyxeval existed so I kind of used a hacky way to escape the snippets. Please create a PR :)

@pianohacker  just created a PR already

Oh I just saw it, it looks good!


Sometimes the player is unable to get through the portal in survival mode

https://www.youtube.com/watch?v=bth2S42gws8

I've experienced this too. Portals work smoothly in creative (regardless of flying, running, or walking), but in survival, most portals either don't teleport me, or kill me from fall damage.

Fixed in 0.27


Fix problem where validation happens on acceptance but failure is ignored

Started work on ipywidgets and I was getting a cert error for my jupyter server.
But it wasn't displayed anywhere.
Recent changes made the validate async, but not sure how the 'change' event doesn't catch the error. Maybe because validate takes longer now.
This logic seems better to me. Validate on enter, not while typing, especially if validate is actually going to the server.

Codecov Report

Merging #9988 (7b432fc) into main (8b274d9) will increase coverage by 0%.
The diff coverage is 100%.

@@         Coverage Diff          @@
##           main   #9988   +/-   ##
====================================
  Coverage    63%     63%
====================================
  Files       208     208
  Lines      9912    9910    -2
  Branches   1574    1573    -1
====================================
  Hits       6308    6308
- Misses     3095    3096    +1
+ Partials    509     506    -3

Impacted Files
Coverage Δ

src/platform/common/utils/multiStepInput.ts
74% <100%> (-2%)
:arrow_down:

src/platform/common/process/proc.node.ts
79% <0%> (+2%)
:arrow_up:

Here's an example of why I think we shouldn't have validate on change.

The user can't tell if we're actually checking or not.

We could ask what others think.
@IanMatthewHuff @amunger @sadasant any thoughts on having validation only on enter?

@rchiodo can you update the gif to include how it looks when the Uri is correct.
I.e. right now all you're showing is something not working, which is correct.
What happens when the Uri is valid, please could you update the gif to include that as well.

Speaking just from the user perspective I almost always (bar a few situations) prefer validation on commit instead of type. I want to wait until I've put in what I want to put in, then notify me if it's wrong. But I'm not sure if this is a hard and fast rule, or just my personal pref.

We could ask what others think.
@IanMatthewHuff @amunger @sadasant any thoughts on having validation only on enter?

@rchiodo can you update the gif to include how it looks when the Uri is correct. I.e. right now all you're showing is something not working, which is correct. What happens when the Uri is valid, please could you update the gif to include that as well.

The red just disappears.
The problem I have is I can't tell if it's being validated or not because I can type whatever I want and it gives me the same results until I type a valid server.
If say I typed in wrong character I'd not be able to tell if we were checking or not.

@rchiodo I expressed my pref for "on commit" but maybe worth asking the UX channel? UX experts might have some guidance here given the input box and the type of input (a long server string).

If say I typed in wrong character I'd not be able to tell if we were checking or not.

Yup makes sense.

There's also a delay problem so sometimes it doesn't validate as a I type and then it randomly turns red. So I might be halfway through typing the correct URI and it suddenly turns red.

Asking UX sounds like a good idea to me.


Add GCP cloud logging integration article

What changed, and why it matters
Migrated the Google Cloud Logging integration content over from the old help center article.

Build error in Cloudflare Pages due to this https://github.com/aiven/devportal/actions/runs/4225032507/jobs/7336762310#step:5:1321

Build error in Cloudflare Pages due to this https://github.com/aiven/devportal/actions/runs/4225032507/jobs/7336762310#step:5:1321

Thanks for pointing that out! I don't understand why that syntax is not working in that one place only and is working everywhere else, but it's working now. 👍

For code blocks, I use .. code-block:: <programming language>. That way I get no errors. In line 60, you have no language defined.

For code blocks, I use .. code-block:: <programming language>. That way I get no errors. In line 60, you have no language defined. Also, there was a recommendation to switch from code to code-block in the devportal slack channel a while ago.

Removing the language is what made the errors stop happening. Otherwise, it kept flagging line 60 even though the formatting is the same elsewhere int his and other articles.
Could you please add the formatting to the style guide perhaps (or somewhere in the contributing file)? It's easy to miss things in noisy Slack channels and they are not visible to everyone contributing.

Removing the language is what made the errors stop happening.

This is a general Sphinx syntax rule - https://www.sphinx-doc.org/en/master/usage/restructuredtext/directives.html#directive-code-block. No need to add it to the contributing file from my perspective. Please update the contributing file with whatever you find necessary.

@wojcik-dorota Same issue after reformatting to code-block: https://github.com/aiven/devportal/actions/runs/4280441367/jobs/7452215064#step:5:1323

yeah, I can see that. Sorry, no clue what's the reason for this one this time.

@wojcik-dorota Same issue after reformatting to code-block: https://github.com/aiven/devportal/actions/runs/4280441367/jobs/7452215064#step:5:1323

Using just ..code:: didn't work? I can take a quick look.

@wojcik-dorota Same issue after reformatting to code-block: https://github.com/aiven/devportal/actions/runs/4280441367/jobs/7452215064#step:5:1323

Using just ..code:: didn't work? I can take a quick look.

Yes, as you can see in the convo above that did work when there was no language specified, but it was then changed to code-block per the suggestion.

If we can't figure it out today I will just go back to the format that worked so we can get this published and not waste too much time on this.

Details

@wojcik-dorota Same issue after reformatting to code-block: https://github.com/aiven/devportal/actions/runs/4280441367/jobs/7452215064#step:5:1323

Using just ..code:: didn't work? I can take a quick look.

Yes, as you can see in the convo above that did work when there was no language specified, but it was then changed to code-block per the suggestion.

@wojcik-dorota Same issue after reformatting to code-block: https://github.com/aiven/devportal/actions/runs/4280441367/jobs/7452215064#step:5:1323

Using just ..code:: didn't work? I can take a quick look.

Yes, as you can see in the convo above that did work when there was no language specified, but it was then changed to code-block per the suggestion.

I have noticed that . code-block:: <programming language> is mostly for syntax highlight and works well for the 1st occurrence in the docs, and subsequent occurrence throws an error. I would just use ..code:: or code-block without the programming language, and it has worked for me.

Details

@wojcik-dorota Same issue after reformatting to code-block: https://github.com/aiven/devportal/actions/runs/4280441367/jobs/7452215064#step:5:1323

Using just ..code:: didn't work? I can take a quick look.

Yes, as you can see in the convo above that did work when there was no language specified, but it was then changed to code-block per the suggestion.

@wojcik-dorota Same issue after reformatting to code-block: https://github.com/aiven/devportal/actions/runs/4280441367/jobs/7452215064#step:5:1323

Using just ..code:: didn't work? I can take a quick look.

Yes, as you can see in the convo above that did work when there was no language specified, but it was then changed to code-block per the suggestion.

I have noticed that . code-block:: <programming language> is mostly for syntax highlight and works well for the 1st occurrence in the docs (or single occurrence in the docs), and subsequent occurrence throws an error. I would just use ..code:: or code-block without the programming language, and it has worked for me.

Strange, because this is actually the first occurrence that is throwing the error. But, I will go back to the syntax that worked.
If one of you then wouldn't mind approving quickly so we can get the updated link to Marketing, that'd be great! @wojcik-dorota @harshini-rangaswamy


App instance startup metrics

Changes proposed in this PR
Add codahale timers for three metrics:

Time from a Waiter service's creation until the first instance appears ("schedule time").
Time from the first instance appearing to when it's healthy ("startup time").
Time from a Waiter service's creation until the first instance is healthy ("start-to-healthy time").

#3 is basically #1 + #2. Each of these metrics are tracked both per-service and overall.
Why are we making these changes?
We want to have data on how long it takes to start up apps in production on our existing platforms (Mesos/Marathon) and future platforms (Kubernetes).

@shamsimam - I added some unit tests, but I still need to add integration tests.

@shamsimam - This is ready for another pass.
Outstanding todo items:

I'm still working on the integration test
Some of the state tests broke because I added a new variable (service-id->instance-counts), and I haven't figured out how to fix all of them yet.

@shamsimam @sradack - The integration tests and unit test issues are resolved. I'm still leaning towards adding statsd recording for the scheduling metrics in a follow-on PR.

Let me know if this is ready to review.

@shamsimam @sradack - Yes, this is ready to review again. Thanks!

@shamsimam - Please take another look at this when you get the chance. We still need to discuss the scheduler→state→scheduler flow that you don't like, but I think I addressed the other issues.

@sradack - This is ready for you to look at. Shams and I discussed the issue around subscribing to the router-state-maintainer vs the scheduler-syncer for state updates, and we agreed to leave this as-is for now, since the router-state-maintainer also handles deduplication.
This change doesn't include any statsd metrics because our statsd namespace doesn't include functions for reporting timing metrics. Extending the waiter.statsd namespace with the needed functions will be in a follow-on PR, and then recording these schedule-timing metrics to statsd will be in another PR.

I talked to dpo about the statsd metrics, and we're currently using histo! for reporting our timers. I have a follow-on patch that I'm going to test internally, and I'll open a PR with it after this one is merged.

@shamsimam - I think this is ready to merge. I pre-squashed the commits so they don't all end up in the GitHub-generated commit message. 😉


Check for duplicate named exports in exported destructuring assignments

This is a follow-up to https://github.com/babel/babylon/issues/139. I did a little refactoring - passing isDefault all the way through seems unnecessary, in retrospect. Thoughts on this approach? Any cases I missed?

Updated - thanks!

 Last update 4115bcb...909b19a

@danez I know we spoke in Slack, but wasn't sure if there is anything I need to do for the failing codecov checks?


Can´t make the editor work

Version

Version 1.1 from "Production" Branch
Test Environment

Client: Chrome  63.0.3239.13, Windows 10 64 Bits
Server: Ubuntu 16.04 LTS, NGINX, PHP-FPM, PHP 7.2, Laravel 5.5
Current Behavior

I can´t load the editor, using the file "tui-editor-Editor-all.min.js": gives me this error:
Uncaught TypeError: Cannot read property 'WwCodeBlockManager' of undefined
With this file: "tui-editor-Editor.min.js" it gives me this error:
Uncaught TypeError: (0 , r.default) is not a function
Code example

    <link href="{{ asset('/plugins/tui-editor/dist/tui-editor.min.css') }}" rel="stylesheet" type="text/css" />
    <link href="{{ asset('/plugins/tui-editor/dist/tui-editor-contents.min.css') }}" rel="stylesheet" type="text/css" />

Expected Behavior

Show the Editor in the div selected.

I am inclined to agree with @brunonetadmin my assumption is that I should be able to pull the library, include the .js and .css files and be able to run it. (especially if the name -all implies, otherwise need to know all required dependencies up front) Looks fantastic, I am just stumbling to get it running due to dependencies I am sure.

ok guys. It makes sense.
I'll consider add bundled distributions in next release.
until then see usage for npm or usage for bower

I have checked the usage for bower guide to load all the dependencies shown there.
All the dependencies are loading in the browser and I am not getting any errors in console but the editor is not loading. Am I missing any other dependency apart from those listed on the page?

@quantumkv I can't tell you before I check your actual code.
would you setup an example on codepen or something?

My mistake. I had a script tag for tui-editor-Viewer-all.min.js in the file. Including the file caused the editor to silently fail without any error.
Removed it and the editor works flawlessly.

When trying to use the instructions for npm (bower is deprecated) I see the issues that I describe below. It might very well be due to my limited npm foo however, here they come as I see them:
The command:
npm install --save tui-editor

gives you a node_modules/ directory where you can find all the dependencies. The code of each of them is organized in different ways.
So, first you have to find out which dependencies you need. It is not written in any documentation. You only find the answer either poking around in the code (the webpack loading mechanism in tui-editor-Editor.js:
module.exports = factory(require("jquery"), require("tui-code-snippet"), require("codemirror"), require("markdown-it"), require("to-mark"), require("highlight.js"), require("squire-rte")

or looking at the examples inside the /examples directory:

    <meta charset="UTF-8">
    <title>1. Basic</title>

    <link rel="stylesheet" href="../lib/codemirror/lib/codemirror.css">
    <link rel="stylesheet" href="../lib/highlightjs/styles/github.css">
    <link rel="stylesheet" href="./explain.css">

By the way the ../lib/ directory is nowhere present in the distribution.
If you then go on with the documentation under "Usage", you find:
Add dependencies & initialize Editor class with given element to make an Editor.
// deps for editor
require('codemirror/lib/codemirror.css'); // codemirror
require('tui-editor/dist/tui-editor.css'); // editor ui
require('tui-editor/dist/tui-editor-contents.css'); // editor content
require('highlight.js/styles/github.css'); // code block highlight

var Editor = require('tui-editor');
...
var editor = new Editor({
    el: document.querySelector('#editSection'),
    initialEditType: 'markdown',
    previewStyle: 'vertical',
    height: '300px'
});

The first 4 lines give you obviously only some css dependencies and the last one "var Editor = require('tui-editor');"  will give you at best only the editor's code. Also in this case you would have to have a webpack.config.js  file with instructions for how to treat the code.
As presented in the docs, in practice, you are unable to do anything with those lines alone.
Finally, as a workaround, trying to build the code using the webpack.config.js in the repository does not give you those dependencies either.
So the only way I could make the editor work is collecting the single dependencies one by one after fetching them either from cdnjs.cloudflare.com or copying them from the source in the live examples or node_modules/ directory.

All the links to documentation/usage/example code are now dead.

good

I think you're missing dependencies.
check out https://github.com/nhnent/tui.editor/blob/production/examples/example01-basic.html

Is this still the problem? Because the link is invalid, i would like to know what i need as well.. its pretty unclear as i've been following the readme at: https://www.npmjs.com/package/tui-editor
I've been using Yarn, but it should not be any problem since it installed so many dependensies:
info Direct dependencies
└─<EMAIL_ADDRESS>info All dependencies
├─<EMAIL_ADDRESS>├─<EMAIL_ADDRESS>├─<EMAIL_ADDRESS>├─<EMAIL_ADDRESS>├─<EMAIL_ADDRESS>├─<EMAIL_ADDRESS>├─<EMAIL_ADDRESS>├─<EMAIL_ADDRESS>├─<EMAIL_ADDRESS>├─<EMAIL_ADDRESS>├─<EMAIL_ADDRESS>├─<EMAIL_ADDRESS>├─<EMAIL_ADDRESS>├─<EMAIL_ADDRESS>├─<EMAIL_ADDRESS>├─<EMAIL_ADDRESS>├─<EMAIL_ADDRESS>├─<EMAIL_ADDRESS>├─<EMAIL_ADDRESS>└─<EMAIL_ADDRESS>


Added tests

Added tests for a few functions
Updated README.md

can you get the tests to pass?

Sorry about that. I ran py.test on individual files which caused the error to slip past me.


Updated the gradle build to get the version from the WPILibVersioning plugin

This is the work to implement wpilibsuite/design-docs#5. This will fail builds until we push an annotated tag. @PeterJohnson, I believe we should start with v3.1.0.

Alright, I have no idea what appveyor is doing. It seems like it built, then built again, then built again, and kept building until it timed out. @JLLeitschuh, any ideas?

I built twice in total, but successfully, and then got most of the way through a third build.


Fix/plugin package id sync

It turns out that while the publish to NPM solved our Ionic/Cordova resolution errors, Cordova has some behaviour where it updates package.json with each plugin as a Dependency, along with updating config.xml with the usual plugin details.
Because this repo is published at https://www.npmjs.com/package/cordova-open-native-settings, npm install cordova-open-native-settings causes this repo to be added to package.json as this:
"dependencies": {
...
  "cordova-open-native-settings": "~1.3.0",
...
}

However when Cordova reconciles the plugin repo on npmjs.com (cordova-open-native-settings) it adds the plugin ID to package.json instead of the NPM repo name, which creates this:
"dependencies": {
...
  "cordova-open-native-settings": "~1.3.0",
  "com.phonegap.plugins.nativesettingsopener": "^1.3.0",
...
}

This new package.json now fails to npm install because the plugin ID as a dependency isn't an actual NPM package.
I think the plugin needs to be published to NPM as its plugin ID, not as the package.json name. To confirm this behaviour, I published the plugin to a private registry:

After adjusting my project to pull from this private registry, the install process worked mostly as expected:
# ionic cordova plugin add com.phonegap.plugins.nativesettingsopener
✔ Creating ./www directory for you - done!
> cordova plugin add com.phonegap.plugins.nativesettingsopener --save
✔ Running command - done!
Adding net.gsrweb.cordova.plugins.cordovaopennativesettings to package.json
Saved plugin info for "net.gsrweb.cordova.plugins.cordovaopennativesettings" to config.xml

... but as you can see, Cordova parses the NPM repo and adds the plugin ID to package.json, and in this case net.gsrweb.cordova.plugins.cordovaopennativesettings is not a valid repository so if this change gets committed, any build after this point will result in a failure to obtain the plugin.
This PR is a 2-step fix for these problems. Contained here are some changes:

Unified package.json name with plugin ID
Breaking/Minor version bump due to package renaming
Adjusted the README to reference the new install steps

... and to make this fully functional, this plugin will need to be published to NPM as its plugin ID (net.gsrweb.cordova.plugins.cordovaopennativesettings). Now that the package.json name is the same as the plugin ID, the procedure is simply npm publish after merging this PR.
@guyromb as maintainer of this project, I think it makes sense for you to perform the merge and publish! Please let me know if it's a hassle and perhaps we can publish in a different way.

@guyromb thanks for merging this! Sorry to bother you - final needed step is executing npm publish to ensure that this exists at https://www.npmjs.com/package/net.gsrweb.cordova.plugins.cordovaopennativesettings
This means that you could unpublish https://www.npmjs.com/package/cordova-open-native-settings as well.

@emcniece I changed everything to cordova-open-native-settings, so it will be consistent.
Can you confirm if you still have issues?
Thanks

@guyromb Confirmed working!
✗ ionic cordova plugin add cordova-open-native-settings
> cordova plugin add cordova-open-native-settings --save
✔ Running command - done!
Installing "cordova-open-native-settings" for android
Installing "cordova-open-native-settings" for browser
Installing "cordova-open-native-settings" for ios
Adding cordova-open-native-settings to package.json
Saved plugin info for "cordova-open-native-settings" to config.xml

Thanks so much for your help.

Thank you @emcniece


Upload success assumption re: auto increment

This doesn't take into account failed uploads (which I'm not sure is possible, but I thought worth mentioning so it it can either be investigated, or documented).
Another minor assumption (not worth it's own issue) was the absence of an include folder will cause this to fail... found this out when adding to a pre-existing project where I'd deleted all the extraneous folders...

Thanks for your feedback pfeerick.
I completely agree with all your points.
I'm not sure if it's possible to know if the upload have failed.
I will fix the "issue of the include folder".
Thanks!!!

Hi pfeerik,
I fixed the include issue.
Now the script search for an include folder or for a PLATFORMIO_INCLUDE_DIR env variable, if there is no include folder or not environment variable it uses the root folder of the project.
PlatformIO does not offer an "hook" at the moment to know if the upload failed or not, at least via a script like this, I added a note in the docs just to inform users of the problem.
Thanks for your time.

I was going to suggest to just create the include folder, but that works! ;)
Yeah, I had a feeling that might be the case. I was actually wondering if it could be done as a post upload action - the theory being that post upload actions might not run if the upload fails... but need to test if that is actually the case.


Localization and bot.send

Hey,
bot.send is an alternative to bot.beginDialog for proactive messages but there is no session object involved here.
What's the correct way to use localization strings (after all, we send messages to the user...) if I only want to use bot.send (because bot.beginDialog will end the active conversation)?
On the same topic - let's say I want to include in my message some personal data that's stored in userData, how can I access this data without using bot.beginDialog?
Thanks.

Interested too. Trying to localize a welcome message on conversationUpdate.

@michaelvol you can access the user data via the session object, eg. session.userData.

For more information on localization in Bot Framework Node SDK, check out this guide: https://docs.botframework.com/en-us/node/builder/chat/localization/

@michaelvol and @ajaxav i found a solution for the problem:
You need the session object for localized strings, as @nwhitmont mentioned. But for example, when you want to send a proactive message, you don't have a session. All you need is the address of the user and the loadSession function:
// req.body.address contains the address, the server saved before for this user
bot.loadSession(req.body.address, (err, session) => {
	if(err) {
		// handle error
		return;
	}
	session.send("some_localized_key");
});

Hope this helps.


Fixing the rate limiter reset value

Q
A

Is bugfix?
yes

New feature?
no

Breaks BC?
no

Tests pass?
yes

Fixed issues
#15432

Merged. Thank you!

Shouldn't this line be as follows?
$this->addRateLimitHeaders($response, $limit, $allowance - 1, (int) (($limit - $allowance - 1) * $window / $limit));

(Note the minus sign)

No because it's actually $limit - ($allowance - 1).


When a grid item's width is small, its width cannot be resized to 1.

In the basic example, if you resize the browser window to a smaller width, the grid items also resize accordingly, which is good. But when the width of a grid is too small and when you try to resize the grid to width 1, it fails.

It was due to the width passed to calcWH in GridItem.jsx is large, and the final width cannot be rounded to 1.

I can't replicate this anymore in 0.10. Please reopen if you still have an issue.


Could you please provide your training config for I3D NL and TSM NL?

Could you please provide your training config for I3D NL and TSM NL in this table? Besides,the training scripts in this repo are not full provided and it is hard to reproduce the results for each setting.

The I3D NL results are taken from the non-local paper. Please follow non-local paper for the training setting.
For TSM NL training script, you can just add --non_local arg to Kinetics training script below. All other hyper-parameters are the same.
python main.py kinetics RGB \
     --arch resnet50 --num_segments 8 \
     --gd 20 --lr 0.02 --wd 1e-4 --lr_steps 20 40 --epochs 50 \
     --batch-size 128 -j 16 --dropout 0.5 --consensus_type=avg --eval-freq=1 \
     --shift --shift_div=8 --shift_place=blockres --npb


[HTTP Types] Resolve proxying port on the worker side and pass it through to host configuration

The worker will find an available port for proxying and:

Pass it through to the configuration for the ApNetCore extension package to use
Relay that information to the host

Clsoing as PR has been merged


Keyboard layout handling

I noticed I receive key events, for example, VirtualKeyCode::Key2 when shift is on or off. The meaning of this depends on keyboard layout, ie in UK it shift-on-key2 means ". Are there established ways of dealing with layouts at the moment? Is it planned/desired to be included in winit?

When a key is pressed, you normally receive two events:

a KeyboardInput event, which as you noted does not take into account modifiers keys like shift, this is intented for input that should not be affected by it (like action keys in a videogame)
a ReceivedCharacter event, which contains the UTF8 char generated by the keypress, including all keymap modifiers currently active, which is probably what you are looking for.

Ah perfect, thank you for pointing that out.


Can't use optional chaining

if (arg?.stdout) {
^
SyntaxError: Unexpected token '.'

What's the meaning of your example, did you run into some failed cases? Please provide a more detailed context.


ability to load previously saved filings

In the spirit of ETL, it would be beneficial for downstream applications of edgartools to be able to discretize company filings persistence (e.g. in a storage backend like S3) and company filings parsing (e.g. extracting the balance sheet data) in order to engineer more flexible data pipelines.
The library right now provides the ability to persist a company filing (e.g. through .full_text_submission() on filing or through .download() on attachments) but - based on my experience as an application user - there doesn't seem to be a straightforward way to load a saved company filing and continue the parsing (e.g. filing.obj()) from there.
I suspect that this might not be the vision and philosophy of edgartools (and i totally respect it), just pitching the angle in order to discuss whether this resonates with you and the community.
p.s. I really, really like how the library is designed! Kudos for the effort, this is monumental work! <3
p.s.2 happy to help with the design / implementation of said feature (if it first passes feedback ofc)

Thanks for this well written issue. I think it is a valid use case and I would like to make it more straightforward.
Do you mean

get a filing
persist it
restore it

Is this just for a Filing or a Filings
Let me know and we can collaborate on this

Hello!
yes, this is what i had in mind.
I think Filing should suffice, since it's the only object (afaik) that is part of the obj's signature.
def obj(sec_filing: Filing) -> Optional[object]:
    ...

So, it comes down to sensible serialization / deserialization of the Filing object, right?

Couple considerations

Protocol.
Options are json, pickle. Pickle might be better
Filename
The accession_number is unique per filing so use a name like<PHONE_NUMBER>-24-000001.pkl
Directory
It probably does not make sense to save in the current directory so require a directory path to be passed in.
Cloud
Would saving to a directory cover cloud serialization?
Saving the Filings
In addition to saving Filing if you save and restore Filings you can retrieve a collection of filings which would be good for ETL

Thoughts


Reference export

Is your feature request related to a problem? Please describe.
I'd like to be able see which tokens have been used where. Ideally on a component level. With traditional figma colors for example you can see the name and then use that to use the correct variable upon implementation. With the figma tokens plugin the value just gets set and I can't see which token has been used, and so I don't know which token to use when implementing a feature.
Describe the solution you'd like
An option to maybe export an abstract representation of references. Select a component and see an abstract hierarchy with for example the auto layout options, boxes, text and vectors as well as the tokens used for the values involved.
I know something like this is possible because the plugin already has these references (it updates the values in the document whenever you change a token). On top of that I know figma exposes these values with their API because I've built my own plugin to generate code (auto attributes based on variants and enums based on those values). I didn't use tokens, but my need for tokens lead me to Figma tokens.
Describe alternatives you've considered
I've considered grouping every value for every component. So button.primary.backgroundColor and button.primary.verticalPadding for example and then using those when implementing the button's primary variant. I don't like this because the components are then part of a pretty large list of tokens in an already (imo) unwieldy modal.
On top of that I also don't like the idea in case of specific screens. I could technically separate those out but it will quickly become a lot to keep track of.
Additional context
I think a feature like this could eventually lead to a pretty reliable code generator (probably not this plugin, but another plugin that depends on this one). Since I already have logic to figure out variants, enums, types, hierarchy in an AST this could be used to generate anything from swiftUI to react components (Style Dictionary but including code).
If this sounds useful to you as well and I'm not just dreaming about some silyl feature that makes no sense I'd be happy to help out with this. I'd need some insider info on the current structure of the project and maybe some sparring about the idea. There's only so much I can put in a github issue without making the readers fall asleep.

@RWOverdijk This sounds really awesome! Sorry for taking so long to respond. I think this is something that would be really incredible to work on, would gladly assist you in getting started or discussing this in a zoom call.


chore(egen) : Adds deprecation note to the notebook

This PR adds the following deprecation note to the notebook.
"This notebook has been deprecated."

/gcbrun

/gcbrun


Bugs in C code in __quadpack.h

This code looks wrong: https://github.com/scipy/scipy/blob/master/scipy/integrate/__quadpack.h#L128
  check = PyObject_GetAttrString(func, "argtypes");
  if (!PyTuple_Check(check) || (PyTuple_GET_SIZE(check) != 1) ||
      (PyTuple_GET_ITEM(check, 0) != c_double)) {
    if ((PyTuple_GET_ITEM(check, 0) == c_int) && (PyTuple_GET_ITEM(check, 1) == c_double)){
      /*If first param is int and second is of double type, we have valid_multivariate */
       ...
       return Valid_Multivariate_Ctype;
    }
    else
      goto fail;
  }

The argument checks are done wrong (PyTuple_GET_ITEM called even if PyTuple_Check fails, etc).
Moreover, the actual argument type used later on is a pointer to a double, not double. The check should check that.
The check at https://github.com/scipy/scipy/blob/master/scipy/integrate/__quadpack.h#L396 should check for equality, not inequality.
This code stores a pointer to a local variable, which is invalid: https://github.com/scipy/scipy/blob/master/scipy/integrate/quadpack.h#L176
The code stores pointers of different types in global_args and storage->args, e.g. https://github.com/scipy/scipy/blob/master/scipy/integrate/quadpack.h#L170. These variables should be void*, not PyObject*.
I didn't have time to look at the PR that added these at the time...

There's at least one more mistake: if limit < 1, three values are returned regardless of whether full_output=True.

And one more. There's a test for thread-safety that is in fact only checking single-threaded reentrancy. The globals in quadpack.h are not protected by any locks.

I tried various strategies to fix this, but they all lead to convoluted code. Is there a way to pass a pointer through the Fortran code?

No. That's why it's convoluted.

Moreover, the actual argument type used later on is a pointer to a double, not double. The check should check that.

Agreed with this. This makes it difficult or impossible to test using a ctypes-wrapped Python function, since the calling convention becomes completely wrong.

Just been bitten by this as it prevents scipy.integrate.quad from being used with numba which (at least for me) would be a killer feature.

The check at https://github.com/scipy/scipy/blob/master/scipy/integrate/__quadpack.h#L396 should check for equality, not inequality.

@pv - the logic above is repeated 7x in the function and seems to go if it's not a Callable and not a Valid_Ctype then it implies that it must be a Valid_Multivariate_Ctype. Certainly not the clearest way to do the check but I think the inequality comparison is correct?

The comparison is correct, but writing the inverse would be better style.

Indeed! :stuck_out_tongue_winking_eye:

Hi, anyone interested to try out or review gh-6509? It adds generic infrastructure for low-level callables, which is then used to fix this issue.

I am definitely going to play with this from a user perspective. Will report back, although cannot promise when though.

I'd like to but compiling it on win64 / py35 might be a little tricky.
I don't suppose there are wheels or conda packages lying around from the CI or otherwise?

No Windows CI unfortunately (Appveyor will time out, build is too slow). And yes, it's a pain. Unless you have Intel Fortran I wouldn't try it for Python 3.5 (for 2.7 you may still try MingwPy).

@dhirschfeld I stumbled in here after trying to get numba to play nice with scipy.integrate.quad. I was originally stymied by this bug, but eventually managed to get it working by explicitly specifying the argtypes attribute of the returned ctypes function to be what scipy expects (example below):
import numpy as np
import ctypes as ct
import numba
import scipy.integrate as sint

#Set the signature of the future types function
#The second argument must be a pointer or it won't work right,
#but this will cause problems because of the bug in scipy
#because scipy looks for a double instead of a pointer
c_sig = numba.types.double(numba.types.intc, numba.types.CPointer(numba.types.double))

#Turn the integrand function into a ctypes function
@numba.cfunc(c_sig)
def my_integrand(n, a):
    args = numba.carray(a, n)
    x = args[0]
    b = args[1]

    return b*np.exp(-x)/x**2

#Force the argtypes to be what quad expects
my_integrand.ctypes.argtypes = (ct.c_int, ct.c_double)

#Now this will work just fine!
sint.quad(my_integrand.ctypes, 1, np.inf, (2))


[Feature Request] allow comparing IItemStacks in IF statements

Issue Description:
I noticed that if statements were supported in CraftTweaker (the bottom of this page: http://minetweaker3.powerofbytes.com/wiki/ZenCode_specification). Well, that's great, but it seems to only works with integers and not IItemStacks or IIngredients, so I can't compare at item to, say, null to set a condition.
Why this would be useful: I am trying to set up a large two-dimensional array of every log, plank, wooden stair, and wooden slab to change all their recipes in one fell swoop, and avoid errors by using an if statement to avoid declaring recipes for items that don't exist (since not every mod implements wooden stairs for their woods). Sadly, trying to use a comparison for anything other than integers results in an error. I'm doing similar for ingots, plates, gears, nuggets, and blocks.
The script I'm using is below. In particular, I had to comment out lines 144, 172, and 178 to get the script to not error.
https://github.com/belathus/Wanderlust-Renewed/blob/master/scripts/items.zs
What happens:
My script generates an error
What you expected to happen:
recipes for null items are ignored
Script used (Please Pastebin or gist your script, posting an unpasted or ungist'd script will automatically close this issue):
Minetweaker.log file (Please Pastebin or gist your file, posting an unpasted or ungist'd file will automatically close this issue):
https://gist.github.com/belathus/8250b6d3a9e03b3e80ebe7fec9487e0c

Affected Versions (Do not use "latest"):

Minecraft: 1.10.2
Forge: <IP_ADDRESS>5
Crafttweaker:  3.0.15

Your most recent log file where the issue was present:
https://gist.github.com/belathus/2fac5857898a434542994ff5b351ff18

try doing something along the lines of:
<minecraft:dirt>.matches(<minecraft:diamond>)
that should check if they match

I'll give that a shot; it sounds like half of what I need.
I have another related question and/or request: is it possible to check if a specific item exists, or if a specific ore dictionary has zero entries?
Finally, it seems I can't declare an array with a null object in it at all. Seems only one object type can be used per array. I think it was intended to introduce an "any" type specifically to get around this, but the first line of the minetweaker.log file specifically states that type has not yet been implemented.

You can do: <ore:dirt>.empty to see if an oredict is empty.
Yea, any type has not been implemented (I don't know when it will be, I need to work more on ZenScript), but you can just change null to <minecraft:air> since that is what null defaults to for ItemStacks.


[SPARK-24854][SQL] Gathering all Avro options into the AvroOptions class

What changes were proposed in this pull request?
In the PR, I propose to put all Avro options in new class AvroOptions in the same way as for other datasources JSON and CSV.
How was this patch tested?
It was tested by AvroSuite

Test build #93251 has started for PR 21810 at commit 3a76ba2.

Can one of the admins verify this patch?

Can one of the admins verify this patch?

Test build #93251 has finished for PR 21810 at commit 3a76ba2.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/93251/
Test PASSed.

Merged to master.


[Bug] Ignore rule 0202 when using test templates

What happened?
Hello,
Rule 0202 requires each test to have a documentation.
However when using test templates the goal is to simplify the scripts, hence skipping the documentation (for which the keyword should contain a documentation and the test instance should have a meaningful name)
I can simply disable this rule locally but I think it would be better if it could be disabled automatically when a template is used
Thanks,
Raphael
Operating System
MacOS Big Sur
Robocop version
1.12.0

Thank you for raising the issue (and I apologise for the late reply!). I agree with you. I think it would be good to have it configurable - for example ignore_templated (and default could be True). It should also work with both Test Template and [Template] settings. I will look into it.

BTW How to actually document templated test cases? :D
I haven't a way to do it, thus the param makes no sense and we should just ignore this rule for templated tests.

@mnojek Well, there isn't anything stoping you from:
*** Settings ***
Test Template  My Nice Template

*** Test Cases ***
Name of the test
    [Documentation]  doc
    ARG1  ARG2
    ARG1  ARG3  # another test

Overriding Default Template In Test  # you can even override test template
    [Template]    Should Not Be Equal
    42           43
   abc          cdef

Template With FOR Loop Containing Variables
    [Tags]    42   # tags are fine
    FOR    ${item}    IN    a    b    @{TEST TAGS}
        ${VARIABLE}    ${item}
    END

And since new lines are not mandatory you might be confused with Data Driven Testing:
*** Settings ***
Test Template    Login with invalid credentials should fail

*** Test Cases ***                USERNAME         PASSWORD
Invalid User Name                 invalid          ${VALID PASSWORD}
Invalid Password                  ${VALID USER}    invalid
Invalid User Name and Password    invalid          invalid
Empty User Name                   ${EMPTY}         ${VALID PASSWORD}

Where first token is test case name, then arguments follow.

Wow, I need to more often write in RF...
Nice examples! I am preparing a PR with those as tests.

Thanks @Leemur89 for this report 💪🏻
The fix is on the way. It will be released soon with Robocop v2.1.0.


Add patterns and regex related APIs to LUIS

This checklist is used to make sure that common issues in a pull request are addressed. This will expedite the process of getting your pull request merged and avoid extra work on your part to fix issues discovered during the review process.
PR information

[x] The title of the PR is clear and informative.
[x] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For information on cleaning up the commits in your pull request, see this page.
[x] Except for special cases involving multiple contributors, the PR is started from a fork of the main repository, not a branch.
[x] If applicable, the PR references the bug/issue that it fixes.
[x] Swagger files are correctly named (e.g. the api-version in the path should match the api-version in the spec).

Quality of Swagger

[x] I have read the contribution guidelines.
[x] My spec meets the review criteria:

[x] The spec conforms to the Swagger 2.0 specification.
[x] The spec follows the guidelines described in the Swagger checklist document.
[x] Validation tools were run on swagger spec(s) and have all been fixed in this PR.

Hi @mo-abbas
Since I merged another PR on LUIS, there is conflict now here. Could you fix them?
Thanks,

Hi @lmazuel
I ran the OAV tool multiple times and it doesn't produce a consistent result. I get a "Expected a regexp or string in /" randomly when I run it. Sometimes it happens instantaneously, sometimes half-way throughout the validation and sometimes at the end.
When I split the APIs in the swagger file to two halves and run OAV on each half, sometimes I get no errors.

@sarangan12 @amarzavery to the rescue for OAV problems. I feel not comfortable to merge a PR that introduce inconsistent test result.

@lmazuel any updates?


Integration of FF OSD with RGBtoHDMI

I'm working on this project:
https://github.com/hoglet67/RGBtoHDMI/wiki
It's a HDMI converter and scaler for vintage computers which uses a raspberry Pi zero and a small CPLD to do pixel perfect capture and scaling.
Gallery of screencaps from supported computers here:
https://github.com/hoglet67/RGBtoHDMI/wiki/Gallery-of-Screencaps
This is my fork but my work eventually gets merged back to the original:
https://github.com/IanSB/RGBtoHDMI
Recently c0pperdragon designed a simple dedicated internal version for the Amiga which uses three 74LVC series logic chips:
https://github.com/c0pperdragon/Amiga-Digital-Video
One of the support requests was for FF OSD integration and I added a simple overlay bit on one of the Pi's GPIOs:
https://github.com/c0pperdragon/Amiga-Digital-Video/issues/26
However as RGBtoHDMI has it's own OSD for a menu system it would make more sense to use that directly because the overlay method will not be great quality due to the FF OSD pixel clock not being locked to the Amiga's pixel clock.
Unfortunately while the Pi has I2C hardware, the GPIOs it uses are already being used for other things. What is available is a 115.2 Kbaud serial port (used for debugging) so would it be possible to send the display data out of a serial port either on the "Blue Pill" or the Gotek itself so the Pi can receive it and render it to it's own OSD?
Also the internal version of RGBtoHDMI uses one button for menu control (normally high, taken low when pressed) so perhaps that could also be controlled by the "Blue Pill" and an Amiga key combination?

I would say do it straight from the Gotek, but then you lose Amiga keyboard integration. It's quite bit-bangy and I expect the PiZ is quite busy doing other stuff! In which case the Pill could pass through the OSD data encapsulated in RS232?

I would say do it straight from the Gotek, but then you lose Amiga keyboard integration. It's quite bit-bangy and I expect the PiZ is quite busy doing other stuff! In which case the Pill could pass through the OSD data encapsulated in RS232?

Hi, I have the blue pill connected to the gotek and also have the outputs of the gotek connected to my keyboard that enables menu selection using the keyboard.
The bluepill has the sync and green colour output that ties into the RGB output of the Amiga 500. Are you saying that i can take the RGB output from the bluepill and feed to to pin 18 of Pi Zero via a 1K resistor?  I can try this today.
Thanks.
Brian

Hi, I have the blue pill connected to the gotek and also have the outputs of the gotek connected to my keyboard that enables menu selection using the keyboard.
The bluepill has the sync and green colour output that ties into the RGB output of the Amiga 500. Are you saying that i can take the RGB output from the bluepill and feed to to pin 18 of Pi Zero via a 1K resistor?  I can try this today.
Thanks.
Brian

@keirf
Can you confirm the voltage levels of the OSD output on the blue pill?
The Pi is expecting a 3.3v pixel input and has a weak 50K pulldown on that input as I assume the OSD goes high impedance when not displaying an OSD.

@keirf
Can you confirm the voltage levels of the OSD output on the blue pill?
The Pi is expecting a 3.3v pixel input and has a weak 50K pulldown on that input as I assume the OSD goes high impedance when not displaying an OSD.

@keirf

I would say do it straight from the Gotek

Straight from the Gotek might be preferable as you could then use it with other systems externally just by hooking up the Gotek to the RGBtoHDMI.
That would still work with the Amiga blue pill for keyboard control and its existing analog RGB output.

@keirf

I would say do it straight from the Gotek

Straight from the Gotek might be preferable as you could then use it with other systems externally just by hooking up the Gotek to the RGBtoHDMI.
That would still work with the Amiga blue pill for keyboard control and its existing analog RGB output.

STM32 MCU has 3.3v I/O. It is Pi compatible therefore. And yes it is hi-z outside the OSD box.

STM32 MCU has 3.3v I/O. It is Pi compatible therefore. And yes it is hi-z outside the OSD box.

@keirf

It's quite bit-bangy and I expect the PiZ is quite busy doing other stuff!

Yes that's the problem, reading the GPIOs takes ~45ns for just the single LDR instruction presumably due to deglitching logic and the pixel time is ~69ns on the Amiga so there is no time to do anything else including interrupts. I can run other code at the end of each line to empty a serial buffer and further processing during field blanking but that's about it.

In which case the Pill could pass through the OSD data encapsulated in RS232?

Can serial data be sent directly out of the Gotek?
If not then the only solution is to use the blue pill as an I2C to serial converter.

@keirf

It's quite bit-bangy and I expect the PiZ is quite busy doing other stuff!

Yes that's the problem, reading the GPIOs takes ~45ns for just the single LDR instruction presumably due to deglitching logic and the pixel time is ~69ns on the Amiga so there is no time to do anything else including interrupts. I can run other code at the end of each line to empty a serial buffer and further processing during field blanking but that's about it.

In which case the Pill could pass through the OSD data encapsulated in RS232?

Can serial data be sent directly out of the Gotek?
If not then the only solution is to use the blue pill as an I2C to serial converter.

Maybe it worth revisiting https://github.com/keirf/FlashFloppy/issues/180

Maybe it worth revisiting https://github.com/keirf/FlashFloppy/issues/180

There are a couple of reasons to prefer integration with Blue Pill in the first instance:

Better testbed for 'new stuff' (lower bar for release)
Most people integrating FFOSD in an Amiga want the keyboard support too. The usability improvement is significant.

There are a couple of reasons to prefer integration with Blue Pill in the first instance:

Better testbed for 'new stuff' (lower bar for release)
Most people integrating FFOSD in an Amiga want the keyboard support too. The usability improvement is significant.

There are a couple of reasons to prefer integration with Blue Pill in the first instance:

OK would you be able to look at that sometime?
Also maybe add the extra button support to drive the Pi's menus (normally high, driven low during button press) ?

There are a couple of reasons to prefer integration with Blue Pill in the first instance:

OK would you be able to look at that sometime?
Also maybe add the extra button support to drive the Pi's menus (normally high, driven low during button press) ?

I will have a look today.

I will have a look today.

FFOSD already has a 115200,8n1 debug serial console on pins PA9/10. We could stick OSD output over that, just need to agree what drives/controls it. For example, can the Pi send some control character to request an OSD update? Then FFOSD could respond with an update frame of some structured format, with a header that Pi can pick up on, details such as OSD position, button state, OSD contents, and finish perhaps with CRC. An alternative is a jumper or config option in FFOSD to turn off the debug/config console and instead blast update frames across serial.

FFOSD already has a 115200,8n1 debug serial console on pins PA9/10. We could stick OSD output over that, just need to agree what drives/controls it. For example, can the Pi send some control character to request an OSD update? Then FFOSD could respond with an update frame of some structured format, with a header that Pi can pick up on, details such as OSD position, button state, OSD contents, and finish perhaps with CRC. An alternative is a jumper or config option in FFOSD to turn off the debug/config console and instead blast update frames across serial.

@keirf
I think the second option of a jumper or config option in FFOSD to turn off the debug/config console and send OSD update frames across serial would be preferable. I should be able to check at the end of every video line for incoming serial data as there is an 8 character hardware buffer.

@keirf
Do you plan to create a better cooperation of FF_OSD and RGB2HDMI? I think both are very good hardware mods to the Amiga and using both same time would be very nice. :-)

To be honest I just haven't got around to it yet. It doesn't help I don't have an RGBHDMI myself yet. I have boards on order as I will be selling kits and assembled adapters at less than the ridiculous prices some are charging.