Positional parameters - overload ambiguity

Just went off the example and tried to use position parameters, like this:
options.parse_positional({"archive"});

However this fails with the errors:
error: call of overloaded ‘parse_positional(<brace-enclosed initializer list>)’ is ambiguous
   options.parse_positional({"archive"});
                                       ^
./cxxopts.hpp:1589:1: note: candidate: void cxxopts::Options::parse_positional(std::__cxx11::string)
 Options::parse_positional(std::string option)

./cxxopts.hpp:1596:1: note: candidate: void cxxopts::Options::parse_positional(std::vector<std::__cxx11::basic_string<char> >)
 Options::parse_positional(std::vector<std::string> options)

It seems if you only have one variable for the positional parameters to go into, you should not use a vector and use a string instead.  I don't suppose there's any way to make the syntax uniform no matter how many parameters you specify?  Maybe with an std::initializer_list overload too, or instead of them both?

I didn't realise that was ever a valid overload for std::string, I think in this case adding an initializer_list option is the best way to fix it.


Enable geocoder

Cant enable geocoder. I enabled it on the config.js file but still doesn't show geocoder. Any ideas?? Thanks!

@triesco this functionality is not hooked up yet in version 2.  We cleaned up the config file in the most previous release to remove that parameter.  Sorry for the inconvenience.

Any other way to enable it?
On Dec 9, 2016 2:40 PM, "Mark Cooney"<EMAIL_ADDRESS>wrote:

@triesco https://github.com/triesco this functionality is not hooked up
yet in version 2. We cleaned up the config file in the most previous
release to remove that parameter. Sorry for the inconvenience.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Esri/shortlist-storytelling-template-js/issues/66#issuecomment-266103591,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AR1Yc3hLtwpQmoH-O3fMCs0QglbnrDdwks5rGa7CgaJpZM4LJR4P
.

There is not, but it is an enhancement we will look to include in a future release


IMSI detail of device

Can i get IMSI of a device in a device working in maldives.

Yes, for more information，please contact https://trustdecision.com


Chat - Chat scrolled to the bottom when other part of the chat history loaded

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Version Number: 1.4.53-2
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/4432845&group_by=cases:section_id&group_id=306202&group_order=asc
Email or phone of affected tester (no customers<EMAIL_ADDRESS>Issue reported by: Applause - Internal Team
Action Performed:
Precondition: chat with a lot of messages should not be cached

Open app
Open chat with a lot of messages e.g. "#applause.expensifail.com"
Wait until the last messages will be loaded
Scroll up rapidly to the very top
Wait until the other part of the chat history will be loaded

Expected Result:
The other part of the chat history should be loaded when user scrolled to the very top
Actual Result:
Page scrolled down to the latest messages when other part of the chat history loaded
Workaround:
Unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[ ] Android: Native
[ ] Android: mWeb Chrome
[x] iOS: Native
[x] iOS: IPad
[ ] MacOS: Chrome / Safari
[ ] MacOS: Desktop

Screenshots/Videos
Add any screenshot/video evidence

https://github.com/Expensify/App/assets/78819774/697aa440-2e1b-4907-af24-a309b5c8dd1a
View all open jobs on GitHub

@puneetlath  FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors

@lanitochka17 does this only happen on iOS devices?

This bug was happening only in iPad, not in iPhone or android.

@puneetlath Tester was not able to reproduce in the latest staging build 1.4.56-0 on both iPhone and iPad
https://github.com/Expensify/App/assets/43996225/36873ca4-13d2-4518-add5-3e658b18640d
https://github.com/Expensify/App/assets/43996225/5642ee89-dcf5-4830-8969-e589ce9fb5d2

Ok got it, that's good to hear! Closing out.


Unkown worng of WOSAC submission

When I upload a submission to sim agents challenge, I got error but there is not any error information or hint as in figure.
So I come here to ask for your help and solution.
My account is<EMAIL_ADDRESS>and the submission link is https://waymo.com/open/challenges/sim-agents/results/5cf88d3f-eece/1722133974548000/ .
Looking forward to your kind reply.

Hi @Longzhong-Lin,
sorry for the delay. There are some errors that are not correctly propagated in the server. Let me investigate and get back to you.

Hi @nicomon24 , is there any update?

Hey @Longzhong-Lin,
Sorry I responded to the same exact issue via email and I didn't realise these were different submissions. The error seemed to be a transient one on the server, I'm re-evaluating your submission hopefully will let you know something in the next couple of hours!
Sorry for the delay
Nico

hello, @nicomon24
I encountered the same problem with my submissions. Can you help me re-evaluate them?
https://waymo.com/open/challenges/sim-agents/results/3379d968-4609/1722143929690000/
https://waymo.com/open/challenges/sim-agents/results/3379d968-4609/1722149697960000/

@Longzhong-Lin your submission should be now visible.
@linxuewu Will update in a couple of hours

@linxuewu Should be fixed now!

@nicomon24  Hello, I encountered the same problem. Could you please take a look at it?
https://waymo.com/open/challenges/sim-agents/results/3379d968-4609/1724646061908000/
https://waymo.com/open/challenges/sim-agents/results/3379d968-4609/1724626439963000/

Hi @linxuewu, all done now

@nicomon24 Sorry bother you again, the same problem keeps recurring. Could you please help restart this evaluation? https://waymo.com/open/challenges/sim-agents/results/3379d968-4609/1726910365917000/

Hi @linxuewu,
sorry this keeps happening 😢
I've restarted your eval, should be done in a couple of hours

Hi @nicomon24 ,
I wonder if you could help us edit the information of the testing submission, since the submission times are limited.


fix bind method

when bind method, the first argument is class's prototype.
https://github.com/wycats/javascript-decorators
https://babeljs.io/repl/

Hm... submitted test pass with the current master.

@yiminghe is this still valid?

I don't use this module now, feel free to close

The change doesn't make any difference. I just added a test to prove it doesn't overwrite the prototype


Exclusion not working for ksp-generated code if added to sourceSets

I have api models annotated with Moshi. I'm using ksp moshi plugin to generate adapters. I would like to add those generated files to Android Studio view, but still skip them in ktlint linting.
The setup of Kotlinter looks like this
tasks.named<org.jmailen.gradle.kotlinter.tasks.LintTask>("lintKotlinMain") {
    exclude {
        it.file.toString().contains("generated")
    }
}
tasks.named<org.jmailen.gradle.kotlinter.tasks.FormatTask>("formatKotlinMain") {
    exclude {
        it.file.toString().contains("generated")
    }
}

It works great until i do this:
this.applicationVariants.all {
    val variantName = name
    sourceSets {
        getByName(variantName) {
            java.srcDir(File("build/generated/ksp/$variantName/kotlin"))
        }
    }
}

After adding generated sources the lintKotlin is complaining about the files under build/generated. So it looks like it completely ignoring the exclude configuration in this case. Is that Kotlinter error or should i look elsewhere?

Please note that the exclusions, when done the way you are doing them, are relative to the package root: https://github.com/jeremymailen/kotlinter-gradle#customizing-tasks
Can you try this suggestion and see if it works: https://github.com/jeremymailen/kotlinter-gradle/issues/242#issuecomment-1074473916
The other alternative is, since Kotlinter creates a lint task per sourceSet, you could define a separate sourceSet for your generated Moshi classes and disable that entire subtask.

Ok, so i did this:
tasks.withType<org.jmailen.gradle.kotlinter.tasks.LintTask> {
    setSource(source - fileTree("$buildDir/generated"))
}
tasks.withType<org.jmailen.gradle.kotlinter.tasks.FormatTask> {
    setSource(source - fileTree("$buildDir/generated"))
}

And it solved the issue for all modules except the app one (it's the main android app module). I think that's because of flavors, that are messing up the source sets somehow. So i'm struggling with that. But otherwise - step in good direction

Ok, i think i figured that out. Configuration for android library module (com.android.build.gradle.LibraryExtension)
android.libraryVariants.all {
    val variantName = name
    tasks.getByName<org.jmailen.gradle.kotlinter.tasks.LintTask>("lintKotlin${variantName.capitalize()}") {
        setSource(source - fileTree("$buildDir/generated"))
    }
    tasks.getByName<org.jmailen.gradle.kotlinter.tasks.FormatTask>("formatKotlin${variantName.capitalize()}") {
        setSource(source - fileTree("$buildDir/generated"))
    }
    sourceSets {
        getByName(variantName) {
            java.srcDir(File("build/generated/ksp/$variantName/kotlin"))
        }
    }
}

and for application module:
android.applicationVariants.all {
    val variantName = name
    tasks.getByName<org.jmailen.gradle.kotlinter.tasks.LintTask>("lintKotlin${variantName.capitalize()}") {
        setSource(source - fileTree("$buildDir/generated"))
    }
    tasks.getByName<org.jmailen.gradle.kotlinter.tasks.FormatTask>("formatKotlin${variantName.capitalize()}") {
        setSource(source - fileTree("$buildDir/generated"))
    }
    sourceSets {
        getByName(variantName) {
            java.srcDir(File("build/generated/ksp/$variantName/kotlin"))
        }
    }
}

hope that helps somebody in future :)


Do not fail RisingWave checkpoint if upstream source is unavailable

Is your feature request related to a problem? Please describe.
Suppose user created 3 tables:

Streaming table T1 from kafka source
Streaming table T2 from direct CDC of PG database1
Streaming table T3 from direct CDC of PG database2
Batch table T4

When the upstream PG database1 is not available, RisingWave cluster will enter a recovery loop until the upstream DB is back online causing 1) data ingestion to be stopped in T1, T3 and T4; 2) batch queries on T1, T3 and T4 will constantly get interrupted by recovery.
This issue is found during debugging a cluster failure reported by one of our user. It takes us some time to realize that RisingWave is working fine but the upstream source is down.
Describe the solution you'd like
We can pause the source from polling data from an unavailable source but still allow barrier injection from source. In this case, RisingWave checkpoint is unaffected when there is an issue in an external system.
Data will still be lagging for the unavailable source but this is unavoidable.
Describe alternatives you've considered
No response
Additional context
No response

cc @fuyufjh @tabVersion @BugenZhao Any opinions?

Seems we had a similar discussion before -> https://github.com/risingwavelabs/risingwave/issues/7192#issuecomment-1447923386

had a discussion with @fuyufjh yesterday, there will be a doc about the expected behavior for the source part when the upstream is unavailable. stay tuned!

had a discussion with @fuyufjh yesterday, there will be a doc about the expected behavior for the source part when the upstream is unavailable. stay tuned!

Thanks for the heads-up. Look forward to it! ❤

Completely agree. Just discussed exactly the same issue with Bohan yesterday.

We can pause the source from polling data from an unavailable source but still allow barrier injection from source. In this case, RisingWave checkpoint is unaffected when there is an issue in an external system.

Yeah. I proposed to let it retry forever when upstream source is unavailable. Otherwise, as you said, let the barrier injection run normally.
Besides, the Sink side need a similar mechanism but the implementation would be more difficult, which depends on the Sink-MV decoupling aka. Log Store, I think.

