Add pytest tooling and examples

This contains some example tests. There is a question here: should we
run tests via catkin, or seperately? I think I can make them work in
catkin, but it will require some additional dependencies and cruft that
we may not need or want.
Alternatively, if we just run on pytest, we can configure coverage more
easily. I feel like that's a better way of doing things.
Also I should probably write a test.sh, since currently to run tests the
venv needs to be active and you need to have rosinited and sourced
devel/setup.sh.

If these tests are going to be unit tests, aka: small tests of ros nodes, I'm more than happy to have them separate from rostests. Not only does that allow us to get easier coverage info, but it also allows us to have a circle/tests check.
As a note, these are not the simulation tests, which will be reported through circle/simtests or something like that.

I mean, all the tests can be run via the same general interface (as long as gazebo has python bindings, which it should). Looking at the examples, you can see that I can spin up arbitrary existing nodes.

Yeah I don't care that we don't have catkin_make test running these nodes.
I'm also fine with putting all simulation and unit tests in the same circle check / using this same system for every test. I just should about separating them some, because sometimes you don't really care about the unit tests failing, you just want to visualize what the car is trying to do, which simtests will tell you. If there's any other way we can differentiate, then that would work. Say, if we run pytest and it reports back:
50 unit tests run, 5 failing:
- test 1
- test 2 (etc)

10 sim tests run, 1 failing:
- simtest 1

As another note, can you enable circle testing to run these pytests?
Just put the command you run for the pytests in ci_scripts/tests

Personally I'm a fan of having all of the tests in one place. Catkin works well for that. Can we not implement circle checks via catkin?

We didn't test it after converting to py3.
On Fri, Nov 4, 2016 at 3:52 PM Raphael Gontijo Lopes <
<EMAIL_ADDRESS>wrote:

@iRapha commented on this pull request.
In buzzmobile/sense/inputer/inputer.py
https://github.com/gtagency/buzzmobile/pull/111:

@@ -10,7 +10,7 @@ def input_node():
# Publish a nonsense initial value to make sure subscribers don't explode
pub.publish("")
while not rospy.is_shutdown():

   new_dst = raw_input("Dest >> ")

   new_dst = input("Dest >> ")

And running the node runs the python3 version.
Are you sure about this though? We were running this node when testing
things and it wasn't failing on raw_input not existing. So it lead me to
think that when we do rosnode buzzmobile inputer.py, ros runs the node
using py2. That's why I was asking.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/gtagency/buzzmobile/pull/111, or mute the thread
https://github.com/notifications/unsubscribe-auth/AEz4ABWq5rjHdyFj7Imt3chKFRpmADPmks5q640UgaJpZM4Kp5zF
.

So we can still have all tests in one place and not use catkin. Using catkin will just make it a little messy to set up. I was suggesting separating tests some because I think theres a big difference between unit tests and simulation tests. But they can be separate in the reporting side, instead of the running side. I just wanted to bring that up

Separate reporting makes a lot of sense. I feel like keeping things organized on the running side is important so we can have one singular test implementation place.

Closes #20.


Update standford-corenlp

We're thinking of changing from 3.9.2 to 4.2.0.  The previous wanted lucene 4.10.3 and the latter wants lucene 7.5.0.  timenorm would like 6.6.6 for the record.
Andrew,

Regarding

Keith: creates an Eidos branch that uses the processors branch that uses corenlp 4.2.0

Andrew: starts looking at the unit tests that fail

“nmod” and “nmod_*” become “obl” and “obl_*”

“dobj” becomes “obj”

A number of caveats will follow, but making branches and compiling them are fairly straightforward.  There is already a branch of processors called updateStanford that you would need to "git checkout updateStanford".  That needs to be published locally with something like "sbt publishLocal".  The results is processors 8.2.7-SNAPSHOT on your local drive in an ~/.ivy2/local directory..

Then there is an eidos branch also called updateStanfard.  In an eidos directory that is up to date, "git checkout updateStanford" should take care of that.  It is configured to use the snapshot version of processors.  It should build and try to run.

It seems like the major concern with the tags was that our odin rules keep up.  If those tags have been used in Actions and Finders, some code might need to change.  There is a TagSet class that was meant to handle some differences like that.

Caveats

It will not pass all the tests, but not only because of our stuff.  stanford-corenlp 3.9.2 depended on lucene 4.10.3.  Our geonorm wants 6.6.6 and that "evicted" the earlier version.  Some touching up of the assembly process took care of that.

stanford-corenlp 4.2.0 depends on lucene 7.5.0, or at least prefers to.  This overrides geonorm's preference of 6.6.6.  That may or may not be a problem directly, but the version change does result in a crash elsewhere that will prevent a full evaluation of our rules.

I don't remember the details of the geonorm dependency on lucene and maybe that's a deal breaker.

I think the crash is related to yet another version of lucene being included, under a different name, because some project had a license issue and there was a fork, etc.  There is some resource file in a top level directory that conflicts and might need to be patched.

The errors were addressed by adding to eidos
   // This matches the version of lucene that stanford-corenlp 4.2.0 uses.
    "org.apache.lucene"           % "lucene-backward-codecs"   % "7.5.0",

The current list of failing tests is
[info] Run completed in 28 minutes, 44 seconds.
[info] Total number of tests run: 596
[info] Suites: completed 78, aborted 0
[info] Tests: succeeded 366, failed 230, canceled 7, ignored 249, pending 0
[info] *** 230 TESTS FAILED ***
[error] Failed tests:
[error]         org.clulab.wm.eidos.text.english.raps.TestRaps
[error]         org.clulab.wm.eidos.text.english.eval6.TestDoc5
[error]         org.clulab.wm.eidos.serialization.jsonld.TestJLDSerializer
[error]         org.clulab.wm.eidos.text.english.raps.TestRaps1
[error]         org.clulab.wm.eidos.text.english.eval6.TestDoc8
[error]         org.clulab.wm.eidos.text.english.cag.TestCagP1
[error]         org.clulab.wm.eidos.text.english.cag.TestExtraText
[error]         org.clulab.wm.eidos.text.english.cag.TestCagP0
[error]         org.clulab.wm.eidos.text.english.eval6.TestDoc2
[error]         org.clulab.wm.eidos.text.english.cag.TestCagP4
[error]         org.clulab.wm.eidos.system.TestCrLf
[error]         org.clulab.wm.eidos.system.TestHedging
[error]         org.clulab.wm.eidos.text.english.eval6.TestDoc3
[error]         org.clulab.wm.eidos.text.english.eval6.TestDoc6
[error]         org.clulab.wm.eidos.text.english.cag.TestCagP3
[error]         org.clulab.wm.eidos.system.TestNegation
[error]         org.clulab.wm.eidos.rule.TestJointAdjectives
[error]         org.clulab.wm.eidos.text.english.eval6.TestDoc1
[error]         org.clulab.wm.eidos.text.english.eval6.TestDoc4
[error]         org.clulab.wm.eidos.text.english.cag.TestCagP6
[error]         org.clulab.wm.eidos.system.TestEidosMention
[error]         org.clulab.wm.eidos.text.english.cag.TestCagP2
[error]         org.clulab.wm.eidos.utils.TestMentionUtils
[error]         org.clulab.wm.eidos.system.TestEidosActions
[error]         org.clulab.wm.eidos.system.TestFiltering
[error]         org.clulab.wm.eidos.text.english.eval6.TestDoc7
[error] (Test / test) sbt.TestsFailedException: Tests unsuccessful

Some of these I may need to address, but for now I'm throwing it over the fence to @zupon.  The processors and eidos branches needed are updateStanford.


Refname parse of values that do not start with urn:cspace fails silently

This is an old thing I found in my notes. I have no idea when I wrote this down, but I wanted to capture it.
The refname used in the example below is the one I recorded when I noted the issue:
irb(main):003:0> "nagpraPahmaInventoryNames01)'AK-Alaska'"
=> "url:pahma.cspace.berkeley.edu:vocabularies:name(nagpraPahmaInventoryNames):item:name(nagpraPahmaInventoryNames01)'AK-Alaska'"
irb(main):004:0> CollectionSpace::RefName.parse(rn)
=> {:domain=>"url", :type=>"pahma.cspace.berkeley.edu", :subtype=>nil, :identifier=>nil, :label=>nil}

Non-standard refname formats that cannot be parsed into valid results should raise an exception instead of silently returning weird results.
Today I checked both PAHMA and OMCA's production CollectionSpace instances and vocabulary term refnames are the standard format beginning with urn:cspace:, so I'm not sure if this is variation we need to deal with or not.

@ray-lee says CollectionSpace refnames always start with urn:cspace, so this shouldn't be something that varies.
However, given that I found plain string terms in OMCA's authority controlled fields, it's probably a good idea to make this not fail silently when given a refname that Is Not.


Reject empty string for required field

-Update the validation code to reject empty strings for required fields.
-Add test case to publish to tests publishing a document with an empty string
for a required field.
Fixes #169

Walt,
Thanks  catching it.  The asserts are not commented anymore.

Looks good John.  I'll merge


Get or filter with custom fields on endpoints regions and locations not working

Netbox v2.11.0
Python 3.8.5
Pynetbox 6.1.2 NOT Working
Pynetbox 6.1.1 NOT Working
Pynetbox 6.1.0 works fine.
1.- Create a custom field integer  or text for regions or locations.
2.- Fill the custom field with an integer or text
3.- with Pynetbox use  get or filter
nb.dcim.regions.get(cf_cmdesignationid=value)
nb.dcim.locations.get(cf_cmdesignationid=value)
Expected behavior:
For example with .get it only one element with the requested value on the custom field.
Both methods .get or .filter ignore the asked custom field value and return  all the elements on netbox.
the same kind of get filter with other endpoints like dcim.devices or dcim.sites works fine.

Works here with NetBox 2.11.6:
>>> pynetbox.__version__
'6.1.2'
>>> regions = netbox.dcim.regions.all()
>>> for region in regions:
...     print(region.name, region.custom_fields)
...
Test {'dhcp_excludes': '321'}
Test2 {'dhcp_excludes': ''}
>>> netbox.dcim.regions.get(cf_dhcp_excludes=321)
Test
>>> netbox.dcim.regions.get(cf_dhcp_excludes=11111)
>>> for region in netbox.dcim.regions.filter(cf_dhcp_excludes="321"):
...     print(region.name, region.custom_fields)
...
Test {'dhcp_excludes': '321'}
>>>

