I need help configuring ffmpeg in my application.

Sorry to submit this as an issue. But I had no way to contact you outside github.
Here is my problem,
2020-06-07 18:19:15.686 29697-29697/com.bini.bee.studio E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.bini.bee.studio, PID: 29697
java.lang.UnsatisfiedLinkError: dlopen failed: library "libavutil.so" not found
at java.lang.Runtime.loadLibrary0(Runtime.java:1071)
at java.lang.Runtime.loadLibrary0(Runtime.java:1007)
at java.lang.System.loadLibrary(System.java:1667)
at com.bini.bee.studio.javaBee.(javaBee.java:6)
at com.bini.bee.studio.VideoEditorActivity.onClick(VideoEditorActivity.java:102)
at android.view.View.performClick(View.java:7140)
at android.view.View.performClickInternal(View.java:7117)
at android.view.View.access$3500(View.java:801)
at android.view.View$PerformClick.run(View.java:27355)
at android.os.Handler.handleCallback(Handler.java:883)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7397)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:935)
2020-06-07 18:19:15.693 29697-29697/com.bini.bee.studio I/Process: Sending signal. PID: 29697 SIG: 9
My CMake :
cmake_minimum_required(VERSION 3.4.1)
set(ffmpeg_dir ${CMAKE_SOURCE_DIR}/src/main/nativeLibs)
set(ffmpeg_libs ${ffmpeg_dir}/lib/${ANDROID_ABI})
include_directories(${ffmpeg_dir}/include/${ANDROID_ABI})
set(
# List variable name
ffmpeg_libs_names
# Values in the list
avutil avformat avcodec swscale)
foreach (ffmpeg_lib_name ${ffmpeg_libs_names})
add_library(
${ffmpeg_lib_name}
SHARED
IMPORTED)
set_target_properties(
${ffmpeg_lib_name}
PROPERTIES
IMPORTED_LOCATION
${ffmpeg_libs}/lib${ffmpeg_lib_name}.so)
endforeach ()
add_library(
# Name for a library to build
nativeLib
# Type of a library
SHARED
# All cpp files to compile
src/main/nativeLibs/nativeBee.cpp)
target_link_libraries(
# Library to link
nativeLib
# List of libraries to link against:
# Library for writing messages in LogCat
log
# Library for processing Bitmap objects
jnigraphics
# FFmpeg libraries
${ffmpeg_libs_names})
I have analysed the apk , it is only 1.85 mb.
my library nativeLib is present inside the apk. I don't know if the ffmpeg libraries are linked to it.

@Javernaut How can I communicate with you outside github?

Hi there.
I guess you just didn't setup gradle script to pick compiled FFmpeg libraries.
Here is how you can do it: https://github.com/Javernaut/WhatTheCodec/blob/master/app/build.gradle#L26
Keep in mind that ffmpeg-android-maker is placed just into this repo and the output binaries are picked by relative path.

I have done this in my build.gradle file
It points to src/main/nativeLibs

@IamBinishMathew ,
Here is the reference code with the comment:
sourceSets {
        main {
            // let gradle pack the shared library into apk
            jniLibs.srcDirs = ['../ffmpeg-android-maker/output/lib']
        }
    }

The value of jniLibs.srcDirs should point to the output/lib directory of your copy of ffmpeg-android-maker and not to the src/main/nativeLibs, unless you moved the whole content of output/lib there.

I have solved this problem. But I have a new problem.
When I'm opening codec using,
if(avcodec_open2(pCodecCtx, pCodec, NULL)<0) {
return -1; // Could not open codec
}
It gives me an error:
2020-06-09 00:04:39.394 26075-26075/com.bini.bee.studio A/libc: Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 in tid 26075 (bini.bee.studio), pid 26075 (bini.bee.studio)
I tried replacing NULL with nullptr.
Do you have a solution??
How can I communicate with you outside github. ?
Every time I have to create a new issue thread to get your attention.
Can I have your email address or telegram username?

My account on Github has an email.
As for your problem - it is hard to say what causes that. It depends on how the FFmpeg was built and what particular codec you are trying to open.

I'm tried to open HEVC and H264. both gave me error.
I'm closing this issue.
I will email you.


Hide tooltip default when hover in nz-option

What problem does this feature solve?
Hide tooltip default when hover in nz-option
What does the proposed API look like?
No

https://github.com/NG-ZORRO/ng-zorro-antd/assets/140676148/55f4e67f-cc97-4111-9d4b-0097df3cb47e

I had committed a pr #8097 that supports to customize by nzTitle property of nz-option-item
<!-- hide tooltip -->
<nz-option-item nzLabel="Jack" [nzTitle]="null"></option-item>
<!-- or -->
<nz-option-item nzLabel="Jack" nzTitle=""></option-item>
<!-- or show specific content -->
<nz-option-item nzLabel="Jack" nzTitle="this is a title"></option-item>

Thank you.

I'd like close this issue because v16.2.1 which contains this feature had been released.

ok. Thank you very much.


Add "lang" attribute to html

Details

Project URL: https://pypinyin.readthedocs.io
Build URL (if applicable): (persists)
Read the Docs username (if applicable): (irrelevant)

Expected Result
A project with a language specified should end up with appropriate lang attribute in <html> or <body> to label the whole page as of a certain language.
Actual Result
Nothing seen for en, neither for zh_CN.

