AppVeyor PR builds can hang sporadically and then timeout/abort after only 3 hours

Not sure if this has happened before or is due to a new test, but there were recently 2 different AppVeyor PR builds that got stuck and then only aborted due to the 3 hour timeout.
I first saw it in this  PR build of PR 7013 and then also in this PR build of PR 7033
The log stops at different tests in those 2 runs, therefore not sure if it is a problem of a specific test or aftereffect of a certain test suite or an AppVeyor problem

I guess there was unhandled error in build process.

It happened again (in master) yesterday:
https://ci.appveyor.com/project/PowerShell/powershell/build/v6.1.0-preview.9751

The last two hangs I saw where in this code: https://github.com/PowerShell/PowerShell/blob/master/tools/appveyor.psm1#L551
I'm guessing that AppVeyor is hanging after we throw the error back to appveyor.
Finish is a really wierd place to be doing this type of stuff... building a package and testing it.  I would refactor this into a different bulid and test job if I had the time and see if it behaves better.

Maybe don't throw - write an error and exit -1?

This is fixed now


Compatibility with Ultimate Car Mod: Methanol in UCM machines stuck

According to the author of Ultimate Car Mod https://www.curseforge.com/minecraft/mc-mods/ultimate-car-mod/issues/72 NuclearCraft is conflicting with Methanol in UCM. Is there a way to fix this?

Not really no. This should be fixable on their side, but as their source code is not visible I can't see where the problem is. If they're trying to get a reference to the fluid by just pointing to their fluid's instance, then they need to instead get the correct one through referring to the fluid registry.


lnd: implement "safe mode" node stand up

This PR implements safe mode for lnd by disabling all RPC and automated force close requests, as described in the original issue here: https://github.com/lightningnetwork/lnd/issues/3287

[x] Add new --safemode config parameter to the lnd binary.

[x] If safe mode is enabled, reject all RPC level force close requests.

[x] If safe mode is enabled, reject all automated force close requests by channel arbitrators.

Thanks for the feedback @carlaKC @cfromknecht @halseth. I'm going to start updating the PR with your suggested changes.

Might want to add a unit test to test the new behavior

Friendly ping @mlerner


Add 'How to disable localised URLs?' guide

Q
A

Bug fix?
no

New feature?
no

BC breaks?
no

Deprecations?
no

Related tickets
-

License
MIT

Just adds 'How to disable localised URLs?' guide from #182 issue

Thanks!


useSprings DraggableList demo breaks with react-use-gesture v6+

CodeSandbox from the react-spring docs.
After toying around with the latest sandbox dependencies, I noticed that the DraggableList demo doesn't work anymore after the release of react-use-gesture v6.

But after stumbling across the demo from use-react-gesture, it appears to work with v7. https://codesandbox.io/s/fh8r8

@nnnoel yes we absolutely do need to have the same sandboxes in the react-spring ecosystem, I understand this is confusion-prone!


Add TLS/Auth via exporter-toolkit web-config

Hi, thanks for this awesome exporter!
In our environment we usually run TLS with auth and I noticed it was missing on this exporter but found that it wasn't too hard to add. With this patch I can now parse my existing web-config.yml file and it enables the use of TLS and auth nicely.
I'm nowhere near a golang dev, I built my test versions with go1.18.1 which seems lots newer since the last release.
The only issue I'm facing is no matter what version I build with it seems to want to print all debug information even when I specify --log.level=info or even --log.level=warn. Maybe it's something I'm doing wrong.
Cheers.

Hey @michaelpsomiadis!
Thanks for the kind words. I'll find some time to review this soon and keep you updated.
-Gabe

Looks good overall.
Yeah, I've been meaning to update all dependencies and do a new build against golang 1.18. Once we get this feature hammered out, I'll do that before cutting a new release.
I haven't run into the issue you describe with --log.level. Once I've updated everything to 1.18, I'll do some testing an see if I can reproduce the problem.

Ah, I'm actually able to reproduce the log level issue. I'll work on a fix tomorrow. 🍻

This has been released in version 1.4.0! Thanks for contributing! 🍻


Add text when stored measurements are matched.

Add another trigger key that displays text underneath/next to/on top of segments that match defined values. This would be useful when checking stems and such.

This could build on #34.


support Linked

Motivation
from https://www.sea-ql.org/SeaORM/docs/relation/custom-join-condition/#linked, we can have some source like
cake::Entity::find().find_also_linked(entity_linked:: CheeseCakeToFillingVendor).all(db).await?

so, we can get Vendor from Cake by  CheeseCakeToFillingVendor.
this issue maybe have some related to #72
Additional Information
Some of my thoughts:
Loader::load() not just do Entity::find().filter(fn) but also find_also_linked or find_linked

use crate::*;
#[derive(Clone, Debug, PartialEq, DeriveEntityModel, SimpleObject, Filter)]
#[sea_orm(table_name = "dependency")]
#[graphql(complex)]
#[graphql(name = "Dependency")]
pub struct Model {
#[sea_orm(primary_key)]
#[filter(use_alias = true)]
pub id: ObjectId,
#[filter(use_alias = true)]
pub parent_id: ObjectId,
#[filter(use_alias = true)]
pub succeed_id: ObjectId,
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation, RelationsCompact)]
pub enum Relation {
#[sea_orm(
belongs_to = "crate::issue::Entity",
from = "Column::ParentId",
to = "crate::issue::Column::Id"
)]
ParentIssue,
#[sea_orm(
belongs_to = "crate::issue_succeed::Entity",
from = "Column::SucceedId",
to = "crate::issue_succeed::Column::Id"
)]
DependencyIssue,
}
impl Relatedcrate::issue::Entity for Entity {
fn to() -> RelationDef {
Relation::ParentIssue.def()
}
}
impl Relatedcrate::issue_succeed::Entity for Entity {
fn to() -> RelationDef {
Relation::DependencyIssue.def()
}
}
impl ActiveModelBehavior for ActiveModel {}

This issue is related to https://github.com/SeaQL/seaography/issues/72

Thanks, I get it.
I would close it, and waiting other issue


godot_ios.xcodeproj cannot be parsed by Xcode 15.0.1 on macOS 14.1

Godot version
4.1 and master branch
System information
MacOS 14.1 on MacBook Pro M1 Max
Issue description
I followed the "Compiling for iOS" documentation here and compiling on MacOS Sonoma 14.1 went smoothly. However, the iOS Xcode template cannot be opened with Xcode 15.0.1 (the most current stable version). Xcode refuses to open it with the bland message:

I couldn't find any obvious issue with the syntax of the inner "pbxproj" file, so something else is broken.
I tried the 4.1 tagged source code, and the most recent master branch commit.
Any suggestions?
Cheers,
Martin
Steps to reproduce
Clone the Godot source code (4.1 or main), navigate to "misc/dist/ios_xcode" and try opening the godot_ios.xcodeproj file with Xcode 15.0.1
Minimal reproduction project
There is nothing to provide, as it is all in the official repo.

Project template should be zipped along with compiled libraries to make a export template which can be used during export, the project is not intended to be opened directly (it's incomplete, a bunch of stuff is filled up by the exporter).

Maybe we misunderstood each other, or I got a wrong impression of the purpose of the entire process.
I'm not talking about exporting a Godot project (a game, e.g.) onto iOS but the Godot Editor as an application onto an iOS device (like on the iPad). Even for a project export (like documented here, you need a working Xcode project, eventually, or you cannot build and deploy an iOS application.
So, either the documentation is incomplete, missing important information, or that xcproject file is broken, indeed.
Would you mind explaining the process of packaging the Godot editor as an iOS app in a bit more depth? Thanks.

It is incomplete, steps for packing template are clearly missing.

In general, I find manual template packing steps a bit fragile (not just for iOS). I wonder if we should move this to a SCons option that you pass after building the last export template you're interested in (since ios.zip includes fat binaries, and both debug + release).
See https://github.com/Calinou/godot/tree/scons-android-add-generate-apk-option where I attempted to add generate_apk=yes for Android builds.
We can still write documentation for 4.2, but this is something we should look into after 4.2 is released.

Ah, I get you. Yes, manual packaging is not only fragile but tedious af! :-)
Okay, my experiment will end here. Thank you both for taking your time and explaining to a Godot noob. 😅
Anyhow, I would love to see the Godot editor for iPad Pro devices. However, with the limited Xcode pipeline on iOS, building out a game would still not be possible. The entire app packaging and signing needs to be done on a Mac in any case. I have yet to hear of an end-to-end app development solution on an iOS device for an iOS device.
This ticket can be closed if no further discussion is necessary from your side.
Cheers,
Martin


Remove water masking discussion

I was not able to reproduce the AVO team's issue with watermasking when using our smaller 2-year datasets, so I have removed all parts of the notebook referencing this discussion.

I could a spelling/grammar check on this.

Yep, it definitely should. Thanks for the catch!


Still remainders of mock

To complete the clean-up of the separate mock module you forgot few lines:
---
 setup.py                    |    1 -
 tests/test_flask_api.py     |    2 +-
 tests/test_flask_tracing.py |    2 +-
 3 files changed, 2 insertions(+), 3 deletions(-)

--- a/setup.py
+++ b/setup.py
@@ -30,7 +30,6 @@ setup(
         'tests': [
             'flake8',
             'flake8-quotes',
-            'mock',
             'pytest',
             'pytest-cov',
         ],
--- a/tests/test_flask_api.py
+++ b/tests/test_flask_api.py
@@ -1,6 +1,6 @@
-import mock
 import pytest
 import unittest
+from unittest import mock

 import opentracing
 from flask import Flask
--- a/tests/test_flask_tracing.py
+++ b/tests/test_flask_tracing.py
@@ -1,5 +1,5 @@
-import mock
 import unittest
+from unittest import mock

 from flask import (Flask, request)
 import opentracing

Fortunately mock keeps forward/backward compatibility, so leaving these in as-is should be benign.
Would be a good hygiene issue worth working if this were an active package, but this package has had no updates since 2019, and the most recent 2.0.0 release was just to keep things working with recent Flask 3 release. Users should migrate to the opentelemetry-api, which includes a shim to simplify migration from this package.
Closing.


Add license

I couldn't find any license info for this repository. If you could clarify what license the code is under, that would let me contribute to it (assuming it's under a reasonable license)

