Input pattern prop

Hello,
Im wondering how to use the pattern property from input in html to Input comp in this lib.
I setted up a pattern but seems like the pattern prop in the lib is not working.
I want to allow the user only type numbers and letters , not special chars like #,$,%,&,etc.
So i did this:
<Input pattern="^[a-zA-Z0-9]*$" />
Thanks

@darklilium pattern attribute won't restrict user while typing the value, it is used to validate the input filed value before submitting the form.
type attribute will restrict the user input.
Example: if you mention type=number, user can only enter numbers. But for your use case you can't use type attribute.
So you can write a custom wrapper input component like below so that user can't enter according to pattern.

CustomInput.jsx

import React from "react";
import Input from 'react-toolbox/lib/input';

class CustomInput extends React.PureComponent {
  constructor(props) {
    super(props);
    const { value, defaultValue } = this.props;
    this.state = {
      value: value || defaultValue || ""
    };
    this.onChange = this.onChange.bind(this);
  }

  onChange(value) {
    const { pattern, onChange } = this.props;
    if (pattern) {
      const reg = new RegExp(pattern);
      if (reg.test(value)) {
        this.setState({
          value
        });
      }
    }
    if (onChange) {
      onChange.call(arguments); // To call actual onChange passed CustomInput
    }
  }
  render() {
    const {
      props,
      state: { value }
    } = this;
    return <Input {...props} value={value} onChange={this.onChange}></Input>;
  }
}

app.jsx

<CustomInput pattern="^[a-zA-Z0-9]*$" />

@darklilium you can close this issue if you are happy with the provided explanation and code.


Update compound identifiers

@niranjchandrasekaran said

I was recently made aware that with the compound identifiers that are currently available for the Target and MOA sets, it was difficult to uniquely identify the compounds (especially to distinguish between isomers). I am going to inquire with Broad's compound management teams to see if they have other identifiers like (CAS numbers) for these compounds. I don't have a time frame for when I will have the additional identifiers but I am hoping to make them available sometime next month.

CDoT informed me that CAS numbers have never been provided for the repurposing hub compounds. Charles Perry from CDoT suggested the following

The compound can be searched by its BRD and from the compound card shown below with all the compound information, strcuture and more external sources. You can also click view samples:

Which will bring the below card up with the exact vendor and catalog number if the source of the compound is desired to look at its information there.

Thus getting additional identifiers will be a manual process.

Thanks for documenting

The compound can be searched by its BRD

What website should one go to?

Repurposing hub data app - https://clue.io/repurposing-app


Support renaming a branch

Great plugin, thanks to the dev :+1:
An observation that renaming a branch within the IDE (or from the cli) doesn't update the commit prefix. Hopefully this is an event you can hook into!
Thanks.

Thank you for your feature request. Glad you like the plugin!
I already found the corresponding event. Will release a new version soon, supporting this feature.

Renaming doesn't seem to work yet. Need to look at it again.
The new release supports branch switches from cli/terminal only and will be released in the next days.

The fix was easy. Expect to have an updated version available in the next days. Enjoy

Wonderful, already pulled and in use. Fantastic support of the plugin, thank you!!


Compiler constants refactor

Moved compiled constants into env.json file in the .web folder
All Submissions:

[ ] Have you followed the guidelines stated in CONTRIBUTING.md file?
[ ] Have you checked to ensure there aren't any other open Pull Requests for the desired changed?

Type of change
Please delete options that are not relevant.

[ ] 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

New Feature Submission:

[ ] Does your submission pass the tests?
[ ] Have you linted your code locally prior to submission?

Changes To Core Features:

[ ] Have you added an explanation of what your changes do and why you'd like us to include them?
[ ] Have you written new tests for your core changes, as applicable?
[ ] Have you successfully ran tests with your changes locally?

fixes #1012

Thanks for this change!
I think we don't need the .env inside the component files anymore. We can import it in state.js instead so that file will have all the constants. Currently we are passing in the constants to the state.js files which is why we needed it here, but we can remove that now.

Yeah that makes sense. Will update this accordingly


Request for getting user.visibleApps

Hi Patrice,
As request, I open this issue for getting user's visible apps, thanks for your great help.

I have just pushed a commit (https://github.com/Ponytech/appstoreconnectapi/commit/0c621cc82666ad28b785c36a957707279a3fc159) on master that should let you do this:
users = api.list_users(filters={'username'<EMAIL_ADDRESS>user = users[0]  # note that you can now access an object using indexing
for app in user.visibleApps():
    print(app.name)

@yangcaixing can you confirm this works for you?

Hi Patrice,  it works, thanks.

it works, thanks.

Great!


[UWP] Fix debug build

Building UWP locally (x86/debug) I ran into the following error:
"'/ZI' and '/guard:cf' command-line options are incompatible"
Set DebugInformationFormat to ProgramDatabase (/Zi instead of /ZI) to avoid this conflict.
Additionally, hit two warnings about unreachable code (now treated as errors) and fixed them.
How verified: UWP debug now builds correctly. No new test failures.
Microsoft Reviewers: Open in CodeFlow

doh! thanks for catching this. I modified the CI job to include debug builds (previously disabled due to the number of agents required).


ec2: add set-instance-profile action

It's useful to associate an instance profile to an existing instance.

I'm finished verifying the docs and permissions. Should be ready to go. Thanks!

Good plan. On it.

@kapilt I've made the requested changes. I would appreciate another look over when you get a chance. Thanks much!

@kapilt the travis error being reported isn't clear to me. Seems it's missing a config.json. Is this environmental? make test passes when I run it in my sandbox.

thanks, looks like an unrelated issue, i did a quick through travis history couldn't find a previous occurrence in the last few days, a rebuild resolved.

Hey @kapilt. Hope you had a delightful long weekend. Is there anything outstanding here that needs to be done before merging? Do let me know. Thanks!

Thanks @kapilt !


Support for Firefox

Are there plans to publish this extension for Firefox?

There are currently no plans to publish this for Firefox. The main reason is that Firefox disables 3rd party cookies by default, so users would have to go into their settings and enable 3rd party cookies on leetcode.com before they could get the extension to work. Also, I don't foresee myself being able to maintain LeetRooms on multiple browsers.


Neural renderer dependency

Good afternoon,
May I ask how do you install the neural renderer dependency? If I run regular pip install, it just fails for me.  I have tried to fix some issues there and install it manually by copying the source code, and install it from the setup.py. The WLDO code then seems to run, but results are pretty bad. If I compare with the image from the README, I can see that I have worse results (with the pre-trained network) then it probably should be.

I am not 100% sure, but I guess that it might be the problem with the neural renderer dependency. Which version did you use and how did you install it?
Thank you.

Hey - yes... something not right here :)
Please could you let me know your OS and the command you're using to run the script. I'll try to install from scratch and provide guidance.

Hey - yes... something not right here :)
Please could you let me know your OS and the command you're using to run the script. I'll try to install from scratch and provide guidance.

Thank you for your fast answer.
I have realized that the issue was on my side :) I have used the family "dogs" for template, as I supposed that it would prefer the species-specific template, but it seems that this was what was causing an issue. Can you confirm that it is the intended use of WLDO to always have a -1 family instead of the species-specific template?
Thank you and have a nice day.

Yes, the following lines should be unchanged (i.e. set to -1) in order to reproduce our results:
https://github.com/benjiebob/WLDO/blob/master/wldo_regressor/eval.py#L32
https://github.com/benjiebob/WLDO/blob/master/wldo_regressor/demo.py#L27

Thank you.
On a side node, maybe adding the information about the neural renderer installation would still be useful, as, as I have mentioned, I could not automatically install it from pip, and I know that I am not the only one. And in the version, which I have managed to finally install, I had to change render to render_rgb in nmr.py, so I guess it is a slightly different version from the one you used.

I agree this would be useful -- to be honest, I've struggled a bit with this library in the past.
However, I think it would be best to raise issues on the Neural Renderer Pytorch repository where it can benefit all their users rather than just those interested in WLDO.
I'd encourage you to raise an issue there, particularly if you had issues with pip install.
Cheers! Will close.


I am not able to show Y axis line for columnChart in react-google-chart

I am using columnChart in react google chart (version 3.0.15 ).
On y axis only labels are showing but line is not showing. I did not find any option to show y axis line. Please help me.

https://developers.google.com/chart/interactive/docs/gallery/columnchart#configuration-options


Use provided id_field

The id_field provided during Docstore initialization is not used in the get_many method. This pull request changes this.

Great, thanks for the fix @bpiwowar!

(Failing tests are unrelated to this change.)


[Bug] Inconsistent key management fee

Hello,
I come across an inconsistency in the fee calculation with key management operations.
Here's the two deploys. They have the same execution tree. Only the write deploy fee change.
https://testnet.cspr.live/deploy/e12016c5a87e4e7b63741aa1c15cf4fab9f01f1efb977009bbe65cc73f6f1d45
https://testnet.cspr.live/deploy/ed099aa2df93d2b9a92b2f6641571dd61775abd83a5f31ee6e4c2789b402bf6e
The difference between the two account is that one account have an nft collection deployed on it.
https://github.com/casper-ecosystem/casper-nft-cep47
This inconsistency make impossible to predict the fee needed for key management operations (and maybe others operations).

The costs of the key management are affected by how much data is manipulated. Working as intended.


Tests for NSDate

Mucking around with git and rebase and accidentallied all the files. Adding back in from local copy and requesting new PR.

Thanks!


How to make him support websocket?

How to make him support websocket?

The client side example can be found under https://github.com/dotnet/MQTTnet/wiki/Client#websocket-connection. As @MD-V  said, it's difficult to understand what exactly is the desired goal you want to achieve...

It's OK. I already use emqx.


Add support to Adyen Payment API v68

Description
This Feature will add support for the Adyen Payment API v68, dropping the support of v66.

:tada: This issue has been resolved in version 3.0.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


security: up dependencies to fix security vulnerabilities

Description
Dapr has a few vulnerabilities that we should address from a security perspective by upping our dependency versions 👇

Package
Affected version
Patched version
Fixed in this PR?
Impact

google.golang.org/grpc
< 1.56.3
1.56.3
yes
gRPC-Go HTTP/2 Rapid Reset vulnerability allowing attackers to send HTTP/2 requests, cancel them, send subsequent requests, etc

golang.org/x/net
< 0.17.0
0.17.0
yes
HTTP/2 rapid reset can cause excessive work in net/http

github.com/docker/distribution
< 2.8.2-beta.1
2.8.2-beta.1
yes
distribution catalog API endpoint can lead to OOM via malicious user input

github.com/jackc/pgx/v5
>= <IP_ADDRESS>, < 5.5.4
5.5.4
yes
pgx SQL injection via protocol message size overflow

google.golang.org/protobuf
< 1.33.0
1.33.0
yes
golang protojson.Unmarshal func infinite loop when marshalling certain forms of invalid JSON

github.com/docker/docker
>= 1.12.0, < 20.10.24
20.10.24
yes
Docker swarm encrypted overlay network may be unauthenticated

github.com/cloudevents/sdk-go/v2
<= 2.15.1
2.15.2
yes
Go SDK for CloudEvents's use of WithRoundTripper to create a Client leaks credentials

Also update test go modules as those should be kept current with regular code depenencies.
Issue reference

