FastLane can’t update itself

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
Fastlane suggests updating, but actually doing so fails.
Command executed
bundle exec fastlane update
Complete output when running fastlane, including the stack trace and command used

 [6AS/SixAges] % bundle exec fastlane update
[✔] 🚀
[17:30:17]: ------------------------------
[17:30:17]: --- Step: default_platform ---
[17:30:17]: ------------------------------
[17:30:17]: -----------------------------
[17:30:17]: --- Step: update_fastlane ---
[17:30:17]: -----------------------------
[17:30:17]: Looking for updates for fastlane...
[17:30:18]: Updating fastlane from 2.195.0 to 2.196.0... 🚀
[17:30:27]: Finished updating fastlane
[17:30:27]: Cleaning up old versions...
[17:30:27]: fastlane.tools successfully updated! I will now restart myself... 😴
[✔] 🚀
[17:30:28]: ------------------------------
[17:30:28]: --- Step: default_platform ---
[17:30:28]: ------------------------------
[17:30:28]: -----------------------------
[17:30:28]: --- Step: update_fastlane ---
[17:30:28]: -----------------------------
+------------------+-----+
|      Lane Context      |
+------------------+-----+
| DEFAULT_PLATFORM | ios |
+------------------+-----+
[17:30:28]: Could not find lane 'ios update'. Available lanes: ios storm, ios dark, ios tests, ios sync
+------+------------------+-------------+
|           fastlane summary            |
+------+------------------+-------------+
| Step | Action           | Time (in s) |
+------+------------------+-------------+
| 1    | default_platform | 0           |
| 2    | update_fastlane  | 0           |
+------+------------------+-------------+
[17:30:28]: fastlane finished with errors
[!] Could not find lane 'ios update'. Available lanes: ios storm, ios dark, ios tests, ios sync
#######################################################################
fastlane 2.196.0 is available.
You should use the latest version.
Please update using bundle update fastlane.
#######################################################################
2.196.0 Improvements

