Sync dictionary concurrency fixes

What?

Use a serial queue with synchronous tasks for the PCSynchronizedDictionary.
Remove an unused queue in PCCurrentUser

Why?
Reduce complexity and ensure that we have correct data. I verified by running the code below as a test
func testSyncDict() {
        do {
            let dict = PCSynchronizedDictionary<Int, Int>()
            var iterations = 1000

            DispatchQueue.concurrentPerform(iterations: iterations) { index in
                dict[index] = index+1
                print("SET value \(index) to \(index+1)")

                let idx = dict[index]
                if idx == nil {
                    print("NO value for \(index)")
                } else {
                    print("GET value \(idx!) for \(index)")
                }

                DispatchQueue.global().sync {
                    iterations -= 1

                    guard iterations <= 0 else { return }
                    print("DONE")
                    print(dict)
                }
            }
        }
    }

The existing version had several cases where keys were not found because setting values using async without barriers lead to races since someone could read the wrong value without waiting for the data to be mutated.

          1 Warning

:warning:
Any changes to library code should be reflected in the Changelog. Please consider adding a note there. \nYou can find it at CHANGELOG.md.

SwiftLint found issues
Warnings

File
Line
Reason

PCCurrentUser.swift
1095
Else and catch should be on the same line, one space after the previous declaration.

PCCurrentUser.swift
1098
Else and catch should be on the same line, one space after the previous declaration.

PCCurrentUser.swift
1101
Else and catch should be on the same line, one space after the previous declaration.

PCCurrentUser.swift
1104
Else and catch should be on the same line, one space after the previous declaration.

PCCurrentUser.swift
1107
Else and catch should be on the same line, one space after the previous declaration.

