text:
Double header item Vary in responce when using security/cors

Section security/cors in extra_config causes double property Vary: 'Origin' in responce header
I'm trying to use Krakend as a proxy for two backend servers. Filling the extra_config as it was described in documentation makes two similar properties Vary in responce header. Postman doesn't care, just displays that in header twice, but it seems like frontend's axios fails on it. Could you please help with it, or may be I'm digging the problem in wrong way.
The problem can be checked by calling http://localhost:8080/__health or http://localhost:8080/health
Thanks anyway.
My configuration file
{
    "version": 3,
    "timeout": "3001ms",
    "cache_ttl": "300s",
    "host": [
        "http://127.0.0.1:8080"
    ],
    "endpoints": [
        {
            "endpoint": "/health",
            "extra_config": {
                "github.com/devopsfaith/krakend/proxy": {
                    "static": {
                        "data": {
                            "message": "it's alive"
                        },
                        "strategy": "always"
                    }
                }
            },
            "backend": [
                {
                    "url_pattern": "/__health",
                    "host": [
                        "http://localhost:8080"
                    ]
                }
            ]
        },
        {
            "endpoint": "/backend1/{branch}/{point}",
            "method": "GET",
            "headers_to_pass": [ "*" ],
            "input_headers":["*"],
            "querystring_params": [ "*" ],
            "output_encoding": "no-op",
            "backend": [
                {
                    "method": "GET",
                    "host": [
                        "http://192.168.0.101:3001"
                    ],
                    "url_pattern": "/{branch}/{point}",
                    "encoding": "no-op"
                }
            ]
        },
        {
            "endpoint": "/backend1/{branch}/{point}",
            "method": "POST",
            "headers_to_pass": [ "*" ],
            "input_headers":["*"],
            "querystring_params": [ "*" ],
            "output_encoding": "no-op",
            "backend": [
                {
                    "method": "POST",
                    "host": [
                        "http://192.168.0.101:3001"
                    ],
                    "url_pattern": "/{branch}/{point}",
                    "encoding": "no-op"
                }
            ]
        },
        {
            "endpoint": "/backend1/{branch}/{point}",
            "method": "PUT",
            "headers_to_pass": [ "*" ],
            "input_headers":["*"],
            "querystring_params": [ "*" ],
            "output_encoding": "no-op",
            "backend": [
                {
                    "method": "PUT",
                    "host": [
                        "http://192.168.0.101:3001"
                    ],
                    "url_pattern": "/{branch}/{point}",
                    "encoding": "no-op"
                }
            ]
        },
        {
            "endpoint": "/backend1/{branch}/{point}",
            "method": "DELETE",
            "headers_to_pass": [ "*" ],
            "input_headers":["*"],
            "querystring_params": [ "*" ],
            "output_encoding": "no-op",
            "backend": [
                {
                    "method": "DELETE",
                    "host": [
                        "http://192.168.0.101:3001"
                    ],
                    "url_pattern": "/{branch}/{point}",
                    "encoding": "no-op"
                }
            ]
        },
        {
            "endpoint": "/backend2/{branch}/{point}",
            "method": "GET",
            "headers_to_pass": [ "*" ],
            "input_headers":["*"],
            "querystring_params": [ "*" ],
            "output_encoding": "no-op",
            "backend": [
                {
                    "method": "GET",
                    "host": [
                        "http://192.168.0.101:5001"
                    ],
                    "url_pattern": "/{branch}/{point}",
                    "encoding": "no-op"
                }
            ]
        },
        {
            "endpoint": "/backend2/{branch}/{point}",
            "method": "POST",
            "headers_to_pass": [ "*" ],
            "input_headers":["*"],
            "querystring_params": [ "*" ],
            "output_encoding": "no-op",
            "backend": [
                {
                    "method": "POST",
                    "host": [
                        "http://192.168.0.101:5001"
                    ],
                    "url_pattern": "/{branch}/{point}",
                    "encoding": "no-op"
                }
            ]
        },
        {
            "endpoint": "/backend2/{branch}/{point}",
            "method": "PUT",
            "headers_to_pass": [ "*" ],
            "input_headers":["*"],
            "querystring_params": [ "*" ],
            "output_encoding": "no-op",
            "backend": [
                {
                    "method": "PUT",
                    "host": [
                        "http://192.168.0.101:5001"
                    ],
                    "url_pattern": "/{branch}/{point}",
                    "encoding": "no-op"
                }
            ]
        },
        {
            "endpoint": "/backend2/{branch}/{point}",
            "method": "DELETE",
            "headers_to_pass": [ "*" ],
            "input_headers":["*"],
            "querystring_params": [ "*" ],
            "output_encoding": "no-op",
            "backend": [
                {
                    "method": "DELETE",
                    "host": [
                        "http://192.168.0.101:5001"
                    ],
                    "url_pattern": "/{branch}/{point}",
                    "encoding": "no-op"
                }
            ]
        }
    ],
    "extra_config": {
        "security/cors": {
            "allow_origins": [
                "*"
            ],
            "allow_methods": [
                "GET",
                "HEAD",
                "POST",
                "PUT",
                "DELETE"
            ],
            "expose_headers": [
                "Content-Length",
                "Content-Type"
            ],
            "allow_headers": [
                "Accept-Language"
            ],
            "max_age": "12h",
            "allow_credentials": false,
            "debug": false
        }
    },
    "output_encoding": "json"
}```

I use Docker to run KrakenD

I am having the same issue with duplicated response header access-control-allow-origin: *.

Hi, check this issue for the reason and the fix.
The problem is that both KrakenD and your backends are adding it's own CORS headers (and your backend shouldn't).

authors: boldtrn lzeal taik0

repo: devopsfaith/krakend-ce


text:
제로백 Eomhyunjun 애저 정적 웹 챌린지 + 깃헙액션 완료

각 챌린지 미션을 완료 할때 마다 각자 자신의 항목을 수정하는 PR을 생성해 주세요.

챌린저 정보
챌린저의 정보를 아래에 남겨주세요.

팀 이름: 제로백

Microsoft Learn 프로필 URL은 https://docs.microsoft.com/ko-kr/users/******와 같이 생겼습니다.

Microsoft Learn 프로필 URL: https://docs.microsoft.com/ko-kr/users/58335903/
GitHub ID: @Eomhyunjun

아래는 SNS 챌린지의 경우에만 입력해 주세요.

다양한 SNS가 있지만, 여기서는 트위터, 페이스북, 인스타그램만 인정합니다.

SNS 이름:
SNS ID:

완료된 챌린지

이번에 완료된 챌린지의 내용을 마킹해주세요.

[x] 애저 정적 웹 앱 챌린지 완료
[x] 깃헙 액션 챌린지 완료
[ ] 소셜미디어 인증샷 챌린지 완료
[ ] 애저 정적 웹 앱 URL 제출 챌린지 완료
[ ] 애저 정적 웹 앱 리포지토리 제출 챌린지 완료
[ ] 블로그 후기 URL 제출 챌린지 완료

감사합니다

두개 한번에 보내서 다시 하겠습니다

source: gharchive/pull-request

repo: devrel-kr/HackaLearn

license: MIT

license_type: permissive

license_source: github-api


text:
Güncelleme Problemi

İlk sürümü kullanan bazı kullanıcılarda, sürüm kontrolü ve güncelleme olup olmadığını kontrolü sorunsuz çalışmakta fakat, güncelleme indirme işlemi başlamamaktadır.

Güncelleme indirme problemi, V2 ile beraber çözülmüştür.

source: gharchive/issue

repo: devreyakan/arackutusu


text:
No "exports" main defined in package.json

Describe the bug
This bug happens when running on NextJS 10.0.0 when building a project on node v14.14.0.
It throws the error:
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main defined in /project/node_modules/react-use-intercom/package.json
    at throwExportsNotFound (internal/modules/esm/resolve.js:290:9)
    at packageExportsResolve (internal/modules/esm/resolve.js:479:7)
    at resolveExports (internal/modules/cjs/loader.js:432:36)
    at Function.Module._findPath (internal/modules/cjs/loader.js:472:31)
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:867:27)
    at Function.Module._load (internal/modules/cjs/loader.js:725:27)
    at Module.require (internal/modules/cjs/loader.js:952:19)
    at require (internal/modules/cjs/helpers.js:88:18)
    at Object.J92l (/project/.next/server/pages/[REDACTED])
    at __webpack_require__ (/Users/gus/Developer/storefront/.next/server/pages/[REDACTED]) {
  type: 'NodeError',
  code: 'ERR_PACKAGE_PATH_NOT_EXPORTED'
}

To Reproduce
Steps to reproduce the behavior:

Update the package to 1.1.3.
Build the project.
See error

Expected behavior
The project builds as before the update.
Desktop (please complete the following information):

OS: macOS 10.15.7
Browser: SSR
Version 1.1.3

Additional context
Project builds if editing on node_modules the project directly by removing from package.json:
"exports": {
    ".": {
      "import": "./dist/react-use-intercom.esm.js"
    }
  },

This is basically reverting the commit 984288bfbbba0d27f2a596568213593c75a3a42d.

Thanks for the detailed issue report, really appreciate it. Main issue here is that next build needs a require entry since it is a node environment.
I'll fix this right away.

That was quick, thanks a lot! 👍🏽

Published v1.1.4

authors: devrnt gusfune

repo: devrnt/react-use-intercom


text:
Bug: ViveCraft compatibility

What happened?
When I enter a world wherever I am in the world my FPS is locked to a maximum of 18 frames, only if there is a modification of Lost Paradise, without this mod, the game through VR in 72 fps maximum for me.
To replicate:

Download my mods collection
Enter to the normal world, overworld via ViveCraft, VR helmet and controllers
Check the FPS for a few minutes

Mod Version
beta 2.1.0
Fabric API Version
0.76.0
Relevant log output
https://drive.google.com/file/d/11j2RI9pM_Zzaf--5p-xui8Ls7Pe7aurA/view?usp=sharing

(i cant paste, the limit of text)

Other mods
https://drive.google.com/file/d/1pV4YxvGiYbfhtq-TYbC9K2q8N9q-49Ru/view?usp=sharing
Additional Information
I found a temporary solution to this problem is to reduce the quality of the VR helmet screen resolution to 50%, but this is not what I would like to play with, and such a slump FPS causes Lost Paradise.
Also for incase, using multimc launcher

I'm unable to test this but I suspect it might be far improved on 2.2.x versions of PL. Please feel free to re-open the issue if FPS is not improved

repo: devs-immortal/Paradise-Lost


text:
Support multi-rack/multiregion constraints

Provide the ability to configure confluent.placement.constraints instead of just the number of replicas as described here:
https://docs.confluent.io/current/multi-dc-deployments/multi-region.html
The main use case for us is to be able to set up observers in a different data centre for disaster recovery purposes.

Hi @almazik,
This would be interesting to implement. I'd have to understand how Confluent's kafka-topics modification with the --replica-placement flag works. Under the hood, we're just using the basic Apache Kafka AdminClient to create and manage topics.
Since it appears to just be a topic configuration set to a JSON object, you may be able to do it with our tool already. I'll have to do some investigation and see how it works. 😄

authors: almazik devshawn

repo: devshawn/kafka-gitops


text:
added support for downloading pod logs

Description

Fixes #
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

Checklist:

[ ] The title of the PR states what changed and the related issues number (used for the release note).
[ ] Does this PR requires documentation updates?
[ ] I've updated documentation as required by this PR.
[ ] I have performed a self-review of my own code.
[ ] I have commented my code, particularly in hard-to-understand areas.
[ ] I have tested it for all user roles.
[ ] I have added all the required unit/api test cases.

Does this PR introduce a user-facing change?

add semantic title

repo: devtron-labs/devtron


text:
K8s 1.22 compatibility issues

Description
This PR resolves most k8s 1.22 compatibility issues.
Fixes #870
Fixes #869
Fixes #843
Fixes #850
Type of change

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[x] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[x] This change requires a documentation update

How Has This Been Tested?
Tested on various versions of K8s up to k8s 1.22

[x] Tested by installing the stack on various versions of k8s up to k8s 1.22
[x] Tested by deploying apps on versions of k8s up to k8s 1.22

Checklist:

[x] The title of the PR states what changed and the related issues number (used for the release note).
[x] Does this PR require documentation updates?
[x] I've updated documentation as required by this PR.
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have tested it for all user roles

https://github.com/devtron-labs/silver-surfer has been very helpful in identifying the objects that needed upgrade for making them compatible to kubernetes 1.22

Thanks for investing time in this! I use K8S 1.22 and egearly await the release of this patch.

authors: Linutux prakarsh-dt


text:
Fix extra data mistakingly "extracted" from raw Deflate streams

Hi, I think there's a bug here.
Per the BlockFile docstring, read_block() can return more than dlen bytes of data, by peeking, and this is intended feature.
However, we don't want the peek'd extra bytes injected into the stream being decompressed -- as the next read_block() call will pull them again!
Take a ~1.5 MiB deflated file to test: binwalk -X will extract a slighly larger file than a plain zlib.decompress(-15) would. (This, exactly, was how this bug bite me.)
Hope this fix is simple enough to be merged easily! Cheers.

You're right of course, thanks!

license: mit

license_source: bigquery


text:
[FEAT]: add hover effect in social icon

Is your feature request related to a problem? Please describe.
In the contributors page, add a hover effect on the social icon

Describe the solution you'd like
scale the size when hovering.

IMPORTANT
If it's your first Contribution to this project, please add your details to the Contributors file
File Path: src/json/Contributors.json and you have to MUST read the contributing guideline before you start.  Read this Guideline Before you start

If you do not add your details or assigned to issue, your PR will be Close

pplease assign this issue to me,i would like to work on it.

Assigned  @karthiknadar1204

Can you assign me this task

@karthiknadar1204 is already assigned to this issue, you can reach him @Srujan1527

Working on this issue,will initiate a pr tomorrow for this issue @devvsakib

@devvsakib ,have added hover effect to the social media icons,will initiate pr

Completed #357

repo: devvsakib/power-the-web


text:
Item doesnt immediately update with drag and drop enchant system

https://user-images.githubusercontent.com/13991048/185820636-9d073a38-6a5d-4ac1-a507-8907c9006c4c.mp4
(flashes vid)
this is the code
func (h *InventoryHandler) HandlePlace(ctx *event.Context, slot int, it item.Stack) {
	enchant, ok := ce.FromBook(it)
	if !ok {
		return
	}

	targetItem, err := h.p.Inventory().Item(slot)
	if targetItem.Empty() || err != nil || !enchant.CompatibleWithItem(targetItem.Item()) {
		return
	}
	if err := h.p.Inventory().SetItem(slot, ce.ApplyEnchant(targetItem, enchant.Type(), enchant.Level())); err == nil {
		ctx.Cancel()
		time.AfterFunc(time.Millisecond*50, func() {
			h.p.Inventory().RemoveItem(it)
		})
	}
}

if it helps this is whats showing in the console
DEBU[0081] failed processing packet from (R53D): failed changing held slot: client-side item must be identical to server-side item, but got differences: client: Stack<item.Pickaxe{Tier:{HarvestLevel:4 BaseMiningEffic
iency:9 BaseAttackDamage:5 EnchantmentValue:15 Durability:2031 Name:netherite}}>(custom name='', lore='[]', damage=0, anvilCost=0) x1 vs server: Stack<item.Pickaxe{Tier:{HarvestLevel:4 BaseMiningEfficiency:9 BaseAttackDamage:5 Encha
ntmentValue:15 Durability:2031 Name:netherite}}>(custom name='', lore='[§r§6Speed 1§r]', damage=0, anvilCost=0) x1
DEBU[0081] failed processing packet from 127.0.0.1:59081 (R53D): InventoryTransaction: failed verifying actions in Normal transaction: different item thrown than held in slot: item.Stack{id:8367, item:item.Pickaxe{Tier:item.ToolTier
{HarvestLevel:4, BaseMiningEfficiency:9, BaseAttackDamage:5, EnchantmentValue:15, Durability:2031, Name:"netherite"}}, count:1, customName:"", lore:[]string(nil), damage:0, anvilCost:0, data:map[string]interface {}(nil), enchantment
s:map[item.EnchantmentType]item.Enchantment(nil)} was thrown but held item.Stack{id:8355, item:item.Pickaxe{Tier:item.ToolTier{HarvestLevel:4, BaseMiningEfficiency:9, BaseAttackDamage:5, EnchantmentValue:15, Durability:2031, Name:"n
etherite"}}, count:1, customName:"", lore:[]string{"§r§6Speed 1§r"}, damage:0, anvilCost:0, data:map[string]interface {}(nil), enchantments:map[item.EnchantmentType]item.Enchantment{ce.Speed{customEnchant:ce.customEnchant{}}:item.En
chantment{t:ce.Speed{customEnchant:ce.customEnchant{}}, lvl:1}}}

Directly after the book is placed on the item it sends this: DEBU[0047] failed processing packet from  (R53D): ItemStackRequest: error resolving item stack request: *protocol.SwapStackRequestAction: action was cancelled
The console thing shown above happens when you try and drop the item after using the book on it.

Probably a duplicate of https://github.com/df-mc/dragonfly/issues/646.

repo: df-mc/dragonfly


text:
Add prettier-plugin-motoko to open repositories

As mentioned in the readme since August 2022, the prettier-plugin-motoko repository was originally supposed to allow community contributions.
Let me know if it would be necessary to open a corresponding JIRA ticket. Thanks!

@rvanasa  Opening repository for external contributions procedure should follow http://go/opensource policy.
Quick check shows repository passes technical requirements, but having a JIRA ticket with all required formal approval is still required.

Thanks; I will open a Jira ticket once the process for IC-1459 is completed (since open-sourcing motoko-dev-server is currently the higher priority).

authors: levshaATdfinity rvanasa


text:
Cannot save excelpackage

Open-ExcelPackage works and data seems fine.
Close-ExcelPackage fails
PS C:\test> Close-ExcelPackage $result
Exception calling "Save" with "0" argument(s): "Error saving file C:\test\testInventory.xlsx"
At C:\Program Files\WindowsPowerShell\Modules\importexcel\7.4.1\Public\Close-ExcelPackage.ps1:29 char:20

        else { $ExcelPackage.Save() }

               ~~~~~~~~~~~~~~~~~~~~

CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
FullyQualifiedErrorId : InvalidOperationException

This is data specific.  Any way to get OfficeOpenXml.ExcelPackage.Save() to give more error info?

No, there is nothing that can give those details. At this point, you'll need to insert the data chunks at a time to see where the issue is.

Thanks.  It looks like the problem is in the underlying library.  I think
it has a max record issue.  Will test as I have time.
On Fri, Jan 21, 2022 at 5:49 PM Doug Finke @.***> wrote:

No, there is nothing that can give those details. At this point, you'll
need to insert the data chunks at a time to see where the issue is.
—
Reply to this email directly, view it on GitHub
https://github.com/dfinke/ImportExcel/issues/1128#issuecomment-1018996187,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AOFS5PM5FMVZ2SZ5ZAJPEU3UXH5LPANCNFSM5MQD32LA
.
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 authored the thread.Message ID:
@.***>

Please let me know what you find out.

authors: dfinke rodmarten

repo: dfinke/ImportExcel


text:
GingerIt library is no longer available

GingerIt is not available for install.

Hello Eshan,
Thank you very much for letting me know about this issue. On the moment I was writing the code for this project there were no issues installing Gingerit. However, I've just tried to reinstall it and it would give me a similar issue you experienced. I've submitted an error report to the authors of the library and am hoping the issue will get resolved soon. If the issue persists I will rewrite my code and will try to implement a different library with similar functions as Gingerit.
Thank you,
Dmitrii

Hello Dmitrii,
Is there any update on this?
The GingerIt is still not working.
Thanks & Regards,
Harshit Soni

Hello Harshit,
My apologies for such a delay on this issue. The work has been getting pretty busy lately.
I have a library in mind that will be able to replace Gingerit. I've been testing it and it seems to be working well. I will push my latest update tomorrow or the day after tomorrow once I get a chance.
Thank you,
Dmitrii Govor

Hello all,
I am excited to announce that I've just pushed an update for the main.py file that replaces the no longer available Gingerit library with the language_tool_python library that operates similarly. The only new prerequisite, besides installing language_tool_python, is ensuring you have Java 8.0+.
Please let me know if you have any questions.
Thank you,
Dmitrii Govor

authors: dgovor eshanrajapakshe harshitsoni01

repo: dgovor/Sign-Language-Translator


text:
Add support for police/fire panic button

Ring Alarm recently added a panic button to their mobile app, which can either (a) trigger the siren on the base station, (b) request a police response, or (c) request a fire department response. (Options (b)/(c) require an active monitoring plan.)
It would be interesting to expose an API endpoint for this feature, since it would be very useful for writing certain types of automation rules.
(On the other hand, one would have to be very careful with this API to avoid false alarms. Testing could also be a challenge.)

@dgreif Here's how to sound and silence the siren.
["message",{"body":[{"zid":"${panel_zid}","command":{"v1":[{"commandType":"security-panel.${mode}","data":{}}]}}],"datatype":"DeviceInfoSetType","dst": "${dst_zid}","msg":"DeviceInfoSet","seq":${seq}}]
${mode} can be "sound-siren" or "silence-siren"
I'm not going to tell you how to notify the police or fire department.  I feel like that could be abused or accidentally misunderstood and there's no reason to automate it anyway.  (The above message flashes the lights on the base as well.  From the API layer there is no way to separate the lights from the siren.  I wished there was.)

Thanks for the info! I just received the new button in my app yesterday.  I'll take a look at adding it when I get a chance.

The big use case I can see for adding the police/fire modes would be for integrating unsupported third-party sensors via Home Assistant, or building a fire alarm pull station (since the official Ring keypad doesn't have a manual fire alarm button).
But I also agree that exposing those is something best approached with caution.

They have a first party solution for this, no?  What does their panic button do?  I assumed that would dispatch police or fire or at least get that started.

@codahq They do have a Z-Wave panic button, but it's police only, afaik. Same as the panic mode on the keypad.
They don't have any way to trigger a manual fire alarm, other than the new soft button in the app.

I added the siren logic directly to each location (location.soundSiren(), location.silenceSiren()).  I also added a switch to the homebridge plugin for this, called Ring Alarm Siren.  As for police/fire, I made it easy to call those programmatically with location.sendCommandToSecurityPanel('secuirty-panel.unknown-command-here').  I think this is a good enough sanity check to make sure anyone implementing these commands understands the gravity of what they are doing.  @codahq would you be kind enough to supply the commands for policy/fire?  Specifically the commandType and data fields you see being used in those calls.

Unfortunately, no.  I'm going to pass on providing any information on the fire/police commands.  Somebody else can do that.  Even though there is nothing illegal against reverse engineering by itself it's probably against the terms of use to call their private APIs directly because of liability and/or other reasons.  If somebody were to call the police or fire repeatedly using this library (or my work) and get in trouble or if somebody "depended" on this solution and it didn't work for example there would be the possibility of legal ramifications.
I don't want to put myself in a situation where I might have to defend myself legally.  Up to this point everything I've supplied (and done personally in my own library because I don't actually use yours) avoids liability against/for others.  At least that is how I see it.  I'm going to keep my contributions here the same.
This project is a little different than just turning lights off/on because of the security aspect.

@codahq I totally understand! I agree with your logic, and really appreciate all of the help you have provided so far.  I'll leave my sendCommandToSecurityPanel method in place as I am using it internally for siren and alarm mode changes.   Can't stop others from using it if they figure out the commands and use them at their own risk.

authors: codahq dgreif tjohns

repo: dgreif/ring-alarm


text:
🛑 hisacademy.co.kr is down

In c8d9670, hisacademy.co.kr (https://hisacademy.co.kr/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: hisacademy.co.kr is back up in 2ff162e.

repo: dherald/service-status


text:
cp -r and wildcard copy fail

Recursive copy doesn't copy files in subdirectory:
> cp -r flash /flash
> ls /flash/lib
> !dir flash\lib
 Volume in drive N is public

 Directory of N:\Shared\Doug\projects\m5stack\weather_and_AQI\flash\lib

12/23/2021  03:58 PM    <DIR>          .
12/23/2021  03:55 PM    <DIR>          ..
12/20/2021  08:56 PM             4,324 aqi_and_color.py
12/23/2021  03:58 PM             3,858 brightness.py
...

Where flash/lib has multiple files only creates flash/lib, not copying any files.
Attempting a wildcard copy, rshell creates a bogus source directory, then says it can't find it (note that it copies the current directory twice, which makes the path invalid):
cp flash/lib/* /flash/lib
File 'N:\Shared\Doug\projects\m5stack\weather_and_AQI/N:\Shared\Doug\projects\m5stack\weather_and_AQI/flash/lib/aqi_and_color.py' doesn't exist

This is on windows 10 with 0.0.30.

resolve_path:
    if path[0] != '/':
        # Relative path
        if cur_dir[-1] == '/':
            path = cur_dir + path
        else:
            path = cur_dir + '/' + path

doesn't work on windows. Figuring out how best to fix it.

forward slashes are actually fine on windows (if that's what you're worried about). The only place on windows that doesn't like forward slashes is the CMD.EXE program. All of the internal APIs etc have worked fine with forward slashes since forever.
The thing that rshell doesn't support well under windows is multiple drives. It assumes that everything is on the current drive.

It's true that cp foo /flash has worked forever.
But if cur_dir has a windows style path--which it gets from os.getcwd():
>>> os.getcwd()
'N:\\Shared\\Doug\\projects\\m5stack\\weather_and_AQI\\flash'

then it works for that single cp, as the path foo is relative.
But for cp lib/* /flash/lib, resolve_path returns the absolute windows path:
resolve_path:  N:\Shared\Doug\projects\m5stack\weather_and_AQI\flash/lib

Then process_path returns a list of absolute paths:
process_pattern:  ['N:\\Shared\\Doug\\projects\\m5stack\\weather_and_AQI\\flash/lib/aqi_and_color.py', 'N:\\Shared\\Doug\\projects\\m5stack\\weather_and_AQI\\flash/lib/brightness.py'...]

And then resolve_path is called again for each pattern, e.g. N:\Shared\Doug\projects\m5stack\weather_and_AQI\flash/lib/aqi_and_color.py
Since that pattern does not start with '/', resolve_path prepends cur_dir:
resolve_path:  N:\Shared\Doug\projects\m5stack\weather_and_AQI\flash/N:\Shared\Doug\projects\m5stack\weather_and_AQI\flash/lib/aqi_and_color.py

and the command fails.
I found that the python 3 way to handle all of this is pathlib, which also obviates all of the "is there a '/' at the end" stuff.
The current path I'm heading down is to write resolve_path as:
def resolve_path(path, *a):
    """Resolves path and converts it into an absolute path.

    Converts path to absolute on all platforms.
    If extra arguments are given, they are appended to path in
    the correct format for the OS.
    if path[0] == '~':
        # ~ or ~user
        path = os.path.expanduser(path)

    path = pathlib.PurePath(path, *a)
    if not path.anchor:
        # Relative path
        path = pathlib.PurePath(cur_dir, path)

    # This is a hack because the dest is posix, but source may be windows:
    #  On windows, '/a/b/c' will return false
    #  But 'n:\a\b\c' or '//net/a/b/c' will return true.
    #  On posix, we will have '/a/b/c', and will return true.
    if path.is_absolute():
      return '%s' % path
    else:
      return '%s' % path.as_posix()

and to call it everywhere path stuff is done, e.g.:
def process_pattern(fn):
    """Return a list of paths matching a pattern (or None on error).
    """
    directory, pattern = validate_pattern(fn)
    if directory is not None:
        filenames = fnmatch.filter(auto(listdir, directory), pattern)
        if filenames:
            return [resolve_path(directory, sfn) for sfn in filenames]

rsync:
    for src_basename in to_add:  # Name in source but absent from destination
        src_filename = resolve_path(src_dir, src_basename)
        dst_filename = resolve_path(dst_dir, src_basename)
        print_func("Adding %s" % dst_filename)
        src_stat = d_src[src_basename]
        src_mode = stat_mode(src_stat)
        if not dry_run:
            if not mode_isdir(src_mode):
                cp(resolve_path(src_filename), resolve_path(dst_filename))
        if mode_isdir(src_mode):
            rsync(src_filename, dst_filename, mirror=mirror, dry_run=dry_run,
                  print_func=print_func, recursed=True, sync_hidden=sync_hidden)

    if mirror:  # May delete
        for dst_basename in to_del:  # In dest but not in source
            dst_filename = resolve_path(dst_dir, dst_basename)

and so on. I haven't finished finding all the places that this needs to be done yet though.

authors: davehylands dclaar

repo: dhylands/rshell


text:
Drop support for Python 3.6, test against pip==22.0.x

Fixes #123, #124, #125.

Pip has dropped support for 3.6 in 22.0: https://pip.pypa.io/en/stable/news/#v22-0

Awesome! Good riddance, and that's an excuse to plow ahead on pip-audit as well 🙂

authors: di woodruffw

repo: di/pip-api


text:
Fix prettier

Improve GitHub workflow with prettier checks by being more specific with the files being checked.

Resolved by #87

repo: dialectlabs/protocol


text:
[WIP] pip install and convert to RST

This updates the README to recommend to pip install and converts the README to reStructured text which PyPI can render.

Codecov Report

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

@@          Coverage Diff           @@
##           master     #73   +/-   ##
======================================
  Coverage    92.6%   92.6%
======================================
  Files          12      12
  Lines         500     500
======================================
  Hits          463     463
  Misses         37      37

Continue to review full report at Codecov.

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

This is ready, can't spot any more rendering errors in the converted readme.

authors: betatim codecov-io

repo: dib-lab/osf-cli


text:
Early overfit?

Hi, I have a similar implementation in mxnet but after the first epoch both the test and train accuracy goes down (though loss as well) instead of going up. I tried your code as well with my dataset and the same thing happens. Do proxies overfit after 1 epoch?

Correct, first I thought it is an overfitting issue then I saw that training accuracy decreases as well. I saw your log file and I can reproduce it on CUB but not on my data (which is not that different, actually larger). Any idea why the learning is not working properly?

I don't know which dataset you are using, so I can tell you only some common pitfalls.

The most important (and trivial) one: optimizer settings. Especially if you are using a different network (for example with VGG you shouldn't choose such a low epsilon).

When I tried out the loss for Cars196 (which has 16000 images compared to 6000 of CUB), then a decaying learning rate was important.

Make sure you are using data augmentation (see data loader of this repository or the proxy NCA paper).

Thanks for the suggestions, I am doing all of those. However, I just realized I had a nasty class-inbalance which I removed and now it works a lot better!

May I ask how you solved your problem of class-imbalance (weighting, skipping, generating samples)?

I would not say I solved, it just works better :) I am just downsampling currently and experimenting with weighting.
I still experience the initial quick rise then gradual fall of accuracies though (train and test), I think this is a property of the proxies+data. I generate the proxies with uniform distributed random weights so the they are spread evenly which makes good clustering possible, but then due to the nature of my training data they get "pulled too close" together I think. Still investigating :)

I observed the same behaviour of the proxies while fine-tuning the network for CUB. It was quite frustrating. The training accuracy increased to something like R@1 and NMI > 80%, but the evaluation accuracy decreased steadily at some point.
Probably it's really a matter of this particular loss/proxies. I didn't notice such overfitting when I trained the net with triplet loss and semi-hard sampling.
Good luck with your investigation! :)

authors: dichotomies ifeherva

repo: dichotomies/proxy-nca


text:
Duplicated enum value

Duplicated enum value in Action enum
./gym_env/enums.py
class Action(Enum):
"""Allowed actions"""
FOLD = 0
CHECK = 1
CALL = 2
RAISE_3BB = 3              <--------------
RAISE_HALF_POT = 3    <--------------
RAISE_POT = 4
RAISE_2POT = 5
ALL_IN = 6
SMALL_BLIND = 7
BIG_BLIND = 8

fixed


text:
【Android】- 函数耗时-普通模式的thresholdTime不生效，一直默认值

插件版本：v3.3.5和v3.4.3.1
gradle.properties配置:
DOKIT_PLUGIN_SWITCH=true
DOKIT_LOG_SWITCH=true
DOKIT_METHOD_SWITCH=true
DOKIT_METHOD_STRATEGY=1

慢函数配置：
normalMethod {
    thresholdTime 100
    packageNames = ["xxx.xxx.xxx"]
}

我配置的是100ms，但是最终发现插装的代码里面，阈值变成了500ms（部分是100ms，部分是500ms）
 MethodCostUtil.INSTANCE.recodeObjectMethodCostStart(500, "com.xxx.xxx.xxActivity&onCreate", this);

日志里面看到thresholdTime也是500ms，请问是哪里出问题了吗？
ps:
3.5.0.1压根就没有插装，同样的配置。是不是我使用有问题呢

插件版本：v3.3.5和v3.4.3.1
gradle.properties配置:
DOKIT_PLUGIN_SWITCH=true
DOKIT_LOG_SWITCH=true
DOKIT_METHOD_SWITCH=true
DOKIT_METHOD_STRATEGY=1

慢函数配置：
normalMethod {
    thresholdTime 100
    packageNames = ["xxx.xxx.xxx"]
}

我配置的是100ms，但是最终发现插装的代码里面，阈值变成了500ms（部分是100ms，部分是500ms）
 MethodCostUtil.INSTANCE.recodeObjectMethodCostStart(500, "com.xxx.xxx.xxActivity&onCreate", this);

日志里面看到thresholdTime也是500ms，请问是哪里出问题了吗？
ps:
3.5.0.1压根就没有插装，同样的配置。是不是我使用有问题呢

改完以后需要clean一下

我也遇到了 一样的问题，clean还是一样的问题，试过很多次了

authors: 3swordzoro TrumpDony jtsky

repo: didi/DoraemonKit


text:
4.16.2构建报错

dependencies {
implementation project(':lib_base')
implementation project(':module_notify')
implementation project(":module_webview")
implementation project(":module_zwtaddressbook")
implementation project(":module_login")
implementation project(":module_workapp")
implementation project(':module_main')
implementation project(":module_me")
implementation project(":module_mail")
implementation project(":module_archive")
implementation project(":module_cloud_disk")
implementation project(":module_meeting")
implementation project(":module_sp")
implementation project(":module_rules")
implementation "org.jetbrains.kotlin:kotlin-stdlib:1.5.31"
}
dependencies {
classpath 'com.android.tools.build:gradle:4.1.0'
classpath "io.github.didi:drouter-plugin:1.3.1"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.31"
// booster
classpath "com.didiglobal.booster:booster-gradle-plugin:$booster_version"
classpath "com.didiglobal.booster:booster-task-analyser:$booster_version"
classpath "com.didiglobal.booster:booster-transform-thread:$booster_version"
classpath "com.didiglobal.booster:booster-transform-webview:$booster_version"
classpath "com.didiglobal.booster:booster-transform-finalizer-watchdog-daemon:$booster_version"
classpath "com.didiglobal.booster:booster-transform-media-player:$booster_version"
classpath "com.didiglobal.booster:booster-transform-res-check:$booster_version"
classpath "com.didiglobal.booster:booster-transform-toast:$booster_version"
classpath "com.didiglobal.booster:booster-transform-activity-thread:$booster_version"
}
Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:transformClassesWithBoosterForMarsOaDebug'.
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.lambda$executeIfValid$1(ExecuteActionsTaskExecuter.java:207)
at org.gradle.internal.Try$Failure.ifSuccessfulOrElse(Try.java:263)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid(ExecuteActionsTaskExecuter.java:205)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:186)
at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:114)
at org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePropertiesTaskExecuter.java:46)
at org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter.execute(ResolveTaskExecutionModeExecuter.java:62)
at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:57)
at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:56)
at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:36)
at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.executeTask(EventFiringTaskExecuter.java:77)
at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:55)
at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:52)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:409)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:399)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:157)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:242)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:150)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:94)
at org.gradle.internal.operations.DelegatingBuildOperationExecutor.call(DelegatingBuildOperationExecutor.java:36)
at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:52)
at org.gradle.execution.plan.LocalTaskNodeExecutor.execute(LocalTaskNodeExecutor.java:41)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:356)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:343)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:336)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:322)
at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.lambda$run$0(DefaultPlanExecutor.java:127)
at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.execute(DefaultPlanExecutor.java:191)
at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.executeNextNode(DefaultPlanExecutor.java:182)
at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:124)
at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48)
at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:56)
Caused by: java.lang.NoSuchMethodError: kotlin.collections.CollectionsKt.maxOrNull(Ljava/lang/Iterable;)Ljava/lang/Comparable;
at com.didiglobal.booster.transform.asm.AsmTransformer.onPostTransform(AsmTransformer.kt:89)
at com.didiglobal.booster.gradle.BoosterTransformInvocation.onPostTransform(BoosterTransformInvocation.kt:147)
at com.didiglobal.booster.gradle.BoosterTransformInvocation.doTransform(BoosterTransformInvocation.kt:173)
at com.didiglobal.booster.gradle.BoosterTransformInvocation.doFullTransform$booster_gradle_plugin(BoosterTransformInvocation.kt:121)
at com.didiglobal.booster.gradle.BoosterTransform.transform(BoosterTransform.kt:55)
at com.android.build.gradle.internal.pipeline.TransformTask$2.call(TransformTask.java:281)
at com.android.build.gradle.internal.pipeline.TransformTask$2.call(TransformTask.java:244)
at com.android.builder.profile.ThreadRecorder.record(ThreadRecorder.java:106)
at com.android.build.gradle.internal.pipeline.TransformTask.transform(TransformTask.java:239)
at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:104)
at org.gradle.api.internal.project.taskfactory.IncrementalTaskInputsTaskAction.doExecute(IncrementalTaskInputsTaskAction.java:47)
at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:42)
at org.gradle.api.internal.project.taskfactory.AbstractIncrementalTaskAction.execute(AbstractIncrementalTaskAction.java:25)
at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:28)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$3.run(ExecuteActionsTaskExecuter.java:569)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:395)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:387)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:157)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:242)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:150)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:84)
at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:554)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:537)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.access$300(ExecuteActionsTaskExecuter.java:108)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$TaskExecution.executeWithPreviousOutputFiles(ExecuteActionsTaskExecuter.java:278)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$TaskExecution.execute(ExecuteActionsTaskExecuter.java:267)
at org.gradle.internal.execution.steps.ExecuteStep.lambda$execute$0(ExecuteStep.java:32)
at org.gradle.internal.execution.steps.ExecuteStep.execute(ExecuteStep.java:32)
at org.gradle.internal.execution.steps.ExecuteStep.execute(ExecuteStep.java:26)
at org.gradle.internal.execution.steps.CleanupOutputsStep.execute(CleanupOutputsStep.java:67)
at org.gradle.internal.execution.steps.CleanupOutputsStep.execute(CleanupOutputsStep.java:36)
at org.gradle.internal.execution.steps.ResolveInputChangesStep.execute(ResolveInputChangesStep.java:49)
at org.gradle.internal.execution.steps.ResolveInputChangesStep.execute(ResolveInputChangesStep.java:34)
at org.gradle.internal.execution.steps.CancelExecutionStep.execute(CancelExecutionStep.java:43)
at org.gradle.internal.execution.steps.TimeoutStep.executeWithoutTimeout(TimeoutStep.java:73)
at org.gradle.internal.execution.steps.TimeoutStep.execute(TimeoutStep.java:54)
at org.gradle.internal.execution.steps.CatchExceptionStep.execute(CatchExceptionStep.java:34)
at org.gradle.internal.execution.steps.CreateOutputsStep.execute(CreateOutputsStep.java:44)
at org.gradle.internal.execution.steps.SnapshotOutputsStep.execute(SnapshotOutputsStep.java:54)
at org.gradle.internal.execution.steps.SnapshotOutputsStep.execute(SnapshotOutputsStep.java:38)
at org.gradle.internal.execution.steps.BroadcastChangingOutputsStep.execute(BroadcastChangingOutputsStep.java:49)
at org.gradle.internal.execution.steps.CacheStep.executeWithoutCache(CacheStep.java:159)
at org.gradle.internal.execution.steps.CacheStep.execute(CacheStep.java:72)
at org.gradle.internal.execution.steps.CacheStep.execute(CacheStep.java:43)
at org.gradle.internal.execution.steps.StoreExecutionStateStep.execute(StoreExecutionStateStep.java:44)
at org.gradle.internal.execution.steps.StoreExecutionStateStep.execute(StoreExecutionStateStep.java:33)
at org.gradle.internal.execution.steps.RecordOutputsStep.execute(RecordOutputsStep.java:38)
at org.gradle.internal.execution.steps.RecordOutputsStep.execute(RecordOutputsStep.java:24)
at org.gradle.internal.execution.steps.SkipUpToDateStep.executeBecause(SkipUpToDateStep.java:92)
at org.gradle.internal.execution.steps.SkipUpToDateStep.lambda$execute$0(SkipUpToDateStep.java:85)
at org.gradle.internal.execution.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:55)
at org.gradle.internal.execution.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:39)
at org.gradle.internal.execution.steps.ResolveChangesStep.execute(ResolveChangesStep.java:76)
at org.gradle.internal.execution.steps.ResolveChangesStep.execute(ResolveChangesStep.java:37)
at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsFinishedStep.execute(MarkSnapshottingInputsFinishedStep.java:36)
at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsFinishedStep.execute(MarkSnapshottingInputsFinishedStep.java:26)
at org.gradle.internal.execution.steps.ResolveCachingStateStep.execute(ResolveCachingStateStep.java:94)
at org.gradle.internal.execution.steps.ResolveCachingStateStep.execute(ResolveCachingStateStep.java:49)
at org.gradle.internal.execution.steps.CaptureStateBeforeExecutionStep.execute(CaptureStateBeforeExecutionStep.java:79)
at org.gradle.internal.execution.steps.CaptureStateBeforeExecutionStep.execute(CaptureStateBeforeExecutionStep.java:53)
at org.gradle.internal.execution.steps.ValidateStep.execute(ValidateStep.java:74)
at org.gradle.internal.execution.steps.SkipEmptyWorkStep.lambda$execute$2(SkipEmptyWorkStep.java:78)
at org.gradle.internal.execution.steps.SkipEmptyWorkStep.execute(SkipEmptyWorkStep.java:78)
at org.gradle.internal.execution.steps.SkipEmptyWorkStep.execute(SkipEmptyWorkStep.java:34)
at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsStartedStep.execute(MarkSnapshottingInputsStartedStep.java:39)
at org.gradle.internal.execution.steps.LoadExecutionStateStep.execute(LoadExecutionStateStep.java:40)
at org.gradle.internal.execution.steps.LoadExecutionStateStep.execute(LoadExecutionStateStep.java:28)
at org.gradle.internal.execution.impl.DefaultWorkExecutor.execute(DefaultWorkExecutor.java:33)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid(ExecuteActionsTaskExecuter.java:194)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:186)
at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:114)
at org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePropertiesTaskExecuter.java:46)
at org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter.execute(ResolveTaskExecutionModeExecuter.java:62)
at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:57)
at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:56)
at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:36)
at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.executeTask(EventFiringTaskExecuter.java:77)
at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:55)
at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:52)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:409)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:399)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:157)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:242)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:150)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:94)
at org.gradle.internal.operations.DelegatingBuildOperationExecutor.call(DelegatingBuildOperationExecutor.java:36)
at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:52)
at org.gradle.execution.plan.LocalTaskNodeExecutor.execute(LocalTaskNodeExecutor.java:41)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:356)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:343)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:336)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:322)
at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.lambda$run$0(DefaultPlanExecutor.java:127)
at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.execute(DefaultPlanExecutor.java:191)
at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.executeNextNode(DefaultPlanExecutor.java:182)
at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:124)
at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48)
at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:56)

工程使用的 Kotlin 版本的问题

使用什么版本呢，1.5.31不行么

run 下面的命令看一下到底是用的哪个 kotlin 版本：
./gradlew buildEnv

那只能用 booster 4.15.0 以下的版本，要么升级 kotlin 版本

那只能用 booster 4.15.0 以下的版本，要么升级 kotlin 版本

我试过kotlin版本无法升级，始终用的gradle自带的版本，plugin api高版本和kotlin-gradle-plugin升级都没有用，只有升级gradle才有效。那其实booster自从适配AGP 7.0之后其实已经无法在低版本AGP上使用了，除非使用不配套的高版本gradle。

那只能用 booster 4.15.0 以下的版本，要么升级 kotlin 版本

是否可以考虑一下我提交的PR，降低一下apiVersion，目前使用的那些高版本api基本都是CollectionsKtx，可以兼容处理掉。

用 booster 4.14.0 有什么问题？

用 booster 4.14.0 有什么问题？

刚试了，没什么问题，只是文档上没有说明4.14.0能够兼容低版本AGP，所以想着去降低kotlin apiVersion；希望4.14.0能合并下 4.14.0之后的 Bugfix 内容。

4.14.1-alpha3 就是针对 Kotlin 1.5 以下的 LTS，还请帮忙测试一下，没问题就会发布正式版本

4.14.1-alpha3 就是针对 Kotlin 1.5 以下的 LTS，还请帮忙测试一下，没问题就会发布正式版本

我目前的使用场景运行下来，没什么问题

4.14.1-alpha3 就是针对 Kotlin 1.5 以下的 LTS，还请帮忙测试一下，没问题就会发布正式版本

我目前的使用场景运行下来，没什么问题

你好，这个你最后是用什么版本？

4.14.1-alpha3 就是针对 Kotlin 1.5 以下的 LTS，还请帮忙测试一下，没问题就会发布正式版本

我目前的使用场景运行下来，没什么问题

你好，这个你最后是用什么版本？

目前使用的4.14.0，作者还没发布4.14.1的release版本

4.14.1-alpha3 就是针对 Kotlin 1.5 以下的 LTS，还请帮忙测试一下，没问题就会发布正式版本

啥时候发布4.14.1版本呢？

authors: gentrio johnsonlee lixiangkai1987

repo: didi/booster


text:
有用过 image 组件的 onload 事件绑定没？我这边不起作用啊

问题
由于图片不设置宽高在 weex 端 无法显示，所以想在加载图片动态指定图片宽高。
但是使用文档中提供的方式发现方法没被调用（c-bind:onerror 正常工作）
代码
//html
<image src="{{img)}}" class="image" c-bind:onload="imageLoad"></image>

//js
methods = {
    imageLoad (e) {
      console.log(e) //控制台没有打印
    }
}

或者是用更优雅的方式解决这个问题，望不吝赐教（抱拳）

贴下package.json，文档应该没有提供这种方式，应该是这种写法 <image src="{{img)}}" class="image" c-bind:load="imageLoad"></image>

@startheart 是的写法问题，官方组件文档也写错了吧，感谢百忙之中帮忙解决问题(#^.^#)
文档示例
<template>
        <image src="{{imageSrc}}" style="width: 682px;height:600px;" c-bind:onload="imageLoad" c-bind:onerror="imageError"></image>
</template>

<script>
class Image  {
  data = {
    imageSrc: require('../../../assets/images/chameleon.jpg')
  }
  methods = {
      imageLoad(e){},
      imageError(e){}
  }
}
export default new Image();
</script>

<style scoped>
.container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
</style>
<script cml-type="json">
{
  "base": {}
}
</script>

文档地址
媒体组件-image(https://cml.js.org/doc/component/base/media/image.html)

repo: didi/chameleon


text:
[update] time-picker

Please make sure these boxes are checked before submitting your PR, thank you!

[x] Make sure you follow DiDi's contributing guide.
[x] Make sure you are merging your commits to dev branch.
[x] Add some descriptions and refer relative issues for you PR.

Codecov Report

Merging #185 into dev will increase coverage by 0.98%.
The diff coverage is 92.98%.

@@            Coverage Diff             @@
##              dev     #185      +/-   ##
==========================================
+ Coverage   91.27%   92.25%   +0.98%
==========================================
  Files         108      108
  Lines        2372     2286      -86
  Branches      351      330      -21
==========================================
- Hits         2165     2109      -56
+ Misses        105       83      -22
+ Partials      102       94       -8

Impacted Files
Coverage Δ

src/common/lang/date.js
100% <100%> (ø)
:arrow_up:

src/components/time-picker/time-picker.vue
93.84% <92.72%> (+20.16%)
:arrow_up:

src/components/picker/picker.vue
81.73% <0%> (-5.22%)
:arrow_down:

Continue to review full report at Codecov.

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

authors: AmyFoxFN codecov-io

repo: didi/cube-ui


text:
Support Github login

The same way Facebook login was implemented, we need to:

create a github service with a getMe method in https://github.com/diegohaz/generator-rest/tree/master/generators/app/templates/services

create a passport method like https://github.com/diegohaz/generator-rest/blob/master/generators/app/templates/services/passport/index.js#L70-L77

and enable the option on https://github.com/diegohaz/generator-rest/blob/master/generators/app/index.js#L51

It's important to note that the API will only handle the token provided by Github and not the entire OAuth process (it must be done on the client).
This issue is participating on the Digital Ocean's Hacktoberfest.

@diegohaz Github api will not return email address for a user even with oauth token and user scope if the user does not set his email as show to public

@QzSG Thank you for the info, I didn't know that. In this case, I think the better solution would be returning a random unique email from github.getMe(), as it serves as a translator method. Something like username@randomcharacters.com, as well as password is generated here: https://github.com/diegohaz/generator-rest/blob/master/generators/app/templates/api/user/user.model.js#L128
What do you think?

@QzSG Hmm, I would not suggest that due to years of playing around with random email address and accidentally sending many "test" emails to one that apparently was used by someone haha.
I found out that if the Oauth token was generated with the scope user:email, the email of the authenticated account can be retrieved from \user\emails. I will bluebird as a dependency to do parallel requests. One to \user and one to \user\emails, hopefully I can send a pr by tonight as this is the first time I am contributing to a generator haha.

in addition, will the following warnings affect testing? I am using win 10
npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.0.14

Tasks for me to do

[ ] Create a github service with a getMe method in https://github.com/diegohaz/generator-rest/tree/master/generators/app/templates/services

[ ] Create a passport method like https://github.com/diegohaz/generator-rest/blob/master/generators/app/templates/services/passport/index.js#L70-L77

[ ] Enable the option on https://github.com/diegohaz/generator-rest/blob/master/generators/app/index.js#L51

These warnings don't seem to be a problem. The filesystem operations will just perform slower on non MacOS systems. I haven't tested Yeoman on Windows yet, but it should be fine. Please tell me if you find any issue.

I'm playing around with Windows and I've found some problems I described on #11
Maybe you come across this.

@diegohaz Finally completed the first part of the task, sorry for the delay. I have tried yo rest using the official npm package and it seems to be working (have not tried running the server though), things got delayed due to some other personal commitments, will continue on this and update whenever there is progress.
With regards to the testing issue, I can foresee how that is going to be a problem to make sure my code does not break things on your side.
Going to take this one small step at a time, this feature should not break the other parts as its modular, the only affected file might be the passport file.
With regards to testing the github service, the inital requests pulls in a huge number of fields like followed, do u want me to include all the fields in the nock user object?
{
  "login": "url",
  "id": url,
  "avatar_url": "url",
  "gravatar_id": "",
  "url": "https://api.github.com/users/QzSG",
  "html_url": "https://github.com/QzSG",
  "followers_url": "https://api.github.com/users/QzSG/followers",
  "following_url": "https://api.github.com/users/QzSG/following{/other_user}",
  "gists_url": "https://api.github.com/users/QzSG/gists{/gist_id}",
  "starred_url": "https://api.github.com/users/QzSG/starred{/owner}{/repo}",
  "subscriptions_url": "https://api.github.com/users/QzSG/subscriptions",
  "organizations_url": "https://api.github.com/users/QzSG/orgs",
  "repos_url": "https://api.github.com/users/QzSG/repos",
  "events_url": "https://api.github.com/users/QzSG/events{/privacy}",
  "received_events_url": "https://api.github.com/users/QzSG/received_events",
  "type": "User",
  "site_admin": false,
  "name": null,
  "company": null,
  "blog": null,
  "location": "0",
  "email": null,
  "hireable": null,
  "bio": "0",
  "public_repos": 0,
  "public_gists": 0,
  "followers": 0,
  "following": 0,
  "created_at": "**",
  "updated_at": "**",
  "private_gists": 0,
  "total_private_repos": 0,
  "owned_private_repos": 0,
  "disk_usage": 9999,
  "collaborators": 0,
  "plan": {
    "name": "**",
    "space": 9999999,
    "collaborators": 0,
    "private_repos": 9999
  }
}

I think I've solved #11 with in https://github.com/diegohaz/generator-rest/commit/d69c0571b7eb37a1b0266c30d846b90eb67d0cee
But I'm having trouble to set up the environment on Windows (specifically adding .NET Frameworks for node-gyp to run) to see if it's actually working.
About your question, you can put all fields on nock, because someone may want to extract another data from github.

@diegohaz
With regards to

create a passport method like https://github.com/diegohaz/generator-rest/blob/master/generators/app/templates/services/passport/index.js#L70-L77

Would it be better for me to add all relevant lines just like the facebook related lines that contains
authMethods.indexOf('facebook')?
I might have to continue this tomorrow morning, so if I do not reply to any other comments do not be worried, I will finish it asap tomorrow.

@diegohaz This task is more or less done except for the test for the passport method not added yet
Refer to tasklist : https://github.com/diegohaz/generator-rest/issues/10#issuecomment-250910132
If you have time while I am offline , feel free to clone https://github.com/QzSG/generator-rest which contain my comits. Since I would be unable to test it properly for now. I will add the tests for the passport method first thing tomorrow. 😄

Thank you very much @QzSG.
I wrote a review for your PR.
You don't need to test the passport method because the passport package is already tested and we have tests for User.createFromService. We also have integration tests that test all these things together (POST /auth/github): https://github.com/diegohaz/generator-rest/blob/fix/windows-scripts/generators/app/templates/api/auth/auth.router.test.js#L115-L141

authors: QzSG diegohaz

repo: diegohaz/generator-rest


text:
[transaction-builder] Add support for vec<vec> to go, c# java, and python

This is blocked on the updates the serde-generate landing

Closing this in favor of the approach in #8997

repo: diem/diem


text:
Compilation failed for Citext PostgreSQL type

Versions

Rust: 1.71
Diesel: 2.1.0
Database: postgres (PostgreSQL) 15.3
Operating System Linux

Feature Flags

diesel: "chrono", "uuid", "time", "postgres", "r2d2"

Problem Description
The following code does not compile
Schema.rs
pub mod sql_types {
    #[derive(diesel::query_builder::QueryId, diesel::sql_types::SqlType, Debug)]
    #[sql_type = "Text"]
    #[diesel(postgres_type(name = "citext"))]
    pub struct Citext;
}
...
    users (username) {
        username -> Citext,
        pw -> Text,
        rl -> Int2,
        pw_changed -> Timestamp,
       ....

#[derive(Insertable)]
#[table_name = "crate::schema::users"]
struct NewUser {
    username: Citext,
    pw: String,
    rl: i16,
    pw_changed: NaiveDateTime,
}

And the error I get is
error[E0277]: the trait bound `Citext: diesel::Expression` is not satisfied

Checklist

[x] I have already looked over the issue tracker and the discussion forum for similar possible closed issues.

[x] This issue can be reproduced on Rust's stable channel. (Your issue will be
closed if this is not the case)
[x] This issue can be reproduced without requiring a third party crate

You used SQL-only marker type Citext as a content model type. That is incorrect, you shouldn't use marker types in your data structs. Correct way is to use one of X types for which impl FromSql<Citext, _> for X, String in your case.

You used SQL-only marker type Citext as a content model type. That is incorrect, you shouldn't use marker types in your data structs. Correct way is to use one of X types for which impl FromSql<Citext, _> for X, String in your case.

This was a try I made after banging my head for a good 30 minutes, without     #[sql_type = "Text"], and replacing Citext with String has the same problem

authors: Mingun nerdunit

repo: diesel-rs/diesel


text:
Unable to get user bio

I've tried accessing profile.bio from the guest class but it throws an error.
Here's my code:
from ensta import Guest

guest = Guest()

profile = guest.profile("cristiano")
print(profile.bio)  # error

What can I do to access a user's bio?

You just have to replace bio with biography, because the property is named biography.
print(profile.biography)

repo: diezo/Ensta


text:
Storybook: Endre design av core changelog

Endre design av core changelog til å bli mer lesebar + legge til ikoner for bug og feat.

Ser changeloggen greit ut?

Ser bra ut 🙌

authors: Thuneer mrosvik

repo: digdir/designsystem


text:
Lagrede søk: Confirm boks for sletting av lagrede søk

Trenger input fra design

Her trenger vi Figma-skisser fra Design

Bør samme dialog brukes for prompt i GUI actions?

Foreslår at vi bruker modalen fra designsystemet med dette forslaget til innhold:

"Ja, fortsett" utfører sletting
"Avbryt" lukker dialogen.
Checkboksen med "Ikke vis denne dialogen neste gang" fjerner modalen hvis brukeren vil slette en ting til.
Selve slettingen bekreftes med en snackbar: "Søket ble slettet".

Valget om å bypasse modalen må kanskje kunne slås på igjen? Evt. kan det vare ut sesjonen, e.l.
Samme modell kan brukes på flytting til arkiv og papirkurv:

Foreløpige skisser:
https://www.figma.com/design/yZLfugRSXOsdIXsZ7W5h43/Inbox-UI-–-del-A?node-id=1567-21040&t=PD0zLBZQ6tlEBdK9-1

authors: alexdigdir ingefossland seanes

repo: digdir/dialogporten-frontend


text:
Sign Up Process - [Imrpovement]

Context
Currently - first time users are redirected to the main thread after creating a wallet.
Sign up --> Main Thread

Improvement
First-time users should be directed to the profile page to edit information first.
Sign up --> Edit Profile

Issues/questions

How do you know they are first-time users (local flag? private db? store "token" in the wallet?)

for the question, we can query the local db and search from the relay to see if the login user has any profile setting(kind-0) event. if no, display a edit profile page for him/her

authors: RongxinZhang digi-monkey

repo: digi-monkey/flycat-web


text:
web pminput

hotkey:
https://medium.com/@melwinalm/crcreating-keyboard-shortcuts-in-javascripteating-keyboard-shortcuts-in-javascript-763ca19beb9e

팀장님은 작업자 배정을 가장 많이 한다.

PM은 작업내용작성, 소스등록, 수정사항을 가장 많이 작성한다.

엑셀파일 아웃풋 기능 있음.

기타기능:

타입설정: 2d, 3d

마감일

정보가 많이 보이는것을 필터링 하는 기능.

롤넘버 등록

시간 정보 기입: just in, out, frame, handle

스캔정보 수동입력

에셋타입

태그 수정

멀티입력

선택한 항목 rv재생 기능

상태 전부 on/off 기능

excel import

excel export: current, cglist, cglist_current, cglist_worker, cglist_asset, team

rmshot

rmtag

F5 새로고침,

F6 멀티입력기

이전, 다음,

F12: 멀티플레이

Ctrl + C: 셀복사

Ctrl + V: 셀 붙혀넣기

https://github.com/digital-idea/mongodb2excel/blob/master/mongodb2excel.py#L298

https://github.com/tealeg/xlsx

input menu 생성하기.

1차 기술테스트 완료함.

done.


text:
Review: 용량이 크면 리뷰 데이터가 올라가지 않는 이슈 처리하기.

466메가 테스트 해보기.

현재는 256 메가로 제한되어있다. 제한을 좀더 올릴 것.


text:
Next and Previous page links incorrect when blog hosted in sub directory

Hi when hosting the blog in a sub directory i.e. http://www.domain.com/blog/ the links for the next or previous page appear to be generated incorrectly as follows: http://www.domain.com/page/2 instead of http://www.domain.com/blog/page/2
As far as I can tell all othe pages generate okay. This appears both on Hugo's webserver and once the site has been built too.
Thanks
Peter

Hello Peter,
I was able to reproduce this issue, even if the baseurl in the config was set correctly to http://www.domain.com/blog. I'll have a look into the code.

I've tested this with some of my other themes and those of other theme creators. In all test I got a 404 error. Furthermore, I tested it with the latest release of Hugo (v0.15) and the the latest developer version.
In the next step I searched for similar issues in the Hugo forum and for issues on Github regarding this issue but did not found anything. However, it seems to be an issue with Hugo itself. I'll open an issue.

The mistake was that the urls of the previous- and next-button are actually relative to the domain. This means that the buttons always linked to http://www.domain.com/page/<NUMBER>/. By prepending the baseurl that you have defined the config file we get the expected link: http://www.domain.com/blog/page/<NUMBER>/ (notice the added blog part).
Hugo itself generated the pages correctly, but they were just linked wrong. However, I've fixed the issue in f1ef0c692b6bd99e3db4997a19d3172bcb2758c7.
Reopen this issue if you still have problems.
Thanks.

repo: digitalcraftsman/hugo-icarus-theme


text:
Error when creating a new page

Describe the Bug

When creating a new page, django throws an error ValueError: 'Page' instance needs to have a primary key value before this relationship can be used. This is not critical, as page creation is still possible. Rather, this is a bug within the get_repr method of the Page model, where self.best_translation is accessed before that relation exists.
Steps to Reproduce

Visit http://localhost:8000/augsburg/pages/de/new/
See error in django console

Expected Behavior

No error
Actual Behavior

Error, but does not prevent page creation
Additional Information

Traceback

@charludo is this a duplicate of https://github.com/digitalfabrik/integreat-cms/issues/2806 or is it something different? :thinking:

@charludo is this a duplicate of #2806 or is it something different? 🤔

Oops, sorry about that - did not see this!

authors: JoeyStk charludo

repo: digitalfabrik/integreat-cms


text:
Show test banner in test systems

Short description

With the increasing number of test & production systems of our different whitelabel solutions, I think this banner helps to keep the overview.
Proposed changes

Show test banner in test systems

Resolved issues

Fixes: #1547

Pull Request Review Guidelines

Would it make sense to add a banner to the management commands on this occasion as well?

Would it make sense to add a banner to the management commands on this occasion as well?

No, since management commands are invoked via the shell, the admin needs to explicitly type the server they want to connect to, and also most shells show the host name on every prompt anyway, so if you see
timo@integreat-test ~ % integreat-cms-cli migrate

it's pretty obvious that the command only affects the integreat-test server.

authors: PeterNerlich timoludwig


text:
Allow postgres connection from formplayer

@snopoke @wpride this updates settings for formplayer to have its own db and access to commcarehq db
cc: @proteusvacuum @sravfeyn

brain dumping:
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: Unable to commit transaction
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1578)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:296)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
        at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1054)
        at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:829)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:538)
        at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:118)
        at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:766)
        at org.springframework.boot.SpringApplication.createAndRefreshContext(SpringApplication.java:361)
        at org.springframework.boot.SpringApplication.run(SpringApplication.java:307)
        at org.springframework.boot.SpringApplication.run(SpringApplication.java:1191)
        at org.springframework.boot.SpringApplication.run(SpringApplication.java:1180)
        at application.Application.main(Application.java:40)
        ... 6 more
Caused by: org.flywaydb.core.api.FlywayException: Unable to commit transaction
        at org.flywaydb.core.internal.util.jdbc.TransactionTemplate.execute(TransactionTemplate.java:76)
        at org.flywaydb.core.internal.command.DbMigrate.migrate(DbMigrate.java:157)
        at org.flywaydb.core.Flyway$1.execute(Flyway.java:959)
        at org.flywaydb.core.Flyway$1.execute(Flyway.java:917)
        at org.flywaydb.core.Flyway.execute(Flyway.java:1373)
        at org.flywaydb.core.Flyway.migrate(Flyway.java:917)
        at org.springframework.boot.autoconfigure.flyway.FlywayMigrationInitializer.afterPropertiesSet(FlywayMigrationInitializer.java:66)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1637)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1574)
        ... 24 more
Caused by: org.postgresql.util.PSQLException: ERROR: prepared statement "S_1" already exists
        at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2161)
        at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1890)
        at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:255)
        at org.postgresql.jdbc2.AbstractJdbc2Connection.executeTransactionCommand(AbstractJdbc2Connection.java:804)
        at org.postgresql.jdbc2.AbstractJdbc2Connection.commit(AbstractJdbc2Connection.java:828)
        at org.flywaydb.core.internal.util.jdbc.TransactionTemplate.execute(TransactionTemplate.java:73)

from what i can tell flyaway the db migrator uses prepared statements to execute its migrations. however this is not compatible with pgbouncer in transaction pooling mode for some reason: http://stackoverflow.com/a/7612639/835696 if we believe that. need to investigate further

yes, that's the case. We came up against this with touchforms which is why we added this to the touchforms jdbc properties: https://github.com/dimagi/touchforms/blob/master/touchforms/backend/localsettings.py.example#L22-L22

@snopoke this was my best guess for working around this
https://github.com/dimagi/formplayer/pull/56
any idea if that's correct?

Can you not add the prepareThreshold property into the jdbc properties?

ok for now just using regular postgres user. will sync with @sravfeyn to see how much work it'd take to extract his work out. other than that, this is g2g. works on staging!

✅

:tada:

nvm looks like this broke some motech configs

authors: benrudolph proteusvacuum snopoke wpride

repo: dimagi/commcarehq-ansible


text:
Make drop index in algolia.js less destructive

When testing out the algolia.js integration, I was suprised that when reindexOnStart is enabled, that the entire index including all settings, facets, rankings etc. gets wiped.
That seems too destructive so this pull request aims at softening this to just delete the objects in the index, retaining all settings as they are.

Make more sense to clear data only. Thanks!

authors: benosman dimitrov-adrian


text:
Header values must be RFC 7230 compatible strings

In a Laravel Controller, I am returning $this->response->noContent(), which returns a Dingo Response.
Then, I'm running a validator on the response and I'm getting the following error:

Header values must be RFC 7230 compatible strings

I see what is causing it is:
$defaultContentType = $this->headers->get('Content-Type');
$this->headers->set('Content-Type', $formatter->getContentType());

in the Dingo\Api\Http\Response::morph() method
https://github.com/dingo/api/blob/42c5b78d010fbd97dc73aa01b259f05b1f033ce6/src/Http/Response.php#L145
I think there should be a validation: if ($formatter->getContentType()) { // Add content type }
Our current Dingo version is 2.0.1
Thanks.

Hi @juansebasleal - can you explain why it is actually not valid and provide an example ?

Hi @specialtactics
Well, if the response has not actual body (HTTP 204 response), it should not have Content-Type because there's no content.
The example would be easy to setup: In any controller just respond with DingoResponse->noContent().
Also, here you can see an example of how we get Content-Type: (null)

What I think is that it's happens because in api/src/Http/Response.php, method morph(), $formatter->getContentType() is null.
Additionally, this is more evident when we use a validator, in this case https://github.com/Nyholm/psr7, and we see that in fact it fails because of what said above.
My environment:
Laravel: 5.7.15
Dingo: 2.0.1
Validator: 1.3.0
Hopefully this helps clarify the issue.

Hey @juansebasleal thanks, that was quite detailed.
I believe I've fixed the issue now, you can try the latest master if you like to confirm, it will be tagged before too long but there are also other changes there for testing.

authors: juansebasleal specialtactics

repo: dingo/api


text:
doctrine/dbal and dingo/api

Hi,
under lumen I wrote a migration to change a database field, which (as per documentation) requires doctrine/dbal.
As soon as I run the migration I am greeted with:
PHP Fatal error:  Uncaught exception 'Illuminate\Contracts\Container\BindingResolutionException' with message 'Unresolvable dependency resolving [Parameter #1 [  array $format ]] in class Dingo\Api\Exception\Handler' in /***/vendor/illuminate/container/Container.php:828
Does anybody have any idea what's up?

I know this is a late reply, but if you're still having this issue can you paste the entire stack trace as well as the migration.
Cheers.


text:
Docker compose

http://debugo.com/docker-compose/
http://www.widuu.com/docker/compose/install.html

Compose是用于定义和运行复杂Docker应用的工具。你可以在一个文件中定义一个多容器的应用，然后使用一条命令来启动你的应用，然后所有相关的操作都会被自动完成。

使用docker compose作为本地开发环境
Dockerfile
app:
build: .
volumes:
- .:/src
links:
- mongo
- redis
- api_order
ports:
- 3000:3000
redis:
image: redis
mongo:
image: mongo
api_order:
image: api_order
自己构建服务镜像，类似redis、mongodb这样的，组合镜像，可以快速构建开发环境。
使用docker compose和Node.js结合是非常方便的，外加其他docker技术，可以让开发流程更顺畅。

3.3. 善用npm，实现3化（模块化，最小化，服务化）
使用npm模块化
使用npmjs的private私有模块（目前做法）
使用npm的本地模块开发方法（测试和部署都非常快）
搭建npm私服（todo）
通过识别业务边界，能拆分服务的都拆分成服务，保证模块的粒度最小。
比如
hz-api-admin
hz-api-crm
hz-api-order
hz-api-statistics
hz-api-stock
hz-dao-cloud
hz-dao-private
hz-dao-usercenter


text:
The not-federated public rooms should not be displayed

related to https://github.com/matrix-org/synapse/issues/3950

should be fixed on server side

repo: dinsic-pim/tchap-android


text:
Server Doesn't Appear in List

As of the the 1.1.0 update I am not seeing any launched servers in the client server list.
Server starts up within launcher without problem, just does not appear either in the full public list or the LAN filter.
Have tried this with Windows Defender disabled, and attempted to start servers with and without mods enabled. Same issue.
server_log.txt

It works for me. Could you check if the server appears to other people?

I will ask around. Also want to add that I still have no issues with running 1.0.0, only 1.1.0. I have tested it on both my computers, same issue. One is running Win 10, the other Win 11.

Hey Jazzy. Could you check if this is still happening on version 1.2.0? Thank you.

authors: JazzysGames diogo-webber

repo: diogo-webber/vox-launcher


text:
Fixing types

[X] Axios types
[ ] Github types

Esse kra já foi?

@Jott4 Ainda vai rolar esse kra?

Pode fechar ele, fiz isso junto com o feat do prisma

repo: diogocezar/pizzaiolo


text:
Build and evaluation corpus from Spain medical test repository

From the website:
https://fse.mscbs.gob.es/fseweb/view/public/datosanteriores/cuadernosExamen/busquedaConvocatoria.xhtml
extract information associated to question and request and create a framework for evaluation following the Meditron guidelines in model evaluation.

Check if exist similar repositories in LATAM cuntries as Chili, Argentina, Mexico, Uruguay.

Check copywrite licences and create document with dataset features.

Create a csv, readme and python script files as output.

We have to meet with the team to define wich task we are going to evaluate

repo: dionis/SpanishMedicaLLM


text:
Module parse failed: Unexpected character '#' (1:2341)

I installed treeselectjs via npm and I am using it with polymer3.
Though when I build my application, I am getting following error:
Module parse failed: Unexpected character '#' (1:2341)
My webepack.config.js is

const merge = require('webpack-merge');
const flowDefaults = require('./webpack.generated.js');

module.exports = merge(flowDefaults, {
        mode: 'production',
        module: {
                rules: [
                        {
                          test: /\.svg$/,
                          use: {
                            loader: 'html-loader',
                            options: {
                              minimize: true
                            }
                          }
                        },
                        {
                                test: /\.js$/,
                                loader: 'ify-loader'
                        }
                        ]
        },
        stats: {
          warnings: false
        }
});

How this can be resolved?

Hi @arpit1984, I think it related to the wrong build process. I used build for node instead of browser. I fixed this issue in new version 0.3.2. Could you please download the new version without of '#' signs? Please notify me if the problem still reproduces.

This solved the issue and build fine. Though I am seeing other errors. Following is my code:
import {normalizeWorkspaceDict} from '../../global-functions.js';
import { PolymerElement, html} from '@polymer/polymer/polymer-element.js';
import {afterNextRender} from '@polymer/polymer/lib/utils/render-status.js';

import { Treeselect } from 'treeselectjs';

class WorkspaceSelector extends PolymerElement {
    static get template() {
        return html `

