text:
[Bug] streamx-console v1.1.1 部署启动不成功

请在提交你的 issue 前，请回答以下问题，这有助于社区快速定位问题，谢谢！ 🙏
Environment Description（运行环境描述）

StreamX Version: v1.1.1
JVM version (java -version):v1.8
OS version (uname -a if on a Unix-like system): centos7

Bug Description（Bug 描述）
我在本地机器(mac,java15)进行的编译，对编译压缩包解压后发到测试集群机器，执行start.sh. 脚本无异常。但检查logs时发现以下异常，且页面无法访问1000服务。检查数据已经有部分初始化信息（不知道全不全），如下：
How to Reproduce（如何重现这个 Bug）
重现 Bug 现场的步骤，见描述。
Additional context（额外的上下文信息）
2021-09-26 17:04:26 | INFO  | main | com.baomidou.dynamic.datasource.DynamicRoutingDataSource | [StreamX] closing dynamicDatasource  ing....
2021-09-26 17:04:26 | INFO  | main | com.zaxxer.hikari.HikariDataSource | [StreamX] primary - Shutdown initiated...
2021-09-26 17:04:26 | INFO  | main | com.zaxxer.hikari.HikariDataSource | [StreamX] primary - Shutdown completed.
2021-09-26 17:04:26 | INFO  | main | org.springframework.boot.autoconfigure.logging.ConditionEvaluationReportLoggingListener | [StreamX]
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2021-09-26 17:04:26 | ERROR | main | org.springframework.boot.SpringApplication | [StreamX] Application run failed
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'envInitializer': Unsatisfied dependency expressed through field 'settingService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flywayInitializer' defined in class path resource [org/springframework/boot/autoconfigure/flyway/FlywayAutoConfiguration$FlywayConfiguration.class]: Invocation of init method failed; nested exception is org.flywaydb.core.api.FlywayException: Validate failed: Detected failed migration to version 1.1.2 (upgrade db)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:643)
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:119)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:399)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1420)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:593)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:516)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:324)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:897)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:879)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:551)
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:143)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:758)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:750)
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:405)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:315)
at com.streamxhub.streamx.console.StreamXConsole.main(StreamXConsole.java:66)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flywayInitializer' defined in class path resource [org/springframework/boot/autoconfigure/flyway/FlywayAutoConfiguration$FlywayConfiguration.class]: Invocation of init method failed; nested exception is org.flywaydb.core.api.FlywayException: Validate failed: Detected failed migration to version 1.1.2 (upgrade db)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1794)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:594)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:516)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:324)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:311)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1307)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1227)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:640)
... 18 common frames omitted
Caused by: org.flywaydb.core.api.FlywayException: Validate failed: Detected failed migration to version 1.1.2 (upgrade db)
at org.flywaydb.core.Flyway.doValidate(Flyway.java:1482)
at org.flywaydb.core.Flyway.access$100(Flyway.java:85)
at org.flywaydb.core.Flyway$1.execute(Flyway.java:1364)
at org.flywaydb.core.Flyway$1.execute(Flyway.java:1356)
at org.flywaydb.core.Flyway.execute(Flyway.java:1711)
at org.flywaydb.core.Flyway.migrate(Flyway.java:1356)
at org.springframework.boot.autoconfigure.flyway.FlywayMigrationInitializer.afterPropertiesSet(FlywayMigrationInitializer.java:65)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1853)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1790)
... 30 common frames omitted
Requirement or improvement（诉求 & 改进建议）

我还没开始研究代码，不知道是我编译和部署环境是否存在差异导致的问题，还是说代码的问题。

@glacierck 这是一个错误的 flyway 更新文件，原本应该归属在 k8s-feature 开发分支中，由于疏忽出现在了 main 里，我们会在 1.2.0 里删除这个错误的文件。

authors: Al-assad glacierck

repo: streamxhub/streamx


text:
Reupload schematic

Hi,
first of all, thank you very much for sharing your designs, really helped me a lot on mine.
Could you please reupload the schematic picture, because resolution is so bad I can read values of resistors for usb sensing.
Many thanks in advance.
Best regards,
Alex

hi, I've uploaded the PDF of the schematic that you can download and zoom around on to view the details easier.

source: gharchive/issue

license: MIT

license_type: permissive

license_source: github-api


text:
how to use instructions into readme

https://skyfeed.app

:) I'm actually hoping to add an instructional website to https://furryli.st - I just need to find the energy to write some HTML :3

github pages is very convenient

https://furryli.st/

authors: strideynet vilkoviak

repo: strideynet/bsky-furry-feed


text:
Add support for Carthage

It should be as easy as creating a project with a shared Framework target. I could send a PR.
See https://github.com/Carthage/Carthage

Hey @aleph7,
This code has moved to https://github.com/stripe/stripe-ios, which now has a class called STPPaymentCardTextField with similar behavior to PTKView. Our iOS SDK supports Carthage installation, so you should be covered there (just add github "stripe/stripe-ios" to your Cartfile). I'd encourage you to migrate (it should take just a few minutes, and we've written a brief guide at https://github.com/stripe/paymentkit#migration). Of course, if that doesn't work for you, or you have any trouble migrating, reply here and I'll be happy to help.
Cheers!

repo: stripe/PaymentKit

license: mit

license_source: bigquery


text:
Add missing properties to createSource types

Summary & motivation

This PR added missing properties to SourceCreateParams:

sofort
ideal
bancontact
klarna
sepa_debit

Testing & documentation

Used existing tests.

Closing in favor of #142

source: gharchive/pull-request

authors: graceg-stripe hofman-stripe

repo: stripe/stripe-js


text:
Add confirmBacsDebitSetup TS types

Summary & motivation

This adds TypeScript types for stripe.confirmBacsDebitSetup.
Bacs is GA now 🎉
Testing & documentation

This is a Types change only. Type tests added.

Nice catch, thank you Christopher! I've committed those updated URLs.


text:
Floyd's Algorithm (Tortoise and Hair)

I would be adding the solution to problem 'Detecting cycle in linked list' using tortoise and hair algorithm in C++. It is a very common DSA problem asked in many tech interviews.
example: input=> head = [3 , 2 , 0 , -4]      pos = 1
output = true
Explanation: There is a cycle in this linked list where the tail connects to the 1st node (index 1)
Please assign me this issue under the tag of Hactoberfest2024

@strivedi4u  please assign me this issue , I can effiiciently add this algorithm in 2-3 programming languages.


text:
Tutorial or Video of how to use Kubernetes

Is your feature request related to a problem? Please describe.
I am a total NOOB for Kubernetes as there is no reason for me to use it. Therefore, I'd like a video tutorial (or even an actual tutorial) son specific implementations. Whether its using AWS, GCP, or whatever, it would be great to get a step-by-step tutorial on how to do this. The current "tutorial" is run this descriptor file and make a values yaml file. This is assuming the user knows what those things even are along AND implies I have setup things like kubectl and helm on my machine. You may find a security engineer who knows Kubernetes very well but that is a RARE find (I don't know ANY who use Kubernetes and understand it completely).
Describe the solution you'd like
A 1 - 2 minute video (something short) just showing me how to do this. Should probably have multiple at least showing how to implement with a cloud provider (AWS, GCP, Azure).
Describe alternatives you've considered
I tried setting up myself and even got on a call with StrongDM support and couldn't get it working. I was told eventually there will be a terraform script (or something) that does all this for me. This is how I would approach the solution as I like to make things very easy for end users and using IaaC (Infrastructure as Code) would be optimal for this solution. Likely, one of the developers here can whip something up in a few hours.
Additional context
No additional context
IMPORTANT: Remember to select a label and project

Thanks for reaching out @mhintz-clickup
I commented this request with Rick - the CSM assigned to your account
He'll reach out with a proper update on this

authors: camposer mhintz-clickup

repo: strongdm/accessbot


text:
Add --meta-for=package to store package information in Meta element

Similar to architecture, the OS environment might not have any relevance to the package for which the SWID Tag is being produced -- I can generate Tag for Fedora (or even Ubuntu) package on RHEL or CentOS. With --meta-for=package it is possible to use <Meta .../> element for package information, also adding package summary information.

Looks good to me. If Andreas has no objections I'd merge this to master.

Rebased on master to resolve conflict for each merge -> 80b3d1beff944e00954f0752829158e1c433644e.

authors: adelton tobiasbrunner

repo: strongswan/swidGenerator


text:
Add sanity check for collection progress

If a user still has old cached playerData in their browser storage from before 7ee0c2c94bde377e716a4e10927dbdd421f30ceb went live, they'll get a white page upon accessing crewretrieval.tsx

I thought about this but it's incredibly unlikely. The chances of someone managing to pull the new version of the JS in the same tab where sessionStorage has the data is slim-to-none.

No harm I guess.

repo: stt-datacore/website


text:
🛑 Beefs and Beers is down