PCCurrentUser.swift
26
TODOs should be avoided (This should probably be [PCUse...).

PCCurrentUser.swift
429
TODOs should be avoided (Use the soon-to-be-created new...).

PCCurrentUser.swift
519
TODOs should be avoided (Do we need to fetch users in t...).

PCCurrentUser.swift
724
TODOs should be avoided (Do we need a Last-Event-ID opt...).

PCCurrentUser.swift
983
TODOs should be avoided (What to do with an error? Just...).

PCCurrentUser.swift
794
Function body should span 40 lines or less excluding comments and whitespace: currently spans 55 lines

PCCurrentUser.swift
209
MARK comment should be in valid format. e.g. '// MARK: ...' or '// MARK: - ...'

PCCurrentUser.swift
304
MARK comment should be in valid format. e.g. '// MARK: ...' or '// MARK: - ...'

PCCurrentUser.swift
671
Arguments can be omitted when matching enums with associated types if they are not used.

PCCurrentUser.swift
671
Arguments can be omitted when matching enums with associated types if they are not used.

PCCurrentUser.swift
8
Variable name should be between 3 and 40 characters long: 'id'

PCCurrentUser.swift
60
Variable name should be between 3 and 40 characters long: 'id'

PCCurrentUser.swift
179
Variable name should be between 3 and 40 characters long: 'id'

PCCurrentUser.swift
196
Variable name should be between 3 and 40 characters long: 'id'

PCCurrentUser.swift
245
Variable name should be between 3 and 40 characters long: 'id'

PCCurrentUser.swift
321
Variable name should be between 3 and 40 characters long: 'id'

PCCurrentUser.swift
381
Variable name should be between 3 and 40 characters long: 'id'

PCCurrentUser.swift
119
Collection literals should not have trailing commas.

PCCurrentUser.swift
695
Opening braces should be preceded by a single space and on the same line as the declaration.

PCCurrentUser.swift
200
Line should be 120 characters or less: currently 122 characters

PCCurrentUser.swift
550
Line should be 120 characters or less: currently 123 characters

PCCurrentUser.swift
578
Line should be 120 characters or less: currently 121 characters

PCCurrentUser.swift
604
Line should be 120 characters or less: currently 147 characters

PCCurrentUser.swift
609
Line should be 120 characters or less: currently 147 characters

PCCurrentUser.swift
631
Line should be 120 characters or less: currently 133 characters

PCCurrentUser.swift
642
Line should be 120 characters or less: currently 132 characters

PCCurrentUser.swift
736
Line should be 120 characters or less: currently 123 characters

PCCurrentUser.swift
832
Line should be 120 characters or less: currently 123 characters

PCCurrentUser.swift
938
Line should be 120 characters or less: currently 136 characters

PCSynchronizedDictionary.swift
31
Computed read-only properties should avoid using the get keyword.

PCSynchronizedDictionary.swift
100
Prefer -> Void over -> ().

Errors

File
Line
Reason

PCCurrentUser.swift
7
Type body should span 200 lines or less excluding comments and whitespace: currently spans 607 lines

PCCurrentUser.swift
733
Variable name should be between 3 and 40 characters long: 'r'

PCCurrentUser.swift
1007
Variable name should be between 3 and 40 characters long: 'm'

PCCurrentUser.swift
1013
Enum element name should only contain alphanumeric characters: 'noSubscriptionToRoom(_:)'

PCCurrentUser.swift
1041
Enum element name should only contain alphanumeric characters: 'messageIDKeyMissingInMessageCreationResponse(_:)'

PCCurrentUser.swift
1113
File should contain 400 lines or less: currently contains 1113

PCSynchronizedDictionary.swift
52
Variable name should be between 3 and 40 characters long: 'i'

  Generated by :no_entry_sign: Danger


Component Section

You can add this repo to component section https://github.com/coderserdar/DelphiComponents

Thanks for suggestion but it's pretty much stuff there. Sorry, have no time to sort them. If you have some really nice suggestions, plz put them separately

Hi Frost
First of all thanks for your good advice.
But there are a ot of components and these are compatible for several IDEs
Because of this, you can just add repo link like contributors page.
With by best regards.
Serdar


[WIP] ACH input fields on front end

Until this point it's ok

New PR:  https://github.com/Adyen/adyen-salesforce-commerce-cloud/pull/144


feat(signalfx-reporter): add additional debug logging

Adding some new debug statements for the SignalFx reporter to enable easier prod support.
EX: from UAT
AP77JGH6A84FA3:node-measured jfiel2$ node packages/measured-signalfx-reporter/test/user-acceptance-test/index.js
2019-08-28T22:51:45.646Z:  SignalFx Metrics Reporter Created with the following default default reporting interval: 10, default dimensions: {
  "app": "measured-signalfx-reporter",
  "app_version": "1.50.0",
  "env": "test"
}
2019-08-28T22:51:45.649Z:  _createIntervalCallback() called with intervalInSeconds: 30
Example app listening on port 8080!
2019-08-28T22:51:45.665Z:  _reportMetricsWithInterval() called with intervalInSeconds: 30
2019-08-28T22:51:45.665Z:  _reportMetrics() called
2019-08-28T22:51:45.666Z:  Sending data to Signal Fx. Request: {"gauges":[{"metric":"node.os.loadavg.1m","value":2.26171875,"dimensions":{"app":"measured-signalfx-reporter","app_version":"1.50.0","env":"test"}},{"metric":"node.os.loadavg.5m","value":2.443359375,"dimensions":{"app":"measured-signalfx-reporter","app_version":"1.50.0","env":"test"}},{"metric":"node.os.loadavg.15m","value":2.330078125,"dimensions":{"app":"measured-signalfx-reporter","app_version":"1.50.0","env":"test"}},{"metric":"node.os.freemem","value":7081623552,"dimensions":{"app":"measured-signalfx-reporter","app_version":"1.50.0","env":"test"}},{"metric":"node.os.totalmem","value":34359738368,"dimensions":{"app":"measured-signalfx-reporter","app_version":"1.50.0","env":"test"}},{"metric":"node.os.uptime","value":109451,"dimensions":{"app":"measured-signalfx-reporter","app_version":"1.50.0","env":"test"}},{"metric":"node.os.cpu.all-cores-avg","value":31,"dimensions":{"app":"measured-signalfx-reporter","app_version":"1.50.0","env":"test"}},{"metric":"node.process.memory-usage.rss","value":61145088,"dimensions":{"app":"measured-signalfx-reporter","app_version":"1.50.0","env":"test"}},{"metric":"node.process.memory-usage.heap-total","value":35401728,"dimensions":{"app":"measured-signalfx-reporter","app_version":"1.50.0","env":"test"}},{"metric":"node.process.memory-usage.heap-used","value":21408856,"dimensions":{"app":"measured-signalfx-reporter","app_version":"1.50.0","env":"test"}},{"metric":"node.process.memory-usage.external","value":550020,"dimensions":{"app":"measured-signalfx-reporter","app_version":"1.50.0","env":"test"}},{"metric":"node.process.uptime","value":0,"dimensions":{"app":"measured-signalfx-reporter","app_version":"1.50.0","env":"test"}}]}
^CSIG INT, exiting

@rdong333

Pull Request Test Coverage Report for Build 419

3 of 3 (100.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.04%) to 89.189%

Totals

Change from base Build 415:
0.04%

Covered Lines:
772

Relevant Lines:
848

💛  - Coveralls


C# : attributes, switch, typeof, sizeof, using, enums, checked, unche…

…cked, stackalloc, catch/when, cast
Thanks for the PR merge! A few other ones I found while browsing the C# specs.

Thank you once more.


Javascript returned from held AJAX calls not getting executed

First of all, thanks for this amazing plugin!
I was hoping to be able to use this seamlessly with https://github.com/rails/jquery-ujs/ but I have encountered an issue I can't seem to get around.  If I'm using the plugin incorrectly, please let me know.
Basically, my held AJAX calls are successfully submitted when connectivity is restored which is great but I'm finding that the Javascript I return from my server is not getting executed and without it, my users woudn't know that their operation was actually completed when the internet connectivity was restored.  Is there any way to get Offline.js to play nice with Javascript returned via jquery-ujs's remote: true option?

I am looking for the same thing. Seems there isn't any way to get our request completion code executed.

No luck?

This kinda seems like a big deal.


Config filename seems to have changed

The name of the settings file has changed from config.yml to user-settings.yml it seems.

Ah I actually have to update this with the TUI now instead of modifying the config files directly. Thanks for the heads up, I'll work on that in a bit.


npm run dev:react produce error

Hi, thank you for boilerplate.
I have noticed issue that command "dev:react" produce error
Uncaught ReferenceError: global is not defined     at main.js:114096     at main.js:114565     at main.js:114576

I haven't been able to reproduce this issue, but I made some significant improvements to this project which should fix this issue.
Also, you should generally be using the dev script instead of dev:react.


build_stat: don't include weight AxisValues if there is no weight axis in the fvar table

Describe the issue
In https://github.com/google/fonts/pull/5652 fontbakery is complaining that the font is missing wght STAT axisvalues. However, the font doesn't have a wght axis so this shouldn't be an error.
cc @RosaWagner

But the checks also raises a FAIL because 700 in not linked to 400, although 700 really do not exists

This is the most common case of falsy Fail for this check. It's been reported for all the Playwrite families.


Query Kubernetes "Volume Mount With OS Directory Write Permissions" not working correctly

Depending of the mountPath value the query "Volume Mount With OS Directory Write Permissions" (b7652612-de4e-4466-a0bf-1cd81f0c6063) identify the issue
Steps to Reproduce the Problem

Create a new helm-chart: helm create test
Add volumes on  test/templates/deployment.yaml:

          volumeMounts:
          - name: dir1
            mountPath: /etc
      volumes:
      - name: dir1
        emptyDir: {}

Run kics: kics scan -t Kubernetes -p test/  -i b7652612-de4e-4466-a0bf-1cd81f0c6063

KICS identify the issue; however if you update from mountPath: /etc to  mountPath: /tmp or something else like /dir1, it doesn't identify the issue
Specifications

Version: 1.7.5

I found the root cause https://github.com/Checkmarx/kics/blob/58b2d58bc0b3ea8319dad4f9376444f3847fbd5f/assets/queries/k8s/volume_mount_with_os_directory_write_permissions/query.rego#L53-L54


add presets for range mode

i needed it urgently with one of my projects. so i implemented it on fork, and will use it with my own npm package until we're agreed with the pull request. it seems like you're a bit insistant about formatting. i really don't have time to check them. just configure editorconfig and tslint accordingly, so none bother with it. here it goes.

LGTM

very good. it worked

Formatting issues. Again

Formatting issues. Again

close this pr, i'll open another later.


What permission do I need to create a web hook subscription and how to provide that permission?

What permission do I need to create a web hook subscription and how to provide that permission?

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 4806b641-fdb1-c0e9-081c-c007807c7cdb
Version Independent ID: f59d8501-1285-be79-b084-8371ed8395bb
Content: WebHooks with Azure DevOps Services
Content Source: docs/service-hooks/services/webhooks.md
Product: devops
Technology: devops-collab
GitHub Login: @elbatk
Microsoft Alias: elbatk

Hi @arefinsami, thanks for reaching out. I'm following up on this and will be in touch. Thank you!

Hi @arefinsami, Please see our Q&A question here , which covers this information. Thank you!


Block mym.fans?

Hi, should mym.fans be considered as a porn site ? It has nearly the same content policy as onlyfans.
<IP_ADDRESS> mym.fans
<IP_ADDRESS> media.prod-v2.mym.fans

Merci Raphaël!
Ping @sinfonietta can you evaluate this for your list? Thanks!

@StevenBlack these are added too.

Thank you everybody.  Closing.


Study Group for Chico, CA not appearing on list

Hey freeCodeCamp,
Chico isn't appearing on the list of facebook groups of freeCodeCampers. Can it be added please? Here is the link.
https://www.facebook.com/groups/free.code.camp.chico/
Also here is a photo of our 1st meetup, that we did on the 11th of April, we are trying to meet every two weeks!

@MalcolmXX Hi, I added an entry for Chico in #77 which was merged on 1st April.
Can you confirm you still dont see it?

comment on PR #77

hi, @MalcolmXX I put a copy of yoru comment from PR here please keep all replies on this issue for easier follow up, thanks.
The group appears for me (see below) can you provide more information on the issue?

Thanks John it is now appearing for me!
--
Giovanni Brown
Email<EMAIL_ADDRESS>On Tue, May 8, 2018 at 3:04 PM John Kennedy<EMAIL_ADDRESS>wrote:

hi, @MalcolmXX https://github.com/MalcolmXX I put a copy of yoru
comment from PR here please keep all replies on this issue for easier
follow up, thanks.
The group appears for me (see below) can you provide more information on
the issue?
[image: image]
https://user-images.githubusercontent.com/26827682/39785393-ec366b08-5313-11e8-85eb-052531d66e87.png
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/freeCodeCamp/study-group-directory/issues/104#issuecomment-387557076,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AHaAGGd9RB-AP2WnhAtj6HW4qXz5XFbOks5twhZxgaJpZM4TtqiV
.

OK thats great, thanks for letting me know, I'll close this issue.


add TLSCert and TLSKey to configoption dep resolution

should resolve #518

Will need to add more to rep resolution after merging https://github.com/replicatedhq/kots/pull/845


Account for size of token replacements when sizing the bar

If we are not doing this, then the bar can overflow to the next line, then it starts drawing itself over and over again, because the start of the line is not the real start of the line but the start of the wrapped line, and that is really annoying...
Since we want the bar size to remain stable, the maximum size for a token is remembered.

This was prompted by the line wrapping issue happening in tensorflow.js and driving me nuts.
cc @bileschi @caisq (if this isn't merged, the fix is to make the name of the token dependent of its expected size, which sucks but sucks less than outputting a new progressbar for every batch)

@FremyCompany Can you file an issue at TensorFlow.js' Issues page with details on the model you are using?

@caisq Sure. This would happen for any model that has a few outputs/metrics.

@FremyCompany Got it. I think I know what the problem is, but will appreciate you filing an issue formally regardless. Thanks.


Extensions in UMD Build

EDIT: Didn't read the docs fully.

@sedenardi they can be added via configuration. I know microscopy works. We haven't extensively tested all of them.

Yup, apologies for the issue, I had missed that part in the docs.


README: make meeting dates more clear

Hi!
While I was browsing the repo, I ended up confused about the dates of the meetings (as June 11, 2024 was a Tuesday). The changes I propose make these dates fixed in time. I hope that they will lead to a more understandable schedule.
January 11th is just an informed guess, so please feel free to correct me.
Cheers!

The clearer rule would be thursdays in even weeks, 18:00 (Europe/Berlin).
But due to low attendance we'll probably have to reevaluate that.

Thanks for the quick reply. I'll keep this PR open as a reminder :wink: Feel free to close it when it becomes obsolete.


Handle multiple browser from CMD.

Need a feature which will select the browser to test from the command line.

Fixed in v1.0.0


Add additional defaults

Adds most of the defaults based on this blog post: https://jackson.dev/post/nix-reasonable-defaults/)

Should be good now!


Media question

Story
As a poll applicant, I want to answer to a question with a media file.
Restrictions on the media file
Size
Size limit is 4 Mo.
Extension
Extension accepted are: png, jpg, jpeg.
Storage
The media file is stored and transact as a blob value.

Complexity:👍👍👍👍👍
Duration in days:👍👍👍👍

c'est un 13 et peut être livrer sur 21 jours

complexity: 21
duration in days: 13

complexité : 21
durée en jours : 14

duration in days: 13


Remove duplicate gz functions in test code

This PR removes duplicate gz functions in several source files in the test directory. This will help anybody trying to maintain these functions as there will only be one place to change them.
If the user specifies WITH_GZFILEOP=OFF in cmake or configure:

GZ file sources will NOT be compiled into zlib, and zlibstatic libraries
GZ file sources will STILL be compiled into the test apps

Is there any support for this idea, if I were to add it to configure?

I find it interesting. And code duplication is usually not a good idea, so I am leaning towards accepting this.
I would like to hear what others think too though.

I think having "replacement" functions in test code was bad idea from the beginning as the code won't be testing just the alternate code path but also introduce new code that can possibly mask out bugs.

I've redone the PR after all the recent changes, however I could use some help with configure.

I've redone the PR after all the recent changes, and added configure support.

Looks good to me

Hi @nmoinvaz, could you please check the following msan errors caused by this change?
The oss-fuzz sanitizers were complaining about this for some time now.
Thanks!
export CFLAGS="-O1 -fno-omit-frame-pointer -gline-tables-only -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION -fsanitize=memory -fsanitize-memory-track-origins -fsanitize=fuzzer-no-link"

export 'LDFLAGS=-O1 -fno-omit-frame-pointer -gline-tables-only -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION -fsanitize=memory -fsanitize-memory-track-origins -fsanitize=fuzzer-no-link -stdlib=libc++'

CC=clang-7 ./configure && make -j10 all && make check

==9403==WARNING: MemorySanitizer: use-of-uninitialized-value
    #0 0x501977 in crc_fold_512to32 /tmp/zlib-ng/arch/x86/crc_folding.c:419:16
    #1 0x4f8be9 in crc_finalize /tmp/zlib-ng/crc32.c:410:26
    #2 0x4b7007 in zng_deflate /tmp/zlib-ng/deflate.c:1085:9
    #3 0x4ab921 in gz_comp /tmp/zlib-ng/gzwrite.c:114:15
    #4 0x4acdfb in zng_gzclose_w /tmp/zlib-ng/gzwrite.c:501:9
    #5 0x49dac5 in zng_gzclose /tmp/zlib-ng/gzclose.c:20:63
    #6 0x49b856 in gz_compress /tmp/zlib-ng/test/minigzip.c:123:9
    #7 0x49d7da in main /tmp/zlib-ng/test/minigzip.c:324:13
    #8 0x7fc89d3ceb96 in __libc_start_main /build/glibc-OTsEL5/glibc-2.27/csu/../csu/libc-start.c:310
    #9 0x41b019 in _start (/tmp/zlib-ng/minigzip+0x41b019)

  Uninitialized value was stored to memory at
    #0 0x4ff06e in crc_fold_copy /tmp/zlib-ng/arch/x86/crc_folding.c:359:5
    #1 0x4c11cd in read_buf /tmp/zlib-ng/deflate.c:1200:9
    #2 0x4f27e3 in fill_window_sse /tmp/zlib-ng/arch/x86/fill_window_sse.c:106:13
    #3 0x4c5adc in deflate_medium /tmp/zlib-ng/deflate_medium.c:215:13
    #4 0x4b6922 in zng_deflate /tmp/zlib-ng/deflate.c:1033:18
    #5 0x4ab921 in gz_comp /tmp/zlib-ng/gzwrite.c:114:15
    #6 0x4acdfb in zng_gzclose_w /tmp/zlib-ng/gzwrite.c:501:9
    #7 0x49dac5 in zng_gzclose /tmp/zlib-ng/gzclose.c:20:63
    #8 0x49b856 in gz_compress /tmp/zlib-ng/test/minigzip.c:123:9
    #9 0x49d7da in main /tmp/zlib-ng/test/minigzip.c:324:13
    #10 0x7fc89d3ceb96 in __libc_start_main /build/glibc-OTsEL5/glibc-2.27/csu/../csu/libc-start.c:310

I think maybe that removing the example code from minigzip.c revealed some underlying issues with the default gzip functions.

make check passes when I revert the changes to Makefile.in.

Looks like https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=15473 is still complaining about this, somehow.


Update sbt-typelevel, ... to 0.7.1

About this PR
📦 Updates

org.typelevel:sbt-typelevel
org.typelevel:sbt-typelevel-scalafix
org.typelevel:sbt-typelevel-site

from 0.6.7 to 0.7.1
📜 GitHub Release Notes - Version Diff
Usage
✅ Please merge!
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

⚙ Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.typelevel" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "org.typelevel" }
}]

labels: sbt-plugin-update, early-semver-major, semver-spec-minor, version-scheme:early-semver, commit-count:n:2

Superseded by #249.

Superseded by #253.


Android: add RichTextEditorState.setMarkdown(text) function

Also:

Make TextView.applyStyleInCompose(RichTextEditorStyle) public.
Handle focus request in compose in a better way.
When sending some actions through RichTextEditorState, wait until the UI is ready to process them.