Please reference the issue this PR will close: #[issue number]
Checklist
Please make sure you've  completed the relevant tasks for this PR, out of the following list:

[x] Code compiles correctly
[ ] Created/updated tests
[ ] Unit tests passing
[ ] End-to-end tests passing
[ ] Extended the documentation / Created issue in the https://github.com/dapr/docs/ repo: dapr/docs#[issue number]
[ ] Specification has been updated / Created issue in the https://github.com/dapr/docs/ repo: dapr/docs#[issue number]
[ ] Provided sample for the feature / Created issue in the https://github.com/dapr/docs/ repo: dapr/docs#[issue number]

transient failure:
ERROR: failed to create cluster: command "docker run --name kind-control-plane --hostname kind-control-plane --label io.x-k8s.kind.role=control-plane --privileged --security-opt seccomp=unconfined --security-opt apparmor=unconfined --tmpfs /tmp --tmpfs /run --volume /var --volume /lib/modules:/lib/modules:ro -e KIND_EXPERIMENTAL_CONTAINERD_SNAPSHOTTER --detach --tty --label io.x-k8s.kind.cluster=kind --net kind --restart=on-failure:1 --init=false --publish=<IP_ADDRESS>:43883:6443/TCP -e KUBECONFIG=/etc/kubernetes/admin.conf kindest/node:v1.24.7@sha256:577c630ce8e509131eab1aea12c022190978dd2f745aac5eb1fe65c0807eb315" failed with error: exit status 125

Going to let this sit until closer to code freeze ~May 28th, as this should be part of the release process.

are the unit test failures in windows transient..? Also, why are all of my e2e tests giving this err?
gzip: /home/runner/work/dapr/dapr/test_logs/v1.23.13_ha: No such file or directory

This PR will be merged as soon as validation passes.

    iowriter.go:89: Test_Integration/daprd/hotreload/operator/informer/reconnect/subscriptions/daprd: 2024/06/24 18:34:46 Failed to read default home directory: exec: "sh": executable file not found in $PATH
    iowriter.go:89: Test_Integration/daprd/hotreload/operator/informer/reconnect/subscriptions/daprd: {"timestamp":"2024-06-24 18:34:45.45240","caller":"sys_metric_stat.go:85","logLevel":"ERROR","msg":"Fail to read Virtual Memory"}
    iowriter.go:89: Test_Integration/daprd/hotreload/operator/informer/reconnect/subscriptions/daprd: exec: "vm_stat": executable file not found in $PATH

this is ready too. I think the failures are unrelated based on logs above ^


fix: remove registration authorities list

Codecov Report

Merging #482 (9096ddc) into main (1f1ed7e) will decrease coverage by 9.48%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main     #482      +/-   ##
==========================================
- Coverage   46.94%   37.46%   -9.49%
==========================================
  Files         233      151      -82
  Lines       11673     2389    -9284
  Branches      608      608
==========================================
- Hits         5480      895    -4585
+ Misses       5234     1319    -3915
+ Partials      959      175     -784

Impacted Files
Coverage Δ

...m/trisacrypto/directory/pkg/utils/logger/logger.go

...b.com/trisacrypto/directory/pkg/gds/interceptor.go

...risacrypto/directory/pkg/gds/store/index/search.go

...ub.com/trisacrypto/directory/pkg/sectigo/errors.go

...b.com/trisacrypto/directory/pkg/gds/emails/mock.go

.../trisacrypto/directory/pkg/gds/models/v1/models.go

...com/trisacrypto/directory/pkg/gds/emails/emails.go

...om/trisacrypto/directory/pkg/gds/emails/bindata.go

...m/trisacrypto/directory/pkg/gds/store/trtl/mock.go

....com/trisacrypto/directory/pkg/gds/secrets/mock.go

... and 72 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 1f1ed7e...9096ddc. Read the comment docs.


Feature: tv shows shimmy effect

Did here:
https://github.com/AntonMishanin/MyAndroidSchool/pull/65


Added custom dotenv logging config option to disable serverless cli log output

The default functionality of logging the output to the serverless cli remains the same.
When using this plugin with serverless-offline every request would log and output "DOTENV: Loading environment variables from .env:" and all of the variables being loaded. I added a custom dot env config option to disable logging.
To disable logging simply set logging in custom dotenv to false in your serverless.yml:
custom:
  dotenv:
    logging: false

Hi @kristopherchun  thank you for this PR! There are so many thousands of developers who are dependent on this project that I have gotten into the bad habit of ignoring most of these types of issues/requests. I'm nervous that any change even very small could result in big problems. It's very tricky to make sure nothing ever breaks and that's hard because I don't know exactly how developers are using this. With that said, your PR might actually be one of the solutions others could use and so far as I can tell, it's a non-breaking change. Give me a few more minutes to review (lol you waited almost a year!)

Ok, yeah I like how you defaulted the value to true. This will get merged shortly.

Yeah, fully understandable its a great plugin and I use it on every single one of our applications. Thank you for creating and maintaining this. I'll be honest, I did start to lose hope that it would never get merged 😄 It was just a simple addition wrapping things in if's, but even so, I wanted to retain the default functionality so that nothing changed for other developers. Thank you for merging this!


Add delixfe's tests and merge upstream changes in v9.0.0

@delixfe FYI, this is merged, and a new package has been published to nuget


fix: automatically set disk is_ssd according to storage medium_type

What this PR does / why we need it:
fix: automatically set disk is_ssd according to storage medium_type

Does this PR need to be backport to the previous release branch?:

release/3.9

/cc @wanyaoqi @zexi

/lgtm


Add atexit configuration option to control using atexit() in libcrypto at build-time.

This fixes an issue with a mix of atexit() usage in DLL and statically linked libcrypto that came out in the test suite on NonStop, which has slightly different DLL unload processing semantics compared to Linux. The change allows a build configuration to select whether to register OPENSSL_cleanup() with atexit() or not, so avoid situations where atexit() registration causes SIGSEGV.
INSTALL.md and CHANGES.md have been modified to include and describe this
option.
The no-atexit option has been added to .github/workflows/run-checker-daily.yml.
Fixes: #23135
Signed-of-by: Randall S. Becker<EMAIL_ADDRESS>Checklist

[x] documentation is added or updated
[x] tests added

Note that you can already control this at run time via OPENSSL_init_crypto(OPENSSL_INIT_NO_ATEXIT, NULL)

This PR passed all regression tests/checks and is ready for review again.

Probably, it should also have an entry in .github/workflows/run-checker-daily.yml

Probably, it should also have an entry in .github/workflows/run-checker-daily.yml

I have added a no-atexit entry in the list of no-* entries. Hopefully that is sufficient. Next push will have it. Thanks for the feedback.

@nhorman - please reconfirm

approval reconfirmed.

This pull request is ready to merge

Merged to master
Thank you for your contribution!

**OTC vote has passed: https://github.com/openssl/technical-policies/issues/89 **
This can be backported to 3.0, 3.1 and 3.2 (without the NonStop changes).


no "kotlinc" documentation for including "util"

I tried to compile kotlin-koans/src/i_introduction/_0_Hello_World/HelloWorld.kt
with kotlinc HelloWorld.kt -include-runtime -d HelloWorld.jar
but it fails:
HelloWorld.kt:3:8: error: unresolved reference: util
import util.TODO
       ^
I googled for an hour, read the documentation but I couldn't find out how to do that properly.

Hi Patterner! This function is declared in the kotlinUtil.kt file in the same project. That means you have to compile the whole project, not just one file.
A convenient way to work with koans is through IDE (Intellij Idea, for example). In this case all the compilation goes automatically. You can check the online version http://try.kotlinlang.org/koans (the tasks are almost the same) as well.

that was disappointing


demo clock is wrong

hi， when i run ios-ntp-app ，both system clock and network clock are eight hours late，what should i do to correct it？thanks！
like this