Both methods .get or .filter ignore the asked custom field value and return all the elements on netbox.
To add, that's usually the default behavior from NetBox when a filter isn't applicable on an endpoint. Can you verify expected behavior with curl?

On previos versions it works verified


Bug/113 Embeded content on Conversation

https://trello.com/c/U7MV0d5Q/113-private-label-static-content-page-1col

Allowed HTML and embeded objects on coversation

:+1:


Allow consumer to specify timezone used by the DateTimePicker

Feature Request
Description

Currently, the DateTimePicker uses the system timezone as seen by the user's browser to control DST related functionality, and to determine the ISO value of the component.  We would like to have the ability to specify a timezone to use instead of the browser's timezone.  This can be an optional property, allowing for fallback to the current behavior if no timezone is provided, which would allow this to be a passive change.
Additional Context / Screenshots

The user could be using a device in one timezone (or have their device configured for a particular timezone), while needing to enter data about something occurring in another timezone.  This is especially apparent when the two timezones have different treatment of DST (the transition might take place on a different date, with a different sized shift, or not at all), but applies for all situations where the timezones have different offsets, as it affects the ISO value of the component.

@RHolland13 Do you expect that the date-time-picker component provides some kinds of visual component for the end user to select the timezone or are you requesting that date-time-picker just provides a new prop for consuming applications to set the timezone?

@benbcai, for our use we are wanting to be able to pass in a prop to specify which timezone to use.

@RHolland13 Thanks for the clarification on your use case. Yes, it makes sense to use the provided timezone to determine the date/time value to prevent interfering with other instances.

@benbcai I am not sure  of what I have done to set the default timezone is right here .
I am doubtful and I was thinking you could take a look and provide a better design approach ?
I have tried something like
const momentDate = moment(date).tz(timeZone).format();

It fails. And I couldn't figure out why exactly the above line was failing.
Also I am thinking setDefualt would modify the global object for the browser's moment instance ? And probably is not a right thing to do ? I could be wrong here.
I have created a draft PR
Let me know your thoughts.

@lokesh-0813 Given the last update that consumes will render many date-time-pickers components and each once has the potential to be on a different timezone, we would need to use moment.tz(date, timezone).utc().format() to get the formatted date/time display.
What issues are you see when you used moment(date).tz(timeZone).format();?
Note that there is a big difference between moment(date).tz(timeZone) and moment.tz(date, timeZone). Take a look at this documentation.


Completed Ranking Algorithm for Daily Streak Leaderboard

Created a function using Python & Pandas to generate a list of each user's leaderboard ranking based on their current daily streak.

Moved this PR to #31. I couldn't add commits to this PR as it was created from another user's main branch.


[Issue]: Remove dependency on use*** functions outside of /routes directory

Why is this issue important?
There are a lot of functions in the ARPA code that refer to the request/response context when deciding which tenantId or userId to use. While this is great to ensure consistency of values being used across the entire request lifecycle, it hinders our ability to call these functions independently when there is no ExpressJS request being created. An example might be- when we want to SSH into the server to debug an issue and call the function that we suspect is returning abnormal results.
Current State
When a developer calls a function that is defined outside of the /routes/ directory they are able to pass in any arguments that the function uses rather than the function relying on useTenant or useUser helper functions to retrieve these values.
Expected State
When a developer calls a function that is defined outside of the /routes/ directory they are able to pass in any arguments that the function uses rather than the function relying on useTenant or useUser helper functions to retrieve these values.
For example:
https://github.com/usdigitalresponse/usdr-gost/blob/main/packages/server/src/arpa_reporter/db/uploads.js#L17
This function:
async function uploadsInPeriod(periodId, trns = knex) {
    const tenantId = useTenantId();
    if (periodId === undefined) {
        periodId = await getCurrentReportingPeriodID(trns);
    }

    return baseQuery(trns)
        .where('reporting_period_id', periodId)
        .where('uploads.tenant_id', tenantId)
        .orderBy('uploads.created_at', 'desc');
}

Should be updated to
async function uploadsInPeriod(periodId, tenantId, trns = knex) {
    if (periodId === undefined) {
        periodId = await getCurrentReportingPeriodID(trns);
    }

    return baseQuery(trns)
        .where('reporting_period_id', periodId)
        .where('uploads.tenant_id', tenantId)
        .orderBy('uploads.created_at', 'desc');
}

Any function that calls uploadsInPeriod moving forward should be updated to either expect a tenantId from a file in the /routes directory. Only a function that directly handles a request should be calling useTenantId
Implementation Plan

Identify any usages of useTenantId and other similar helper functions outside of the /routes directory
Update those functions to explicitly expect this to be passed in as an argument and fix the related tests.
Ensure that any callers of these functions are updated to pass in these new arguments
Ensure that the useTenantId is only used by functions defined within the /routes directory.

Relevant Code Snippets
No response

I opened a PR for this, but it can't get approved without testing, and it can't be tested without merging. I think the way to clear the deadlock is going to open up soon with the upcoming changes to the CI/CD pipeline. In short, devs either need a local clone of staging data, or the ability to deploy work-in-progress to a sandbox environment (also with a clone of staging data).

I opened a PR for this, but it can't get approved without testing, and it can't be tested without merging. I think the way to clear the deadlock is going to open up soon with the upcoming changes to the CI/CD pipeline. In short, devs either need a local clone of staging data, or the ability to deploy work-in-progress to a sandbox environment (also with a clone of staging data).

A Staging dump was generated on 2023-12-12 and is available on Slack.
Would that be sufficient for reopening/continuing the work on the branch for https://github.com/usdigitalresponse/usdr-gost/pull/2191?


After cleanup bug fixes and improvements

Fix drawer problem on @flexn/template
Fix incorrect layouts are being measured when parent scrollview is scrolled and childrens are not n
Fix racing condition issue when recycler layouts changed and childrens are not re-measured
Optimise list items measuring cycles
Fix vertical jumping in grid
Fix vertical scrollview
Adds autoscaling which allows to resize recyclable view having scale animation

tvOS/AndroidTV:
Drawer doesn't close from "Home" and "Carousels" when in home screen, previously it did
AndroidTV:
Border on image does not extend to image

tvOS/AndroidTV: Drawer doesn't close from "Home" and "Carousels" when in home screen, previously it did AndroidTV: Border on image does not extend to image

Fixed

Tested on tvOS and androidTV simulators - works as expected


server down

I am making donations some times to help the api to be always online... I use it too much... I hope the server api opens again soon...

@FoxUshiha It's not our problem. SkinFile Generator use MineSkin API


feat: collect 0x trade surplus

Description
Collect trade surplus from 0x trades.
Any positive slippage amount will be sent to the buy assets corresponding treasury address (the same address that the affiliate fees are sent).
See https://0x.org/docs/0x-swap-api/guides/monetize-your-app-using-swap#option-2-collect-trade-surplus
Pull Request Type

[ ] :bug: Bug fix (Non-breaking Change: Fixes an issue)
[ ] :hammer_and_wrench: Chore (Non-breaking Change: Doc updates, pkg upgrades, typos, etc..)
[x] :nail_care: New Feature (Breaking/Non-breaking Change)

Issue (if applicable)
N/A
Risk
Low - additional arg on 0x quote requests.

What protocols, transaction types or contract interactions might be affected by this PR?

0x trades.
Testing

Quotes from 0x should include a feeRecipientTradeSurplus key in the request payload.
0x quotes and trades should succeed

Engineering
☝
Operations
☝
Screenshots (if applicable)
N/A

0x pointed out that we hadn't enabled positive slippage. This PR enables that. Thanks @0xApotheosis !!


pass input files as arguments to command line tools

some commands may have the following signature
command [file ...]

meaning that they both can read their input from stdin or from one or more files specified as arguments to the function; the latter takes precedence over the former
for example, the prot2pept command may be called in the following ways
$ prot2pept < seq.fasta
$ prot2pept seq.fasta
$ prot2pept seq1.fasta seq2.fasta seq3.fasta

Original issue by @pdawyndt on Fri May 02 2014 at 20:07.
Closed by @bmesuere on Wed May 20 2015 at 18:41.

I guess this has been resolved by providing the -i/--input option. Only question remaining is whether it is possible to specify multiple -i options to read from multiple files.
Original comment by @pdawyndt on Sun Jun 01 2014 at 16:17.

That is possible, and can keep the streaming properties of the commands.
Original comment by ghost on Sun Jun 01 2014 at 16:22.

Half implemented and half duplicate of unipept/unipept-cli#29
Original comment by @bmesuere on Wed May 20 2015 at 18:41.


ArgumentOutOfRangeException Error in GetUpdate handler

I wrote a desktop app for a bot and it use GetUpdate but recently i see the bellow error in my GetUpdate handler method:
e.Update.Type' threw an exception of type 'System.ArgumentOutOfRangeException

What do you think about this?
Environment data
NuGet Package Version: (Telegram.Bot 10.4.0)
.NET Version: (4.5)
IDE: (VS2015)
App: (Desktop)

I think this issue was caused by channel updates, which is resolved in #261. If you need it, consider to update to the beta package using Install-Package Telegram.Bot -Pre.
Kind regards,
Martijn Verbakel

Thank you @mhverbakel for your reply. It solved the problem. Do you know any way to prevent receive this update type from the channels that the bot is one of its admins?


Search image in specific display area - call vision() to send custom SikuliX commands

Hi,
I wanted to use via visual automation the image recognition.
Is it possible to reduce the area in which the system should search for the image?
Best,
Mike

Intention of the question is, that my software somehow doesn‘t find the image. Or does homepages have the possibility to make parts „invisible“ for RPA image recognition?

Hello @MikeZnnam. I have the same doubt. I need something like Region from Sikulix but I yet don't find this feacture in RPA. :(

Hi Mike and Gabriel, by default the tool will search the default display (the one with the taskbar). Another common error could be the image snapshot taken is very different in resolution from the actual display (for eg mac Retina HD display).
Can you let me me know if you are still experiencing this problem and more details of how to replicate your issue?
For searching specific area, it is possible by calling r.vision() directly to send SikuliX commands directly to SikuliX. The list of functions in SikuliX can be found here - https://sikulix-2014.readthedocs.io/en/latest/genindex.html

@kensoh but how can i capture the command "r.vision" return? I already have tried to use just "return", but i haven't a success.