`;
    }

    constructor() {
        super();
    }

    ready() {
        super.ready();
        var self = this;
        const options = [
        	  {
        	    name: 'England',
        	    value: 'England',
        	    children: [
        	      {
        	        name: 'London',
        	        value: 'London',
        	        children: [
        	          {
        	          name: 'Chelsea',
        	          value: 'Chelsea',
        	          children: []
        	          },
        	          {
        	          name: 'West End',
        	          value: 'West End',
        	          children: []
        	          }
        	        ]
        	      },
        	      {
        	        name: 'Brighton',
        	        value: 'Brighton',
        	        children: []
        	      }
        	    ]
        	  },
        	  {
        	    name: 'France',
        	    value: 'France',
        	    children: [
        	      {
        	        name: 'Paris',
        	        value: 'Paris',
        	        children: []
        	      },
        	      {
        	        name: 'Lyon',
        	        value: 'Lyon',
        	        children: []
        	      }
        	    ]
        	  }
        	]
        const domElement = this.$["test"];
        const treeselect = new Treeselect({
        	  parentHtmlContainer: domElement,
        	  value: ['West End', 'Paris', 'Lyon'],
        	  options: options,

        	})
}

When I am clicking on dopdowns, it is throwing the errors:
TypeError: Cannot read properties of null (reaching' checked')
TypeError: Cannot decontruct property "groupedNodes' of 't.detail' as it is undefined.
I am new to polymer 3, so very possible I am doing something wrong

@arpit1984 Could you say what exactly place you click? Or send a screenshot of the place. I think there can be a problem with CustomEvent in polymer, but I didn't work with polymer. Could you create a CustomEvent (new CustomEvent('test', { detail: 'test' }) inside of your code, for example. In the feature I am going to remove CustomEvents from my the component.

The dropdown somehow is transparent and overlays on the the background button. When I click one of the checkboxes, then I get the following errors.

I am new to polymer 3, so dont know about customevents. Let me look into this

@arpit1984 I see, I reproduced this, probably I know the solution. So there is a problem with styles and position of elements. Styles help me create a right position of elements. So could you add styles from dist, you can check README. Styles will help you.

You can rewrite styles for your site, with the help of CSS classes.

Very stupid question. can you tell me how to import styles in above class.
I tried  but that doesnt work

I found this <link rel="import" type="css" href="my-awesome-button.css">
https://polymer-library.polymer-project.org/1.0/docs/devguide/styling.html#style-modules
But it is deprecated. I don't know how a polymer works. You need a google something like 'How to add a style from package polymer'. Maybe it can be helpful too, but I don't sure. https://stackoverflow.com/questions/36224425/custom-style-vs-shared-styles-in-polymer

Thanks. I am working on it. Do you have any idea about the issue it was throwing

Or you meant that css style will solve the issue?

@arpit1984 Yeh, styles should fix this issue. I reproduced this issue on my side. Then I added styles, and the issue was fixed. I think styles should help.

I am using all the css styles from your package as inline in my app and I see some of the styles are in action, but still I am seeing the above mentioned error and transparent drop down. As some of the styles are working, I wonder if css isnot missing anything. Following is the updated image. The serach bar and the items in search bar looks fine, but the drop down still messed up

Could you show how did you add styles, because I don’t fully understand what inline means. Because partly applying looks strange, css file contains all styles for the list and for the input.

Thank you for all the help. I tried multiple ways of adding css to my app. Then I thought to use the crude approach and I copied the content of three css files under src folder of the github directly in my app like:

class WorkspaceSelector extends PolymerElement {
    static get template() {
        return html `