The time displayed in the sample app is UTC, time zone 0 (that's what the "+0000" signifies), displayed in an ISO format.  It should be fairly simple to change that to displaying time in your locale, both your time zone (which changes in the summer for most countries) and any local formatting.  Apple's developer documentation covers these, and many other aspects of time and date, quite well.

The time displayed in the sample app is UTC, time zone 0 (that's what the "+0000" signifies), displayed in an ISO format. It should be fairly simple to change that to displaying time in your locale, both your time zone (which changes in the summer for most countries) and any local formatting. Apple's developer documentation covers these, and many other aspects of time and date, quite well.

so i need to add my time zone manually after i call [NSDate date] (or  [[NetworkClock sharedNetworkClock] networkTime]) if i want to get my locale time ?

You are confusing the time, which is the same everywhere, with how it is displayed, which has many variations.  A very simple example: at exactly the same time, you could say it was day and I could say it was night, and we'd both be correct.  You would benefit from reading Apple's documentation:
https://developer.apple.com/documentation/foundation/nsdate
"NSDate objects encapsulate a single point in time, independent of any particular calendrical system or time zone. Date objects are immutable, representing an invariant time interval relative to an absolute reference date (00:00:00 UTC on 1 January 2001)."
Just take the NSDate you get, don't change it, and use Apple's date formatting methods to display it in according to your local conventions (including the logograms I see at the top of your screenshot, if you want).

I've learned，thank you very much for your trouble.

This change to ntpViewController will show you time in a localized form.  It provides an NSDateFormatter to be used instead of the default .. the default displays the date in the ISO format, the NSDateFormatter created here displays a more local format.  It should be noted that NSDateFormatter is expensive .. all the complexity of the many different possible formats of an NSDate makes it computationally intense so they shouldn't be created in a loop.  Here, it is created in the (called once) viewDidLoad and used repeatedly in the (called once a second) timerFireMethod :
NSDateFormatter * dateFormatter;

- (void)viewDidLoad {
    [super viewDidLoad];

    dateFormatter = [[NSDateFormatter alloc] init];
    dateFormatter.dateStyle = NSDateFormatterLongStyle;
    dateFormatter.timeStyle = NSDateFormatterMediumStyle;
    dateFormatter.locale = [NSLocale currentLocale];

    netClock = [NetworkClock sharedNetworkClock];

/*┌──────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ Create a timer that will fire every second to refresh the text labels in the UI.                 │

: : : : :

  ┃ The method executed by the timer -- gets the latest times and displays them.                     ┃
  ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛*/
- (void) timerFireMethod:(NSTimer *) theTimer {
    _sysClockLabel.text = [NSString stringWithFormat:@"System Clock: %@",
                           [dateFormatter stringFromDate:[NSDate date]]];
    _netClockLabel.text = [NSString stringWithFormat:@"Network Clock: %@",
                           [dateFormatter stringFromDate:netClock.networkTime]];
    _offsetLabel.text = [NSString stringWithFormat:@"Clock Offet: %5.3f mSec", netClock.networkOffset * 1000.0];
}


Implement support for prepared statements

We have to support parsing prepared statements, supporting any new placeholder marker decided in the spec.

A first pass here could be to just support placeholder args of the type specified here: https://sqlite.org/lang_expr.html#parameters


Make route command optional

Is there a way to optionally make a route a command using a config parameter?
For example:
route(/foo/, :bar, command: config.command, help: { 'foo' => 'returns bar' })

In the latest gem release of Lita, there isn't an easy way to do this. What you'd have to do is create an event callback for the "loaded" event and then define the route inside the callback. This makes it possible because the configuration values have been finalized at this point in the start up process.
On the master branch, which will someday be Lita 5, there's an after_config method that makes this pattern easier.

That's good news. Is there a planned date for Lita 5?
The reason I'm interested in this is because I've created handlers that I want to support for both chat-based bots and SMS bots.

A chatbot is more likely to interact in a group and also have multiple handlers so commands are important.
SMSbots, on the other hand, often have dedicated numbers and can be more single purpose, removing the need for the bot name prefix.

That's good news. Is there a planned date for Lita 5?

Not at the moment. I haven't been working on this project very actively, but intend to polish up master and release it at some point.


Error in model.load_weights using Keras 2.0.4

Build model...
2017-05-15 23:00:29.615498: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.1 instructions, but these are available on your machine and could speed up CPU computations.
2017-05-15 23:00:29.615533: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.2 instructions, but these are available on your machine and could speed up CPU computations.
deepnet_predict.py:92: UserWarning: Update your Conv1D call to the Keras 2 API: Conv1D(activation="relu", padding="valid", strides=1, filters=64, kernel_size=5)
subsample_length=1))
deepnet_predict.py:99: UserWarning: Update your Conv1D call to the Keras 2 API: Conv1D(activation="relu", padding="valid", strides=1, filters=64, kernel_size=5)
subsample_length=1))
deepnet_predict.py:118: UserWarning: Update your Conv1D call to the Keras 2 API: Conv1D(activation="relu", padding="valid", strides=1, filters=64, kernel_size=5)
subsample_length=1))
deepnet_predict.py:125: UserWarning: Update your Conv1D call to the Keras 2 API: Conv1D(activation="relu", padding="valid", strides=1, filters=64, kernel_size=5)
subsample_length=1))
deepnet_predict.py:134: UserWarning: The dropout argument is no longer support in Embedding. You can apply a keras.layers.SpatialDropout1D layer right after the Embedding layer to get the same behavior.
model5.add(Embedding(len(word_index) + 1, 300, input_length=40, dropout=0.2))
deepnet_predict.py:135: UserWarning: Update your LSTM call to the Keras 2 API: LSTM(300, dropout=0.2, recurrent_dropout=0.2)
model5.add(LSTM(300, dropout_W=0.2, dropout_U=0.2))
deepnet_predict.py:138: UserWarning: The dropout argument is no longer support in Embedding. You can apply a keras.layers.SpatialDropout1D layer right after the Embedding layer to get the same behavior.
model6.add(Embedding(len(word_index) + 1, 300, input_length=40, dropout=0.2))
deepnet_predict.py:139: UserWarning: Update your LSTM call to the Keras 2 API: LSTM(300, dropout=0.2, recurrent_dropout=0.2)
model6.add(LSTM(300, dropout_W=0.2, dropout_U=0.2))
deepnet_predict.py:142: UserWarning: The Merge layer is deprecated and will be removed after 08/2017. Use instead layers from keras.layers.merge, e.g. add, concatenate, etc.
merged_model.add(Merge([model1, model2, model3, model4, model5, model6], mode='concat'))
Traceback (most recent call last):
File "deepnet_predict.py", line 179, in
merged_model.load_weights('weights.h5')
File "/home/anurag/anaconda2/lib/python2.7/site-packages/keras/models.py", line 717, in load_weights
topology.load_weights_from_hdf5_group(f, layers)
File "/home/anurag/anaconda2/lib/python2.7/site-packages/keras/engine/topology.py", line 2970, in load_weights_from_hdf5_group
K.batch_set_value(weight_value_tuples)
File "/home/anurag/anaconda2/lib/python2.7/site-packages/keras/backend/tensorflow_backend.py", line 2148, in batch_set_value
assign_op = x.assign(assign_placeholder)
File "/home/anurag/anaconda2/lib/python2.7/site-packages/tensorflow/python/ops/variables.py", line 512, in assign
return state_ops.assign(self._variable, value, use_locking=use_locking)
File "/home/anurag/anaconda2/lib/python2.7/site-packages/tensorflow/python/ops/state_ops.py", line 270, in assign
validate_shape=validate_shape)
File "/home/anurag/anaconda2/lib/python2.7/site-packages/tensorflow/python/ops/gen_state_ops.py", line 47, in assign
use_locking=use_locking, name=name)
File "/home/anurag/anaconda2/lib/python2.7/site-packages/tensorflow/python/framework/op_def_library.py", line 768, in apply_op
op_def=op_def)
File "/home/anurag/anaconda2/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 2338, in create_op
set_shapes_for_outputs(ret)
File "/home/anurag/anaconda2/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 1719, in set_shapes_for_outputs
shapes = shape_func(op)
File "/home/anurag/anaconda2/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 1669, in call_with_requiring
return call_cpp_shape_fn(op, require_shape_fn=True)
File "/home/anurag/anaconda2/lib/python2.7/site-packages/tensorflow/python/framework/common_shapes.py", line 610, in call_cpp_shape_fn
debug_python_shape_fn, require_shape_fn)
File "/home/anurag/anaconda2/lib/python2.7/site-packages/tensorflow/python/framework/common_shapes.py", line 676, in _call_cpp_shape_fn_impl
raise ValueError(err.message)
ValueError: Dimension 0 in both shapes must be equal, but are 57526 and 79197 for 'Assign_24' (op: 'Assign') with input shapes: [57526,300], [79197,300].

I have the same problem. I have a custom layer and cannot make keras.models.load_model work in any way I tried. So I have to use model.save_weights and model.load_weights. Unfortunately it does not work either. So now I cannot use my model which I trained for hours.
For load_weights, I got:
/home/my_username/anaconda2/lib/python2.7/site-packages/tensorflow/python/framework/common_shapes.pyc in _call_cpp_shape_fn_impl(op, input_tensors_needed, input_tensors_as_shapes_needed, debug_python_shape_fn, require_shape_fn)
674       missing_shape_fn = True
675     else:
--> 676       raise ValueError(err.message)
677
678   if missing_shape_fn:
ValueError: Dimension 0 in both shapes must be equal, but are 512 and 768 for 'Assign_21' (op: 'Assign') with input shapes: [512,4656], [768,5704].

@ylmeng did you solve problem ?

@iperov No. However there is a way to work around.
You can load a raw model first, train for just 1 epoch, and then load your saved weights using the "trained" model.
It is ugly but it works for me.

@ylmeng I solved problem. Custom layer must have get_config() override for serialize inner params thats are important
example of my BatchNorm2D custom layer that I ported from Torch to Keras
class TorchBatchNorm2D(keras.engine.topology.Layer):
    def __init__(self, axis=-1, momentum=0.99, epsilon=1e-3, **kwargs):
        super(TorchBatchNorm2D, self).__init__(**kwargs)
        self.supports_masking = True
        self.axis = axis
        self.momentum = momentum
        self.epsilon = epsilon

    def build(self, input_shape):
        dim = input_shape[self.axis]
        if dim is None:
            raise ValueError('Axis ' + str(self.axis) + ' of ' 'input tensor should have a defined dimension ' 'but the layer received an input with shape ' + str(input_shape) + '.')
        shape = (dim,)
        self.gamma = self.add_weight(shape=shape, name='gamma', initializer='ones', regularizer=None, constraint=None)
        self.beta = self.add_weight(shape=shape, name='beta', initializer='zeros', regularizer=None, constraint=None)
        self.moving_mean = self.add_weight(shape=shape, name='moving_mean', initializer='zeros', trainable=False)
        self.moving_variance = self.add_weight(shape=shape, name='moving_variance', initializer='ones', trainable=False)
        self.built = True

    def call(self, inputs, training=None):
        input_shape = K.int_shape(inputs)

        broadcast_shape = [1] * len(input_shape)
        broadcast_shape[self.axis] = input_shape[self.axis]

        broadcast_moving_mean = K.reshape(self.moving_mean, broadcast_shape)
        broadcast_moving_variance = K.reshape(self.moving_variance, broadcast_shape)
        broadcast_gamma = K.reshape(self.gamma, broadcast_shape)
        broadcast_beta = K.reshape(self.beta, broadcast_shape)
        invstd = K.ones (shape=broadcast_shape, dtype='float32') / K.sqrt(broadcast_moving_variance + K.constant(self.epsilon, dtype='float32'))

        return (inputs - broadcast_moving_mean) * invstd * broadcast_gamma + broadcast_beta

    def get_config(self):
        config = { 'axis': self.axis, 'momentum': self.momentum, 'epsilon': self.epsilon }
        base_config = super(TorchBatchNorm2D, self).get_config()
        return dict(list(base_config.items()) + list(config.items()))


Spec output files with .txt

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

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

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
99

Relevant Lines:
102

💛  - Coveralls


Positioning for embed fields?

Normally, discord.js embeds with multiple fields go straight up and down like this:

However, I have seen some bots do them in different positions like these:

Is there some kind of position property available to fields, or are these only possible with other platforms? Thanks for your reply.

Set the inline property of your fields to false.

Thanks.


[SPARK-40419][SQL][TESTS] Integrate Grouped Aggregate Pandas UDFs into *.sql test cases

What changes were proposed in this pull request?
This PR proposes to integrate Grouped Aggregate Pandas UDF tests into *.sql test cases.
This PR includes the fixes below:

Add UDAFTestCase into SQLQueryTestSuite.scala to test the UDAF related functions in sql.
Add udaf directory and create related sql test cases into this directory.
Generate golden files for new added sql test files.
Skip from ThriftServerQueryTestSuite.scala for now.
Fix minor typos.

Why are the changes needed?
To improve the test coverage, so prevent the potential bug in the future.
Does this PR introduce any user-facing change?
No, it's test-only.
How was this patch tested?
Added sql test files and corresponding golden files.

cc @HyukjinKwon could you help me on review when you find some time ?

Merged to master.


feat: allow PHP 8.4, temp remove Vimeo

https://github.com/moneyphp/money/pull/796
@ruudk @frederikbosch
Could you please have a look if this is a solution for a pre-release to help People to move on with PHP 8.4 ?
There is one Deprecation about a vendor-library. but this needs to be fixed there.

...money/vendor/florianv/swap/src/Swap.php:80
Swap\Swap::quote(): Implicitly marking parameter $date as nullable is deprecated, the explicit nullable type must be used instead

I am willing to pull some PR to a different branch in this project and then release an alpha/beta/RC version (4.6.0-xxx). Would that help?

I guess that would help


Changing UI of book recommendation extension

Is your feature request related to a problem? Please describe.
The image and the text field can be aligned properly so as to make the main page of the website look better.
Describe the solution you'd like
Aligning contents of web page.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
What problem is this feature trying to solve?

How do we know when the feature is complete?
I can raise a PR for the same.

No pull request received. Closing this


Document build environment

I've been trying to build the drivers on a Windows 7 machine.  Unfortunately, http://www.linux-kvm.org/page/WindowsGuestDrivers/Building_the_drivers is very terse and not complete, so this has been a bit of trial and error.

The build wants Visual Studio 2015, so I installed that.
Note, that SDK 10 is not supported on Windows 7, so I had to deselect that.
Installed WDK 7.1
Vista and earlier need XP tools to build, so I installed that component in VS
Windows 7+ drivers want WindowsKernelModeDriver10.0 so I installed WDK 10
Now the build wants SDK 8.1 tools, so I installed SDK 8.1