Hi Gabriel, the return value for r.vision() has no meaning for your use case. It returns True is instruction is sent successfully TagUI and False if not. But it does not mean anything related to the outcome of the custom SikuliX code. Best is write output and then read that output. The file path depends on whether you are using on MacOS/Linux or Windows.
r.vision('do something')
r.vision('output_sikuli_text("some result")')
r.load('path_to_tagui/tagui.sikuli/tagui_sikuli.txt')

For example below on my Mac laptop, shows writing some desired output from SikuliX process and reading it.
>>> import rpa as r
>>> r.init(True)
r.vision('output_sikuli_text("some result")')True
>>> r.vision('output_sikuli_text("some result")')
True
>>> r.load('/Users/username/.tagui/src/tagui.sikuli/tagui_sikuli.txt')
'some result'


Disable readonly on create

Currently the readOnly is applied on all views, but it would be nice to enable readOnlyOnUpdate as well.

We’ll do

Added readOnlyOnCreate and readOnlyOnUpdate in 0.2.10.  Both are overriden if readOnly is used.


Disabling animation from Activity and not from adapter

I am loading data into adapter from my Activity. Is there any way I can get the instance of skeletongroup in activity and disable the animation from activity?

Actually I am using https://github.com/mikepenz/FastAdapter and I am unable to use skeleton with it. FastAdapter has a lot of advantages over vanilla Adapter.. It would be really helpful if you can guide me in setting up skeleton with FastAdapter. I will upload a sample app with FastAdapter and Skeleton. If possible you can have a look at it and guide me. Many thanks

I want to use SkeletonConfig in my adapter but it's not in the library I think, I 've added library by dependencies


ItemStackComparators.IGNORE_SIZE not working

Affected Product(s)
SpongeVanilla
Version
1.16.5-8.2.0-SNAPSHOT
Operating System
Windows
Java Version
17
Plugins/Mods
Just the affected plugin.

Describe the bug
I would expect that this method always returns the same as the sponge implementation, but it seems to always return -1.
public static Predicate<ItemStack> ignoreSizeFilter(ItemStack item) {
    ItemStack item1 = item.copy();
    item1.setQuantity(1);
    return i -> {
        ItemStack iCopy = i.copy();
        iCopy.setQuantity(1);
        boolean ourResult = iCopy.equalTo(item1);
        boolean theirResult = ItemStackComparators.IGNORE_SIZE.get().compare(item, i) == 0;
        System.out.println("Our result: " + ourResult + ", theirResult: " + theirResult);
        System.out.println("Compare self: " + ItemStackComparators.IGNORE_SIZE.get().compare(i, i));
        return ourResult;
    };
}

Causes output like:
Our result: true, theirResult: false
Compare self: -1

The fact that comparing two identical objects do not give 0 suggests that it is definitely broken.
Link to logs
No response

Same bug appears in API11:
Minecraft: 1.20
    SpongeAPI: 11.0.0-SNAPSHOT
    Sponge: 1.20-11.0.0-SNAPSHOT
    SpongeVanilla: 1.20-11.0.0-RC1348
    JVM: <IP_ADDRESS>/64-bit (Amazon.com Inc.)
    OS: Windows 10/10.0 (amd64)


Setup error

Bug report
Title
In ModelProxy.php line 69:,, Return value of Konekt\Concord\Proxies\ModelProxy::targetClass() must be of, the type string, null returned,,
Issue Description
this error happen while installing
Steps to reproduce
1. setup app

Expected result
it should be done successfully and go to home page
Actual result
In ModelProxy.php line 69:,, Return value of Konekt\Concord\Proxies\ModelProxy::targetClass() must be of, the type string, null returned,,

Hello @mengheangsok
Can you tell me, which version of bagisto you are using and what is environment details like - OS, PHP and Database.

I hope your issue got resolved. I am closing this issue for now. Feel free to reopen this issue if needed.


Sharing modules between applets

If applets are made of multiple modules with a main module (the one exporting the main function and probably defining the applet properties like its name), then modules may be shared between applets. For example, there could be an alloc module that exports its linear memory and an alloc, dealloc, and init functions. All other modules of the applet would import that memory and use those functions.
Open design questions are:

How is dependency resolution done? Is it described in the applet or modules need to be parsed recursively from the main module?
How is version management done? If 2 applets depend on different versions of the same module. Should we rely on semantic versioning for modules?
How is applet management done? Would it become more of a module management with some modules (the main modules) being applets? The CLI should deal with installing/updating/etc modules based on the applet provided on the command line.
What are the implications of having 2 layers of linking (one linker invocation for each module, then linking those modules in the interpreter)? This may break some assumptions where an applet may look like a binary with a single linking phase.

This may be related to how components work in the component model of WebAssembly, so some answers may be there.

A guideline could be:

An applet is a WebAssembly store. This is at least useful for security to prevent state being accidentally shared between applets. But this is probably also simpler to reason regarding the consequences of a trap in one applet with respect to other applets.
Each applet would thus instantiate its modules in its own store.


different error messages for disabled ip pool vs not configured

Fixes https://github.com/projectcalico/cni-plugin/issues/272

One comment - then LGTM


Test index.html option.

Test index.html option.
closes #9

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


Pass names, scopes, and timings

This helps us annotate the command scopes, capture the timers, and put GPU crash markers.
PR also adds the timing support.
Fixes #170
Closes #174
Depends on:

https://github.com/gfx-rs/metal-rs/pull/335

https://github.com/gfx-rs/metal-rs/pull/336

https://github.com/gfx-rs/metal-rs/pull/337

[x] API

every pass now gets a name. And there is a flag at context creation... That's it. That's all of the API.

[x] Vulkan

[x] Metal

[x] GLES

Particle example:

Proceeding with using https://github.com/kvark/metal-rs/tree/blade


Circular dependency between projects

Just ran across this circular dependency, rolled the dice on which of the three repositories to submit it to.
repeating => meow => indent-string => repeating

Doesn't matter. npm handles this for us. But sure, would be better without.


[ign-gazebo3] Update BitBucket links

Signed-off-by: Louise Poubel<EMAIL_ADDRESS>

@osrf-jenkins run tests


Create a container that uses the PyPy interpreter

Creates a python container using the PyPy interpreter.

@brettcannon ?

@Chuxel I guess so 😉 I have comments, but they seem to all relate to what was directly lifted from the Python container image. I guess the only real difference here is the use of pypy:3 as a base image which I don't know anything about.

@Chuxel I guess so 😉 I have comments, but they seem to all relate to what was directly lifted from the Python container image. I guess the only real difference here is the use of pypy:3 as a base image which I don't know anything about.

@brettcannon Happy to take updates there too. The definition has been largely as-is for a while now so I'm sure there's tweaks.

Merged. Thanks!


Feature/update dalpy to string 22

I updated dalpy_to_string to specify the object name for the following dalpy data structures:

Array
Array2D
Queue
Stack
Set
BinaryTreeNode
NaryTreeNode

, and added corresponding tests to test_utils_tests.
Please review my request.

I've clarified that in the documentation of dalpy_to_string.


value of 'd_ff'

Hello,
I noticed that the
parser.add_argument('--d_ff', type=int, default=512, help='Tranformer MLP dimension')
is different in patchtst_finetune.py and patchtst_pretrain.py
This will lead to unmatched_layers when transfer weights.
What is the reason for this setting? Thanks

Hi! Sorry for the confusing. Is the problem solved if you modify it?

Hi，I modified the setting, and successfully transferred the model. Thank you.


⚠ Bofrost.at has degraded performance

In 0497ef3, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 1858 ms

Resolved: Bofrost.at performance has improved in f33dcc7.


Badge Request: combined download count

:clipboard: Description
This badge uses multiple services (GitHub, Chocolatey, Homebrew, etc.) and combines the download count across all these repositories.
:link: Data
We already have this data! We just need to add the download count from different sources and display the total result.
:microphone: Motivation
Most packages are published across a number of repositories, so showing numbers from a single repository can be inaccurate. If we could combine the numbers from each source, I think that could provide a lot of value.

Thanks for reaching out, but I'm going to close this (for now). Perhaps this is something we could reconsider down the line, but it's not something I'm willing to have us take on because it's wildly open ended (e.g. combinations within defined sets of services, sets of services, etc.) and is not something our existing user-facing route conventions nor internal code codebase is really structured to support.
If this is something you are passionate about having then your best bet is to either follow the standard pattern of having the relevant badges side by side, or utilizing our Endpoint badge feature to develop your own endpoint that would perform all the fetches and aggregate the results, e.g.
sequenceDiagram
    actor User
    participant B as Badge Server
    participant E as Your Endpoint
    participant DA as Registry/Store A
    participant DB as Registry/Store B
    participant DN as Registry/Store N
    User->>+B: Get aggregate download badge from my endpoint
    B->>+E: Get badge data
    E->>+DA: Get download count
    DA-->>-E: Download count
    E->>+DB: Get download count
    DB-->>-E: Download count
    E->>+DN: Get download count
    DN-->>-E: Download count
    E->>E: Combine download counts
    E-->>-B: Badge data
    B->>B: Make badge with data
    B-->>-User: Here's your badge!

Finally note that your Endpoint implementation doesn't necessarily need to reach out directly to the underlying registries/stores, and could get the download count in json form directly from Shields, i.e. the endpoint could go to https://formulae.brew.sh/api/... directly to get the download count or it could go to https://img.shields.io/homebrew/installs/dm/cake.json and let Shields do it.


Update moms.f90

Hi Pedro,
Is the variable "dzflzi" needed in this subroutine? It seems it is not employed.

I agree! Thank you @nscapin for noticing this and fixing it.

It actually was failed in CI because rk_scal was not updated accordingly. @nscapin do you want to fix this or shall I do it?

I fixed it. Thank you! I will modify the CI to check test pull requests also.


[Proposal] Change debug level to CreateNewBlock()

A proposal for issue #29, regarding the multiple record of "CreateNewBlock(): block weig...." in the log.
The log level was changed, compiled and tested on OS Linux (Ubuntu 18.04 LTS) for 24 hours with no problems, on the testnet, mining blocks in both the SHA algorithm and MinX.

nothing here makes sense

im new help me here

Accepted with thanks :)


What happened:
Thanos compact stuck in continuous restart loop when index file missing.
Error log:

List ceph data chunk folder:

I think we can actively skip the damaged chunk and continue to merge.
https://github.com/thanos-io/thanos/blob/4bf956deb64b2a12c8c26d28f03a6795d75ada4f/pkg/compact/compact.go#L722-739.
What you expected to happen:
Don't keep restarting.
How to reproduce it (as minimally and precisely as possible):
When chunk data loss.

