text:
Miro contributor lookup to Tandem Vault does not normalise source code

So where image_source_code is lowercase the lookup fails.

How many are actually broken?

It looks like the only issue we can sensibly fix is lowercase-to-uppercase, so let's just do that.

L, M and V will be re-run by #1172, so I’ll fix the B and N instances by hand.

authors: alexwlchan kenoir

repo: wellcometrust/platform


text:
Consider 0.12 Terraform update

From retro 7 June 2019

Dupe of #3668.

source: gharchive/issue

authors: alexwlchan pollecuttn

license: MIT

license_type: permissive

license_source: github-api


text:
Events prototypes 2

Who is this for?
The team
References #2944
What is it doing for them?

Creates Option 2 for testing
Displays date range and number of events for a multi date event
Adds an anchor link for viewing all dates and booking lower down the page

still to do

eventbrite widget integration

re: eventbrite integration - we have a way of making the iframe height change by proxying EB (we did this way at the beginning of working on whats on) - but we can fix it for the test.

source: gharchive/pull-request

authors: gestchild jamesgorrie


text:
"weluse\mailjet\Mailer::0" should be a url

I get empty posts back from mailjet tracking hooks.
But the endpoints work when tested from the mailjet panel.
I file a ticket at mailjet. They tell me not to use this package.
I find your tracking logic.
It is not clear we when to use this feature... what about the case where they are already in place at mailjet? What if we are not changing our tracker urls all day long?
It is not clear to me how to use this feature.
Since it is a required feature, may we have an example please?
Thank you.
Here s a bad guess:
        Yii::$app->mailer->setTracking([

            /*
            ['sent'=>'http://mj.mysite.com/index.php?r=/jet/track/sent'],
            ['open'=>'http://mj.mysite.com/index.php?r=/jet/track/open'],
            ['click'=>'http://mj.mysite.com/index.php?r=/jet/track/click'],
            ['bounce'=>'http://mj.mysite.com/index.php?r=/jet/track/bounce'],
            ['spam'=>'http://mj.mysite.com/index.php?r=/jet/track/spam'],
            ['block'=>'http://mj.mysite.com/index.php?r=/jet/track/block'],
            ['unsub'=>'http://mj.mysite.com/index.php?r=/jet/track/unsub'],
            */
            /*
            ['sent'=>'/jet/track/sent'],
            ['open'=>'/jet/track/open'],
            ['click'=>'/jet/track/click'],
            ['bounce'=>'/jet/track/bounce'],
            ['spam'=>'/jet/track/spam'],
            ['block'=>'/jet/track/block'],
            ['unsub'=>'/jet/track/unsub'],
            */
            ['sent'=>Url::to('/jet/track/sent')],
            ['open'=>Url::to('/jet/track/open')],
            ['click'=>Url::to('/jet/track/click')],
            ['bounce'=>Url::to('/jet/track/bounce')],
            ['spam'=>Url::to('/jet/track/spam')],
            ['block'=>Url::to('/jet/track/block')],
            ['unsub'=>Url::to('/jet/track/unsub')],

        ]);
        Yii::$app->mailer->activateAllTrackings();
        $mi = Yii::$app->mailer->compose()
            ->setFrom('support@mj.mysite.com')
            ->setTo('BOUNCEMEAGAIN33@xyz.com')
            ->setSubject('Message subject')
            ->setTextBody('Plain text content')
            ->setHtmlBody('<b>HTML content</b>')
            ->send();

Hi!
The tracking feature can be used to set the tracking endpoints inside your Mailjet account. It's like filling out the tracking endpoint form inside your account settings, except automated.
If you want to do this, you can add the URLs to your yii2 config and call activateTracking. Here is an example config:
    'components' => [
        'mailer' => [
            'class' => 'weluse\mailjet\Mailer',
            'apikey' => 'xxx',
            'secret' => 'xxx',
            'tracking' => [
                'sent' => 'http://mj.mysite.com/index.php?r=/jet/track/sent',
                'open' => 'http://mj.mysite.com/index.php?r=/jet/track/open',
                'click' => 'http://mj.mysite.com/index.php?r=/jet/track/click',
                'bounce' => 'http://mj.mysite.com/index.php?r=/jet/track/bounce',
                'spam' => 'http://mj.mysite.com/index.php?r=/jet/track/spam',
                'block' => 'http://mj.mysite.com/index.php?r=/jet/track/block',
                'unsub' => 'http://mj.mysite.com/index.php?r=/jet/track/unsub',
            ]
        ],

I guess we need to improve documentation on that.

license: mit

license_source: bigquery


text:
Update Mailer.php

Added response

Thanks for your contribution, LGTM 🌟
@Julian-B90, do you wanna merge this?

Thank you @Arnaud-G1.


text:
街道显示能不能动态控制

有的地区有街道有的没有 在获取地区的数据时候才知道有没有街道

或者街道数据为空 就不显示

@lisper-ip 这个也是我想做的，后面的版本上

@lisper-ip 已升级版本

authors: lisper-ip wenchaosong

repo: wenchaosong/FlutterCityPicker


text:
Issue while Loading trained model

I trained model for a while & cancelled training
Now i'm trying it test. i'm getting below issue. kindly please help. thanks in advance
Command:
!python test.py --checkpoint saved/models/PICK_Default/test_1012_064804/model_best.pth
--boxes_transcripts {out_box_path}
--images_path {out_img_path} --output_folder /content/output/
--gpu 0 --batch_size 2
Error:
Loading checkpoint: saved/models/PICK_Default/test_1012_064804/model_best.pth
with saved mEF 0.0000 ...
RuntimeError: Error(s) in loading state_dict for PICKModel:
size mismatch for decoder.bilstm_layer.mlp.mlp.0.weight: copying a param with shape torch.Size([49, 1024]) from checkpoint, the shape in current model is torch.Size([11, 1024]).
size mismatch for decoder.bilstm_layer.mlp.mlp.0.bias: copying a param with shape torch.Size([49]) from checkpoint, the shape in current model is torch.Size([11]).
size mismatch for decoder.crf_layer.transitions: copying a param with shape torch.Size([49, 49]) from checkpoint, the shape in current model is torch.Size([11, 11]).
size mismatch for decoder.crf_layer._constraint_mask: copying a param with shape torch.Size([51, 51]) from checkpoint, the shape in current model is torch.Size([13, 13]).
size mismatch for decoder.crf_layer.start_transitions: copying a param with shape torch.Size([49]) from checkpoint, the shape in current model is torch.Size([11]).
size mismatch for decoder.crf_layer.end_transitions: copying a param with shape torch.Size([49]) from checkpoint, the shape in current model is torch.Size([11]).

Hi, @karthikesh2020 , please check your config file. The numbers of classes for train and test are likely to be different.

Hi, @karthikesh2020 , please check your config file. The numbers of classes for train and test are likely to be different.

Hi, @karthikesh2020 , please check your config file. The numbers of classes for train and test are likely to be different.

Thank you so much @tengerye, It solved the problem.

repo: wenwenyu/PICK-pytorch


text:
Training the RTSRN for custom dataset.

Hi @wenyu1009,
Thank you for such great work!
I want to train the RTSRN on a custom dataset. I would like to ask where I can find the pre-trained weights for RTSRN. I was able to download the STR models (MORAN, CRNN). I am looking for the pre-trained weights for RTSRN.
I appreciate any help you can provide.

Sorry, this paper is a company collaboration paper, and the model parameters cannot be disclosed. You can train a model by referring to the README


text:
devtools 无法通过选择元素定位到dom

devtools 无法通过选择按钮选择界面元素，定位到devtools的dom，chrome是可以的。

有个右键菜单，“检查”

哦，知道了。

authors: JackChenLucky weolar


text:
whois.registry.net.za now uses ZA Central Registry

whois.registry.net.za migrated to the ZA Central Registry format some time ago.

Hmmm, don't merge yet. WhoisRegistryNetZa isn't correctly detected as the parser to use and I haven't figured out why, yet.

Ah. The hostname has changed from whois.registry.net.za to coza-whois.registry.net.za.

Thanks!

authors: sheldonh weppos

repo: weppos/whois-parser


text:
Reconnect when receiving GOAWAY

when streaming logs and killing 1/3 api servers, stern spits out this:
ERROR: logging before flag.Parse: E0205 21:13:53.792712   21184 streamwatcher.go:109] Unable to decode an event from the watch stream: http2: server sent GOAWAY and closed the connection; LastStreamID=5, ErrCode=NO_ERROR, debug=""

(I think the api-server it was connected to died) ... but then it just sits there and does nothing even if new logs lines arrive ... it should retry watching instead (ideally with offset so it does not duplicate)

https://github.com/rancher/stern/commit/d38af544c2e65088d5aeb4f6537e655fad5a3cb9 might fix that

... released it here https://github.com/grosser/stern (has releases for download too)

@adleong @cbron
would be great to have a canonical successor at linkerd or rancher ... feel free to pick my release workflow https://github.com/grosser/stern/commit/295f51f87c2cf9a7a47c8b3a19b41b895d6392cd

@grosser did my commit fix your problem ? Mine was for slightly different purpose but I can see how it would help.

seems to not fix it, retried killing the api server while streaming logs and it silently breaks
the new pods still show up as events, but their logs don't 🤷

authors: cbron grosser

repo: wercker/stern


text:
Imprv/gw 6241 delete reset button

概要
withoutProxy の設定リセットボタンを削除しました。

propTypes の過不足の確認お願いします

authors: itizawa miya

repo: weseek/growi


text:
Workaround for Error Messages

Under certain conditions, Rscript gives a warning message of:
WARNING: ignoring environment value of R_HOME

When there seems to be a (valid but unusual) setup of R_HOME.  As a
result, the command to determine the endianess of the system returns
WARNING: ignoring environment value of R_HOME little

instead of just “little”. causing this script to think it is little
endian when it isn’t.  This pull changes the configure script to
remove this warning message before checking the endianness.

The tests are failing due to a recent change in the pandas library unrelated to this pull, and the master branch currently fails tests as well.
The tests do pass on version 0.18 of Pandas but not on the new 0.19 version released 4 days ago.  I would like to get this fix added to the CRAN package, would it help the merge if I changed requirements.txt to specify version 0.18 of pandas?

Current coverage is 80.76% (diff: 100%)

Merging #237 into master will not change coverage

@@             master       #237   diff @@
==========================================
  Files            12         12
  Lines           915        915
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
  Hits            739        739
  Misses          176        176
  Partials          0          0

Powered by Codecov. Last update dca1a34...bfb870d

Saw the tests were fixed and rebased on master.

I am hitting this issue as well, will this fix be merged?

Sorry fro for the delay, merging.

authors: codecov-io dalexander evolvedmicrobe wesm

repo: wesm/feather


text:
refactor: Unified build and optimize bootstrap process

Currently, each of our modules depends on the build.sh file in its own folder
This causes code duplication - each module has a similar build file. At the same time, we also have a simple build process and have written some shell scripts for it.
Now we hope to unify the build:

The build depends on a unified build script (it may be located in the build folder), so that we don't have to worry about script errors when building each module

Optimize our startup process (bootstrap), we expect a standard process like this:

Start Program -> Read Args -> Read Remote Config -> Init -> Serving

The remote configuration center address is provided by args

Now our program lacks an engineering implementation of program parameters. It only relies on a simple "flag" package. We should use a more engineering design.

Although we use a remote configuration center, the parameters mentioned above refer more to the options when the program is initialized. For example, we can set a useHook flag to decide whether to use eshook

tips: you can choose a suitable flag package or still use "flag" package

solved at #63


text:
Unknown/unsupported Swagger version to validate against:

Doesn't seem to be picking up the Swagger version correctly (notice no version is reported).
I get this even when loading https://github.com/OAI/OpenAPI-Specification/blob/master/examples/v2.0/json/petstore-minimal.json
     Failure/Error: subject { Apivore::SwaggerChecker.instance_for('/swagger.json') }
     RuntimeError:
       Unknown/unsupported Swagger version to validate against:

Related to #64 though I get the error also when loading https://github.com/westfieldlabs/apivore/blob/master/spec/data/01_sample2.0.json
Running apivore (1.6.2)

