Manually update store then trigger form submission synchronously

It would be great if there was a way to add/update a value manually on the form, then submit the form right after. For instance, in a form that tokenizes a credit card token for Stripe, I'd like to handle the Stripe response by setting the token ID in the callback then triggering form submit. Something like this:
stripeResponseHandler = (status, response, values) => {
    if(response.error) {
      // Stuff
      this.setState({
        error: response.error.message
      })
    } else { // Token created
      this.clearError()
      // These next two lines would need to happen syncronously, the submit would need to wait for the change.
      this.props.change('customer.stripe_token', response.id)
      this.onSubmit() // Whatever function I'd normally pass to the form's handleSubmit prop
    }
  }

This is pretty standard in regular forms, and it may very well be possible with redux-form, but I've looked through similar issues and don't see anything that would work.

I'm unsure about what's the matter with the change prop, however you can use the submit action creator to submit the form.
Further example on remote submission

My current workaround is to use componentDidUpdate, and if the value I'm manually setting exists in the values, I submit the form. There's gotta be a better way though.

Like @gustavohenke said, you could
import the actions creators :
import {  submit } from "redux-form";
inject it to your component with the connect() function from react-redux
connect(mapStateToProps, {     submit,   })(Component)
and finally use it in your component like this :
stripeResponseHandler = (status, response, values) => {
    if(response.error) {
      // ...
    } else {
     // ...
      this.props.submit() // submit is injected via connect(), it will dispatch a submit action and manually submit your form when your stripe token will be set
    }
  }

@vnctaing technically I could just call this.props.handleSubmit() without needing to pass the submit action creator at all. Again, my issue isn't how to submit the form though. It's how to wait for the change('customer.stripe_token', response.id) to complete before submitting.

Well, that's doesn't seem to be wrong..
this.props.change() refer to the action creator you've just imported from import {change} from 'redux-form'; right (async action)?  If so, i do that a lot without facing any problems.

Hi @charlesrochati, if you could provide him a working example it would be awesome, so we can close the issue.

@TrevorHinesley  Sorry, I've misunderstood the question. I'm confused why do we have to wait for change() result ? Isn't an a synchronous action ?

@vnctaing change is async. Actions being dispatched are asynchronous.

Check this out #1020, it's probably your solution, there's a discussion too.
@vnctaing change is an sync action, if you take a look at the state, it gets updated correctly but redux-form somehow doesn't "see" it.
The solution (more likely a workaround) provided by the owner of this project is the following:
<form onSubmit={this.props.handleSubmit(values =>     this.props.actions.signUp({       ...values,       phoneNumber: '1231231234'     })   )}/>
I ran this test to verify:

Case 1:
onSubmit(formValues) {       this.props.changeValue('submit custom value');       this.props.formValues;   }

this.props.formValues; doesn't get updated

Case 2:
updateField() {       this.props.changeValue('some value');       this.props.formValues;   }

this.props.formValues; gets UPDATED!

try the mentioned solution, let us know if it works.

Interesting, I'm not sure how that's synchronous if it's dispatching an action, but glad to hear it.
Either way, I wrote a modified version of a util I found prior:
const SubmitUtils = {
  submitOnChange: (nextProps, val, nextVal, submitOnBlank = false) => {
    if (nextProps.dirty && nextProps.valid) {
      let doubleDirty = false;
      if (nextVal !== val) {
        if(nextVal != undefined) {
          // If it's not undefined, submit it
          doubleDirty = true;
        } else if(nextVal == undefined && submitOnBlank) {
          // If it's null or undefined, but submitOnBlank is true, submit it
          doubleDirty = true;
        }
      }
      if (doubleDirty) {
        console.log("submitted")
        nextProps.handleSubmit()
      }
    }
  }
}

export default SubmitUtils

Then I just call it from the form's componentWillReceiveProps like so:
  componentWillReceiveProps = nextProps => {
    const nextCustomer = (nextProps.customer && nextProps.customer.toJS()) || {}
    const customer = (this.props.customer && this.props.customer.toJS()) || {}
    SubmitUtils.submitOnChange(nextProps, customer.stripe_token, nextCustomer.stripe_token)
  }

Too much work for something very simple, but if it works, it works, right?!
For isolated cases, i still think that this is the best solution:
<form onSubmit={this.props.handleSubmit(values =>
  this.props.actions.signUp({
     ...values,
     phoneNumber: '1231231234'
   })
  )}/>

http://stackoverflow.com/a/36070293/981177 <-- still not convinced change is synchronous...
But yes your method could work as well!

Didn't know about this: "setState() does not immediately mutate this.state but creates a pending state transition. ... "
That's why they're appending the json directly.

@gustavohenke I think it's ready to close.


Conda and pypi deployment issues

There are a couple problems with deploying to conda and pypi following successful CI tests. Conda uploads don't seem to be working at all, and pypi uploads aren't happening for python 3.5.
Non-exhaustive list of issues with conda:

The conda recipe had some bad syntax from my changes in #926.

Non-exhaustive list of Issues with pypi:

Uploading to pypi requires readme_renderer. We're trying to install readme_renderer with conda, but this is failing in 3.5 because conda channels seem to not have a 3.5 compatible version of readme_renderer. The fix here is simply to get readme_renderer from pip (since the package itself certainly supports python 3.5).

This has largely been resolved by the above PR. The only possible issue that remains is Windows builds with Conda. Currently deciding how the handle those.

See my comment here. Despite publishing for a much shorter period of time (e.g. windows builds only since September), the conda-forge package has already eclipsed the cvxgrp-channel, and also offers AArch-support.
Generally, there are several reasons why having fewer channels for conda is recommended (e.g. solver speed), and so it's a significant benefit to have cvxpy + dependencies in conda-forge now, and for all OSes too! :)
It would be awesome IMHO if the cvxpy-maintainers were to shift their packaging efforts to the conda-forge feedstock (compare for example also how the packaging of osqp is now maintained on conda-forge) - it would only be a formality to add you as additional recipe maintainers.

Hi @h-vetinari. Thanks for the suggestion. Are you one of the maintainers of the conda-forge feedstock?
Sent with GitHawk

I'm not a maintainer of the cvxpy-feedstock itself, but I have taken care of taking care of the windows builds for cvxpy after taking care of the dependencies (scs, osqp, ecos, cvxopt, etc.), and I'm maintainer of several of those feedstocks now - in general, the barrier to recipe-maintainership is quite low; wanting to help is usually enough (which is how I ended up as one ;-)).
But pinging the maintainers @scopatz @mcg1969 as well.

Oh wow! Nice to see that someone took the Windows-SCS issue on. As you can see that has been plaguing us for a while.
I’d be happy to potentially join in on maintaining the conda-forge cvxpy feedstock. Continuing from a solid foundation there would free up some effort to really get our wheel distribution down (e.g. manylinux wheels). Let me discuss with Steven and Akshay to make sure we’re on the same page about this.
Sent with GitHawk

We also moved our anaconda osqp packaging to conda-forge as well. Every time there is a new release on the osqp-python repo, a new PR is automatically created from conda-forge bots.

Yes, you’re of course welcome to join as maintainers of the conda-forge feedstock, and we’d be perfectly happy if you move primary conda distribution over there as well.
If you care about python 3.5 specifically for some reason, though, note that conda-forge doesn’t build for that anymore. (Not sure if defaults does either.)

Note that conda-forge just doesn't build Python 3.5 packages by default.  It is possible to reenable it if you really need it for your stack

Hi all -- sorry for not responding on this for a while. I ended up getting preoccupied with other issues. I've spoken with Steven and Akshay, and we're all in agreement that shifting cvxpy's conda efforts from "cvxgrp" to "conda-forge" is a good idea. I won't have time to work on this for the next couple weeks, but it's on the to-do list.