I think we can/should do a better sanity check on these blocks. I.e. check if meta.json, index and chunks are present. Seeing the errors, it just assumes there is an index file.
Though, I'm not so sure on how to "deal" with it as there can be numerous reasons why the index file is missing.
I make some assumptions on the logic here but compactor sees the ULID -> downloads the entire folder -> does it's thing. In your case it fails because the index file is not there. Yet what if the index file is in the object store, but it simply failed to download all the contents? What if someone made an 'oopsie' and had the wrong permissions on a file, or what if the disk is full. Even this could happen when for example the sidecar ships its stuff but fails 'somewhere' and mistakenly misses the index. Now the block is not broken at all and could be fixed.
IMO the compactor job is pretty much irreversible. The behaviour of 'dirty data' or even 'corrupted data' should be the exception rather than a standard. Therefore my initial thought here is that we should not make assumptions and unfortunately do manual actions as sanity check before proceeding.
Do you perhaps have a proposal on when we could define data as corrupted and 100% not fixable? Or WDYT?

I get you meaning and  agree with you the behaviour of 'dirty data' or even 'corrupted data' should't be a standard.
I think we can throw exception when meeting corrupted data but not keep container restart loop. We should ensure that the application will not crash due to some exceptions. WDYT? @wiardvanrij

Sorry, I have been busy recently.
If you agree that we should not crash the process when an exception occurs, I can help improve the code.

Thanks a lot for this report, we sometimes hit a similar issue when we have broken manually uploaded block - compactor is halted and awaiting a manual decision.
Unfortunately skipping right now is not easy, we don't have a mechanism for that. Unfortunately continuing like in PR is not helping, (compaction will pick the same block in the next iteration). We are discussing Compact v2 today, and I will bring this issue.

Ok. I hope we can find a reasonable solution and optimize it, and I am willing to assist in the completion.


Add better feedback after successful rename

I don't want to do a popup, that seems like it would be obnoxious. Though better than what I do currently, which is nothing.
Here's an idea:
Given the following rename:

We currently show this after renaming:

Instead it could show something like this:

Fixed in develop-1.1.0


MNT Update repositories in VCS

This will trigger a re-deploy of the app with the newly updated repositories list.
Don't merge until https://github.com/creative-commoners/supported-modules/pull/2 has been merged.
Parent issue

https://github.com/silverstripe/github-issue-search-client/issues/100

The test environment doesn't seem to be picking up the developer-docs repo ... it's not included in the GraphQL request.

@maxime-rainville You didn't merge the other PR.
There are two PRs for the attached issue. This PR's description even says not to merge it until the other has been merged. :p

@maxime-rainville Accidentally created the other PR against creative-commoners... please merge https://github.com/silverstripe/supported-modules/pull/17 first.


Google SignIn Fails with code 10 (on Android)

Step 1: Describe your environment

Device: Xiaomi Redmi Note 3
OS version: 6.0.1
MIUI version MIUI Global 9.2

Step 2: Describe the problem:
Throws Error after choosing Google account
com.google.samples.quickstart.signin W/SignInActivity: signInResult:failed code=10
Steps to reproduce:

Clone the repository and Launch SignIn App (under Android)
Click SignInActivity
Click Google Sign In button
Choose your Google Account
Logs above error in Logcat

I have also been getting the same error response for the past few days; I have been trying to fixed the problem but no breakthrough and I learnt that the response code (10) means it is a developer problem.
I hope someone can profer a solution here.

Same issue.

Hi all.  Error code 10 is DEVELOPER_ERROR:
https://developers.google.com/android/reference/com/google/android/gms/common/api/CommonStatusCodes.html#DEVELOPER_ERROR
This almost certainly means you have not properly registered your SHA1 and Package Name in the Google API console:
https://developers.google.com/identity/sign-in/android/start
If you are 100% sure that you have done this correctly, make sure that your GoogleSignInOptions are correct. In particular, make sure the web client ID (if you're using it) belongs to the same project where you registered your package name and SHA1.
I am going to close this issue since that's the best advice I can provide with the limited information above.

I just cross-check my SHA1 and discovered a mistake. I have fixed it and the Google sign-in is working as expected. My initial SHA1 was gotten via the terminal while I got the present one via Android studio. Maybe @makeze and @sudarsangp can try something like that if it works.
@samtstern thanks for the tip.

@samtstern sorry for the trouble it was indeed a misconfiguration issue. @ibnahmadbello thanks for the suggestion.
I still have a question though. I am trying out SignInActivity and I don't see any usage of server_client_id in SignInActivity.java.  Does Google Identity service check whether the project (in google cloud) has a valid OAuth 2.0 client ID with the same package name (as the app) in order to allow Signing In?

@sudarsangp the web server client ID is used to mint the ID token, so that it's signed for the right "audience".  It's actually not required for signing in, but we recommend that after you sign in you use the ID token to authenticate to your server or to another service (like Firebase Auth)

I am new to android development and had opted in for google play app signing. My debug release worked fine but when publishing to internal test release it would fail. I realized the app is being resigned upon uploading to google so I registered using signing keys from google play portal and that fixed it. Oddly enough, examining the gradle signing report would only show sha1 for debug builds and not for release builds no matter I had selected the release keystore.  Thankfully for now it is not an issue using google play signing.

@mike1128  yeah, Facebook too requires 3 keys if you've signed up for Google Play App signing.
Refer to this article.

thanks @samtstern

I just cross-check my SHA1 and discovered a mistake. I have fixed it and the Google sign-in is working as expected. My initial SHA1 was gotten via the terminal while I got the present one via Android studio. Maybe @makeze and @sudarsangp can try something like that if it works.
@samtstern thanks for the tip.

It works for me, thanks ;)

hi @ibnahmadbello I had the same problem when I was using sh1 generated from the commande line. but when I used android studio I get an other key and it work.
thank you

Hello @rady-ben , what is your way to get sha1 from android studio?

优秀

This error might happen if you are not using same project at console.developers.google and console.firebase.google.com. If project is same at both console make sure you have add your SHA1 Key properly. Get SHA1 from Android studio.
Open Android Studio
Open your Project
Click on Gradle (From Right Side Panel, you will see Gradle Bar)
Click on Refresh (Click on Refresh from Gradle Bar, you will see List Gradle scripts of your Project)
Click on Your Project (Your Project Name form List (root))
Click on Tasks
Click on Android
Double Click on signingReport (You will get SHA1 and MD5 in Run Bar(Sometimes it will be in Gradle Console))
Select app module from module selection dropdown to run or debug your application
 You also need to get google-services.json from firebase console and put into your project.

@technologyshare there is no Gradle Bar. How to turn it on?

@technologyshare: do we need to submit Oauth screen?

Check in right side

@technologyshare there is no Gradle Bar. How to turn it on?

Check in right side

@technologyshare there is no Gradle Bar. How to turn it on?

Check in the right side

@technologyshare: do we need to submit Oauth scre

@technologyshare: do we need to submit Oauth screen?

if you are integrating it from web than you need to pass oauth screen, if you are doing only by phone. No Need

When i release my app to playstore in beta mode the same server_client_ID doesn't works and i get error in:
    Task<GoogleSignInAccount> task = GoogleSignIn.getSignedInAccountFromIntent(data);

ApiException: 10

I'm quite new to Android development and was struggling with the error as well. I used Android Studio terminal to get the fingerprint. First I created a debug one by calling keytool -alias androiddebugkey -keystore %USERPROFILE%\.android\debug.keystore -list -v and everything worked well. Then I tried a fingerprint from a release keystore generated like so keytool -keystore path-to-production-keystore -list -v and got the error. The problem turned out to be in using release key in a debug build. As soon as I generated a release build signed with the same keystore the problem has gone.

I have an application giving this error but it already had the key.jks and I can't reuse it.

It can be reused after deleting previous ids. Go to credentials and delete the old OAuth 2.0 Client IDs.
Then generate a new fingerprint with keytool -keystore path-to-production-keystore -list -v in Android Studio terminal and click on the blue Configure a project button at sign-in start (step 2). Install the client Id which the wizard will provide you at the end and finally generate a release build signed with the same .jks.

I'm quite new to android development and in my case it was caused by a wrong package name in app/build.gradle file.
Although, the tutorial and the configuration page suggests to get the package name from the manifest file, it seems it is checked against the applicationId in the app/build.gradle file.
There are two places to set the package name I've found so far:

app/src/main/AndroidManifest.xml
app/build.gradle android.defaultConfig.applicationId

In my case those two names were different. Earlier I had updated the package name in the first file but forgot to update in the build.gradle file.
Hope this helps someone.

After release to the store I found signin not working again and it turned out that you need to create a third key with your app's fingerprint from the Play Store developer console because google re-signs published builds with a different certificate.
To sum it up you need to create four OAuth client ids in Google API console:
1 Web client id - this and only this one must be defined in your mobile app.
3 Android client ids (with debug, release and publish fingureprints)

I fixed it by doing the following steps:

Go console developer google
Click on create a new OAuth client ID
Make your Server client id by selecting web application
Create another client id by selecting android
Use your app's package identifier and SHA1 fingerprint*

IMPORTANT: you may need to create many android client id for the same app. One for debugging and one for release version. Debugging version has different SHA1 fingerprint than release.

To find out how to get SHA1 fingerprint for your app see previous comments or google it, you will find a lot of resource.

I hope this might help someone.
I was facing the same issue after changing Keystore for my Project due to run into a signing problem.
I was giving SHA1 keys to the firebase console as well as the API console credentials.

I was giving SHA1 generated by circled area but when I put the one from the highlighted one i.e. app module.
It worked.

one question..I tried to implement google sign in method without adding my SHA1 key to firebase.. So is it compulsory to add our SHA1 key to firebase for google sign in to work?

Documentation does no suggest. there might be some other issue

one question..I tried to implement google sign in method without adding my SHA1 key to firebase and it was not signing in.. So is it compulsory to add our SHA1 key to firebase for google sign in to work?

Yes it is compulsory to add our SHA1 key to firebase and credentials API

This error might happen if you are not using same project at console.developers.google and console.firebase.google.com. If project is same at both console make sure you have add your SHA1 Key properly. Get SHA1 from Android studio.
Open Android Studio
Open your Project
Click on Gradle (From Right Side Panel, you will see Gradle Bar)
Click on Refresh (Click on Refresh from Gradle Bar, you will see List Gradle scripts of your Project)
Click on Your Project (Your Project Name form List (root))
Click on Tasks
Click on Android
Double Click on signingReport (You will get SHA1 and MD5 in Run Bar(Sometimes it will be in Gradle Console))
Select app module from module selection dropdown to run or debug your application
 You also need to get google-services.json from firebase console and put into your project.