text:
Update README.md

Proposed Semver Increment Bump: [MAJOR/MINOR/PATCH]
Changed hydrabolt/discord.js -> discordjs/discord.js
Changes Proposed in this Pull Request (List new items in CHANGELOG.MD)

Updated readme

(If Applicable) What Issue does it fix?
Fixes nothing, just documentation changes

Shouldn't the package.json peer dep be updated as well to reflect the new namespace for discord.js?

Done

authors: CyberiumShadow kyranet

repo: dirigeants/komada


text:
可以支持json5吗

json5使用普遍，希望能支持

所以到现在还是不支持吗？

repo: dirkliu/vue-json-editor

license: ISC


text:
Make JDA bubble up websocket crashes as ExceptionEvent

General Troubleshooting

[X] I have checked for similar issues on the Issue-tracker.
[X] I have checked for PRs that might already address this issue.

Version of JDA
5.0.0-beta.22
Expected Behaviour
It should not hang on jda.awaitReady(); indefinitely when the websocket encounters an error.
In my situation I had badly updated my libraries and had in my pom this :
<dependency>
			<groupId>com.fasterxml.jackson.core</groupId>
			<artifactId>jackson-core</artifactId>
			<version>2.13.3</version>
		</dependency>
		<dependency>
			<groupId>com.fasterxml.jackson.core</groupId>
			<artifactId>jackson-annotations</artifactId>
			<version>2.17.0</version>
		</dependency>
		<dependency>
			<groupId>com.fasterxml.jackson.core</groupId>
			<artifactId>jackson-databind</artifactId>
			<version>2.17.0</version>
		</dependency>
		<dependency>
			<groupId>com.fasterxml.jackson.datatype</groupId>
			<artifactId>jackson-datatype-jsr310</artifactId>
			<version>2.17.0</version>
		</dependency>