@Artoria2e5 I think that is more related to your Sphinx setting (https://github.com/mozillazg/python-pinyin/blob/master/docs/conf.py#L63) or/and the sphinx theme you are using than RTD itself.

Yep, this is something that you would want to fix in Sphinx. We're passing a language into it, and the template should be using that to produce the result you'd like.


A new script for searching PubMed by DOI

This script does the following:

if a PMID is found for a DOI and the new PMID is not currently in the database, this PMID will be added to the database and will be associated with the paper with the given DOI. In the end, the program will update these papers (with a pmid added) with the data from PubMed.
If a PMID is found for a DOI and the new PMID is already in the database (associated with another paper), then a pair of duplicate papers is identified - one with a DOI and another one with a PMID. In the end, the program will send a report to a slack channel if one or more pairs of duplicate papers are identified.

Thanks @valearna


Upgrade uuid to 8.3.2

resolves #124

There were breaking changes, but I took care of that with changing import. https://github.com/uuidjs/uuid/blob/main/CHANGELOG.md#800-2020-04-29

great thanks.  That will help me upgrade some other projects where I use it as well.
I've pushed a new version 4.4.61 that has this change


Increase warning date for single servers BSP

Notes:

Increased date for single server warning for BSP so pipeline runs, we are in the process of deleting single servers now as migration is complete in prod.

You are increasing date for all the repos - is that needed?

Have split BSP into its own for date


Remove Mock Import Path Hack

This pull request eliminates the need for the mock import path hack, which has been resolved after upgrading ESMock to the latest version (#59).
EDIT: well apparently it is not 💀.

Apparently it is not resolved that


Handle random ids without copying the Cities code

This is the first of my preparations for the transport line synchronization.
I added the ArrayHandler class to support synchronization of randomly generated ids:

Allows to "collect" generated ids by intercepting all calls to Array16<>.CreateItem(...) and Array32<>
They can be send over as an array to the other players
Allows to apply generated ids again inside these methods (Returns an item from the array instead of calculating it randomly by overwriting the CreateItem methods)

I implemented this method already in all use cases other than Buildings (is a bit more complicated) and Terrain (which still requires more work, my next commit will include "tool simulation" making it easier to work with tools, since they require private fields to be synced).
Please test if everything still works. :)

When you say transport line, do you mean synchronizing all visible traffic including trains etc.?

The transport line synchronization will include bus stops and lines, metro stations, tunnels and lines, trains etc. (Not sure if everything at once though). I'm not yet sure if the visible parts, like the actual busses and trains will stay in sync because that may require other parts to be synced (like traffic and population), which are not yet implemented.


Unable to save blog post when using list

Describe the bug
I'm unable to save blog posts based on my current config, it's giving an error and the save bar just stalls
To Reproduce
Happens every time, repo is https://github.com/amykapernick/amygoestoperth/tree/netlify-gatsby/ and it's happening on local and prod
Expected behavior
The file to save
Screenshots

Applicable Versions:

Netlify CMS version: 2.1.1
Git provider: GitHUb
OS: Windows 10
Browser version Version 68.0.3440.106 (Official Build) (64-bit)

Node.JS version: 10.7.0
NPM: 6.1.0

CMS configuration
  - name: blog
    label: Blog
    folder: src/pages/blog
    create: true
    editor:
      preview: false
    fields:
      - { name: publishDate, label: Date, widget: date }
      - { name: title, label: Title }
      - name: body
        label: Body
        widget: list
        fields:
          - {name: content, label: Content, widget: markdown}```

**Additional context**
Works fine when not using the list, but wanting to make the body repeatable fields

body is a special field name whose value is output below the frontmatter, so the list widget won't work there.
If you want repeatable markdown fields, just use a different field name and update your templates accordingly.


Optimized list.reducedi (#135)

Closes: #135

@yegor256 please have a look

@rultor merge

@rultor merge

@yegor256 OK, I'll try to merge now. You can check the progress of the merge here

@rultor merge

@yegor256 Done! FYI, the full log is here (took me 8min)


Feature: Separate module or Support for REST API/API gateway V1

Hi there,
I wanted to know if there are any plans to support AWS API Gateway V1/ API Gateway for REST APIs.
The main factor why I have to use V1 APIs is for using API Keys which isnt supported on API Gatway V2 (HTTP/Websocket APIs). You can find more information on this in the links section at the bottom of this post.
Currently, I've built one API GW (REST) with the team manually using terraform resources. Would be really keen on getting a module for this. I'll be happy to contribute towards building this module if there's any plans for this.
Please let me know if this is something you're interested in / have plans for implementing
Cheers,
Hit.
Links:
Terraform resource link: https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/api_gateway_rest_api
AWS API Gateway Difference between REST API and HTTP API:  https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-vs-rest.html#http-api-vs-rest.differences.management

Hi @RubberDuckDestroyer !
Thanks for opening this feature request.
We have no plans to develop a module for API Gateway v1, but we can consider doing it if a company or two want to sponsor its development. This is how some of the Terraform AWS modules were developed in the past.
If you want to continue this discussion, please book some time, and I can explain the details - https://calendly.com/antonbabenko/letstalk


Selection of piece of text-line in "Log" window

What is the feature you'd like to have?
Ability to select piece of text-line in "Log" window
Additional Information:
Sometimes it'd be easier to select concrete piece of text and then copy it, instead of copying whole line as it works currently.
It's tiny step, but when dealing with lot of scripting and automation in BN, this can be quite annoying.

duplicate of https://github.com/Vector35/binaryninja-api/issues/2439


Rename go module to kuberay

Why are these changes needed?
ray-contrib has been rename to kuberay. code references need corresponding modification
Related issue number
Closes #https://github.com/ray-project/kuberay/issues/39
Checks

[x] I've made sure the tests are passing.
Testing Strategy

[x] Unit tests
[ ] Manual tests
[ ] This PR is not tested :(

/cc @akanso  @chenk008 @chaomengyuan


Add SwiftQueue

Project URL
https://github.com/lucas34/SwiftQueue
Description
Job Scheduler with Concurrent run, failure/retry, persistence, repeat, delay and more
Why it should be included to awesome-ios (optional)
My requirement was quite simple, run tasks with execution constraints. I couldn't find any library for IOS that can do this easily. Existing libs are all lacking of functionalities. So I decided to make my own, inspired by popular job scheduler's library on android like android-priority-jobqueue or android-job.
Checklist

[X] Only one project/change is in this pull request
[X] Addition in chronological order (bottom of category)
[X] Supports iOS 9 / tvOS 10 or later
[X] Supports Swift 3 or later
[X] Has a commit from less than 2 years ago
[X] Has a clear README in English

          1 Warning

:warning:
Found 1 link issue, a project collaborator will take care of these, thanks :)

Link issue by awesome_bot

Line
Status
Link

2369
301
https://github.com/Swiftification/Dispatch redirects tohttps://github.com/JARMourato/Dispatch

  Generated by :no_entry_sign: Danger

Hey @lucas34, thanks for contributing! 👍
Please fix the issue above before we can merge your PR

I haven't worked with Danger before, but the Ci test failed because of "Danger does not have write access to the PR to set a PR status.". The first time I submitted my PR I got the report properly.

He means this issue https://github.com/lucas34/SwiftQueue/issues/3

Well I fix and closed the issue on my repo. If the bot try to update the status on my repo. It won't be able to do it. Should I give permission to awesome-bot on my repo or something ? Or make another PR. I'm a bit clueless about this PR permission issue.

Hey @lucas34, no problem! Thanks again for contributing!


fix: enable cainfo option

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

:exclamation: No coverage uploaded for pull request base (develop@2d0a3fa). Click here to learn what that means.

Additional details and impacted files
@@            Coverage Diff             @@
##             develop      #20   +/-   ##
==========================================
  Coverage           ?   93.51%
==========================================
  Files              ?       44
  Lines              ?      940
  Branches           ?       97
==========================================
  Hits               ?      879
  Misses             ?       41
  Partials           ?       20

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

Pushed another one


I have created signup and login forms using html , CSS and javascript

@Uwanthi good job buddy keep contributing.

@Uwanthi  please again make a PR and before making PR please select relevant folder.


[Refactoring] Better package for command

Current condition
Right now every command are listed in main package
Wanted condition
Should be created new package called command and then migrate all command from main package to that package.
Feel free to contribute.

Hey @insomnius I would like to work on this project, do you have any discord channel running for discussion?

Hey @insomnius I would like to work on this project, do you have any discord channel running for discussion?

Hey @insomnius I would like to work on this project, do you have any discord channel running for discussion?

Currently i don't have any discord channel for this project, but i will create one soon. Thanks for the idea @neo7337

Hey @insomnius I would like to work on this project, do you have any discord channel running for discussion?

Currently i don't have any discord channel for this project, but i will create one soon. Thanks for the idea @neo7337

Hey @insomnius I would like to work on this project, do you have any discord channel running for discussion?

Currently i don't have any discord channel for this project, but i will create one soon. Thanks for the idea @neo7337

Lemme know when you have it up and running! @insomnius

Hey @insomnius I would like to work on this project, do you have any discord channel running for discussion?

Currently i don't have any discord channel for this project, but i will create one soon. Thanks for the idea @neo7337

Lemme know when you have it up and running! @insomnius

Hey @neo7337 you could join our discord channel here. Currently the member is only me.

Hey @neo7337 you could join our discord channel here. Currently the member is only me.
https://discord.com/invite/jK5TS8X8

Do not paste the bare link, you should tell or refer to the readme
Example:
Hey @blablablablaxxx kindly check our readme to join our discord channel or you just simply click here

Nice point @januridp , would do that next time.


To Boldly Go not paying out

Raised by nobodyhasthis2:

I am still having problems getting "To boldly go" to work in the game. I do have a ton of mods installed and something is stopping Strategia. Although contract configure is running fine. Can I send you a PM with a link to a save file?

and _Zee:

I am not sure if you need a save with craft holding all the data just before recovery or the a save from the space center after recovery. What is more useful?

Also worth mentioning that I have science funding running (in lieu of some stock contracts). So the OnScienceReceived event would also be generating money anyway. I am wondering if blocks the biomes bonus shown above.

I'm also having issues getting To Boldly Go to pay out any bonuses. Tested this watching my funds like a hawk after landing on the Mun for the first time.

Think this got fixed at some point, working now.  Need to release soon


cannot get response today

today cannot get the response from Claude

still could create a new chat；but cannot get the response from Claude
but the Claude website could see the new chat and the response

I also got the same problem today

While the direct response only returns an empty string now, you can still get the actual response by accessing it through the chat history:
history = claude_api.chat_conversation_history(claude_api.list_all_conversations()[-1]["uuid"]) # latest conversation
print(history["chat_messages"][0]["text"]) # last message

This is really annoying though, hopefully it starts working normally again.

After some testing I found out that way is not reliable. Here is a more robust way that also confirms claude actually replied to our last prompt (I am sorting the messages by date to make sure of the order):
from datetime import datetime

def get_latest_reply(uuid: str) -> str:
    history = claude_api.chat_conversation_history(uuid)
    sorted_entries = sorted(history["chat_messages"], key=lambda entry: datetime.strptime(entry["created_at"], "%Y-%m-%dT%H:%M:%S.%f%z"))
    return sorted_entries[-1]["text"] if sorted_entries[-1]["sender"] == "assistant" else ""

To replace the data parsing inside the send_message function, you can modify the code to something like this

It has no effect.

To replace the data parsing inside the send_message function, you can modify the code to something like this

this is work！！！
thanks for that~

I tried the above code change, but it is still empty?

try to change the “send message to Claude” function into this：
` # Send Message to Claude
def send_message(self, prompt, conversation_id, attachment=None):
url = "https://claude.ai/api/append_message"
# Upload attachment if provided
attachments = []
if attachment:
  attachment_response = self.upload_attachment(attachment)
  if attachment_response:
    attachments = [attachment_response]
  else:
    return {"Error: Invalid file format. Please try again."}

# Ensure attachments is an empty list when no attachment is provided
if not attachment:
  attachments = []

payload = json.dumps({
  "completion": {
    "prompt": f"{prompt}",
    "timezone": "Asia/Kolkata",
    "model": "claude-2"
  },
  "organization_uuid": f"{self.organization_id}",
  "conversation_uuid": f"{conversation_id}",
  "text": f"{prompt}",
  "attachments": attachments
})

headers = {
  'User-Agent':
  'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/115.0',
  'Accept': 'text/event-stream, text/event-stream',
  'Accept-Language': 'en-US,en;q=0.5',
  'Referer': 'https://claude.ai/chats',
  'Content-Type': 'application/json',
  'Origin': 'https://claude.ai',
  'DNT': '1',
  'Connection': 'keep-alive',
  'Cookie': f'{self.cookie}',
  'Sec-Fetch-Dest': 'empty',
  'Sec-Fetch-Mode': 'cors',
  'Sec-Fetch-Site': 'same-origin',
  'TE': 'trailers'
}

response = requests.post(url, headers=headers, data=payload, stream=True)
decoded_data = response.content.decode("utf-8")
data_strings = decoded_data.strip().split('\n')
data_strings = [item for item in data_strings if item != '']
completions = []
for data_string in data_strings:
    json_str = data_string[6:].strip()
    data = json.loads(json_str)
    if 'completion' in data:
        completions.append(data['completion'])

answer = ''.join(completions)

# Returns answer
return answer

`

when can you push the updated code to repo? thanks.

Can you provide a complete example

哈哈哈，北京的大佬，上面的代码是重庆的小哥写的，让他push吧，我不合适

hhaha

I updated the above code, but I still got an empty reply, can you get a valid one

try this code
`from claude_api import Client
cookie =‘ your cookie here  ’
claude_api = Client(cookie)
new_chat = claude_api.create_new_chat()
conversation_id = new_chat['uuid']
print(conversation_id)
prompt = "Hello, Claude!"
response = claude_api.send_message(prompt, conversation_id)
print(response)
`

could you please make your code highlighted? haha

# Send Message to Claude
def send_message(self, prompt, conversation_id, attachment=None):
url = "https://claude.ai/api/append_message"

# Upload attachment if provided
attachments = []
if attachment:
  attachment_response = self.upload_attachment(attachment)
  if attachment_response:
    attachments = [attachment_response]
  else:
    return {"Error: Invalid file format. Please try again."}

# Ensure attachments is an empty list when no attachment is provided
if not attachment:
  attachments = []

payload = json.dumps({
  "completion": {
    "prompt": f"{prompt}",
    "timezone": "Asia/Kolkata",
    "model": "claude-2"
  },
  "organization_uuid": f"{self.organization_id}",
  "conversation_uuid": f"{conversation_id}",
  "text": f"{prompt}",
  "attachments": attachments
})

headers = {
  'User-Agent':
  'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/115.0',
  'Accept': 'text/event-stream, text/event-stream',
  'Accept-Language': 'en-US,en;q=0.5',
  'Referer': 'https://claude.ai/chats',
  'Content-Type': 'application/json',
  'Origin': 'https://claude.ai',
  'DNT': '1',
  'Connection': 'keep-alive',
  'Cookie': f'{self.cookie}',
  'Sec-Fetch-Dest': 'empty',
  'Sec-Fetch-Mode': 'cors',
  'Sec-Fetch-Site': 'same-origin',
  'TE': 'trailers'
}

response = requests.post(url, headers=headers, data=payload, stream=True)
decoded_data = response.content.decode("utf-8")
data_strings = decoded_data.strip().split('\n')
data_strings = [item for item in data_strings if item != '']
completions = []
for data_string in data_strings:
    json_str = data_string[6:].strip()
    data = json.loads(json_str)
    if 'completion' in data:
        completions.append(data['completion'])

answer = ''.join(completions)

# Returns answer
return answer

It's fixed now.Please update the package!


ISPN-5683 Enable Checkstyle

https://issues.jboss.org/browse/ISPN-5683
In order to run checkstyle you have to:

build ISPN as usual (it's not strictly required by keep in mind that we need infinispan-checkstyle artifact
invoke mvn (or build.sh) checkstyle:check

As soon as this PR will get integrated, I'll add this check to PR builder.
Additional rules will be turned on gradually.

Pushed, thanks

Couple of things:

After running checkstyle:check, where can I see the report?
It breaks when I build a module directly:

$ cd lucene/lucene-directory
$ mvn clean install
$ [INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.164 s
[INFO] Finished at: 2016-03-22T18:58:37+00:00
[INFO] Final Memory: 27M/429M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:2.17:checkstyle (checkstyle) on project infinispan-lucene-directory:
An error has occurred in Checkstyle report generation. Failed during checkstyle execution:
Unable to find configuration file at location: /home/gfernandes/code/infinispan/lucene/lucene-directory/checkstyle/src/main/resources/checkstyle.xml:
Could not find resource '/home/gfernandes/code/infinispan/lucene/lucene-directory/checkstyle/src/main/resources/checkstyle.xml'. -> [Help 1]

Sent https://github.com/infinispan/infinispan/pull/4163 to be able to run lucene-directory tests in isolation


List: set aria-setsize and aria-posinset

Fixes #27900 for the list widget
Please note: that the splice seems to be called even when the focus changes in the list so I might be calling set aria-setsize a bit too often.
Also note that aria-posinset should start with 1, not 0 thus I am doing +1. More details: https://www.w3.org/TR/wai-aria/states_and_properties#aria-posinset
@joaomoreno once you approve on this I can do a similar thing for the tree
@alexandrudima fyi

Nice! Thank you @isidorn @joaomoreno !


Add ability to create issues in Jira / Atlassian

https://github.com/GovReady/Issue-Packs/pull/24
Created a pull request for JIRA support with basic auth


Admin Filter for "Users I Created"

To implement this feature, create UserFilter.svelte similarly to how the project filter is implemented. Additionally, add the "Users I Created" filter to the user filter.

Open to possible adjustments/standardizations to translation in en.json

Still need to address Kevin's comment


Documentation updates

Quick fix for content's method docblock and associate/Model documentation.

Whoops. Thought I had made a branch for these changes — no sleep side=effects. I'll just wait to see what happens with this PR so I can keep submitting others. :-)

@Crinsane

Thanks for the PR, but I've just myself rewritten the documentation, so no need anymore for me to merge this I think. If I've missed out on anything, please let me know!


fancy_v_count can't internally run assign_cn_to_ssm

This bug happens when GAMBLR.data is loaded.
library(GAMBLR.datra)
> comp_report(this_sample = "HTMCP-01-06-00422-01A-01D",
+                   out = "reports/",
+                   export_individual_plots = TRUE)
Using the bundled CN segments (.seg) calls in GAMBLR.data...
Error:  You have given one or more unsupported or deprecated argument to  assign_cn_to_ssm . Please check the documentation and spelling of your arguments.
Offending argument(s): from_flatfile,use_augmented_maf

There is another error when GAMBLR.results is loaded.
>       comp_report(this_sample = "HTMCP-01-06-00422-01A-01D",
+                    out = "reports/",
+                    export_individual_plots = TRUE)

Error in get_sample_wildcards(this_sample_id, seq_type) :
  object 'seq_type' not found
In addition: Warning message:
In if (tissue_status_filter == "normal") { :
  the condition has length > 1 and only the first element will be used

Thanks for reporting this. I can have a look at this and propose a fix.


Docs

Description
This PR adds developer documentation for the project. As I'm looking to step back from leading the project this is a great time to ask any questions you may have about Dune or the development setup or just about anything so we can record it now.
Fixes: #210 #211 #212 #173
Type of change

[X] Documentation (non-breaking change that adds or improves the documentation)
[ ] New feature (non-breaking change which adds functionality)
[ ] Optimization (non-breaking, back-end change that speeds up the code)
[ ] Bug fix (non-breaking change which fixes an issue)
[ ] Breaking change (whatever its nature)

Key checklist

[ ] All tests pass (eg. python -m pytest)
[ ] The documentation builds and looks OK (eg. python -m sphinx -b html docs docs/build)
[ ] Pre-commit hooks run successfully (eg. pre-commit run --all-files)

Further checks

[ ] Code is commented, particularly in hard-to-understand areas
[ ] Tests added or an issue has been opened to tackle that in the future. (Indicate issue here: # (issue))

Sounds good @dalonsoa. I've made #251 to track.


Replace the DraggbleHBox with a simple Label.

The javafx.Label is able to hold an Icon and a Text, so there seems to be no need to have a custom HBox-Class that does the job of holding an Icon and a Text at once.
Big Questions is, whether you can drag and drop the Label like the custom HBox-Class. Take a look at mouse click listeners etc...
If possible, replace it. Otherwise close this issue and comment it accordingly.

Please close, if done.


Tweak wording in labels file

Another alternative for

point users to things they can help contribute with

is:

point users to things they can help with

While I'm here... this line ends with "working on the issue":
https://github.com/exercism/org-wide-files/blob/2b6aa296713995bfe43de696432fc65254606b66/global-files/.github/labels.yml#L22
but labels can be applied to both issues and PRs, right? So "working on an issue" might communicate "labels can only be applied to issues" - a PR might not have a corresponding issue.
So perhaps

when working on the issue/PR

And consider whether
https://github.com/exercism/org-wide-files/blob/2b6aa296713995bfe43de696432fc65254606b66/global-files/.github/labels.yml#L10
starts better as e.g.:

# If either file is changed,

I find it's often clearer to prefer the singular in technical writing.

Sooo...I like these changes, but I wouldn't necessarily want to send another batch of PRs right now. So either we:

Leave this PR open for a while
Merge this and cancel the workflow

Right @SaschaMann?

This isn't worth sending out 300 PRs imo. We can merge it with [ci skip] in the message and then it'll be synced during the next batch automatically.

@SaschaMann Can you merge it?

Thanks, @ee7 :)

No problem.
Quick questions about labels - sorry if I missed the discussion:

Is there an official stance on whether an Exercism-wide label should be applied to a PR? Do we let repos decide?
Does a PR with such a label appear on the website? (I assume the answer is "no", and the docs seem to indicate that).

Is there an official stance on whether an Exercism-wide label should be applied to a PR? Do we let repos decide?

We do. The official labels are required if a track want to modify the experience gained from a PR: https://github.com/exercism/docs/blob/main/product/reputation.md#4-creating-pull-requests

Does a PR with such a label appear on the website? (I assume the answer is "no", and the docs seem to indicate that).

They don't.

Okay, thanks.
Some more:

If a PR lacks an x:size label, but closes an issue that does have an x:size label, does the issue label determine the awarded reputation?
If yes, what happens if a PR closes multiple issues, but has no reputation label itself?
If the x:size label on an issue is different from the x:size label on the PR, does the label with the highest reputation value determine the awarded reputation? Or is it just the label on the PR with the highest reputation value?

The docs say:

The reputation awarded for a pull request review changes if one of the following labels are added to the pull request

If more than one label is specified, the label with the highest reputation value determines the awarded reputation.

Which suggests "only the label on the PR matters" - correct? It's just that it seems easy to forget to apply the label to the PR, given that applying it to the issue makes the size searchable on the website.
(Again, sorry if this was already discussed, or is on a roadmap somewhere).

Which suggests "only the label on the PR matters" - correct? It's just that it seems easy to forget to apply the label to the PR, given that applying it to the issue makes the size searchable on the website.

That is correct. There is indeed a possibility for forgetting to apply the size label on a PR, so that's unfortunately a burden on the maintainers.


TV Episodes

I can't use the powerRename function to rename TV show episodes because of the space and the Brackets it adds to enumerations. Can you please add a check box to leave that out. I just want normal enumeration.

Thanks for the message, but this repository is about the documentation. Head over to https://github.com/microsoft/PowerToys to create an issue there.

Closing. Not a doc issue.


Acc - Reader - "VoiceOver keys" - VoiceOver narrate wrongly position in menu

Bug Report
Steps
Navigate to the menu component:
https://stardust-ui.github.io/react/components/menu
OSX/Chrome/VoiceOver
Navigate through the each menu on the page using VoiceOver keys. (Control+Option+right/left arrow key)
Expected Result
position in the menu is narrated correctly as
1 of [total number of menu items]
2 of [total number of menu items]
3  of [total number of menu items]
etc...
Actual Result
VoiceOver narrate position incorrectly on some menus, like:
2 of 6
4 of 6
6 of 6
even menu has only 3 menu items.
Version
x.y.z
Testcase

Menu uses :before for vertical line between items.
It can be probably fixed by boxShadow:
boxShadow: `-1px 0 0 0 ${primary ? v.primaryBorderColor : v.borderColor} inset`

But pointing menu uses :after for the beak:

I have no idea how this could be avoided. But even with this, getting rid of the :before would improve the current situation.
Other than that, there are almost 10 other places in Teams theme where :before or :after is used.  Are we sure screen readers are happy with all other ones?

#1066 does not fix OSX/Chrome/VoiceOver.


Relax functor lint rules in ppx_version

Quoting from the original README

One linter rule is that stable-versioned modules cannot be contained in the result of a functor application. The reason is that the types might depend on the functor arguments, so that distinct functor applications yield different types with different serializations. Functors that take no module arguments are allowed to return stable-versioned modules.

This rule makes the following code illegal:
module Functor (X : sig type x val foo :int end) = struct
  type x = X.x

  let f = g X.foo

  [%%versioned
  module Stable = struct
    module V1 = struct
      type t = string
      let to_latest =  Fn.id
    end
  end]
end

This turns out to be overly conservative and can cause problems when writing/refactoring harmless code. Take for example  zkapp_command.ml where you have versioned modules nested inside the top level. If you wanted to change Call_forest to a functor, you can't. Even if the functor's argument doesn't appear at all in the versioned module.
This PR changes the linting rule to enforce that it is only illegal if you access a functor's argument directly in types defined wia %%versioned extension if you are outside of an expression. I figure that it's allowed in an expression because AFAIK we are only using this as a method to version types for coherent serialization

!ci-build-me

!ci-build-me

!ci-nix-me

Nix Ci was successful: https://buildkite.com/o-1-labs-2/mina-nix-experimental/builds/34#0191ef23-0638-4f01-86a9-a9a1b11d10a4
This includes execution of ppx_version tests (not part of our regular CI).


Standardise the use of Expanded, Expandable, IsExpanded and IsExpandable

MudBlazor currently uses the Expanded, Expandable, IsExpanded and IsExpandable properties. This PR aims to standardise the use of Expanded and Expandable.
Description
#6131, #8447,
If this PR is approved, the v7 migration guide must also be updated, as this makes a breaking change.
How Has This Been Tested?
unit | visually
Type of Changes

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[x] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Documentation (fix or improvement to the website or code docs)

Checklist

[x] The PR is submitted to the correct branch (dev).
[x] My code follows the code style of this project.
[x] I've added relevant tests.

introduces ParameterState to MudNavGroup

I would do in a separate PR and there are nuances, and it would be easier for me to explain in a smaller PR.

@BieleckiLtd thank you for helping! I agree with the proposed changes.
This is gonna be conflicted by #8661 which totally overhauls treeview. Hope it won't be too much work to merge.
Could you prepare a list of changes in the format of

MudExpansionPanel: replace IsExpanded with Expanded
...

That would help me a lot, when integrating with the migration guide.
Finally, because Razor doesn't raise errors with parameters that don't exist, it is necessary to do a Find in Files to check for any remaining instances of IsEx.+. I take it you did that?
There are quite a few other parameters starting with Is prefix, I guess we should get rid of all of them in separate PRs. Let me know if you want to do those too.

This is gonna be conflicted by https://github.com/MudBlazor/MudBlazor/pull/8661

I will wait for #8661 to be merged then then pull dev into my branch and resolve conflicts. Setting this as a draft for now.

Could you prepare a list of changes

Ok.

parameters that don't exist, it is necessary to do a Find in Files to check for any remaining instances of IsEx.+. I take it you did that?

Yes, I did.

There are quite a few other parameters starting with Is prefix, I guess we should get rid of all of them in separate PRs. Let me know if you want to do those too.

That would make sense if we're breaking things. I can work on them on a case by case basis like this PR. Few that I have found are
IsEnabled
IsDisabled
IsChecked
IsVisible
IsSelected
IsExpanded #8718
IsActive
IsValid

MudExpansionPanel: replace IsExpanded with Expanded
MudExpansionPanel: replace IsExpandedChanged with ExpandedChanged
GroupDefinition: replace IsExpandedChanged with ExpandedChanged
MudTHeadRow: replace IsExpandable with Expandable
MudTFootRow: replace IsExpandable with Expandable
MudTableGroupRow: replace IsExpanded with Expanded
MudTr: replace IsExpandable with Expandable

@BieleckiLtd Thanks, this is big help!

Added to v7.0.0 Migration Guide #8447


MFEM_USE_METIS_5 not correctly set with Cmake

Compiling MFEM (from the current Master branch) and linking to METIS 5.1.0 with CMake (version 3.17.2), I obtained the following error when cmake --build . --target check after building:
Undefined symbols for architecture x86_64:
  "_METIS_PartGraphVKway", referenced from:
      mfem::Mesh::GeneratePartitioning(int, int) in libmfem.a(mesh.cpp.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [examples/ex1p] Error 1
make[2]: *** [examples/CMakeFiles/ex1p.dir/all] Error 2
make[1]: *** [CMakeFiles/check.dir/rule] Error 2
make: *** [check] Error 2

It appears the MFEM_USE_METIS_5 variable is not set correctly and the code attempts linking for the functions in mesh.cpp such as void METIS_PartGraphVKway not defined in METIS 5.
I was able to solve the issue by adding option(MFEM_USE_METIS_5 "Enable METIS 5" ON) to user.cmake (or, equivalently, defaults.cmake).
However, according to INSTALL the option MFEM_USE_METIS_5 should be auto-detected.

Can you try this: run the CMake config step where metis 5 is not auto-detected correctly and then take a look inside the file CMakeFiles/CMakeError.log. There should be a line like this:
Performing C++ SOURCE FILE Test METIS_VERSION_5 failed with the following output:

with some errors reported after it -- these should explain why auto-detection failed.

In the CMakeError.log is no statement about METIS.
However, in CMakeCache.txt, the following lines are generated:
//Path to the METIS library.
METIS_DIR:PATH=/Users/stefan/LLNL/LIBS/parmetis-4.0.3

//METIS was found.
METIS_FOUND:BOOL=TRUE

//Path to the METIS include dir.
METIS_INCLUDE_DIRS:PATH=/Users/stefan/LLNL/LIBS/parmetis-4.0.3/metis/include

//Path to libmetis.
METIS_LIBRARIES:PATH=/Users/stefan/LLNL/LIBS/parmetis-4.0.3/build/Darwin-x86_64/libmetis/libmetis.a

//Is METIS version 5?
METIS_VERSION_5:BOOL=

Note that I set the METIS_INCLUDE_DIRS and METIS_LIBRARIES myself in user.cmake.

I see... Setting METIS_DIR and ParMETIS_DIR to the ParMETIS directory didn't work (it wouldn't automatically find the paths to the library and include files within /Users/stefan/LLNL/LIBS/parmetis-4.0.3) so I set the include path and libraries directly, but I wasn't aware it would disable this auto-detection for the METIS version. Thank you for the clarification! I'll close this issue for now and hope that anybody who runs into the same problem will consult the github search in the repo and find your answer. Many thanks!

You are welcome.
Just to clarify: METIS_DIR is expected to point to an installation of the library, so it searches paths like ${METIS_DIR}/include for metis.h and ${METIS_DIR}/lib for the library file. As a backup, it searches a few other places but not the one used by the cmake build process for METIS 5. Similar rule applies to ParMETIS_DIR. Therefore, I'll just recommend you install the libraries in some directory and give that path to mfem's cmake.


Fix 'connect' event handler leak

This PR should fix possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit issue when using http agent with keep-alive enabled.

Thanks! +<EMAIL_ADDRESS>


Markup balloon's direction is different when I use photoMediaItem

When I use photoMediaItem to send photo in bubble chat, I have wrong balloon's direction.
In paticular, left user's ballon's direction became like right user's ballon's direction.
I am not sure it is bug or not.
■Messages
<User 1>
JSQMessage *message = [[JSQMessage alloc] initWithSenderId:@"user1"
senderDisplayName:@"first"
date:[NSDate date]
text:JSONDict[@"Message"][@"content"]];
[self.messages addObject:message];
<User 2>
JSQMessage *message2 = [JSQMessage messageWithSenderId:@"user2"
displayName:@"second"
text:JSONDict[@"Message"][@"content"]];
[self.messages addObject:message2];
■Send photo
<User 2>
JSQMessage *photoMessage = [JSQMessage messageWithSenderId:@"user2"
displayName:@"second"
media:photoMediaItem];
[self.messages addObject:photoMessage];
By the way the below pic is my favorite pic. When Steve Jobs went to haven, there are many apples and flowers in front of Shibuya's Apple store in Tokyo.
Best Regards

see #713,
You need set senderId.

Thank you so much, weekwood !!   I will check it out :+1:

hey @tomojiro1125 - you'll also need to set appliesMediaViewMaskAsOutgoing on all media items. see the docs for more details.

@jessesquires Why isn't appliesMediaViewMaskAsOutgoing  set automatically? Message items are fine.


 Ive tried a couple of things but i cannot seem to get it working.

Hello,
I've turned this into a package, you can follow the instructions under:
https://github.com/andydbc/unity-texture-packer/tree/master#install
let me know if you have questions,
Andy

For the installation instructions adding the line to the manifest.json kept giving me an error. Unity said it was not correct JSON. However, simply unzipping and adding through the package manager worked and automatically added the dependency to the manifest.json. I'm not sure if the first step is necessary at all.


HTC with Custom Dataset - error in training

Describe the bug
RuntimeError: CUDA error: device-side assert triggered; training HTC with the custom dataset.
It looks like related to the shape of gt_sematic_seg {torch.Size([2, 1, 100, 168])} and mask_pred torch.Size([2, 16, 100, 168]) .
I checked the shape for gt_sematic_seg is coming from formatting.py and the shape for mask_pred is coming from the call self.semantic_head(x) in htc_roi_head.py.
I have 16 classes in my dataset and I updated this in the config file (pasted below), at all the reqrueid places.
I have created a stuff dataset for my custom dataset (all the train, test, Val, stuff images are in .tiff format).
I am not aware if we have to specifically generate annotation JSON for stuffthingmaps (custom); in my implementation, I don't have it. Also if this is the case how can you specify the path for this?
Any help in solving this issue would be really helpful.
Reproduction

What command or script did you run?

!python tools.train.py config_file_name

Did you make any modifications on the code or config? Did you understand what you have modified?
Changed config file:

_base_ = '/content/mmdetection/configs/htc/htc_r50_fpn_1x_coco.py'

model = dict(
    roi_head=dict(
		semantic_head=dict(
						 type='FusedSemanticHead',
						 num_classes=16),
        bbox_head=[
            dict(
                type='Shared2FCBBoxHead',
                num_classes=16),
            dict(
                type='Shared2FCBBoxHead',
                num_classes=16),
            dict(
                type='Shared2FCBBoxHead',
                num_classes=16)],

    mask_head=[
		dict(
			type='HTCMaskHead',
			num_classes=16),
		dict(
			type='HTCMaskHead',
			num_classes=16),
		dict(
			type='HTCMaskHead',
			num_classes=16)]))

data_root = '/content/HTC/'

dataset_type = 'COCODataset'
classes = ('armchair','bed','door1','door2','sink1','sink2','sink3','sink4','sofa1','sofa2','table1','table2','table3','tub','window1','window2')
data = dict(
    train=dict(
		    seg_prefix='/content/HTC_Dataset/train_mask/',
        img_prefix='/content/HTC_Dataset/train/',
        classes=classes,
        ann_file='/content/HTC_Dataset/train/annotations_train.json'),
    val=dict(
        img_prefix='/content/HTC_Dataset/val/',
        classes=classes,
        ann_file='/content/HTC_Dataset/val/annotations_val.json'),
    test=dict(
        img_prefix='/content/HTC_Dataset/test/',
        classes=classes,
        ann_file='/content/HTC_Dataset/test/annotations_test.json'))

optimizer = dict(type='SGD', lr=0.0025, momentum=0.9, weight_decay=0.0001)
optimizer_config = dict(grad_clip=None)

lr_config = dict(
    policy='step',
    warmup='linear',
    warmup_iters=500,
    warmup_ratio=0.001,
    step=[8, 11])

runner = dict(type='EpochBasedRunner', max_epochs=12)
log_config = dict(interval=100)

load_from = '/content/checkpoints/htc_r50_fpn_1x_coco_20200317-7332cf16.pth'

What dataset did you use?
I used custom dataset. I have train, test, Val and stuffthingmaps generated.
Environment

Please run python mmdet/utils/collect_env.py to collect necessary environment information and paste it here.
sys.platform: linux
Python: 3.7.10 (default, May  3 2021, 02:48:31) [GCC 7.5.0]
CUDA available: True
GPU 0: Tesla K80
CUDA_HOME: /usr/local/cuda
NVCC: Build cuda_11.0_bu.TC445_37.28845127_0
GCC: gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
PyTorch: 1.8.0+cu111
PyTorch compiling details: PyTorch built with:

GCC 7.3
C++ Version: 201402
Intel(R) Math Kernel Library Version 2020.0.0 Product Build 20191122 for Intel(R) 64 architecture applications
Intel(R) MKL-DNN v1.7.0 (Git Hash 7aed236906b1f7a05c0917e5257a1af05e9ff683)
OpenMP 201511 (a.k.a. OpenMP 4.5)
NNPACK is enabled
CPU capability usage: AVX2
CUDA Runtime 11.1
NVCC architecture flags: -gencode;arch=compute_37,code=sm_37;-gencode;arch=compute_50,code=sm_50;-gencode;arch=compute_60,code=sm_60;-gencode;arch=compute_70,code=sm_70;-gencode;arch=compute_75,code=sm_75;-gencode;arch=compute_80,code=sm_80;-gencode;arch=compute_86,code=sm_86
CuDNN 8.0.5
Magma 2.5.2
Build settings: BLAS_INFO=mkl, BUILD_TYPE=Release, CUDA_VERSION=11.1, CUDNN_VERSION=8.0.5, CXX_COMPILER=/opt/rh/devtoolset-7/root/usr/bin/c++, CXX_FLAGS= -Wno-deprecated -fvisibility-inlines-hidden -DUSE_PTHREADPOOL -fopenmp -DNDEBUG -DUSE_KINETO -DUSE_FBGEMM -DUSE_QNNPACK -DUSE_PYTORCH_QNNPACK -DUSE_XNNPACK -O2 -fPIC -Wno-narrowing -Wall -Wextra -Werror=return-type -Wno-missing-field-initializers -Wno-type-limits -Wno-array-bounds -Wno-unknown-pragmas -Wno-sign-compare -Wno-unused-parameter -Wno-unused-variable -Wno-unused-function -Wno-unused-result -Wno-unused-local-typedefs -Wno-strict-overflow -Wno-strict-aliasing -Wno-error=deprecated-declarations -Wno-stringop-overflow -Wno-psabi -Wno-error=pedantic -Wno-error=redundant-decls -Wno-error=old-style-cast -fdiagnostics-color=always -faligned-new -Wno-unused-but-set-variable -Wno-maybe-uninitialized -fno-math-errno -fno-trapping-math -Werror=format -Wno-stringop-overflow, LAPACK_INFO=mkl, PERF_WITH_AVX=1, PERF_WITH_AVX2=1, PERF_WITH_AVX512=1, TORCH_VERSION=1.8.0, USE_CUDA=ON, USE_CUDNN=ON, USE_EXCEPTION_PTR=1, USE_GFLAGS=OFF, USE_GLOG=OFF, USE_MKL=ON, USE_MKLDNN=ON, USE_MPI=OFF, USE_NCCL=ON, USE_NNPACK=ON, USE_OPENMP=ON,

TorchVision: 0.9.0+cu111
OpenCV: 4.1.2
MMCV: 1.3.9
MMCV Compiler: GCC 7.3
MMCV CUDA Compiler: 11.1
MMDetection: 2.14.0+5f61347

You may add addition that may be helpful for locating the problem, such as

How you installed PyTorch [e.g., pip, conda, source]
used pip
Other environment variables that may be related (such as $PATH, $LD_LIBRARY_PATH, $PYTHONPATH, etc.)

Error traceback
If applicable, paste the error trackback here.
/pytorch/aten/src/THCUNN/SpatialClassNLLCriterion.cu:106: cunn_SpatialClassNLLCriterion_updateOutput_kernel: block: [1,0,0], thread: [351,0,0] Assertion `t >= 0 && t < n_classes` failed.
/pytorch/aten/src/THCUNN/SpatialClassNLLCriterion.cu:106: cunn_SpatialClassNLLCriterion_updateOutput_kernel: block: [1,0,0], thread: [1023,0,0] Assertion `t >= 0 && t < n_classes` failed.
/pytorch/aten/src/THCUNN/SpatialClassNLLCriterion.cu:106: cunn_SpatialClassNLLCriterion_updateOutput_kernel: block: [1,0,0], thread: [256,0,0] Assertion `t >= 0 && t < n_classes` failed.
/pytorch/aten/src/THCUNN/SpatialClassNLLCriterion.cu:106: cunn_SpatialClassNLLCriterion_updateOutput_kernel: block: [1,0,0], thread: [775,0,0] Assertion `t >= 0 && t < n_classes` failed.
/pytorch/aten/src/THCUNN/SpatialClassNLLCriterion.cu:106: cunn_SpatialClassNLLCriterion_updateOutput_kernel: block: [1,0,0], thread: [776,0,0] Assertion `t >= 0 && t < n_classes` failed.
/pytorch/aten/src/THCUNN/SpatialClassNLLCriterion.cu:106: cunn_SpatialClassNLLCriterion_updateOutput_kernel: block: [1,0,0], thread: [671,0,0] Assertion `t >= 0 && t < n_classes` failed.
/pytorch/aten/src/THCUNN/SpatialClassNLLCriterion.cu:106: cunn_SpatialClassNLLCriterion_updateOutput_kernel: block: [1,0,0], thread: [943,0,0] Assertion `t >= 0 && t < n_classes` failed.
/pytorch/aten/src/THCUNN/SpatialClassNLLCriterion.cu:106: cunn_SpatialClassNLLCriterion_updateOutput_kernel: block: [1,0,0], thread: [944,0,0] Assertion `t >= 0 && t < n_classes` failed.
img shape formating -  torch.Size([3, 608, 1344])
gt_semantic_seg in formatting 1 -  (76, 168)
gt_semantic_seg in formatting 2 -  torch.Size([1, 76, 168])
img shape formating -  torch.Size([3, 800, 832])
gt_semantic_seg in formatting 1 -  (100, 104)
gt_semantic_seg in formatting 2 -  torch.Size([1, 100, 104])
Traceback (most recent call last):
  File "tools/train.py", line 188, in <module>
    main()
  File "tools/train.py", line 184, in main
    meta=meta)
  File "/content/mmdetection/mmdet/apis/train.py", line 170, in train_detector
    runner.run(data_loaders, cfg.workflow)
  File "/usr/local/lib/python3.7/dist-packages/mmcv/runner/epoch_based_runner.py", line 127, in run
    epoch_runner(data_loaders[i], **kwargs)
  File "/usr/local/lib/python3.7/dist-packages/mmcv/runner/epoch_based_runner.py", line 50, in train
    self.run_iter(data_batch, train_mode=True, **kwargs)
  File "/usr/local/lib/python3.7/dist-packages/mmcv/runner/epoch_based_runner.py", line 30, in run_iter
    **kwargs)
  File "/usr/local/lib/python3.7/dist-packages/mmcv/parallel/data_parallel.py", line 67, in train_step
    return self.module.train_step(*inputs[0], **kwargs[0])
  File "/content/mmdetection/mmdet/models/detectors/base.py", line 237, in train_step
    losses = self(**data)
  File "/usr/local/lib/python3.7/dist-packages/torch/nn/modules/module.py", line 889, in _call_impl
    result = self.forward(*input, **kwargs)
  File "/usr/local/lib/python3.7/dist-packages/mmcv/runner/fp16_utils.py", line 98, in new_func
    return old_func(*args, **kwargs)
  File "/content/mmdetection/mmdet/models/detectors/base.py", line 171, in forward
    return self.forward_train(img, img_metas, **kwargs)
  File "/content/mmdetection/mmdet/models/detectors/two_stage.py", line 148, in forward_train
    **kwargs)
  File "/content/mmdetection/mmdet/models/roi_heads/htc_roi_head.py", line 269, in forward_train
    gt_labels[j])
  File "/content/mmdetection/mmdet/core/bbox/assigners/max_iou_assigner.py", line 105, in assign
    overlaps = self.iou_calculator(gt_bboxes, bboxes)
  File "/content/mmdetection/mmdet/core/bbox/iou_calculators/iou2d_calculator.py", line 65, in __call__
    return bbox_overlaps(bboxes1, bboxes2, mode, is_aligned)
  File "/content/mmdetection/mmdet/core/bbox/iou_calculators/iou2d_calculator.py", line 250, in bbox_overlaps
    eps = union.new_tensor([eps])
RuntimeError: CUDA error: device-side assert triggered
terminate called after throwing an instance of 'c10::Error'
  what():  CUDA error: device-side assert triggered
Exception raised from create_event_internal at /pytorch/c10/cuda/CUDACachingAllocator.cpp:733 (most recent call first):
frame #0: c10::Error::Error(c10::SourceLocation, std::string) + 0x42 (0x7f174283e2f2 in /usr/local/lib/python3.7/dist-packages/torch/lib/libc10.so)
frame #1: c10::detail::torchCheckFail(char const*, char const*, unsigned int, std::string const&) + 0x5b (0x7f174283b67b in /usr/local/lib/python3.7/dist-packages/torch/lib/libc10.so)
frame #2: c10::cuda::CUDACachingAllocator::raw_delete(void*) + 0x809 (0x7f1742a961f9 in /usr/local/lib/python3.7/dist-packages/torch/lib/libc10_cuda.so)
frame #3: c10::TensorImpl::release_resources() + 0x54 (0x7f17428263a4 in /usr/local/lib/python3.7/dist-packages/torch/lib/libc10.so)
frame #4: <unknown function> + 0x6ea39a (0x7f17b665039a in /usr/local/lib/python3.7/dist-packages/torch/lib/libtorch_python.so)
frame #5: <unknown function> + 0x6ea441 (0x7f17b6650441 in /usr/local/lib/python3.7/dist-packages/torch/lib/libtorch_python.so)
<omitting python frames>
frame #24: __libc_start_main + 0xe7 (0x7f17c87b4bf7 in /lib/x86_64-linux-gnu/libc.so.6)

According to the error information, it seems that union  in File "/content/mmdetection/mmdet/core/bbox/iou_calculators/iou2d_calculator.py", line 250, in bbox_overlaps  is not put on GPU. You can check whether gt_bboxes and bboxes in File "/content/mmdetection/mmdet/models/roi_heads/htc_roi_head.py", line 269, in forward_train are put on GPU or not.

Json file for stuffthingmap is not acquired. If the first one is fine, the problem may lie in the category of stuffthingmaps, you can check the start number of thing category is 0 or 1 and check whether it is the same as the officially provided stuffthingmaps.

@AronLin , Thanks for the inputs.

I checked that gt_bboxes and boxes are on GPU.
In stuffthingmap start number of thing categories is 92.
Following this I also generated my stuffthingmap from 92; specifically following #1779.
Now when I train HTC i move forward but still resulting in error:

/pytorch/aten/src/ATen/native/cuda/ScatterGatherKernel.cu:115: operator(): block: [6,0,0], thread: [61,0,0] Assertion `idx_dim >= 0 && idx_dim < index_size && "index out of bounds"` failed.
/pytorch/aten/src/ATen/native/cuda/ScatterGatherKernel.cu:115: operator(): block: [6,0,0], thread: [62,0,0] Assertion `idx_dim >= 0 && idx_dim < index_size && "index out of bounds"` failed.
/pytorch/aten/src/ATen/native/cuda/ScatterGatherKernel.cu:115: operator(): block: [6,0,0], thread: [63,0,0] Assertion `idx_dim >= 0 && idx_dim < index_size && "index out of bounds"` failed.
Traceback (most recent call last):
  File "tools/train.py", line 188, in <module>
    main()
  File "tools/train.py", line 184, in main
    meta=meta)
  File "/content/mmdetection/mmdet/apis/train.py", line 170, in train_detector
    runner.run(data_loaders, cfg.workflow)
  File "/usr/local/lib/python3.7/dist-packages/mmcv/runner/epoch_based_runner.py", line 127, in run
    epoch_runner(data_loaders[i], **kwargs)
  File "/usr/local/lib/python3.7/dist-packages/mmcv/runner/epoch_based_runner.py", line 50, in train
    self.run_iter(data_batch, train_mode=True, **kwargs)
  File "/usr/local/lib/python3.7/dist-packages/mmcv/runner/epoch_based_runner.py", line 30, in run_iter
    **kwargs)
  File "/usr/local/lib/python3.7/dist-packages/mmcv/parallel/data_parallel.py", line 67, in train_step
    return self.module.train_step(*inputs[0], **kwargs[0])
  File "/content/mmdetection/mmdet/models/detectors/base.py", line 237, in train_step
    losses = self(**data)
  File "/usr/local/lib/python3.7/dist-packages/torch/nn/modules/module.py", line 889, in _call_impl
    result = self.forward(*input, **kwargs)
  File "/usr/local/lib/python3.7/dist-packages/mmcv/runner/fp16_utils.py", line 98, in new_func
    return old_func(*args, **kwargs)
  File "/content/mmdetection/mmdet/models/detectors/base.py", line 171, in forward
    return self.forward_train(img, img_metas, **kwargs)
  File "/content/mmdetection/mmdet/models/detectors/two_stage.py", line 148, in forward_train
    **kwargs)
  File "/content/mmdetection/mmdet/models/roi_heads/htc_roi_head.py", line 304, in forward_train
    bbox_results['bbox_pred'], pos_is_gts, img_metas)
  File "/usr/local/lib/python3.7/dist-packages/mmcv/runner/fp16_utils.py", line 186, in new_func
    return old_func(*args, **kwargs)
  File "/content/mmdetection/mmdet/models/roi_heads/bbox_heads/bbox_head.py", line 442, in refine_bboxes
    img_meta_)
  File "/usr/local/lib/python3.7/dist-packages/mmcv/runner/fp16_utils.py", line 186, in new_func
    return old_func(*args, **kwargs)
  File "/content/mmdetection/mmdet/models/roi_heads/bbox_heads/bbox_head.py", line 480, in regress_by_class
    rois, bbox_pred, max_shape=max_shape)
  File "/content/mmdetection/mmdet/core/bbox/coder/delta_xywh_bbox_coder.py", line 92, in decode
    self.add_ctr_clamp, self.ctr_clamp)
  File "/usr/local/lib/python3.7/dist-packages/mmcv/utils/parrots_jit.py", line 21, in wrapper_inner
    return func(*args, **kargs)
  File "/content/mmdetection/mmdet/core/bbox/coder/delta_xywh_bbox_coder.py", line 211, in delta2bbox
    means = deltas.new_tensor(means).view(1, -1).repeat(1, deltas.size(-1) // 4)
RuntimeError: CUDA error: device-side assert triggered
terminate called after throwing an instance of 'c10::Error'
  what():  CUDA error: device-side assert triggered
Exception raised from create_event_internal at /pytorch/c10/cuda/CUDACachingAllocator.cpp:733 (most recent call first):
frame #0: c10::Error::Error(c10::SourceLocation, std::string) + 0x42 (0x7f792f77f2f2 in /usr/local/lib/python3.7/dist-packages/torch/lib/libc10.so)
frame #1: c10::detail::torchCheckFail(char const*, char const*, unsigned int, std::string const&) + 0x5b (0x7f792f77c67b in /usr/local/lib/python3.7/dist-packages/torch/lib/libc10.so)
frame #2: c10::cuda::CUDACachingAllocator::raw_delete(void*) + 0x809 (0x7f792f9d71f9 in /usr/local/lib/python3.7/dist-packages/torch/lib/libc10_cuda.so)
frame #3: c10::TensorImpl::release_resources() + 0x54 (0x7f792f7673a4 in /usr/local/lib/python3.7/dist-packages/torch/lib/libc10.so)
frame #4: <unknown function> + 0x6ea39a (0x7f79a359139a in /usr/local/lib/python3.7/dist-packages/torch/lib/libtorch_python.so)
frame #5: <unknown function> + 0x6ea441 (0x7f79a3591441 in /usr/local/lib/python3.7/dist-packages/torch/lib/libtorch_python.so)
<omitting python frames>
frame #24: __libc_start_main + 0xe7 (0x7f79b56f5bf7 in /lib/x86_64-linux-gnu/libc.so.6)

This error is coming from "/content/mmdetection/mmdet/core/bbox/coder/delta_xywh_bbox_coder.py" when we are trying to generate a new tensor using mean which is literally 0.
I have some debug information in this folder:
rois shape :  torch.Size([512, 4])
deltas shape :  torch.Size([512, 4])
deltas on cuda :  True
rois on cuda :  True
deltas.size(-1) :  1
means :  [0.0, 0.0, 0.0, 0.0]
Could you please advise me on how to move forward from this error?

@AronLin,
On further debugging, I found that when we try to use deltas (which is actually bbox_pred) we get this error.
If I try to see its shape by deltas.shape output is torch.size([512,4]). But when I try to print or perform an operation I get the error mentioned above.

@AronLin,
On further debugging, I found that when we try to use deltas (which is actually bbox_pred) we get this error.
If I try to see its shape by deltas.shape output is torch.size([512,4]). But when I try to print or perform an operation I get the error mentioned above.

@IAMShashankk , Hi did you solve this problem? I got same problem when training HTC-dcn, which throwback cuda device side assersion that from 'delta_xywh_bbox_coder.py", line 205, in delta2bbox   means = deltas.new_tensor(means).....'

@AronLin,
On further debugging, I found that when we try to use deltas (which is actually bbox_pred) we get this error.
If I try to see its shape by deltas.shape output is torch.size([512,4]). But when I try to print or perform an operation I get the error mentioned above.

@IAMShashankk , Hi did you solve this problem? I got same problem when training HTC-dcn, which throwback cuda device side assersion that from 'delta_xywh_bbox_coder.py", line 205, in delta2bbox means = deltas.new_tensor(means).....'

Not yet :(

Well， I”m no longer bother by that problem now！ As a matter of fact，i shouldnt get into that trouble at all！I diminish that by correcting my HTC configuration file。
FYI， I”ve correct bbox/mask heads settings。To be more specific，I got 2 classes，yet earlier I just modified “num of class” in those heads and ignoring all others（after inherited from base HTC）。Yet chances are that is not enough，because when later I tried to explicitly copy all other param settings for those heads but leaving them untouched，and only modify numofclass again， it worked
Im actually a little  bit confused about this： for my knowledge of MMD，only when I state： delete =True for those heads will the param from base config be cleaned and need to reset from scratch， yet this experience has spoke contradict。
发自我的iPhone
------------------ Original ------------------
From: IAMShashankk @.>
Date: 周六,8月 7,2021 7:06 下午
To: open-mmlab/mmdetection @.>
Cc: Leemengwei @.>, Comment @.>
Subject: Re: [open-mmlab/mmdetection] HTC with Custom Dataset - error in training (#5608)
@AronLin,
On further debugging, I found that when we try to use deltas (which is actually bbox_pred) we get this error.
If I try to see its shape by deltas.shape output is torch.size([512,4]). But when I try to print or perform an operation I get the error mentioned above.
@IAMShashankk , Hi did you solve this problem? I got same problem when training HTC-dcn, which throwback cuda device side assersion that from 'delta_xywh_bbox_coder.py", line 205, in delta2bbox means = deltas.new_tensor(means).....'
Not yet :(
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.

@AronLin,
On further debugging, I found that when we try to use deltas (which is actually bbox_pred) we get this error.
If I try to see its shape by deltas.shape output is torch.size([512,4]). But when I try to print or perform an operation I get the error mentioned above.

@IAMShashankk , Hi did you solve this problem? I got same problem when training HTC-dcn, which throwback cuda device side assersion that from 'delta_xywh_bbox_coder.py", line 205, in delta2bbox means = deltas.new_tensor(means).....'

Not yet :(

Did his solution solve your problem?

Well， I”m no longer bother by that problem now！ As a matter of fact，i shouldnt get into that trouble at all！I diminish that by correcting my HTC configuration file。 FYI， I”ve correct bbox/mask heads settings。To be more specific，I got 2 classes，yet earlier I just modified “num of class” in those heads and ignoring all others（after inherited from base HTC）。Yet chances are that is not enough，because when later I tried to explicitly copy all other param settings for those heads but leaving them untouched，and only modify numofclass again， it worked Im actually a little  bit confused about this： for my knowledge of MMD，only when I state： delete =True for those heads will the param from base config be cleaned and need to reset from scratch， yet this experience has spoke contradict。 发自我的iPhone
…
------------------ Original ------------------ From: IAMShashankk @.> Date: 周六,8月 7,2021 7:06 下午 To: open-mmlab/mmdetection @.> Cc: Leemengwei @.>, Comment @.> Subject: Re: [open-mmlab/mmdetection] HTC with Custom Dataset - error in training (#5608) @AronLin, On further debugging, I found that when we try to use deltas (which is actually bbox_pred) we get this error. If I try to see its shape by deltas.shape output is torch.size([512,4]). But when I try to print or perform an operation I get the error mentioned above. @IAMShashankk , Hi did you solve this problem? I got same problem when training HTC-dcn, which throwback cuda device side assersion that from 'delta_xywh_bbox_coder.py", line 205, in delta2bbox means = deltas.new_tensor(means).....' Not yet :( — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

May I ask how num_classes in your file configuration is set.


IOError Broken Pipe on log

Hi guys, I've started encountering a Broken Pipe on our staging server when authenticating using python-openid. We're using a fork of django-openid-provider but the error itself comes from python-openid at the following line:
IOError: [Errno 32] Broken pipe
  File "django/core/handlers/base.py", line 132, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "django/views/decorators/csrf.py", line 58, in wrapped_view
    return view_func(*args, **kwargs)
  File "openid_provider/views.py", line 115, in openid_server
    return prep_response(request, orequest, oresponse, server)
  File "openid_provider/utils.py", line 116, in prep_response
    webresponse = server.encodeResponse(oresponse)
  File "openid/server/server.py", line 1626, in encodeResponse
    return self.encoder.encode(response)
  File "openid/server/server.py", line 1383, in encode
    response = self.signatory.sign(response)
  File "openid/server/server.py", line 1227, in sign
    signed_response.fields = assoc.signMessage(signed_response.fields)
  File "openid/association.py", line 520, in signMessage
    sig = self.getMessageSignature(signed_message)
  File "openid/association.py", line 496, in getMessageSignature
    return oidutil.toBase64(self.sign(pairs))
  File "openid/association.py", line 471, in sign
    kv = kvform.seqToKV(pairs)
  File "openid/kvform.py", line 57, in seqToKV
    err('Value has whitespace at beginning or end: %r' % (v,))
  File "openid/kvform.py", line 25, in err
    oidutil.log(formatted)
  File "openid/oidutil.py", line 109, in log
    sys.stderr.write(message)

Should sys.stderr be the write way to output this instead of logger.error?
This is a server running using Gunicorn+Django and being run from Supervisor. I'm assuming Supervisor is closing stderr as part of its logging.

This repo is being archived. Closing issue.


test_runner: remove passwords from test reports

These PR changes approach taken in https://github.com/neondatabase/neon/pull/2434.
Now we process all files that are used for report creating.

Do we have an idea of places where passwords still occur?

In exception messages.

Having to scan all the files in the report looks a bit overkill for the task to me.

That was exactly my thought, but unfortunately, there's a possibility that someone will use subprocess.run (instead of our wrapper), and it will expose passwords (even before we had a chance to review the PR and suggest not to use it). Another case is that a program we're running with subprocess_capture will write a password to stdout/stderr, which we capture and attach to the report.
I don't really have another idea of how not only to fix the issue but also try to prevent it to appear again in the future.

In exception messages.

Is it our exception or some third party library? If its ours I think its better to fix it on our side

there's a possibility that someone will use subprocess.run (instead of our wrapper)

The same is possible if password is emitted in a form that doesnt match current regex.
The proper way IMO is to clean up our API, so it is less possible that someone will misuse it. The problem is always caused by invoking postgres binaries and passing connection string to them. So should be possible to fix it with api changes that are not that big. See my previous suggestions, I can elaborate if needed.
Additionally we can set up a lint, (maybe write our own flake8 plugin or something) and require that lint to pass before we run tests that use outside connection credentials.
IMO best option would be to completely remove sensitive data from command line. Password can be passed via an environment variable and we can wrap all pg binaries we use to avoid this in the future for common cases

Thanks for the feedback @LizardWizzard & @funbringer!
Ok, now the password is passing to pgbench via PGPASSWORD


Add key deprecated in description method

This tag allows you to specify requests in the oas schema that will be removed in the next releases

Thanks a lot ! It's a good job, please apply the asked modification and I will merge your Pull Request.

Thank you. I will consider all comments.


[Android]For the first time on android, there's no sound.

Issue details
For the first time on android, there was no sound, only the second time.
Reproduction steps/code
My Code：
public void playSound(String soundName) {
        if (isSound == false)
            return;
        getSound(soundName).play();
    }

 public Sound getSound(String soundName) {
        if (assets.isLoaded(soundName, Sound.class) == true) {
            return assets.get(soundName, Sound.class);
        } else {
            assets.load(soundName, Sound.class);
            assets.finishLoading();
            return assets.get(soundName, Sound.class);
        }
    }

Version of LibGDX and/or relevant dependencies
Libgdx:1.9.8
Idea:2017.2
Please select the affected platforms

[x] Android

As this is a longstanding wontfix issue, I close this now.


Google tracking manager

Hi guys,
Google tracking manager for analytics:
https://developers.google.com/tag-manager/ios/v3/
Any one working on this?

I believe that's a separate SDK and out of the scope of this module.


[BEAM-12244] Use GRPC insecure_channel in expansion service

Switched GRPC connection to expansion_service to work similarly to other connections (job / artifact) in order to resolve connection issues.
Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Choose reviewer(s) and mention them in a comment (R: @username).
[x] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI.

R: @mxm

What is the next step on this PR?

@aaltay I'm waiting for a review (asked from @mxm as apparently he used to work on the code there)

@aaltay I'm waiting for a review (asked from @mxm as apparently he used to work on the code there)

@ihji or @robertwb could also help with reviews. (I do not know if @mxm has time for beam reviews nowadays, hopefully he does.)

Run XVR_Flink PostCommit

What is the next step on this PR?

Note that "expansion_service to work similarly to other connections (job / artifact)" justification only works for some runners. For example, Dataflow only uses the expansion service.

@nirga are you able to send an updated PR ? Otherwise I can start one.

Updating the PR to fallback to insecure channels when secure local channel fails sounds good to me
Would a flag be better so you don't have to wait for local channel to timeout before falling back?

Would a flag be better so you don't have to wait for local channel to timeout before falling back?

IMHO it should use a remote-enabled channel by default and fallback to a local insecure channel in case creating the remote channel fails.

@chamikaramj @nirga bump on this PR, it's been stale for a few months now. Can we please decide on the fix, we are currently maintaining a patch for this in our source code.

This is still an issue. Will there be a fix for this?


translation updates with state undone always deleted

dokuwiki:updateGit (triggered every 5 min) does repo update and languageupdates
https://github.com/dokufreaks/dokuwiki-translation/blob/master/src/org/dokuwiki/translatorBundle/Command/UpdateCommand.php
Get pending submitted translation updates (db entries with state undone) by https://github.com/dokufreaks/dokuwiki-translation/blob/master/src/org/dokuwiki/translatorBundle/Entity/TranslationUpdateEntityRepository.php
Repository::createAndSendPatch is called per translationupdate
https://github.com/dokufreaks/dokuwiki-translation/blob/master/src/org/dokuwiki/translatorBundle/Services/Repository/Repository.php#L304
in both cases, success and failed, the TranslationUpdateEntity is deleted from database. For failed cases this is not right.

Only for success it useful to delete it. If failed, It should remain, with state Undone or maybe with certain error state to reflect the failure (maybe something like the RepositoryEntity has)

Maybe #30 is related?
@dom-mel Could you confirm whether #30 has to be interpreted in this way?

Hmmm #30 is about initial import from git repository. That is of course not about sending submitted translation to repository (what this issue is about). Sorry for the clutter.

Note:
submitted translations are stored as <number>.update files in data/<type>/<name>/updates/ folder. I cannot find any place where these update files are deleted...

TranslationUpdateEntities are not deleted anymore, but used to store status after we tried to sent a patch.
Now an extra command line command that cleans up the remainders is needed.
Translation updates exists of two pieces: the TranslationUpdateEntity and the submitted translation in data/<type>/<name>/updates/<number>.update.


Stack build error: AesonException

I believe there's problem with recent nightlies.
resolver: nightly-2017-08-14
packages:
- '.'
flags: {}
extra-package-dbs: []

Downloaded nightly-2017-08-14 build plan.
AesonException "Error in $.packages.cassava.constraints.flags['bytestring--lt-0_10_4']: Invalid flag name: \"bytestring--lt-0_10_4\""

However, if I use nightly-2017-08-12 then everything works. Or is it stack problem? (1.5.1 x86_64 hpack-0.17.1)

The only mention of anything related to error message is build-constraints.yaml:3375:
# Package flags are applied to individual packages, and override the values of
# global-flags
package-flags:

    # …snip to line 3375…

    cassava:
        pre-bytestring-0-10-4: false

I looked into my nightly-2017-08-14.yaml and replaced bytestring--lt-0_10_4: false with pre-bytestring-0-10-4: false. That fixed the problem. Changing bytestring--lt-0_10_4: false → bytestring-lt-0_10_4: false also solves the initial problem.

I've also found that stack with --flag cassava:-bytestring--lt-0_10_4 yields:
option --flag: Invalid flag name: bytestring--lt-0_10_4

stack from HEAD fixes the problem and — per discussion — it appears that this will get fixed soon. Not sure if I should close the ticket

Thanks for opening the ticket. The next nightly release will fix this by moving back to the older cassava. And as you noted, Stack's HEAD fixes this by doing no flag name validation (yay?).

The issue seems to have returned, possibly with a newer cassava in a more recent LTS:
$ stack new ghc-memory simple
stack new ghc-memory simple
Downloading template "simple" to create project "ghc-memory" in ghc-memory/ ...

The following parameters were needed by the template but not provided: author-email, author-name, category, copyright, github-username
You can provide them in /Users/huanga13/.stack/config.yaml, like this:
templates:
  params:
    author-email: value
    author-name: value
    category: value
    copyright: value
    github-username: value
Or you can pass each one as parameters like this:
stack new ghc-memory simple -p "author-email:value" -p "author-name:value" -p "category:value" -p "copyright:value" -p "github-username:value"

Looking for .cabal or package.yaml files to use to init the project.
Using cabal packages:
- ghc-memory/ghc-memory.cabal

Selecting the best among 12 snapshots...

Downloaded lts-10.0 build plan.
AesonException "Error in $.packages.cassava.constraints.flags['bytestring--lt-0_10_4']: Invalid flag name: \"bytestring--lt-0_10_4\""

Please upgrade to Stack 1.6.1 with stack upgrade
On Thu, Dec 21, 2017 at 5:02 PM, Austin Huang<EMAIL_ADDRESS>wrote:

The issue seems to have returned, possibly with a newer cassava in a more
recent LTS:
$ stack new ghc-memory simple
stack new ghc-memory simple
Downloading template "simple" to create project "ghc-memory" in ghc-memory/ ...
The following parameters were needed by the template but not provided: author-email, author-name, category, copyright, github-username
You can provide them in /Users/huanga13/.stack/config.yaml, like this:
templates:
params:
author-email: value
author-name: value
category: value
copyright: value
github-username: value
Or you can pass each one as parameters like this:
stack new ghc-memory simple -p "author-email:value" -p "author-name:value" -p "category:value" -p "copyright:value" -p "github-username:value"
Looking for .cabal or package.yaml files to use to init the project.
Using cabal packages:

ghc-memory/ghc-memory.cabal

Selecting the best among 12 snapshots...
Downloaded lts-10.0 build plan.
AesonException "Error in $.packages.cassava.constraints.flags['bytestring--lt-0_10_4']: Invalid flag name: "bytestring--lt-0_10_4""
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/fpco/stackage/issues/2759#issuecomment-353372572, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AADBBzJ0u6P3Dx6laydXgGG2v7D1ksQHks5tCnL7gaJpZM4O3ExP
.

Resolved thanks.

On ubuntu also after
stack upgrade
AesonException "Invalid flag name: \"bytestring--lt-0_10_4\""

@spaceblock you probably have the old stack in your PATH, the new one should be in ~/.local/bin.

> $ where stack
/usr/bin/stack

> $ /usr/bin/stack --version
Version <IP_ADDRESS> x86_64

Right, that seems to verify the path issue, <IP_ADDRESS> is too old.

Sorry, I misread the error. I'm not sure how to resolve that one... But you could always get the binary as described in https://docs.haskellstack.org/en/stable/README/

@bergmark  thx, install from curl -sSL https://get.haskellstack.org/ | sh
in ubuntu too old package.

Still an issue for me, even after forcing the reinstallation with curl -sSL https://get.haskellstack.org/ | sh -s - -f
Same setup, and same issues as @spaceblock , I'm kinda lost now

@QLaille looks like the old stack is still in your PATH, is the new one in ~./local/bin?

After trying to move stack in ~/.local/bin , it appears to be quite the same, not sure if I'm doing it wrong

What does stack --version say now?


argcomplete does not work with aws-vault

I've got custom Python script and added argcomplete to it using instructions from https://kislyuk.github.io/argcomplete/. One note - I need to call it using aws-vault cause my script works with Amazon and I need credentials setup before script logic work.
If I call my lptl.py directly autocomplete works:
$ python3 lptl.py --
--ansible-repo-path    --help                 --skip-app-start       --test-slaves-count
--app-version          --servers-list         --test-environment     --test-slaves-ips
--config               --show-test-plan-only  --test-scenario-name
--debug                --skip-app-deploy      --test-scenario-path

But when I call it with wrapper, it is not, pressing TAB after following command line results to nothing:
$ aws-vault exec shared-test-full -- python3 lptl.py --

Could anybody help solving this issue?
BTW, I use macOS.
P.S.: Also I've got virtualenv, don't know if it affects, but I installed argcomplete both to local and global environments.

It's possible the wrong version of Python is being used to look up the script associated with the command line wrapper. Can you set _ARC_DEBUG=1 and paste the output from a failed tab completion attempt please?

I've set export _ARC_DEBUG=1 and in same shell tried again to get autocompletion - now output

Then I tried to test more simple script without many dependencies like in mine:
#!/usr/bin/env python3
# PYTHON_ARGCOMPLETE_OK
import argparse
import argcomplete

parser = argparse.ArgumentParser(description='Test script')
parser.add_argument('-d',
                    '--debug',
                    help='Debug mode')
argcomplete.autocomplete(parser)
cmd_line_args = parser.parse_args()
print(cmd_line_args.debug)

When I try to autocomplete python3 test.py -- I get:
$ python3 test.py --word -- split, lexer state: 'None'

LINE: 'python3 test.py --'
POINT: 18
PREQUOTE: ''
PREFIX: '--'
SUFFIX: ''
WORDS: ['test.py']
Active parsers: [MonkeyPatchedIntrospectiveArgumentParser(prog='test.py', usage=None, description='Load&performance Tests Launcher', formatter_class=<class 'argparse.HelpFormatter'>, conflict_handler='error', add_help=True)]
Visited positionals: [MonkeyPatchedIntrospectiveArgumentParser(prog='test.py', usage=None, description='Load&performance Tests Launcher', formatter_class=<class 'argparse.HelpFormatter'>, conflict_handler='error', add_help=True)]
invoking parser with []
parsed args: (Namespace(debug=None), [])
all active parsers: [MonkeyPatchedIntrospectiveArgumentParser(prog='test.py', usage=None, description='Load&performance Tests Launcher', formatter_class=<class 'argparse.HelpFormatter'>, conflict_handler='error', add_help=True)]
active_parser: MonkeyPatchedIntrospectiveArgumentParser(prog='test.py', usage=None, description='Load&performance Tests Launcher', formatter_class=<class 'argparse.HelpFormatter'>, conflict_handler='error', add_help=True)
optional options: ['--help', '--debug']
next_positional: None
Active actions (L=0): []
active options: ['--help', '--debug']
display completions: {'--help': 'show this help message and exit', '--debug': 'Debug mode'}

Returning completions: ['--help', '--debug']

It's good I think.
Then I tried to call Python with AWS wrapper - $ aws-vault exec shared-test-full -- python3 test.py -- - nothing.
Maybe with such wrapper argcomplete was not called at all?

argcomplete does not generally work with arbitrary command line wrappers. To understand why, check the section of the documentation describing the protocol (https://kislyuk.github.io/argcomplete/#argcomplete-autocomplete-parser). When you run your command through a wrapper, the wrapper must be aware of the argcomplete protocol (in particular, it must forward fd 8 to the wrapped subprocess). I don't think it's possible to make argcomplete work with this utility.

Solved by incapsulating aws-vault call into Python script. Now autocompletion works fine.


Suddenly cannot build flutter application

Hi,
I am building a flutter application and it was working just fine until I tried doing a debug build again and now I get this error on every physical device and emulator I have. I am using VSCode to do my development and it has an auto-fetch enabled to the flutter stable release.
This is what is in the debug console
Launching lib\main.dart on sdk gphone x86 in debug mode...
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/http-0.13.4/lib/src/base_request.dart:144:7: Error: The getter 'ponrethrow' isn't defined for the class 'BaseRequest'.

'BaseRequest' is from 'package:http/src/base_request.dart' ('/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/http-0.13.4/lib/src/base_request.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'ponrethrow'.
ponrethrow;
^^^^^^^^^^
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/http-0.13.4/lib/src/base_request.dart:129:28: Error: A non-null value must be returned since the return type 'StreamedResponse' doesn't allow null.
'StreamedResponse' is from 'package:http/src/streamed_response.dart' ('/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/http-0.13.4/lib/src/streamed_response.dart').
Future send() async {
^

FAILURE: Build failed with an exception.

Where:
Script 'C:\src\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1156

What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.

Process 'command 'C:\src\flutter\bin\flutter.bat'' finished with non-zero exit value 1

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

Get more help at https://help.gradle.org
BUILD FAILED in 15s
Exception: Gradle task assembleDebug failed with exit code 1
Exited (sigterm)

This problem popped up about 5 minutes ago. flutter doctor says everything is okay

You have edited the file that is failing to compile:
https://github.com/dart-lang/http/blob/0.13.4/lib/src/base_request.dart#L144
You should not edit files in your pub cache; you will need to restore the original version of the file.
Closing as this is not a Flutter bug.

Hi, I didn't edit it, but deleting flutter and reinstalling it fixed the problem


chore(dependencies): update whacko dependency

I get the following warnings when installing aurelia-bundler through npm:
npm WARN deprecated<EMAIL_ADDRESS>the module is now available as 'css-select'
npm WARN deprecated<EMAIL_ADDRESS>the module is now available as 'css-what'
npm WARN deprecated<EMAIL_ADDRESS><EMAIL_ADDRESS>is no longer maintained. Upgrade to<EMAIL_ADDRESS>
This PR updates the whacko dependency, resolving those warnings.

@ahmedshuhel Can we get this merged? CLA is confirmed.


Fix the URL beta.hospitalrun.io

The page http://hospitalrun.io/demo/ asks to use the URL https://beta.hospitalrun.io/ to access the demo. But the URL is not working.
Reproduction steps

Visit http://hospitalrun.io/demo/
Click on https://beta.hospitalrun.io/
The link is not working

@ishanthilina thanks for the issue.  I am working on this and will update this issue once everything is resolved.

The site is back.  Sorry for the inconvenience.


Add Udacity_Popular_Movies_Stage_1

I added to publish my project which I developed individually.

Thanks for your contribution @ardakazanci. Can you add few issues with label good first issue with description of the issue? This way, we can get the beginner contributors always find issues to start with.

I detected and added another problem in my hello project.


Error on the front end while trying to run the application, it was running but even a fresh copy does not work

I am getting errors on trying to run as well. So far I cannot figure out the cause.

@enkodellc this issue happens if "BlazorShop.Web.Client" is set up as the startup project. "BlazorShow.Web.Server" should be set as the startup project and then it works fine.


Use BackHandler instead BackAndroid

fix #24
Change is very simple but it should be included in major version bump

Looking forward to this PR be merged.

For those wanting to use this fix in their app before @bodyflex has a chance to merge it, you can use this fork that's based on latest master (v5.1.1). Simply put this in your package.json dependencies:
"react-native-simple-modal": "https://github.com/cribspot/react-native-simple-modal.git#2017-06-08-backHandler"

sorry for the delay guys!

this has now been published as v6.0.0


pubsub/aws: support restarting the subscriber after Stop is called

Calling Start() after Stop() is not entirely supported: although the
subscriber will get new messages and send them on the messages channel,
subscriberMessage.Done() would block forever trying to send a message in
the toDelete channel (the channel reader breaks out of the loop when the
subscriber is stopped).
A side effect of this change is that there might be multiple
handleDelete goroutines running (if the subscriber restarts too fast).
This is safe because the only shared variable is the toDelete channel,
and having multiple consumers in a channel is safe. If having a single
goroutine running handleDeletes is preferred, I can change the code to
ensure that.

Coverage remained the same at 40.948% when pulling f9d5a1ff62f3a57d801774dbde652300a03021bc on fsouza:aws-restart-subscriber into c02d020babd992176a96e3a6b345cbae7b98910b on NYTimes:master.

The side effect doesn't sound right, closing.


linux-testing 4.14-rc2 -> 4.15-rc1

Motivation for this change
Bump up linux-testing version.
Sending this PR from the running kernel, which should be enough test for testing, I think.
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
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[x] Fits CONTRIBUTING.md.

Why is the label rebuild-darwn assigned here? Isn't the kernel completely linux specific?

the labels say that none rebuilds are triggered on both architectures.


Consider merging as a builtin to Terraform?

Hello!
First of all, this is some great work! :grinning: :+1:
I'm wondering if you'd be interested in merging this as a builtin provider into Terraform core? We'd be happy to grant collaborator access to any of your developers so they could continue to maintain the provider in Terraform. We've had good success doing this with other providers.
If that sounds worth doing, I'd recommend submitting the current code as a PR and the core team can help you with a full review before we merge it in.
If you'd like to continue to iterate on it as a separate repo for now that's totally okay too.
Let me know what you think!

That's great! We'd be very pleased to merge our stuff. Expect a PR in the coming week.


fix: Move declarative.yaml example to the hugr-core crate

This is a file used for the hugr-core docs, so it should be included in that crate.
When trying to cargo publish, I got an error due to it not getting packaged.
error: couldn't read src/extension/../../../hugr/examples/extension/declarative.yaml: No such file or directory (os error 2)
  --> src/extension/declarative.rs:12:10
   |
12 | #![doc = include_str!("../../../hugr/examples/extension/declarative.yaml")]
   |          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: this error originates in the macro `include_str` (in Nightly builds, run with -Z macro-backtrace for more info)

Can we build "isolated" in CI?

It'd be nice! Can you open an issue?


Query string parameter for get request

Most of libs have 'qs' param

If this is intended to be a feature request https://github.com/whatwg/fetch/issues would be the right place to ask. The intend of this library is make the fetch() api available to server side javascript. It is not intended to add features to it that are not in the official spec.


linux: Support RT Kernel for raspberrypi3bplus-64

This allows for the RT Kernel utilization on the Raspberry Pi 3b+ board.

Thanks!


Do not allow unused parameters

Reference: https://github.com/standard/eslint-config-standard-with-typescript/pull/112#issuecomment-519716351
Should be fixed in sync with Standard.

This is an upstream standard issue. Not TypeScript specific.


feat: Angular 8 support

If don't have time to do this let me know and I can take a look into getting dependencies updated.

Sure, go for it. Thanks.

Following this...

#35 is the PR

Looks like PR was merged, will a new release be happening for this soon @NetanelBasal ?

Published.


Investigate the discrepancy between sleuth and zipkin exporter span generation

There is some discrepancy between opencensus zipkin exporters and sleuth that zipkin server handles fine, but is an issue for other environments.

Created spans from a java client server app with spring-cloud-zipkin-starter and another fortuneteller app in tracing sample.
The main difference I see is that where there is are linked spans from client and server, Sleuth uses the same spanID. Whereas Steeltoe is generating a new spanID on the server.
For zipkin server this is not an issue. For ASC, it appears they are discarding the client span and just using the server spans to link these dependencies together.
steeltoe.json.txt
sleuth.json.txt

Need to implement JoinSpan and an option that turns it on and off.  Context

Closing this investigation ticket. Work will be done in #510


Add New Game : [Guess The Weapon]

PR Description 📜
Add new game "Guess The Weapon"
Fixes #2928

Mark the task you have completed ✅

[x] I follow CONTRIBUTING GUIDELINE & CODE OF CONDUCT of this project.
[x] I have performed a self-review of my own code or work.
[x] I have commented my code, particularly in hard-to-understand areas.
[x] My changes generates no new warnings.
[x] I have followed proper naming convention showed in CONTRIBUTING GUIDELINE
[x] I have added screenshot for website preview in assets/images
[x] I have added entries for my game in main README.md
[x] I have added README.md in my folder
[x] I have specified the respective issue number for which I have requested the new game.

Add your screenshots(Optional) 📸

Thank you soo much for contributing to our repository 💗

Thank you @psykat1116 ,for creating the PR and contributing to our GameZone 💗
Review team will review the PR and will reach out to you soon! 😇
Make sure that you have marked all the tasks that you are done with ✅.
Thank you for your patience! 😀

@kunjgit please tell me what is the problem it is showing

Thank you  @psykat1116 , for your valuable time and contribution in our GameZone 💗.
It’s our GameZone, so Let’s build this GameZone altogether !!🤝
Hoping to see you soon with another PR again 😇
Wishing you all the best for your journey into Open Source🚀

Hey @psykat1116,
You can't work on a closed issue 👀!
Follow the proper guideline and make a new PR again 😀.
Happy Hacking 💗


Facing issues when Tensorflow model involves a String as input/output to serving function

Hi,
I am testing out a tensorflow model which takes a string as input and returns the spell corrected version of this string and it's confidence score. The signature_def retuned for the model using saved_model_cli is as following
signature_def['serving_default']:
  The given SavedModel SignatureDef contains the following input(s):
    inputs['query'] tensor_info:
        dtype: DT_STRING
        shape: (-1)
        name: serving_default_query:0
  The given SavedModel SignatureDef contains the following output(s):
    outputs['corrected_query'] tensor_info:
        dtype: DT_STRING
        shape: ()
        name: StatefulPartitionedCall_5:0
    outputs['score'] tensor_info:
        dtype: DT_DOUBLE
        shape: unknown_rank
        name: StatefulPartitionedCall_5:1
  Method name is: tensorflow/serving/predict

But when loading the model on DJL, the loaded model is only identifying score as model output. corrected_query is not getting returned when checking with model.describeOutput().keys() and only score is getting returned upon model prediction call.
Any support or document around solving this issue would be really helpful.
Thanks

@chaitanya-basava
This is current limitation in DJL. We filtered out String tensor in the output (https://github.com/deepjavalibrary/djl/blob/master/engines/tensorflow/tensorflow-engine/src/main/java/ai/djl/tensorflow/engine/TfSymbolBlock.java#L120). Since we added String Tensor support, should be able to add String tensor support. Can you share your model or point to a similar model, so we can add a test for this type of model.

@frankfliu thanks for the response. I won't be able to share the exact model file, so have created this dummy model has similar input and output signatures except it would be returning the query string as corrected_query and score=0.0
model.zip
Hope this will be helpful.
Wanted to clarify one more thing would there be a similar behaviour (of string output's getting filtered out) when using other model types like onnx and pytorch as well?

@chaitanya-basava
You can try nightly snapshot build once this PR is merged.
The ONNX and PyTorch engine should not have this issue. This tensorflow behavior is more like a bug (we forget to remove this limit when we added String tensor support).