GDAL DEM Processing Routines

[X] I agree to follow the project's code of conduct.
[x] I added an entry to CHANGES.md if knowledge of this change could be valuable to users.

[x] Add hillshade
[x] Add color-relief
[x] Wait for and merge https://github.com/georust/gdal/pull/457
[ ] Remove DemCommonOptionsOwner and inline the fields into the various structs.
[ ] Remove Option from around DemCommonOptions::compute_edges and additional_options.
[x] ~Convert DemProcessing methods to inherent methods on Dataset.~
[ ] Convert DemProcessing methods to free functions.

@lnicola Thank you for the early feedback. Course corrections earlier rather than laters are definitely helpful.

@lnicola Two questions:

Do you think this set of features should be behind a dem feature flag?
Are you adverse to exposing the capability like this:

In raster/processing/dem/slope.rs

impl Dataset {
    fn slope(&self, options: &SlopeOptions) -> Result<Dataset> { ... }
    ...
}

In raster/processing/dem/aspect.rs

impl Dataset {
    fn aspect(&self, options: &AspectOptions) -> Result<Dataset> { ... }
    ...
}

etc.
I like this approach as it makes it more discoverable in IDE/rust-analyzer.

No to both

Sorry, I was on my phone earlier and didn't pay enough attention to the code snippets.

I don't think a feature is necessary, since it only gates some pretty thin bindings to the GDAL functionality, not the whole implementation
I'm not sure :grimacing:. I disliked it initially, but perhaps it's not such a bad idea. Maybe we should ask for another opinion.

I'm not sure 😬. I disliked it initially, but perhaps it's not such a bad idea. Maybe we should ask for another opinion.

