Mutliline Backtick Support

Request / Idea
Before the pug warnings or errors, I got multiple warnings like this:
Please report token: {"type":"attribute","loc":{"start":{"line":26,"column":5},"end":{"line":31,"column":7}},"name":":rules","val":"`[\n      v => $v.form.email.required,\n      v => $v.form.email.email,\n      v => $v.form.email.maxLength,\n      v => $v.form.email.validOnServer,\n    ]`","mustEscape":true}

It does not affect the library functionalities, but it could be nice to have the support. For example when you use validation libraries.
Input
input("email", "email", "email", "EMAIL")(
  v-model.trim="form.name"
  :rules=`[
    v => $v.form.email.required,
    v => $v.form.email.email,
    v => $v.form.email.maxLength,
    v => $v.form.email.validOnServer,
  ]`
)

Expected Output
No report token log.
Additional Context

have the same issue with Vue
	TwoPaneForm(
		:input='store.text'
		:input-is-invalid-label=`$t('rewriter.invalid-source', {
			min: validationRules.minimumWords,
			max: $tc('count.words', validationRules.maximumWords),
		})`
		:input-validator='textIsValid'
		:input-placeholder=`$t('rewriter.source-placeholder')`
		:result-input-classes=`{ '_sentences': enableSentencesModel }`
		:result-is-empty='!hasRewritten'
		v-bind='{ textIsChanged, isEmpty }'
		:loading='store.loading'
		@input='setText($event)'
	)

Please report token: {"type":"attribute","loc":{"start":{"line":8,"column":3},"end":{"line":11,"column":6}},"name":":input-is-invalid-label","val":"`$t('rewriter.inva

The line is here https://github.com/Shinigami92/eslint-plugin-vue-pug-sfc/blob/99c0c01b35d658c95b9fe2c40185b153002f21ae/src/utils/index.ts#L335
Who wants to help and setup a PR for that?

i have no background in tool development, sorry :( just a frontend designer, more tied with Figma than Typescript


Pretrained model?

Hi! How are you doing?
I was wondering if you were planning to share a pretraibed model, a SOTA?
Thank you!

this is

Hello!
I can build, train, and share pre-trained models here, but I am not sure I will get the exact results shown in the paper. Because I lost the models that gave the results shown in the paper. I will share pre-trained models this weekend.
Thank you!

Hello,
I have shared the link to pre-trained models for age, gender, and gender_age classification tasks. Additionally, the inference code is also uploaded. Please let me know if you have any issues using the shared models. For now, I will close this issue.
Thank you!

Great Mark! What dataset did you use to train the model? This way I can test the inference accuracy with seen and unseen samples. Thanks!

Ah I read it in the README.md , common voice.


How do you turn off the screen?

I will be running my Pi on a 12v battery system, so I'm looking to conserve power where ever I can. I wont be using the LCD screen at all. I see by default it's powered on (however nothing displayed).
Is there a way to power off the LCD screen?

IIRC the backlight is pulled high by default, so to turn it off you'll need to set-up the backlight pin and pull it low:
import RPi.GPIO as GPIO
GPIO.setup(13, GPIO.OUT)
GPIO.output(13, GPIO.LOW)

I made a small python script and added it to my crontab to run at every boot:
import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BCM)
GPIO.setup(12, GPIO.OUT)
GPIO.output(12, GPIO.LOW)

Thanks for your help @Jennnifers
I'll close the issue now
Regards
Gee


fix: update libs version

deploy/charts/emqx-operator/templates/crd-emqx-enterprise.yaml and deploy/charts/emqx-operator/templates/crd-emqx-brokers.yaml need to update


Please tag a new version?

Could you please tag a new version of GZip so that we can get the fixes from https://github.com/JuliaLang/GZip.jl/commit/a01a29b71f6dae6e8cfa11776f3ef4fe205438d3 ? Thank you.

Closed by https://github.com/JuliaLang/METADATA.jl/pull/2435


[Features Wanted]builder like action, and a package for action

For example:
import "github.com/dannypsnl/action"

store.Dispatch(
    action.New("INC").
        Arg(`expression1`).
        Arg(`expression2`),
)

already move to action pkg

Done.
Like this:
store.Dispatch(
    action.New("INC").
        Arg('key1', `expression1`).
        Arg('key2', `expression2`),
)


Missing login button on mobile view

Mobile view is missing login option:
Current implementation:

Design:

Navigation will be remodeled with new menu design.


Flutter not working after upgrading

I upgraded to:
Flutter:1.7.8+hotfix.3
Dart: 2.4
No issues reported at the end of the upgrade.  Suddenly my project cannot build.  I decided to create a new project and tried to build the default flutter project.  I got the same error:
Launching lib/main.dart on SM J701M in debug mode...
Built build/app/outputs/apk/debug/app-debug.apk.
Security exception: Permission Denial: forceStopPackage() from pid=10286, uid=2000 requires android.permission.FORCE_STOP_PACKAGES
java.lang.SecurityException: Permission Denial: forceStopPackage() from pid=10286, uid=2000 requires android.permission.FORCE_STOP_PACKAGES
at com.android.server.am.ActivityManagerService.forceStopPackage(ActivityManagerService.java:8748)
at com.android.server.am.ActivityManagerShellCommand.runForceStop(ActivityManagerShellCommand.java:967)
at com.android.server.am.ActivityManagerShellCommand.onCommand(ActivityManagerShellCommand.java:197)
at android.os.ShellCommand.exec(ShellCommand.java:103)
at com.android.server.am.ActivityManagerService.onShellCommand(ActivityManagerService.java:20320)
at android.os.Binder.shellCommand(Binder.java:642)
at android.os.Binder.onTransact(Binder.java:540)
at android.app.IActivityManager$Stub.onTransact(IActivityManager.java:3442)
at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:4181)
at android.os.Binder.execTransact(Binder.java:739)
Error: ADB exited with exit code 1
Performing Streamed Install
adb: failed to install /Users/wilfordmorrison/testnew/build/app/outputs/apk/app.apk: Security exception: Permission Denial: runInstallCreate from pm command asks to run as user -1 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL
java.lang.SecurityException: Permission Denial: runInstallCreate from pm command asks to run as user -1 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL
at com.android.server.am.UserController.handleIncomingUser(UserController.java:1827)
at com.android.server.am.ActivityManagerService.handleIncomingUser(ActivityManagerService.java:25069)
at android.app.ActivityManager.handleIncomingUser(ActivityManager.java:4848)
at com.android.server.pm.PackageManagerShellCommand.translateUserId(PackageManagerShellCommand.java:2402)
at com.android.server.pm.PackageManagerShellCommand.doCreateSession(PackageManagerShellCommand.java:2408)
at com.android.server.pm.PackageManagerShellCommand.runInstall(PackageManagerShellCommand.java:907)
at com.android.server.pm.PackageManagerShellCommand.onCommand(Pa
Error launching application on SM J701M.
Exited (sigterm)
I added the permission stated above but same error.  Now I am totally lost.  For context the ios version of the default app works.
Regards,
Will

I have same issue.

The fix is to turn off usb debugging on the device.  Then reboot it.  Then turn if back on again.

@wmorrison1967 Cool, then I think it's safe to close the issue. If you have any updates or encounter it again, please don't hesitate to comment and I will re-open it.


XamlUiCommand -> XamlUICommand in commanding.md

Learn Build status updates of commit 55fa3f4:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

hub/apps/design/controls/commanding.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the learn.microsoft.com contributor guidesPost your question in the Learn support channel

#sign-off


Update keywords

Four of the keywords included in this file are contextual. In particular,
least predicate
greatest predicate
least lemma
greatest lemma

are keyword phrases in Dafny, but least and greatest are not keywords by themselves. Also, to and downto are keywords in the context of a for statement, but are not reserved elsewhere. Does this grammar have the power to make these distinctions? (If not, least, greatest, to, and downto are probably rare enough that it won’t bother too many users.)
Some operators are syntactically a prefix of others. For example, <= and <== and <==>. Do these need to be ordered in a particular way in this file?

Thanks for the PR. Unfortunately, I cannot question your answers as I have never worked with this file format so far. But I have quickly checked the documentation of VSCode regarding syntax highlighting and the one of TextMate about language grammar. I think we could add support for these keyword phrases, but we may have to rework the file (I think polishing wouldn't be too bad considering that there weren't many changes to the file in the past 8 years).
About to and downto: It might be possible in combination with the rule keys begin and end. Alternatively, we could enhance the language server with semantic highlighting to support contextual keywords.
Unfortunately, I haven't found anything about cases where keywords (or in this case the operators) are prefixes of others.


Remove any inheritance

@craigwblake-openlaw do you mind changing the base for this back to master because we're planning to get rid of develop soon? thank you!


Printing PDF crashes instantly before timeout

Hi there!
This has happened to me for a while, so I'm creating the issue to find & track the solution..
When printing a PDF (BUT NOT ALWAYS, just for some specific PDFs), I get this instant error, and then after the timeout I get the second one:
 13:47:55.105 [error] ChromicPDF received an 'Inspector.targetCrashed' message.

 This means an active Chrome tab has died and your current operation is going to time out.

 Known causes:

 1) External URLs in <link> tags in the header/footer templates cause Chrome to crash.
 2) Shared memory exhaustion can cause Chrome to crash. Depending on your environment, the
    available shared memory at /dev/shm may be too small for your use-case. This may
    especially affect you if you run ChromicPDF in a container, as, for instance, the
    Docker runtime provides only 64 MB to containers by default.

    Pass --disable-dev-shm-usage as a Chrome flag to use /tmp for this purpose instead
    (via the chrome_config option), or increase the amount of shared memory available to
    the container (see --shm-size for Docker).

** (ChromicPDF.Browser.ExecutionError) Timeout in Channel.run_protocol/3!

 The underlying GenServer.call/3 exited with a timeout. This happens when the browser was
 not able to complete the current operation (= PDF print job) within the configured
 15000 milliseconds.

 If you are printing large PDFs and expect long processing times, please consult the
 documentation for the `timeout` option of the session pool.

 If you are *not* printing large PDFs but your print jobs still time out, this is likely a
 bug in ChromicPDF. Please open an issue on the issue tracker.

 ---

 Current protocol:

 %ChromicPDF.Protocol{
   steps: [
     await: &ChromicPDF.Navigate.page_load_event/2,
     call: &ChromicPDF.PrintToPDF.print_to_pdf/2,
     await: &ChromicPDF.PrintToPDF.printed/2,
     call: &ChromicPDF.ResetTarget.reset_history/2,
     await: &ChromicPDF.ResetTarget.history_reset/2,
     call: &ChromicPDF.ResetTarget.blank/2,
     await: &ChromicPDF.ResetTarget.blanked/2,
     await: &ChromicPDF.ResetTarget.fsl_after_blank/2,
     output: &ChromicPDF.PrintToPDF.output/1
   ],
   state: %{
     :timeout => 15000,
     :name => "[FILTERED]",
     :output => "[FILTERED]",
     :size => 1,
     :__protocol__ => ChromicPDF.PrintToPDF,
     :checkout_timeout => "[FILTERED]",
     :html => "[FILTERED]",
     :capture_screenshot => %{},
     :print_to_pdf => %{
       "displayHeaderFooter" => true,
       "footerTemplate" => "[FILTERED]",
       "headerTemplate" => "[FILTERED]",
       "preferCSSPageSize" => true
     },
     :session_pool => [timeout: 15000],
     :max_uses => "[FILTERED]",
     :init_timeout => 5000,
     :close_timeout => "[FILTERED]",
     :offline => true,
     :ignore_certificate_errors => false,
     :unhandled_runtime_exceptions => :log,
     :last_call_id => 58976,
     :chrome_args => ["--disable-dev-shm-usage", "--no-sandbox"],
     :discard_stderr => false,
     :source_type => :html,
     :disable_scripts => true,
     :on_demand => false,
     "frameId" => "BD50B0FED77FA47ED74C0C9A95897A51",
     "sessionId" => "F23E67B74A4891AB54D14C7F3958E06D"
   }
 }

     (chromic_pdf 1.15.1) lib/chromic_pdf/pdf/browser/channel.ex:24: ChromicPDF.Browser.Channel.run_protocol/3
     (chromic_pdf 1.15.1) lib/chromic_pdf/pdf/browser/session_pool.ex:57: anonymous fn/3 in ChromicPDF.Browser.SessionPool.checkout!/3
     (nimble_pool 1.0.0) lib/nimble_pool.ex:349: NimblePool.checkout!/4
     (chromic_pdf 1.15.1) lib/chromic_pdf/pdf/browser/session_pool.ex:54: ChromicPDF.Browser.SessionPool.checkout!/3
     (chromic_pdf 1.15.1) lib/chromic_pdf/api.ex:72: anonymous fn/3 in ChromicPDF.API.chrome_export/4
     (chromic_pdf 1.15.1) lib/chromic_pdf/api/telemetry.ex:10: anonymous fn/2 in ChromicPDF.Telemetry.with_telemetry/3
     (telemetry 1.2.1) /app/deps/telemetry/src/telemetry.erl:321: :telemetry.span/3
     (chromic_pdf 1.15.1) lib/chromic_pdf/api.ex:27: anonymous fn/4 in ChromicPDF.API.print_to_pdf/3

