text:
relationships serializer inference

Serializer inference on relationships can be improved.
For instance belongs_to :owner, record_type: :user uses OwnerSerializer.
In my opinion, it would make more sens to use UserSerializer.
I have a patch here: https://github.com/ThomasSevestre/fast_jsonapi/commit/46b5fdefb675159d89ec01b66cb45dea1590cbdf
It is a breaking change, I'll make a PR if you are interested.

Lets get some more feedback regarding this first.
Personally I do prefer a more explicit way to provide the type and the serializer, but I don't have a strong opinion.

I agree, this has been confusing for me a few times.  However, I haven't had the time to come up with a clear set of rules to implement.  @ThomasSevestre, do you have suggestions?

I beleive it should be the least surprising as possible. IMO the behavior should be :

use serializer option if specified
use record_type option if specified
use relation name

I'll throw in my opinion since I just created #29 which is somewhat related.
The record_type inference and serializer inference can both be misleading.  Personally, if I every need to specify one, I specify the other as well.  Here's the thing though: if it knew which serializer to use, then it should just look up the record type on the serializer.  To me, the value specified by set_type of the serializer is the Single Source of Truth.
Therefore, my opinion is that the record_type option is completely superfluous because we offer the serializer option.  I think record_type should be deprecated in favor of specifying serializer directly, and the type specified in the output should always come from the serializer.
This way there is only one thing being inferred: detecting the serializer class from the serializer option on the relationship.
If we deprecated record_type, then this is how I think we can still gracefully support it in the meantime:

If record_type is specified and serializer is not specified, simply treat the value of record_type as the serializer option instead.

If both record_type and serializer are specified, ignore record_type in favor of the serializer's.  I imagine that in all real-world usage, these match already.  If not, I think the type in the relationships hash would not match the type of the actual serialized record, which would break the JSON:API spec.

What does everyone else think?

While working on #29, I discovered this in the specs.  This is the JSON output of this test, shortened to highlight the problem:
{
  "data": [
    {
      "id": "1",
      "type": "movie",
      "attributes": {
        "name": "test movie",
        "release-year": null
      },
      "relationships": {
        "movie-type": {
          "data": {
            "id": "1",
            "type": "movie-type"
          }
        }
      }
    }
  ],
  "included": [
    {
      "id": "1",
      "type": "dash-movie-type",
      "attributes": {
        "name": "Episode"
      }
    }
  ]
}

Notice how the value for type is different in the relationships from in the included.  This JSON:API output is invalid because of how it is resolving record types and serializers.
There is even a test to make sure the type in the relationships equals movie-type, presumably because the relationship is defined as belongs_to :movie_type.  To me, this test is not correct, and the type should always be the type defined on the serializer, in this case dash-movie-type.
To me, I think all these problems disappear when we make the serializer the Single Source of Truth, and relationships specify a serializer option if it can't be inferred from the relationship name.

@christophersansone it looks goot to me !

authors: ThomasSevestre christophersansone kpheasey stas


text:
Ignore .ipynb_checkpoints folder in module dir

@jph00

Thanks - that's the exact right solution.

source: gharchive/pull-request

repo: fastai/nbdev

license_type: permissive

license_source: github-api


text:
Does fastlane for upload to playstore function releases app to production track as default

New Issue Checklist

[X] Updated fastlane to the latest version
[X] I read the Contribution Guidelines
[X] I read docs.fastlane.tools
[X] I searched for existing GitHub issues

Issue Description
Does fastlane for upload to playstore function releases app to production track as default, as per the documentation guideline if no parameter for track, release_status are passed its uploaded to production track.

Question

Does fastlane library starts uploading to production track directly
As the release_status parameter is not passed will the library release the app straight to production using the APIs inside.
If yes how much % of rollout will be made live to users.

Command executed
fastlane lane upload_app_to_playstore
Complete output when running fastlane, including the stack trace and command used
When no parameters passed to the track and status:

Output as below:

Few enquiries as the managed publishing is on will the release to internal track  also publish the binary to production track as its available on that track
Is this just upload only or also make live to customers as this is not send with draft parameter in release status
Will the binary be available to customers at 100%

Yes, by default, fastlane uploads apps to the production track if no track or release status is specified. To avoid accidental releases, always specify the desired track and release status, including the rollout percentage to control the release pace.

source: gharchive/issue

repo: fastlane/fastlane

license: MIT


text:
snapshot: The sandbox is not in sync with the Podfile.lock

New Issue Checklist

[X] Updated fastlane to the latest version
[X] I have read the Contribution Guidelines

Issue Description
I'm trying to run snapshot and I'm receiving the error below (complete output attached).
I've tried:

run pod install again (of course)
cleaning and building again
remove /Pods and Podfile.lock

Complete output when running fastlane, including the stack trace and command used
▸ Check Dependencies
▸ Running script '[CP] Check Pods Manifest.lock'

❌  error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.

▸ Building Arena/ARNUITests [Debug]
▸ Check Dependencies
2016-07-11 15:04:05.915 xcodebuild[19455:12621071] Connection peer refused channel request for "dtxproxy:XCTestManager_IDEInterface:XCTestManager_DaemonConnectionInterface"; channel canceled <DTXChannel: 0x7ff1df6c37f0>
2016-07-11 15:04:05.918 xcodebuild[19455:12621074] Connection peer refused channel request for "dtxproxy:XCTestManager_IDEInterface:XCTestManager_DaemonConnectionInterface"; channel canceled <DTXChannel: 0x7ff1de269ff0>

Testing failed:
Diff: /../Podfile.lock: No such file or directory
Diff: /Manifest.lock: No such file or directory
The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.

Configuration Files
Please copy the complete content of your Fastfile and any other configuration files you use below:
Snapfile:
# Uncomment the lines below you want to change by removing the # in the beginning

# A list of devices you want to take the screenshots from
devices([
   "iPhone 6",
   "iPhone 6 Plus",
   "iPhone 5",
   "iPhone 4s",
   "iPad Retina",
   "iPad Pro"
])

languages([
  "en-US",
  ["pt", "pt_BR"] # Portuguese with Brazilian locale
])

# Arguments to pass to the app on launch. See https://github.com/fastlane/snapshot#launch-arguments
# launch_arguments(["-favColor red"])

# The name of the scheme which contains the UI Tests
scheme "Arena"

# Where should the resulting screenshots be stored?
output_directory "./screenshots"

# clear_previous_screenshots true # remove the '#' to clear all previously generated screenshots before creating new ones

# Choose which project/workspace to use
# project "./Project.xcodeproj"
workspace "./Arena.xcworkspace"

# For more information about all available options run
# snapshot --help

Environment
Rodrigos-MacBook-Pro:Arena rodrigoreis$ snapshot -v
snapshot 1.12.3
Rodrigos-MacBook-Pro:Arena rodrigoreis$ pod --version
0.39.0
Do you use bundler to execute fastlane (i.e. bundle exec fastlane)?
no
Do you use a Ruby environment manager (e.g. chruby, rbenv, rvm)?
no
snapshot_out.txt

Hey @rodrigoreis22, it looks like maybe snapshot is not detecting your workspace perhaps. Could you share with us your fastfile (and Appfile if you have one)?

Hi @ohwutup , I got it to work, one of my other targets had a problem. We can close this issue.

👍 🚀 !

@mikepsinn sorry, i don't really recall.. but I think my test target had some basic configuration problem.

@rodrigoreis22 Got it. Thanks, anyway!

authors: mikepsinn ohwutup rodrigoreis22


text:
snapshot reset_all_simulators should have a -f option

New Issue Checklist

[x] Updated fastlane to the latest version
[x] I have read the Contribution Guidelines

Issue Description
It would be nice if snapshot reset_simulators had a -f, --force, or similar option to run without prompting. Currently, there is no (easy) way to completely automate the use of this command because it always prompts for confirmation before resetting simulators.
Complete output when running fastlane, including the stack trace and command used

You can use: --capture_output as the last commandline argument to get that collected for you

$ bundle exec snapshot --version
snapshot 1.16.3
$ bundle exec snapshot reset_simulators
Are you sure? All your simulators will be DELETED and new ones will be created! (y/n)
y
Removing device iPhone 5 (E8AA6F65-A22E-44F6-B655-5699A17E7F67)
Removing device iPhone 5s (12E8B4BC-9040-43ED-B711-C554B44312AD)
Removing device iPhone 6 (A31AD851-B183-4E8A-8DE0-8B292C3BAF53)
Removing device iPhone 6 Plus (6A6CBFC4-E9C4-4019-BDDE-3A7E572C7F6B)
Removing device iPhone 6s (D6AA807D-E883-4DCE-8E63-E94B2FC3316E)
Removing device iPhone 6s Plus (386B5CC2-D09D-417A-ADEA-E055C266D7C6)
Removing device iPhone 7 (31FEFDD8-9AC4-4FC0-A58A-92F4DF2CBC5F)
Removing device iPhone 7 Plus (6A3114D0-08C2-4F67-94CC-AA6D7A96B8C8)
Removing device iPhone SE (9200DB32-6C44-45EF-9206-31145AD8D6B5)
Removing device iPad Retina (B45EC656-6A43-417B-84DC-D1195474DF53)
Removing device iPad Air (13D4C38E-B7F1-4DC9-86C8-C09EA3C19608)
Removing device iPad Air 2 (59C48604-50AC-47C6-B4B0-A9F1687D4F5E)
Removing device iPad Pro (9.7-inch) (B0D48AD0-CD0A-4630-8315-B88DCCA0701C)
Removing device iPad Pro (12.9-inch) (A5CE30DD-ADDF-4D5A-8F26-56258107A00C)
Removing device Apple TV 1080p (09714D50-5F05-4581-9C5B-9744BD31A8C5)
Removing device Apple Watch - 38mm (6FB23CA4-B331-4877-B37E-E63AF462DFEE)
Removing device Apple Watch - 42mm (7A57944C-E761-417F-BD8C-583B85FF411C)
Removing device Apple Watch Series 2 - 38mm (A9086DDA-8150-4FCD-AD5C-0197E1BD7799)
Removing device Apple Watch Series 2 - 42mm (15FBCE5A-B866-4FDC-B5DA-8003EBFB2A38)
Creating ["iPhone 4s", "com.apple.CoreSimulator.SimDeviceType.iPhone-4s"] for iOS version 10.1
An error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=161):
Incompatible device
Creating ["iPhone 5", "com.apple.CoreSimulator.SimDeviceType.iPhone-5"] for iOS version 10.1
Creating ["iPhone 5s", "com.apple.CoreSimulator.SimDeviceType.iPhone-5s"] for iOS version 10.1
Creating ["iPhone 6", "com.apple.CoreSimulator.SimDeviceType.iPhone-6"] for iOS version 10.1
Creating ["iPhone 6 Plus", "com.apple.CoreSimulator.SimDeviceType.iPhone-6-Plus"] for iOS version 10.1
Creating ["iPhone 6s", "com.apple.CoreSimulator.SimDeviceType.iPhone-6s"] for iOS version 10.1
Creating ["iPhone 6s Plus", "com.apple.CoreSimulator.SimDeviceType.iPhone-6s-Plus"] for iOS version 10.1
Creating ["iPhone 7", "com.apple.CoreSimulator.SimDeviceType.iPhone-7"] for iOS version 10.1
Creating ["iPhone 7 Plus", "com.apple.CoreSimulator.SimDeviceType.iPhone-7-Plus"] for iOS version 10.1
Creating ["iPhone SE", "com.apple.CoreSimulator.SimDeviceType.iPhone-SE"] for iOS version 10.1
Creating ["iPad 2", "com.apple.CoreSimulator.SimDeviceType.iPad-2"] for iOS version 10.1
An error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=161):
Incompatible device
Creating ["iPad Retina", "com.apple.CoreSimulator.SimDeviceType.iPad-Retina"] for iOS version 10.1
Creating ["iPad Air", "com.apple.CoreSimulator.SimDeviceType.iPad-Air"] for iOS version 10.1
Creating ["iPad Air 2", "com.apple.CoreSimulator.SimDeviceType.iPad-Air-2"] for iOS version 10.1
Creating ["iPad Pro (9.7-inch)", "com.apple.CoreSimulator.SimDeviceType.iPad-Pro--9-7-inch-"] for iOS version 10.1
Creating ["iPad Pro (12.9-inch)", "com.apple.CoreSimulator.SimDeviceType.iPad-Pro"] for iOS version 10.1
Creating ["Apple TV 1080p", "com.apple.CoreSimulator.SimDeviceType.Apple-TV-1080p"] for tvOS version 10.0
Creating ["Apple Watch - 38mm", "com.apple.CoreSimulator.SimDeviceType.Apple-Watch-38mm"] for watchOS version 3.1
Creating ["Apple Watch - 42mm", "com.apple.CoreSimulator.SimDeviceType.Apple-Watch-42mm"] for watchOS version 3.1
Creating ["Apple Watch Series 2 - 38mm", "com.apple.CoreSimulator.SimDeviceType.Apple-Watch-Series-2-38mm"] for watchOS version 3.1
Creating ["Apple Watch Series 2 - 42mm", "com.apple.CoreSimulator.SimDeviceType.Apple-Watch-Series-2-42mm"] for watchOS version 3.1
Creating device pair of 04C44F6A-F8DB-4D15-80F5-11F8DF148EA9 and A39245F3-9F40-4992-AB87-03A74832196C
An error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=161):
Unable to pair devices
At least one of the requested devices is already paired with the maximum number of supported devices and cannot accept another pairing.