Hey @rileyjmurray, no worries about the timeline, it's not a big rush. If you want, I could very easily open a PR to add you three as recipe maintainers - you will get occasional github pings, but that way, you could see how the game is played (so to speak) without having to do something yourself yet.
Why I came back to this issue now is that I was wondering if it would make sense to add cvxopt as a dependency within the conda-package. I ask this for example in the context of the removal of last available open-source MIP solver (#973), which is a gap that cvxopt could fill with glpk. cvxopt might be fiddly to install through pip, but the packaging of cvxopt has matured well (not least on the windows support side; plus support across 4 blas variants - mkl, netlib, openblas, blis), and I think that could be worthwhile.
What do you think?

@h-vetinari it would be great if you could add @SteveDiamond, @akshayka, and myself as maintainers.
The change #973 actually includes an explicit recommendation to install cvxopt, if a user tries to solve a MIP without an appropriate solver. I've found pip installation of cvxopt pretty seamless as of late.
That said, cvxopt is licensed under the GNU general public license. By contrast, cvxpy uses (and will continue to use) an Apache license. Having non-GPL software ship with GPL software is a delicate issue, and one that I have no serious experience with. From the GNU GPL faq, it seems that if cvxpy shipped with cvxopt, then the whole package would be considered a single program, and it would need to be distributed under the GPL.
In principle, someone could take cvxpy's apache license, and distribute a version of cvxpy under the GPL (see the Apache docs about this). I don't know how this would work, or how @SteveDiamond or @akshayka would feel about such an effort.

@rileyjmurray : @h-vetinari it would be great if you could add @SteveDiamond, @akshayka, and myself as maintainers.

Great to hear!
About the license situation: I'm no lawyer, but the libraries would still be packaged separately, under their respective licences. cvxopt would "just" be a dependency of cvxpy. I realise that this is likely too simplistic to be a completely satisfying answer, but it's (to the best of my knowledge) how pip/conda and a lot of other dependency solvers treat the question.

Unfortunately, I believe Riley is right. If we included GPL software, even through a dependency, we’d have to distribute CVXPY under GPL as well.

On conda-forge, cvxpy is currently split into cvxpy-base and cvxpy, where the latter is simply a metapackage requiring cvxpy-base and some solvers. I believe, but I am not a lawyer and am not 100% confident, that it’s fine to have cvxpy-base continue to be Apache but cvxpy be GPL.
That said, I’m not sure whether conda-forge supports different licenses for split output packages right now.

We already have this situation with ECOS, which is GPL. My view has been that since CVXPY does not strictly require these dependencies, and can and is used without them, it's fine to have CVXPY as Apache. The move to Apache was actually prompted by user requests, and those users have been satisfied with the situation.

@h-vetinari we actually used to have CVXOPT as a dependency, but dropped it because it had become a nightmare to install. I'm glad to hear the installation situation has improved. I'd be open to adding it as one of the auto-installed solvers, if we're really confident this isn't going to open a can of worms.

@SteveDiamond
Glad to hear your thoughts on this.

I'd be open to adding it as one of the auto-installed solvers, if we're really confident this isn't going to open a can of worms.

Which can of worms are we talking about? Legal? Installation issues? Both?
I can't make definitive statements on the legal situation, but I'm quite-to-very confident that the installation issues would be a thing of the past.

@h-vetinari I think the can-of-worms in question is more about respecting the wishes of other developers. @SteveDiamond mentioned that we already ship with GPL software via ECOS, but in that case we have clear communications with ECOS developers that cvxpy's ECOS dependency is fine. I imagine the CVXOPT developers would similarly be okay with cvxpy adopting CVXOPT as a dependency. However, we need to consider the CVXOPT is bundled with GLPK, and GLPK developers might have their own views here.
GLPK isn't any ordinary piece of GPL software. It's part of the official GNU Project, and as such the GLPK maintainers almost certainly take a strict stance on the GPL. I don't think we could really make a case that cvxpy could ship with GLPK and retain the Apache license. Reason being, it's extremely common for people to conflate cvxpy with a solver (tons of optimization-based academic papers contain phrases like "we used the CVX solver in Matlab" or "we used the CVXPY solver in python").  So many people wouldn't even think to check if cvxpy automatically included official GNU Project software in the form of GLPK; they would just see the Apache license, and feel that they were in the clear.
@dougalsutherland suggested distributing cvxpy under GPL, and some distinct "cvxpy-base" under Apache. I don't think that approach is viable if the distinction is purely one of an Anaconda recipe. However if there was a truly distinct Apache-licensed "cvxpybase" python package, then the main cvxpy package could be made GPL, and include "cvxpybase" as a dependency. I can think of some simple rules by which a functional "cvxpybase" package can be considered distinct from a larger "cvxpy", but that's outside the scope of this conversion. I'm open to exploring this split-package approach if @SteveDiamond and @akshayka are, but right now we probably don't have the bandwidth to plan and carry out such a project.

Looping in @martinandersen (cvxopt developer) for possible thoughts/input on making cvxopt a dependency of cvxpy (at least within conda; discussion starting here), in particular from the POV of licensing, which currently looks like an insurmountable blocker.

I'm no expert in licensing. It is basically the extension modules (including GLPK) that force us to use the GPL license. We are currently discussing different options that would allow us to switch to a different license in a future release.

This thread has pretty far exceeded its intended scope. Since there is no immediately actionable information or task here, I'm going to close it.
To summarize the various discussions:

The issues which motivated this thread have largely been fixed. I say largely because there are still bugs with AppVeyor and conda. Those issues now occur across cvxpy 1.0.x and 1.1. I'm going to open another ticket for those issues.
Thanks to @h-vetinari - Steven, Akshay and I have been added as maintainers for a conda-forge distribution of cvxpy. The plan is for us to shift conda efforts to that channel. (I might even use that as justification to close the ticket I'm about to open regarding pending AppVeyor issues, but I want to lay those issues out first.)
There has been discussion on shipping cvxpy with cvxopt, motivated by the fact that cvxopt comes with GLPK. Our of respect for the GLPK developers I believe it would be necessary to receive explicit approval before doing that, so long as cvxpy has an Apache license. I would like to provide one last remark on this topic. @martinandersen -- cvxopt is currently the only way that cvxpy interfaces with GLPK. If you plan on changing licenses or otherwise dropping the GLPK bundle, please let us know as soon as possible, so that we here at cvxpy can plan accordingly.


Update mbtiles based on new OSM Planet data

Update mbtiles whenever new OSM Planet data is available

Imposm supports the diff mode and importing changes files works however now that we see how much time rendering the vector tiles MBTiles of the whole world takes we need to think about our approach.
We cannot simply rerender the tiles, instead we would have to keep track of the changed tiles and explicitly rerender those tiles. This is quite a big feature if we would really want to do that.
Perhaps this requirement of updating the world MBTiles does no longer fit into the time budget of this project.

+1
Lower priority, FINAL milestone. If time allows...
BTW Do we know how exactly Wikimedia's kartoherian detects the dirty tiles?

WikiMedia uses osm2pgsql expiry list method:
See: https://wiki.openstreetmap.org/wiki/Tile_expire_methods
The OmniScale has some private scripts for detecting dirty tiles (which they use together with imposm3).
Some people use: Matt's ruby scripts: http://svn.openstreetmap.org/applications/utils/export/tile_expiry/
It would make sense to somehow reuse the information from the mapnik data tiles for the expiry.

I don't know where to best put this but a few things I noticed when we talked with people about the project

People care about labels and label ranks -> new idea there was using Wikipedia links of OSM data to determine importance (but that's a topic for itself)
People don't like that data in the vector tiles might be missing because it is not considered important by us
People do like that there is an open alternative to the all mighty Mapbox
It was asked pretty quickly, how the MBTiles would get updated
Disputed borders really are kind of a undecided problem. People map the border and set disputed=yes. And borders are the relations that are updated the most.
People are also interested in rendering MBTiles themselves (so making our PostGIS / export stack approachable would make also sense - it is not just for us)
Documentation will be absolutely crucial - explaining the project on the site and helping as fast as possible to get to the goal of MBTiles is important
Packaging tessera/Mapbox GL locally makes for an extrem good demo use case even though it is perhaps of limited use. One can just give the people an executable (on a branded stick?), they click on it and choose an MBTiles and voilà - a nice map rendered from own data from OpenStreetMap. This will get people talking. Docker while very powerful and actually the end goal is an additional obstacle when just trying to get started as fast as quickly (My guess is especially for Windows people)

Reopening - and removing from FINAL milestone.

yes..detaching from milestone makes more sense than closing it.
Sent from my iPhone

On 17 Nov 2015, at 17:18, Petr Pridal<EMAIL_ADDRESS>wrote:
Reopened #16.
—
Reply to this email directly or view it on GitHub.

Next step is to apply the diff updates with imposm3 to figure out how diff updates work.
Read the Golang https://github.com/omniscale/imposm3 code to find out what extra information about changed tiles (from applying the diffs) is available and how we can use that to detect dirty tiles.

Goal: On the osm2vectortiles downloads we want to have daily diffs of the data.
For each update that imposm3 does on the database we need to know a timestamp. Perhaps we can implement a INSERT  trigger that will set a new timestamp or work with row versioning directly or perhaps implement something in imposm3 to track changes directly in the database.
Once we have a timestamp information about each row we can filter for the newest changed shapes and only rerender those tiles.

Geofabrik provides minutely diffs for countries. http://download.geofabrik.de/europe.html

Hi!
some side notes based on my research in this topic:

I agree:  The quick way now to detect changes

the postgresql side with: insert , delete trigger  ( As I know not need update trigger,  - but please verify ! )  and save  the old and the new   -  geom

the delete trigger is also important!  ( you only metioned the  a INSERT trigger )

I have created some experimental imposm3 mapping types - like :  [ jobstart_datetimeutc timestamp]
(https://github.com/ImreSamu/imposm3_fieldtypes/blob/master/mapping/fieldtype_jobstart_datetimeutc.go) , maybe you can use!
important: this code not working with the current imposm3 version,  need adapting.  If you need help : ping me - and I will create a patch.

There is an interesting project : https://github.com/mapbox/tile-cover

maybe some ideas can be reused,

or temporary used in the toolchain

or implement the algorithm in the imposm3 side ( golang )

I have created some experimental imposm3 mapping types - like : jobstart_datetimeutc timestamp , maybe you can use!
important: this code not working with the current imposm3 version, need adapting. If you need help : ping me - and I will create a patch.

Thanks a lot for participating in the discussion!!
We will check that out. Sounds like what we need!

There is an interesting project : https://github.com/mapbox/tile-cover

Thanks for the golden tip! tile-cover is exactly what we need.

This issues is not needed anymore as it is now implemented and the progress is documented many other issues.


Update README.md

Description
What does your pull request fix/improve?
Related Issue
If this pull request is related to an issue, state it.
Motivation and Context
What inspired you to to make these improvements? How will your changes improve the project?
Testing Procedure
The commits should be well tested before creating a pull request. How did you test this pull request?
Screenshots(if applicable)
Post the screenshots of your improvements in action.

At least put some effort in describing the PR.


minecraft-server: add udev to LD_LIBRARY_PATH

Description of changes
Fixes "Did not find udev library in operating system", similar to https://github.com/NixOS/nixpkgs/pull/310244
Starting net.minecraft.server.Main
[18:06:31] [ServerMain/WARN]: Did not find udev library in operating system. Some features may not work.
[18:06:35] [ServerMain/INFO]: Environment: Environment[sessionHost=https://sessionserver.mojang.com, servicesHost=https://api.minecraftservices.com, name=PROD

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[x] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Oops, closed the other one thinking this included the update to 1.21. Could you cherry pick the update commit too?

Result of nixpkgs-review pr 319794 run on x86_64-linux 1

1 package marked as broken and skipped:

minecraftServers.vanilla-1-17

19 packages built:

minecraft-server (minecraftServers.vanilla ,minecraftServers.vanilla-1-21)
minecraftServers.vanilla-1-10
minecraftServers.vanilla-1-11
minecraftServers.vanilla-1-12
minecraftServers.vanilla-1-13
minecraftServers.vanilla-1-14
minecraftServers.vanilla-1-15
minecraftServers.vanilla-1-16
minecraftServers.vanilla-1-18
minecraftServers.vanilla-1-19
minecraftServers.vanilla-1-2
minecraftServers.vanilla-1-20
minecraftServers.vanilla-1-3
minecraftServers.vanilla-1-4
minecraftServers.vanilla-1-5
minecraftServers.vanilla-1-6
minecraftServers.vanilla-1-7
minecraftServers.vanilla-1-8
minecraftServers.vanilla-1-9

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/prs-ready-for-review/3032/4090


Automated Package Upgrade

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Downgrade some errors to warnings

Codecov Report

Merging #76 into zerostor will decrease coverage by 0.01%.
The diff coverage is 25%.

@@             Coverage Diff              @@
##           zerostor      #76      +/-   ##
============================================
- Coverage      56.5%   56.49%   -0.02%
============================================
  Files           231      231
  Lines         27093    27093
============================================
- Hits          15310    15307       -3
- Misses        10042    10046       +4
+ Partials       1741     1740       -1

Impacted Files
Coverage Δ

cmd/gateway/zerostor/meta/bucket_mgr.go
56.81% <0%> (-0.66%)
:arrow_down:

cmd/gateway/zerostor/meta/filemeta.go
56.11% <50%> (-0.19%)
:arrow_down:

cmd/admin-heal-ops.go
51.15% <0%> (-1.54%)
:arrow_down:

cmd/fs-v1-multipart.go
66.09% <0%> (+0.49%)
:arrow_up:

Continue to review full report at Codecov.

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


Added export date range + extra configurations

Hi,
I added the ability to export for a given date range. I also added more configuration options such as whether to use the export range functionality or the original.
Rebuilt package + updated version to 1.3... although i now see I should have made it 1.4
Thoughts?

Hi,
Thanks, I forgot to write that in version 1.3 I added a column that contains the timestamp for when the form was submitted.
Just been on holiday for a week, and before that I was ill for a week so i am a bit booked up this week but hopefully this weekend I will review and merge what you have done and make a 1.4 release :-)
cheers for the work contribution, Alan

Hi Alan,
Sounds like you need another week of holiday!
I also should have mentioned how I changed the default export
functionality. When you click the export toolbar button now it opens the
export page which has the date range options and an export button.
Also, the exported columns are delimited with commas "," instead of
semi-colons ";".
The original functionality can be restored by changing the new config
settings: "WFFM.SQLServer.SaveToDatabase.CsvDelimiter",
"WFFM.SQLServer.SaveToDatabase.ExportOptions" accordingly.
Paul
On Wed, Mar 18, 2015 at 7:55 AM, Alan Coates<EMAIL_ADDRESS>wrote:

Hi,
Thanks, I forgot to write that in version 1.3 I added a column that
contains the timestamp for when the form was submitted.
Just been on holiday for a week, and before that I was ill for a week so i
am a bit booked up this week but hopefully this weekend I will review and
merge what you have done and make a 1.4 release :-)
cheers for the work contribution, Alan
—
Reply to this email directly or view it on GitHub
https://github.com/TakeitEasyAlan/WFFM-SQL-Server-SaveToDatabase/pull/1#issuecomment-82929568
.

Hi,
I will merge in the changes, will set the default delimited to be ; so it opens in excel nicely .-)
But otherwise thanks for the contribution, and I will release it soon on the Market place :-)
Cheers, Alan

Hey Alan,
Great thanks!
That's weird. When I open it in Excel 2013 with the ";" delimiter it opens
but everything is in a single column. When I use the "," delimiter it works
as expected.
Paul
On Fri, Mar 20, 2015 at 10:08 AM, Alan Coates<EMAIL_ADDRESS>wrote:

Merged #1
https://github.com/TakeitEasyAlan/WFFM-SQL-Server-SaveToDatabase/pull/1.
—
Reply to this email directly or view it on GitHub
https://github.com/TakeitEasyAlan/WFFM-SQL-Server-SaveToDatabase/pull/1#event-260455696
.

Maybe its a danish thing, but ; works for me :-)
But thanks for making it configurable so people can choose, the module was only meant to be a quick fix until people moved to xDB but I have more and more customers that don't want to make the move.
Friday bar has started over here so its best I don't release anything now :-)