While for testing, @cyliu0  may take a look as well


Create mariosanchez.md

Submitting site for consideration in Hugo Showcase

Can you also commit the thumbnail? Just push to the same branch.

Done.
Thanks!
Mario
On Mon, Jun 22, 2015 at 1:25 PM, Bjørn Erik Pedersen <
<EMAIL_ADDRESS>wrote:

Can you also commit the thumbnail? Just push to the same branch.
—
Reply to this email directly or view it on GitHub
https://github.com/spf13/hugo/pull/1219#issuecomment-114189496.

I may be blind, but I do not see it. Have you pushed it?

Sorry... I had pushed it but forgot to create the pull request. You should see it now.
Thx,
M.

Merged and live soon.


x/build: update Scaleway ARM kernels to have highres timers

See https://github.com/golang/go/issues/13405#issuecomment-169094317
Update our Scaleway kernels to have highres timers.
/cc @aclements

This seems to have been fixed when we updated the images last year.
Verified:
root@scw-e8738f:~# uname -a
Linux scw-e8738f 4.10.8-docker-1 #1 SMP Wed Apr 5 16:04:23 UTC 2017 armv7l armv7l armv7l GNU/Linux
root@scw-e8738f:~# zcat /proc/config.gz | grep TIMERS
CONFIG_HIGH_RES_TIMERS=y
CONFIG_POSIX_TIMERS=y


Make the optimal_ordering accessible from sc.tl.dendrogram.

No idea about the error in the performance test. @flying-sheep ?


Is it possible to use pre-signed url to upload files into s3

Is that possible to upload with presigned url using multer-s3

+1 is this possible ?


Change SDK version to latest (2.0.9)

Problem
The project is using an outdated version of the SDK (2.0.5)
Solution

Update version to 2.0.5
Check testing and fix any tests that don't perform as expected

Alternatives
No response

SDK v2.0.9 has a bug that prevents its usage in the UI (System Delete/Undelete cannot be read from byte arrays)
Changing the title and moving this to next version


Enum issue

Dear John,
I am getting exception for Enum data type
Ex.
enum Profession : Int, UnboxableEnum {
case None = 0
case Developer
case Astronaut
static func unboxFallbackValue()-> Profession {
    return None
}

}
struct Employee : Unboxable {
let profession:Profession
init(unboxer: Unboxer) {
self.professionIndex = unboxer.unbox("Profession")
///// JSON have integer value >=3 for "Profession"
}
}
Will appreciate for assistance.
Thanks

Hi @jeetendradesai786,
The built-in support for decoding enums is based on their rawValue. So if you are expecting something else (like >= 3 in this case), you'd have to make your enum conform to UnboxableByTransform and write your own mapping code. Another alternative would be to unbox the underlying integer, and then handle it in your init(unboxer:) implementation (like I think you already started with), like this:
struct Employee: Unboxable {
    let profession: Profession

    init(unboxer: Unboxer) {
        let professionIndex: Int = unboxer.unbox("profession")

        switch professionIndex {
            case 3:
                self.profession = .Developer
            // And so on, for each case
            default:
                self.profession = .None // Dummy value assignment
                unboxer.failForInvalidValue(professionindex, forKey: "profession")
        }
    }
}

Let me know if that works for you :)

@jeetendradesai786 Closing for now, let me know if the solution I suggested above doesn't work :)

Hi John,
Thanks for the help.
Solution given works fine.
Get Outlook for iOS
On Sun, May 22, 2016 at 4:13 AM -0700, "John Sundell"<EMAIL_ADDRESS>wrote:
@jeetendradesai786 Closing for now, let me know if the solution I suggested above doesn't work :)
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub


Inaccessible hotspot for inserting new points into line

For inserting new points in a line between existing points,
the UI provides a hotspot in the middle between those existing points,
but inside the edit-window if the points are too far away.
The edit-window has some areas where clicks don't register,
e.g. menubars at top and right, and the "bing-banner" at the bottom.
It looks like the calculation for placing the hotspots
does not take into account these "dead areas" of the edit-window,
see screenshot:

Also, the top bar could be narrower (providing more workspace),
if the field for the save-count wouldn't be so high.

@hajo4 what browser/version/OS is this?

I am using Palemoon (a Firefox-Fork) on Windows

Did you know - once a line is selected, you can double-click most places on that line to add a point ? Unlike the '+' centre arrow, double-clicking does not reposition the line either.

Chrome / win7 - me too - bottom: bing bar in the way.


avoid selenium detection on login, formatting of README.md, instructions for VSC

@donwayo would it be ok if I dockerize the project (and bump up the version of python to 3.8-3.9)?

That sounds like a great idea. I'm eagerly waiting for the pull request :)
Eduardo Castellanos N.
On Tue, Dec 8, 2020 at 3:48 PM Denis Ergashbaev<EMAIL_ADDRESS>wrote:

@donwayo https://github.com/donwayo would it be ok if I dockerize the
project (and bump up the version of python to 3.8-3.9)?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/donwayo/ebayKleinanzeigen/pull/10#issuecomment-740664367,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAWMOS66KSSMJ5Z5MRH4QBTSTY4ETANCNFSM4UOVIFHQ
.


[HTML5] Better editor persistent folders, automatically open zip import popup

In this PR:

Usual RasterizerDummy sync.
[Editor] Import zip via drag and drop in project manager (still not working on HTML5 because the file is not used immediately).
Dropping a single ZIP file in the project manager will now prompt the import dialog.
[HTML5] Make home (/home/web_user) path persistent in editor.
We used to only persist specific sub-folders of /home/web_user/ when running the Web Editor.
This resulted in bad UX about default project creation path etc.
This PR makes the whole folder persistent, move the zip preloading to a different folder (to avoid persisting it), and automatically prompt the user to import it if present.

Fixes #44754 .
Note: As mentioned above, only preloading works on HTML5, not drag and drop of the zip file from your file system.

Thanks!


Prevent compile-time deprecation warning while preparing for the future

Mind you that OTP_RELEASE was introduced in Erlang 21, so if you want a broader maintenance scope I may have to tweak the pull request.

@paulo-ferraz-oliveira Yeah, might as well use a platform_define as in rebar.config. POST_OTP_22 already exists in that form (i.e., -ifdef(POST_OTP_22)).

Rebased on top of master.


[Feature][Commons] Linkis Commons Function optimization

What is the purpose of the change

Custom variable feature enhancement to support more script types
LDAP Support cache
HDFS cache fs do not close
Support log request info
Optimize rpc retry
add new utils method

Related issues/PRs
Related issues: close #5167
Checklist

[x] I have read the Contributing Guidelines on pull requests.
[ ] I have explained the need for this PR and the problem it solves
[ ] I have explained the changes or the new features added to this PR
[ ] I have added tests corresponding to this change
[ ] I have updated the documentation to reflect this change
[ ] I have verified that this change is backward compatible (If not, please discuss on the Linkis mailing list first)
[ ] If this is a code change: I have written unit tests to fully verify the new behavior.

LGTM.


Use TOML version catalogs

It would be helpful to have examples that use TOML version catalogs.
Maybe the platform plugins can read coordinate info from the version catalog?

Thanks for the suggestion @yogurtearl. I think you are right. I'll look into adding another variation of the setup that uses the version catalog.
I just did something similar over here: https://github.com/jjohannes/idiomatic-gradle#summer-2022-update-gradle-751
There are essentially two good options I think:

Add the catalog only for coordinates and use it as addition to the platform. Then use the aliases from the catalog in the platform and the build files. That's what you suggest if I understand correctly. That would be this change in the idiomatic-gradle project https://github.com/jjohannes/idiomatic-gradle/commit/version_catalog_with_platform
Remove the platform completely and only use the catalog. And do the versions management in the catalog then. That would be this change (on top of the previous one) in the idiomatic-gradle project: https://github.com/jjohannes/idiomatic-gradle/commit/version_catalog_without_platform

Is there a way to have the group, artifact AND version in TOML, but pull that all into the platform?
My preference would be to have ALL versions across everything in a TOML version catalog file, but read info form the TOML file and use it wherever needed including in platforms.

You can also put the versions in the TOML file and keep the platform. I think you are flexible there. Whatever fits best for your.
Then versions are in the platform, but also all the places where you define dependencies.
E.g. if you have this in the catalog:
guava = { module = "com.google.guava:guava", version = "29.0-jre" }

You can put this into a build file
dependencies {
    implementation(libs.guava)
}

And this into the platform:
dependencies.constraints {
    implementation(libs.guava)
}

Practically, this works. But you also don't need the platform anymore, because the versions are already in all places. That's why I removed the platform in the example linked above, once the versions were in the TOML file.

But you also don't need the platform anymore, because the versions are already in all places.

if you are using enforcedPlatform , is that still true?
What if we put all group/artifact/versions in TOML, use them in a platform project, use enforcedPlatform to apply each platform as needed.
This will make sure the version in the TOML file are the versions actually used.
It could be confusing/misleading, if the version in the TOML file aren't actually the versions used because a transitive dep causes gradle to pick a different version.

These are a lot of different topics in my opinion. :)

enforcePlatform - I won't recommend using that. It think it was introduced as a compromise to get some Maven-like behaviour into Gradle. It still uses the "old" force concept in Gradle dependencies that blindly replaces all versions with the one defined in a platform. Rather, I would use reject inside the platform (or strictly if necessary).
IMO, the idea that you, no matter what, get the version you defined is not a good way to do this for large dependency graphs. It sounds intuitive, but replacing (especially downgrading) transitive dependencies can break things. That's why this example setup proposes to use reject to avoid unwanted updates and use dependency analysis to keep an eye on the versions used.
Both reject and strictly can also be used when defining versions in the Catalog. Although it get's a bit ugly IMO, because then you write more complex versions in the TOML file without good IDE support. That's a reason why I prefer to put them in a build.gradle file of a platform project.

But if you are comfortable with the "hammer" of just replacing all versions with what you define, you can use strictly (short notation !!) on all the versions that you define in the Catalog and then you do not need a Platform to use enforcePlatform  for having the same effect in your project. But that's not an approach I would recommend (or use) in general.

This repo has been updated. It now:

Uses the version catalog
Has a platform setup that automatically turns everything defined in the catalog into (strict) constraints
Additionally, you may define further restrictions on dependency versions in the platform

From the experience in a few projects I looked at over the past months, this is the best compromise to combine all features.


Package.activateResources is deprecated.

The context menu CSON format has changed. Please see
https://atom.io/docs/api/latest/ContextMenuManager

This is a duplicate. Please see #407 which resolves it.


runtimetest: Fix check for device nodes

Signed-off-by: Mrunal Patel<EMAIL_ADDRESS>

7fd96c123's ‘& os.ModeDevice’ addition looks good to me, but I'm not
sure what the --tty addition is for.

6f9de0a0 looks good to me.
The --tty bit should be easy to add back in if we still need it after
azurestandard/runtime-spec#518 gets sorted.