In 3d14352, Beefs and Beers (https://beefsandbeers.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Beefs and Beers is back up in 8553111 after 6 minutes.

repo: studiovlijmscherp/uptime


text:
tar命令出错

gzip: stdout: No space left on device
/usr/bin/tar: cache.tgz: Wrote only 4096 of 10240 bytes
/usr/bin/tar: Child returned status 1
/usr/bin/tar: Error is not recoverable: exiting now
Warning: Failed to save: Tar failed with error: The process '/usr/bin/tar' failed with exit code 2

没空间，你需要在编译前多清理一些文件，整理多一些空间出来

大佬这是编译后的磁盘使用
Filesystem                      Type      Size  Used Avail Use% Mounted on
/dev/root                       ext4       84G   84G   48M 100% /
devtmpfs                        devtmpfs  3.4G     0  3.4G   0% /dev
tmpfs                           tmpfs     3.4G  4.0K  3.4G   1% /dev/shm
tmpfs                           tmpfs     694M  1.2M  693M   1% /run
tmpfs                           tmpfs     5.0M     0  5.0M   0% /run/lock
tmpfs                           tmpfs     3.4G     0  3.4G   0% /sys/fs/cgroup
/dev/loop0                      squashfs   92M   92M     0 100% /snap/lxd/24061
/dev/loop1                      squashfs   64M   64M     0 100% /snap/core20/2015
/dev/loop2                      squashfs   41M   41M     0 100% /snap/snapd/19993
/dev/sda15                      vfat      105M  6.1M   99M   6% /boot/efi
/dev/sdb1                       ext4       14G   13G  100M 100% /mnt
tmpfs                           tmpfs     694M     0  694M   0% /run/user/1001
/dev/mapper/vgstorage-lvstorage btrfs      31G   16G   15G  52% /home/runner/work/Actions-OpenWrt/Actions-OpenWrt
这个tar不是在Actions-OpenWrt压缩吗？

没空间了

repo: stupidloud/cachewrtbuild


text:
'Value' is not a subtype of type 'Map<String, dynamic>'

Hi.
Thanks for the package. It's what I really needed. However, I can't seem to make it parse any Firestore document. Here is what I am doing.
Map<String, dynamic> trainerJson = firestoreParser.parseFirestoreDocument(
    documentJson: response.documents![0].toJson());

I get an error saying 'Value' is not a subtype of type 'Map<String, dynamic>'
I'm attaching a screenshot of how the document looks like before I attempt to parse it with your package. Is there a type of field that is not supported? Or what might be the issue?

Hi! I have received your message, I will examine your problem and see what
is wrong.
Thanks for using my package
Le jeu. 10 févr. 2022 à 11:35, Catalin Morosan @.***> a
écrit :

Hi.
Thanks for the package. It's what I really needed. However, I can't seem
to make it parse any Firestore document. Here is what I am doing.
Map<String, dynamic> trainerJson = firestoreParser.parseFirestoreDocument(
documentJson: response.documents![0].toJson());
I get an error saying 'Value' is not a subtype of type 'Map<String,
dynamic>'
I'm attaching a screenshot of how the document looks like before I attempt
to parse it with your package. Is there a type of field that is not
supported? Or what might be the issue?
[image: Screenshot 2022-02-10 at 12 33 22]
https://user-images.githubusercontent.com/18688/153389323-fab3e82c-5a3b-46a3-8a15-b4b71ae9390d.png
—
Reply to this email directly, view it on GitHub
https://github.com/stvndelucis/firestore_api_parser/issues/1, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/APG54RXVVGHRIHJUUIQQ2SLU2OIIFANCNFSM5OAIPW5Q
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

Can you attach me the .json file of your firestore json ? thanks
Le jeu. 10 févr. 2022 à 12:08, Steeven Aime @.***> a
écrit :

Hi! I have received your message, I will examine your problem and see what
is wrong.
Thanks for using my package
Le jeu. 10 févr. 2022 à 11:35, Catalin Morosan @.***>
a écrit :

Hi.
Thanks for the package. It's what I really needed. However, I can't seem
to make it parse any Firestore document. Here is what I am doing.
Map<String, dynamic> trainerJson = firestoreParser.parseFirestoreDocument(
documentJson: response.documents![0].toJson());
I get an error saying 'Value' is not a subtype of type 'Map<String,
dynamic>'
I'm attaching a screenshot of how the document looks like before I
attempt to parse it with your package. Is there a type of field that is not
supported? Or what might be the issue?
[image: Screenshot 2022-02-10 at 12 33 22]
https://user-images.githubusercontent.com/18688/153389323-fab3e82c-5a3b-46a3-8a15-b4b71ae9390d.png
—
Reply to this email directly, view it on GitHub
https://github.com/stvndelucis/firestore_api_parser/issues/1, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/APG54RXVVGHRIHJUUIQQ2SLU2OIIFANCNFSM5OAIPW5Q
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

@stvndelucis Hi. Sorry, I haven't seen you latest message.
I've figured out the issue. I am using https://pub.dev/packages/googleapis to call the Firestore API. And when I call .toJson() on the returned documents, it does not map the internal fields to Map<String, dynamic> and that is the reason the parseFirestoreDocument() method fails.
I made a local copy of your package and calling entry.value.toJson() in several places. And I also parse the int/double values because the googleapis package returns the fields as Strings.
Not sure if there is anything to do on your part. Your package expects a valid json as a Map<dynamic, dynamic> and I wasn't providing exactly that because the googleapis packages isn't giving me that.

authors: kaciula stvndelucis


text:
[6326]Testy jednostkowe

Ticket: BUG 6326
Wykonano testy jednostkowe

Squash commits.

authors: dpolcyn efeniks


text:
🛑 Panel is down

In 60d50bd, Panel (https://portal.xoro-hosting.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Panel is back up in 7f1c213 after 36 minutes.

repo: stxrlite/xoro-updates


text:
Uncaught Error: ENOENT: no such file or directory, stat '~/subl'

[Enter steps to reproduce:]

...
...

Atom: 1.43.0 x64
Electron: 4.2.7
OS: Mac OS X 10.15.2
Thrown From: atom-terminal-panel package 4.4.4
Stack Trace
Uncaught Error: ENOENT: no such file or directory, stat '/Users/mccstan/subl'
At fs.js:115

Error: ENOENT: no such file or directory, stat '/Users/mccstan/subl'
    at statSync (fs.js:829:3)
    at Object.fs.statSync (ELECTRON_ASAR.js:284:27)
    at ATPOutputView.module.exports.ATPOutputView._fileInfoHtml (/packages/atom-terminal-panel/lib/atp-view.coffee:1081:19)
    at /packages/atom-terminal-panel/lib/atp-view.coffee:909:25
    at Array.forEach (<anonymous>)
    at ATPOutputView.module.exports.ATPOutputView.ls (/packages/atom-terminal-panel/lib/atp-view.coffee:908:11)
    at command (/packages/atom-terminal-panel/lib/atp-builtins-commands.coffee:25:20)
    at ATPOutputView.module.exports.ATPOutputView.exec_ (/packages/atom-terminal-panel/lib/atp-view.coffee:520:17)
    at ATPOutputView.module.exports.ATPOutputView.exec (/packages/atom-terminal-panel/lib/atp-view.coffee:456:13)
    at ATPOutputView.module.exports.ATPOutputView.onCommand (/packages/atom-terminal-panel/lib/atp-view.coffee:700:12)
    at /packages/atom-terminal-panel/lib/atp-view.coffee:193:8)
    at Object.call (/packages/atom-terminal-panel/node_modules/jquery-autocomplete-js/autocomplete.js:52:25)
    at Object.onEnter (/packages/atom-terminal-panel/node_modules/jquery-autocomplete-js/autocomplete.js:663:33)
    at HTMLInputElement.keyDownHandler (/packages/atom-terminal-panel/node_modules/jquery-autocomplete-js/autocomplete.js:885:11)
    at HTMLInputElement.dispatch (/packages/atom-terminal-panel/node_modules/jquery/dist/jquery.js:4435:9)
    at HTMLInputElement.elemData.handle (/packages/atom-terminal-panel/node_modules/jquery/dist/jquery.js:4121:28)

Commands

Non-Core Packages
atom-json 0.6.0
atom-terminal-panel 4.4.4
ide-json 0.2.1
language-csv 1.1.2

Just remove this file : rm ~/subl

repo: styczynski/atom-terminal-panel


text:
path.extname is deprecated.

Argument to path.extname must be a string
path.extname (C:\Users\User\AppData\Local\atom\app-1.32.2\resources\app.asar\src\electron-shims.js:20:10)
ATPOutputView.getCwd (C:\Users\User\.atom\packages\atom-terminal-panel\lib\atp-view.coffee:1874:17)
BuiltinVariables.parseFull (C:\Users\User\.atom\packages\atom-terminal-panel\lib\atp-builtins-variables.coffee:188:77)
BuiltinVariables.parseHtml (C:\Users\User\.atom\packages\atom-terminal-panel\lib\atp-builtins-variables.coffee:111:16)
ATPOutputView.parseTemplate (C:\Users\User\.atom\packages\atom-terminal-panel\lib\atp-view.coffee:664:36)
ATPPanel.updateStatusBar (C:\Users\User\.atom\packages\atom-terminal-panel\lib\atp-panel.coffee:190:50)

Never mind actually i just checked my path selections and saw system 32 wasnt included


text:
[Typescript + Suggestion] Add withStyles, withAttrs Api

A general situation is applying the same stylesheet on different components and tags. In Vanilla Javascript it is easy to curry styled function:
const withStyles = (...styleRules) => {
    let settedAttributes = {}
    const storeAttrs = (attributes) => Object.assign(settedAttributes, attributes)
    const applyStyles = (component) => styled(component).attrs(settedAttributes)(...styleRules)
    applyStyles.attrs = (attributes) => {
        storeAttrs(attributes)
        return applyStyles
    }
    return applyStyles
}

const withAttrs = ...blabla

// general usage:

const StyledComponent = withStyles`
   font-size: 50px;
`.attrs({ data: 'hello' }).attrs({ title: 'world' })(Component)

// specific usage:

const makeFullHeight = withStyles`
    height: 100%
`
const FullHeightSidebar = makeFullHeight(Sidebar)
const FullHeightCard = makeFullHeight(Card)

But in typescript, It's hard to define the withStyles function. One reason is that it is hard to declare the component types which are accepted by styled function. Unless extracting a lot of declaration from here and reorganize them to shape the withStyles. I also tried to use generics to curry styled function, unfortunately, it failed. See https://github.com/Microsoft/TypeScript/issues/21062
styled itself used many overloads to implementation. It's what Typescript not good at and I can't properly curry it with type-safe.
So I plead Add built-in withStyles and withAttrs function and their Typescript types declarations to solve this problem.

Hey folks, TS typings for styled-components have been moved to DefinitelyTyped, so please feel free to move your issue there where you'll receive better community support.

authors: probablyup zheeeng

repo: styled-components/styled-components


text:
Retrieve All Job Titles

It would be pretty cool to be able to obtain all the job titles. Nifty feature in cases such as forms where users can pick their job titles.

Job titles are randomly generated.

Addressed in #540

authors: MyklClason gczh stympy

repo: stympy/faker


text:
Audiobooks not downloading as the URL is now too long

Before you open an issue
Please make sure you've upgraded to the latest version of kobodl on pypi or docker.  Also read through the troubleshooting guide.  Try running with --debug enabled and see what comes up in the debug log.
Do not erase this template, it's here to help you.
Describe the issue
It looks like now kobodl is failing due to the URL returned from the kobo servers being too long for something in the python libraries. I receive a 403 Client error in __DownloadAudiobook but copying the URL manually to firefox loads the manifest. I can then copy then also copy the audiotracks from the manifest into firefox and the audiofile will load correctly.
To Reproduce
Steps to reproduce the behavior:
just call kobodl book get

With -f '{ShortRevisionId}'  I get:
ownloading f2e31e75-864d-4eb4-b105-0559fe9e7f27 to /home/louise/kobo_downloads/f2e31e75
Traceback (most recent call last):
File "/home/louise/kobodl/bin/kobodl", line 8, in
sys.exit(cli())
File "/home/louise/kobodl/lib/python3.10/site-packages/click/core.py", line 829, in call
return self.main(*args, **kwargs)
File "/home/louise/kobodl/lib/python3.10/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/home/louise/kobodl/lib/python3.10/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/louise/kobodl/lib/python3.10/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/louise/kobodl/lib/python3.10/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/louise/kobodl/lib/python3.10/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/home/louise/kobodl/lib/python3.10/site-packages/click/decorators.py", line 33, in new_func
return f(get_current_context().obj, *args, **kwargs)
File "/home/louise/kobodl/lib/python3.10/site-packages/kobodl/commands/book.py", line 83, in get
actions.GetBookOrBooks(usercls, output_dir, formatStr=format_str, productId=pid)
File "/home/louise/kobodl/lib/python3.10/site-packages/kobodl/actions.py", line 231, in GetBookOrBooks
kobo.Download(bookMetadata, book_type == BookType.AUDIOBOOK, outputFilePath)
File "/home/louise/kobodl/lib/python3.10/site-packages/kobodl/kobo.py", line 349, in Download
self.__DownloadAudiobook(downloadUrl, outputPath)
File "/home/louise/kobodl/lib/python3.10/site-packages/kobodl/kobo.py", line 277, in __DownloadAudiobook
response.raise_for_status()
File "/home/louise/kobodl/lib/python3.10/site-packages/requests/models.py", line 1021, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://storedownloads.kobo.com/download?downloadToken=
Loading the url into firefox though gives me the metadata and I can then download it manually. Curiously using curl gives me cloudflare error about being blocked so maybe something else is going on.

Loading the url into firefox though gives me the metadata and I can then download it manually. Curiously using curl gives me cloudflare error about being blocked so maybe something else is going on.

Here's a potentially related comment saying that using the urllib module instead of the requests module might help some 403 responses: https://stackoverflow.com/a/74674276

I've also run into this problem - the original stack looks like this:
Traceback (most recent call last):   File "kobodl\__main__.py", line 5, in <module>   File "click\core.py", line 829, in __call__   File "click\core.py", line 782, in main   File "click\core.py", line 1259, in invoke   File "click\core.py", line 1259, in invoke   File "click\core.py", line 1066, in invoke   File "click\core.py", line 610, in invoke   File "click\decorators.py", line 33, in new_func   File "kobodl\commands\book.py", line 83, in get   File "kobodl\actions.py", line 231, in GetBookOrBooks   File "kobodl\kobo.py", line 346, in Download   File "kobodl\kobo.py", line 276, in __DownloadAudiobook   File "requests\models.py", line 1021, in raise_for_status requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://storedownloads.kobo.com/download?downloadToken= [11580] Failed to execute script '__main__' due to unhandled exception!
This appears to match the stack above after using -f '{ShortRevisionId}'. I also retried with -f '{ShortRevisionId}' and got the same stack again. This happened for 3 separate audiobooks I was attempting to download, so definitely seems to be a problem with them.
As noted, I could load the json and download each track individually so the ability to get the content still seems to be there, just needs some tweaking.

Using cloudscraper fixed this issue for me. Replacing all references to self.Session.get(url) with scraper.get(url) stopped the forbidden 403 error from being generated.

authors: geekylou jljusten leela1255

repo: subdavis/kobo-book-downloader

license: Unlicense


text:
🛑 Cubari (reddit) is down

In d9e837a, Cubari (reddit) (https://cubari.moe/read/reddit/16cj0xv/?cache_buster=$GITHUB_RUN_NUMBER) was down:

HTTP code: 500
Response time: 170 ms

Resolved: Cubari (reddit) is back up in 695983a after 58 minutes.

repo: subject-f/cubari-status-page


text:
Advancing 0.14.0-m1 release to status: released

Advancing 0.14.0-m1 release to status: released

Was trying to send this, good test of the automation I guess.
Commit 1e8900cef3:
1: T1 Title exceeds max length (91>72): "Update dependencies (submariner submariner-operator cloud-prepare lighthouse) to v0.14.0-m1"
make: *** [/opt/shipyard/Makefile.inc:190: gitlint] Error 1

repo: submariner-io/releases


text:
Add a cleanup handling interface to route agent

This removes technical debt where specific knowledge
related to cable drivers was implemented in the route-agent.
Introduces an interface which can be exposed from multiple
places, for example can be used by [1] to improve the
separation of concerns in the code.
[1] https://github.com/submariner-io/submariner/pull/762
Co-authored-by: Sridhar Gaddam sgaddam@redhat.com

Looks good. A nit would be to rename default_cleanups.go -> default_cleanup.go for consistency.

That's too nitpicky ;-) it's actually multiple cleanups inside ;) but ok :-)