As you can see, --disable-dev-shm-usage is already added and the timeout has been increased to 15s.
Also, I've checked and no external links exist either in headers or footers..
As I said, this only happens with certain PDFs, but I can't find what they have in common..
Anything I could do to fix or at least debug this?
I also get some warnings about the old interpreter 🤔 could be related to that?
**** Warning: You are using the legacy PDF interpreter (-dNEWPDF=false) which is now deprecated and unsupported

Thanks in advance!

Hi @xaviRodri,
The Inspector.targetCrashed notification tells you that Chrome's tab process has died, as you say instantly or at least before the window load event happens, as ChromicPDF was waiting for that notification.
Can you reproduce it locally? If so, try discard_errors: false to see if Chrome logs anything useful or compile with debug_protocols: true to see the full glory of devtools protocol messages going back and forth. Or maybe enable JS logging, if you have a lot of JS.
Otherwise, I'm afraid this will be hard to debug. Do the same PDFs keep failing consistently?

I also get some warnings about the old interpreter 🤔 could be related to that?

No, this is ghostscript and should disappear with https://github.com/bitcrowd/chromic_pdf/commit/6a45f521d4256c6c9056853493bf4e757efc1220 and Ghostscript >= 10.02.

Good news: I can reproduce locally.
More good news: after adding discard_stder: false & debug_protocol: true I get 1 more line of logs 😅
[0108/154119.851196:ERROR:nss_util.cc(55)] Failed to create /nonexistent/.pki/nssdb directory.

I hope this triggers something in your mind.. because I have no idea what this could be to be honest 😞
Another note I can add:

This happened using gs 10.0.0 in Debian bookworm inside a docker container.
Also tested with Alpine 3.18 and gs 10.02.0, same result

The error message looks like chrome is trying to create a file at /nonexistent/.pki/nssdb but failed. This could have a lot of reasons, I guess usual suspects in cases like this would be missing parent directories and incorrect permissions. "PKI" is public key infrastructure and nssdb is AFAIK Chromium's certificate store. Apart from that, this does not ring any bell unfortunately.
But great news that you can reproduce locally!

Do the same PDFs keep failing consistently? In other words, are you confident that success/failure is correlated to the input HTML you provide?
If so, I'd definitely next try to slim down your failing markup until it doesn't fail anymore
If you can, share a minimal working example of the failing PDF (e.g. a Dockerfile and an .exs script would be great). Can't promise anything on my end, but if a MWE is available and the issue is simple to reproduce, maybe others would be interested in helping out as well.

Last but not least, to your note about gs versions:  The error you originally posted is 100% related to Chromium, not Ghostscript. Ghostscript is executed only when the PDF was successfully generated by Chromium. Hence, chromium version would be more interesting.

@maltoe I've just found the issue!
We had a link in the body of one of the sources (not in the header/footer).
That link was inside an img_tag, so it was supposed to display an image.
Without this link, it just renders fine.
Now.. should it be like this? Because I've tried both with offline: true and offline: false and it doesn't affect the result.
We should be able to have links there when offline: false right?
Or am I missing something?

@xaviRodri glad you found the issue

That link was inside an img_tag, so it was supposed to display an image.

That wouldn't be valid HTML, would it? I suppose you mean img inside a?

Now.. should it be like this?