This de-sync in versions caused the ListenerManager#callOnConnected from nv-websocket-client to throw java.lang.NoSuchMethodError: 'void com.fasterxml.jackson.core.util.BufferRecycler.releaseToPool()' which is not handled and reported to the end user because it seems from what I have seen that the class WebSocketClient ignores the handleCallbackError (I found out that AudioWebSocket actually does and correctly "rethrows" it by wrapping it in an ExceptionEvent)
My suggestion is that it should log the error somewhere or allow me to catch it by listening to ExceptionEvents (probably both)
(there is other methods like onUnexpectedError which might need to be handled by WebSocketClient too I guess ? maybe all others onXError, looks like onError is already implemented correctly)
Code Example for Reproduction Steps
JDA jda = JDABuilder.createDefault(token)
                    .setActivity(Activity.listening("..."))
                    .build();

            try {
                jda.awaitReady(); //hangs there
            } catch (InterruptedException e) {
                System.err.println(e);
                return;
            }

Code for JDABuilder or DefaultShardManagerBuilder used
JDA jda = JDABuilder.createDefault(token)
                    .setActivity(Activity.listening("..."))
                    .build();

Exception or Error
No error when it should be (see expected behaviour)

This should be improved in 5.0.0-beta.24

authors: DeepSnowNeeL MinnDevelopment