This code is needed to add a plain text editor on Android for Compose.

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 89.42%. Comparing base (1b73886) to head (e706a06).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #978      +/-   ##
==========================================
- Coverage   90.22%   89.42%   -0.81%
==========================================
  Files         177      104      -73
  Lines       21084    17907    -3177
  Branches      301      301
==========================================
- Hits        19024    16013    -3011
+ Misses       2056     1890     -166
  Partials        4        4

Flag
Coverage Δ

uitests
?

uitests-ios
?

unittests
89.42% <ø> (+0.08%)
:arrow_up:

unittests-ios
?

unittests-react
87.99% <ø> (ø)

unittests-rust
89.64% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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


Smart Phone App

Having smartphone apps for Android, iOS, etc. for streama, I think would be a great feature.

I agree! But I've been struggling a bit with this. How would we get this to work with a self-hosted application? Would you on login to the app choose the url to the running self-hosted version of streama?

Yes I would think so, same idea as going to the url in your web browser, at the initial start of the app they would configure their url. Or somehow utilize the invite email, so that if they opened the email on their phone it would open the app and auto fill

Is there any documentation on REST API? I'd like to start working on a proof of concept android client this weekend if I have some free time.

So is Cordova off the table at this point?
On Fri, Aug 7, 2015, 9:27 AM Daniele Campogiani<EMAIL_ADDRESS>wrote:

Is there any documentation on REST API? I'd like to start working on a
proof of concept android client this weekend if I have some free time.
—
Reply to this email directly or view it on GitHub
https://github.com/dularion/streama/issues/70#issuecomment-128714401.

Cordova is NOT off the table, why would it be? It is awesome!
@dcampogiani, no documentation, this file is sort a list of endpoints & methods: https://github.com/dularion/streama/blob/master/grails-app/assets/javascripts/services/api-service.js

Just asking since we have someone starting work on a native app, doesn't
make sense to have both, time would be better spent in one or the other IMO.
On Fri, Aug 7, 2015 at 11:58 AM Antonia Hulha<EMAIL_ADDRESS>wrote:

Cordova is NOT off the table, why would it be? It is awesome!
@dcampogiani https://github.com/dcampogiani, no documentation, this
file is sort a list of endpoints & methods:
https://github.com/dularion/streama/blob/master/grails-app/assets/javascripts/services/api-service.js
—
Reply to this email directly or view it on GitHub
https://github.com/dularion/streama/issues/70#issuecomment-128765630.

ah, you mean like that.  I personally prefer a cordova-approach, simply because everything is REST anyway, so it sort of makes sense to go for one-size-fits-all with web-technology (ie cordova). On the other hand, if @dcampogiani is willing to put his personal time into it, I sort of believe he should do what he is most comfortable with. But if you are just as comfortable with a cordova-style app, we should definitely talk about it imo!

I'm in favor of cordova since it means we don't have to find someone
interested in iOS and someone in Windows mobile cringe on top of
Android.  Plus it keeps the stack clean, one language to rule them all.
And I know we have at least a few bootstrap pros hiding around here,
cordova rendering a pretty app on mobile is really just finding some people
that can do mobile friendly sites really well.  Now it takes actually
knowing some of the working in cordova to get support for native features,
but those can be learned.
On Fri, Aug 7, 2015 at 12:41 PM Antonia Hulha<EMAIL_ADDRESS>wrote:

ah, you mean like that.  I
personally prefer a cordova-approach, simply because everything is REST
anyway, so it sort of makes sense to go for one-size-fits-all with
web-technology (ie cordova). On the other hand, if @dcampogiani
https://github.com/dcampogiani is willing to put his personal time into
it, I sort of believe he should do what he is most comfortable with. But if
you are just as comfortable with a cordova-style app, we should definitely
talk about it imo!
—
Reply to this email directly or view it on GitHub
https://github.com/dularion/streama/issues/70#issuecomment-128775289.

Actually, I find ionic + ngcordova to be the most reliable mix for any hybrid mobile development.

I'll have to check it out then, looks like it adds some nice features.
On Fri, Aug 7, 2015, 1:03 PM Antonia Hulha<EMAIL_ADDRESS>wrote:

Actually, I find ionic http://ionicframework.com/ + ngcordova
http://ngcordova.com/ to be the most reliable mix for any hybrid mobile
development.
—
Reply to this email directly or view it on GitHub
https://github.com/dularion/streama/issues/70#issuecomment-128780436.

In the past I wrote something using Cordova + Angular (and Ionic) but I prefer the native approach. Tomorrow I'll start holidays and I hope to find some free time to play with streama API.

I'm starting understanding the REST API and I have some questions.

If I try to GET /tvShow.json without being previously logged I still get a 200 OK, with a form in the body. I think a 401 would be better.
If I first "login", doing a POST at /j_spring_security_check with field j_username and j_password then the GET at /tvShow.json it's working.

I think the each REST API should be self-contained with all field required (such as authentication) in the request. I've used spring security only once in the past and in that project we used the spring support for HTTP BASIC.

Yea, well I have yet to figure out how to get spring security nicely working with REST. it tends to always do a redirect, which i find very very bad. I fonud this now, which seems promising: https://grails.org/plugin/spring-security-rest

http://alvarosanchez.github.io/grails-spring-security-rest/1.5.1/docs/guide/introduction.html

Ok so  I learned something yesterday. Apparently Chromecast only works for native apps currently. There is a Cordova plug in but it doesn't seem like it is being developed right now.  And for me that means that I will develop a native app (first ios, then android) that functions as a Chromecast remote. But don't let me stop you guys and your work! Just letting you know what my plan is. I will add links to the repositories here soon!

Are there some news for it?
I think an app (and Chromecast support) can be a must!
Bye!

First app release is out, but this is still alpha status. anyone who wants to be invited to the closed beta later let me know with your email addr

https://github.com/dularion/streama-app/releases/tag/v0.0.1


Add an option to configure axis tooltips when user-defined breaks are provided

Consider two plots:
from lets_plot import *
LetsPlot.setup_html()

gggrid([
    ggplot(
        {
            'x': [0, 1, 2, 3, 4, 5, 6],
            'y': [0, 0, 0, 0, 0, 0, 0]
        },
        aes('x', 'y')
    ) \
        + geom_point() \
        + scale_x_continuous(breaks={'min': 0, '2': 2, '4': 4, 'max': 6}),
    ggplot(
        {
            'x': [0, 1, 2, 3, 4],
            'y': [10, 29, 17, 42, 1]
        },
        aes('x', 'y')
    ) \
        + geom_point() \
        + scale_x_continuous(breaks={'A': 0, 'B': 1, 'C': 2, 'D': 3, 'E': 4})
])

In the first plot, when the pointer hovers over min/max points, it might be acceptable to display either "min" or 0. Therefore, an option to toggle between these two display modes is necessary. If the point doesn't have a corresponding break, the domain value should be displayed.
In the second plot, when the pointer hovers over any point, the tooltip should display the break value instead of the domain value. An option to configure this behavior will be helpful in this case.

Also, how a custom format string should be handled?


feat(API): add secret deletion functionality for repository

Modify the CreateOrUpdateSecret function in api.go to include a Delete operation for the secret
Modify the DeleteOrgSecret function in action.go to include a DeleteSecret operation for the organization
Modify the DeleteSecret function in action.go to include a DeleteSecret operation for the repository
Modify the v1_json.tmpl template file to update the operationId and summary for the deleteSecret operation in both the organization and repository sections

I will extract shared methods like I did for the web routes. Noticed the split when there were no audit events using the api.

Routes for user secrets are missing.

@KN4CK3R Yes. move to new PR for user secrets.


"duplicate symbols for architecture..." errors on build

Hi,
First, thanks for writing this. It's crossed my mind to try and do something similar for a variety of projects but I haven't been able to find the time.
I am seeing the following errors when I try to build (or test) this package (or sqlite3vfshttp). Perhaps I am just missing something obvious?
$> go version
go version go1.16.7 darwin/amd64

$> go build ./...
# github.com/psanford/sqlite3vfs
duplicate symbol '_s3vfs_io_methods' in:
    $WORK/b001/_x001.o
    $WORK/b001/_x002.o
duplicate symbol '_s3vfs_io_methods' in:
    $WORK/b001/_x001.o
    $WORK/b001/_x003.o
ld: 2 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I have a few ideas what might be the problem.
go-sqlite3 vendors all of the sqlite c code into its repo. That makes it easy to build and include in other go projects.
Ideally, sqlite3vfs would simply reference and link to that copy of the sqlite c code. Unfortunately, so far I've not been able to figure out how to get the Go compiler to allow you to do this.
Currently sqlite3vfs uses the system installed sqlite3 package to link against. That has worked on the machine I've been developing on, but it isn't too surprising that it doesn't work in all environments.
I'll spend some more time trying to get a build working without depending on a system installed sqlite3 library.
I also haven't tried building this on macOS yet, so let me try that and see if I can reproduce the error you are seeing.

I was able to reproduce the build issue on a macOS host. The fix ended up not being related to how we are linking sqlite3, but just a duplicate local definition.
If you are still having this issue after upgrading, please re-open this issue. Thanks!

Works for me. Thanks!
$> go test -v ./...
=== RUN   TestSqlite3vfs
--- PASS: TestSqlite3vfs (0.04s)
PASS
ok  	github.com/psanford/sqlite3vfs	0.229s


Feat/enchant

Add Equip Window UI Enchant Tab
Control enchant level using mouse wheel
Unlimit Job used

#16 is clear


Form Auto seeming to not record auto-release videos anymore

Sometimes, the FormAuto can have trouble releasing off of the build platform. See the following two articles:

https://support.formlabs.com/s/article/Best-practices-for-printing-with-the-Form-Auto?language=en_US
https://support.formlabs.com/s/article/Removing-unreleased-printed-parts-from-the-Form-Auto?language=en_US

While there is a camera on the FormAuto that can record part removal videos, if the part removal video doesn't get recorded, then typically I think the only indication might be on the Activity Log for your print from dashboard.formlabs.com. For example, see the attached activity log. In this case, I suspect it didn't auto-release because the Form 3+ wasn't aligned properly. Note that the orientation should be with the tallest edge of the Form 3+ facing the collection basket (see attached image and printing prep instructions).
Could be firmware related.

A test print with a small cube was conducted.  Attached is the preform file and a screen recording of the preparation. The part did successfully release from the build plate for this instance.  I don't believe I see a print removal video on the formlabs dashboard of this job.
See zip file below.
debug cube.zip

@kelvinchow23 any chance you could open a new topic describing this on the formlabs forum?

Thanks @kelvinchow23 ! https://forum.formlabs.com/t/form-auto-print-removal-video-not-available/40560/2


ColorTool: Provide newer binaries