repo: submariner-io/submariner


text:
Test whether AssertionError is deemed an Error

My fix in inspectobj-pmb wil be to delegate error identification to the is-error package so I can maintain it in one central place.
PS: You'll probably want to add spaces in ln. 40 and 44. I've just deleted the lines, easier for my rebase later.

fwiw it's fine for newly added lines to not have trailing whitespace; I always remove trailing whitespace on lines I've touched for other reasons. The preferred style isn't consistent, it's "don't make whitespace-only changed".

No problem, PR was just meant to make adding easier in case you want a test for this. You can always roll your own of course, if you even care about AssertionError.

AssertionErrors are already instanceof Errors; it's part of node core. Thus, it's node's job to test it, not object-inspect's.
As I pointed out above, a reliable "is error" module is impossible in JavaScript at the moment, pending https://github.com/ljharb/proposal-error-stacks

a reliable "is error" module is impossible in JavaScript at the moment,

Yeah, it's a pity we can't have the perfect thing. I prefer to use the best available thing in the meantime, and hope that community effort can collect edge case fixes to work to get it even closer to perfect.

Your proposal looks good though! :+1: Thanks for telling me, I'll subscribe it so I can use it in is-error asap.

authors: ljharb mk-pmb

repo: substack/object-inspect


text:
Fix the filter by name on CDN page

Currently, I've added a fix for filtering files by name on CDN page as I've mistakenly broken this feature two weeks ago. Need rechecking that this filter is working now.

Fixed in Master.

Fixed on prod.

repo: subutai-io/cdn


text:
Can we update the background Image dynamically ?

Hello,
Thank you for this great package ! I am trying to update the image dynamically when I press a button.
The set state have not effect on the image ... :(
Any idea how I could achieve this ?
Thank you,
Benjamin

Hello,
Thank you for this great package ! I am trying to update the image dynamically when I press a button. The set state have not effect on the image ... :(
Any idea how I could achieve this ?
Thank you, Benjamin

I'm sorry for any inconvenience.
original version[1.0.0] couldn't change drawer background image
so I had released new update version including function of your request
check new version and have a check that image can change.
thank you :)


text:
More seeds

Current seeds are not really sufficient because they don't contain everything you would need to properly work on design.
Adds more users, playlists, assets, and listens. Introduces comments, favorites, and user profiles.

@Manfred Really awesome. I'll exercise patience on that front, then.

authors: Manfred sudara

repo: sudara/alonetone


text:
Image Improvement

What's change :

no -supw anymore, superuser creation is know by default in mumble.
no host=0.0.0.0 to allow ipv6 listening

New:

CUSTOM_CONFIG_FILE , people can prefer the config file rather than env
4 databases variables, to allow mysql databases (qt5-qtbase-mysql added by apk)
welcometext by variable (MUMBLE_WELCOMETEXT) in addition to the file.

Sorry for the noise, mistakenly pushed a commit to master that these PRs depend on (since the travis integration stopped working).

authors: azlux sudoforge

repo: sudoforge/docker-images


text:
Release a new version

Waiting on npm access

Done in 5.0.0

repo: suitcss/components-button


text:
Enabling SSL functionality

Hi,
I would like to have the webinstances SSL enabled.
This seems not to be working.
Can you implement this as wel?

Hi @dannyvanderaa , I could able to do this with below method.. my setup on AWS environment, Put both web servers behind application load balancer and attach SSL Cert on LB level.  User your DNS/Route 53 for appropriate Host A records for accessing the url.
Regards,
Sreenadh


text:
Test for empty path values

Use whole object rather than using Ember.get with an empty string (which is no longer supported).

Closes #64

authors: sukima technomage

repo: sukima/ember-cli-select-picker


text:
Fix ruby version on readme

See https://github.com/sul-dlss/puppet/blob/production/hieradata/node/sul-h2-prod.stanford.edu.eyaml#LL11C20-L11C26
Why was this change made? 🤔
Fixes incorrect data. Adds herons.

Looks like we updated to 3.2.2 and the readme got updated since then, so except for our nifty little extra icons, this is not needed (or we need a rebase).

authors: jcoyne peetucket

repo: sul-dlss/happy-heron


text:
🛑 SISTEMA ROYAL-HOLIDAY is down

In 0877db4, SISTEMA ROYAL-HOLIDAY (https://www.royalholiday.com.ar/reservas/admin/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: SISTEMA ROYAL-HOLIDAY is back up in ce8c360.


text:
Lack summernote after insert image

Hi,
I use your plugin in Angular project but after insert image as base64, type in editor with delay and some times after 4 second from key-press character shown.
Thanks

Hi,How do you solve Base64 uploads?

I use another editor

authors: essivision yaoxiaofdou

repo: summernote/angular-summernote


text:
Avoid HTML escaping when setting editor value

Hi,
As mentioned in https://github.com/summernote/react-summernote/pull/51, after that PR was merged, I don't find a way to properly initialise a ReactSummernote component with HTML content. For example, if this.props.value is set to Hello world! and I use children={ this.props.value }, the editor is initialised with the HTML escaped version (i.e. Hello <b>world</b>!).
I guess I'm missing something obvious here, but I still not able to find the solution. Help? :)

I have the same issue

I have the same Issue.
So I use dangeroulySetInnerHTML in {chilren} props :)
<ReactSummernote
      children={

}

In the beginning I tried that approach too, but it adds and extra div wrapper to edited contents and that was not acceptable. Then I 'fixed' this setting the initial value using jQuery during componentDidMount(). That worked fine, but then a few more bugs popped up. At the end I switched to a different React WYSIWYG editor. I liked React Summernote simplicity and cleanness, but it looks like the project is slightly abandoned.
In any case, thanks a lot for the hint! :)