At this point building for Win7 fails with C:\Program Files (x86)\Windows Kits\10\build\WindowsDriver.common.targets(185,5): error : An SDK corresponding to WDK version '8.1' was not found. Please install the SDK before building.
The condition it checks is Exists('$(WDKContentRoot)\DesignTime\CommonConfiguration\Neutral\UAP\$(TargetPlatformVersion)\UAP.props, where WDKContentRoot is C:\Program Files (x86)\Windows Kits\10\ and  TargetPlatformVersion is 8.1.
A similar problem seems to be described in https://connect.microsoft.com/VisualStudio/feedback/details/1737782/vs2015-and-the-latest-wdk-and-sdk-dont-play-nice-together
Seems a bit strange to me that it checks for UAP, not WDK, but my Windows fu is very weak.
Anyway, it would be nice if the build environment was officially documented.  If there are any hints for fixing the above (if building on Windows 7 is supported at all), they will be much appreciated.

Did you install SDK 8.1 too? Perhaps using ProcMon you can get an understanding of what files in what paths it is looking for during the process.

As I mentioned, I had installed SDK 8.1.

Your post mentions "Installed WDK 7.1". ;) SDK is not the same as WDK. Here's another similar thread:
http://stackoverflow.com/questions/31981810/error-building-sample-driver-an-sdk-corresponding-to-wdk-version-8-1-was-not

"Now the build wants SDK 8.1 tools, so I installed SDK 8.1" is the exact quote :)

Hi,
Bullet 1 of the installation:
"Download and install Visual Studio 2015 (VS15) and also download and install Windows 8.1 WDK http://msdn.microsoft.com/en-US/windows/hardware/gg454513 and Windows 10 WDK http://go.microsoft.com/fwlink/p/?LinkId=526733."
You need both WDKs for the compilation. Did you install Windows 8.1 WDK?
Best regards,
Yan.

Yes, I've also installed WDK 8.1 (8.100.26846 according to list of installed programs).  I think I've installed it after WDK 10 is that matters.
"Bullet 1 of the installation:" - is that from some other document I've missed?

It could be a problem. Please install in the order mentioned in WiKi.
On Mon, Dec 19, 2016 at 3:42 PM, nbuwe<EMAIL_ADDRESS>wrote:

Yes, I've also installed WDK 8.1 (8.100.26846 according to list of
installed programs). I think I've installed it after WDK 10 is that matters.
"Bullet 1 of the installation:" - is that from some other document I've
missed?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/YanVugenfirer/kvm-guest-drivers-windows/issues/88#issuecomment-267966616,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABDkWBgTlfu4qP1CqpJTOMt3lRp6gCFkks5rJonVgaJpZM4LPW4I
.

--
Daynix Computing LTD
Yan Vugenfirer, CEO
Email<EMAIL_ADDRESS>Phone (Israel): +972-54-4758084
Phone (USA): +1-7204776716
Phone (UK): +44-2070482938
Web: www.daynix.com

Please, can you give me the link?  http://www.linux-kvm.org/page/WindowsGuestDrivers/Building_the_drivers only says "Download WDK and install it."

https://github.com/YanVugenfirer/kvm-guest-drivers-windows/wiki/Building the drivers
On Mon, Dec 19, 2016 at 4:17 PM, nbuwe<EMAIL_ADDRESS>wrote:

Please, can you give me the link? http://www.linux-kvm.org/page/
WindowsGuestDrivers/Building_the_drivers only says "Download WDK and
install it."
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/YanVugenfirer/kvm-guest-drivers-windows/issues/88#issuecomment-267974223,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABDkWF3KNJ51vjiKFg9KdaLiOJq-tljLks5rJpHrgaJpZM4LPW4I
.

--
Daynix Computing LTD
Yan Vugenfirer, CEO
Email<EMAIL_ADDRESS>Phone (Israel): +972-54-4758084
Phone (USA): +1-7204776716
Phone (UK): +44-2070482938
Web: www.daynix.com

Thanks.   That page says that to build  Windows 7 drivers only DDK 7 is needed (as I naively expected too), but VirtIO/VirtioLib.vcxproj has:
  <PropertyGroup Label="Configuration" Condition="'$(Configuration)|$(Platform)'=='Win7 Release|x64'">
    <TargetVersion>Windows7</TargetVersion>
    <PlatformToolset>WindowsKernelModeDriver10.0</PlatformToolset>
  </PropertyGroup>

Note WindowsKernelModeDriver10.0.

While we are checking why it is like this, you could change it locally.
On Mon, Dec 19, 2016 at 4:30 PM, nbuwe<EMAIL_ADDRESS>wrote:

Thanks. That page says that to build Windows 7 drivers only DDK 7 is
needed (as I naively expected too), but VirtIO/VirtioLib.vcxproj has:

Windows7
WindowsKernelModeDriver10.0

Note WindowsKernelModeDriver10.0.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/YanVugenfirer/kvm-guest-drivers-windows/issues/88#issuecomment-267977304,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABDkWP2C0x71IRmrlEpVXLw6FlQmPVayks5rJpUMgaJpZM4LPW4I
.

--
Daynix Computing LTD
Yan Vugenfirer, CEO
Email<EMAIL_ADDRESS>Phone (Israel): +972-54-4758084
Phone (USA): +1-7204776716
Phone (UK): +44-2070482938
Web: www.daynix.com

VirtIO library builds when I switch Windows 7 configurations to v140_xp (modulo a hiccup with _VOLATILE in VirtIO/WDF/MemPortIO.c).
I have no idea how to change NetKVM/CoInstaller/netkvmco-vs2015.vcxproj (that uses WindowsApplicationForDrivers10.0 for Windows 7 and Vista).
BTW, in NetKVM/NetKVM-VS2015.vcxproj is it really intended for Vista configurations to have ConfigurationType Application, unlike all the others, that are Driver?
Since I'm really in the "I have no idea what I'm doing" territory, I'd rather wait for you to investigate this.  :)
Thanks!


Resolves #809: Extract the apis and common services to a separate module

There's currently no clear distinction between API and service implementation, but this is the first step on the way to have it: here we're extracting a common separate module which can already act as a service layer.

@slawekjaranowski please review

Caused by: org.apache.maven.wagon.providers.http.httpclient.conn.HttpHostConnectException: Connect to repo.maven.apache.org:443 [repo.maven.apache.org/<IP_ADDRESS>] failed: Connection timed out: connect

Could you please restart the failed jobs?

Changes applied.


[Client lib bug, cluster die, important] Result sets not closing in 3.0.28 , 3.0.31

OrientDB Version: 3.0.28
Java Version: 1.8.0_131
OS: Ubuntu
Expected behavior
Error  appears on version 3.0.28, 3.0.31 when calling the wrong function parameter
Function name:  gameapp_GetGalleryByProductIDTest(p1,p2,p3)
but when ran: select gameapp_GetGalleryByProductIDTest(p1,p2) as rs
function body sample:
`select
expand(x)
from
(
select
abc
from
product
let
$x = out('e_a')[isactived = 1 and isdeleted = 0 and siteid = :p2
and (imagetype = :p3 or :p3 < 1)]
where
productid = :p1
)     `
Actual behavior
y 14 10:07:00 ograph01-beta server.sh[6217]: 2020-05-14 10:06:59:656 WARNI {db=web} This database instance has 90 open command/query result sets, please make sure you close them with OResultSet.close() [ODatabaseDocumentEmbedded]
May 14 10:07:02 ograph01-beta server.sh[6217]: 2020-05-14 10:07:00:845 WARNI {db=web} This database instance has 100 open command/query result sets, please make sure you close them with OResultSet.close() [ODatabaseDocumentEmbedded]
May 14 10:07:03 ograph01-beta server.sh[6217]: 2020-05-14 10:07:02:018 WARNI {db=web} This database instance has 110 open command/query result sets, please make sure you close them with OResultSet.close() [ODatabaseDocumentEmbedded]
May 14 10:07:04 ograph01-beta server.sh[6217]: 2020-05-14 10:07:03:193 WARNI {db=web} This database instance has 120 open command/query result sets, please make sure you close them with OResultSet.close() [ODatabaseDocumentEmbedded]
May 14 10:07:05 ograph01-beta server.sh[6217]: 2020-05-14 10:07:04:395 WARNI {db=web} This database instance has 130 open command/query result sets, please make sure you close them with OResultSet.close() [ODatabaseDocumentEmbedded]
May 14 10:07:06 ograph01-beta server.sh[6217]: 2020-05-14 10:07:05:605 WARNI {db=web} This database instance has 140 open command/query result sets, please make sure you close them with OResultSet.close() [ODatabaseDocumentEmbedded]
May 14 10:07:08 ograph01-beta server.sh[6217]: 2020-05-14 10:07:06:785 WARNI {db=web} This database instance has 150 open command/query result sets, please make sure you close them with OResultSet.close() [ODatabaseDocumentEmbedded]
May 14 10:07:09 ograph01-beta server.sh[6217]: 2020-05-14 10:07:08:087 WARNI {db=web} This database instance has 160 open command/query result sets, please make sure you close them with OResultSet.close() [ODatabaseDocumentEmbedded]

com.orientechnologies
orientdb-graphdb
3.0.28

com.orientechnologies
orientdb-gremlin
3.0.28

`
OrientGraphFactory factory=.......
public  void testA( )   {
	OResultSet rs = null;
	OrientGraph orG = null;
	try {
		orG = factory.getNoTx();

		Map<String, Object> paramsmap = new HashMap<String, Object>();
		rs = orG.querySql("select gameapp_GetGalleryByProductIDTest(219915,1) as rs", paramsmap).getRawResultSet();

	} catch (Throwable e) {
	  Exeption appear here and  rs =null , so nothing to close in finally

	} finally {
		if(rs!=null)rs.close();
		if(orG!=null)orG.close();

	}

}`

@quanghaisoft I'm on 3.0.31 and I don't see any functions named querySql nor getRawResultSet.
Can you tell what's the class they're actually defined on?

I using multi process and multithread for upsert data so i using
class OrientGraphFactory in package:
package org.apache.tinkerpop.gremlin.orientdb
same issue if i using:
ORODatabasePool dbPool=new ORODatabasePool(  "IP", "db", "admin",
"pass", 2424);
var rs=dbPool.Query("select gameapp_GetGalleryByProductIDTest(p1,p2) as rs");

thi has find a way to by pass this error by using:
orG = factory.getNoTx();
ORS = orG.execute("sql", query, params);
instead of querySql


Query on how to keep track of history in the arraylist for Lab8

Summary
I am having an issue with the flatMap() method of Logger. I am not sure of the way for us to keep track of the history in the ArrayList of Logger Object.
Description:
Clarifications or details with respect to the issue you are facing
I am not sure of how to keep track of history in the array list of Logger Object using flatMap(). I have already removed the first output(if there is any) but i still does not work.
Code Snippets
Attach code snippets (if any)

And this is my current implementation:

With or without the commented line of adding the history, its not going to generate the correct result.
(Less content without the commented line, but much more content in the history with the commented line)
Screenshots
Screenshots (if any)
Thank you!
Your help will be greatly appreciated!