Environment
Please run fastlane env and copy the output below. This will help us help you :+1:
If you used --capture_output option please remove this block - as it is already included there.
✅ fastlane environment ✅
Stack

Key
Value

OS
10.12.1

Ruby
2.2.4

Bundler?
true

Xcode Path
/Applications/Xcode_8.1.app/Contents/Developer/

Xcode Version
8.1

Git
git version 2.10.2

Installation Source
/Users/zev/.rvm/gems/ruby-2.2.4/bin/fastlane

Host
Mac OS X 10.12.1 (16B2555)

Ruby Lib Dir
/Users/zev/.rvm/rubies/ruby-2.2.4/lib

OpenSSL Version
OpenSSL 1.0.2g  1 Mar 2016

fastlane files:
`./fastlane/Fastfile`
# Customise this file, documentation can be found here:
# https://github.com/fastlane/fastlane/tree/master/fastlane/docs
# All available actions: https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Actions.md
# can also be listed using the `fastlane actions` command

# Change the syntax highlighting to Ruby
# All lines starting with a # are ignored when running `fastlane`

# If you want to automatically update fastlane if a new version is available:
# update_fastlane

# This is the minimum version number required.
# Update this, if you use features of a newer version
fastlane_version "1.96.0"

default_platform :ios

platform :ios do
  before_all do
    # ENV["SLACK_URL"] = "https://hooks.slack.com/services/..."

  end

  desc "Runs all the tests"
  lane :test do
    scan
  end

  desc "Submit a new Beta Build to Apple TestFlight"
  desc "This will also make sure the profile is up to date"
  lane :beta do
    # match(type: "appstore") # more information: https://codesigning.guide
    gym(scheme: "Padiddle") # Build your app - more options available
    pilot

    # sh "your_script.sh"
    # You can also use other beta testing services here (run `fastlane actions`)
  end

  desc "Deploy a new version to the App Store"
  lane :appstore do
    # match(type: "appstore")
    snapshot
    gym(scheme: "Padiddle") # Build your app - more options available
    deliver(force: true)
    # frameit
  end

  desc "Pull dSYM files from Apple and upload them to Crashlytics."
  desc "This is so we can get symbolicated crash reports even when using Bitcode."
  lane :refresh_dsyms do
    download_dsyms                  # Download dSYM files from iTC
    upload_symbols_to_crashlytics   # Upload them to Crashlytics
    clean_build_artifacts           # Delete the local dSYM files
  end

  after_all do |lane|
    # This block is called, only if the executed lane was successful

    # slack(
    #   message: "Successfully deployed new App Update."
    # )
  end

  error do |lane, exception|
    # slack(
    #   message: exception.message,
    #   success: false
    # )
  end
end

# More information about multiple platforms in fastlane: https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Platforms.md
# All available actions: https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Actions.md

# fastlane reports which actions are used
# No personal data is recorded. Learn more at https://github.com/fastlane/enhancer

`./fastlane/Appfile`
app_identifier "com.zeveisenberg.Padiddle" # The bundle identifier of your app
apple_id "zev@zeveisenberg.com" # Your Apple email address

team_id "2KJHM26Y46"  # Developer Portal Team ID

# you can even provide different app identifiers, Apple IDs and team names per lane:
# More information: https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Appfile.md

fastlane gems

Gem
Version
Update-Status

credentials_manager
0.16.2
✅ Up-To-Date

fastlane_core
0.54.0
✅ Up-To-Date

spaceship
0.37.0
✅ Up-To-Date

cert
1.4.3
✅ Up-To-Date

deliver
1.15.0
✅ Up-To-Date

frameit
3.0.0
✅ Up-To-Date

gym
1.12.0
✅ Up-To-Date

sigh
1.11.2
✅ Up-To-Date

match
0.10.0
✅ Up-To-Date

pem
1.4.0
✅ Up-To-Date

pilot
1.12.0
✅ Up-To-Date

produce
1.3.0
✅ Up-To-Date

scan
0.14.1
✅ Up-To-Date

screengrab
0.5.5
✅ Up-To-Date

snapshot
1.16.3
✅ Up-To-Date

supply
0.7.1
✅ Up-To-Date

fastlane
1.107.0
✅ Up-To-Date

Loaded fastlane plugins:
No plugins Loaded
Loaded gems

Gem
Version

CFPropertyList
2.3.3

i18n
0.7.0

json
1.8.3

minitest
5.9.1

thread_safe
0.3.5

tzinfo
1.2.2

activesupport
4.2.7.1

public_suffix
2.0.4

addressable
2.5.0

babosa
1.0.2

bundler
1.13.6

colored
1.2

highline
1.7.8

commander
4.4.0

security
0.1.3

credentials_manager
0.16.2

excon
0.54.0

gh_inspector
1.0.2

multi_json
1.12.1

plist
3.1.0

rubyzip
1.1.7

terminal-table
1.4.5

fastlane_core
0.54.0

multipart-post
2.0.0

faraday
0.9.2

unf_ext
0.0.7.2

unf
0.1.4

domain_name
0.5.20161021

http-cookie
1.0.3

faraday-cookie_jar
0.0.6

faraday_middleware
0.10.0

fastimage
1.6.8

multi_xml
0.5.5

claide
1.0.1

fuzzy_match
2.0.4

nap
1.1.0

cocoapods-core
1.1.1

cocoapods-deintegrate
1.0.1

cocoapods-downloader
1.1.2

cocoapods-plugins
1.0.0

cocoapods-search
1.0.0

cocoapods-stats
1.0.0

netrc
0.7.8

cocoapods-trunk
1.1.1

cocoapods-try
1.1.0

escape
0.0.4

fourflusher
2.0.1

molinillo
0.5.3

nanaimo
0.2.2

xcodeproj
1.4.1

cocoapods
1.1.1

dotenv
2.1.1

mini_magick
4.5.1

rouge
1.11.1

xcpretty
0.2.4

net-ssh
3.2.0

net-sftp
2.1.2

krausefx-shenzhen
0.14.10

slack-notifier
1.5.1

xcpretty-travis-formatter
0.0.4

jwt
1.5.6

little-plugger
1.1.4

logging
2.1.0

memoist
0.15.0

os
0.9.6

signet
0.7.3

googleauth
0.5.1

httpclient
2.8.2.4

hurley
0.2

mime-types-data
3.2016.0521

mime-types
3.1

uber
0.0.15

representable
2.3.0

retriable
2.1.0

google-api-client
0.9.20

terminal-notifier
1.7.1

word_wrap
1.0.0

xcode-install
2.0.8

generated on: 2016-11-09

SNAPSHOT_FORCE_DELETE=1 snapshot reset_simulators  should do it 👍

@hjanuschka that worked! Thanks. It would still be nice if there were a discoverable option via snapshot --help.

@ZevEisenberg  PR is here: https://github.com/fastlane/fastlane/pull/6954
enables snapshot reset_simulators --force

Yeah, this is implemented now, thanks again @hjanuschka 👍

authors: KrauseFx ZevEisenberg hjanuschka


text:
Import from git versioning

Checklist

[x] I've run bundle exec rspec from the root directory to see all new and existing tests pass
[x] I've followed the fastlane code style and run bundle exec rubocop -a to ensure the code style is valid
[x] I've read the Contribution Guidelines
[x] I've updated the documentation if necessary.

Motivation and Context

We're using the import_from_git method to use a shared Fastfile in our company. One Fastlane file to manage all our different projects. All changes to this file were always backwards compatible, but we wanted to create a new and better one that isn't backwards compatible anymore. To prevent all our builds from failing, we should be able to select a version range when importing the shared Fastfile.

This fixes https://github.com/fastlane/fastlane/issues/10189

We tested this by adding the version parameter in one of our projects, and using a local version of Fastlane by modifying the Gemfile of our iOS project.
import_from_git(url: 'git@bitbucket.org:------------/----------.git', version: '~> 2.0')

Description
To solve this, we updated the already implemented import_from_git function. We added a new parameter version next to branch. Both do almost the same, except that version will use all git tags to find a matching version. When a version is found, it will checkout just like you would have used a branch.
Optimistic parameters are added to support auto updates with backwards compatible code.

I signed it!

Thanks @ohayon for the nice words and feedback!
Sure, I moved the logic to separate functions to solve your PR remark.

Thanks @bramseynhaeve ! That looks great 🌟 ! I'm not sure those failing tests are related to your code, would you mind just taking a look at those to make sure that thats the case?

Thanks. I'm not having these failed test local and they showed up after I merged master into my PR. But I'll take a look.

Thanks @bramseynhaeve! Also, we are wondering if we could tweet about this change. We think this change is really awesome!

@ohayon A tweet would be nice, go ahead! A mention would be awesome. ;-)

Thanks @bramseynhaeve This looks very useful! 👍

Thanks again for this @bramseynhaeve ! We are going to tweet about it at some point soon 🐦 ! This is an awesome first-time contribution! We hope to see more from you!

🙌🏻

@bramseynhaeve super feature! We were discussing the need to add this when I found out you already implemented it. Thanks a lot! 🍻

authors: bramseynhaeve friederbluemle lacostej ohayon


text:
Add helper methods for detecting fs_insensitivty and comparing paths

Checklist

[x] I've run bundle exec rspec from the root directory to see all new and existing tests pass
[x] I've followed the fastlane code style and run bundle exec rubocop -a to ensure the code style is valid
[x] I've read the Contribution Guidelines
[x] I've updated the documentation if necessary.

Motivation and Context
Attempt to revive dead PR #11432 to finally fix the root cause of issues #11392 and #10166.
Description
Compare given paths if they are equal, respecting filesystem case sensitivity.
Some systems have insensitive filesystems (e.g.: macOS AFPS)
https://developer.apple.com/library/content/documentation/FileManagement/Conceptual/APFS_Guide/FAQ/FAQ.html
Issues:
- https://github.com/fastlane/fastlane/issues/11392
- https://github.com/fastlane/fastlane/issues/10166
closes #11432

Unfortunately doesn't work on Windows (yet):
Failures:
  1) FastlaneCore FastlaneCore::Helper#compare_paths? when the file system is sensitive respects case while comparing
     Failure/Error: expect(FastlaneCore::Helper.compare_paths("FASTLANE", "fastlane")).to be false
       expected false
            got true
     # ./fastlane_core/spec/helper_spec.rb:126:in `block (5 levels) in <top (required)>'