I also can just unescape the string before use it in the editor
const unescapeString = (str: string): string => {     const newString = new DOMParser().parseFromString(str ?? '', 'text/html').documentElement.textContent;     return newString != null ? DomPurify.sanitize(newString) : str; }

You can do the following
<ReactSummernote     onInit={({summernote}) => summernote('code', yourcodegoeshere)} />

authors: DenisKhay aldosolis carlosabalde wonieeVicky

repo: summernote/react-summernote


text:
sql 查询

直接用sql 查询，返回结果定义为dynamic，只会返回与语句中 主表存在得字段

SQL语句列名不要一样，db.ado.sqlquery(sql)

authors: sunkaixuan uniquejuedui

repo: sunkaixuan/SqlSugar


text:
[BUG] GPT4 AxiosError: Network Error

Describe the bug / 描述问题
无法使用gpt4
To Reproduce / 复现步骤
无
Expected behavior / 期望行为
希望修复
Screenshots / 截图

Devtools Info / 开发者工具信息
无
OS and version / 操作系统版本
macos 13.3.1
ChatALL version / ChatALL 版本
v.1.36.57
Network / 网络
是
Additional context / 其它相关信息
No response

Duplicate of #419

I meet the same problem

authors: hellolufeng shawnl111 sunner

repo: sunner/ChatALL


text:
Enable time-dependent effective areas determination in iris_tools

Picks up from PR #102 and addresses issue #27.
To allow the time-dependent effective areas to be derived using get_iris_response() in iris_tools in the same way that it is done in SSW.
The .geny files needed can be accessed at https://sohowww.nascom.nasa.gov/solarsoft/iris/response/.
References:
iris_get_response.pro
fit_iris_xput.pro
Roadmap - fit_iris_xput
Triage

Figure out how to run the function without crashing assuming, this is possible.

If the function cannot be made to run, are there simple bug fixes that can address this or is deeper understanding of what the function is doing required?

Use print statements or other techniques to go through the code and understand what each variable represents, or at the very least what type it is.  It may be helpful to look at the docstring and comments of the IDL version of the code as part of this.  Write up a document that explains this, perhaps on the IRISpy wiki.
From the above step, write a preliminary docstring for fit_iris_xput explaining what the inputs and outputs.

Benchmarking

Write a test function that will allow us to test and understand the output.
Coordinate efforts to compare results from the IDL and IRISpy versions to verify they are giving the same answers or where differences are occurring.  (Dan have the IDL version installed.)
From this, write up required To-Do tasks needed to fix any discrepancies.

Bugfixing
Make code fixes to get the Python version giving the same or effectively the same answers as the IDL version.

Most common type of bugs encountered comes from syntax, especially from converting between programming languages.
One of the more glaring and easily omitted error encountered stemmed from erroneous indentation.

Improving Python Code
Once we have a function that returns the same or similar values as the IDL version, the code will have to be made more Pythonic as well as updated to reflect more recent changes in SunPy practices.  Benchmarking/testing must be repeated and updated at each stage to ensure we are not changing the values of the output.

Using AstroPy's download_file instead of Requests' get to download the .geny files. This adds the cache and timeout functionalities to the download process.

Incorporate Time-dependent Fitted Response into Wider IRISpy Code-base

_get_interpolated_effective_area must include a call to fit_iris_xput and add a time input.
Functions further up the chain must also include a time input and pass that on to _get_interpolated_effective_area.  This chain includes iris_tools.calculate_photons_per_sec_to_radiance_factor, iris_tools.convert_or_undo_photons_per_sec_to_radiance,  andIRISSpectrogramCube.convert_to.  Must confirm if there are more cases were this chain leads.
Tests of above functions must include cases where a fitted effective area is used.

Benchmarking Cases from SSW
The .geny files can be read in Python using scipy's read save function.  See here for an example.  Also note that the out is converted to a dict for easier handling the line after.  The same attribute names should be maintained between the the IDL and Python structures.
1: Result for a start time of period of constant coef/cal_coef
Lines starting with IDL> are input
; is the IDL comment symbol
Lines without IDL> at the start are output.
IDL> restore, 'iris_sra_c_20161022.geny', /ver ; Restore 2016 response function file. Structure read out in to variable, p0.  For Python version, read in file using scipy's readsav function.  See https://github.com/sunpy/irispy/blob/master/irispy/iris_tools.py#L156
% RESTORE: Portable (XDR) SAVE/RESTORE file.
% RESTORE: Save file written by wuelser@berna, Thu Dec  8 15:50:09 2016.
% RESTORE: IDL version 8.5 (darwin, x86_64).
% RESTORE: Restored variable: P0.
IDL> time_cal_coeffs = p0.c_f_time ; Define FUV time_cal_coeffs input from the p0 variable
IDL> print, time_cal_coeffs
  1.09417e+09  1.10186e+09
  1.10532e+09  1.12933e+09
  1.12951e+09  1.13201e+09
  1.13642e+09  1.16182e+09
  1.16199e+09  2.24052e+09

IDL> ; Define FUV cal_coeffs input from the p0 variable
IDL> cal_coeffs0 = p0.coeffs_fuv[*, *, 0]
IDL> print, cal_coeffs0
     0.523856     0.274797     -6.45654
     0.236928     0.395193     -3.80189
     0.411110    0.0621537     -24.5471
     0.228041     0.247113     -1.99526
     0.128971     0.198371    -0.891251

IDL> cal_coeffs1 = p0.coeffs_fuv[*, *, 1]
IDL> print, cal_coeffs1
    -0.654571      2.90411    -0.891251
     0.957263     0.792720     -7.58577
     0.209228     0.834837     -1.94984
     0.825466     0.156275     -2.69153
     0.675337     0.149698     -1.65959

IDL> cal_coeffs2 = p0.coeffs_fuv[*, *, 2]
IDL> print, cal_coeffs2
    -0.654571      2.90411    -0.891251
     0.957263     0.792720     -7.58577
     0.209228     0.834837     -1.94984
     0.825466     0.156275     -2.69153
     0.675337     0.149698     -1.65959

IDL> ; Define time(s)
IDL> tt = fltarr(1)
IDL> tt[0] = 1.0941696e+09 ; tt is equivalent to time_obs in Python version.

IDL> ; Perform fits for FUV ranges.
IDL> fit0_fuv = fit_iris_xput(tt, p0.c_f_time, p0.coeffs_fuv[*, *, 0])
IDL> fit1_fuv = fit_iris_xput(tt, p0.c_f_time, p0.coeffs_fuv[*, *, 1])
IDL> fit2_fuv = fit_iris_xput(tt, p0.c_f_time, p0.coeffs_fuv[*, *, 2])
IDL> print, fit0_fuv, fit1_fuv, fit2_fuv
0.79865301
2.2495413
2.2495413

IDL> ; Perform fits for NUV ranges. Note the changes in p0.c_n_time and p0.coeffs_nuv variable names.
IDL> fit0_nuv = fit_iris_xput(tt, p0.c_n_time, p0.coeffs_nuv[*, *, 0])
IDL> fit1_nuv = fit_iris_xput(tt, p0.c_n_time, p0.coeffs_nuv[*, *, 1])
IDL> fit2_nuv = fit_iris_xput(tt, p0.c_n_time, p0.coeffs_nuv[*, *, 2])
IDL> print, fit0_nuv, fit1_nuv, fit2_nuv
0.23529011
0.25203046
0.25265095

Hi @kakirastern.  Thanks for setting up this PR!  I've left some comments outlining some simple initial changes.
I think there are a few things we could do to help us understand what we need to do.  I've laid those out in the description of the PR above for easy reference.  Let me know here what you think.

You are welcome @DanRyanIrish! I really like the look of the PR and think the plan appears very sound... Looking forward to contributing more to it soon. I have made some preliminary changes as per the comments in PR #102.

They look good!  Let me know whenever you're ready to report on whether you were able to get fit_iris_xput running and what bugs you found.

Yup, sure. Will take a while so will get back to you at least a couple days later.

Hi @DanRyanIrish! So I have managed to use flake8 to check on fit_iris_xput and get it running/working on a functional level with a new commit 9215373, though I am not sure what meaningful input to feed into it to debug it rigorously. I am wondering if you have some good example I could use for debugging against?

Hi @DanRyanIrish! So I have managed to use flake8 to check on fit_iris_xput and get it running/working on a functional level with a new commit 9215373, though I am not sure what meaningful input to feed into it to debug it rigorously. I am wondering if you have some good example I could use for debugging against?

I'll figure out what the meaningful input should be and run the SSW version to get the expected output.

Hi @kakirastern.  I've added a section to the description of this issue above for benchmarking cases listing the result from the SSWIDL software.  You should be able to compare the output of the Python version with this to start with.
But first see the comment I left about the indentations as nothing will work properly until that is resolved.

Thanks @DanRyanIrish for the suggestions and info! I did run into some bugs regarding the shape of a few variables defined as numpy arrays... which will need some work to fix. From what I understand of the situation thisfit_iris_xput is basically a rendering of some least-squares fit? In that case it might be easy to find out what's wrong and debug.