Casting generic subtypes from dynamic (how to)

If I have a class such as MyClass<MySubtype> and an instance that has been deserialized into MyClass<dynamic>, how can I manually cast/convert it back into MyClass<MySubtype>?
I don't necessarily need to always do this as part of the deserialization, just occasionally on demand under specific circumstances.
I tried using copyWith like so: myInstance.copyWith<MyClass<MySubtype>>(); but copyWith doesn't appear to accept a type parameter in version 2.0.0-dev.11. I think I saw this functionality in an earlier version but am not 100% sure.
I also tried to use a container: myMapperContainer.fromValue<MyClass<MySubtype>>(myInstance); but mappable wants the instance to be a primitive such as a map. This makes sense but I don't want to serialize / deserialize just to change the subtype.
I'm probably missing something obvious here but even so, it might be helpful to document this somewhere.

I don't think this was ever supported, but its an interesting concept to make copyWith generic.


Publish to PowerShell Gallery

To get started on #182 I would like to get arm-ttk published to the PowerShell gallery for more streamlined consumption.
We will need to identify an MSA account then generate an API key and add it as a secret in this repo as "NuGetAPIKey".

@bmoore-msft - Do you have access to an MSA account for this?

Thanks - I need to go hunt down the key and an MSA...

Thanks - I need to go hunt down the key and an MSA...

Given other priorities, I'm going to close out this PR

Given other priorities, I'm going to close out this PR


Can't find  /src/commands/ribbonJSON.js file

Note: This repo is only for questions related to its samples. If you have questions about how to use office.js or the Office developer platform, please post your question on https://stackoverflow.com. Tag your question with office-js or outlook-web-addins

Question
Ask your question here.
Can't find  /src/commands/ribbonJSON.js file

Hi @minyu007 are you looking for this file? https://github.com/OfficeDev/Office-Add-in-samples/blob/main/Samples/office-contextual-tabs/src/commands/ribbonJSON.js
Or are you looking at a different sample?
Thanks!
David


Update o365_excessive_authentication_failures_alert.yml

rename syntax adjusted
later needed lastTime included
PR Template for new Detections
For Authors:

[ ] Make sure that CI/CD detection-testing and build-and-validate jobs passed ✔.

For Reviewers:

[ ] Verify CI/CD jobs have passed without errors.
[ ] Validate SPL logic.
[ ] Validate tags, description, and how to implement.
[ ] Validate name matches <platform>_<mitre att&ck technique>_<short description>
[ ] Verify references match analytic.
[ ] Is there an Atomic Test?

Cheers thank you 😊


Delete broken DB Precond

Added precondition to ensure that server is still as seen before.

http://jenkins01.arangodb.biz:8080/view/PR/job/arangodb-matrix-pr/7248/

http://jenkins01.arangodb.biz:8080/job/arangodb-matrix-pr/7281/


cgroupv1: set Linux cmd arg SYSTEMD_CGROUP_ENABLE_LEGACY_FORCE=1 to w…

…ork with systemd >= v256
Testing done
[Describe the testing you have done before submitting this PR. Please include both the commands you issued as well as the output you got.]

[ ] Changelog entries added in the respective changelog/ directory (user-facing change, bug fix, security fix, update)
[ ] Inspected CI output for image differences: /boot and /usr size, packages, list files for any missing binaries, kernel modules, config files, kernel modules, etc.

This fix does not work in the context of systemd 256 refusing to boot with cgroupv1 enabled, as ignition starts after systemd.


Disable auth token validity check

Can the oauth validity check be disabled? Or I guess alternatively: make a validate 429 not fail the authentication flow? I'm running into this error:
[2022-09-01T14:52:45.532Z] ❌ twurple:chat:twitch ERROR Retrieving an access token failed: Encountered HTTP status code 429: Too Many Requests

URL: validate
Method: GET
Body:

Which is happening because over 120 users joined in a short period of time: https://discuss.dev.twitch.tv/t/a-reminder-to-validate-access-tokens-when-using-oauth2/16218
Since we're using IRC chat, if the validity call is skipped the remainder of the API calls still seem to work.

This can't happen in a realistic usage scenario. This endpoint does not have any documented rate limit, so you'd have to be doing a ton of different user connections. This sounds like either a bug in your code or something really shady I don't want to support.

Our application is neither: we are using preemptible instances to monitor users' pubsub and occasionally an instance is preempted. A new one boots up and it takes over the old connections, leading to a very short burst of a few hundred connections and this library issues validation requests despite the token having a future expiry time.
Anyways, the antagonistic and haughty response here is unappreciated. We'll look elsewhere for quality libraries.

Interesting - in the log message it says you're using chat, not PubSub.
Other than that, all officially documented PubSub topics (except the automod related ones) are available via EventSub. I recommend you switch to that, as it's much easier to scale.


Support faster sort algorithm in onnx.NonMaxSuppression and onnx.TopK

This PR introduces a faster sort algorithm (quick sort and comb sort) on CPU in the emitArgSort function.
The quick sort algorithm is used for onnx.NonMaxSupression and onnx.TopK operations.
This PR uses faster sort algorithms according to the following two conditions (1) the input rank should be less or equal to 6 (2) the axis to be sorted should be the last rank. Otherwise the original bubble sort code is used.
I consider that the conditions are met in all onnx.NonMaxSupression cases and the most practical cases of onnx.TopK.
c.f.  This PR reduces execution time of onnx.NonMaxSupression op in a Yolov4 example by 50+ times.
Signed-off-by: Yasushi Negishi<EMAIL_ADDRESS>

I'm wondering why you are writing your own quick sort instead of using the qsort in the standard C library?

I'm wondering why you are writing your own quick sort instead of using the qsort in the standard C library?

I agree that the standard qsort library are preferred to be used, but we need a non-standard compare function to compare two elements.
The compare function for the standard qsort library, as you know, is int (*compare)(const void *arg1, const void *arg2), and the standard qsort function swaps contents of arg1 and arg2 if necessary.
However, in our case, the target list to be sort is managed by two arrays, those are (1) data array holding data themselves, and (2) index array holding offsets of the data array. (c.f. The sort function sorts the index array only, and does not change the data array.)  Accordingly, to compare two elements in the target list, we need to access elements in both index and data arrays.
The issue to use the standard compare function is how to pass all necessary information with its two arguments. For example, we can pass two index elements with the two arguments, but cannot pass the base pointer of the data array. There may be some tricks (e.g. pass base pointer of the data array by a static variable, OR reconfigure(copy) the target array before sorting), but they have drawbacks (e.g. the sort function cannot be reentrant, OR additional processing and memory are required).
Your comments or suggestions are welcome.

Did you look at the qsort_r function? It allows a 3rd argument in which you can pass in arbitrary data (e.g., the base pointers to your data and index array). It's basically designed for situations exactly like yours.
       void qsort_r(void *base, size_t nmemb, size_t size,
                  int (*compar)(const void *, const void *, void *),
                  void *arg);

       The  qsort_r()  function is identical to qsort() except that the comparison function
       compar takes a third argument.  A pointer is passed to the comparison  function  via
       arg.   In this way, the comparison function does not need to use global variables to
       pass through arbitrary arguments, and is therefore reentrant  and  safe  to  use  in
       threads.

@jenkins-droid test this please

@gongsu832 Thank you for your nice suggestion about qsort_r. (I looked at qsort and qsort_r manual at first, but I did not think it is so important at the time.)
I rewrote this PR to use the standard qsort_f function in all environments supporting the function, but
some environments (e.g. MacOS and Windows) do not support "qsort_r", because Since it is not a POSIX standard API.
A custom implementation of qsort_r is used for such environments.

MacOS does support qsort_r. It just passes the arguments in a different order from that of Linux:
     void
     qsort_r(void *base, size_t nel, size_t width, void *thunk,
         int (*compar)(void *, const void *, const void *));

     The qsort_r() function behaves identically to qsort(), except that it takes an
     additional argument, thunk, which is passed unchanged as the first argument to function
     pointed to compar.  This allows the comparison function to access additional data
     without using global variables, and thus qsort_r() is suitable for use in functions
     which must be reentrant.

Also as I mentioned above, on Windows the function is called qsort_s: https://learn.microsoft.com/en-us/cpp/c-runtime-library/reference/qsort-s?view=msvc-170

@gongsu832 Thank you for the info. I am refactoring the code to use qsort_r and qsort_s on MacOS and Windows.
After confirming all tests passed, I will remove the custom quick sort code.

Would it make sense to have some template (zero overhead, or something similar) that can be instantiated for each OS and that would centralize the different calls to capture in one spot the difference among OSs?
The idea would be that the special code would all be contained into one spot, instead of spreading wherever there are calls that need to be OS specific.
Any suggestions @gongsu832 ? There are probably solutions out there that we can adopt to do this cleanly.

The code suggested above basically does that for qsort. On all platforms, you make the same quick_sort(base, num, size, comp_ascending, arg) or quick_sort(base, num, size, comp_descending, arg) call.

We found that the  "test_nonmaxsuppression_identical_boxes_cpu" test in backend test including the identical boxes fails on MacOS.  The test sorts an array including 10 exactly same floating point numbers, and it expects that the original order is not changed, but, as you know, the quick sort and comb sort algorithms are not stable sort algorithms, so that we cannot expect that the input order is preserved.
To avoid this issue, we changed compare functions to compare two values at first and compare the original orders themselves if the values are the same. Fortunately the list is managed by index and data arrays, and the index array is initialized by the input order (1, 2, 3, ...).
This compare functions guarantee the input order among the same values and makes sorting algorithms stable.

@jenkins-droid test this please