Enjoy! Cheers!
On Fri, Mar 20, 2015 at 1:57 PM, Alan Coates<EMAIL_ADDRESS>wrote:

Maybe its a danish thing, but ; works for me :-)
But thanks for making it configurable so people can choose, the module was
only meant to be a quick fix until people moved to xDB but I have more and
more customers that don't want to make the move.
Friday bar has started over here so its best I don't release anything now
:-)
—
Reply to this email directly or view it on GitHub
https://github.com/TakeitEasyAlan/WFFM-SQL-Server-SaveToDatabase/pull/1#issuecomment-84088645
.

Hi,
I have made the changes (now in the main branch) and submitted them to the market place (which can take anything from 1 hour to a week to get published), but when it is published I will announce the changes with a small blog post (and of course give you the credit for the work :-)
Once again thanks for the contribution :-)
I've also moved the config from app_data to app_config/include (can see that I was a bit busy when I created the module as there are a lot of stupid small spelling mistakes, etc)


Sequences with multiple features?

I do a lot of time series analysis using Keras and RNN layers. Generally, we have more than one feature per time step, and thus I structure my data as such:
[[[1,2], [2, 1]], [[3, 4], [2, 6]]]
where the dimensions are number_of_timesteps * number_of_features * sample_size, so in this case we have a sample of two, each with two time steps and two features at each time step. Is it possible to model this using Ludwig, and if so, how would I structure my pandas dataframe to be able to properly process this?

You have a very interesting case. Explain more, please.

I understand (and see examples of) how to structure a univariate time series in a pandas DataFrame. It looks like we simply create a space delimited object representing the sequence in each cell. However, what if we have a multivariate case, where we are interested in the interaction between the features, and thus want to pass multiple values at each timestep. I work in healthcare, so an example would be having both heart rate and blood pressure for a 24 hour period, split into one hour chunks, and were trying to predict whether or not an event happens following that 24 hour period (many to one) .That is different, unless you tell me otherwise, from creating many univariate rnn encoders.
Being able to pass a cell like the following to a rnn encoder would be very valuable: 1 2, 6 1, instead of two separate cells with separate encoders: 1 6 and 2 1

@baasman why separate cells don't work?

@baasman thanks for the detailed explanation. We are working on a multivariate timeseries input type that will do exactly for your cae (although the order of simensions will be batch_size x length of the sequence x features). It is pretty easy to implement, if someone wants to help out on this it would be great, I can give precise and easy instructions on how to go and do it.
At the same time, you can already do multivariate regression in a slightly different way. You assuming your multivariate time series has 3 dimensions, you would need to have 3 input features in your Ludwig configuration file (make sure all rows have the same length!). Each of them can be encoded separately, but if you don't want it, you can use the PassthroughEncoder by specifying encoder: passthrough or encoder: null in your YAML file, and also specify reduce: null. Then add in the combiner section of your model definition a sequence combiner (see details in the User Guide). What it does is concatenating the features among the second dimension (length of the sequence) and then providing them to a sequence encoder (all of the usual ones are available: rnn, parallel_cnn, stacked_cnn, etc.). You have to specify:
combiner:
    type: sequence
    encoder: you_choice
    ... encoder parameters ...

This works also for other types of sequential input features, if for instance you have a class assigned to each step of you time series, this approach will allow to use both.


Displaying the same SVG at different sizes on the same screen cause rendering issues

If the same SVG is displayed at two different sizes on the same screen, then it is rendered very oddly (both sizes are rendered on top of each other in both locations).

The reuse of painter is a bit of a problem, the current workaround is that you can hide this painter cache, I'll try to fix it later on.
ImageLoader {
  interceptor {
    // painterMemoryCacheConfig {
    //     maxSize(50)
    // }
  }
}


less command

less command
# 展示部分，支持分页
$ less ./filename

# 展示全部
$ less ./filename

Command Line Cheat Sheet
https://www.git-tower.com/learn/cheat-sheets/cli/

https://www.git-tower.com/learn/media/pages/cheat-sheets/cli/1073300074-1640537899/command-line-cheat-sheet-large01.png

https://www.git-tower.com/apps/tower3-mac/294-642368dc/Tower-7.2-294.zip


Adding support for NSX product

Currently NSX controllers doesn't require auth (they use CLI). Hence using BaseContext for NSX product.

LGTM


Update VertexFormat requirements for DXR Tier 1.1

DXR Tier 1.1 extends support for D3D12_RAYTRACING_GEOMETRY_TRIANGLES_DESC::VertexFormat to more formats. This change updates the documentation to reflect this. All wording was copy-pasted directly from the DXR spec.

@maamert : Thanks for your contribution! The author(s) have been notified to review your proposed change.


Add flag for number periods gathering/posting data

Number of periods is integer.
Takes -1 as default (runs perpetually) - Any -ve will do this

I've written up an issue here: https://github.com/jetstack/preflight/issues/177
I'm aware it might be slightly different from the task, however I think it's worth having the discussion there about the requirements as I think there might be a simpler implementation.

/lgtm

Looks good to me!
/lgtm
/approve


What is the relationship between the value of submaps.high_resolution and robot positioning accuracy?

hello,
I am tuning the parameter of cartographer according to https://google-cartographer-ros.readthedocs.io/en/latest/#. I want to know What the relationship is between the value of submaps.high_resolution and robot positioning accuracy?
thanks for your answer.

According to may knowledge, cartographer provide sub-pixel accuracy using ceres-scan-match. But high resolution does not always provides high positioning accuracy, as ceres-scan-match is very sensitive to initial pose and has rather small convergence domain(which means the result of scan-match is likely to diverge).

if everything is fine, resolution size impacts accuracy, the smaller the better (optimization is converged).


onlyOwner in Ownable.sol

I think the line
_;
is not necessary

Thank you for sharing.
You are referring to this line:
https://github.com/AreaWorld/ethereum-contracts/blob/4eb55b7a7f81f63caf54b6ee177ad5b017f762e2/contracts/Vendor/openzeppelin-contracts-3dadd40034961d5ca75fa209a4188b01d7129501/access/Ownable.sol#L43
This is part of code copied from OpenZeppelin Contracts and is in scope for the bounty program because you are reviewing code functionality and not typos/whitespace (typos and whitespace for copied vendor code is out-of-scope).
The line _; is intended functionality. This is part of a function "modifier". Please see the relevant documentation from Solidity: https://docs.soliditylang.org/en/v0.8.9/contracts.html?highlight=modifier#function-modifiers
By including the line _; a modifier is able to perform checks and also execute the underlying function that is modified.


How to combine with normal onPress ?

can this module respond  to normal onPress events ?

No, currently the decorators cannot handle that. If each decorator should also be able to handle normal onPress event, then their logic would have to be updated to decide whether it was just onPress or a swipe/pan. In case you only need onPress, you could easily write your own decorator for that.


fix: Provide low cost means of lines not colliding until they converge

Before:

After:

You are awesome!
I will merge, but can you first look at why the example flowchart is now rendering strange?

npm start and open http://localhost:8000/
btw: can you add here some screenshots of some typical example, how they change?

Yup, resolving.

hehe... no rush... 😉
already late here... will be back tomorrow

fixed

Before:

After:

Before:

After:

Before:

After:

For my purposes, this is what I saw.
Before:

After:

The main fix was for connections between "Thing 3" and  "Thing 4", I found that the layout engine was resilient enough to know how to layout the "Things" (pun intended) if I severed this connection, but when there were doubled + connections beside each other, it caused the weird overlapping issue. of the green and black.  But by adding a feature that was smart enough to count the connections and offset for them, it'd fix this.
FYI.

You're great!
This is now included in v1.13.0


Adding error boundary to slider stories and android slider story fix

Closes #1259
✅ Pull Request Checklist:

[ ] Included link to corresponding React Spectrum GitHub Issue.
[ ] Added/updated unit tests and storybook for this change (for new code or code which already has tests).
[ ] Filled out test instructions.
[ ] Updated documentation (if it already exists for this component).
[ ] Looked at the Accessibility Practices for this feature - Aria Practices

📝 Test Instructions:

🧢 Your Project:

@snowystinger cool, hope the ErrorBoundary setup/new package looks ok to you, thanks for doing the heavy lifting with adding a ErrorBoundary in the first place 🙏


enable font_fallbacks support

Let editor can use font fallbacks settings in themes.

Relate to https://github.com/asciidoctor/asciidoctor-pdf/issues/58

The fallback_fonts feature was previously disabled because it was breaking global styling. This was fixed in Prawn 1.2.1 as described in the following section in the release notes:
https://github.com/prawnpdf/prawn/wiki/CHANGELOG#fallback-fonts-no-longer-break-global-font-styling
It's safe to use this feature. I just confirmed it works as expected.

Thanks for fixing this, @chloerei!