[fastlane_core] symbolize keys in options of type Hash (#19424) via Davide De Rosa
[snapshot] add snapshot iPad Mini support (#19460) via Paul
[pem] fix issue OpenSSL empty password (#19459) via Fernando
[supply] Treat no release note as warning instead of error (#19425) via yanagiragi
[sigh] add --generate-entitlement-der to resign codesign calls (#19423) via Taylor Fort
[action][latest_testflight_build] make LatestTestflightBuildNumberAction not overwrite existing Actions.lane_context (#19421) via Jan Klausa
[snapshot] add the iPhone 13 devices so that they can be included in the HTML report page. (#19420) via Yilei "Dolee" Yang
[screengrab] fix typos in Screengrab options (#19426) via Christoph Dreis
[supply] fix rollout update (#19411) via Oleksii Malovanyi

Please update using bundle update fastlane
/Users/david/.gem/gems/bundler-2.2.0/lib/bundler/spec_set.rb:86:in block in materialize': Could not find unf_ext-0.0.8 in any of the sources (Bundler::GemNotFound) 	from /Users/david/.gem/gems/bundler-2.2.0/lib/bundler/spec_set.rb:80:in map!'
from /Users/david/.gem/gems/bundler-2.2.0/lib/bundler/spec_set.rb:80:in materialize' 	from /Users/david/.gem/gems/bundler-2.2.0/lib/bundler/definition.rb:175:in specs'
from /Users/david/.gem/gems/bundler-2.2.0/lib/bundler/definition.rb:245:in specs_for' 	from /Users/david/.gem/gems/bundler-2.2.0/lib/bundler/definition.rb:227:in requested_specs'
from /Users/david/.gem/gems/bundler-2.2.0/lib/bundler/runtime.rb:91:in block in definition_method' 	from /Users/david/.gem/gems/bundler-2.2.0/lib/bundler/runtime.rb:20:in setup'
from /Users/david/.gem/gems/bundler-2.2.0/lib/bundler.rb:149:in setup' 	from /Users/david/.gem/gems/bundler-2.2.0/lib/bundler/setup.rb:20:in block in <top (required)>'
from /Users/david/.gem/gems/bundler-2.2.0/lib/bundler/ui/shell.rb:136:in with_level' 	from /Users/david/.gem/gems/bundler-2.2.0/lib/bundler/ui/shell.rb:88:in silence'
from /Users/david/.gem/gems/bundler-2.2.0/lib/bundler/setup.rb:20:in <top (required)>' 	from /usr/local/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:85:in require'
from /usr/local/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:85:in `require'
[17:30:29]: RubyGems is not listed as your Gem source
[17:30:29]: You can run gem sources to see all your sources
[17:30:29]: Please run the following command to fix this:
[17:30:29]: $ gem sources --add https://rubygems.org
[6AS/SixAges] % gem sources
*** CURRENT SOURCES ***
https://rubygems.org/
[6AS/SixAges] %

Environment

 🚫 fastlane environment 🚫
Stack

Key
Value

OS
11.6

Ruby
2.6.3

Bundler?
true

Git
git version 2.30.1 (Apple Git-130)

Installation Source
~/.gem/bin/fastlane

Host
macOS 11.6 (20G165)

Ruby Lib Dir
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib

OpenSSL Version
LibreSSL 2.8.3

Is contained
false

Is homebrew
false

Is installed via Fabric.app
false

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

Xcode Version
13.0

Swift Version
5.5

System Locale

Variable
Value

LANG
en_US.UTF-8
✅

LC_ALL

LANGUAGE

fastlane files:
`./fastlane/Fastfile`
# This file contains the fastlane.tools configuration
# You can find the documentation at https://docs.fastlane.tools
#
# For a list of all available actions, check out
#
#     https://docs.fastlane.tools/actions
#

# Uncomment the line if you want fastlane to automatically update itself
# update_fastlane

default_platform(:ios)

# Assume Slack is configured by the SLACK_URL environment variable

platform :ios do
  desc "Push a new beta build to TestFlight"
  lane :storm do
	log = prompt(
		text: "Changelog: ",
		multi_line_end_keyword: "END"
	)
	bn = increment_build_number(xcodeproj: "SixAges.xcodeproj")
	build_app(
		workspace: "SixAges.xcworkspace",
		scheme: "StormAge",
		output_directory: "Builds"
	)
	upload_to_testflight(
		changelog: log,
		distribute_external: true,
		groups: ["Team"]
	)
	slack(
		message: "StormAge uploaded to TestFlight",
 		default_payloads: [],
 		payload: {
			"Build" => bn,
 			"Changes" => log
		}
	)
	sync
  end

  lane :dark do
	log = prompt(
		text: "Changelog: ",
		multi_line_end_keyword: "END"
	)
	bn = increment_build_number(
		build_number: "352",
		xcodeproj: "SixAges.xcodeproj")
	build_app(
		workspace: "SixAges.xcworkspace",
		scheme: "DarkAge",
		output_directory: "Builds"
	)
	upload_to_testflight(
		changelog: log,
		distribute_external: true,
		groups: ["QA"]
	)
	slack(
		message: "DarkAge uploaded to TestFlight",
 		default_payloads: [],
 		payload: {
			"Build" => bn,
 			"Changes" => log
		}
	)
	sync
  end

  desc "Run the unit tests"
  lane :tests do
	run_tests(
		scheme: "StormAge",
		slack_only_on_failure: true,
		slack_channel: "XXX"
	)
  end

  desc "Be sure the QA dropbox has the latest from Scripts"
  lane :sync do
	rsync(
		extra: '-avz --stats',
		source: "Resources/Scripts/StormAge/*.osl",
		destination: '"/Users/david/Dropbox/Six Ages of Saird/SixAges-QA/Scripts/StormAge"'
	)
	rsync(
		extra: '-avz --stats',
		source: "Resources/Scripts/StormAge/*.txt",
		destination: '"/Users/david/Dropbox/Six Ages of Saird/SixAges-QA/Scripts/StormAge"'
	)
 	rsync(
		extra: '-avz --stats',
		source: "Resources/Scripts/DarkAge/*.osl",
		destination: '"/Users/david/Dropbox/Six Ages of Saird/SixAges-QA/Scripts/DarkAge"'
	)
	rsync(
		extra: '-avz --stats',
		source: "Resources/Scripts/DarkAge/*.txt",
		destination: '"/Users/david/Dropbox/Six Ages of Saird/SixAges-QA/Scripts/DarkAge"'
	)
 end

end

`./fastlane/Appfile`
app_identifier "com.a-sharp.Six-Ages" # The bundle identifier of your app
apple_id "XXX" # Your Apple email address

itc_team_id "XXX" # iTunes Connect Team ID
team_id "XXX" # Developer Portal Team ID

# For more information about the Appfile, see:
#     https://docs.fastlane.tools/advanced/#appfile

for_lane :dark do
	app_identifier 'com.a-sharp.DarkAge'
end

fastlane gems

Gem
Version
Update-Status

fastlane
2.195.0
🚫 Update available

Loaded fastlane plugins:
No plugins Loaded
Loaded gems

Gem
Version

did_you_mean
1.3.0

bundler
2.2.0

rake
13.0.6

rexml
3.2.5

CFPropertyList
3.0.4

public_suffix
4.0.6

addressable
2.8.0

artifactory
3.0.15

atomos
0.1.3

aws-eventstream
1.2.0

aws-partitions
1.513.0

aws-sigv4
1.4.0

jmespath
1.4.0

aws-sdk-core
3.121.1

aws-sdk-kms
1.49.0

aws-sdk-s3
1.103.0

babosa
1.0.4

claide
1.0.3

colored
1.2

colored2
3.1.2

highline
2.0.3

commander
4.6.0

declarative
0.0.20

digest-crc
0.6.4

unf_ext
0.0.8

unf
0.1.4

domain_name
0.5.20190701

dotenv
2.7.6

emoji_regex
3.2.3

excon
0.87.0

faraday-em_http
1.0.0

faraday-em_synchrony
1.0.0

faraday-excon
1.1.0

faraday-httpclient
1.0.1

faraday-net_http
1.0.1

faraday-net_http_persistent
1.2.0

faraday-patron
1.0.0

faraday-rack
1.0.0

multipart-post
2.0.0

ruby2_keywords
0.0.5

faraday
1.8.0

http-cookie
1.0.4

faraday-cookie_jar
0.0.7

faraday_middleware
1.1.0

fastimage
2.2.5

gh_inspector
1.1.3

jwt
2.3.0

memoist
0.16.2

multi_json
1.15.0

os
1.1.1

signet
0.16.0

googleauth
1.0.0

httpclient
2.8.3

mini_mime
1.1.2

trailblazer-option
0.1.1

uber
0.1.0

representable
3.1.1

retriable
3.1.2

webrick
1.7.0

google-apis-core
0.4.1

google-apis-androidpublisher_v3
0.12.0

google-apis-playcustomapp_v1
0.5.0

google-apis-iamcredentials_v1
0.7.0

google-apis-storage_v1
0.8.0

google-cloud-env
1.5.0

google-cloud-errors
1.2.0

google-cloud-core
1.6.0

google-cloud-storage
1.34.1

json
2.5.1

mini_magick
4.11.0

naturally
2.2.1

optparse
0.1.1

plist
3.6.0

rubyzip
2.3.2

security
0.1.3

simctl
1.6.8

terminal-notifier
2.0.0

unicode-display_width
1.8.0

terminal-table
1.8.0

tty-screen
0.8.1

tty-cursor
0.7.1

tty-spinner
0.9.3

word_wrap
1.0.0

nanaimo
0.3.0

xcodeproj
1.21.0

rouge
2.0.7

xcpretty
0.3.0

xcpretty-travis-formatter
1.0.1

generated on: 2021-10-15

Thanks, that does get me an update. And fastlane did actually tell me that — I wonder if the command I typed used to work?
I do think there is a bug, in that
Updating fastlane from 2.195.0 to 2.196.0... 🚀
…
fastlane.tools successfully updated! I will now restart myself

is completely untrue (it did not successfully update, but it led me to believe that the command was valid). That’s not as big a problem as my operator error led me to think there was, however.

 You should see 2.196.0 in Gemfile.lock.

I’ve always run fastlane from the same directory; other commands work fine (#19442 is still an issue for me but fastlane does build an iOS archive).
I have no idea what Gemfile.lock is — I realize that’s an important implementation detail but I don’t recall seeing that in documentation as something I’m supposed to know about. (I’m not running a CI server or anything so I haven’t been committing any fastlane artifacts.) Since I have now updated the proper way, it includes fastlane (2.196.0).

The situation has magically cleared itself up. I mean that literally — I kept trying different things, none of which worked. And then somehow it did, and I could run fastlane again. I was able to update fastlane today, so that is still working too.


[v0.23.0-rc] Unable to Recreate Collection with Original Name After Renaming – Error "Failed to create collection."

I'm using PocketBase version v0.23.0-rc8. When I create a collection named "a" and then rename it to "b", I encounter an issue if I attempt to create a new collection with the original name "a" afterward.
Steps to Reproduce:

Create a collection named "a".
Rename the collection from "a" to "b".
Attempt to create a new collection with the name "a".

Expected Result:
A new collection with the name "a" should be created successfully.
Actual Result:
The following error occurs:
{
  "data": {
    "id": "The model id is invalid or already exists."
  },
  "raw": "id: The model id is invalid or already exists.."
}

Additional Context:
It appears that renaming the collection does not free up the original name for reuse, resulting in a conflict when attempting to create a new collection with the same name.

Hm, this is a side-effect of the new autogenerated crc32 checksum of the id (since both collection have the same name during create their id would be the same).
I'm not sure what would be the solution here but I may end up removing the crc32 generation entirely. I'll have to think a little more on it.

I've submitted a "fix" in the develop branch and reverted the old functionality to use a random string as id for non-system collections and fields (for the system collection fields should be safe because they are not allowed to be renamed/deleted).
The crc32 name checksum was introduced mostly because:

to make tests easier because the id is predictable and you can compare a new collection/field directly without accounting for the randomness
to partially minimize eventual conflicts if users attempts to import collections from different projects/environment (aka. when there is more than source of truth for the database schema) but even then it doesn't always guarantee conflict-free resolution so it's not really that helpful here.

In any case, the id value doesn't really matter - it needs only to be a unique identifier that cannot be changed.

Just for info in case someone stumble here:
On second thought, the randomness of the collection and field ids actually may not be a good idea because it could results in conflicts when manual typed migrations are combined with full snapshots.
The same issue actually exists in <= v0.22.x but changing the Collection model and Fields is not an option there since it will be too large of a breaking change.
I'll have to think a little more on it before the final v0.23.0 release as I'm not sure how to proceed yet.

I've pushed another update that reverted the crc32 checksum but now we perform additional check for duplicated ids and append a counter in case such is found. It ended up complicating the internal more than I wanted to but for now it is the best option I could think of to have a deterministic default id value.


Enhancement: Random Encounter Generator

That would be pretty cool.

Wow. Looking at the rules, that is way more complicated. It also isn't SRD at all I think.

I'm just going to close this for now since it's techically not SRD.


update_version.sh: automatic version update in source

Usage example:
update_version.sh 0.8.0

Yes!

Addressed @martinwicke's comment. Added safety check for lingering old version strings and warning if those are found.

merged.


generating DID docs with verificationMethod rather than publicKey

DID-Core v1 now uses verificationMethod rather than the publicKey property. When generating DID documents, the verificationMethod property should be used.
The did:peer spec has now also been updated to use verificationMethod.

this is been address in this PR.
https://github.com/hyperledger/aries-cloudagent-python/pull/1033

Addressed in replacement PR to 1033 — #1070


*: change ctlv3 flag peerURLs to 'peer-urls'

peer-urls to be more consistent with other flag names

/cc @heyitsanthony @xiang90

lgtm

thanks. merging in greens.


SmartIR not working on HA 0.89.1

Home Assistant version
0.89.1
SmartIR version
Master Branch (Latest version as of 25th March 2019)
SmartIR configuration
smartir:

switch:
  - platform: broadlink
    host: 192.168.1.XXX
    mac: 'b4:43:XX:XX:XX:XX'

climate:
  - platform: smartir
    name: Panasonic
    unique_id: panasonic_ac
    device_code: 1021
    controller_send_service: switch.broadlink_send_packet_192_168_1_XXX
    min_temp: 16
    max_temp: 30
    target_temp: 24
    temp_sensor: sensor.acson_temperature
    default_operation: cool
    default_fan_mode: mid
    customize:
      operations:
        - idle
        - cool
        - heat
      fan_modes:
        - low
        - mid
        - high
        - auto

Describe the bug
Not working after migration from old ini codes to new SmartIR json codes.
Debug log

N/A

Additional context
Screenshot:

Could provide any idea for troubleshooting this issue?
Thanks.

Try this
smartir:

switch:
  - platform: broadlink
    host: 192.168.1.XXX
    mac: 'b4:43:XX:XX:XX:XX'

climate:
  - platform: smartir
    name: Panasonic
    device_code: 1021
    controller_send_service: switch.broadlink_send_packet_192_168_1_XXX
    temp_sensor: sensor.acson_temperature

Try this
smartir:

switch:
  - platform: broadlink
    host: 192.168.1.XXX
    mac: 'b4:43:XX:XX:XX:XX'

climate:
  - platform: smartir
    name: Panasonic
    device_code: 1021
    controller_send_service: switch.broadlink_send_packet_192_168_1_XXX
    temp_sensor: sensor.acson_temperature

Tried, but it is still not working, as per below:

Try this
smartir:

switch:
  - platform: broadlink
    host: 192.168.1.XXX
    mac: 'b4:43:XX:XX:XX:XX'

climate:
  - platform: smartir
    name: Panasonic
    device_code: 1021
    controller_send_service: switch.broadlink_send_packet_192_168_1_XXX
    temp_sensor: sensor.acson_temperature

Tried, but it is still not working, as per below:

Note: My HA UI need to manually configure via Configure UI mode.

It is not clear to me what the problem is.

It is not clear to me what the problem is.

Well I also not sure what the root cause of this problem.
Is it the problem caused by converting ini to json?

I mean I don't understand what the error is.

I re-learn all the codes and finally it is working


specify library type

Hi,
As far as I understand, StringTie use the "XS" tag to predict the strandness of the transcripts. For strand-specific experiments, is it possible to manually specify the library type (i.e., ff-first, ff-second, fr-first, fr-second, or unstranded)? I could not find such parameter in the current version (v1.3.1c).
Thanks,
Mingfu

No, there is no such option, I think I was kind of hoping the aligner would do this for us, but I agree that we should also support such an option, as it's not hard to make use of that info in StringTie when loading the alignments and we could assign the strand accordingly. We consider this as a useful feature to be implemented in a future release.

Thanks for your reply!
As far as I know both TopHat and HISAT aligners support such library-type option, and these two aligners will thus give XS tag for every single line of the alignment when such information is given. Unfortunately, STAR does not do this. Suppose that I want to use both STAR and StringTie to assemble strand-specific RNA-seq dataset. Can I do it with the following procedure?
1, Use STAR to get the reads alignment (bam file).
2, Write a program to take the above bam file and strand-specific information (i.e., fr-first, fr-second, etc) as input, and add/replace a XS tag for every single line of the bam while keep all other stuff unchanged, and output a new bam file.
3, Run StringTie on this updated bam file.
Could you comment on this pipeline? Is it feasible?
Thanks!

Definitely feasible, that's exactly what I would do if I were in your (unfortunate) situation of having to use STAR instead of HISAT2 with stranded libraries :-)
You could theoretically do all this on the fly -- i.e. without writing intermediate files, something like this:
samtools view -h star_alns.bam | addXS --fr-first | stringtie - ... (other stringtie options)

The basic idea is that stringtie will expect the (sorted!) alignments from stdin (in SAM text format, header required) when the input file is given as '-' . Of course you have to write the addXS script which would parse the SAM lines in order to inject the XS tag as needed before sending the lines to stdout.

Got it! Thanks a lot!


spiWrite asks for buf::CString argument

I am trying to use the SPI interface.
When I use the function
data = 0xffff
spiWrite(spi, data, 16)

I got the error "Cannot convert an object of type UInt16 to an object of type Cstring"
How can I send data to SPI? Is it possible to transform it to Cstring type?

solved


feat: added typings for ShapePath

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

:tada: This PR is included in version 1.5.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Help me>

Problem encountered on https://dotnet.microsoft.com/learn/dotnet/hello-world-tutorial/install
Operating System: windows
Provide details about the problem you are experiencing. Include your operating system version, exact error message, code sample, and anything else that is relevant.

woops forgot to install it sorry


some issues with the hil installation scripts

Opening it here right now because I can't work on it at the moment.

Make a note that I have set the db password to hil.
Change the line that makes symbolic link to this ln -s -f /etc/hil.cfg /var/lib/hil/. otherwise it makes the whole directory a symbolic link.
for some reason it was unable to find wsgi.conf

Thanks @apoorvemohan for spotting these. If there's anything else, put those in the comment.

fixed them all.


About 'Stop protecting virtual machines, Retain Backup Data'

Hello, According from the article written in 2016, the most recent backed up data (recovery point) will be retained forever unless user manually delete it.
Is it same for the case Backup Policies has been deleted/disabled/turned off by user?
Azure Backup のポリシー設定について
https://blogs.technet.microsoft.com/jpaztech/2016/06/20/azure-backup-のポリシー設定について/

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 5b71eb75-6ec4-2647-c3bd-2d7822704346
Version Independent ID: 0e174420-da45-5d9a-4a8e-81ea00f316a4
Content: Manage Resource Manager-deployed virtual machine backups
Content Source: articles/backup/backup-azure-manage-vms.md
Service: backup
GitHub Login: @trinadhk
Microsoft Alias: trinadhk;markgal

@KeiroKamioka0000
Thanks for your feedback! We will investigate and update as appropriate.

@KeiroKamioka0000 could you provide more info but what are referring to by "Backup Policies" ?

I assuming It simply turning off the Backup with 'Retain Backup Data' as guided in following document.
Does this backup will not be gone until user manually delete it?
Stop protecting virtual machines
https://docs.microsoft.com/en-us/azure/backup/backup-azure-manage-vms#stop-protecting-virtual-machines

@KeiroKamioka0000 the backups would be kept depending on the retention period of time that is chosen, more info is as follows:
"There is a cost associated with leaving the recovery points in storage. However, the benefit of leaving the recovery points is you can restore the virtual machine later, if desired. For information about the cost of leaving the recovery points, see the pricing details. If you choose to delete all recovery points, you cannot restore the virtual machine."
So I don't think that the backups are retained forever, except if you increase the retention period.

@KeiroKamioka0000 : You are right. if backup are stopped with option "Retain Backup data", the last backup taken will be retained forever. All other backups are purged as per retention policy but the last backup is kept so that he can restore to this point. To delete the last backup, you need to manually select "Stop protection with delete data". Hope this is clear.

@pvrk  thanks for the insight. @KeiroKamioka0000  looks like the correct answer was by @pvrk
We will now proceed to close this thread. If there are further questions regarding this matter, please reopen it and we will gladly continue the discussion.

Would like to clarify now once and for all on what is the resultant behavior.

If the user chose "Stop protection with delete data" all backups residing everywhere (snapshot + vault; scheduled+adhoc) are deleted.
If the user chose "Stop protection with retain data", all future backups stop and all existing backups are retained forever (snapshot + vault; scheduled + adhoc)
If the backed up VM is lost/deleted, then future backups will start failing and existing backups will be removed as per their retention (snapshots as per policy, scheduled backups as per policy, adhoc as per the retention time when specified)


increased NFD deployment timeouts

Increased the NFD deployment timeout from 4 mins to 5 mins, and time waiting for NFD subscription to be created from 2 mins to 4 mins.

/cc @empovit @ybettan

/lgtm
/approve


Add support for .gif(v) files

The bot should be able to successfully process a .gif/.gifv file and return the resized .webm

So for gif file with image/gif mime type would work if we remove .gif extension from unsupported array but then for gif file with video/ we should do some other task

Hello @rob93c, I would like to work on that issue, can you assignee it to me?

Hi @anthonylgf, thank you for your interest in this issue!
Be sure to check how Telegram handles video stickers: https://core.telegram.org/stickers#video-stickers-and-emoji

I checked and I found that Java apparently does not convert .gif(v) files to .webm. I will need to use the ffmpeg and use JNI to call the C library.

I found a dependency that is an wrapper for the ffmpeg, I will use it https://github.com/a-schild/jave2

Nice find @anthonylgf!
If you think it could be useful, we might create a new helper class with the logic you are adding called VideoHelper renaming the image package to media
Also, don't worry about unit testing your changes for the time being (of course if you want to add them you are more than welcomed)

Hi @anthonylgf (@anthonylouisbsb?), how is it going? Do you need any help with this issue?

Hello @anthonylgf, please share any update or I will need to reassign the issue to someone else as per our latest discussion.


Publish 0.4.4 on npm

Could 0.4.4 be published to the npm registry?

👍

+1 for string seeds

Done! So sorry for the delay


Use standard JSON library instead of yajl

yajl-ruby has the downside that is relies on a C extension which works poorly (well, not at all...) with JRuby. We are targetting JRuby in our main project using this gem, so this change is mandatory for us to be able to use it.
I've tested this locally and it seems to stream changes fine. However, it's only been tested with very small amounts of data as of yet.
Performance impact
With this change in place, running towards a reasonably complex table on MRI 2.4.1 - 46 seconds:
$ bundle exec bin/couch_tap test_tap.rb
I, [2017-05-16T11:07:26.753914 #26627]  INFO -- : Reading configuration: test_tap.rb
I, [2017-05-16T11:07:26.765091 #26627]  INFO -- : Connected to CouchDB: fieldops_equipment
I, [2017-05-16T11:07:26.800341 #26627]  INFO -- : fieldops_equipment: listening to changes feed from seq: 0
I, [2017-05-16T11:07:30.526633 #26627]  INFO -- : Processed 1000 rows
I, [2017-05-16T11:07:34.417928 #26627]  INFO -- : Processed 2000 rows
I, [2017-05-16T11:07:38.540526 #26627]  INFO -- : Processed 3000 rows
I, [2017-05-16T11:07:42.936004 #26627]  INFO -- : Processed 4000 rows
I, [2017-05-16T11:07:47.630417 #26627]  INFO -- : Processed 5000 rows
I, [2017-05-16T11:07:51.953686 #26627]  INFO -- : Processed 6000 rows
I, [2017-05-16T11:07:56.889749 #26627]  INFO -- : Processed 7000 rows
I, [2017-05-16T11:08:02.297558 #26627]  INFO -- : Processed 8000 rows
I, [2017-05-16T11:08:07.253657 #26627]  INFO -- : Processed 9000 rows
I, [2017-05-16T11:08:12.562975 #26627]  INFO -- : Processed 10000 rows

Running the same code on JRuby 9.1.8 takes about 81 seconds. Slower but still not completely unreasonable:
$ bundle exec bin/couch_tap test_tap.rb
I, [2017-05-16T11:12:00.388765 #27463]  INFO -- : Reading configuration: test_tap.rb
I, [2017-05-16T11:12:00.439899 #27463]  INFO -- : Connected to CouchDB: fieldops_equipment
I, [2017-05-16T11:12:00.657477 #27463]  INFO -- : fieldops_equipment: listening to changes feed from seq: 0
I, [2017-05-16T11:12:08.830354 #27463]  INFO -- : Processed 1000 rows
I, [2017-05-16T11:12:16.910913 #27463]  INFO -- : Processed 2000 rows
I, [2017-05-16T11:12:24.780557 #27463]  INFO -- : Processed 3000 rows
I, [2017-05-16T11:12:32.923519 #27463]  INFO -- : Processed 4000 rows
I, [2017-05-16T11:12:41.896976 #27463]  INFO -- : Processed 5000 rows
I, [2017-05-16T11:12:50.102341 #27463]  INFO -- : Processed 6000 rows
I, [2017-05-16T11:12:58.137898 #27463]  INFO -- : Processed 7000 rows
I, [2017-05-16T11:13:05.830220 #27463]  INFO -- : Processed 8000 rows
I, [2017-05-16T11:13:13.489721 #27463]  INFO -- : Processed 9000 rows
I, [2017-05-16T11:13:21.202113 #27463]  INFO -- : Processed 10000 rows

With the original code - 42 seconds. Definitely the fastest approach, but still only 10% faster than the non-streaming version on MRI.
$ bundle exec bin/couch_tap test_tap.rb
I, [2017-05-16T11:15:55.031116 #28182]  INFO -- : Reading configuration: test_tap.rb
I, [2017-05-16T11:15:55.040127 #28182]  INFO -- : Connected to CouchDB: fieldops_equipment
I, [2017-05-16T11:15:55.077931 #28182]  INFO -- : fieldops_equipment: listening to changes feed from seq: 0
I, [2017-05-16T11:15:58.994339 #28182]  INFO -- : Processed 1000 rows
I, [2017-05-16T11:16:03.001351 #28182]  INFO -- : Processed 2000 rows
I, [2017-05-16T11:16:07.237647 #28182]  INFO -- : Processed 3000 rows
I, [2017-05-16T11:16:11.723076 #28182]  INFO -- : Processed 4000 rows
I, [2017-05-16T11:16:16.834998 #28182]  INFO -- : Processed 5000 rows
I, [2017-05-16T11:16:21.063894 #28182]  INFO -- : Processed 6000 rows
I, [2017-05-16T11:16:25.308424 #28182]  INFO -- : Processed 7000 rows
I, [2017-05-16T11:16:29.417598 #28182]  INFO -- : Processed 8000 rows
I, [2017-05-16T11:16:33.673768 #28182]  INFO -- : Processed 9000 rows
I, [2017-05-16T11:16:37.926714 #28182]  INFO -- : Processed 10000 rows

Looks good, but it would be really nice if you could test it with, say the equipment db, and just compare the performance between the implementations.

I added the performance impact now. Are you still fine with the change after seeing these numbers?

👍

Thanks!


idea.pycharm-professional: 2017.1 -> 2017.1.2

Motivation for this change
Software update.
Things done

[ ] Tested using sandboxing
(nix.useSandbox on NixOS,
or option build-use-sandbox in nix.conf
on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] Linux

[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Fits CONTRIBUTING.md.

This PR should maybe be applied also to the stable branch as Jetbrains does not provide anymore the binary for Pycharm professional 2017.1

I also made a PR with this yesterday (for both professional and community editions): https://github.com/NixOS/nixpkgs/pull/25673

Ok, this PR do less than #25673 , I close it.


Instalar arquivos estáticos localmente, Bootstrap e Layoutit

Codecov Report

Merging #34 (74ae7fd) into main (be091e4) will decrease coverage by 46.92%.
The diff coverage is 50.32%.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
@@             Coverage Diff              @@
##              main      #34       +/-   ##
============================================
- Coverage   100.00%   53.08%   -46.92%
============================================
  Files            3        6        +3
  Lines           11      162      +151
============================================
+ Hits            11       86       +75
- Misses           0       76       +76

Impacted Files
Coverage Δ

base/migrations/0001_initial.py
0.00% <0.00%> (ø)

base/admin.py
50.00% <50.00%> (ø)

base/models.py
55.76% <55.76%> (ø)

base/views.py
100.00% <100.00%> (ø)


[error] carthage update

Hi, I'm trying to install SwiftGit2 for OS X, but i got an error
Version of Xcode: 8.0 (8A218a)
Version of system: 10.12.4 (16E195)
I have installed make, libssh, libtool and automake.

Warning: cmake-3.8.1 already installed
Warning: libssh2-1.8.0 already installed
Warning: libtool-2.4.6_1 already installed
Warning: automake-1.15 already installed

Also i cleared DerivedData folder and nothing.

aims:testgit rajmund$ carthage update
*** Fetching SwiftGit2
*** Fetching Result
*** Checking out Result at "3.2.1"
*** Checking out SwiftGit2 at "v0.3"
*** xcodebuild output can be found in /var/folders/q_/nr7wws8s2fv1n32x7zwfhfvc0000gt/T/carthage-xcodebuild.wOQqE9.log
*** Building scheme "Result-watchOS" in Result.xcodeproj
*** Building scheme "Result-iOS" in Result.xcodeproj
*** Building scheme "Result-Mac" in Result.xcodeproj
*** Building scheme "Result-tvOS" in Result.xcodeproj
*** Building scheme "SwiftGit2-OSX" in SwiftGit2.xcworkspace
Build Failed
Task failed with exit code 65:
/usr/bin/xcrun xcodebuild -workspace /Users/rajmund/Projects/testgit/Carthage/Checkouts/SwiftGit2/SwiftGit2.xcworkspace -scheme SwiftGit2-OSX -configuration Release -derivedDataPath /Users/rajmund/Library/Caches/org.carthage.CarthageKit/DerivedData/SwiftGit2/v0.3 ONLY_ACTIVE_ARCH=NO CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES clean build
This usually indicates that project itself failed to compile. Please check the xcodebuild log for more details: /var/folders/q_/nr7wws8s2fv1n32x7zwfhfvc0000gt/T/carthage-xcodebuild.wOQqE9.log

The logs from /var/folders/q_/nr7wws8s2fv1n32x7zwfhfvc0000gt/T/carthage-xcodebuild.wOQqE9.txt
The script Script-C9CE0DD61E0710C20053205D.sh :

#!/bin/sh
if which swiftlint >/dev/null; then
swiftlint
else
echo "warning: SwiftLint is not installed"
fi

I can't even compile SwiftGit2-OSX. logs.txt
Also tried

github "SwiftGit2/SwiftGit2" "master"

But it doesn't work too. master_logs.txt
Any ideas?

It makes sense that the release doesn't work based on the log.
But I'm confused about why master would fail. I'm not sure what the issue is. 😕

Okey, somehow i managed to make it work.
Installing new version of Xcode did not change anything.
Then I upgraded and cleared brew by

brew update && brew upgrade && brew cleanup && brew doctor

After this it did not build at all, so I uninstalled automake, libtool, libssh, cmake, swiftlint, libgit2 and installed it all again. Still nothing. Then I installed libgit2-glib and it run without any problems. Maybe it will help someone.


Twinax for alignment plots

Currently, the plot_alignment function plots a y-axis, but since one signal is offset, it only reflects the true value for one of the plots. I propose adding a color-coded twin axis so that both signals can be interpreted by value. I'll open a PR in a sec.

e.g. before:

and after:


After using the GUI scripts to add a body/joint to the current model, loadModel() does not work as intended

Steps to reproduce

Load gait2354 (or any model with femur_r)
Run GUI script ModelBuildingFunctions.py
Run the following short script:

model = getCurrentModel()
ball = addBodyToModel(model, 'ball')
sphere = modeling.Sphere(0.2)
attachGeometryWithOffset(ball,modeling.Sphere(0.2))
j1_in_ball = addOffsetToFrame(ball, 'j1_in_ball')
femur_r_body= model.getComponent('/bodyset/femur_r')
j1_in_femur_r= addOffsetToFrame(femur_r_body, 'j1_in_femur_r')
j1 = connectBodyWithJoint(model, j1_in_femur_r, j1_in_ball, 'j1', 'PinJoint')
j1.getCoordinate().setName('theta1')
state = model.initSystem()
loadModel(model)

Expected result
Two models are seen in the GUI, one of the two models is denoted as the Current Model.
Actual result
GUI does not show the new model. Also, both models in the Navigator pane are the "Current Model".
However, you can right-click and "Save As" on the new model, and upon closing all models and loading the new model from file, the model shows as expected.
Environment and GUI version
Windows 10, OpenSim 4.0

@carmichaelong The main problem here is that you didn't clone the model first, which means the model with and without the additional body have the same handle and thus are both current 🚑 🚒

Ah, that makes sense. Adding .clone() on the end of the first line works. Should we be defending against this type of user input?

@carmichaelong you know where the "bodies" are buried.
Yes we should defend against it. I can make getCurrentModel() in GUI return a subclass of Model where all non const methods throw exceptions but this deviates the GUI from API documentation. I'm open to ideas though..


Added method to return expected slot names + tests.

Added convenience method.

@wilmol Can you check out this change ?

Codecov Report

Merging #40 into v7_work will increase coverage by 0.03%.
The diff coverage is 100%.

@@              Coverage Diff              @@
##             v7_work      #40      +/-   ##
=============================================
+ Coverage      59.22%   59.25%   +0.03%
- Complexity       246      247       +1
=============================================
  Files             49       49
  Lines           1214     1215       +1
  Branches         155      155
=============================================
+ Hits             719      720       +1
  Misses           445      445
  Partials          50       50

Impacted Files
Coverage Δ
Complexity Δ

...dgremlin/mutters/templated/TemplatedUtterance.java
86.66% <100%> (+0.22%)
17 <1> (+1)
:arrow_up:

Continue to review full report at Codecov.

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


[ENH] Enable test_embeddings

Description of changes
Summarize the changes made by this PR.

Improvements & Bug fixes

Fixes get_vectors brute force add and update logic to account for uninitialized segment
Fixes get_vectors brute force update logic to also account for adds that happened in the log and not in the segment
Fixes get_vectors to return ids and embeddings in the same order as the input search ids. This is necessary since the FE relies on this
Fixes get_vectors to also get triggered on updates/deletes of records that were added in the log itself
Enables test_embeddings for cluster integration tests

Test plan

[x] Tests pass locally with pytest for python, yarn test for js, cargo test for rust

Documentation Changes
None

!!!MERGE!!!!


Groupby exclude dimension

Is there some way to do a groupby operation where some dimension is excluded from the operation, e.g., a vectorized version of something like this:
vertlevels = [ds.vel.sel(nVertLevels=i).groupby('y').mean() for i in ds.nVertLevels]
xavgvel = xr.concat(vertlevels, 'nVertLevels')

The application here is to average 3D data in the x coordinate to the unique y coordinates, but not the vertical coordinate.
Thus, we are basically looking for something that allows a coordinate to be excluded from the groupby operation, e.g., in this case the vertical coordinate.  Ideally this would also be possible within the context of the groupby_bins operation.
Any ideas on how this should work or a pointer on how to implement this type of operation more cleanly with existing infrastructure is greatly appreciated.  This appears to be related to  #324 and especially (perhaps identically) #924.
cc @vanroekel, @shoyer, @jhamman, @rabernat, @MaximilianR

I explicitly listed this as a TODO in my multidimensional groupby PR (#818):
https://github.com/pydata/xarray/blob/master/xarray/core/groupby.py#L166
It would definitely be useful and is totally doable!

My guess is that this could be implemented pretty quickly on top of #924, which is currently on hold while I finish up #964.

Thanks @rabernat and @shoyer!

If only we could clone @shoyer!

Isn't there a git command for that? ;-)

Thanks for making everyone's life so much better via xarray and for helping us all to contribute to this process @shoyer!

Note, this issue should be resolvable via #924.

Is this still current?

Yes


Methods and consts not generated in the build: TypeError: Cannot read property 'handleButtonNumber' of undefined

Describe the bug
When I build (npm run build) of my project and test it with npm run serve, it seems that the build is not generated correctly because the generated code still shows this.handleButtonNumber and I get errors that my handleButtonNumber method is not defined.
Reproduction
Git clone the app: git@github.com:cristianpoleyJS/calculator-app.git
You can error here: https://calculator-frontendmentor.netlify.app/
System Info
  System:
    OS: macOS 11.1
    CPU: (4) x64 Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz
    Memory: 129.61 MB / 8.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 14.15.4 - ~/.nvm/versions/node/v14.15.4/bin/node
    Yarn: 1.22.10 - /usr/local/bin/yarn
    npm: 6.14.10 - ~/.nvm/versions/node/v14.15.4/bin/npm
  Browsers:
    Chrome: 91.0.4472.106
    Firefox: 81.0.2
    Safari: 14.0.2
  npmPackages:
    @vitejs/plugin-vue: 1.2.3 => 1.2.3
    vite: 2.3.7 => 2.3.7

Used package manager: npm
Logs
> vite build --debug

  vite:config bundled config file loaded in 809ms +0ms
  vite:config using resolved config: {
  vite:config   plugins: [
  vite:config     'alias',
  vite:config     'vite:dynamic-import-polyfill',
  vite:config     'vite:resolve',
  vite:config     'vite:html',
  vite:config     'vite:css',
  vite:config     'vite:esbuild',
  vite:config     'vite:json',
  vite:config     'vite:wasm',
  vite:config     'vite:worker',
  vite:config     'vite:asset',
  vite:config     'vite:vue',
  vite:config     'vite:define',
  vite:config     'vite:css-post',
  vite:config     'vite:build-html',
  vite:config     'commonjs',
  vite:config     'vite:data-uri',
  vite:config     'rollup-plugin-dynamic-import-variables',
  vite:config     'vite:import-analysis',
  vite:config     'vite:esbuild-transpile',
  vite:config     'vite:terser',
  vite:config     'vite:reporter'
  vite:config   ],
  vite:config   build: {
  vite:config     target: [ 'es2019', 'edge88', 'firefox78', 'chrome87', 'safari13.1' ],
  vite:config     polyfillDynamicImport: false,
  vite:config     outDir: 'dist',
  vite:config     assetsDir: 'assets',
  vite:config     assetsInlineLimit: 4096,
  vite:config     cssCodeSplit: true,
  vite:config     sourcemap: false,
  vite:config     rollupOptions: {},
  vite:config     commonjsOptions: { include: [Array], extensions: [Array] },
  vite:config     minify: 'terser',
  vite:config     terserOptions: {},
  vite:config     cleanCssOptions: {},
  vite:config     write: true,
  vite:config     emptyOutDir: null,
  vite:config     manifest: false,
  vite:config     lib: false,
  vite:config     ssr: false,
  vite:config     ssrManifest: false,
  vite:config     brotliSize: true,
  vite:config     chunkSizeWarningLimit: 500,
  vite:config     watch: null
  vite:config   },
  vite:config   define: { __VUE_OPTIONS_API__: true, __VUE_PROD_DEVTOOLS__: false },
  vite:config   ssr: { external: [ 'vue', '@vue/server-renderer' ] },
  vite:config   configFile: '/Users/cristian.poley/projects/personal/cristianpoley/calculator-app/vite.config.js',
  vite:config   configFileDependencies: [ 'vite.config.js' ],
  vite:config   inlineConfig: {
  vite:config     root: undefined,
  vite:config     base: undefined,
  vite:config     mode: undefined,
  vite:config     configFile: undefined,
  vite:config     logLevel: undefined,
  vite:config     clearScreen: undefined,
  vite:config     build: {}
  vite:config   },
  vite:config   root: '/Users/cristian.poley/projects/personal/cristianpoley/calculator-app',
  vite:config   base: '/',
  vite:config   resolve: { dedupe: undefined, alias: [ [Object] ] },
  vite:config   publicDir: '/Users/cristian.poley/projects/personal/cristianpoley/calculator-app/public',
  vite:config   cacheDir: '/Users/cristian.poley/projects/personal/cristianpoley/calculator-app/node_modules/.vite',
  vite:config   command: 'build',
  vite:config   mode: 'production',
  vite:config   isProduction: true,
  vite:config   server: {
  vite:config     fsServe: {
  vite:config       root: '/Users/cristian.poley/projects/personal/cristianpoley/calculator-app',
  vite:config       strict: false
  vite:config     }
  vite:config   },
  vite:config   env: { BASE_URL: '/', MODE: 'production', DEV: false, PROD: true },
  vite:config   assetsInclude: [Function: assetsInclude],
  vite:config   logger: {
  vite:config     hasWarned: false,
  vite:config     info: [Function: info],
  vite:config     warn: [Function: warn],
  vite:config     warnOnce: [Function: warnOnce],
  vite:config     error: [Function: error],
  vite:config     clearScreen: [Function: clearScreen]
  vite:config   },
  vite:config   createResolver: [Function: createResolver],
  vite:config   optimizeDeps: { esbuildOptions: { keepNames: undefined } }
  vite:config } +14ms
vite v2.3.7 building for production...
✓ 18 modules transformed.
dist/index.html                  0.54kb
dist/assets/index.0d173095.js    3.49kb / brotli: 1.12kb
dist/assets/index.2d2c6df7.css   9.65kb / brotli: 1.48kb
dist/assets/vendor.9390389e.js   42.18kb / brotli: 15.18kb

Before submitting the issue, please make sure you do the following

[x] Read the Contributing Guidelines.
[x] Read the docs.
[x] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[x] Provide a description in this issue that describes the bug.
[x] Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/vue-next instead.
[x] Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.

Looks like a @vue/compiler-sfc bug. Methods in <script setup> shouldn't be able to access this even in development mode.
The production build works correctly.

cc @HcySunYang

@sodatea I see, so it is a bug in my code that I should not use this in this case. Thank you very much!

Closing as I reported to upstream (https://github.com/vuejs/core/issues/6822).


fix(driver): use extract__egid instread of extract__euid helper

What type of PR is this?
/kind bug
Any specific area of the project related to this PR?
/area driver-modern-bpf
Does this PR require a change in the driver versions?
No
What this PR does / why we need it:
This PR fixes some typos, we need to extract the gid instead of the uid
Which issue(s) this PR fixes:
Special notes for your reviewer:
Does this PR introduce a user-facing change?:
NONE

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: Andreagit97
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

driver/OWNERS [Andreagit97]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: Andreagit97, gnosek
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

driver/OWNERS [Andreagit97,gnosek]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: Andreagit97, gnosek, hbrueckner
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

driver/OWNERS [Andreagit97,gnosek,hbrueckner]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Nice! I assumed that since gid_t and uid_t are basically the same, that extract__euid would work!

I assume that this will now be used in the getegid() modern probe?

If you mean in the syscall getegid, the implementation you have done in https://github.com/falcosecurity/libs/pull/776 is correct! We are instrumenting the getegid syscall so we have direct access to the gid_t since it is the return value of the syscall. In this PR I have to use these helpers because we are trying to extract the git_t directly from the kernel and not from the syscall params. Let me know if this is not clear :)


Added CentOS specific install instructions

The Redhat/Fedora instructions for installation don't work because of the poppler libraries, so I added some specific instruction to work around this that I found from a different link.

Coverage remained the same at 97.368% when pulling a383895aa609ecb0ef47b3f3c11a73dcb41acf84 on mstackhouse:master into 346236a506fb7b220da064d226fb505f001f7d60 on jalan:master.


Support Rails 6

Specs are running fine with rails 6.

@erichmachado, I have changed based on your comments.

I'm merging this @csm123. I think it would be good for us to plan a new gem release after that.


Consider using a fixed version of GPT-4

Since the OpenAI API is changing, please consider using a fixed GPT-4 version such as gpt-4-0314. Using gpt-4 can cause fluctuating results and make old results stale.
Related: https://github.com/imoneoi/openchat/issues/42

Thanks @imoneoi, we added both version gpt4 in the configs. Note that all outputs are there so you can always evaluate any model with any evaluator.
We decided to use the latest gpt4 as default to always have best possible evaluator

Thanks! Keeping the latest gpt4 as default is a good idea, but maybe we should use a fixed version for the leaderboard to ensure reproducibility and fair comparison between old/new model results, since the behavior changes hugely between versions .
I would recommend gpt-4-0314 or the version used for human agreement experiments.


struct osdp_event_cardread length field unit

In the comment the field unit is bytes while it's bits.

Actually, data is in bits if format is OSDP_CARD_FMT_RAW_* or bytes when format is OSDP_CARD_FMT_ASCII. I'll update the comment to indicate this.
Thanks!


tutorial problem with Globus

On Mac, with parsl 1.1.0a1, running tutorial 2
import parsl
from parsl.app.app import python_app, bash_app
from parsl.data_provider.files import File
from parsl.config import Config
from parsl.data_provider.globus import GlobusStaging
from parsl.data_provider.data_manager import default_staging
from parsl.executors.threads import ThreadPoolExecutor
import os

# Local endpoint used to transfer Globus file in for processing
local_endpoint = '[my endpoint inserted here]' # Insert your endpoint ID here

dest_endpoint = 'ddb59aef-6d04-11e5-ba46-22000b92c6ec' # Destination for sorted file

if not local_endpoint:
    print("You must specify a local endpoint")

else:
    config = Config(
        executors=[
            ThreadPoolExecutor(
                label='local_threads_globus',
                working_dir=os.getcwd(), # Update to your working directory
                storage_access=default_staging + [GlobusStaging(
                    endpoint_uuid=local_endpoint,
                    endpoint_path='/',
                    local_path='/'
                )],
            )
        ],
    )

    parsl.load(config)

@python_app
def sort_strings(inputs=[], outputs=[]):
    with open(inputs[0], 'r') as u:
        strs = u.readlines()
        strs.sort()
        with open(outputs[0].filepath, 'w') as s:
            for e in strs:
                s.write(e)

# Remote unsorted file stored on the Globus-accesible Petrel data service
unsorted_globus_file = File('globus://03d7d06a-cb6b-11e8-8c6a-0a1d4c5c824a/unsorted.txt')

# Location to send the sorted file after processing
sorted_globus_file = File('globus://%s/~/sorted.txt' % dest_endpoint)

f = sort_strings(inputs=[unsorted_globus_file], outputs=[sorted_globus_file])
print (f.result())

I get this error
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
/usr/local/lib/python3.7/site-packages/parsl/dataflow/dflow.py in sanitize_and_wrap(self, task_id, args, kwargs)
    741                     try:
--> 742                         new_inputs.extend([dep.result()])
    743                     except Exception as e:

/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/concurrent/futures/_base.py in result(self, timeout)
    427             elif self._state == FINISHED:
--> 428                 return self.__get_result()
    429

/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/concurrent/futures/_base.py in __get_result(self)
    383         if self._exception:
--> 384             raise self._exception
    385         else:

/usr/local/lib/python3.7/site-packages/parsl/dataflow/dflow.py in handle_exec_update(self, task_id, future)
    285         try:
--> 286             res = self._unwrap_remote_exception_wrapper(future)
    287

/usr/local/lib/python3.7/site-packages/parsl/dataflow/dflow.py in _unwrap_remote_exception_wrapper(future)
    440         if isinstance(result, RemoteExceptionWrapper):
--> 441             result.reraise()
    442         return result

/usr/local/lib/python3.7/site-packages/parsl/app/errors.py in reraise(self)
    127
--> 128         v = dill.loads(self.e_value)
    129         tb = self.e_traceback.as_traceback()

/usr/local/lib/python3.7/site-packages/dill/_dill.py in loads(str, ignore, **kwds)
    274     file = StringIO(str)
--> 275     return load(file, ignore, **kwds)
    276

/usr/local/lib/python3.7/site-packages/dill/_dill.py in load(file, ignore, **kwds)
    269     """unpickle an object from a file"""
--> 270     return Unpickler(file, ignore=ignore, **kwds).load()
    271

/usr/local/lib/python3.7/site-packages/dill/_dill.py in load(self)
    471     def load(self): #NOTE: if settings change, need to update attributes
--> 472         obj = StockUnpickler.load(self)
    473         if type(obj).__module__ == getattr(_main_module, '__name__', '__main__'):

/usr/local/lib/python3.7/site-packages/globus_sdk/exc.py in __init__(self, r, *args, **kw)
     39         self._underlying_response = r
---> 40         self.http_status = r.status_code
     41         if "Content-Type" in r.headers and (

AttributeError: 'int' object has no attribute 'status_code'

During handling of the above exception, another exception occurred:

DependencyError                           Traceback (most recent call last)
<ipython-input-15-f18e1a1f0770> in <module>
     15
     16 f = sort_strings(inputs=[unsorted_globus_file], outputs=[sorted_globus_file])
---> 17 print (f.result())

/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/concurrent/futures/_base.py in result(self, timeout)
    433                 raise CancelledError()
    434             elif self._state == FINISHED:
--> 435                 return self.__get_result()
    436             else:
    437                 raise TimeoutError()

/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/concurrent/futures/_base.py in __get_result(self)
    382     def __get_result(self):
    383         if self._exception:
--> 384             raise self._exception
    385         else:
    386             return self._result

/usr/local/lib/python3.7/site-packages/parsl/dataflow/dflow.py in sanitize_and_wrap(self, task_id, args, kwargs)
    711             if isinstance(dep, Future):
    712                 try:
--> 713                     new_args.extend([dep.result()])
    714                 except Exception as e:
    715                     if hasattr(dep, 'task_def'):

/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/concurrent/futures/_base.py in result(self, timeout)
    426                 raise CancelledError()
    427             elif self._state == FINISHED:
--> 428                 return self.__get_result()
    429
    430             self._condition.wait(timeout)

/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/concurrent/futures/_base.py in __get_result(self)
    382     def __get_result(self):
    383         if self._exception:
--> 384             raise self._exception
    385         else:
    386             return self._result

/usr/local/lib/python3.7/site-packages/parsl/dataflow/dflow.py in handle_exec_update(self, task_id, future)
    284
    285         try:
--> 286             res = self._unwrap_remote_exception_wrapper(future)
    287
    288         except Exception as e:

/usr/local/lib/python3.7/site-packages/parsl/dataflow/dflow.py in _unwrap_remote_exception_wrapper(future)
    437     @staticmethod
    438     def _unwrap_remote_exception_wrapper(future: Future) -> Any:
--> 439         result = future.result()
    440         if isinstance(result, RemoteExceptionWrapper):
    441             result.reraise()

/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/concurrent/futures/_base.py in result(self, timeout)
    426                 raise CancelledError()
    427             elif self._state == FINISHED:
--> 428                 return self.__get_result()
    429
    430             self._condition.wait(timeout)

/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/concurrent/futures/_base.py in __get_result(self)
    382     def __get_result(self):
    383         if self._exception:
--> 384             raise self._exception
    385         else:
    386             return self._result

DependencyError: Dependency failure for task 0 with failed dependencies from tasks [None]

it could be that I didn't activate an endpoint, but the instructions in the tutorial say

Make sure to activate the destination endpoint before running this example. You can activate the endpoint on the Globus website or via the Globus Python SDK.

but don't say how to actually do this, and I can never figure out how to tell if an endpoint is activated or to activate one on the Globus website

This looks like misbehaving error reporting code in globus' python code is itself breaking, disguising the underlying error. (The underlying error information might be useful to you, but might not)

@danielskatz can you tell me which version of the globus-sdk you have installed. eg:
pip list |grep globus-sdk
globus-sdk                            X.Y.Z

1.9.0

Can you run this command, which will install a patched version of the globus SDK which will give different error messages, and then try again, and paste the new error:
pip install 'globus-sdk @ git+https://github.com/parsl/globus-sdk-python@benc-danielskatz-debug-1' --upgrade

What will be the command to undo this?

pip install --upgrade 'globus-sdk==1.9.0'

RuntimeError                              Traceback (most recent call last)
/usr/local/lib/python3.7/site-packages/parsl/dataflow/dflow.py in sanitize_and_wrap(self, task_id, args, kwargs)
    741                     try:
--> 742                         new_inputs.extend([dep.result()])
    743                     except Exception as e:

/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/concurrent/futures/_base.py in result(self, timeout)
    427             elif self._state == FINISHED:
--> 428                 return self.__get_result()
    429

/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/concurrent/futures/_base.py in __get_result(self)
    383         if self._exception:
--> 384             raise self._exception
    385         else:

/usr/local/lib/python3.7/site-packages/parsl/dataflow/dflow.py in handle_exec_update(self, task_id, future)
    285         try:
--> 286             res = self._unwrap_remote_exception_wrapper(future)
    287

/usr/local/lib/python3.7/site-packages/parsl/dataflow/dflow.py in _unwrap_remote_exception_wrapper(future)
    440         if isinstance(result, RemoteExceptionWrapper):
--> 441             result.reraise()
    442         return result

/usr/local/lib/python3.7/site-packages/parsl/app/errors.py in reraise(self)
    127
--> 128         v = dill.loads(self.e_value)
    129         tb = self.e_traceback.as_traceback()

/usr/local/lib/python3.7/site-packages/dill/_dill.py in loads(str, ignore, **kwds)
    274     file = StringIO(str)
--> 275     return load(file, ignore, **kwds)
    276

/usr/local/lib/python3.7/site-packages/dill/_dill.py in load(file, ignore, **kwds)
    269     """unpickle an object from a file"""
--> 270     return Unpickler(file, ignore=ignore, **kwds).load()
    271

/usr/local/lib/python3.7/site-packages/dill/_dill.py in load(self)
    471     def load(self): #NOTE: if settings change, need to update attributes
--> 472         obj = StockUnpickler.load(self)
    473         if type(obj).__module__ == getattr(_main_module, '__name__', '__main__'):

/usr/local/lib/python3.7/site-packages/globus_sdk/exc.py in __init__(self, r, *args, **kw)
     42         else:
---> 43             raise RuntimeError("BENC: expected an http status code, but underlying response did not have one: {}".format(r))
     44         if "Content-Type" in r.headers and (

RuntimeError: BENC: expected an http status code, but underlying response did not have one: 400

During handling of the above exception, another exception occurred:

DependencyError                           Traceback (most recent call last)
<ipython-input-6-f18e1a1f0770> in <module>
     15
     16 f = sort_strings(inputs=[unsorted_globus_file], outputs=[sorted_globus_file])
---> 17 print (f.result())

/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/concurrent/futures/_base.py in result(self, timeout)
    433                 raise CancelledError()
    434             elif self._state == FINISHED:
--> 435                 return self.__get_result()
    436             else:
    437                 raise TimeoutError()

/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/concurrent/futures/_base.py in __get_result(self)
    382     def __get_result(self):
    383         if self._exception:
--> 384             raise self._exception
    385         else:
    386             return self._result

/usr/local/lib/python3.7/site-packages/parsl/dataflow/dflow.py in sanitize_and_wrap(self, task_id, args, kwargs)
    711             if isinstance(dep, Future):
    712                 try:
--> 713                     new_args.extend([dep.result()])
    714                 except Exception as e:
    715                     if hasattr(dep, 'task_def'):

/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/concurrent/futures/_base.py in result(self, timeout)
    426                 raise CancelledError()
    427             elif self._state == FINISHED:
--> 428                 return self.__get_result()
    429
    430             self._condition.wait(timeout)

/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/concurrent/futures/_base.py in __get_result(self)
    382     def __get_result(self):
    383         if self._exception:
--> 384             raise self._exception
    385         else:
    386             return self._result

/usr/local/lib/python3.7/site-packages/parsl/dataflow/dflow.py in handle_exec_update(self, task_id, future)
    284
    285         try:
--> 286             res = self._unwrap_remote_exception_wrapper(future)
    287
    288         except Exception as e:

/usr/local/lib/python3.7/site-packages/parsl/dataflow/dflow.py in _unwrap_remote_exception_wrapper(future)
    437     @staticmethod
    438     def _unwrap_remote_exception_wrapper(future: Future) -> Any:
--> 439         result = future.result()
    440         if isinstance(result, RemoteExceptionWrapper):
    441             result.reraise()

/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/concurrent/futures/_base.py in result(self, timeout)
    426                 raise CancelledError()
    427             elif self._state == FINISHED:
--> 428                 return self.__get_result()
    429
    430             self._condition.wait(timeout)

/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/concurrent/futures/_base.py in __get_result(self)
    382     def __get_result(self):
    383         if self._exception:
--> 384             raise self._exception
    385         else:
    386             return self._result

DependencyError: Dependency failure for task 0 with failed dependencies from tasks [None]

crossref #785 which is a similar-but-different issue around awkward problems with some exceptions within RemoteExceptionWrapper.

@danielskatz thanks. can you attach the parsl.log that corresponds to this error happening, to this issue.

parsl.log

Ok. There's two things going on here

The underlying exception shown in that log is a globus auth exception. So maybe you aren't properly authenticated to globus, or you aren't authorised. You can check that you are authenticated by running the parsl command line tool: parsl-globus-auth which will return right away if you are authenticated already, and if not, talk you through the process.

2021-04-01 08:02:37.416 parsl.app.errors:126 [DEBUG]  Reraising exception of type <class 'globus_sdk.exc.AuthAPIError'>
2021-04-01 08:02:37.417 parsl.dataflow.dflow:289 [DEBUG]  Task 1 try 0 failed

Parsl tries to do Clever Things with exceptions; the globus SDK tries to do different Clever Things with exceptions. Those are conflicting here and causing the poor stack traces that you pasted initially. This is broadly the same as issue #785 I think. It has been a couple of years since I investigated #785 so maybe this is worth me revisiting.

I added this cell in the notebook

but I still get the same error.
I think the problem is

Make sure to activate the destination endpoint before running this example. You can activate the endpoint on the Globus website or via the Globus Python SDK.
The example is set to upload the sorted file to the Globus tutorial endpoint.

Do you know how I do this?  I asked @kylechard about this but he didn't answer...

So the destination endpoint is identified by some uuid that you have to supply yourself - can you tell me more about that: where did you get that uuid from? What server/filesystem are you expecting it to refer to? Who administers that endpoint?

The destination endpoint is specified in the tutorial - it's a globus tutorial endpoint (on the cloud somewhere I think).  I can send a file to and from it using the Globus web interface, so I think it's working fine.

The problem turned out to be an old token.  I removed ~/.parsl/.globus.json and reuathorized (by running parsl-globus-auth, then the transfer worked.  But I'm leaving this issue open for two reasons:

the error message should somehow indicate this
the value that the cell prints is None which isn't very helpful

@danielskatz can you install this parsl:
pip install --upgrade 'parsl @ git+https://github.com/parsl/parsl@benc-exc-not-wrapping'
and see what error message you get?

the value that the cell prints is None which isn't very helpful

which cell?

I'm not going to follow-up on your new version of parsl, since I have updated my token and thus don't get any errors.
Re

which cell?

This one
def sort_strings(inputs=[], outputs=[]):
    with open(inputs[0], 'r') as u:
        strs = u.readlines()
        strs.sort()
        with open(outputs[0].filepath, 'w') as s:
            for e in strs:
                s.write(e)

# Remote unsorted file stored on the Globus-accesible Petrel data service
unsorted_globus_file = File('globus://03d7d06a-cb6b-11e8-8c6a-0a1d4c5c824a/unsorted.txt')

# Location to send the sorted file after processing
sorted_globus_file = File('globus://%s/~/sorted.txt' % dest_endpoint)

f = sort_strings(inputs=[unsorted_globus_file], outputs=[sorted_globus_file])
print (f.result())

returns None on successful completion

That None is probably the None that sort_strings implicitly returns (because that's what all python functions return if they have no explicit return value).
I think there's no point printing that - but even without that explicit print I think the notebook will print the result of the final expression.

@kylechard - will change this and close this issue


Question: Seamless rust Struct and ketos Struct

Is it possible to do something like the following:
#[derive(something...)]
struct Config {
  pub name: String;
  pub connections: i32;
}

Then, from some ketos:
(new Config :name "test" :connections 123)

Then, again from rust:
let result = interp.call(...).unwrap();
// result has type Config
println!("config.name: {:?}", config.name);

I'm not seeing an obvious way to do this with the existing traits

Oh, this is a great idea. Such a great idea, I wish I'd thought of it myself.
I think it's definitely doable. I'll look into it when I have some time tomorrow.

This functionality has now been implemented, with derive(StructValue). It can be found in version 0.10 of ketos and ketos_derive. Let me know if you have any issues with it.

I'll give this a try as soon as I can. My computer just got fried by an
apparent power surge so it might be a bit before I will be able to
On Sat, Jun 3, 2017 at 5:30 PM, Murarth<EMAIL_ADDRESS>wrote:

This functionality has now been implemented, with derive(StructValue). It
can be found in version 0.10 of ketos and ketos_derive. Let me know if
you have any issues with it.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/murarth/ketos/issues/28#issuecomment-306005233, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAgweU7Lspd_KWWCtK81PCJdwnQRsOQ9ks5sAd5pgaJpZM4Ntulo
.

--
David Zmick
dpzmick.com
<EMAIL_ADDRESS>


Anonymous using?

I was wondering why a syntax like using lock() is not in the proposal.  I couldn't find much public discussion of it, but while perusing the standard I noticed this

Is this the reason why anonymous using is not supported, to avoid ASI hacks? It would be really nice to have using object.lock() but I can see how adding yet more grammar hacks to the language might not be a good idea.

There are two scenarios for an "anonymous using":

using without introducing a binding
using in an expression position

For "using without introducing a binding", we have the Discard Binding proposal. This was originally part of this proposal but was cut prior to Stage 3 and is instead being pursued as a separate proposal. Supporting locking scenarios is a major motivation for this proposal since we have been discussing the introduction of Mutex in the Shared Structs proposal:
{
  // take exclusive lock over some shared data
  using void = new UniqueLock(mutex);
  doSomethingWithSharedData(sharedData);
} // lock is released

For "using in an expression position", explicit syntax for that was rejected for the following reasons:

using MemberExpression is ambiguous with CallExpression:const x = using (y);
const x = using (y).z;

To ensure scope effects from using and await using are explicitly discoverable at the start of a Statement:

{
  using x = ...;
  await using y = ...;
}

vs.
{
  const x = someArbitrarilyLongAndComplexExpression1(using ...);
  const y = someArbitrarilyLongAndComplexExpression2(await using ...);
}

(2) is especially important for await using since it introduces an implicit await at the end of the block.
However, you can still achieve "using in an expression position" through the use of DisposableStack/AsyncDisposableStack, which still maintains the invariant in (2):
{
  await using stack = new AsyncDisposableStack();
  const x = someArbitrarilyLongAndComplexExpression1(stack.use(...));
  const y = someArbitrarilyLongAndComplexExpression2(stack.use(...));
}


feature: add no base option for sealer build

Describe what this PR does / why we need it
Applications Image contains applications with all dependencies except the base image, so ApplicationsImage can install to an already existing Kubernetes cluster.
add "--no-base" option for sealer build, if it is true, will only keep the application context and its docker image.
in order to keep the same with the "--no-cache" option. name it as "--no-base".
run this cmd will build app image:sealer build -f Kubefile -t myapp:v1 -m lite . --no-base
if want keep all images include base image, run sealer build -f Kubefile -t myimage:v1 -m lite .
Does this pull request fix one issue?

Describe how you did it
Describe how to verify it
Special notes for reviews
link to issue #695

/test build

I think --base false is better, default is true.


course/syllabus

Develop controller which will fetch the course model information and display a syllabus .

Here's how the syllabus page looks like now:


5.0.0

Major version bump, due to breaking changes to ApprovalController
Update changelog

A new version of the package @metamask/controllers (5.0.0) was published at 2020-11-19T16:10:01.119Z from
[...]. The shasum of this package was f490a504126c2e19bf019dc94d61dff898f62975.


action adding problem?

I have this

const fn = () => action('something!');

storiesOf('Demo', module)
  .add('with fn', () => <button onClick={fn}>Hello Button</button>)
  .add('with closure', () => <button onClick={action('clicked')}>Hello Button</button>);

The last story works, but the other not!... Why?

action('something') returns a function so what you want is this:
const fn = action('something!');

this line.
https://github.com/storybooks/storybook/blob/master/addons/actions/src/preview.js#L35
@Hypnosphi
do you know why it must generate function from string like that. Can't it be done with callback?

I wanted to do some other stuff before action.
So i did it like this.
const fn = () => {
          console.log('_____________s ')
          // Did other stuffs
          return action('Action 2 clicked').call()
        },

why it must generate function from string like that
There's a comment about it, basically the reason is that we need to use the string you passed as a function name: https://github.com/storybooks/storybook/blob/master/addons/actions/src/preview.js#L27-L30

So i did it like this.
That's fine, but you may also want to use decorateAction helper for stuff like that:

import { action, decorateAction } from '@storybook/addon-actions'

import Button from './button';

const loggingAction = decorateAction([
  args => {
    console.log('_____________s ');
    return args;
  }
]);

storiesOf('Button', module)
  .add('default view', () => (
    <Button onClick={ loggingAction('button-click') }>
      Hello World!
    </Button>
  ))

The main advantage is that you can reuse that loggingAction for different actions in different places

we need to use the string you passed as a function name
Thank you.


Update shader metadata to use enums for rendertypes instead of strings.

Pretty simple logic here, all the stock rendertypes are effectively set in stone and it's faster to compare an int than a string. Comparisons between rendertypes has hardly been a bottleneck but nonetheless as this is (in theory) purely a backend change it'd be a nice thing to do at some point.

Done in v0.10.0 branch!


5.9.0 Windows macro support

This backports the changes to support macros on Windows. The bulk of the changes are to the tests, the C++ and runtime pieces fix mismatches between operator new/malloc and free and implement Windows process execution support.

@swift-ci please test

Please test with following PRs:
https://github.com/apple/llvm-project/pull/7400
@swift-ci please test

Please test with following PRs:
https://github.com/apple/llvm-project/pull/7400
@swift-ci please test

Please test with following PRs:
https://github.com/apple/llvm-project/pull/7405
https://github.com/apple/swift-syntax/pull/2162
https://github.com/apple/swift-driver/pull/1436
@swift-ci please test

Please test with following PRs:
https://github.com/apple/llvm-project/pull/7405
https://github.com/apple/swift-syntax/pull/2162
https://github.com/apple/swift-driver/pull/1436
@swift-ci please test

Please test with following PRs:
https://github.com/apple/llvm-project/pull/7405
https://github.com/apple/swift-syntax/pull/2162
https://github.com/apple/swift-driver/pull/1436
@swift-ci please test Linux platform


Refactor defining MTLPixelFormat and GPU capabilities.

Add MVKMTLDeviceCapabilities to encapsulate Metal GPU family capabilities, and use it in MVKPhysicalDevice and MVKPixelFormats to identify GPU capabilities.
Remove all references to MTLGPUFamily and MTLFeatureSet outside MVKMTLDeviceCapabilities.
Blend or select AppleGPU and MacGPU format capabilities.
Simplify MVKPixelFormats::modifyMTLFormatCapabilities() based on MVKMTLDeviceCapabilities.
Add guard code to ensure MTLPixelFormatInvalid & MTLVertexFormatInvalid capabilities are not overwritten by other formats that don't exist on some platforms.
Update MTLPixelFormat capabilities based on latest Metal docs.
Remove some variations tied to very older OS versions, or MTLFeatureSets that have the same GPU family, including setting MSL 2.0 as the earliest supported version.
Enable VkPhysicalDeviceFeatures::vertexPipelineStoresAndAtomics & fragmentStoresAndAtomics on all platforms.
During startup, only log the highest GPU family.

Fixes issue #2301.

Sorry for the delay. GitHub went down for a bit yesterday.

No worries. Thanks for having a look, and for your feedback.

Since you're bumping the minimum OS version needed to use MoltenVK, you should probably update the README and User's Guide.

The changes embodied here in terms of older OS's should be covered by the existing minimums in MoltenVK_Runtime_UserGuide: macOS 10.15 & iOS/tvOS 13.0.
Do you see anything particular that doesn't get covered by those minimums?

The changes embodied here in terms of older OS's should be covered by the existing minimums in MoltenVK_Runtime_UserGuide: macOS 10.15 & iOS/tvOS 13.0.

Must've missed that...


create api end poind to remove data

1.create DELETE https request in views.py and define the URL for removing patient data from database.

create delete https request in views.py and define url.


Add app cluster example

This PR adds a docker compose example of a cluster of applications running behind an ngix proxy. Essentially, we use our Go, Rust and GraalVM Native examples, setup Grafana Agent, Tempo, Mimir and drive some load to the services.
I plan to use this example setup to make an introduction video for Beyla.

Codecov Report

Merging #236 (f26ceac) into main (2a9e209) will decrease coverage by 0.07%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main     #236      +/-   ##
==========================================
- Coverage   80.78%   80.71%   -0.07%
==========================================
  Files          37       37
  Lines        3065     3065
==========================================
- Hits         2476     2474       -2
- Misses        438      440       +2
  Partials      151      151

Flag
Coverage Δ

integration-test
76.08% <ø> (-0.07%)
:arrow_down:

unittests
37.96% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.
see 1 file with indirect coverage changes

Thanks Matt!


Remove resetMocks() with AbstractJerseyJUnit

resetMocks() is no longer needed after migration to AbstractJerseyJUnit because the mocks are reset in the @Before method for every test.
@calcwu

Nice - Thanks @jieyulu-addepar


Update Obi Griffith biography

Hey @obigriffith, I noticed (after my last PR) that your bio mentions that you are still an Assistant Prof; I'm certain that updating this is low priority among things that require your attention, but I think that this is something you want to be aware of.

This was updated.


Better CORS handling

CORS preflight request is not identified by Origin header that can be sent in different non CORS events too. It is identified by OPTIONS method and Access-Control-Request-Method header
Allow more fine grained control over CORS Access-Control-* headers using options.
Allow handling OPTIONS request in this plugin and immediately return without calling next handlers (i.e. without calling a backend service)

If you like these changes I can also update the docs.

Thanks for the PR! The existing cors-header is very simplistic and I'm not certain exactly how it should work :) I'll ask questions in code comments to make sure I understand.

I'm going to commit the changes. Let me know if you think it's better

Looks good. Looks like the test for the cors handler needs to be updated and there might be some minor lint fixes. Could you check that the tests pass locally? Thanks!!

I will try to work on the tests and lint tomorrow.

Think it looks good now, just needs the test to pass. Let me know if you want me to help out.

Hi, sorry, I didn't get to it yet. I hope to get to it tomorrow.
בתאריך יום ד׳, 18 במרץ 2020, 11:45, מאת Markus Ahlstrand <
<EMAIL_ADDRESS>
Think it looks good now, just needs the test to pass. Let me know if you
want me to help out.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/markusahlstrand/cloudworker-proxy/pull/49#issuecomment-600522078,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABOVDO55JYLMG4FNN2TGQB3RICJ5PANCNFSM4LKUHJFQ
.

Hi @markusahlstrand, finally got to complete this, sorry about the long delay.
Lint and tests all pass + added new tests
Also updated the readme with the new configuration.

Nice! Just waiting for the travis build to go through..

Merged, thanks for the PR!

Great, thanks for the project ;-)


DoS potential from internal asset transfers.

Event based Spam/DoS [Discussion issue]
In Vega, we have some transactions that can cause a large number of events, especially if an event affects a market with a lot of participants.
In the current model, it is possible to create a large number of low funded accounts without the spam protection noticing:
Fund one key with a substantial amount x
Send x-d to the second key
Send x-2d from the second to the third key
…
Every key only sends one transaction, and the amounts transferred are relatively high, giving an attacker x/d keys with d assets on them.
As we want to have the ability to send small amounts under special circumstances *e.g., if it is all the assets an account), it is also possible for the attacker to recollect the assets into one account and get them back; even without that functionality, it is possible (send ty assets to one key, from there y+2d to the second, from there y+3d to the third, and so on). Thus, the assets used in that attack are not lost unless Vega goes down.
One countermeasure we have is the transaction fee (currently 0,001). In a simulation, with a minimum transfer of 1000 and the goal to have 20 assets in each key, an attacker with 1.000.000 in starting assets could generate 36224 accounts, losing ~150.000 assets in fees (the optimum for this scenario is to start with 128 Ethereum keys)
If d is big enough to participate in some market, then it is possible to create
O(x/d) events on that market with one single transaction. Thus, if we have a market with a minimum position of $10, 1 million dollars allows you to generate 100.000*(@pete) events per transaction.
Once this amplifier is set up, it has no maintenance cost, so it can be used to amplify for free for good.
Depending on the transaction type (position/order), this has a slightly different risk and effect (killing core or killing the datanodes). We could quantify this all in more detail, but after discussion with David it’s enough of a problem to need attention even if we don’t have the exact numbers yet (also, this analysis does require some more input from busy people)
Countermeasures

Enforce a large minimum margin balance for all markets. This dampens the effect, but we still have a massive amplifier (especially as the assets aren’t lost)
Use key families - transfers are only possible with permission of the receiver, and all keys that receive money from each other are part of the same family. Family members then have additional restrictions, such as only one family member per market, and a max family size of, say, 20/eth account associated with that family. Also, we could have things like ‘if more than 10- percent of events are generated by one family, the entire family is jailed. This means that keys to amplify an attack need to be created from different ETH accounts, which means that there is some gas cost in getting assets in and out, i.e., 2*Ethereum deposit/withdrawal per family (so 100.000 families would cost 20.000.000 in gas cost at, say $20 per transaction). We could also declare each key that receives funds from the same ETH account as one family, which means there’s also added costs moving assets around on Ethereum)[ To investigate: this might be an issue for Custodians ?]
This can be implemented (comparatively easy) by the transfer having to be signed by both sides.
Optimisations on the event side (This can help some, needs to be done anyhow, but won’t solve this)
Monitoring if there’s markets that create an overly large proportion of events (or, events/revenue generated). This markets can then be rate limited (which would mean we have to be able to drop transactions for markets that caused too many events. (or more simple, 1000/market per minute. So that allows to use the amplifier once, and then that market is blocked

Variation of the transfer-thing: 10% needs to be left behind rather than a fixed amount.

Variation of the transfer-thing: 10% needs to be left behind rather than a fixed amount.
That doesn't allow you to empty pennies from an account.

Variation of the transfer-thing: 10% needs to be left behind rather than a fixed amount.

That doesn't allow you to empty pennies from an account.

10% or nothing left behind.

Mitigation: Make PoW much much more expensive for transfers.

Note: The transfer-method is only necessary if Etherum  key generation is sufficiently expensive; if it's $1 per key we have an underlying assumption that's dead (unless we compensate that by introducing a 'create-a-key' fee

Variation of the transfer-thing: 10% needs to be left behind rather than a fixed amount.

That doesn't allow you to empty pennies from an account.

10% or nothing left behind.

B.: This will be a UI issue as someone somewhere will find a good reason to

Mitigations:

limit the number of public keys on a market e.g. 10^6 users.

Crazy idea to mitigate against the above attack: each vega key needs to hold some minimum amount of vega before you're allowed to place orders from the key.

Related: https://github.com/vegaprotocol/specs/issues/1439

Two more possible approaches

Change the minTransfer to be max(50, 1000-target_account_balance)   (or similar, such as account revenue) to make it expensive to create new keys and cheap to use existing ones
Move the current gas-cost model to post-chain filtering/delaying, so that we can slow down individual markets rather than all of Tendermint.


[RFR] Fix fetchUtil export

Closes #14

Back to WIP, I'm not satisfied with the API.

oops, wrong PR. This one is obviously RFR.


Legend does not carry over on export to html

geemap version: 0/7/9
Python version: 3.8-32
Operating System: Windows 8

Description
When I converted a map to HTML, the Legend doesnot get included in the HTML file.
What I Did
Source for this code: Add customized legends
https://github.com/giswqs/geemap/blob/master/examples/notebooks/00_geemap_key_features.ipynb
import geemap
import ee
Map = geemap.Map()
Map.add_basemap('HYBRID')
landcover = ee.Image('USGS/NLCD/NLCD2016').select('landcover')
Map.addLayer(landcover, {}, 'NLCD Land Cover')
Map.add_legend(builtin_legend='NLCD')
Map
Make an HTML File
Map.to_html(r'C:\Users\dsand_000\GEE\NLCD_Map_with_Legend.html', title='NLCD Map', width='60%', height='528px')
Remaining issue - the legend does not get exported to the HTML file.
Paste the command(s) you ran and the output.
If there was a crash, please include the traceback here.

The Map.to_html() function inherits from ipyleaflet. Unfortunately, custom widgets like the legend are not supported. See https://github.com/jupyter-widgets/ipyleaflet/issues/592


PDF: support "amendment, corrigendum, erratum" layout for draft

Source: https://github.com/metanorma/metanorma-ieee/issues/85
"Amendment, corrigendum, erratum" layout has specific styles (vs. draft):

title font-size 24pt vs. 23pt
right-aligned one line header IEEE P<designation>/D<draft_number>, <draft_month> 2022 without title
no footer for pages before Introduction

Done.

From Style manual - header is centered, and contains title + 'amendment':

Done.


Optionally output frequencies rather than scales (or provide a function to convert)

In the Matlab cwt documentation, it gives this useful example (emphasis added by me):

[wt,f] = cwt(___,fs) specifies the sampling frequency, fs, in Hz as a positive scalar. cwt uses fs to determine the scale-to-frequency conversions and returns the frequencies f in Hz. If you do not specify a sampling frequency, cwt returns f in cycles per sample. If the input x is complex, the scale-to-frequency conversions apply to both pages of wt. If x is a timetable, you cannot specify fs. fs is determined from the RowTimes of the timetable.

In this example, if you provide the sampling frequency, then the frequencies are returned.  It would be really useful if ssqueezepy could do this too (or at least provide a scale2frequency function to do the required conversion with the specified wavelet).

Good request, it's on TODO. For now, let me know if this code works.

Good request, it's on TODO. For now, let me know if this code works.

Thanks for sharing that.  Unfortunately, it's not working for me at the moment due to assertion errors.  My code looks like this (scale_to_freq.py contains your shared code):
import ssqueezepy as ssp
from scale_to_freq import scale_to_freq

error_data = np.loadtxt('ErrorData.csv')
sample_spacing = 150e-6
wavelet = 'gmw'
Wx, scales = ssp.cwt(error_data, wavelet=wavelet, fs=1/sample_spacing)
# N=1024 chosen as it's the default in Wavelet class init function
frequencies = scale_to_freq(scales, wavelet, N=1024, fs=1/sample_spacing)

The error I get is:
ValueError: min `scales` (7.9e-01) exceeds bound (7.9e-01); wavelet here is ill-defined.

If I comment out the two checks on scales.min() and scales.max(), I get this error instead:
    assert freqs.min() >= 0,   freqs.min()

AssertionError: -0.49902343749999994

Do you have any idea what I might be able to do about this?

Similar edge case; N should equal the length of the input, i.e. len(error_data). 1024 is fairly small and amplifies odds of discretization error (edge cases). If stuff still breaks with greater N, I'd try
scales[0] *= 1.01
scales[-1] /= 1.01

before passing to scale_to_freq to slightly nudge away from the min/max bounds.

Thanks!  Changing N to len(error_data) seems to have fixed it and the resulting graph of frequencies vs np.mean(np.abs(Wx), axis=1) looks right with all the peaks where I'd expect them to be.  Thanks again

Actually, it worked with gmw (with the tweak), but not with morlet - the bound is further out:
ValueError: min `scales` (3.8564417362e+00) exceeds bound (3.8907017388e+00); wavelet here is ill-defined.

Could you share code to reproduce the error? Data can be randn but must have same len

Error data is attached.  This sample script produces the error:
#!/usr/bin/python
# vim: set fileencoding=utf-8 :

#%% Scientific Python Imports
import numpy as np     # analysis:ignore

import matplotlib.pyplot as plt
#%%
import ssqueezepy as ssp
from scale_to_freq import scale_to_freq

#%%

generate_data = False
if generate_data:
    error_data = np.random.randn(173043)
    np.save('error_data.npy', error_data)
else:
    error_data = np.load('error_data.npy')

sample_spacing = 150e-6

#%%
def plot_cwt(error_data, sample_spacing, wavelet='gmw', ax=None, linestyle='b-'):
    print(wavelet)
    if ax is None:
        fig, ax = plt.subplots()
    else:
        fig = None

    Wx, scales = ssp.cwt(error_data, wavelet=wavelet, fs=1/sample_spacing)
    means = np.mean(np.abs(Wx), axis=1)

    scales[0] *= 1.01
    scales[1] /= 1.01
    frequencies = scale_to_freq(scales, wavelet, N=len(error_data), fs=1/sample_spacing)

    wavelengths = 1.0/frequencies

    ax.plot(wavelengths, means, linestyle, label=wavelet)
    ax.set_yscale('log')
    ax.set_xscale('log')
    ax.set_xlabel('Wavelength (mm)')
    ax.set_ylabel('nm')
    ax.grid(True, which='both')
    return fig, ax

fig, ax = plot_cwt(error_data, sample_spacing, 'gmw')
plot_cwt(error_data, sample_spacing, 'morlet', ax=ax, linestyle='r-')
plot_cwt(error_data, sample_spacing, 'bump', ax=ax, linestyle='k-')

error_data.zip

I see the problem; this version should work, but only with 'peak' mapping.

That's brilliant, and working really well (I'm using Scale-to-freq 1.0).  It would be great to see this integrated into the library at some point.
Out of interest I had a go with the synchrosqueezed versions as well to compare.  For these it looks like producing the same plots is much simpler as frequency data is provided.  What I found slightly odd though is that the returned frequencies (Frequencies associated with rows of Tx.) are in the opposite order to how I would expect so I have to use np.flip to get a meaningful plot:
        Tx, Wx, ssq_freqs, scales = ssp.ssq_cwt(error_data, wavelet='gmw', fs=1/sample_spacing)

        # Not sure why we need to flip this, but if we don't then it looks very wrong compared to the `cwt` plot!
        wavelengths = 1.0/np.flip(ssq_freqs)

        means = np.mean(np.abs(Tx), axis=1)
        ax.plot(wavelengths, means)

Is that intentional?

It's something I never looked much into. It follows the original MATLAB toolbox - I suppose the idea's to sort lowest to highest, but this does not match the actual output indexing, which I think is more important. Might change in a future version.

I take this Issue's resolved, feel free to open another.


Create a public API (with key management)

In order to implements #108 and #107, we need a public API with key management.
Questions:

Read-only api ?
JWT or other ?

Proposition:

An Integration is a User with the field "key"
Manual creation of those users (for now)
Integration clients can query backend using a JWT signed with its key
Integrations can Query and Mutation

This has been implemented with #130 👌


Introduction to Socket Programming and Network Protocols

Title Of Blog Post : Introduction to Socket Programming and Network Protocols
Short Description of what is expected : Discover the fundamentals of network programming with this comprehensive introduction to socket programming and network protocols. Learn how data is transmitted over networks and gain insights into the world of networking.
Category : Technology
Tags : Network Programming,Socket Programming,Network Protocols

assigned this to me and
what do i need to do ?

Please refer to contributing guidelines.


Question: doess INI support other kinds model like mpt or baichuan?

Yes, ITI can be adapted to your models.


Remove the need for libusd/libudev when installing with --no-option

I shouldn't need to install libudev-dev, libusb-dev and usbutils when I don't want Ledger support.
For now I had to fork this repo and eliminate all Ledger-related code so I don't get a "libusd not found" error when I npm install.
It would be nice to make an option where if I install with --no-option I don't need to also install the above mentioned deps.

You can use --no-optional.
$ npm i @binance-chain/javascript-sdk --no-optional

From the readme: https://github.com/binance-chain/javascript-sdk#install-the-npm-package

Closed by mistake. Let me know if there's something I'm missing here.

I did use --no-optional and it still gave me an error saying something like "libudev not found"

@stefanionescu can you try with yarn add @binance-chain/javascript-sdk --no-optional.

I tried --no-optional and it still gives the same errors. For now I forked the repo and removed libusd/libudev entirely from the code


Non-visible spliceFunction in Modelica/Fluid/Pipes.mo

Reported by stefanv on 29 Jul 2011 20:01 UTC
There's a call to spliceFunction in Modelica.Fluid.Pipes.BaseClasses.HeatTransfer.LocalPipeFlowHeatTransfer, and this function does not appear to be visible in that context.

Migrated-From: https://trac.modelica.org/Modelica/ticket/596

Comment by hubertus on 29 Jul 2011 21:37 UTC
That is true, and still the case in 3.2. There is a built-in such function in Dymola, which is why this is not noticed. I have fixed a number of occurences of this. A Modelica version of the function is in Modelica.Media.Air.MoistAir.spliceFunction, which is a pretty bad place if it is used at several places in Modelica.Fluid. Anyways, the function call should be to Modelica.Media.Air.MoistAir.spliceFunction().

Comment by dietmarw on 29 Jul 2011 21:59 UTC
As a short-term fix for 3.2 and the following 3.x versions I would suggest simply changing the call.
For a long-term solution (i.e., when conversion scripts are available) we should move spliceFunction() and spliceFunction_der() somewhere suitable under Modelica.Math (and add some proper documentation to it ;-)).

Comment by dietmarw on 2 Aug 2012 12:57 UTC
This was already fixed in 82f8c794f2f0c93bc91652f98dc6a5b3d5887d6f (see ticket #488). Also for now I don't see the need to generalise that function as it is (so far) only used once in Fluid and else within Media.


Add a redirct from old subdomains

What it solves
When the user goes to one of the old subdomains, they'll be redirected to the unified app (root domain).
How this PR fixes it
Adds a regex check and a JS redirect using location.replace.
How to test it
We can test it on staging, otherwise there are unit tests.
I've also adjusted the ExecuteCheckbox tests to not log an error in some cases.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

7 of 7 (100.0%)  changed or added relevant lines in 2 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.05%) to 31.516%

Totals

Change from base Build<PHONE_NUMBER>:
0.05%

Covered Lines:
2967

Relevant Lines:
8394

💛  - Coveralls

Closing this because we decided to roll out the old pre-unified version to the old sites and add a redirect there.


Change serEnum grammar

Personnel

[x] Owner: @hesingh
[x] Supporters: @mbudiu-vmw

Design

[x] Document: See spec changes

Implementation

[x] p4-spec: https://github.com/p4lang/p4-spec/pull/866
[x] p4c: https://github.com/p4lang/p4c/pull/2394

Process

[x] LDWG discussed:
[x] LDWG approved:
[ ] Merged into p4-spec:
[x] Merged into p4c: https://github.com/p4lang/p4c/pull/2394

An expression is not supported for serEnum by p4c.  With the PR , p4c is being changed to support expression.
Does the spec need to add any text for serializable enum to mention expression because another section  of the spec does describe what is width W?

I have merged this into main after fixing the typo.