I will focus my time and effort to completing https://github.com/sunpy/ndcube/pull/151 first for the time being and get back to this soon after that. Hope this arrangement is okay with you.

Sounds like a good plan @kakirastern

So I finally was able to get the new function fit_iris_xput working... and I did the following:
>>> import numpy as np
>>> import scipy.io

>>> from irispy.iris_tools import fit_iris_xput

>>> response_file = '/Users/koychui/irispy-git/irispy/data/iris_sra_c_20161022.geny'
>>> raw_response_data = scipy.io.readsav(response_file)
>>> iris_response = dict([(name, raw_response_data["p0"][name][0]) for name in raw_response_data["p0"].dtype.names])

>>> time_obs = np.array([1.0941696e+09])
>>> time_cal_coeffs = iris_response.get('C_F_TIME')
>>> cal_coeffs0 = iris_response.get('COEFFS_FUV')[0,:,:]
>>> cal_coeffs1 = iris_response.get('COEFFS_FUV')[1,:,:]
>>> cal_coeffs2 = iris_response.get('COEFFS_FUV')[2,:,:]

>>> fit_iris_xput(time_obs, time_cal_coeffs, cal_coeffs0)
array([0.79865301])
>>> fit_iris_xput(time_obs, time_cal_coeffs, cal_coeffs1)
array([2.24954128])
>>> fit_iris_xput(time_obs, time_cal_coeffs, cal_coeffs2)
array([2.24954128])

If instead I perform fits for NUV ranges, I'd get the values array([0.23529011]), array([0.25203046]), and array([0.25265094]), with the last value deviating/smaller by 0.00000001.
I am not sure why the last fit carried out with the Python code yields a result that is different from the IDL fit. @DanRyanIrish, do you reckon this would imply some significant differences (in the long run)?

@DanRyanIrish Any suggestions as to what I should do next?

That's excellent news @kakirastern!  Well done!  A different of 0.00000001 is insignificant.  It's probably a rounding error in the computer itself.
The next thing to do is formalize this into a test, and to do it using the parameterize decorator so we can add more cases later.  Once that's working, we should look into trying more times so we adequately cover the parameter space.
We're moving onto phase two of the roadmap already!
(By the way, next time you compare values like this can you put the IDL and Python values side-by-side so I can easily see what the differences are?  Thanks!)

Yup, sure @DanRyanIrish. I will do better data presentation next time. (Should have made a table for it.) And, onto testing now...

And, I will set the only error of 0.00000001 as the tolerance for the test then.

And, I will set the only error of 0.00000001 as the tolerance for the test then.

1e-6 Is loads.  Probably too tight but we can loosen it as needed when we see results from other times later.

Used the default 6 decimal places as the tolerance for the fit_iris_xput test in the end...
Now I see the following failure thrown:
=================================== FAILURES ===================================
__________________________ test_fits_data_comparison ___________________________

iris_l2_test_raster = <iris.IRISSpectrograph instance
OBS ID: 3690215148
OBS Description: Large sparse 32-step raster 31x120 32s  C II   Si ... 1336 : [1, 32, 196, 514]    pix
     Si IV 1394 : [1, 32, 196, 510]    pix
   Mg II k 2796 : [1, 32, 196, 508]    pix>

    def test_fits_data_comparison(iris_l2_test_raster):
        """Make sure the data is the same in pyfits and irispy"""
        hdulist = fits.open(os.path.join(
            testpath, 'iris_l2_20170222_153635_3690215148_raster_t000_r00000.fits'))
        spectral_window1 = hdulist[0].header["TDESC1"]
        spectral_window2 = hdulist[0].header["TDESC2"]
        spectral_window3 = hdulist[0].header["TDESC3"]

        data1 = copy.deepcopy(hdulist[1].data)
        data2 = copy.deepcopy(hdulist[2].data)
        data3 = copy.deepcopy(hdulist[3].data)

        data1[hdulist[1].data == -200.] = np.nan
        data2[hdulist[2].data == -200.] = np.nan
        data3[hdulist[3].data == -200.] = np.nan

        np.testing.assert_array_almost_equal(
>           iris_l2_test_raster.data[spectral_window1].data[0].data, data1)

irispy/tests/test_spectrograph.py:145:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

x = array([[[-200., -200., -200., ..., -200., -200., -200.],
        [-200., -200., -200., ..., -200., -200., -200.],
    ...00., -200., -200., ..., -200., -200., -200.],
        [-200., -200., -200., ..., -200., -200., -200.]]], dtype=float32)
y = array([[[nan, nan, nan, ..., nan, nan, nan],
        [nan, nan, nan, ..., nan, nan, nan],
        [nan, nan, nan, ...,..., nan, nan],
        [nan, nan, nan, ..., nan, nan, nan],
        [nan, nan, nan, ..., nan, nan, nan]]], dtype=float32)
func = <ufunc 'isnan'>, hasval = 'nan'

    def func_assert_same_pos(x, y, func=isnan, hasval='nan'):
        """Handling nan/inf.

        Combine results of running func on x and y, checking that they are True
        at the same locations.

        """
        x_id = func(x)
        y_id = func(y)
        # We include work-arounds here to handle three types of slightly
        # pathological ndarray subclasses:
        # (1) all() on `masked` array scalars can return masked arrays, so we
        #     use != True
        # (2) __eq__ on some ndarray subclasses returns Python booleans
        #     instead of element-wise comparisons, so we cast to bool_() and
        #     use isinstance(..., bool) checks
        # (3) subclasses with bare-bones __array_function__ implemenations may
        #     not implement np.all(), so favor using the .all() method
        # We are not committed to supporting such subclasses, but it's nice to
        # support them if possible.
        if bool_(x_id == y_id).all() != True:
            msg = build_err_msg([x, y],
                                err_msg + '\nx and y %s location mismatch:'
                                % (hasval), verbose=verbose, header=header,
                                names=('x', 'y'), precision=precision)