repo: discord-jda/JDA


text:
修正错误的链接地址锚点

文档中的一个跳转链接的锚点错了，修正了一下~

感谢

authors: ReedSun discountry

repo: discountry/react


text:
Enable Extension of FO-Engine-Specific Plugins

Description

Currently the .fop, .axf, and .xep plugs do not provide extension points. They should.
In addition, they each include the dita.xsl.xslfo extension point in their top-level XSLT files, which they should not.
Possible Solution

Change the extension point in the XSLT to a plugin-specific name and declare the extension in each plugin's plugin.xml file.
Potential Alternatives

None.
Additional Context

Use case was implementing a small extension to table entry handling just for FOP to add zero-width spaces to enable line breaking of long strings. Realized that there was no direct way to do this and noticed the inappropriate import extension.

In addition, they each include the dita.xsl.xslfo extension point in their top-level XSLT files, which they should not.

I noticed this morning the same problem, implementing the "dita.xsl.xslfo" extension adds references to your XSLT in 4 difference XSLT stylesheets.

It's an easy fix and I can make it just don't have time right at this moment.

The problem goes back to at least 2.5.4

We can't remove the old dita.xsl.xslfo extension point and replace them with formatter specif extension points for backwards compatibility. We can add e.g. new fop.xsl.xslfo to add FOP specific extension point to add imports to FOP shell stylesheet.