this is the one and absolute answer every one is looking for, thanks

I just cross-check my SHA1 and discovered a mistake. I have fixed it and the Google sign-in is working as expected. My initial SHA1 was gotten via the terminal while I got the present one via Android studio. Maybe @makeze and @sudarsangp can try something like that if it works.
@samtstern thanks for the tip.

Thanks, SHA1 via Android studio worked, terminal SHA1 was not working.

generate ur key using the gradle task as opposed to getting the key from the terminal .
that was my issue !

I thought that I can add SHA-256 or SHA1 but you must add SHA1 to get it to work.

We do not use Firebase, just the Outh2 client ID generated in console.developers.google.com
Turned out the issue was that the debug SHA1 fingerprint from keytool was DIFFERENT from the one in gradle signingreport.
The latter worked, the former did not.

I fixed this problem,
Go console developer google
Go to My project Which I have to face the problem
Go credentials,
And Open OAuth Client
Change the SHA-1 certificate fingerprint key

hello everyone  I have added SH1 in project and console and also configure my project with console. The release APK work fine before uploading to play store after I uploaded in play store it did not work and give me code 10 error. Now you can see there are three keys in console I'm using third one in GoogleSignInOptions here is the code. Help me to resolve this guys.
 GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)                 .requestIdToken(getString(R.string.AUTH_ID))                 .requestEmail()                 .build();

hello everyone I have added SH1 in project and console and also configure my project with console. The release APK work fine before uploading to play store after I uploaded in play store it did not work and give me code 10 error. Now you can see there are three keys in console I'm using third one in GoogleSignInOptions here is the code. Help me to resolve this guys.
 GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN) .requestIdToken(getString(R.string.AUTH_ID)) .requestEmail() .build();

use the second one and make sure it is not restricted to the platform you are using it in.

We do not use Firebase, just the Outh2 client ID generated in console.developers.google.com
Turned out the issue was that the debug SHA1 fingerprint from keytool was DIFFERENT from the one in gradle signingreport.
The latter worked, the former did not.

yes, usually android studio generates the SHA1 key using the default Keystore. which changes for production builds as the same Keystore is not used in the signing apk.
Now if that apk calls for services that have changed SHA1 value gets an error in response.

hello everyone I have added SH1 in project and console and also configure my project with console. The release APK work fine before uploading to play store after I uploaded in play store it did not work and give me code 10 error. Now you can see there are three keys in console I'm using third one in GoogleSignInOptions here is the code. Help me to resolve this guys.
 GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN) .requestIdToken(getString(R.string.AUTH_ID)) .requestEmail() .build();

use the second one and make sure it is not restricted to the platform you are using it in.

After Uploading to play store, Play store generate its own SH1 which we have to replace in second key in google console.

Instead of trying everything as stated above, I'm getting the same err 10.

Generated SHA
Added to GCP
Enabled Google Sig-in in Firebase
Added the Same SHA-1 there

Am I doing it right, please help.

Instead of trying everything as stated above, I'm getting the same err 10.

Generated SHA
Added to GCP
Enabled Google Sig-in in Firebase
Added the Same SHA-1 there

Am I doing it right, please help.

For me the issue was that I created the app in debug mode, but used a production keystore, adding the debug keystore in firebase fixed the issue for me:
keytool -alias androiddebugkey -keystore "%USERPROFILE%"\.android\debug.keystore -list -v

For me the issue was that I created the app in debug mode, but used a production keystore, adding the debug keystore in firebase fixed the issue for me:
keytool -alias androiddebugkey -keystore "%USERPROFILE%"\.android\debug.keystore -list -v

when I run the app on the emulator it's working fine but when I generate signed apk it's show me this error ??
any advices

@samtstern

the web server client ID is used to mint the ID token, so that it's signed for the right "audience". It's actually not required for signing in, but we recommend that after you sign in you use the ID token to authenticate to your server or to another service (like Firebase Auth) if you need to (rather than an access token, which is dangerous)

I needed to use the id-token, so I created a web-application oauth credential, used it and this is how I create the sign-in:
    fun prepareIntent(context: Context): Intent {
        val googleClientId = context.getString(R.string.server_client_id)
        val options =
            GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)
                .requestServerAuthCode(googleClientId)
                //                .requestEmail()
                .build()
        val mSignInClient = GoogleSignIn.getClient(context, options)
        return mSignInClient.signInIntent
    }

And to get the id-token, I have this function:
    @NonNull
    @WorkerThread
    public static String setUp(final Context context, @Nullable final String serverAuthCode) throws IOException {
        final HttpTransport httpTransport = new NetHttpTransport();
        final JacksonFactory jsonFactory = JacksonFactory.getDefaultInstance();
        final String redirectUrl = "urn:ietf:wg:oauth:2.0:oob";
        final String clientId = context.getString(R.string.server_client_id);
        final String clientSecret = context.getString(R.string.client_secret);
        final GoogleTokenResponse tokenResponse = new GoogleAuthorizationCodeTokenRequest(
                httpTransport, jsonFactory,
                clientId, clientSecret,
                serverAuthCode, redirectUrl).execute();
        final String accessToken = tokenResponse.getAccessToken();
        return accessToken;
    }

So I call this to reach this function and get it (in background thread) :
GoogleSignIn.getLastSignedInAccount(this)
val serverAuthCode = result.serverAuthCode
setUp(applicationContext, serverAuthCode)

This works, but for some reason, when I run the app and choose the Google account, I also get a dialog of "confirm your choices" :

How so?

Hi I am facing this issue. https://github.com/flutter/flutter/issues/33393#issuecomment-832855222. I have raised it. Can someone take a look.