"no" to "should it be like this", but that's about it what I can do for you. If this markup crashes Chrome, there's not much else you can do besides working around the issue (i.e. eliminating this link). Or perhaps try to reproduce it without ChromicPDF (e.g. with puppeteer, or simply by calling chromium --print-to-pdf out.pdf my_bad_markup.html, and see if you can pursue the issue further in the puppeteer / chromium bug trackers.

We should be able to have links there when offline: false right?

Not sure. I don't think it should make a difference. offline: true basically tells Chrome to emulate missing network access, so if anything, it may stop Chrome from prefetching the link. But rendering it should work fine with or without, IMO.

Also, again, it would be superb if you could produce a minimal working example. I'd be keen to reproduce it myself and perhaps document it.

@maltoe I'm working on a mini repo so you can try it too 👍

That wouldn't be valid HTML, would it? I suppose you mean img inside a?

Nono, I mean a link inside the src of the image tag.

Hi again!
@maltoe here you have the repo: https://github.com/xaviRodri/chromic_example
You just need docker and follow the README 👍

FYI:
I thought the problem would be the link to the image itself, but I'm still getting the error even if I use data URI as the source of the image..
Again, this doesn't happen in my local (MacOS with M1) but in the docker image (Debian)

@xaviRodri thx for the repo

Had to disable seccomp first (docker run --security-opt seccomp=unconfined ...) to allow sandboxing inside docker
PDF creation worked fine inside docker
Also tried to create the PDF outside docker, just using the HTML markup, no issue

However, my machine has an x86 CPU and runs Linux on the host as well, so maybe this is a hint that the issue is related to the arm64 builds of Chromium? I'll try to get someone with Apple silicon to confirm this.

@maltoe I know why it worked for you.
The problem it's in the image itself (well actually its link). This one you have in the repo is one I got from imgur to not post the one I was using when testing. Using the imgur image worked for me too now..
Could you please try to update the src with what you will find inside the following link?
https://www.protectedtext.com/maltoe01.2024
password: maltoe2024

Can confirm, reproduced the issue with the cloudinary link inside the bookworm docker image. Same link outside that image on my ubuntu host works fine. Recap my tests

:green_circle: the lama from imgur in all scenarios
:green_circle: your cloudinary URL on my Ubuntu host
:green_circle: your cloudinary image (served via local httpd) on my Ubuntu host
:green_circle: your cloudinary image (served via local httpd) on my Ubuntu host
:red_circle: your cloudinary URL inside the bookworm container
:green_circle: other cloudinary URLs inside the bookworm container
:green_circle: your cloudinary image (served via file:// with chromium --print-to-pdf, see below) inside the bookworm container

So currently we think it's a weird combination of the bookworm container, this particular image and only when serving from cloudinary (or possibly served via HTTP in general, didn't try local httpd in the container)? Pretty odd issue :/

However, I did manage to reduce your example and take ChromicPDF out of the equation
<html>
<body>
  <img src="... your cloudinary URL ...">
</body>
</html>

chromium --headless --print-to-pdf test.html

^^ This hangs indefinitely, too, only inside the bookworm container. So - I guess this is not a new conclusion - I'm relatively confident to say this is not an issue within ChromicPDF. With that, I unfortunately need to reduce my efforts on this issue a little bit. Perhaps opening an issue in the Chromium bug tracker would make sense now?

@xaviRodri I'll close this for now, as I don't see a way of fixing this within ChromicPDF. If you find out a workaround that fixes it which could be incorporated into Chromic, feel free to reopen. Best of luck to you!

@xaviRodri I know this is an old issue, but I've recently run int the same problem with trying to write to nonexistent. In case my dockerized setup chrome was trying to create/write directories it had no permission to write to, and setting the XDG home/cache directories to something writable solved the issue:
FROM debian:bookworm-20240926-slim

ENV XDG_CONFIG_HOME=/tmp/.chromium
ENV XDG_CACHE_HOME=/tmp/.chromium

RUN apt-get update -y && \
    apt-get install -y libstdc++6 openssl libncurses5 locales ca-certificates curl gnupg \
    && curl --location --silent https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
    && sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \
    && apt-get update -y \
    && apt-get install google-chrome-stable -y --no-install-recommends \
    && apt-get clean && rm -rf /var/lib/apt/lists/*

...


No duplicate players

Added checks before a player can join the game.

I updated the tests and now everything should work as expected


Moving Inspect App to Openshift 4

Describe the Task
Moving Inspect App to Openshift 4
Related to #113
#144 Needs to be executed first

[x] Update all code to refer to the new Project on OCP4 - for Lucy
[x] Update Lucy Pipeline to refer to OCP4 and new server locations
[x] Consolidate NSP and External network code in the repository
[x] Run Lucy Pipeline
[ ] Verify Lucy Results

Still adding tools and tests.


Only provide a filename argument to URLDownloader if existing filename is not suitable

Many recipes based on download URLs benefit from a filename argument when including the URLDownloader processor:

http://macrabbit.com/espresso/get
https://srv3.airdroid.com/p14/web/getbinaryredirect?type=dmg
http://download.bjango.com/skalapreview/
https://central.github.com/mac/latest
https://hephaestus.infinit.io/macosx/installer/Infinit.dmg?t=1441494215512

Others are just fine as-is:

http://www.ohanaware.com/appwrapper/appWrapper3.zip
https://download-cdn.getsync.com/stable/osx/BitTorrent-Sync.dmg
http://static-download.s3-website-us-east-1.amazonaws.com/sketch.zip
http://www.sonnysoftware.com/Bookends.dmg

How can Recipe Robot determine which is which and apply the filename argument intelligently?

I think the thing that is in common with the junk names is that they're all redirects, arguments to PHP, or just directories. I would hazard a guess that if not os.path.splitext(download_url)[1]: would group the ones that need a filename, whereas anything with an extension is (hopefully!) going to be what it says it is.
Well, filtering for .php, and maybe .html, .html?
So perhaps:
_, extension = os.path.splitext("download_url")
if not extension or extension.upper() in NON_FILE_URL_TYPES:
    # Needs a filename.

@sheagcraig I started a similar idea in https://github.com/homebysix/recipe-robot/commit/f4855f467187d04d6273f8adc01e3adf9a0f62ef — do you think it has merit?

Another thing to consider is that we never are going to hurt anything by specifying a filename.
And if Recipe Robot consistently produces download filenames in a known format, for those people who do want to poke around in the Cache, it will always be obvious I think the snippet I put in above will work, and yours too.

At this time, I'm OK with adding an unnecessary filename argument for URLDownloader.


TerracottaDriver.get_metadata assumes meta store is writeable when lazy-loading metadata

When lazy-loading metadata, TerracottaDriver.get_metadata assumes that the meta_store has an implemented insert method:
metadata = self.meta_store.get_metadata(keys)

if metadata is None:
    # metadata is not computed yet, trigger lazy loading
    dataset = self.get_datasets(keys)
    if not dataset:
        raise exceptions.DatasetNotFoundError('No dataset found')

    path = squeeze(dataset.values())
    metadata = self.compute_metadata(path, max_shape=self.LAZY_LOADING_MAX_SHAPE)
    self.insert(keys, path, metadata=metadata)

    # ensure standardized/consistent output (types and floating point precision)
    metadata = self.meta_store.get_metadata(keys)
    assert metadata is not None

return metadata

However, this behaviour fails when using RemoteSQLiteMetaStore, as that meta store does not implement insertions. As far as I can tell, this problem also existed before the SQLAlchemy refactor (note how insert is overwritten to not be implemented here https://github.com/DHI-GRAS/terracotta/blob/30730e78e204b573d1c3eb755a0107e3f73021f0/terracotta/drivers/sqlite_remote.py#L139, while get_metadata assumes insert works here https://github.com/DHI-GRAS/terracotta/blob/30730e78e204b573d1c3eb755a0107e3f73021f0/terracotta/drivers/sqlite.py#L330).
@kiksekage encountered this problem while developing a STAC driver, which will also not support insertions.
We see two possible solutions:
a) Wrap the insertion into a try-except block:
metadata = self.compute_metadata(path, max_shape=self.LAZY_LOADING_MAX_SHAPE)

try:
    self.insert(keys, path, metadata=metadata)
    # ensure standardized/consistent output (types and floating point precision)
    metadata = self.meta_store.get_metadata(keys)
    assert metadata is not None
except NotImplementedError:
    pass

b) Introduce a PERSIST_LAZY_LOADED_METADATA setting (which defaults to True):
metadata = self.compute_metadata(path, max_shape=self.LAZY_LOADING_MAX_SHAPE)

if self.PERSIST_LAZY_LOADED_METADATA:
    self.insert(keys, path, metadata=metadata)
    # ensure standardized/consistent output (types and floating point precision)
    metadata = self.meta_store.get_metadata(keys)
    assert metadata is not None

What do you think?

I never intended the remote driver to be usable with lazy loading. I guess we would ideally raise a better error though.
Not persisting lazily computed metadata is a recipe for terrible performance and a major footgun, so I'd advise against that. try-except is better but not ideal either since raising NotImplementedError is not part of the "official" API.
How about we introduce a class attribute writable that TerracottaDriver checks before requesting write operations? Technically you could also have non-writable MySQL databases for example (e.g. if the MySQL user doesn't have write permissions). Then the appropriate exceptions could be raised in TerracottaDriver and RelationalDriver.

Theres a potential solution up on the issue225-lazy-writeable branch. Notably, the MetaStore class is set to be writable by default:
https://github.com/DHI-GRAS/terracotta/blob/a3aedcbfcd95aed279dd9754434b6409462b4bc1/terracotta/drivers/base_classes.py#L41
The added a very thin decorator to throw the new DatabaseNotWritable exception:
https://github.com/DHI-GRAS/terracotta/blob/a3aedcbfcd95aed279dd9754434b6409462b4bc1/terracotta/drivers/terracotta_driver.py#L23-L34
And then we access the flag directly when getting metadata from the meta store:
https://github.com/DHI-GRAS/terracotta/blob/22353ca9c3f99dbe4cdb70b7497d93162827713a/terracotta/drivers/terracotta_driver.py#L187-L194
Me and @nickeopti were discussing whether or not it was cleanest to handle the database "writability" in TerracottaDriver or all meta stores individually.
Does this look correct to you @dionhaefner and/or @mrpgraae? If yes, then ill write some tests.

Please open a PR so we can review these changes in more detail.

True! Up at #256 👍


Handle Content-Type and Content-Disposition headers

This follows up discussion on https://github.com/datopian/giftless/discussions/88

Thanks @shevron I missed your comment regarding the mime type guessing utility function and pushed 9953832 to address it.
Are you able to do a new release including these changes or should I chase someone else at Datopian to do it?

@amercader I've just issued a new tag / release, Docker image with version 0.5.0 should be available soon. BTW, can you take a look at https://github.com/datopian/giftless/issues/80 and if you think this release addresses that issue, close it?
Thanks for the PR :)


Added Poland to location module

Added Polish Cities
Added Polish example street names
Added Polish Address Formats

Hello, nice job!
One test failing on msvc compiler.
Give a star to the project to make it more popular 🔥


PyPi release?

How far are we from a PyPi release?

We have one:
https://pypi.org/project/seguid
You need a pypi user name to be a collaborator or co-owner.
and/or we can use pypi token for uploads from gh action:

I have created a token.

I can make a release now, but I have only one chance at a version 0.1.0. Pypi will not permit reusing version numbers.

Let's fix #17 first

You need a pypi user name to be a collaborator or co-owner.

My PyPi username is 'henrikb'.

sent invite from PyPI


verifyIdToken() call on Firebase Auth with Emulator always fails

[REQUIRED] Step 2: Describe your environment

Operating System version: macOS
Firebase SDK version: 10.0.2
Firebase Product: auth
Node.js version: v16.14.0
NPM version: v8.3.1

[REQUIRED] Step 3: Describe the problem
When running a server locally with the emulator, verifyIdToken() always fails.
Steps to reproduce:

Checkout v2-prod repository from https://github.com/google/webauthndemo/
Run it locally. (Need GOOGLE_CLOUD_PROJECT='try-webauthn' env var)
Try to sign-in with your google account

Expected: successfully signed in.
Actual: Identity verification fails.
Relevant Code:
This is where the error occurs: https://github.com/google/webauthndemo/blob/v2-prod/src/libs/auth.ts#L27
The actual error it throws is: Error: secret or public key must be provided.
I did a bit of a digging and noticed that for an emulator it's not passing secretOrPublicKey value in verifyJwtSignature().
https://github.com/firebase/firebase-admin-node/blob/master/src/utils/jwt.ts#L247

Note that FIREBASE_AUTH_EMULATOR_HOST is configured and effective while this issue is reproducible.

Ohh, I was overlooking that document. I'm actually using web-version-9 so used connectAuthEmulator, and I could successfully run the local server.
Thank you!


Fix accesses to __type__ from insert access policies

Fixes #4860.

The original RBAC code works.

Thanks for checking!


Add stochastic oracles

Right now Optimization.jl handles batching by a crude method. This amounts to asking users to pass in data arg to solve. This is expected to be an iterator, and more specifically a DataLoader https://fluxml.ai/Flux.jl/dev/reference/data/mlutils/#DataLoader. But, stochastic oracles are quite a fundamental part of modern optimization algorithms including recent work on second order and quasi-newton stochastic algs hence it would be more natural to have stochastic oracles which can be used directly by downstream algorithm implementations

Definitely agreed here, we can't really do a stochastic BFGS in the current form and that would be quite a useful method.

Yup there's a stochastic newton etc as well 😅


Hide selected outline

Hello! How can I hide the outline from selected region?

Sorry, already resolved...


Upgrade solana test validator to 2.0.14

Solana have now recommended 2.0.14 for mainnet-beta. Additionally, anzaxyz/agave is the official Solana validator image.
As part of this, rpc method getRecentBlockhash was removed and suggests to use getLastestBlockhash instead.
https://solana.com/docs/rpc/deprecated/getrecentblockhash

I have remedied this on the extract-solana-client branch, whereby the solana version is set in the gradle.properties. There is now only place that the version is specified, removing the need of a build rule. I'm going to approve and merge this request so that I can merge the changes into the working extract-solana-client branch.


Scan QR code design

Screens are here
zpl.io/am5eWz6
zpl.io/29OQ5JB
Camera access permission should be asked when user first tries to scan the code.
Dialog text: "Beam Wallet needs access to camera". Buttons Cancel/OK
If user chooses OK - open this screen zpl.io/29OQ5JB, if user chooses Cancel - back to that screen zpl.io/am5eWz6

checked


Missing source file

MetadataView.swift file is missing in the repo.

It is not missing, use Xcode to relocate the file - the path to file is not correct...

True, my bad, I should've thought about it. Thanks 👍


Can't use Cocoa Braces Syntax

I have a section of my plugin where I need to use Cocoa. This is obviously invalid JS, so I'm receiving an error on build.
I have some more details on this post over at the Sketch Plugins forum, but I'm curious how you use Cocoa within your plugins?
Would appreciate guidance on either how to get Cocoa to compile, or how to properly convert to dot notation.

you never NEED to use cocoascript. Cocoascript breaks every tooling available in javascript.
In your example, you can use NSXMLNode.attributeWithName_stringValue("attr", "val")

sometime there is trailing underscore for some reasons NSXMLNode.attributeWithName_stringValue_("attr", "val")

Oh my god I could kiss you. Thanks so much.
Is there anywhere that has this syntax conversion is documented? I'm trying to teach myself to fish here but am finding the documentation hard to locate... I could also just be dense.

hum probably but I can't find a link.
But it's quite straight forward: [Class methodWithArg1: @'arg1' andArg2:@'arg2 andArg3:@'arg3] -> Class.methodWithArg1_andArg2_andArg3('arg1', 'arg2', 'arg3')

Ah so it is because I'm dense. Many thanks.

@AaronPresley @mathieudutour Hunted down a reference for you all on the syntax conversion.
http://www.mugginsoft.com/kosmictask/help/languages/javascript-cocoa
JSCocoa supports two ways to call methods on Cocoa classes and objects. The first uses JavaScript property syntax. Cocoa method signatures are converted to function names by replacing : (colon) with _ (underscore). The trailing underscore on function names may be omitted.
Cross posted on sketchplugin.com forum.


Onboarding Request: CruzPlot

Active Development
Yes
Move source code
No
Tool name
CruzPlot
Tool abbreviation
CruzPlot
Author(s)
Sam Woodman, Tim Gerrodette
Contributor(s)
No response
Tool logo
No response
NOAA Internal
Yes
Maintainer Name
Sam Woodman
Maintainer Email
<EMAIL_ADDRESS>Background Text
CruzPlot is a utility program for creating maps, plotting data, and performing basic data summaries from data files in the “DAS” format. Specifically, CruzPlot is an R package, which contains an R Shiny app (also of the same name) the performs the functions described above. See https://github.com/SWFSC/swfscDAS/ for a discussion of the "DAS" format
Citation
n/a
References
https://swfsc-publications.fisheries.noaa.gov/publications/TM/SWFSC/NOAA-TM-NMFS-SWFSC-305.PDF
Associated Tools
https://github.com/SWFSC/swfscDAS/
User Organizations
https://ror.org/022d75229, https://ror.org/02apffz65
Online App Link
https://connect.fisheries.noaa.gov/CruzPlot
Executable Link
No response
Website Link
No response
Documentation Link
https://swfsc.github.io/CruzPlot/
Source Code Link
https://github.com/SWFSC/CruzPlot
Software Badges
https://www.r-pkg.org/badges/version/CruzPlot
Installation instructions
In R, install from CRAN via install.packages("CruzPlot"). See more installation instructions and options at https://github.com/SWFSC/CruzPlot/blob/main/README.md#installation
Toolbox Drawers

[ ] Ecosystems
[ ] Fish and Fisheries
[ ] Human Dimensions
[X] Protected Species
[ ] General Modeling Tools
[ ] Utility Tools

Keywords

[ ] ADMB
[ ] Age Structured Model
[ ] Bayesian Modeling
[ ] Bycatch
[ ] C++
[ ] Calculator
[X] Data Exploration
[ ] Data Limited Method
[X] Data Visualization
[ ] Decision Support Tool
[ ] Developer Utilities
[ ] Economics
[ ] Ecosystem
[ ] Ensemble Modeling
[ ] Fish Biology
[ ] Fisheries
[ ] Gradient Solver
[ ] Guided User Interface
[ ] Individual Based Model
[ ] Legacy Tool
[ ] Length Structured Model
[ ] Management Strategy Evaluation
[X] Marine Mammals
[ ] Maximum Likelihood Estimation
[ ] Model Builder
[ ] Model Comparision
[ ] Multispecies Model
[ ] Natural Mortality Model
[ ] NOAA Branding
[ ] North Pacific
[ ] Output Visualization
[ ] Projection Modeling
[X] R Package
[ ] Reference Points Model
[ ] Risk Assessment Tool
[ ] Salmon
[ ] Sampling Decision Tool
[X] Shiny
[ ] Simulation
[ ] Size Spectra Model
[ ] Size Structured Model
[ ] Socioeconomics
[ ] Spatial Model
[ ] Species Distribution Model
[ ] Standardized Reporting
[ ] Stock Assessment Model
[ ] Stock Assessment Projections
[ ] Stock Assessment Tool
[ ] Surplus Production Model
[ ] Tag Data Model
[ ] Teaching Tool
[ ] Time Series
[ ] TMB
[ ] User Utilities
[ ] Virtual Population Analysis
[ ] Visualization
[ ] Web App

Uses Github Releases
Yes
Static version number
No response
Comments
No response
Code of Conduct

[X] I agree to follow the FIT's Code of Conduct

Automatically generated JSON for the onboarding request:
{
  "active_development": true,
  "tool_name": "CruzPlot",
  "tool_abbreviation": "CruzPlot",
  "authors": "Sam Woodman, Tim Gerrodette",
  "noaa_internal": true,
  "maintainer_name": "Sam Woodman",
  "maintainer_email"<EMAIL_ADDRESS>  "background_text": "CruzPlot is a utility program for creating maps, plotting data, and performing basic data summaries from data files in the “DAS” format. Specifically, CruzPlot is an R package, which contains an R Shiny app (also of the same name) the performs the functions described above. See https://github.com/SWFSC/swfscDAS/ for a discussion of the \"DAS\" format",
  "citation": "n/a",
  "references": ["https://swfsc-publications.fisheries.noaa.gov/publications/TM/SWFSC/NOAA-TM-NMFS-SWFSC-305.PDF"],
  "associated_tools": [
    {
      "name": "https://github.com/SWFSC/swfscDAS/",
      "link": "httpNA"
    }
  ],
  "user_organizations": ["https://ror.org/022d75229", "https://ror.org/02apffz65"],
  "online_app_link": "https://connect.fisheries.noaa.gov/CruzPlot",
  "documentation_link": "https://swfsc.github.io/CruzPlot/",
  "source_code_link": "https://github.com/SWFSC/CruzPlot",
  "software_badges": ["https://www.r-pkg.org/badges/version/CruzPlot"],
  "installation_instructions": "In R, install from CRAN via `install.packages(\"CruzPlot\")`. See more installation instructions and options at https://github.com/SWFSC/CruzPlot/blob/main/README.md#installation",
  "toolbox_drawers": ["Protected Species"],
  "keywords": ["Data Exploration", "Data Visualization", "Marine Mammals", "R Package", "Shiny"],
  "uses_github_releases": true
}


Remove Performance/CaseWhenSplat cop

TL;DR
The Performance/CaseWhenSplat cop provides marginal and context-sensitive performance benefits, and advises unsafe changes. We should remove it.
Description
The Performance/CaseWhenSplat cop was originally introduced to optimise memory allocations in case statements with splatted conditions. In profiling over some of the most case-statement-heavy parts of the rubocop codebase it showed a 2% improvement in allocations.
However, as the original PR notes, the suggested change:

is only safe to make if the case conditions are disjoint
doesn't confer performance benefits in all conditions

Contrary to this, the cop's docs state:

Since Ruby does not support fall through inside of case when, like some other languages do, the order of the when branches does not matter.

This isn't true, and is likely to result in inexperienced users introducing bugs when complying with the cop. In the cop's examples, the following replacement is advised:
# bad
case foo
when *condition
  bar
when baz
  foobar
end

# good
case foo
when baz
  foobar
when *condition
  bar
end

Here, if baz is a member of condition, this edit will alter the meaning of the case statement. In the original PR this wasn't considered a significant concern, but I'd argue that it's highly problematic for a linter to propose edits that have semantic implications.
In response we could:

Update the cop's documentation
Disable it by default
Remove it

In this PR I've prepped the removal option, since I believe the performance gains of the cop are so small and context-sensitive that I don't believe it makes sense to implement it as a linter rule, particularly since we can't guarantee that the changes advised are safe.
I'd welcome feedback on what approach to take, however. What do you think?

Before submitting the PR make sure the following are checked:

[x] Wrote good commit messages.
[x] Commit message starts with [Fix #issue-number] (if the related issue exists). N/A
[x] Feature branch is up-to-date with master (if not - rebase it).
[x] Squashed related commits together.
[x] Added tests.
[x] Added an entry to the Changelog if the new code introduces user-observable changes. See changelog entry format.
[x] The PR relates to only one subject with a clear title
and description in grammatically correct, complete sentences.
[x] Run rake default or rake parallel. It executes all tests and RuboCop for itself, and generates the documentation.

You are absolutely right about the potential change to functionality if the same condition is defined multiple times. In the time since the cop was released, 3 years ago, this is the first time anyone has brought this up as an issue. To me, this means the original assumption about it being low risk is correct. However, low risk does not mean no risk.

In profiling over some of the most case-statement-heavy parts of the rubocop code base it showed a 2% improvement in allocations

This is a little misleading. This cop provided a 2% memory reduction for all of RuboCop. The memory consumption of variable_force.rb dropped by 30%. variable_force.rb was the main file that was impacted by this cop. The change to variable_force.rb was significant.

Since Ruby does not support fall through inside of case when, like some other languages do, the order of the when branches does not matter.

What I meant here is that in some languages, if the same condition shows up in multiple when statements, all of the matching when conditions will be executed in the order they are hit. This is not the case with Ruby. Again an assumption is being made here that because of this, a user will want to make sure that each of there when conditions is unique. As you pointed out, this may not be true if someone is manually defining a when condition with a condition that also exists in a splat expanded variable.
Like many of the other performance related cops, the performance benefits are highly dependent on the context of the code itself. I feel like it is a bit extreme to completely remove this cop. I think a better course of action would be to update the documentation and/or disable it by default.

Hi @rrosenblum - thanks for the response. 👍
I guess my feeling is that a linter should never recommend semantically significant changes to code, even if the likelihood of it causing problems is low - rubocop is ubiquitous in the ruby world, so if something can happen, it almost certainly will (and you may not hear about it, either).
For what it's worth, the code it objected to for me was something like the following:
IGNORE_EXCEPTIONS = [OopsyDaisyError, NeverMindItllProbablyGetBetterOnItsOwnError]
SPECIAL_EXCEPTIONS = [PokedMyselfInTheEyeError, WhyDidIDoThatError]

def handle_error(error)
  case error
  when *IGNORE_EXCEPTIONS then return
  when *SPECIAL_EXCEPTIONS then do_a_special_thing(error)
  when StandardError then do_a_standard_thing(error)
  else do_a_catchall_thing(error)
  end
end

This doesn't feel particularly exotic, as case statements are great for switching on type where necessary. Because StandardError is a superclass of most other errors, the reordering changes the case meaning.
So for me, where the benefits are so context-sensitive, it seems like it's not a risk worth running. It might be a performance benefit, it might not; a user will need to profile to know either way, so what's the cop for? If a condition reordered to the top of a case statement to comply with this cop is expensive, the performance effects could be significantly negative; rubocop simply has no way of knowing.

Like many of the other performance related cops, the performance benefits are highly dependent on the context of the code itself.

To be completely honest, for exactly this reason I'm pretty skeptical that a linter should be providing performance advice at all, as it can't know whether its advice will help or not. In my experience, performance optimisations gleaned from one codebase very rarely confer significant advantages in others; you always, always need to profile.
While I'd much prefer removal, I wouldn't object too strenuously to disabling it by default. I'm not sure I see the value in this option; a user would presumably need to know the cop was beneficial to want to enable it, implying they'd profiled the code to find out. I don't think updating the docs is sufficient on its own, but I do think we should do this if the cop is disabled.

@urbanautomaton you bring up some great points.
In general, I feel as though a cop should be removed if it doesn't work, doesn't provide value, or is no longer functional. In this case, there is an unsafe auto-correct, but the cop itself still works and can provide value to someone.
Unfortunately, the average user likely only sees the output message from the offense. They likely don't read the documentation for the actual cops. In this case, disabling auto-correct by default would force the user to make decisions about their code themselves. I think the best bet would be to disable auto-correct or the cop by default. Either way, we should look at updating the documentation for the cop to make sure all risks are known.

To be completely honest, for exactly this reason I'm pretty skeptical that a linter should be providing performance advice at all, as it can't know whether its advice will help or not. In my experience, performance optimisations gleaned from one codebase very rarely confer significant advantages in others; you always, always need to profile.

All of the performance cops have been a touchy subject for this reason. There are plans to move the performance cops out into a separate gem which would effectively disable them all by default. It is unlikely that the performance cops will make a slow application fast, however it allows us to recommend, and auto-correct, improvements for the user.
RedundantMerge is a good example of this. hash.merge!(a: 1) vs hash[:a] = 1 by itself is a negligible change. The performance gain for a single change is small. The readability of both pieces of code is essentially the same. I find it beneficial to be able to provide improvements like this.

In this case, there is an unsafe auto-correct, but the cop itself still works...

I don't agree that the auto-correct is the problem - the problem is that the edit required to pass the cop is unsafe whether automatically applied or not, and can never be made safe. So I'd argue that the cop doesn't (and can't) work.

Unfortunately, the average user likely only sees the output message from the offense. They likely don't read the documentation for the actual cops. In this case, disabling auto-correct by default would force the user to make decisions about their code themselves. I think the best bet would be to disable auto-correct or the cop by default.

If we do retain the cop, I think it should be disabled by default, rather than just turning off autocorrect. Rubocop speaks with a normative voice (its examples are all "good" vs "bad"), so an inexperienced user will likely take an error as an instruction and implement it, autocorrect or no. A linter where you constantly have to evaluate whether the advice is safe loses much of its value.

All of the performance cops have been a touchy subject for this reason. There are plans to move the performance cops out into a separate gem which would effectively disable them all by default.

Ah, that's really interesting, thanks for the info. I'll stop there though cos I think I've dragged us off-topic - maybe one for the mailing list. 😄

Closing in favour of #6188.


Explore if we can setup shell completion as part of install.sh

https://github.com/build-trust/ockam/blob/develop/install.sh

More information on how to implement shell completion:

https://github.com/build-trust/ockam/pull/5690

@mrinalwadhwa Apologies for my ignorance but, is this the kind of shell completion referred to in this issue?

How to create a Bash completion script
Shell Auto Completion in Linux

If so, could I be assigned to this issue? I'd love to try my hand at it.
PS: The link to install.sh above is broken.

@mrinalwadhwa Hi! Please, could you clarify if the shell completion described in the following articles is the same referred to in this issue?

How to create a Bash completion script
Shell Auto Completion in Linux

If so, could I be assigned? I'd love to try my hand at this.
PS: The link to install.sh above is broken. Found it in the tools directory, though.

@mrinalwadhwa Hi! Wanted to check if you've gotten a chance to check out my previous comment.

@Wryhder sorry for the slow response. I've ben traveling.. I'll share some thoughts later today

@Wryhder there's a detailed step on how to setup shell completion in this comment, Homebrew also has a writeup on how they setup bash completion https://docs.brew.sh/Shell-Completion. Here's how I will setup bash completion if it's only for zsh which I use
In the install.sh script, I will

create a new function called install_autocomplete
Check if the ~/.zshrc file exist
Create a file $HOME/.ockam/autocomplete/zsh/_ockam which will contain the autocomplete commands
Add autocomplete path to zshrc

install_autocomplete_zsh() {
  mkdir $HOME/.ockam/autocomplete

  if [[ ! -f "~/.zshrc" ]]; then
     echo "system doesn't support zsh shell"
     return
  fi

  mkdir $HOME/.ockam/autocomplete/zsh
  ockam autocomplete zsh > $HOME/.ockam/autocomplete/zsh/_ockam
  info "Adding autocomplete to zsh"
  echo >>"~/.zshrc"
  echo "FPATH="$HOME/.ockam/autocomplete/zsh:${FPATH}" >> "~/.zshrc"
  echo "autoload -Uz compinit" >> "~/.zshrc"
  echo "compinit" >> "~/.zshrc"
}

I hope this helps

@Wryhder there's a detailed step on how to setup shell completion in this comment, Homebrew also has a writeup on how they setup bash completion https://docs.brew.sh/Shell-Completion. Here's how I will setup shell completion if it's only for zsh which I use In the install.sh script, I will

create a new function called install_autocomplete_zsh
Check if the ~/.zshrc file exist
Create a file $HOME/.ockam/autocomplete/zsh/_ockam which will contain the autocomplete commands
Add autocomplete path to zshrc

install_autocomplete_zsh() {
  mkdir $HOME/.ockam/autocomplete

  if [[ ! -f "~/.zshrc" ]]; then
     echo "system doesn't support zsh shell"
     return
  fi

  mkdir $HOME/.ockam/autocomplete/zsh
  ockam autocomplete zsh > $HOME/.ockam/autocomplete/zsh/_ockam
  info "Adding autocomplete to zsh"
  echo >>"~/.zshrc"
  echo "FPATH="$HOME/.ockam/autocomplete/zsh:${FPATH}" >> "~/.zshrc"
  echo "autoload -Uz compinit" >> "~/.zshrc"
  echo "compinit" >> "~/.zshrc"
}

I hope this helps

This helps a lot, thank you!


Bump Dependencies #1120601031

Bumps dependencies for product-is. Link : https://github.com/wso2/product-is/actions/runs/1120601031

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.jenkins-is-staging seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


KAFKA-16211 Inconsistent config values in CreateTopicsResult and DescribeConfigsResult

More detailed description of your change,
if necessary. The PR title and PR message become
the squashed commit message, so use a separate
comment to ping reviewers.
Summary of testing strategy (including rationale)
for the feature or bug fix. Unit and/or integration
tests are expected for any behaviour change and
system tests should be considered for larger changes.
Committer Checklist (excluded from commit message)

[ ] Verify design and implementation
[ ] Verify test coverage and CI build status
[ ] Verify documentation (including upgrade notes)

Close the PR because, as Chia-Ping described in the ticket, this is an expected behavior.


Get all transactions of user endpoint

Make this pageable as well
No user id to be passed in url, get email from jwt token instead
should be accessible by member and above

assign pls


Session.findByCredentials(username, password, done);

Session.findByCredentials(username, password, done) in server/auth.js does not correspond with the Session model function that expects the session _id and key like in Aqua:
static findByCredentials(id, key, callback) {
    const self = this;

    Async.auto({
        session: function (done) {

            self.findById(id, done);
        },
        keyMatch: ['session', function (results, done) {

            if (!results.session) {
                return done(null, false);
            }

            const source = results.session.key;
            Bcrypt.compare(key, source, done);
        }]
    }, (err, results) => {

        if (err) {
            return callback(err);
        }

        if (results.keyMatch) {
            return callback(null, results.session);
        }

        callback();
    });
}

Never mind, I just found the answer in the door-bell branch.

Thanks for responding Reza.
Like I mentioned there is an answer to my question in that branch, however that code has to change or Frame does not work. And the code I found is very different from the new approach in Frame (which uses MongoModels and not var BaseModel = require('./base');)
I would be nice to bring that code up to date. Don't you think? The problems with the code the way it is are only apparent when you use a real client not if you test it with Postman for example.
Thanks in advance again.

I would be nice to bring that code up to date. Don't you think?

No. I'm going to delete that branch since it's so out of date.
I suggest following the most up-to-date docs for bell.

What I mean is bring the code in Frame Master up to date. Not that branch
that, like you said, it is totally out of date.
However in that branch the method Session.findByCredentials = function
(username, key, callback) has the correct arguments needed by Frame which
uses 'api-auth-basic'
Sorry about the confusion.
On Sun, Nov 12, 2017 at 4:56 PM, Reza Akhavan<EMAIL_ADDRESS>wrote:

I would be nice to bring that code up to date. Don't you think?
No. I'm going to delete that branch since it's so out of date.
I suggest following the most up-to-date docs for bell.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/jedireza/frame/issues/185#issuecomment-343775526, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAgZhnqzT5larzYfm80Mx4-hFQSz_GzFks5s13eagaJpZM4QWr0U
.

What I mean is bring the code in Frame Master up to date.

Oh. Well with the big changes we're seeing with hapi v17 and the other core modules migrating to async/await, we definitely have a lot of work to do there. 😉


[Flink-20766][table-planner-blink] Separate implementations of sort ExecNode and PhysicalNode.

What is the purpose of the change
Separate the implementation of sort ExeNode
Brief change log

Introduce StreamPhysicalSort, and make StreamExecSort only extended from ExecNode
Introduce StreamPhysicalSortLimi, and make StreamExecSortLimit only extends from ExecNode
Introduce StreamPhysicalTemporalSort, and make StreamExecTemporalSort only extended from ExecNode
Introduce BatchPhysicalSort, and make BatchExeSort only extended from ExecNode
Introduce BatchPhysicalSortLimit, and make BatchExecSortLimit only extended from ExecNode

Verifying this change
This change is already covered by existing tests.
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/Mesos, ZooKeeper: (no)
The S3 file system connector: (no)

Documentation

Does this pull request introduce a new feature? (no)

thanks for the quick review @godfreyhe , the pr is updated.

thanks for the quick review @godfreyhe , the pr is updated.

thanks @godfreyhe for the review, I have address you last comment and squash the commits.

thanks @godfreyhe for the review, I have address you last comment and squash the commits.


cannot use dpr(auto()) in React component (React SDK)

For which package is this issue?
React
Describe the issue in a sentence or two.
Hi, trying to upgrade cloudinary-react to use the updated frontend framework and having some trouble implementing image 'dpr'.
I have a custom reusable react "image" component that utilizes AdvancedImage, and I imported 'dpr' from cloudinary delivery folder. The custom image component has a 'imageDPR' prop and takes in a string, I have a function that calls dpr(auto()) or dpr(imageDPR input) on the cloudinary instance. Then passing that instance to AdvancedImage.
I'm getting an error that 'auto' is not defined.
I imported 'dpr' from the delivery folder, is there somewhere else I should import from?
Any help is appreciated... thank you.
Issue Type (Can be multiple)
[ ] Build - Can’t install or import the SDK
[ ] Performance - Performance issues
[x] Behaviour - Functions aren’t working as expected
[ ] Documentation - Inconsistency between the docs and behaviour
[ ] Incorrect Types
[x] Other (Specify)
import {dpr} from "@cloudinary/url-gen/actions/delivery"; and using dpr(auto()) is returning an error
related cloudinary imports:
import { AdvancedImage, responsive, placeholder } from '@cloudinary/react'
import { Cloudinary } from '@cloudinary/url-gen';
import {dpr} from "@cloudinary/url-gen/actions/delivery";

function in component showing "auto" is not defined:
// imageDPR prop value is 'defaultAuto' and the below function returns error that auto is not defined...
function setImageDPR(imageDPR) {
    switch (imageDPR) {
      case 'defaultAuto':
        return dpr(auto());
      case imageDPR.length:
        return dpr(imageDPR.toString());
      default:
        return '';
    }
  }

Versions and Libraries (fill in the version numbers)
Node - v16.16.0
NPM - 8.11.0
Config Files (Please paste the following files if possible)
"@cloudinary/react": "^1.4.1",
"@cloudinary/url-gen": "^1.8.0",

Hey Leah,
setDPR('auto') is now deprecated. The new syntax will be setDPR(devicePixelRatio || 1). A user can use dpr_auto but this has no meaning on the Cloudinary servers.  (The legacy SDK replaces auto with a number, for example dpr_2).

Thanks!


Set Visitor Name/email in

Is there a way to set Visitor Name/email <LiveChat ... />

Yes. I did that on my fork.
Just add:
customerData: PropTypes.object (line 414 master/LiveChat/index.js)
And
customerSDK.updateCustomer(this.props.customerData); (line 261 master/LiveChat/index.js)
You can send a object like
{
  name: 'John Doe',
  email<EMAIL_ADDRESS>  sessionFields: {
    custom_property: 'BasketValue=10usd',
    any_key_is_ok: 'sample custom field',
  },
}

it is borderline absurd that this feature is not supported OOB. so basic.

Is there any news about this issue?

any solutionn ?


simplify error handling

see the recent reddit posts

https://github.com/dtolnay/thiserror
https://www.reddit.com/r/rust/comments/dfs1zk/2019_q4_error_patterns_snafu_vs_errderive_anyhow/
https://gitlab.com/torkleyy/err-derive/-/tags/v0.2.0


Multiple waveform instances do not generate waveform.

Hi,
Let me start off by saying I love your lib.
Trying to implement a slider (with multiple wavesurfer instances, some are "hidden"), using wavesurefr v1.0.53. Currently the waveform is generated in the FE. The code which generates them looks like this:
    var $parentContainer = $(item.closest('.slide')),
        $smallAudioPlayButton = $parentContainer.find('.js-audio-play'),
        $bigAudioPlayButton = $parentContainer.find('.js-slider-audio-play'),
        $currentLength = $parentContainer.find('.js-audio-current-position'),
        $totalLength = $parentContainer.find('.js-audio-total-length');

    var player = wavesurfer.create({
        audioContext: ctx,
        container: item,
        waveColor: 'white',
        progressColor: '#00B22D',
        barWidth: '2',
        backend: 'MediaElement',
        height: '60'
    });

    player.load(item.getAttribute('src'));

    player.on('finish', function() {
        $smallAudioPlayButton.removeClass('fa-pause-circle');
        $smallAudioPlayButton.addClass('fa-play-circle');
        player.seekTo(0); // rewind!
    });

    player.on('audioprocess', function(currentDuration) {
        // wavesurfer bug.
        if (currentDuration < 1) {
            return;
        }
        $currentLength.text(durationToText(currentDuration));
    });

    player.on('ready', function() {
        $totalLength.text(durationToText(player.getDuration()));
    });

    m.audioPlayers.push(player);

});

The problem I'm facing is that the waveform for the first audio is generated, but then the rest don't, no console/js errors.
Any help / entry point to start debugging would be greatly appreciated.
Best regards & Happy new years!
Ben.

Looks like the code you posted is not complete. I don't see any loops that would create multiple waveforms. Can you post your full code on codepen.io?

Thanks for the quick response.
Sorry, left out the first line:
$('.waveform').each(function(idx, item) {
    var $parentContainer = $(item.closest('.slide')),
        $smallAudioPlayButton = $parentContainer.find('.js-audio-play'),
        $bigAudioPlayButton = $parentContainer.find('.js-slider-audio-play'),
        $currentLength = $parentContainer.find('.js-audio-current-position'),
        $totalLength = $parentContainer.find('.js-audio-total-length');

    var player = wavesurfer.create({
        audioContext: ctx,
        container: item,
        waveColor: 'white',
        progressColor: '#00B22D',
        barWidth: '2',
        backend: 'MediaElement',
        height: '60'
    });

    player.load(item.getAttribute('src'));

    player.on('finish', function() {
        $smallAudioPlayButton.removeClass('fa-pause-circle');
        $smallAudioPlayButton.addClass('fa-play-circle');
        player.seekTo(0); // rewind!
    });

    player.on('audioprocess', function(currentDuration) {
        // wavesurfer bug.
        if (currentDuration < 1) {
            return;
        }
        $currentLength.text(durationToText(currentDuration));
    });

    player.on('ready', function() {
        $totalLength.text(durationToText(player.getDuration()));
    });

    m.audioPlayers.push(player);

});

Since there is HBS and multiple components it would be a bit harder for me to get a working example. Please allow until tomorrow.
If there's anything wrong which pops up for you in this code LMK.
Best regards,
Ben.

Hi Ben,
Any wavesurfer containers with display: none will not render. When wavesurfer gets the dimensions of the hidden container element, the browser will say it has no width and no height. Therefore, wavesurfer will render nothing.
I don't have your HTML here, so I can't say for certain that this is the case, but it was for another user who raised an issue recently.
If you are indeed hiding your elements by setting display: none, you can try setting visibility: hidden instead. This will probably exhibit undesirable behaviour, but it should tell us if this is indeed the case, and we can move forward from there.

If I were a soothsayer, I would say the src attribute on the container looks weird. Is it an audio element? Also, what is the ctx in audioContext: ctx? Have you tried without it?

@chrisparton1991 tried replacing the display: none with visibility: hidden, didn't help.
@katspaugh  tried without the ctx, didn't help.
I'm also noticing it is inconsistent, meaning, it sometime renders the waveform and sometimes doesn't.

Is there any chance of you making a CodePen that reproduces the issue? You could also try updating to a later version of Wavesurfer if that's possible for your project, there have been quite a few changes since v1.0.53.

Hi @chrisparton1991 @katspaugh
Apparently as @chrisparton1991 suggested the visibility: hidden solution worked, and I've missed a parent container which had display: none.
Thank you for your help and sorry to have wasted your time. Keep up the awesome job, this project is great!


Cache not found fixes

This line and somewhere there, is very annoying.
To reproduce.

Bundle a project
Hack into .fusebox folder
Remove any of those files:

I don't have a solution yet. Just leave it be here for now.

Can we move cache to be in memory?
I had to delete the .fusebox folder to get it it to pickup my locally patched module files https://github.com/fuse-box/fuse-box/blob/36e437185bd684fccab20ffd6ad17f8dc21c9f58/modules/fusebox-hot-reload/index.js . Of course local patching isn't really recommened so feel free to ignore me 😄 :rose:

@basarat  we already implemented memory caching algorithms it would be great to make it all in memory yeah :)

It's all in memory, and yeah modules are treated like any other npm package

It's  just when It failed  to retrieve a file from cache it does not re-trigger the bundle process on that package


DA: Integration tests using sampling

Joined all DA related services into a TestNode. There are still separate verifier and indexer tests, but these could be merged into one. Because there are only two nodes in a memberlist, subnetwork peer selection sometimes fail.
There's a minor fix for random sampling selection to pick subnet id in a range of possible subnets.

Hi @bacv , just a curious question. Looking at sampling behaviour, I can see peer_id quite often. Do we need to carry it at this level ? Wouldn't be enough to have peer_id awareness at swarm level ?

Hi @bacv , just a curious question. Looking at sampling behaviour, I can see peer_id quite often. Do we need to carry it at this level ? Wouldn't be enough to have peer_id awareness at swarm level ?

Carry as for what? Usually we try to record it for errors. Also for tracking the connections. And each sub-protocol has to keep its own responsability (as they handle reused connections differently).

Merging this as the PR is DA related and the requests for changes were addressed.

Closes https://github.com/logos-co/nomos-node/issues/772


Error generating swift after updating Xcode tools

After updating to Xcode 8.3, I am unable to generate messages.

protoc-gen-swift built from 0.9.28
Apple Swift version 3.0-dev (LLVM 440a472499, Clang e10506ae1c, Swift 395e967875)

Command:
protoc --swift_out=. *.proto
Output:
dyld: Symbol not found: __TWPVSS13CharacterViews13IndexableBases
  Referenced from: /usr/local/bin/protoc-gen-swift
  Expected in: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib
 in /usr/local/bin/protoc-gen-swift
--swift_out: protoc-gen-swift: Plugin killed by signal 6.

Trying doing a clean and then rebuild, that could be mixing old and new swift versions.  A there is now an unofficial 0.9.29 cut today for some of the latest updates.

I've tried cleaning and building, but the build fails too. I'll create an issue for that

After updating to Apple Swift version 3.1 (swiftlang-802.0.48 clang-802.0.38) and 0.9.29, I am able to build.

it was working fine for last few days - now suddenly failing.

xcrun swift -version
Apple Swift version 3.1 (swiftlang-802.0.53 clang-802.0.42)

going to try brew upgrade.

fixed it. https://github.com/johndpope/updater-for-macos

@davidmuzi +1
Did you fix it?

@davidmuzi, I just found the same issue, but I'm using Apple Swift version 3.1 (swiftlang-802.0.53 clang-802.0.42). Could you shed some light on this?
Thanks!

Oh, turns out it's because I used RayWenderlich's precompiled protoc-gen-swift, which incompatible with my current Swift version.
Apologies for the rubber ducking!

We should see about static linking protoc-gen-swift.  Otherwise, folks are going to keep running into problems with mismatched Swift system libraries.


for #1878 refactor refreshTableMetaData.

Pull Request Test Coverage Report for Build 6863

26 of 28 (92.86%)  changed or added relevant lines in 3 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.01%) to 74.493%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

sharding-jdbc/sharding-jdbc-core/src/main/java/org/apache/shardingsphere/shardingjdbc/executor/AbstractStatementExecutor.java
22
24
91.67%

Totals

Change from base Build 6861:
-0.01%

Covered Lines:
10803

Relevant Lines:
14502

💛  - Coveralls


Ursache 4000: Etwas ist schiefgelaufen, error during web request http status 901

Avoid duplicates

[x ] Bug is not mentioned in the FAQ
[x ] Bug is specific for Android only, for general issues / questions that apply to iOS and Android please raise them in the documentation repository
[x ] Bug is not already reported in another issue

Describe the bug
Message popped up when I tried to open my test. Before my mobile phone started and received messages with other apps (wifi was working fine).

That was yesterday, today I had a different bug, which was already mentioned, issue 968.
Expected behaviour
Show test result
Steps to reproduce the issue
Does not always occur, only after starting Android in the morning. For steps see description.
Technical details

Possible Fix

Additional context

Hi @kira99 ,
Thanks for reporting the issue. It is a known error. Error 4000 is related to your Internet connection. A device restart usually helps to solve the problem.
corona-warn-app/cwa-app-android#712
This comes due to a UnknownHostException that could have happened due to a network reset or a problem during the establishment of the connection. This is not a real "crash" and will not affect App functionality once your standard internet connectivity is restored. Sometimes this can be caused when your phone is connected to WiFi but your WiFi has no connectivity towards the internet.
Best regards,
SD
Corona Warn-App Open Source Team

Hi @SonaliDK , in analogy of https://github.com/corona-warn-app/cwa-app-android/issues/934#issuecomment-664473293 I want to kindly ask to re-open this issue.
Even the reported bug might solving itself after restarting the phone or waiting some time until a reliable internet connection is established, users should get an appropriate notification.
This may be done by better handling of thrown exceptions, and show the user a more helpful message/notification, e. g. "No internet connection at the moment - please wait a while and retry later." (improvement of UX).
In this context - is there already a plan to enhance error handling/notifications in genereal? Maybe this issue here might then also be assigned to that corresponding member of the CWA-team.
Thank you in advance :)

Hi @kira99 ,
Thanks for reporting the issue. It is a known error. Error 4000 is related to your Internet connection. A device restart usually helps to solve the problem.
#712
This comes due to a UnknownHostException that could have happened due to a network reset or a problem during the establishment of the connection. This is not a real "crash" and will not affect App functionality once your standard internet connectivity is restored. Sometimes this can be caused when your phone is connected to WiFi but your WiFi has no connectivity towards the internet.
Best regards,
SD
Corona Warn-App Open Source Team

Hi @SonaliDK,
As I described above, my internet connection was fine. Other apps were receiving messages. You can also see it in the screenshots. Wifi connection is strong.

This is a duplicate of
https://github.com/corona-warn-app/cwa-app-android/issues/968
Because of the missing root certificate CA on the Xiaomi phone
T-Telesec Global Root Class 2

@thomasaugsten
I have the certificate and it has always been activated. I did not change anything with the certificates. I only had a XIAOMI Update on August 5th.
The error messages and codes were different for #968 and this one.


error run train in gpu

cuda:8.0
cudnn:6.0
python:3.5
tensorflow:1.14.0
~/CycleGAN-TensorFlow$ python3 train.py
WARNING: Logging before flag parsing goes to stderr.
W0630 08:35:53.787037<PHONE_NUMBER>01088 deprecation_wrapper.py:119] From train.py:135: The name tf.app.run is deprecated. Please use tf.compat.v1.app.run instead.
W0630 08:35:53.796201<PHONE_NUMBER>01088 deprecation_wrapper.py:119] From /home/pf/CycleGAN-TensorFlow/model.py:49: The name tf.placeholder_with_default is deprecated. Please use tf.compat.v1.placeholder_with_default instead.
W0630 08:35:53.797244<PHONE_NUMBER>01088 deprecation_wrapper.py:119] From /home/pf/CycleGAN-TensorFlow/model.py:58: The name tf.placeholder is deprecated. Please use tf.compat.v1.placeholder instead.
W0630 08:35:53.798269<PHONE_NUMBER>01088 deprecation.py:323] From /home/pf/CycleGAN-TensorFlow/reader.py:19: TFRecordReader.init (from tensorflow.python.ops.io_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Queue-based input pipelines have been replaced by tf.data. Use tf.data.TFRecordDataset.
W0630 08:35:53.799142<PHONE_NUMBER>01088 deprecation.py:323] From /home/pf/CycleGAN-TensorFlow/reader.py:28: string_input_producer (from tensorflow.python.training.input) is deprecated and will be removed in a future version.
Instructions for updating:
Queue-based input pipelines have been replaced by tf.data. Use tf.data.Dataset.from_tensor_slices(string_tensor).shuffle(tf.shape(input_tensor, out_type=tf.int64)[0]).repeat(num_epochs). If shuffle=False, omit the .shuffle(...).
W0630 08:35:53.803668<PHONE_NUMBER>01088 deprecation.py:323] From /home/pf/.local/lib/python3.5/site-packages/tensorflow/python/training/input.py:278: input_producer (from tensorflow.python.training.input) is deprecated and will be removed in a future version.
Instructions for updating:
Queue-based input pipelines have been replaced by tf.data. Use tf.data.Dataset.from_tensor_slices(input_tensor).shuffle(tf.shape(input_tensor, out_type=tf.int64)[0]).repeat(num_epochs). If shuffle=False, omit the .shuffle(...).
W0630 08:35:53.804200<PHONE_NUMBER>01088 deprecation.py:323] From /home/pf/.local/lib/python3.5/site-packages/tensorflow/python/training/input.py:190: limit_epochs (from tensorflow.python.training.input) is deprecated and will be removed in a future version.
Instructions for updating:
Queue-based input pipelines have been replaced by tf.data. Use tf.data.Dataset.from_tensors(tensor).repeat(num_epochs).
W0630 08:35:53.805154<PHONE_NUMBER>01088 deprecation.py:323] From /home/pf/.local/lib/python3.5/site-packages/tensorflow/python/training/input.py:199: QueueRunner.init (from tensorflow.python.training.queue_runner_impl) is deprecated and will be removed in a future version.
Instructions for updating:
To construct input pipelines, use the tf.data module.
W0630 08:35:53.805793<PHONE_NUMBER>01088 deprecation.py:323] From /home/pf/.local/lib/python3.5/site-packages/tensorflow/python/training/input.py:199: add_queue_runner (from tensorflow.python.training.queue_runner_impl) is deprecated and will be removed in a future version.
Instructions for updating:
To construct input pipelines, use the tf.data module.
W0630 08:35:53.808638<PHONE_NUMBER>01088 deprecation_wrapper.py:119] From /home/pf/CycleGAN-TensorFlow/reader.py:32: The name tf.parse_single_example is deprecated. Please use tf.io.parse_single_example instead.
W0630 08:35:53.808758<PHONE_NUMBER>01088 deprecation_wrapper.py:119] From /home/pf/CycleGAN-TensorFlow/reader.py:35: The name tf.FixedLenFeature is deprecated. Please use tf.io.FixedLenFeature instead.
W0630 08:35:53.810475<PHONE_NUMBER>01088 deprecation_wrapper.py:119] From /home/pf/CycleGAN-TensorFlow/reader.py:52: The name tf.image.resize_images is deprecated. Please use tf.image.resize instead.
W0630 08:35:53.814553<PHONE_NUMBER>01088 deprecation.py:323] From /home/pf/CycleGAN-TensorFlow/reader.py:45: shuffle_batch (from tensorflow.python.training.input) is deprecated and will be removed in a future version.
Instructions for updating:
Queue-based input pipelines have been replaced by tf.data. Use tf.data.Dataset.shuffle(min_after_dequeue).batch(batch_size).
W0630 08:35:53.820895<PHONE_NUMBER>01088 deprecation_wrapper.py:119] From /home/pf/CycleGAN-TensorFlow/reader.py:48: The name tf.summary.image is deprecated. Please use tf.compat.v1.summary.image instead.
W0630 08:35:53.839401<PHONE_NUMBER>01088 deprecation_wrapper.py:119] From /home/pf/CycleGAN-TensorFlow/generator.py:21: The name tf.variable_scope is deprecated. Please use tf.compat.v1.variable_scope instead.
W0630 08:35:53.839734<PHONE_NUMBER>01088 deprecation.py:506] From /home/pf/CycleGAN-TensorFlow/ops.py:188: calling RandomNormal.init (from tensorflow.python.ops.init_ops) with dtype is deprecated and will be removed in a future version.
Instructions for updating:
Call initializer instance with the dtype argument instead of passing it to the constructor
W0630 08:35:55.420766<PHONE_NUMBER>01088 deprecation_wrapper.py:119] From /home/pf/CycleGAN-TensorFlow/model.py:87: The name tf.summary.histogram is deprecated. Please use tf.compat.v1.summary.histogram instead.
W0630 08:35:55.840024<PHONE_NUMBER>01088 deprecation_wrapper.py:119] From /home/pf/CycleGAN-TensorFlow/model.py:92: The name tf.summary.scalar is deprecated. Please use tf.compat.v1.summary.scalar instead.
W0630 08:35:56.864042<PHONE_NUMBER>01088 deprecation_wrapper.py:119] From /home/pf/CycleGAN-TensorFlow/model.py:119: The name tf.train.polynomial_decay is deprecated. Please use tf.compat.v1.train.polynomial_decay instead.
W0630 08:35:56.867225<PHONE_NUMBER>01088 deprecation.py:323] From /home/pf/.local/lib/python3.5/site-packages/tensorflow/python/keras/optimizer_v2/learning_rate_schedule.py:409: div (from tensorflow.python.ops.math_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Deprecated in favor of operator or tf.math.divide.
W0630 08:35:56.869565<PHONE_NUMBER>01088 deprecation.py:323] From /home/pf/CycleGAN-TensorFlow/model.py:122: add_dispatch_support..wrapper (from tensorflow.python.ops.array_ops) is deprecated and will be removed in a future version.
Instructions for updating:
Use tf.where in 2.0, which has the same broadcast rule as np.where
W0630 08:35:56.870930<PHONE_NUMBER>01088 deprecation_wrapper.py:119] From /home/pf/CycleGAN-TensorFlow/model.py:129: The name tf.train.AdamOptimizer is deprecated. Please use tf.compat.v1.train.AdamOptimizer instead.
W0630 08:36:08.143354<PHONE_NUMBER>01088 deprecation_wrapper.py:119] From train.py:67: The name tf.summary.merge_all is deprecated. Please use tf.compat.v1.summary.merge_all instead.
W0630 08:36:08.144193<PHONE_NUMBER>01088 deprecation_wrapper.py:119] From train.py:68: The name tf.summary.FileWriter is deprecated. Please use tf.compat.v1.summary.FileWriter instead.
W0630 08:36:10.731404<PHONE_NUMBER>01088 deprecation_wrapper.py:119] From train.py:69: The name tf.train.Saver is deprecated. Please use tf.compat.v1.train.Saver instead.
2019-06-30 08:36:10.979949: I tensorflow/stream_executor/platform/default/dso_loader.cc:42] Successfully opened dynamic library libcuda.so.1
2019-06-30 08:36:11.179523: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:1005] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2019-06-30 08:36:11.179791: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1640] Found device 0 with properties:
name: GeForce GTX 1060 major: 6 minor: 1 memoryClockRate(GHz): 1.733
pciBusID: 0000:01:00.0
2019-06-30 08:36:11.179861: I tensorflow/stream_executor/platform/default/dso_loader.cc:53] Could not dlopen library 'libcudart.so.10.0'; dlerror: libcudart.so.10.0: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/local/cuda-8.0/lib64:
2019-06-30 08:36:11.179906: I tensorflow/stream_executor/platform/default/dso_loader.cc:53] Could not dlopen library 'libcublas.so.10.0'; dlerror: libcublas.so.10.0: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/local/cuda-8.0/lib64:
2019-06-30 08:36:11.179954: I tensorflow/stream_executor/platform/default/dso_loader.cc:53] Could not dlopen library 'libcufft.so.10.0'; dlerror: libcufft.so.10.0: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/local/cuda-8.0/lib64:
2019-06-30 08:36:11.179997: I tensorflow/stream_executor/platform/default/dso_loader.cc:53] Could not dlopen library 'libcurand.so.10.0'; dlerror: libcurand.so.10.0: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/local/cuda-8.0/lib64:
2019-06-30 08:36:11.180039: I tensorflow/stream_executor/platform/default/dso_loader.cc:53] Could not dlopen library 'libcusolver.so.10.0'; dlerror: libcusolver.so.10.0: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/local/cuda-8.0/lib64:
2019-06-30 08:36:11.180081: I tensorflow/stream_executor/platform/default/dso_loader.cc:53] Could not dlopen library 'libcusparse.so.10.0'; dlerror: libcusparse.so.10.0: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/local/cuda-8.0/lib64:
2019-06-30 08:36:11.180122: I tensorflow/stream_executor/platform/default/dso_loader.cc:53] Could not dlopen library 'libcudnn.so.7'; dlerror: libcudnn.so.7: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/local/cuda-8.0/lib64:
2019-06-30 08:36:11.180131: W tensorflow/core/common_runtime/gpu/gpu_device.cc:1663] Cannot dlopen some GPU libraries. Skipping registering GPU devices...
2019-06-30 08:36:11.180360: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
2019-06-30 08:36:11.221799: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:1005] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2019-06-30 08:36:11.222076: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x12626b60 executing computations on platform CUDA. Devices:
2019-06-30 08:36:11.222090: I tensorflow/compiler/xla/service/service.cc:175]   StreamExecutor device (0): GeForce GTX 1060, Compute Capability 6.1
2019-06-30 08:36:11.243575: I tensorflow/core/platform/profile_utils/cpu_utils.cc:94] CPU Frequency:<PHONE_NUMBER> Hz
2019-06-30 08:36:11.244643: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x1239d550 executing computations on platform Host. Devices:
2019-06-30 08:36:11.244657: I tensorflow/compiler/xla/service/service.cc:175]   StreamExecutor device (0): ,
2019-06-30 08:36:11.244700: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1181] Device interconnect StreamExecutor with strength 1 edge matrix:
2019-06-30 08:36:11.244709: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1187]
2019-06-30 08:36:12.565100: W tensorflow/compiler/jit/mark_for_compilation_pass.cc:1412] (One-time warning): Not using XLA:CPU for cluster because envvar TF_XLA_FLAGS=--tf_xla_cpu_global_jit was not set.  If you want XLA:CPU, either set that envvar, or use experimental_jit_scope to enable XLA:CPU.  To confirm that XLA is active, pass --vmodule=xla_compilation_cache=1 (as a proper command-line flag, not via TF_XLA_FLAGS) or set the envvar XLA_FLAGS=--xla_hlo_profile.
W0630 08:36:12.775092<PHONE_NUMBER>01088 deprecation.py:323] From train.py:83: start_queue_runners (from tensorflow.python.training.queue_runner_impl) is deprecated and will be removed in a future version.

could I change cudnn or tensorflow or python version to run in gpu?

You need to update CUDA to version 10.


pull request for e2e test at 01/14/2017 20:15:12

:white_check_mark: Validation status: passed
For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Content changes for opposite sex where user is resident in Greece

Trello Story: https://trello.com/c/gCvT9eGq/108-greece-marriage-tool-service-offered-by-notary-publics-in-greece-content-change-request

Add callout for all opposite sex marriage in Greece where user is resident in Greece

Factcheck
Preview link
GOV.UK
Expected changes

All opposite sex ceremony country outcomes - i.e all opposite sex outcomes where user is resident in Greece

Before

After

This is ready for code review.

This looks good to me 👍


Allow responses to send unbuffered data

Codecov Report

Merging #295 into master will increase coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master     #295      +/-   ##
==========================================
+ Coverage   87.03%   87.03%   +<.01%
==========================================
  Files          89       89
  Lines        5738     5740       +2
==========================================
+ Hits         4994     4996       +2
  Misses        744      744

Impacted Files
Coverage Δ

lib/src/http/response.dart
95% <ø> (ø)
:arrow_up:

lib/src/http/request.dart
97.27% <100%> (+0.02%)
:arrow_up:

lib/src/http/http_codec_repository.dart
96.29% <100%> (+0.06%)
:arrow_up:

Continue to review full report at Codecov.

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


Why using R.curry produces different result in this case?

Hi guys.
I'm at my first experiment with ramda, and I was surprised by a particular behaviour.
I report here a test case with the hope that someone could explain to me what's going on.
const sumGreaterThan =
  (x) => R.compose(R.gt(R.__, x), R.sum);

const collection = [{
  handler: sumGreaterThan(100),
  value: "Over 100"
}, {
  handler: sumGreaterThan(50),
  value: "Over half"
}, {
  handler: sumGreaterThan(25),
  value: "..."
}];

/*
 I want to find the element in `collection`
 for which the `handler` returns true for the current input
*/

const getFinder =
  (input) =>
    (entry) => entry.handler(input);

const searchIn =
  (collection) => R.compose(R.find(R.__, collection), getFinder);

const find = searchIn(collection);

// This is a simplification of my real use case
const conditional = R.ifElse(R.always(true), find, find);

conditional([30, 21]) // ~ "Over half"

The above snippet works fine; but when I replace getFinder with a curried function it stops working.
const getFinderCurried = R.curry(
  (input, entry) => entry.handler(input)
);

It seems to me that the function that getFinderCurried returns doesn't get passed as predicate
to R.find(R.__, ..)... and that getFinderCurried still waits its second argument in order
to be executed.
I was surprised by the fact that R.curry(function(a, b){}) is not equivalent to function(a){ return function(b){}}.
I just wondered if this is the intended behaviour, and what's the rationale for this.

Not really related to the R.curry issue, but I just wanted to point out that there's R.cond function which does something very similar to your searchIn function.

@brunoscopelliti: Did this get answered?  I swear I had a response to this.  Was it in another forum?

@Zip753 Thanks for your response.
@CrossEye No, I'm still curious about this behaviour and I only asked this question here :)

@brunoscopelliti: Sorry for the very slow response.  I thought I'd be doing some Ramda work this weekend, but family life intervened.  For some reason, I also originally thought I'd answered this question.  I did answer a similar one around the time you posted.  I can't remember where, though.
The reason for your issue is a combination of how curry and compose work.
There is perhaps too much magic in Ramda.  curry is not just "turn a function of multiple arguments into one that takes the arguments one at a time, returning functions in the meantime."  Instead if
f = (a, b, c, d) => a + b + c + d;
g = curry(f);

Then all of these are equivalent:
g(2, 3, 5, 7)
g(2, 3, 5)(7);
g(2, 3)(5, 7);
g(2, 3)(5)(7);
g(2)(3, 5, 7);
g(2)(3, 5)(7);
g(2)(3)(5, 7);
g(2)(3)(5)(7);

But g reports its arity as 4.  That seems to be the only logical value, as it's still expecting four arguments, even though it does something useful with one, two, or three parameters.
This is often convenient, and it's usually what you want to pass into a compose or pipe invocation.  But there are times like this when that doesn't work so well.  This is because compose and pipe use the first function to run (rightmost/last in compose, leftmost/first in pipe) to give the arity of the generated function.
We tried changing this before, and the issues we encountered were nicely summed up in @davidchambers'  story.
Here it's that searchIn returns a composition that starts with getFinder, so Ramda reports the returned function as having a single argument.  When you switch to getFinderCurried, Ramda says that the result of searchIn has two arguments.  And therefore conditional, which uses the largest arity of the functions passed to it, also has two arguments.
If getFinderCurried is something you need elsewhere with the Ramda currying API, then you could fix this with
const searchIn =
  (collection) => R.compose(R.find(R.__, collection), unary(getFinder));

If not, then I would just use the manually curried function here.

@CrossEye Thanks for the clear explanation.


feat: integrate matchstick into the graph CLI

cleaning up / opening it for review in a couple of hours

moved into #1549 where the branch lives on the repo for CI to run properly.


country codes: 'us' works, 'ca' doesn't

i'm having functionality issues with the canadian region code..

if i include 'addons/cleave-phone.us.js' and set 'phoneRegionCode: 'us' - it works
if i include 'addons/cleave-phone.ca.js' and set 'phoneRegionCode: 'ca' - it doesn't work

by 'doesn't work' i mean the plugin doesn't seem to fire at all on the input.
any ideas? thanks

Thanks for reporting. Fixed @v0.7.22


build standalone binary

I used Pysintaller with the following command : use pyinstaller --clean --ascii --strip --onefile --name termtosvg --hidden-import pyte --hidden-import lxml --add-data termtosvg/data/templates:termtosvg/data/templates __main__.py
Maybe it could be added to the documentation, if helpful.

Thanks but I'd rather not get involved with packaging. Adding this as a note to the documentation means I both have to test it and provide support for it, which I'm not willing to do. I'd rather leave packaging to package maintainers.


Improve source and files display

Current coverage is 69.80%

Merging #342 into master will decrease coverage by -0.09% as of 13d4bb5

@@            master   #342   diff @@
=====================================
  Files          108    108
  Stmts         2913   2918     +5
  Branches         0      0
  Methods          0      0
=====================================
+ Hit           2036   2037     +1
  Partial          0      0
- Missed         877    881     +4

Review entire Coverage Diff as of 13d4bb5

Powered by Codecov. Updated on successful CI builds.

@madprime 1 nit, otherwise looks good :+1:


about   test  examples/example-t2i.ts can't  found   model?

Value not in list: ckpt_name:   ckpt_name: 'SDXL/realvisxlV40_v40LightningBakedvae.safetensors' not in (list of length 202)   ,but  in  comfyui  ,i can  run  use
SDXL/realvisxlV40_v40LightningBakedvae.safetensors

@zhanghongyong123456 is your realvisxlV40_v40LightningBakedvae.safetensors checkpoint is placed in SDXL folder ?, try to import the example-txt2img-workflow.json into your ComfyUI to see if it work

If may work on your side because comfyui have replace the SDXL/realvisxlV40_v40LightningBakedvae.safetensors with valid once, you can export that into json again after render success and correct the value from your json.

You can get list of working checkpoint's values like this:
const client = new ComfyApi("http://localhost:8188");
await client.getCheckpoints().then(console.log);

You can get list of working checkpoint's values like this:
const client = new ComfyApi("http://localhost:8188");
await client.getCheckpoints().then(console.log);

I found out that this model does exist, is it possible/different from \

@zhanghongyong123456 I think your client running on Windows, i have not test it yet. Please try with values you got from getCheckpoints fn to see if it work.

@zhanghongyong123456 I think your client running on Windows, i have not test it yet. Please try with values you got from getCheckpoints fn to see if it work.

I replace/to \ can run, this code inside how to set, can avoid manual modification

I have update the PromptBuilder so you can call like this for automate encode the model path on input:
const workflow = promptBuilder
  .input(
    "checkpoint",
    "SDXL/realvisxlV40_v40LightningBakedvae.safetensors",
    /**
     * Use the client's osType to encode the path
     *
     * For example, if the client's `osType` is "nt" (Windows), the path should be encoded as below
     * "SDXL\\realvisxlV40_v40LightningBakedvae.safetensors"
     */
    api.osType // This is optional, but recommended it you want to support multiple platforms
  )
  .input("positive", "A beautiful landscape")
  .input("negative", "blurry, text")
  .input("seed", 42)
  .input("steps", 20);

The api.osType is exposed from client for getting the os type of that node.


OpenAPI 3.0

[ ] new BaseObj, the old parser is not good enough

Coverage decreased (-0.2%) to 94.045% when pulling 9d222086ac4c511376a18afecab81419bfa17cf5 on <IP_ADDRESS> into f706ba6e69c894098c619e549de2ed99d80261ff on master.

Coverage decreased (-1.5%) to 92.689% when pulling 26fb23c0a02b644ecc2fb7311bb3a8ae771f27dc on <IP_ADDRESS> into f706ba6e69c894098c619e549de2ed99d80261ff on master.

Changes Unknown when pulling b927c7828177c3ca13e6674d88ccf508819bc1e7 on <IP_ADDRESS> into ** on master**.

Coverage decreased (-1.5%) to 92.747% when pulling 910ad172797caa1f6a8530824fe8ac472822d0eb on <IP_ADDRESS> into d849e9639cc3cec6b4aa07e6256e670482766914 on master.

I'm going to split this project into "core" part and "client" part, and could have other usage against the "core" part. The support of OpenAPI 3.0 would be done in the "core" repo.


Migrate tests to Webdriver 5

All tests are sync by default
Selector syntax using xpath and shadowdom
Added logic to pop the search box.
Cleaned up some types in slot-dom-consumer while debugging
Added a firebasetest prefix, have tests use that and correct persona query params
Use a time-suffixed username for selenium

-- still need to get the errorshots back, but would appreciate your feedback on this.


Updated XML and GDS limitations #402

Removed XML and GDS limitations that are no longer relevant and/or fixed.
I removed any limitations that are related to XML to CPP since we no longer use the XML to generate CPP.
Also, for the XML limitation regarding limits for telemetry channels of array or struct types - I verified that the limits for these types are in the XML and JSON dictionary, however, the limits do not appears in the telemetry tab in the GDS. Based on #2754, this appears to be a bug in the GDS, so I think we can change this to a GDS limitation or leave it out... @bocchino let me know what you think!
Closes #402.

We don't want to lose color-coding. That is very important for live testing.

@timcanham agreed - FPP includes the limit info/colors in the dictionary. My comment above was mainly referring to F´ GDS, since it looks like it does not render the appropriate colors in the channel tab. @thomas-bc created an issue for that https://github.com/nasa/fprime/issues/2754


Feature/yoojin/withdraw complete

Add new method (withdrawComplete) and type (WithdrawRequestList)

Thanks for the review!


De-sugar bang ! operator - part 4 - if-then-else

This PR builds upon #6613 and implements desugaring of suffixed if-then-else expressions as described in Chaining Syntax proposal
Tested using the following program(s).
app "example"
    packages { pf : "https://github.com/roc-lang/basic-cli/releases/download/0.8.1/x8URkvfyi9I0QhmVG98roKBUs_AZRkLFwFJVJ3942YA.tar.br" }
    imports [ pf.Stdout.{line}, pf.Task.{Task} ]
    provides [ main ] to pf

truthey = Task.ok Bool.true
falsey = Task.ok Bool.false

# Combination 1. NIL if_thens before the first suffixed, and NIL after
main =
    if truthey! then
        line! "SUCCESS"
    else
        line! "FAIL"

# Combination 2. NIL if_thens before the first suffixed, and SOME after
main =
    if falsey! then
        line! "FAIL"
    else if truthey! then
        line! "SUCCES"
    else
        line! "FAIL"

# Combination 3. SOME if_thens before the first suffixed, and NIL after
main =
    if Bool.false then
        line! "FAIL"
    else if truthey! then
        line! "SUCCESS"
    else
        line! "FAIL"

# Combination 4. SOME if_thens before the first suffixed, and SOME after
main =
    if Bool.false then
        line! "FAIL"
    else if falsey! then
        line! "FAIL"
    else if truthey! then
        line! "SUCCESS"
    else
        line! "FAIL"

I've added this as a draft... once #6601 is merged (if it's ready) then this should only be a single commit. I can rebase and update as required.

Closing in favour of #6634


Readability: Make the code PEP8 compliant

Hi, I just stumbled upon this today.
One of the best practices that are followed in Python development is following PEP8 guidelines
You can do this manually although there are linters available for this too.

Thanks for the insight! Didn't think of that prior to this. I will most certainly work on that.

Did it.