FWIW: We do have precedence for it (and I like the code-organization benefits):
❯ rg 'impl Dataset'
src/dataset.rs
37:impl Dataset {

src/vector/sql.rs
60:impl Dataset {

src/vector/layer.rs
593:impl Dataset {

src/gcp.rs
109:impl Dataset {

src/vector/transaction.rs
100:impl Dataset {

src/raster/rasterband.rs
23:impl Dataset {

src/raster/mdarray.rs
800:impl Dataset {

src/raster/processing/dem/mod.rs
54:impl Dataset {

The organization is fine, which is why I initially said I had nothing about it.
What I'm not sure I like is exposing the algorithms as inherent methods on the datasets. Most of the stuff we have there maps directly to GDALDatasetXXX. The DEM and warper are separate in the GDAL API.

What I'm not sure I like is exposing the algorithms as inherent methods on the datasets. Most of the stuff we have there maps directly to GDALDatasetXXX. The DEM and warper are separate in the GDAL API.

Aaaaah. Got it. A nuance I didn't catch. It's hard for me to tell what in the C API design is well-considered, and what's accidental.

I flip-flopped between impl Dataset in each sub-module, vs in the dem module. Settled on the latter for coherence sake in the generated docs.
https://github.com/georust/gdal/pull/456/files#diff-c3e410b73d29819318373ad9149f478156e2060050ec127f3a234f245f862843R53-R305

This looks pretty nice, except:

I'm not a fan of the DemCommonOptionsOwner thing. I would inline the four fields into the structs; this causes some code duplication, but feels much easier to follow, and might even more robust in the long term (e.g. maybe one of the options gets dropped by one of the apps, so it's no longer "common"). Is DemCommonOptions something that applications will actually care about?
DemCommonOptions::compute_edges should probably be bool, not Option<bool>; same for additional_options
DemProcessing being a trait is not too bad, but they might as well be inherent methods. It seems like extra complexity for no good reason (cf.).

DemCommonOptions::compute_edges should probably be bool, not Option; same for additional_options

The reason for compute_edges being Option is so we don't have to keep in sync with what the GDAL defaults are, should they change. IOW, If the caller doesn't explicitly set it, we do whatever the GDAl default is. It probably won't change, so I'll just set it to the documented default, but wanted to point out there was some rationale to it.

so we don't have to keep in sync with what the GDAL defaults are

That's what I suspected, but as a user, it makes for a pretty confusing API.

DemProcessing trait

I'm really sorry for the back and forth on this, but I now think they should be free functions. Some of the reasons are:

matching the C++ / Python / Java API; if you've used GDAL before, this makes you feel at home with the bindings
not crowding the Dataset API
putting them on the Dataset feels very arbitrary -- why not on Rasterband?

putting them on the Dataset feels very arbitrary -- why not on Rasterband?

Because the primary input to the all the DEM functions is the Dataset.
I'll convert them to free functions, but to me it seems just as arbitrary as any other decisions to make something inherent on dataset. From where I sit, in the C API, if the first parameter is Dataset, it might as well be treated as the receiver.

The interface I see for Dataset is basically https://gdal.org/doxygen/classGDALDataset.

@lnicola I got rid of all the DemCommonOptions constructs. I somewhat understand your reasoning (but not really, as the user experience is the same), but need to be on the record that I'm not happy with it. Doing so added > 2000 lines of code, which seems like we're violating DRY principles in a big way. Without using traits or macros, I don't know to get rid of all the copy-and-pasting.
https://github.com/georust/gdal/pull/456/commits/ff8a2b614a0c64a2085eedf504116d8df03e44db
Do I need to remove all the situations where the options structs have Option fields, and explicitly default to what the GDAL documentation says are the internal defaults?

@lnicola I believe I've applied all the changes requested here.

And one final question is where to put these. They're currently under raster::processing::dem, but we also have programs::raster.
Another aspect is that I think the Rust guidelines encourage tall/deep module hierarchies, but with re-exports so that the user only sees shallow ones.

And one final question is where to put these. They're currently under raster::processing::dem, but we also have programs::raster. I think I like programs more, since it's a little weird to have raster::processing::translate and vector::processing::vector_translate.

The rationale for this is two fold:

I plan to work on the Warp subsystem, and slotted it to live in raster::processing:warp. But that's separate from the export structure. See below.
I don't think programs makes any sense in a library. If I'm looking at a crate structure, I'd expect programs be the same as bins: a place to put source for executable targets. From the outside I wouldn't know how to semantically interpret programs. Heck, even from the inside I don't know how to interpret programs. Long term, I think the contents of the programs module should be migrated to something more logical.

On your point about raster::processing vs programs::raster, I'd argue the latter breaks the convention in the main library by reversing scope. We train users to think "domain first, capability second", but with programs::raster it's "if I don't find it in raster::, I should also look in programs::raster. But because I find programs confusing, perhaps I'm missing a larger point.
I can see arguments against raster::processing, but to fix its weaknesses I think we need to think more holistically about module structure and what heuristics we use to determine the proper destination for a capability. If the answer is "do exactly what is done in C++" (which would be valid) then we have even more of a gap to address. But I think we can do better than that. To me, raster::processing is a place for advanced capabilities beyond opening and querying Datasets.

Another aspect is that I think the Rust guidelines encourage tall/deep module hierarchies, but with re-exports so that the user only sees shallow ones.

My intent was the use would use gdal::raster::processing::dem::*, since DEM stuff is kinda niche. But I see an argument that this is too deep. I don't really think it should be exported at the gdal::raster::* level. Again, programs::raster doesn't makes sense to me as "what's a 'program' here?".
How about this: we close the PR as it is (or tweak the pub use structure), and open a new ticket to discuss a design around the organization of all constituent parts?

I don't think programs makes any sense in a library. If I'm looking at a crate structure, I'd expect programs be the same as bins: a place to put source for executable targets. From the outside I wouldn't know how to semantically interpret programs. Heck, even from the inside I don't know how to interpret programs. Long term, I think the contents of the programs module should be migrated to something more logical.

I agree it's unusual, but many of the GDAL "apps" are already exposed as a library (everything that ends up taking an argv as an input, including GDALDEMProcessing. I'm not that familiar with them, but I think they're split between gdal_alg.h and gdal_utils.h in the GDAL headers.

But because I find programs confusing, perhaps I'm missing a larger point.

My thinking is "I want gdalwarp, that's a "program". I want (to give a random example) ExecuteSQL, that's not a program". Even today, raster is a bit of a kitchen sink: https://docs.rs/gdal/latest/gdal/raster/index.html.

How about this: we close the PR as it is (or tweak the pub use structure), and open a new ticket to discuss a design around the organization of all constituent parts?

That will never get anywhere, so please no :stuck_out_tongue:.

"I want gdalwarp, that's a "program".

gdalwarp barely exposes the potential of the Warp subsystem. After reading through a lot of the GDAL Warp code over the last year, I think it's potential is barely tapped by the gdalwarp executable, and limited by the lack of examples and complex options model. It may be wishful/idealistic thinking on my part, but with Rust, we could expose a lot of the processing potential in a much less intimidating way than it it is in C++. Rust enabled pixel functions alone could be very powerful. That's my dream anyway.

bors r=lincola


ARROW-2181: [PYTHON][DOC] Add doc on usage of concat_tables

Adding Python API doc on usage of pa.concat_tables.

cc @wesm @xhochy , I didn't get a chance to build the docs to try this out yet.  Is it done with the gen_api_docs docker image, or is there another easier way to do it?

see https://github.com/apache/arrow/tree/master/python#building-the-documentation -- if you are able to run the test suite / build the project then you can run those commands

Great thanks, I'll run it

Screen of doc changes


Not able to publish database project

I updated ADS to 1.44 version and am not able to publish any database projects.
I had to revert to 1.43 and it works.

@kisantia FYI.

@PyMach can you please share what the error is? Can you also try publishing using the latest sqlpackage and see if that works?

This is the error

@kisantia   Please see above screenshot

@PyMach the screenshot shows 0 errors, so the build completed successfully. The warning shown is just a warning and can be fixed by updating the casing. As long as the project and database's collation is case insensitive, this shouldn't block the project from building and publishing.

@kisantia   its not triggering the publish task (Deploy dacpac)

@PyMach can you please share the steps to repro this? I tried creating a simple project with a table and view that references the table with different casing for the name, but the publish task is triggered after the build:
https://github.com/microsoft/azuredatastudio/assets/31145923/55618ded-8587-4395-8fe4-03da4104d4a8

@kisantia   looks like you are you v1.44.1 , let me try with that version but definitely its not working in v1.44

closing as I was unable to repro. Please reopen if this is still happening with the latest release


How Could I specify services to monitor When I use Turbine Stream?

I use turbine to aggregate hystrix stream. Here goes Turbine's dependencies:
<dependency>
    <groupId>org.springframework.cloud</groupId>
    <artifactId>spring-cloud-starter-turbine-stream</artifactId>
</dependency>
<dependency>
    <groupId>org.springframework.cloud</groupId>
    <artifactId>spring-cloud-starter-stream-kafka</artifactId>
</dependency>

Code:
@SpringBootApplication
@EnableTurbineStream
@EnableDiscoveryClient
public class TurbineApplication {
	public static void main(String[] args) {
		SpringApplication.run(TurbineApplication.class, args);
	}
}

application.yml
server:
  port: 8989
management:
  port: 8990
spring:
  cloud:
    stream:
      kafka:
        binder:
          zk-nodes: <IP_ADDRESS>:2181
          brokers: <IP_ADDRESS>:9092
eureka:
  client:
    serviceUrl:
      defaultZone: http://<IP_ADDRESS>:8761/eureka/
  instance:
    prefer-ip-address: true

Now, I have two services, one is  service-1 and the other one is service-2 .Now Turbine will monitor both of them.
I don't wanna monitor all of the services connecting to kafka.
HOW to monitor only one of them, like using localhost:8989?cluster=service-1 monitoring service-1 or other way. Could you help me?

@spencergibb @dsyer @ryanjbaxter
ping..

Duplicate of #166

THX a lot. @spencergibb


Test Report on IE9

challenge!!
first let me report the result: failed to run on IE9.
here is my test report: one key feature missing and some small mistakes:
1,

not sure why it reports this error, but actually it seems nothing affected.
2, these two missing in polyfill.js

3, key feature missing: FileReader.
this will be used to convert blob as an URL, but blob and FileReader both are not avaialbe in IE9, so the loading process stops there.
but i'm sure the engine was booted up successfully, but just stuck on the processing of file loading.
(detect if blob is supported, provide 'imageLoadType': 'HTMLImageElement' in the loader config solved this.
4, didnot test on other features, because the Scene can't be launched.
Env Info:
render type: CANVAS / Html Audio
browser: IE11 (in F12 on simulator tab select IE9)
btw: IE10 works with no any problems. (Canvas)

about item1, i found the reason,
in IE9 IE10, you can't directly use function alias...
var body = document.body;
var bodyAdd = body.addEventListener;
bodyAdd(...);   // SCRIPTS65535
but directly call document.body.addEventListener(..) will work fine...
https://stackoverflow.com/questions/1007340/javascript-function-aliasing-doesnt-seem-to-work

on IE11:
Phaser3.6.0

cannot launch.. the error is caused by link Multi.shader

btw, there is a lot of console.log in HTML5AudioFile / HTML5AudioSoundManager

fix item 1,2 and IE 9 10 passed!
i'll try to submit a PR soon
on IE 11 because it's a little big change on multi-pipeline so i think i might miss something if i try to fix it... and hope you can have a look on this issue, thank you very much sir.

Sorry, should have closed this after merging your fixes in. As we've reverted back to the if/else block in 3.60 that should resolve the IE11 issue as well.


Enter Persistent CARP Maintenance Mode not working since 24.7

Important notices
Before you add a new report, we ask you kindly to acknowledge the following:

[x] I have read the contributing guide lines at  https://github.com/opnsense/src/blob/master/CONTRIBUTING.md
[x] I am convinced that my issue is new after having checked both open and closed issues at https://github.com/opnsense/src/issues?q=is%3Aissue

Describe the bug
A clear and concise description of what the bug is, including last known working version (if any).

I have a setup of 2 OPNsense VMs running on 2 separate Proxmox nodes
Each node is configured for CARP HA
I have a script made by the OPNsense community that handles the WAN side on failover which lives at /usr/local/etc/rc.syshook.d/carp/50-dhcp
The script itself can be found here
This setup works, but since the 24.7 update I am unable to press Enter Persistent CARP Maintenance Mode to force failover from the primary to the secodary
I press it, then it sets Current CARP demotion level to 240 but the CARP status doesn't change to BACKUP and the secondary doesn't become MASTER
I'm not sure what's changed that causes this, but I can press Temporarily Disable CARP and that will force the failover, but it's not as gentle

To Reproduce

Follow the steps from the docs to configure CARP on each interface on both firewalls
Install the script to the path I linked above
Press Enter Persistent CARP Maintenance Mode

Expected behavior

The primary demotes to BACKUP and the secondary becomes MASTER

Describe alternatives you considered

Disabling CARP entirely on the primary, but that isn't as gentle and won't tolerate the secondary failing
I have looked on the primary and it says Current CARP demotion level 0 and the secondary says Current CARP demotion level 240

Screenshots

Primary
Secondary

Environment

2x Proxmox VMs - 2 vCPUs, 4GB RAM, 30GB SSD

I can confirm that I also experience this problem on 24.7, even without the carp rc.syshook.d scripts installed at all. They seem to have no effect on if it works or not.
Entering persistent maintenance mode does make the demotion level to 240, but a failover never occurs.
Primary:
advbase:1
advskew:0
Secondary:
advbase:1
advskew:100

Following up on this, I was able to reset the demotion level on both nodes to 0 which seems to have fixed it
That said, I don't know how it ended up in this place to begin with
I was able to reset the demotion level using the power of Google to find the right commands to reset it


fixing the setup.py mess

It seems that the current setup.py is a total mess that goes against most python design guidelines.
A good example is the fact that basic commands line python3 setup.py --version do have unpredictable results, as in building the package instead of returning the version, and just the version. setup.py was not meant to be used as fancy bash script.
This has to be fixed by using proper setuptools/distools/pip libraries not by trying to replicate some of their functionality inside the setup.py.
Here is a simple test case of things that are not supposed to fail:
python setup.py --version
python setup.py egg_info
python setup.py bdist_wheel
python setup.py bdist
python setup.py test # should run the tests, instead of the runtests

A full list of default commands can be found at https://pythonhosted.org/an_example_pypi_project/setuptools.html -- with the mention that the bdist_wheel one is added by wheel package itself, which I would recommend using.
Let's hope you agree with this and we will see me or someone making some pull requests that do address this.

You are right, and I would very much welcome some help on that front.
I have didn't give too much attention to the setup.py script over the last few years unfortunately. It was written when pulsar was still working on python 2 and 3 with the same codebase.

this is now fixed in the dev branch.


Table Visualization's Time Granularity Feature Malfunction

No matter what time granularity is selected, Caravel keeps returning an overall aggregation result, instead of showing the grouped aggregations based on the selected time granularity.
Specifically, the query "granularity": "all" fails to be modified.
We cannot present daily nor hourly results through table visualizations.

Please use the issue template so there's the necessary information needed to triage this issue.

@xrmx The same problem +1
I'm using superset 0.15.1 from "pip install".
No matter I choose what in the Time Granularity, it happens to be "granularity": "all" in the Query.

I've found that,
viz.py:
is_timeseries=False(class TableViz)
models.py:
in the following function
def query(  # druid
self, groupby, metrics,
granularity,
from_dttm, to_dttm,
filter=None,  # noqa
is_timeseries=True,
timeseries_limit=None,
timeseries_limit_metric=None,
row_limit=None,
inner_from_dttm=None, inner_to_dttm=None,
orderby=None,
extras=None,  # noqa
select=None,  # noqa
columns=None, ):
if not is_timeseries:
granularity = 'all'

So in the Table View, is_timeseries is alway false, and it change granularity to 'all',
is that a bug?

@JessicaDuan please learn some markdown to better format issue :)

Versions Affected: All up to 0.15.1 (unknown for 0.15.2)
View: explore
Viz: Table View
Issue: Time grain setting has no effect.
Current Behaviour: The TableViz class in viz.py defaults
is_timeseries to false which overrides any granularity given. This is
confusing for new users who haven't got used to it, and it's also a
potential area for a nice feature.
Potential Fixes: For any viz which sets is_timeseries to false we
grey out the time grain selector to avoid confusion. In addition for the
table viz, it would be great to toggle whether the time grain is used or
not. When it is used, it functions as an additional Group By fields and
becomes the first column of the table.
On Sun, 22 Jan 2017 at 10:54 Riccardo Magliocchetti <
<EMAIL_ADDRESS>wrote:

@JessicaDuan https://github.com/JessicaDuan please learn some markdown
to better format issue :)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/airbnb/superset/issues/1815#issuecomment-274323725,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AEdFuMYmGiOpEYJGG1t2BbzLSUxFrai8ks5rUzV8gaJpZM4LK7Ak
.

--

Alan Cruickshank
E<EMAIL_ADDRESS>T: +44<PHONE_NUMBER>

https://github.com/airbnb/superset/pull/1809


Race condition in instantiated extensions

When registering instantiated extensions, the execution context field on the extension is set and hence when there are multiple requests in-flight (e.g. when using async) this can resulting in inconsistent results - e.g. errors not being masked when using the MaskErrorExtension
Describe the Bug
When registering the masked error extension via
schema = strawberry.Schema(
    Query,
    extensions=[
        MaskErrors(),
    ],
)

If there are multiple requests in flight, then some errors are not masked. This seems to be because Strawberry edits the execution context on the shared extension, meaning that the error masking logic may operate on the wrong execution context (e.g. one that has not completed).
--SchemaExtensionRunner

        for extension in extensions:
            # If the extension has already been instantiated then set the
            # `execution_context` attribute
            if isinstance(extension, SchemaExtension):
                extension.execution_context = execution_context <---here
                init_extensions.append(extension)
            else:
                init_extensions.append(extension(execution_context=execution_context))

This could be fixed by cloning the extension for each request - or by following the field extension pattern of passing the context as a method parameter
System Information

Operating system: Mac OSX 12.6.8
Strawberry version (if applicable): 0.204.0

@cpsnowden I think we should maybe disallow passing extension instances, you should this:
schema = strawberry.Schema(
    Query,
    extensions=[
-        MaskErrors(),
+        MaskErrors,
    ],
)

Another example: https://play.strawberry.rocks/?gist=786de658feb0675bd220bf8a6f904b98

I think this one is related https://github.com/strawberry-graphql/strawberry/issues/3148


Improvement/change manta namespace

the /manta/ namespaces have been changed to /auv/. Code that found its way back into the development branch has also been removed.

For the simulator to run properly with these changes, this pull https://github.com/vortexntnu/Vortex-Simulator/pull/29 needs to be merged as well


Add option for an SSL certificate chain

Pending acceptance of https://github.com/elastic/ruby-lumberjack/pull/2, this will allow users to specify a certificate chain instead of a certificate and single CA. In my testing, this worked with logstash-forwarder

@thefinn93 can you please sign the CLA? https://github.com/elasticsearch/logstash/blob/master/CONTRIBUTING.md#contribution-steps

There ya go, sorry for the delay

Jenkins standing by to test this. If you aren't a maintainer, you can ignore this comment. Someone with commit access, please review this and clear it for Jenkins to run; then  say 'jenkins, test it'.


Mobile Packet Verifier

Why do we wait until the end of the burn period to write the valid sessions to s3?  That means we will output the valid session once a day?

Why do we wait until the end of the burn period to write the valid sessions to s3?  That means we will output the valid session once a day?

Because we can only write out rewardable sessions after we've burned the data credits for them. Otherwise we could erroneously reward. to compensate, the sessions are accumulated


how can used it for web ?

how can used it for web ?

Our flutter SDK does not support web, just mobile.


Responsive Portfolio

This is a static portfolio web site that has header with navigation and a section that is description about developer and the projects with full of information and the good point is that this portfolio is responsive with any device with a nice looking UI design and free source code, anyone can edit this with its custome UI design. hope you enjoy with this project.

INVALID ❌ ❌ ❌
Hi @abdullah97-pro  👋
While you made a great effort in this project, I can't go ahead and review your code.
Invalid Code Review Request ❌
You have submitted a project that has failing Linters 😨, Kindly Fix the failing linters and submit again once you are done 🙏

Your Code Review Request will be marked as invalid in your Dashboard, so please submit a new one once you are ready 🙏
Kindly create  a new PR that follows the Gitflow approach
Cheers, and Happy coding!👏👏👏
✅ Feel free to leave any questions or comments in the PR thread if something is not 100% clear.
Remember to tag me in your question so I can receive the notification.
⚠ Please, do not open a new Pull Request for re-reviews. You should use the same Pull Request submitted for the first review, either valid or invalid unless it is requested otherwise.

Invalid Code Review Request does not count into the code reviews limit.


Bug: CAMPD 1.0 Emissions Progress Bar showing the incorrect quarter

Steps to Reproduce

Navigate to CAMPD 1.0 https://campd.epa.gov/

When the Emissions bar is displayed in production it displays "2022 Fourth Quarter Emissions". This is inaccurate as we are not in the fourth quarter of the submission period.
Actual Results

Context

will need to make updates to the emissions progress bar api endpoint in the dev environment. This update will roll out with the CAMPD 1.0.X changes. Functionality will need to be deployed to staging

Retested functionality with Tech lead. Progress bar is displaying the correct quarter in staging @tlageman-epa


"500: Internal Server Error" during a routine package update

Describe the bug
During a routine package upload the servers (both the "normal" and "test" repos) reply with a non-descriptive "500 Internal Server Error".
Apart from not being able to upload updated packages, I am also tempted to say that a simple "500 Internal Server Error" reply is an issue in and of itself, and that more information about what went wrong should be returned. I have no clue what could I do to resolve this issue on my own and I have to bother you and create an issue.
Expected behavior
I would expect the package to be normally uploaded, or, at least an error message that would describe what went wrong.
To Reproduce
git clone git@github.com:MKuranowski/osmiter.git
python setup.py sdist bdist_wheel
twine upload --verbose dist/osmiter-1.1.1.tar.gz dist/osmiter-1.1.1-py3-none-any.whl

Output of twine
Using configuration from /home/mikolaj/.pypirc
Uploading distributions to https://upload.pypi.org/legacy/
  dist/osmiter-1.1.1-py3-none-any.whl (19.0 KB)
  dist/osmiter-1.1.1.tar.gz (18.8 KB)
username set from config file
password set from config file
username: __token__
password: <hidden>
Uploading osmiter-1.1.1-py3-none-any.whl
100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 29.7k/29.7k [00:00<00:00, 35.9kB/s]
Received "500: Internal Server Error" Package upload appears to have failed.  Retry 1 of 5
Uploading osmiter-1.1.1-py3-none-any.whl
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 29.7k/29.7k [00:00<00:00, 156kB/s]
Received "500: Internal Server Error" Package upload appears to have failed.  Retry 2 of 5
Uploading osmiter-1.1.1-py3-none-any.whl
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 29.7k/29.7k [00:00<00:00, 157kB/s]
Received "500: Internal Server Error" Package upload appears to have failed.  Retry 3 of 5
Uploading osmiter-1.1.1-py3-none-any.whl
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 29.7k/29.7k [00:00<00:00, 137kB/s]
Received "500: Internal Server Error" Package upload appears to have failed.  Retry 4 of 5
Uploading osmiter-1.1.1-py3-none-any.whl
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 29.7k/29.7k [00:00<00:00, 120kB/s]
Received "500: Internal Server Error" Package upload appears to have failed.  Retry 5 of 5
Content received from server:

    <title>Internal Server Error</title>

Internal Server Error

HTTPError: 500 Internal Server Error from https://upload.pypi.org/legacy/
Internal Server Error

My Platform
Linux 5.10, Manjaro, Python 3.9.1.
Twine is installed via the system package manager, and the output of twine --version is:
twine version 3.3.0 (pkginfo: 1.7.0, requests: 2.25.1, setuptools: 51.1.2, requests-toolbelt: 0.9.1, tqdm: 4.56.0)
Additional context
Tried authenticating both with username-password and tokens - didn't help.
Changing the passwords and tokens didn't help, as per #8431.
Manually installing the created wheel and sdist files in a venv works perfectly fine.
Exact timings for uploads are:

upload.pypi.org: 2021-01-28 10:45:15 UTC
test.pypi.org: 2021-01-28 10:48:41 UTC

Here are the files I'm trying to upload:

osmiter-1.1.1.tar.gz
osmiter-1.1.1-py3-none-any.whl.zip

Seems the error is being raised by our webserver, and not warehouse code which is what is causing the nondescript error.
UnicodeEncodeError: 'latin-1' codec can't encode character '\u0430' in position 27: ordinal not in range(256)
This seems to have been introduced in https://github.com/MKuranowski/osmiter/commit/08e8a7a8b2226f0d870ae8603b0e34da32e4fa0a and encodes a Unicode Character 'CYRILLIC SMALL LETTER A' (U+0430) for the [at] part of the obfuscated email address.
It's still not clear exactly why this is choking out our webserver.

Seems the error is being raised by our webserver, and not warehouse code which is what is causing the nondescript error.
UnicodeEncodeError: 'latin-1' codec can't encode character '\u0430' in position 27: ordinal not in range(256)
This seems to have been introduced in https://github.com/MKuranowski/osmiter/commit/08e8a7a8b2226f0d870ae8603b0e34da32e4fa0a and encodes a Unicode Character 'CYRILLIC SMALL LETTER A' (U+0430) for the [at] part of the obfuscated email address.
It's still not clear exactly why this is choking out our webserver.

OK, on closer inspection it appears that the issue is that there is some error attempting to be returned from warehouse's backend.
The flawed design of the error response in this code includes the full message in the HTTP Status header, which could absolutely include characters that are not valid for an HTTP header.

OK, on closer inspection it appears that the issue is that there is some error attempting to be returned from warehouse's backend.
The flawed design of the error response in this code includes the full message in the HTTP Status header, which could absolutely include characters that are not valid for an HTTP header.

@MKuranowski I suspect the issue is that your new obfuscated email including [аt] rather than @ for the Author-Email metadata field failing to validate as a valid RFC822 email address (because it is not).
The resulting error includes that Unicode Character 'CYRILLIC SMALL LETTER A' (U+0430) which then causes the webserver to error, leading to a 500.

@MKuranowski I suspect the issue is that your new obfuscated email including [аt] rather than @ for the Author-Email metadata field failing to validate as a valid RFC822 email address (because it is not).
The resulting error includes that Unicode Character 'CYRILLIC SMALL LETTER A' (U+0430) which then causes the webserver to error, leading to a 500.

Confirmed and reproduced locally. Will submit a fix shortly.

Confirmed and reproduced locally. Will submit a fix shortly.

Ok, makes total sense that author_email has to be a valid email address.
Replacing the cyrylic a with an ascii a creates a nice error HTTPError: 400 Bad Request from https://upload.pypi.org/legacy/ 'mkuranowski [at] gmail.com' is an invalid value for Author-email. Error: Use a valid email address See https://packaging.python.org/specifications/core-metadata for more information.
I guess there should be a fix somewhere in the form validation against non-valid charachters?

Ok, makes total sense that author_email has to be a valid email address.
Replacing the cyrylic a with an ascii a creates a nice error HTTPError: 400 Bad Request from https://upload.pypi.org/legacy/ 'mkuranowski [at] gmail.com' is an invalid value for Author-email. Error: Use a valid email address See https://packaging.python.org/specifications/core-metadata for more information.
I guess there should be a fix somewhere in the form validation against non-valid charachters?

this should be resolved. characters that cannot be encoded into latin-1/iso-8895-1 will be replaced with ? in messages.

this should be resolved. characters that cannot be encoded into latin-1/iso-8895-1 will be replaced with ? in messages.


[WIP] txn: Use ResolveLockScan instead of ResolveLock & ResolveLockReadPhase

Signed-off-by: longfangsong<EMAIL_ADDRESS>
What problem does this PR solve?
Problem Summary:
Currently the ResolveLock & ResolveLockReadPhase will read out a batch of locks and resolve them together, which is hard to understand and unatural.
What is changed and how it works?
What's Changed:
This pr propose a ResolveLockScan which "scan one lock and resolve one until the txn write size reach the limit" to replace the old ResolveLock & ResolveLockReadPhase
Check List
Tests

Unit test

Side effects

Performance regression

maybe consumes more/less CPU
maybe consumes more/less MEM

Additional context
The behaviour of resolve locks in batches is introduced in #2389, which I don't really get why it is necessary.

@nrc PTAL.
This is not finished yet, but I have already met up with some problems.

/run-all-tests

@sticnarf PTAL


Support LSR 4.x upgrade

This is used to support feature release of License Service Reporter upgrade
How to test

Fresh install LSR on a new cluster should be successful
Execute the script with same parameter should be successful as well

./cp3pt0-deployment/setup_singleton.sh --enable-licensing --enable-license-service-reporter --license-accept -c v4.2

Hi @geforcelive
Could you please help to review this? Thank you!

testes successfully - steps:

LS + LSR 1.20.8 installed in ibm-common-services
new catalogs deployed
fake data populated for LS and LSR
upgrade scripts run:

./isolate.sh --original-cs-ns ibm-common-services --control-ns cs-control -v 1

./cp3pt0-deployment/setup_singleton.sh --operator-namespace ibm-common-services --enable-licensing --enable-license-service-reporter --license-service-reporter-namespace lsr-ns --license-accept -c v4.2 -v 1

Result:

LS upgraded to 4.2 in cs-control
LSR upgraded to 4.2 in lsr-ns
all data remained


DT-488 Add env variable for AMDGPU file

This MR complements https://github.com/ubuntu/gnome-sdk/pull/63
by setting the path to the amdgpu.ids file.

Since, as commented in mattermost, it isn't supported to override libraries from the extensions, this patch has no meaning anymore.


page mounted twice when layouts change

Version
v2.0.0
Steps to reproduce
when I click home to search，（home is  used layouts/default.vue，and search is used layouts/search.vue）,it will mounted twice in search page, it is a bug?
What is expected ?
expected : mounted once
What is actually happening?
actually happening: mounted twice

This bug report is available on Nuxt community (#c9124)

Can you provide a sample of the code in codesandbox.io or a repository so we can look at the code?  Thank you.

https://codesandbox.io/s/wn7j570y85

Same https://github.com/nuxt/nuxt.js/issues/5615

Closing this in favor of #5703 as that has more info


Added dry run

I also updated README since python -m doesn't work anymore.
I added a test for quick testing

@huguesdevimeux Great! As per @eulertour 's please remember to add more extensive tests once we have travis/pytest in place.


how to send

the info provided is not good enoth for the user to understand

1: First the roms must be in a folder called "srl" in the root of the SD card. (The following roms can be used: .nds .srl .nes .gb .gbc)
2: The roms must be a maximum of 4 MB.
Optional but recommended: Get the "DS download Station volume 1" rom from somewhere and rename it to "haxxstation.nds" and place it in the root of the sd card (not in the srl folder)
(If you are not using the haxxstation then you can only use roms from http://davr.org/ds2/demos2/ and http://davr.org/ds2/demos/ )
Now you can start the rom and the rest should be self explanatory
If you have any questions, you can ask me
(You can also use homebrew apps here if you use the haxxstation)
Translated with Google


After uploading the picture, it is prompted error

API has been generated and configured in the ENV file
After uploading the picture, there is an error in the picture

Error says "Can't read value of undefined get", To avoid error try this:  if(!jsonStartresponse || !jsonStartResponse.urls) console.error("Request Couldn't be completed")

Hey all. I've just simplified the repo to remove auth and payments so you can clone and deploy very easily, only with a Replicate environment variable. Try it out!


add color to relationship label when hover line

closes #20

Thanks ... unfortunately it breaks how the background is rendered by default (it should not be transparent), so an alternative approach is needed.


GSD issue type? for SPF shenanigans:

https://caniphish.com/phishing-resources/blog/compromising-australian-supply-chains-at-scale
https://www.reddit.com/r/netsec/comments/s00mxk/scanning_millions_of_domains_and_compromising_the/
this needs a new CWE type, and we need to discuss how to handle issues like this, e.g. one GSD with multiple affected domains/ip ranges? one GSD per domain?

Added to CWE backlog


make sure the demo is using node_env=production

Looks like we may get some performance if we run the app with node_env=production.

fixed


The --service-catalog clusterup option is invalid for OS 3.10+

This causes the scripts/build-local-shift.sh to fail. I'm not sure of the best way to determine which flag value to pass, but for 3.10 the syntax should be:
--extra-clusterup-flags "--enable=*,service-catalog"

That was only needed for testing the olm-broker, which now lives in a separate repo: https://github.com/operator-framework/olm-broker
We can just remove it; the service-catalog integration should be tested by that other repo, not this one.

I guess I misinterpreted the install doc as it being The Right Way to install OLM on minishift. What is the proper way?

Also, OLM versions 0.6.0 and 0.7.0 require Kubernetes v1.11 and I believe minishift v3.10 is at Kubernetes v1.10. If you can, I would try running the latest minikube. scripts/build_local.sh should start minikube with the appropriate flags and build the OLM images.


Allow the IRC users regex to be configurable

Other changes:

Fix rate_limited to be really false
Restart dockercompose on updates after rebuilding

Signed-off-by: Lance Albertson<EMAIL_ADDRESS>

!bump minor ~

Jenkins has merged this PR into master and has automatically performed a minor-level version bump to v1.3.0.  Have a nice day!


APT whitelist request for libdiscid0

Duplicate of #1023.

@BanzaiMan Something seems to be wrong with travisbot figuring out the package names. The development package is actually not called libdiscid-dev but libdiscid0-dev, see http://packages.ubuntu.com/precise/libdiscid0-dev
I have filed a pull request #1053
Thanks for the fast merge and sorry for the duplicate, didn't know travisbot pulls in related packages.


Update Database Entry without making a new instance of the Struct

Hello, I have recently started to use Ormlite. and was playing around with CRUD operations, what really annoyed me was that It created a new struct instance every time i wanted to update the database entry. So i was curious if it is possible not to do that.

Can you clarify with code what situation you're encountering this, and what the annoyance is?
Generally speaking, the database might make updates that you didn't explicitly request (e.g. triggers), so to remain accurate, the model does have to be refreshed.

Can you clarify with code what situation you're encountering this, and what the annoyance is?
Generally speaking, the database might make updates that you didn't explicitly request (e.g. triggers), so to remain accurate, the model does have to be refreshed.

Basically, I have a table/schema with a bunch of properties, which therefore means a lot of getters and setters. I could always wrap my struct in another struct, and mutate the field to the newer instance of the struct whenever needed, but it gets unhygienic real quick when you have multiple tables in the database. So I choose to avoid that path.

Sorry, I'm still not getting the issue you're describing. It'd be more helpful if you directly show the problem you're encountering, and the workaround you found, with code samples.

Closing to keep things clean. If you're still encountering this, feel free to re-open with additional detail.


Adds remaining messages and queries to QGB skeleton scaffolding

Adds the remaining skeleton for https://github.com/celestiaorg/celestia-app/issues/197

@evan-forbes Please take a look when you have time.
If the structure is right and it's the right skeleton. Then, I can open another PR filling the logic.
Thanks.

@evan-forbes Sure we can do that. And also we can revert the previously merged branch and put 8t in a separate one.
Agreed. It makes more sense that way.

@evan-forbes can we merge this now ?


Create a work form for inputting Orcid and display name (default to depositor Orcid & ldap name)

This is the user interface for the work edit and new forms and collection edit and new forms
Internal author use the ldap query
External Author ORCID or free text
Text field for display on work

here is the ezid form for creators that is pretty complex (maybe too much so)

For PSU people we can use the same form as proxies on the profile edit.

The first name & last name fields for a creator will be on the work/collection form once this PR is merged:
https://github.com/psu-stewardship/scholarsphere/pull/1026/files
And then for this story, you can just add the new fields to the form.

Can display name be multiples?

This is a display name for a work and is a single text field

related to https://github.com/psu-stewardship/scholarsphere/issues/991


Move input validation in Edit and Add Habit Dialog classes to its own class

Currently, the input validation of both Edit Habit and Add Habit is done locally within their own fragments, despite having the same logic. Let's wrap the input validation of both cases into a single class HabitInputValidator that can be used in both fragments.

Done


getWindowsByTitle.activate gives me an error

Hello. I'm receiving "Error code from Windows: 0 - The operation completed successfully."
opera = pyautogui.getWindowsByTitle("Opera")[0]
opera.activate()

Is important to mention that this issue appears often, but not all the time. After 5+ tries to restart the script, is working but of course.
I'm starting to think that my Windows 11 could be the problem, I didn't encounter any issues on 10.
Does someone else have the same issue?

Until this is fixed, I am now using this instead: https://github.com/asweigart/PyGetWindow/issues/16


Exposing bamboo build duration metrics

Hi @AndreyVMarkelov ,
thanks a lot for your work on this plugin.
We are using it to display agent activity on grafana, via prometheus.
What I am missing are metrics around build duration and other time related metrics.
Bamboo has a feature to generate "reports" (see screenshot) and I wonder if these could be exposed to the prometheus exporter plugin.
I couldn't find an API call yet, but I'm curious if you ever thought about adding these report metrics to the plugin.
Thanks
Michel

In the progress

almost done

HELP bamboo_build_duration_histogram Finished Builds Duration in ms
TYPE bamboo_build_duration_histogram histogram
Done


[cherry-pick]: Add reconcile plugin condition (#402)

Signed-off-by: Yi Cai<EMAIL_ADDRESS>
/kind enhancement

What does this PR do / why we need it:
cherry-pick #402
How to test changes / Special notes to the reviewer:
Please refer #402

/lgtm
/approve
cherry-pick without any conflicts


rPackages: cleaned up iconv dependencies of inputs to synthpop

Description of changes

Things done

Built on platform(s)

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

Done - thanks. Yes, you're right about this only being needed for aarch64. Synthpop already built fine on x86 for me too. I didn't dig too deep on the root cause, but something was missing libiconv on aarch64-darwin. With this patch, the library continues to build fine on x86.

This seems darwin specific as aarch64-linux builds fine: https://hydra.nixos.org/job/nixpkgs/r-updates/rPackages.synthpop.aarch64-linux. Do you know if this is a problem on x86_64-darwin? There are a handful of other packages that have iconv dependencies on darwin specifically, e.g.,: https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/r-modules/default.nix#L502. Perhaps we should add iconv to the general builder for darwin systems instead.

I don't have an x86_64-darwin machine to test on, sorry. Upon closer inspection of my error log, it looks like it's actually synthpop's dependency libcoin that's failing so the buildInput should really be for it if we keep it at the package level.
That said, I think you may be right about adding iconv as a general builder on all darwin systems, including x86_64. Some googling turned up this post, which suggests the issue is common on all darwin systems.

Added libiconv to the general builder for darwin systems: https://github.com/NixOS/nixpkgs/pull/214866. Let me know if it should go elsewhere.


[MINOR]: Update README.md

Made some minor changes to readme.md.  Please don't mark this pull request as hacktoberfest-accepted as it is not worth it! 😄

@BuddhikaD please merge this so I can complete the work in this repo! Thanks

Merged

Merged

Thanks bro!


un-Overwrite the SheepEntity class

un-overwrite-nite

Tested and dose fix #15. Thank you Basique


Which Icon is used for the loading icon on the browser?

So for a few fractions of a second I see the original home assistant logo when the webpage is loading on chrome.
Obviously this sends me into a frenzy of psychotic rage every time. It sometimes can take me all day to calm down.
Does this fantastic plugin change that particular logo? If so what one is it? If it doesn't is there a way to change it?

currently it doesn't change it, but would definitely be nice! sounds like a feature request to me.


Event modal fixed position

Because of the fixed position of event modals, they will remain on the same position in the window when you scroll the page. Ideally, it should move with the page.

Uuuh that's a problem I didn't have on my radar. Makes me think fixed positioning maybe wasn't the right pick after all.
I will look into this

My workaround right now, simply dismisses the model on scroll (plus, I also added a listener for Esc)


Updating the sample for PexAssemblySettings

Addresses #746
/cc: @kendrahavens

@AbhitejJohn : Thanks for your contribution! The author, @gewarren, has been notified to review your proposed change.


[bug]

Is there an existing issue for this?

[X] I have searched the existing issues

RainbowKit Version
lastest
wagmi Version
lastest
Current Behavior

Expected Behavior
No response
Steps To Reproduce
No response
Link to Minimal Reproducible Example (CodeSandbox, StackBlitz, etc.)
No response
Anything else?
No response

Switching to an uninstalled wallet requires a lag of at least 1 second before QR code is displayed

@LukeAntarcticQR 码是使用 WalletConnect 生成的，大约需要 0.5 - 1.5 秒。您最好使用自己的projectId。1 秒的延迟是正常的，每个使用 RainbowKit 的人都会遇到这种情况。

bug use WalletConnect  is so fast，you can use to test it


Ticket 26440

I have made minor changes to #6375

moved the checks into the check_resolver method
simplified the warning messages
made tests pass

The warning message is now missing the hint about forgetting to add url to the pattern. If the rest of the changes look good, I could check for a tuple in warn_invalid_pattern and add the hint there.

Looks good, you can squash commits when updating, thanks!

Okay, updated to Error and merged in eb5d7bc2f465b055f4eb54a3d238502bdddb6d7e, thanks!


Span!

Not only spans.
In this PR:
Whenever possible:

Using ReadOnlySpan
Using sizeof
Avoid fixed
Implicitly converting from array to Span

Note that any Read method other than Unsafe.As is unaligned.

LGTM, thanks!


Automatically update the site in gh-page after pushing

Mkdocs provide the nice feature mkdocs gh-deploy to deploy the site in github pages easily. It could be great to make it automatic, just like jekyll. And the website is updated when we push the code to master branch.
The implementation could refer to jekyll-hook or git-hook.

I think it only works on GitHun with Jekyll because they run Jekyll on the GitHub servers, if you want to add a local git hook for this that might do what you need.

We also run mkdocs on GitHub servers. So if mkdocs supports this or add hooks for us, I don't have to implement the git hook by myself for all my mkdocs sites.

We also run mkdocs on GitHub servers.

You do? How?

The website runscripts.org is on GitHub pages and here's the source code. It's a typical mkdocs project and we can easily run mkdocs gh-deploy to update the static website files in GitHub server.

Okay, so jekyll-hook is it's own project and it looks like it only works with Jekyll projects, which makes sense. Something similar could be made for MkDocs, but it should live outside of the main project (just like jekyll-hook does).


 Looks like duplicate of #118171

/needsMoreInfo
Are you using MS account to sync? Looks like duplicate of #118171

@IllusionMH it has been github account, i believe, since day one.
I do have a vague idea it initially was a very convoluted step.
but this morning on restart for insider updates it simply stop showing in sync, and kept showing a "loading.." below.
i just checked and now I see this

but it is still showing the blue alert

I've got the same behaviour on windows after updating to 1.55.0-insider

Version: 1.55.0-insider (user setup)
Commit: 567b82a0f9c31bd463af64997997730c5d0173cc
Date: 2021-03-05T05:22:52.277Z (6 hrs ago)
Electron: 11.3.0
Chrome: 87.0.4280.141
Node.js: 12.18.3
V8: <IP_ADDRESS>-electron.0
OS: Windows_NT x64 10.0.19042

Fixed by bc62648b05c87ba814aa22f6f416f1cec96c1bf8
Sorry about this issue - Fixed it and triggered new insiders which will be available soon - will update.

Insiders with the fix is released.


Remove table of contents from readme

https://twitter.com/natfriedman/status/1375430850620256257 (^_^")

Can I be assigned on this issue?

@MitanshiKshatriya Sure you can, but this is a really simple task so we would suggest you to take a bit more challenging ones too.

@AnandBaburajan Yes surely I will, I look forward to working on other issues as well.


How do I add this to my PC/Host file? Help please!

First time I did this was several months ago and my friend helped me but I don't remember the process, what do I exactly do to get this thing up and running? Please help!

https://github.com/StevenBlack/hosts#location-of-your-hosts-file

https://github.com/StevenBlack/hosts#location-of-your-hosts-file

this doesnt help my pea brain understand how to do it.
alright, for exmaple i want the adware+malware thing, do I just copy the raw thing and edit it into my host file?


Bug: Providers not deleting dead files

Providers are not removing files from the disk that they lose to downtime. #52 attempts to address this, which seems inefficient but works right now to mitigate the issue.

#63 attempts again to address this by rebuilding trees when it only half-deletes a file. Before this, it would have false positives and fail over and over again.

#151 fixes this issue


new news items required and doc links

~i) Manu's videos~
~ii) The Nomenclature paper (this should also be added to the publications page)~
We can also put some new explore PomBase rotations
i) the videos
ii) The unknowns graph
I   work these up

I've added a news item about the paper.  Let me know if you'd like any changes.

Did you get the video news item?

Did you get the video news item?

I haven't added that yet.

OK no hurry, just checking you have it.

Good to have the nomenclature item at the top of the feed for a while so maybe leave it another week anyway

We should link to the videos from the "submit"  menu and the "help menu"
I suggest  making the help/documentation link "PomBase documentation" and adding a link to "Canto Documentation"
I realise they are separate sites, but I think people will look for the docs on PomBase.....

How's this?  It's on https://desktop.kmr.nz/ if you want to have a look.

I think thats OK, but maybe it's a bit weird under 'submit', but it should be clearly visible on the Canto landing page.

I think thats OK, but maybe it's a bit weird under 'submit', but it should be clearly visible on the Canto landing page.

So include it in the "Submit" menu?

No let's leave it off the submit menu. It will be fine as long as it is all prominent in Canto.
Since we are removing the old I'd like to check the old vs new to see that everything is covered. I don't think I will bet chance to do this until new starter training.
So for now I think we should add a link to the video docs on the Canto from page and have them both available side by side.

Is this enough?:

Yes!

I made tickets for the 2 rotation spotlights.
I still need to consolidate the documentation but there is a curation tracker ticket for that.


daemon: change minimal worker thread to 2

As all of your CI was running with 2 CPUs, it was creating some
scalibility issues in cilium-agent while building the BPF programs.
For this reason we should decrease the minimal worker threads to 2 so we
can make sure Cilium won't take too much time to regenerate BPF
programs in nodes that only have 2 CPUs.
Signed-off-by: André Martins<EMAIL_ADDRESS>change the minimal number of BPF regeneration builders from 4 to 2

This change is

adding k8s tests so we can try trigger the flake

test-me-please

re-triggering as I'm looking for a test build that takes >6 minutes to do the unit tests

test-me-please

test-me-please

test-me-please

@aanm I think this is the right quick-fix.

test-me-please

let's merge this if the CI passes and see if the flake still happens for a couple days


Send total amount to backend for processing

Hi
It must be much easier but I must be missing a step. Cant get it to work so looking for some help.
I am trying to send the amount from react frontend. I tried doing it like so as req.body
async buy() {
        try {
            // Send the nonce to your server
            const { nonce } = await this.instance.requestPaymentMethod();
            const response = await axios.post("/api/users/braintree/sandbox", {
                paymentMethodNonce: nonce,
                amount: this.state.showTotal
            });
            console.log(response);
            // do something
        } catch (err) {
            console.error(err);
        }
    }

I tried to send the amount from react frontend. I tried doing it from inside DropIn too
<div>
                        <DropIn
                            options={{
                                authorization: clientToken,
                                paypal: {
                                    flow: "vault"
                                },
                                amount: "3.00"
                            }}
                            onInstance={instance => (this.instance = instance)}
                        />
                        <button
                            onClick={this.buy.bind(this)}
                            className="btn btn-primary btn-lg col-12"
                        >
                            Buy
                        </button>
                    </div>

But it's not sending money. It's not in the braintree dashboard.
It works only if I hard code the price in the backend.
I really need to send the amount from the frontend to backend. Here is my backend code:
// for generating token
app.get("/api/users/braintree/getToken", auth, async function(req, res) {
    try {
        gateway.clientToken.generate({}, function(err, response) {
            if (err) {
                res.status(500).send(err);
            } else {
                res.send(response);
            }
        });
    } catch (err) {
        res.status(500).send(err);
    }
});

// for processing
app.post("/api/users/braintree/sandbox", async function(req, res) {
    try {
        // Use the payment method nonce here
        var nonceFromTheClient = req.body.paymentMethodNonce;
        var amountFromTheClient = req.body.amount;
        console.log("before: ", req.body.amount);
        // charge
        var newTransaction = gateway.transaction.sale(
            {
                // amount: "1.00",
                amount: amountFromTheClient,
                paymentMethodNonce: nonceFromTheClient,
                options: {
                    // This option requests the funds from the transaction once it has been
                    // authorized successfully
                    submitForSettlement: true
                }
            },
            function(error, result) {
                if (result) {
                    res.send(result);
                    console.log("after: ", req.body.amount);
                } else {
                    res.status(500).send(error);
                }
            }
        );
    } catch (err) {
        // Deal with an error
        console.log(err);
        res.send(err);
    }
});

Money is send to braintree only if i hard code the amount like so:
{
                amount: "1.00",
                paymentMethodNonce: nonceFromTheClient,
                options: {
                    // This option requests the funds from the transaction once it has been
                    // authorized successfully
                    submitForSettlement: true
                }
            },

Any help is much appreciated. Thanks!

Sorry, It was my fault. I supposed to send total but send showTotal instead which holds boolean value Silly me :)


Add run on repl.it badge to README

This pull request adds a  badge to the . This will allow users to easily run this repository in their browser, without having to set up an environment. You can learn more about Repl.it here.

It doesn't work, maybe because you put nodejs as language and no command in run.


Build errors

Hi,
Thanks for making this adapter, I'd love to use it.
I have a very simple Sveltekit app that only has endpoints, no assets or anything static.
When I try to build it with your adapter I get the following build error:
`

Using adapter-serverless
Cannot read properties of undefined (reading 'log')
at adapt (/workspace/crm-backend-sveltekit-aws-lambda/node_modules/@yarbsemaj/adapter-lambda/index.js:27:21)
at adapt (file:///workspace/crm-backend-sveltekit-aws-lambda/node_modules/@sveltejs/kit/dist/chunks/index5.js:740:8)
at file:///workspace/crm-backend-sveltekit-aws-lambda/node_modules/@sveltejs/kit/dist/cli.js:994:11`

The app works without problems with 'svelte-kit dev" and using the Cloudflare adapter it also runs without issues on Cloudflare Workers.
You can find the repo here : https://github.com/NagurasDemoApp/crm-backend-sveltekit-aws-lambda
If you open the repo with this link https://gitpod.io/#https://github.com/NagurasDemoApp/crm-backend-sveltekit-aws-lambda you wil get a VSCode instance in the browser and can look at the error by doing a build in the integrated terminal from VSCode.
If you run the app in dev mode you can test if it's working by opening the the file login.http in the folder http-tests.
On the top line you should see "Send Request". By clicking on that line, it will send a request to the app and you will see a return.
Works a bit like Postman by using this extension (which will be available already if you open the repo via Gitpod.
Thanks.

Hi @eric-naguras ! Thank You for your interest in my project and bringing this issue to my attention. The issue you are experiencing look to be due to a change in the svelte kit adapter API between when I created this adapter, and the present day. They mention the possibility of this on there website. I will issue an updated version of the adapter shortly to resolve these issues

@eric-naguras I have updated the adapter for the latest svelte kit build, it should now work for your project

Thank you James for updating the package.
It works like a charm now.
To deploy I used the AWS CDK. I'm including my CDK stack file below.
You might want to add this to your README.md for people who don't know the Serverless framework or who don't like it.
AWS CDK is free and easy to use.

Create a CDK project (see https://docs.aws.amazon.com/cdk/v2/guide/hello_world.html)
Create a directory "resources" inside the CDK project
Copy the generated files from /build/server into resources
Copy the code below in the ...stack.js file in the project's lib folder

  // This is Version 2 of the CDK
  const { Stack } = require('aws-cdk-lib');
  const { Construct } = require("constructs");
  const apigateway = require("aws-cdk-lib/aws-apigateway");
  const lambda = require("aws-cdk-lib/aws-lambda");

class CrmBackendServiceStack extends Stack {
  /**
   *
   * @param {Construct} scope
   * @param {string} id
   * @param {StackProps=} props
   */
  constructor(scope, id, props) {
    super(scope, id, props);

    // The code that defines your stack goes here
    new CRMBackendService(this, 'CRMBackend')

  }
}

class CRMBackendService extends Construct {
  constructor(scope, id) {
    super(scope, id);

    const handler = new lambda.Function(this, "CRMBackendHandler", {
      runtime: lambda.Runtime.NODEJS_14_X, // So we can use async in widget.js
      code: lambda.Code.fromAsset("resources"), // Copy files from /build/server into resources
      handler: "serverless.handler",
      environment: {}
    });

    new apigateway.LambdaRestApi(this, 'crmbackend-api', {
      handler: handler,
      description: "This service serves crmbackend.",
      restApiName: "CRMBackend Service",
      proxy: true
    });

  }
}

module.exports = { CrmBackendServiceStack }

@eric-naguras thanks for the update, I will take your consideration on board re documentation, Iv also updated the package again to support routing via a lambda@edge function and included the s3 upload as part of the serverless config. As such is now possible to deploy your code with one command.


🪲 Bug Reported By User: user preference of floating window been cleared after updated

🎊 First User Comment 🎊
According to the comment in Chrome Web Store at 4/13, a user reported that the setting is been cleared after i updated this extension in chrome web store.
This data is controlled by the popup, and it is stored in chrome.storage.local.
I am not sure if this happened to every one or just one user.
There're actually some posts in StackOverflow also doubted that chrome might clear these data, but the responses seems not agree with those posts.
Or maybe it's something about manifest.json?
OK, I'll try to find out. if you have any idea, please reply below, thanks 😅

I am stupid, actually it also happened when i click the refresh button of this app in chrome://extensions/


How to generate a password?

The browser I used before could generate a random strong password in the password input box. I don't know if I was using Thorium wrongly.

@CCCAUCHY Can you try chrome://flags/#password-generation-experiment

@CCCAUCHY Can you try chrome://flags/#password-generation-experiment

not work


Make flask microservice

Gotta do it!

Actually, this might not be needed if we use lambda and connect it to the AWS API Gateway. I think I'm going to close this one.


Project cache hit ratio metrics enhancement

This PR replaced old project cache hit ration metrics impl. with a new one which only keep tracks of last 100 cache accesses' hit ratio instead of all past access since Azkaban executor starts. In this way, this metrics is more sensitive to project cache setting change (e.g, cache size is changed on the fly) since hit ratio won't be offset by too much old historical data.

Pull Request Test Coverage Report for Build 4377

27 of 32 (84.38%)  changed or added relevant lines in 5 files are covered.
5 unchanged lines in 1 file lost coverage.
Overall coverage increased (+0.07%) to 36.862%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

azkaban-exec-server/src/main/java/azkaban/execapp/AzkabanExecutorServer.java
1
2
50.0%

azkaban-exec-server/src/main/java/azkaban/execapp/FlowRunnerManager.java
3
7
42.86%

Files with Coverage Reduction
New Missed Lines
%

azkaban-exec-server/src/main/java/azkaban/execapp/FlowPreparer.java
5
84.69%

Totals

Change from base Build 4376:
0.07%

Covered Lines:
10948

Relevant Lines:
29700

💛  - Coveralls


merge doc updates forward to Liberty

Merging doc updates forward from kilo to liberty. I merged upstream/kilo into liberty locally then pushed to liberty in my fork.
This PR includes the fix for the issue that was breaking the doc build (I pinned the sphinx version to 1.5.5, as the issue is with the latest version - 1.6.1).

@pjbreaux - please hold off on merging. I need to investigate the missing module errors in the docs build.

Acknowledged

@pjbreaux - OK to merge now. I wasn't able to resolve the issue, but since there's not really any content there anyway it's not an issue of great concern. The API docs will probably come down when we move to clouddocs; we can put them back in later if/when docstrings are added for every module.


How to change archiva path?

Hello,
I'm trying to change the archiva path to http://X.X.X.X/archiva but had no success.
Is it possible? How can I change?
Thank you.

@herrmannpchw
That's not a configuration option for this image. Out of question, why do you want to make that change?

I have others services on the same machine with nginx...
Thanks!

@herrmannpchw
I see. This is a common scenario with container services and a proxy (like nginx) is often used so that everything works.
Here are two simple ways to handle the situation:

Configure ngnix to rewrite the requests it receives for "/archiva/XXX" to "/XXX" and forward them to the archiva container's IP. Assuming ngnix is also running in a container, you can use a docker network to make this configuration very simple.

Assign an additional IP to the host and bind the archiva container to that new IP. In this case, traffic for Archiva won't go to ngnix.

Good luck!


Feature/dpsim 82

Description
Added OpenAPI framework (Swagger-UI) and annotations.
Type of change
Please delete options that are not relevant.

[X] New feature (non-breaking change which adds functionality)
[X] This change requires a documentation update

How Has This Been Tested?
Ran unit tests, Ran Swagger endpoint.
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
[X] 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

For bcgov contributors:
this PR fixes jira ticket: DPSIM-82

@alexjoybc - Good question. I'll look into the ability to disable swagger in production.


Mouse wheel scroll stops working

Starting from today (may 27, 2022), mouse wheel stops working after couple of scrolls, and only starts again on mouse movements (and again stops after couple of scrolls if mouse is not moving). Happens on all setups - fixed, variable, dynamic sizes. If i use scroll thumb dragging - everything works fine. Appears on chrome version 102.0.5005.62 on windows 10 (21H2, 19044.1706)  . Maby this is some chrome bug (i tried to restart chrome and machine - doesn't help), but react-virtual works as expected on windows edge browser at the same time (chromium engine). I haven't check it yesterday, but day before yesterday and earlier i haven't got any issues with react-virtual. From now on i see this kind of bug everywhere react-virtual is used - on my project, on online samples. Also this problem appears on https://virtuoso.dev/ library (but it doesn't appear if i choose scenarios - window scrolling option sample). This behaviour doesn't appear on react-window and react-virtualized.
From quick glance on sources i noticed it uses onScroll events - i suppose problem lies somewhere near it.

I've experimented with sources and here is what i found:
There is no problem with scroll event: it is added and removed correctly on useEffect. Problem is that scroll event doesn't fire. If i add 'wheel' event at the same time - it triggers (but not 'scroll' event). I think that scrolling stops working when mouse gets on newly created (by react) html items. It just doesn't recognize new items as scrollable content or something. But if mouse is moved - it begins to recognize these new dom elements and scroll event continues to fire (same event handler, without reapply).
First thing i tried - i added "pointer-events: none" to rows - it worked, scroll is working this way. Mabe because it stops relying on row elements to know where to scroll on. But this way i can't interact with element, i tried to remove this style when scroll stops - but that doesn't work.
I then googled for scroll problems and found this https://github.com/bvaughn/react-window/issues/221
It's react-window lib which is working for me - and one big difference is that they are using "will-change: transform" property on outer element, and this is by default.
So i tried it and it worked with react-virtual. This way elements renders with more lag, but that's fine for me.
Maybe there is some better solution to this problem, but for now i gonna stick with "will-change: transform" on outer element (which is "parentRef" element passed to options).

There are definitely some upstream bugs happening with some of the browsers, but this is out of our control. We'll do our best to keep things safe in all browsers.


DatePicker position  issue

Hi anyone can help me solve this issue?
Where is I zoom the computer's screen to more than 100%, the date picker position will run away from the label.

I set the orientation for the datepicker is bottom left auto
cause i want to display it above the label
var selectDate = $(context.previousDateNode).datepicker({
container: context.fromRenderNode,
orientation: "bottom left auto",
autoclose: true,
format: "dd-M-yyyy",
endDate: oneDayBefore,
// widgetPositioning:{
//     horizontal: 'auto',
//     vertical: 'bottom'
// },

i am facing the same issue. Mordern browsers allows zoom to go more than 100%. So i adjusted the zoom level of my application div. Rest of all the things work fine accept this datepicker. Its position changes and goes to other location in the screen. Any ideas to fix it so that it can stick to the desired location


docs: Add 'Code submission'

Add a quick document on how to format the code for submission.

Fix some small formatting issues in how_to.md.

Signed-off-by: mr.Shu<EMAIL_ADDRESS>

Thanks @dbscoach , that made sense so I did add it in!


Cannot use with F# scripts

Scripts are a common and everyday way to work F# and forms part of the standard development lifecycle. I can't figure out how to use the SqlClient library from within an F# script:

Download the nuget package.
Try referencing the netstandard version of the library e.g. #r @"C:\Users\Isaac\.nuget\packages\microsoft.data.sqlclient\1.0.19269.1\lib\netstandard2.0\Microsoft.Data.SqlClient.dll.
Script will crash when you try to open a connection with a PlatformNotSupported exception.
After looking around for a while, read this link.
Try to reference the net46 version of the library: #r @"C:\Users\Isaac\.nuget\packages\microsoft.data.sqlclient\1.0.19269.1\lib\net46\Microsoft.Data.SqlClient.dll"
Get another exception:

System.TypeInitializationException: The type initializer for 'Microsoft.Data.SqlClient.SNINativeMethodWrapper' threw an exception. ---> System.ComponentModel.Win32Exception: Failed to load C:\Users\Isaac\.nuget\packages\microsoft.data.sqlclient\1.0.19269.1\lib\net46\x64\SNI.dll
   at Microsoft.Data.SqlClient.SNINativeMethodWrapper..cctor() in E:\agent1\_work\34\s\src\Microsoft.Data.SqlClient\netfx\src\Microsoft\Data\Interop\SNINativeMethodWrapper.cs:line 66

I can't find any SNI.dll within the nuget package. How can I get this to work?
Also - why include a netstandard2.0 TFM in the package, if netstandard2.0 is, effectively, not supported? This is misleading and very tightly couples the package to NuGet.

Netstandard is supported but it requires a target platform to be resolved in order to restore the correct windows or unix native socket implementation. I think what you're really asking is why there is no fully portable fallback.
Note that SNI.dll on windows isn't the only dependency that is required. You'll also need codepage support and a number of other things like configuration. SqlClient was in-box before and could be used easily because it only had framework dependencies. This library isn't in-box and has external dependencies, they're not really equivalent.

Is there a list of these required dependencies anywhere - and if they are not shipped with the nuget package, where are they?

The NuGet package contains the details of all the dependencies and the NuGet infrastructure facilitates the downloading and referencing of them all. You can view them in the .nuspec file contained inside the package or on the Nuget website. You will have to fully resolve the dependency tree yourself if you choose not to use the NuGet infrastructure. What you are trying to do is very similar to what this PowerShell developer wanted to do in #161.

Hi @isaacabraham

I can't find any SNI.dll within the nuget package. How can I get this to work?

Please verify the version of NuGet.exe in use is >5.0 when performing nuget restore. If using version >5.0, dependent DLLs (SNI.dll for x64 and x86) should be loaded transitively, look for #137 for more details.

Try referencing the netstandard version of the library e.g. #r @"C:\Users\Isaac.nuget\packages\microsoft.data.sqlclient\1.0.19269.1\lib\netstandard2.0\Microsoft.Data.SqlClient.dll

why include a netstandard2.0 TFM in the package, if netstandard2.0 is, effectively, not supported? This is misleading and very tightly couples the package to NuGet.

NetStandard 2.0 is supported, apparently the correct path to supported DLL is runtimes\<os>\lib\netstandard2.0\Microsoft.Data.SqlClient.dll and not lib\netstandard2.0\Microsoft.Data.SqlClient.dll.

@cheenamalhotra I'm trying to use an F# script, which NuGet doesn't support. We have to manually reference the individual assemblies in the packages to get things to work. Thanks for that link, I will look into it.

I see. Looks like there is a workaround with msbuild /t:restore, have you tried that? (https://github.com/NuGet/Home/issues/7743#issuecomment-459655384)

Either way, as it turns out known limitation from NuGet, I would like to close this issue at our end and suggest registering issues with NuGet and Visual Studio to support package reference for F# scripts.

@cheenamalhotra This is in an F# script. There is no msbuild. We just reference dlls manually. It's nothing to do with NuGet - I just need to know which DLLs to reference :-/

It looks like nuget package support is something they recently merged over at fsharp: https://github.com/dotnet/fsharp/pull/5850
https://twitter.com/realvictorprm/status/1173639408693723136?s=19
I don't know what their release schedule looks like or what release it is or will be in, but you can probably find more news over there.

@David-Engel that's not until net5 - forget about that, it's a red herring :-) Currently we reference individual DLLs for scripts. It works very well and there's decent tooling around that as well. In this case it's not working because of the native dlls, so I need to add them manually. I just need to know what they are - is it really not possible to get a list of them?

@cheenamalhotra perhaps open this again?

@David-Engel @cheenamalhotra NuGet support is not recently "merged over". NuGet was always supported in F#. What's new is that you will be able to reference packages directly out of your F# scripts. As a whole. Currently you reference the dlls indiviually. This is standard practice and works pretty well across most of the ecosystem. So I'd argue this is not "external".
/cc @cartermp

Support for #r "nuget:..." will land in .NET 5. Currently, there are still some quirks with transitive references on dotnet fsi due to how assemblies can be organized on a machine, which is far more complicated than with .NET Framework. The only reasonable way is to effectively replicate what NuGet does to resolve dependencies, which is why we did #r "nuget:..." to just let it handle the resolution instead.
So, long story short - it's complicated. There may be an issue on the F# side of things, but the errors that @isaacabraham mentions are not consistent with the known limitations.
Additionally @cheenamalhotra this isn't about supporting <PackageReference>. F# has supported these since its inception. The

@isaacabraham
Have you tried with DLLs from runtimes folder as mentioned above (https://github.com/dotnet/SqlClient/issues/292#issuecomment-555855854)?
About your ask for SNI.dll, it's referenced from a separate package. For .NET Standard targeting apps it's runtime.native.System.Data.SqlClient.sni, you can find this info on<EMAIL_ADDRESS>too.

@isaacabraham did you ever manage to get this to work? I still have the same issues when trying to work with this library in an F# script environment.

@kMutagene I gave up - the last comment above basically sent me right back to where I started. I haven't tried using newer versions of FSI which run on dotnet core though, so this might be worth your trying out.

You're going to have the same problems on netcore. The library is no longer in-box and has external dependencies which are resolved by nuget. You need either a nuget package restore or to manually walk the dependency tree and ensure all required dependencies are present.

@Wraith2 As you're aware, it's only the native DLLs that have until now presented the problem. If there's any documentation which illustrates what these are and how these work it might be possible for F# developers to get this working for scripts (an important part of the dev cycle). Cheers.

Hi @isaacabraham
Just a side note, we recently enabled use of Managed SNI on Windows optionally with App Context switches (for cases where native DLL loading causes concerns in .NET Core/Standard applications).
Release notes for v2.0.0-preview3
Maybe you could give v2.0.0-preview3 a try and let us know if that would be useful in your case?

I still get this same error with the #r "nuget:..." feature with F# scripts. This feature does load native .dlls (such as those in ML.NET), so there might be something else missing? @isaacabraham can you confirm this if you run the following?
#r "nuget: Microsoft.Data.SqlClient, Version=2.0.0-preview3"

open Microsoft.Data.SqlClient

let str = "Data Source=(local);Initial Catalog=NorthwindIntegrated Security=SSPI"
let qs = "SELECT OrderID, CustomerID FROM dbo.Orders;"

use conn = new SqlConnection(str)
let cmd = SqlCommand(qs, conn)
cmd.Connection.Open()
cmd.ExecuteNonQuery()

(replacing whatever query is there with your own)
dotnet fsi --langversion:preview foo.fsx

I get
System.DllNotFoundException: Unable to load DLL 'sni.dll' or one of its dependencies: The specified module could not be found. (0x8007007E)

Try the managed appcontext switch as @cheenamalhotra suggested, that removes the native dll requirement.

Awesome, that does work. Is this going to be a default in .NET 5?
Separately, it seems like failing to find sni.dll is a bug in the dependency manager component used with FSI on .NET Core. We'll need to investigate thoguh

Awesome, that does work. Is this going to be a default in .NET 5?

This library is versioned independently from the runtime so it doesn't really matter. I think it's unlikely that the System.Data.SqlClient version that the runtime has will be updated with this switch, it was disabled for good reasons in the past and it's only recently that it's been made available to users again. In the long term I'd like to have managed mode be the default and not use the native dll at all but to do that performance and reliability need to be equal or better for everyone.

it seems like failing to find sni.dll is a bug in the dependency manager component used with FSI on .NET Core

If it is attempting to restore dependencies in a way compatible with nuget behaviour and you're getting this error then I'd agree that it's a problem that the FSI owners might want to take a look at.

Just a quick update - just trying this out and still got the same problem, but if it's working for @cartermp I must be doing something wrong now?
open System
open Microsoft.Data.SqlClient

AppContext.SetSwitch("Switch.Microsoft.Data.SqlClient.UseManagedNetworkingOnWindows", true)
let connection = new SqlConnection("")

with error
System.PlatformNotSupportedException: Microsoft.Data.SqlClient is not supported on this platform.
   at Microsoft.Data.SqlClient.SqlConnection..ctor(String connectionString) in H:\tsaagent1\_work\9\s\obj\Release.AnyCPU\Microsoft.Data.SqlClient\netcore\netcoreapp3.1\Microsoft.Data.SqlClient.notsupported.cs:line 355
   at <StartupCode$FSI_0010>.$FSI_0010.main@()
Stopped due to error

Generated references:
namespace PaketLoadScripts

#r "C:\\Users\\Isaac\\.nuget\\packages\\microsoft.identity.client\\4.14.0\\lib\\netcoreapp2.1\\Microsoft.Identity.Client.dll"
#r "C:\\Users\\Isaac\\.nuget\\packages\\system.private.datacontractserialization\\4.3.0\\lib\\netstandard1.3\\System.Private.DataContractSerialization.dll"
#r "C:\\Users\\Isaac\\.nuget\\packages\\system.xml.xmlserializer\\4.3.0\\lib\\netstandard1.3\\System.Xml.XmlSerializer.dll"
#r "C:\\Users\\Isaac\\.nuget\\packages\\system.componentmodel.typeconverter\\4.3.0\\lib\\netstandard1.5\\System.ComponentModel.TypeConverter.dll"
#r "C:\\Users\\Isaac\\.nuget\\packages\\system.dynamic.runtime\\4.3.0\\lib\\netstandard1.3\\System.Dynamic.Runtime.dll"
#r "C:\\Users\\Isaac\\.nuget\\packages\\system.xml.xdocument\\4.3.0\\lib\\netstandard1.3\\System.Xml.XDocument.dll"
#r "C:\\Users\\Isaac\\.nuget\\packages\\system.xml.xmldocument\\4.3.0\\lib\\netstandard1.3\\System.Xml.XmlDocument.dll"
#r "C:\\Users\\Isaac\\.nuget\\packages\\system.collections.specialized\\4.3.0\\lib\\netstandard1.3\\System.Collections.Specialized.dll"
#r "C:\\Users\\Isaac\\.nuget\\packages\\system.linq.expressions\\4.3.0\\lib\\netstandard1.6\\System.Linq.Expressions.dll"
#r "C:\\Users\\Isaac\\.nuget\\packages\\system.runtime.serialization.formatters\\4.3.0\\lib\\netstandard1.4\\System.Runtime.Serialization.Formatters.dll"
#r "C:\\Users\\Isaac\\.nuget\\packages\\system.xml.readerwriter\\4.3.1\\lib\\netstandard1.3\\System.Xml.ReaderWriter.dll"
#r "C:\\Users\\Isaac\\.nuget\\packages\\system.collections.concurrent\\4.3.0\\lib\\netstandard1.3\\System.Collections.Concurrent.dll"
#r "C:\\Users\\Isaac\\.nuget\\packages\\system.collections.nongeneric\\4.3.0\\lib\\netstandard1.3\\System.Collections.NonGeneric.dll"
#r "C:\\Users\\Isaac\\.nuget\\packages\\system.componentmodel.primitives\\4.3.0\\lib\\netstandard1.0\\System.ComponentModel.Primitives.dll"
#r "C:\\Users\\Isaac\\.nuget\\packages\\system.linq\\4.3.0\\lib\\netstandard1.6\\System.Linq.dll"
#r "C:\\Users\\Isaac\\.nuget\\packages\\system.objectmodel\\4.3.0\\lib\\netstandard1.3\\System.ObjectModel.dll"
#r "C:\\Users\\Isaac\\.nuget\\packages\\system.runtime.numerics\\4.3.0\\lib\\netstandard1.3\\System.Runtime.Numerics.dll"
#r "C:\\Users\\Isaac\\.nuget\\packages\\system.runtime.serialization.primitives\\4.3.0\\lib\\netstandard1.3\\System.Runtime.Serialization.Primitives.dll"
#r "C:\\Users\\Isaac\\.nuget\\packages\\system.security.cryptography.primitives\\4.3.0\\lib\\netstandard1.3\\System.Security.Cryptography.Primitives.dll"
#r "C:\\Users\\Isaac\\.nuget\\packages\\system.text.regularexpressions\\4.3.1\\lib\\netstandard1.6\\System.Text.RegularExpressions.dll"
#r "C:\\Users\\Isaac\\.nuget\\packages\\system.threading\\4.3.0\\lib\\netstandard1.3\\System.Threading.dll"
#r "C:\\Users\\Isaac\\.nuget\\packages\\system.threading.threadpool\\4.3.0\\lib\\netstandard1.3\\System.Threading.ThreadPool.dll"
#r "C:\\Users\\Isaac\\.nuget\\packages\\system.windows.extensions\\4.7.0\\lib\\netcoreapp3.0\\System.Windows.Extensions.dll"
#r "C:\\Users\\Isaac\\.nuget\\packages\\dapper\\2.0.35\\lib\\netstandard2.0\\Dapper.dll"
#r "C:\\Users\\Isaac\\.nuget\\packages\\microsoft.win32.registry\\4.7.0\\lib\\netstandard2.0\\Microsoft.Win32.Registry.dll"
#r "C:\\Users\\Isaac\\.nuget\\packages\\system.componentmodel\\4.3.0\\lib\\netstandard1.3\\System.ComponentModel.dll"
#r "C:\\Users\\Isaac\\.nuget\\packages\\system.drawing.common\\4.7.0\\lib\\netstandard2.0\\System.Drawing.Common.dll"
#r "C:\\Users\\Isaac\\.nuget\\packages\\system.io.filesystem.primitives\\4.3.0\\lib\\netstandard1.3\\System.IO.FileSystem.Primitives.dll"
#r "C:\\Users\\Isaac\\.nuget\\packages\\system.threading.thread\\4.3.0\\lib\\netstandard1.3\\System.Threading.Thread.dll"
#r "C:\\Users\\Isaac\\.nuget\\packages\\microsoft.win32.systemevents\\4.7.0\\lib\\netstandard2.0\\Microsoft.Win32.SystemEvents.dll"
#r "C:\\Users\\Isaac\\.nuget\\packages\\system.security.accesscontrol\\4.7.0\\lib\\netstandard2.0\\System.Security.AccessControl.dll"
#r "C:\\Users\\Isaac\\.nuget\\packages\\microsoft.csharp\\4.7.0\\lib\\netstandard2.0\\Microsoft.CSharp.dll"
#r "C:\\Users\\Isaac\\.nuget\\packages\\microsoft.identitymodel.logging\\6.5.1\\lib\\netstandard2.0\\Microsoft.IdentityModel.Logging.dll"
#r "C:\\Users\\Isaac\\.nuget\\packages\\system.buffers\\4.5.1\\lib\\netstandard2.0\\System.Buffers.dll"
#r "C:\\Users\\Isaac\\.nuget\\packages\\system.diagnostics.diagnosticsource\\4.7.1\\lib\\netstandard1.3\\System.Diagnostics.DiagnosticSource.dll"
#r "C:\\Users\\Isaac\\.nuget\\packages\\system.numerics.vectors\\4.5.0\\lib\\netstandard2.0\\System.Numerics.Vectors.dll"
#r "C:\\Users\\Isaac\\.nuget\\packages\\system.reflection.typeextensions\\4.7.0\\lib\\netstandard2.0\\System.Reflection.TypeExtensions.dll"
#r "C:\\Users\\Isaac\\.nuget\\packages\\system.runtime.compilerservices.unsafe\\4.7.1\\lib\\netstandard2.0\\System.Runtime.CompilerServices.Unsafe.dll"
#r "C:\\Users\\Isaac\\.nuget\\packages\\system.security.cryptography.cng\\4.7.0\\lib\\netcoreapp3.0\\System.Security.Cryptography.Cng.dll"
#r "C:\\Users\\Isaac\\.nuget\\packages\\system.security.cryptography.openssl\\4.7.0\\lib\\netcoreapp3.0\\System.Security.Cryptography.OpenSsl.dll"
#r "C:\\Users\\Isaac\\.nuget\\packages\\system.security.cryptography.protecteddata\\4.7.0\\lib\\netstandard2.0\\System.Security.Cryptography.ProtectedData.dll"
#r "C:\\Users\\Isaac\\.nuget\\packages\\system.security.principal.windows\\4.7.0\\lib\\netstandard2.0\\System.Security.Principal.Windows.dll"
#r "C:\\Users\\Isaac\\.nuget\\packages\\microsoft.data.sqlclient\\2.0.0-preview3.20122.2\\lib\\netcoreapp3.1\\Microsoft.Data.SqlClient.dll"
#r "C:\\Users\\Isaac\\.nuget\\packages\\system.runtime.serialization.json\\4.3.0\\lib\\netstandard1.3\\System.Runtime.Serialization.Json.dll"
#r "C:\\Users\\Isaac\\.nuget\\packages\\system.security.permissions\\4.7.0\\lib\\netcoreapp3.0\\System.Security.Permissions.dll"
#r "C:\\Users\\Isaac\\.nuget\\packages\\microsoft.identitymodel.tokens\\6.5.1\\lib\\netstandard2.0\\Microsoft.IdentityModel.Tokens.dll"
#r "C:\\Users\\Isaac\\.nuget\\packages\\system.text.encoding.codepages\\4.7.1\\lib\\netstandard2.0\\System.Text.Encoding.CodePages.dll"
#r "C:\\Users\\Isaac\\.nuget\\packages\\system.configuration.configurationmanager\\4.7.0\\lib\\netstandard2.0\\System.Configuration.ConfigurationManager.dll"
#r "C:\\Users\\Isaac\\.nuget\\packages\\microsoft.identitymodel.jsonwebtokens\\6.5.1\\lib\\netstandard2.0\\Microsoft.IdentityModel.JsonWebTokens.dll"
#r "C:\\Users\\Isaac\\.nuget\\packages\\microsoft.identitymodel.protocols\\6.5.1\\lib\\netstandard2.0\\Microsoft.IdentityModel.Protocols.dll"
#r "C:\\Users\\Isaac\\.nuget\\packages\\system.runtime.caching\\4.7.0\\lib\\netstandard2.0\\System.Runtime.Caching.dll"
#r "C:\\Users\\Isaac\\.nuget\\packages\\system.identitymodel.tokens.jwt\\6.5.1\\lib\\netstandard2.0\\System.IdentityModel.Tokens.Jwt.dll"
#r "C:\\Users\\Isaac\\.nuget\\packages\\microsoft.identitymodel.protocols.openidconnect\\6.5.1\\lib\\netstandard2.0\\Microsoft.IdentityModel.Protocols.OpenIdConnect.dll"

This is on netcore3.1 running latest FSI.

#r "C:\Users\Isaac\.nuget\packages\microsoft.data.sqlclient\2.0.0-preview3.20122.2\lib\netcoreapp3.1\Microsoft.Data.SqlClient.dll"

Please ensure you pick up "runtime" libraries from path:
#r "C:\Users\Isaac\.nuget\packages\microsoft.data.sqlclient\2.0.0-preview3.20122.2\runtimes\win\lib\netcoreapp3.1\Microsoft.Data.SqlClient.dll"
OR
#r "C:\Users\Isaac\.nuget\packages\microsoft.data.sqlclient\2.0.0-preview3.20122.2\runtimes\win\lib\netstandard2.0\Microsoft.Data.SqlClient.dll"
The DLLs in lib\netcoreapp2.1 and lib\netstandard2.0 are "Not Supported" DLLs.

@isaacabraham are you using FSI with #r "nuget"? I wouldn't recommend any other way to acquire dependencies for scripts at the moment.

@cartermp I'm not on net5. I've had some issues with it conflicting with picking up the wrong msbuild for some projects (even with explicit dotnet core refs) so I'm back to 3.x

@cheenamalhotra thanks, I'll try that

@cheenamalhotra that worked! I had to still add in the dependent DLLs (system,configuration being the main one) but it then works. This is really important - being in a situation when F# scripts couldn't talk to a Microsoft SQL database using Microsoft's NuGet package was an awkward situation to be in.
Thanks for helping.

@isaacabraham are you using FSI with #r "nuget"? I wouldn't recommend any other way to acquire dependencies for scripts at the moment.

I'm trying this with #r "nuget: Microsoft.Data.SqlClient, Version=2.0.0-*" on dotnet 3.1 and it results in this output:

System.PlatformNotSupportedException: Microsoft.Data.SqlClient is not supported on this platform.
at Microsoft.Data.SqlClient.SqlConnection..ctor(String connectionString) in H:\tsaagent1_work\9\s\artifacts\Project\obj\Release.AnyCPU\Microsoft.Data.SqlClient\netcore\netcoreapp3.1\Microsoft.Data.SqlClient.notsupported.cs:line 355
at FSI_0003.getConnection()
at <StartupCode$FSI_0003>.$FSI_0003.main@()
Stopped due to error

Tried again today with 2.0.0, and failed with

System.DllNotFoundException: Unable to load DLL 'Microsoft.Data.SqlClient.SNI.dll' or one of its dependencies: The specified module could not be found. (0x8007007E)

@aggieben
Could you try solution posted in https://github.com/dotnet/SqlClient/issues/645#issuecomment-659209254 ?

@cheenamalhotra not exactly.  I'm using .NET 5 preview, and --langversion:preview for FSI, and using the package like this (minimal example):
#r "nuget: Microsoft.Data.SqlClient

open System
open System.Data
open Microsoft.Data.SqlClient

AppContext.SetSwitch("Switch.Microsoft.Data.SqlClient.UseManagedNetworkingOnWindows, true)

let getConnection() =
    let connectionString = Environment.GetEnvironmentVariable("CONNECTION_STRING")
    new SqlConnection(connectionString)

let ensureOpen (connection:IDbConnection) =
    if connection.State <> ConnectionState.Open
    then connection.Open()
    connection

getConnection() |> ensureOpen

@cheenamalhotra yeah - so if I switch to Paket load scripts and manually adjust the path of the Microsoft.Data.SqlClient dll to the Windows one under ~/runtimes, it seems to work.
Hopefully an issue will remain open somewhere for this, because this should work out of the box.

I ended up writing up a minimal sample for a blog post here. I assume that for now this is the same in .NET 5 with hash R.


[hotfix] Add icon for Flink in IntellijIdea and Toolbox

What is the purpose of the change
The PR adds icon (was taken from https://flink.apache.org/material.html) which will be shown in Intellijidea toolbox or Intellijidea recent projects like

and

Verifying this change
This change is a trivial rework / code cleanup without any test coverage.
Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): ( no)
The public API, i.e., is any changed class annotated with @Public(Evolving): ( no)
The serializers: ( no)
The runtime per-record code paths (performance sensitive): ( no)
Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: ( no )
The S3 file system connector: ( no )

Documentation

Does this pull request introduce a new feature? ( no)
If yes, how is the feature documented? (not applicable)

@flinkbot run azure

this is really cool 👍🏻


Rewrite Scaling Up IV

Closes #795.

Whoop whoop, my first good and complete article in a long time. I missed this.

Seems the check links is not working properly?


typo - day3 - missing parentheses

In day3.md file the code for converting var2 string to print the sum of var1 + var2  is missing a parentheses.
It should be:
print(var1 + int(var2))
and not
print(var1 + int(var2)

is this issue still open and can I work on it ?

@aggarwal19 the issue has been resolved but it’s in a pull request and it requires an admin of the project to merge and close the issue.

Thank you to inform me .
_
On Sat, 6 Oct 2018, 2:26 a.m. Cristina Tarantino<EMAIL_ADDRESS>wrote:

@aggarwal19 https://github.com/aggarwal19 the issue has been resolved
but it’s in a pull request and it requires an admin of the project to merge
and close the issue.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/1millionwomentotech/toolkitten/issues/85#issuecomment-427496447,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AjNPlcVZlOPri7zXVk7m7eq_4HeofA3qks5uh8dzgaJpZM4VWRQ_
.


Unable to build on linux

not quite sure if this is a haxe or MM issue, but it never happened when building plain old psych engine. When attempting to 'lime test linux' or 'lime build linux' it throws an error, not being able to find hxcodec. problem is, i have hx codec installed.

it’s an bug with haxelib, remove and reinstall hxCodec with haxelib install hxCodec 2.5.1

In project.xml, replace "hxcodec" on line 66 with "hxCodec", since file paths are case sensitive on Linux

worked 4 me, thanks

thanx


Feature/add reservoir node

Hi,
as we discussed yesterday at the dev meeting, this is the new ReservoirNode. Some things to highlight:

The compensation flow is a Link with a min_flow constraint but it may be better to use a soft constraint (when the LinkNode with soft min constraint is ready?)
I added an option to auto-connect the comp node to the spill component. The user can disable it and connect the nodes as they wish using the slots
@knoxsp suggested that the bathymetry implementation differs from what's suggested in pywr-1 in PR #1115. This node allow using either a piecewise linear interpolation or a polynomial relation. I tagged him so he can comment on this.
The use_max_area to use the maximum surface area for the rainfall volume is not implemented yet because I am not sure how to get the max area from the Metrics in the bathymetry when the schema is built. There may be a solution I haven't thought about.

I added the use_max_area option and the PR is now ready for review


configure: error: Unable to find the PAM library or the PAM header files

Describe the bug
when build
To Reproduce
Steps to reproduce the behavior:

get code
./bootstrap.sh
./configure

Expected behavior
configure: error: Unable to find the PAM library or the PAM header files
Environment

OS: Ubuntu
Version [e.g. 20.04.6]

Run:
apt install libpam-dev