Hi there, I don't have a strong opinion on the license! Apache is what I used for a different project while I was at Google - would that compatible with your contributing?

Sure, Apache2 is fine for me. Or another sensible choice would be picking the same license as most fuchsia code uses: https://cs.opensource.google/fuchsia/fuchsia/+/main:LICENSE , which I believe is https://opensource.org/licenses/BSD-2-Clause

I like that idea - I just added the BSD-2 clause license to main.


Multiplier triples width on each resize event

I'm using the options inherit_width_from and inherit_height_from for my slides. Whenever the window size is changed, superslides updates the css attributes size and left of the slides. So far, so good.
However, after that the function superslides.css.containers is being called and updates the width of superslides.$control by superslides.width multiplied by multiplier (in my case 3). The problem is, this increases the size of the slides as well. So, for each resize event that._findWidth will return the increased size which will then be multiplied by 3 again. Obviously, this is not intended behaviour.
I'd fix the problem and submit a pull request, but before that I need to know what the purpose of the multiplier variable is.

Make sure you have;
<!DOCTYPE html>
After the opening <html> block :)


[BIOMAGE-1577] - add scrolls to samples table

Background
Link to issue
https://biomage.atlassian.net/browse/BIOMAGE-1577
Link to staging deployment URL
https://ui-agi-scroll-samples-table.scp-staging.biomage.net/
Links to any Pull Requests related to this
Anything else the reviewers should know about the changes here

We have to give a fixed height to the container of the description and samples table. This necessitates counting of the height of the header OR giving it a constant. In this PR, the counting is done using a function. which would handle cases. An alternative to this is to use a constant (which makes it cheaper computationally) and set the title to ellipsis if it is too long.

Changes
Code changes
Definition of DONE
Your changes will be ready for merging after each of the steps below have been completed:
Code updates
Have best practices and ongoing refactors being observed in this PR

[x] Migrated any selector / reducer used to the new format
[x] Validated that current unit tests work as expected and are enough

Testing

[ ] Unit tests written
[X] Tested locally with Inframock (with latest production data downloaded with biomage experiment pull)
[X] Deployed to staging
[ ] Passed integration tests

To set up easy local testing with inframock, follow the instructions here: https://github.com/biomage-ltd/inframock
To deploy to the staging environment, follow the instructions here: https://github.com/biomage-ltd/biomage-utils
Documentation updates
Is all relevant documentation updated to reflect the proposed changes in this PR?

[ ] Relevant Github READMEs updated
[ ] Relevant wiki pages created/updated

Approvers

[ ] Approved by a member of the core engineering team
[ ] (UX changes) Approved by vickymorrison (this is her username, tag her if you need approval)

Just before merging:

[ ] After the PR is approved, the unstage script in here: https://github.com/biomage-ltd/biomage-utils is executed. This script cleans up your deployment to staging

Optional

[ ] Photo of a cute animal attached to this PR

I'm not convinced about the position of the "Expand" button for the description. I read the line of text and then expected to be able to click the 3 dots at the end of the line of text to expand it. I had to look around to find the "Expand" button - it is not intuitive to find because it is on the previous line and on the far left. Is it possible to instead be able to click the 3 dots to expand the text?

I'm not convinced about the position of the "Expand" button for the description. I read the line of text and then expected to be able to click the 3 dots at the end of the line of text to expand it. I had to look around to find the "Expand" button - it is not intuitive to find because it is on the previous line and on the far left. Is it possible to instead be able to click the 3 dots to expand the text?

There's not an explicit easy way to do it, as it is not currently supported out of the box by Antd. We can code it up on our own. I'll consult Marcell about it.

There's not an explicit easy way to do it, as it is not currently supported out of the box by Antd. We can code it up on our own. I'll consult Marcell about it.

Or just move the 'Expand' button to the end of the line of text, next to the 'edit' button. It makes more sense there than on the previous line.


[Examples] Move examples to slapo.model_schedule

Description
This PR moves the schedules in the example models to slapo.model_schedule, so users can easily retrieve the scheduled models.
Checklist

[x] PR's title starts with a category (e.g. [Bugfix], [Model], [Tutorial], etc)
[x] Changes are complete (i.e. I finished coding on this PR)
[x] All changes have test coverage
[x] Code is well-documented

The epoi is removed? It seems the test failed because of the package dependency. @comaniac

The epoi is removed? It seems the test failed because of the package dependency. @comaniac

It should still be there or unit tests will fail. I'm not sure why there's a lint error tho...

I'm still changing the API. Will let you know when I'm done. @comaniac

Added apply_schedule(model, model_config, sch_config) API.

I've refactored all the code and changed the API to apply_schedule(model, schedule_key, **schedule_config). Should be ready to review. @comaniac

I've tested. Thanks @comaniac.


Error: bind EADDRINUSE <IP_ADDRESS>:9898

I can't seem to get homebridge to work. Anyone has some suggestions?

Scan this code with your HomeKit App on your iOS device to pair with Homebridge:
┌────────────┐
│ 498-72-987 │
└────────────┘

[3/21/2017, 9:53:53 AM] [yeelight] DidFinishLaunching
[3/21/2017, 9:53:53 AM] error, msg - bind EADDRINUSE <IP_ADDRESS>:9898, stack - Error: bind EADDRINUSE <IP_ADDRESS>:9898
at Object.exports._errnoException (util.js:1022:11)
at exports._exceptionWithHostPort (util.js:1045:20)
at dgram.js:221:18
at _combinedTickCallback (internal/process/next_tick.js:77:11)
at process._tickCallback (internal/process/next_tick.js:98:9)
at Module.runMain (module.js:606:11)
at run (bootstrap_node.js:394:7)
at startup (bootstrap_node.js:149:9)
at bootstrap_node.js:509:3
events.js:160
throw er; // Unhandled 'error' event
^
Error: listen EADDRINUSE :::51825
at Object.exports._errnoException (util.js:1022:11)
at exports._exceptionWithHostPort (util.js:1045:20)
at Server._listen2 (net.js:1259:14)
at listen (net.js:1295:10)
at Server.listen (net.js:1391:5)
at EventedHTTPServer.listen (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/util/eventedhttp.js:60:19)
at HAPServer.listen (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/HAPServer.js:158:20)
at Bridge.Accessory.publish (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:496:16)
at Server._publish (/usr/local/lib/node_modules/homebridge/lib/server.js:114:16)
at Server.run (/usr/local/lib/node_modules/homebridge/lib/server.js:91:10)

Just looking at the 2 address in use errors you have, could you have a copy of homebridge already running?  Maybe from an autostart script or something similar?

I did killall but a restart usually fixes it.
Based on feedback on other threads, looks like I'm not alone with similar issue on mac.
I suppose it's time to move on to raspberry pi.

@astrojetson8 I am having a similar issue and running homebridge on OSX. Maybe an update is breaking Mac setups? You can read my thread here: #1224

For this one it looks like you probably already have one instance of homebridge running in background (Error: listen EADDRINUSE :::51825), are you sure you are not running any other homebridge (like auto startup) on your system?

@KhaosT no, i'm not running multiple instances of homebridge.
I was looking at my log file just now, and I've quite a few:
already in device list!
Also, in Home, some sensors at random revert back to default name and default room. And this has happened to me more than dozen or so times.
https://github.com/snOOrz/homebridge-aqara/issues/50
not sure if they are all related to each other?