There have been quite a few commits since the initial release binary, would it be possible to update it?
Just spent 30 mins setting up the toolchain to build it to specifically get it usable with PowerShell (https://github.com/Microsoft/console/issues/23)

@bitcrazed should be working on this.
It usually takes him a while to reply to GH threads, though if you want to get to him faster, twitter usually gets him moving pretty fast :P

On it, though I have a few high-pri things to take care of. Aiming for EOW.

Agreed 😁

Just put out 1810.02002 right now. Merged all the pending PRs, cleaned up a bug or two, and sent it out.


Fix fix BE core when using JNI to query the empty map type value

…alue (#31502)
Proposed changes
Issue Number: close #xxx
backport: #31502

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall


[UPDATE GUIDE] Update LND (versioning)

What
Updating LND guide to v0.16.4
Why
new version available with bug fix (release notes)
How
Reivew/update main guide.
Scope

[ ] significant change to core configuration
[ ] independent bonus guide
[x] simple bug fix

Fixes # (link issue)
Test & maintenance
Tested by upgrading.
Update identified via GitLurker https://www.gitlurker.info/

Line --> https://github.com/raspibolt/raspibolt/pull/1308/files#diff-95d7ff179bd7432b5299766d1f891af329103c5641c0d0d3a095f9891698fa11L86
Change to:
Success! Bitcoin block 797397 attests existence as of 2023-07-06 CEST

Line --> https://github.com/raspibolt/raspibolt/pull/1308/files#diff-95d7ff179bd7432b5299766d1f891af329103c5641c0d0d3a095f9891698fa11L86
Change to: > Success! Bitcoin block 797397 attests existence as of 2023-07-06 CEST

Thanks, updated.


Smile, fingers

Hello,
Thanks for this model, it's amazing.
Question
I wanted to know, since you trained on coco2017 dataset, this model should be able to detect smiles and fingers poses.

Is it possible? I saw that you guys select which output to show, there 4 outputs of the model and only index -2 is taken (so 3 output of heatmap is used)
Hypothesis
    stage2_heatmaps = stages_output[-2]
    heatmaps = np.transpose(stage2_heatmaps.squeeze().cpu().data.numpy(), (1, 2, 0))
    heatmaps = cv2.resize(heatmaps, (0, 0), fx=upsample_ratio, fy=upsample_ratio, interpolation=cv2.INTER_CUBIC)

    stage2_pafs = stages_output[-1]
    pafs = np.transpose(stage2_pafs.squeeze().cpu().data.numpy(), (1, 2, 0))
    pafs = cv2.resize(pafs, (0, 0), fx=upsample_ratio, fy=upsample_ratio, interpolation=cv2.INTER_CUBIC)

    return heatmaps, pafs, scale, pad

Is accessing the other 3 results the key to get detection of hand and smile pose ?
Thanks

I guess I have to train on custom dataset...I tried it but had some issues
RuntimeError: The size of tensor a (69) must match the size of tensor b (19) at non-singleton dimension 1

Is it related to checkpoint not being good for training on another number of keypoints (here 68) ? I doubt that since checkpoint path is required :D
Is there some other parameter that should be changed ?

Hi! Yes, you need to add custom dataset and modify the model and pose parsing code correspondingly. Try to follow the TRAIN-ON-CUSTOM-DATASET.md to get the details what need to be modified. Also #235, #237 threads may be helpful while debugging.

RuntimeError: The size of tensor a (69) must match the size of tensor b (19) at non-singleton dimension 1
This error says (most probably), that model predicts tensor with 69 channels, but dataset produces tensor with 19 channels. So, modify dataset code to match model output.

Hope, it is clear now.

Thank you, it is clear.
The guide was also really good, but I understand that there are a lot of details regarding this topic. Thanks for pointing out the fact that there is a dataset file to change too.


Supporting Multiple Network Interface

[Reference]

Resolved TestGetDeviceList() pending - #5
Supporting Multiple Network Interface

Please resolve conflict.


Plugin Missing from Community Plugin Search

Describe the bug
Searching for "advanced" or "slides" from inside Obsidian does not bring up this plugin.
Samples to Reproduce
In Obsidian, go to settings, community plugins, browse. Try to find the "Advanced Plugin".
Expected behavior
This plugin is found.

Confirmed


Connection refused when running tests

Hi, cool work, but when I try to run the tests it fails with:
Started
INFO : APP_START : Server has Started :  :  :

Tcp command [Connect(localhost:9000,None,List(),Some(30 seconds),true)] failed because of Connection refused
akka.stream.StreamTcpException: Tcp command [Connect(localhost:9000,None,List(),Some(30 seconds),true)] failed because of Connection refused

Process finished with exit code 0

Any ideas?

Hey, my bad. The port wasn't updated in the tests.


Add events to notify when a tile has been regenerated.

Currently, in order to find out if a tile has been regenerated, you have to store the tile generations from the previous frame and compare them with the tile generations of the current frame. This seems like it could just be an event that users can consume.

Adding this to the next release ✅


Remote Containers: Unnecessary extension install prompt in Try _ Sample

Saw when testing microsoft/vscode-remote-release#6482, though not directly related.
Opened the "Try C++ Sample". Prompted to install C++ extension, but happens already in the background without me answering. If we're going to install it in the background anyways, no reason to show a prompt.

VSCode Version:
Local OS Version:
Remote OS Version:
Remote Extension/Connection Type: SSH/Docker/WSL
Logs:

Steps to Reproduce:

Does this issue occur when you try this locally?: Yes/No
Does this issue occur when you try this locally and all extensions are disabled?: Yes/No

We closed this issue because we don't plan to address it in the foreseeable future. If you disagree and feel that this issue is crucial: we are happy to listen and to reconsider.
If you wonder what we are up to, please see our roadmap and issue reporting guidelines.
Thanks for your understanding, and happy coding!


Menus API

As a developer, I want full access to the Kazoo Menus API.

https://2600hz.atlassian.net/wiki/display/APIs/Menus+API


Max tokens?

Its hard coded to 512 in the examples- would mistral be higher max tokens (2048+)?

Yes, Mistral will probably benefit from higher max tokens, we used 512 to make to comparable to other models on the MTEB leaderboard

All analysis


Mai andy4

-In WorldEntity.tsx, I created a Youtube Play Button.
-In WorldEntity.tsx, disabled the box's (at around line 73) collision so that other components can phase through it.

Obselete. Re-created in #5


Assets Failing to Load

I have just installed popHealth using Installation v4.0 instructions.
popHealth commit: 90277b
last tag: v4.0.0
bundle 2.6.0
But many of the icons seem to be missing when viewing in Chrome.
Incidentally, when precompiling the assets, the following warnings appeared:
pophealth@ubuntu:~/popHealth$ rake assets:precompile
WARNING: Nokogiri was built against LibXML version 2.8.0, but has dynamically loaded 2.9.1
/home/pophealth/popHealth/lib/tasks/sharding.rake:4: warning: class variable access from toplevel
I can fix some of the icons by copying ~/popHealth/vendor/assets/components/font-awesome
to ~/popHealth/public/assets/font-awesome
and precompiling the assets again. But I suspect there must be a better solution.

The
$ rake assets:precompile
is missing additional arguments.  It should have been
$ rake assets:precompile RAILS_ENV=production RAILS_RELATIVE_URL_ROOT=/home/popheatlh/popHealth
I've updated the documentation.
By the way, the development setup runs directly from the code base without compilation, hence, slower performance.  That's why you didn't see the same issue when running in the "development" setup.
Thanks.

Thank you. That resolved the issue.


Interrupting kernel when sampling in Mamba.jl causes the kernel to shutdown

There is a very specific issue related to the Mamba package. I detailed the problem here. However, it seems to be an issue with the IJulia kernel.
Basically, when we run this code (or any code involving sampling) and interrupt the kernel while executing the last line (sim = mcmc(model, rats, inits, 10000, burnin=2500, thin=2, chains=2)), the interruption causes the kernel to shutdown.
The Julia interpreter behaves as expected: ^Cexception on 1: ERROR: interrupt
This is happening in Julia 0.3.1 with IJulia 0.1.15.

Closing as it is not clear this is still reproducible?


fix(keymaps): remove the extra '[]' around y

Description

Related Issue(s)

Screenshots

Checklist

[x] I've read the CONTRIBUTING guidelines.

@sgj123456 I remember this was intentional, not a typo.

@sgj123456 I remember this was intentional, not a typo.

I see, why?

@sgj123456 This might require asking the maintainer; a PR was previously opened regarding this.

@sgj123456 This might require asking the maintainer; a PR was previously opened regarding this.

In that case, I'm going to close it.


docs(crd): reword

https://github.com/longhorn/longhorn/pull/5409#discussion_r1109183655

@c3y1huang Need to update longhorn/longhorn.

Updated to https://github.com/longhorn/longhorn/pull/5409

@Mergifyio backport v1.4.x


Double click on button generates 3 click events

Repo:

add button with handler which increments a counter
Double click
The counter will get incremented 3 times.

From what I have been able to figure out, Consolewindow.HandleMouseInput has this code:
                case WindowsConsole.EventFlags.DoubleClick:
                    repeat = 2; //todo: now supporting only leftbutton
                    eventType = RawPointerEventType.LeftButtonDown;
                    break;

the first click comes through as a button down, which gets converted into MouseDown and MouseUp event.
The second click comes through as a button double click, which we convert into a repeat =2 of MouseDown, which gets converted into 2 pairs of Down/Up events
For a total of 3 events dispatched.

I did some experiments

If I comment out the DoubleClick then button behaves correctly but double click in a listbox doesn't fire.
If I change the repeat to be 1 instead of 2, then double click generates 2 button clicks but again listbox doesn't fire.
I don't quite see the magic of how avalonia deals with this, so I'm filing a bug with what I figured out so far.

I did some more investigation, and I think this is an impedence mismatch between console API on win32 and Avalonia.
The Console API models double click as 2 events
Click => DoubleClick
Which Consolonia maps to 6 events
MouseDown/MouseUp =>MouseDown/MouseUp => MouseDown/MouseUp
What's weird is that it seems like Avalonia has it's own double click detection logic and so mapping this:
Click => DoubleClick
to this
MouseDown/MouseUp => MouseDown/MouseUp
Should internally map to double click, but ListBox seems to not get triggered when I make this change.
Hmmm...


The problem of "identifier unordered_map is undefined" appears in the compiler. What should I do?

💬 Questions and Help
When "vector", "map" and other data types appear in the title, vscode tells me that they are not defined. But they can be tested and submitted. But the compiler still told me they were wrong,  and I want to know how to tell the compiler they're not wrong.

This is reported by other extension. i.e. c++ extension, if you installed.
LeetCode so far do not have any intellisense related features. So it's out of our scope.


🙋♂🙋♀ Contributors Wanted

Dear GitHub community,
This repo has been stale for a few months now, @lewagon can no longer commit anytime to it, having moved away from Docker/Kubernetes/etc., going back to simpler buildpacks-based deployment (Heroku, Scalingo, Dokku, etc.) where this action is no longer needed.
At the moment, the maintainers of this repo are:

☝ If you are in that list, please ✋ below to confirm your interest into maintaining this repo.
If you would like to get maintainer permissions on this repo and actively contribute on Issue Triage and Pull Requests review / merge / tagging new release, please say it here too!
Thank you 🤗

Maybe you can pin the issue so it appears at the top of the issue tracker - drawing more attention to this issue - as it is otherwise easy to miss.

Hi - we use this action within our org, and would be keen to be an active maintainer

Amazing @jleskovar-tyro, thank you! Feel free to look around at issues / submit a first PR 👌


Simplify std.uni.isAlpha

The codegen is literally the same.
I could have delegated to std/ascii, and in fact, I do think this would be the right thing to do int he absence of DMD's inliner being what it is.

Is there a statistical advantage to checking upper case first? I would have imagined lower case is higher probability in general.
It might be superior to | 0x20 and only do one pair of tests on some arch in many cases...

Probably not in un-optimised builds, and DMD too? I feel like it's better to just write what you want it to do.

@TurkeyMan There is always a balance you want to strike between readability and optimization. You even often get better result over the lifetime of a project by letting the optimizer do its work. Let me take an exemple: If the DMD codegen wasn't a concern, I would favor simply calling std.ascii.isAlpha in that codepath. This way, any improvement to one is reflected in the other, for as long your trust the inliner is going to do a good job.

Is there a statistical advantage to checking upper case first? I would have imagined lower case is higher probability in general. It might be superior to | 0x20 and only do one pair of tests on some arch in many cases...

I presented a similar change here https://github.com/dlang/phobos/pull/7800 .

Can you please rebase this to fix the buildkite failure?


Allow special element access assignments to create declarations

Fixes #32153
Allows expando properties to be created via element access:
function Paragraph(props) {
  return <p>{props.children}</p>;
}

Paragraph.displayName = "Paragraph"; // This has worked for a while
Paragraph["defaultProps"] = {}; // This PR enables this

@andrewbranch I suspect this overlaps with #33220 quite a bit, if not is wholly consumed by it

@weswigham I just checked out your PR, and ~the only place I can observe overlap is on this["str"] = something~ I actually observe no overlap, because I have a mistake on this["str"] = something

In my branch, ~all of these work (though the this assignments trigger implicit any errors, as they do with property access assignments)~ all of these work except for the this assignments, but they’re supposed to.

Ok, now my PR works with this, and that’s the place we overlap.

You wanna merge with master and see what some of these (class members, especially) emit with declarations on? Since they're not latebound, I imagine they're just emitted as their names, but tests are nice (especially of names like "prop-with-dashes").

Oh dear

Interestingly enough, the late bound variant in the other PR is already in a good place wrt declarations, looks like: https://github.com/microsoft/TypeScript/pull/33220/files#diff-2157e3c82025f7ab3e125ece2a9007eb
I'll try to get that merged so we can reconcile and work on the changes to the declaration emitter -

I think this will be for 3.8, as #33220 is still open—I won’t have time to fix conflicts, much less fix the JS declaration emit.

Naw, I think this'll maybe still be in 3.7 - #33220 will be merged once the new test shows as passing and because of other things, the 3.7 beta snap is being delayed a bit.

@weswigham this is fixed up with your PR now, just need to work on the declaration emit Monday morning 👍

A nav bar test like tests/cases/fourslash/navigationBarItemsSymbols4.ts is probably pertinent. If only to comment that none of these show up in the navbar because they're all non-syntactic members.

They actually do show up. I updated that test and it exposed one more place in navigationBar that was checking exclusively for PropertyAccessExpression.
Ready to merge once tests run 👍


mems output in XLNet

🐛 Bug
Hi,
I am trying to use memory of the last forward pass (mems arg) with XLNet. I am getting a tuple of None as mems output instead of a tuple of tensor. The same code with TransformerXL is running fine. Am I doing anything wrong or is this a bug ? Below is a short code snippet to reproduce the error.
Many thanks,
A
import torch
from pytorch_transformers import TransfoXLTokenizer, TransfoXLModel, XLNetTokenizer, XLNetModel

text = ['This is the first sentence. ', 'And this is another one']

# transformer-XL
tokenizer = TransfoXLTokenizer.from_pretrained('transfo-xl-wt103')
model = TransfoXLModel.from_pretrained('transfo-xl-wt103')
mems = None
for i in range(2):
    input_ids = torch.tensor(tokenizer.encode(text[i])).unsqueeze(0)
    outputs = model(input_ids, mems=mems)
    mems = outputs[1]
# RUNS OK

# XLNet
tokenizer = XLNetTokenizer.from_pretrained('xlnet-large-cased')
model = XLNetModel.from_pretrained('xlnet-large-cased')
mems = None
for i in range(2):
    input_ids = torch.tensor(tokenizer.encode(text[i])).unsqueeze(0)
    outputs = model(input_ids, mems=mems)
    mems = outputs[1]
# We get tuple of None in first model output, second forward crashes.
# File "/home/asors/anaconda3/envs/psco/lib/python3.7/site-packages/pytorch_transformers/modeling_xlnet.py", line 858, in forward
#     mlen = mems[0].shape[0] if mems is not None else 0

Model I am using: XLNet
Language I am using the model on (English, Chinese....):

OS: Ubuntu
Python version: 3.7
PyTorch version: 1.1.0
PyTorch Transformers version (or branch): 1.1.0

Indeed I see, we have to add:

an explanation in XLM's docstring that you should set the model configuration mem_len parameter if you want to use the memory (the answer to your main question). You can do for instance model = XLNetModel.from_pretrained('xlnet-large-cased', mem_len=1024) if you want a max memory of 1024 tokens. By default the model doesn't use memory (mem_len = None)
a check in the code to avoid the error you are reporting.

Thanks for your reply and the new doc!


Allow zt and zb to temporarily surpress scrolloff option

Describe the bug
scrolloff is set to 10 lines.
This disallows zt and zb from hitting true top and bottom.
To Reproduce
In Normal, type the command zt or zb.
Note that top and bottom are impacted by the default scrolloff value.
Desktop

OS: macOS
Terminal: Alacritty

Neovim Version
NVIM v0.10.1
Build type: Release
LuaJIT 2.1.1724232689

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/opt/homebrew/Cellar/neovim/0.10.1/share/nvim"

Suggestion
Temporarily set scrolloff to zero, only for mapped commands (zt, zb).
-- Custom function to execute a command with temporary scrolloff=0
local function with_scrolloff_0(cmd)
  return function()
    local scrolloff = vim.o.scrolloff
    vim.o.scrolloff = 0
    vim.cmd('normal! ' .. cmd)
    vim.o.scrolloff = scrolloff
  end
end

-- Set up custom mappings for zt and zb
vim.keymap.set('n', 'zt', with_scrolloff_0 'zt', { noremap = true, silent = true })
vim.keymap.set('n', 'zb', with_scrolloff_0 'zb', { noremap = true, silent = true })

dang. realizing this also only works momentarily. any new motions will add the scrolloff back.
interested in other possible solutions.

Try just this.
vim.keymap.set('n', 'zt', ':let save_scrolloff = &scrolloff<CR>:set scrolloff=0<CR>zt:let &scrolloff = save_scrolloff<CR>')
vim.keymap.set('n', 'zb', ':let save_scrolloff = &scrolloff<CR>:set scrolloff=0<CR>zb:let &scrolloff = save_scrolloff<CR>')

this is the same thing without a shared function, right?

It works for me, at least. Can reach true top and bottom. Of course, any subsequent motions will factor in the scrolloff value once the keymap is finished. I'd suggest just removing the scrolloff value entirely if it impedes with your desired workflow, or have a separate keymap that toggles it on/off.

No action items here? Looks like a work around has been offered. Closing. Please re-open if you feel there's actual work for us to do.


Powershell 7.1, nvm use followed by node invocation in script errors

NVM4W version: 1.1.7
My Environment

Windows 10
Powershell 7.1.3

Expected Behavior
Powershell 7 script:
nvm use 14.16.1
& node.exe -v
& node.exe -v

Expect to see node version printed twice.
Actual Behavior
Following output after running the script:
Now using node v14.16.1 (64-bit)
&: C:\...\minimal-case.ps1:2
Line |
   2 |  & node.exe -v
     |    ~~~~~~~~
     | The term 'node.exe' is not recognized as a name of a cmdlet, function, script file, or executable
     | program. Check the spelling of the name, or if a path was included, verify that the path is correct
     | and try again.

v14.16.1

Steps to reproduce the problem:
Save the Powershell script to file and run in Powershell 7.1.3.
Note
Running a Get-Command before attempting the command runs without an error.
It seems like act of looking to resolve the command makes it so the command then runs on the first try.
nvm use 14.16.1
Get-Command -all node
& node.exe -v

My guess is the bug is in Powershell 7 somewhere, but not sure how to narrow down the issue to that layer.
We changed our scripts to include the following so they run without errors.
Get-Command -all node >> null

I ran into this issue when using nvm in a CI environment, it's due to the nvm escalates privileges to be able to swap the symlink....
This take a very small period of time that runs outside the nvm exe, so the call to "nvm use" completes and in the background it will switch versions but by which point your call to node has tried to call the node.exe that doesn't exist
The fix we used in our CI environment was to start-sleep -seconds 5 kinda stupid really...

Yes, this should be documented. Just ran into this in a build process. It's important to sleep after running nvm use <version> in a script that will immediately do something with npm.

The only possible fix for this is to delay the completion of the nvm executable, i.e. sleeping or waiting for a loop to check whether the version is found. For most users, this will add latency to the use process. I'm not prepared to do that at this time since it could impact several million people. I have this listed as an item to address in rt (successor project).
In the meantime, I agree with @scottnonnenberg-signal that this should be documented... so I've added a note to the wiki.


Add max file size support

We currently support maximum file sizes server-side only.
We should support client-side checks too, as this will make for a snappier experience.

Released in https://github.com/upload-js/uploader/releases/tag/v1.8.0


Improve testability of Schedule.jittered

https://github.com/scalaz/scalaz-zio/issues/359
Improve testability of Schedule.jittered through extra parameter for random component.
The extra parameter is an IO[Nothing, Double] but the correct values are only double in the interval (0, 1).
Maybe a further improvement would be to pass a more structured type that conveys this constraint.

I applied the suggested changes, both in code and in tests (Schedule.run is super useful indeed, I didn't know about it). I can also try to modify the old tests on RetrySpec using run only, but perhaps in a separate PR

@pierangeloc Thank you for your work on this!


Add example to show how users can customize log4j properties for kafka servers

Q
A

Bug fix?
no

New feature?
no

API breaks?
no

Deprecations?
no

License
Apache 2.0

What's in this PR?

Docs - add example to show how users can customize log4j properties for kafka servers
Why?

Currently we don't have an example to show how this customized configurations can be set

LGTM, nice to have it :)


✨(back) delete aws elemetal stack once a live stopped

Purpose
Once a live is stopped we can delete all the aws elemental stack used,
we will not use them again.
Proposal

[x] delete aws elemetal stack once a live stopped

@sampaccoud ready for a new review


docs: fix yarn add command typo

Changes done on installation guide

yarn i hybridly vue axios -D is not a valid command it should be yarn add hybridly vue axios -D
laravel input option added to vite config examples. When we run the build, it does not add resources/css/app.css to vite manifest file.

laravel input option added to vite config examples. When we run the build, it does not add resources/css/app.css to vite manifest file.

This is on purpose. You usually import css from main.ts:
import { initializeHybridly } from 'virtual:hybridly/config'
import { createHead } from '@unhead/vue'
import { createFlare } from './flare'
import<EMAIL_ADDRESS>import '@fontsource-variable/inter'

initializeHybridly({
	enhanceVue: (vue) => {
		vue.use(createFlare())
		vue.use(createHead())
	},
})

Thanks!


UnassignedJobReasonTracker returns the last failed constraint

If there are several failed constraints in the list, the tracker returns the last constraint instead of the most likely one

Thanks a lot @Jullil !!


Problem with positioning files grid

When I load page grid starts positioning but it stops in middle and all grids (mostly those in center which are still not positioning) shakes. Sometimes after a while (1-2s) its end with proper positioning but sometimes its just "shakes" without ending.
I tested it on almost every modern browser (updated) at MacOS Big Sur.

https://user-images.githubusercontent.com/4557530/135834255-320b8bfd-8ffd-4845-b3a2-5adeacd060b9.mp4

Appreciate the video, but please fill in the issue template (see text area contents when clicking NEW ISSUE) and supply a public test case.

We require the issue template to be filled out on all new issues. The issue template helps us collect all the information we need to address your submission efficiently.
The more information we have, the faster the issue can be resolved.
We will be able to more closely look at your issue once the issue template has been filled out. The issue will be closed until the above is addressed.
Please leave a comment after you've updated the issue.


check does not appear to detect many cases of multiple drivers

Steps to reproduce the issue
Verilog code:
module top(inout a, input b);
  always @(*) a <= 1'b0;
  always @(*) a <= b ? 1'b0 : 1'b1;
  // or:
  // always @(*) a <= b;
endmodule

Yosys script:
proc
check -assert

Expected behavior
check would log an error.
Actual behavior
3. Executing CHECK pass (checking for obvious problems).
checking module top..
found and reported 0 problems.

Notes
opt_clean prints a warning for the uncommmented case but not the commented one.
Based on my understanding of IEEE 1364.1-2002, both of the cases above are not legal synthesizable Verilog:

See #3817

Now with #3817 the conflict in the example is detected. I'm not aware of any other cases where we miss multiple drivers.


[Bug] OOM when benchmarking

Checklist

[X] 1. I have searched related issues but cannot get the expected help.
[X] 2. The bug has not been fixed in the latest version.
[X] 3. Please note that if the bug-related issue you submitted lacks corresponding environment info and a minimal reproducible demo, it will be challenging for us to reproduce and resolve the issue, reducing the likelihood of receiving feedback.

Describe the bug
out of memory encountered
Exception in ModelTpServer: Traceback (most recent call last):   File "/opt/tiger/sglang/python/sglang/srt/managers/controller/tp_worker.py", line 209, in exposed_step     self.forward_step()   File "/home/tiger/.local/lib/python3.9/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context     return func(*args, **kwargs)   File "/opt/tiger/sglang/python/sglang/srt/managers/controller/tp_worker.py", line 240, in forward_step     self.forward_decode_batch(self.running_batch)   File "/opt/tiger/sglang/python/sglang/srt/managers/controller/tp_worker.py", line 650, in forward_decode_batch     output = self.model_runner.forward(batch, ForwardMode.DECODE)   File "/opt/tiger/sglang/python/sglang/srt/managers/controller/model_runner.py", line 364, in forward     return self.forward_decode(batch)   File "/home/tiger/.local/lib/python3.9/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context     return func(*args, **kwargs)   File "/opt/tiger/sglang/python/sglang/srt/managers/controller/model_runner.py", line 317, in forward_decode     return self.model.forward(   File "/home/tiger/.local/lib/python3.9/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context     return func(*args, **kwargs)   File "/opt/tiger/sglang/python/sglang/srt/models/llama2.py", line 331, in forward     return self.logits_processor(   File "/home/tiger/.local/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1532, in _wrapped_call_impl     return self._call_impl(*args, **kwargs)   File "/home/tiger/.local/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1541, in _call_impl     return forward_call(*args, **kwargs)   File "/opt/tiger/sglang/python/sglang/srt/layers/logits_processor.py", line 164, in forward     last_logits = last_logits[:, : self.config.vocab_size].float() torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 2.25 GiB.  Higher is more aggressive, which could give you higher throughput but higher risk of OOM.

@lxww302 You can expect using --chunked-prefill-size 8192 with radix cache disabled soon. I am working on this.

Hi @lxww302 Sorry for the inconvenience, may you try using version v0.2.5?


Fail job creation if job config file doesn't exist

Fail fast so users that fat-finger this don't waste time
debugging.
Fixes #489

@rohansingh

:+1:

looks like some unrelated stuff was included in the commit, but :+1:

@gimaker If you're talking about the extra stuff I added here https://github.com/spotify/helios/pull/494/files#diff-f2d9b1d73d2606703030267fe9e52573R89, I wanted to test that a valid config file was parsed correctly.


My Wombats - Add Wombat - URL Placeholder Text

AC:

In the Wombat URL text field, the following placeholder text displays:

eg. MyGithubHandle/MyRepoName/contents/MyWombatFileName.clj

The add wombat modal now has:
Wombat Name
Wombat Repo Name
Wombat File Path
Checked on two separate user accounts and appears to be working as expected.
Providing an incorrect file path (eg. contents/wombat-sample.clj) results in a 400 error.
Moving to closed.


WIP: centosci-tasks-dh72g: Update translations from Fedora Zanata

Update translations from Fedora Zanata

[ ] po-refresh

po-refresh in progress on centosci-tasks-dh72g.
Log: http://fedorapeople.org/groups/cockpit/logs/po-refresh-410-20181116-101717/

po-refresh  done: https://github.com/cockpituous/welder-web/commits/po-refresh-20181116-101919

@mvollmer: Nice, this seems to work!

Codecov Report

Merging #410 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #410   +/-   ##
=======================================
  Coverage   35.47%   35.47%
=======================================
  Files          49       49
  Lines        1852     1852
  Branches      334      334
=======================================
  Hits          657      657
  Misses       1195     1195

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 4fc3b73...3434355. Read the comment docs.


Make the .refcache directory configurable

xml2rfc has a global cache.  Conveniently, it uses the same technique for
caching as kramdown-rfc2629.  This allows users to point to the same
location, so that there can be cache reuse.

Now pushed as gem 1.0.40. Thank you!


Schema for CONFIG_FILE_PATH

ARGUMENTS
  CONFIG_FILE_PATH  path to an Adobe I/O Developer Console configuration file

Describe the solution you'd like
We should define the schema of this file in case someone wants to generate their own.

Just document it more, showing a sample version would be much easier for users to parse ...


Fix register form behaviour

Describe the bug
Register interception pre hooks runs before completely check on given values from register page of CTFd. Which means even though we did not specify anything on register page, it spins up a lab in background :( In addition to that, it also spins up lab when you have same team on event, which assigns existing team to another lab, that's a little bit weird
To Reproduce
Could be reproduced when user submit anything through register page.
Expected behavior
Should not spin up lab, should show error message regarding to situation.

handled with commit released with pre-release version


Working indicator should be smart and need not be reseted.

Agree an explicit error would help here. I moved this issue to https://github.com/LightTable/Clojure/issues/68 and have posted a suggested solution. Pull requests welcome


[skip ci] ceph_custom_repo: define apt and rpm key for custom repo

This is backport of commit 4c592066b7c1caaec700af347fc9edf2109c1659
Signed-off-by: Rafal Wadolowki<EMAIL_ADDRESS>

@xelexin a couple of details:

you shouldn't push directly in stable-4.0 branch.
we usually use cherry-pick -x

@xelexin why are you changing the base branch ?


Kafka source docs disappeared?

Expected Behavior
Link to docs (and sample config) should work from
https://github.com/knative/eventing-contrib/tree/master/kafka/source
Actual Behavior
Could not find Kafka source docs in
https://knative.dev/docs/eventing/samples/
or in
https://knative.dev/docs/eventing/sources/
Steps to Reproduce the Problem

Open links above

Additional Info

/assign @matzew

It's here:
https://github.com/knative/docs/pull/1712

they are here:  https://knative.dev/development/eventing/samples/kafka/

/close


CSV field order

Every time i create a CSV file the data is organized differently.  Transactions is where i have noticed it.
This makes it difficult to use bulk insert of data into databases if the fields are not in the same order each time.
Export1 example:
type,id,accountId,date,description,amount,status,matchState,etag,isExpense,isPending,discretionaryType,isLinkedToRule
Export2 example:
type,id,accountId,date,description,amount,status,matchState,merchantId,etag,isExpense,isPending,discretionaryType,isLinkedToRule

@rchadgray this order is defined by Mint.  The only option we'd have is to alphabetize the columns, but that would more than likely negatively affect more users than help as it would change the contextual order of the columns.


Added a funny image!

Your pull request contains an extra Mugatu9/README.md~. Please remove that.
Also, please read step 7 more closely. Please make your URL look exactly like the one in the example.


Fix incorrect error message in TensorArray.scatter

This fix tries to fix the issue raised in #12403 where the error message in TensorArray.scatter is incorrect. Specifically, in
      OP_REQUIRES(
          ctx, max_index < array_size,
          errors::InvalidArgument("Max scatter index must be <= array size (",
                                  max_index, " vs. ", array_size, ")"));

The <= array size in error message should be < array size as the maximum value of index (0-based) should always be smaller than array size.
This fix fixes #12403.
Signed-off-by: Yong Tang<EMAIL_ADDRESS>

Jenkins, test this please.

cmake failure is due to a flaky timeout. This is ready to be merged.


⚠ Bofrost.at has degraded performance

In 2f6565e, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 1246 ms

Resolved: Bofrost.at performance has improved in b80ad7b.


Update native image TCK integration tests

Add a setting for whether to docker pull in TCK integration tests, so we have this on for TCK implementation docker images, and off for native image proxy so it uses the locally built one. Currently pulling a published image instead in #511 which is failing.
Also try enabling the node-support TCK in the native image integration tests.

I'll merge this and keep an eye on CI builds. Since the native image cassandra smoke test fails regularly, we may need to disable that until it's looked at more closely.

I'll merge this and keep an eye on CI builds. Since the native image cassandra smoke test fails regularly, we may need to disable that until it's looked at more closely.


How do you roll out an app with an Event trigger to multiple channels?

Hi!
I've created a simple app that has an event trigger for reaction added. Like the sample code: https://github.com/slack-samples/deno-code-snippets/blob/main/Event_Triggers/triggers/reaction_added.ts
To enable it (after deploying it) I had to:

Add the app in a channel (Channel settings -> Integrations -> Add an app), and
Add that channel's ID to the trigger file:  channel_ids: ["CABC12ABC"] (and use the trigger CLI command to create the trigger)

Now my problem is: The users love the app and want to enable it globally :) (or at least to many of our channels).
I'm stuck on how to scale my app to many channels. Do I need to repeat the steps over per channel? (add the app in channel settings, add the channelid to the channel_id array in the trigger file, update the trigger and then update the trigger using the CLI). That would mean that users would have to contact me for every channel they want to add the app in, that would be quite cumbersome. How can this be solved?

Hello @tomas-zijdemans-vipps 👋

I'm stuck on how to scale my app to many channels. Do I need to repeat the steps over per channel? (add the app in channel settings, add the channelid to the channel_id array in the trigger file, update the trigger and then update the trigger using the CLI). That would mean that users would have to contact me for every channel they want to add the app in, that would be quite cumbersome. How can this be solved?

This is a great question! And a common one we receive, as it is not very clear at this stage from our education materials how to handle this situation. Let me try to explain the options we have currently settled on.
As you have identified, you could manually and explicitly create a new trigger with a new channel ID to roll it out to every new channel. Along the same lines, you could edit an existing trigger and expand the list of channel IDs in the trigger. Of course, this is tedious! Perhaps this may work if you only need to deal with a few channels, but there is a better - though more advanced - approach to tackling the problem.
The key is the ability to create triggers dynamically. That is, you could write a custom function that calls the workflows.triggers.create API that we provide. We have some documentation on creating an event trigger at runtime here - you will need to click the tab that says "Create an event trigger at runtime". In fact, the example in this document link is exactly for the emoji-reaction-added event, so I think it is relevant to your situation.
That is one key aspect to enable further automation in this case. The second key idea I want to tell you about is a pattern that we've seen emerge that we call the 'configurator workflow' pattern. The idea here is that your app will have two workflows: one to do whatever the thing your app does (do something when someone reacts with an emoji), and another workflow to configure the first. This configuration workflow would use a custom function that creates a trigger dynamically. A typical configuration workflow might look like the following:

It is triggered by a link trigger - maybe one that is available globally for the entire workspace, or maybe only one that is available in a private channel for administrators.
The workflow's first step is to collect information on how to configure a new event trigger for the main app workflow. This can be done using the OpenForm built-in function - a simple way to create a modal to the user and collect information easily (we also have a tutorial on how to use OpenForm to collect information generally). Specifically for your case, you would want the form to collect one or more channel_ids. By specifying the types of the form fields, the relevant UI form element will be rendered for you. In the case of a channel_id, a channel drop-down menu picker will be rendered.
The outputs of this OpenForm function will return the form values - in your case, the channel(s) selected.
You can then pass these form outputs to the inputs of a custom function that calls the workflows.triggers.create API I mentioned earlier, to dynamically create an event trigger based on the channels selected from the OpenForm step.

I think a good example for you would be the deno-message-translator sample app we have. This app uses a configurator workflow which actually creates an emoji-reaction-added event trigger dynamically to selected channels - I think your exact use case. Worth noting that this app has an even more advanced configurator workflow than what I described above: it will actually search for previously-created matching event triggers and update them with a new channel list if necessary, will auto-join any such configured channels, and tons of other nice little app improvements.
I hope this helps!

Thanks for the detailed answer @filmaj !
I was reviewing how this was done in the simple survey sample. It is definitely a path I will explore. As you say, it is quite advanced, so hopefully this could be streamlined somehow in the future.
Maybe we need to have this pattern built in? Offer a new "Configuration Trigger" in the SDK? It could for example have a list of the triggers it's allowed to configure.

It is triggered by a link trigger - maybe one that is available globally for the entire workspace, or maybe only one that is available in a private channel for administrators.

Sorry, I couldn't find in the documentation how to add a Link trigger globally for the entire workspace. Could you point me in the right direction?

Sorry, I couldn't find in the documentation how to add a Link trigger globally for the entire workspace. Could you point me in the right direction?

Sure! The link trigger is by default global. It is just a link that is shareable anywhere in Slack. You could e.g. pin it or bookmark it to some channel where your workspace users would go to get help or submit requests related to the app, or the workspace, in general.

Maybe we need to have this pattern built in? Offer a new "Configuration Trigger" in the SDK? It could for example have a list of the triggers it's allowed to configure.

It is a good idea, the implementation details here would be complex, but I understand and reciprocate the sentiment. Since the platform is so new, many of these patterns are just emerging. I will certainly raise this feedback.


Refactor code for creating broadcasted transaction in full_node_client

Discussed here

https://github.com/software-mansion/starknet.py/pull/1243/files#r1446011371


Updated tools/generator to read from literate files

This is the generator for the next generation package in our SDK that provide multi-API Version and profile support.

Alright @jhendrixMSFT / @mcardosos: This PR is ready for feedback and merge. It is no longer a WIP

To take a step back, how come we need our own generation program?  With all the language-specific generation options in the config files it seems that we should only need one tool to perform generation for any language.

BTW, how are you whitelisting dataplane stuff?

I already discussed all of the following with @mcardosos  and @jhendrixMSFT offline, but I wanted to copy this over for community involvement.

@jhendrixMSFT says:
To take a step back, how come we need our own generation program? With all the language-specific generation options in the config files it seems that we should only need one tool to perform generation for any language.

Agreed, ideally we wouldn't have to have such a tool. However, at the moment it's the best thing we've got. I'm in talks with @johanste, @lmazuel, and @sergey-shandar about how we could extend our current tool chain to have some reusable means of generating SDKs from README tags.

@mcardosos says:
BTW, how are you whitelisting dataplane stuff?

Specifically, having a yaml $(tag)=='<tag name>' && $(go) with an output-folder attribute white lists a package to be generated. Generally though, I've basically taken the position that being in master of the public repository that documentation is being generated off of constitutes as being ready to be generated in Go. We get a lot of Issues files on us asking why we don't generate such Swaggers, I'd like to be out of that business. I believe @salameer is working on improving the Specs Repo processes to accomodate this thinking.

@mcardosos / @jhendrixMSFT any final thoughts before I merge this in?

Not many, not many


当弹出键盘或者切换键盘的输入方式的时候总会有bug

Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Smartphone (please complete the following information):

Device: [e.g. iPhone6]
OS: [e.g. iOS8.1]
Browser [e.g. stock browser, safari]
Version [e.g. 22]

Additional context
Add any other context about the problem here.

什么bug？

无回应，关闭


Working code broke after deploying to new installation. ValueError: When using stateful=True in a RNN, the batch size must be static. Found dynamic batch size: sequence.shape=(None, xx, xx)

Issue type
Bug
Have you reproduced the bug with TensorFlow Nightly?
Yes
Source
source
TensorFlow version
2.16.1
Custom code
No
OS platform and distribution
Ubuntu 22.04
Mobile device
No
Python version
3.10.12
Bazel version
No response
GCC/compiler version
No response
CUDA/cuDNN version
12.4
GPU model and memory
No response
Current behavior?
So the existing code broke, with this error
ValueError: When using stateful=True in a RNN, the batch size must be static. Found dynamic batch size: sequence.shape=(None, XX, XX),
but when changed to (XX, XX, XX) I get this, ValueError: Input 0 of layer "lstm" is incompatible with the layer: expected ndim=3, found ndim=4. Full shape received: (None, 1, XX, XX)
If static shape is passed, not sure why additional dimension is added. Need help in resolving this. I tried both the release version and nightly version. The issue persists
And also the input is 3D tensor produced by timeseries_dataset_from_array function. Is there any example on training stateful LSTM using these 3D tensors? Not sure if this is a bug really. I am stuck.
Standalone code to reproduce the issue
Dont have stand alone.

Relevant log output
No response

Hi @summa-code ,

Ensure that your input data has a static batch size. When using stateful=True, the batch size should not change between batches. You can achieve this by padding or truncating sequences to a fixed length.
When defining your LSTM layer, set stateful=True and specify the batch_input_shape parameter with a fixed batch size and sequence length.
example:

model.add(LSTM(units=64, batch_input_shape=(batch_size, sequence_length, input_dim), stateful=True))

If you are using timeseries_dataset_from_array to prepare your data, make sure that all sequences have the same length. You can achieve this by setting the sequence_length parameter when creating the dataset.
example:

dataset = timeseries_dataset_from_array(data, targets, sequence_length=desired_length, batch_size=batch_size)

Thank you!

So that was the working code, but after I updated to latest in fresh ubuntu install, "batch_input_shape" not a recognized attribute.
This is what I am getting
'''ValueError: Unrecognized keyword arguments passed to LSTM: {'batch_input_shape': (xxx, xxx, xxx)}'''

Looks like it is a bug in how they configure the shape. And also there are no examples on how to use stateful lstm in addition to lack of documentation on statefulness.

Anyone?

Try using the input object instead of batch_input_shape.
Input(batch_shape=(1,None,4))

InputLayer in the sequence before LSTM() or in the LSTM(InputLayer) method ?

Hi @summa-code ,

Apologies for the dealy, In order to expedite the trouble-shooting process, please provide a code snippet to reproduce the issue reported here.

Thank you!

I have this same problem. I've been having this for a while now.

having same issue, is this solve?

Same issue here


fixed formatting error

fixed formatting error at:
https://developers.cloudflare.com/cloudflare-one/connections/connect-devices/warp/exclude-traffic/split-tunnels#add-a-domain

closing as this has been fixed elsewhere


Metapackaging

Installing from the root setup.py will now install the latest package for each project where hydra-torch is the name of the metapackage.
pip install . results in
pip list ->
Package                   Version
------------------------- -------
hydra-configs-torch       1.6.1
hydra-configs-torchvision 0.7.1
hydra-torch               0.9
omegaconf                 2.0.5

I also created a file called hydra-torch-projects.txt which will serve as an array that tracks the name of all currently maintained project. This centralizes the collection of active projects to one file that we can reference in other parts of the code.
Addresses #35
Other note:
Currently, install_requires needs to use github URIs to get the project packages, but once these are on PyPI, we will change accordingly. The other option was configuring this to install from local dependency links after cloning, but it was far more complex.

fixed #35


Youtube streams page broken on @livetokyoshinjukulivech8492

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

[X] I understand that I will be blocked if I intentionally remove or skip any mandatory* field

Checklist

[X] I'm reporting that yt-dlp is broken on a supported site
[X] I've verified that I'm running yt-dlp version 2023.07.06 (update instructions) or later (specify commit)
[X] I've checked that all provided URLs are playable in a browser with the same IP and same login details
[X] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[X] I've searched known issues and the bugtracker for similar issues including closed ones. DO NOT post duplicates
[X] I've read the guidelines for opening an issue
[ ] I've read about sharing account credentials and I'm willing to share it if required

Region
No response
Provide a description that is worded well enough to be understood
The youtube streams page (e.g https://www.youtube.com/@livetokyoshinjukulivech8492/streams) will return that there are no videos even if there are videos. Doesn't seem to affect every channel.
This seems to be a rare bug with how YouTube pagination works (specifically on /youtubei/v1/browse api). Only on the 4th page it will return the videos.
I don't know how yt-dlp works but im developing a similar library for YouTube, my solution was to try again the /youtubei/v1/browse request with the provided continuation token from the request response up to 4 times or until it returns any videos.
Provide verbose output that clearly demonstrates the problem

[X] Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
[ ] If using API, add 'verbose': True to YoutubeDL params instead
[X] Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output
[debug] Command-line config: ['-vU', 'https://www.youtube.com/@livetokyoshinjukulivech8492/streams']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version<EMAIL_ADDRESS>[b532a3481] (pip)
[debug] Python 3.10.12 (CPython arm64 64bit) - macOS-13.4.1-arm64-arm-64bit (OpenSSL 3.0.9 30 May 2023)
[debug] exe versions: ffmpeg 5.1.3 (setts), ffprobe 5.1.3, rtmpdump 2.4
[debug] Optional libraries: Cryptodome-3.17, brotli-1.0.9, certifi-2022.12.07, mutagen-1.46.0, secretstorage-3.3.3, sqlite3-2.6.0, websockets-10.4
[debug] Proxy map: {}
[debug] Loaded 1855 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Available version<EMAIL_ADDRESS>Current version<EMAIL_ADDRESS>yt-dlp is up to date<EMAIL_ADDRESS>[youtube:tab] Extracting URL: https://www.youtube.com/@livetokyoshinjukulivech8492/streams
[youtube:tab] @livetokyoshinjukulivech8492/streams: Downloading webpage
[debug] [youtube:tab] Selected tab: 'streams' (live), Requested tab: 'streams'
[download] Downloading playlist: 【LIVE】東京 新宿 鉄道 ライブ Tokyo Shinjuku Live Ch - Live
[youtube:tab] UC1kDVgEX2DsE295Bkum_K9Q page 1: Downloading API JSON
[youtube:tab] Playlist 【LIVE】東京 新宿 鉄道 ライブ Tokyo Shinjuku Live Ch - Live: Downloading 0 items
[download] Finished downloading playlist: 【LIVE】東京 新宿 鉄道 ライブ Tokyo Shinjuku Live Ch - Live

Youtube website's client seems to work around this as well

(image showing 3 empty responses and 4th filled one)

For this channel, /live also redirects to /streams despite there only being 1 current livestream (and no upcoming)

cc @coletdjnz


adding Spanish postcodes

There is a postcode field in the processed CSVs for Spain but it wasn't getting mapped during the transform.

Thank you, Al!


[DEV-2167] add zchf stable price

Release Checklist
Pre-Release

[ ] Check migrations

No database related infos (sqldb-xxx)
Impact on GS (new/removed columns)

[ ] Check for linter errors (in PR)
[ ] Test basic user operations

Login/logout
Registration
Update user data
Create/delete payment routes

Post-Release

Test basic user operations
Monitor application insights log

Cool!


OLED screen connection

Great project!
I just finished it and it is quite impressive! I just had to dig a bit through the code to find out how the OLED screen is connected to the Daisy and I think if you could put that on the README it would be of great help for other people building the pedal, specially if they don't code:

Screen pin
Daisy signal
pin number

Vcc
3V3 dig
38

GND
DGND
40

DIN
MOSI/D6
7

CLK
SCLK/D2
3

CS
CS/D3
4

DC
MISO/D1
2

RST
D30
37

Hey there, I'm glad you enjoyed the build! Nice catch on the OLED connections, that should have been more clear on my end so I'm sorry you had to spend a bunch of time digging through all of that. I've been there lol.
I've gone ahead and added this to the readme under step 7 of the soldering instructions for future people, cheers!


add support for setting minimum requested units in limit increase policy

└─<cwb>$ git diff --minimal -U0  master
diff --git a/c7n/resources/account.py b/c7n/resources/account.py
index e71d9d81..a88df652 100644
--- a/c7n/resources/account.py
+++ b/c7n/resources/account.py
@@ -498,0 +499 @@ class RequestLimitIncrease(BaseAction):
+            'minimum-increase': {'type': 'number', 'minimum': 1},
@@ -534,0 +536 @@ class RequestLimitIncrease(BaseAction):
+        minimum_increase = self.data.get('minimum-increase')
@@ -540 +542 @@ class RequestLimitIncrease(BaseAction):
-                increase_by = max(increase_by, 1)
+                increase_by = max(increase_by, minimum_increase)

Inadvertently omitted default value in initial commit, resolved here

1st commit - omitted default value. Fixed
2nd commit - typo'd "minimum". Fixed.

@thisisshi

\o/

WARNING:test command found but not installed in testenv

@aardvarq the error is a linting one:
flake8 c7n tools/c7n_org tools/c7n_gcp tools/c7n_logexporter tools/c7n_mailer tools/c7n_sentry tools/c7n_sphinxext tools/zerodark tools/ops tools/c7n_azure
c7n/resources/account.py:537:1: W293 blank line contains whitespace
make: *** [lint] Error 1
ERROR: InvocationError for command '/usr/bin/make lint' (exited with code 2)

just remove the whitespace :)

@aardvarq gently removes the somewhat liberal pylint alias from his shell profile.

done. Hope to file many more in the relatively near future. Thanks for the amazing work.


some more

Hi Amy,
I found three more strings containing this typo.
All the best,
Tom

Hello @ctlaltdieliet,
Thanks for your pull request! A Core Committer will review your pull request soon. For code contributions, you can learn more about the review process here.

@ctlaltdieliet Would you be open to re-submitting this to the master branch? 🙏 Let me know if you'd like me to help.
I think this PR got closed automatically when my PR was merged.


Get-DbaRoleMember -ExcludeDatabase does not work

Bug Report

General Troubleshooting steps

[x ] Verified running the latest release of dbatools?
[x ] Verified errors are not related to permissions?
[ ] Can duplicate in new/clean PowerShell session (clean = powershell -NoProfile)?

Version Information

Operating System (Name|Version):
PowerShell Version:
SQL Server (Edition|Version):

Steps to Reproduce
Get-DbaRoleMember -SqlInstance $SqlInstance -ExcludeDatabase 'msdb','tempdb','master'
Will return the excluded databases.
There is a workaround of course but the point is other Functions like Get-DbaDbRole, use the ExcludedDatabase as expected.
Get-DbaRoleMember -SqlInstance $SqlInstance | Where Database -notin 'msdb','tempdb','master'

[ ] Attach any screenshots (if possible/allowed)
[ ] Attach logs generated by dbatools (Get-DbatoolsLog)
[ ] Attach output from PowerShell console (if possible/allowed)

Feature Request

Problem to solve

Additional information

gotcha!


[SPARK-31994][k8s] Docker image should use https urls for only deb.debian.org mirrors.

What changes were proposed in this pull request?
At the moment, we switch to https urls for all the debian mirrors, but turns out some of the mirrors do not support. In this patch, we turn on https mode only for deb.debian.org mirror (as it supports SSL).
Why are the changes needed?
It appears, that security.debian.org does not support https.
curl https://security.debian.org
curl: (35) LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to security.debian.org:443

While building the image, it fails in the following way.
MacBook-Pro:spark prashantsharma$ bin/docker-image-tool.sh -r scrapcodes -t v3.1.0-1 build
Sending build context to Docker daemon  222.1MB
Step 1/18 : ARG java_image_tag=8-jre-slim
Step 2/18 : FROM openjdk:${java_image_tag}
 ---> 381b20190cf7
Step 3/18 : ARG spark_uid=185
 ---> Using cache
 ---> 65c06f86753c
Step 4/18 : RUN set -ex &&     sed -i 's/http:/https:/g' /etc/apt/sources.list &&     apt-get update &&     ln -s /lib /lib64 &&     apt install -y bash tini libc6 libpam-modules krb5-user libnss3 procps &&     mkdir -p /opt/spark &&     mkdir -p /opt/spark/examples &&     mkdir -p /opt/spark/work-dir &&     touch /opt/spark/RELEASE &&     rm /bin/sh &&     ln -sv /bin/bash /bin/sh &&     echo "auth required pam_wheel.so use_uid" >> /etc/pam.d/su &&     chgrp root /etc/passwd && chmod ug+rw /etc/passwd &&     rm -rf /var/cache/apt/*
 ---> Running in a3461dadd6eb
+ sed -i s/http:/https:/g /etc/apt/sources.list
+ apt-get update
Ign:1 https://security.debian.org/debian-security buster/updates InRelease
Err:2 https://security.debian.org/debian-security buster/updates Release
  Could not handshake: The TLS connection was non-properly terminated. [IP: <IP_ADDRESS> 443]
Get:3 https://deb.debian.org/debian buster InRelease [121 kB]
Get:4 https://deb.debian.org/debian buster-updates InRelease [51.9 kB]
Get:5 https://deb.debian.org/debian buster/main amd64 Packages [7905 kB]
Get:6 https://deb.debian.org/debian buster-updates/main amd64 Packages [7868 B]
Reading package lists...
E: The repository 'https://security.debian.org/debian-security buster/updates Release' does not have a Release file.
The command '/bin/sh -c set -ex &&     sed -i 's/http:/https:/g' /etc/apt/sources.list &&     apt-get update &&     ln -s /lib /lib64 &&     apt install -y bash tini libc6 libpam-modules krb5-user libnss3 procps &&     mkdir -p /opt/spark &&     mkdir -p /opt/spark/examples &&     mkdir -p /opt/spark/work-dir &&     touch /opt/spark/RELEASE &&     rm /bin/sh &&     ln -sv /bin/bash /bin/sh &&     echo "auth required pam_wheel.so use_uid" >> /etc/pam.d/su &&     chgrp root /etc/passwd && chmod ug+rw /etc/passwd &&     rm -rf /var/cache/apt/*' returned a non-zero code: 100
Failed to build Spark JVM Docker image, please refer to Docker build output for details.

So, if we limit the https support to only deb.debian.org, does the trick.
Does this PR introduce any user-facing change?
No
How was this patch tested?
Manually, by building an image and testing it by running spark shell against it locally using kubernetes.

Test build #124050 has started for PR 28834 at commit 9ef5b94.

Test build #124050 has finished for PR 28834 at commit 9ef5b94.

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

Merged build finished. Test PASSed.

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

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/28669/

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/28669/

Merged build finished. Test FAILed.

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


No module named db，No module named file

No module named db，No module named file

pip install --upgrade airflow is ok!


Logged in from event to use x-forward ip

When I log into primate an event is recorded saying "user USER logged in from IPADDRESS". this is a problem for users that use a proxy or load balancer because the ip will always be the the ip of the load balancer or proxy. can a system config option be added to use the IP address of the x-forward header so the real ip of the user is shown instead when using a proxy or load balancer?.

@gaaray2k this is not a UI issue, please log against apache/cloudstack repo; I think X-Forwarded-Host is already supported


Warnings for Options requiring values

PHP throws a warning for options that requires values whenever a default value isn't supplied. To reproduce, create a parser with a long and short option that takes a value. Ensure that a default value is not supplied and attempt to parse.

Now that there are support for types, an error must be reported for an untyped option that receives a value.


test: add unit test for configuration initialization

This add a test for the provider configuration if the env values are correctly set across the board.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

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

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
323

Relevant Lines:
539

💛  - Coveralls


problem

I have a problem, after getting the SSH key, I use Windows 11's CMD terminal to connect normally in the first few minutes, but after a few minutes, it will automatically disconnect, and then I can't connect at all, even if I change a lot Network and SSH clients. I'm pretty sure my GitHub Action project is still running, but no matter what I try, I can't connect to the SSH server properly.
This is a problem I just encountered these days, please solve it in time, it will be of great help to me.
kex_exchange_identification: read: Connection reset
Connection reset by <IP_ADDRESS> port 22

This is not caused by this action and most likely by tmate.io itself.