I think the problem is that your current implementation of Logger (and map/flatMap) isn't lazy. I'm not sure if others are able to implement flatMap to evaluate eagerly, but personally I used Supplier for x and only call .get() in Logger's toString method.
class Logger<T> {
    private final Supplier<T> supplier;
    private final List<...> history;  // you can decide how you want to implement history

     /* constructor */

    public T get() {
        return supplier.get();
    }

    @Override
    public String toString() {
        // only call .get() here (you can call it in map/flatMap but inside a supplier)
    }
}

For more details, you can check the discussions in other Lab 08 posts or Lecture 9 (there is a section for map method).

Thanks @nmtuan2001 . You gave me an idea on how to code out my last level. I was stuck at it for quite some time!

No problem @UnwilledTangent . Happy to help!


Kuma adaptor not initializing in the UI management chip

The management chip does not display kuma adaptor.

@kushthedude @kumarabd, what the heck is this this? Teamwork?!


Types

Unfortunately the changes aren't ready to be merged. At the moment it's too much complicating development process.


Exclusive with Count Condition not work anymore

Issue Summary
I create 2 offers with count condition, Both are not exclusive, After oscar version 2.0, It seem like it just apply only 1 offers not apply both anymore
Steps to Reproduce

Create 2 offers like this

Only 1 offer apply

Expected

Should apply both offers if it does not exclusive.?

Note
I try to dig into the issue and  compare the load, I found out that, in condition.py they are some changed about is_satisfied like this image below

When I reverse code back it work like a charm, Any idea why you guy change that?
Technical details

Python version: 3.6.8
Django version: 1.11.5
Oscar version: 2.0.1.

Indeed, this was changed in https://github.com/django-oscar/django-oscar/commit/c1c61ef5c5112068fbaeadf5714423becec8ba25#diff-008132744b4a8f62da8f13ae6286db70R49-R50, but only for CountCondition, not for CoverageCondition and ValueCondition, so I think this was an error.

Or the reason could also be in the Condition.can_apply_condition method. As the author of the change, could you please suggest @pjstevns what was the motivation of the change?

Are there any news on this issue? Or could I help with something.

@bruecksen it needs someone to spend a bit of time working out a fix - if you have time to do so that would be appreciated.


Error when deleting presupported files that are linked to an unsupported one

I'm getting a failed foreign key constraint, but I can't tell why.

I think this is because it's possible for a presupported file to be associated with two unsupported ones, currently. Obviously that's wrong and bad. This should be replaced with a proper file relationship structure instead.


Improving the hvPlot UI

This PR is working towards getting the hvPlot UI into a state where we can release it.

[x] Separate DataFrame, Geometry and Gridded explorers while keeping hvPlotExplorer base class
[ ] Expose all axis options
[ ] Expose all style options
[ ] Expose all geo options
[ ] Expose all datashader options
[ ] Expose all style mapping options

Coverage decreased (-2.3%) to 66.521% when pulling a8e380b9659f5207eb1f9afadd58f9264ef35cbd on ui_improvements into 00e1ceb34ce3e66a42e7727090e149fd0da67c63 on master.


[Bug] Language Changes Do Not Change All Tabs

When another language than English (US) gets/is already selected, lots of words are displayed in the selected language. However, the names of the tabs on the left side do not change; they are still displayed in English. Furthermore, the button Delete does not change its label and is still displayed in English (e.g. within Certifications or Languages).

I have the same issue in Portuguese. All the fields of the profile remain in English and I have no way of editing them. Can you tell me where is the file I can edit to correct this?

Actually, you could change them during runtime (except Profile). In each tab on the left is a text field behind the tick. If you change the text in this field, also the tab label will change. However, these fields keep whichever text you put in there and the translation doesn't change it.

The option to translate the delete button might exist now. However, the translations have to be included because till now, no translation of the delete button is visible.
Might it be possible to also add an automatic translation of the tab texts or is it better to let the user do this manually?


Add write mask support

Done except for glStencilMaskSeparate which doesnt make sense to me given Stencil's own mask

Ahah! It's been explained to me now:
glStencilMask, only controls updates to the stencil buffer. the mask in glStencilFunc controls what bits are ignored for the stencil operation.

So we do need to support this :)

Done


How to perform ablation experiments on the reprogramming module?

I'm commenting on this code( #enc_out = self.reprogramming_layer(enc_out, source_embeddings, source_embeddings)), but the program gets an error, how should I change it?

ERROR:

Hi, I can't determine the specific error from this log. Could you provide more detailed logs and the script you executed?


Implement auto_error flag - Resolves #43

Expose and implement auto_error
Update docs to reference new exposed field

Thank you!
I’d like to add some tests for this behavior as well. I can help with this if you want to - they are a bit.. tangled.

Ah, I haven't added CONTRIBUTING.md. I'm sorry.
Please install pre-commit by issuing the command pre-commit install, and then run it with pre-commit run --all-files.

@JonasKs  I would love help with updating the tests.  I'm current lost looking at the current tests.
The linting has been fixed.

Verified that "Allow edits by maintainers" is checked.

Hi @bkmetzler , this has been pushed and released in 3.2.0, which is now available on PyPi. Please test it out and report back if there is any issues.
Thank you for the contribution! :clap: :rocket:

Everything looks good on this.
Thanks again.


Notion API now allows for creating and updating of properties

https://developers.notion.com/reference/update-a-database
This could potentially automate some of the initial setting up of a database.

This is awesome now we don't need to manually create the properties. I will start working on this issue this weekend.

I haven't released a couple of things left, but I did something to solve this issue.
On workflow_dispatch I am updating the notion database with all the required properties. I will release it after I update the documentation.

I have made a release, fixing this issue. But I think the issue with labels still persists

I could confirm that the labels workaround fix did the trick. If the labels trigger finished before creating the issue the extra labels call in the create issue function still sets them correctly.

Yeah, it is working fine. New workflow runs are reacted in parallel that's why some runs fail.

Shall I close this issue, as I have created a workflow_dispatch to auto-setup the Notion database with the required properties?

Fine by me. You call the shots 🙂


Moslin in moscot

[ ] add beta
[ ] add gamma

Closing this as the implementation will change. Thus, let's open an issue once this is to be done.


Text color

Hi,
Is it possible to change the text color?
Thanks.

Hi @tdotdm! The style of the text cannot currently be changed, but if it can be useful it can be implemented.

Hi @tdotdm! The style of the text cannot currently be changed, but if it can be useful it can be implemented.

Hi @tdotdm! The style of the text cannot currently be changed, but if it can be useful it can be implemented.

Sure thing, it will be nice to change the text as well as the border color since you can able to change the background color

@roqkabel you are right, in the next few days I will implement these changes and will release a new version.

Hi @roqkabel, this feature was implemented in the pr #2. I already deployed a new npm version.


‘R’ found 2 values on stack; needs 2

N0N0XN100>[Y]R

yields a weird error message:
ERROR: (0, 0): 14: ‘R’ found 2 values on stack; needs 2

I think it needs to say 3 here instead of 2:
https://github.com/susam/fxyt/blob/main/fxyt.html#L510
(and in other places)

@mccartney Thank you for reporting this issue. This is now fixed in commit d90e920. Demo: https://susam.net/fxyt.html#N0N0XN100gbYcR


Improve test results and log collection (4-2-stable)

cherry-picked from work done for #72

ship it


Add DB dump download feature to refresh script

With this commit, invoking the refresh-data script without any arguments will download the latest DB dump for you (if CFGOV_PROD_DB_LOCATION is defined).
Testing
export CFGOV_PROD_DB_LOCATION=http://<our-secret-location-check-ghe>/production_django.sql.gz
./refresh-data.sh

It should download production_django.sql.gz and then do the normal MySQL import process.
Running ./refresh-data.sh without any arguments and without CFGOV_PROD_DB_LOCATION defined will show some help text.
Checklist

[ ] PR has an informative and human-readable title
[ ] Changes are limited to a single goal (no scope creep)
[ ] Code can be automatically merged (no conflicts)
[ ] Code follows the standards laid out in the front end playbook
[ ] Passes all existing automated tests
[ ] New functions include new tests
[ ] New functions are documented (with a description, list of inputs, and expected output)
[ ] Placeholder code is flagged
[ ] Visually tested in supported browsers and devices
[ ] Project documentation has been updated
[ ] Reviewers requested with the Assignee tool :arrow_right:

:+1:

I just tried this out and it worked great!


v4.1: fix elevation profile slope zero

add fix for slope values of zero

update slope value check

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

1 of 1 (100.0%)  changed or added relevant line in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 99.475%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
10082

Relevant Lines:
10085

💛  - Coveralls


Check for any process changes after a config apply

Proposed changes
Check for any process changes after a config apply
Checklist
Before creating a PR, run through this checklist and mark each as complete.

[ ] I have read the CONTRIBUTING document
[ ] I have run make install-tools and have attached any dependency changes to this pull request
[ ] If applicable, I have added tests that prove my fix is effective or that my feature works
[ ] If applicable, I have checked that any relevant tests pass after adding my changes
[ ] If applicable, I have updated any relevant documentation (README.md)
[ ] If applicable, I have tested my cross-platform changes on Ubuntu 22, Redhat 8, SUSE 15 and FreeBSD 13

Codecov Report
Attention: 16 lines in your changes are missing coverage. Please review.

Comparison is base (df8cf6e) 66.29% compared to head (2a176b6) 66.20%.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #491      +/-   ##
==========================================
- Coverage   66.29%   66.20%   -0.10%
==========================================
  Files         118      118
  Lines       13441    13452      +11
==========================================
- Hits         8911     8906       -5
- Misses       3936     3952      +16
  Partials      594      594

Files
Coverage Δ

....com/nginx/agent/v2/src/plugins/process_watcher.go
81.73% <27.27%> (-5.37%)
:arrow_down:

... and 2 files with indirect coverage changes

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


ps data

Hey,
I can't change appearance even by changing the config.json file. If you could help me :) Thx

Hello Deweh,
should I send you a PS4 Save so you can update your Save Editor?


Configure external links in ScalaDoc

I found that the ScalaDoc does not link to Scala standard library and other dependencies. This patch fixes the problem.

By the way, we can also add the -implicits flag to scaladoc, that would generate correct methods added by implicit views for tensors

thanks!
I'd take the -implicits PR, but relatively few methods in breeze are added via implicit views. almost all of breeze's implicit magic is via implicit parameters


Upgrade isomorphic-fetch

See https://www.npmjs.com/package/isomorphic-fetch

closed by https://github.com/LD4P/sinopia_editor/pull/3000


Data availability differs depending on Fetch start and stop times

This example demonstrates an event that I've seen throughout December 2011 and January 2012 on PM1THV1T:
impska
Collect 2 data sets that differ only by the end date
x1=fetch.Msid('pm1thv1t','2011:350:00:00:00.000','2011:353:00:00:00.000')
x2=fetch.Msid('pm1thv1t','2011:350:00:00:00.000','2011:356:00:00:00.000')
Plot results
figure(1)
plot_cxctime(x1.times, x1.vals)
title('Dataset w/ End Date of 2011:253:00:00:00.000')
disp('x1 Last Entry:  ' + Chandra.Time.DateTime(x1.times[-1]).date)
figure(2)
plot_cxctime(x2.times, x2.vals)
title('Dataset w/ End Date of 2011:256:00:00:00.000')
disp('x2 Last Entry:  ' + Chandra.Time.DateTime(x2.times[-1]).date)
The first query produced no data for 2011:252.  However, this data is available on the second query.
@taldcroft @jeanconn