Finished in 3 minutes 19.6 seconds (files took 8.65 seconds to load)
5477 examples, 1 failure, 197 pending
Failed examples:
rspec ./fastlane_core/spec/helper_spec.rb:125 # FastlaneCore FastlaneCore::Helper#compare_paths? when the file system is sensitive respects case while comparing

@antoinelamy Do you want to take a look at the Windows CI failure here? Thanks.

authors: antoinelamy janpio


text:
improve example code

Thanks for contributing to fastlane! Before you submit your pull request, please make sure to check the following boxes:

[x] Run bundle exec rspec from the subdirectory of each tool you modified. Alternatively, run rake test_all from the root directory.
[x] Run bundle exec rubocop -a to ensure the code style is valid
[x] Read the Contribution Guidelines
[x] We currently don't accept new actions, please publish a plugin instead, more information in Plugins.md

Before submitting a pull request, we appreciate if you create an issue first to discuss the change :+1:
this stops increment_build_number from accessing iTunes Connect twice  -it's merely a docs update

Thanks for the PR @rocco, however those are 2 different code samples, that are shown on https://docs.fastlane.tools. They are meant to be independent from each other.

authors: KrauseFx rocco


text:
Move Actions.md to docs.fastlane.tools

Currently we only auto-update Actions.md on the docs page, so let's have it on one central space 👍

Ready to be merged

This is all old code/docs we get rid of 👍


text:
[deliver] no screenshot information - reword

be a bit more precise on the error message.
since screenshots won't be deleted by default anymore (only when overwrite_screenshots is set)
as proposed by @KrauseFx

Thanks for preparing this change. Did you check if that's actually how deliver behaves?

@krausefx - checked it - and if i am not wrong it should be how deliver behaves

authors: KrauseFx hjanuschka


text:
SNPs from different replicons should be in one input file or separate?

Dear Carl,
Thank you so much for developing this tool. I learned this tool from a paper, and really want to try it with my own data. I want to run association analysis of bacterial SNPs and pheno data.
Now I am in the stage of preparing data, and have some questions on how to prepare my input data specifically.
My bacteria have one circular chromosome, one linear chromosome, and uneven number of plasmids. When I did SNPs calling, they were all in one file. For association analysis, feels like when I convert from VCF to PLINK format, I could either convert in one file, or convert each replicon individually. For association analysis, should SNPs from different replicons be in one file or separately?
Also, because the uneven number of plasmids, the end of the SNPs file looks like this:

I don't know why there are so many 0, and they don't align because different numbers of SNP in each bacterium. Will that be a problem for association anaylsis?
For phenotypic data, I have 11 different traits, should I run each trait one by one, or I can merge SNPs data with all 11 traits to one file, and have FaSTlmm to run all at once?
Thank you so much,
Best,
Limin

Limin,
Thanks for considering FaST-LMM!
I passed your question on to a FaST-LMM co-author and he recommends this article:
https://journals.plos.org/plosgenetics/article?id=10.1371/journal.pgen.1007758#:~:text=The aim of Genome-Wide,data [1–7]

Carl