But those extension points can't do anything since they duplicate the base one. They only result in redundant imports of the same extension XSLTs unless I've seriously misunderstood what is happening.
In addition, the extension points are not declared in the plugin.
They should have never been there.

If we remove dita.xsl.xslfo, existing plugins will break, because they will not use fop.xsl.xslfo extension point. We can break those plugins in DITA-OT 4.0, but I see no point breaking the old plugins like this.

But those extension points can't do anything since they duplicate the base one. They only result in redundant imports of the same extension XSLTs unless I've seriously misunderstood what is happening.

That's not what is happening today -- the 4 imports go into 4 different shells. None of them go into the main topic2fo.xsl file that is imported by all of the shells.
I think that one of the imports is generally a no-op (org.dita.pdf2/xsl/fo/topic2fo_shell_template.xsl) because the three known formatters will all use one of the other three shells. But ... it's the "default" in the absence of those 3 so it makes sense to define it.
The other three imports all go into the formatter-specific shell for FOP, AXF, or XEP -- none of them go into the common file.
I do think you could have an extra, formatter-specific import after that one. But with the current design, each of the 3 shells will import your dita.xsl.xslfo extension after everything else.

I see--I had misunderstood how those plugins worked.
However, they still need to have their own plugin-specific extension points for the reason I gave. I will try to develop a pull request for this at some point.