Can someone look at the following backend test errors on MacOS?
It seems that numpy is not install on the test Python environment.
======================================================================
ERROR: test_abs_cpu (__main__.OnnxBackendNodeModelTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/runner/hostedtoolcache/Python/3.10.9/x64/lib/python3.10/site-packages/onnx/backend/test/runner/__init__.py", line 259, in device_test_func
    return test_func(*args, device=device, **kwargs)
  File "/Users/runner/hostedtoolcache/Python/3.10.9/x64/lib/python3.10/site-packages/onnx/backend/test/runner/__init__.py", line 315, in run
    self.assert_similar_outputs(ref_outputs, outputs,
  File "/Users/runner/work/onnx-mlir/onnx-mlir/build/test/backend/Debug/inference_backend.py", line 1173, in assert_similar_outputs
    super(InferenceBackendTest, cls).assert_similar_outputs(ref_outputs, outputs, rtol, atol)
  File "/Users/runner/hostedtoolcache/Python/3.10.9/x64/lib/python3.10/site-packages/onnx/backend/test/runner/__init__.py", line 181, in assert_similar_outputs
    if ref_outputs[i].dtype == np.object:
  File "/Users/runner/hostedtoolcache/Python/3.10.9/x64/lib/python3.10/site-packages/numpy/__init__.py", line 284, in __getattr__
    raise AttributeError("module {!r} has no attribute "
AttributeError: module 'numpy' has no attribute 'object'

======================================================================
ERROR: test_acos_cpu (__main__.OnnxBackendNodeModelTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/runner/hostedtoolcache/Python/3.10.9/x64/lib/python3.10/site-packages/onnx/backend/test/runner/__init__.py", line 259, in device_test_func
    return test_func(*args, device=device, **kwargs)
  File "/Users/runner/hostedtoolcache/Python/3.10.9/x64/lib/python3.10/site-packages/onnx/backend/test/runner/__init__.py", line 315, in run
    self.assert_similar_outputs(ref_outputs, outputs,
  File "/Users/runner/work/onnx-mlir/onnx-mlir/build/test/backend/Debug/inference_backend.py", line 1173, in assert_similar_outputs
    super(InferenceBackendTest, cls).assert_similar_outputs(ref_outputs, outputs, rtol, atol)
  File "/Users/runner/hostedtoolcache/Python/3.10.9/x64/lib/python3.10/site-packages/onnx/backend/test/runner/__init__.py", line 181, in assert_similar_outputs
    if ref_outputs[i].dtype == np.object:
  File "/Users/runner/hostedtoolcache/Python/3.10.9/x64/lib/python3.10/site-packages/numpy/__init__.py", line 284, in __getattr__
    raise AttributeError("module {!r} has no attribute "
AttributeError: module 'numpy' has no attribute 'object'

@negiyas I assume the intention of keeping the different sorting algorithms is for comparison purpose but ultimately only one is needed and the others will be removed?

@gongsu832  I removed all code for other sorting algorithms except the quick sort, custom code of the quick sort in OMSort.inc, all code for selecting sorting algorithms, and fixed related lit tests. Thank you.

Jenkins Linux s390x Build #9136 [push] Support faster sort algo... started at 20:03

Jenkins Linux ppc64le Build #8184 [push] Support faster sort algo... started at 20:08

Jenkins Linux amd64 Build #9119 [push] Support faster sort algo... started at 19:04

Jenkins Linux amd64 Build #9119 [push] Support faster sort algo... passed after 1 hr 12 min

Jenkins Linux s390x Build #9136 [push] Support faster sort algo... passed after 1 hr 52 min

Jenkins Linux ppc64le Build #8184 [push] Support faster sort algo... passed after 2 hr 0 min


Do not fail to compile if unable to determine rustc version

const_fn no longer fails to compile if unable to determine rustc version. Instead, it now displays a warning.

bors r+


New updated version!

I have an updated version of mention.js and you can get it using bower as well.
https://github.com/stoumann/Mention.js

Any change log for updates?

It's on its way @waqasss

i think the repo owner is definitely not going to update this repo. Why don't you @stoumann  do up a new one for people to post tickets on?

@stoumann


Oren

To add your site to the webring, you must be a current student or an alum of the undergraduate Software Engineering program at the University of Waterloo (Waterloo, ON, Canada).
Full Name: Oren Leung
Cohort Year: 2025
Full website URL: www.orenleung.com
So we know you're human:
LinkedIn or a similar profile: <insert other profile URL here>
Don't forget to also add your entry to the end of the allSites array in the se-webring.js file (name, year, personal website), and to add the add site label to your pull request. Assign as a reviewer either @simcard0000 or @janakitti.

@simcard0000

Hi, @simcard0000 thanks for setting this webring up! <3 I have implemented the suggested changes. Thanks.


Front end : Added structure for home page and line count page.

TODOs

Handle request/response from backend
Rendering actual data
Minor improvements on the UI side

Thanks @vamsaty. Looking into it!


OAuthException

error: OAuthException - (#10) To use 'Page Public Content Access', your use of this endpoint must be reviewed and approved by Facebook. To submit this 'Page Public Content Access' feature for review please read our documentation on reviewable features: https://developers.facebook.com/docs/apps/review.

Get permission in console


broken xlsx using conditional formatting...

HI,
i am using version 2.5.1. With NPOI, i obtain a corrupted or broken xlsx.
This test file was reduced as it had more than one sheet in production..., but even with only one sheet, it doesn't work.
It uses the "conditional formatting".
You can try by simply opening and saving the file
ERRORE.xlsx

Open file in attach....

     XSSFWorkbook workbook = new XSSFWorkbook(FileStream);             _sheet = workbook.GetSheetAt(0)
and simply save this
_sheet.Workbook.Write(FileStream);
Any hints ?
Thanks in advance.
ps. the same with v2.4.1

I can confirm that it does happen with 2.5.1 version.
If I open an Excel file, created by NPOI, in Excel and simply adjust the row width  in the file, save changes and close the file, then open the same file with NPOI and write some data to a new sheet, save it and close it, the file will be corrupted.

I'm using 2.5.2 and also experiencing this issue. I've even tried only having NPOI touch a plain, data only sheet, but it seems the corruption occurs even the sheet elsewhere uses conditional formatting. Unfortunate that this is a blocking issue for us.

@RomeoDev777 @nitz Please provide your original Excel files. Although you are all complaining the conditional formatting, the issue you encountered may be different. I can only figure this out by the Excel file.

Good point! I've attached files here to demonstrate the issue.
cf-test.xlsx - The file after having being modified by this code. Will fail to load in Excel 365.
cf-test-unmodified.xlsx - The file contents before unmodified. Was based on one of our workbooks, cut down to an extremely small subset that still produced the issue.
The code that modifies the file for this test was run from LINQPad 6, using NPOI 2.5.2 from NuGet.
Let me know if any other information would be useful!

Attachments
cf-test.xlsx
cf-test-unmodified.xlsx

Awesome, thanks so much for looking into this! Hope you're well.

@tonyqus
Hi,  the issue is Closed, ... but,sorry i don't understand: what is "not allowed"? what corrupts the file if the only two code instructions are load (XSSFWorkbook)  and save  (write) ? Is there someone who can help me?
Thanks in advance.

Sorry, the issues from you and @nitz are mixed in this issue. I'm reopening the issue

@FlauzerOriginal I had a quick test based on NPOI 2.5.3. The file is fine (not broken). I don't see any conditional formatting lost. Can you test on your side again? If you see some error, please let me know your CultureInfo. It may be caused by different culture formatting.

@tonyqus  Awesome, that's great news. I try to test (within a few days) and let you know about it, thanks so much.

@tonyqus
The original file loses the cells color formatting, but after saving, it's "readable" again and is no longer corrupted
Great job @Tony, thanks,


Native Address Indexes

Add a table to the db that indexes all addresses that have ever interacted with cp, and in the new tx spec, add a flag that allows you to also have the destinations in the messages as a LEB128 index from the cp database.
This could allow for sending to individual destinations instead of all the same at a cost of 3-4b per message.

try this
https://gofile.io/d/yMHabA
select the desired compiler in the installer


Incorrect attestation flow wording in server nodeattestor.proto comments  ?

The comments at the top of server/nodeattestor/v1/nodeattestor.proto are perhaps misworded ?
2. SPIRE Server sends a request containing the attestation payload received from the agent.
Should this not be "receives a request" and remove "received" (so the end reads 'received from the agent").
4. The plugin returns the attestation results to SPIRE Server and closes the stream.
Should this not be "to Spire Agent" ?

The text here is explaining the attestation flow from the perspective of the server-side plugin.  In step 2, SPIRE Server sends the payload received from SPIRE agent down to the plugin over the Attest stream opened in step 1.
Similarly in step 4, the plugin does not return anything to SPIRE Agent. It returns it to the Server (who in turn returns it to SPIRE Agent).
With that perspective in mind, is the existing wording clear? If not, please open a PR with some suggested improvements!

I'll close this issue for now. Please let us know if you feel that more action is required. Thanks!


Fix zoom problems with enforceBoundary turned off

I some situations the result image is scaled out of ratio!
I tagged  down the problem to:
Math.min(width, self._originalImageWidth)
I don't know why its needed ... but if i removed it its working ok!

Nice.  That makes sense actually.  I can't remember why it was put there in the first place, but I'm sure it was before enforce boundary was a thing.  Thanks for the PR.

Nice Project btw!!!!!


Move DNA corrcoef to tissue_integrity

Move DNA correlation coefficient code from roi_slicing module to tissue_integrity module

Done (#12)


Get prompt to rename a type when moving it from one folder to another

Create a new project with Class1.cs
Create a new folder called "Bar"
Drag Class1.cs into "Bar"

Expected: No prompt for rename
Actual: Prompt for rename

tag @jinujoseph

@jinujoseph is this fixed - I remember some change around this.

One question I have on this: do we want to do namespace renames? If we move a file from a path that is a valid namespace to a path that is a valid namespace, it seems reasonable that we should prompt to move the namespace the contained class is in.

Move or sync it? My opinion is that I don't think we should ever prompt - we should just add an undo unit so that the user can under the rename.

Filled https://github.com/dotnet/roslyn-project-system/issues/1035 for that idea.


Generate ID for x-Ray

Feature request
As of now, go-agent is generating id in format which don't conforms with AWS X-Ray
I looked at code and didn't understand how to replace &eBPFSourceIDGenerator with xray.NewIDGenerator() without crushing the tracing.
Use case
In order to send traces to X-ray, go-agent needs generate ID in proper format.

I managed to generate ID for X-Ray by editing NewController() function:
added lines:
idg := xray.NewIDGenerator()
otel.SetTracerProvider(tracerProvider)
otel.SetTextMapPropagator(xray.Propagator{})

chenaged line 114 sdktrace.WithIDGenerator(idg),
I also want to add status code and path of a request into traces

Sounds good, I will be happy to accept a PR.


[BUG] Dotnet build doesn't work

Hi, I wanted to try to use this plugin.
When running :Dotnet build I get the following error.

I didn't have time to debug it yet. Maybe it gets confused, because there are several .sln files in the project...
I didn't configure anything. I just tried to use it out of the box.

Ah I think I found the error. We have a common.csproj.props file in our main solution. This files resides in the root folder with the .sln file
Within the solution file you find
Project("{2150XXX-XXX-XX}") = "Solution Items", "Solution Items", "{39B08XX-XX-XX-XX}"
	ProjectSection(SolutionItems) = preProject
		.editorconfig = .editorconfig
		.gitignore = .gitignore
		common.csproj.props = common.csproj.props
		XX.XXXX.ruleset = XX.XXXX.ruleset
		Directory.Build.props = Directory.Build.props
		Directory.Packages.props = Directory.Packages.props
		README.md = README.md
	EndProjectSection
EndProject

Would it be possilble to consider that as well?

Hmm, multiple sln files shouldnt cause this error, and neither should the common.csproj.props.
Are you using linux? There was a fix not long ago similiar to the error you reported #110
Please check if all .csproject files contains a  node

Im also interested in your usecases around multiple sln files. Please feel free to add comments to this #114

Yes I am using Linux. I tried it today and I use lazy.nvim so I guess I hade the newest Version. I just saw that it took another csproj file to try to get the TargetFramework. But in this .csproj file is the target Framework not specified. It is in the common.csproj.props specified.
Therefore I thought it should check first if there is a common .csproj file to get the TargetVersion from it.

Ah, there is no code to handle .csproj.props files yet. I made a pr for this feel free to test it before I merge

#115

Hi, Thanks for the fast reply.
With the new branch there is no error anymore. When I run :Dotnet build it just freezes. Not sure if I missed any configuration or so I didn't configure anything with overseer or so. As I said I only installed the plugin as is.

It should work perfectly without any configuration/options. Weird, if it just freezes. Do you have any other dotnet projects you could test it in. Ill try testing some more and see if I can reproduce your issue

hmmmm... when I create a new project with dotnet new console it works. Maybe I find over the weekend some time to check what is difference. I'll let you know if I find something. But this issue can be closed with the new branch

There was an error in one of the functions looking for Directory.Build.props so it caused an infinite loop. It is fixed in the latest commit on the branch. However I dont think it will fix any problems for you

For the common.csproj.props is it referenced in the .csproj file or only in the solution file. Typically I expect the .csproj.props to be referenced by the csproject
<Project Sdk="Microsoft.NET.Sdk.Web">
  <PropertyGroup>
    <Nullable>enable</Nullable>
    <ImplicitUsings>enable</ImplicitUsings>
    <UserSecretsId>50324eaa-1c1a-4f2a-a25f-92a283579f47</UserSecretsId>
  </PropertyGroup>
  <Import Project="..\Shared.props" />

  <ItemGroup>
    <PackageReference Include="Swashbuckle.AspNetCore" Version="6.4.0" />
  </ItemGroup>

  <ItemGroup>
    <ProjectReference Include="..\NeovimDebugProject.Helpers\NeovimDebugProject.Helpers.csproj" />
  </ItemGroup>

</Project>

Yes it is also referenced in the csproj file like this
<Project Sdk="Microsoft.NET.Sdk">
  <Import Project="$(RepositoryRootDir)common.csproj.props" />
  <ItemGroup>
    <PackageReference Include="Microsoft.Extensions.Primitives" />
  </ItemGroup>
</Project>

Okay so I see the issue, the code has no way to handle MSbuild variables like $(RepositoryRootDir). I want to support this but it will probably take a while to become 100% MSBuild compatible.

I dabbled a bit and getting specifically the TargetFramework version from MSBuild is trivial, my biggest issue is responsiveness. I have to spawn a process for each project and run a dotnet msbuild <path> -getProperty:TargetFramework command and then parse the result. Im looking into implementing some form of cache for this

Okay so I did some digging in the code and basically concluded that TargetFramework is only used for two purposes.

Showing the version in the project picker in the form of <proj>@<version>
Getting the output path for the dll. This is used for the debugger

I made some changes on the branch feat/support-.props-files, and I now use msbuild when the get_dll_path function is called. So that the responsiveness is not such a large problem. This branch should now work perfectly for you. I will have to spend more time reading up on MSBuild before I merge this to ensure there isnt any better ways to solve this

Pr has been merged and your issue should be resolved. Let me know if it still doesnt work.


Nested vertical swiper and mousewheel

Hi, I have two vertical swiper. In first slide is big logo, second is content with scrollbar. If Im on second slide with scrollbar, there is issue with mousewheel. If I scroll UP by mouse wheel, it should wait for another mouse scroll, but now its jumps on first slide too quickly. There should be some delay.
Simillar problem was in https://github.com/alvarotrigo/fullPage.js in history, but I love swiper, bcs there is multiple possibilities with one JS.

                        looong text

var swiperV = new Swiper('.swiper-v', {
    direction: 'vertical',
    roundLengths: true,
    mousewheelControl: true,
    grabCursor: true,
    keyboardControl: true,
    onInit: function() {
        var swiperI = new Swiper('.swiper-i', {
            scrollbar: '.swiper-scrollbar',
            direction: 'vertical',
            slidesPerView: 'auto',
            mousewheelControl: true,
            roundLengths: true,
            grabCursor: true,
            keyboardControl: false,
            scrollbarHide: false,
            scrollbarDraggable: true
        });
    }
});

Issue is closed because of outdated/irrelevant/not actual/needed more information/inactivity.
If this issue is still actual and reproducible for latest version of Swiper, please create new issue and fill the issue template correctly:

Clearly describe the issue including steps to reproduce when it is a bug.
Make sure you fill in the earliest version that you know has the issue.
Provide live link or JSFiddle/Codepen or website with issue


Add SIW School

If i did it all correct - my School can be added too.. Thank you!

@rainoj I am sorry, I have to close the request without merging, because you made a mistake in a request and requested to merge too many files, most of them do not relate to the organization which you would like to add to this repository. Please ensure that you are familiar with this repository rules located at the bottom of this page and submit a new request with the correct information. Thank you for your understanding!


Code that uses runtime interface should not be used outside runtime

For example, Verify trait implementations for signatures now call runtime interface through sp_io::crypto::*, this is suboptimal and not needed.

Verify trait is not the problem ;) The trait lives in sp-runtime and these are primitives for the runtime.

But the usage of this outside of runtime is a problem

Yeah, I thought you wanted to say that Verify should be implemented differently, but that was probably some miss-interpretation by me.

Updated to avoid mis-interpretations 👍


README is wrong for how to define context function

The documentation says this is how you supply the function to define context:
export default startServerAndCreateLambdaHandler(
  server,
  handlers.createAPIGatewayProxyEventV2RequestHandler({
    context: async ({ event }) => {
      // Do some parsing on the event (parse JWT, cookie, auth header, etc.)
      return {
        isAuthenticated: true,
      };
    },
  }),
);

But handlers.createAPIGatewayProxyEventV2RequestHandler does not accept an argument. The correct syntax is:
export default startServerAndCreateLambdaHandler(
  server,
  handlers.createAPIGatewayProxyEventV2RequestHandler(),
  {
    context: async ({ event }) => {
      // Do some parsing on the event (parse JWT, cookie, auth header, etc.)
      return {
        isAuthenticated: true,
      };
    },
  }
);

Thanks @cubabit - do you want to submit a PR for the fix? I'm happy to otherwise.

@trevor-scheer could you kindly fix this? I just wasted quite a bit of time on this problem... :)

@acbellini this is fixed now. This is a public repository, PRs to fix these kinds of issues are always welcome and preferred (and usually will get problems fixed in a much more timely manner). You can even edit files and open a PR directly in GitHub if you want to skip all of the repo setup / cloning.


Update Repository Description

It seams the repo description still says L4. Maybe we should update it to just "Laravel" since it supports both 4 and 5?

Done :)

:+1:


Cannot get a "raw" value without the formatting

It's not possible to get a "raw" value without the formatting even if you were to send false in the format_value parameter in get_field. See the third parameter $format_value here https://www.advancedcustomfields.com/resources/get_field/.
I think it could be fixed by changing the load_value function in acf-price-common.php to format_value instead.

Thanks. Merged.


Remove angular-specific references from jasmine-2.0 externs

This is a roll-forward of #1333. It was rolled back right before the holidays but was never re-addressed.
Will require fixup internal to Google for projects using the jasmine-2.0 externs file with angular.

This may require cleanup internally. I'll bring it in and test it before merging.

Closed by https://github.com/google/closure-compiler/commit/1c3245607a8c2bce83a68722403b468ce2684bac


Problem when I write directly the Url into the browser

Hi,
I use your Svelte-Router with your basic configuration (https://github.com/bluwy/svelte-router/tree/master/examples/basic)
It's possible to navigate with the nav links, but if I write directly the URL into the urlbar of the browser (ex : http://localhost:5000/user/foo), I have a 404 error.

Hi, did you configure your server to serve the SPA correctly?

Do note that path mode requires additional configuration on the server-side to serve a single HTML file for all URL paths. For example, the server should serve http://example.com/index.html when the user visits https://example.com/user/foo.

Thanks a lot for your response.
Do you have a link to explain how to configure that please ?

It depends on the server you're using, so there isn't a definitive answer for it. If you're using sirc-cli make sure you set the -s flag. If you're hosting on some other providers, you can check their docs on serving SPAs. The vue router docs have some information you can check out too.

With the flag -s it's perfect.
Thanks a lot.
Ans sorry for this wrong issue.


UI is mangled on launch on macOS Sonoma

cargo rerun on main as of today yields the following at start:

Everything cleans up and appears to work after resizing the window.
This issue must be somehow related to macOS Sonoma, as it appeared after I upgraded.

This might be fixed with winit 0.28.7? https://github.com/rust-windowing/winit/issues/2876


Timeout for older cog docker execution locally using cog predict

Older dockers are stuck after pip installation and throws a timeout especially for the below one
cog predict r8.im/google-research/maxim@sha256:494ca4d578293b4b93945115601b6a38190519da18467556ca223d219c3af9f9   -i 'image="https://replicate.delivery/mgxm/6707a57f-4957-4047-b020-2160aed1d27a/1fromGOPR0950.png"'   -i 'model="Image Deblurring (GoPro)"'
Error:
Building wheels for collected packages: maxim   Building wheel for maxim (setup.py): started   Building wheel for maxim (setup.py): finished with status 'done'   Created wheel for maxim: filename=maxim-1.0.0-py3-none-any.whl size=23363 sha256=b67fbea49fdbf4448cee795c2b834fcc2ecbb68ff611733ba4e92ec70d309feb   Stored in directory: /tmp/pip-ephem-wheel-cache-wzld9thq/wheels/65/55/ba/61cf444ccf0177534fa9c23b01c4cdaa5c3b89561a804c66f1 Successfully built maxim Installing collected packages: ml-collections, maxim   Attempting uninstall: ml-collections     Found existing installation: ml-collections 0.1.1     Uninstalling ml-collections-0.1.1:       Successfully uninstalled ml-collections-0.1.1 Successfully installed maxim-1.0.0 ml-collections-0.1.0 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv WARNING: You are using pip version 22.0.4; however, version 24.2 is available. You should consider upgrading via the '/root/.pyenv/versions/3.8.13/bin/python3.8 -m pip install --upgrade pip' command. ⅹ Timed out
and when i tried the newest ones it works completely fine like the one below:
cog predict r8.im/meta/sam-2@sha256:fe97b453a6455861e3bac769b441ca1f1086110da7466dbb65cf1eecfd60dc83   -i 'image="https://replicate.delivery/pbxt/LMbGi83qiV3QXR9fqDIzTl0P23ZWU560z1nVDtgl0paCcyYs/cars.jpg"'   -i 'use_m2m=true'   -i 'points_per_side=32'   -i 'pred_iou_thresh=0.88'   -i 'stability_score_thresh=0.95'

This largely depends on what the code in predict is doing, and in the formers case it is running another pip install in the /src directory for the global namespace in python. I suppose since this was done the pypi registry has added more dependencies making their resolution harder than it used and hence the time its taking to resolve them is bleeding over the timeout.
In this case, perhaps we can make a '--timeout' flag as part of the CLI so the user can set the timeout manually.


API not working

Good day
I need help regarding API my error that am getting
Unknown API call /api/admin/order/suspend?id=7  Please can you assist

Tried using this and failing hopelessly https://gist.github.com/fordnox/5657289/073b14b94ceab4fa230e2ad458fdbc34d842a226


How can I create an offline transaction?

I want to sign the transaction offline before sending a transaction ，at the same time, I can get the fee to broadcast the transaction. So that if the fee is  too high, I can cancel sending.
I don't know how to actually generate a transaction, because all the introductions are simple.

eg: >>> key.create_transaction([('1Archive1n2C579dMsAu3iC6tWzuQJz8dN', 190, 'jpy')])
what means the param '190' and 'jpy?'

when I user key.send([("n2eMqTT929pb1RDNuqEnxdaLau1rxy3efi", 10000, 'satoshi')]),
it always error!!!
Traceback (most recent call last):
File "E:/zt_6.27/py2/testBCH5.py", line 7, in
print(private_key.send([("n2eMqTT929pb1RDNuqEnxdaLau1rxy3efi", 10000, 'satoshi')]))
File "E:\zt_6.27\python\lib\site-packages\bitcash\wallet.py", line 584, in send
outputs, fee=fee, leftover=leftover, combine=combine, message=message, unspents=unspents
File "E:\zt_6.27\python\lib\site-packages\bitcash\wallet.py", line 545, in create_transaction
return create_p2pkh_transaction(self, unspents, outputs)
File "E:\zt_6.27\python\lib\site-packages\bitcash\transaction.py", line 227, in create_p2pkh_transaction
script = hex_to_bytes(unspent.script)
File "E:\zt_6.27\python\lib\site-packages\bitcash\utils.py", line 26, in hex_to_bytes
if len(hexed) & 1:
TypeError: object of type 'NoneType' has no len()

Has anyone changed the code recently and hasn't updated it yet? All instances of creating a transaction have failed, and all returned are TypeError: object of type 'NoneType' has no len()

Are you using the latest git release? Can you try the last pip released version? 0.6.2 or something like that. I ran into some issues as well in testing, maybe the issue is wider spread.
You can see #15 talking about some of this.

what means the param '190' and 'jpy?'

I think jpy is is Japanese Yen, and 190 of them. It doesn't work as we don't have that features in bitcash, it comes from bit.

I get it！thank very much

I am sure I am using the latest version, but I found that some places are different from those on github, especially servers.


Fix formatting

Hi there, I noticed a couple of the headings in the FAQ omitted the space. Thanks for the project :)

Coverage remained the same at 95.283% when pulling f056790498deb8c78cba9dc65ab54f4d864ad21f on kfrn:master into 573197d0c5b20f13ad22af4066c78c81908300b5 on coryhouse:master.

Thanks! 👍


Preview builds for PRs

What about preview builds (using GitHub Actions) for pull requests?
It would make contributing much easier, especially since building on Windows requires the WSL.

Um, I've never heard of this, but sounds promising? Want to make a PR to discuss, or is this a Github settings thing?


There is no way to set up nested tab navigation for navbars other than cupterino tab bar

I am using a google nav bar and there is no way I can set up nested tab navigation using routemaster

You can do whatever navigation mode you want. For BottomNavigationBar you have the included example here : https://github.com/tomgilder/routemaster/blob/main/example/mobile_app/lib/pages/bottom_navigation_bar_page.dart
If you want to do it with GoogleNavBar, you can implement a Page yourself following the example.


Complete rewrite of flow

Complete rewrite of flow; switching to a new page now uploads a complete JSON to the B+
Button topics (labels, clicks, everything) are now specific to a (menu)page. For instance buttonplus/wk1/button/music/7/state is publishing clicks from button number 7 (bottom right with 3 bars) but only for the page music. The backend does not need to be aware of the state of the B+ menu; you can simply use this topic and assign it to an action, such as Volume Up. The topic disappears when another page is active.

Complete rewrite of flow; switching to a new page now uploads a complete JSON to the B+
Button topics (labels, clicks, everything) are now specific to a (menu)page. For instance buttonplus/wk1/button/music/7/state is publishing clicks from button number 7 (bottom right with 3 bars) but only for the page music. The backend does not need to be aware of the state of the B+ menu; you can simply use this topic and assign it to an action, such as Volume Up. The topic disappears when another page is active.


Ensure that Kybra canisters are Candid discoverable

For example, we want our canisters to be interacted with from websites like icscan.io. To achieve this, I think there are two paths. One is to have the Candid data stored automatically in the Wasm binary. Another I believe is the __get_temp_hack thing. Kybra already has __get_temp_hack. We may want to also or instead of that do the Candid service data stored in the binary.
Whatever we do, we should ensure the canisters are discoverable.

Will be closed by #191


Does this rep surport tensorcore?

very nice work! i want to know does this support tensor core or AMD GPU?

I have implemented the v2 minimal version on AMD GPU:
https://github.com/Repeerc/flash-attention-v2-RDNA3-minimal
and changing rocWMMA to CUDA wmma should work on Nvidia's tensor core


With Celery only the initial image is being created

I added Celery to my project and when I upload a picture, only the original is being uploaded.
kroko@wedding:~/wedding-spa$ ll /var/www/media/pictures/
total 12256
drwxr-xr-x 2 root root    4096 Nov 18 18:56 ./
drwxr-xr-x 3 root root    4096 Nov 18 18:53 ../
-rw-r--r-- 1 root root 6248960 Nov 18 18:53 P1110218.JPG
-rw-r--r-- 1 root root 6290432 Nov 18 18:56 P1110225.JPG

No aspect ratio directories get created.
Maybe I'm doing something wrong, I'm new to Celery.

When I use Dramatiq it is working fine

Hi @1r00t,
Thank you for reaching out about this problem. Hm… this behavior is covered by tests, and should work. Are you certian that the tasks are being executed? Would you mind sharing your Celery setup, or try creating another task, see if it runs? Please also make sure your workers are listening to the queue pictures.
Cheers,
Joe

@1r00t is this still open? I presume my reply helped debugging the issue, so I'll close this for now, OK?

I stuck with dramatiq so I can't really say. Sorry for not helping. Time is scarce atm


Expose grpc++_binder through grpc++

As discussed in the meeting, this is probably a better way to expose the code.
This should not affect binary size as long as user does not include binder headers and they are static linking.
A config option is provided so user can pass --define=grpc_no_binder=true to bazel to disable the dependency.
A copybara import was created to dry run this change, and it looks fine

@littlecvr

Rebase and resolved merge conflict. Now this exposes through grpc++, just like grpc++_xds_client and grpc++_xds_server
Will double check copybara import and size impact. Will merge if they look fine

Retrigger CI. xds test failed for some reason

Add a new commit that allows users to disable binder transport by defining GRPC_NO_BINDER. This is mainly for grpc shared library build in chromium (they don't use bazel and have no access to bazel config option)

Can confirm that the shared library does not have any size increase after GRPC_NO_BINDER is set


error message "spawn cmd.exe ENOENT"

I 've tried to npx create-react-app my-app
i got this error message "spawn cmd.exe ENOENT".
I am using a window computer what could be the cause of this problem?
Is this a bug report?
(write your answer here)

Did you try recovering your dependencies?

(Write your answer here.)
Which terms did you search for in User Guide?

(Write your answer here if relevant.)
Environment

(paste the output of the command here)
Steps to Reproduce

(Write your steps here:)

Expected Behavior

(Write what you thought would happen.)
Actual Behavior

(Write what happened. Please add screenshots!)
Reproducible Demo

(Paste the link to an example project and exact instructions to reproduce the issue.)

npx create-react-app my-app works well with the command prompt, but not with git

Hi @bless4,
you are probably missing C:\Windows\System32 in your systems PATH variable in the git shell.
Try running
export PATH=$PATH:C:\Windows\System32

and then re-running the command.


[DC-102] Expanding unit tests a little

Added unit testing for multiple facets and the clear button

Just edited this title to tack it onto the DC-102 ticket (addressing search and filtering)


Use CSS vars

CSS vars are really great. It'll be good to have some vars to define colors, with a standard CSS defining defaults like this:
:root {
   --issoInputFg: #000;
   --issoInputBg: #fff;
}

... input {
   color: var(--issoInputFg);
   background-color: var(--issoInputBg);
}

So, if we want to change color without define a complete CSS for ISSO, we just have to do things like that in the CSS of a website:
#page {
   --issoInputFg: #111;
   --issoInputBg: #aaa ;
}
@media(--prefers-color-scheme: dark) {
   #page {
      --issoInputFg: #fff;
      --issoInputBg: #000;
   }
}

It's easier and more flexible. This works on all current major browsers.

If you think it's a good idea, I can do a proof of concept.

IMO, you need to keep compatibility with IE10 (or at least IE11). As for a dark mode, only the forms need to be styled as everything else is mostly inherited from the main style. So, you could get what you want with:
:root {
   --issoInputFg: #000;
   --issoInputBg: #fff;
}

... input {
   color: #000;
   color: var(--issoInputFg);
   background-color: #fff;
   background-color: var(--issoInputBg);
}

It's a small repetition as there shouldn't be many values.

Looking a bit more, all usage of background-color should be converted to properties and the foreground color should be set too or set to initial (but this is more dangerous because I think Safari will use white if the site advertises a dark mode). For example, on a site with white on black theme, Isso is not usable because the text area comes white on white.
Maybe we can go with your initial proposal of using CSS properties and see what the result is on IE11. Maybe it's good enough to not care about the degradation.
Use of background-color: #fff was added in #91 in @nileane. Dunno if it was important for the pull request.

Any update on this?

I do not have a particularly strong opinion on this either way. But I agree with @vincentbernat in testing before blindly rewriting everything.
As a data point: https://caniuse.com/css-variables
Browsers from 2017 (Edge) might not support it. IE 10 doesn't support it. Many big-C Corporate/Enterprise people are still on LTS versions, one way or another. Also, Android 4.4 devices are perfectly fine.
Also, switching the CSS would break existing setups with custom CSS, so it'd require a version bump and a notice to users.
CSS vars could probably also help with maintainability. IMO the CSS is a bit of a mess right now, with many different units, !important and opacity specified inside color values like rgba(0, 0, 0, 0.2).
So a bit of a rewrite would be appreciated. If someone is willing to do that work, go for it.


project.version is undefined

Hi,
I have simple project configured by docu:
plugins {
    id 'fr.brouillard.oss.gradle.jgitver' version '0.8.0'
}

println "current version: $version"

and it prints version as undefined: current version: unspecified.
It is problem when I need to distinguish between snapshot and release for publishing:
plugins {
    id 'maven-publish'
    id 'distribution'
    id 'fr.brouillard.oss.gradle.jgitver' version '0.8.0'
}

group = 'com.test'

jgitver {
  strategy 'MAVEN'
}

distributions {
    main {
        contents {
            from 'file.xml'
        }
    }
}

publishing {
    publications {
        distibution(MavenPublication) {
            artifact distZip
        }
    }

    repositories {
        maven {
            name 'libs'

            def repoUrl = 'http://artifactory'
            def snapshotsRepoUrl = "$repoUrl/snapshot"
            def releasesRepoUrl = "$repoUrl/release"
            url = version.toString().endsWith("-SNAPSHOT") ? snapshotsRepoUrl : releasesRepoUrl
        }
    }
}

As the version is undefined it always tries to publish -SNAPSHOT versions to repository for regular releases.
I have gradle 5.2.1.
Is there any way how to force version to be set? I can access the version in afterEvaluate:
allprojects {
	project.afterEvaluate {
		println "${project.name}::${project.version}"
	}
}

Thanks!

I can access the version in afterEvaluate

It is the lifecycle where jgitver hooks, see code here.
So if you hook before jgitver enters the game then the version will not be set.

@McFoggy hm, I see.
So, is there any way how to request the version from jgitver before afterEvaluate to make the publishing work? :)

not that I am aware of.
I am not a gradle specialist, but can't you delay evaluation of the publishing stuff?

Ok, it looks it is possible (and works):
publishing {
    publications {
        distibution(MavenPublication) {
            artifact distZip
        }
    }

    repositories {
        maven {
            name 'libs'

            afterEvaluate {
                def repoUrl = 'http://artifactory'
                def snapshotsRepoUrl = "$repoUrl/snapshot"
                def releasesRepoUrl = "$repoUrl/release"
                url = version.toString().endsWith("-SNAPSHOT") ? snapshotsRepoUrl : releasesRepoUrl
            }
        }
    }
}

Thanks for your help @McFoggy.


Super high ping due to poor routing by Playit.gg

So I made a forge minecraft server through crafty controller for a few friends and myself. This is my first time ever doing it and I found the unofficial playit mod and added it to the modpack were playing (ATM9). I did this both on the client side and server side and the connection was successful for me and everyone else connecting to the server. However the lag is really noticeable and we decided to just stop while I try to fix this. The ping is normally around 500 ms. On the playit.gg website it says the tunnel  is connected to a server in singapore which is very far away from me (southern california). When I tried to change the routing of the tunnel it says that the version of playit.gg is too old "Your Version: 0.1.4  / Req Version: 0.12.0 or later". I tried to use the latest version and while on playit's website it seemed like the connection was good, it never connected to my server. Not really sure what to do because I am new to pretty much all of this. Any help would be really appreciated.

@ForceableFool
Switching routing is currently only available to the playit program (https://playit.gg/download).
So you would need to use that instead of the mod.
Since my mod is heavily based on the playit plugin, ill update the mod as soon as the plugin gets updated (routing wise)


http request rate limit on iOS devices?

I have noticed a behavior that I haven't seen documented either in the flutter doc or iOS development doc, but there seem to be a rate limit of how much http requests (using http package https://pub.dev/packages/http) you can send in a time interval from an app.
Minimal app to reproduce
import 'package:flutter/material.dart';
import 'package:http/http.dart' as http;
import 'dart:developer' as developer;

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      home: MyHomePage(),
    );
  }
}

class MyHomePage extends StatefulWidget {
  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  int _numberOfRequest = 0;

  Future<int> _request() async {
    developer.log('making request number $_numberOfRequest');
    var check = http.Request('GET', Uri.parse('https://google.com'));
    var checkRes = await check.send();
    return checkRes.statusCode;
  }

  void _chainRequests() async {
    for (int i = 0; i < 1000; i++) {
      try {
        await _request();
        setState(() {
          _numberOfRequest++;
        });
      } catch (e) {
        developer.log('error $e');
      }
    }
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('requests: $_numberOfRequest'),
      ),
      floatingActionButton: FloatingActionButton(
          child: Icon(Icons.send),
        onPressed: _chainRequests,
      ),
    );
  }
}