I have this issue, cannot figure out why: starting homebridge I have: Error: bind EADDRINUSE <IP_ADDRESS>:1982     at Object.exports._errnoException (util.js:870:11)     at exports._exceptionWithHostPort (util.js:893:20)     at dgram.js:214:18     at nextTickCallbackWith3Args (node.js:448:9)     at process._tickCallback (node.js:354:17)     at Function.Module.runMain (module.js:443:11)     at startup (node.js:134:18)     at node.js:962:3
Could you please help me solving this issue? I'm a code rookie :)

    at Object.exports._errnoException (util.js:870:11)
    at exports._exceptionWithHostPort (util.js:893:20)
    at dgram.js:214:18
    at nextTickCallbackWith3Args (node.js:448:9)
    at process._tickCallback (node.js:354:17)
    at Function.Module.runMain (module.js:443:11)
    at startup (node.js:134:18)
    at node.js:962:3```


Support for .NET Core 3.0

Any idea if this will work with .NET Core 3.0?  I'm having issues with it.

It took a while but it's done now.


V2 - Company Already Exist message is displayed even if company does not exist

Prerequisite

Create a CLA group with CCLA enabled
Add github repository for the CLA group
Generate template

Steps to Follow

Login to Github as individual contributor
Navigate to the repository used in prerequisite
Create PR
CLA check fails
Click on CLA NOT SIGNED
Contributor is redirected to Contributor Console
Click on Proceed as a Corporate Contributor
Search for company "hershy's"
Observed that company does not exist

Click on + Click Here button
Try to add company used in Step 8

Click Next
13.Company already exist message is displayed even if company does not exist

@wanyaland Can you please look this
Request URL: https://api-gw.dev.platform.linuxfoundation.org/cla-service/v4/user/d3b74e07-ce7c-42b7-abe4-6e9acc7ee402/company
Input {"companyName":"hershy's","companyWebsite":"http://www.testnvelagap123.com"}
Response :{"Message":"unknown error (status 422): {resp:0xc001c64e10} "}

This could be a use case of company name having apostrophes and not being added by the organization-service. Will clarify with the acs team on this issue

So the name is not valid . On testing the endpoint it returned
"message": "Name in body should match '^([\w\d\s\-\,\./]+){2,255}$'". That implies apostrophes are not allowed

Not able to test this flow as there is a client side validation which is not allowing me to add company with special characters and hence reopening the ticket

@dealako  @nirupamav @wanyaland I have set the regex you mentioned in the above comment. and as per this . , and - are only allowed special characters. If you want to allow more then we have to change regex from both (backend and frontend) side.

I submitted a PR to the Org Service to expand the regex: https://github.com/LF-Engineering/organization-service/pull/150.  Also, the UI needs to match.
All services should follow the same allowed regex pattern:

EasyCLA API
Platform Org Service
EasyCLA Contributor Console
LFX???
Funding

@amolsontakke3576 @wanyaland
What is the regex that is accepted now so that I can test accordingly

As discussed with @amolsontakke3576 the regex needs to be implemented from front end and hence moving the ticket to In Dev

The regex was implemented on the backend as well > '^([\w\d\s-,./]+){2,255}$'

Observed that the issue is still reproducible. Organization is not found/regex not accepted in contributor console but is available in Org service

@nirupamav . Tested with organization service and apostrophes arent allowed on creation of an org. Probably the given org you state was created a while back before the current regex was effected
[Uploading... Screenshot 2020-09-02 at 03.21.19.png ]

Let's defer this issue until we can coordinate with Organization Service. Apostrophes should be allowed in the org service IMHO.  Seems to be going out of fashion: https://www.washingtonexaminer.com/news/apostrophe-protection-society-shuts-down-because-ignorance-and-laziness-won

I have updated the regex provided in the swagger. So as per the new regex below is only the valid case
Organization name may only contain alphanumeric characters or special characters -,.
So the issue is no longer valid.

Validated the issue in reference to Amol's comment and now is restricted to use " -,." else error message mentioned above which is "Organization name may only contain alphanumeric characters or special characters -,." is displayed to the user

Why would we not permit company names to have an apostrophe in them? If the company's name actually has an apostrophe, why would we prohibit them from using their company name?


Can VisTR be applied to the task of semantic segmentation of video objects?

Thank you very much for your great work. I have followed you. Can VisTR be applied to the task of video objects semantic segmentation? What changes do we need to make when migrating your network to the task of video objects semantic segmentation? looking forward to your reply.

@longmalongma The predictions are based on instance queries. If you want to perform semantic segmentation, you should represent each mask as an object with the largest bounding box as the whole image size. Just like what DETR does for panoptic segmentation.

@longmalongma The predictions are based on instance queries. If you want to perform semantic segmentation, you should represent each mask as an object with the largest bounding box as the whole image size. Just like what DETR does for panoptic segmentation.

Thanks for your reply. Are there many changes that need to be made?

@longmalongma I think there are many changes, besides, if the number of the objects for semantic segmentation is large, the memory will be a big issue.
I think I've answered your question and as such I'm closing this issue, but let us know if you have further questions

@longmalongma I think there are many changes, besides, if the number of the objects for semantic segmentation is large, the memory will be a big issue.
I think I've answered your question and as such I'm closing this issue, but let us know if you have further questions

ok, thank you very much.


Exclude any package-lock.json files to the detect-secrets scans

package-lock.json typically contains file digests for integrity cheks.
They should not be flagged

Fixed by code change in #eefca53


RolePolicy required field no data type, breaks things

it seems like a new field is now required but doesn't have a data type here, can we please not do that.
https://marketplace.upbound.io/providers/crossplane-contrib/provider-aws/v0.46.0/resources/iam.aws.crossplane.io/RolePolicy/v1beta1#doc:spec-forProvider-document
anything required must have a datatype, we shouldn't need to go read the go code to see.  this is a bit of a mess and feels like a hack.
the upbound one calls it something different and doesn't break it https://marketplace.upbound.io/providers/upbound/provider-aws/v0.47.1/resources/iam.aws.upbound.io/RolePolicy/v1beta1
this should be visible by looking at the the spec above
happens in all things running version 46

https://github.com/crossplane-contrib/provider-aws/commits/master/package/crds/iam.aws.crossplane.io_rolepolicies.yaml
the problem file


beforeDestroy is not working when v-if="true"

Version
3.0.0-rc.10
Reproduction link
https://jsfiddle.net/xxholly32/w7k8vzng/53/
Steps to reproduce
push hide button
What is expected?
no console.log and change my-component`s status
What is actually happening?
should handler beforeDestroy()

What do you mean? do you need https://v3.vuejs.org/api/options-lifecycle-hooks.html#beforeunmount ?

o lifecycle-hooks changed ,i got it ,ty


Minimum level of networking support required for an effective client

Description
As an [Actor], I want [feature] so that [why].
Acceptance Criteria

[Criteria 1]

Steps to Reproduce (Bug)

[Step 1]
[Step 2]
[Step ...]

Expected behavior: [What you expect to happen]
Actual behavior: [What actually happens]
Frequency: [What percentage of the time does it occur?]
Versions (Add all that apply)