Hi all. Error code 10 is DEVELOPER_ERROR:
https://developers.google.com/android/reference/com/google/android/gms/common/api/CommonStatusCodes.html#DEVELOPER_ERROR
This almost certainly means you have not properly registered your SHA1 and Package Name in the Google API console:
https://developers.google.com/identity/sign-in/android/start
If you are 100% sure that you have done this correctly, make sure that your GoogleSignInOptions are correct. In particular, make sure the web client ID (if you're using it) belongs to the same project where you registered your package name and SHA1.
I am going to close this issue since that's the best advice I can provide with the limited information above.

My issue, root cause is SHA1!
we must copy SHA1 at task = "signingReport" and variant  = "debugAndroidTest"
like this =

I just cross-check my SHA1 and discovered a mistake. I have fixed it and the Google sign-in is working as expected. My initial SHA1 was gotten via the terminal while I got the present one via Android studio. Maybe @makeze and @sudarsangp can try something like that if it works.
@samtstern thanks for the tip.

Worked for me. Thanks brother

After release to the store I found signin not working again and it turned out that you need to create a third key with your app's fingerprint from the Play Store developer console because google re-signs published builds with a different certificate.
To sum it up you need to create four OAuth client ids in Google API console:
1 Web client id - this and only this one must be defined in your mobile app for all build types
3 Android client ids (with debug, release and publish fingerprints)

Strange, but this worked!
I literally used the client_id from oauth_2.0_client_ids for type:webApplication in my android source-code.
Earlier, I was using the client_id from oauth_2.0_client_ids for type:android in my android source-code

I had the  same problem, I recomend to follow this: https://github.com/CodetrixStudio/CapacitorGoogleAuth/issues/15#issuecomment-515935930
so useful.

I just cross-check my SHA1 and discovered a mistake. I have fixed it and the Google sign-in is working as expected. My initial SHA1 was gotten via the terminal while I got the present one via Android studio. Maybe @makeze and @sudarsangp can try something like that if it works.
@samtstern thanks for the tip.

In my case, I tried both from terminal and Android Studio. Both are the same and not working.

After release to the store I found signin not working again and it turned out that you need to create a third key with your app's fingerprint from the Play Store developer console because google re-signs published builds with a different certificate. To sum it up you need to create four OAuth client ids in Google API console: 1 Web client id - this and only this one must be defined in your mobile app for all build types 3 Android client ids (with debug, release and publish fingerprints)

Thank you. This fixed my problem. After i uploaded first bundle to internal testion i started to get an error with google sign in.  What i done to fix that problem:

add all of ther cliend ids (for all fingerprints)
add play signing fingerprint to firebase console
get new google-services.json from firebase console

Just Use Web Application OAuth Client ID 👍👍👍

This solved it for me https://www.youtube.com/watch?v=SdYp5JdMvs0

"Web Application" name confuse me, but it works

Also look for this Key com.google.android.gms.games.APP_ID expected String but value was a java.lang.Float.  The default value <null> was returned. - yes, use resources like in the guide

In my case, everything worked with Client ID from https://console.cloud.google.com. But after adding requestServerAuthCode I started getting errorCode 10 and it turned out that I needed to use oauth_client from fireabse google-services.json which was a different string...

H

I just came across this thread, as I see the same error in our app.
When I add the SHA1 from our release keystore to the Google Cloud Console, the signin process os working when running a release build on device or emulator. When running a debug build on emulator, I see this error code 10.
The other way around, when adding the SHA1 from the debug keystore, the sign in process stops working when running a release build.
So my question is: how can I make sure that I am able to test the login stuff in a debug build AND people using the live app (when it is released on play store) can use the sign in stuff at the same time? As I can only add one SHA1 to the Google Cloud Console.
Btw, I am not using Firebase. Thank you in advance!

When I tried to use the New Google Sign-In API (https://developers.google.com/identity/sign-in/android/sign-in-identity), I found that on system versions lower than Android 10, always Error: com.google.android.gms.common.api.ApiException: 10: Caller not whitelisted to call this API., but there is no such error on Android 10 and Android 11 and above phones. I'm currently using Google Sign-In for Android (legacy) (https://developers.google.com/identity/sign-in/android/sign-in) I've also never encountered such an error, I don't understand Why? My SHA1 is configured correctly

I was getting this error and I had checked the SHA's and Web Client stuff were all set up correctly. I must have checked this 20 times. Everything matched in firebase, google developer console, and google-services.json, but yet google sign in was not working.
I finally figured it out and wanted to post this for others (and probably my future self when I run across this again).
My issue was I have 2 firebase projects. One for stage, and one for prod. Stage worked fine but prod did not. Yes, I confirmed I had all the right SHA's set up and everything (sort of). I realized that the SHA I added to firebase was for my production keystore release version, but I was running the app locally in debug mode with my stage keystore file. I quick google on how to run it in release mode locally gave me this command:
react-native run-android --mode release
Everything is working now.

hii all if you are facing the issue using google login with code 10,then follow the steps below you may find your solution
1.check your project connect to the firebase account
2.if you are connected with firebase account then just add to sha-1 and sha-256 in your firebase account.
3.download the google.json file and put in your app folder in project root folder
hope your problem might be solve
happy coding!

i have a problem with google login ONLY in Production/Android.
i use EXPO
i use it WITHOUT FIREBASE.
i receive in production/android "DEVELOPER_ERROR" error.
Into documentation i see that is always as misconfigured, but the only configuration we have is a fingerprint to add in Google Api Console.
i can't understand which fingerprint add for production.
FINGERPRINT on my google play console

FINGERPRINT found in android studio with command gradle signinreport

FINGERPRINT found with eas credentials

i try every fingerprint with the same result.
thanks in advanced
A help to workaround this problem

For whom use the AppCenter to distribute the APK. The AppCenter by somehow overrides the release keystore from project, they use their own keystore. You can get this SHA1 from their keystore by downloading the apk and run keytool -printcert -jarfile 'path_to_apk'. You'd get the SHA1, then add the new Android Oauth Client ID with this SHA1. Then try again, this fixed my issue. Hope it helps!

i have a problem with google login ONLY in Production/Android.
i use EXPO i use it WITHOUT FIREBASE. i receive in production/android "DEVELOPER_ERROR" error.
Into documentation i see that is always as misconfigured, but the only configuration we have is a fingerprint to add in Google Api Console.
i can't understand which fingerprint add for production.
FINGERPRINT on my google play console
FINGERPRINT found in android studio with command gradle signinreport
FINGERPRINT found with eas credentials  i try every fingerprint with the same result.
thanks in advanced
A help to workaround this problem

hey, u decided it ?

This is still a hot issue samtstern. Closing this makes no sense

After release to the store I found signin not working again and it turned out that you need to create a third key with your app's fingerprint from the Play Store developer console because google re-signs published builds with a different certificate. To sum it up you need to create four OAuth client ids in Google API console: 1 Web client id - this and only this one must be defined in your mobile app for all build types 3 Android client ids (with debug, release and publish fingerprints)

I think the publish fingerprints (sha1) of play store are the easiest for developers to miss.

Hello, I have a similar problem, all this time I thought that the problem was when I published my application to the play store that it stopped working, since in APK and emulator it always worked but when I tried to log in with Google from my application it showed me an error 10, but I realized that it is something different and the problem was not with the play store. It's like the system crashes or something because sometimes it works and when it works it works everywhere but when it crashes or I don't know what happens it stops working in all types of environments and throws error 10.
I'm only using Google Cloud for now, but I plan to use FireBase if this problem continues, if anyone knows how I can solve this problem it would be very helpful.
I am using the SHA1 of the release that returns the signinReport of android studio in Google Cloud and from what I see the package name, the fingerprint and the id of the web type client are correct

the solution is to enter 3 sha-1: debug, release, and play market keys into the project setting.
Enter the key from the play market in the api credentials oauth 2.0, it will be written that it is confirmed.
Create a web application in oauth 2.0 and use the client - id from this web client.

@Us3rL0sT Yes, I managed to solve it by adding another credential with the SHA-1 Certificate of the application signing key from the Google console to Google Cloud, thank you.

 Im still fighting and today I wasted whole day to deal with it without success. I dont published my app yeat.


Large images on iphone/ipad crash the browser

Using an image of around 3000x8000 and whenever it is loaded the browser crashes. Unfortunately for the use case it isn't possible to scale the images down.
This seems to be an issue particularly with ios mobile devices struggling with the translate3d and scale css. When I remove these classes from the source code in the return of the getTransformStyles function, the browser no longer crashes.
Potentially useful links which may relate to this issue:
https://stackoverflow.com/questions/17824060/ios-safari-memory-usage-with-webkit-transform
https://stackoverflow.com/questions/13751964/scaling-canvas-on-ios-seems-to-crash-mobile-safari

Are you suggesting that getTransformStyles should just return an empty string? Doesn't that break a lot other things?
The two issues that you have linked to are back from 2012 and 2013, so if they are still relevant, I don't think we should expect a fix anytime soon.
Have you tried using a different file format for the image? This might not change anything, but I guess that it's easy to test.
Do you have a URL somewhere, where this bug is easy to reproduce?

Thanks for your response. No the getTransformStyles needs to return the css styles, it was just proof that this was the cause of the crashing!
I've recreated the problem here https://codesandbox.io/s/react-zoom-pan-pinch-ios-bug-37iyji?file=/src/App.js:375-471 - this will only crash on iphone/ipad however does happen consistently. It seems to mostly depend on the dimensions of the image.
This doesn't look like a bug with the library itself but it would be great if there were a workaround that could be implemented.

Thanks a lot for creating the demo site. I have no idea how to fix this issue, though. 😞
I tried specifying backface-visiblity and transform-style, as one of the answers on Stack Overflow suggested, but it's still crashing. I also tried a hail mary by adding zoom: 1 to the list of styles.
<style>
  .react-transform-component {
    backface-visibility: hidden;
    transform-style: preserve-3d;
  }
</style>

I tried replacing translate3d() with just transtale() and published it as version 2.3.1-beta.0. I got it working locally on my iPhone with the large image, but the performance is quite bad.

Thanks for taking a look at this! Yeah it looks like using translate instead of translate3d impacts performance a lot. Apparently "The use of translate3d pushes CSS animations into hardware acceleration" which is why translate is a lot slower.
We tried pretty much everything but eventually had to just work around it, we will just have to cross our fingers that this will be addressed by Apple at some point!

That explains why translate3d was chosen. Thanks for the feedback and good to hear that your find a workaround.
I will close this issue as I don't think we can do anything about it.


Use Roslyn's native .editorconfig support

EditorConfigDocumentOptionsProvider pulls options from Workspace.AnalyzerDocuments. Need to register this OptionsProvider with the OptionService during Workspace initialization.

Is this supported now?

not yet

Any timeline for implementation? It gets kind of annoying having 800 warnings that are not supposed to be there.

Any timeline for implementation?

no timeline, hopefully soon

Also looking for this, I'm assuming my issues with analyzer settings not being respected are due to this.

yes correct, when we implemented editorconfig there was no native Roslyn support yet so we had to use the VS conventions package like dotnet format did at the time


setup.py generation isnt stable

In dephell repo python3 -m dephell deps convert --traceback --from setup.py --to setup.py results in the following diff on Pythoon 3.7
diff --git a/setup.py b/setup.py
index 9c3f005..4c1c1f3 100644
--- a/setup.py
+++ b/setup.py
@@ -24,11 +24,6 @@ setup(
     version='0.7.8',
     description='Dependency resolution for Python',
     python_requires='>=3.5',
-    project_urls={
-        'homepage': 'https://dephell.org/',
-        'repository': 'https://github.com/dephell/dephell',
-        'documentation': 'https://dephell.org/docs/'
-    },
     author='Gram',
<EMAIL_ADDRESS>     license='MIT',
@@ -66,13 +61,9 @@ setup(
     extras_require={
         'full': ['aiofiles', 'autopep8', 'colorama', 'graphviz', 'yapf'],
         'tests': ['aioresponses', 'pytest', 'requests-mock'],
-        'dev': [
-            'aioresponses', 'alabaster', 'flake8-isort', 'isort[pyproject]',
-            'pygments-github-lexers', 'pytest', 'recommonmark', 'requests-mock',
-            'sphinx'
-        ],
         'docs': [
-            'alabaster', 'pygments-github-lexers', 'recommonmark', 'sphinx'
+            'alabaster', 'flake8-isort', 'isort[pyproject]',
+            'pygments-github-lexers', 'recommonmark', 'sphinx'
         ]
     },
 )

The order of the extras appears to be unsorted.
(project_urls is dropped but that may be due to the metadata not being available from parse phase)

There is something strange happening with extra dev, which I do not quite understand.
https://github.com/dephell/dephell/blob/d9b3c96/dephell/converters/setuppy.py#L148
envs = {extra} if extra == 'dev' else {'main', extra}

envs = {extra} if extra == 'dev' else {'main', extra}

Any dependency belongs either to dev or main, but not at the same time. Also, it can have additional envs: this is "extra" in pip-terms. So, what's going on here:

If extra named dev, we're saving it as dev.
If it's something like tests, we're assuming it's in main.

In other word, from setup.py dependency can be in dev only if extra named dev. When DepHell dumps dep with extra {'dev', 'tests'}, it puts deps in both extras.
Things are different a little bit with poetry. In poetry you can put dependency in either dependencies or dev-dependencies section, and then in extras point on dependency from any section.

Another thing to discuss about idempotency: we have prettying of file with yapf, black, autopep8. Maybe, something else. But the thing is all these dependencies are optional. So, output also depends on optional dependencies. However, I don't think it's a good idea to depend on anything from this list. At least while we need it only for setup.py. What do you think?

I agree it isnt a good idea to depend on python prettifiers if only needed for setup.py. https://github.com/dephell/dephell/pull/293 also adds metaextract.  Maybe it is good to have an extra setuppy, or even have a plugin system for these file formats.

We're using setup.py in resolving for reading sdists from pypi. So, we can't make it optional.


remove check for non-empty client secret.

It's valid (but probably not advisable) to have a non-empty client secret,
example currently PKS clusters authorizing via UAA contain an empty
secret, therefore this is necessary for it to work.
Signed-off-by: Paul Czarkowski<EMAIL_ADDRESS>

I am not sure that I like this, as it will likely lead to confusion.  If we do this, perhaps a good way to raise this as an issue would be to add something like InsecureEmptyClientSecret, and allow ClientSecret to be "" when that boolean is true.
And...if we go that route, we should add docs providing more color on this.

The RFC for OAuth does suggest that having an empty string client_secret is okay.
   client_secret
         REQUIRED.  The client secret.  The client MAY omit the
         parameter if the client secret is an empty string.


Be able to use word at cursor in treesitter query

In some queries it would be nice if I could use the word under the cursor as a variable

Hi @desdic , thank you for the PR. Can you please add some documentation on how to configure / use this new feature? Thank you very much.

Sure I'll add some examples on it later today :)

Thank you @desdic. Very interesting feature idea 👍


Formatter: Comprehension ifs should break if the comprehension breaks

Black breaks the if into its own line if the comprehension breaks
a = (
    aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
    for f in bbbbbbbbbbbbbbb
    if f not in ccccccccccc
)

while we don't
a = (
    aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
    for f in bbbbbbbbbbbbbbb if f not in ccccccccccc
)

Conversely, parentheses should not require the target breaking
black:
aaaaaaaaaaaaaaaaaaaaa = (
    o for o in self.registry.values if o.__class__ is not ModelAdmin
)

ours:
aaaaaaaaaaaaaaaaaaaaa = (
    o
    for o in self.registry.values if o.__class__ is not ModelAdmin
)

Fixing this requires changing the grouping strategy for comprehensions and generator expressions.

Happy to work on this. Where would the source for this be? I tried looking in comprehensions and a few other places, but couldn't find the grouping strat. Thx.

You're in the right file. The grouping of the ifs and adding the line break before it happens here. It may already be sufficient to just move the line break outside of the group.
https://github.com/astral-sh/ruff/blob/cd4147423cdcea141bd57143d6c4d930935fa4bd/crates/ruff_python_formatter/src/other/comprehension.rs#L83-L89

Additionally, you might need to look at expr_list_comp.rs/expr_dict_comp.rs/expr_set_comp.rs (they follow the same structure so i can fix one and then copy that to the others once one works). I think i tried and moving a single group wasn't enough, but it should still be doable by shuffling group()s in the right way.

Thanks @konstin will get to that too!
@MichaReiser quick question: how does soft_line_break_or_space() decide between line break or space? I assume by moving the line break outside you meant something like this?
write!(
            f,
            [
                text("for"),
                // ADD in line break here!
                trailing_comments(before_target_comments),
                group(&format_args!(
                    Spacer(target),
                    ExprTupleWithoutParentheses(target),
                    in_spacer,
                    leading_comments(before_in_comments),
                    text("in"),
                    trailing_comments(trailing_in_comments),
                    Spacer(iter),
                    iter.format(),
                )),
            ]
        )?;

soft_line_break_or_space renders a space if its enclosing group fits on a line and it renders a line break if it does not.
A group fits on a line if all its content (including nested groups) can be printed on a line without exceeding the configured line width. The way this is determined is by measuring if the groups content and any content coming after the group up to the first line break (soft or hard doesn't matter) doesn't exceed the line width.
You may also want to take a look at the documentation of the different builder methdos (like soft_line_break_or_space). Each of them comes with examples.

moving the line break outside you meant something like this?

Yeah, that's what I had in mind but it may not work (always hard to tell with formatting)

I'm not sure if this is it... but it may be worth a try.
What I understand from the issue description is that we want to break in front of the ifs if this group expands:
https://github.com/astral-sh/ruff/blob/40f54375cbdae6c4c7ae827c5d770b5056f0dde1/crates/ruff_python_formatter/src/other/comprehension.rs#L60-L69
What we can do is:

Give that group an idlet group_id = f.group_id("comprehension");
group(....).with_group_id(Some(group_id)).fmt(f)?;

Refer that ID when formatting Spacer. Instead of writing a soft line break or space, usewrite!(f, [
	if_group_breaks(&soft_line_break()).with_group_id(Some(group_id));
	if_group_expands(&space).with_group_id(Some(group_id))
])?;


Update strings.xml

@tree1891  your commits were merged into https://github.com/Vorlonsoft/AndroidRate

@AlexanderLS Hi, thank you for your address and sorry for my late...I've been busy for maintaining my other projects so that I couldn't have enough time to lead the project.
Are you interested in leading the project? If so I'd like to add you as a committer of this repo!


Don't use utils.forEach to loop over arguments

Since #91 IE8 support has been broken.
This fixes it by not using utils.forEach to loop over arguments (since in IE8 you can't reliably detect if a variable is an arguments object).

@ctimmerm would you mind rebasing your branch from master?

@mzabriskie done.


update github-action-merge-dependabot

Checklist:

[ ] Documentation
[ ] Tests
[ ] Ready to be merged

Codecov Report

Merging #1102 (9c1d6c7) into main (6adbd92) will not change coverage.
The diff coverage is n/a.

:exclamation: Current head 9c1d6c7 differs from pull request most recent head 8d2abcc. Consider uploading reports for the commit 8d2abcc to get more accurate results

@@           Coverage Diff           @@
##             main    #1102   +/-   ##
=======================================
  Coverage   99.06%   99.06%
=======================================
  Files         112      112
  Lines         860      860
  Branches      233      233
=======================================
  Hits          852      852
  Misses          8        8

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 6adbd92...8d2abcc. Read the comment docs.


Result in evaluation

I am training models in Vietnamese. I modified the character to match Vietnamese and train with the following command:
!CUDA_VISIBLE_DEVICES=0 python train.py
--select_data /
--model_name TRBA
--exp_name CRNN_aug
--Aug Blur5-Crop99
--train_data train
--valid_data val
--character 'aàảãáạăằẳẵắặâầẩẫấậbcdđeèẻẽéẹêềểễếệfghiìỉĩíịjklmnoòỏõóọôồổỗốộơờởỡớợpqrstuùủũúụưừửữứựvwxyỳỷỹýỵz0123456789'
--batch_ratio 1
After 2000 iters, the model evaluates, I wonder why the model predicts [UNK] as shown below. So is my training correct?

Thanks for your reply! I have removed these lines of test.py but [UNK] is still appear!

Umm.. Does your data only consist of your character set? aàảãáạăằẳẵắặâầẩẫấậbcdđeèẻẽéẹêềểễếệfghiìỉĩíịjklmnoòỏõóọôồổỗốộơờởỡớợpqrstuùủũúụưừửữứựvwxyỳỷỹýỵz0123456789
If your data contain an unknown character that is not included in the character set, the unknown character is converted into [UNK] by below lines.
https://github.com/ku21fan/STR-Fewer-Labels/blob/e6aa817e2eacbf29b3fcd11390d78b1a8f96bf78/utils.py#L125-L128
Can you check if your data contain unknown characters or not?

Thanks you sir, it's working


Pulling weather forecast and other weather data using the bsrch function

I am using the bsrch function is excel to pull weather data
=BSRCH("comdty:weather","provider=wsi","location=KNYC","model=actuals","target_start_date=2019-01-01","target_end_date=2019-05-10","fields=TEMPERATURE")
It does its job and pulls the data.
However, I am trying to pull the same data using the python api. Assuming that con.bsrch() functions in a similar fashion, I tried doing the same in python but that doesn't work
Even the following code returns an empty data frame
con.bsrch("comdty:weather")

However, the following example returns a list of tickers
con.bsrch("COMDTY:NGFLOW")

I am not sure why. Can someone please help me with this issue
Thanks!

Unfortunately, as discussed in https://github.com/matthewgilbert/pdblp/issues/14 this service is not documented by Bloomberg, there doesn't appear to be any information in the Bloomberg Developer Guide. Your best bet would be to set con.debug=True to try and make sense of the Bloomberg messages being returned. Unfornately if nothing is returned this has to do with the backend, so your best best would be contacting Bloomberg about this.
The only documentation I have on this is from printing the service, which shows the schema below
 Service //blp/exrsvc
    Operations = {
        OPERATION ExcelGetGridRequest = {
            Request = {
                ELEMENT ExcelGetGridRequest {
                    DESCRIPTION
                    MIN VALUES 0
                    MAX VALUES 1
                    TYPE ExcelGetGridRequest (SEQUENCE) {
                        DESCRIPTION seqExcelRequest
                        ELEMENT Domain {
                            DESCRIPTION
                            MIN VALUES 0
                            MAX VALUES 1
                            TYPE STRING
                        }
                        ELEMENT Overrides {
                            DESCRIPTION
                            MIN VALUES 0
                            MAX VALUES<PHONE_NUMBER>3709551615
                            TYPE SingleOverride (SEQUENCE)  [] {
                                DESCRIPTION seqSingleOverride
                                ELEMENT name {
                                    DESCRIPTION
                                    MIN VALUES 0
                                    MAX VALUES 1
                                    TYPE STRING
                                }
                                ELEMENT value {
                                    DESCRIPTION
                                    MIN VALUES 0
                                    MAX VALUES 1
                                    TYPE STRING
                                }
                            }
                        }
                    }
                }
            } // End Request
            Responses = {
                ELEMENT GridResponse {
                    DESCRIPTION
                    MIN VALUES 0
                    MAX VALUES 1
                    TYPE DataRecordSet (SEQUENCE) {
                        DESCRIPTION seqDataRecordSet
                        ELEMENT NumOfFields {
                            DESCRIPTION
                            MIN VALUES 0
                            MAX VALUES 1
                            TYPE INT32
                        }
                        ELEMENT NumOfRecords {
                            DESCRIPTION
                            MIN VALUES 0
                            MAX VALUES 1
                            TYPE INT32
                        }
                        ELEMENT ColumnTitles {
                            DESCRIPTION
                            MIN VALUES 0
                            MAX VALUES<PHONE_NUMBER>3709551615
                            TYPE STRING []
                        }
                        ELEMENT DataRecords {
                            DESCRIPTION
                            MIN VALUES 0
                            MAX VALUES<PHONE_NUMBER>3709551615
                            TYPE DataRecord (SEQUENCE)  [] {
                                DESCRIPTION seqDataRecord
                                ELEMENT DataFields {
                                    DESCRIPTION
                                    MIN VALUES 0
                                    MAX VALUES<PHONE_NUMBER>3709551615
                                    TYPE DataField (CHOICE)  [] {
                                        DESCRIPTION choiceDataField
                                        ELEMENT IntValue {
                                            DESCRIPTION
                                            MIN VALUES 0
                                            MAX VALUES 1
                                            TYPE INT32
                                        }
                                        ELEMENT LongValue {
                                            DESCRIPTION
                                            MIN VALUES 0
                                            MAX VALUES 1
                                            TYPE INT64
                                        }
                                        ELEMENT StringValue {
                                            DESCRIPTION
                                            MIN VALUES 0
                                            MAX VALUES 1
                                            TYPE STRING
                                        }
                                        ELEMENT FloatValue {
                                            DESCRIPTION
                                            MIN VALUES 0
                                            MAX VALUES 1
                                            TYPE FLOAT32
                                        }
                                        ELEMENT DoubleValue {
                                            DESCRIPTION
                                            MIN VALUES 0
                                            MAX VALUES 1
                                            TYPE FLOAT64
                                        }
                                        ELEMENT DateValue {
                                            DESCRIPTION
                                            MIN VALUES 0
                                            MAX VALUES 1
                                            TYPE DATE
                                        }
                                        ELEMENT TimeValue {
                                            DESCRIPTION
                                            MIN VALUES 0
                                            MAX VALUES 1
                                            TYPE TIME
                                        }
                                        ELEMENT DateTimeValue {
                                            DESCRIPTION
                                            MIN VALUES 0
                                            MAX VALUES 1
                                            TYPE DATETIME
                                        }
                                    }
                                }
                            }
                        }
                        ELEMENT ReachMax {
                            DESCRIPTION
                            MIN VALUES 0
                            MAX VALUES 1
                            TYPE BOOL
                        }
                        ELEMENT Error {
                            DESCRIPTION
                            MIN VALUES 0
                            MAX VALUES 1
                            TYPE STRING
                        }
                        ELEMENT SequenceNumber {
                            DESCRIPTION
                            MIN VALUES 0
                            MAX VALUES 1
                            TYPE INT32
                        }
                    }
                }
            } // End Responses
        } // End OPERATION
    } // End Operations
 } // End Service

I think the schema is clear. All optional parameters go into the overrides element array.
The requested formula corresponds to below request:
ExcelGetGridRequest = {
    Domain = "COMDTY:Weather"
    Overrides[] = {
        Overrides = {
            name = "provider"
            value = "wsi"
        }
        Overrides = {
            name = "location"
            value = "KNYC"
        }
        Overrides = {
            name = "model"
            value = "actuals"
        }
        Overrides = {
            name = "target_start_date"
            value = "2019-01-01"
        }
        Overrides = {
            name = "target_end_date"
            value = "2019-05-10"
        }
        Overrides = {
            name = "fields"
            value = "TEMPERATURE"
        }
    }
}

The limit in another post can be set in the same way.
And you will get below response:
GridResponse = {
    NumOfFields = 2
    NumOfRecords = 3116
    ColumnTitles[] = {
        "Reported Time", "Temperature (°C)"
    }
    DataRecords[] = {
        DataRecords = {
            DataFields[] = {
                DataFields = {
                    DateTimeValue = 2019-01-01T00:00:00.000+00:00
                }
                DataFields = {
                    DoubleValue = 6.700000
                }
            }
        }
        DataRecords = {
            DataFields[] = {
                DataFields = {
                    DateTimeValue = 2019-01-01T01:00:00.000+00:00
                }
                DataFields = {
                    DoubleValue = 6.700000
                }
            }
        }
...
...
        DataRecords = {
            DataFields[] = {
                DataFields = {
                    DateTimeValue = 2019-05-10T23:00:00.000+00:00
                }
                DataFields = {
                    DoubleValue = 22.200000
                }
            }
        }
    }
    ReachMax = true
    SequenceNumber = 0
}

Hi can someone please provide an example of the exact code with pdblp?

I have modified the original bsrch function so that the dict of overrides and it's values can be passed through it and then reinstalled the library. Here is the modified version
` def bsrch_weather(self, domain, dict_overrides):
"""
This function uses the Bloomberg API to retrieve 'bsrch' (Bloomberg
SRCH Data) queries. Returns list of tickers.
    Parameters
    ----------
    domain: string
        A character string with the name of the domain to execute.
        It can be a user defined SRCH screen, commodity screen or
        one of the variety of Bloomberg examples. All domains are in the
        format <domain>:<search_name>. Example "COMDTY:NGFLOW"

    Returns
    -------
    data: pandas.DataFrame
        List of bloomberg tickers from the BSRCH
    """
    logger = _get_logger(self.debug)
    request = self.exrService.createRequest('ExcelGetGridRequest')
    request.set('Domain', domain)

    ors=request.getElement('Overrides')

    for nm in list(dict_overrides.keys()):
        ovrd=ors.appendElement()
        ovrd.setElement('name',nm)
        ovrd.setElement('value',dict_overrides[nm])

    logger.info('Sending Request:\n{}'.format(request))
    self._session.sendRequest(request, identity=self._identity)
    data_time_stamp = []
    data_value=[]
    for msg in self._receive_events(to_dict=False):
        for v in msg.getElement("DataRecords").values():
            for f in v.getElement("DataFields").values():
                try:
                    data_time_stamp.append(f.getElementAsDatetime("DateTimeValue"))
                except:
                    data_value.append(f.getElementAsFloat("DoubleValue"))

    return pd.DataFrame({'time_stamp': data_time_stamp,'value':data_value})`

Example:
` dict_overrides={"provider":"wsi",
"location":loc,
"model":model,
"target_start_date":start_date,
"target_end_date":end_date,
"fields":fields,
}
con.bsrch_weather("COMDTY:Weather",dict_overrides)`

This is working for me. Thank you kindly !

Thanks for sharing!
Might be worth replacing the return statement with something like the below to allow for multiple "fields" to be returned
fields = dict_overrides['fields'].split('|')
fields_value = np.reshape(data_value, (-1, len(fields))).T
data = dict(time_stamp=data_time_stamp, **{k: v for k, v in zip(fields, fields_value)})
return pd.DataFrame(data)

hi - i am embarassed - but I forgot where I need to put this function (i have switch computers) which file do I insert this into to use it in my code?

Hi - I am currently getting an error now with
AttributeError: 'BCon' object has no attribute 'bsrch_weather'
I was wondering if anyone knew how this had changed?

Yea - i had to copy past some mod code. Got if working now !
On Thu, 10 Feb 2022 at 17:39, loschnauer @.***> wrote:

I think the bsrch_weather function was never part of the bdblp source
repo... Presumably you've reinstalled the package and thereby deleted the
function from your modified copy? Should work again if you copy the code
back into the BCon class of your installation,
—
Reply to this email directly, view it on GitHub
https://github.com/matthewgilbert/pdblp/issues/68#issuecomment-1035140034,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/APEIUNDAMWGOVJSL4SGDL5DU2PS2LANCNFSM4IPDJCBQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you commented.Message ID:
@.***>

@rcarvalho-ea how can you also extract IntValue from the code you posted?

@matthewgilbert maybe you know if there is a getElementAsInt function or so? As far as I’ve searched I haven’t come across one…

You could take a look at this way of generically parsing responses
https://github.com/matthewgilbert/pdblp/blob/master/pdblp/pdblp.py#L721
Potentially using the generic .getValue() would work but I haven't looked at this in some time. Barring that you can try looking at the developper docs here
https://data.bloomberglp.com/professional/sites/10/2017/03/BLPAPI-Core-Developer-Guide.pdf


fix: Request reset token sign in.

This fix corrects the implementation of request-token sign-in and verify-token sign-in. The fix ensures that users receive emails with six digit token for sign-in in their email that would expire within 60 seconds from been requested.

Description

This fix corrects the implementation of request-token sign-in and verify-token sign-in. The fix ensures that users receive emails with six digit token for sign-in in their email that would expire within 60 seconds from been requested.

Related Issue (Link to issue ticket)

Motivation and Context

How Has This Been Tested?
This has been tested with pytest and postman.

Screenshots (if appropriate - Postman, etc):

pytest

user requests for sign-in token

email received by user

user signs in with token

user tries to re-use token

Types of changes

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

[x] My code follows the code style of this project.
[x] My change requires a change to the documentation.
[x] I have updated the documentation accordingly.
[x] I have read the CONTRIBUTING document.
[x] I have added tests to cover my changes.
[x] All new and existing tests passed.

@trevorjob
kindly review


Letter spacing with \mathit

Using \mathit is very popular for long identifiers in math. Instead of having variables called a, b, and c, it is common to use speaking names wrapped in \mathit.
Now below you find an example document showing the spacing between upper case and lower case letter in math mode. The spacing of $Kasten$ or $ID$ is to be expected. There's some space between K and a or I and D. But with the old latex fonts, lmodern's \mathit is MUCH closer to \textit horizinal spacing wise. However, with unicode-math, the spacing of $\mathit{ID}$ is much closer to $ID$ than to $\textit{ID}$.
I don't know who to bother about this issue. I guess, that the horizontal spacing is part of the OTF version of lmodern's math font and that there is no version with version with spacing that would be closed to traditional \mathit. Either the lmodern people or unicode-math has to do something about it.
I guess, a workaround would be to simply use the lmodern text font instead of \mathit.
\documentclass[]{article}
\usepackage{lmodern}
%\usepackage{unicode-math}
\begin{document}
\noindent
Kasten\\ $Kasten$\\ $\mathit{Kasten}$\\ $\textit{Kasten}$\\ $\mathrm{Kasten}$\\ $\textrm{Kasten}$\\[2ex]
id\\ $id$\\ $\mathit{id}$\\ $\textit{id}$\\ $\mathrm{id}$\\ $\textrm{id}$\\[2ex]
Id\\ $Id$\\ $\mathit{Id}$\\ $\textit{Id}$\\ $\mathrm{Id}$\\ $\textrm{Id}$\\[2ex]
ID\\ $ID$\\ $\mathit{ID}$\\ $\textit{ID}$\\ $\mathrm{ID}$\\ $\textrm{ID}$
\end{document}

Just a mention that this has come up again on tex.sx
http://tex.stackexchange.com/questions/178855/fixing-mathit-spacing-with-unicode-math


Generate separate JSON schema for inputs vs. outputs

Separates generation of JSON schema for inputs (i.e., validation) and outputs (i.e., serialization).
Closes https://github.com/pydantic/pydantic/issues/5072.

please review

please update (note to self)


Add a task to install a specific package

e.g.
task installCoffeeScript (type: NpmInstallPackageTask){
  package = 'coffee-script'
  version = '1.10.0'
// or maybe package =<EMAIL_ADDRESS>and no version
}

The task should be up-to-date if the requested package is already installed in $nodeModulesDir at the requested version.

Hi.
Will cosider this to the next version.

+1

+1


New package: KhepriGrasshopper v0.1.1

Registering package: KhepriGrasshopper
Repository: https://github.com/aptmcl/KhepriGrasshopper.jl
Created by: @aptmcl
Version: v0.1.1
Commit: f3a5ba3ab89bb6b07677ad64d93caaa6e85d1239
Reviewed by: @aptmcl
Reference: https://github.com/aptmcl/KhepriGrasshopper.jl/commit/f3a5ba3ab89bb6b07677ad64d93caaa6e85d1239#commitcomment-96193592

This package has no description or documentation.
{noblock]