I'm going to reenable the fallback_fonts in the default asciidoctor theme to use the already provided M+ 1p multilingual font. We know it doesn't cover all CJK characters, but at least it catches some for now. We'll address more complete support as part of #82.


Prevent Safari 5.0.x poll from interfering with pushState until hash change propagates

If a pushState has just occurred and the Safari poller checks to see
if the hash has changed before the hashchange propagates, then it
sees the new state as being different from the actual state, thus
triggering a pushState. This patch sets a flag (waitForPropagation)
which is cleared by an interval after the hashchange finally
propagates.
The question.. what happens if a second pushState occurs before
the hashchange propagates?

¯_(ツ)_/¯


Add a Rate Us Option

Hello, my name is A.A.D.Sailaja. I am a Tech Enthusiastic and i'm looking forward to contribute in open source projects. Here in this project i would like to add a rate us option it will allow the user to rate our website and also he can suggest us to improve if any
Can you please assign me this issue under gssoc'24

Where do you plan on adding this feature ?

@Akshatchaube01 I would like to add rate us option on navbar and I will add 5 starts and feedback box under it in an attractive way and a submit button

@Akshatchaube01 can you assign me this issue under GSSOC'24

We are not looking for this feature right now


prefix parameter in APIRouter does not work for websocket

# main.py
from fastapi import FastAPI
import myroute

import myroute
app = FastAPI()
app.include_router(myroute.router)

@app.get("/")
async def root():
    return {"message": "hello world!!"}

# myroute.py
from fastapi import APIRouter

router = APIRouter(prefix="/prefix")

# you'd expect ws://localhost:800/prefix/ws to work but only ws://localhost:800/ws connects
@router.websocket("/ws")
async def websocket_endpoint(websocket: WebSocket):

    await websocket.accept()
    await websocket.send_text("hi")
    await websocket.close()

# this works fine if you go to http://localhost:8000/prefix
@router.get("/")
def read_root():
    return {"Hello": "World"}

Description

Hi,
So with APIRouter(), the prefix path does not seem to be prepended to the websocket router path.
Not sure if its by design but if it is I feel like its quite misleading
Environment

OS: macOS Catalina 10.15.4

FastAPI Version: 0.63.0

Python version: 3.8.2

Bug confirmed.

Bug confirmed.

Done! @tiangolo

Done! @tiangolo

Hi,
Thanks for the fix @Kludex, do you know if this PR going to be merged any time soon ?

I have no idea. Let me ping @tiangolo

Hi I would like to say that this is quite important, as I would like to move code out of the main.py file, and this feature would help me to do so...

Same here, I would really appreciate this PR to be merged

I'd also highly appreciate #2640 being merged.

Hope this PR to be merged soon.

Still waiting over here as well.

Waiting too...
@tiangolo

I am also waiting for this! :)

Hello @tiangolo, I am also waiting for this bug fix. Thank you for your work :)

Hi @tiangolo, Is there any plan to merge this?

Thanks for the report @schen96!
And thanks @Kludex for the quick fix in https://github.com/tiangolo/fastapi/pull/2640! Sorry for the delay, there are lots of PRs to review. :sweat_smile:
The fix will be available in FastAPI version 0.75.2, released in a couple of hours. :rocket:


Fix internal server error in case of ARRAY type in MySQL (#17702)

Description
This commit adds support for handling array-like data in MySQL

If the data type identified by the client side is of type ARRAY it will be treated as STRING as MySQL doesn't have support for ARRAY data type

Fixes #17702
Type of change

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

How Has This Been Tested?

Manual
JUnit

Checklist:

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

/perf-test ref=rhito/feat-upload-run-artificats-to-s3

/perf-test ref=rhito/feat-upload-run-artificats-to-s3

/perf-test ref=rhito/feat-upload-run-artificats-to-s3

/perf-test ref=rhito/feat-upload-run-artificats-to-s3

Connected to MySQL db and tried the following queries -

INSERT INTO users VALUES (1025,"{{MultiSelect1.selectedOptionLabels}}","2019-10-02T00:00:00Z","2020-05-22T02:23:21Z","APPROVED","Female","https://robohash.org/velutdolore.jpg?size=100x100&set=set1","nheathwoodc@twitter.com","8407 Fairview Junction","Viewer","1995-11-28",0923144111);

Where MultiSelect1 had two values selected.
Query passes and the values are inserted like this -

Above insert with one value selected in the multiselect dropdown. Insert happens same as above. like this [""]


Added email and password fields and moved links to the right hand sid…

…e of page.

There were the following issues with your Pull Request

Commit: 7ded1de723f348811f17d89c6d4974ac3a0dbcf5
Your subject line is longer than 50 characters

Guidelines are available at https://github.com/ministryofjustice/fr-staffapp

This message was auto-generated by https://gitcop.com

There were the following issues with your Pull Request

Commit: 7ded1de723f348811f17d89c6d4974ac3a0dbcf5
Your subject line is longer than 50 characters

Guidelines are available at https://github.com/ministryofjustice/fr-staffapp

This message was auto-generated by https://gitcop.com


TagBot trigger issue

This issue is used to trigger TagBot; feel free to unsubscribe.
If you haven't already, you should update your TagBot.yml to include issue comment triggers.
Please see this post on Discourse for instructions and more details.
If you'd like for me to do this for you, comment TagBot fix on this issue.
I'll open a PR within a few hours, please be patient!

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/75250

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/83974

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/89696


How to train with GTA mels/audios

I am wondering how would I train this model using the generated GTA mels output from a Tacotron-2 model. Any advice? Thank you!

Check my forked repositories.
Already implemented it in
https://github.com/Yeongtae/tacotron2/blob/master/GTA.py
https://github.com/Yeongtae/waveglow/blob/4b1001fa3336a1184b8293745bb89b177457f09b/mel2samp.py

@Yeongtae Thanks for making this easier.  I understand that waveglow's authors think that training with GTA isn't necessary, but after reading the tacotron2 paper, it was natural to ask for this.  I think it might work better for other low resource training datasets.
So I tried using your waveglow repo's GTA.py to generate the aligned mel outputs from my trained tacotron2 model.  I used exactly the same parameters in your version of hparams.py except for the batch size (because of GPU memory limitations) when I trained my text-to-mel model.  However, I am getting this error:
Traceback (most recent call last):
  File "GTA.py", line 184, in <module>
    GTA_Synthesis(args.output_directory, args.checkpoint_path, args.n_gpus, args.rank, args.group_name, hparams)
  File "GTA.py", line 139, in GTA_Synthesis
    _, mel_outputs_postnet, _, _ = model(x)
  File "/opt/conda/lib/python3.6/site-packages/torch/nn/modules/module.py", line 493, in __call__
    result = self.forward(*input, **kwargs)
  File "/opt/conda/lib/python3.6/site-packages/torch/nn/parallel/data_parallel.py", line 152, in forward
    outputs = self.parallel_apply(replicas, inputs, kwargs)
  File "/opt/conda/lib/python3.6/site-packages/torch/nn/parallel/data_parallel.py", line 162, in parallel_apply
    return parallel_apply(replicas, inputs, kwargs, self.device_ids[:len(replicas)])
  File "/opt/conda/lib/python3.6/site-packages/torch/nn/parallel/parallel_apply.py", line 83, in parallel_apply
    raise output
  File "/opt/conda/lib/python3.6/site-packages/torch/nn/parallel/parallel_apply.py", line 59, in _worker
    output = module(*input, **kwargs)
  File "/opt/conda/lib/python3.6/site-packages/torch/nn/modules/module.py", line 493, in __call__
    result = self.forward(*input, **kwargs)
  File "/model.py", line 526, in forward
    output_lengths)
  File "/model.py", line 502, in parse_output
    outputs[0].data.masked_fill_(mask, 0.0)
RuntimeError: The expanded size of the tensor (1562) must match the existing size (1225) at non-singleton dimension 2.  Target sizes: [4, 80, 1562].  Tensor sizes: [4, 80, 1225]

I wonder where I can fix this difference in dimension?  Many thanks in advance!

@feddybear
Why do we use GTA synthesis?

Text to Mel model is hard to predict the real scale of log mel-spectrograms.
Log Mel-spectrograms have a skewed distribution in the negative direction.

Decoder and postnet are hard to predict it with linear kernel.

There is a more suitable solution.
That is normalizing log Mel-spectrograms, e.g, range in [-4, 4].

Text to Mel model is able to predict the real scale of normalized mel-spectrograms.
In addition, It makes 'text to mel model' easy to converge.

Here is my implementation for normalization to [-4, 4].
https://github.com/Yeongtae/tacotron2/blob/master/layers.py
https://github.com/Yeongtae/tacotron2/blob/master/audio_processing.py
https://github.com/Yeongtae/tacotron2/blob/master/inference.py
I referred to the code of https://github.com/Rayhane-mamah/Tacotron-2

@Yeongtae thank you for your response!
Regarding GTA, I actually cloned your repo and used it instead of the original, so there's no difference between your settings and mine except for the batch size and the number of symbols (since I'm doing a different language).  I will stop this training with GTA direction, then.
Anyway, thank you for recommending to do mel-spectrum normalization instead.  Do we have to tweak anything on waveglow side?

@feddybear
I didn't check after when I made GTA.py,
since I'm not using this code, currently.
GTA.py is just inference code to generate GTA mel from training data with trained text to mel model.

I just tested the GTP.py code.
There is no problem in my case.
Check the detail dimension of your model.
I'm sorry I can not help you.

Hi @Yeongtae regarding your comment on normalizing the mel-features in the [-4, 4] range, I was wondering why this range? and why not the usual zero-mean unit-variance range of [-1 1]? Any insight would be helpful.

In my guess, [-1, 1] is also fine.
It is because that Mamah uses this range [-4, 4] in  https://github.com/Rayhane-mamah/Tacotron-2.

Thanks for your quick comment @Yeongtae

https://github.com/begeekmyfriend/tacotron2/commit/0357bf763ec8e5aebaffa38ae7ef4adf997ed237 Here is my own implementation. Just type
bash scripts/gta_synth.sh

@Yeongtae, I wonder what made you decide to implement training with GTA mels, and why @rafaelvalle did not think it is necessary? I tried generating audio with NVIDIA's tacotron2 with the pretrained models. The sound quality was great. However, I trained the pretrained Tacotron2 model on the LJspeech data for another few epochs or so, and the quality deteriorated. My hypothesis was that this is because the waveglow model is now not fine-tuned on the exact Tacotron model used for inference. However, it seems the pretrained waveglow model was not trained on the generated aligned mels either. What are your thoughts?

Mismatch problem is one of the most important topics in researches related vocoder.
So, recent researches related vocoder take finetuning strategy using synthesized mel.
However, even without these efforts, hifi-gan produces good quality synthesized speech.


✨ Add structured meta data

Add METADATA.yaml to working group repository in order to provide the following data for #1699 in a structured way:

Group Name
Short Description
Facilitator
Members
Communication Channels

/cc @pbakaus