>           raise AssertionError(msg)
E           AssertionError:
E           Arrays are not almost equal to 6 decimals
E
E           x and y nan location mismatch:
E            x: array([[[-200., -200., -200., ..., -200., -200., -200.],
E                   [-200., -200., -200., ..., -200., -200., -200.],
E                   [-200., -200., -200., ..., -200., -200., -200.],...
E            y: array([[[nan, nan, nan, ..., nan, nan, nan],
E                   [nan, nan, nan, ..., nan, nan, nan],
E                   [nan, nan, nan, ..., nan, nan, nan],...

/anaconda3/envs/irispy-dev/lib/python3.6/site-packages/numpy/testing/_private/utils.py:733: AssertionError

So I found out there are 3 lines in the file "test_spectrograph.py" which were causing problems before I commented them out. Not sure why they were there in the first place. Could have been used for debugging earlier. They actually appeared out of place before:
https://github.com/sunpy/irispy/pull/108/files#diff-7c42eb0d015fb3346007f43ca206dd1aR140

Well done on getting the tests to pass!  Looks great.  The next step is to make the code in fit_iris_xput more Pythonic without changing the output.  I can go through the code an make suggestions on how to go about that.

That would be great!

Thanks @DanRyanIrish for the suggestions! Will definitely work on them over the next few days.

Hi @DanRyanIrish, I have incorporated all of the suggested changes to render the fit_iris_xput function more pythonic, except for the ones that don't work in our case. Please have a look and let me know what steps to take next.

So if I do the following:
import os
import pytest

import numpy as np
import numpy.testing as np_test
import astropy.units as u
from astropy.utils.data import download_file
import scipy.io
import requests

import irispy.iris_tools as iris_tools
from irispy.iris_tools import fit_iris_xput

response_url = 'https://sohowww.nascom.nasa.gov/solarsoft/iris/response/iris_sra_c_20161022.geny'
r = download_file(response_url)
raw_response_data = scipy.io.readsav(r)
iris_response = dict([(name, raw_response_data["p0"][name][0]) for name in raw_response_data["p0"].dtype.names])
time_obs = np.array([1.0941696e+09])
time_cal_coeffs0 = iris_response.get('C_F_TIME')
time_cal_coeffs1 = iris_response.get('C_N_TIME')
cal_coeffs0 = iris_response.get('COEFFS_FUV')[0,:,:]
cal_coeffs1 = iris_response.get('COEFFS_FUV')[1,:,:]
cal_coeffs2 = iris_response.get('COEFFS_FUV')[2,:,:]
cal_coeffs3 = iris_response.get('COEFFS_NUV')[0,:,:]
cal_coeffs4 = iris_response.get('COEFFS_NUV')[1,:,:]
cal_coeffs5 = iris_response.get('COEFFS_NUV')[2,:,:]
iris_fit_expected0 = np.array([0.79865301])
iris_fit_expected1 = np.array([2.2495413])
iris_fit_expected2 = np.array([2.2495413])
iris_fit_expected3 = np.array([0.23529011])
iris_fit_expected4 = np.array([0.25203046])
iris_fit_expected5 = np.array([0.25265095])

I would get the following
Case    IDL results    Pythonic results
====    ===========    ================
FUV1    0.79865301     0.79865301
FUV2    2.2495413      2.24954128
FUV3    2.2495413      2.24954128
NUV1    0.23529011     0.25605348
NUV2    0.25203046     0.2742711
NUV3    0.25265095     0.27494633

Question: Should I change the tolerance for the comparisons so that the tests will pass, or should I re-examine the code to try and debug, if it is a bug at all?

Weird, I still got the same data...

Found out that the problem stems from my new time conversions... So a test case for the first scenario fit_iris_xput(time_obs, time_cal_coeffs0, cal_coeffs0) with the data in irispy/tests/test_iris_tools.py would be to look for the matrix
>>> t_diff
array([[  0.        ,  -0.24366872],
       [ -0.35318275,  -1.11430527],
       [ -1.11978097,  -1.19917864],
       [ -1.33880903,  -2.14373717],
       [ -2.14921287, -36.32580424]])

where every entry is in seconds...

Turned out there are some missing_axis remaining in the files "spectrograph.py" and "test_sji.py". Have made the changes to missing_axes in commit 08d7cfc to debug...

So locally everything seems fine except for the missing_axes bug... However, Travis is not happy with code snippets having the parse_time function in it, and is throwing some errors as the following:
______________ test_fit_iris_xput[input_arrays0-expected_array0] _______________
input_arrays = [array([1.0941696e+09]), array([[1.0941696e+09, 1.1018592e+09],
       [1.1053152e+09, 1.1293344e+09],
       [1.12950...
       [  0.22804098,   0.24711342,  -1.9952624 ],
       [  0.12897062,   0.19837108,  -0.8912509 ]], dtype=float32)]
expected_array = array([0.79865301])
    @pytest.mark.parametrize("input_arrays, expected_array", [
        ([time_obs, time_cal_coeffs0, cal_coeffs0], iris_fit_expected0),
        ([time_obs, time_cal_coeffs0, cal_coeffs1], iris_fit_expected1),
        ([time_obs, time_cal_coeffs0, cal_coeffs2], iris_fit_expected2),
        ([time_obs, time_cal_coeffs1, cal_coeffs3], iris_fit_expected3),
        ([time_obs, time_cal_coeffs1, cal_coeffs4], iris_fit_expected4),
        ([time_obs, time_cal_coeffs1, cal_coeffs5], iris_fit_expected5)])
    def test_fit_iris_xput(input_arrays, expected_array):
>       np_test.assert_almost_equal(fit_iris_xput(input_arrays[0], input_arrays[1], input_arrays[2]), expected_array, decimal=6)
irispy/tests/test_iris_tools.py:185:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
irispy/iris_tools.py:252: in fit_iris_xput
    time_obs = np.array([parse_time(float(t)) for t in time_obs])
irispy/iris_tools.py:252: in <listcomp>
    time_obs = np.array([parse_time(float(t)) for t in time_obs])
/home/travis/miniconda/envs/test/lib/python3.6/site-packages/sunpy/time/time.py:293: in parse_time
    rt = convert_time(time_string, format=format, **kwargs)
/home/travis/miniconda/envs/test/lib/python3.6/functools.py:807: in wrapper
    return dispatch(args[0].__class__)(*args, **kw)
/home/travis/miniconda/envs/test/lib/python3.6/site-packages/sunpy/time/time.py:140: in convert_time
    return Time(time_string, format=format, **kwargs)
/home/travis/miniconda/envs/test/lib/python3.6/site-packages/astropy/time/core.py:399: in __init__
    precision, in_subfmt, out_subfmt)
/home/travis/miniconda/envs/test/lib/python3.6/site-packages/astropy/time/core.py:454: in _init_from_vals
    precision, in_subfmt, out_subfmt)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <[AttributeError("'Time' object has no attribute '_time'") raised in repr()] Time object at 0x7f9946ba7ba8>
val = array(1.0941696e+09), val2 = None, format = None, scale = None
precision = 3, in_subfmt = '*', out_subfmt = '*'
    def _get_time_fmt(self, val, val2, format, scale,
                      precision, in_subfmt, out_subfmt):
        """
        Given the supplied val, val2, format and scale try to instantiate
        the corresponding TimeFormat class to convert the input values into
        the internal jd1 and jd2.

        If format is `None` and the input is a string-type or object array then
        guess available formats and stop when one matches.
        """

        if format is None and val.dtype.kind in ('S', 'U', 'O', 'M'):
            formats = [(name, cls) for name, cls in self.FORMATS.items()
                       if issubclass(cls, TimeUnique)]
            err_msg = ('any of the formats where the format keyword is '
                       'optional {0}'.format([name for name, cls in formats]))
            # AstropyTime is a pseudo-format that isn't in the TIME_FORMATS registry,
            # but try to guess it at the end.
            formats.append(('astropy_time', TimeAstropyTime))

        elif not (isinstance(format, str) and
                  format.lower() in self.FORMATS):
            if format is None:
>               raise ValueError("No time format was given, and the input is "
                                 "not unique")
E               ValueError: No time format was given, and the input is not unique

Reckon I can work more to polish up the documentation such as the docstrings where appropriate while we wait for the bugs to be fixed... might as well make myself useful to fill the time while we wait.

So a preliminary version of the modified get_iris_response function has been drafted, incorporating the time dependency in the determination of the effective areas based on the now debugged fit_iris_xput function.

Hi @kakirastern.  You've made some good progress here.  I've left some much overdue comments to get you moving again.

Corrections for first review of rewritten get_iris_response done.

Hi @DanRyanIrish I found out that some messages you composed on GitHub does not show on the page here, though I am getting them in the email, hence some confusion before. From now on I will be careful to double check both the conversation shown here and in the emails sent by GitHub...

Hi @DanRyanIrish And I reason I will need to correct the bits of the code involving the numpy.prod... I misinterpreted your usage of the correct_axis in the statement previously.

Added test data for get_iris_response function.

Just checked that after getting the get_iris_response function working, have successfully got the second halves of the AREA_SG and AREA_SJI to agree with the IDL data provided in the .sav file working. Will need to work out a strategy to debug the function further.

Fixed the bug in the AREA_SG computation. Now down to the AREA_SJI bugs in Part 3 of the code as indicated in the code base or iris_tools module.

So now response_version=1, 2 are working perfectly. Except for versions 3, 4, which are not yielding the desired outputs.

Both get_iris_response and fit_iris_xput functions working now and are generating outputs as expected. Tests have been written to check both are performing well. (I have set the number of decimal places for the agreement to 6 for now.) Once everything checks out I can then move on to the final stage of the project...

I believe the next stage is this:

Updated intensity conversion methods between instrument and physical units that correct for the time observations were taken.

But I will need guidance to do that.

@DanRyanIrish and @hayesla I have resolved all the issues brought up in the reviews and have resolved them one-by-one. Hopefully this PR can be merged soon so new PR's can be open to make it complete.

Hi @kakirastern.  With @hayesla's help I figured out the confusion we were having earlier that prevented us from merging this PR today.  I didn't realise that iris_fit was a required input to _get_interpolated_effective_area because it wasn't in the def statement.
So I suggest that one last change be made: undo the changes in commit "Revert changes previously made to the "_get_interpolated_effective_area" method"``` (c3abaf7524359da41f94be2418fb58a402b43d92).  Then we will merge.  Apologies for the confusion!

@DanRyanIrish No worries. Also, will I need to add iris_fit as an argument to _get_interpolated_effective_area? Or would adding **kwargs suffice?

Rebased PR and dropped commit c3abaf7524359da41f94be2418fb58a402b43d92. Then added another commit to change time.time in the in-code documentation to astropy.time.Time as previously instructed.

Hi @kakirastern.  I see that you've made those changes.  Once the CI passes I'm happy to merge this.  You've done a great job on a very tricky assignment!  How about you @hayesla?  Are you happy to approve this?

Good with me!

authors: DanRyanIrish hayesla kakirastern

repo: sunpy/irispy


text:
Including UserProvider in my bundle added 100kbs

These helpers are great, but seem to include a bunch of Supabase UI that I don't want.

I'm only using useUser and supabaseClient from @supabase/supabase-auth-helpers/nextjs and UserProvider from @supabase/supabase-auth-helpers/react. Is this working as intended?

Looks like this is only happening due to a re-export of the auth component. Could this lib just be a peer dependency?
https://github.com/supabase-community/supabase-auth-helpers/blob/e188cb903cd532aa438729fda4269bed53b3fff5/src/react/index.tsx#L6

Yah, we want to break out the UI stuff into it's own sub module and build a better rollup pipeline in the future.

authors: kaspnilsson thorwebdev


text:
Realtime Presence feature

Feature request
Is your feature request related to a problem? Please describe.
I'm developing an App where it is important to have real-time knowledge of which users are in which parts of the app. I was planning of doing this using the realtime presence capabilities from supabase.
Describe the solution you'd like
I'm looking for an API that allows to use the presence capabilities from supabase.
Describe alternatives you've considered
I've considered no alternatives.
Additional context
I've been trying to follow this guide, https://supabase.com/docs/guides/realtime/presence to create a Swift realtime presence feature on my app.
 var channel = realTimeClient.channel(.schema("public"), params: ["presence":"user1"])

        channel.onMessage { message in
            print("message: \(message.payload)")
            return message
        }
        channel.push(.join, payload: ["presence":"user2"])
        channel.subscribe()

For example, with something like this, I receive the following error:
Realtime/Channel.swift:466: Fatal error: Tried to push join to schema("public") before joining. Use channel.join() before pushing events`` However, the channel has no public .join` method.
One of the issues is that the endpoint being used for realtime is v1. Are there any plans to update it to v2?
Maybe I'm interpreting this in a wrong manner and it is already possible to have a presence feature implemented with the current version of supabase-swift.
Thank you :)

@miguel-arrf hey Miguel. The Supabase Swift library has got real time capabilities.
The Swift Docs over here as has examples: https://supabase.com/docs/reference/swift/subscribe
Please take a look and let me know if this helps.

Hi @maail ! Thank you for the reply!
The feature that I think is missing (as least it was) is Realtime Presence.
I've implemented this in my app by embeding a WebView with the JS supabase library that can then communicate with my app. It's an ugly workaround, but one that works.

authors: maail miguel-arrf

repo: supabase-community/supabase-swift


text:
feat: add experimental command to specify custom Postgres config

Docs at https://github.com/supabase/supabase/pull/14963

Pull Request Test Coverage Report for Build 5237006113

11 of 96 (11.46%)  changed or added relevant lines in 3 files are covered.
7 unchanged lines in 1 file lost coverage.
Overall coverage decreased (-0.7%) to 61.527%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

cmd/postgres.go
11
17
64.71%

internal/postgresConfig/get/get.go
0
37
0.0%

internal/postgresConfig/update/update.go
0
42
0.0%

Files with Coverage Reduction
New Missed Lines
%

internal/gen/keys/keys.go
7
7.94%

Totals

Change from base Build 5221706659:
-0.7%

Covered Lines:
4601

Relevant Lines:
7478

💛  - Coveralls

authors: coveralls darora

repo: supabase/cli


text:
supabase.auth.getUserByCookie no longer there in 2.0

After upgrading to 2.0, the server side function of getting a user from their cookie or by jwt is no longer there.
Our auth middleware (on a custom Node server, not on Nextjs) looks like this
const authHeader = req.get("Authorization") || req.get("authorization") || "";
  const cookies = req.cookies;
  if (!authHeader && !cookies) {
    const customError = new CustomError(400, "General", "Authorization not provided");
    return next(customError);
  }

  const token = authHeader.replace("Bearer ", "").trim();

  const checkUser = (user: User | null) => {
    if (!user) {
      const customError = new CustomError(401, "Raw", "No user in auth check", null);
      return next(customError);
    }
    req.supabaseUser = user;
    tracer.setUser({ id: user.id, auth_provider_id: user.id, email: user.email });
    return next();
  };

  try {
    if (token) {
      const { user, error } = await supabase.auth.api.getUser(token);
      if (error) {
        console.error(error);
        if (!cookies) {
          const customError = new CustomError(401, "Raw", "JWT error from supabase", null, error);
          return next(customError);
        }
      } else {
        return checkUser(user);
      }
    }

    if (cookies) {
      const { user, error } = await supabase.auth.getUserByCookie(req, res);
      if (error) {
        console.error(error);
        const customError = new CustomError(401, "Raw", "Cookie error", null, error);
        return next(customError);
      }
      return checkUser(user);
    }

    // in the case neither auth headers or a cookie was sent
    const customError = new CustomError(401, "Raw", "No valid authentication methods found!", null);
    return next(customError);
  } catch (err) {
    console.error(err);
    const customError = new CustomError(401, "Raw", "JWT error", null, err);
    return next(customError);
  }

@jonluca Came across this same issue when upgrading to 2.0.
Seems the removal of all cookie related methods is a feature not a bug in v2: https://github.com/supabase/gotrue-js/commit/6211cf13a93b088eccc894c6c8d0410eb42d2db4
Supabase guide for Server-Side Rendering seems to have been added a few days ago and provides this example of setting your own cookies for access_token and refresh_token on the client:
supabase.auth.onAuthStateChange((event, session) => {
  if (event === "SIGNED_OUT" || event === "USER_DELETED") {
    // delete cookies on sign out
    const expires = new Date(0).toUTCString();
    document.cookie = `my-access-token=; path=/; expires=${expires}; SameSite=Lax; secure`;
    document.cookie = `my-refresh-token=; path=/; expires=${expires}; SameSite=Lax; secure`;
  } else if (event === "SIGNED_IN" || event === "TOKEN_REFRESHED") {
    const maxAge = 100 * 365 * 24 * 60 * 60; // 100 years, never expires
    document.cookie = `my-access-token=${session.access_token}; path=/; max-age=${maxAge}; SameSite=Lax; secure`;
    document.cookie = `my-refresh-token=${session.refresh_token}; path=/; max-age=${maxAge}; SameSite=Lax; secure`;
  }
})

Presumably, then on the server you could parse the cookie and pass in the access_token jwt to getUser

Gonna close this issue since @LukasMurdock is right!

authors: LukasMurdock jonluca kangmingtay

repo: supabase/gotrue-js


text:
Await for realtime set auth on auth event

What kind of change does this PR introduce?
Solves https://github.com/supabase/supabase-py/issues/919.
Needs: https://github.com/supabase/auth-py/pull/591
What is the current behavior?
AsyncClient crashes due to missing await at self.realtime.set_auth()
What is the new behavior?
AsyncClient now awaits for self.realtime.set_auth

We've made a change to fix this in another PR and will release a new version soon. https://github.com/supabase/supabase-py/pull/930

authors: LuisLechugaRuiz silentworks

repo: supabase/supabase-py


text:
How are we supposed to use Supabase Vault from the Swift library?

Improve documentation
Describe the problem
What's the correct way to access Supabase Vault from the swift client?
when I message the Supabase AI assistant, it suggests,
let response = try await supabase.vault.get(...name of your key...)
but of course that doesn't exist.
the Vault documentation mentions just using a postgres function, but its not clear to me how that would work.
Furthermore, other AI models suggest using rpc or an edge function, or even just query a table called "vault_secrets".
I can't find anything specific on the documentation site, and clear direction here would be appreciated.
Describe the improvement
I'm assuming a postgres function and rpc is the way to do this, but I'm not sure how it handles https and the decryption
Additional context
https://supabase.com/docs/guides/database/vault

Hi @MadeByDouglas,
There is no out-of-the-box way of accessing the vault from the Swift lib.
Could you share a bit more context on why are you trying to access Vault from Swift? What's the use case?

Ah I see, ok well I created a Postgres function and then accessed that via rpc, which I guess seems to be the correct way. Maybe just a mention of this on the docs would be helpful. Also note key names are case sensitive, which nowhere in the docs mention this and that would have been nice to know.
I'm using it to store an API key securely on supabase and then send it to the swift client app via https, where the client app promptly saves it to the device keychain. It's a simple but effective way to avoid storing api keys on the client and keep them secure without needing a full reverse proxy server setup.

In that case, using the RPC is the way to do it from Swift, columns are decrypted transparently.
I'll make sure to review the docs, on the things you pointed out, thanks!

authors: MadeByDouglas grdsdev

repo: supabase/supabase-swift


text:
Hash link Scrolling

Is there any way we can get ConnectedRouter to automatically scroll to the hash link? For example in https://github.com/ReactTraining/react-router/issues/394, a solution is to add a 'scrollToAnchor' function in componentDidMount, but I would rather not have to use this for every component. Is there any way to get it to scroll to the hash link for all components?

@davidychow87 This package is only related to connection between react-router and redux. What you're asking about belongs to react-router package, so please post it there.

repo: supasate/connected-react-router


text:
[CONSOLE] Change Network from Account Page

Problem

As a user I’d like to quickly be able to navigate from an account on one chain to the same account on a different chain without having to re-enter search

Appetite
Solution

Chevron and MUI drop-down box on network name for selecting address page on other networks
Custom query to determine the networks an address has been interacted with on

Rabbitholes
Notes

Solved here: https://github.com/superfluid-finance/superfluid-console/issues/31

authors: kasparkallas vmichalik

repo: superfluid-finance/superfluid-console


text:
Stale sessions are not being reaped by the server

We've had a number of reports that when a client is terminated, the server still shows old sessions as active. No actual repro, yet.

@mbyczkowski Are these specifically reffing the SSH session type?

repo: superfly/wormhole


text:
[Question] Super editor how to parse a makdown string into Document?

HI, the widget only handles something like this:
MutableDocument(
    nodes: [
      ImageNode(
        id: "1",
        imageUrl: 'https://i.ibb.co/5nvRdx1/flutter-horizon.png',
        expectedBitmapSize: ExpectedSize(1911, 630),
        metadata: const SingleColumnLayoutComponentStyles(
          width: double.infinity,
          padding: EdgeInsets.zero,
        ).toMetadata(),
      ),
      ParagraphNode(
        id: Editor.createNodeId(),
        text: AttributedText('Welcome to Super Editor 💙 🚀'),
        metadata: {
          'blockType': header1Attribution,
        },
      ),
      ParagraphNode(

How could I directly use the widegt, with one already had markdown string? And after editing, get the updated string and save to local in string format?

thanks, does this is time or resources high cost?

I'm going to close this because parsing is provided as described.

authors: MonolithFoundation matthew-carroll


text:
Android Gradling Issue

While the library imports successfully and functions as expected on iOS, it encounters errors when imported on Android.
FAILURE: Build failed with an exception.

What went wrong:
A problem occurred configuring project ':device_info_plus'.

Could not resolve all files for configuration ':device_info_plus:classpath'.
Could not resolve org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.22.
Required by:
project :device_info_plus
Could not resolve org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.22.
Could not get resource 'https://dl.google.com/dl/android/maven2/org/jetbrains/kotlin/kotlin-gradle-plugin/1.7.22/kotlin-gradle-plugin-1.7.22.pom'.
Could not GET 'https://dl.google.com/dl/android/maven2/org/jetbrains/kotlin/kotlin-gradle-plugin/1.7.22/kotlin-gradle-plugin-1.7.22.pom'.
The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. See: https://docs.gradle.org/7.6.3/userguide/build_environment.html#gradle_system_properties
PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Could not resolve org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.22.
Could not get resource 'https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-gradle-plugin/1.7.22/kotlin-gradle-plugin-1.7.22.pom'.
Could not GET 'https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-gradle-plugin/1.7.22/kotlin-gradle-plugin-1.7.22.pom'.
The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. See: https://docs.gradle.org/7.6.3/userguide/build_environment.html#gradle_system_properties
PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Failed to notify project evaluation listener.
Could not get unknown property 'android' for project ':device_info_plus' of type org.gradle.api.Project.
Could not get unknown property 'android' for project ':device_info_plus' of type org.gradle.api.Project.

Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.

Get more help at https://help.gradle.org

BUILD FAILED in 2s
Retrying Gradle Build: #1, wait time: 100ms
[!] Gradle threw an error while downloading artifacts from the network.
Running Gradle task 'assembleDebug'...
FAILURE: Build failed with an exception.

What went wrong:
A problem occurred configuring project ':device_info_plus'.

Could not resolve all files for configuration ':device_info_plus:classpath'.
Could not resolve org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.22.
Required by:
project :device_info_plus
Could not resolve org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.22.
Could not get resource 'https://dl.google.com/dl/android/maven2/org/jetbrains/kotlin/kotlin-gradle-plugin/1.7.22/kotlin-gradle-plugin-1.7.22.pom'.
Could not GET 'https://dl.google.com/dl/android/maven2/org/jetbrains/kotlin/kotlin-gradle-plugin/1.7.22/kotlin-gradle-plugin-1.7.22.pom'.
The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. See: https://docs.gradle.org/7.6.3/userguide/build_environment.html#gradle_system_properties
PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Could not resolve org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.22.
Could not get resource 'https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-gradle-plugin/1.7.22/kotlin-gradle-plugin-1.7.22.pom'.
Could not GET 'https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-gradle-plugin/1.7.22/kotlin-gradle-plugin-1.7.22.pom'.
The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. See: https://docs.gradle.org/7.6.3/userguide/build_environment.html#gradle_system_properties
PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Failed to notify project evaluation listener.
Could not get unknown property 'android' for project ':device_info_plus' of type org.gradle.api.Project.
Could not get unknown property 'android' for project ':device_info_plus' of type org.gradle.api.Project.

Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.

Get more help at https://help.gradle.org

BUILD FAILED in 1s
[!] Gradle threw an error while downloading artifacts from the network.
Error: Gradle task assembleDebug failed with exit code 1

There have been some issues with debug build and android which should be fixed in 0.8.13 (just published). However in your case the log is full of network error, this doesn't seem to be related to super_native_extensions at all.


text:
Fixes package thumbnails mixups on cell reusal and started sharing the…

… same image cache for both thumbnails and screenshots.

Nice one @stefanceriu

looks good here

:beers:

authors: jurre kattrali stefanceriu supermarin

repo: supermarin/Alcatraz


text:
Prevent caching of heartbeat and connection routes (closes #98)

/cc @inikulin

\r-

FPR

lgtm

authors: AlexanderMoskovkin inikulin

repo: superroma/testcafe-phoenix


text:
🛑 Node - jp-05fd29e8.yalaso.top is down

In 800bc4d, Node - jp-05fd29e8.yalaso.top (http://jp-05fd29e8.yalaso.top/api/v1/ping) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Node - jp-05fd29e8.yalaso.top is back up in ba45048 after 48 minutes.

repo: superrr-vpn/status


text:
🛑 Node - us-2501d3f2.yalaso.top is down

In 37a7684, Node - us-2501d3f2.yalaso.top (http://us-2501d3f2.yalaso.top/api/v1/ping) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Node - us-2501d3f2.yalaso.top is back up in 56df220.


text:
🛑 Node - us-5cdf1ea7.yalaso.top is down

In 7de10db, Node - us-5cdf1ea7.yalaso.top (http://us-5cdf1ea7.yalaso.top/api/v1/ping) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Node - us-5cdf1ea7.yalaso.top is back up in 5466002 after 1 day, 17 hours, 58 minutes.


text:
Polyhedra is not deleted

When switching from model_style 2 to 1, the polyhedra is still there.

fixed in #53


text:
tooltip的formatter函数添加中文支持

在我的需求中，tooltip要求可以显示中文，需要添加中文支持

验证通过，感谢修复，将在下一个版本发布（一周内）

repo: supervons/react-native-echarts-pro


text:
dev (pre)releases

Related software versions

Description
I'll start using this branching/release strategy in my projects and I'd like to recommend it here as well.

All PRs are done against develop (not main)
develop should always have the next version (in __version__)
publish-dev workflow will publish a new pre-release (.devX) on every merge to develop
On a less frequent basis, a stable version can be released by merging develop to main

This allows for anyone wanting to use latest to install pre-releases while keeping the stable versions "more stable" (meaning that they'd have been tested previously by those using pre-releases).
Steps to setup

https://github.com/fopina/django-bulk-update-or-create/commit/37ea5187fac08e033d994f86dc263a2dea028e17 workflow
Create develop branch from main
Make develop the default branch
Add protection rules to main and develop (only pull requests, no force push, etc)
Bump version in develop to next planned (even if when the release comes, it's a different version due to breaking changes or whatever)

Use cases
Faster releases, easier (actual) "beta" testing, "more stable" stable releases
References
No response

In surface-security/surface we implemented a similar workflow two weeks ago:

Every new PR will build a tag patched -dev package and push it to the registry.
Every PR that gets merged into the default branch (main) does not publish any package.
When we want to make a release, we have to git tag + create a release on GitHub. That will then trigger the workflow linked above.

Considering the size of the project, using the develop branch seems a bit of an overload of work for us and I'm not getting the full benefits in comparison with the above. When Surface grows and becomes more active, then creating trunk-based development seems plausible to me.
PS: I'm moving this issue to surface because my objective in the short run (in the following 2 weeks) is to migrate all workflows as the above. If we want to change something in the flow, this is a good issue to discuss now.
PS2: We should leverage discussions in surface repository to have these public conversations in a single place. I also have another topic to discuss and I'll pop it there.

authors: fopina gsilvapt

repo: surface-security/django-dkron


text:
name 'ModelDataLoader' is not defined

env: Ubuntu 16.04 x64, Python 3.6.6, Pytorch 0.2.0, web.py 0.40.dev0
NameError                                 Traceback (most recent call last)
 in ()
3 aug_tfms = [RandomRotate(20), RandomLighting(0.8, 0.8)]
4 tfms = tfms_from_model(arch, sz, aug_tfms=aug_tfms, max_zoom=1.2)
----> 5 data = ImageClassifierData.from_paths(path, tfms=tfms, test_name='test', bs=bs)
6
7 ims = np.stack([get_augs() for i in range(6)])
 in from_paths(cls, path, bs, tfms, trn_name, val_name, test_name, num_workers)
60         test_fnames = read_dir(path, test_name) if test_name else None
61         datasets = cls.get_ds(FilesIndexArrayDataset, trn, val, tfms, path=path, test=test_fnames)
---> 62         return cls(path, datasets, bs, num_workers, classes=trn[2])
63
64     @classmethod
 in init(self, path, datasets, bs, num_workers, classes)
6             self.get_dl(ds,shuf) for ds,shuf in [
7                 (trn_ds,True),(val_ds,False),(fix_ds,False),(aug_ds,True),
----> 8                 (test_ds,False),(test_aug_ds,False)
9             ]
10         ]
 in (.0)
4         self.path,self.bs,self.num_workers,self.classes = path,bs,num_workers,classes
5         self.trn_dl,self.val_dl,self.fix_dl,self.aug_dl,self.test_dl,self.test_aug_dl = [
----> 6             self.get_dl(ds,shuf) for ds,shuf in [
7                 (trn_ds,True),(val_ds,False),(fix_ds,False),(aug_ds,True),
8                 (test_ds,False),(test_aug_ds,False)
 in get_dl(self, ds, shuffle)
13     def get_dl(self, ds, shuffle):
14         if ds is None: return None
---> 15         return ModelDataLoader.create_dl(ds, batch_size=self.bs, shuffle=shuffle,
16             num_workers=self.num_workers, pin_memory=False)
17
NameError: name 'ModelDataLoader' is not defined

Check you notebook kenerl crashed since of memory or timeout. It is not the issue of the code.

authors: bitdata bygreencn

repo: surmenok/GTSRB


text:
为什么我用了vue-awesome-swiper  他的swiper-slide 的宽度是width: 8.38859e+06px; margin-right: 30px;

中文用户注意：

尽量用英文描述你的 issue
不要把内容堆彻在标题上，逻辑清晰地写在内容区
贴代码要提前格式化好，有颜色高亮那种，贴文本，不要贴图片
提问题前，必须仔细阅读 REMADE.md + 在已关闭的问题中寻找与自身相关的问题，90% 的可能它已经被解决
如果无法做到提一个合格、优秀的问题，则问题会被 close + block

BUG REPORT TEMPLATE
Vue.js version and component version
Reproduction Link

A minimal JSBin, JSFiddle, Codepen, or a GitHub repository that can reproduce the bug.
You could start with this template: https://jsfiddle.net/39epgLj0/

Steps to reproduce
What is Expected?
What is actually happening?

我的宽度怎么可能是那么宽呢

遇到过，忘了怎么解决了···

利用样式穿透，强行设置swiper-slide的宽度,并设置权重

authors: hasbug jesson1 yehoan

repo: surmon-china/vue-awesome-swiper


text:
can fullScreen in Android

It works well,but cant't fullscreen when playing in Android

@conderpath did you resolve this question? i meet it too

We use the video player both on our website and on our mobile site. We also open web view in our Ios and android applications. Browsers and Ios web view works fine. But the full screen button on android web view seems disabled. Is there any solution? @conderpath @yuanhuanwebfront  Did you resolve this question?

repo: surmon-china/vue-video-player


text:
feature: Have config.json pretty printed

Using jsonxf to pretty print config.json when saving.

I believe having config.json pretty printed makes it more useful for humans.
I've chosen jsonxf simply because when searching crates.io it was most relevant and had almost 100,000 downloads. Another obvious choice would be to use serde_json::to_string_pretty but since serde wasn't being used currently I thought maybe there was a reason not to so looked for another alternative.

Rebased and altered this PR to build on main. In that surrealdb/src-tauri/Cargo.toml now has serde & serde_json as dependencies I switched to using serde_json::to_string_pretty, this simplifies the change and it's now only a two line change to surrealdb/src-tauri/src/config.rs.

LGTM! Thanks!

I have changed the implementation back to using jsonxf as serde caused the entire config to be saved as a single JSON string, corrupting it in the process 😅

OMG, I'm so sorry :(
On Thu, May 23, 2024, 06:01 Julian @.***> wrote:

I have changed the implementation back to using jsonxf as serde caused the
entire config to be saved as a single JSON string, corrupting it in the
process 😅
—
Reply to this email directly, view it on GitHub
https://github.com/surrealdb/surrealist/pull/275#issuecomment-2127049719,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAH2CHA7WZ2DESD6C56MERDZDXSB7AVCNFSM6AAAAABHYVMILOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRXGA2DSNZRHE
.
You are receiving this because you authored the thread.Message ID:
@.***>

authors: macjuul winksaville

repo: surrealdb/surrealist


text:
Nit Fix for kepler 1341

fix https://github.com/sustainable-computing-io/kepler/issues/1341

@SamYuan1990 Thanks for doing the pull request on my behalf. I had some personal issues to manage and could not propose the pull request. Though, I see in the commit that we are only changing the 'code' block but not the line number 28 explaining the code. We should also modify it from To deploy on a local kind cluster, you need to use the CI_DEPLOY and PROMETHEUS_DEPLOY flags. to To deploy on a local kind cluster, you need to use the PROMETHEUS_DEPLOY flag. I could propose a pull request but I do not know if it is going to mess up if I create it before this commit is merged.

good catch, updated, please help review.

don't know whether we need squash the commits
the change is good to me

repo: sustainable-computing-io/kepler-doc