authors: drmacro jelovirt raducoravu robander

repo: dita-ot/dita-ot


text:
🛑 Alilab is down

In 920cb04, Alilab ($ALILAB) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Alilab is back up in a453853 after 9 minutes.

repo: diveliastudio/upptime


text:
Why aggressive normalization?

After playing with the library I see that you normalize all objects. What is the purpose of normalizing everything and not only objects which has __typename and id ?

This is a good question and partly related to #27. We could normalize only object's that have ID. However then the structure will not be 100% flat since some normalized objects may have fields with deep structure (becuase some of their child objects have no ID). Not having a 100% flat structure brings some problems:

When merging, we probably need to do a deep merge instead of just shallow.
When denormalizing, we need to determine if we should treat a field as normalized or not (today everyhing is normalized so there is no need to determine it).

So the reason for normalizing everything is that the logic becomes easier, however it brings problems like in #27. I read an issue in the apollo repo about this and it seems they also normalize every object, probably for the same reasons (I can't seem to find that issue right now though).

yes, apollo also normalize the whole graph (but they also save some additional meta information). Now I understand the reasoning behind this decision, thanks!

It seems like in Apollo Client 3 they are moving towards not normalizing objects without ID:

a) The InMemoryCache no longer generates local IDs
Previous versions of the InMemoryCache would generate identifiers for entities that lack one in order to enable normalization. In Apollo Client 3, theInMemoryCache uses a new, reference-ID-based approach that only normalizes entities that have an ID. Entities without an ID are instead stored within their parent object in the cache. Initial tests with production data sets show a dramatic reduction in cache size, and an increase in overall cache performance.