Hi @robinvanopstal, I'm confused what this is for. @pbakaus?

Hey @jridgewell! That's part of the effort to make the working groups more visible on amp.dev. See ampproject/amp.dev#1699 for full reference.
The information in the added META.yaml seems redundant to the README.md, GitHub teams and others but in order to have them easily importable from a central location for amp.dev we've started adding those files to every WG repository. Does that answer your question? Let me know if not 🙂


Roll engine 0235a5084389..fd269f60bfc6 (1 commits)

https://github.com/flutter/engine/compare/0235a5084389...fd269f60bfc6
git log 0235a5084389..fd269f60bfc6 --first-parent --oneline
2020-01-14<EMAIL_ADDRESS>Use Skia's CSS3 style matcher for dynamically loaded font sets (flutter/engine#15468)
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC<EMAIL_ADDRESS>on the revert to ensure that a human
is aware of the problem.
To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md

Auto-roller completed checks. About to merge.


feat: Read Csv data

This PR reads the collection of data points from the CSV. The draft implementation reads the data from the text file and prints it on the terminal.
Tasks:-

[x] Install Univocity csv Parser dependency
[x] Read the data from the txt file and print it on the terminal
[x] Configure Kotlin
[x] Add LocationFixData model class
[x] Add a feature that extracts data as a String
[x] Add a feature that extracts data using a model class.

Thanks @BumbleFlash!


Use a group to manage users

This patch created a group managed and adds all users created by this role to the group. This makes it far easier to identify old users which can then be removed and should be more reliable than looking at available  home directories.

Looks good


Tor onion socket 9735 remains closed when restarting Tor (without restarting LND)

Background
Often Tor only nodes become unreachable while still online which causes long channel downtimes and being unable to fulfill Pool bids.
Your environment

version of lnd
v0.12.1

which operating system (uname -a on *Nix)
Linux raspberrypi 5.10.17-v8+ #1403 SMP PREEMPT Mon Feb 22 11:37:54 GMT 2021
aarch64 GNU/Linux

version of btcd, bitcoind, or other backend
Bitcoin Core version v0.21.0

any other relevant environment details
RaspiBlitz with 64bit Raspberry OS, discussed in: https://github.com/rootzoll/raspiblitz/issues/1604
$ tor --version
Tor version <IP_ADDRESS>.

Steps to reproduce
starting out with a the node being reachable on Tor with lncli connect (from an other node) or to test with self:
proxychains4 nmap -p9735 LNDv3.onion
sudo apt install proxychains4 nmap
proxychains4 nmap -p9735 $(lncli getinfo|jq -c .uris|cut -d@ -f2|cut -d: -f1)

PORT     STATE SERVICE
9735/tcp open  unknown

then restart Tor without restarting lnd:
sudo systemctl restart tor

wait until the circuits are reestablished (bootstrapped 100% in Tor status)
At this point LND becomes unconnectable on port 9735
lncli connect (from an other node) shows:
[lncli] rpc error: code = Unknown desc = socks connect tcp <IP_ADDRESS>:9050->xxxx.onion:9735: unknown error host unreachable

proxychains4 nmap -p9735 $(lncli getinfo|jq -c .uris|cut -d@ -f2|cut -d: -f1)

PORT     STATE  SERVICE
9735/tcp closed unknown

Restarting lnd (without restarting Tor) with:
sudo systemctl restart lnd
restores it to be connectable again with lncli connect and the self-test:
PORT     STATE SERVICE
9735/tcp open  unknown

Expected behaviour
LND should remain connectable when Tor is restarted.
Actual behaviour
The Tor onion socket 9735 remains closed when restarting Tor without restarting LND

In the situation described above (when LND is not reachable on 9735)  found another error using lncli openchannel --connect :
When using
$ lncli openchannel --connect PUBKEY:ADDRESS --local_amt xxx --sat_per_byte x --node_key PUBKEY
[lncli] rpc error: code = Unknown desc = tor general error

Did not have the error with just lncli connect PUBKEY
and successfully opened the channel once connected with:
$ lncli openchannel --local_amt xxx --sat_per_byte x --node_key PUBKEY

Nice find! From the Tor documentation:

Once created the new Onion Service will remain active until either the
Onion Service is removed via "DEL_ONION", the server terminates, or the
control connection that originated the "ADD_ONION" command is closed.
It is possible to override disabling the Onion Service on control
connection close by specifying the "Detach" flag.

We'll want to either:

Add a healthcheck, similar to the existing bitcoind backend one, to trigger a shutdown of lnd if we lose connection to the Tor server.
Extend the Tor controller to detect the server has restarted and reconfigure the onion service.

I'll take a look at this.

I will take a look at this.

Does this mean that you cannot restart the tor daemon unless you also restart LND?

Does this mean that you cannot restart the tor daemon unless you also restart LND?

Correct.

@ProofOfKeags recently found in https://github.com/rootzoll/raspiblitz/issues/1604#issuecomment-879081756
that if we use
sudo pkill -sighup tor
instead of restarting tor with systemd
the LND port is kept alive, but the torrc is reloaded and changes are applied.

Modified the issue title to match this comment: https://github.com/lightningnetwork/lnd/issues/5166#issuecomment-813680697

Crap didn't meant to close...

Related issue: https://github.com/lightningnetwork/lnd/pull/5327


Fixed the logo redirecting problem

the problem is fixed.

fix it in home and question paper section

It has already been fixed. Thank you

The points are not being counted on thiss..
Do you know what my be the problem??


PhantomJS crashes, can't find dump anywhere

Which version of PhantomJS are you using? Tip: run phantomjs --version.
2.1.1

What steps will reproduce the problem?

Downloaded and unarchived phantomjs-2.1.1-linux-x86_64.tar.bz2 from official website

mv phantomjs-2.1.1-linux-x86_64 /usr/local/share

sudo ln -sf /usr/local/share/phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/local/bin

Which operating system are you using?
Ubuntu 16.10 (Yakkety)

Did you use binary PhantomJS or did you compile it from source?
Binary

Please provide any additional information below.
It works normally, at some random point crashes with message:

PhantomJS has crashed. Please read the bug reporting guide at
and file a bug report.
neither in /tmp nor in script's folder, I can't find crash dump.
Where are crash dumps in Ubuntu 16.10?

@turalus, you may wrap code into try catch block and if it catches error, you may save stacktrace in the file (e.g. dump.txt) using file system module. This is one solution I can suggest. And each time when script crushes or send errors, it will save information in the same file. This is what I am currently doing. You may also add some other information such as current date and time, etc.

@bologer where did you use try-catch? i am using phpstorm and i have edited C:<my_user>.PhpStorm2017.1\config\plugins\js-karma\js_reporter\karma-intellij\lib\intellijServer.js
I couldn't see the issue but it happens to me. Sometimes is ok but antoher times failed. It's a bug ghost!

@earth2016, you may wrap the whole code into the try catch block. And in case something fails, it will use catch, where you define the phantomjs.exit() to exist the running process.
This could be an example:
'use strict';
var page = require('webpage').create();
page.settings.loadImages = false;
page.settings.resourceTimeout = 20000;
page.settings.userAgent = 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.71 Safari/537.36';
try {
    page.open('https://google.com/', function (status) {
        page.viewportSize = { width: 1024, height: 900 };
        ...
    });
} catch(e) {
    console.log('Error happened.');
    console.log(e);
    phantom.exit();
}
page.onInitialized = function(){
    ...
};

Another way would be using onError callback, that catches any errors that happened within the code.
Ref: http://phantomjs.org/api/phantom/handler/on-error.html
'use strict';
var page = require('webpage').create();
phantom.onError = function(msg, trace) {
  var msgStack = ['PHANTOM ERROR: ' + msg];
  if (trace && trace.length) {
    msgStack.push('TRACE:');
    trace.forEach(function(t) {
      msgStack.push(' -> ' + (t.file || t.sourceURL) + ': ' + t.line + (t.function ? ' (in function ' + t.function +')' : ''));
    });
  }
  console.error(msgStack.join('\n'));
  phantom.exit(1);
};
page.settings.loadImages = false;
page.settings.resourceTimeout = 20000;
page.settings.userAgent = 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.71 Safari/537.36';

...