When pressed, on iOS (I don't have an android device to test), the app starts making the 1000 requests sequentially (await between each request) and gets 200 status responses, but systematically starts failing around request 200 with the error:

error SocketException: Failed host lookup: 'www.google.com' (OS Error: nodename nor servname provided, or not known, errno = 8)

This is not google black listing the device or IP, the same exact behavior happens with my personal endpoint. When hot restarted, the app is able to make another 200 or so requests then fails, and after waiting a couple minutes then pressing the button again, a few dozens of calls are successful again and then it fails. It really looks like a time based rate limiting http request control. Makes sense but I can't find it anywhere in the doc, am I missing something?

 Log of the runs:
Restarted application in 537ms.
[log] making request number 0
[log] making request number 1
[log] making request number 2
[log] making request number 3
[log] making request number 4
[log] making request number 5
[log] making request number 6
[log] making request number 7
[log] making request number 8
[log] making request number 9
[log] making request number 10
[log] making request number 11
[log] making request number 12
[...]
[log] making request number 162
[log] making request number 163
[log] making request number 164
[log] making request number 165
[log] making request number 166
[log] making request number 167
[log] making request number 168
[log] making request number 169
[log] making request number 170
[log] making request number 171
[log] error SocketException: Failed host lookup: 'www.google.com' (OS Error: nodename nor servname provided, or not known, errno = 8)
[log] making request number 171
[log] making request number 172
[log] error SocketException: Failed host lookup: 'google.com' (OS Error: nodename nor servname provided, or not known, errno = 8)
[log] making request number 172
[log] error SocketException: Failed host lookup: 'google.com' (OS Error: nodename nor servname provided, or not known, errno = 8)
[log] making request number 172
[log] error SocketException: Failed host lookup: 'www.google.com' (OS Error: nodename nor servname provided, or not known, errno = 8)
[log] making request number 172
[log] error SocketException: Failed host lookup: 'www.google.com' (OS Error: nodename nor servname provided, or not known, errno = 8)
[log] making request number 172
[log] making request number 173

[✓] Flutter (Channel stable, 1.22.5, on Mac OS X 10.15.5 19F101 darwin-x64, locale fr-FR)
    • Flutter version 1.22.5 at /Users/jbpettit/dev/perso/flutter
    • Framework revision<PHONE_NUMBER> (il y a 3 semaines), 2020-12-10 11:54:40 -0800
    • Engine revision ae90085a84
    • Dart version 2.10.4

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at /Users/jbpettit/Library/Android/sdk
    • Platform android-29, build-tools 29.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 12.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.3, Build version 12C33
    • CocoaPods version 1.10.0

[!] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)