Are you changing the default rspec host used for requests from "www.example.com" to something else? This is the only change I've made and I'm having this issue. I think it must be a bug in apivore, it should support changing the host.

authors: aegixx saneshark

repo: westfieldlabs/apivore


text:
Show donation totals on voter summary and details pages.

See /issues/1657

👍

authors: DaleMcGrew SailingSteve

repo: wevote/WeVoteServer


text:
bug fix - when a deadletterhandler panics grabbit fails to reject the…

issue: https://github.com/wework/grabbit/issues/135

Coverage increased (+0.3%) to 75.542% when pulling 76032bc35e1572fb872ab91484e9e3101308fb61 on bug_fix_dlq_panic_handling into 58b7cecb096692c86cfbaaf509ac50c02032cf54 on v1.x.

authors: adiweiss coveralls

repo: wework/grabbit


text:
Add post

Please add this post:
Post URL:https://blog.knoldus.com/playing-with-env-in-rust/amp/
Blog Homepage:https://blog.knoldus.com/
Author Name:Mudit Chhabra
Categories: Performance and Applications

When can I expect comments on this?

repo: wezm/read-rust


text:
Using this as a background service

Hi
Great plugin.. thanks for that. I need to have permanent connection with the server.. is it possible to have this plugin run as a background service so that the service still runs if the app is killed? Or is there a better solution for that scenario?

Although this plugin does not run in service (because of I didn't design for it), the source code is able to run in service.
Create a service class, then copy the source code.

Thanks, yes, I did it and it seems to work. However, https didn't work out of box. I will need to investigate it a bit further. I have seen this thread: https://github.com/nkzawa/socket.io-client.java/issues/26 - but I will read it tomorrow.
Had you tested it with https?

Yes, this library works fine with https. I uses https://github.com/nkzawa/socket.io-client.java in my work project.
Do you use self-signed ssl file, perhaps?

Hi yes, I am using self-signed certificates, but I tried to install it on my device and it said certificate is installed. However, it doesnt list it under Security-Credential Storage-Trusted Credentials. I am not too sure if it is supposed to list it there anyway.
Should it work with self signed certs once they are installed?

Using the SSL configuration code from page below makes it work:
https://github.com/jonathanve/socket-io-android/blob/master/client-snippet.java

asda


text:
Implement entire Snapshot GraphQL API

With snapshot creation, there's issue of filesystem going stopped unexpectedly.
With everything else, there's potential to hit this issue: https://github.com/whamcloud/integrated-manager-for-lustre/issues/2218
Signed-off-by: Michael Pankov work@michaelpankov.com

This change is

With snapshot creation, there's issue of filesystem going stopped unexpectedly.

This is due to us not filtering out zed events for snapshots (which also will only appear after a reboot).

Has conflicts on master

Looks like this now

I've changed to use mutations instead of queries

Has a conflict on master, otherwise LGTM

authors: jgrund mkpankov

repo: whamcloud/integrated-manager-for-lustre


text:
PSA: serial team converted to collaborators

Hi members of the now-gone whatwg/serial team. I've converted you all to collaborators on this repo, which is equivalent, and a new-ish feature of GitHub. You should have the same access privileges.

Closing issue, filed just to reach your inbox.

repo: whatwg/serial

license: unlicense


text:
maint: use dirs::home_dir() instead of deprecated std::env::home_dir()

cargo check warns that std::env::home_dir() is deprecated:
warning: use of deprecated item 'std::env::home_dir':
This function's behavior is unexpected and probably not
what you want. Consider using the home_dir function from
https://crates.io/crates/dirs instead.

Use dirs::home_dir() instead.

Thanks!

authors: davvid whitequark

repo: whitequark/rust-xdg


text:
Suggestion: Configurable log file names

Hey Mike,
While troubleshooting my issue (#80), I thought on the idea of being able to use a log file name that had the (market pair) in the name. i.e. (pycrypto-ETHUSDT.log).
This hack is handy if you are running multiple bots under one install using subprocesses.
So, i got it working on my version of the code base:
[config.json]

adding a new key to the (config) array

"logfile_prefix" : ""
[models/PyCryptoBot.py]

added a default configuration value in case the key does not exist in the (config.json) file.
added logic to check for key in config file and to scrub it and use it.

self.logfile_prefix = 'pycryptobot'
if 'logfile_prefix' in config:
     if isinstance(config['logfile_prefix'], str):
        self.logfile_prefix = config['logfile_prefix'].strip()
        if self.logfile_prefix == "":
           self.logfile_prefix = "pycryptobot"
        else:
           self.logfile_prefix = config['logfile_prefix']

[pycryptobot.py]

added new variable (logfile_name)
set variable to to use (logfile_prefix) property concatenated with (market) value and hardcoded file extension
the file extension can be made configurable as well
logic could be added to pre-pend a date string before the file extension

try:
    # initialise logging
    log_filename = app.logfile_prefix + "-" + app.getMarket() + ".log"
    logging.basicConfig(filename=log_filename, format='%(asctime)s - %(levelname)s: %(message)s', datefmt='%m/%d/%Y %I:%M:%S %p', filemode='a', level=logging.DEBUG)

Here are examples of the files created using the logic
-rw-r--r--   1 admin  staff   3519 Apr 28 14:21 pycryptobot-ADAUSDT.log
-rw-r--r--   1 admin  staff   3464 Apr 28 14:21 pycryptobot-ETHUSDT.log
--

Good suggestion. Though this might not be ideal for dockerised bot. Another approach is to pass the log filename as a parameter OR mount the logs on docker-compose like the one below
Option 1: No code change, run bot on docker
version: "3.9"

services:
  # coinbase pro
  ethdai:
    image: pycryptobot
    container_name: ETHDAI
    volumes:
      - ./market/ETHDAI/config.json:/app/config.json
      - ./market/ETHDAI/pycryptobot.log:/app/pycryptobot.log
      - ./market/ETHDAI/graphs:/app/graphs
      - /etc/localtime:/etc/localtime:ro
    deploy:
      restart_policy:
        condition: on-failure

  btcdai:
    image: pycryptobot
    container_name: btcdai
    volumes:
      - ./market/BTCDAI/config.json:/app/config.json
      - ./market/BTCDAI/pycryptobot.log:/app/pycryptobot.log
      - ./market/BTCDAI/graphs:/app/graphs
      - /etc/localtime:/etc/localtime:ro
    deploy:
      restart_policy:
        condition: on-failure

Option 2: Code change neeed, pass the logfile as parameter or as environment variable
python3 pycryptobot.py --market BTC-GBP --granularity 3600 --live 1 --verbose 0 --selllowerpcnt -2 --logfile ./btc-gbp.log

inside docker-compose.yml
version: "3.9"

services:
  # coinbase pro
  ethdai:
    image: pycryptobot
    container_name: ETHDAI
    volumes:
      - ./market/ETHDAI/config.json:/app/config.json
      - ./market/ETHDAI/graphs:/app/graphs
      - /etc/localtime:/etc/localtime:ro
    environment:
     - LOGFILE:btc-gbp.log
    deploy:
      restart_policy:
        condition: on-failure

  btcdai:
    image: pycryptobot
    container_name: btcdai
    volumes:
      - ./market/BTCDAI/config.json:/app/config.json
      - ./market/BTCDAI/graphs:/app/graphs
      - /etc/localtime:/etc/localtime:ro
   environment:
     - LOGFILE:eth-dai.log
    deploy:
      restart_policy:
        condition: on-failure

@whittlem would u like me to work on this one?

Hi @letsautom8 ,
I agree with you that simply passing the log file name as a parameter is an easier implementation.
I am running the bot within a wrapper script so, dynamically modifying the log file name and passing it as a parameter serves the same purpose.
I believe the bot script is already heading towards a version that supports multiple bot instances which will lend itself to needing instance specific logging, etc.

@letsautom8, yes please. If you wouldn't mind that would be great. Thanks.

And thanks @github-ptaylor. Great idea.

Here you go #87

@letsautom8 i like how you coded that, super clean.
i get to try something new from a fresh copy because i totally "fubar'd" my previous install :)

@github-ptaylor, if you "fubar'd" the code just type "git reset --hard" and then "git pull". Should put you back to normal :)

@letsautom8 is this feature working only on docker ?

@letsautom8 is this feature working only on docker ?

@delphsmith it is working on the non-docker install as well.
i am using the feature with the command-line args

oh ok ...not working for me, but i put it in my config.json file.
I did not precise a folder tho, thinking it would put it in the working folder by default, but maybe i'm missing that.
I'll try with the cli args, thanks

@delphsmith
i just confirmed that it is NOT configurable from the config.json file.
@letsautom8 @whittlem i can add the code the pull request method if you like

github-ptaylor that would be great :) thanks

authors: delphsmith github-ptaylor letsautom8 whittlem

repo: whittlem/pycryptobot


text:
🛑 Lunes Negro is down