Query #1 produced no data for 2011:252.  However, this data is available on Query #2.

Day 2011:352?
In the SOT archive, I get samples in that interval:
In [124]: m1 = x1.times > DateTime('2011:352:00:00:00.000').secs
In [125]: len(x1.times[m1])
Out[125]: 2634
It looks like x2.times is not strictly increasing, so I assume this is a
slightly troubled area.

Thanks, yes, I did mean 2011:352.
I replicated your approach on the GRETA network but received a different result, consistent with my first:
m1 = x1.times > DateTime('2011:352:00:00:00.000').secs
len(x1.times[m1])
Out[5]: 0
I also confirmed that x1.times and x2.times are always increasing, albeit not necessarily at regular intervals:
dt1=x1.times[1:]-x1.times[:-1]
dt2=x2.times[1:]-x2.times[:-1]
min(dt1)
Out[32]: 32.800001680850983
min(dt2)
Out[33]: 0.25624996423721313

I also confirmed that x1.times and x2.times are always increasing, albeit not necessarily at regular intervals:

And I see from a larger sample that is usual for these data.

There is a corruption in the database index that is used to select row ranges based on time.  The underlying data are fine, but as you've seen there is a problem with selecting data.  The problem occurred around 2011:293 for reasons unknown at this point.
For prop1eng I just copied the data from the HEAD network and confirmed that there is no longer an issue.
FYI, an easy way to test for this corruption problem is to query on a short date interval, e.g one day.  Then see if any data values are returned.  I checked 'tephin' and 'aoattqt1' and did not see this issue.


FR: upload-dsyms: tmp folder path argument

Currently, the tool uses a constant default path placed in OS root for some temporary folder while processing dsyms.
Ex: /var/folders/2s/c8z_jl_j0r14sh5nzq1gtwq80000gn/T/F37BB83E-EFF5-4B47-B7C8-658C7E7F1184-67713-00034F35884D1DDD.zip
It might be that our CI doesn't allow access to the root so we end up with dsyms still missing in Crashlytics:

Can you please provide an additional argument for the tool to define the path above?
Regards

Hi @GermanVelibekovHouzz,
Thanks for the feature request - this would be a useful flag to have. We'll look into adding it and let you know.

This should be changed in Crashlytics 10.12.0, related pr https://github.com/firebase/firebase-ios-sdk/pull/11463
Gonna close the feature request 🎉


AVIF format not showing

I'm using ImgixGatsbyImage on Gatsby v4 but setting auto:['format']as imgixParams still serve a JPG and not an AVIF image.
Using the local version of the .JPG image with gatsby-plugin-image serve an AVIF
What's wrong here?
<ImgixGatsbyImage
  src="https://mysource.imgix.net/image.jpg"
  imgixParams={{ crop: 'faces', auto: ['compress', 'format'] }}
  layout="fullWidth"
  aspectRatio={3 / 2}
  alt="test"
/>
<StaticImage
    src="../images/image.jpg"
    layout="fullWidth"
    alt="test"
/>

Checking it better I found that the served .jpg image is actually in image/avif format even if the file extension is still .jpg
I didn't saw any difference in file size

Hi @AdamQuadmon, Fred from imgix here 👋  Thanks for opening the issue. Could you please share an example URL that this plugin is generating that is not being rendered as an AVIF despite having auto=format? Then I can investigate this further.
As response your later comments:

Checking it better I found that the served .jpg image is actually in image/avif format even if the file extension is still .jpg

This is the expected behaviour with imgix - we don't rewrite the url file extension

I didn't saw any difference in file size

What do you mean exactly by this? Between the JPG and the AVIF image? or between the gatsby-sharp AVIF version and imgix AVIF version?

I was just assuming to find the same behaviour in this plug in as for the gatsby-plugin-image one but I'm realizing they are different.
I checked better and there is some difference between JPG and AVIF
The original file is 1.6M
The JPG one 560kb (auto=compress)
The AVIF 512kb (auto=compress,format)
thanks for the quick reply!

It seems to me that everything is working as expected at this stage so I'll close out this issue. If you're still facing issues please feel free to reply further and we can discuss.


Add E2E test for external connectivity with globalnet

This PR adds E2E test for external connectivity with globalnet.

@sridhargaddam
This is still WIP. TODOs are:

[ ] Move codes for creating Service without selector and endpoints to shipyard framework
[ ] Support Service without selector in globalnet v2
[ ] Make External network work with globalnet v2

Note that Service without selector is expected to be used for accessing from pod to external app, accessing from external app to pod looks already working fine.

Updated this PR's codes like this in different branch. I confirmed that it works with https://github.com/submariner-io/shipyard/pull/595. Once the dependent PR is merged, I will apply the same change to this PR.
As for the TODOs in the first comment:

Support Service without selector in globalnet v2 --> works well as is.
Make External network work with globalnet v2 --> works well on other than the cluster directly connected to external network (Source IP isn't GlobalIP in the cluster).

Also, network pod needs to be scheduled on GatewayNode in the cluster1 like this to work properly. Is it just because there is only one worker node in cluster1?


Arcore Sceneform dependencies in bazel

How to add arcore sceneform dependencies in bazel mediapipe handtrackingproject

If you plan to do your project with Android Studio, you probably want to take a look at the Mediapipe AAR instruction.  MediaPipe hand tracking AAR can be imported into Android Studio. Then, you need to follow the ARCore instruction to add the dependency in Android Studio.
If you plan to do your project with Bazel, please take a look at the WORKSPACE file. We put several maven dependencies in the WORKSPACE file and you probably can do something similar to the sceneform lib.

Hello @jiuqiant thank you for the detailed steps but actually I already implemented them but failed to run arcore scene form with mediapipe ,
That due to the GL context used in the mediapipe surfacetexture and in arcore scene ,
Any idea how to properly integrate them please ?

Hello @HebaMohamed Can you list down the dependencies that you have added.Also in gradle there is apply plugin of sceneform which we need to add.Do you have any idea about it as where to add it in bazel

@mcclanahoochie, can you take a look at the GL context related question in https://github.com/google/mediapipe/issues/313#issuecomment-564343939? Thanks.

Hi,
The goal here is to setup glcontext sharing.
You can set mediapipe to use an external EGLContext context (extracted from ARCore) in this way:
::mediapipe::Status SetExternalGlContextForGraph(
CalculatorGraph* graph, EGLContext external_context) {
auto gpu_resources = GpuResources::Create(external_context);
return graph->SetGpuResources(std::move(gpu_resources));
}
The idea is you call this function with an existing EGLContext right after creating your graph.
A similar thing can be seen in the desktop webcam gpu demo when initializing the gpu
In java,  there is SetParentGlContext

I integrated mediapipe with arcore(sceneform) and it also displayed arcore plane detection and along with the mediapipe hand tracking but it failed after sometime.When I try to open the app for the second time it gives me following error and sometimes it does not display camera image but renders black and white surface.
Process: com.example.handtrackinggradle, PID: 23620
java.lang.RuntimeException: Error during attachToGLContext (see logcat for details)
at android.graphics.SurfaceTexture.attachToGLContext(SurfaceTexture.java:289)

Sounds like good progress.
Can you provide more logcat details?
How is the graph being handled in the app lifecycle? (i.e OnOpen, OnResume, OnPause,... etc.).
If the graph is ever closed or destroyed, the GL context setting needs to happen each time before running the graph again. Likewise to make sure the ARCore context is valid after resuming app.

There are not big changes add to the mediapipe source code except for some few modifications which I will list down below

Changes to xml layout - Removed the FrameLayout from the activity_main xml file and added
arcore fragment instead.
2)SurfaceView which was created in a default mediapipe handtracking code was removed.
private SurfaceView previewDisplayView;  //Removed
3)Surface holder callback which was added to previewDisplayView in mediapipe code is removed and
now it is added to ArsceneView of Arfragment.
4)Camera permissions for arcore in the manifest file is removed so that it takes the permission from
mediapipe code.
Just removed

I have also mentioned the issue in detail in the below link
https://github.com/google/mediapipe/issues/321
Logcat
Process: com.example.handtrackinggradle, PID: 23620
java.lang.RuntimeException: Error during attachToGLContext (see logcat for details)
at android.graphics.SurfaceTexture.attachToGLContext(SurfaceTexture.java:289)
at
com.google.mediapipe.components.ExternalTextureConverter$RenderThread.setSurfaceTextureAndAttachToGLContext(ExternalTextureConverter.java:187)
at com.google.mediapipe.components.ExternalTextureConverter.lambda$setSurfaceTextureAndAttachToGLContext$1$ExternalTextureConverter(ExternalTextureConverter.java:111)
at com.google.mediapipe.components.-$$Lambda$ExternalTextureConverter$5RBq2uHoPl06wf2nG84kcgcgP_U.run(Unknown Source:8)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:214)
at com.google.mediapipe.glutil.GlThread.run(GlThread.java:134)
2019-12-13 04:44:59.014 23620-23718/com.example.handtrackinggradle E/native: loge.h:15 DataSourceMetrics: kFirstGlCallback: 567.448154ms
2019-12-13 04:44:59.016 23620-23719/com.example.handtrackinggradle E/native: loge.h:15 CameraMetrics: FirstCaptureComplete: 440.307692ms

@suraj-0387 I just integrated the aar file and then added sceneform gradle dependancies as usual as illustrated here
and I got the same GLContext error too
I hope someone can help us

as mentioned in https://github.com/google/mediapipe/issues/313#issuecomment-564726162
can you check you are correctly providing the arcore egl context to mediapipe (and not the default one)?

@mcclanahoochie Thank you so much for you help, but there is no direct method to get sceneform gl context, so tried to get the current context after sceneform initialization  like that
       eglManager = new EglManager(((EGL10) EGLContext.getEGL()).eglGetCurrentContext());
and got that error
E/GLConsumer: [SurfaceTexture-0-23241-0] attachToContext: GLConsumer is already attached to a context E/AndroidRuntime: FATAL EXCEPTION: ExternalTextureConverter     Process: com.ml34.sceneformstestapp, PID: 23241     java.lang.RuntimeException: Error during attachToGLContext (see logcat for details)         at android.graphics.SurfaceTexture.attachToGLContext(SurfaceTexture.java:289)         at com.google.mediapipe.components.ExternalTextureConverter$RenderThread.setSurfaceTextureAndAttachToGLContext(ExternalTextureConverter.java:187)

Seems like you already can add ARCore Sceneform as a dependency in MediaPipe's WORKSPACE file. Close this issue for now and the discussion can be continued in https://github.com/google/mediapipe/issues/321 or https://github.com/google/mediapipe/issues/323

@HebaMohamed Any update from your end

as mentioned in #313 (comment)
        <arcore egl context>,

How can we get the EGLContext from ARCore, though ??

@suraj-0387, could you please provide a sample app where SceneForm and Mediapipe hand tracking coexist ?
Thank you :)

There are not big changes added to the mediapipe source code except for some few modifications which I will list down below.Currently we are using Samsung Galaxy A30 device to test the changes
added to mediapipe code
Below are the changes added to the mediapipe code