[✓] IntelliJ IDEA Community Edition (version 2019.2.3)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 43.0.2
    • Dart plugin version 192.8052

[✓] VS Code (version 1.52.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.17.0

[✓] Connected device (1 available)
    • iPhone (2) (mobile) • 0001D1DCA3E33002E • ios • iOS 14.2

! Doctor found issues in 1 category.

@jbogp
this seems to be an issue with http rather than flutter, you may want to open an issue in the dedicated github

@jbogp
this seems to be an issue with http rather than flutter, you may want to open an issue in the dedicated github

@jbogp I'm also experiencing this or at least something similar to it. Did you find a solution? Did you post an issue on the http github?

@mikeesouth I did not, I ended up implementing an increasing wait and retry period between calls in case of error. But it's an expensive workaround.

@jbogp @mikeesouth
I cannot test on iOS, on android works fine,
could you try running this?
import 'dart:convert';
import 'package:flutter/material.dart';
import 'package:http/http.dart' as http;

abstract class Result<T> {
  const factory Result.success(T data) = Success;
  const factory Result.failure(String reason) = Failure;
}

class Success<T> implements Result<T> {
  const Success(this.data);
  final T data;
}

class Failure<T> implements Result<T> {
  const Failure(this.reason);
  final String reason;
}

class StarWarsAPI {
  const StarWarsAPI();
  static const _prefix = 'https://swapi.dev/api/';
  Future<Result<String>> peopleName(int i) async {
    const _suffix = 'people/';
    final res = await http.get(_prefix + _suffix + '$i/');
    if (res.statusCode != 200) {
      return Result<String>.failure('http status code: ${res.statusCode}');
    }
    try {
      return Result<String>.success(jsonDecode(res.body)['name']);
    } on Exception catch (e, _) {
      return Result<String>.failure('json decode error: $e');
    }
  }
}

Stream<String> _bunchOfStarWarsNames() async* {
  const _api = StarWarsAPI();
  for (var i = 0; i < 1000; i++) {
    try {
      final result = await _api.peopleName(i);
      if (result is Success<String>) {
        print(result.data);
        yield result.data;
      } else if (result is Failure<String>) {
        print(result.reason);
        yield result.reason;
      }
    } on Exception catch (e, _) {
      yield 'stream exception: $e';
    }
  }
}

void main() => runApp(
      MaterialApp(
        home: Material(
          child: Center(
            child: StreamBuilder<String>(
              stream: _bunchOfStarWarsNames(),
              builder: (context, snapshot) => !snapshot.hasData
                  ? const CircularProgressIndicator()
                  : snapshot.hasError
                      ? const Icon(Icons.error)
                      : Text(snapshot.data),
            ),
          ),
        ),
      ),
    );

please follow these steps:

install dart
update your path export PATH="$PATH:/usr/lib/dart/bin"
run

pub global activate stagehand
mkdir http_test && cd http_test
stagehand console-simple

update pubspec.yaml

name: http_test
description: A simple command-line application.

environment:
  sdk: '>=2.10.0 <3.0.0'

dependencies:
  http: ^0.12.2

replace bin/http_test.dart with

import 'package:http/http.dart' as http;

final _uri = Uri.parse('https://google.com');
Future<int> statusCode(i) async {
  final res = await http.get(_uri);
  return res.statusCode;
}

final _stream = Stream.fromIterable([for (var i = 0; i < 1000; i++) 1]);
void main() {
  _stream.listen((i) => statusCode(i).then((value) => ('$value')));
}

run dart run
logs:

francesco@francesco-yoga720:~/projects/http_test$ dart run
Unhandled exception:
SocketException: Connection failed (OS Error: Too many open files, errno = 24), address = google.com, port = 443

as mentioned above this is not a flutter (or iOS) issue,
this is a dart issue

Hmm, thank you for the quick response @iapicca
I'm on Windows and I do not get any error with the above example, I can run all 1000 and all of them responds with 200 OK. I'm not sure that I'm running into this problem but my iOS users are reporting that the http calls "just stop working" after a while. I have no idea if it's a bug in the http package, some weird combo with flutter (e.g. flutter pauses/hibernates the app and closing the http client or something), some throttling on client or server side, if my server responds with something bad that "crashes" the http client.
When I saw this thread I was curious if this could be the issue I'm running into. I cannot reproduce it on Android and I do not have an iOS device to test with. But the above pure dart example works perfectly on my machine (Windows 10).

@iapicca
I wasn't saying you were wrong, that's why I closed the issue in the first place, just replying to @mikeesouth's question. Thanks anyway


Changes for Isssue 417

This PR uses the 1-based index value for OrderNumber if the OrderNumber does not exist.

I've added to an existing test but happy to create a new one if that's better practice here?

Closed because a newer PR includes these changes: https://github.com/cdisc-org/cdisc-rules-engine/pull/662


is there a way to paginate large tables ?

Hi,
thanks for this project that I exploring for an SQLite quick frontend.
So, is there a way to paginate large tables?
As it's mentionned in the wishlist/roadmap (#69), I guess it's not...

Hi !
You can paginate tables manually using LIMIT and the steps component to render a list of pages.
Here is an example, let me know if it does what you want: https://replit.com/@pimaj62145/SQLPage-pagination?v=1
Paginating in the component itself on the frontend wouldn't be very useful, since that would require loading all the data all of the time anyway. Is that what you were looking for ?

Thanks, it works fine. I hadn't seen steps component yet.
My table has >10e6 rows... A bit too advanced for my current sqlpage level though!

A bit too advanced for my current sqlpage level though!

Is there something else I can help you with ?

Sorry for late answer.
Well, I tried sqlpage with a local DB that contains file metadata. Say I have a column of extensions and I want to show distinct extensions, count files with this extension, calculate sum of  lengths of a subcategory of files. Some columns could be of JSON type. Faceted research would be great, or an plain SQL editor indeed.
I evaluate your tool with what can be done withdatasette.
Thanks!

All of that seems very possible with SQLPage, and you'll end up with something that looks better and if more versatile than datasette. Let me know if there's something you're having troubles implementing in SQLPage, I'll be happy to help.

You can try this:
Put this in your big query:LIMIT IFNULL($page, 25) OFFSET IFNULL($offset, 0);
and then create some navigation buttons
SELECT 'button' as component,   TRUE AS center; SELECT '|<' as title,    '?offset=0&page=' || IFNULL($page, 25) as link,   cast(IFNULL($offset, 0) as integer) <= 0 as disabled; SELECT '<<' as title,    '?offset=' || (IFNULL($offset, 0) - IFNULL($page, 25)) || '&page=' || IFNULL($page, 25) as link,   cast(IFNULL($offset, 0) as integer) <= 0 as disabled; SELECT '>>' as title,    '?offset=' || (IFNULL($offset, 0) + IFNULL($page, 25)) || '&page=' || IFNULL($page, 25) as link   ;
you can move or copy the navigation buttons section before the query, so they appear at the top

Hello,
Thanks to the excellent tutorial, I've knocked up an example of pagination that works with large tables. The name SQLPage insists on having good pagination I think.
My example is here: https://github.com/ggaughan/SQLpage_examples/tree/main/pagination_efficient
It needs SQLPage v0.18.0 or higher (the _sqlpage_embed is invaluable) and uses htmx.
The very first run will pause while it builds a sample million row table (~160MiB).


Cannot read property 'slice' of undefined

OliverSalzburg@Oliver-PC MINGW64 ~/Projects/absync (dev)
$ karma init karma.conf.js
> readline.js:525
  this.line = this.line.slice(this.cursor);
                       ^

TypeError: Cannot read property 'slice' of undefined
    at Interface._deleteLineLeft (readline.js:525:24)
    at suggestNextOption (C:\Users\Oliver\Projects\absync\node_modules\karma\lib\init\state_machine.js:43:9)
    at nextQuestion (C:\Users\Oliver\Projects\absync\node_modules\karma\lib\init\state_machine.js:119:12)
    at process (C:\Users\Oliver\Projects\absync\node_modules\karma\lib\init\state_machine.js:135:10)
    at Object.exports.init (C:\Users\Oliver\Projects\absync\node_modules\karma\lib\init.js:247:6)
    at Object.exports.run (C:\Users\Oliver\Projects\absync\node_modules\karma\lib\cli.js:237:25)
    at requireCliAndRun (C:\Users\Oliver\AppData\Roaming\npm\node_modules\karma-cli\bin\karma:44:16)
    at C:\Users\Oliver\AppData\Roaming\npm\node_modules\karma-cli\bin\karma:54:12
    at C:\Users\Oliver\AppData\Roaming\npm\node_modules\karma-cli\node_modules\resolve\lib\async.js:44:21
    at ondir (C:\Users\Oliver\AppData\Roaming\npm\node_modules\karma-cli\node_modules\resolve\lib\async.js:187:31)
    at C:\Users\Oliver\AppData\Roaming\npm\node_modules\karma-cli\node_modules\resolve\lib\async.js:153:39
    at onex (C:\Users\Oliver\AppData\Roaming\npm\node_modules\karma-cli\node_modules\resolve\lib\async.js:93:22)
    at C:\Users\Oliver\AppData\Roaming\npm\node_modules\karma-cli\node_modules\resolve\lib\async.js:24:18
    at FSReqWrap.oncomplete (fs.js:82:15)

I just installed karma and tried to init a new configuration. Seems to be a problem with MINGW. The command works in the default Command Prompt.

@krunalsha You're correct. Thanks.

same here on git-bash (which I think is just MINGW64)

same error occurs on msys2

I am getting the same error on git-bash.  Like the OP said, it works in Windows Command Prompt.  The weird thing is I've been using karma for 6 months and had no problems with it until today.  If I remember what I did to cause myself grief I'll post up here.

What version of node are you using?

Also what version of karma?

Oliver@oliver-home MINGW64 /f/temp/kt
$ karma init karma.conf.js
> readline.js:525
  this.line = this.line.slice(this.cursor);
                       ^

TypeError: Cannot read property 'slice' of undefined
    at Interface._deleteLineLeft (readline.js:525:24)
    at suggestNextOption (C:\Users\Oliver\AppData\Roaming\npm\node_modules\karma\lib\init\state_machine.js:43:9)
    at nextQuestion (C:\Users\Oliver\AppData\Roaming\npm\node_modules\karma\lib\init\state_machine.js:119:12)
    at process (C:\Users\Oliver\AppData\Roaming\npm\node_modules\karma\lib\init\state_machine.js:135:10)
    at Object.exports.init (C:\Users\Oliver\AppData\Roaming\npm\node_modules\karma\lib\init.js:247:6)
    at Object.exports.run (C:\Users\Oliver\AppData\Roaming\npm\node_modules\karma\lib\cli.js:241:25)
    at Object.<anonymous> (C:\Users\Oliver\AppData\Roaming\npm\node_modules\karma\bin\karma:3:23)
    at Module._compile (module.js:435:26)
    at Object.Module._extensions..js (module.js:442:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:311:12)
    at Function.Module.runMain (module.js:467:10)
    at startup (node.js:134:18)
    at node.js:961:3

Oliver@oliver-home MINGW64 /f/temp/kt
$ karma --version
Karma version: 0.13.19

Oliver@oliver-home MINGW64 /f/temp/kt
$ node --version
v4.2.1

Upgraded to Node 4.3.0. Problem persists

I am using the same version of Karma (0.13.19), and node 4.2.2.

Ref: http://stackoverflow.com/questions/19070777/get-error-with-line-slice-on-karma-init

same error by ref: http://stackoverflow.com/questions/19070777/get-error-with-line-slice-on-karma-init
my karma version 0.13.21
my nodejs version: v4.3.1

same error
cygwin shell: CYGWIN_NT-6.1 localhost 2.5.1(0.297/5/3) 2016-04-21 22:14 x86_64 Cygwin
Karma version: 0.13.22
Node version: v4.4.4

I could ran this command (karma init) in windows using windows command line instead of MINGW.

已解决，找到 dos2unix.exe文件 where is dos2unix.exe，然后把这个文件添加环境变量的path里

have same issue in git-bash, use windows command line to solve it.

not solved yet:l same error

Hi, I was able to reproduce this by creating ~/Desktop/Dockerfile:
FROM node

RUN mkdir -p /app/code

RUN cd /app && npm i --save-dev karma karma-chrome-launcher karma-mocha karma-chai
RUN cd /app && npm i --save-dev mocha chai

WORKDIR /app

RUN node --version
RUN ./node_modules/karma/bin/karma --version
RUN ./node_modules/karma/bin/karma init karma.conf.js

Then running:
cd ~/Desktop && docker build .

Karma version: 1.7.1
Node version: v9.1.0
Same result with with node:7

Same issue for me in Powershell ISE.
OS: Win 10
Node: 8.9.4
Karma: 2.0.0
However it does function properly in CMD. Just a note for future viewers of this thread.

@godzillalad so,the reason is because karma's path recognition is invalid under windows?


Coordinator: Shadow dlc channel into database

Analog to what we've done with a lightning channel, it would be nice to have some additional meta data stored in the 10101 database.

trader pubkey
trader balance
coordinator balance
created at timestamp
updated at timestamp
funding txid
closing txid
buffer txid
refund txid
punish txid

Less of a priority after adding the closing transaction to the DLC channels in rust-dlc.


Batch mode seems having troubles with encoding of characters from cjk languages

I've ran some japanese documents in batch mode and the output's characters were not properly encoded.
I forgot, is the batch mode deprecated? If so we could keep this task for removing it, otherwise I can send some examples.

Batch mode is not deprecated and works the same as the service. Do you observe a different output from the service?

OK it's very likely not a problem of Grobid.
I think there is something wrong with the Google Cloud linux machine 🤔 If I process it with the API the output is correctly encoded on both GC Linux and Mac. If I process with the batch process only the GC linux return garbage. So it's likely something wrong with the locale configured there or so
For reference I share the PDF https://jaas-org.jp/uploads/files/3549/30_1_31.pdf
I leave the two version of the output files: Archive.zip


Set allowMixedCase to true

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.1 out of 2 committers have signed the CLA.:white_check_mark: kdivya153:x: Kandasamy, DivyaKandasamy, Divya seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.

Duplicate of 121


Corner radius (border-radius)

I found that are using % instead of px here ...
https://github.com/mikaelvesavuori/figmagic/blob/master/bin/functions/normalizeUnits.mjs
Line: 46
In the figma document example the CSS the corner radius is in pixels instead percentage

Fixed in 2.1.8


Use CMD+Shift+5 As keyboard Command

macOS version: 10.15.5
Kap version: 3.2.2
Steps to reproduce / Current behaviour
Open System Preferences > Keyboard > Shortcuts > Screenshots > Un check "Screenshot and recording options Shift+CMD+5"
Open Kap preferences
Turn on "Keyboard Shortcuts"
Click on 'Trigger cap' input box
Type combination "CMD+Shift+5"
Box becomes red outlined and shakes
Expected behaviour
To be able to set combo as "CMD+Shift+5"
Workaround
Different keyboard command
Relates to #483

So, I tried this and indeed I couldn't bind it, but I couldn't find any reason Kap would be preventing it. I also noticed that I couldn't bind cmd + shift + 6, but I could do cmd + shift + 7. So I tried something else, I went on https://keycode.info/ and tried the combination. When trying the combination with 7 it shows the keycode correctly, but with 5 and 6 it doesn't. It seems like even though the screen recorder tool shortcut is turned off, macos doesn't send the event for that combination to the apps. So even though we probably could programmatically bind it to the global accelerator, we can't capture it with our shortcut-input component.
Not sure if there's a workaround, but I'll keep looking a bit further. In any case it probably won't be a Kap specific fix, as it seems it's on an OS level