In 3807893, Lunes Negro (https://lunesnegro.com.ar) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Lunes Negro is back up in e1f7ab1.

repo: whoisnegrello/upptimetest


text:
移植到Visual Studio Code

这么好用的插件，大神有意向移植到Visual Studio Code么？毕竟很多前端都不用IDE的

可以考虑，但是最近没有时间做这件事。 同时如果你有意向移植的话， 我可以提供支持。

暂时醉心于Android，还没有意向和能力做这个移植。

authors: oncealong vhunmr

repo: whunmr/emacsIDEAs


text:
为什么我设置了revsuit rmi 但是探测仍然是使用的dnslog呢？

设置的revsuit rmi，并且应用了

从extender的输出来看仍然是使用 dnslog测试的

revsuit平台的 rmi log 也是没有记录的

burpsuite 版本 2021.8
java11

插件下载的是最新版本的

修改之后点击Save&Apply，随后产生的新扫描任务才会使用rmi。
也就是说，如果目标URL的扫描任务在Apply新配置前已经启动了的话，是无法使用新的扫描配置的。

authors: githublihaha whwlsfb


text:
too long 有办法直接或间接解决吗

ARG_MAX也改过了并重新编译了 没什么效果

同样的问题，跪求解决方法

同样的问题，跪求解决方法

貌似无解。不过谷歌到有老外说这种情况可以尝试更改代码写法。不会写代码，可能理解错。

试试这个方案
解决 青龙面板中存放的cookie数目过多（如超过45）时，会报 Argument list too long 而无法正常执行部分脚本的问题

repo: whyour/qinglong


text:
🛑 Olives 🇩🇪 (de) is down

In 41e4d62, Olives 🇩🇪 (de) (https://holiday-lescala.com/h/haus-olives/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Olives 🇩🇪 (de) is back up in d6445e8 after 26 minutes.

repo: whytspace/upptime-holiday-lescala


text:
ChangePropertyAction doesn't work with Image and Source property

I doesn't update the image source.

<Image Name="image" Source="../Assets/Loading.ico" MaxWidth="24" MaxHeight="24" Margin="4">
    <Interaction.Behaviors>
        <DataTriggerBehavior Binding="{Binding Updated^}" ComparisonCondition="Equal" Value="true">
            <ChangePropertyAction TargetObject="{Binding #image}" PropertyName="Source" Value="../Assets/True.ico" />
        </DataTriggerBehavior>
        <DataTriggerBehavior Binding="{Binding Updated^}" ComparisonCondition="Equal" Value="false">
            <ChangePropertyAction TargetObject="{Binding #image}" PropertyName="Source" Value="../Assets/False.ico" />
        </DataTriggerBehavior>
    </Interaction.Behaviors>
</Image>

But it works when I use text (emoji here).

<Label Name="label" Content="💤" HorizontalContentAlignment="Center" VerticalContentAlignment="Center">
    <Interaction.Behaviors>
        <DataTriggerBehavior Binding="{Binding Updated^}" ComparisonCondition="Equal" Value="true">
            <ChangePropertyAction TargetObject="{Binding #label}" PropertyName="Content" Value="✅" />
        </DataTriggerBehavior>
        <DataTriggerBehavior Binding="{Binding Updated^}" ComparisonCondition="Equal" Value="false">
            <ChangePropertyAction TargetObject="{Binding #label}" PropertyName="Content" Value="🛑" />
        </DataTriggerBehavior>
    </Interaction.Behaviors>
</Label>

It's just because Image doesn't work with string, but works with IBitmap

It's just because Image doesn't work with string, but works with IBitmap

Yes, this is true, but Avalonia uses a converter (Bitmap Type Converter), which allows you to write
<Image Source="/Assets/myImage.png"> in XAML.
The same behavior is expected when using ChangePropertyAction, but it is different, most likely because the converter is not used.

In file src/Avalonia.Xaml.Interactions/Core/TypeConverterHelper.cs line 69 for the type Avalonia.Media.IImage returns a ReferenceConverter and the ConvertFromInvariantString method returns null.

authors: BaculisBirota maxkatz6 sharpordie

repo: wieslawsoltes/AvaloniaBehaviors


text:
Incorrect evaluation of the etherscanApiKey when verifying contracts.

Describe the bug
Incorrect evaluation of the etherscanApiKey when verifying contracts.
To Reproduce
Steps to reproduce the behavior:
Attempt to verify a contract on a different network than mainnet (base, arbitrum, polygon, etc.) with correctly set hardhat configuration (hh.network.verify.etherscan.apiKey) and valid api key leads to error: failed to submit : "NOTOK" : "Invalid API Key"
Expected behavior
Should verify contract as expected.
** More context **
The code down below (line 857 in index.ts) evaluates the etherscanApiKey based on 4 fields in the order:

command line argument apiKey
If ETHERSCAN_API_KEY is present
hre.network.verify.etherscan.apiKey
hre.config.verify.etherscan.apiKey

Which means if you have set ETHERSCAN_API_KEY for mainnet, and an api key for another network in the hardhat config, the api key deduced will be the mainnet one and the verification will fail with invalid key.
 .setAction(async (args, hre) => {
    const etherscanApiKey =
      args.apiKey ||
      process.env.ETHERSCAN_API_KEY ||
      hre.network.verify?.etherscan?.apiKey ||
      hre.config.verify?.etherscan?.apiKey;
    if (!etherscanApiKey) {
      throw new Error(
        `No Etherscan API KEY provided. Set it through command line option, in hardhat.config.ts, or by setting the "ETHERSCAN_API_KEY" env variable`
      );
    }

    const solcInputsPath = await deploymentsManager.getSolcInputPath();
    await submitSources(hre, solcInputsPath, {
      contractName: args.contractName,
      etherscanApiKey,
      license: args.license,
      fallbackOnSolcInput: args.solcInput,
      forceLicense: args.forceLicense,
      sleepBetween: args.sleep,
      apiUrl: args.apiUrl || hre.network.verify?.etherscan?.apiUrl,
      writePostData: args.writePostData,
    });
  });

versions

hardhat-deploy [0.11.44]
hardhat [2.15.0]
nodejs [16.18.01]

Fixed docs for the evaluation in #504

repo: wighawag/hardhat-deploy


text:
Mobile / tablet friendly development

possibly may be required if adopted for production

I believe this is related to the new designs now found in the wikimaps-html repo, so closing

repo: wikimaps-dev/mapwarper


text:
Add stage for illustrating adding Rhea IDs to metabolic conversions

Add stage for illustrating adding Rhea IDs to metabolic conversions in Advanced Modeling track

Also check documentation on ChEBI IDs for pH 7.3 : https://www.rhea-db.org/help/chebi-in-rhea#major_microspecies

repo: wikipathways/academy


text:
Install-WslIpHandler rewrites profile.ps1

Wsl-IpHandler Content was added to Powershell profile: C:\Users\%User%\Documents\PowerShell\profile.ps1
Actually script not add, but replace all the file which lead to losing other settings. It should append the file.

Sorry miss looked to another file

repo: wikiped/Wsl-IpHandler


text:
fix copy paste error in ssl reload command helper

This PR fixes an error in reload command helper for ssl

Thanks for your contribution.

authors: gaetanfl wikitops


text:
No cards

I am running Windows 10 Home. I installed Anki 2.1, downloaded the zip file, extracted it, and pasted the folder memrise2anki-extension-master into AppData>Roaming>Anki2>addons21, then restarted Anki.  I went into "Import Memrise Course," entered my username and password, inserted a URL to a course. The download took several minutes and showed my progress. Then I was taken through a series of options and chose the Basic/default options.
When I get to the Anki screen, I see the course name, but there are NO CARDS.  I tried this with a course I had progress in and a course I never started.  I can't do a custom study. It is stuck at "Increase today's new card limit by 0 cards."  I can't increase the number above 0.  When I browse the decks, there is nothing in the cards.
I'm not getting an actual error message though!
It's strange because when the course is downloading, it says "X/XXcards" and it also gives a sample card with the first line from the course.
I would really appreciate any help.  You must be inundated with questions these days!

Hm... did you have a look in the card browser?

I tried that, but there was nothing in the card browser either.
I seem to have stumbled onto a solution, though... after importing the course, at "Select note type for newly imported notes," if I leave it "create new" instead of selecting "Basic" as I had been, it does work. The only think that doesn't quite work is the mems. The pictures didn't download (not sure if they were supposed to?) and the text of them has weird formatting. Not sure if I should open a new issue for that?
In any case, thanks for such a useful tool.

Importing mems should be fixed now

authors: beefpizza wilddom

license: isc


text:
Problem with access property file

I'm not entirely sure if this is a problem with my example (trying to access non-Java EE APIs), configuration of it, WildFly-Swarm, or something else entirely. However, hopefully this other issue gives some context as any help would be appreciated ...
https://github.com/nmcl/wfswarm-example-arjuna/issues/1

Moved to https://issues.jboss.org/browse/SWARM-241

authors: kenfinnigan nmcl

repo: wildfly-swarm/wildfly-swarm-examples


text:
SWARM-1693 [REV-2] - Microprofile + OpenAPI 1.0.1 spec implementation (fraction)

[x] Have you followed the guidelines in our Contributing document?
[x] Have you created a JIRA and used it in the commit message?
[x] Have you checked to ensure there aren't other open Pull Requests for the same issue?
[x] Have you built the project locally prior to submission with mvn clean install? really this time

Ok it failed on Linux here too.
Will send a PR to see how it goes on Monday

Hi @EricWittmann I've sent you a possible fix for this: https://github.com/EricWittmann/wildfly-swarm/pull/2 . Can you check if it's enough?
Thanks!

I'll test it locally certainly.  But note that the build has never failed for me locally the way it has on CI and for others (e.g. @msavy ).  So if it passes my local build shall I push it to the PR branch so it can be tested on CI?

Hi @EricWittmann . Yes please, as that is the failing environment. If it passes, maybe I should make the PR properly with a right SWARM JIRA ticket.

OK everything worked locally.  I have pushed the commit to the PR branch.  Should be retesting now.

Ok @EricWittmann fingers crossed

Oh it fails on windows...

@EricWittmann, can https://github.com/wildfly-swarm/wildfly-swarm/pull/810 be closed as out of date?
@juangon, @mkouba, @michalszynkiewicz, @sberyozkin, @heiko-braun - I want this reviewed by a couple of people Tuesday morning, as it's lots of code, so that we can put it to bed and do the 2018.3.1 release to include it.
We can always revisit the Windows temp file issue later

@kenfinnigan will try to reproduce locally on Windows. If can't find a fix, I can send a PR for disabling temp file check for this test also

@juangon Hm, this time it failed in arquillian-test and not in OpenAPI TCK.
@kenfinnigan I already spent some time with this PR and I think it's good to go.

So this is getting interesting. I could reproduce the failure on Windows, but after some attempts couldn't make it work (file is still locked by Windows at that time).
And then I returned to the original failure in openapi TCK without my suggested fix. And in my windows env it works!! Maybe we should re-run CI tests for the original PR

@kenfinnigan Yes 810 is out of date.  This one supersedes it.  So other than @juangon's suggestion to retest #810 I can think of no reason not to close it.

authors: EricWittmann juangon kenfinnigan mkouba

repo: wildfly-swarm/wildfly-swarm


text:
[WFCORE-2592] Special characters escaping in service.bat

https://issues.redhat.com/browse/WFCORE-2592

The purpose of this PR is to enable escaping of special characters, which are part of windows command line syntax, for jbosspass argument.
The whole password argument should be put in double quotes, then individual characters can be escaped by:

; and # which are part of procrun syntax can be escaped by putting them into single quotes (this works even before this PR)
& < > | ^ ( ) ! as part of windows command line syntax can be escaped with ^
other special characters like % , ; \ * ? . = [ ] are ok

Core - Full Integration Build 10562 outcome was FAILURE using a merge of c86d2a7bd55d8fab8e1efadc661ead149d686e6a
Summary: Tests failed: 2 (2 new), passed: 7761, ignored: 150 Build time: 04:16:02
Failed tests
org.wildfly.test.integration.elytron.ssl.AutomaticSelfSignedCertificateNotGeneratedTestCase.testSelfSignedCertificateNotGeneratedWithGenerateAttributeUndefined: java.lang.AssertionError: Failed to execute line '/subsystem=elytron/key-manager=AutomaticSelfSignedCertificateNotGeneratedTestCase:undefine-attribute(name=generate-self-signed-certificate-host)'
org.jboss.as.cli.CommandLineException: {
    "outcome" => "failed",
    "failure-description" => "WFLYCTL0216: Management resource '[
    (\"subsystem\" => \"elytron\"),
    (\"key-manager\" => \"AutomaticSelfSignedCertificateNotGeneratedTestCase\")
]' not found",
    "rolled-back" => true
}
 at org.jboss.as.cli.handlers.OperationRequestHandler.handle(OperationRequestHandler.java:95)
 at org.jboss.as.cli.impl.CommandContextImpl.handleOperation(CommandContextImpl.java:1886)
 at org.jboss.as.cli.impl.CommandContextImpl.handle(CommandContextImpl.java:875)
 at org.jboss.as.test.integration.management.util.CLIWrapper.sendLine(CLIWrapper.java:218)
 at org.jboss.as.test.integration.management.util.CLIWrapper.sendLine(CLIWrapper.java:244)
 at org.wildfly.test.integration.elytron.ssl.AutomaticSelfSignedCertificateNotGeneratedTestCase.testSelfSignedCertificateNotGeneratedWithGenerateAttributeUndefined(AutomaticSelfSignedCertificateNotGeneratedTestCase.java:126)

java.lang.AssertionError:
Failed to execute line '/subsystem=elytron/key-manager=AutomaticSelfSignedCertificateNotGeneratedTestCase:undefine-attribute(name=generate-self-signed-certificate-host)'
org.jboss.as.cli.CommandLineException: {
    "outcome" => "failed",
    "failure-description" => "WFLYCTL0216: Management resource '[
    (\"subsystem\" => \"elytron\"),
    (\"key-manager\" => \"AutomaticSelfSignedCertificateNotGeneratedTestCase\")
]' not found",
    "rolled-back" => true
}
	at org.jboss.as.cli.handlers.OperationRequestHandler.handle(OperationRequestHandler.java:95)
	at org.jboss.as.cli.impl.CommandContextImpl.handleOperation(CommandContextImpl.java:1886)
	at org.jboss.as.cli.impl.CommandContextImpl.handle(CommandContextImpl.java:875)
	at org.jboss.as.test.integration.management.util.CLIWrapper.sendLine(CLIWrapper.java:218)
	at org.jboss.as.test.integration.management.util.CLIWrapper.sendLine(CLIWrapper.java:244)
	at org.wildfly.test.integration.elytron.ssl.AutomaticSelfSignedCertificateNotGeneratedTestCase.testSelfSignedCertificateNotGeneratedWithGenerateAttributeUndefined(AutomaticSelfSignedCertificateNotGeneratedTestCase.java:126)

	at org.jboss.as.test.integration.management.util.CLIWrapper.sendLine(CLIWrapper.java:222)
	at org.jboss.as.test.integration.management.util.CLIWrapper.sendLine(CLIWrapper.java:244)
	at org.wildfly.test.integration.elytron.ssl.AutomaticSelfSignedCertificateNotGeneratedTestCase.testSelfSignedCertificateNotGeneratedWithGenerateAttributeUndefined(AutomaticSelfSignedCertificateNotGeneratedTestCase.java:126)
------- Stdout: -------
 [0m08:04:37,924 INFO  [org.jboss.as.repository] (management-handler-thread - 1) WFLYDR0001: Content added at location /store/work/tc-work/37b47ae8b9c60325/full/testsuite/integration/elytron/target/wildfly/standalone/data/content/15/27b8e95908d8512fd10a9bb21fe11d3722af03/content
 [0m [0m08:04:37,926 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) WFLYSRV0027: Starting deployment of "AutomaticSelfSignedCertificateNotGeneratedTestCase.war" (runtime-name: "AutomaticSelfSignedCertificateNotGeneratedTestCase.war")
 [0m [0m08:04:37,981 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 40) WFLYUT0021: Registered web context: '/AutomaticSelfSignedCertificateNotGeneratedTestCase' for server 'default-server'
 [0m [0m08:04:37,989 INFO  [org.jboss.as.server] (management-handler-thread - 1) WFLYSRV0010: Deployed "AutomaticSelfSignedCertificateNotGeneratedTestCase.war" (runtime-name : "AutomaticSelfSignedCertificateNotGeneratedTestCase.war")
 [0m

org.wildfly.test.integration.elytron.ssl.AutomaticSelfSignedCertificateNotGeneratedTestCase.testSelfSignedCertificateNotGeneratedIfKeyStoreFileExists: java.lang.AssertionError
	at org.wildfly.test.integration.elytron.ssl.AutomaticSelfSignedCertificateNotGeneratedTestCase.testSelfSignedCertificateNotGeneratedIfKeyStoreFileExists(AutomaticSelfSignedCertificateNotGeneratedTestCase.java:100)

authors: lvydra wildfly-ci

repo: wildfly/wildfly-core


text:
[WFLY-15157]: Simplify the creation of a jakarta native namespace mail subsystem.

Use the source transformation on the mail subsystem.

Jira: https://issues.redhat.com/browse/WFLY-15157

@bstansberry if you could take a quick look.

WF Preview tests:
https://ci.wildfly.org/viewLog.html?buildId=269474&tab=buildResultsDiv&buildTypeId=WF_WildFlyPreviewLinuxJdk17
https://ci.wildfly.org/viewLog.html?buildId=269472&tab=buildResultsDiv&buildTypeId=WF_Ee9BootableJarLinuxJdk8

authors: bstansberry ehsavoie

repo: wildfly/wildfly


text:
Wfly 15978

https://issues.redhat.com/browse/WFLY-15978
This relies on: https://github.com/ironjacamar/ironjacamar/pull/754

hi @darranl could you please take a look whether such refactor makes sense? The goal is to be able to migrate EARs with IronJacamar configuration files to Elytron.

@tadamski sorry I missed the original request to review - are these changes still needed as we already have https://github.com/wildfly/wildfly/pull/15157 merged?

@darranl I think we can close it; I still need to do some cleaning here but I'm working on it in another branches currently

authors: darranl tadamski


text:
Item containers no longer working

Hello,
In version 0.8.1 I can no longer add one item (like a weapon fusion) to another item (like a weapon).
To reproduce:
See following (hidden) YouTube video with all steps: https://www.youtube.com/watch?v=-MhXodN0KN4&feature=youtu.be

Create empty 0.8.1 world with no modules
Create Test Actor PC
Import items (ex. "Taclash, standard" weapon, "Hindering" weapon fusion )  from compendium
Drag weapon to character sheet
Try to drag fusion on top of weapon

Result: Fusion ends up in main inventory.
Expected result: Fusion is added to the weapon.
This issue does NOT occur when I manually rollback my Starfinder version to 0.7.1.4 and try to perform the same action in the same world.
Thanks for looking into it!

Thanks for your report. I have confirmed the bug with dragging items onto containers from compendium, and I have submitted a fix for it moments ago.
Workaround until it gets released is to drag it onto the character sheet, and once it is added to the inventory to then drag it into the container. :)

Thanks for your report. I have confirmed the bug with dragging items onto containers from compendium, and I have submitted a fix for it moments ago.
Workaround until it gets released is to drag it onto the character sheet, and once it is added to the inventory to then drag it into the container. :)

authors: TimToxopeus mxvs


text:
Help to resolve this

ignoring singular matrix: ProjectionTransform(m11: 5e-324, m12: 0.0, m13: 0.0, m21: 0.0, m22: 5e-324, m23: 0.0, m31: 191.0, m32: 203.75, m33: 1.0)

It doesn't really affect anything, it's just a warning.

authors: imaaronath willdale

repo: willdale/SwiftUICharts


text:
Performance Degradation in stable_diffusion_cpp_python Compared to stable-diffusion.cpp

I've observed performance degradation in stable_diffusion_cpp_python compared to the base stable-diffusion.cpp implementation. The slowdown is particularly noticeable when using AMD Radeon GPUs, with execution times being up to 15x slower in some cases.
Environment

OS: Windows 11 (10.0.22631)
RAM: 32GB
CPU: AMD Ryzen 5 5600X 6-Core Processor
GPU: AMD Radeon RX 7600 XT (16GB)
HIP SDK 5.5.1 (for GPU tests)

Benchmark Results
Timing information was extracted from logs showing messages like:
[INFO ] stable-diffusion.cpp:1449 - txt2img completed in 23.69s

Configuration
stable-diffusion.cpp
stable_diffusion_cpp_python
Slowdown Factor

no option (CPU)
324.25s
426.17s
~1.31x

HIP (GPU)
23.69s
353.27s
~14.91x

HIP configuration: https://github.com/william-murray1204/stable-diffusion-cpp-python/issues/5
CMAKE_ARGS=-G Ninja -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DSD_HIPBLAS=ON -DCMAKE_BUILD_TYPE=Release -DAMDGPU_TARGETS=gfx1102

stable-diffusion.cpp Command
sd --diffusion-model ../models/flux1-schnell-q3_k.gguf --clip_l ../models/clip_l.safetensors --t5xxl ../models/t5xxl_fp16.safetensors --vae ../models/ae.safetensors -p "a lovely cat holding a sign says 'flux.cpp'" --steps 4 --cfg-scale 1.0 --sampling-method euler

stable_diffusion_cpp_python Code
Using the FLUX.1 sample from README.md:
from stable_diffusion_cpp import StableDiffusion

stable_diffusion = StableDiffusion(
    diffusion_model_path="../models/flux1-schnell-q3_k.gguf", # In place of model_path
    clip_l_path="../models/clip_l.safetensors",
    t5xxl_path="../models/t5xxl_fp16.safetensors",
    vae_path="../models/ae.safetensors",
)
output = stable_diffusion.txt_to_img(
      prompt="a lovely cat holding a sign says 'flux.cpp'",
      sample_steps=4,
      cfg_scale=1.0, # a cfg_scale of 1 is recommended for FLUX
      sample_method="euler", # euler is recommended for FLUX
)

Hi @william-murray1204, thank you for the quick fix! The performance is now on par with stable-diffusion.cpp, which is fantastic.
I wanted to express my deep gratitude for this project. While stable-diffusion.cpp requires launching a new process for each generation, meaning model reloading every time, which was a significant overhead. With stable_diffusion_cpp_python, I can now load the models just once and experiment with various prompts efficiently. Your project has made stable-diffusion.cpp truly practical for real-world use cases.
For example, I can now easily try multiple prompts in a loop like this:
prompts = [
    ("flux1-cat.png", "a lovely cat holding a sign says 'flux.cpp'"),
    ("flux1-dog.png", "a lovely dog holding a sign says 'flux.cpp'"),
]

for fn, prompt in prompts:
    output = stable_diffusion.txt_to_img(
        prompt=prompt,
        sample_steps=4,
        cfg_scale=1.0,
        sample_method="euler",
    )
    output[0].save(fn)

Thank you for your outstanding work on this project. It has genuinely enhanced the usability of stable-diffusion.cpp!


text:
Checkpoint gives error

Hi,
I wonder if we can only save the best model with lowest validation error, and not save the others checkpoints.
I took a look at checkpoint_callback's save_best_only (below), it seems that this is for saving the best at every epoch (because the file name changes at every epoch). So I wonder if we can only save the best in the whole training process. Thanks!
checkpoint_callback = ModelCheckpoint(     filepath=os.getcwd(),     save_best_only=True,     verbose=True,     monitor='val_loss',     mode='min',     prefix='' )

I'm pretty sure that save_best_only does what you're asking.

Really? It is default to True, but it is still saving all the models from all epochs

but it may be changed in #128 :)

I used the newest version of pytorch lightning, and got this error:
`.../lib/python3.7/site-packages/pytorch_lightning/trainer/trainer_i
o.py:210: UserWarning: Did not find hyperparameters at model.hparams. Saving checkpoint without hyperparame
ters
"Did not find hyperparameters at model.hparams. Saving checkpoint without"
Traceback (most recent call last):
File "main.py", line 315, in
fire.Fire()
File ".../lib/python3.7/site-packages/fire/core.py", line 138, in
Fire
component_trace = _Fire(component, args, parsed_flag_args, context, name)
File ".../lib/python3.7/site-packages/fire/core.py", line 471, in
_Fire
target=component.name)
File ".../lib/python3.7/site-packages/fire/core.py", line 675, in
_CallAndUpdateTrace
component = fn(*varargs, **kwargs)
File "main.py", line 287, in train
trainer.fit(m)
File ".../lib/python3.7/site-packages/pytorch_lightning/trainer/t
rainer.py", line 343, in fit
mp.spawn(self.ddp_train, nprocs=self.num_gpus, args=(model,))
File ".../lib/python3.7/site-packages/torch/multiprocessing/spawn
.py", line 171, in spawn
while not spawn_context.join():
File ".../lib/python3.7/site-packages/torch/multiprocessing/spawn
.py", line 118, in join
raise Exception(msg)
Exception:
-- Process 0 terminated with the following error:
Traceback (most recent call last):
File ".../lib/python3.7/site-packages/torch/multiprocessing/spawn.py", line 19, in _wrap
fn(i, *args)
File ".../lib/python3.7/site-packages/pytorch_lightning/trainer/ddp_mixin.py", line 181, in ddp_train
self.run_pretrain_routine(model)
File ".../lib/python3.7/site-packages/pytorch_lightning/trainer/trainer.py", line 471, in run_pretrain_routine
self.train()
File ".../lib/python3.7/site-packages/pytorch_lightning/trainer/train_loop_mixin.py", line 60, in train
self.run_training_epoch()
File "...lib/python3.7/site-packages/pytorch_lightning/trainer/train_loop_mixin.py", line 120, in run_training_epoch
self.logger.save()
File ".../lib/python3.7/site-packages/pytorch_lightning/logging/base.py", line 13, in wrapped_fn
fn(self, *args, **kwargs)
File ".../lib/python3.7/site-packages/pytorch_lightning/logging/test_tube_logger.py", line 57, in save
self.experiment.save()
File ".../lib/python3.7/site-packages/test_tube/log.py", line 346, in save
with open(self.__get_log_name(), 'w') as file:
FileNotFoundError: [Errno 2] No such file or directory: './sandbox/debug11127712/lightning_logs/version_0/meta.experiment'
Traceback (most recent call last):
File "", line 1, in
File ".../lib/python3.7/multiprocessing/spawn.py", line 105, in spawn_main
exitcode = _main(fd)
File ".../lib/python3.7/multiprocessing/spawn.py", line 115, in _main
self = reduction.pickle.load(from_parent)
_pickle.UnpicklingError: pickle data was truncated
Traceback (most recent call last):
File "", line 1, in
File ".../lib/python3.7/multiprocessing/spawn.py", line 105, in spawn_main
exitcode = _main(fd)
File ".../lib/python3.7/multiprocessing/spawn.py", line 115, in _main
self = reduction.pickle.load(from_parent)
_pickle.UnpicklingError: pickle data was truncated
Traceback (most recent call last):
File "", line 1, in
File ".../lib/python3.7/multiprocessing/spawn.py", line 105, in spawn_main
exitcode = _main(fd)
File ".../lib/python3.7/multiprocessing/spawn.py", line 115, in _main
self = reduction.pickle.load(from_parent)
_pickle.UnpicklingError: pickle data was truncated
.../lib/python3.7/multiprocessing/semaphore_tracker.py:144: UserWarning: semaphore_tracker: There appear to be 12 leaked semaphores to clean up at shutdown
len(cache))
.../lib/python3.7/multiprocessing/semaphore_tracker.py:144: UserWarning: semaphore_tracker: There appear to be 12 leaked semaphores to clean up at shutdown
len(cache))
.../lib/python3.7/multiprocessing/semaphore_tracker.py:144: UserWarning: semaphore_tracker: There appear to be 12 leaked semaphores to clean up at shutdown
len(cache))
`
Thanks for helping!

@Jiequannnnnnnnnn can you report it as a bug with reproducibility example....?

@Jiequannnnnnnnnn can you report it as a bug with reproducibility example....?

Sorry....I tried and not sure how to add a bug label. What does reproducibility example mean in this case?

you probably can't change a label, you need t to create a new issue... by example I mean a sample code which gave you this error plus what library version you used...

@Borda added label.
@Jiequannnnnnnnnn a minimal example to reproduce would be great!
Thanks :)

@Borda added label.

unfortunately, we do not right/permission to do it :]

Same issue as #525?

Same issue as #525?

No it is not the same issue

I made a file that could produce more of the errors (except for the last Traceback )

@Borda added label.
@Jiequannnnnnnnnn a minimal example to reproduce would be great!
Thanks :)

I made a file that could produce more of the errors (except for the last Traceback )
I put them here. Please take a look if you have free time! Thanks
main-Copy1.py.zip

Also, I am using the newest version of lightning

If I comment out the checkpoint_callback in the trainer, it ends at the 8th epoch, not sure why this happened.

Just covering over the obvious things first:
the main issue is that  FileNotFoundError: [Errno 2] No such file or directory: './sandbox/debug11127712/lightning_logs/version_0/meta.experiment'
Can you make sure that the parent directories exist?
Can you turn off DDP and see if it works?

@Jiequannnnnnnnnn still having issues?

Yeah, still having the issue. Couldn't fix it. Thanks!

I used the newest version of pytorch lightning, and got this error:
`.../lib/python3.7/site-packages/pytorch_lightning/trainer/trainer_i o.py:210: UserWarning: Did not find hyperparameters at model.hparams. Saving checkpoint without hyperparame ters "Did not find hyperparameters at model.hparams. Saving checkpoint without" Traceback (most recent call last): File "main.py", line 315, in fire.Fire() File ".../lib/python3.7/site-packages/fire/core.py", line 138, in Fire component_trace = _Fire(component, args, parsed_flag_args, context, name) File ".../lib/python3.7/site-packages/fire/core.py", line 471, in _Fire target=component.name) File ".../lib/python3.7/site-packages/fire/core.py", line 675, in _CallAndUpdateTrace component = fn(*varargs, **kwargs) File "main.py", line 287, in train trainer.fit(m) File ".../lib/python3.7/site-packages/pytorch_lightning/trainer/t rainer.py", line 343, in fit mp.spawn(self.ddp_train, nprocs=self.num_gpus, args=(model,)) File ".../lib/python3.7/site-packages/torch/multiprocessing/spawn .py", line 171, in spawn while not spawn_context.join(): File ".../lib/python3.7/site-packages/torch/multiprocessing/spawn .py", line 118, in join raise Exception(msg) Exception:
-- Process 0 terminated with the following error: Traceback (most recent call last): File ".../lib/python3.7/site-packages/torch/multiprocessing/spawn.py", line 19, in _wrap fn(i, *args) File ".../lib/python3.7/site-packages/pytorch_lightning/trainer/ddp_mixin.py", line 181, in ddp_train self.run_pretrain_routine(model) File ".../lib/python3.7/site-packages/pytorch_lightning/trainer/trainer.py", line 471, in run_pretrain_routine self.train() File ".../lib/python3.7/site-packages/pytorch_lightning/trainer/train_loop_mixin.py", line 60, in train self.run_training_epoch() File "...lib/python3.7/site-packages/pytorch_lightning/trainer/train_loop_mixin.py", line 120, in run_training_epoch self.logger.save() File ".../lib/python3.7/site-packages/pytorch_lightning/logging/base.py", line 13, in wrapped_fn fn(self, *args, **kwargs) File ".../lib/python3.7/site-packages/pytorch_lightning/logging/test_tube_logger.py", line 57, in save self.experiment.save() File ".../lib/python3.7/site-packages/test_tube/log.py", line 346, in save with open(self.__get_log_name(), 'w') as file: FileNotFoundError: [Errno 2] No such file or directory: './sandbox/debug11127712/lightning_logs/version_0/meta.experiment'
Traceback (most recent call last): File "", line 1, in File ".../lib/python3.7/multiprocessing/spawn.py", line 105, in spawn_main exitcode = _main(fd) File ".../lib/python3.7/multiprocessing/spawn.py", line 115, in _main self = reduction.pickle.load(from_parent) _pickle.UnpicklingError: pickle data was truncated Traceback (most recent call last): File "", line 1, in File ".../lib/python3.7/multiprocessing/spawn.py", line 105, in spawn_main exitcode = _main(fd) File ".../lib/python3.7/multiprocessing/spawn.py", line 115, in _main self = reduction.pickle.load(from_parent) _pickle.UnpicklingError: pickle data was truncated Traceback (most recent call last): File "", line 1, in File ".../lib/python3.7/multiprocessing/spawn.py", line 105, in spawn_main exitcode = _main(fd) File ".../lib/python3.7/multiprocessing/spawn.py", line 115, in _main self = reduction.pickle.load(from_parent) _pickle.UnpicklingError: pickle data was truncated .../lib/python3.7/multiprocessing/semaphore_tracker.py:144: UserWarning: semaphore_tracker: There appear to be 12 leaked semaphores to clean up at shutdown len(cache)) .../lib/python3.7/multiprocessing/semaphore_tracker.py:144: UserWarning: semaphore_tracker: There appear to be 12 leaked semaphores to clean up at shutdown len(cache)) .../lib/python3.7/multiprocessing/semaphore_tracker.py:144: UserWarning: semaphore_tracker: There appear to be 12 leaked semaphores to clean up at shutdown len(cache)) `
Thanks for helping!

I have also met the problem. Have you ever solved it?

authors: Borda Jiequannnnnnnnnn jeffling neggert vanpersie32 williamFalcon

repo: williamFalcon/pytorch-lightning


text:
Add ltex-ls platform independent version as an install option

Is your feature request related to a problem? Please describe.
At the moment all the versions of ltex-ls offered have the entire Java runtime built in. If you have Java 11 or greater on your computer then you are far better using the platform independent version that does not come with Java.
https://valentjn.github.io/ltex/ltex-ls/installation.html#installation
On github this is https://github.com/valentjn/ltex-ls/releases/download/15.2.0/ltex-ls-15.2.0.tar.gz for the current version.
It is far better to let your distro manage Java as it can keep up with any security issues for you, and you only need the runtime, for example on RHEL that is sudo dnf install java-11-openjdk-headless
Describe the solution you'd like
You might even test if Java is installed and download this one automatically, or give an option. Cheers!
Describe potential alternatives you've considered
No response
Additional context
No response

Hello! It seems like the ltex-ls script respects JAVA_HOME ([ -z "$JAVA_HOME" ] && JAVA_HOME="$BASEDIR"/jdk-11.0.12+7), so you can already use a custom Java runtime if you'd like. It'll however mean that a Java runtime is unnecessarily downloaded alongside ltex (~60M).
I think it'd be reasonable to download platform-independent version if java exists on the system :+1:

authors: David-Else williamboman

repo: williamboman/nvim-lsp-installer


text:
reserveScrollBarGap overwrites body styles

reserveScrollBarGap doesn't work for body with paddings: body { padding: 30px}, because after scroll disabling body needs paddingRight: getComputedStyle(document.body).getPropertyValue('padding-right') + scrollBarGap.

Maybe it should help
https://github.com/willmcpo/body-scroll-lock/pull/147

Fixed in #147

authors: AndreiEres diachedelic

repo: willmcpo/body-scroll-lock


text:
fix(tribler): Add ARCH support (fixes #1217)

Fixes #1217
Tested and working locally.

@flexiondotorg I can confirm this is working but cannot merge as the mandatory test is failing for some curious reason of its own.

@flexiondotorg I can confirm this is working but cannot merge as the mandatory test is failing for some curious reason of its own.

I didn't run any tests locally, just installed the app. Is the test failure due to API rate limiting?

It does look like rate limiting but the test should have an API token (and I've tried in my filen PR to use alternative ways to put the token in the environment without success).  Maybe something has changed with secrets (but not yet made the documentation ...)

authors: philclifford rasa

repo: wimpysworld/deb-get


text:
servantes: make servantes a bit prettier

Hello @nicks,
Please review the following commits I made in branch nicks/servantes:
28f25390f3b58b1265814f882efd2296f9d172aa (2018-08-27 23:49:53 -0400)
servantes: make servantes a bit prettier

repo: windmilleng/servantes


text:
Upgrade to latest BeyondCompare

Upgrade to BeyondCompare 4.2.7

LGTM  :shipit:

authors: dachew heathsnow

repo: windowschefcookbooks/beyondcompare


text:
add manual position capabilities

Before              Input                                         After
------------------------------------------------------------------------------
[|(foobar)      <M-e> then press $ then l       [|(foobar)]
[|(foobar)      <M-e> then press $ then h      [|(foobar])
(|foo bar        <M-e> then press q then l      (foo )bar
(|foo bar        <M-e> then press q then h     (foo) bar

Good idea. some time it place on wrong position.your PR will fix that . thank

authors: nopsqi windwp

repo: windwp/nvim-autopairs


text:
[Feature request][guild profiles] : copy role id from the role list

It'll be very cool if there is an option to copy role id from the role list (can be done only by those who have dev mode on)

unrelated to the plugin

authors: pj-mathematician wingio

repo: wingio/plugins

license: Unlicense


text:
Support for Windows Kernel v10.0.22621.3007

Description of the feature, modification, idea or suggestion

Proposed implementation details (optional)
No response

duplicated by https://github.com/winsiderss/systeminformer/issues/1823 and already fixed in https://github.com/winsiderss/systeminformer/commit/e93bcbaa4670b01e535f0a48b39c944afe273f8b

new version Rev7429 is out, search for update and install it

repo: winsiderss/systeminformer


text:
Losing log messages due to file flushing race condition when using the DailyRotateFile transport

This issue has been tracked and solved for the File transport in https://github.com/winstonjs/winston/issues/150 but as @logysis mentions, it has not been solved for the DailyRotateFile transporte case.

Do you lose log messages right away or after a log rotate?

Hi @amosk , right away ;) In fact, the observed behaviour is the same as the one mentioned in https://github.com/winstonjs/winston/issues/150
I ran my tests only yesterday (this is, using the same file name) with the default date suffix observing the same behaviour no matter if the log file was created from scratch or reused if already existent.
Thanks!

I have the same problem.  Both Console and File transports work fine.  Just DailyRotateFile loses messages.  This occurs right away when application starts.  I use Node.js clustering with 4 workers.  Each worker process is doing logging.  The symptoms is very similar to #150 described.

In my last project, there is no such message loss issue and the DailyFileTransport is being used in the same manner!

I am having this problem as well. Some log messages do not show up at first when using DailyFileTransport.

I have the same problem and it's quite an important issue in my opinion, as relevant startup logs are lost because of that.
The 0c28041f6d62d515f5cda870c5ac450ff4a9fba1 fix worked for me when applying it to the daily-rotate-file transport, so I created a pull request that fixes this issue (#690). Hope it can be merged soon :)

The DailyRotateFile transport was moved to a separate module (winston-daily-rotate-file) as of winston@2.0.0. As such we are closing issues here and tracking their status in a single tracking issue in the new repository.
Please open a new issue on winston-daily-rotate-file to continue the discussion.

authors: amosk dbeckwith doubliez gtorodelvalle indexzero tmok2000 yubeiluo

repo: winstonjs/winston


text:
Added "Send password reset email" button to backend users update page

Fix for issue #654
Added "Send password reset email" button to backend users update page.
@LukeTowers I have re-used the existing Password reset logic present in modules/backend/controllers/Auth.php file. Should I create a helper function to remove code duplication ?

@prsuhas no, that's fine, we can leave the code copy-pasted for now. Can you add a screenshot of what the new button looks like please?

@prsuhas no, that's fine, we can leave the code copy-pasted for now. Can you add a screenshot of what the new button looks like please?

Please find below screenshot

Pushed the review changes too.

authors: LukeTowers prsuhas

repo: wintercms/winter


text:
feat: adding possibility to override default selection

This is PR solve #1 issue.
Here are things I did:

renamed variable prefixes to templateName (this name is better for understanding IMHO);
removed the need to install the telescope.nvim plugin to reach a wide audience and set vim.ui.select as default;
moved the code part of generating ignoreLines to the createGititnoreBuffer method;
added the possibility to override the generate method with the following contract;

Also users who use telescope can use it continuously, because the plugin telescope.nvim is not needed, but it enables multiple selection.
Contract of the overriding generate method:

plugin provides list of templateNames and two methods generate and createGititnoreBuffer;
method generate must get list of opts like path and list can be empty but not null;
pass only list of selected template names to `createGitignoreBuffer';

An example of overriding can be found in README.md.
UPD: I'm sorry if you're confused about block functions instead of ternary operators because of my code formatter.

Thank you for your contribution, and sorry it took a bit! :)
I like your solution to this problem, and have already made some changes to the README (0d4cef6) to keep it in line with the my usual style.
However there appears to be a small bug that needs your review before I can merge (see here: r1295777353)

Before pushing my solution, I thought to ask you.
My solution is changing this if statement to more logic, but strange number can stump someone. The problem in logic of method createGitignore that I commented in the review. This method returns the ignoreLines table with two elements if a program pass an empty table to the method.
So it turn out that part of the code will look:
if #ignoreLines < 3 then
    removeBufIfHasTelescope(prompt_bufnr)
    vim.schedule(function () print('Nothing selected, creation of .gitignore cancelled!') end)
    return
end

I also can put new if statement, which check the selectionList table. The method createGitignore must return nil value if the passed table is empty.
How you feel about it?

Oh right, nice find!
I think the best way to solve this is to move the "is selection empty" check upwards, and make it check for the actual selection, not the generated lines (as done in 08a0046).
A selection causing an empty list of lines should never happen anyways, so we can safely do that i believe.
In my eyes, this is ready to merge, if you don't have any objections, I will do so :)

It's very good! But after thinking about this I have a thought – if other user use this command in custom picker, they can write word with mistake. Then selectionList is non-empy, but it is wrong, because generated Gitignore is empty.
For better understanding, see steps:

user write in lua code string

gitignore.createGitignoreBuffer("", {"Jaba"}) -- wrong word "Java"

in the method createGitignoreBuffer the if statement check the selectionList argument and pass, because it is non-empy
it calls createGititnoge and returns the ignoreLines table with two elements (it is also like empty).
creates a buffer with two lines.

For me, it is not expect behavior of the method. Maybe need add additional if statement or you can check my fork in dev branch.

That is true, thank you for catching that! I would like to keep the differentiation between an empty selection, and an invalid selection. I think that in the case of an invalid selection, the creation should fail loudly, ergo alert the user and not create a .gitignore at all. The process for no selection at all should remain as it is since 08a00465174082c5ba58d85a817b710313d9773e
please see my latest commit that implements this behavior da0caab040a08305a69e6a13fc2695342d539072, and tell me if you think this is ready to merge.

I like it!
Thank you for work!

No, thank you for your work!
I'll merge this in a couple of days when I have access to a computer again :)

authors: JarKz wintermute-cell


text:
Bugfix/disallow invalid materials

The problem
Our server has been experiencing intermittent freezing when entering/leaving area portals throughout the map. After a lot of debugging and testing, we discovered that the issue had to do with holograms that were set to invalid materials (materials that don't exist) freezing the clients when they are loaded (i.e. when you enter an area portal that causes the client to render them).
Here's a video of us testing, and subsequently narrowing the problem down to E2, and then later to hologram materials. This displays the freezing issue I'm referencing: https://www.youtube.com/watch?v=DGxiyeAGl1I
Proposed solution
When using the Material() function, I found that it can determine if a given material is valid or not.
As an example:
local materialTest = Material( "this/doesnt/exist" )
print( materialTest:IsError() )
=> true

We already pass all materials through a wiremod util to check if it's valid. Currently, it only checks if the given material is blacklisted, and not whether or not the material is actually valid.
In this PR I use this solution to check if the given material is valid;
local materialTest = Material( material )
if not materialTest or materialTest:IsError() then return "" end

There is one issue with this, making Material()s comes with a negative performance implication. During clientside testing, I found that creating 500 Material()s with random strings in a for loop caused the client to hang for about 3-8 seconds. On a run with 5000, the freezing lasted about 18 seconds.
During some practical serverside testing (I won't go into my methods here, DM me for more info) I found that this solution could potentially open up opportunity for bad actors to slow down the server by abusing SetMaterial() on a hologram.
I added a cache for invalid materials so that we're not performing expensive functions on materials that we already know are invalid, but this only protects against accidental abuse, not intentional malice.
Ideally, we'd find a way to decide if a material is invalid without having to actually call
Material( string )

This does fix the issue, though, I'm currently running this branch on my server with almost no freezing at all (none relating to e2, anyway).

@thegrb93 Couldn't test these new changes yet, but does that look like what you're wanting?

You don't need to sort. Just find the smallest. Sorting is more expensive

Instead of table.count, keep track of the size yourself using a count variable.

I'll be keeping this on our fork - please feel free to copy it if you'd like it here.

Can I ask why?

repo: wiremod/wire


text:
Reworked FLIR visual behaviour

*Highlighted entities are separate from other opaque renderables, meaning that trees and map geometry do not render with ugly polygons and retain their textures
*Fixed infrared emitters becoming darker or invisible in low-light areas, FLIR image is consistent across maps and lightings
*Fixed visible color affecting IR signature, making black props invisible (ish)
*Fixed sky becoming white and distracting in IR
*Added Bokeh DOF to soften image, adjusted bloom
*Set environment and entities to different DrawColor passes, so their brightness and contrast can be altered independently (needed to keep white map geometry from being as bright as entities)

Thanks, looks a bit better. Last suggestion, can you change the hook names to "wire_flir" instead of just "flir"?

Sure, will do

Seems like its working well. Thanks


text:
Using enter, arrow & escape keys on search field

A few suggestions to make the search field more accessible and keyboard-friendly

Escape should "Cancel" the search
Arrow keys should iterate through the list of results ( a kind of hover effect)
Enter should select the first, or selected item with the arrow keys.

Doing this will completely make the search field usable through the keyboard.
Kind of related to #193

Points 2 and 3 seem to work already. Point 1 just needs a key capture in AutoSuggestInput.

Points 2 and 3 only work for the AutoSuggestInput component, but not for the Selector (with search) component

Added in the new beta website https://beta.wiseoldman.net/
I'll consider it done as it'll eventually be live in production. Closing.

authors: Jakesterwars MathieuDR psikoi

repo: wise-old-man/wise-old-man


text:
Suggestion: Apply to join group/competition

Allow users to "apply" to join a group or competition. These applications would need to be approved somehow by the person with the verification code

Hi @Sethmare understand this is quite dated but willing to take it on if still available and wanted?
I'm looking of doing something like the following:

Adding an "Apply" button to the groups / competitions homepage.
The user would then click this, a modal opens and they input there profile name.
Adding "Applications" to the dropdown inside of the configuration for groups.
Applications to see would require some form of authentication, this being through the use of the verification code.
This would generate a signed JWT token for an hour whereby the user can access the "Applications" tab.
Add middleware which could be used in future to protect the GET: /api/applications, PATCH: /api/applications DELETE: /api/applications routes.
See applications / approve / reject through the use of the JWT token.

Let me know your thoughts and if this is still available.

There's no immediate plans to implement this. Closing until that changes.

authors: Sethmare llebc psikoi


text:
Studio down ?

The studio seems to be offline.

Hi @Charl--- , we fixed the issue. Could you try again and let us know please?

hi @pierreburgy,
Thanks for the quick answer.
The studio seems to be ok, but i was unable to sync, so i logout using the CLI and now it is impossible to login.
when i try to login using
strapi login
i gave email and pass and got this error
/home/charl/.nvm/versions/node/v5.3.0/lib/node_modules/strapi/bin/strapi-login.js:118               email: body.user.email,                               ^ TypeError: Cannot read property 'email' of undefined     at /home/charl/.nvm/versions/node/v5.3.0/lib/node_modules/strapi/bin/strapi-login.js:118:31     at FSReqWrap.oncomplete (fs.js:82:15)

Thanks for you answer, we are working on the issue. It should be working again in a few moments.

Problem fixed. Is it working now from you machine?

Seems that the studio login page is still broken?

Everything work fine thank you very much @pierreburgy

Great. You're welcome, sorry for the inconvenience.

authors: Charl--- dustinaevans pierreburgy

repo: wistityhq/strapi


text:
Is this an open source, can I contribute?

Hey, I was wondering if I could contribute? I could start out by writing a CONTRIBUTION.md and look around for any other issues that I could help with.

Hey @thisisrai - yup, this is open source! Feedback and contributions welcome :)

authors: brianlovin thisisrai

repo: withspectrum/code-of-conduct


text:
k8s PV和PVC

PV
PersistentVolume（PV）是集群中由管理员配置的一段网络存储。 它是集群中的资源，就像节点是集群资源一样。 PV是容量插件，如Volumes，但其生命周期独立于使用PV的任何单个pod。 此API对象捕获存储实现的详细信息
PVC
PersistentVolumeClaim（PVC）是由用户进行存储的请求。 它类似于pod。 Pod消耗节点资源，PVC消耗PV资源。Pod可以请求特定级别的资源（CPU和内存）, PVC声明可以请求特定存储的大小和访问模式（例如，可以一次读/写或多次只读）。
StorageClass为管理员提供了一种描述他们提供的存储的“类”的方法。 不同的类可能映射到服务质量级别，或备份策略，或者由群集管理员确定的任意策略。
PV生命周期
Available – 资源尚未被claim使用
Bound – 卷已经被绑定到claim了
Released – claim被删除，卷处于释放状态，但未被集群回收。
Failed – 卷自动回收失败
PV组件
PVC和PV是一一对应的。
Volume Controller：专门处理持久化存储的控制器
PersistentVolumeController ：处理pv和pvc
PersistentVolumeController 会不断地查看当前每一个 PVC，是不是已经处于 Bound（已绑定）状态。如果不是，那它就会遍历所有的、可用的 PV，并尝试将其与这个“单身”的 PVC 进行绑定。这样，Kubernetes 就可以保证用户提交的每一个 PVC，只要有合适的 PV 出现，它就能够很快进入绑定状态
PVC和PV绑定条件：
1）storageClassName 字段一致
2）PV 满足 PVC 的 spec 字段

挂configmap测试
apiVersion: v1
kind: Pod
metadata:
  name: configmap-pod
spec:
  containers:
    - name: test
      image: busybox
      command: ["/bin/sh", "-ce", "tail -f /dev/null"]
      volumeMounts:
        - name: config-vol
          mountPath: /etc/config1
        - name: config-startup
          mountPath: /etc/config2
  volumes:
    - name: config-vol
      configMap:
        name: cassandra-custom-run-script
        items:
          - key: custom-run.sh
            path: custom-run.sh
    - name: config-startup
      configMap:
        name: startup-script2
        items:
          - key: startup.sh
            path: startup1.sh

kind: ConfigMap
apiVersion: v1
metadata:
  name: startup-script2
data:
  startup.sh: |-
    #!/bin/bash

    HOME_DIR="/home/admin"
    GARBAGE_COLLECTOR="cms"

    tune_linux_kernel_params() {
        echo "tune linux kernel params"
        ulimit -SHn 655350
        ulimit -SHu 655350
        sysctl -w fs.file-max=1024000
    }

    tune_network_params() {
        echo "tune network params"
        sysctl -w net.ipv4.ip_local_port_range='1000 65535'
        sysctl -w net.core.somaxconn=32768
        sysctl -w net.ipv4.tcp_max_syn_backlog=16384
        sysctl -w net.core.netdev_max_backlog=16384
        sysctl -w net.core.rmem_default=262144
        sysctl -w net.core.wmem_default=262144
        sysctl -w net.core.rmem_max=16777216
        sysctl -w net.core.wmem_max=16777216
        sysctl -w net.core.optmem_max=16777216
        sysctl -w net.ipv4.tcp_rmem='1024 4096 16777216'
        sysctl -w net.ipv4.tcp_wmem='1024 4096 16777216'
        sysctl -w net.netfilter.nf_conntrack_max=1000000
        sysctl -w net.netfilter.nf_conntrack_tcp_timeout_time_wait=30
        sysctl -w net.ipv4.tcp_max_tw_buckets=1048576
    }

    init_user_and_dir() {
        id -u admin &>/dev/null || adduser admin -D -h ${HOME_DIR}
        chown admin:admin ${HOME_DIR}
        su admin -c "mkdir ${HOME_DIR}/logs; mkdir ${HOME_DIR}/dump"
    }

    build_java_opts() {
        if [[ ! -d /etc/podinfo ]]
        then
          MEM_TOTAL_MB=$[$(grep MemTotal /proc/meminfo | awk '{print $2}') / 1024]
        else
          MEM_TOTAL_MB=$(cat /etc/podinfo/mem_limit)
        fi

        if [[ ${MEM_TOTAL_MB} -ge $[64 * 1024] ]]
        then
          echo "the app resource limit[${MEM_TOTAL_MB} MB] too large, please check if the value is set."
          exit 1
        fi

        XMX=`echo "${MEM_TOTAL_MB} 0.75" | awk '{printf("%.0f", $1*$2)}'`
        XMS=${XMX}
        XMN=`echo "${XMX} 0.33" | awk '{printf("%.0f", $1*$2)}'`
        XSS="1"
        MAX_DIRECT_MEMORY_SIZE=`echo "${MEM_TOTAL_MB} 0.1" | awk '{printf("%.0f", $1*$2)}'`

        JAVA_OPTS="-Xms${XMS}m -Xmx${XMX}m -Xss${XSS}m -XX:MaxDirectMemorySize=${MAX_DIRECT_MEMORY_SIZE}m"
        JAVA_OPTS="$JAVA_OPTS -XX:+UnlockExperimentalVMOptions -XX:+UnlockDiagnosticVMOptions"
        if [[ ${GARBAGE_COLLECTOR} == "cms" ]]; then
            JAVA_OPTS="$JAVA_OPTS -XX:+UseConcMarkSweepGC -XX:CMSMaxAbortablePrecleanTime=5000"
            JAVA_OPTS="$JAVA_OPTS -XX:+CMSClassUnloadingEnabled -XX:CMSInitiatingOccupancyFraction=80 -XX:+UseCMSInitiatingOccupancyOnly"
        elif [[ ${GARBAGE_COLLECTOR} == "g1" ]]; then
            JAVA_OPTS="$JAVA_OPTS -XX:+UseG1GC -XX:G1RSetUpdatingPauseTimePercent=10 -XX:G1ConcRefinementThreads=4 -XX:MaxGCPauseMillis=50"
            JAVA_OPTS="$JAVA_OPTS -XX:G1HeapWastePercent=10 -XX:G1ReservePercent=10 -XX:G1OldCSetRegionThresholdPercent=30 -XX:+MonitorInUseLists"
            JAVA_OPTS="$JAVA_OPTS -XX:InitiatingHeapOccupancyPercent=70 -XX:G1MixedGCLiveThresholdPercent=75 -XX:+G1EagerReclaimHumongousObjects"
        fi
        JAVA_OPTS="$JAVA_OPTS -XX:ConcGCThreads=4 -XX:ParallelGCThreads=8"
        JAVA_OPTS="$JAVA_OPTS -XX:-ResizePLAB -XX:-ParallelRefProcEnabled -XX:-UseBiasedLocking"
        JAVA_OPTS="$JAVA_OPTS -Xloggc:${HOME_DIR}/logs/gc.log -XX:GCLogFileSize=10m -XX:NumberOfGCLogFiles=10 -XX:+UseGCLogFileRotation"
        JAVA_OPTS="$JAVA_OPTS -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCApplicationStoppedTime"
        JAVA_OPTS="$JAVA_OPTS -XX:+ExitOnOutOfMemoryError -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=${HOME_DIR}/dump/"
        JAVA_OPTS="$JAVA_OPTS -XX:+PrintFlagsFinal -XX:+PrintReferenceGC"
    }

    start_up() {
        now=`date "+%Y-%m-%d %H:%M:%S"`
        echo "$now--------------------------"

        while getopts 't:g:' OPT; do
        	case ${OPT} in
        		t) TUNE=${OPTARG};;
        		g) GARBAGE_COLLECTOR=${OPTARG};;
                *) ;;
            esac
        done

        echo "tune mode: ${TUNE}"
        if [[ ${TUNE} == 1 ]]; then
            tune_linux_kernel_params
        elif [[ ${TUNE} == 2 ]]; then
            tune_network_params
        elif [[ ${TUNE} == 3 ]]; then
            tune_linux_kernel_params
            tune_network_params
        fi

        init_user_and_dir
        build_java_opts

        echo "start to launch app..."
        su admin -c "cd ${HOME_DIR}/app; java ${JAVA_OPTS} -jar app.jar"
    }

    start_up "$@"

镜像共享文件
通过initContainer共享/etc/resources/api-gateway目录
apiVersion: v1
kind: Pod
metadata:
  name: configmap-pod
spec:
  initContainers:
  - command:
    - sh
    - -c
    - cp -r /home/admin/resources/api-gateway/. /etc/resources/api-gateway
    image: xxx:1.0.0
    imagePullPolicy: IfNotPresent
    name: file-resource-api-gateway
    resources: {}
    terminationMessagePath: /dev/termination-log
    terminationMessagePolicy: File
    volumeMounts:
    - mountPath: /etc/resources
      name: file-resource-api-gateway
  containers:
  - name: test
    image: busybox
    imagePullPolicy: IfNotPresent
    command: ["/bin/sh", "-ce", "tail -f /dev/null"]
    volumeMounts:
      - name: config-vol
        mountPath: /etc/config1
      - name: config-startup
        mountPath: /etc/config2
      - name: file-resource-api-gateway
        mountPath: /etc/resources
  volumes:
  - name: config-vol
    configMap:
      name: cassandra-custom-run-script
      items:
        - key: custom-run.sh
          path: custom-run.sh
  - name: config-startup
    configMap:
      name: startup-script2
      items:
        - key: startup.sh
          path: startup1.sh
  - name: file-resource-api-gateway
    emptyDir: {}

repo: wittyResry/myIssue


text:
The event "Network Request" is taking place with object -ios

Description
I have a Sign-in button that it calls an API.
So whan I run await element(by.text('Sign in')).tap();
it navigates to the corresponding page after calling the API request but the test hangs and waits without completing the test.

Code
/* eslint-disable no-undef */
const { execSync } = require('child_process');

const OPTIONS = {
  timeout: 10000,
  killSignal: 'SIGKILL',
};
describe('screenshot', () => {
  beforeAll(async () => {
    await device.launchApp();
  });

  beforeEach(async () => {
    await device.reloadReactNative();
  });

  it('should take screenshot', async () => {
    const fileName = 'screenshot.png';

    if (device.getPlatform() === 'android') {
      execSync(`adb shel screencap /sdcard/${fileName}`);
      execSync(
        `adb pull /sdcard/${fileName} $(pwd)/android/fastlane/metadata/android/en-US/images/phoneScreenshots`
      );
    } else {
      execSync(
        `xcrun simctl io booted screenshot $(pwd)/fastlane/screenshots/screenshot.png`,
        OPTIONS
      );
      await element(by.text('Show more options')).tap();
      execSync(
        `xcrun simctl io booted screenshot $(pwd)/fastlane/screenshots/screenshot1.png`,
        OPTIONS
      );
      await element(by.text('Username & Password')).tap();
      execSync(
        `xcrun simctl io booted screenshot $(pwd)/fastlane/screenshots/screenshot2.png`,
        OPTIONS
      );
      await element(by.id('testID-userName')).typeText('test');
      await element(by.id('testID-password')).typeText('test');
      execSync(
        `xcrun simctl io booted screenshot $(pwd)/fastlane/screenshots/screenshot3.png`,
        OPTIONS
      );
      await element(by.text('Sign in')).tap();
    }
  });
});

Your environment
Detox version: 19.7.1
React Native version: 0.62.2
Node version: v16.11.1
Device model:
iOS version: 13
macOS version: 11.6
Xcode version: 13.0
Test-runner jest-circus

@chamile you need to look into why that network request doesn't get replied to.
On a different matter, have you considered using Detox's API for taking screenshots?

Damn, I'm running into this same issue, @chamile you ever figure this one out?

I'm also having issues with this.
detoxURLBlacklistRegex and setURLBlacklist do not seem to actually do anything. My tests are not running because synchronization is being prevented because of in-flight requests to Launch Darkly.

@johanndeswardt Could you please copy here the setURLBlacklist call you've tried?

or the launch-app command with the detoxURLBlacklistRegex argument

Hey, i've just came across this issue while trying to implement detox on our app

The event "Network Request" is taking place with object: "URL: “https://clientstream.launchdarkly.com/meval/****”".
• Run loop "Main Run Loop" is awake.```

Exactly the same issue as @OrLevy23, any findings about it?

@OrLevy23 @menttys -- did either of you figure this out using a Launch Darkly link?

@OrLevy23 @NicholasBoccuzzi @menttys @chamile Please allow for testing out this new release with a related fix - https://github.com/wix/Detox/releases/tag/20.3.0

I am still getting  this error in the updated detox version ("detox": "^20.5.0")

The app is busy with the following tasks:
• Run loop "Main Run Loop" is awake.
• The event "Network Request" is taking place with object: "URL: “https://api-dev.gigflex.com:8088/socket/347/oxxy2uxi/xhr_streaming?t=1679374217817”".
• There are 1 work items pending on the dispatch queue: "Main Queue (<OS_dispatch_queue_main: com.apple.main-thread>)".
• The event "Network Request" is taking place with object: "URL: “https://api-dev.gigflex.com:8088/socket/501/o2tr5ber/xhr_streaming?t=1679374218301”".

`import { device } from 'detox';
describe('App Test', () => {
beforeAll(async () => {
    await device.launchApp();
});

beforeEach(async () => {
    await device.reloadReactNative();
});

it('should have login screen', async () => {

    await expect(element(by.id('dashaboard-container'))).toBeVisible();
});

});
`
and it ends with error

FAIL  e2e/starter.test.js (124.849 s)
App Test
✕ should have login screen (2 ms)

● App Test › should have login screen
thrown: "Exceeded timeout of 120000 ms for a hook.
Add a timeout value to this test to increase the timeout, if this is a long-running test. See https://jestjs.io/docs/api#testname-fn-timeout."

  2 | describe('App Test', () => {
  3 |
> 4 |     beforeAll(async () => {
    |     ^
  5 |         await device.launchApp();
  6 |     });
  7 |

  at beforeAll (e2e/starter.test.js:4:5)
  at Object.describe (e2e/starter.test.js:2:1)

10:22:08.821 detox[8542] E Command failed with exit code = 1:
jest --config e2e/jest.config.js
Does anyone have any idea how can i resolve this? @d4vidi  @mgithubmessier  @menttys  @OrLevy23  @chamile

Same issue as @OrLevy23. Any news?

We have the same issue with LaunchDarkly on the latest detox version. Any updates on it? @d4vidi

@d4vidi Can I please ask to reopen this issue? Many people still have the same problem! Even after trying what was suggested.

I was able to make it work by using detoxURLBlacklistRegex in launchArgs. Make sure to properly pass the url
beforeAll(async () => {
    await device.launchApp({
      newInstance: true,
      launchArgs: {
        detoxURLBlacklistRegex:
          '\\("^https://yourURL.com/*"\\)',
      },
    });
});

We use this internally and should work:
  beforeAll(async () => {
    await device.launchApp({
      newInstance: true,
      launchArgs: {
        detoxURLBlacklistRegex: '\\("^https://clientstream.launchdarkly.com/meval"\\)',
      },
    });
  });

We use this internally and should work:
  beforeAll(async () => {
    await device.launchApp({
      newInstance: true,
      launchArgs: {
        detoxURLBlacklistRegex: '\\("^https://clientstream.launchdarkly.com/meval"\\)',
      },
    });
  });

Life saver. I don't get how they made LD network requests so problematic. They also break Android entirely at least on the simulator :/

authors: GittyAjay KaterinaUK NicholasBoccuzzi OrLevy23 SwetaTanwar asafkorem chamile d4vidi dominictobias gmferraz johanndeswardt menttys mgithubmessier vm-agnislav yusinto

repo: wix/Detox


text:
Support for screenshots in the middle of a test

The artifacts API in its current form enables screenshots to be easily taken before and after each test.
What if the test wants to take a screenshot at some arbitrary point in the middle of the test?
A few scenarios where this would be valuable:

Using detox to take screenshots of various screens for QA purposes. If the tests could control when screenshots are taken, they could navigate, take a screenshot, and then repeat the cycle without having to restart the test to manually trigger an afterEach screenshot capture, thus saving time and effort.
A test encounters an unexpected state in the middle of the test, and wants to capture the intermediary screen (that the afterEach screenshot may be too late to capture)
A test just wants to capture a screenshot of some valid intermediary state for human sanity checking purposes that is not available at the end of the test.

Perhaps the API could look something like this:
// detox could append ".png" and put this in the same folder as beforeEach.png and afterEach.png
await device.takeScreenshot("exampleScreenShotName");

Would love to see what you guys think about this :)

You see, my pull request in its very beginning had such an intent, thought later we came to conclusion that the scope of the change is too big and if you retrospectively take a look at the PR, it had about 100 commits and 100 changed files, succeeded by the other (not merged yet) pull request that adds unit test coverage to abstract artifact classes (plus 1500 lines approx.).
That was just too big to handle and grasp, so we postponed the imperative API till some time. I don't know what priority it has in Detox roadmap, but I also would love to see it readily available to anyone who needs it.
I hope I'll have a chance to work on it. Right now my priorities are to dramatically improve crashes, error handling and logs on Android and partially iOS, because as the life shows, Detox users are puzzled and disoriented at times by the verbose outputs

I can totally see how that PR might have quickly become too big in scope with all of the infrastructural changes required to enable artifacts.
But it seems to me like the heavy lifting required to enable artifacts has already been done. You can already take screenshots before and after. Is it a lot more work to expose and document the existing screenshot artifacts API to the user so they can take screenshots in the middle?
At the end of the day, it's a just a call to adb or xcrun right?

Yes, generally you are right, but there's still a question how to do it within the current architecture. I think I have a fairly good idea how, but it anyway needs a PoC (maybe I'm wrong about my way to do it) , a discussion with the maintainers (maybe they won't be happy about that way), a first implementation and maybe a consequent rework after a review and a couple discussions, so it is something that definitely is not going to happen sooner than in a month. Please mind that the latter is not an estimate, rather an advice to work around the current limitation if you need something already working for yesterday. I'm looking forward to this API too, so stay tuned - I'll be posting updates here as soon as the work starts on it.

That makes total sense and is a super reasonable approach. I've subscribed to this issue so I'll definitely stay tuned. Thank you for the suggestion and thank you for following up on this!

Hi guys, I second this proposal. It would be so useful.
I've been using detox for a little while and I find it extremely good (trying to get our verification engineer to write the scenarios as specs so he can write down passing scenarios for bugs and other things). We capture so many images as part of our execution that is indescribable.
Here are my two cents about this conversation:
Ideally, what I would like to see as part of the interface of the object is (as described at the beginning):

await device.takeScreenshot("fileName") but the file name is effectively just the file name as opposed to the entire path. On this definition, every time you call takeScreenshot(fileName) it generates a file <artefacts_location>/<specification>/<test>/${fileName}.png.

Optionally, don't provide customisation to it as you might need to validate the filePath... You could provide something like this:  every time you call takeScreenshot() it generates a file <artefacts_location>/<specification>/<test>/<incrementalNumber_per_test>.png which I think it would suit most people.
Why am I making this request?
I know I can take a screenshot as:
xcrun simctl io booted screenshot ${get the artefact folder}/${this.title}/${this.testTitle}/${number}.png
But as it turns out, it kind of break as I try to run it with multiple workers because simctl will just execute the screenshot for the first booted instance. And you already have all the required information for the given instance (which is so nice).
I even though of forking the code and changing it myself (but failed after dedicating a few hours... couldn't follow all the abstraction and I might need a bit of guidance).
If you do this change, let me know and I will add type definitions as soon as possible and push it into @types/detox. Alternatively, I can do with some guidance about the changes we need to do and I will do the work and push it as a PR.

authors: luisnaranjo733 noomorph rodrigoelp

repo: wix/detox


text:
move native modules to the optional deps

@AviVahl says works without phyton and c++ chain.

Once all tests are green I will be glad to merge

wake up CI!

authors: amir-arad tyv

repo: wix/kissfs


text:
[iOS] camera crashes the app

I just installed the lib and pasted the example into our code
<CameraKitCamera
    ref={(cam) => {this.camera = cam}}
    style={{flex: 1, backgroundColor: 'white'}}
    cameraOptions={{
    flashMode: 'auto',
    focusMode: 'on',
    zoomMode: 'on',
    ratioOverlay: '1:1',
    ratioOverlayColor: '#00000077',
  }}
/>

The app crashes immediately after mounting the component.
      libsystem_kernel.dylib`__abort_with_payload:
      0x185705d6c <+0>:  movz   x16, #0x209
      0x185705d70 <+4>:  svc    #0x80
->  0x185705d74 <+8>:  b.lo   0x185705d8c               ; <+32> [SIGABRT signal]
      0x185705d78 <+12>: stp    x29, x30, [sp, #-16]!
      0x185705d7c <+16>: mov    x29, sp
      0x185705d80 <+20>: bl     0x1856ea7d0               ; cerror_nocancel
      0x185705d84 <+24>: mov    sp, x29
      0x185705d88 <+28>: ldp    x29, x30, [sp], #16
      0x185705d8c <+32>: ret

Tried both the Simulator and physical iPhone 6.
react-native 0.41.2
react-native-camera-kit 5.2.11

Turns out since iOS 10 we need to add

NSPhotoLibraryUsageDescription
NSCameraUsageDescription
NSMicrophoneUsageDescription

into Info.plist

@viktorsec That's right :)

repo: wix/react-native-camera-kit


text:
DocWorks for wix-stores-backend - 2 changes detected, but 5 issue det…

…ected
changes:
Service wix-stores-backend operation decrementInventory has a new link incrementInventory()
Service wix-stores-backend operation incrementInventory has a new link decrementInventory()
issues:
Message ProductCreatedEvent has an unknown property type $w.Gallery.VideoItem (events.js (223))
Message SeoTag has an unknown property type object (products.js (63))
Message SeoTag has an unknown property type object (products.js (63))
Message SeoTag has an unknown property type object (products.js (63))
Message SeoTag has an unknown property type object (products.js (63))

#automerge

repo: wix/wix-code-docs


text:
网络请求如果只有一级数据要怎么设置

网络请求如果只有一级数据要怎么设置

同问同问

repo: wjTime/WJDropDownMenu


text:
Newbie Questions

Hello,
I am a bit new to docker so excuse me my may stupid questions :) But I hope you can answer me some. I have successfully installed the vanilla wp docker on my Debian 9.3.
How do I edit the Config files?
For example where can I edit the php.ini / nginx settings? When I do a find I oly get strange folder points:
find / -name "php.ini"
/var/lib/docker/overlay2/f6f34790839e5d2010cc72eeaa8aa10303e202be68fec6b977653a4ab8a0bb8b/diff/etc/supervisor.d/php.ini
/var/lib/docker/overlay2/f6f34790839e5d2010cc72eeaa8aa10303e202be68fec6b977653a4ab8a0bb8b/diff/etc/php.ini
/var/lib/docker/overlay2/440f1f536d60460793085b144aa59da814df6e3eb5708d44b9c16fe1b0168fda/merged/etc/supervisor.d/php.ini
/var/lib/docker/overlay2/440f1f536d60460793085b144aa59da814df6e3eb5708d44b9c16fe1b0168fda/merged/etc/php.ini

How do I best create / develop own plugins / themes?
I found out, that the files are located somewhere in "/var/lib/docker/volumes/XXX_codebase/_data/". Do I need to create a FTP service and edit files directly there?
How do I update the docker?
Let's say a new PHP version comes out, how do I best update my docker? Simply replace the php line in my docker-compose.yml and restart docker? Do any files get lost (e.g. modified php.ini)?
How do I backup docker wordpress?
How do I best backup my wordpress docker? Backup files and database?
How can I secure the access?
When I go to pma.XXX.com everybody from public can go into my phpmyadmin. How can I prevent this?
How can I create a staging version?
How do I create a staging version of this docker? Something where I can play around with code and if okay, push to the production docker?
Sorry for my newbie questions - hope you can help me!

How do I edit the Config files?

via environment variables, you can see them at https://github.com/wodby/php#environment-variables and https://github.com/wodby/nginx#environment-variables

How do I best create / develop own plugins / themes?

If we're talking about the local environment you mount your own codebase to php/nginx containers as described in docs. I recommend using composer template to install wp core and contrib plugins/themes for https://github.com/wodby/wordpress-composer

How do I update the docker?

When new PHP comes out and we release a new version of d4w with a new set of images, you just update your images tags

How do I backup docker wordpress?

The same way you do it without docker

How can I secure the access?
How can I create a staging version?

There are plenty of ways to do that but they require a certain level of knowledge, if you're looking for an automated ready-to-run solution I recommend taking a look at https://wodby.com

authors: csandanov db-dzine


text:
Image Add Test

Image Add Test

Image Add Test

Image Add Test

Image Add Test

repo: wonderkkid/food-delivery


text:
ReadWriterLockSlim on Unity3D

Test if this works in Unity3D: https://msdn.microsoft.com/en-us/library/system.threading.readerwriterlockslim(v=vs.90).aspx
Potential uses for Agents & Concurrent Data Structures

The API is at least available in Unity3D.


text:
Crash when remote server uses IPv6

Traceback (most recent call last):
  File "main.py", line 4, in <module>
  File "ottd_prayer/main.py", line 48, in main
  File "asyncio/runners.py", line 44, in run
  File "asyncio/base_events.py", line 646, in run_until_complete
  File "ottd_prayer/main.py", line 40, in main_async
  File "ottd_prayer/server_connector.py", line 22, in connect_to_server
  File "ottd_prayer/client_runner.py", line 19, in run_client
  File "asyncio/base_events.py", line 1025, in create_connection
  File "asyncio/base_events.py", line 1404, in _ensure_resolved
  File "asyncio/base_events.py", line 860, in getaddrinfo
  File "concurrent/futures/thread.py", line 58, in run
  File "socket.py", line 955, in getaddrinfo
socket.gaierror: [Errno -2] Name does not resolve
[28860] Failed to execute script 'main' due to unhandled exception!

The coordinator returns an IPv6 address enclosed in square brackets (e.g. [::1]), so passing that to loop.create_connection chokes it. These brackets needs to be stripped out ahead of time. To be extra safe, check the OpenTTD source code to find out what it does.

This issue seems to occur only Linux OSs. C's getaddrinfo does not like square brackets. It doesn't look like the OpenTTD strips those those brackets out (or, at least I can't find it), but it should be done for the bot.

Fixed as of 2f35dcbe231fcb943c00ccdaaebcb87e6218b7da

repo: wooky/ottd-prayer


text:
OAuth2.0 회원 탈퇴

OAuth 2.0 회원 탈퇴
description

OAuth 2.0로 가입한 회원의 탈퇴 기능

progress

[x] 회원 탈퇴

구현 완료

authors: KS-KIM taejinseok