p.s. Follow up with us with any questions on data formats, working with multiple phenotypes, etc. If you can, include the approximate size of the datasets.
Carl Kadie, Ph.D.
FaST-LMM & PySnpTools Teamhttps://fastlmm.github.io/
(Microsoft Research, retired)
https://www.linkedin.com/in/carlk/
Join the FaST-LMM user discussion and announcement list via emailmailto:fastlmm-user-join@python.org?subject=Subscribe (or use web sign uphttps://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmail.python.org%2Fmailman3%2Flists%2Ffastlmm-user.python.org&data=02|01||13a5c33d7cd84cad5cdf08d7bba56e20|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637184191498409587&sdata=2CQWjQEwOpQol2rQ1eoyVTgY8WvInV8UH31Wtl68FzY%3D&reserved=0)
From: limin notifications@github.com
Sent: Tuesday, November 10, 2020 11:30 PM
To: fastlmm/FaST-LMM FaST-LMM@noreply.github.com
Cc: Subscribed subscribed@noreply.github.com
Subject: [fastlmm/FaST-LMM] SNPs from different replicons should be in one input file or separate? (#9)
Dear Carl,
Thank you so much for developing this tool. I learned this tool from a paper, and really want to try it with my own data. I want to run association analysis of bacterial SNPs and pheno data.
Now I am in the stage of preparing data, and have some questions on how to prepare my input data specifically.
My bacteria have one circular chromosome, one linear chromosome, and uneven number of plasmids. When I did SNPs calling, they were all in one file. For association analysis, feels like when I convert from VCF to PLINK format, I could either convert in one file, or convert each replicon individually. For association analysis, should SNPs from different replicons be in one file or separately?
Also, because the uneven number of plasmids, the end of the SNPs file looks like this:
[Screen Shot 2020-11-10 at 11 23 38 PM]https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fuser-images.githubusercontent.com%2F42760669%2F98781775-c667c000-23ab-11eb-88ca-d29c42a4f530.png&data=04|01||2c8d80cfe208437263b308d886138cdb|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637406765802359009|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=OIgZOpKVxa1uFYPMIGH%2FtppK4YOTPbxjdc7fXYXm3%2BQ%3D&reserved=0
I don't know why there are so many 0, and they don't align because different numbers of SNP in each bacterium. Will that be a problem for association anaylsis?
For phenotypic data, I have 11 different traits, should I run each trait one by one, or I can merge SNPs data with all 11 traits to one file, and have FaSTlmm to run all at once?
Thank you so much,
Best,
Limin
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Ffastlmm%2FFaST-LMM%2Fissues%2F9&data=04|01||2c8d80cfe208437263b308d886138cdb|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637406765802359009|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=ONccSECeTe6ajvGNdFW01yqwCpzMTBIUYMUzxjaPzGI%3D&reserved=0, or unsubscribehttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FABR65P6YIHEFQ5H6DPVZOPLSPI4OHANCNFSM4TRUWQOQ&data=04|01||2c8d80cfe208437263b308d886138cdb|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637406765802369006|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=IvgralbVHYlaMzMz%2Fai%2Bf5H0nre5TG4uGQGstf4DsQc%3D&reserved=0.

Limin, Thanks for considering FaST-LMM! I passed your question on to a FaST-LMM co-author and he recommends this article: https://journals.plos.org/plosgenetics/article?id=10.1371/journal.pgen.1007758#:~:text=The aim of Genome-Wide,data [1–7] * Carl p.s. Follow up with us with any questions on data formats, working with multiple phenotypes, etc. If you can, include the approximate size of the datasets. Carl Kadie, Ph.D. FaST-LMM & PySnpTools Teamhttps://fastlmm.github.io/ (Microsoft Research, retired) https://www.linkedin.com/in/carlk/ Join the FaST-LMM user discussion and announcement list via emailmailto:fastlmm-user-join@python.org?subject=Subscribe (or use web sign uphttps://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmail.python.org%2Fmailman3%2Flists%2Ffastlmm-user.python.org&data=02|01||13a5c33d7cd84cad5cdf08d7bba56e20|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637184191498409587&sdata=2CQWjQEwOpQol2rQ1eoyVTgY8WvInV8UH31Wtl68FzY%3D&reserved=0) From: limin notifications@github.com Sent: Tuesday, November 10, 2020 11:30 PM To: fastlmm/FaST-LMM FaST-LMM@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Subject: [fastlmm/FaST-LMM] SNPs from different replicons should be in one input file or separate? (#9) Dear Carl, Thank you so much for developing this tool. I learned this tool from a paper, and really want to try it with my own data. I want to run association analysis of bacterial SNPs and pheno data. Now I am in the stage of preparing data, and have some questions on how to prepare my input data specifically. My bacteria have one circular chromosome, one linear chromosome, and uneven number of plasmids. When I did SNPs calling, they were all in one file. For association analysis, feels like when I convert from VCF to PLINK format, I could either convert in one file, or convert each replicon individually. For association analysis, should SNPs from different replicons be in one file or separately? Also, because the uneven number of plasmids, the end of the SNPs file looks like this: [Screen Shot 2020-11-10 at 11 23 38 PM]https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fuser-images.githubusercontent.com%2F42760669%2F98781775-c667c000-23ab-11eb-88ca-d29c42a4f530.png&data=04|01||2c8d80cfe208437263b308d886138cdb|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637406765802359009|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=OIgZOpKVxa1uFYPMIGH%2FtppK4YOTPbxjdc7fXYXm3%2BQ%3D&reserved=0 I don't know why there are so many 0, and they don't align because different numbers of SNP in each bacterium. Will that be a problem for association anaylsis? For phenotypic data, I have 11 different traits, should I run each trait one by one, or I can merge SNPs data with all 11 traits to one file, and have FaSTlmm to run all at once? Thank you so much, Best, Limin — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Ffastlmm%2FFaST-LMM%2Fissues%2F9&data=04|01||2c8d80cfe208437263b308d886138cdb|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637406765802359009|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=ONccSECeTe6ajvGNdFW01yqwCpzMTBIUYMUzxjaPzGI%3D&reserved=0, or unsubscribehttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FABR65P6YIHEFQ5H6DPVZOPLSPI4OHANCNFSM4TRUWQOQ&data=04|01||2c8d80cfe208437263b308d886138cdb|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637406765802369006|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=IvgralbVHYlaMzMz%2Fai%2Bf5H0nre5TG4uGQGstf4DsQc%3D&reserved=0.

Hi Carl
Thank you and your friend who suggest the paper. I finally made it run. I am learning how to interpret the data.
Actually I still want to try out your model, which I learned from this paper.
https://github.com/fastlmm/FaST-LMM/issues/9#issuecomment-725735080
they applied your model and got really nice results. I am considering try different method to confirm my results.
Do you have any recommendation on my previous question if try to use your model?
Thank you so much.
Best,
Limin

Limin,

Do you have any recommendation on my previous question if try to use your model?

For association analysis, should SNPs from different replicons be in one file or separately?
I’m sorry, I don’t know. (I’ve worked almost exclusively with human DNA.)

I don't know why there are so many 0, and they don't align because different numbers of SNP in each bacterium. Will that be a problem for association analysis?

I’m not sure, but I think good alignment is important. For human DNA, I believe every SNP location has a name (for example, “rs6311https://en.wikipedia.org/wiki/Rs6311”) and I known location in the data. If the GWAS says that SNP is significant, we know that means.

For phenotypic data, I have 11 different traits, should I run each trait one by one, or I can merge SNPs data with all 11 traits to one file, and have FaSTlmm to run all at once?

This question I can answer! The main GWAS function in FaST-LMM is single_snphttps://fastlmm.github.io/FaST-LMM/#single-snp. It only knows how to process one phenotype at a time so the simplest thing is to put each phenotype in its own file and do 11 runs. (One phenotype text format is described herehttps://fastlmm.github.io/PySnpTools/#snpreader-pheno.). This approach also better handles the case in which different phenotypes have different missing data.
(Details: A different GWAS function called single_snp_scale can run multiple phenotypes at once, but it is generally slower until the size of the problem gets larger than 50,000+. Also, it is possible for the single_snp function to read just one phenotype at a time from a phenotype file that contains multiple phenotypes, but I suggest getting it working one phenotype first.)

Carl

From: limin notifications@github.com
Sent: Monday, November 16, 2020 7:34 PM
To: fastlmm/FaST-LMM FaST-LMM@noreply.github.com
Cc: Carl Kadie carlk@msn.com; Comment comment@noreply.github.com
Subject: Re: [fastlmm/FaST-LMM] SNPs from different replicons should be in one input file or separate? (#9)
Limin, Thanks for considering FaST-LMM! I passed your question on to a FaST-LMM co-author and he recommends this article: https://journals.plos.org/plosgenetics/article?id=10.1371/journal.pgen.1007758#:~:text=The aim of Genome-Wide,data [1–7]https://eur01.safelinks.protection.outlook.com/?url=https:%2F%2Fjournals.plos.org%2Fplosgenetics%2Farticle%3Fid%3D10.1371%2Fjournal.pgen.1007758%23:~:text%3DThe%2520aim%2520of%2520Genome-Wide%2Cdata%2520%255B1%25E2%2580%25937%255D&data=04|01||cbb7fd5d66d6413fae0808d88aa9a281|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637411808463475346|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=aY36aAzXBiNjIzYdmkXDfX%2FLY33pleI97UFrug2hSr4%3D&reserved=0 * Carl p.s. Follow up with us with any questions on data formats, working with multiple phenotypes, etc. If you can, include the approximate size of the datasets. Carl Kadie, Ph.D. FaST-LMM & PySnpTools Teamhttps://fastlmm.github.io/https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ffastlmm.github.io%2F&data=04|01||cbb7fd5d66d6413fae0808d88aa9a281|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637411808463485341|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=3ZFpibAJwH8%2BOmjVBUOK2Lituhv06jhKu2eA0ShhfbM%3D&reserved=0 (Microsoft Research, retired) https://www.linkedin.com/in/carlk/https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.linkedin.com%2Fin%2Fcarlk%2F&data=04|01||cbb7fd5d66d6413fae0808d88aa9a281|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637411808463495340|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=wDapfq7akOnmAv115G41D29f8iSO21XSzzHzg8qK4GA%3D&reserved=0 Join the FaST-LMM user discussion and announcement list via emailmailto:fastlmm-user-join@python.org?subject=Subscribe (or use web sign uphttps://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmail.python.org%2Fmailman3%2Flists%2Ffastlmm-user.python.org&data=02%7C01%7C%7C13a5c33d7cd84cad5cdf08d7bba56e20%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637184191498409587&sdata=2CQWjQEwOpQol2rQ1eoyVTgY8WvInV8UH31Wtl68FzY%3D&reserved=0https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmail.python.org%2Fmailman3%2Flists%2Ffastlmm-user.python.org&data=04|01||cbb7fd5d66d6413fae0808d88aa9a281|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637411808463505335|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=AFUysJbkyXxmYIx%2FKMu7bBZgFpz5%2BNBmvW47uxmaUVQ%3D&reserved=0) From: limin notifications@github.commailto:notifications@github.com Sent: Tuesday, November 10, 2020 11:30 PM To: fastlmm/FaST-LMM FaST-LMM@noreply.github.commailto:FaST-LMM@noreply.github.com Cc: Subscribed subscribed@noreply.github.commailto:subscribed@noreply.github.com Subject: [fastlmm/FaST-LMM] SNPs from different replicons should be in one input file or separate? (#9https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Ffastlmm%2FFaST-LMM%2Fissues%2F9&data=04|01||cbb7fd5d66d6413fae0808d88aa9a281|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637411808463515338|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=bw2EKTkU9U2Ioh%2BswCqZGuqpZAT%2FZM%2BkE5CYyrXtdZw%3D&reserved=0) Dear Carl, Thank you so much for developing this tool. I learned this tool from a paper, and really want to try it with my own data. I want to run association analysis of bacterial SNPs and pheno data. Now I am in the stage of preparing data, and have some questions on how to prepare my input data specifically. My bacteria have one circular chromosome, one linear chromosome, and uneven number of plasmids. When I did SNPs calling, they were all in one file. For association analysis, feels like when I convert from VCF to PLINK format, I could either convert in one file, or convert each replicon individually. For association analysis, should SNPs from different replicons be in one file or separately? Also, because the uneven number of plasmids, the end of the SNPs file looks like this: [Screen Shot 2020-11-10 at 11 23 38 PM]https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fuser-images.githubusercontent.com%2F42760669%2F98781775-c667c000-23ab-11eb-88ca-d29c42a4f530.png&data=04|01||2c8d80cfe208437263b308d886138cdb|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637406765802359009|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=OIgZOpKVxa1uFYPMIGH%2FtppK4YOTPbxjdc7fXYXm3%2BQ%3D&reserved=0https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fuser-images.githubusercontent.com%2F42760669%2F98781775-c667c000-23ab-11eb-88ca-d29c42a4f530.png&data=04|01||cbb7fd5d66d6413fae0808d88aa9a281|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637411808463525322|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=1VDACf3rUFLzHlheJgJhFbV2OEcy3OCZ635x%2FeaMm7U%3D&reserved=0 I don't know why there are so many 0, and they don't align because different numbers of SNP in each bacterium. Will that be a problem for association anaylsis? For phenotypic data, I have 11 different traits, should I run each trait one by one, or I can merge SNPs data with all 11 traits to one file, and have FaSTlmm to run all at once? Thank you so much, Best, Limin — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Ffastlmm%2FFaST-LMM%2Fissues%2F9&data=04%7C01%7C%7C2c8d80cfe208437263b308d886138cdb%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637406765802359009%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=ONccSECeTe6ajvGNdFW01yqwCpzMTBIUYMUzxjaPzGI%3D&reserved=0https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Ffastlmm%2FFaST-LMM%2Fissues%2F9&data=04|01||cbb7fd5d66d6413fae0808d88aa9a281|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637411808463535314|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=3Fq2lvRjYwFKccVfKanWfMgz6%2BEVWUfEtAfdGlhgGzE%3D&reserved=0, or unsubscribehttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FABR65P6YIHEFQ5H6DPVZOPLSPI4OHANCNFSM4TRUWQOQ&data=04%7C01%7C%7C2c8d80cfe208437263b308d886138cdb%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637406765802369006%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=IvgralbVHYlaMzMz%2Fai%2Bf5H0nre5TG4uGQGstf4DsQc%3D&reserved=0https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FABR65P6YIHEFQ5H6DPVZOPLSPI4OHANCNFSM4TRUWQOQ&data=04|01||cbb7fd5d66d6413fae0808d88aa9a281|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637411808463545315|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=0fD9Sl1Kdfh5iTpHmwWtBunkPg2dARXMBdS38j3AJsA%3D&reserved=0.
Hi Carl
Thank you and your friend who suggest the paper. I finally made it run. I am learning how to interpret the data.
Actually I still want to try out your model, which I learned from this paper.
#9 (comment)https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Ffastlmm%2FFaST-LMM%2Fissues%2F9%23issuecomment-725735080&data=04|01||cbb7fd5d66d6413fae0808d88aa9a281|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637411808463555309|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=lzHLwxW8hNN6W4sVNmVN84j6gIzuYrGJHlA8b%2BYwn4A%3D&reserved=0
they applied your model and got really nice results. I am considering try different method to confirm my results.
Do you have any recommendation on my previous question if try to use your model?
Thank you so much.
Best,
Limin
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHubhttps://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Ffastlmm%2FFaST-LMM%2Fissues%2F9%23issuecomment-728664643&data=04|01||cbb7fd5d66d6413fae0808d88aa9a281|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637411808463565305|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=%2FT20nxffUXENThVcVVIo9A%2F1kFwVnIpS5%2F5bEDBFQBk%3D&reserved=0, or unsubscribehttps://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FABR65PZTFSPGRJO336IBH2DSQHVKZANCNFSM4TRUWQOQ&data=04|01||cbb7fd5d66d6413fae0808d88aa9a281|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637411808463575309|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=SLHancMFoRfIQlas5ykPKz8s2elF6xSYyQ5mKL%2FKtMg%3D&reserved=0.

repo: fastlmm/FaST-LMM


text:
[modify]dataset_loader.py的CSVLoader

Description：dataset_loader.py中的CSVLoader使用的_read_csv函数，由用open读取每行为字符串后进行切分的方式，修改为使用csv库的reader读取每行为一个列表
Main reason: 原始读取每行为字符串，再按照分隔符切分该行为标签、文本，但当csv文件中的分隔符为逗号，同时文本中也存在逗号时，这种读取方法就会报错，必须要修改csv文件。但改为用csv库的reader读取每行时，csv库可识别文件的编码规则，得到的每行为一个列表，不会报错，也不需要本地修改文本文件。
Changes: 逐项描述修改的内容
修改file_reader.py中_read_csv读取及切分csv文件的方式
@xuyige

good
我们正在开发的分支是dev0.5.0，master分支为稳定版本分支，可否提交到dev0.5.0分支的pr？谢谢

please pr to branch dev0.5.0, thx

好的～

repo: fastnlp/fastNLP


text:
Address the issue with the current 3stream solver being able to only handle the intermediate fluid being the hot one.

This is an issue with Sekilc formulation not working well for non-intermediate fluids being the hottest one.
I want to look at the Ural method to see if it works better and it seems like a generalized version of the Selick formulation in terms of boundary conditions.

The Sekilc formuation found in https://drive.google.com/file/d/1M5TLWYmmC4C8HNz1UVlSQTe0nsB5AIXS/view?usp=sharing
The Ural method can be found here:

Here is a publication that leads us to that: https://www.sciencedirect.com/science/article/pii/S1290072904000511

repo: fastresearchgroup/TORCHE


text:
Create a Use Cases page for papers and teaching

Adds a Use Cases page and what I could gather initially from citations
and mentions on google scholar. Includes links to PDFs and code whenever
I could find them online. Link to the new page from the docs and home
page.
Checklist:

[x] Make tests for new code (at least 80% coverage)
[x] Create/update docstrings
[x] Include relevant equations and citations in docstrings
[x] Docstrings follow the style conventions
[x] Code follows PEP8 style conventions
[x] Code and docs have been spellchecked
[x] Include new dependencies in doc/install.rst, environment.yml, ci/requirements-conda.txt and ci/requirements-pip.txt.
[x] Documentation builds properly (run cd doc; make locally)
[x] Changelog entry (leave for last to avoid conflicts)

Heads up @fatiando/contributors. This PR will create a page to list publications and other things that have used Fatiando. I'd appreciate home help filling it in after the PR is merged. I included what I could gather initially but I'm sure I missed something. Conference presentations and other things are welcome as well.

@leouieda I'm getting the fallowing error when trying to compile docs:
rm -rf cookbook
mkdir -p cookbook
mv _static/cookbook/*.rst cookbook

Build finished.

Building HTML files.

sphinx-build -b html -d _build/doctrees   . _build/html
Running Sphinx v1.4.8

Extension error:
Could not import extension sphinx_gallery.gen_gallery (exception: No module named sphinx_gallery.gen_gallery)
Makefile:47: recipe for target 'html' failed
make: *** [html] Error 1

You need to install sphinx_gallery in order to build the docs. Run pip install sphinx-gallery

@leouieda Thanks!
I forgot to active the fatiando-dev environment!

authors: leouieda rafaelmds

repo: fatiando/fatiando

license_source: bigquery


text:
Function Advice

Thank you for your roam-extension-find-replace.
Here are some advices:

Save frequently used  regex expressions.
Add multiple replacement support.

Thank you again.

Hi Leo,
'1.' is a good idea, I will think about how to implement it.
What do you mean by "multiple remplacement" ? Have you an example ?

Hi Leo, '1.' is a good idea, I will think about how to implement it. What do you mean by "multiple remplacement" ? Have you an example ?

Now if I need to replace three kinds of phrases, I need to do three times. Could I replace many pairs at one time？

authors: LeoChanXY fbgallet

repo: fbgallet/roam-extension-find-replace


text:
Is it possible to set CPU / GPU usage without knowing the backend?

In other words, I don't know if the Keras install will use Theano or TensorFlow, but I'd still like to have control over whether the CPU or GPU is being used. Is this possible? Could we add a flag to ~/.keras/keras.json for this purpose otherwise?

You could automatically check ~/.keras/keras.json at the beginning of your script:

if the backend is Theano then with os.environ you can set THEANO_FLAGS to device=gpu (and/or  openmp=True for multi-CPU usage) and then import theano.
if the backend is TensorFlow then it will automatically use the GPU. If needed you could then try to prevent tf to use the GPU with something like this.

Yeah, sure, but it feels like that should be a function provided by Keras, especially as more backends are eventually added. User code should be backend agnostic.

I always get gpu errors like "c:\tf_jenkins\home" etc. and can't simply switch to cpu.
I have NVIDIA GPU Computing installed, but it's not used.

authors: Steviey carlthome denlecoeuche

repo: fchollet/keras


text:
StopIteration: Tensor [...] is not an element of this graph.

I have recently started getting StopIteration: Tensor Tensor("l2_norm/l2_normalize:0", shape=(?, 2048), dtype=float32) is not an element of this graph errors when running my training fit_generator (it's a bit confusing because because this wasn't happening before and I'm not sure what code introduced the issue).
I believe it's a thread related issue (I'm using the model that I am training from inside my training data generator). I was wondering if there's a way to use the model I'm training from inside my generator while avoiding this issue.
Full stack trace:
Epoch 1/30
Traceback (most recent call last):
  File "/home/ubuntu/.pyenv/versions/dir/lib/python3.6/site-packages/keras/utils/data_utils.py", line 505, in get
    inputs = self.queue.get(block=True).get()
  File "/home/ubuntu/.pyenv/versions/3.6.2/lib/python3.6/multiprocessing/pool.py", line 644, in get
    raise self._value
  File "/home/ubuntu/.pyenv/versions/3.6.2/lib/python3.6/multiprocessing/pool.py", line 119, in worker
    result = (True, func(*args, **kwds))
  File "/home/ubuntu/.pyenv/versions/dir/lib/python3.6/site-packages/keras/utils/data_utils.py", line 371, in get_index
    return ds[i]
  File "/home/ubuntu/code/dir/dir/datagen.py", line 148, in __getitem__
    negatives = self.generate_negatives(anchors, paths)
  File "/home/ubuntu/code/dir/dir/datagen.py", line 127, in generate_negatives
    return self.generate_hard_negatives(images, paths)
  File "/home/ubuntu/code/dir/dir/datagen.py", line 103, in generate_hard_negatives
    vectors = self.model.predict(images)
  File "/home/ubuntu/.pyenv/versions/dir/lib/python3.6/site-packages/keras/engine/training.py", line 1710, in predict
    self._make_predict_function()
  File "/home/ubuntu/.pyenv/versions/dir/lib/python3.6/site-packages/keras/engine/training.py", line 999, in _make_predict_function
    **kwargs)
  File "/home/ubuntu/.pyenv/versions/dir/lib/python3.6/site-packages/keras/backend/tensorflow_backend.py", line 2297, in function
    return Function(inputs, outputs, updates=updates, **kwargs)
  File "/home/ubuntu/.pyenv/versions/dir/lib/python3.6/site-packages/keras/backend/tensorflow_backend.py", line 2246, in __init__
    with tf.control_dependencies(self.outputs):
  File "/home/ubuntu/.pyenv/versions/dir/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 3936, in control_dependencies
    return get_default_graph().control_dependencies(control_inputs)
  File "/home/ubuntu/.pyenv/versions/dir/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 3665, in control_dependencies
    c = self.as_graph_element(c)
  File "/home/ubuntu/.pyenv/versions/dir/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 2708, in as_graph_element
    return self._as_graph_element_locked(obj, allow_tensor, allow_operation)
  File "/home/ubuntu/.pyenv/versions/dir/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 2787, in _as_graph_element_locked
    raise ValueError("Tensor %s is not an element of this graph." % obj)
ValueError: Tensor Tensor("l2_norm/l2_normalize:0", shape=(?, 2048), dtype=float32) is not an element of this graph.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "./scripts/train", line 197, in <module>
    train(**vars(parser.parse_args()))
  File "./scripts/train", line 117, in train
    initial_epoch=initial_epoch,
  File "/home/ubuntu/.pyenv/versions/dir/lib/python3.6/site-packages/keras/legacy/interfaces.py", line 87, in wrapper
    return func(*args, **kwargs)
  File "/home/ubuntu/.pyenv/versions/dir/lib/python3.6/site-packages/keras/engine/training.py", line 2011, in fit_generator
    generator_output = next(output_generator)
  File "/home/ubuntu/.pyenv/versions/dir/lib/python3.6/site-packages/keras/utils/data_utils.py", line 510, in get
    raise StopIteration(e)
StopIteration: Tensor Tensor("l2_norm/l2_normalize:0", shape=(?, 2048), dtype=float32) is not an element of this graph.

Related: https://github.com/fchollet/keras/issues/6462 https://github.com/fchollet/keras/issues/5511 https://github.com/fchollet/keras/issues/2397

Calling model._make_predict_function() after loading/creating the model seemed to work.


text:
Update hw1_df.py

Add python hint

good

authors: fdzzzz yrzzz


text:
rolling-dice entropy for new seeds

Hello, I am the developer for monerosigner, a monero fork of seedsigner (A DIY hardware wallet built around pi zero).
The generation of new seeds in my project will use dice rolls as an option for entropy generation of new seeds.
In the bitcoin space there is a standard under bip39 for raw entropy to seed. There is no equivalent standard for monero.
Here is a work in progress repo for dice roll entropy to monero seed:
https://github.com/Monero-HackerIndustrial/MoneroDice-WalletGen
I avoided the simple "rolls to bytes, then hash" and instead opted for key derivation similar to bip39.
Below is the first version to my entropy to monero seed:
#the new way uses the key derivation of
# https://github.com/diybitcoinhardware/embit/blob/2bf81739eb5f01f8ad59d23c492fd9d9564eed48/src/embit/bip39.py#L86
PBKDF2_ROUNDS = 2048
#password used for the salt (a sha256sum )
password = hashlib.sha256(dice_rolls.encode()).digest()
entropy_bytes  = hashlib.pbkdf2_hmac(
        "sha512",
        dice_rolls.encode("utf-8"),
        password,
        PBKDF2_ROUNDS,
        32,
    )

hex = entropy_bytes

hex = hex.hex()
s = Seed(hex)
phrase = s.phrase
public_address = s.public_address()

I am relying on the monero python library which handles converting the hex seed into a seed phrase. That part is documented and standardized in multiple libraries and clients.
Do you see any merit in implementing this in feather wallet?
If so I am also early enough in this process I would love your input.

I see that the feather seed key derivation is described as such:
https://github.com/feather-wallet/feather/tree/master/src/monero_seed

The private key is derived from the 128-bit seed using PBKDF2-HMAC-SHA256 with 4096 iterations.The wallet birthday and the 5 reserved/feature bits are used as a salt. 128-bit seed provides the same level of security as the elliptic curve used by Monero.

Future extensions may define other KDFs.

So feather is using similar key derivations except for 2 differences.
sha256 vs sha512
of iterations
4096 vs 2048
The salt being the reserved/feature bits.
Is there an advantage to using PBKDF2-HMAC-SHA256  vs PBKDF2-HMAC-SHA512?
Bip39 uses sha512 as the kdf. I was basing my choice off of it.

I see the note that the library is vendored inside the feather repo. I see that the original polyseed repo is still getting some updates. I went ahead and asked tevador for some of the reasons he chose that specific KDF.
The polyseed repo has updated the KDF from 2048 to 10000 rounds of sha256. This might be something worth updating for the vendored library?
Another question, would you be interested in adding dice entropy for key gen in feather?
It looks like Polyseed already has a function for taking raw 128 bit seed and generating a key.
You could take raw rolls for a seed or use it as an extra form of entropy for those who are paranoid of not enough entropy in urandom.

The monero_seed library and Polyseed are not the same. Feather switched from monero_seed to Polyseed last year. monero_seed is vendored to allow those seeds to be restored, but all newly created seeds use Polyseed.

Another question, would you be interested in adding dice entropy for key gen in feather?

Yes. I haven't gotten around to implementing this.

The monero_seed library and Polyseed are not the same. Feather switched from monero_seed to Polyseed last year.
My mistake, that makes sense. Polyseed looks good and sounds like it will be merging to monero core at some point in the future.
Yes. I haven't gotten around to implementing this.
No worries, I am still learning the reasoning behind certain design choices in Polyseed. Once I have good enough understanding I will add support in MoneroSigner for it. Let me know if you need any help.

Added in 6225e0e389b8ce639f25e0801b96facb06cdecfa.

Awesome job!

authors: Monero-HackerIndustrial tobtoht

repo: feather-wallet/feather


text:
Enable option for patch method to send a diff

Relating to #148
Here's my first attempt at getting this working.
Cheers!
@marshallswain

Lovely work.  I just had one comment.  Please clean that up and I will get this merged in!  I'm going to make this a new major release.

@wdmtech I'm going to merge this and turn it off by default so it's not a breaking change.  Thank you for the awesome PR.

My pleasure! Glad I could help with this great library 😀

authors: marshallswain wdmtech

repo: feathers-plus/feathers-vuex

license: mit


text:
chore(pyproject.toml): completion of pyproject.toml configuration

Configuration of the pyproject.toml file

Make the pull request into the dev branch

authors: SalvadorBrandolin fedebenelli

repo: fedebenelli/PyForFluids


text:
Fix: Gateway fails to save federation config if one already exists

Gateway save federation config would File::open an existing config in readonly mode, then fail to ovewrite the content.
This fix applies File::create which always guarantees a write of the latest configs we are persisting.
NOTE: This fix introduces a new bug, where we may inadvertently overwrite any config previously saved.

Codecov Report
Base: 66.60% // Head: 65.52% // Decreases project coverage by -1.07% :warning:

Coverage data is based on head (a889454) compared to base (bde7f24).
Patch coverage: 0.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1056      +/-   ##
==========================================
- Coverage   66.60%   65.52%   -1.08%
==========================================
  Files         116      116
  Lines       17760    18033     +273
==========================================
- Hits        11829    11817      -12
- Misses       5931     6216     +285

Impacted Files
Coverage Δ

gateway/ln-gateway/src/client.rs
23.71% <0.00%> (+0.47%)
:arrow_up:

fedimint-server/src/consensus/mod.rs
87.73% <0.00%> (-2.67%)
:arrow_down:

fedimint-api/src/module/audit.rs
97.56% <0.00%> (-2.44%)
:arrow_down:

fedimint-server/src/lib.rs
79.29% <0.00%> (-2.30%)
:arrow_down:

modules/fedimint-ln/src/lib.rs
81.96% <0.00%> (-2.20%)
:arrow_down:

fedimint-api/src/db/mod.rs
81.13% <0.00%> (-1.57%)
:arrow_down:

client/client-lib/src/mint/mod.rs
76.75% <0.00%> (-1.44%)
:arrow_down:

modules/fedimint-mint/src/lib.rs
77.98% <0.00%> (-1.23%)
:arrow_down:

client/client-lib/src/wallet/mod.rs
65.87% <0.00%> (-1.21%)
:arrow_down:

modules/fedimint-wallet/src/lib.rs
83.75% <0.00%> (-1.13%)
:arrow_down:

... and 11 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

I'm not sure if it's the right thing to introduce the new bug, which seems more severe.

I think we need a nuanced solution to the save config sequence, and introducing the overwrite bug might be reasonable. Adding details to #1057

Without a solution for #754 and a way to authenticate configs this just creates a potential security issue for little benefit (we don't support changing much of the config server-side anyway right now). It just feels like doing things the wrong way around. For now just panicking in the else branch seems sufficient if the cfg already exists.

Abandoned in favor of #1096

authors: codecov-commenter elsirion okjodom

repo: fedimint/fedimint


text:
dev: expose FM_INVITE_CODE in user shells

mprocs and tmux user shells get a ready to use $FM_INVITE_CODE
fix #3316

Shouldn't this be happening in devimint env? Sorry, I'm out of context.

Shouldn't this be happening in devimint env? Sorry, I'm out of context.

expected as much, but found out the devimint subprocess that has this info cannot mutate the parent process env var. Or, I haven't found out how to... https://github.com/fedimint/fedimint/issues/3316#issuecomment-1771791788

This is an improvement, but only in the fedimint repo. Agree with @dpc that ideally devimint would handle this so that external repos using devimint (e.g. 3rd party modules) would have access to this environment variable. @Maan2003 Is this feasible?

devimint can only set env variables during startup, not after after dkg. maybe devimint wait and devimint env can be combined.

maybe devimint wait should also return some environment.

authors: Maan2003 dpc justinmoon okjodom


text:
fix: make sure blinding key is not zero or one

This should be basically impossible but important to check. If the key is 0 it'll cause a panic during execution and if it is one it won't actually blind the message.
Maybe these checks should be done in blind_message as well

Do we really need to guard against a 1/2^256 chance event? This is as likely to occur as someone randomly guessing Bitcoin private keys …

I had same thought after I opened this, fine to close, not a real threat


text:
There is something wrong

My system is Win7;
python version: 2.7 with anaconda
runfile('D:/python/Web Crawler/ios/reporter.py', wdir='D:/python/Web Crawler/ios', args = '-u ***@***.com generateToken -P ***** --update-keychain-item "iTC Access Token"')
Your new access token has been generated.
AccessToken:7b7***b5-2813-4**6-8**5-1d9**51
Expiration Date:2018-03-04

Traceback (most recent call last):

  File "<ipython-input-2-2ca4d77b16ef>", line 1, in <module>
    runfile('D:/python/Web Crawler/ios/reporter.py', wdir='D:/python/Web Crawler/ios', args = '-u ***** generateToken -P ***** --update-keychain-item "iTC Access Token"')

  File "C:\ProgramData\Anaconda3\envs\trade\lib\site-packages\spyder\utils\site\sitecustomize.py", line 688, in runfile
    execfile(filename, namespace)

  File "C:\ProgramData\Anaconda3\envs\trade\lib\site-packages\spyder\utils\site\sitecustomize.py", line 86, in execfile
    exec(compile(scripttext, filename, 'exec'), glob, loc)

  File "D:/python/Web Crawler/ios/reporter.py", line 356, in <module>
    args.func(args)

  File "D:/python/Web Crawler/ios/reporter.py", line 113, in itc_generate_token
    keychain.set_generic_password(None, args.update_keychain_item, '', token)

NameError: global name 'keychain' is not defined

Windows doesn't have Keychain, so you cannot use --update-keychain-item.
Also, please take care to not publish your iTunes login credentials in a public forum like GitHub – I have redacted your issue but as it has been public for some hours now you really should change your password.

Thank you very much~~~

@fedoco
Thank you very much.
There is another question, when I run this code under ipython with spyder;
when I run the generate token command line, it will return the token info, but the spyder restart kernel immediately， so I can't store the token.

I need to  explain why I need to run the command under the spyder, not cmd.
I need to download the report everyday, and I have many apple id.
1.generate the token;
2.get accounts;
3.correct the report info(download the report -> unzip -> summarize data)
I need to store the token, and read it, then run the command.

I meanwhile took the time to examine your business. Apparently, you are an App Store spammer whose accounts have been suspended by Apple several times in the past. I won't support your illegal activities and your idea of using my script for forging further Apple IDs. You're on your own here.

@fedoco  - - I think this is a mistake, I'm a staff member of a game publisher. So my company have many apple id- -.

repo: fedoco/itc-reporter


text:
Implement the specfile preprocessing without RPM parsing of specfile

Parsing specfiles might be problematic, as specfiles are distribution specific.
On Fedora 41, e.g., it is impossible to parse some of the old spec
files, because:
error: %patchN is obsolete, use %patch N (or %patch -P N): %patch1 -p1 -b .loneZeroWarning

On older systems, it is impossible to parse new specfiles, because, e.g.:
SpecParseFailure: Couldn’t parse spec file jello.spec:
error: line 18: Unknown tag: BuildSystem:            pyproject

The rmpautospec should avoid the specfile-parsing-by-RPM business,
somehow. The tooling is a terribly low-level.  Consider a simple
task like:
Generating a source archive from dist-git checkout
This would be as simple as having a git checkout, and archiving
git ls-files HEAD + lookaside files (call /bin/dist-git-client, e.g.)
Then, with rpmautospec we have to git fetch --unshallow first
(we have to deal with its problems, somehow #210, but still good!).
Now, to process the specfile with rpmautospec, we are actually
parsing the specfile by RPM.  This can not be done safely in general -> to
stay on the safe side, we have to switch into an appropriate Mock chroot,
and run rpmautospec there.
I'm not sure how the commit c7e179647f44b8ffca137a548ba7e9a424969887  is related.
I'm aware there's error_on_unparseable_spec, but I'm not sure what's the
risk of setting it to False.

This is one of the main reasons for moving rpmautospec into a mock plugin: there's no way to ever guarantee that the host system will have a version of RPM that can parse any possible RPM specfile; we can only require that the spec matches the target distribution.

authors: praiskup sgallagher

repo: fedora-infra/rpmautospec


text:
Add Tools category to SpotterStart

We should be able to use Spotter to search for tools.

repo: feenkcom/gtoolkit


text:
🛑 SMTP (Asuna) is down

In c9dd0c4, SMTP (Asuna) (mail.fef.moe) was down:

HTTP code: 0
Response time: 0 ms

Resolved: SMTP (Asuna) is back up in bbc6b40 after 24 minutes.


text:
Improve overlay click handler

Allows custom HTML inside image captions
Resolves #100

Nice trick, didn't know about that. Are there any downsides?

No, as long as I keep the proper id: baguette-img and don't place anything flying around it should work flawlessly :)

I agree, it is a better approach. It would be preferable not to have hardcoded values like 'baguette-img' in the code, but it should be fine as long as you don't change it.
Another approach would be to check if the event.target === event.currentTarget, but then you would have to move the handler on the div.full-image.

authors: XhmikosR alexdrimbe feimosi


text:
Build workflow failing on push to ghcr.io: connection reset by peer

🐛 Bug Report
Unable to push images to ghcr.io.  Receiving connection reset by peer
Example workflow run:

https://github.com/felddy/foundryvtt-docker/runs/6623788773?check_suite_focus=true

Possibly related issues:

https://github.com/moby/buildkit/issues/2713
https://github.com/docker/buildx/issues/298

To Reproduce
Steps to reproduce the behavior:

Run the Github actions workflow
See connection reset messages

Expected behavior
Images built and pushed to Docker hub and ghcr.io
Any helpful log output
Paste the results here:
#103 [auth] ***/foundryvtt:pull,push token for ghcr.io
[909](https://github.com/felddy/foundryvtt-docker/runs/6623788773?check_suite_focus=true#step:11:912)
#103 DONE 0.0s
[910](https://github.com/felddy/foundryvtt-docker/runs/6623788773?check_suite_focus=true#step:11:913)

[911](https://github.com/felddy/foundryvtt-docker/runs/6623788773?check_suite_focus=true#step:11:914)
#101 exporting to image
[912](https://github.com/felddy/foundryvtt-docker/runs/6623788773?check_suite_focus=true#step:11:915)
#101 25.70 error: failed to copy: failed to do request: Put "https://ghcr.io/v2/***/foundryvtt/blobs/upload/1d1fa71d-5264-4e97-a918-18373c83fe66?digest=sha256%3Aefe5964ce06296fd14729daf7abc5383ed5276a9d24736cb7eaed0e7aa4aff60": write tcp 172.17.0.2:59548->140.82.114.33:443: write: broken pipe
[913](https://github.com/felddy/foundryvtt-docker/runs/6623788773?check_suite_focus=true#step:11:916)
#101 25.70 retrying in 1s
[914](https://github.com/felddy/foundryvtt-docker/runs/6623788773?check_suite_focus=true#step:11:917)
#101 25.76 error: failed to copy: failed to do request: Put "https://ghcr.io/v2/***/foundryvtt/blobs/upload/439e1142-1e0a-42c5-8479-70e207393ed7?digest=sha256%3A30f9467ad8c9a19f9f082759b65e34013998ff489dfcf06612ba47d602ba28ff": write tcp 172.17.0.2:59532->140.82.114.33:443: write: connection reset by peer
[915](https://github.com/felddy/foundryvtt-docker/runs/6623788773?check_suite_focus=true#step:11:918)
#101 25.76 retrying in 1s
[916](https://github.com/felddy/foundryvtt-docker/runs/6623788773?check_suite_focus=true#step:11:919)
#101 25.81 error: failed to copy: failed to do request: Put "https://ghcr.io/v2/***/foundryvtt/blobs/upload/7f1a6cbd-c580-45fc-b9c1-9be7caec501d?digest=sha256%3A9ecf0c5551dae982981fd81e14cd412f65b525710b32e5cd2ed8280637f928d3": write tcp 172.17.0.2:59538->140.82.114.33:443: write: connection reset by peer
[917](https://github.com/felddy/foundryvtt-docker/runs/6623788773?check_suite_focus=true#step:11:920)
#101 25.81 retrying in 1s
[918](https://github.com/felddy/foundryvtt-docker/runs/6623788773?check_suite_focus=true#step:11:921)
#101 27.32 error: failed to copy: failed to do request: Put "https://ghcr.io/v2/***/foundryvtt/blobs/upload/9d4f187f-6083-4360-af54-9af81cba6e78?digest=sha256%3Aba20838272323971c990b7a7d28b1f4ab54b949373e8ba447c5479fbc89dd58a": write tcp 172.17.0.2:59542->140.82.114.33:443: use of closed network connection
[919](https://github.com/felddy/foundryvtt-docker/runs/6623788773?check_suite_focus=true#step:11:922)
#101 27.32 retrying in 1s
[920](https://github.com/felddy/foundryvtt-docker/runs/6623788773?check_suite_focus=true#step:11:923)
#101 pushing layers 6.0s done
[921](https://github.com/felddy/foundryvtt-docker/runs/6623788773?check_suite_focus=true#step:11:924)
#101 ERROR: failed commit on ref "layer-sha256:290797507dd35b0abecb3c90c85cd76eb66d08535090d75ea696ae388d565eb1": cannot reuse body, request must be retried
[922](https://github.com/felddy/foundryvtt-docker/runs/6623788773?check_suite_focus=true#step:11:925)
------
[923](https://github.com/felddy/foundryvtt-docker/runs/6623788773?check_suite_focus=true#step:11:926)
 > exporting to image:
[924](https://github.com/felddy/foundryvtt-docker/runs/6623788773?check_suite_focus=true#step:11:927)
#101 25.70 error: failed to copy: failed to do request: Put "https://ghcr.io/v2/***/foundryvtt/blobs/upload/1d1fa71d-5264-4e97-a918-18373c83fe66?digest=sha256%3Aefe5964ce06296fd14729daf7abc5383ed5276a9d24736cb7eaed0e7aa4aff60": write tcp 172.17.0.2:59548->140.82.114.33:443: write: broken pipe
[925](https://github.com/felddy/foundryvtt-docker/runs/6623788773?check_suite_focus=true#step:11:928)
#101 25.70 retrying in 1s
[926](https://github.com/felddy/foundryvtt-docker/runs/6623788773?check_suite_focus=true#step:11:929)
#101 25.76 error: failed to copy: failed to do request: Put "https://ghcr.io/v2/***/foundryvtt/blobs/upload/439e1142-1e0a-42c5-8479-70e207393ed7?digest=sha256%3A30f9467ad8c9a19f9f082759b65e34013998ff489dfcf06612ba47d602ba28ff": write tcp 172.17.0.2:59532->140.82.114.33:443: write: connection reset by peer
[927](https://github.com/felddy/foundryvtt-docker/runs/6623788773?check_suite_focus=true#step:11:930)
#101 25.76 retrying in 1s
[928](https://github.com/felddy/foundryvtt-docker/runs/6623788773?check_suite_focus=true#step:11:931)
#101 25.81 error: failed to copy: failed to do request: Put "https://ghcr.io/v2/***/foundryvtt/blobs/upload/7f1a6cbd-c580-45fc-b9c1-9be7caec501d?digest=sha256%3A9ecf0c5551dae982981fd81e14cd412f65b525710b32e5cd2ed8280637f928d3": write tcp 172.17.0.2:59538->140.82.114.33:443: write: connection reset by peer
[929](https://github.com/felddy/foundryvtt-docker/runs/6623788773?check_suite_focus=true#step:11:932)
#101 25.81 retrying in 1s
[930](https://github.com/felddy/foundryvtt-docker/runs/6623788773?check_suite_focus=true#step:11:933)
#101 27.32 error: failed to copy: failed to do request: Put "https://ghcr.io/v2/***/foundryvtt/blobs/upload/9d4f187f-6083-4360-af54-9af81cba6e78?digest=sha256%3Aba20838272323971c990b7a7d28b1f4ab54b949373e8ba447c5479fbc89dd58a": write tcp 172.17.0.2:59542->140.82.114.33:443: use of closed network connection
[931](https://github.com/felddy/foundryvtt-docker/runs/6623788773?check_suite_focus=true#step:11:934)
#101 27.32 retrying in 1s
[932](https://github.com/felddy/foundryvtt-docker/runs/6623788773?check_suite_focus=true#step:11:935)
------

Separating build from push as recommended here is not supported with builds:
Error: buildx failed with: error: docker exporter does not currently support exporting manifest lists

See: https://github.com/felddy/foundryvtt-docker/runs/6627656522?check_suite_focus=true#step:11:126

Rolling back to the previous version of moby/buildkit as suggested here didn't work either:
      - name: Set up Docker Buildx
        uses: docker/setup-buildx-action@dc7b9719a96d48369863986a06765841d7ea23f6
        with:
          buildkitd-flags: --debug
          driver-opts: image=moby/buildkit:v0.10.2

Invalidating the cache had no effect:
       - name: Cache Docker layers
         uses: actions/cache@730dc31003a72af3c3b4bf51268c167ad4c67ad6
         env:
-          BASE_CACHE_KEY: buildx-${{ runner.os }}-
+          BASE_CACHE_KEY: buildx-v2-${{ runner.os }}-
         with:
           path: ${{ env.BUILDX_CACHE_DIR }}
           key: ${{ env.BASE_CACHE_KEY }}${{ github.sha }}

This was a shot in the dark.

Success?!   https://github.com/felddy/foundryvtt-docker/actions/runs/2398099176
Commit 3933811bf596b44c5b006bf52db596cffd21c5c6
Reverting docker/setup-qemu-action from 2 to 1.2.0 has alleviated the network errors.  This change was originally introduced in dependabot PR:

#344

The release notes for setup-qemu mention an Actions Runner version of v2.285.0 is required.  Could there be an interaction with the step-security/harden-runner?

Tested disabling the step-security/harden-runner with docker/setup-qemu-action 2 .  The error to ghcr.io persisted.
https://github.com/felddy/foundryvtt-docker/runs/6630525277?check_suite_focus=true

It seems the reversion has made things "better".  Workflows can now complete sometimes.   e.g., the nightly build succeeded for the first time in a while:
https://github.com/felddy/foundryvtt-docker/actions/runs/2400697558
This workflow still failed after using qemu action 1.2.0:
https://github.com/felddy/foundryvtt-docker/actions/runs/2398737330

I see your builds are passing now - how did you fix?

@tjhiggins It resolved itself after a week or so.  It ended as mysteriously as it had begun.
I opened a ticket with GitHub support regarding the issue.  Their response is copied below:

Hi Mark,
Sorry about the delay in getting back to you!

I am seeing two slightly different behaviors. All builds now fail with cannot reuse body, request must be retried. Some of the builds also have a bunch of write: connection reset by peer to ghcr.io before the final error.

I think this might be related to an outage we had at the end of May. The container registry was under heavy load for a number of days.
Could you try running this workflow again and let me know if your publish job is working?
Regards,
Jamie.

authors: felddy tjhiggins

repo: felddy/foundryvtt-docker


text:
Updates from a few forks

Improvements in this PR

Draw a few goodies from https://gist.github.com/snoyberg/35a661fff527692d09675ef540c7c1eb, giving the library:

HTTPS support using hyper-rustls ✔

Fork items from https://github.com/lazywalker/hyper-reverse-proxy/commits/master, which cover:

move to hyper-0.14 ✔
Debug implement for ProxyError ✔

Fork items from https://github.com/Nemo157/hyper-reverse-proxy/commits/tokio-1.0, which cover:

tokio v1 support ✔

Ability to drop path substring (❌ in daramir-mod branch)

I added debug for ProxyError on master branch.
Upgrade dependencies was already merged.
For HTTPS, I would like to use the solution proposed by #6 .

authors: daramir felipenoris

repo: felipenoris/hyper-reverse-proxy


text:
Install failing when composer decides it must install both ^5.3 AND dev-master

$ composer require felixfbecker/language-server
Using version ^5.3 for felixfbecker/language-server
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Conclusion: remove felixfbecker/language-server dev-master
    - Can only install one of: felixfbecker/language-server[v5.3.0, dev-master].
    - Can only install one of: felixfbecker/language-server[v5.3.1, dev-master].
    - Can only install one of: felixfbecker/language-server[v5.3.2, dev-master].
    - Can only install one of: felixfbecker/language-server[v5.3.3, dev-master].
    - Can only install one of: felixfbecker/language-server[v5.3.4, dev-master].
    - Can only install one of: felixfbecker/language-server[v5.3.5, dev-master].
    - Installation request for felixfbecker/language-server dev-master -> satisfiable by felixfbecker/language-server[dev-master].
    - Installation request for felixfbecker/language-server ^5.3 -> satisfiable by felixfbecker/language-server[v5.3.0, v5.3.1, v5.3.2, v5.3.3, v5.3.4, v5.3.5].

Installation failed, reverting ./composer.json to its original content.

I have no idea where the purported Installation request for felixfbecker/language-server dev-master is coming from, as it quite clearly says Using version ^5.3 for felixfbecker/language-server at the outset.
Without knowing why it thinks it needs it in the first place, composer's recommendation to remove felixfbecker/language-server dev-master did not help.

This doesn't really sound like a language server issue. If you don't have a suspicion how I could fix this I would like to close this as not actionable.
Here's what I would try:

delete composer.lock
change the requirement in composer.json
delete vendor
run composer install

change the requirement in composer.json

Which requirement? What should it be changed to?

I'm confused, could you describe what you are trying to do?

I cloned this git repo, and followed the installation instruction by running the command:
composer require felixfbecker/language-server

And the result was the output I posted initially.

Wait, so you you tried to install the language server as a dependency of the language server?

Maybe?  I just followed your instructions?

I have the impression that you're telling me that we're not actually supposed to clone the git repo at all(?!).  Given that the instructions are part of the git repo, that seems bizarre to me, and should certainly be clarified in the instructions if that is the intention.
However, I've tried to test this by running the same command in a new/empty directory, with the following outcome:
$ composer require felixfbecker/language-server
Using version ^5.3 for felixfbecker/language-server
./composer.json has been created
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
- felixfbecker/language-server v5.3.6 requires jetbrains/phpstorm-stubs dev-master -> satisfiable by jetbrains/phpstorm-stubs[dev-master] but these conflict with your requirements or minimum-stability.
- felixfbecker/language-server v5.3.5 requires jetbrains/phpstorm-stubs dev-master -> satisfiable by jetbrains/phpstorm-stubs[dev-master] but these conflict with your requirements or minimum-stability.
- felixfbecker/language-server v5.3.4 requires jetbrains/phpstorm-stubs dev-master -> satisfiable by jetbrains/phpstorm-stubs[dev-master] but these conflict with your requirements or minimum-stability.
- felixfbecker/language-server v5.3.3 requires jetbrains/phpstorm-stubs dev-master -> satisfiable by jetbrains/phpstorm-stubs[dev-master] but these conflict with your requirements or minimum-stability.
- felixfbecker/language-server v5.3.2 requires jetbrains/phpstorm-stubs dev-master -> satisfiable by jetbrains/phpstorm-stubs[dev-master] but these conflict with your requirements or minimum-stability.
- felixfbecker/language-server v5.3.1 requires jetbrains/phpstorm-stubs dev-master -> satisfiable by jetbrains/phpstorm-stubs[dev-master] but these conflict with your requirements or minimum-stability.
- felixfbecker/language-server v5.3.0 requires jetbrains/phpstorm-stubs dev-master -> satisfiable by jetbrains/phpstorm-stubs[dev-master] but these conflict with your requirements or minimum-stability.
- Installation request for felixfbecker/language-server ^5.3 -> satisfiable by felixfbecker/language-server[v5.3.0, v5.3.1, v5.3.2, v5.3.3, v5.3.4, v5.3.5, v5.3.6].

Installation failed, deleting ./composer.json.

It depends on what you are trying to do.
Are you trying to use the language server? Then you don't need to clone the repo, but follow the installation instructions.
Are you trying to contribute to the language server? Then you need to follow the contribution instructions (includes cloning the repo) and not the installation instructions.

I am trying to use the language server, so following the installation instructions was what I was attempting to do.

Then you don't need to clone the repo

Please state this in the instructions (both that you don't need to clone the repo, and also that doing so will actually result in errors), because that's not at all intuitive.
However, as the installation instructions have resulted in (different) errors even when I did not run the command from the cloned repo/working copy, it seems like those instructions are not quite correct even if a cloned repo is taken out of the equation.

I was going to re-open this issue to make sure it didn't disappear from view in the interim, but I can no longer see the option for doing that... perhaps it's time-limited. If you still have the re-open ability, could you do that?

authors: felixfbecker phil-s

repo: felixfbecker/php-language-server

license: isc


text:
Return values query

Hello all,
I have several problems with return of queries.
Here, what I would like to do :

//If the email hasn't a good format
if(email_not_good_format())
   //I do something
else if(email_already_exists_in_mysql(email))
  //I do something

function email_already_exists_in_mysql(email){
connection.query('SELECT COUNT(*) AS nb FROM user WHERE emailUser = ' + connection.escape(email), function(err, rows, fields) {
        if (err) throw err;
        if(rows[0].nb == 0)
            return false;
        else
            return true;
    });
}

I saw on different posts callback function but it doesn't work for what I want to do.
Thanks for your help!
Regards

Hello I am new to Nodejs and i was working with some similar example which was stated above (working with mysql too). I couldnt return the values in the callback functions.
How can I use the callback to get a particular value out of that function to another place ??
Here is my code:
connection.query('CREATE TABLE sampletest'+
'(id INT(11) AUTO_INCREMENT, '+
'Testname VARCHAR(255), '+
'Attributename VARCHAR(255), '+
'PRIMARY KEY (id));', function(err, rows){
if (err) {
console.log("ERROR: "+ err.message);
throw err;
}
console.log('dsmtest table has been created');
return true;
});
can you elaborate with any example. That would help me a lot.
Thanks in advance.

authors: TWEESTY challapruthvi

repo: felixge/node-mysql


text:
More consistent render performance

Gameboy renders the picture at a consistent 59.7275 Hz. This is a hardware limitation and cannot be delayed.
Monitors will never use this refresh rate, meaning we are unable to exactly match the “native” framerate. With the best monitors at tight tolerances, there's an extra frame every ~4s.
A notable manifestation of this waggle is ZAS, which requires consistent frame performance or the video has major artifacts. It exploits a hardware quirk by alternating every frame, creating a "transparent" background.

Another idea:

Core steps by single frame
Loop may advance multiple frames
Blend all the generated frames together

repo: fengb/fundude


text:
cropper.js errors in chrome...56

Receiving two errors on Cropper.js
When I include it in my pages. (haven't even activated it, these are errors from just including it) I've used the two files from the DIST folder, cropper.js and cropper.css nothing else.
First error:
Error: Uncaught TypeError: Cannot use 'in' operator to search for 'default' in undefined
Line: 17
Code: $ = 'default' in $ ? $['default'] : $;
Second error:
Error: Cannot read property 'extend' of undefined
Line: 3078
Code: $.extend(Cropper.prototype, render$1);
Cropper version: 3.0.0b
jQuery version: 1.12.4
Loading files this way:
<link rel='stylesheet' id='jquery-cropper-style-css'  href='/js/cropper/cropper.css' type='text/css' media='all' />
<script type='text/javascript' src='http://arya.localhost/wp-includes/js/jquery/jquery.js?ver=1.12.4'></script>
<script type='text/javascript' src='/js/cropper/cropper.js'></script>

Nevermind, fixed by upgrading to jQuery 3.1.1

repo: fengyuanchen/cropper


text:
Unable to control the max height of the container.

After two hours trying, I am unable to find a way to control the height or max height of a container.

cropper only had minheight and minwidth,I can't find maxwidth and height too

Check out #833

I solved this problem by adding width and height to the img tag!

authors: FritzTGreen ToDarkClown chungnd10 fengyuanchen


text:
getNotRead() throws Class 'User' not found

Hello!
Notifynder::getNotRead(Auth::user()->id) and Notifynder::getNotRead(1) both throw that error, namespace issue?
Great work! Keep it up!

Had to set
'model' => 'App\User',
in the notifynder config.
Sorry! Now it works :)

Thank you for report the issue, I try to use that method but I don't receive that error. I guess that you are didn't changed your User Model namespace on the configurations, in notifynder.php

Ohh goood :+1:

Thank you!

repo: fenos/Notifynder


text:
[Bug]: Asana Browser Compatibility

Preflight Checklist

[X] I have read the Contributing Guidelines for this project.
[X] I agree to follow the Code of Conduct that this project adheres to.
[X] I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Ferdium Version
6.2.2
Recipe Name
Asana
Recipe Version
1.2.0
Last Known working version of the recipe
No response
Steps to reproduce

Go to Add a Service
Browse or Search for Asana
Log in to Asana

Error message will display that Asana is only compatible with Edge, Chrome, Firefox, or Safari. No further interaction/use of Asana is available.
Expected Behavior
Expecting the in-browser version of Asana to load with full feature set.
Actual Behavior
Error message will display that Asana is only compatible with Edge, Chrome, Firefox, or Safari. No further interaction/use of Asana is available.
Screenshots
No response
Additional Information
No response

Hello @isaacusmagnus , thank you for opening this issue.
Have you tried to change the user agent on the service? (Right click on the service > Edit > Scroll down to User Agent > Place your user agent, for instance: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36)

yer a wizard, @SpecialAro!
I had not fiddled with that setting (since it's right below the beta proxy settings bit) and that indeed worked.
Thank you for catching something so direct and explaining that to me!

authors: SpecialAro isaacusmagnus

repo: ferdium/ferdium-recipes


text:
Spin Build Targets Check SIP

Rendered

I was thinking a bit more about the custom triggers thing, and wanted to take a moment to align our understandings.
For me, the main value of this work is kind of a technology proof for validating against a world once we have a world (or, more broadly, a set of acceptable worlds).  That's a prerequisite for target environments, but there's a whole lot of additional work in defining what an environment is and how we understand it.  Again consider the "I want to target SpinKube 3.2" scenario.  SpinKube 3.2 isn't a world: it's a mapping of trigger types to worlds.  We will need to understand from some source what that mapping is.
The custom triggers discussion seems to cross over into the "understand the environment / mapping" problem, but in a way that is very specific to the "the version of Spin I am running here and now" environment.  Yes, we want to be able to validate for that local environment for sure.  But I'm wondering if we should punt on solving the mapping problem for that "local Spin" environment until we can consider it alongside other environments.
As I say, that's just my envisioned purpose and scope for this leg of the work.  It may be (it seems likely) that other folks have a different vision and scope, so I'd like to crisp up what that is and how it fits into the eventual goal.

But I'm wondering if we should punt on solving the mapping problem for that "local Spin" environment until we can consider it alongside other environments.

I would be fine with us making the decision to hold off on solving this for custom triggers (for now) until we firm up our longer term goals (those of which are still not entirely clear to me at the moment).

I would also be aligned to solving this for the set of known worlds and not tackle custom triggers and worlds in the first go.

@radu-matei Thanks.  I have a technology POC that uses the wac libraries to validate a component or module against the HTTP target world.  The trouble is that wac currently only validates matching exports, not matching imports (see https://github.com/bytecodealliance/wac/issues/127).  Now there is an alternative, to use wasm-tools component targets, which does verify imports but... which doesn't produce useful error messages on validation failure.
Now, we can and will invest in those upstream projects to improve this - but at the moment, @fibonacci1729 is on point for that, and he is also trying to land component dependencies in Spin.  Given that, and that component dependencies will affect how target validation works, the current proposal was for him to prioritise component dependencies, then resume the upstream and target worlds stuff.
@fibonacci1729 hope this is an accurate representation of the current thinking - please correct me if not!

authors: fibonacci1729 itowlson radu-matei

repo: fermyon/spin


text:
Fix: When searching for a file it will stop searching if it encounter a folder that does not exist

This problem happens a lot in our code base and git.
Because Git does not commit empty folders without a .gitkeep file - it will not checkout the folder - but the folder is still present in the .csproj file. If you then try to locate a file and it encounters a folder that does not exist - it will reject the promise - and that "branch" of the search will be short-circuited.

Thank you!
I will try to do exactly what you are doing without using a try catch block :)

authors: fernandoescolar jesperbjensen


text:
Launch the server

Hi,
How i can launch my server i have try on windows

node server --port 8000

But it's not working i have this message  "port is not defined"
Thx

Try node bin/cmd.js --port 8000 if you are using source. Or you could install the package globally.

authors: DiegoRBaquero elhorla

repo: feross/bittorrent-tracker


text:
Deprecate npm package

I think it have come to a time where we no longer need Safe-Buffer in modern day codes
Think the npm package should be deprecated
Encourage ppl to use Uint8Array, TextEncoder, DataView instead 😉

I agree. This is both good and bad news.
After full deprecation, the repo should be archived

Not yet possible since many project still depends on it, like express

A temp solution is to npx nolyfill, which will do the work, and the code will not be affected.

repo: feross/safe-buffer


text:
没有Main函数？！

严重性	代码	说明	项目	文件	行	禁止显示状态
错误		Program does not contain a static 'Main' method suitable for an entry point	Hawk.Core	E:\Course\Hawk\Hawk-master\Hawk.Core\CSC
启动的是Hawk.Core

Hawk的启动位置是Hawk这个工程，入口点非Hawk.Core

authors: Caizhenyu ferventdesert

repo: ferventdesert/Hawk


text:
[BUG] can't define initial conditions for trapped concentrations

Describe the bug
I think this bug was added when trying to fix #804
We
To Reproduce
This reproduces the issue on main
import festim as F

model = F.Simulation()

model.mesh = F.MeshFromVertices([0, 1, 2, 3])

model.materials = F.Material(id=1, D_0=1, E_D=0)

model.traps = F.Trap(
    k_0=2,
    E_k=0,
    p_0=1e13,
    E_p=0,
    density=3,
    materials=model.materials[0],
)

model.initial_conditions = [
    F.InitialCondition(field="1", value=2),
]

model.T = F.Temperature(300)

model.dt = F.Stepsize(
    initial_value=1,
)

model.settings = F.Settings(
    absolute_tolerance=1e-10,
    relative_tolerance=1e-10,
    final_time=10,
)

model.initialise()
model.run()

Produces
Traceback (most recent call last):
  File "/home/remidm/FESTIM-workshop/tasks/mwe.py", line 40, in <module>
    model.initialise()
  File "/home/remidm/miniconda3/envs/festim-workshop/lib/python3.11/site-packages/festim/generic_simulation.py", line 358, in initialise
    self.h_transport_problem.initialise(self.mesh, self.materials, self.dt)
  File "/home/remidm/miniconda3/envs/festim-workshop/lib/python3.11/site-packages/festim/h_transport_problem.py", line 90, in initialise
    self.initialise_concentrations()
  File "/home/remidm/miniconda3/envs/festim-workshop/lib/python3.11/site-packages/festim/h_transport_problem.py", line 192, in initialise_concentrations
    component = field_to_component[ini.field]
                ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
KeyError: '1'

It seems like just switching these lines fixes it
https://github.com/festim-dev/FESTIM/blob/b884fdfcc77cf77e59dfd769fbf1b1d1f8e0432a/festim/h_transport_problem.py#L90-L91

This was not caught by MMS tests because these tests set the id of the traps isntead of the default None value
https://github.com/festim-dev/FESTIM/blob/b884fdfcc77cf77e59dfd769fbf1b1d1f8e0432a/test/system/test_system.py#L212

repo: festim-dev/FESTIM


text:
[Idea] Crouching on multiplayer server's

So right now if you use the crouch mod on multiplayer servers you will crouch clientside but not server side, I think when you crouch you should ether
A. Swim crawl for other players
B. Sneak for other players
Thank you for reading this, and I hope you take my suggestion :P

you mean without mod on server side?

repo: fewizz/Crawl

license: WTFPL


text:
Bugfix: Vargas B-Dash

Moving the event tiles that cause vargas to appear earlier on the map, to avoid bugs with b-dash in which the player can catch up.
Fix tested: https://www.youtube.com/watch?v=qpxthbrDmy4&ab_channel=SilverThorn
Vanilla event tile (blue):

New event tile (with NPC passability shown):

Merged with 1.3.0 https://github.com/ff6wc/WorldsCollide/pull/64


text:
US17 - Parcelar a dívida após os 26 dias - Back

Descrição da Mudança *

Eu, como usuário desejo poder parcelar a minha dívida de crédito especial após o período de 26 dias, para que haja um impacto menor na minha renda mensal .
Essa issue diz respeito apenas ao backend da US17.
Checklist *

[x] Esta issue tem um nome significativo.
[x] O nome da issue está no padrão.
[x] Esta issue tem uma descrição de fácil entendimento.
[x] Esta issue tem uma boa definição de critérios de aceitação.
[x] Esta issue tem labels associadas.
[x] Esta issue está associada à uma milestone.
[x] Esta issue tem uma pontuação estimada.

Tarefas *

[x] Fazer método de verificação de período de isenção, retornando 'false' apenas se a data atual menos a data do primeiro uso do cheque especial for maior que 26
[x] Fazer método de criação da dívida, recebendo como parâmetro o id do usuário
[x]  Fornecer ao front um método de consulta do valor total da dívida com os juros
[x]  Fornecer ao front um método de consulta das opções de parcelamento (Número de parcelas, valor delas e data de vencimento)
[ ]  Criar método para efetivar o parcelamento da dívida (POST), persistindo as informações de : Número de parcelas, Valor das parcelas, Data de pagamento das parcelas
[ ] Testes unitários

Critérios de Aceitação *

[ ] Testes com 90% de cobertura
[ ] O método de criação da dívida deve recuperar o overdraft associado ao usuário e preencher os atributos da dívida com as informações do overdraft, obs: a data de entrada da dívida é igual à data do primeiro uso do cheque especial mais 26 dias
[ ] O total da dívida deve ser calculado com base no limite usado pelo usuário do cheque especial (amount) mais os juros
[ ] Os juros devem ser calculados levando em consideração a quantidade de dias entre a data atual e a data de entrada na dívida
[ ]  Funções para parcelamento da dívida disponíveis para uso do front

Eu tava tentando fazer um método que verifica se já se passaram os 26 dias,mas ele nunca ta retornando nada, percebi o mesmo problema no método getByPK,segue abaixo print do método e do terminal.
O que eu fiz errado??

Ja resolvi, tinha q trocar o return false por return res.status(200).send(false)
e o return true por return res.status(200).send(true),e trocar o else de lugar (estava no if errado)

Pull request aceito e merged na master.

authors: JongaMatos andrewlucasgs drianne


text:
Fix compilation error due to absolute path

This prevents me from building the project on my computer.

Important finding, thank you very much