Might be interesting to look into this more.

authors: jonaskello stalniy

repo: dividab/gql-cache


text:
Porting of a Caffe Net with a custom layer in Android

I'm creating a project for my thesis.
I should bring a coffee network in android.
Is it possible to use CK to import a custom layer written in C ++?
I ran the coffee network in matlab and it works fine.
Thanks for your help.
F.

Hi @eaangi , thank you for your interest in CK-Caffe!
CK is not magic. But it can indeed help you cross-compile Caffe to run on Android. However, we haven't tried it for a long time. I'd suggest to install a stable version of Caffe first:
$ ck install package ck-caffe:package:lib-caffe-bvlc-master-cpu-universal-20171013 --target_os=android21-arm64

If it still works, you can try to create your own fork of Caffe (from the OpenCL branch at that moment in time). with your changes to support the custom layer and build that. We can help you to redirect the PACKAGE_URL to your fork.

authors: eaangi psyhtest

repo: dividiti/ck-caffe


text:
Update screenshots for contact page with map plugin

The image /user/tutorial/images/structure-board-with-two-plugins.png needs to be changed, it shows lorem ipsum content.

authors: evildmp ruslanmalogulko

repo: divio/django-cms


text:
Correcting get_exif_for_file with custom storage

Correct bug with the followed settings:
PUBLIC_URL = '/'
MEDIA_URL = os.path.join(PUBLIC_URL, 'media/')
THUMBNAIL_MEDIA_URL = os.path.join(MEDIA_URL, 'thumbnails/')

PUBLIC_ROOT = os.path.join(BASE_DIR, 'static_files')
MEDIA_ROOT = os.path.join(PUBLIC_ROOT, 'media')
THUMBNAIL_MEDIA_ROOT = os.path.join(MEDIA_ROOT, 'thumbnails')

FILER_STORAGES = {
    'public': {
        'main': {
            'ENGINE': 'filer.storage.PublicFileSystemStorage',
            'OPTIONS': {
                'location': os.path.join(MEDIA_ROOT, 'filer'),
                'base_url': os.path.join(MEDIA_URL, 'filer'),
            },
            'UPLOAD_TO_PREFIX': '',
        },
        'thumbnails': {
            'ENGINE': 'filer.storage.PublicFileSystemStorage',
            'OPTIONS': {
                'location': os.path.join(THUMBNAIL_MEDIA_ROOT, 'filer'),
                'base_url': os.path.join(THUMBNAIL_MEDIA_URL, 'filer'),
            },
            'THUMBNAIL_OPTIONS': {
                'base_dir': '',
            },
        },
    }
}

Note: Bug seen with djangocms-cascade==0.16 when including a FilerImage into the bootstrap grid and with the previous filer settings.

repo: divio/django-filer