Changes to xml layout - Removed the FrameLayout from the activity_main xml file and added
arcore fragment instead.
SurfaceView which was created in a default mediapipe handtracking code was removed.
private SurfaceView previewDisplayView;  //Removed
Surface holder callback which was added to previewDisplayView in mediapipe code is removed
and now it is added to ArsceneView of Arfragment.
Camera permissions for arcore in the manifest file is removed so that it takes the permission from
mediapipe code.
Just removed permission code line

I have also mentioned the issue in detail in the below link
#321
Logcat
Process: com.example.handtrackinggradle, PID: 23620
java.lang.RuntimeException: Error during attachToGLContext (see logcat for details)
at android.graphics.SurfaceTexture.attachToGLContext(SurfaceTexture.java:289)
at
com.google.mediapipe.components.ExternalTextureConverter$RenderThread.setSurfaceTextureAndAttachToGLContext(ExternalTextureConverter.java:187)
at com.google.mediapipe.components.ExternalTextureConverter.lambda$setSurfaceTextureAndAttachToGLContext$1$ExternalTextureConverter(ExternalTextureConverter.java:111)
at com.google.mediapipe.components.-$$Lambda$ExternalTextureConverter$5RBq2uHoPl06wf2nG84kcgcgP_U.run(Unknown Source:8)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:214)
at com.google.mediapipe.glutil.GlThread.run(GlThread.java:134)
2019-12-13 04:44:59.014 23620-23718/com.example.handtrackinggradle E/native: loge.h:15 DataSourceMetrics: kFirstGlCallback: 567.448154ms
2019-12-13 04:44:59.016 23620-23719/com.example.handtrackinggradle E/native: loge.h:15 CameraMetrics: FirstCaptureComplete: 440.307692ms

There are not big changes added to the mediapipe source code except for some few modifications which I will list down below.Currently we are using Samsung Galaxy A30 device to test the changes
added to mediapipe code
Below are the changes added to the mediapipe code

Changes to xml layout - Removed the FrameLayout from the activity_main xml file and added
arcore fragment instead.
SurfaceView which was created in a default mediapipe handtracking code was removed.
private SurfaceView previewDisplayView;  //Removed
Surface holder callback which was added to previewDisplayView in mediapipe code is removed
and now it is added to ArsceneView of Arfragment.
Camera permissions for arcore in the manifest file is removed so that it takes the permission from
mediapipe code.
Just removed permission code line

I have also mentioned the issue in detail in the below link
#321
Logcat
Process: com.example.handtrackinggradle, PID: 23620
java.lang.RuntimeException: Error during attachToGLContext (see logcat for details)
at android.graphics.SurfaceTexture.attachToGLContext(SurfaceTexture.java:289)
at
com.google.mediapipe.components.ExternalTextureConverter$RenderThread.setSurfaceTextureAndAttachToGLContext(ExternalTextureConverter.java:187)
at com.google.mediapipe.components.ExternalTextureConverter.lambda$setSurfaceTextureAndAttachToGLContext$1$ExternalTextureConverter(ExternalTextureConverter.java:111)
at com.google.mediapipe.components.-$$Lambda$ExternalTextureConverter$5RBq2uHoPl06wf2nG84kcgcgP_U.run(Unknown Source:8)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:214)
at com.google.mediapipe.glutil.GlThread.run(GlThread.java:134)
2019-12-13 04:44:59.014 23620-23718/com.example.handtrackinggradle E/native: loge.h:15 DataSourceMetrics: kFirstGlCallback: 567.448154ms
2019-12-13 04:44:59.016 23620-23719/com.example.handtrackinggradle E/native: loge.h:15 CameraMetrics: FirstCaptureComplete: 440.307692ms

Hi @suraj-0387 Thanks for the description.  i am looking for the same wherein i want to add  SurfaceView to AR's Sceneview. Is it possible for you to share the code for the same ?

@suraj-0387 Can you please make on repository for the Arcore+Media pipe integration code? I really need this code.


AdvDupe breaking wire systems with entities

If I link an non-wiremod entity which supports wiremod connections (e.g. some bombs from Garry's Bombs 5 addon has both "Arm" and "Detonate" inputs, or any other entity of another addon) the link will break.
For istance: Place a bomb from any addon and wire the "Arm" input to a wire button. Then dupe it. The first wire system that you created works without problems, but the duped one won't work, because it has lost all the wirings.

It's a problem with GBombs5. Every other addon using wires I've used with Advdupe2 works fine.

Strange, many addons have this issue, like Customizable Jumppads, Lasers STOOL, simfphys, and many others. Also the normal duplicator can save wiremod systems but not  "external-addons-wire-systems". Can it be a wiremod bug?

Yeah I remember I had to fix laser stool for my server. Many (very) old mods have broken dupe support.

So it's not an Advanced Duplicator bug. Thank you. But is there a code to add to the tools that allows to save the wirings (aka a code that adds dupe support)?

Yeah, this code should add support for saving duplicator info for wiring on entities.
function ENT:ApplyDupeInfo(ply, ent, info, GetEntByID)
	WireLib.ApplyDupeInfo(ply, ent, info, GetEntByID)
end

function ENT:PreEntityCopy()
	duplicator.StoreEntityModifier(self, "WireDupeInfo", WireLib.BuildDupeInfo(self))
end

local function EntityLookup(CreatedEntities)
	return function(id, default)
		if id == nil then return default end
		if id == 0 then return game.GetWorld() end
		local ent = CreatedEntities[id] or (isnumber(id) and ents.GetByIndex(id))
		if IsValid(ent) then return ent else return default end
	end
end

function ENT:PostEntityPaste(Player,Ent,CreatedEntities)
	if Ent.EntityMods and Ent.EntityMods.WireDupeInfo then
		WireLib.ApplyDupeInfo(Player, Ent, Ent.EntityMods.WireDupeInfo, EntityLookup(CreatedEntities))
	end
end

Thank you very much! This can be closed now.
Il Sab 31 Mar 2018, 11:15 thegrb93<EMAIL_ADDRESS>ha scritto:

Yeah, this code should add support for saving duplicator info for wiring
on entities.
function ENT:ApplyDupeInfo(ply, ent, info, GetEntByID)
WireLib.ApplyDupeInfo(ply, ent, info, GetEntByID)
end
function ENT:PreEntityCopy()
duplicator.StoreEntityModifier(self, "WireDupeInfo", WireLib.BuildDupeInfo(self))
end
local function EntityLookup(CreatedEntities)
return function(id, default)
if id == nil then return default end
if id == 0 then return game.GetWorld() end
local ent = CreatedEntities[id] or (isnumber(id) and ents.GetByIndex(id))
if IsValid(ent) then return ent else return default end
end
end
function ENT:PostEntityPaste(Player,Ent,CreatedEntities)
if Ent.EntityMods and Ent.EntityMods.WireDupeInfo then
WireLib.ApplyDupeInfo(Player, Ent, Ent.EntityMods.WireDupeInfo, EntityLookup(CreatedEntities))
end
end
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/wiremod/advdupe2/issues/126#issuecomment-377679053,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AS2aChHwlm6_l0qdx-lXUA8A9GnUaxA5ks5tj0krgaJpZM4S7ucP
.

--
Edoardo Fiocchi
aka LuigiGrande1, LevelUp Gamers Inc.

That code actually belongs in init.lua. I wonder why I put it in shared.lua. Oh well.


⚠ Bofrost.be has degraded performance

In dd4d9c1, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 1650 ms

Resolved: Bofrost.be performance has improved in 2def621 after 9 minutes.


Script to fetch foursquare data about companies in meal reimbursements

It tries to find a match in foursquare API using our companies dataset. It uses trade_name, zip_code, latitude and longitude values.

@cuducos Thanks a lot for your review :) Just pushed a commit taking what you said into consideration. The only thing I've left out is the part where you suggested to fetch the most recent dataset. I remember seing some code to do that but don't remember where. As soon as I find it (do you recall seeing it aswell?), I'll implement in this script.
About performance: With 2 requests per company, my modest laptop (i5 4x1.7GHz) is already faster than what foursquare's limits(5k requests/hour) allow. If we want to go faster, we'll need multiple API keys and some more code to handle it. Do you think it's worth the trouble?

About fetching the most recent dataset: I've sent you in PVT but as more people might be following this PR. here it is (@irio this tiny function is so useful we might add it to serenata-toolbox — I mean, if it isn't already there).
About performance: if you think it's a good pace, I believe it ; ) Can you estimate how log it will take to run all the script through the whole dataset?

@cuducos If it's getting used in multiple places, src/utils.py is the place to be. :)

@cuducos Pushed another commit with the changes you suggested.
About performance: I'm not sure how to estimate that (ideas?). I know that right now the bottleneck is definitely foursquare's limit. I'm reaching it everytime I run the script for the whole dataset.
Something to improve would be not to look for companies that hasn't been found in a previous run. Otherwise, we're wasting requests with companies we know aren't going to be matched (unless the script is changed or foursquare has recent info about those companies). I'm not sure if and how I should tackle this.

I'm not sure how to estimate that (ideas?)

Just a rough guess is enough. If the dataset has 60k rows, check how long it takes to look for the first 2k and multiply by 30. If the API limit is 5k/hour, we can use count requests and time and make the script pause if 5k requests are reached before 1 hour… but I think this is too much. Just re-reunning and skipping the ones that are already in the dataset might be enough (maybe wrote to the dataset the ones with no replies, just for control).

Pushed some more adjusts and removed the WIP label. Now it has a configuration variable to change it from "intent=match" to regular search (WAY more matches but higher chance of false positives). The idea is to run with it untill we stop finding results and then switch to the regular search for the remaining companies.
There are around 20k unique CNPJs from "Congressperson meal" reimbursements. I left the script running for about 1h and it went through ~4k companies. It found the last result somewhere between 3.5~3,6k and then foursquare's limit kicked in and it only returned "No results". In this time, it matched 1295 companies with CONFIRMED_MATCHES_ONLY set to True.

Pushed yet more changes. Did it paired with @anaschwendler. Thanks a lot Ana <3
We skipped companies without "trade_name". We tried to use the "name" column when "trade_name" was unavailable but it prooved to be a bad call when running the script without the "intent=match" param. It brought too many false matches.
Speaking about "intent=match" now the script automatically removes the param and searches again if no result is matched with it. It also handles the extra column "confirmed_match".


support / inside of vault names