Re-land "Support Scribble Handwriting" (#96615)

Reverts #96615
@LongCatIsLooong
Fixes #61278
Original PR #75472
Migration Guide: https://github.com/flutter/website/blob/main/src/release/breaking-changes/scribble-text-input-client.md
Pre-launch Checklist

[x] I read the Contributor Guide and followed the process outlined there for submitting PRs.
[x] I read the Tree Hygiene wiki page, which explains my responsibilities.
[x] I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
[x] I signed the CLA.
[x] I listed at least one issue that this PR fixes in the description above.
[x] I updated/added relevant documentation (doc comments with ///).
[x] I added new tests to check the change I am making, or this PR is test-exempt.
[x] All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

I need to get one more fix in to land this.

the fix is in @fbcouch  could you resolve the merge conflict? I'll try relanding this.

@justinmc Friendly ping to see if you can take a look at this, thanks!

I had to revert this due to a failure, but it wasn't in the internal Google tests, it was a test added in this PR.  It failed on all of the CI platforms (Windows, Mac, Linux).  Any idea why?
Here's on of the failed runs: https://ci.chromium.org/ui/p/flutter/builders/prod/Linux framework_tests_widgets/3425/overview
01:31 +1913 ~3 -1: /b/s/w/ir/x/w/flutter/packages/flutter/test/widgets/editable_text_test.dart: multiline Scribble fields can show a vertical placeholder (variant: TargetPlatform.iOS)
══╡ EXCEPTION CAUGHT BY SCHEDULER LIBRARY ╞═════════════════════════════════════════════════════════
The following StateError was thrown during a scheduler callback:
Bad state: No element

When the exception was thrown, this was the stack:
#0      List.first (dart:core-patch/growable_array.dart:360:5)
#1      EditableTextState._updateSelectionRects.<anonymous closure> (package:flutter/src/widgets/editable_text.dart:2756:168)
#2      new _GrowableList.generate (dart:core-patch/growable_array.dart:136:28)
#3      EditableTextState._updateSelectionRects (package:flutter/src/widgets/editable_text.dart:2748:41)
#4      EditableTextState._updateSizeAndTransform (package:flutter/src/widgets/editable_text.dart:2783:7)
#5      EditableTextState._updateSizeAndTransform.<anonymous closure> (package:flutter/src/widgets/editable_text.dart:2785:49)
#6      SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1144:15)
#7      SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1089:9)
#8      AutomatedTestWidgetsFlutterBinding.pump.<anonymous closure> (package:flutter_test/src/binding.dart:995:9)
#11     TestAsyncUtils.guard (package:flutter_test/src/test_async_utils.dart:71:41)
#12     AutomatedTestWidgetsFlutterBinding.pump (package:flutter_test/src/binding.dart:982:27)
#13     WidgetTester.pumpAndSettle.<anonymous closure> (package:flutter_test/src/widget_tester.dart:668:23)
#14     WidgetTester.pumpAndSettle.<anonymous closure> (package:flutter_test/src/widget_tester.dart:662:38)
#17     TestAsyncUtils.guard (package:flutter_test/src/test_async_utils.dart:71:41)
#18     WidgetTester.pumpAndSettle (package:flutter_test/src/widget_tester.dart:662:27)
#19     main.<anonymous closure> (file:///b/s/w/ir/x/w/flutter/packages/flutter/test/widgets/editable_text_test.dart:2050:18)
<asynchronous suspension>
<asynchronous suspension>
(elided 5 frames from dart:async and package:stack_trace)

😩  I'll take a look...wonder if something that was merged to master between when I last merged to fix that PR and now broke it...at least that's a starting point

So, a bisect pointed to 55e8a2cd5bc319f9aa9f28f7e3e68ec7672d4a04, which was an engine roll (thankfully of only 1 revision) for this flutter/engine#28912 ... my guess is something about the text layout change is messing with the selection rects. I will try to look more closely at it tomorrow.


Inconsistent naming for login on sign up page

Inconsistent naming for login functionality on the Sign-up page.

Verified with Google Chrome on Windows 8.1, devel branch,  latest commit 392225a.


Update ClientActor.scala

24 timestamp

Making more changes .. I'll let you know when done

Okay thats enough for this PR .. go for it!

All done .. give it a try

pls commit ... otherwise I might never stop!


RequirementMachine: Disable redundant requirement diagnostics by default

This PR fixes an issue where we failed to muffle redundancy diagnostics involving inferred requirements (rdar://problem/92092635, rdar://problem/92122203).
But also, it disables redundant requirement diagnostics unless the user passes in the -warn-redundant-requirements frontend flag. I updated existing tests that expect to see these diagnostics to pass in this flag explicitly.
Our reasoning here is that these diagnostics are rarely useful, and furthermore, they do not fit the existing philosophy behind warnings. They do not actually indicate a potential problem with the code. We don't diagnose redundant type annotations elsewhere, for instance. Sometimes, users actually want to re-state redundant requirements for readability, because the derivation path for a redundant requirement might be far from obvious, if it involves multiple same-type requirements for example.

@swift-ci Please smoke test


feat: fn contains

Closes: #44

added tests

@haraldh this is for GDB

I would consider merging InvalidRegion and Overflow into one error at some point at least, i.e. both InvalidRegion.

@npmccallum please approve asap


[Spark-21541][YARN]: Spark Logs show incorrect job status for a job that does not create SparkContext

If you run a spark job without creating the SparkSession or SparkContext, the spark job logs says it succeeded but yarn says it fails and retries 3 times. Also, since, Application Master unregisters with Resource Manager and exits successfully, it deletes the spark staging directory, so when yarn makes subsequent retries, it fails to find the staging directory and thus, the retries fail.
Added a flag to check whether user has initialized SparkContext. If it is true, we let Application Master unregister with Resource Manager else, we do not let AM unregister with RM.
How was this patch tested?
Manually tested the fix.
Before:

After:

Please review http://spark.apache.org/contributing.html before opening a pull request.

Can one of the admins verify this patch?

ok to test

Test build #80005 has started for PR 18741 at commit 0e4228c.

Test build #80005 has finished for PR 18741 at commit 0e4228c.

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

Merged build finished. Test PASSed.

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

+1


Add Dockerfile.

This is a simple Dockerfile to build icicle-emu.
Test by running:
docker build -t icicle-emu .
Then
docker run -it --rm \
 -v <YOUR SYSROOT>:/target \
 -e ICICLE_SYSROOT=/target \
 -e ICICLE_ARCH=<YOUR ARCH>\
 icicle-emu \
 ./target/release/afl-icicle-trace \
 <YOUR TARGET>

Contributed by Research Innovations Inc.

Icicle uses the environment variable GHIDRA_SRC to access the sleigh files, you may want to include that to the docker file.
https://github.com/icicle-emu/icicle-emu/blob/master/icicle-vm/src/builder.rs#L475

Thanks for the PR.
Did you have a particular use-case in mind for using Icicle in Docker? My expectation, is that in its current state, it is more usable as a library.
Additionally, at the moment, I maintain some SLEIGH patches for issues I encountered running certain binaries (mostly x86-64 and MSP430): https://github.com/icicle-emu/ghidra -- which still need to be up-streamed (though it has been a while since I last rebased the patches, so some could be fixed) -- so it might make sense to use that repo instead (I know most MSP430X binaries will fail to run without the patches).

My primary use-case is for offline development. I install the toolchain and dependencies in docker then move the image over.
I can update the Ghidra source!

Thanks for the context. I'm happy to merge it with the Ghidra source updated. Long term, it would be good to upstream the patches and go back to the base Ghidra repo, but for now using the patched repo what I recommend since it is the most well tested option.


Citation

Check:

Authors missing?
Change author order?
Name spelling ok?
Orcid IDs correct?

❤
S

Neat! Great idea! :dancers:


ARROW-17813: [Python] Nested ExtensionArray conversion to/from pandas/numpy

ARROW-17813

cc @emkornfield

To me this PR looks good to go. I just added a comment on ARROW-17535 to see whether we are OK with this for to_pandas, while that JIRA argues for a more complex solution to honor the ExtensionType's custom conversion.

@milesgranger the failures here are actually related

Sorry I'll reply on the JIRA, but I think this is a good step, I don't have a good solution for introducing the more complex behavior without breaking compatibility other then making it an additional argument.  We can discuss more on the JIRA.


2.3.3 cluster configration

I install crate 2.3.3 cluster（3nodes ) on centos 6.5 and has some mistakes.
Can you provide a cluster installation and configration  manual or tutorial.
Thanks.

Our documentation and guide should get you started. If setting up a cluster is still too difficult you may be interested in our cloud offering

Intranet datacenter  not the public internet!
show me some tutorial .
thanks.

make poc


Add missing scoped repo's and dbContext to startup.cs for WebApiSample.Api.22

Fixes #11424
Added the missing portion of AddScoped & AddDbContext for Products and Pets to the ConfigureServices method, including the associated using statements.

@jstott Thank you for taking the time to fix this!


App despises blender?

tried to make a group with all of my drafting / doodling apps, and it for one, refuses to load blender into the lists ( i had to delete the group that contained blender) and, assuming the image loaded right, it now repeats information about blender in a pop up tab every time i open it?

Also the first time i downloaded this and tried to make this same folder all of my shortcuts became red X things?

Thats because TB is looking for blender where there's nothing, to fix this, you'll need to open the ObjectData.xml in the hidden config folder, then manually set your blender path, note that if you're using the microsoft store, you might need to set yourself as the owner of the Windows apps folder as well.


[Greenhouse] Build Integration with Folks Finance gALGO

Prizes
1st Place - 10,000 ALGO
2nd Place - 7,500 ALGO
3rd Place 5,000 ALGO
Challenge Description
Folks Finance is a capital markets protocol for borrowing and lending on Algorand. In addition we offer the ability for users to participate in Algorand Governance.

In order to be a governor, the current model requires users to commit their ALGO for a 3 month period. During this time, users must maintain their ALGO balance above their committed amount in order to be eligible for rewards. This means that users’ ALGO are illiquid and effectively locked.

Folks Finance Liquid Governance aims to solve this problem by introducing a new token called gALGO, minted one-to-one with committed ALGO used in governance. Users can access their gALGO freely and utilize them as they wish within the Algorand ecosystem: as collateral on Folks Finance, liquidity on DEXs, to purchase NFTs, etc.

The task is build something that integrates with Folks Finance Liquid Governance and/or gALGO. Be creative! Here are some possible ideas:

A no-loss lottery for minting gALGO. Rewards can be paid out weekly via the early claim functionality.
Live analytics for how gALGO is being used in the ecosystem. DEX volumes, collateral usage, NFT purchases etc.
Your own suggestion -  it is recommended to ask for approval from us beforehand.

Submission Requirements

Completed GitHub repository linked in your Gitcoin submission.
A demo is strongly recommended (video/live dApp etc.).
Markdown file (README.md) explaining how to set up the project, architecture, and how the project works (which SDK functionality you've used where).
Smart contracts must be ABI complaint and preferablly written in PyTeal.

Judging Criteria

Utility/Value - How much value will this bring to the Folks Finance community?
Creativity and feasability  - how creative is the idea whilst still remaining feasible
Is the code and repository well-organized and documented? Does it adhere to language-specific style guidelines?
Guidance for users (README.md)

Winner Announcement Date
Hackathon ends on August 22nd with winners announced on September 7th.
Resources
The Folks Finance Liquid Governance page can be found here here.

The Folks Finance Liquid Governance smart contracts are ABI compliant - see their specs.  In addition the JavaScript SDK includes the transactions for all the different operations.

For questions, reach out to Folks Finance on Discord.

Can you update the bounty with the prize structure so it shows on gitcoin? https://gitcoin.co/issue/29136
Prizes
1st Place - 10,000 ALGO
2nd Place - 7,500 ALGO
3rd Place 5,000 ALGO
Thanks!

@joe-p done, thanks

@joe-p can you please sync the issue on gitcoin? I fixed a broken link

@gidonkatten Just synced the issue


one area where smallfile's python interpreter isn't fast enough - readdir

I was trying to re-check whether python itself is becoming a bottleneck for smallfile, and specifically I wanted to see if pypy3 was better than python3 and could keep up with the "find" utility for reading directory trees.  Initially pypy3 would not run because of a new dependency on PyYAML, but when I commented out the YAML parsing option in smallfile (just 2 lines), pypy3 worked fine.
So I created a tree containing 1 million 0-byte (empty) files using a single smallfile thread, and then tried doing the smallfile readdir operation both with pypy and with python3, and then compared it to the same result with the "find" utility.  No cache-dropping was done, so that all the metadata could be memory-resident.  While this may seem an unfair comparison, NVDIMM-N memories can provide low response times similar to this, and in addition cached-storage performance is something we need to measure.    So the 3 commands were:
python3 ./smallfile_cli.py --threads 1 --file-size 0 --files 1048576 --operation readdir
pypy3 ./smallfile_cli.py --threads 1 --file-size 0 --files 1048576 --operation readdir
find /var/tmp/smf/file_srcdir/bene-laptop/thrd_00 -type f  | wc -l

The results were:
test      thousands of files/sec
----      ---------------------------
python3   160
pypy3     352
find      1000

Are all 3 benchmarks doing the same system calls?  When I used strace to compare, smallfile was originally at a disadvantage because it was doing system calls to see if other threads had finished.  Specifically it was looking for stonewall.tmp in the shared network directory every 100 files.  This is not a big deal when doing actual file reads/writes, but for readdir this is a significant increase in the number of system calls.  Here's what smallfile was doing per directory:
5693  openat(AT_FDCWD, "/var/tmp/smf/file_srcdir/bene-laptop/thrd_00/d_001/d_002/d_008", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 8
5693  fstat(8, {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
5693  getdents(8, /* 112 entries */, 32768) = 5168
5693  getdents(8, /* 0 entries */, 32768) = 0
5693  close(8)                          = 0
5693  stat("/var/tmp/smf/network_shared/stonewall.tmp", 0x7ffc19b899e0) = -1 ENOENT (No such file or directory)
5693  stat("/var/tmp/smf/network_shared/stonewall.tmp", 0x7ffc19b899e0) = -1 ENOENT (No such file or directory)
5693  stat("/var/tmp/smf/network_shared/stonewall.tmp", 0x7ffc19b899e0) = -1 ENOENT (No such file or directory)
5693  stat("/var/tmp/smf/network_shared/stonewall.tmp", 0x7ffc19b899e0) = -1 ENOENT (No such file or directory)
5693  stat("/var/tmp/smf/network_shared/stonewall.tmp", 0x7ffc19b899e0) = -1 ENOENT (No such file or directory)

By adding the parameter "--stonewall Y" we get rid of the excess stat() system calls and the sequence per directory then becomes optimal.  Rerunning the tests with this parameter, we get:
test      thousands of files/sec
----      ---------------------------
python3   172 (was 160)
pypy3     380 (was 352
find      1000

Here's the system call pattern for the "find" command:
fcntl(9, F_DUPFD_CLOEXEC, 0)            = 4
newfstatat(9, "d_009", {st_mode=S_IFDIR|0775, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0
openat(9, "d_009", O_RDONLY|O_NOCTTY|O_NONBLOCK|O_NOFOLLOW|O_CLOEXEC|O_DIRECTORY) = 6
fstat(6, {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
fcntl(6, F_GETFL)                       = 0x38800 (flags O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_NOFOLLOW|O_DIRECTORY)
fcntl(6, F_SETFD, FD_CLOEXEC)           = 0
newfstatat(9, "d_009", {st_mode=S_IFDIR|0775, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0
fcntl(6, F_DUPFD_CLOEXEC, 3)            = 10
getdents(6, /* 102 entries */, 32768)   = 4848
getdents(6, /* 0 entries */, 32768)     = 0
close(6)                                = 0

So the find utility is actually making more system calls.
pypy3 and python3 are both using 100% CPU according to "top", which means they are using up a whole core and can't go any faster.  Most of their time is spent in user space not system space.  Yet even pypy3 is 1/3 the speed of "find".
So what conclusion do we draw from this?  Perhaps smallfile and other utilities will need to be rewritten in a compiled language for greater speed, in order to keep up with modern storage hardware.

python is evolving to be significantly faster, although this will not happen immediately.   see the article discussing python plans here.


Hang on repository load.

I'm experimenting with the wrapper and this line
$movie = $repository->load(550);

Is causing the whole page to hang on localhost,
This is the error code
Uncaught exception 'Guzzle\Http\Exception\CurlException' with message '[curl] 6: Could not resolve host: api.themoviedb.org

This is my code.
$token  = new \Tmdb\ApiToken('API_TOKEN');
$client = new \Tmdb\Client($token);
$repository = new \Tmdb\Repository\MovieRepository($client);
$movie = $repository->load(550);

Any idea what might be going wrong? Thanks!

Please make sure your DNS settings are valid, as the exception message tells you the domain can't be resolved.

@notflip did you manage to get this issue fixed? :)

Yes I did! I think the issue was my vagrant box that didn't have the required dependancies!
Thank you for this great plugin!

Sounds like you had your network configured improperly for external access. did you add the proper configuration in your Vagrantfile?
https://docs.vagrantup.com/v2/networking/public_network.html


dart.exe crashes

Getting this exception when running coveralls on my package:
https://github.com/frankpepermans/rxdart/blob/master/.travis.yml
Exception
ProcessException: There was a critical error.

I'm not sure what to do with this? :)  This is a year and a half old now, so I think we can close this?
Please file a new issue if you're still seeing any trouble!  0.5.0 was just published today and should work with the latest dart.

@nilsdoehring can you close, I don't see to have permissions. :)


Canonicalize targets of clean command.

This is impeding our ability on the ANGLE project to use GN with Visual Studio:
https://bugs.chromium.org/p/chromium/issues/detail?id=791295
Thanks for any suggestions.

@nico @sgraham PTAL


Supporting "default" class

Say you have a binary classification task. I've seen many use-cases in which the model should predict the negative by default unless an example hits a bunch of positive LFs.
However, if you only have positive LFs, then the Snorkel model seems to always predict positive.
Have others run into this? Am I missing something?
One potential solution would be to add an LF for the default class that votes True for all examples so as to default the predictions towards the default class.

Which model are you talking about?
If the LabelModel: there is a class balance that can be set, and also a default "tie breaker" setting to specify which way to break ties (e.g. if all the LFs abstain) in the Scorer class; please see the API documentation for details.
If the end model: then yes, different approaches need to be taken to handle labeled data that is only e.g. positive or unlabeled (which is often referred to as the "PU learning" setting).
Either way, more detail would help here!


Keypad show wrong value after dynamic change value by jquery

Describe the bug
Let's say we have a Form with many input text boxes include an input with keypad plugin set.
Step 1: Using keypad to input any number. For example: 123
Step 2. In some situation of the form process, we use Jquery to set value for that keypad input to: 1000
$("#exampleID").val(1000);
Step 3. Using keypad, click backspace key (←)
It not do anything, the value still 1000 and throw an error in console log:

Expected behavior
I expect the value will be: 100
Desktop (please complete the following information):

OS: [MacOS]
Browser [Chrome]
Metro Version [e.g. 4.4.2]
(But I believe this happen at all Os or browser of Desktop or Smartphone

create pen with your code on codepen.io

to set value for keypad, use
Metro.getPlugin(element, 'keypad').val(...);

Method val() from jquery not triggered event change, so to set value from outside, you must use the component method val.
In 4.4.3 I fixed value type mismatch? when the user clicks on the symbol delete button.


Module 7: AAD portal change

Contact Details
No response
What happened?
Exercise: 03
Task: 02
Steps: 06 and 07
Description of issue:
To add the role there is no longer need to select Next (step 6) and assign (step 7). Just "Add". Instead of selecting "assign" in step 7, we might need to click "Refresh" until the role appears.
Lab
Lab 07 Exercise 03 Create a Scheduled Query
Relevant screenshots

Do you want to help us? 👏

[ ] Create a Pull Requestt by following this project's Contribution Guide

Updated.


Add contact us email

📋 Description

🔨 Changes Made
fixes #263

created the backend API for sending mails to the  admin
Updated the frontend component to make the call to the backend API and handle the cases respectively.

✅ Checklist
Before submitting the PR, please make sure you have completed the following:

[X] My code follows the style guidelines of this project.
[X] I have performed a self-review of my own code.
[X] I have commented my code, particularly in hard-to-understand areas.
[X] I have made corresponding changes to the documentation (if applicable).
[X] My changes generate no new warnings.
[X] I have tested it locally and it works fine.
[X] Any dependent changes have been merged and published in downstream modules.

🏷 Types of Changes
What type of changes does your code introduce? (Check all that apply)

[ ] Bug fix (non-breaking change which fixes an issue) 🐛
[X] New feature (non-breaking change which adds functionality) ✨
[ ] UI enhancement (non-breaking change which enhances UI) 🎨
[ ] Documentation update 📚

🤝 Related Issues

Fixes #263

📸 Screenshots (if applicable)

https://github.com/user-attachments/assets/0d58060b-10d1-4378-b7af-b5be67fb8071

Thank you for contributing to Truth-Tunnel! We look forward to reviewing your PR and getting it merged!

hey @MitulSonagara please finalize this PR

@MitulSonagara please check!


Lazy loading of 3HP biorefinery

Issue
A LazyPkg object is currently being used for lazy loading of the 3HP biorefinery. The problem with LazyPkg objects is that they attempt to load everything before an ImportError is issued. Also, it is difficult to discern loading conflicts between different modules.
Solution
Best to use Python's module-level getattr instead, which offers greater flexibility and prevents attempting to load everything when before an ImportError is issued. Additionally, it would be possible to lazy load different biorefinery configurations more easily.
Examples
Lazy loading using getattr is used in the sugarcane biorefinery. Once implemented, we should be able to do the following:
from biorefineries import HP

# All these would be loaded on demand without conflicts.
HP.hp_sys
HP.hp_sys_sugar_feedstock
HP.hp_sys_sugarcane_feedstock

Priority for this is low, but it would be nice to fix.

Fixed!


no viable overloaded '=' error in map_rect compilation

Summary:
When I try to compile a Stan program with a map_rect function, I get a no viable overloaded = when trying to assign a part of a vector to a real array.
Description:
I have a map_rect function that unpacks a lot of parameters from vectors passed to the function. For some reason, one of these lines of code is failing with cmdstan 2.2.22 at the linking stage. The output from the console is:
clang++ -std=c++1y -Wno-unknown-warning-option -Wno-tautological-compare -Wno-sign-compare -D_REENTRANT       -I stan/lib/stan_math/lib/tbb_2019_U8/include -O3 -I src -I stan/src -I lib/rapidjson_1.1.0/ -I stan/lib/stan_math/ -I stan/lib/stan_math/lib/eigen_3.3.3 -I stan/lib/stan_math/lib/boost_1.72.0 -I stan/lib/stan_math/lib/sundials_5.1.0/include    -DBOOST_DISABLE_ASSERTS      -c -include-pch stan/src/stan/model/model_header.hpp.gch -x c++ -o idealstan_stan_code.o idealstan_stan_code.hpp
In file included from idealstan_stan_code.hpp:1:
In file included from stan/src/stan/model/model_header.hpp:15:
In file included from /Users/rmk/cmdstan/stan/src/stan/model/indexing.hpp:7:
/Users/rmk/cmdstan/stan/src/stan/model/indexing/lvalue.hpp:51:5: error: no
      viable overloaded '='
  x = std::forward<U>(y);
  ~ ^ ~~~~~~~~~~~~~~~~~~
idealstan_stan_code.hpp:3307:5: note: in instantiation of function template
      specialization 'stan::model::assign<std::__1::vector<stan::math::var,
      std::__1::allocator<stan::math::var> >, std::__1::vector<double,
      std::__1::allocator<double> >, void>' requested here
    assign(Y_cont, nil_index_list(),
    ^
idealstan_stan_code.hpp:14576:8: note: in instantiation of function template
      specialization
      'idealstan_stan_code_model_namespace::overT<stan::math::var,
      stan::math::var, double>' requested here
return overT(allparams, s_pars, allcontdata, allintdata, pstream__);
       ^
/Users/rmk/cmdstan/stan/lib/stan_math/stan/math/rev/functor/map_rect_reduce.hpp:33:13: note:
      in instantiation of function template specialization
      'idealstan_stan_code_model_namespace::overT_functor__::operator()<stan::math::var,
      stan::math::var, double>' requested here
          = F()(shared_params_v, job_specific_params_v, x_r, x_i, msgs);
            ^
/Users/rmk/cmdstan/stan/lib/stan_math/stan/math/rev/functor/map_rect_concurrent.hpp:40:23: note:
      in instantiation of member function
      'stan::math::internal::map_rect_reduce<idealstan_stan_code_model_namespace::overT_functor__,
      stan::math::var, stan::math::var>::operator()' requested here
      job_output[i] = ReduceF()(shared_params_dbl, value_of(job_params[i]),
                      ^
/Users/rmk/cmdstan/stan/lib/stan_math/stan/math/prim/functor/map_rect.hpp:174:20: note:
      in instantiation of function template specialization
      'stan::math::internal::map_rect_concurrent<1,
      idealstan_stan_code_model_namespace::overT_functor__, stan::math::var,
      stan::math::var>' requested here
  return internal::map_rect_concurrent<call_id, F, T_shared_param, T_job_param>(
                   ^
idealstan_stan_code.hpp:17067:15: note: in instantiation of function template
      specialization 'stan::math::map_rect<1,
      idealstan_stan_code_model_namespace::overT_functor__, stan::math::var,
      stan::math::var>' requested here
              map_rect<1, overT_functor__>(dparams, varparams, cont_shards,
              ^
idealstan_stan_code.hpp:24217:14: note: in instantiation of function template
      specialization
      'idealstan_stan_code_model_namespace::idealstan_stan_code_model::log_prob<false,
      false, stan::math::var>' requested here
      return log_prob<propto__,jacobian__,T_>(vec_params_r, vec_params_i...
             ^
/Users/rmk/cmdstan/stan/src/stan/model/model_base_crtp.hpp:95:50: note: in
      instantiation of function template specialization
      'idealstan_stan_code_model_namespace::idealstan_stan_code_model::log_prob<false,
      false, stan::math::var>' requested here
    return static_cast<const M*>(this)->template log_prob<false, false>(theta,
                                                 ^
idealstan_stan_code.hpp:14654:3: note: in instantiation of member function
      'stan::model::model_base_crtp<idealstan_stan_code_model_namespace::idealstan_stan_code_model>::log_prob'
      requested here
  ~idealstan_stan_code_model() { }
  ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/vector:554:13: note:
      candidate function not viable: no known conversion from 'vector<double,
      allocator<double>>' to 'const vector<stan::math::var,
      allocator<stan::math::var>>' for 1st argument
    vector& operator=(const vector& __x);
            ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/vector:574:13: note:
      candidate function not viable: no known conversion from 'vector<double,
      allocator<double>>' to 'vector<stan::math::var,
      allocator<stan::math::var>>' for 1st argument
    vector& operator=(vector&& __x)
            ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/vector:578:13: note:
      candidate function not viable: no known conversion from
      'std::__1::vector<double, std::__1::allocator<double> >' to
      'initializer_list<std::__1::vector<stan::math::var,
      std::__1::allocator<stan::math::var> >::value_type>' (aka
      'initializer_list<stan::math::var>') for 1st argument
    vector& operator=(initializer_list<value_type> __il)

The relevant section from the .hpp file is here:
current_statement__ = 1105;
    validate_non_negative_index("Y_cont", "N_cont", N_cont);
    std::vector<local_scalar_t__> Y_cont;
    Y_cont = std::vector<local_scalar_t__>(N_cont, 0);

    current_statement__ = 1105;
    assign(Y_cont, nil_index_list(),
      rvalue(allcontdata,
        cons_list(index_min_max(1, N_cont), nil_index_list()), "allcontdata"),
      "assigning variable Y_cont");

This file does compile in Rstan 2.19. I have tried with both the stanc3 and stanc2 compiler and still got the same error. I am having some issues of bugs in the program in Rstan, so I'm not sure if those are causing compiler failure with cmdstan as well.
The original section of the Stan code is as follows:
real Y_cont[N_cont] = allcontdata[1:N_cont];

where allcontdata is a real[] vector passed to the map_rect function call.
Reproducible Steps:
I wish I could easily reproduce this but it's quite a lengthy stan file. I can try to create one if necessary.
Current Output:
Console output is above.
Expected Output:
Just compilation is what I am aiming for.
Additional Information:
Running on Mac OS X Mojave 10.14.3 with clang.
Current Version:
v2.22

@saudiwin - could you please send the smallest possible program which triggers this error?  that would be a huge help.
in CmdStan 2.22.1 (current release) or current CmdStan develop, could you try doing
make clean-all and then trying to recompile?

For a related stanc3 issue, see:  https://github.com/stan-dev/stanc3/issues/441
This isssue, if verified, should be moved to the stanc3 repo.

So it turns out this was pretty easy to debug. The issue is that if I attempted to splice an array of reals and assign to another array of reals, I got the error above when doing so within a map_rect function. When I instead assigned a splice of an array to a vector using to_vector, no error reported.
In other words, the difference between:
functions {

   vector overT(vector allparams, vector s_pars,
               real[] allcontdata, int[] allintdata) {

                 real log_prob;
                 int K = num_elements(allcontdata);
                 real error_vec[K] = allcontdata[1:K];

              return [log_prob]';
          }
}

data {
  int S; // number of shards
  int S_int; // shard length for integers
  int S_cont; // shard length for reals
  int int_shards[S,S_int]; // integer shards
  real cont_shards[S,S_cont]; // real shards
}

parameters {
  vector[S] static_vec;
  vector[1] dyn_vec[S];

}

model {

  target += sum(map_rect(overT,static_vec,dyn_vec,cont_shards,int_shards));

}

and
functions {

   vector overT(vector allparams, vector s_pars,
               real[] allcontdata, int[] allintdata) {

                 real log_prob;
                 int K = num_elements(allcontdata);
                 vector[K] error_vec = to_vector(allcontdata[1:K]);

              return [log_prob]';
          }
}

data {
  int S; // number of shards
  int S_int; // shard length for integers
  int S_cont; // shard length for reals
  int int_shards[S,S_int]; // integer shards
  real cont_shards[S,S_cont]; // real shards
}

parameters {
  vector[S] static_vec;
  vector[1] dyn_vec[S];

}

model {

  target += sum(map_rect(overT,static_vec,dyn_vec,cont_shards,int_shards));

}

The latter compiles while the former does not (with the error mentioned above).

@saudiwin : Thanks for the follow up.
Was the former model wrong?  If so, the parser should catch it and provide a meaningful error message, not just fail in the C++ compilation.

No, neither model gets any compiler warnings. Both models compile in older versions of stan (rstan 2.19.3 on Stan right now can compile it fine).
I should mention that I compiled them with cmdstan 2.22 on Mac OS X Mojave 10.14 with the latest clang (version 11).
The model had other issues but these proved to unrelated to the compiler warnings above. The two Stan files I posted above have nothing in them other than enough to reproduce the error. As I mentioned, I can go along with business as normal by switching from reals to vectors, although I may have to do a later switch in the code if I need an array of reals. So it would be great if y'all could look into this.

Thanks for the clarification.  We'll definitely look into it.  There are
lots of new compiler bug fixes that need to get done ASAP.
On Thu, Mar 12, 2020 at 2:29 AM Robert Kubinec<EMAIL_ADDRESS>wrote:

No, neither model gets any compiler warnings. Both models compile in older
versions of stan (rstan 2.19.3 on Stan right now can compile it fine).
I should mention that I compiled them with cmdstan 2.22 on Mac OS X
Mojave 10.14 with the latest clang (version 11).
The model had other issues but these proved to unrelated to the compiler
warnings above. The two Stan files I posted above have nothing in them
other than enough to reproduce the error. As I mentioned, I can go along
with business as normal by switching from reals to vectors, although I may
have to do a later switch in the code if I need an array of reals. So it
would be great if y'all could look into this.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/stan-dev/cmdstan/issues/835#issuecomment-598028286,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAZ2D7YIX3NZSBHOHUDWCL3RHB6OBANCNFSM4K7ECTVA
.

I am happy to report that this compiles with the latest version of cmdstan (release candidate https://github.com/stan-dev/cmdstan/releases/tag/2.23-candidate)
Tried with both g++ and clang on Ubuntu and both compiled. so closing this. If this still occurs for you it might be an OS thing, but I doubt that.


Update to score G from score D

In order for this to work, the PBF files for both the high and low zoom tiles will require the Score G key. This can be validated by running the following on the high and low zoom tiles.
TL;DR - an example of a low zoom tile (the z value in the url is 3):
curl https://d3jqyw10j8e7p9.cloudfront.net/data-pipeline/data/score/tiles/low/3/1/3.pbf -o d3_313.pbf

tippecanoe-decode d3_313.pbf 3 1 3 | jq

The output of tippecanoe-decode should have Score G key in the payload.
The same should happen with a high zoom tile.

@lucasmbrown-usds the Score G has no percentile, i.e it's just a boolean.:
| Score G (communities) | Score G |
| True                  | 1       |

@vim-usds that means the code in this PR won't work. Let's connect when you're up.


TextEdit::singleline() and multiline() invisible

Describe the bug
adding a TextEdit::singleline() or multiline() add up the space ad shows the caret on the cursor, but is not visible nor clickable
To Reproduce
Steps to reproduce the behavior:

Make a minimal project (for example, the eframe example)
Add ui.text_edit_singleline() (or multiline)
Compile
Nothing appears

Expected behavior
I expect a text editor to appear and be usable, but there's nothing.
Screenshots

Desktop (please complete the following information):

OS: Windows
Browser
Version master branch

Additional context
I tried using add() and text_edit_singleline, but none of them work.

Does the hello_world example work for you?

Same problem. Input does not appear
El mar., 6 dic. 2022 20:42, Emil Ernerfeldt @.***>
escribió:

Does the hello_world
https://github.com/emilk/egui/tree/master/examples/hello_world example
work for you?
—
Reply to this email directly, view it on GitHub
https://github.com/emilk/egui/issues/2403#issuecomment-1339915373, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ATURZ3ZTOAF7KOMXB3SDT63WL6JJVANCNFSM6AAAAAASVU4VII
.
You are receiving this because you authored the thread.Message ID:
@.***>

That is very weird. I think it is up to you to debug this, since it works on my computer

also happening under WSL

If I put a default text it appears and I can select it, but cannot modify it tho.

Looking at your code I see the mistake.
You declared text inside the update() function and then you want to modify it with the singelline(), well that kind of works, it it isn't. If memory serves me well when you want to modify text in the singleline it will be reflected only for one frame. Then you reinitialize text inside the update() functions and so on.
That's why you can't change it.
Move it into your struct MyEguiApp.
#[derive(Default)]
struct MyEguiApp {
    text: String,
}

Then modify update like this:
ui.add(widget::TextEdit::singleline(&mut self.text));

Also what I'm not sure of is how singleline() and multiline() deal with &str instead of String, but before digging deeper let's try my suggested patch.
PS: Next time don't put a screenshot of your code. It is much better to put your code in a code block so we can easy patch it and point out potential mistakes.