Software version: [teku --version]
Java version: [java -version]
OS Name & Version: [cat /etc/*release]
Kernel Version: [uname -a]
Virtual Machine software & version: [vmware -v]
Docker Version: [docker version]
Cloud VM, type, size: [Amazon Web Services I3-large]

Additional Information

I believe we have some 'basic' networking level


Server Component 지원 CSS 라이브러리 사용 (리팩토링)

현재 사용중인 Chakra UI는 Server Component 지원이 되지 않습니다.
따라서, 'use client'가 현재 컴포넌트에 사용되고 있는데, Server Component를 지원하는 CSS in JS 라이브러리를 리서치하여 적용해보는 시도가 필요합니다.

Server Component 지원 CSS in JS 라이브러리
Panda CSS

혹은, use client가 사용된 컴포넌트를 분리하여 Wrapper 컴포넌트로 사용하면 서버 컴포넌트와 클라이언트 컴포넌트를 분리하여 한 페이지에 구현할 수 있을 것 같다.

Hello,
We have an exciting opportunity for you! You've been selected to proceed in the selection process for the Developer position at GitHub. Congratulations on your achievement!
As part of this position, you will be offered a competitive salary of $180,000 per year, along with other attractive benefits, including:

Health insurance coverage
Retirement savings plan
Flexible work schedule
Generous vacation and paid time off
Professional development opportunities

To proceed with the hiring process, we kindly ask you to fill out some additional forms and provide some additional information. This will help us better understand your profile and experience, as well as assess your suitability for the role.
Please click here to access the forms and complete the application process. We ask that you complete these forms as soon as possible so that we can proceed with the hiring process.
Important: You have 24 hours to complete the application process.
If you have any questions or need further information, please don't hesitate to contact us.
Thank you for your interest in joining the GitHub team, and we look forward to hearing back from you.
Best regards,
GitHub Recruitment Team
KuaqSon, @ShrJamal, @js3867, @PierrickGT, @johnmendonca, @fortune710, @markobozic346, @szolowicz, @0xSardius, @jrr997, @peter6666660, @josemvcerqueira, @lxhyl, @mosmislit-dev, @YBouz, @DangyWing, @idootop, @klauskohut, @calicadev, @jjranalli


declarationMap option in svelte-package

Describe the problem
tsc has a declarationMap compiler option, which is useful for libraries that distribute their source code along with the compiled .js/.d.ts files as it allows IDEs to navigate to the source code when ctrl+clicking imported symbols. see https://www.typescriptlang.org/tsconfig#declarationMap
Describe the proposed solution
a declarationMap option for svelte-package
Alternatives considered
No response
Importance
would make my life easier
Additional Information
No response

What's the use case for distributing your source code along the compiled js/dts files? Where in the wild does that happen already?

It doesn't happen in the wild very much unfortunately because no one even knows about this feature. But it's so much more useful to be able to go to a function's source code than its type declaration or its compiled js. I'm sure if more people knew about it, it would be more common. I do it with all my packages

Dug into this. Turning in declarationMap in the tsconfig.json is enough to create the d.ts.map files, so I don't think we need an extra option here. The URL inside that mapping file is problematic though:

For Svelte files, it points to a .svelte.ts file, but that should be a .svelte.ts file. The relative path also goes up one directory too far (should be ../src/ instead of ../../src/)
In general, it's a relative path pointing to the source, which isn't available if you only publish the contents of package

The first one is a proper bug on our side which needs fixing. The second one is a general TypeScript problem, that behavior is not configurable (there's an open issue on the TS tracker for it). The question is if we somehow smooth over it by copying over the sources, too, if we detect that the user wants this, or if it's in the hands of the developer to do the right thing there (not publishing the package directory, rather the whole project and configure the main package.json manually correctly).
I'm leaning towards first fixing the bug on our side and document the behavior.

The use case we are facing is in a monorepo where packages are referencing each other via package.json (not tsconfig.json references). We want developers to be able to navigate to the sources of packages within the monorepo. Enabling declaration map creation is easily done via tsconfig but due to the relative source path in the generated maps going up one directory too far (as the typescript transpiling happens inside a temp directory) "Go to Source Definition" cannot find the actual source. Fixing the paths manually by removing the first ../ fixes that.
#8843 was addressing exactly that issue but was closed in favor of another PR which did not actually fix anything described in this issue.

I really wish either #8843 or #11527 would get merged


Image Gallery from Conferences

something along the lines of https://wowchemy.com/docs/content/writing-markdown-latex/#image-gallery

I think the link got moved. Do you want a new type of image gallery?


JavaScript error

See screenshot above. This error is displayed on page load of index.html, which prevents the entire page from loading.

Fixed by commit 990de601e3737b3228fed76f6976f5254ebbcdd0.


Fix PP issue

What does this PR do?
As per title.

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Yes very hard to debug the neverending issue.


why "docker run -it zilliz/milvus_cli:latest"  is error

OpenBLAS blas_thread_init: pthread_create failed for thread 1 of 12: Operation not permitted
OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max
OpenBLAS blas_thread_init: pthread_create failed for thread 2 of 12: Operation not permitted
OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max
OpenBLAS blas_thread_init: pthread_create failed for thread 3 of 12: Operation not permitted
OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max
OpenBLAS blas_thread_init: pthread_create failed for thread 4 of 12: Operation not permitted
OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max
OpenBLAS blas_thread_init: pthread_create failed for thread 5 of 12: Operation not permitted
OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max
OpenBLAS blas_thread_init: pthread_create failed for thread 6 of 12: Operation not permitted
OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max
OpenBLAS blas_thread_init: pthread_create failed for thread 7 of 12: Operation not permitted
OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max
OpenBLAS blas_thread_init: pthread_create failed for thread 8 of 12: Operation not permitted
OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max
OpenBLAS blas_thread_init: pthread_create failed for thread 9 of 12: Operation not permitted
OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max
OpenBLAS blas_thread_init: pthread_create failed for thread 10 of 12: Operation not permitted
OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max
OpenBLAS blas_thread_init: pthread_create failed for thread 11 of 12: Operation not permitted
OpenBLAS blas_thread_init: RLIMIT_NPROC -1 current, -1 max
Traceback (most recent call last):
File "/usr/local/bin/milvus_cli", line 5, in
from milvus_cli.scripts.milvus_cli import runCliPrompt
File "/usr/local/lib/python3.8/site-packages/milvus_cli/scripts/milvus_cli.py", line 1, in
from .connection_cli import *
File "/usr/local/lib/python3.8/site-packages/milvus_cli/scripts/connection_cli.py", line 2, in
from .helper_cli import show, getList
File "/usr/local/lib/python3.8/site-packages/milvus_cli/scripts/helper_cli.py", line 1, in
from .init_cli import cli
File "/usr/local/lib/python3.8/site-packages/milvus_cli/scripts/init_cli.py", line 9, in
from Cli import MilvusCli
File "/usr/local/lib/python3.8/site-packages/milvus_cli/Cli.py", line 1, in
from Connection import MilvusConnection
File "/usr/local/lib/python3.8/site-packages/milvus_cli/Connection.py", line 1, in
from pymilvus import connections, list_collections
File "/usr/local/lib/python3.8/site-packages/pymilvus/init.py", line 14, in
from .client.prepare import Prepare
File "/usr/local/lib/python3.8/site-packages/pymilvus/client/prepare.py", line 12, in
from pymilvus.orm.schema import CollectionSchema
File "/usr/local/lib/python3.8/site-packages/pymilvus/orm/schema.py", line 16, in
import pandas as pd
File "/usr/local/lib/python3.8/site-packages/pandas/init.py", line 11, in
import(_dependency)
File "/usr/local/lib/python3.8/site-packages/numpy/init.py", line 141, in
from . import core
File "/usr/local/lib/python3.8/site-packages/numpy/core/init.py", line 23, in
from . import multiarray
File "/usr/local/lib/python3.8/site-packages/numpy/core/multiarray.py", line 10, in
from . import overrides
File "/usr/local/lib/python3.8/site-packages/numpy/core/overrides.py", line 6, in
from numpy.core._multiarray_umath import (
KeyboardInterrupt

I find the File "/usr/local/lib/python3.8/site-packages/numpy/core/overrides.py", line 6, in from numpy.core._multiarray_umath import  and exec the code no error
python3
Python 3.8.19 (default, Jul 30 2024, 20:05:57)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-44)] on linux
Type "help", "copyright", "credits" or "license" for more information.

import collections
import functools
import os
from numpy.core._multiarray_umath import (
...     add_docstring, implement_array_function, _get_implementing_args)

Python 3.8.19 (default, Jul 30 2024, 20:05:57)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-44)] on linux
Type "help", "copyright", "credits" or "license" for more information.

import collections
import functools
import os
from numpy.core._multiarray_umath import (
...     add_docstring, implement_array_function, _get_implementing_args)

Already fixed


Change edge_handlers build attribute to use dash(edge-handlers)

This would make naming more consistent and easier to remember by everyone:
[build]
edge-handlers = "src/edge-handlers"

Ideally, we'd support both to make it fail safe, but I don't know the complexity of doing that in a plugin.
The redirects parser that we use to detect edge handlers in redirects allows both formats:
[[redirects]]
from = "/'
to = "/"
edge-handler = "hello-world"

[[redirects]]
from = "/foo"
to = "/bar"
edge_handler = "foo-bar"

Could this be cross-posted to https://github.com/netlify/pod-the-builder/issues/51 where the initial discussion took place?

I propose we close this issue as the matter was already discussed, mined for conflict, and reached consensus in https://github.com/netlify/pod-the-builder/issues/51, and the edge_handlers field has already been implemented.
I don't see a compelling reason to reverse that, as the current method is consistent with other fields in the netlify.toml. I think it's more common practice for variables to take the common form of their language/environment than to use the same format across environments. For example, the same style properties that are hyphenated in CSS are camel-cased in JavaScript.
If, on release, we find that people are confused, we could consider a dual-syntax method then, but I certainly don't think it's worth dedicating time within our current efforts.

I'm pretty sure this is not the first time we open an issue after something has been implemented and agreed up, and I'd like to keep this issue open for further discussion down the road.

OK, so we'll leave this open for discussion later, but we're not planning to change this in the current MVP. Correct?

OK, so we'll leave this open for discussion later, but we're not planning to change this in the current MVP. Correct?

correct

I've personally, stumbled into miss configured sites because the significant difference between _ and -, and @mraerino mentioned the same problems this morning.

An alternative to solving this could also be to keep the configuration property as edge_handlers, but change the default directory from edge-handlers to edge_handlers. Some potential benefits:

This keeps the case consistent in the netlify.toml properties
In my experience, underscores in local filenames are more common than dashes, but I might be wrong
It would be a faster change to implement

One possible to solve both problems (consistency in the netlify.toml properties + consistency between configuration property and default Edge handlers directory) would be to keep the configuration property as edge_handlers, but change the default directory from edge-handlers to edge_handlers.

I think it'd be easy to change the default directory, we can update the plugin to reflect this change

i feel like we don't need to touch this right now. it's fine as it is, if we document it correctly.
in the future, we can always allow both variants as we do for the redirect option

Agreed!


How to return a pointer ?

Hi,  I want to open a slide(file) and return the handle, which will be hold on js, how can I do this ?
Nan::EscapableHandleScope scope;   long osr = (long)openslide_open(fileName.c_str());   Handle<v8::Value> retval = Nan::New(To<int64_t>(osr));   info.GetReturnValue().Set(scope.Escape(retval));

I am new to C++ and Nan, should I use NAN or N-API ?

Stick with NAN. You're going to want to wrap the pointer with an ObjectWrap as described in the "Passing wrapped objects around" section here:  Object Wrappers
If you're new to C++ and working with NAN bindings, you may want to take a look here as well: Node.js Addon Examples
I'd recommend going through the NAN example given in each section of that tutorial.

Tks

Still stick with NAN? I thought NAPI was the newer version to use?


Backmerge release 3.38.0

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.02%) to 31.758%

Totals

Change from base Build<PHONE_NUMBER>:
0.02%

Covered Lines:
12973

Relevant Lines:
14678

💛  - Coveralls


Android Duplicate Tasks Shown Despite Filter

Please check that this issue hasn't been reported before.

[X] I searched previous Bug Reports didn't find any similar reports.

Expected Behavior
Expected Behavior:
Tasks with duplicate names or content should not be displayed in the task list or any relevant view when filters or search queries are applied.
Current behaviour
Despite applying filters or search queries, the Obsidian-Tasks plugin continues to show duplicate tasks in the task list or relevant view. This behavior is inconsistent with the expected behavior described above.
This happens in tasks ...  and dataviewjs dv.paragraph(dv.current().file.tasks.find ... queries
When trying to complete one of the duplicate tasks in the query, the other will stay nonetheless, trying to complete will result in "not found" issue.
Steps to reproduce
Open Obsidian on an Android device.
Ensure that the Obsidian-Tasks plugin is installed and activated.
Create multiple tasks with due date in the future and not completed
Apply a filter or search query to exclude completed tasks
Check the task list or any relevant view where the tasks should be displayed.
File: Feature 1.md

[ ] Learn about Plugins ⏫ 🔁 every 2 weeks on Monday 🛫 2023-06-03 📅 2023-06-05
[ ] Win in the lottery ⏫ 🛫 2023-06-03 📅 2023-06-06
[ ] Compare the numbers of lottery ⏫ 🛫 2023-06-03 📅 2023-06-04 ✅ 2023-06-04

Query:
not done
(due this week)
path includes Task Management/Projects

I use git to sync changes, the problems seems to occur randomly.
Which Operating Systems are you using?

[X] Android
[ ] iPhone/iPad
[ ] Linux
[ ] macOS
[ ] Windows

Obsidian Version
1.4.6
Tasks Plugin Version
3.10.0
Checks

[X] I have tried it with all other plugins disabled and the error still occurs

Possible solution
No response

Thanks for using Tasks.
There is no tasks filter to discard duplicate tasks, so I think that this issue is based on a misunderstanding of what Tasks does.
Can you please explain why you are expecting Tasks to discard duplicates?

Steps to reproduce
Open Obsidian on an Android device.

I do not have an Android device, but even if I did, there is no data in this issue to enable me to reliably, repeatably reproduce this issue.
Please read this page thoroughly, to understand what is needed for a bug to be investigated.
https://publish.obsidian.md/tasks/Support+and+Help/Report+a+Bug
As soon as you observe the problem happening, I need a copy of the duplicate tasks you are concerned about, and the query are using.
But you should note that each task line is treated as a task in its own right by the Tasks plugin, and there is no code to detect or discard duplicates.

I use git to sync changes, the problems seems to occur randomly.

If your sync mechanism is creating duplicates, that is outside the scope of this plugin.

Closing as not planned, as insufficient information to be able to reproduce the problem.


xds: introduce versioned subscription test harness

For an explanation of how to fill out the fields, please see the relevant section
in PULL_REQUESTS.md
Commit Message: A part of https://github.com/envoyproxy/envoy/issues/10849. To introduce versioned xDS subscription test, we add VersionedSubscriptionTestHarness, and applied it to DeltaSubscriptionTest as a part of resolving this.
Additional Description:
Risk Level: Low
Testing:
Docs Changes:
Release Notes:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Deprecated:]

/assign @htuch

Would you mind to unassign irrelevant reviewers?


New Website Logo: superscale networks

Organization name: superscale networks
Homepage url: https://www.superscale.io | https://github.com/superscale
Logo url: https://s3-eu-west-1.amazonaws.com/www.superscale.io/logo.svg or https://www.superscale.io/logo.svg
How you are using Rust: We run rust-mips on tens of thousands of linux routers with 4-16Mb Ram. Rust is the only modern language that has low enough runtime constrains to make this possible.
Organization contact<EMAIL_ADDRESS>

@aep is superscale.io still a thing? The web page seems down. Should this logo be removed or replaced?

@Boereck yep. it should redirect to devguard.io. Looks like it doesnt, sorry.
Let me fix that when i'm back on wednesday.

Sorry the redirect is taking longer than expected.
superscale has been merged into devguard, which is 100% rust now, not just embedded but also middleware and web.
Could you replace the logo, as well as the url?
Homepage url: https://devguard.io
Logo url:
thank you!


Update version to 1.2.92-0 on main

Update version to 1.2.92-0

:bell: @Expensify/mobile-deployers :bell: - The Update Protected Branch workflow has failed because this PR was not mergable.
If you are the deployer this week, please resolve the error and merge this PR to continue the deploy process.

GH actions are messed up. Gonna close this PR. Delete the branch and retry the workflow.


BPF init: Check that cilium is present on the path fix #742 #743

Hey @aanm
Many thanks, I've just made the changes, all should be ok now :-)
Regards!


access to iteration number and chain id within model

Sean O'Riordain suggested on stan-users that it would be useful to be able to access the iteration number in a Stan program so that you could write something like this to print theta every 100th iteration:
if (mod(iteration.count,100) == 0) print(theta);

It would also be nice to get the chain_id in case things are running in parallel.
This brings up the issue of what the values should be when, for instance, we're running diagnostics, just evaluating the log probability function, running optimization, etc.  Maybe just -1 values everywhere?
There is also the issue of which blocks this should work in.  Should prints in the transformed data block get a value of iteration=0 as the value?  The chain_id would still work.

If we did do this, we'd probably want to do it via functions:
  int meta_iteration_num();
  int meta_chain_id();
  int meta_is_warming_up();
  int meta_is_sampling();

I'd want to print a warning with any use of such a meta function at the very least.  And probably call it something other than "meta", which tends to get overused.

Joshua N Pritikin points out on stan-dev:
Maybe a mcmc_ prefit would be more descriptive since Stan also does
BGFS-esque optimization.

If this is really just for print control every N-th iteration, we could control that from the outside by passing in a NULL ostream.

I would also like access to iteration number, but for hacking purposes (Simulated Annealing for example).
For just printing values, the solution I use is to have Stan to periodically update the output csv file (including warmup), and run a script that periodically reads the csv file and plots the samples for whatever I'm interested in. That way you can view the entire trajectory as stan samples. If using matlabstan, the function "mstan.read_stan_csv" is helpful for this.

I just looked back through this issue.  We've gone back and forth on whether we should allow this.
@betanalpha and I don't like it because it breaks the nice abstraction of an instantiated model as an immutable log density function.  Making things immutable is powerful for reasoning about program behavior and writing correct code.
We could break this abstraction by either (1) storing iteration and chain number in special mutable variables, or (2) treating them like data and allowing data to be non-constant (mutable) in general.  I'm inclined toward the latter because we may want to do this for data streaming or parallel algorithms like stochastic gradient descent for optimization (penalized MLE) or variational inference (VB) or data-parallel expectation propagation (EP) or gradient-based marginal optimization (penalized MML).

Add one more vote for no iteration number within the language.
If you're really inclined, there are ways to use that information from an algorithm written in C++. You might also be able to wrap the generated model class with another class that has a mutable iteration number.
If you're able to demonstrate a real need for that in the language with a model and an algorithm that utilizes it, I'd reconsider. But burden of proof is on a prototype and a real use case before we break immutability.

On May 20, 2017, at 3:05 PM, Bob Carpenter<EMAIL_ADDRESS>wrote:
I just looked back through this issue. We've gone back and forth on whether we should allow this.
@betanalpha and I don't like it because it breaks the nice abstraction of an instantiated model as an immutable log density function. Making things immutable is powerful for reasoning about program behavior and writing correct code.
We could break this abstraction by either (1) storing iteration and chain number in special mutable variables, or (2) treating them like data and allowing data to be non-constant (mutable) in general. I'm inclined toward the latter because we may want to do this for data streaming or parallel algorithms like stochastic gradient descent for optimization (penalized MLE) or variational inference (VB) or data-parallel expectation propagation (EP) or gradient-based marginal optimization (penalized MML).
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

On May 20, 2017, at 7:26 PM, Daniel Lee<EMAIL_ADDRESS>wrote:
Add one more vote for no iteration number within the language.
If you're really inclined, there are ways to use that information from an algorithm written in C++.

You can manipulate the entire log density at this point, but can't
get inside it.

You might also be able to wrap the generated model class with another class that has a mutable iteration number.

Same problem---won't be able to access it in the language unless
you hack a function into Stan which returns a static that the
algorithm sets.

If you're able to demonstrate a real need

The first suggested usage in this issue is printing:
if (iteration() % 100 == 0) print(...);
The second suggestion was to do some kind of annealing;  I could
see that wanting to do different things to the likelihood and prior in
a Bayesian setting.

for that in the language with a model and an algorithm that utilizes it, I'd reconsider. But burden of proof is on a prototype and a real use case before we break immutability.

The problem with requesting a prototype is that this is a user-level request, but building
a prototype is a developer-level problem.  There's way to build a prototype
with user-facing tools we have now.

Good points. Especially about the prototype and it's a developer-level
problem.
If it's just about printing, it seems like a lot of effort. Probably worth
it in the long run to figure it out, but it's still a lot of effort. The
second use case was simulated annealing and controlling a temperature
parameter based on iteration? Maybe a little more thought into how that's
written out in the language, what sorts of things are propagated as data /
parameters or double / vars would help.
On Mon, May 22, 2017 at 12:08 PM, Bob Carpenter<EMAIL_ADDRESS>wrote:

On May 20, 2017, at 7:26 PM, Daniel Lee<EMAIL_ADDRESS>wrote:
Add one more vote for no iteration number within the language.
If you're really inclined, there are ways to use that information from
an algorithm written in C++.

You can manipulate the entire log density at this point, but can't
get inside it.

You might also be able to wrap the generated model class with another
class that has a mutable iteration number.

Same problem---won't be able to access it in the language unless
you hack a function into Stan which returns a static that the
algorithm sets.

If you're able to demonstrate a real need

The first suggested usage in this issue is printing:
if (iteration() % 100 == 0) print(...);
The second suggestion was to do some kind of annealing; I could
see that wanting to do different things to the likelihood and prior in
a Bayesian setting.

for that in the language with a model and an algorithm that utilizes it,
I'd reconsider. But burden of proof is on a prototype and a real use case
before we break immutability.

The problem with requesting a prototype is that this is a user-level
request, but building
a prototype is a developer-level problem. There's way to build a prototype
with user-facing tools we have now.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/stan-dev/stan/issues/1166#issuecomment-303145723, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAZ_F1mS45flCLY1LX06dXIVO57d2tofks5r8bLigaJpZM4DGxC2
.

I am unconvinced on printing (what does striped printing
by you?  You can always manipulate the output directly
in any of the environments).
But I am doubly unconvinced on the algorithm side.  The
issue is that all of these ideas are trying to break the
abstraction of the Stan Modeling Language specifying
a function proportional to the posterior density and nothing
more.  Because there is a fundamental prior/likelihood
separation, for example, any algorithm that relies on that
separation would be an awkward hack.
Stan was not built for algorithm development of this sort.
If we wanted to support it then we would have to allow
users to specify prior and likelihood separately and then
expose various algorithmic manipulations like optimize
and Markov transition.  I’m not saying that we shouldn’t
do that (okay, I would but that’s an orthogonal conversation)
just that breaking out current abstraction to make an
infinitesimal and fragile step towards that is a bad idea.

On May 22, 2017, at 9:22 AM, Daniel Lee<EMAIL_ADDRESS>wrote:
Good points. Especially about the prototype and it's a developer-level
problem.
If it's just about printing, it seems like a lot of effort. Probably worth
it in the long run to figure it out, but it's still a lot of effort. The
second use case was simulated annealing and controlling a temperature
parameter based on iteration? Maybe a little more thought into how that's
written out in the language, what sorts of things are propagated as data /
parameters or double / vars would help.
On Mon, May 22, 2017 at 12:08 PM, Bob Carpenter<EMAIL_ADDRESS>wrote:

On May 20, 2017, at 7:26 PM, Daniel Lee<EMAIL_ADDRESS>wrote:
Add one more vote for no iteration number within the language.
If you're really inclined, there are ways to use that information from
an algorithm written in C++.

You can manipulate the entire log density at this point, but can't
get inside it.

You might also be able to wrap the generated model class with another
class that has a mutable iteration number.

Same problem---won't be able to access it in the language unless
you hack a function into Stan which returns a static that the
algorithm sets.

If you're able to demonstrate a real need

The first suggested usage in this issue is printing:
if (iteration() % 100 == 0) print(...);
The second suggestion was to do some kind of annealing; I could
see that wanting to do different things to the likelihood and prior in
a Bayesian setting.

for that in the language with a model and an algorithm that utilizes it,
I'd reconsider. But burden of proof is on a prototype and a real use case
before we break immutability.

The problem with requesting a prototype is that this is a user-level
request, but building
a prototype is a developer-level problem. There's way to build a prototype
with user-facing tools we have now.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/stan-dev/stan/issues/1166#issuecomment-303145723, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAZ_F1mS45flCLY1LX06dXIVO57d2tofks5r8bLigaJpZM4DGxC2
.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/stan-dev/stan/issues/1166#issuecomment-303149707, or mute the thread https://github.com/notifications/unsubscribe-auth/ABdNlg--tY28kpsjw9xyrsJi8ey3g6lHks5r8bZggaJpZM4DGxC2.


feat(infra): Add possibility to run unit tests separately.

Motivation
In one of our projects we two types of tests - unit tests and integration tests . Integration tests are tests which uses additional dependencies like inMemoryMongoDb and can take longer time (db must be started, cleaned etc.).

Here is a project: https://github.com/time-loop/whiteboard-migrations-cdk/tree/main/test
In this PR I'm proposing to add a separate task: unit-test, which will run only unit-tests (skipping integration tests).
What do you think about this idea?
If you are ok with these changes I can extend this to other tasks like: test:watch and test:update and in similar way I'll add possibility to run integration-tests separately.

I'd like to hear how integ-runner fits with this.

For regular test there could be similar tasks like for unit tests.


Disable inline Svg checking

I'm getting the following error while my (Gatsby) site is building:
.....
8:59:55 AM:   ✖ FAIL Failed loading inline Svg in public/somepath/index.html
8:59:55 AM:   | operator: error
8:59:55 AM:   |   actual: inline Svg in public/somepath/index.html: about:blank:1:151: duplicate attribute: {http://www.w3.org/2000/xmlns/}xlink.
8:59:55 AM:   ✖ FAIL Failed loading inline Svg in public/somepath/index.html
8:59:55 AM:   | operator: error
8:59:55 AM:   |   actual: inline Svg in public/somepath/index.html: about:blank:1:151: duplicate attribute: {http://www.w3.org/2000/xmlns/}xlink.
8:59:55 AM:   ✖ FAIL Failed loading inline Svg in public/somepath/index.html
8:59:55 AM:   | operator: error
8:59:55 AM:   |   actual: inline Svg in public/somepath/index.html: about:blank:1:151: duplicate attribute: {http://www.w3.org/2000/xmlns/}xlink.
8:59:55 AM:   152 tests
8:59:55 AM:     1 skipped
8:59:55 AM:   149 passed
8:59:55 AM:     3 failed

As the message states, this is a page with some inline SVGs. Contrary to the message, there is not a duplicate xlink attribute, but no matter. I have tried disabling this with:
  skipPatterns = ["duplicate attribute", "svg", "xmlns", "xlink", "sw.js"]

(that last one fixes a unrelated Gatsby v3-specific thing)
...but none of those work.
I think if I included public/somepath/index.html in the skipPatterns it would skip the whole page, but that is not what I want. Ideally, I just want the scope of the plugin limited to, say, a href="..." links and img src="..." and disable any other kind of checking. Failing that, I'd like to disable this specific check. It's not documented what the options for skipPatterns might be, so I may be missing something, but how can I do this?
Thank you!

Skip patterns is for skipping pre-defined tests. It uses a substring match on any of the properties of the test in question.
But what's failing here is not a test, but the loading of an asset. So I don't think you can disable it. I'd also like to keep the checks of inline SVG's, since that has actually caught bugs for people on numerous occasions.
But it feels like this might actually be a bug in checklinks, or at least a very bad error message for something that is actually a bug in your code.
Would you mind pasting a HTML snippet in here that recreates the problem? Since it's an inline SVG, it shouldn't be much more than just a dump of that page's HTML, or even just the SVG's in the page

Thank you for your prompt response! Here's the relevant snippet. I've shortened the content of the encoded image in the SVGs for brevity (yes, these should not be SVGs in the first place, but ignore that for now):

Blah blah blah

<svg width="222" height="222" alt="" viewBox="0 0 222 224" version="1.1">
      <title>Map of Somewhere</title>
      <defs>
        <ellipse id="path-1-1" cx="111" cy="111.743872" rx="111" ry="111.5"></ellipse>
      </defs>
      <g id="lPage-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
        <g id="Desktop-HD-Copy-61" transform="translate(-279.000000, -3394.000000)">
          <g id="Screen-Shot-2020-11-11-at-8.29.43-PM" transform="translate(279.000000, 3394.000000)">
            <mask id="mask-1" fill="white">
              <use xlink:href="#path-1-1"></use>
            </mask>
            <use id="Mask1" fill="#D8D8D8" xlink:href="#path-1-1"></use>
            <image mask="url(#mask-1)" x="-81" y="-58.7561282" width="456" height="323"
              xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABjcAAARiCAYAAADoYqVSAAAK3mlDQ1BJQ0MgUHJvZmlsZQAASImVlwdUU2kWx7/30kNCSUKkE3oTpBNASggtgIB0EJWQBBJKDAlBxY4MjmBFRATUER0QULACMhZEFNug2PuADCLKOliwobIPWMLM7Nnds/ec79zfubnf/e59533v/AMAOZwrkWTAqgBkirOlEQE+jLj4BAbud0AEOkAN6AF1Lk8mYYWHhwDEpvxf7cNdAI37W9bjtf799/9qFL5AxgMASkQ4mS/jZSLchqy3PIk0GwDUcSRutDhbMs73EaZJkQYRHhrn1AlGj9ehJU8ybSInKoKNsDkAeBKXK00FgOSIxBk5vFSkDikKYVsxXyRGOB9hT56Qy0e4A+GZmZmLxnkYYXMkXwIAWQNhZvKfaqb+pX6yoj6Xm6rgybkmDO8rkkkyuEv/z0fzvy0zQz51himySEJpYATitZDndz99UbCCxcmhYVMs4k/kT7BQHhg9xTwZO2GK+VzfYMXejNCQKU4R">
            </image>
            <circle id="Oval1" stroke="#00AEEF" mask="url(#mask-1)" cx="111" cy="112.243872" r="110.5">
            </circle>
          </g>
        </g>
      </g>
    </svg>A Title
Somewhere

<svg width="222" height="222" alt="" viewBox="0 0 222 223" version="1.1">
      <title>Map of a place</title>
      <defs>
        <ellipse id="path-2-1" cx="111" cy="111.5" rx="111" ry="111.5"></ellipse>
      </defs>
      <g id="llPage-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
        <g id="Desktop-HD-Copy-62" transform="translate(-619.000000, -3395.000000)">
          <g id="Group-2" transform="translate(619.000000, 3395.000000)">
            <mask id="mask-2" fill="white">
              <use xlink:href="#path-2-1"></use>
            </mask>
            <use id="Mask2-Copy" fill="#D8D8D8" xlink:href="#path-2-1"></use>
            <image id="Screen-Shot-2020-11-11-at-8.36.58-PM" mask="url(#mask-2)" x="-33" y="-23" width="402"
              height="267"
              xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABrMAAARtCAYAAAD22r78AAAK3mlDQ1BJQ0MgUHJvZmlsZQAASImVlwdUU2kWx7/30kNCSUKkE3oTpBNASggtgIB0EJWQBBJKDAlBxY4MjmBFRATUER0QULACMhZEFNug2PuADCLKOliwobIPWMLM7Nnds/ec79zfubnf/e59533v/AMAOZwrkWTAqgBkirOlEQE+jLj4BAbud0AEOkAN6AF1Lk8mYYWHhwDEpvxf7cNdAI37W9bjtf799/9qFL5AxgMASkQ4mS/jZSLchqy3PIk0GwDUcSRutDhbMs73EaZJkQYRHhrn1AlGj9ehJU8ybSInKoKNsDkAeBKXK00FgOSIxBk5vFSkDikKYVsxXyRGOB9hT56Qy0e4A+GZmZmLxnkYYXMkXwIAWQNhZvKfaqb+pX6yoj6Xm6rgybkmDO8rkkkyuEv/z0fzvy0zQz51himySEJpYATitZDndz99UbCCxcmhYVMs4k/kT7BQHhg9xTwZO2GK+VzfYMXejNCQKU4R">
            </image>
            <circle id="Oval2" stroke="#00AEEF" mask="url(#mask-2)" cx="111" cy="111" r="110.5"></circle>
          </g>
        </g>
      </g>
    </svg>Another title
Somewhere

<svg width="222" height="222" alt="" viewBox="0 0 222 223" version="1.1">
      <title>Map of somewhere else</title>
      <defs>
        <circle id="path-3-1" cx="111" cy="111" r="111"></circle>
      </defs>
      <g id="lllPage-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
        <g id="Desktop-HD-Copy-63" transform="translate(-947.000000, -3394.000000)">
          <g id="Screen-Shot-2020-11-11-at-8.30.50-PM" transform="translate(947.000000, 3394.756128)">
            <mask id="mask-3" fill="white">
              <use xlink:href="#path-3-1"></use>
            </mask>
            <use id="Mask3" fill="#D8D8D8" xlink:href="#path-3-1"></use>
            <image mask="url(#mask-3)" x="-64" y="-28" width="441" height="277"
              xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABQUAAAMnCAYAAACHtDQHAAAK3mlDQ1BJQ0MgUHJvZmlsZQAASImVlwdUU2kWx7/30kNCSUKkE3oTpBNASggtgIB0EJWQBBJKDAlBxY4MjmBFRATUER0QULACMhZEFNug2PuADCLKOliwobIPWMLM7Nnds/ec79zfubnf/e59533v/AMAOZwrkWTAqgBkirOlEQE+jLj4BAbud0AEOkAN6AF1Lk8mYYWHhwDEpvxf7cNdAI37W9bjtf799/9qFL5AxgMASkQ4mS/jZSLchqy3PIk0GwDUcS">
            </image>
            <circle id="Oval3" stroke="#00AEEF" mask="url(#mask-3)" cx="111" cy="111" r="110.5"></circle>
          </g>
        </g>
      </g>
    </svg>
Blah
Blah

I have confirmed that these are the cause of the problem; when I take them out, all tests pass successfully. I've made sure all IDs are unique, and the code validates at the w3c validator. My suspicion is that it has to do with the encoded image in those SVGs and their xlink:href, though the way they're being used here (to my knowledge) is valid.

Your svgs do not declare the xlinknamespace.

Thanks for noticing that! They actually are declared in the actual SVGs, so some step of the build process must be stripping them out. Though I suppose it doesn't matter, ultimately because...

Do things work by just using href?

Yes they do!!
That's fantastic. I'm now going to be able to use your build plugin on this site in production, and will be trying it on our other sites as we get to them. Thank you for your great help here and making this plugin!


how about resume, pause and stop

this library can be support this features?

It would be really great if we have it!

To do this, i think we need to implement a custom download manager. RxDownloader currently only wrap Android's DownloadManager


RC 2.1.0

gsm.app 2.1.0
This version focuses on stability, as well as integration with {gsm} 2.1.2:
New Features

Add optional arguments to allow users to customize the UI and/or server of the resulting Shiny app. This will allow users to add logging functionality, for example (#283).
All tables have been standardized to use the {gt} package. This adds sorting and resizing functionality to all columns, and fixes several bugs (#187, #208, #224, #248, #289, #294).
The sample data now contains all KRIs, to demonstrate a more fully functional app (#207).
The Overview Table on the Study Overview tab is now interactive. Click a site and/or KRI to view details about that KRI at that site. The filters of this table can also be updated by clicking the red/amber pills at the top of the Overview Table tab (#196, #243, #244, #264).

Other Improvements

Code has been separated into easier-to-manage subfunctions (#286).
The sidebar now uses Report_Studyinfo() from {gsm}, rather than a custom app. The table is collapsible/expandable to show a subset of information vs all available information about the study (#288).

@lauramaxwell Other than tagging a release after we merge, is there anything else to check before we update main?

That's pretty much it! Just close the associated milestone and clean up any stray branches (if any)

That's pretty much it! Just close the associated milestone and clean up any stray branches (if any)

This needs an approving review before I can merge.


[#DEV-7341] Handles Better Webgl Context Lost

Once context Lost, prevent any further render, inform osgjs client code with a callback
Otherwise client may continue to ask new renders and thus getting
endless errors.

add unit test using webgl debug js context lost simulator


Bug with JQM.

Bug with JQM.
After opening the Date Picker once, I can't open any JQM popup.
JQ Files :
jq : JQuery/jquery-1.7.2.js
jqm : jquery.mobile-1.4.2.js

Hi,
Thanks for reporting a bug.
This was caused due to unbinding of click, keyup and keydown events in _hidePicker() funtion.
You can check JQM Example

Thanks!


Logger integration

Logger integration will mean that this package will be capable to log relevant actions and write them in a standard psr/log fashioned way. If you require debug information because something is not going like it should, you can pass on a different Handler to display this information.

Development of this feature will take place in branch https://github.com/unreal4u/telegram-api/tree/loggerIntegration

v1.2.0 is now out


The property "Mode" does not exist in the XML namespace

When attempting to use the assembly from Nuget I get the following error...
The property 'Mode' does not exist in XML namespace 'clr-namespace:LoadingIndicators.WPF;assembly=LoadingIndicators.WPF'.
When Inspecting the assembly in the Object Browser, it is correct; The "Mode" property does not exist.

Check this https://github.com/zeluisping/LoadingIndicators.WPF/issues/11
I don't use Windows anymore, so I do not have it as a priority to maintain this project (might happen but I don't guarantee it). This repo has had pull requests merged with fixes (but hasn't been published to NuGet https://github.com/zeluisping/LoadingIndicators.WPF/issues/15), so maybe give it a try with the version available in the repo.

From pull request https://github.com/zeluisping/LoadingIndicators.WPF/pull/6:

Added a Mode ability to select the style of indicator, so the user doesn't have to include default styles"


Website UI Improvisation

The current user interface of the FreelanceRevise platform requires enhancements to improve user experience and engagement. The goal is to create a more modern, intuitive, and responsive design that aligns with contemporary web standards.
Key Features to Consider Adding:

Responsive Design: Ensure the website is mobile-friendly and adapts to different screen sizes.
Improved Navigation: Simplify the menu structure and implement a breadcrumb navigation system.
User Feedback Integration: Incorporate user feedback to identify pain points in the current design and address them.
Visual Enhancements: Use modern design elements such as card layouts, hover effects, and animations to improve aesthetics.

Subject: Request to Assign Issue to Me
Hi itsmedollar15,
I hope this message finds you well! I am interested in contributing to your project and would like to work on the issue titled "Website UI Improvisation" that I noticed in the repository.
I believe my skills in [mention any relevant skills or experience] would allow me to make a meaningful contribution. Could you please assign this issue to me? I look forward to your positive response!
Thank you for considering my request!
Best regards,
Sameer Shaikh


Use Django templates for README files generation

Context
Related to https://github.com/AlexsLemonade/scpca-portal/issues/482 and https://github.com/AlexsLemonade/scpca-portal/issues/524
As the README files logic is getting more complex it makes sense to use a template engine for handling it.
Problem or idea
Use Django template engine to render project README files (should be enough for our goal, no need for Jinja)
Solution or next step

Update README templates with Django template language
Migrate data loading script
Add tests to make sure README files being generated properly

closing with #569


[Feature request]Please eliminate CUDA dependency

Although CUDA ops accelerates training dramatically, other platform(Apple M2,AMD,Intel,Huawei, etc.) suffers from that. Please eliminate the CUDA dependency in the near future and accelerate training in a portable way(like vulcan).
That means a lot to a lot of users, thanks a lot.

Eliminating CUDA is one of the goals for the v5 implementation, which has been done.
Unfortunately the current pure pytorch is x100 slower then the cuda code, there is some experiments to speed that up, but that is a WIP

Closing, as perf improvements to the pure pytorch impl is to be tracked seperately


Participants having Liason and Scribe roles are not added in slack channel automatically

Describe the bug
The Liason role gets added in the ticket participants (as per opsgenie schedule), but that member is not added in the corresponding created slack channel. Only reporter and Incident commander gets added.
To Reproduce
Steps to reproduce the behavior:

Configure mapping of Commander Service and Liason Service role against a Type.

Create a ticket from red button 'Report Incident'

Slack channel will be created

Requestor and Commander Service 'IC-oncall' person will only be added in the channel by automation.

Expected behavior
Once the slack channel is created, all the corresponding configured on-call members (IC, Liason, Scribe) and requestor should be added in slack channel automatically.

Yep, it's a bug. I'll cut a PR to fix it.


[Bug]: In-memory tables are not queryable

What happened?
Using an in-memory connection I cannot access any metadata about nor query any tables that were created in the connection:
In [1]: import sqlalchemy as sa

In [2]: eng = sa.create_engine("duckdb:///:memory:")

In [3]: eng.execute("CREATE TABLE t (x int)")
Out[3]: <sqlalchemy.engine.cursor.LegacyCursorResult at 0x7f26134ae9b0>

In [4]: eng.execute("SHOW TABLES").fetchall()
Out[4]: []

Trying to query the table also fails with a very large stack trace. I've put that into the log output section below.
Stranger still, when I call .fetchall() with the in-memory connection things seem to work fine:
In [16]: eng = sa.create_engine("duckdb:///:memory:")

In [17]: eng.execute("CREATE TABLE t (x int)").fetchall()
Out[17]: []

In [18]: eng.execute("SHOW TABLES").fetchall()
Out[18]: [('t',)]

In [19]: eng.execute("SELECT * FROM t").fetchall()
Out[19]: []

Using a connection that refers to a database on disk doesn't have this problem:
In [5]: eng = sa.create_engine("duckdb:///test.ddb")

In [6]: eng.execute("CREATE TABLE t (x int)")
Out[6]: <sqlalchemy.engine.cursor.LegacyCursorResult at 0x7f26125ec970>

In [7]: eng.execute("SHOW TABLES").fetchall()
Out[7]: [('t',)]

DuckDB Engine Version
0.2.0
DuckDB Version
v0.4.0
Relevant log output
In [26]: eng = sa.create_engine("duckdb:///:memory:")

In [27]: eng.execute("CREATE TABLE t (x int)")
Out[27]: <sqlalchemy.engine.cursor.LegacyCursorResult at 0x7f2583189210>

In [28]: eng.execute("SELECT * FROM t").fetchall()
---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)
Input In [28], in <cell line: 1>()
----> 1 eng.execute("SELECT * FROM t").fetchall()

File <string>:2, in execute(self, statement, *multiparams, **params)

File /nix/store/3gvi1v0llh7b93wpqh31aqsqqr5nnrwk-python3-3.10.5-env/lib/python3.10/site-packages/sqlalchemy/util/deprecations.py:402, in _decorate_with_warning.<locals>.warned(fn, *args, **kwargs)
    400 if not skip_warning:
    401     _warn_with_version(message, version, wtype, stacklevel=3)
--> 402 return fn(*args, **kwargs)

File /nix/store/3gvi1v0llh7b93wpqh31aqsqqr5nnrwk-python3-3.10.5-env/lib/python3.10/site-packages/sqlalchemy/engine/base.py:3176, in Engine.execute(self, statement, *multiparams, **params)
   3158 """Executes the given construct and returns a
   3159 :class:`_engine.CursorResult`.
   3160
   (...)
   3173
   3174 """
   3175 connection = self.connect(close_with_result=True)
-> 3176 return connection.execute(statement, *multiparams, **params)

File /nix/store/3gvi1v0llh7b93wpqh31aqsqqr5nnrwk-python3-3.10.5-env/lib/python3.10/site-packages/sqlalchemy/engine/base.py:1291, in Connection.execute(self, statement, *multiparams, **params)
   1282 if isinstance(statement, util.string_types):
   1283     util.warn_deprecated_20(
   1284         "Passing a string to Connection.execute() is "
   1285         "deprecated and will be removed in version 2.0.  Use the "
   (...)
   1288         "driver-level SQL string."
   1289     )
-> 1291     return self._exec_driver_sql(
   1292         statement,
   1293         multiparams,
   1294         params,
   1295         _EMPTY_EXECUTION_OPTS,
   1296         future=False,
   1297     )
   1299 try:
   1300     meth = statement._execute_on_connection

File /nix/store/3gvi1v0llh7b93wpqh31aqsqqr5nnrwk-python3-3.10.5-env/lib/python3.10/site-packages/sqlalchemy/engine/base.py:1595, in Connection._exec_driver_sql(self, statement, multiparams, params, execution_options, future)
   1585         (
   1586             statement,
   1587             distilled_params,
   (...)
   1591             statement, distilled_parameters, execution_options
   1592         )
   1594 dialect = self.dialect
-> 1595 ret = self._execute_context(
   1596     dialect,
   1597     dialect.execution_ctx_cls._init_statement,
   1598     statement,
   1599     distilled_parameters,
   1600     execution_options,
   1601     statement,
   1602     distilled_parameters,
   1603 )
   1605 if not future:
   1606     if self._has_events or self.engine._has_events:

File /nix/store/3gvi1v0llh7b93wpqh31aqsqqr5nnrwk-python3-3.10.5-env/lib/python3.10/site-packages/sqlalchemy/engine/base.py:1862, in Connection._execute_context(self, dialect, constructor, statement, parameters, execution_options, *args, **kw)
   1859             branched.close()
   1861 except BaseException as e:
-> 1862     self._handle_dbapi_exception(
   1863         e, statement, parameters, cursor, context
   1864     )
   1866 return result

File /nix/store/3gvi1v0llh7b93wpqh31aqsqqr5nnrwk-python3-3.10.5-env/lib/python3.10/site-packages/sqlalchemy/engine/base.py:2047, in Connection._handle_dbapi_exception(self, e, statement, parameters, cursor, context)
   2043         util.raise_(
   2044             sqlalchemy_exception, with_traceback=exc_info[2], from_=e
   2045         )
   2046     else:
-> 2047         util.raise_(exc_info[1], with_traceback=exc_info[2])
   2049 finally:
   2050     del self._reentrant_error

File /nix/store/3gvi1v0llh7b93wpqh31aqsqqr5nnrwk-python3-3.10.5-env/lib/python3.10/site-packages/sqlalchemy/util/compat.py:208, in raise_(***failed resolving arguments***)
    205     exception.__cause__ = replace_context
    207 try:
--> 208     raise exception
    209 finally:
    210     # credit to
    211     # https://cosmicpercolator.com/2016/01/13/exception-leaks-in-python-2-and-3/
    212     # as the __traceback__ object creates a cycle
    213     del exception, replace_context, from_, with_traceback

File /nix/store/3gvi1v0llh7b93wpqh31aqsqqr5nnrwk-python3-3.10.5-env/lib/python3.10/site-packages/sqlalchemy/engine/base.py:1819, in Connection._execute_context(self, dialect, constructor, statement, parameters, execution_options, *args, **kw)
   1817                 break
   1818     if not evt_handled:
-> 1819         self.dialect.do_execute(
   1820             cursor, statement, parameters, context
   1821         )
   1823 if self._has_events or self.engine._has_events:
   1824     self.dispatch.after_cursor_execute(
   1825         self,
   1826         cursor,
   (...)
   1830         context.executemany,
   1831     )

File /nix/store/3gvi1v0llh7b93wpqh31aqsqqr5nnrwk-python3-3.10.5-env/lib/python3.10/site-packages/duckdb_engine/__init__.py:185, in Dialect.do_execute(self, cursor, statement, parameters, context)
    178 def do_execute(
    179     self,
    180     cursor: ConnectionWrapper,
   (...)
    183     context: PGExecutionContext,
    184 ) -> None:
--> 185     cursor.execute(statement, parameters, context)

File /nix/store/3gvi1v0llh7b93wpqh31aqsqqr5nnrwk-python3-3.10.5-env/lib/python3.10/site-packages/duckdb_engine/__init__.py:107, in ConnectionWrapper.execute(self, statement, parameters, context)
    105     return
    106 else:
--> 107     raise e

File /nix/store/3gvi1v0llh7b93wpqh31aqsqqr5nnrwk-python3-3.10.5-env/lib/python3.10/site-packages/duckdb_engine/__init__.py:97, in ConnectionWrapper.execute(self, statement, parameters, context)
     95         self.c.execute(statement)
     96     else:
---> 97         self.c.execute(statement, parameters)
     98 except RuntimeError as e:
     99     if e.args[0].startswith("Not implemented Error"):

RuntimeError: Python Object module not suitable for replacement scans

Code of Conduct

[X] I agree to follow this project's Code of Conduct

Using the duckdb module directly seems to work as expected:
In [1]: import duckdb

In [2]: con = duckdb.connect()

In [3]: con.execute("CREATE TABLE t (x int)")
Out[3]: <duckdb.DuckDBPyConnection at 0x7f5ce1aa6070>

In [4]: con.execute("SHOW TABLES").fetchall()
Out[4]: [('t',)]

Hi @cpcloud, this is an interesting one
I can answer one question easily at least - your RuntimeError: Python Object module not suitable for replacement scans error is related to the table name t colliding with a variable name somewhere inside sqlalchemy or ipython, I think. The duckdb python client has an odd feature where it searches parent frames for variables that contain objects it can query, and this is a side effect of that.
Your actual issue though requires a bit more investigation on both our parts however, but my initial investigation points in the direction of a weird interaction between ipython and sqlalchemy? Or at the very least I've only been able to reproduce it within ipython
This at least seems to work, but it raises more questions than it answers:
In [1]: import sqlalchemy as sa
In [2]: eng = sa.create_engine("duckdb:///:memory:")
In [3]: eng.execute("CREATE TABLE test (x int)").fetchall()
Out[3]: []
In [4]: eng.execute("SHOW TABLES").fetchall()
Out[4]: [('test',)]

@Mause Thanks!
I'm able to reproduce this in a plain interpreter:
>>> import sqlalchemy as sa
>>> eng = sa.create_engine("duckdb:///:memory:")
>>> eng.execute("CREATE TABLE t (x int)")
<sqlalchemy.engine.cursor.LegacyCursorResult object at 0x7f5a509bf130>
>>> eng.execute("SHOW TABLES").fetchall()
[]

@cpcloud huh
Can you confirm if the issue still appears if you put that code in a file and run it directly?

Wow, good times.
❯ bat ~/tmp/test_create.py -n -p
import sqlalchemy as sa
eng = sa.create_engine("duckdb:///:memory:")
eng.execute("CREATE TABLE t (x int)")
tables = eng.execute("SHOW TABLES").fetchall()
print(tables)
❯ python ~/tmp/test_create.py
[('t',)]

Okay, so it turns out the issue here is much simpler than I first thought. Under the hood, sqlalchemy is creating a new connection - for on disk databases, this works fine, and connects to the same database. For DuckDB in memory databases however, it's essentially just creating a new database
I've asked the duckdb folks if there's a way around this, if there isn't, I might just have to add some caching of connections to duckdb-engine

It might be worth looking into what the sqlite dialect does, since it has the same in-memory feature and doesn't reproduce the same bug.


Update README

This PR updates the README to include explanations on input/output, examples, and links to other helpful references.
🚧 do not merge - still testing examples for correctness
~All examples are tested.~

looks good for now, I wonder if you could include the defaults we are providing already in the action.yml

looks really good. I wonder if you could include the defaults we are providing already in the action.yml

Sure - I'll add required and defaults.
Question about the credentials fields:

Is it true that if a user wanted to provide a session token instead of the access key ID/secret access key pair, they wouldn't be able to because the ID/secret pair is required?

looks really good. I wonder if you could include the defaults we are providing already in the action.yml

@gagoar sure - I'll add required and defaults.
Question about the credentials fields:

Is it true that if a user wanted to provide a session token instead of the access key ID/secret access key pair, they wouldn't be able to because the ID/secret pair is required?

the configuration ask you for that right now, we can change that just changing the required: false
also this is why I've configure them that way, https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/loading-node-credentials-environment.html

@cyamonide the signature for the sdk doesn't make the accessKeyId or secretAccessKey optional.

I think is optional because when it fetches it will sign the request with the session token if present but it will not remove the need for the other 2 attributes.

when you are writing your examples do you mind testing it with invoke-aws-lambda@master instead of using v3?


Addmessage endpoint gives error in message type

Hello,
I am trying to use this endpoint : https://developers.google.com/wallet/tickets/events/rest/v1/eventticketobject/addmessage, in order to send a message to the user that has added the pass ij the GPay. I am building the message body like this :
 let add_message_body = {};
    add_message_body = {
        message: {
            kind: "walletobjects#walletObjectMessage",
            header: header,
            body: body,
            id: message_id,
            messageType: { type: "string", enum: ["TEXT"] }
        }
    }

and I am always getting this error :
  code: 400,
   errors: [
     {
         message: "Invalid value at 'add_message_request.message' (message_type), Starting an object on a scalar field",
         reason: 'invalid'
     }
  ]

Is there an other way to use enum in json ?

Hey @Eleftheria-99, although this isn't an Auth-related issue, the message property should be messages - an array of objects: https://developers.google.com/wallet/tickets/events/rest/v1/eventticketobject#resource:-eventticketobject