fixes #196
not the best code of all time, for listing vaults (since i struggled of a way to think of filepath joining, without copying the string extra times? Though maybe this is more unreadable, but figured I'd at least push this up and can always change later.)
I went through some basic scenarios locally with a go built version:
$ ./vaulted create testing/test
Creating new vault 'testing/test'...

[...]

?=Help; q=Save and Quit; Ctrl+C=Abort
Edit AWS key [k,m,r,R,t,S,D,b]: q

Are you sure you wish to save and exit the vault? (y/n): y
Vault 'testing/test'
   New password:
   Confirm password:
Vault 'testing/test' successfully saved!
$ ./vaulted list
[...]
testing/test
[...]
$ ./vaulted cp testing/test test/a/very/big/test/lol
Vault 'testing/test'
   Password:
Vault 'test/a/very/big/test/lol'
   New password:
   Confirm password:
$ ./vaulted list
[...]
test/a/very/big/test/lol
testing/test
[...]
$ ./vaulted dump testing/test
Vault 'testing/test'
   Password:
{
  "aws_key": {
    "id": "asdf",
    "secret": "asdf",
    "forgoTempCredGeneration": false
  }
}
$ ./vaulted dump test/a/very/big/test/lol
Vault 'test/a/very/big/test/lol'
   Password:
{
  "aws_key": {
    "id": "asdf",
    "secret": "asdf",
    "forgoTempCredGeneration": false
  }
}
$ rm -rf /home/cynthia/.local/share/vaulted/testing/
$ rm -rf /home/cynthia/.local/share/vaulted/test/
$ ./vaulted dump test/a/very/big/test/lol
file does not exist
$ ./vaulted list
bs-root
cncf-envoy
tetrate-hub
tetrate/hub

The failures on go 1.12 seem to be not caused by this PR:
The command "eval go get -v -t ./... " failed. Retrying, 2 of 3.
go get: warning: modules disabled by GO111MODULE=auto in GOPATH/src;
	ignoring go.mod;
	see 'go help modules'
github.com/hashicorp/vault/vendor/github.com/hashicorp/go-multierror
github.com/hashicorp/vault/vendor/github.com/hashicorp/go-retryablehttp
# github.com/hashicorp/vault/vendor/github.com/hashicorp/go-multierror
../../hashicorp/vault/vendor/github.com/hashicorp/go-multierror/multierror.go:112:9: undefined: errors.As
../../hashicorp/vault/vendor/github.com/hashicorp/go-multierror/multierror.go:117:9: undefined: errors.Is
# github.com/hashicorp/vault/vendor/github.com/hashicorp/go-retryablehttp
../../hashicorp/vault/vendor/github.com/hashicorp/go-retryablehttp/roundtripper.go:48:16: undefined: errors.Unwrap
The command "eval go get -v -t ./... " failed. Retrying, 3 of 3.
go get: warning: modules disabled by GO111MODULE=auto in GOPATH/src;
	ignoring go.mod;
	see 'go help modules'
github.com/hashicorp/vault/vendor/github.com/hashicorp/go-multierror
github.com/hashicorp/vault/vendor/github.com/hashicorp/go-retryablehttp
# github.com/hashicorp/vault/vendor/github.com/hashicorp/go-multierror
../../hashicorp/vault/vendor/github.com/hashicorp/go-multierror/multierror.go:112:9: undefined: errors.As
../../hashicorp/vault/vendor/github.com/hashicorp/go-multierror/multierror.go:117:9: undefined: errors.Is
# github.com/hashicorp/vault/vendor/github.com/hashicorp/go-retryablehttp
../../hashicorp/vault/vendor/github.com/hashicorp/go-retryablehttp/roundtripper.go:48:16: undefined: errors.Unwrap
The command "eval go get -v -t ./... " failed 3 times.
The command "go get -v -t ./..." failed and exited with 2 during .

Perhaps travisci needs GO111MODULE=on always?

Thanks for taking a crack at this!
Need to think through this a bit to make sure it's not going to cut off another feature we were considering (subvaults). I think we'll be okay, but give me a few days to discuss with @ryan-norton first.
I'll also see if I can find some time to get CI working properly again.


Crash with Map Atlases?

Describe the issue

Game crashes when loading in world.

Minecraft Version

1.20.1

Mod Version

1.7.19 [Latest]

Modloader(Fabric/Forge/NeoForge)

Fabric

Modloader Version

0.15.11 [Latest]

Additional Info (Crashlog/Modlist)

https://mclo.gs/ic153XF

It looks like you are using MapAtlases 2.6.0 still. If you are using Modrinth, that is the latest version for Fabric, but CurseForge has additional updates for it with a multiplat fork.
Unfortunately I can't support both since they have the same modid, but I believe SeasonHUD 1.7.6 was the last version that had the code for the old version if you want to try that.


Pruned hashes table

https://github.com/nanocurrency/nano-node/pull/2946

@SergiySW This update is also needed but is less urgent due to experimental status of this feature. If you prefer to hold off on this update until pruning gets some more attention/is closer to production release that is fine.


Evaluation Agenda Filter for RuleUnit

While trying to add filters for which rules to run during execution of a rule unit, I found that the agenda filters provided are only used to prevent the rule to fire/execute action, not it's evaluation. We have thousands of rules including some that can be computationally intensive, however, most of the time we need to filter them anyways so, the lack of an evaluation filter can be a bit of a problem for performance at times.

Due to node sharing and the need of propagating all facts in the evaluation network, it is not possible to prevent the evaluation of the inserted facts. The laziness of the phreak algorithm should however largely mitigate the problem.


Index error - string index out of range

Hello,
I get index error - string index out of range, when I save the form

Do you use the latest version of the package?

Could you describe to me what have you exactly done in this example? I guess your field is not required. Did you post an empty form? Is your field read-only or did you typed something in the form field manually? More info could be useful in resolving this issue.

Just share any information that you think may be useful in reproducing this bug and then resolving this issue.

Dear  Szymon,
I went ahead without the location field for my initial work. I'm planning
to start rework on the same this week and hopefully will include location
field in the same. I will come back to you for any support.
Thanks for following.
Regards
Jay
On Wed, Jul 8, 2020 at 4:33 PM Szymon Kowaliński<EMAIL_ADDRESS>wrote:

Just share any information that you think may be useful in reproducing
this bug and then resolving this issue.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/Simon-the-Shark/django-mapbox-location-field/issues/12#issuecomment-655448194,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/APPJLPHSR4FJYVWT6JBXZR3R2RG7LANCNFSM4NZPP5IA
.

Okay. I'm closing this issue, but you can reopen it if you encounter the same bug or open a new one whenever my package causes any troubles. Good luck with your project!

Hello,
I get index error - string index out of range, when I save the form

i tried this code in model.py just put try block to handle type error and it fixed locally.
def get_prep_value(self, value):
if value is None:
return value
    if isinstance(value, str):
        return self.save_string(value)
    try:
        return "{},{}".format(value[0], value[1])
    except TypeError:
        print('TypeError')

@suyashgithub Of course, the try-except block eliminates error raising, but it probably doesn't eliminate the cause of this problem. It's a remedy only for symptoms of an issue. The get_prep_value() function is a crucial part of Django's field behavior (it converts the python value to the one that saved to the database) and the errors there shouldn't be ignored.
I worked on a similar case in the #15 issue, but that was about the direct saving of strings to the database. According to your screenshot, your value is an empty string(''), so I guess it should satisfy the isinstance(value, str) if-check and then after self.save_string() affection saved to db without even entering the 45th line.
That's why I'm surprised that you still encounter this issue. I can take a closer look, but I need some details e.g. what's your configuration and what are you doing. I tried posting an empty form to a nullable field on my local machine and everything worked as expected.

I am using
Python 3.6.2
Django==3.0.8
psql (11.3, server 10.8)
in my model i am using like this way
from mapbox_location_field.models import LocationField
class Customer(models.Model):
location = LocationField(map_attrs={"track_location_button": True} )

When exactly do you see this error? Are you doing something unexpected or just post a form? I'm asking because everything is wired. Your field is not nullable, but the value you have is an empty string? Apart from that, an empty string shouldn't cause an error like this in the latest version of my package.
I recommend you to try to run my live demo on your machine to see if this error still raise.


Address OAuth issues found in prod

Requirements

Filling out the template is required.

All new code requires tests to ensure against regressions.

However, if your PR contains zero code changes, feel free to select the checkmark below to indicate so.

[ ] Have you ran tests against this code?

[ ] This PR contains zero code changes.

Description of the Change
Much like our last PR, this one is a hotfix to an issue found in prod.
Additionally, this PR adds a try/catch around the main logic call, so in the event the whole process crashes due to a typo or invalid syntax, we actually get a proper error returned, rather than invalid gateway.

As these changes are already in master, I'll go ahead and merge this one.


fix: errors in description lines of the code

Motivation
(https://github.com/farcasterxyz/contracts/blob/main/src/IdGateway.sol)
(https://github.com/farcasterxyz/contracts/blob/main/src/KeyGateway.sol)
(https://github.com/farcasterxyz/contracts/blob/main/src/StorageRegistry.sol)
Change Summary
StorageRegistery -> StorageRegistry; inital owner -> initial owner; withan -> with an
No functional code changes were made; only the error message text was updated. The change does not affect any logic or functionality, so existing tests (if any) should continue to pass without modification.
Merge Checklist
Choose all relevant options below by adding an x now or at any time before submitting for review

[x] The PR title adheres to the conventional commits standard
[ ] The PR has been tagged with change type label(s) (i.e. documentation, feature, bugfix, or chore)
[x] The PR's changes adhere to all the requirements in the contribution guidelines
[x] All commits have been signed

Additional Context
fixes #434

PR-Codex overview
This PR focuses on correcting typos and improving documentation clarity in the Solidity files.
Detailed summary

In src/IdGateway.sol, corrected the spelling of StorageRegistery to StorageRegistry.
In src/KeyGateway.sol, corrected the spelling of inital to initial.
In src/StorageRegistry.sol, added a space in the comment for InvalidRangeInput error message.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@varunsrin Hi! My PR is ready for review!


IntelliCode conflicts with Go to & Peek Features?

There is a poped up notification that says IntelliCode python support requires you to use the Microsoft Python Language Server(preview). When I enable it and reload VS Code, I can no longer use the Go to & Peek Definition, Declaration and References function.

I noticed there is a additonal line "python.jediEnabled": false" in my setting.json after I take the pop-up's advice. I can connitue to use the Go to & Peek features when I comment out that line, which is my hypothesis that IntelliCode conflicts with Go to & Peek features. I'm scripting Python in VS Code right now and I'm not sure whether it's a personal issue or anything.

The "python.jediEnabled": false" setting controls whether you are using the Microsoft Python Language Server.
It looks like a similar issue was reported almost a year ago in the vscode-python repo: https://github.com/microsoft/vscode-python/issues/5033. That issue was fixed in an update to the language server.
I didn't see any more recent reports of this, so I suggest opening a new issue in vscode-python.

Resolving per @vivlimmsft comments above


Fix/3332: fields not updated on product editing

Fixes #3332.

I'm not quite sure why we did that in the first place, but this looks ok to me 👍

I'm not quite sure why we did that in the first place, but this looks ok to me 👍
Are we resending values in the proper way ? language ? tag vs actual value ? Those are the only caveats that could justify it. But I don't see issues on category addition, so I guess that's fine.

I would like to hear @stephanegigandet on the API side.


Follow up #370 for Oracle, to fix undefined method `expr' for 10:Fixnum bug.

@rafaelfranca
per @yahonda suggestion at #376, try to fix at master branch first and backport into 6-0-stable branch.

We ran into this issue trying to use kaminari or will_paginate with activerecord-oracle_enhanced-adapter — both gems call .limit and .offset in combination. Thanks for fixing!

@rafaelfranca Would you consider to release the next version of Arel 6.0.3 including this fix since there is another issue reported https://github.com/rsim/oracle-enhanced/issues/678 . Thanks in advance.

Sure. Let me review the last commits and see if I need to backport something else.

Thank you.