repo_name
stringlengths 4
136
| issue_id
stringlengths 5
10
| text
stringlengths 37
4.84M
|
---|---|---|
junegunn/fzf | 569980940 | Title: `_fzf_complete` function can not be interrupted
Question:
username_0: <!-- ISSUES NOT FOLLOWING THIS TEMPLATE WILL BE CLOSED AND DELETED -->
<!-- Check all that apply [x] -->
- [x ] I have read through the manual page (`man fzf`)
- [x ] I have the latest version of fzf
- [x ] I have searched through the existing issues
## Info
- OS
- [ x] Linux
- [ ] Mac OS X
- [ ] Windows
- [ ] Etc.
- Shell
- [ ] bash
- [x ] zsh
- [ ] fish
## Problem / Steps to reproduce
Define custom completin:
```
_foo() {
for i in {1..5}; do
echo "completion$i"
done
}
_bar() {
# this is some slower command, or command that may hang
sleep 10
for i in {5..10}; do
echo -e "bar completion$i"
done
}
_fzf_complete_foobar() {
_fzf_complete "--multi --ansi -n 2" "$@" < <(
_foo
_bar
)
}
```
This completion, when triggered, will allow to select foo completions instantly, but the shell is not responding until `_bar` finishes.
Answers:
username_1: Thanks, I've done some research and here's what I've found.
### bash
bash has the same problem, but it is trivial to fix it. All I need to do is to remove unnecessary `cat`
```diff
diff --git a/shell/completion.bash b/shell/completion.bash
index b953cc8..bd94c51 100644
--- a/shell/completion.bash
+++ b/shell/completion.bash
@@ -200,7 +200,7 @@ _fzf_complete() {
if [[ "$cur" == *"$trigger" ]]; then
cur=${cur:0:${#cur}-${#trigger}}
- selected=$(cat | FZF_DEFAULT_OPTS="--height ${FZF_TMUX_HEIGHT:-40%} --reverse $FZF_DEFAULT_OPTS $FZF_COMPLETION_OPTS $1" __fzf_comprun "$2" -q "$cur" | $post | tr '\n' ' ')
+ selected=$(FZF_DEFAULT_OPTS="--height ${FZF_TMUX_HEIGHT:-40%} --reverse $FZF_DEFAULT_OPTS $FZF_COMPLETION_OPTS $1" __fzf_comprun "$2" -q "$cur" | $post | tr '\n' ' ')
selected=${selected% } # Strip trailing space not to repeat "-o nospace"
if [ -n "$selected" ]; then
COMPREPLY=("$selected")
```
And we can even kill the running processing with its process ID bash reports, `$!`.
```sh
_fzf_complete_f() {
_fzf_complete "--multi" "$@" < <(
echo foo
sleep 5
echo bar
)
pkill -P $!
}
```
💯
### zsh
However, this approach doesn't work with zsh, probably for the same reason we can't remove FIFO from the code (see https://github.com/username_1/fzf/issues/494).
An alternative approach with a minimal change to the API is to pass the file descriptor as the argument instead of feeding it as the standard input and do not use `|`.
```diff
diff --git a/shell/completion.zsh b/shell/completion.zsh
index d5fccad..a378729 100644
--- a/shell/completion.zsh
+++ b/shell/completion.zsh
@@ -115,8 +115,8 @@ _fzf_complete() {
post="${funcstack[2]}_post"
type $post > /dev/null 2>&1 || post=cat
- _fzf_feed_fifo "$fifo"
- matches=$(cat "$fifo" | FZF_DEFAULT_OPTS="--height ${FZF_TMUX_HEIGHT:-40%} --reverse $FZF_DEFAULT_OPTS $FZF_COMPLETION_OPTS" __fzf_comprun "$cmd" ${(Q)${(Z+n+)fzf_opts}} -q "${(Q)prefix}" | $post | tr '\n' ' ')
+ [ $# -lt 3 ] && _fzf_feed_fifo "$fifo"
+ matches=$(FZF_DEFAULT_OPTS="--height ${FZF_TMUX_HEIGHT:-40%} --reverse $FZF_DEFAULT_OPTS $FZF_COMPLETION_OPTS" __fzf_comprun "$cmd" ${(Q)${(Z+n+)fzf_opts}} -q "${(Q)prefix}" < "${3:-$fifo}" | $post | tr '\n' ' ')
if [ -n "$matches" ]; then
LBUFFER="$lbuf$matches"
fi
```
[Truncated]
We have to slightly change how we use the function:
```sh
_fzf_complete_f() {
# Remove '<' before '<('
_fzf_complete "--multi" "$@" <(
echo foo
sleep 5
echo bar
)
# $! is zero, so we can't kill the process
# pkill -P $!
}
```
It works, but the problem here is that zsh doesn't report the process ID as `$!`, so there's no easy way to kill the still-running process.
### So where do we go from here?
I'd like to do some more research to see if there's a way to fix the problem without changing the API (for zsh). But if it turns out to be not possible, we'll have to extend the API. Among the two suggestions you made, I prefer #1895 though I'd choose `_source` suffix instead of `_func` which seems a little too general.
username_1: It looks like we can use `coproc` to avoid the blocking with a minor change to the code (https://github.com/username_1/fzf/commit/baf882ace741e4d279b6a6d2da467e00f94642f5, still in devel branch)
```sh
_fzf_complete_f() {
setopt localoptions nomonitor
coproc (
echo foo
sleep 5
echo bar
)
_fzf_complete "--multi" "$@" <&p
pkill -P $!
}
```
What do you think?
Status: Issue closed
username_1: Let me know if this doesn't work for you.
username_0: Hi,
Thx for reply and for the fix!
I just tested the `coproc` solution with zsh and it almost works, the only issue is the extra job controll msg:
```
$ foobar foo
[7] + 26076 done ( echo foo; sleep 10; echo bar; )
$ foobar foo
```
I tested with:
```
_fzf_complete_foobar() {
setopt localoptions nomonitor
coproc (
echo foo
sleep 10
echo bar
)
_fzf_complete "--multi" "$@" <&p
pkill -P $!
}
```
I tried to fix this but I am not sure how to properly suspend job control messages in this case. Not sure how `nomonitor` works. In this example:
```
_fzf_complete_foobar() {
setopt localoptions nomonitor
sleep 10 &
kill $!
}
```
Output is:
```
$ foobar **
[4] + terminated sleep 10
$ foobar **
```
On the other hand with:
```
_fzf_complete_foobar() {
(sleep 10 &)
kill $!
}
```
no `terminated` msg is shown.
No msg is also shown when I do global `setopt nomonitor`.
username_1: What's your `zsh --version`? I'm using 5.7.1 and `setopt localoptions nomonitor` effectively removes the message.
```sh
setopt interactivecomments
# Note that I appended `|| true` to pkill command to suppress beep
# when the process is already completed.
_fzf_complete_foobar() {
setopt localoptions nomonitor
coproc (
echo foo
sleep 10
echo bar
)
_fzf_complete "--multi" "$@" <&p
pkill -P $! || true
}
```
username_0: ```
% zsh --version
zsh 5.8 (x86_64-debian-linux-gnu)
% cat ~/.zshrc
path=(~/src/fzf/bin $path)
source ~/src/fzf/shell/key-bindings.zsh
source ~/src/fzf/shell/completion.zsh
setopt interactivecomments
_fzf_complete_foobar() {
setopt localoptions nomonitor
coproc (
echo foo
sleep 10
echo bar
)
_fzf_complete "--multi" "$@" <&p
pkill -P $! || true
}
% foobar **
[4] + done ( echo foo; sleep 10; echo bar; )
floydd% foobar **
```
note: this is the output with #1921 applied
username_1: Can you test it on a clean Docker container?
```sh
# From fzf project root
make docker
# Start zsh
zsh
_fzf_complete_foobar() {
setopt localoptions nomonitor
coproc (
echo foo
sleep 10
echo bar
)
_fzf_complete "--multi" "$@" <&p
pkill -P $! || true
}
```
username_0: Just tested, same issue
```
cb7492f61de6# foobar **
[4] + done ( echo foo; sleep 10; echo bar; )
cb7492f61de6# foobar **
```
note: here I interrupted completion using `ctrl-c` before `bar` is shown:
```
[4] + done ( echo foo; sleep 10; echo bar; )
cb7492f61de6# foobar foo
```
here: I just select `foo` and click enter (before `bar` is shown):
When I just wait with selection until `bar` is shown, it works as expected (no job control msg).
username_1: That's strange. I can't reproduce.
https://asciinema.org/a/C5U9dANv00Oo3KyNqACKB9MSa
username_0: We have different versions of zsh inside docker. Maybe you did not update your docker base container for a while (after `docker pull archlinux/base` zsh should be in 5.8):
```
$ docker images | grep archlinux | grep latest
archlinux/base latest 0f7f9102731f 10 days ago 500MB
```
Here is my rec, I use `ctrl-c` to break completions and in 2 last cases I did select foo with enter.
There is some non determinism, 1st and 3rd `ctrl-c` did not print ms.

username_1: Very interesting. Even after I pulled the latest `archlinux/base:latest`, I still can't reproduce the problem with its zsh 5.8.
username_1: Adding `wait` at the end fixes the issue.
```sh
_fzf_complete_foobar() {
setopt localoptions nomonitor
coproc (
echo foo
sleep 1
echo bar
)
_fzf_complete "--multi" "$@" <&p
pkill -P $! || true
wait
}
```
username_0: :+1: just tested and it works as expected. Thx for investigation! |
cypress-io/cypress | 765090824 | Title: 大学生开一次房能做几次品茶学生外围上课
Question:
username_0: 大学生开一次房能做几次▋▋薇87O9.55I8唯一靠谱▋▋韵胰细挝仿哪有酒店荤,桑拿服务全套SPA,水疗会所保健,品茶学生工作室洋妞月日,浙江省推进数字文化产业高质量发展暨省文化产业年会在杭州举行,现场邀请了网易云音乐、宋城演艺、横店影视等多家数字文化企业,围绕文化产业如何跨界融合、抓住机遇加快发展等话题展开讨论,探寻更多发展机遇。 网易云音乐副总裁李茵受邀作了《年代,品牌如何与年轻人共鸣》主题分享。李茵说:“年过去了,大家会觉得比较难,但是对我们来说,却是持续快速发展的一年。”网易云音乐作为网易旗下的数字音乐业务。年多来,增速、口碑均领先行业,累计用户已超过亿,入驻原创音乐人超万,快速成长为中国最大的原创音乐平台、大学生开一次房能做几次https://github.com/sjslhs6<issue_closed>
Status: Issue closed |
obsidian/orion | 650816319 | Title: how to test?
Question:
username_0: As a user, I would like to write tests for routes
Answers:
username_1: @username_0 take a look at the tests orion uses internally, you should be able to mock an HTTP request and read the response from an IO::Memory. You may just be able to use the orion test helpers. I will look at adding some documentation and support for this.
Status: Issue closed
|
coleifer/peewee | 96673436 | Title: Add support for citext columns in postgres
Question:
username_0: `pwiz` incorrectly translates `citext` columns to `UnknownField`.
Status: Issue closed
Answers:
username_1: I wouldn't say "incorrectly" -- Peewee does not have any field comparable to a case-insensitive text field. Pwiz is designed to cover the most common data-types but it cannot hope to cover them all. Hence, `UnknownField`. You can go through and replace them with `TextField` if you like.
username_0: Aren't `text` and `citext` different, though? Isn't the real problem that peewee doesn't have a case-insensitive field?
username_1: They are different, and yes, the issue is that peewee does not have a case-insensitive text field. That said, I don't plan on adding one. If you'd like you can add one yourself quite easily, though:
http://docs.peewee-orm.com/en/latest/peewee/models.html#creating-a-custom-field
username_2: Is it as simple as,
class CITextField(TextField):
field_type = 'citext' |
YiiGuxing/TranslationPlugin | 569199351 | Title: CamelCase code translation
Question:
username_0: ### Problem Description
When translation code written in another language, translation and replacing an identifier in CamelCase would really helpful
### Proposed Solution
When calling "Translate" the CamelCase is already recognized

But for "Translate and Replace..." not

So replace suggestion in CamelCase of the translate result would be cool. E.g. `getPeopleDataOnRoute`
Status: Issue closed
Answers:
username_0: 👍
Thanks! |
KevinMusgrave/pytorch-metric-learning | 618347291 | Title: MarginLoss produces very large loss if there are no active pairs
Question:
username_0: It may happen, that late in the training process both positive and negative distances in all triplets in some batch fall below thresholds. In such case MarginLoss produces very large loss (like 997187911680.0). This breaks computation of batch statistics, such as a mean loss per batch, which I include in my code.
I looked into MarginLoss code and this is because when pair_count (number of active pairs) becomes zero, total loss is equal to beta_reg_loss divided by 1e-16. Which produces a very large number. This is done by below piece of code:
```
pair_count = self.num_pos_pairs + self.num_neg_pairs
return (torch.sum(pos_loss + neg_loss) + beta_reg_loss) / (pair_count + 1e-16)
```
When pair_count is zero, I think it's more logical to return loss equal to zero. Not some very large number. Maybe MarginLoss code could be amended to something like:
```
return (torch.sum(pos_loss + neg_loss) + beta_reg_loss) / (max(pair_count,1))
```
This would prevent returning very large loss, when pair_count is zero. Or maybe more appropriate would be:
```
if pair_count >= 1:
return (torch.sum(pos_loss + neg_loss) + beta_reg_loss) / pair_count
else:
return ...grad enabled tensor set to zero...
```
Answers:
username_1: The if/else looks good. We can just return 0 in the else statement, because the base class takes care of the loss.backward problem you mentioned.
username_1: I made the changes you suggested, plus a couple others. See [this commit](https://github.com/username_1/pytorch-metric-learning/commit/2dd61bb34c3da8b13c6ce974a5a67cae0c788483) to view the changes.
The changes are available in v0.9.86.dev3:
```
pip install pytorch-metric-learning==0.9.86.dev3
```
Let me know if it works
username_0: Hi Kevin, thanks for quick answer. The changes look good and I've re-run the code. Good idea to add margin_loss and beta_reg_loss to recordable attributes. This allows observing individual loss components.
However when pair_count >= 1, `margin_loss` and `beta_reg_loss` recordable attributes are one-element tensors. But when pair_count=0, `margin_loss` and `beta_reg_loss` recordable attributes are numbers (not tensors). This break my code to calculate per-batch statistics.
I added a simple fix in my code to handle both cases correctly and re-run the training loop. I'll let you known if everything finishes successfully.
Maybe it's worth to consider data type od recordable attributes? My feeling is, that these attributes are used for monitoring of the training process or displaying statistics about dynamics of the training process. So they should be all numbers not tensors. Currently, some recordable attributes are numbers (like num_zero_triplets in TripletMarginLoss) and some are grad-enabled tensors. I'm not sure if this is not causing some extra-memory consumption or other performance issues to keep track of computation graphs for each of these attributes.
username_1: In my logging code I [detach if necessary](https://github.com/username_1/record-keeper/blob/master/record_keeper/utils.py#L39). I suppose we could move some of that logic into the "recordable attributes" part of this library, though right now, "recordable attributes" is just a list of strings that correspond to object attributes.
Status: Issue closed
username_1: Closing this issue as its now in the latest version 0.9.86. I made a [separate issue](https://github.com/username_1/pytorch-metric-learning/issues/101) for the data types of recordable attributes, so we can continue the discussion there. |
EscherLabs/Graphene | 1092793906 | Title: Graphene Workflows: Signature box is not showing up in the submissions
Question:
username_0: **Description**
In a workflow, when "Require Signature" option is true in a state action, the it doesn't required signature in the submission.
**Feature / Subsystem**
Graphene Workflows
**To Reproduce**
1. Go to http://portalawsdev.binghamton.edu/admin/workflows/45#flowchart
2. Click on purchasing_dept_review state, and go to "Mark As Complete"
3. Enable "Require Signature"
4. Go to the submission: http://portalawsdev.binghamton.edu/workflows/report/82964
5. See that it doesn't show the signature box at the bottom of the modal
**Console Errors**
No Errors
**Link(s)**
Workflow: http://portalawsdev.binghamton.edu/admin/workflows/45
Dev Instance: http://portalawsdev.binghamton.edu/workflow/152/bo_contracts
**Additional context**
You can enable and disable "Require Signature" option in the "Mark as Complete" state to see that it is not working. Let me know if more documentation, or explanation is needed.
Answers:
username_0: @username_1 it seems like this issue has been resolved. You can close this issue anytime you'd like
Status: Issue closed
|
RLBot/RLBot | 443146630 | Title: SecondsElapsed and GameTimeRemaining
Question:
username_0: SecondsElapsed keeps running while the game is paused and GameTimeRemaining has an integer precision.
Answers:
username_1: Also have this issue in Python. Would be nice if I could tell when the game is paused or if SecondsElapsed didn't update when game is paused.
username_2: We should be capable of fixing this the next time a Rocket League patch comes out.
Currently, SecondsElapsed is telling you the number of seconds (on the wall clock, I think) since Rocket League was launched. That's not intended, but maybe that's helpful to know until we can get this fixed.
username_0: Appreciate it! Detecting game pausing becomes way more hacky without this feature, and is quite crucial for general-purpose bots.
username_2: Turns out a patch just came out recently. Fixed in rlbot 1.18.1!
Status: Issue closed
|
zhaoyingjun/chatbot | 1008977810 | Title: tf2版本seq2sqe运行报错
Question:
username_0: 

运行excute.py以后报错:
TypeError: 'NoneType' object is not callable
Answers:
username_0: 不知道该怎么解决,求助
username_1: 你遇到过'gbk' codec can't decode byte 0xad in position 107: illegal multibyte sequence这个问题吗
username_2: 请问你在seq2seq.ini 里添加的 pretrained_model的内容是什么呢? |
facebook/react-native | 742026199 | Title: FlatList inverted prop ordering of elements causes copy/paste issues
Question:
username_0: ## Description
When the `inverted` prop is applied to `FlatList` the elements remain in the order given and are reversed via styling rather than by reversing the order in which they are rendered. This makes it so that, for example, if `react-native-web` is used, when the list elements are copied, they end up pasting in reverse order.
## React Native version:
0.63.3
## Steps To Reproduce
1. Create a list using `FlatList`
2. Apply the `inverted` prop
3. Note the order of some list items and copy them
4. Paste them and note that the order is backwards from what was displayed
## Expected Results
I would expect that when pasted the list would retain the order that is shown on the screen.
## Snack, code example, screenshot, or link to a repository:
https://codesandbox.io/s/cold-wave-grzpj?file=/src/App.js
Answers:
username_1: https://github.com/facebook/react-native/issues/30373 Linking in this other issue which is another symptom of how the inversion is carried out. |
varnishcache/varnish-cache | 747373036 | Title: Missing signal to reload configs in varnishncsa
Question:
username_0: It might be useful to have a signal to reload the output format (`-F`) and query files (`-Q`) in a live running instance, since restarting the program (`varnishncsa`) might drop data.
Answers:
username_1: bugwash: we see a use case, but, as VSL clients may still drop data for a log overrun, we cannot quite follow the argument of avoiding data drops.
My personal work around so far was to have some overlap between an old and new log client when changing the configuration.
As we do not use tickets for feature requests, this would best be added as a [VIP](https://github.com/varnishcache/varnish-cache/wiki/Varnish-Improvement-Proposals). Also it seems this would need either an implementer or a sponsor, no-one was immediately volunteering to attempt the implementation.
@username_0 would you want to write up a VIP?
I will close this issue but will continue to assist you in case you need any help.
Status: Issue closed
username_0: @username_1 No, I don't think so, I'm not interested in writing it up twice. From my brief assessment, VIP appears to be where ideas go to die. I'm not sure why you believe it's a good idea to misappropriate the wiki as a crude issue tracker when GitHub already has a fully functioning issue tracker system, but I disagree.
username_1: @username_0 please do not kill the messenger (I was merely reporting from bugwash) and please accept the rules the project has given itself.
It is true that some long-standing VIPs exist which have not been implemented, but also you fill find those who have.
At any rate, this is likely to get accepted once anyone writes the code. |
Flynsarmy/oc-debugbar-plugin | 58194414 | Title: barryvdh/laravel-debugbar is now on version 2
Question:
username_0: The composer file needs updated to require: "barryvdh/laravel-debugbar": "2.*" for compatibility with the October master branch, and the switch to Laravel 5.
Answers:
username_1: I don't really plan on supporting this plugin as it has issues with overriding October's version of laravel with the one pulled in from debugbar. If you send a PR i'll accept though.
Status: Issue closed
username_0: Nah, I'll just close the issue. Thanks for the heads up. |
buildcom/BossyUI | 258533773 | Title: Research validation libraries for JS
Question:
username_0: @username_1 - sure we are, present this to us on Monday :)
Answers:
username_1: https://gist.github.com/username_1/6e3f198e338f4112b8e30f1de815cd55
username_2: https://gist.github.com/username_2/7afaf2fbf61b205ab053bcf2367930a1
username_3: https://gist.github.com/username_3/df18119537e4aed676c15306c336ccd4
Status: Issue closed
username_1: Are we not interested in using the validations built into AngularJS? https://github.com/angular/angular/blob/4.4.5/packages/forms/src/validators.ts#L30-L29
username_0: @username_1 - sure we are, present this to us on Monday :) |
pytoolz/toolz | 127512956 | Title: master branch isn't reflected in PyPI release
Question:
username_0: Despite the fact that the __version__ on the master branch is `0.7.4` as is the on in PyPI, there are changes found on the master branch which aren't reflected in installed versions.
For example:
`toolz.dicttoolz.dissoc` (on master)
https://github.com/pytoolz/toolz/blob/master/toolz/dicttoolz.py#L217
```
for key in keys:
if key in d2:
del d2[key]
```
this and its complementary doc change were committed on 2015-08-19
`toolz.dicttoolz.dissoc` (0.7.4 per PyPI upload on 2015-08-10)
#L214
```
for key in keys:
del d2[key]
```
Answers:
username_1: I was wondering if `toolz.dicttoolz.assoc_in` might be included in the PyPi version too.
username_2: Version 0.8.0 was just released to PyPI.
Status: Issue closed
|
atuttle/atom-language-cfml | 92632376 | Title: Only one code complete option shown for each prefix
Question:
username_0: Not sure if this is an issue with the package, or with Atom itself...
If you start typing a keyword such as cfquery, the complete options are simply "cfquery (update sql)" and "cfqueryparam". However, there are multiple different completion templates which all have the prefix "cfquery"; it looks like only the last one is being displayed in the list. The same is observed for cfregistry - only "cfregistry (set)" is displayed as an option.
Answers:
username_0: OK, looking at the snippets plugin, it appears that this is the expected behaviour.
The solution would be to create unique prefixes - so, for instance:
- cfquery-delete
- cfquery-insert
- cfquery-long
- cfquery-select
- cfquery-short
- cfquery-update
It would, however, make the completion dropdown look like this:

username_1: Yikes. I'm not really a fan of either! Is there a different snippets plugin we can recommend? Or should we file a bug/enhancement with them? |
dart-lang/http | 351857667 | Title: Redirect loop detected
Question:
username_0: i have the following code in dart
```
import 'dart:io';
import 'package:http/http.dart' as http;
main() async {
final url = 'https://jsonplaceholder.typicode.com/users';
final response = await http.get(url);
if (response.statusCode == HttpStatus.ok) {
print(response.body);
}
}
```
it works correctly, but when I change the query url to http://loterias.caixa.gov.br/wps/portal/loterias/landing/lotofacil/!ut/p/a1/04_Sj9CPykssy0xPLMnMz0vMAfGjzOLNDH0MPAzcDbz8vTxNDRy9_Y2NQ13CDA0sTIEKIoEKnN0dPUzMfQwMDEwsjAw8XZw8XMwtfQ0MPM2I02-AAzgaENIfrh-FqsQ9wBmoxN_FydLAGAgNTKEK8DkRrACPGwpyQyMMMj0VAcySpRM!/dl5/d5/L2dBISEvZ0FBIS9nQSEh/pw/Z7_61L0H0G0J0VSC0AC4GLFAD2003/res/id=buscaResultado/c=cacheLevelPage/=/?timestampAjax=1534624870817&concurso=1703
```
import 'dart:io';
import 'package:http/http.dart' as http;
main() async {
final url =
'http://loterias.caixa.gov.br/wps/portal/loterias/landing/lotofacil/!ut/p/a1/04_Sj9CPykssy0xPLMnMz0vMAfGjzOLNDH0MPAzcDbz8vTxNDRy9_Y2NQ13CDA0sTIEKIoEKnN0dPUzMfQwMDEwsjAw8XZw8XMwtfQ0MPM2I02-AAzgaENIfrh-FqsQ9wBmoxN_FydLAGAgNTKEK8DkRrACPGwpyQyMMMj0VAcySpRM!/dl5/d5/L2dBISEvZ0FBIS9nQSEh/pw/Z7_61L0H0G0J0VSC0AC4GLFAD2003/res/id=buscaResultado/c=cacheLevelPage/=/?timestampAjax=1534624870817&concurso=1703';
final response = await http.get(url);
if (response.statusCode == HttpStatus.ok) {
print(response.body);
}
}
```
the following error occurs
```
Unhandled exception:
Redirect loop detected
#0 IOClient.send (package:http/src/io_client.dart:64:7)
<asynchronous suspension>
#1 BaseClient._sendUnstreamed (package:http/src/base_client.dart:171:38)
<asynchronous suspension>
#2 BaseClient.get (package:http/src/base_client.dart:34:5)
#3 get.<anonymous closure> (package:http/http.dart:47:34)
#4 _withClient (package:http/http.dart:167:20)
<asynchronous suspension>
#5 get (package:http/http.dart:47:3)
```
when I use the browser it works fine
Answers:
username_1: I answered that in https://stackoverflow.com/questions/51912621/redirect-loop-detected-dart
Status: Issue closed
username_2: As per @username_1's answer (thanks!) this does not seem to be a `http` issue - closing. |
tgrez/sejm-ngram | 93600000 | Title: The chart does not load under Firefox 38
Question:
username_0: steps to reproduce:
go to sejmotrendy welcome page
enter ngram
hit search
result: the chart is not drawn
affects branch: master rev 816a3908b30404dfd0be1b424be255a6dc5d0b43
Answers:
username_1: it was fixed in the 7270f90
Status: Issue closed
|
lc-soft/LCUI | 496620745 | Title: Debian package missing .so library file
Question:
username_0: **Describe the bug**
Debian package build seems to be incorrect, the package doesn't include .so library file.
**To Reproduce**
Steps to reproduce the behavior:
1. Run: `sh scripts/make-dist-deb.sh`
2. Go into build/debian directory
3. Open the `lcui_1.3.0-1_amd64.deb` file
4. Check if the .so library file is in the ,deb package
**Expected behavior**
the .so library file is in the ,deb package
**Screenshots**
**Environment (please complete the following information):**
- LCUI version: develop branch
- Build tools: make
- OS and version: Ubuntu
Answers:
username_1: hi, @username_0 I'd like to work on this issue
Status: Issue closed
|
IvanMathy/Boop | 742227291 | Title: feature request: format code shortcut
Question:
username_0: like JetBrains products, option+cmd+L could format the code immediately based on protocols. I'm wondering if this will be implemented in the next version
Answers:
username_1: +1
Will be useful, eg. you have an unformatted sql query, with a shortcut popup the CMD+B window with only the selections for the action needed.
username_0: or on the other hand, remembering the last choice helps as well |
braintree/android-card-form | 619403725 | Title: Autofill from Google Payments makes the card INVALID, because of wrong formating in EXPIRATION DATE
Question:
username_0: ### General information
* SDK/Library version: 4.2.0
* Android Version and Device: OnePlus 6T Android 10
### Issue description
When using autofill from Google Payment, the expiration date gets wrong formatting, making the card NOT valid.
Example:
10/ /24 ---> (should be) 10 / 24
Answers:
username_1: Hi @username_0 - can you include steps to help us reproduce your issue, along with screenshots of the issue you see?
username_0: I can't include the screenhost, because the phone forbides it, because it is "sensitive" screen.
Steps are:
1. Click on the empty box, where you enter the card number
2. (Pops up selection from autofill) Select your card
3. Enter CVC code from that card (Google Payments Dialog)
4. Confirm the entered code (Google Payments Dialog)
5. Everything gets filled (Number, Date (double slashes) , CVC)
Additional:
If you click on DATE, you will get keyboard where MONTH is selected but YEAR isn't.
username_2: Hi @username_0 are you able to take a picture of the screen with another phone?
username_0: 
username_2: @username_0 thank you. To confirm, does this issue occur in the repo's "Sample" application?
username_0: Yes, I checked thed Sample app and the issue remains.
username_2: @username_0 awesome thank you. We are looking into this issue and will report back here when we have a solution.
Status: Issue closed
|
albumentations-team/albumentations | 893733465 | Title: ModuleNotFoundError: No module named 'albumentations' - in jupyter notebook only
Question:
username_0: ## 🐛 Bug
<!-- A clear and concise description of what the bug is. -->
## To Reproduce
Steps to reproduce the behavior:
1. Start jupyter notebook or jupyter lab
2. try to import any library part in a new cell : from albumentations.augmentations import transforms
3. get the error: ModuleNotFoundError: No module named 'albumentations'
4. Check that the library is in the environment: $ conda list | grep alb # should return
albumentations 0.5.2 pypi_0 pypi
5. In bash session: python , then type from albumentations.augmentations import transforms
6. Make sure that the library is included in python shell
<!-- If you have a code sample, error messages, stack traces, please provide it here as well -->
## Expected behavior
In jupyter session the labrary should be included without error
<!-- A clear and concise description of what you expected to happen. -->
## Environment
- Albumentations version (e.g., 0.1.8): 0.5.2
- Python version (e.g., 3.7):
- OS (e.g., Linux): WSL2, Ubuntu
- How you installed albumentations (`conda`, `pip`, source): pip
- Any other relevant information:
## Additional context
<!-- Add any other context about the problem here. --> |
gunk/gunk | 396333602 | Title: generate: -o option similar to protoc to dump a FileDescriptorSet
Question:
username_0: When trying to debug differences between what Gunk generates, and what protoc generates for the `FileDescriptorSet`, it might be useful to be able to dump, from Gunk, the `FileDescriptorSet` to a file which we can then compare with protoc's generated `FileDescriptorSet`.
Protoc has these options for dumping the generated `FileDescriptorSet`:
```
-oFILE, Writes a FileDescriptorSet (a protocol buffer,
--descriptor_set_out=FILE defined in descriptor.proto) containing all of
the input files to FILE.
--include_imports When using --descriptor_set_out, also include
all dependencies of the input files in the
set, so that the set is self-contained.
```
Answers:
username_1: My only worry is that `go build -o` means writing a binary file, not an internal descriptor file. So a `gunk convert -o` or `gunk build -o` might confuse users.
Perhaps we could have a `gunk dump [args]` which dumps a gunk file or package as a proto file. For example, it could output JSON by default, and have a `-raw` flag to output the non-plaintext proto directly.
username_0: `gunk dump` does seem a much better option than following protoc's -o approach.
Status: Issue closed
|
Welfenlab/tutor-corrector | 112398741 | Title: Unfinished corrections should contain the lock date
Question:
username_0: Currently, the solution object only contains he locking tutor, not the date. The database already supports this (see Welfenlab/tutor-rethinkdb-database#5). This is needed for #12, I'd suggest `lockDate` as field name.
Answers:
username_1: There should be a field now for locked solutions called 'lockTimeStamp', which is obviously created when the lock is done.
Should not be an issue anymore.
Status: Issue closed
username_1: I close this for now, please reopen if issues arise. |
seisgo/EllipseFit | 808968260 | Title: 请问作者大神,如果用std::vector可以直接全局替换QVector吗?
Question:
username_0: 大神,我有个实验用的是std::vector,不想再导入QT库了。所以想直接用std::vector。
还有一点,作者的clapack库里都用了什么函数?
如果只是一个“integer”类型,那么我不用clapack,直接改“integer”为“int”是否可行?
Answers:
username_1: 你好!
关于QVector与std::vector之间的使用,你可以自由选择。
关于lapack的选用,我当时主要是用它来求解特征值问题,在solveGeneralEigens函数中用到。 |
jlusiardi/homekit_python | 417172889 | Title: Factor out discover_homekit_devices into helper function
Question:
username_0: HA uses its own zeroconf discovery. It would be good to be aple to reuse the logic in `discover_homekit_devices` for parsing the properties data it discovers.
(This came up in a code review in HA where i'm handling the pairing status flags).
(I plan to try and look at this myself but is there a branch you'd prefer to see it on?)
Answers:
username_1: As for the branch: this has nothing todo with bluetooth, right? So just branch of master. I have a precondition that must hold: the project must be usable without hass.io (and keep integratable with others)
username_0: Sure. I all I plan to do is split `discover_homekit_devices` into 2 functions - the behaviour will be unchanged for `discover_homekit_devices`. But the new function will take a dictionary of properties HA has found and do the same normalisation homekit_python does with its discovery code. It's important that this library works standalone.
Branchwise - I agree it should be fine on `master`, i just am extremely nervous about making changes on master that make it harder to merge with `add_bluetooth` later. I've had very bad experiences with long lived branches in previous $DAYJOBs and don't want to make it harder for you!
username_1: i have to admit, i am not so experienced with merging and see this more as a challenge 😉
username_0: Haha 😂
username_0: Closing because change merged.
Status: Issue closed
|
Kunstmaan/KunstmaanBundlesStandardEdition | 41913596 | Title: SlugController:slugAction is too big
Question:
username_0: 80 lines function, with no event Dispatcher. This is the most important function in the KunstmaanBundles and it does too many things. It really needs a refactoring to allow the developers to make use of Events and Services to be overriden.
Not only that,
"$entity->service($this->container, $request, $renderContext);"
is really scary. Container should never be injected, if you're doing so, then you should re-think your design.
Please consider refactoring that function and use more services and Events. Allow us to catch hooks and override services.
Answers:
username_1: The service method in the entity is now deprecated, you can add logic to your entities by implementing the SlugActionInterface (https://github.com/Kunstmaan/KunstmaanBundlesCMS/pull/290), also new events are added to the SlugController (https://github.com/Kunstmaan/KunstmaanBundlesCMS/pull/379)
Status: Issue closed
|
codeforamerica/rva-screening | 73404795 | Title: OperationalError "Incorrect integer value" on /save_prescreening_updates
Question:
username_0: When clicking the "return to patient details" link in the `/prescreening_results` view, I get this error on this URL `http://localhost:5000/save_prescreening_updates?patientid=1`:
```
OperationalError: (OperationalError) (1366, "Incorrect integer value: 'None' for column 'householdsize' at row 1") 'UPDATE patient SET householdsize=%s, householdincome=%s WHERE patient.id = %s' (u'None', u'None', 1L)
```

Let me know if you'd like the full traceback!
Answers:
username_1: This is because there was fake patient data fed to the prescreening results page, so no patient information was being stored in the session (and thus couldn't be used to access the patient's detail page).
Status: Issue closed
username_0: Sounds good, thanks for clarifying @username_1! I'm going to close this since it seems less of a "bug" and more of a result of not populating/working with the database yet. |
NateOwl1108/machine-learning | 783958632 | Title: determinant method
Question:
username_0: I noticed you didn't have a regular determinant method. You had a cofactor_method_determinant, but no regular determinant. You should probably write that up to save you some time, as it is faster than the cofactor_method_determinant. |
CloverHackyColor/CloverBootloader | 623682939 | Title: CloverBootloader r5118
Question:
username_0: When I update from r5107 do r5118 (Catalina 10.15.4) my graphic were destroy - menu, safari tabs other applications - a lot of blinks plus transparency lost, scrolling almost not work...
I tried to install r5117 and no change.
I go back to r5107 and everything is fine again.
I found that my graphic card was not recognise correctly - in system preferences it says just -"Intel" when normally is - "Intel HD Graphics 4600"
The same for monitor
Is it mistake or I need to change some settings when update Clover? Any idea?
Answers:
username_1: Set
~~~
<key>Devices</key>
<dict>
<key>NoDefaultProperties</key>
<false/>
~~~
Status: Issue closed
username_0: I use at the moment news version r5120... from first boot was some text appear very short like after it goes for normal Clover boot screen but with very very low resolution. It keeps that resolution with login and running newest Catalina 10.15.6 simply graphic was not recognised. I use your Advice and put manually into Plist:
<key>Devices</key>
<dict>
<key>NoDefaultProperties</key>
<false/>
Bootloader screen not change same screen and resolution but just before login screen to MacOs resolution goes to normal and system works ok with correct graphic.
I can say like this but it was normal with all Clover and all Mac system few years back.
Any suggestion?
I attached my Plist




username_0: My boot log:
0:100 0:100 MemLog inited, TSC freq: 3392143181
0:100 0:000 CPU was calibrated with ACPI PM Timer
0:100 0:000
0:100 0:000 Now is 11.08.2020, 18:10:28 (GMT)
0:100 0:000 Starting Clover revision: 5120 (master, commit 33816ae90) on American Megatrends EFI
0:100 0:000 Build with: [Args: -D NO_GRUB_DRIVERS_EMBEDDED -t GCC53 | -D NO_GRUB_DRIVERS_EMBEDDED --conf=/Users/sergey/src/Clover/Conf -D USE_LOW_EBDA -a X64 -b RELEASE -t GCC53 -n 5 | OS: 10.14.6]
0:100 0:000 SelfDevicePath=PciRoot(0x0)\Pci(0x1F,0x2)\Sata(0x4,0xFFFF,0x0)\HD(1,GPT,1C275948-AADB-19E7-8F39-9E8423BDF19A,0x800,0x64000) @CB82C118
0:100 0:000 SelfDirPath = \EFI\BOOT
0:100 0:000 Clover : Image base = 0xBD0B3000
0:100 0:000 SimpleTextEx Status=Success
0:100 0:000 === [ Get Smbios ] ==============================
0:100 0:000 Type 16 Index = 0
0:100 0:000 Total Memory Slots Count = 4
0:100 0:000 Type 17 Index = 0
0:100 0:000 SmbiosTable.Type17->Speed = 1600MHz
0:100 0:000 SmbiosTable.Type17->Size = 2048MB
0:100 0:000 SmbiosTable.Type17->Bank/Device = BANK 0 ChannelA-DIMM0
0:100 0:000 SmbiosTable.Type17->Vendor = 1302
0:100 0:000 SmbiosTable.Type17->SerialNumber = 00000000
0:100 0:000 SmbiosTable.Type17->PartNumber = 1600LLA Series
0:100 0:000 Type 17 Index = 1
0:100 0:000 SmbiosTable.Type17->Speed = 1600MHz
0:100 0:000 SmbiosTable.Type17->Size = 2048MB
0:100 0:000 SmbiosTable.Type17->Bank/Device = BANK 1 ChannelA-DIMM1
0:100 0:000 SmbiosTable.Type17->Vendor = 1302
0:100 0:000 SmbiosTable.Type17->SerialNumber = 00000000
0:100 0:000 SmbiosTable.Type17->PartNumber = 1600LLA Series
0:100 0:000 Type 17 Index = 2
0:100 0:000 SmbiosTable.Type17->Speed = 1600MHz
0:100 0:000 SmbiosTable.Type17->Size = 2048MB
0:100 0:000 SmbiosTable.Type17->Bank/Device = BANK 2 ChannelB-DIMM0
0:100 0:000 SmbiosTable.Type17->Vendor = 1302
0:100 0:000 SmbiosTable.Type17->SerialNumber = 00000000
0:100 0:000 SmbiosTable.Type17->PartNumber = 1600LLA Series
0:100 0:000 Type 17 Index = 3
0:100 0:000 SmbiosTable.Type17->Speed = 1600MHz
0:100 0:000 SmbiosTable.Type17->Size = 2048MB
0:100 0:000 SmbiosTable.Type17->Bank/Device = BANK 3 ChannelB-DIMM1
0:100 0:000 SmbiosTable.Type17->Vendor = 1302
0:100 0:000 SmbiosTable.Type17->SerialNumber = 00000000
0:100 0:000 SmbiosTable.Type17->PartNumber = 1600LLA Series
0:100 0:000 Boot status=0
0:100 0:000 Running on: 'Z87X-UD5H' with board 'Z87X-UD5H-CF'
0:100 0:000 === [ GetCPUProperties ] ========================
0:100 0:000 CPU Vendor = 756E6547 Model=306C3
0:100 0:000 The CPU supported SSE4.1
0:100 0:000 BrandString = Intel(R) Core(TM) i5-4670K CPU @ 3.40GHz
0:100 0:000 The CPU not supported turbo
0:100 0:000 MSR 0x35 40004
0:100 0:000 MSR 0xE2 before patch 1E000402
0:100 0:000 MSR 0xCE 00080838_F3012200
0:100 0:000 corrected FLEX_RATIO = E0000
0:100 0:000 FSBFrequency = 100 MHz, DMI FSBFrequency = 100 MHz, Corrected FSBFrequency = 100 MHz
0:100 0:000 MaxDiv/MinDiv: 34.0/8
0:100 0:000 Turbo: 36/37/38/38
0:100 0:000 Features: 0x77DAFBBFBFEBFBFF
0:100 0:000 Threads: 4
0:100 0:000 Cores: 4
[Truncated]
4:647 0:208 ->Extra kext: EFI\CLOVER\kexts\Other\FakeSMC_GPUSensors.kext (v.1800)
4:659 0:012 ->Extra kext: EFI\CLOVER\kexts\Other\FakeSMC_CPUSensors.kext (v.1800)
4:668 0:008 ->Extra kext: EFI\CLOVER\kexts\Other\Lilu.kext (v.1.2.7)
4:679 0:011 ->Extra kext: EFI\CLOVER\kexts\Other\FakeSMC_ACPISensors.kext (v.1800)
4:693 0:014 ->Extra kext: EFI\CLOVER\kexts\Other\FakeSMC.kext (v.1800)
4:710 0:016 Preparing kexts injection for arch=x86_64 from EFI\CLOVER\kexts\Off
4:710 0:000 Preparing kexts injection for arch=x86_64 from EFI\CLOVER\kexts\10
4:710 0:000 Preparing kexts injection for arch=x86_64 from EFI\CLOVER\kexts\10_normal
4:710 0:000 Preparing kexts injection for arch=x86_64 from EFI\CLOVER\kexts\10.15
4:710 0:000 Preparing kexts injection for arch=x86_64 from EFI\CLOVER\kexts\10.15_normal
4:710 0:000 Preparing kexts injection for arch=x86_64 from EFI\CLOVER\kexts\10.15.6
4:710 0:000 Preparing kexts injection for arch=x86_64 from EFI\CLOVER\kexts\10.15.6_normal
4:711 0:000 SetStartupDiskVolume:
4:711 0:000 * Volume: 'Catalina'
4:711 0:000 * LoaderPath: ''
4:711 0:000 * DevPath: Catalina
4:711 0:000 * GUID = 1C275949-AADB-19E7-8F39-9E8423BDF19A
4:711 0:000 * efi-boot-device: <array><dict><key>IOMatch</key><dict><key>IOProviderClass</key><string>IOMedia</string><key>IOPropertyMatch</key><dict><key>UUID</key><string>1C275949-AADB-19E7-8F39-9E8423BDF19A</string></dict></dict></dict></array>
4:711 0:000 SetScreenResolution: 1024x768 - already set
4:711 0:000 Custom boot is disabled |
cosmos/cosmos-sdk | 1082039120 | Title: Gov: generate proto types into `types/v1beta2` instead of `types`
Question:
username_0: <!-- < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < ☺
v ✰ Thanks for opening an issue! ✰
v Before smashing the submit button please review the template.
v Word of caution: poorly thought-out proposals may be rejected
v without deliberation
☺ > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -->
## Summary
Consider generating proto files into `types/v1beta2` instead of `types`
## Problem Definition
Historically, we generated types in the `types` folder of each module.
For gov, we will now maintain 2 versions: `v1beta1` and `v1beta2`. The current way we're going in #10763 is to generate:
- v1beta1 types in `types/v1beta1`
- v1beta2 types in `types`
The main pro is explicitness.
## Proposal
Generate v1beta2 proto types into `types/v1beta2` instead of `types`.
____
#### For Admin Use
- [ ] Not duplicate issue
- [ ] Appropriate labels applied
- [ ] Appropriate contributors tagged
- [ ] Contributor assigned/self-assigned |
magicdawn/magicdawn | 158959870 | Title: python
Question:
username_0: ## pyenv
https://github.com/yyuu/pyenv
1. 将 `~/.pyenv/shims/` 加到 PATH 里, 然后运行一个 shims 里的 binary 时去动态选择 python version
2. `pyenv shell 3.5.1` 设置了一个环境变量, 当前 shell 有效
3. `.python-version` 文件里的, 可通过 `pyenv local 3.5.1` 设置
4. `pyenv global 2.7.11` 全局
Answers:
username_0: ## pyenv
https://github.com/yyuu/pyenv
1. 将 `~/.pyenv/shims/` 加到 PATH 里, 然后运行一个 shims 里的 binary 时去动态选择 python version
2. `pyenv shell 3.5.1` 设置了一个环境变量, 当前 shell 有效
3. `.python-version` 文件里的, 可通过 `pyenv local 3.5.1` 设置
4. `pyenv global 2.7.11` 全局
username_0: ## demos
### modify apk
```py
import zipfile
import os
home = os.environ['HOME']
apk_file = home + '/workspace/fengjr/android_pack/in-py.apk'
z = zipfile.ZipFile(apk_file, 'a')
meta_info_file = 'META-INF/in-py.txt'
exists = False
try:
info = z.getinfo(meta_info_file)
print(info)
exists = True
except KeyError:
exists = False
if exists:
z.writestr(info, "From info")
else:
z.writestr(meta_info_file, "From Python script")
z.close()
``` |
tediousjs/tedious | 389137543 | Title: Login failed. The login is from an untrusted domain and cannot be used with Windows authentication.
Question:
username_0: I am using tedious 3.0.1 to connect sql server, I want to use windows authentication, my config looks like this,
var config = {
domain: 'XXXXCLOUD',
userName: 'XX_SA_XX_XXXX_XX',
password: "<PASSWORD>"
server: 'XX-ZU2SQLXXX.XXXXCLOUD.com',
options: {
database: 'dbname',
encrypt: true,
port: 1433
}
}
After run command, I got "Login failed. The login is from an untrusted domain and cannot be used with Windows authentication." error.
The sql server I am trying to connect is : sql server 2016
I am using runas command like below in my local machine, so I can try to login with correct domain:
runas /netonly /env /user:XXXXCLOUD\XX_SA_XX_XXXX_XX "node tediousClientConnect" (tediousClientConnect is my node client app which using tedious to connect sql)
Can anyone help to provide a solution on this ?
Answers:
username_1: @username_0 I am not able to help with this info 🤷♀️ but the error is telling what could be the potential issue. are you able to connect to the server using SSMS with the same config? Also depending on the scenario, setting `trustServerCertificate` to true could be helpful.
username_2: Sometimes the server requires passing through the workstation name as well. Unfortunately, we currently don't expose that option. I'll see if I can open a PR to allow this, and maybe you can then see if that helps you in your case.
Sorry you're facing this trouble. 🙇
username_0: Hi username_2,
Thanks for response and help, waiting for your further update.
username_3: I might be facing the same issue
username_4: Hi @username_0, are you still facing the same issue with the latest tedious version?
username_5: removed DOMAIN section of my config and it started working. could be some internal changes by network admins, but for now this worked in my specific instance. |
coronasafe/care_fe | 930762744 | Title: Preview in not working in Patient Files
Question:
username_0: 
when we are uploading a .jpeg file into the 'View/ Upload patient files' inside a patient card the preview is not working but we are able to download the file
Answers:
username_1: @username_0 this feature is working fine in localhost (when run locally) and netlify deploy versions (testing deploys in PRs). I think the problem is in where the staging is deployed
working on localhost:

working on netlify deploys:

@username_4 can you please look this up!
username_2: 
Hmm CORS error @username_4
username_3: Why is there a difference between netlify version and deployed version ? @username_4
username_4: Yes, our server has strict cors policy.
Means any javascript that's not served / whitelisted by us can't be executed in run time.
@tomahawk-pilot can you check out the issue
Status: Issue closed
username_4: The CORS issue is now fixed |
dotnet/csharplang | 268099006 | Title: allow fixed and stackalloc expressions to be used with conditional assignment.
Question:
username_0: What I want to do is really impossible without duplicating code for each branch. ideally here is what I want to do.
Range* ranges; // a temporary array.
// if suggested length is small stackalloc
if (length < 50000)
{
var alloc = stackalloc Range[length];
ranges = alloc;
}
else // possibly cant fit on stack, use pointer to fixed array.
{
// really really wrong, because nothing is fixed after this line.
fixed (Range* x = &(new Range[length])[0]) ranges = x;
}
I'm not sure what features are required for this. how ever following is not possible.
Range* ranges;
ranges = stackalloc Range[length]; // some syntax error.
It seems `stackalloc` is very special syntax. but why should it be not allowed to be used as part of expression?
The other feature I need is this.
{
Range* ranges = fixed(&(new Range[length])[0]);
//...
}
and unmanaged object should remain fixed until end of current block is reached. I think syntax for single line `fixed` could become shortened by omitting `&` operator.
fixed(new Range[length][0]);
Then with this features, I will be able to do following.
Range* ranges = length < 50000 ? stackalloc Range[length] : fixed(new Range[length][0]);
and happily use ranges which is conditionally stack allocated or not.
**What can be fixed easily**
I don't see why `stackalloc` cant be used inside expression (and has to be really whole declaration and assignment statement). I doubt this will be hard for c# team to solve this.
**What may be a challenge**
having `fixed` expression that will fix managed object for rest of current block.
**How can I solve this**
write exact duplicate code for two branches.
Answers:
username_1: ---
In fact, safe `stackallloc` might actually be the solution here. This code works for me in C# 7.2 nightly:
```c#
Span<Range> ranges;
if (length < 50000)
{
ranges = stackalloc Range[length];
}
else
{
ranges = new Range[length];
}
// use Span<Range> directly or convert to a pointer:
fixed (Range* ptr = &ranges.DangerousGetPinnableReference())
{
}
```
username_2: You could also use ternary for that
```cs
var ranges = length < 50000 ? stackalloc Range[length] : (Span<Range>)new Range[length];
```
Status: Issue closed
username_0: @username_2 @username_1 interesting, I have to update VS to get 7.2, currently I have 7.1 max. problem solved. I guess this thread can be closed then. |
thingsboard/thingsboard-gateway | 672101950 | Title: [HELP]
Question:
username_0: **Describe the issue**
Create description about your issue, and your actions to solve it.
Unable to connect thingsboard gateway using REST connector
I have python Rest test server on laptap
I want to connect it with thingsboard through gateway and acess data using POST,GET,PUT methods
**Configuration** (Attach your configuration file)
**Notate: Remove Access token from file if you wanna attach tb_gateway.yaml**
**Connector name (If you need help with some connector/converter):**
[e.g. REST Connector]
**Error traceback (If it was raised):**
```no data is received
**Versions (please complete the following information):**
- OS: Ubuntu 18.04
- Thingsboard IoT Gateway version [e.g. 2.2.4]
- Python version[e.g. 3.7]
[rest.txt](https://github.com/thingsboard/thingsboard-gateway/files/5016417/rest.txt)
[tb_gateway.txt](https://github.com/thingsboard/thingsboard-gateway/files/5016419/tb_gateway.txt)
Answers:
username_1: Hi @username_0
Thank you for your interest in the ThingsBoard IoT gateway.
REST connector gives ability to create endpoints on the gateway and listen ports to get information.
To take the information from another resource you should use [Request connector](https://thingsboard.io/docs/iot-gateway/config/request/).
username_0: Thanks for the quick response
I have a sample rest endpoint server running on my pc with endpoint
127.0.0.1:5000/user/username
How to get information with request connector
My request configuration is attached below
I have another doubt
Whether REST and Request connectors can be enabled at the same time through
gateway.?
username_1: gateway.?
Yes, you can do it. Also you can run several connectors with the same type (e.g. 2 request connectors and one rest connector). To do this uncomment/copy connector section in the tb_gateway.yaml file. Only one requirement - every connector must has his own configuration file.
username_0: Thanks for your reply
I have another question regarding the ble connector
I have a ble simulator on smartphone,parametes like heart rate ,temperature
etc
I want to get the UUID of these parameters using python script,but it shows
connection refused error
Can you explain the reason or another method for this?
username_1: Hi @username_0 ,
Please open a new issue, when you wanna ask something new.
Probably, the issue with simulator is appeared because the smartphone usually doesn't support BLE connection to them without pairing, just try to pair device with gateway and your smartphone and try to run the gateway again.
Status: Issue closed
|
cdnjs/cdnjs | 167539718 | Title: [Request] Add _library_name_
Question:
username_0: jQuery Tag-it!
https://github.com/aehlke/tag-it
MIT license.
http://aehlke.github.io/tag-it/
Thanks in advance!
Answers:
username_1: Hey, it's a duplicate: :)
https://github.com/cdnjs/cdnjs/issues/8510
username_2: Move to #8510
Status: Issue closed
username_1: @username_0 Good news! It's already published.
username_0: @username_1 Thanks |
mcneel/rhinoscriptsyntax | 18899650 | Title: Creating surface from 5 or more points in Python for Rhino. (similar to what the Patch command does)
Question:
username_0: Hi I am new to Python for Rhino and I would like to know if there is a way to create a surface between 5 or more existing points (which would be defined within the script by their ObjectIDs).
I would like to do something similar to what AddSrfPt does but with more than 4 points.<issue_closed>
Status: Issue closed |
hozuki/MonoGame.Extended2 | 482113070 | Title: Error on looped video in Demo
Question:
username_0: I ran the VideoPlayback.DesktopGL Demo, with the VideoPlayer on loop, after a couple minutes
it threw an ApplicationException in VideoPlayer.DecodingThread on line 98, with the message: Cannot access disposed object
Answers:
username_1: Looks like a rare racing condition. I'll look into this.
username_2: I too get a nasty exception when looping or restarting. Its random but i get it every 2 or 3 loops no matter the video source. Its a pointer exception related to a buffer in audio, it says.
username_1: @username_2 I tested multiple times and this problem did occur, but it's rare. It seems sometimes `dstData[0]` (in `FFmpegHelper.TransmitAudioFrame`) sometimes gets `null` from `av_samples_alloc` or `swr_convert`. I don't know which one because after I set the breakpoint the bug just hid itself. 😞 Needs more testing though. However the bug is not the same as what OP reported.
username_2: This is the exception i get (i get it every time i set loop to true)
System.NullReferenceException
HResult=0x80004003
Message=Object reference not set to an instance of an object.
Source=MonoGame.Framework
StackTrace:
at Microsoft.Xna.Framework.Audio.DynamicSoundEffectInstance.OnBufferEnd(IntPtr obj)
at SharpDX.XAudio2.SourceVoice.VoiceCallbackImpl.SharpDX.XAudio2.VoiceCallback.OnBufferEnd(IntPtr context)
at SharpDX.XAudio2.VoiceShadow.VoiceVtbl.OnBufferEndImpl(IntPtr thisObject, IntPtr address)
username_1: Does this still happen using new looping mechanism?
username_2: Nope, didn't know there were any changes to the subject. Will test it as soon as possible.
username_2: I am unable to start the test project WindowsDX, i get this exception:
System.EntryPointNotFoundException: 'Could not find the entrypoint for avformat_alloc_context.'
I have copied the ffmpeg dll's, still it wont work.
username_1: Maybe because of dll not found or version mismatch?
- The dlls should be placed in `x86` and/or `x64` (names depend on arguments of `InitializeFFmpeg()`).
- Also note the version of FFmpeg, it should be 3.4 (with major versions displayed in [usage](https://github.com/username_1/MonoGame.Extended2/tree/master/Sources/MonoGame.Extended.VideoPlayback#usage)). As an alternative, you can update `FFmpeg.AutoGen` to a newer version, and choose corresponding FFmpeg dlls. Anyway, the versions must match. See FFmpeg's [versioning rules](https://www.ffmpeg.org/doxygen/trunk/index.html).
username_2: Hi, after updating the nuget package "FFmpeg.AutoGen" it all worked :)
- Not i will test the loop function :P
username_2: Hi Hozuki.
Loop seems a lot more stable now, however, when using the "Replay()" function a few times, i got this exception:

After retrying a few times, i got this exception:

at Microsoft.Xna.Framework.Audio.DynamicSoundEffectInstance.SubmitBuffer(Byte[] buffer)
at MonoGame.Extended.VideoPlayback.DecodeContext.ReadAudioUntilPlaybackIsAfter(DynamicSoundEffectInstance sound, Double presentationTime) in D:\Development\DotNet\ext_git\MonoGame.Extended2\Sources\MonoGame.Extended.VideoPlayback\DecodeContext.cs:line 548
at MonoGame.Extended.Framework.Media.VideoPlayer.DecodingThread.ThreadProc() in D:\Development\DotNet\ext_git\MonoGame.Extended2\Sources\MonoGame.Extended.VideoPlayback\Media\VideoPlayer.DecodingThread.cs:line 119
I don't care about the Replay() function, but it seems that the exception i get from the Replay() is the same i saw in "Loop" mode earlier.
I will continue to test the loop, to see if that can be provoked to produce the exception as well.
username_1: The `ObjectDisposedException` is caused by accessing `_soundEffectInstance` in both main thread and decoding thread without "single access" guarantee. It should be fixed in 9baac981d52e76e7bf811a345b2847fb9c625677. (But pessimistic locking spreads everywhere, which may have a little impact on performance. Since the decoding thread is properly terminated in `Replay()`, you can consider removing those locks and leaving sound-related properties non-thread-safe in exchange of performance.)
And you are right. Looping was emulated by calling `Replay()` when the video ends.
About duplicate key, do you more information on the exception?
username_2: Hi Hozuki. I thought so :)
Here is a more detailed exception on the "Key already exists"
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.SortedList`2.Add(TKey key, TValue value)
at MonoGame.Extended.VideoPlayback.Extensions.SortedListExtensions.Enqueue[TKey,TValue](SortedList`2 list, TKey key, TValue value) in D:\Development\DotNet\ext_git\MonoGame.Extended2\Sources\MonoGame.Extended.VideoPlayback\Extensions\SortedList`2Extensions.cs:line 19
at MonoGame.Extended.VideoPlayback.DecodeContext.TryFetchVideoFrames(Int32 count) in D:\Development\DotNet\ext_git\MonoGame.Extended2\Sources\MonoGame.Extended.VideoPlayback\DecodeContext.cs:line 746
at MonoGame.Extended.VideoPlayback.DecodeContext.ReadVideoUntilPlaybackIsAfter(Double presentationTime) in D:\Development\DotNet\ext_git\MonoGame.Extended2\Sources\MonoGame.Extended.VideoPlayback\DecodeContext.cs:line 407
at MonoGame.Extended.Framework.Media.VideoPlayer.DecodingThread.ThreadProc() in D:\Development\DotNet\ext_git\MonoGame.Extended2\Sources\MonoGame.Extended.VideoPlayback\Media\VideoPlayer.DecodingThread.cs:line 122


Its actually easy to reproduce, start a longer video that the rabit one, and press R a few times.
username_2: Hi again.
Not sure if my previous post had code aligned, but this is from the latest head:

username_2: Hi, i've just tested with a simple (but not necessary the best) solution:

It does the trick, now i can SPAM Replay as much as i like, without any issues :)
username_1: @username_2 Thank you. I pushed the commit which fixes
- this problem (duplicate key)
- empty audio buffer queue when calling `Stop()`
username_2: Great, thank you @username_1 :) |
umakantp/jsmart | 413706358 | Title: Blocks inside blocks dont work?
Question:
username_0: Hello there,
block nesting like this does not work:
`{block name="header"}
<div class="menu">
{block name="menu-items"}
<div class="item">
menu
</div>
{/block}
</div>
{/block}`
is there a way to fix this? |
Adobe-Consulting-Services/adobe-consulting-services.github.io | 149938327 | Title: ACS Tools - Tag Maker - Localized Titles
Question:
username_0: Localized Titles Converter..
If a `default` locale is specified, that is used for the `[cq:Tag]/jcr:title`... so `default[Internal Title] en[Title] fr[Titre] {{ my-tag}}` would result in
```
[cq:Tag]@jcr:title=Internal Title
[cq:Tag]@jcr:title.en=Title
[cq:Tag]@jcr:title.fr=Titre
```
If no `default` is specifed, the FIRST locale listed will be used as the `jcr:title` .. so `en[Title] fr[Titre] {{my-tag}}` would result in...
```
[cq:Tag]@jcr:title=Title
[cq:Tag]@jcr:title.en=Title
[cq:Tag]@jcr:title.fr=Titre
``` |
ebellocchia/py_crypto_hd_wallet | 1061412732 | Title: Creating raw transaction using bitcoin-cli
Question:
username_0: Hi 👋 all,
Which key should be used to sign a raw transaction when using bitcoin-cli?
Thx
Answers:
username_1: Hi,
it depends on the format that bitcoin-cli requires for the private key, you can try using the WIF format with Bitcoin
Regards
username_0: Thanks a lot for this library and great documentation.
I'm successfully created and signed and send a transaction on bitcoin test network. Used address WIF private key.
It deserves 100 times more stars, for supporting a lot of network addresses out of box.
Status: Issue closed
|
docker/for-mac | 548425056 | Title: WARNING: Error loading config file: /Users/username/.docker/config.json: EOF
Question:
username_0: <!--
Please, check https://docs.docker.com/docker-for-mac/troubleshoot/.
Issues without logs and details cannot be debugged, and will be closed.
Issues unrelated to Docker for Mac will be closed. In particular, see
- https://github.com/docker/compose/issues for docker-compose
- https://github.com/docker/machine/issues for docker-machine
- https://github.com/moby/moby/issues for Docker daemon
- https://github.com/docker/docker.github.io/issues for the documentation
-->
<!--
Replace `- [ ]` with `- [x]`, or click after having submitted the issue.
-->
- [ ] I have tried with the latest version of my channel (Stable or Edge)
- [ ] I have uploaded Diagnostics
- Diagnostics ID:
### Expected behavior
### Actual behavior
### Information
<!--
Please, help us understand the problem. For instance:
- Is it reproducible?
- Is the problem new?
- Did the problem appear with an update?
- A reproducible case if this is a bug, Dockerfiles FTW.
-->
- macOS Version:
### Diagnostic logs
<!-- Full output of the diagnostics from "Diagnose & Feedback" in the menu ... -->
```
Docker for Mac: version...
```
### Steps to reproduce the behavior
<!--
A reproducible case, Dockerfiles FTW.
-->
1. ...
2. ... |
heroku/heroku-buildpack-nodejs | 126520068 | Title: Alias node with flags for dyno-specific memory limits
Question:
username_0: Eg, something like this for a 2x dyno:
```
alias node='node --gc_global --optimize_for_size --max_old_space_size=960 --always_compact --max_executable_size=64 --gc_interval=100 --expose_gc'
```
The alias should be opt-in. Maybe with an env var like `NODE_ALIAS=true`?
Answers:
username_0: For instance, this is from a customer - pre and post GC flags:

username_1: Wow, that graph is _striking_. Defaulting to sane settings for the dyno type is clearly a smart choice.
Two thoughts occur:
1. Is it possible to compute the node options from the values provided by ulimit/memory info/etc, instead of doing the giant lookup table on memory size that we've historically had trouble with in other buildpacks? I know that better dyno metadata would generally improve the situation, but we can probably survive for now using what the OS reports.
2. I feel like the node argv should be sane. If a user puts `node --max_old_space_size=1024 …` in their `Procfile`, for example, we should probably pass `node --gc_global --optimize_for_size --always_compact … --max_old_space_size=1024 …` to the actual Node binary, dropping the buildpack default argument out of argv entirely and appending the user-supplied arguments at the end. I don't want to have to support users whose primary complaint is "node behaves weirdly when we pass this argument" when the root cause is "we're actually passing two copies of the same option."
I think that rules out an alias, but we could make something more sophisticated (a shell function, if we want to avoid polluting PATH, or a real `node` wrapper script, if we want subprocess node to get the same default options).
@username_3 I know you've looked at writing a `java` wrapper to do things like apply `$JAVA_OPTS` and set up memory limits automatically, and opted not to do that. What kind of issues have you run into?
username_2: Are there ways you could use env vars? If so, we do this in Ruby land for setting sane defaults. This is where `bin/release` comes in handy. This way it does not affect existing apps, but all new pushed apps get it. In addition, when you run `heroku config` you can see env vars that are set and can change them as a user and it won't get clobbered by Heroku.
username_1: `bin/release` doesn't know the dyno size the app will ultimately run on, which makes things like computed memory limits a bit tricky.
username_0: Agreed. I'd like to test what node does when you just append duplicate flags though because an alias is so simple, and it may do exactly what I would hope (use the last provided value).
@username_2 could you link me to the similar stuff you're doing for ruby?
username_3: For the JVM I set `JAVA_TOOL_OPTIONS`, which is picked up by any Java process. Any command-line args override it.
The wrapper @username_1 mentioned was for dealing with some stderr messages I was trying to suppress, so kinda unrelated. I decided against it because it make debugging hard for me -- but never had complaints from users (I had it in prod for months).
I think the wrapper is a good idea. So basically you would have a `node` executable that is really just a shell script. then it would do something like:
```bash
# do some opt processing...
default_opts="sane opts based on processing"
.heroku/nodejs/bin/node $default_opts $@
```
username_2: @username_1 that's a fair point. ultimately, we ended up leveraging `.profile.d`.
username_4: Is this still under consideration? We were running into the memory issues described above and finally found [this](https://blog.heroku.com/node-habits-2016). But it took some time to discover the root of our issue. We want to apply this to all our node apps and were thinking about rolling out a custom buildpack until I came across this.
When I tested this, node always took the last argument if you pass multiple of the same, so I think an alias wouldn't be a problem.
There is one more potential issue I can think of though. For performance dyno's etc, you'd have `WEB_CONCURRENCY=5` for example, so you should divide the sane defaults by 5 as well to prevent the app from exceeding the memory quota. However, for users that do not cluster their app, this would mean they get only a fraction of the available memory by default. Might be confusing for them?
username_5: Going to close this since the memory tuning should not be needed any more. If there are other memory issues, please open another issue.
Status: Issue closed
username_6: Hi @username_5,
Is there some more information you could share with us about why using the flags: ` --max_semi_space_size` and `--max_old_space_size` is now not needed? |
lervag/vimtex | 254293245 | Title: dse does not delete additional arguments for some environments
Question:
username_0: ### Explain the issue
Deleting an environment that has additional arguments in curly braces (for instance `block` in beamer) does not remove those arguments.
### Minimal working example
Please provide a minimal working LaTeX example, e.g.
```tex
\documentclass{beamer}
\begin{document}
\begin{frame}
\begin{block}{Title}
content
\end{block}
\end{frame}
\end{document}
```
Using `dse` when the cursor is place on `begin` leaves a `{Title}` in the document.
### Minimal vimrc file
```vim
set nocompatible
" Load Vimtex
let &rtp = '~/.vim/bundle/vimtex,' . &rtp
let &rtp .= ',~/.vim/bundle/vimtex/after'
" Load other plugins, if necessary
" let &rtp = '~/path/to/other/plugin,' . &rtp
filetype plugin indent on
syntax enable
" Vimtex options go here
```
Answers:
username_1: Actually, `dse` will never remove extra arguments. The reason is that it is hard to know what is actually an argument. E.g.: `\begin{foo}{\color{red} bar}\end{foo}`; it is not possible to know if the `{\color{red} bar}` is an argument to the opening part of the environment, or if it is content.
However, one could make the heuristic that anything that follows directly without any spaces is "naturally" an argument. This would work, I guess, but it would also mean that people need to adhere to this as a stylistic preference. I don't want to add more options, though, so we would have to agree that this is the more appropriate behaviour...
Status: Issue closed
|
antonioribeiro/countries | 211507602 | Title: Does this package require the Class Aliases for the facade?
Question:
username_0: I noticed you call the package like this
`Countries::where('tld.0', '.ch')`
Do you require the Class Aliases to be added to the `app.php` aliases array?
I could not see it mentioned in the instructions.
Answers:
username_0: I managed to access it via adding `'Countries' => PragmaRX\Countries\Facade::class` to `app.php` and in the controller using `use PragmaRX\Countries\Facade as Countries;` this allowed me to use the package.
username_1: Sorry, I probably forgot to add that alias to the docs, would you mind to send a PR? I'm travelling without a computer :/
Status: Issue closed
|
i3/i3 | 690191183 | Title: Always show titlebar in tabbed/stacked layout
Question:
username_0: ## I'm submitting a…
<!-- Please check one of the following options with "x" -->
<pre>
[ ] Bug
[x] Feature Request
[ ] Documentation Request
[ ] Other (Please describe in detail)
</pre>
## Current Behavior
<!--
Describe the current behavior,
e.g., »When pressing Alt+j (focus left), the window above the current window is focused.«
-->
Currently, when titlebars are disabled, a tabbed or stacked container will show a titlebar only when it has multiple children.
## Desired Behavior
<!--
Describe the desired behavior you expect after mitigation of the issue,
e.g., »The window left next to the current window should be focused.«
-->
For the sake of consistency, and to avoid the window size changing whenever the second tab is added or removed, I would like to have an option to always show the titlebar in tabbed and stacked containers, even when it is otherwise disabled.
If there is interest, I can try writing a pull request.
Status: Issue closed
Answers:
username_1: When you disable title bars, i3 only shows title bars when necessary to disambiguite what’s on the screen.
I don’t think we should change this behavior—existing users are used to it, and I like the simple-to-understand model of when to expect title bars. Let’s not make it more complicated. |
TCNCoalition/tcn-client-ios | 615242055 | Title: Logical issue
Question:
username_0: There is logical issue in the code related to method `Report.getTemporaryContactNumbers()`.
Consider the following use case:
- A and B are users.
- A walking and the app generates TCNs.
- A became infected and sends a report about this fact. The report covers all TCNs from 14 days in the past till now.
- Then later A walks near B.
- B discovers newly generated TCN from A. It's a new TCN and it's not covered by earlier generated report. Hence, even if B (app) will fetch the report from the backend it will not find that this TCN was ever infected.
- Hence, reports are useless for saving in local storage because they can be only applied to TCN in the past. |
fabric/fabric | 67208210 | Title: UnicodeEncodeError when calling puts function with unicode u'\xff' and the stream.encoding is None
Question:
username_0: Hi,
When replace the variable <b>s</b> to another value <b>u'\xff'</b>, this test would fail.
<b>[test-case]</b>
```python
@mock_streams('stdout')
def test_puts_with_encoding_type_none_output():
"""
puts() should print unicode output without a stream encoding
"""
s = u"string!"
output.user = True
sys.stdout.encoding = None
puts(s, show_prefix=False)
eq_(sys.stdout.getvalue(), s + "\n")
```
<b>[traceback]</b>
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-4: ordinal not in range(128)
<b>[comments]</b>
The buggy point locates in the function '_encode' in utils.py, you should not simply cast the msg into str by using str(msg).
```python
def _encode(msg, stream):
if isinstance(msg, unicode) and hasattr(stream, 'encoding') and not stream.encoding is None:
return msg.encode(stream.encoding)
else:
return str(msg) #<========== buggy point
```
Answers:
username_0: Anyone cares?
username_1: Yup, it seems that changing `return str(msg)` to `return msg` solves the problem without breaking tests. But why this cast was necessary at the first place?
username_2: The best Foo in the world
```
I'm guessing there's code out there that uses this (hopeless to google it right now).
I'm not sure I think it's right that not having an encoding set and using unicode will cause `puts` to crash us, though.
username_3: Suspect the least-worst way to address this for now is to simply update the offending line to be:
``` python
try:
return str(msg) # Original behavior added for 'reasons'
except UnicodeDecodeError:
return msg # Best-effort fallback
```
This way, whatever antediluvian reasons we had for casting-to-string will continue to function as-is, but the buggy case under discussion would fall back to "well, I dunno what this is, but I can't `str()` it, so I'll just shove it down the pipe as-is".
username_4: I encountered a similar issue while running the `sudo` method. Is there any progress on this? |
troyp/asoc.el | 360606551 | Title: Add the package to melpa
Question:
username_0: It would be good to add it to melpa. This way anyone could use it. I am trying to add dependency to "Package-Requires" Header. I could not make it work without it being available in melpa / elpa.
Answers:
username_1: @username_2 Any thoughts on this?
username_2: I was actually planning to add this to ELPA years ago, but for some reason I never did (I had to wait quite a while to get the copyright assignment thing finalized, so maybe I'd lost momentum on the project).
If there's still a need for an alist library, I'll look into adding it to MELPA and/or ELPA.
username_1: I would love to see this great package in MELPA or ELPA. I noticed #1 yet this is more complete and easier to use, IMO. I have temporarily added this package to CELPA for my own use. But like as I said, I don't see why not add to MELPA or ELPA. 😁
Thanks for this amazing package! |
glasklart/hd | 284630052 | Title: i-Ready for Students
Question:
username_0: **App Name:** i-Ready for Students
**Bundle ID:** com.i-ready.ireadyapp
**iTunes ID:** <a target="_blank" href="http://getart.username_1.at?id=1155613065">1155613065</a>
**iTunes URL:** <a target="_blank" href="https://itunes.apple.com/us/app/i-ready-for-students/id1155613065?mt=8&uo=4">https://itunes.apple.com/us/app/i-ready-for-students/id1155613065?mt=8&uo=4</a>
**App Version:** 2.0
**Seller:** Curriculum Associates, LLC
**Developer:** <a target="_blank" href="https://itunes.apple.com/us/developer/curriculum-associates-llc/id454523409?uo=4">© Curriculum Associates, LLC</a>
**Supported Devices:** iPadFourthGen-iPadFourthGen, iPadFourthGen4G-iPadFourthGen4G, iPadAir-iPadAir, iPadAirCellular-iPadAirCellular, iPadMiniRetina-iPadMiniRetina, iPadMiniRetinaCellular-iPadMiniRetinaCellular, iPadAir2-iPadAir2, iPadAir2Cellular-iPadAir2Cellular, iPadMini3-iPadMini3, iPadMini3Cellular-iPadMini3Cellular, iPadMini4-iPadMini4, iPadMini4Cellular-iPadMini4Cellular, iPadPro-iPadPro, iPadProCellular-iPadProCellular, iPadPro97-iPadPro97, iPadPro97Cellular-iPadPro97Cellular, iPad611-iPad611, iPad612-iPad612, iPad71-iPad71, iPad72-iPad72, iPad73-iPad73, iPad74-iPad74
**Original Artwork:**
<img src="http://is5.mzstatic.com/image/thumb/Purple127/v4/ce/29/d1/ce29d11c-7e4d-15b2-9d8b-42f896bc3014/source/1024x1024bb.png" width="180" height="180" />
**Accepted Artwork:**
\#\#\# THIS IS FOR GLASKLART MAINTAINERS DO NOT MODIFY THIS LINE OR WRITE BELOW IT. CONTRIBUTIONS AND COMMENTS SHOULD BE IN A SEPARATE COMMENT. \#\#\#
Answers:
username_1: 
https://user-images.githubusercontent.com/2068130/34394124-837cc84c-eb57-11e7-8fcc-58b1e9238dc7.png
--- ---
Source:
https://user-images.githubusercontent.com/2068130/34394137-9452420a-eb57-11e7-88de-2d2111cbd861.png
Status: Issue closed
|
MicrosoftDocs/architecture-center | 612235722 | Title: Include Azure Data Explorer in this pattern
Question:
username_0: Azure Data Explorer is part of the new real-time analytics pattern which is not reflected on this page. Please add it and ping me if you have any questions. - <EMAIL>
---
#### Document Details
⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*
* ID: 1b4bb287-fa40-af1d-0af9-e8bc30cfb33e
* Version Independent ID: 12ab4c06-2e95-bb73-f62a-2d1eb79bc735
* Content: [Real Time Analytics on Big Data Architecture - Azure Solution Ideas](https://docs.microsoft.com/en-us/azure/architecture/solution-ideas/articles/real-time-analytics#feedback)
* Content Source: [docs/solution-ideas/articles/real-time-analytics.md](https://github.com/microsoftdocs/architecture-center/blob/master/docs/solution-ideas/articles/real-time-analytics.md)
* Service: **architecture-center**
* Sub-service: **solution-idea**
* GitHub Login: @adamboeglin
* Microsoft Alias: **pnp**
Answers:
username_1: Thanks for reporting - this issue is under review. This is a Microsoft Internal DevOps Bug ID AB#214545
Status: Issue closed
|
numpy/numpy | 517686340 | Title: `np.isnan` raises an error for datetime (NaT)
Question:
username_0: <!-- Please describe the issue in detail here, and fill in the fields below -->
### Reproducing code example:
```python
import numpy as np
a = np.array(['1999-12-15', 'NaT'], dtype='M8[ns]')
np.isnan(a)
np.nanmin(a)
np.nanmax(a)
```
<!-- Remove these sections for a feature request -->
### Error message:
Each of those raises an:
TypeError: ufunc 'isnan' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''
### Background
Numpy 1.18 returns `NaT` for `np.min(a)` (it did skip `NaT` before 1.18; #14717). This breaks xarray (pydata/xarray#3409) and pandas (pandas-dev/pandas#29058) - therefore it would be good to make `np.isnan`work with `datetime`.
Also: #9009, #1307, #5222
### Numpy/Python version information:
1.18.0.dev0+3b5db53 3.7.3 | packaged by conda-forge | (default, Jul 1 2019, 21:52:21)
[GCC 7.3.0]
Answers:
username_1: Marked for 1.18. release, I guess probably Matti's PR is the practical thing to do.
Status: Issue closed
|
leibnitz27/cfr | 554504973 | Title: Type annotations placed incorrectly for scoped and qualified types
Question:
username_0: Source:
```
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
class TypeAnnotationPlacement {
@Retention(RUNTIME)
@Target({ElementType.TYPE_USE})
@interface MyParam { }
class List { }
static class Nested1 {
static class Nested2 { }
}
// https://docs.oracle.com/javase/specs/jls/se13/html/jls-9.html#jls-9.7.4
Nested1.@MyParam Nested2 field;
// Use return type here due to https://github.com/leibnitz27/cfr/issues/95
java.util.@MyParam List<?> test() {
return null;
}
}
```
Decompiled output:
```
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
class TypeAnnotationPlacement {
// Invalid
@MyParam TypeAnnotationPlacement.Nested1.Nested2 field;
TypeAnnotationPlacement() {
}
// Invalid
@MyParam java.util.List<?> test() {
return null;
}
static class Nested1 {
Nested1() {
}
static class Nested2 {
Nested2() {
}
}
}
class List {
List() {
}
}
@Retention(value=RetentionPolicy.RUNTIME)
@Target(value={ElementType.TYPE_USE})
static @interface MyParam {
}
}
``` |
wurstscript/WurstScript | 410569885 | Title: Incorrect handling of negative hexadecimal/octal
Question:
username_0: The issue extends to both Wurst and Jass code.
Using the following Jass code directly (bypassing Wurst) produces the following screenshot.
```jass
call BJDebugMsg ("79: " + I2S (0117))
call BJDebugMsg ("-79: " + I2S (-0117))
call BJDebugMsg ("79: " + I2S ($4f))
call BJDebugMsg ("-79: " + I2S (-$4f))
call BJDebugMsg ("79: " + I2S (0x4f))
call BJDebugMsg ("-79: " + I2S (-0x4f))
```

However, Wurst displays the following on encountering the Jass.
```
Error in File ...
Invalid number: -$4f
Error in File ...
Invalid number: -0x4f
```
Commenting out those two lines yields:
```jass
call BJDebugMsg("79: " + I2S(79))
call BJDebugMsg("-79: " + I2S(-117))
call BJDebugMsg("79: " + I2S(79))
call BJDebugMsg("79: " + I2S(79))
```
The same is also seen in Wurst:
```wurst
package Test
init
BJDebugMsg (I2S (0117))
BJDebugMsg (I2S (-0117))
BJDebugMsg (I2S (0x4f))
// BJDebugMsg (I2S (-0x4f)) // This will error.
BJDebugMsg (I2S ($4f))
// BJDebugMsg (I2S (-$4f)) // This will error.
```
Produces:
```jass
call BJDebugMsg(I2S(79))
call BJDebugMsg(I2S(-117))
call BJDebugMsg(I2S(79))
call BJDebugMsg(I2S(79))
```<issue_closed>
Status: Issue closed |
vimeo/psalm | 774491076 | Title: Repeatable attribute flag is considered invalid
Question:
username_0: I have the following code in one of my projects:
```php
#[\Attribute(\Attribute::TARGET_CLASS | \Attribute::TARGET_METHOD | \Attribute::IS_REPEATABLE)]
class DenyAccessUnlessGranted
{
}
```
This leads to the following psalm error (using dev-master 3390097)
```
ERROR: InvalidArgument - DenyAccessUnlessGranted.php:5:14 - Argument 1 of Attribute::__construct expects int(1)|int(10)|int(11)|int(12)|int(13)|int(14)|int(15)|int(16)|int(17)|int(18)|int(19)|int(2)|int(20)|int(21)|int(22)|int(23)|int(24)|int(25)|int(26)|int(27)|int(28)|int(29)|int(3)|int(30)|int(31)|int(32)|int(33)|int(34)|int(35)|int(36)|int(37)|int(38)|int(39)|int(4)|int(40)|int(41)|int(42)|int(43)|int(44)|int(45)|int(46)|int(47)|int(48)|int(49)|int(5)|int(50)|int(51)|int(52)|int(53)|int(54)|int(55)|int(56)|int(57)|int(58)|int(59)|int(6)|int(60)|int(61)|int(62)|int(63)|int(7)|int(8)|int(9), int(69) provided (see https://psalm.dev/004)
#[\Attribute(\Attribute::TARGET_CLASS | \Attribute::TARGET_METHOD | \Attribute::IS_REPEATABLE)]
```
When trying the same code on psalm.dev this error is not reported. When I remove `\Attribute::IS_REPEATABLE` from the attribute definition, then psalm does not report an error. So it seems `\Attribute::IS_REPEATABLE` has a different value on my system than Psalm expects (I am using PHP 8.0, compiled from PHP sources).
Answers:
username_1: Somehow, it looks like mask of values have a fixed limit to 64 items, but instead of having a fallback to int, it just stops at 63 and refuse every higher item.
Status: Issue closed
|
nirupamabandara/Wargames-Bandit-26.04.2015 | 82810138 | Title: Bandit Screenshots
Question:
username_0: 








































 |
striblab/civix | 348029511 | Title: Results load cycles take 5-10 minutes
Question:
username_0: Results load cycles (`./bin/civix.js import ap-elex/ap-results`) during the AP test on 8/6 took between 5-10 minutes to run on my laptop (regular Macbook). I suspect this could be because of update-or-create logic here:
https://github.com/striblab/civix/blob/master/importers/ap-elex/ap-results.js#L242-L248
The method may be resource-heavy because it seems to involves a lookup query for every record in the table:
https://github.com/striblab/civix/blob/master/lib/db.js#L99-L122
One potential solution would be to dump and reload the table each time, eliminating the need for the lookups — which assumes the AP will send complete data and is what we did at NYT. A straight update with no update-or-create check might also work.
A point in favor of those solutions is that a count of records in the results table remained consistent throughout the test (5509 records), which implies new records were not being created beyond the initial results load.
Happy to entertain other thoughts. There may also be ways to speed this up with indexes and/or by using joins rather than where statements. But I suspect those will still lead to bottlenecks. |
SODALITE-EU/ide | 691845497 | Title: AADM Deployment: Wizard for entering input values
Question:
username_0: Provide a wizard supporting AADM deployment that:
- Enables the user to enter input values for each input defined in the aadm.
Current approach requires the user to select a file that contains the input values.
Answers:
username_0: Implemented in commit https://github.com/SODALITE-EU/ide/commit/60d15ca3fbd978bb20975da60798208c7fddbe2c
Status: Issue closed
|
ifpe-cpin/maisfono | 394276471 | Title: Implementar agenda do fonoaudiólogo
Question:
username_0: Implementar agenda onde o fono administrará as datas e horários das consultas, compromissos externos, etc.
Essa issue é pré requisito para a issue #39.
Answers:
username_1: @username_0 Concordo. Quem cuida dessa issue?
username_2: Já iniciei a issue @username_0 @username_1
username_1: @username_2 ok! Vou assinar a issue para você.
username_0: Finalizada.
Status: Issue closed
|
PAYONE-GmbH/shopware-5 | 236739537 | Title: Error on Payolution Installment 5.1.3
Question:
username_0: on our 5.1.3 if you order as a guest and don`t fill your birthday in "registration" but on payment page you get an error on ajaxHandlePayolutionPreCheckAction() in MoptAjaxPayone.php
for me it was this line (near line 394):
$config = $this->moptPayoneMain->getPayoneConfig($this->getPaymentId());
"$this->getPaymentId()" is empty... seems that the whole session ist empty at this point! For me I changed the function getPaymentId() to:
`protected function getPaymentId()
{
if($this->session->sOrderVariables['sUserData']['additional']['payment']['id'] != '') return $this->session->sOrderVariables['sUserData']['additional']['payment']['id'];
else {
$userData = $this->admin->sGetUserData();
return $userData['additional']['payment']['id'];
}
}`
and in "buildAndCallPrecheck()" i need to change this (near line 520):
`if ($personalData->getBirthday() !== "00000000" && $personalData->getBirthday() !== "") {
$request->setBirthday($personalData->getBirthday());
} else {
$request->setBirthday($paymentData['dob']);
}
if ($paymentData && $paymentData['mopt_payone__payolution_b2bmode']) {
$request->setBirthday("");
}`
into this
`if ($personalData->getBirthday() !== "00000000" && $personalData->getBirthday() !== "") {
if($personalData->getBirthday() == '') $request->setBirthday($paymentData['dob']);
else $request->setBirthday($personalData->getBirthday());
} else {
$request->setBirthday($paymentData['dob']);
}
if ($paymentData && $paymentData['mopt_payone__payolution_b2bmode']) {
$request->setBirthday("");
}`
i am not 100% sure about my changes can anyone confirm?
Answers:
username_1: Hi @username_0,
Unfortunately, I can't reproduce the issue you're describing. However, just from looking at your code I don't see anything wrong. So if it works for you, I guess you're fine :)
Status: Issue closed
|
moment/luxon | 401529907 | Title: Date not formatting with .toLocaleString()
Question:
username_0: This code is not formatting `data.end` as it should.
```js
const { DateTime } = require('luxon')
const data = {}
const end = DateTime.local().toISO()
const start = DateTime.fromISO(end).minus({ years: 10 })
data.end = end.toLocaleString()
data.start = start.toLocaleString()
console.log('data = ', data)
```
produces
```
data = { end: '2019-01-21T15:23:30.615-07:00', start: '1/21/2009' }
```
Is this a bug or why is `data.end` not formatted?
I'm on version 1.10.0 of luxon
Answers:
username_1: Not a bug. Your `end` var is a string, which you obtained by calling `toISO` on a DateTime. The localeString of a string is just that string, so you end up with your ISO string. Remove `toISO` and your code should work
Status: Issue closed
|
keystonejs/keystone | 410114930 | Title: Mongo queries can fail when filtering on to-many relationship fields
Question:
username_0: In particular, when adding a field to an existing database, and existing records _do not have that field_, you will end up with:
```
$in requires an array as a second argument, found: missing
```
For a concrete example, see [this SO question](https://stackoverflow.com/questions/51642472/in-requires-an-array-as-a-second-argument-found-missing).
## Example
For example, start with these lists:
```javascript
keystone.createList('User', {
fields: {
name: { type: String }
},
});
keystone.createList('Event', {
fields: {
title: { type: String },
}
});
```
Fire up KS5, and insert some data.
Now, modify the lists like so:
```diff
keystone.createList('User', {
fields: {
name: { type: String }
},
});
keystone.createList('Event', {
fields: {
title: { type: String },
+ owners: { type: Relationship, many: true },
}
});
```
Immediately try to run the following query:
```graphql
query {
allEvents(where: { owners_some: { name_contains: "foo" } }) {
id
}
}
```
Then you'll get the above error:
```
$in requires an array as a second argument, found: missing
```
## Investigation
[Truncated]
```javascript
const record = {};
record.owners.includes('abc123');
```
## Workaround
Add a `owners: []` field to all existing records before trying to run the query:
```javascript
db.events.update(
// Filter by items that don't have the given array
{ owners: { $exists: false }},
// Insert that array
{ $set: { owners: [] }},
// Don't stop at the first item
{ multi: true }
);
```
Answers:
username_1: Fixed in #1838 and #1844
Status: Issue closed
|
ktorio/ktor | 463187601 | Title: HttpResponse.readText() fails for non-200 HTTP status
Question:
username_0: ### Ktor Version
1.2.2
### Ktor Engine Used(client or server and name)
Apache Client
### JVM Version, Operating System and Relevant Context
jdk1.8.0_172, Windows
### Feedback
`HttpResponse.readText()` fails in 1.2.2 (probably since 1.2.0) for requests that return a non-200 HTTP reponse.
I don't know whether this is intentional, but since it used to work in 1.1.5 and I haven't seen any corresponding notice, this might be an unwanted regression.
See the following sample:
```
import io.ktor.client.HttpClient
import io.ktor.client.engine.apache.Apache
import io.ktor.client.request.get
import io.ktor.client.response.HttpResponse
import io.ktor.client.response.readText
import kotlinx.coroutines.runBlocking
fun main() = runBlocking {
val client = HttpClient(Apache)
val response200 = client.get<HttpResponse>("https://httpstat.us/200")
println(response200.readText())
// v1.2.2: Prints: "200 OK"
// v1.1.5: Prints: "200 OK"
val response400 = client.get<HttpResponse>("https://httpstat.us/400")
println(response400.readText())
// v1.2.2: Throws exception: "Exception in thread "main" io.ktor.client.features.ClientRequestException: Client request(https://httpstat.us/400) invalid: 400 Bad Request"
// v1.1.5: Prints "400 Bad Request"
}
```
Answers:
username_1: This is as designed. See https://ktor.io/clients/http-client/features/response-validation.html
username_0: Okay. So is there a built-in way to get the payload of a failed request as text other than using `readBytes()` and fiddling with the correct charset yourself?
username_2: It says so in the linked documentation but just to be needlessly redundant for the next people that arrive here. The HttpClient `expectSuccess` flag set to false stops the exceptions being thrown on http failures.
```
val client = HttpClient() {
expectSuccess = false
}
```
username_3: Why is the response status code validated only when accessing the body? The status is invalid even before that already.
username_4: Cause it's important only when you processing body: `get<MyDataClass>` usually only make sense only when you have `2xx` status, and `get<HttpResponse>` will not fail in any case.
Status: Issue closed
username_3: This inconsistency has caused bugs on our side. If I activate response validation then I expect validation to always happen. We often use `get<HttpResponse>` because we only need to inspect the etag or other headers, but not the body. In all of those cases we never caught bad response status codes because we expected Ktor to consistently do it like it's doing it for all other `get()` calls. Really, this is very confusing. If I enable validation then I expect it to always be active.
username_4: Yep, that looks like we're missing the valid use case. Could you file an issue about that? I will take a look
username_3: Yes, sure: https://youtrack.jetbrains.com/issue/KTOR-1412 |
vtex/test-tools | 453024265 | Title: How can I add a configuration when running the coverage?
Question:
username_0: We need to run the tests with the following configuration
`coverageThreshold: {
"global": {
"branches": 80,
"functions": 80,
"lines": 80
}`
Answers:
username_1: ?
username_2: There's no way now.
Maybe you could open a PR doing something similar like we do with the option of `setupFilesAfterEnv`:
https://github.com/vtex/test-tools/blob/master/modules/createJestConfig.js#L11-L13
So if you have in your `package.json`:
```jsonc
{
// ...
"jest": {
"coverageThreshold": {
"global": {
"branches": 80,
"functions": 80,
"lines": 80,
"statements": -10
}
}
}
}
```
We would read it and pass it down to jest.
username_3: closing as it was fixed in #31
Status: Issue closed
|
flutter/flutter | 236747711 | Title: firebase database plugin keepSynced function doesn't work, throws error
Question:
username_0: ## Steps to Reproduce
- Use an android device
- Use `firebase_database: "^0.0.7"`
- Call keepSynced, see error
## Logs
```
E/flutter (30887): [ERROR:../../lib/tonic/logging/dart_error.cc(16)] Unhandled exception:
E/flutter (30887): MissingPluginException(No implementation found for method Query#keepSynced on channel plugins.flutter.io/firebase_database)
E/flutter (30887): #0 MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:153:7)
E/flutter (30887): <asynchronous suspension>
E/flutter (30887): #1 Query.keepSynced (package:firebase_database/src/query.dart:170:31)
E/flutter (30887): #2 new NewsFeedManager._internal (package:kingkong/managers/news_feed_manager.dart:52:25)
E/flutter (30887): #3 NewsFeedManager._newsFeedManager (package:kingkong/managers/news_feed_manager.dart:45:11)
E/flutter (30887): #4 NewsFeedManager._newsFeedManager (package:kingkong/managers/news_feed_manager.dart:44:32)
E/flutter (30887): #5 new NewsFeedManager (package:kingkong/managers/news_feed_manager.dart:48:12)
E/flutter (30887): #6 new _NewsFeedComponentState (package:kingkong/components/newsfeed/news_feed_component.dart:29:41)
E/flutter (30887): #7 new NewsFeedComponent (package:kingkong/components/newsfeed/news_feed_component.dart:19:46)
E/flutter (30887): #8 new _MainComponentState (package:kingkong/components/main/main_component.dart:38:31)
E/flutter (30887): #9 new MainComponent (package:kingkonf/components/main/main_component.dart:20:42)
E/flutter (30887): #10 new AppState (package:kingkong/components/app/app_state.dart:22:44)
E/flutter (30887): #11 App.createState (package:kingkong/components/app/app.dart:15:16)
E/flutter (30887): #12 new StatefulElement (package:flutter/src/widgets/framework.dart:3461:23)
E/flutter (30887): #13 StatefulWidget.createElement (package:flutter/src/widgets/framework.dart:734:42)
E/flutter (30887): #14 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2748:40)
E/flutter (30887): #15 Element.updateChild (package:flutter/src/widgets/framework.dart:2553:12)
E/flutter (30887): #16 RenderObjectToWidgetElement._rebuild (package:flutter/src/widgets/binding.dart:732:16)
E/flutter (30887): #17 RenderObjectToWidgetElement.mount (package:flutter/src/widgets/binding.dart:703:5)
E/flutter (30887): #18 RenderObjectToWidgetAdapter.attachToRenderTree.<anonymous closure> (package:flutter/src/widgets/binding.dart:649:17)
E/flutter (30887): #19 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2122:19)
E/flutter (30887): #20 RenderObjectToWidgetAdapter.attachToRenderTree (package:flutter/src/widgets/binding.dart:648:13)
E/flutter (30887): #21 BindingBase&SchedulerBinding&GestureBinding&ServicesBinding&RendererBinding&WidgetsBinding.attachRootWidget (package:flutter/src/widgets/binding.dart:543:7)
E/flutter (30887): #22 runApp (package:flutter/src/widgets/binding.dart:581:7)
E/flutter (30887): #23 main (/data/user/0/com.kingkong.app/cache/kingkong-flutterV2MhKb/kingkong-flutter/lib/main.dart:11:3)
E/flutter (30887): #24 _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:265)
E/flutter (30887): #25 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:151)
```
## Flutter Doctor
[✓] Flutter (on Mac OS X 10.12.4 16E195, locale en-US, channel master)
• Flutter at /Users/KG/Developer/Flutter/flutter
• Framework revision 6965312822 (2 days ago), 2017-06-16 10:05:18 -0700
• Engine revision 784e975672
• Tools Dart version 1.24.0-dev.6.7
[✓] Android toolchain - develop for Android devices (Android SDK 26.0.0)
• Android SDK at /Users/KG/Library/Android/sdk
• Platform android-26, build-tools 26.0.0
• ANDROID_HOME = /Users/KG/Library/Android/sdk
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06)
[✓] iOS toolchain - develop for iOS devices (Xcode 8.3.3)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 8.3.3, Build version 8E3004b
• ios-deploy 1.9.1
• CocoaPods version 1.2.1
[✓] Android Studio (version 2.3)
• Android Studio at /Applications/Android Studio.app/Contents
• Gradle version 3.2
• Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06)
[✓] IntelliJ IDEA Community Edition (version 2017.1.4)
• Flutter plugin version 14.0
• Dart plugin version 171.4694.29
[✓] Connected devices
• Android SDK built for x86 • emulator-5554 • android-x86 • Android 7.0 (API 24) (emulator)
• Nexus 5X • 0106bcc49c8ca3eb • android-arm • Android 7.1.2 (API 25)
• Kevin's iPhone • c95c86bdc3aac565adb373de3dc2dbedcdecc900 • ios • iOS 10.3.1 (14E304)
• iPhone 5s • AB2FA880-541C-49D7-BDB2-9720261982A3 • ios • iOS 10.3 (simulator)
Answers:
username_1: Looks like the Android implementation of this feature is missing? @username_2
Status: Issue closed
username_2: Fixed in flutter/plugins#144 (version 0.0.8)
username_3: What's the proper way to implement the keepSync property on a Flutter Firebase query or reference?
username_2: @username_3 documentation for `keepSynced `is here:
https://www.dartdocs.org/documentation/firebase_database/0.1.0/firebase_database/Query/keepSynced.html
Please open a new issue if it isn't working for you.
username_4: @username_0
This issue has been moved to https://github.com/FirebaseExtended/flutterfire/issues/994. Any further collaboration will be done there. |
mediainovasismg/Media-Inovasi-Semarang | 186713035 | Title: AVR-600
Question:
username_0: <b>AVR-600</b><br><p>4 port AVR with Surge Protector<br>
Microprocessor control; Automatic Voltage Regulation;<br>
Protection against Brownouts & Overvoltages;<br>
Short Circuit & Overload Protection;<br>
Digital meter indicates line voltage and regulated voltage;<br>
LED indicators to show status of Working, Input and Output;<br>
Selectable Delay Time; Built-in transformer; Square transformer<br>
Surge, Spike and Lightning Protection (Customize option)</p>
<br><br><a href="http://ift.tt/2eZE44C">http://ift.tt/2eZE44C</a><br><br>
November 02, 2016 at 11:20AM [AVR-600](http://ift.tt/2elQA0e) |
GlynnisOC/expressSweaterWeather | 500612454 | Title: Peer PR Reviews
Question:
username_0: Requirements:
At least two PRs that tag and ask for specific feedback from two peers
You need to make the PR and tag them with a specific review ask
They need to respond in the PR conversation with actionable feedback
You need to make a change, tag them again for their review (you may need to ask a clarifying question before doing so, if that’s the case, ask in the PR conversation instead of Slack or in person) |
RustBeginners/awesome-rust-mentors | 494962076 | Title: Apply mentor
Question:
username_0: <!--
Preferred Name: This is optional, you can go by just your online handle if you prefer.
Github Handle: This can be any handle - GitHub is just recommended - but this section is not a substitute for the contact section.
Pronouns: This section is optional. If you'd prefer to leave this blank or remove it, that's fine, but it's helpful to gender non-conforming people if everyone lists their pronouns so they don't feel singled out; normalizing specifying your pronouns gives everyone more freedom of expression.
Contact: Your preferred method of contact.
Spoken Languages: Languages you're comfortable mentoring in; if you do not specify this, English will be assumed. Please _emphasise_ your preferred language if you list more than one.
Topics: Topics of interest or projects that you work on that you're comfortable mentoring.
Additional Resources: Any other learning resources that you maintain that you would like to share.
# Example
### <NAME> ([@username_1](https://github.com/username_1))
* **Pronouns**: she/her
* **Contact**: Twitter ([@username_1_](https://twitter.com/username_1_))
* **Spoken Languages**: English
* **Topics**: Beginners, community outreach, cargo, clippy, tracing, CLI
-->
### <NAME> ([@username_0](https://github.com/username_0))
* **Pronouns**: he/him
* **Contact**: Twitter ([@username_0](https://twitter.com/username_0))
* **Spoken Languages**: Chinese, English
* **Topics**: Beginners, community meetup, wasm, web framework, orm, substrate...
* **Additional Resources**:
- rust.cc
- rustforce.net<issue_closed>
Status: Issue closed |
Azure/login | 1093261066 | Title: Azure login action does not function if the client secret starts with hyphen
Question:
username_0: If the Azure creds clientSecret starts with hyphen the Azure login action will fail with the following error:
`Error: : argument --password/-p: expected one argument`
It seems that the clientSecret is passed to az login using -p and not using -p= which is needed according to az login documentation if the clientSecret starts with a hyphen.
Answers:
username_1: Hi @username_0 - We have implemented a fix in a forked branch. We would like you to try your workflow on below action instead of original one(azure/login@v1)
`username_1/login@releases/v1
`
If this action works for you for secrets with and without hyphen start, then we can make the changes in original Azure/Login.
Thanks in advance for your co-operation.
username_0: @username_1: have you tested your code fix?
username_1: Yes @username_0 - We have already tested it but still we want to make it sure if it is indeed working for the inputs you are facing issue with.
Please do let us know result from your side.
Thanks.
username_0: @username_1 your fix is not working so I am not sure how it passed your tests. The action is throwing now a different error: AADSTS7000215: Invalid client secret is provided.
Your change is putting the secret between quotes, which is not correct (quotes are perceived as part of the secret). Please see my comment on your PR. According to az login documentation, passwords starting with '-' need to be given with -p=secret and not -p secret. This method will also work for other secrets. So in essence, you do not need if-else logic, just use -p=secret when building arguments
username_1: Thanks @username_0 for quick response on this. Actually we manually inserted '-' at the beginning of our correct client secret and this removed the original error `'Error: : argument --password/-p: expected one argument'` . This was the reason we wanted it to be tested with your inputs.
As per your comments, I have made the changes which is secret is passed in the `-p=<secret>`
Request you please test the changes again on the same below branch and kindly let us know it it works.
`username_1/login@releases/v1
`
Thanks again.
username_1: @username_0 - could you please try again as there was a block completion error - I corrected it now.
Below is final code block to handle secrets:
```
if (enableOIDC) {
commonArgs = commonArgs.concat("--federated-token", federatedToken);
}
else {
commonArgs = commonArgs.concat("-p=", servicePrincipalKey);
}
```
username_0: My question is related to change you made in the src/main.ts. This is still using the quotation for the password having '-' and not -p=secret.
Why is this also not changed to use -p=secret?
username_1: @username_0 - Because after compiling and building main.ts, it finally is reflected in `lib/main.js` , so for the testing purpose I am directly putting the changes there in forked branch.
Could you test your secrets with hyphen?
Thanks
username_0: Same error: Error: : AADSTS7000215: Invalid client secret is provided.
username_1: Yes - both `src/main.ts` and `lib/main.js` are updated with same code `-p=<secret>`
username_0: Here is the code of the azure login step:
`- name: Azure Login
uses: username_1/login@releases/v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}`
The error is, as mentioned above the same as above:
Error: : AADSTS7000215: Invalid client secret is provided.
username_1: @username_0 - In the meantime, till the time I am working on this specific hyphen starting secret issue, can I request you to alter or regenerate the secrets(most probably new ones will not start with hyphen), so that your work will be unblocked using them.
Please let us know if you have any thoughts.
Thanks
username_0: @username_1
My work is not blocked as I am using az login command from the a step of my workflow to do the login and it is working fine (with -p=secret). I have opened this issue once I noticed that the action is not working for secrets starting with hyphen.
username_1: @username_0 - Good to hear that work is not blocked. We are working on it and will keep on updating the progress here.
Thanks again for all your co-operations.
username_2: got the same issue here, the ai suggestions don't help.
<img width="1358" alt="image" src="https://user-images.githubusercontent.com/68911210/152960294-494fe3da-562c-491e-8296-2eb946fd3794.png">
username_2: bump |
pingcap/tidb | 768610886 | Title: ddl: add M>=D checking for decimal column definition with default value
Question:
username_0: ## Bug Report
Please answer these questions before submitting your issue. Thanks!
### 1. Minimal reproduce step (Required)
create table t( col decimal(1,2) not null default 0);
### 2. What did you expect to see? (Required)
ERROR 1427 (42000): For float(M,D), double(M,D) or decimal(M,D), M must be >= D (column 'col').
### 3. What did you see instead (Required)
ERROR 1105 (HY000): runtime error: invalid memory address or nil pointer dereference
### 4. What is your TiDB version? (Required)
v4.0.8
Answers:
username_1: I will try to fix it.
Status: Issue closed
|
watir/watir | 225519342 | Title: IE web driver is not able to use window opened via active x control
Question:
username_0: A pop up window opens up through Active x control, when page loads.
IE web driver is not able to use that window.
2 windows are there one parent and another which is opened as a pop up but browser.windows.size still shows 1.
Following is the link which opens up pop up window at page load.
https://www.priceline.com/stay/search/hotels/3000008602/20170905/20170907/1/?searchType=CITY
Status: Issue closed
Answers:
username_1: This would be a Selenium / IE Driver issue, not a Watir issue. Please [open this bug there](https://github.com/SeleniumHQ/selenium/issues/new). Make sure you specify which OS, version of IE & 32bit vs 64bit version of the driver. (you might try switching to the other bit version of the driver because different things in IE are controlled by each, unfortunately). |
tmds/Tmds.DBus | 362440463 | Title: How to raise an event/signal?
Question:
username_0: All of the examples/code I could find seem to show how you could create a proxy object and subscribe to signals that the remote object raises. I.e. _consume_ events/signals.
How do I publish a local object that _raises_ a signal?
```csharp
await connection.RegisterObjectAsync(myObject);
```
I need to raise the PropertiesChanged signal for this object and pass some values through in a dictionary.
Any help greatly appreciated.
Answers:
username_1: Hi, take a look at https://github.com/username_1/Tmds.DBus/blob/master/test/Tmds.DBus.Tests/PropertyObject.cs and https://github.com/username_1/Tmds.DBus/blob/master/test/Tmds.DBus.Tests/PingPong.cs.
username_1: Did you get this to work?
username_0: Yes, I managed to get it to work. I've posted my minimal example here, in case it helps someone in the future. If you run it, you can use `sudo busctl monitor` and you should see the temperature signal going up every second.
I think I had a bit of a fundamental misunderstanding how DBus properties are modeled. I thought that if a DBus interface called for a list of properties, you would model that directly in your C# DBus **Interface**. It seems like the idea is that instead you expose the methods in the interface as defined by DBus called `org.freedesktop.DBus.Properties` and all properties of your object are accessed via these methods. You are then free to implement the properties as a different object (as shown in the examples) or I guess as part of your derived concrete class itself (as shown below).
There does seem to be something special with the `WatchPropertiesAsync` method. It automatically creates a signal called `PropertiesChanged`. If you called it `WatchPropertiesChangedAsync`, the signal is still called `PropertiesChanged`. Perhaps some kind of convenience feature? Or did I miss something in the docs? It you call it anything else, like WatchWeatherAsync, the signal that is emited is just called `Weather`.
In the unit test code, there is the `org.freedesktop.DBus.Properties` Interface definition (IPropertyObject.cs). It almost seems like that should be a standard interfaces in Tmds.DBus?
```csharp
using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using System.Threading.Tasks;
using Tmds.DBus;
[assembly: InternalsVisibleTo(Tmds.DBus.Connection.DynamicAssemblyName)]
namespace publishproperty
{
class Program
{
static void Main(string[] args)
{
Task.Run(async () =>
{
using (var connection = new Connection(Address.System))
{
await connection.ConnectAsync();
var exposed = new Example();
await connection.RegisterObjectAsync(exposed);
int globalWarming = 0;
while (true)
{
// Setting this value will create a signal on the bus with the new temperature value
exposed.Value = globalWarming++;
await Task.Delay(TimeSpan.FromSeconds(1));
}
}
}).Wait();
}
}
public class Example : ITemperature
{
int _value;
public int Value
{
get { return _value; }
set
{
_value = value;
OnPropertiesChanged?.Invoke(PropertyChanges.ForProperty(nameof(Value), value));
}
}
public ObjectPath ObjectPath => new ObjectPath("/com/example/object1");
public event Action<PropertyChanges> OnPropertiesChanged;
public Task<IDisposable> WatchPropertiesAsync(Action<PropertyChanges> handler)
{
return SignalWatcher.AddAsync(this, nameof(OnPropertiesChanged), handler);
}
}
[DBusInterface("com.example")]
interface ITemperature : IDBusObject
{
Task<IDisposable> WatchPropertiesAsync(Action<PropertyChanges> handler);
}
}
```
Status: Issue closed
|
nteract/nteract | 412837635 | Title: 404 when using File/Open... in nteract on Jupyter
Question:
username_0: **Application or Package Used**
`nteract on jupyter`
**Describe the bug**
Get a 404 on File/Open attempt when the server is not running at the domain level.
**To Reproduce**
1. Navigate to a [binder link](https://mybinder.org/v2/gh/nteract/examples/master?urlpath=%2Fnteract%2Fedit%2Fpython%2Fhappiness.ipynb).
1. Click File/Open...
1. Get a 404 error message on navigating to https://hub.mybinder.org/hub/nteract/edit.
**Expected behavior**
Should navigate to https://hub.mybinder.org/user/nteract-examples-xxxxxxxx/nteract/edit instead.
**Screenshots**

XRef: https://github.com/nteract/nteract/issues/3679 |
denoland/deno | 1044550762 | Title: Error converting the result for "op_respond"
Question:
username_0: ```
$ deno run --allow-net --allow-env --allow-read --unstable file.ts
Check file:///...
error: Error: Error converting the result for "op_respond".
at deno:core/core.js:86:46
at unwrapOpResult (deno:core/core.js:106:13)
at Object.opSync (deno:core/core.js:120:12)
at exec (deno:cli/tsc/99_main_compiler.js:522:10)
at [native_code]:1:12
$ deno --version
deno 1.10.3 (release, x86_64-unknown-linux-gnu)
v8 9.1.269.27
typescript 4.2.2
$ uname -a
Linux vbox.transloadit.com 4.15.0-159-generic #167-Ubuntu SMP Tue Sep 21 08:55:05 UTC 2021 x86_64 GNU/Linux
```
I just had this today for the first time and sometimes reproduce it, sometimes not. In general, the typescript phase before running the program is taking unexpectedly long.
Answers:
username_1: Deno 1.10.3 is from late may this year, which is a long time ago in Deno terms.
You would need to provide the contents of `file.ts`, but even then it would likely be "what happens when you upgrade" sort of scenario.
username_0: The same also happens with deno 1.13.2. I could upgrade to a later version for the sake of this particular error, however a later version couldn't be shipped as https://github.com/denoland/deno/issues/12086 is blocking the `deno bundle` feature.
username_0: The same also happens with a very simple file:
```bash
$ echo 'console.log("HI")' > /tmp/file.ts
$ deno run --allow-net --allow-env --allow-read --unstable /tmp/file.ts
Check file:///tmp/file.ts
error: Error: Error converting the result for "op_respond".
at deno:core/01_core.js:106:46
at unwrapOpResult (deno:core/01_core.js:126:13)
at Object.opSync (deno:core/01_core.js:140:12)
at exec (deno:cli/tsc/99_main_compiler.js:533:10)
at [deno:cli/tsc.rs:567:27]:1:12
```
A source of this issue _could_ be that I just updated my host to mac OS Monterey and since then my virtualbox guest has been behaving unusually...However other programs aren't breaking, they're just sometimes slower than usual
username_2: @username_0 I tried your reproduction on 1.10.3, 1.13.2 and 1.16.3 and I'm unable to reproduce the problem. Are you still having troubles with it?
username_0: I'm not reproducing it any more. The situation was (IIUC) that I was using a build of VirtualBox that wasn't yet ready for Monterey, and after inspecting syscalls we discovered unexpected threadlock wait issues. My whole guest system was slow, however Deno was the only program that broke because of it. After upgrading VirtualBox everything is going well again. I don't think it's worth trying to reproduce my exact setup any more 🤔
username_2: Great, thanks for the info @username_0
Status: Issue closed
|
vadimdemedes/tailwind-rn | 771179981 | Title: Support breakpoints for responsive design
Question:
username_0: Understandably, on mobile, breakpoints are not super relevant.
However, RN can "go back to the web" using [react-native-web](https://github.com/necolas/react-native-web), which is now baked into [Expo managed workflows](https://docs.expo.io/workflow/web/).
Currently, you must combine a [design system](https://github.com/Shopify/restyle) or [library](https://github.com/wcandillon/react-native-responsive-ui) or ["roll your own"](https://github.com/username_3/dripsy#before-dripsy-%EF%B8%8F) to get responsive breakpoint support in RN.
Having breakpoints carry over to Tailwind-RN would be helpful for anyone trying to write an app in a single codebase, and it would avoid juggling using more design systems and libraries on top of Tailwind.
Answers:
username_1: Is it great? Eh. Is it easy. I think so. Why don't you call the
hooks inside something like useTailwindResponsive? Because that
would cause each useTailwindResponsive to have 4+ hooks running,
when you only need one or two. They would also ALL subscribe to the
media queries.
</Paragraph>
</View>
</View>
)
```
username_2: <Text>Not much going on here</Text>
<View style={tailwind("self-center items-center")}></View>
</View>
}
````
```javascript
import tailwind from "tailwind-rn";
import { useMediaQuery } from "react-responsive";
export default function useTailwind() {
function useIsAtLeastSm() {
return useMediaQuery({ minWidth: 640 });
}
function useIsAtLeastMd() {
return useMediaQuery({ minWidth: 768 });
}
function useIsAtLeastLg() {
return useMediaQuery({ minWidth: 1024 });
}
function useIsAtLeastXl() {
return useMediaQuery({ minWidth: 1280 });
}
const sm = useIsAtLeastSm();
const md = useIsAtLeastMd();
const lg = useIsAtLeastLg();
const xl = useIsAtLeastXl();
function tailwindResponsive(
always: string,
{ sm, md, lg, xl }: { sm?: string; md?: string; lg?: string; xl?: string },
{
sm: applySm,
md: applyMd,
lg: applyLg,
xl: applyXl,
}: {
sm?: boolean;
md?: boolean;
lg?: boolean;
xl?: boolean;
}
) {
return tailwind(
[always, applySm && sm, applyMd && md, applyLg && lg, applyXl && xl]
.filter(Boolean)
.join(" ")
);
}
return { tailwindResponsive, sm, md, lg, xl };
}
```
username_3: Here's an idea for a simpler API:
```
import { View } from 'tailwind-rn'
<View
tw="md:w-32"
/>
```
Under the hood, `View` can use `useWindowDimensions` to determine the responsive value/breakpoint. This is what I do for `dripsy`.
username_4: Hey folks, I know it's been a year, but I just released [v4.0.0](https://github.com/username_4/tailwind-rn/releases/tag/v4.0.0) with a built in support for responsive design and even custom `min-width`, `max-width`, `min-height` and `max-height` breakpoints!
Status: Issue closed
|
phpMv/ubiquity | 654873912 | Title: Question: Swoole Implementation
Question:
username_0: Hi, I've been looking for a framework that implemented the Swoole. My questions are:
1. Does ORM and DAO uses Swoole coroutine automatically or do i need to enable through configuration?
2. Does the database optionally support connection pool and read-write separation?
3. How can i "serve" Ubiguity using Swoole with custom port? Because what I have in mind is each microservice has different port serve by Swoole.
I think it should be added in the documentation.
Thanks in advance.
Answers:
username_1: It already is, but not in a Swoole section.
username_1: see [documentation](https://micro-framework.readthedocs.io/en/latest/extra/async.html)
Status: Issue closed
|
microsoft/vscode-js-debug | 668635395 | Title: Error on extension registration
Question:
username_0: Issue Type: <b>Bug</b>
The devtools report a problem with registering the extension.
abstractExtensionService.ts:411 [ms-vscode.js-debug-nightly]: Cannot register multiple views with same id `jsBrowserBreakpoints`
Extension version: 2020.7.2717
VS Code version: Code - Insiders 1.48.0-insider (15e798e081984a17eae00de91adf4479190d5ed2, 2020-07-28T10:40:03.139Z)
OS version: Darwin x64 18.7.0
<details>
<summary>System Info</summary>
|Item|Value|
|---|---|
|CPUs|Intel(R) Core(TM) i7-4980HQ CPU @ 2.80GHz (8 x 2800)|
|GPU Status|2d_canvas: enabled<br>flash_3d: enabled<br>flash_stage3d: enabled<br>flash_stage3d_baseline: enabled<br>gpu_compositing: enabled<br>metal: disabled_off<br>multiple_raster_threads: enabled_on<br>oop_rasterization: enabled<br>opengl: enabled_on<br>protected_video_decode: unavailable_off<br>rasterization: enabled<br>skia_renderer: disabled_off_ok<br>video_decode: enabled<br>webgl: enabled<br>webgl2: enabled|
|Load (avg)|41, 30, 16|
|Memory (System)|16.00GB (0.07GB free)|
|Process Argv|--crash-reporter-id 3b7acc73-7f05-4994-b539-24b72f428fcd|
|Screen Reader|no|
|VM|0%|
</details>
<!-- generated by issue reporter -->
Answers:
username_1: Please make sure to follow steps 1 and 2 if you're trying out the nightly -- exactly one of the nightly or default builds should be enabled at one time 🙂
Status: Issue closed
username_0: Doh! Thanks. |
dart-lang/sdk | 184317671 | Title: Specification needs to be updated for non-strong mode generic methods.
Question:
username_0: Informal specification here:
https://docs.google.com/document/d/1nccOSkdSyB9ls7TD8gUqIu6Wl2J_9bTSOoMCEIoAiQI/edit#heading=h.dnanv15dn1me
Answers:
username_0: Assigning @username_1 for now - if you won't be the person doing this, can you sort out who will?
username_0: @bwilkerson noticed that the informal spec has some discussion of `super` constraints on type parameters, which I don't think we intend to support (at least not yet). @username_1, can you clarify that in the doc?
username_1: Let's use 'syntax-only generic methods' to refer to the semantics specified in [Feature: Generic Method Syntax](https://docs.google.com/document/d/1nccOSkdSyB9ls7TD8gUqIu6Wl2J_9bTSOoMCEIoAiQI).
Then we have two topics here: (1) Should we update the language specification to cover syntax-only generic methods?, and (2) what's the status of `super` bounds?
For (1), I didn't expect to change the language specification to cover syntax-only generic methods, because that is a temporary approach which should be extended to support full-fledged generic methods (which would of course be covered in detail in the language specification). So we would rely on the informal document [Feature: Generic Method Syntax](https://docs.google.com/document/d/1nccOSkdSyB9ls7TD8gUqIu6Wl2J_9bTSOoMCEIoAiQI) for the specification of syntax-only generic methods. The full-fledged specification includes local type inference of actual type arguments passed to invocations of generic functions, and the work on specifying local type inference is not complete (and we can't just whip up a brief clarification, it will take some time).
For (2), I also don't think we've decided that we will have `super` bounds on type arguments; I adjusted [Feature: Generic Method Syntax](https://docs.google.com/document/d/1nccOSkdSyB9ls7TD8gUqIu6Wl2J_9bTSOoMCEIoAiQI) to say explicitly that an implementation does not need to support them.
That said, I think they are useful and probably not hard to implement. In our discussions a long time ago Lasse mentioned that `List` could use the signature `S firstWhere<S super T>(bool test(T element), S defaultValue())`, and I believe we had other cases as well. But it is of course an enhancement which can be added later, without breaking existing programs.
username_0: I think that for now we should treat the syntax-only generic methods as an experiment and focus on specifying the strong mode behavior.
I think that 'super' bounds would be a useful extension, but I'd rather not tackle them now. I think there are some non-trivial implications to work through for inference and for subtyping.
username_1: The informal specification has been adjusted, and the resulting document is available here: [Feature: Generic Method Syntax](https://gist.github.com/username_1/4353d7b4f669745bed3a5423e04a453c).
Status: Issue closed
username_0: Are we planning to incorporate this into the formal spec?
username_1: I'm doing that now.
username_1: Informal specification here:
https://docs.google.com/document/d/1nccOSkdSyB9ls7TD8gUqIu6Wl2J_9bTSOoMCEIoAiQI/edit#heading=h.dnanv15dn1me
username_1: [CL](https://codereview.chromium.org/2690553002/) for that change.
username_2: @username_1 is this done?
username_3: CL is https://codereview.chromium.org/2690553002/
Not landed yet.
username_1: [That CL](https://codereview.chromium.org/2690553002/) was stalled for a while, because a new (reifying) semantics was being discussed, specified informally, and implemented in the vm. Turns out that dart2js will not implement the same thing (now, at least), so we will indeed stick to the non-reifying semantics for Dart 1.x. Now working on landing that CL again.
username_1: Closing: Updating the language specification to specify anything new pertaining to Dart 1.x is now an obsolete task. |
sysrepo/sysrepo | 426881809 | Title: why "There is a not enabled node in ietf-system module, it can not be committed to the running" occured when I try to call "sr_set_item" in running datastore?
Question:
username_0: yang file:
module ietf-system {
container system {
leaf contact {
}
leaf hostname{
}
leaf location{
}
container test1 {
}
container test2 {
}
….
}
}
subscribe as bellow:
sr_subtree_change_subscribe(xxx1, xxx2, "/ietf-system:system/test1", xxxn);
when i use sr_set_item to set one node in test1,error occured :"There is a not enabled node in ietf-system module, it can not be committed to the running",but when subscribe is as bellow,that is ok:
sr_subtree_change_subscribe(xxx1, xxx2, "/ietf-system:system", xxxn); or
sr_module_change_subscribe(xxx1, xxx2, "/ietf-system", xxxn);
Both of the above subscribe are OK,Why can not use the first method as bellow:sr_subtree_change_subscribe(xxx1, xxx2, "/ietf-system:system/test1", xxxn)??
Answers:
username_1: Hi,
I am not sure why would it not work for you, I have tried to use testing module `test-module`, in which I subscribed to `/test-module:university/classes`. I tried to then create a `class` using this `<edit-config>`:
```xml
<university xmlns="urn:ietf:params:xml:ns:yang:test-module">
<classes>
<class>
<title>class1</title>
</class>
</classes>
</university>
```
and it worked exactly as expected.
Regards,
Michal
username_0: Hi,
Thank you for your reply!
for your yang file, you can add another container(another_container) under university,for example:
<university xmlns="urn:ietf:params:xml:ns:yang:test-module">
<classes>
<class>
<title>class1</title>
</class>
</classes>
**<another_container>
<example>
<value>5</value>
</example>
</another_container>**
</university>
then,you only subscribed to /test-module:university/classes, not subscribed to another_container,so when you set item at title of clsass, error occured,it shows to me that:another_container is not enable.
i trace the code,in func rp_dt_enable_xpath,i find the container of classes is enabled as DM_NODE_ENABLED_WITH_CHILDREN, university is enabled as DM_NODE_ENABLED,another_container is not enabled.then ,when i set item,in func dm_has_not_enabled_nodes, the func dm_is_node_enabled_with_children for parameter container of university return false,because the container of university set to DM_NODE_ENABLED when subscribed, not DM_NODE_ENABLED_WITH_CHILDREN. so it will add all nodes of university to list, include another_container. then judge whether the nodes of list are enabled,but another_container is not enabled,so error occured.
username_0: sorry,the yang file displays incomplete at previous. the correct yang as follows:
<university xmlns="urn:ietf:params:xml:ns:yang:test-module">
<classes>
<class>
<title>class1</title>
</class>
</classes>
<another_container>
<example>
<value>5</value>
</example>
</another_container>
</university>
thanks!
username_0: sorry,the xml displays incomplete previous,the Correct yang as bellow:
module test-module {
container university {
container classes {
}
container another_container {
}
}
}
thanks!
username_1: Hi,
so having the module in your last post, you subscribed to `/test-module:university/classes` and when you modified `/test-module:university/another_container` you got an error that it is not enabled? In that case it behaves correctly, `another_container` really is not enabled (there is no callback handling it or any of its children). Why would you think it should not behave this way?
Regards,
Michal
username_0: hi,
i subscribed to /test-module:university/classes, then i modify /test-module:university/classes,not another_container,in this case,errors occured,it says another_container not enabled.so i think when i subscribed to /test-module:university/classes, i should be able to modify /test-module:university/classes,error should not occur.
thanks.
username_1: Hi,
this is getting confusing, please specify the exact use-case in the same way, if the following one is not correct.
YANG:
```yang
module test-module {
namespace "urn:t";
prefix t;
container university {
container classes {
}
container another_container {
}
}
}
```
Subscription XPath:
```
/test-module:university/classes
```
Edit config:
```xml
<university xmlns="urn:t">
<another_container/>
</university>
```
I tried this, *netopeer2* responded with OK.
Regards,
Michal
username_1: Hi,
this is getting confusing, please specify the exact use-case in the same way, if the following one is not correct.
YANG:
```yang
module test-module {
namespace "urn:t";
prefix t;
container university {
container classes {
leaf l1 {
type string;
}
}
container another_container {
leaf l2 {
type string;
}
}
}
}
```
Subscription XPath:
```
/test-module:university/classes
```
Edit config:
```xml
<university xmlns="urn:t">
<classes>
<l1>aa</l1>
</classes>
</university>
```
I tried this, *netopeer2* responded with OK.
Regards,
Michal
username_0: Hi.
The use case is similar to yours.but what I did was modify it,not create it, the original xml is like this:
<university xmlns="urn:t">
<classes>
<l1>aa</l1>
</classes>
<another_container>
<l2>bb</l2>
</another_container>
</university>
then call the func like this : sr_subtree_change_subscribe(pstSess, “/test-module:university/classes“, pfCb, NULL, 0, SR_SUBSCR_CTX_REUSE | SR_SUBSCR_NO_ABORT_FOR_REFUSED_CFG, &(m_astSubCtx[m_uiSubCnt].pstSubCtx)) to subscribe.
at last,
Edit config: <l1>aa</l1> modify to <l1>cc</l1>,the error occures.it shows to me :
[DBG] Found not enabled node another_container in module test-module
[ERR] There is a not enabled node in test-module module, it can not be committed to the running.
my sysrepo version is 0.7.6.
thanks.
username_1: Hi,
meaning:
Current config:
```xml
<university xmlns="urn:t">
<classes>
<l1>aa</l1>
</classes>
<another_container>
<l2>bb</l2>
</another_container>
</university>
```
Subscription:
```
/test-module:university/classes
```
Edit config:
```xml
<university xmlns="urn:t">
<classes>
<l1>cc</l1>
</classes>
<another_container>
<l2>bb</l2>
</another_container>
</university>
```
And you get an error saying that `another_container` is disabled? If this is finally your use-case then it is expected because of how *netopeer2-server* and *sysrepo* communicate. *netopeer2-server* does not know that `another_container` is actually not being changed so it tries to set it, but *sysrepo* correctly refuses it. It may not work perfectly, but I think this problem occurs mostly due to wrong `edit-config`.
Regards,
Michal
username_0: Hi,
yes,the error log says that the another_container is disabled,and my finally use-case is exactly like this.but i did not use the tool of netopeer2-server,i do that like this:
1.in my init code the sr_subtree_change_subscribe was called.
2.in my cli code the sr_set_item was called, then the sr_commit was called at last.
i just use the sysrepo's api to operate it.
thanks.
username_1: Hi,
I really do not understand why could you not have said this in the initial description of the issue and save me all the replies. Now, please, can you EXACTLY specify what is it that you are doing?
YANG:
```yang
module test-module {
namespace "urn:t";
prefix t;
container university {
container classes {
leaf l1 {
type string;
}
}
container another_container {
leaf l2 {
type string;
}
}
}
}
```
Current config (retrieved from `sr_get_*` functions):
```xml
<university xmlns="urn:t">
<classes>
<l1>aa</l1>
</classes>
<another_container>
<l2>bb</l2>
</another_container>
</university>
```
Subtree subscription:
```
/test-module:university/classes
```
Then you call:
```C
sr_set_item_str(session, "/test-module:university/classes/l1", "cc", 0);
sr_set_item_str(session, "/test-module:university/classes/l2", "bb", 0);
sr_commit(session);
```
Resulting in the error that `another_container` is not enabled? Please, specify your code in this way. I will not reply until then, there are better things for me to do.
Regards,
Michal
username_0: Hi,
I think I found out the reason for the error.if i modiy the original xml to like this:
```
<university xmlns="urn:t">
<classes>
<l1>cc</l1>
</classes>
</university>
```
that is delete the bellow:
```
<another_container>
<l2>bb</l2>
</another_container>
```
The error did not occur.
it means that if i don't subscribe to the path, the startup xml should not be include the value of the path.
Is that so?
thanks.
Status: Issue closed
username_1: Look, you continue to add and change details of your issue so I give up trying to help you. If it works for you now, great.
Regards,
Michal |
borglefink/countsource | 56354884 | Title: Switch for showing files processed
Question:
username_0: When building a config file it would be nice to be able to show the files included (or excluded). This makes it possible to discover files that should have been ignored.
This option will only show the files with extensions given in the config file (or excluded files), and not all possible files in all the given directories.<issue_closed>
Status: Issue closed |
adamwulf/ClippingBezier | 211841474 | Title: Undefined symbols for x86_64 architecture
Question:
username_0: Hello! I tried downloading and linking this library to a Swift 3 app today; I was attempting to test on simulator and kept running into
```Undefined symbols for architecture x86_64:
"_bezierPointAtT", referenced from:
___62-[UIBezierPath(Ahmed) bezierPathByFlatteningPathAndImmutable:]_block_invoke in ClippingBezier(UIBezierPath+Ahmed.o)
"_distance", referenced from:
-[UIBezierPath(Trimming) bezierPathByTrimmingToLength:withMaximumError:] in ClippingBezier(UIBezierPath+Trimming.o)
-[UIBezierPath(Trimming) bezierPathByTrimmingFromLength:withMaximumError:] in ClippingBezier(UIBezierPath+Trimming.o)
___32-[UIBezierPath(Trimming) length]_block_invoke in ClippingBezier(UIBezierPath+Trimming.o)
___74-[UIBezierPath(Clipping) findIntersectionsWithClosedPath:andBeginsInside:]_block_invoke_2 in ClippingBezier(UIBezierPath+Clipping.o)
___56-[UIBezierPath(Clipping) tangentRoundingNearStartOrEnd:]_block_invoke in ClippingBezier(UIBezierPath+Clipping.o)
___56-[UIBezierPath(Clipping) tangentRoundingNearStartOrEnd:]_block_invoke.361 in ClippingBezier(UIBezierPath+Clipping.o)
_tValOfPointOnLine in ClippingBezier(UIBezierPath+GeometryExtras.o)
...
"_subdivideBezierAtT", referenced from:
___62-[UIBezierPath(Ahmed) bezierPathByFlatteningPathAndImmutable:]_block_invoke in ClippingBezier(UIBezierPath+Ahmed.o)
___71-[UIBezierPath(Ahmed) bezierPathByTrimmingElement:fromTValue:toTValue:]_block_invoke in ClippingBezier(UIBezierPath+Ahmed.o)
___65-[UIBezierPath(Ahmed) bezierPathByTrimmingFromElement:andTValue:]_block_invoke in ClippingBezier(UIBezierPath+Ahmed.o)
___63-[UIBezierPath(Ahmed) bezierPathByTrimmingToElement:andTValue:]_block_invoke in ClippingBezier(UIBezierPath+Ahmed.o)
"_lengthOfBezier", referenced from:
-[UIBezierPath(Trimming) bezierPathByTrimmingToLength:withMaximumError:] in ClippingBezier(UIBezierPath+Trimming.o)
-[UIBezierPath(Trimming) bezierPathByTrimmingFromLength:withMaximumError:] in ClippingBezier(UIBezierPath+Trimming.o)
___32-[UIBezierPath(Trimming) length]_block_invoke in ClippingBezier(UIBezierPath+Trimming.o)
"_subdivideBezierAtLength", referenced from:
-[UIBezierPath(Trimming) bezierPathByTrimmingToLength:withMaximumError:] in ClippingBezier(UIBezierPath+Trimming.o)
-[UIBezierPath(Trimming) bezierPathByTrimmingFromLength:withMaximumError:] in ClippingBezier(UIBezierPath+Trimming.o)
"_distanceOfPointToLine", referenced from:
___62-[UIBezierPath(Ahmed) bezierPathByFlatteningPathAndImmutable:]_block_invoke in ClippingBezier(UIBezierPath+Ahmed.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
```
I tried the usual suspects of adding `i386` and `x86_64` to the Valid architectures for both `ClippingBezier` as well as `PerformanceBezier` frameworks respectively, and using the those products in my project, but no luck.
I don't know if this is an issue with the framework per so, or if I am just missing something altogether. Would appreciate your insight/experience on these type of issues @username_1 ✌️
Answers:
username_1: In your Build Settings, make sure to add `-ObjC -lstdc++` to the Other Linker Flags. That should do the trick :)
username_0: Turns out, I also needed to include the `PerformanceBezier.framework` in addition to the `ClippingBezier.framework` in my project with the proper linker flags set, and then it worked. Thanks for weighing in!
Status: Issue closed
|
ziglang/zig | 644415511 | Title: Add a builtin to specialize a generic function
Question:
username_0: Something like `@specialize` should do.
```zig
@specialize(comptime func: var, comptime target: type) target
```
`@specialize` attempts to specialize a generic function to the requested type.
`func` must be a generic function pointer.
`target` must be a function type.
If the `target` type is incompatible, `@specialize` will generate a compile error.
This would be useful for a few metaprogramming purposes.
In interface.zig, this would be one way to support an arbitrary number of arguments when generating functions, by generating a function that takes a tuple and specializing it to the actual tuple type of the argument set.
I will update code for this usecase soon.
Answers:
username_1: Maybe `@as(SpecializedFn, genericFn)` should work. This is the first thing I thought to try when I've needed to do this.
username_0: Not gonna lie, I tried this as well (followed by `@ptrCast`) when I first wanted to do this.
I would probably have agreed with you a while ago but I have come to value explicit code more and this just seems like a case with a high (comptime and code size) cost that should probably not be implicit.
I could live with that as well though :P |
b1f6c1c4/cpp-create-objects | 403561067 | Title: Additional includes in standard library?
Question:
username_0: like `#include <memory>`
Answers:
username_1: Absolutely allowed.
* If it's very commonly used (like `stdlib.h`), add to `header.hpp`
* If not, add to your `.hpp` file(s).
username_0: Sure, and the non-standard headers are obviously not allowed imo, right?
username_1: I don't understand why you need extra headers just to create objects.
If you want to use boost, you can fork this project and change the rule.
username_0: #2 That's why I mentioned it.
Status: Issue closed
|
TaleLin/lin-ui | 594276848 | Title: VM6838:1 direction: column must be in the [row,colunm]
Question:
username_0: **LinUI版本(必填):*最新版*
**设备(必填):*最新版*
**基础库版本(必填):*最新版*
步骤条校验bug: 使用<l-steps reverse="{{true}}" direction="column" step-min-height="160" color="#00CC83" active-index="{{step}}">,后控制报column must be in the [row,colunm],是不是源码列名字校验写错了
Answers:
username_1: 感谢反馈 这个是源码内的检验信息写错了 会在下个版本进行修复
:octocat: [From gitme Android](http://flutterchina.club/app/gm.html)
Status: Issue closed
|
kingdom-code/kingdom-code | 431625053 | Title: City pages need a better <title>
Question:
username_0: The page title is currently `Kingdom Code`.
Would be good to get it to something like `Kingdom Code: {{ cityName }}`
Status: Issue closed
Answers:
username_0: Resolved in https://github.com/kingdom-code/kingdom-code/commit/115c4b49a7888953054556a2804a4e5bb21714ac |
lin-xin/vue-manage-system | 670819501 | Title: 点击全屏过后 按esc退出全屏后 提示文字还是取消全屏
Question:
username_0: 
Answers:
username_1: // 我修改了,使用esc和F11都可以了
<template>
<div class="header">
<!-- 折叠按钮 -->
<div class="collapse-btn" @click="collapseChage">
<i v-if="!collapse" class="el-icon-s-fold"></i>
<i v-else class="el-icon-s-unfold"></i>
</div>
<div class="logo">后台管理系统</div>
<div class="header-right">
<div class="header-user-con">
<!-- 全屏显示 -->
<div class="btn-fullscreen" @click="handleFullScreen">
<el-tooltip effect="dark" :content="fullscreen?`取消全屏`:`全屏`" placement="bottom">
<i class="el-icon-rank"></i>
</el-tooltip>
</div>
<!-- 消息中心 -->
<div class="btn-bell">
<el-tooltip effect="dark" :content="message?`有${message}条未读消息`:`消息中心`" placement="bottom">
<router-link to="/tabs">
<i class="el-icon-bell"></i>
</router-link>
</el-tooltip>
<span class="btn-bell-badge" v-if="message"></span>
</div>
<!-- 用户头像 -->
<div class="user-avator">
<img src="../../assets/img/img.jpg" />
</div>
<!-- 用户名下拉菜单 -->
<el-dropdown class="user-name" trigger="click" @command="handleCommand">
<span class="el-dropdown-link">
{{username}}
<i class="el-icon-caret-bottom"></i>
</span>
<el-dropdown-menu slot="dropdown">
<a href="https://github.com/lin-xin/vue-manage-system" target="_blank">
<el-dropdown-item>项目仓库</el-dropdown-item>
</a>
<el-dropdown-item divided command="loginout">退出登录</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</div>
</div>
</div>
</template>
<script>
import bus from '../common/bus';
export default {
data() {
return {
collapse: false,
fullscreen: false,
name: 'linxin',
message: 2,
WindowScreenHeight: null
};
},
created() {
[Truncated]
.user-avator {
margin-left: 20px;
}
.user-avator img {
display: block;
width: 40px;
height: 40px;
border-radius: 50%;
}
.el-dropdown-link {
color: #fff;
cursor: pointer;
}
.el-dropdown-menu__item {
text-align: center;
}
</style>
username_1: 这里有详细步骤: https://www.cnblogs.com/itcast-guoke/p/14155011.html |
sebelga/gstore-node | 197753425 | Title: Issue when calling Model.get with an array with a length of 1
Question:
username_0: If you call the `Model.get` method with an array consisting of only one ID, nothing seems to be returned.
For example, calling the following returns an array of 2 entities:
```js
MyModel.get([10, 15])
```
However calling the following doesn't return anything:
```js
MyModel.get([10])
```
Answers:
username_1: Hi, thank you for reporting, I spotted the error :) I will bring a fix asap.
username_1: Hi,
Sorry this go caught long time in PR without merging. :) It should be solved in the latest v0.10.0 release.
thanks again for reporting.
Status: Issue closed
|
mathematicalninja/Quirk-A-Bot | 810531171 | Title: Character sheets Data structure
Question:
username_0: - [ ] require a data-structure for character sheets detailing character stats (attributes and skills separate, but accessible in the same way)
- [ ] character health and willpower stored (both the calculated stat, and the current stat)
- [ ] a way for GM or GM like users to be able to modify character sheets
- [ ] a way to identify who each character sheet belongs to
- [ ] a way to allow characters to modify their own character sheets
- [ ] An output for a log of changes to characters from a session (to be utilised in the "go o sleep" command"
- [ ] Blood potency
- [ ] placeholder for the list of character Advantages/flaws/disciplines (to be later mechanised)
- [ ] Exp tracker (which will allow for future lv up info)
Allowing tags for user id and user names so GM can say "name roll Wisdom Wits" and Quirk-A-Bot can know what that means. Or the player can say "roll Wisdom wits" and the same thing should happen (but GM's one should @player not @GM)
Answers:
username_1: @username_0 regarding the interface to manage and view character sheets, could I get some feedback on what you prefer from the following:
do you want this to be like the bot, ie only online when you fire it up and having all the information saved locally as JSON files? This would mean users are limited to when they can view and edit their character sheets, and only you would have access to the master data on your local machine.
Or would you be open to having the interface as a hosted website and the data saved on a hosted service where access to the master data can be assigned to multiple people? This would mean the character sheet interface is available at any time and some users can also look at/edit the raw master data (would editing raw data ever be required for general users?) |
mcfunley/pugsql | 472239870 | Title: Support postgresql VALUES lists
Question:
username_0: Example:
```sql
UPDATE names SET name = vals.name
FROM (VALUES (1, "Bob"), (2, "Mary"), (3, "Jane")) AS vals (id, name)
WHERE names.id = vals.id;
```
See https://www.postgresql.org/docs/9.5/queries-values.html
Is there a way to make pugsql generic enough to generate any SQL, regardless of whether or not the specific driver supports it, thus solving this in a more generic way?
Answers:
username_1: So hugsql has stuff like this:
https://www.hugsql.org/#param-value-list
This kind of syntax would require pugsql parsing the sql itself, as opposed to leaning entirely on sqlalchemy to do that. I'm definitely down to do this if it becomes necessary.
I've started down the road of implementing that a few times, but every time I've done this I've figured out some way to just let sqlalchemy do the hard part.
Multi-row inserts are very similar to this:
https://pugsql.org/tutorial#multi-row-inserts
And I'm wondering if that approach also works here.
* If it does, then the thing to do would just be to document this.
* If it doesn't then yeah I'd agree it's probably time to bite the bullet and parse the sql.
If there's a way it works but that way is weird/inconsistent with the insert usage of `VALUES`, then maybe it's time to bite the bullet and parse the sql anyway.
username_0: So for collections it seems the delimiter may differ, as does the enclosing symbol. Not sure what various types other DBs use.
Hugsql appears to use the correct type depending on the clojure data type used (untested), but also supports specifying what type a param is. Is this approach possible with pugsql? Would that still allow it to use sqla to do the hard part?
username_1: Yeah, you are probably right about this. Seems worth parsing the sql, although that’s gonna be a significant addition.
username_2: I'am not sure if i understand you correctly but it seems that sqla support what pugsql need here.
take a look at: [https://stackoverflow.com/questions/27656459/sqlalchemy-and-raw-sql-list-as-an-input](url)
Sample code:
``` python
import sqlalchemy
args = [1, 2, 3]
raw_sql = "SELECT * FROM table WHERE data IN :values"
query = sqlalchemy.text(raw_sql).bindparams(values=tuple(args))
conn.engine.execute(query)
``` |
TechReborn/TechReborn | 91396808 | Title: Can someone explain the fluid component of electrolyzer recipes?
Question:
username_0: Gregtech Industrial Electrolyzers didn't use fluids at all.
Answers:
username_1: I just went by the gui that tnt gave us
username_0: I mean, fundamentally Electrolization happens in solutions, not to just dusts. So it might make sense that the recipes that don't include a fluid solvent require water be added. http://encyclopedia2.thefreedictionary.com/Electrolyzation
username_0: @Tntrololol, what were your plans for this?
username_1: I will remove the fluid tank later but will need a new gui
Status: Issue closed
|
aarongustafson/jekyll-webmention_io | 255189091 | Title: Error when building: "NoMethodError: undefined method `empty?' for nil:NilClass"
Question:
username_0: Updated to current master, I can't built the site anymore, with this error in `gather_webmentions.rb`:
```
Configuration file: /Users/username_0/Dropbox/Personnel/Devs/nicolas-hoizey.com/_config.yml
Configuration file: _config.yml
Configuration file: _config_credentials.yml
Source: /Users/username_0/Dropbox/Personnel/Devs/nicolas-hoizey.com
Destination: /Users/username_0/Dropbox/Personnel/Devs/nicolas-hoizey.com/_site
Incremental build: disabled. Enable with --incremental
Generating...
[jekyll-webmention_io] Beginning to gather webmentions of your posts. This may take a while.
bundler: failed to load command: jekyll (/Users/username_0/.rvm/gems/ruby-2.4.0/bin/jekyll)
NoMethodError: undefined method `empty?' for nil:NilClass
/Users/username_0/.rvm/gems/ruby-2.4.0/bundler/gems/jekyll-webmention_io-ecdc71e7d530/lib/jekyll/generators/gather_webmentions.rb:244:in `block in process_webmentions'
/Users/username_0/.rvm/gems/ruby-2.4.0/bundler/gems/jekyll-webmention_io-ecdc71e7d530/lib/jekyll/generators/gather_webmentions.rb:127:in `reverse_each'
/Users/username_0/.rvm/gems/ruby-2.4.0/bundler/gems/jekyll-webmention_io-ecdc71e7d530/lib/jekyll/generators/gather_webmentions.rb:127:in `process_webmentions'
/Users/username_0/.rvm/gems/ruby-2.4.0/bundler/gems/jekyll-webmention_io-ecdc71e7d530/lib/jekyll/generators/gather_webmentions.rb:69:in `block in generate'
/Users/username_0/.rvm/gems/ruby-2.4.0/bundler/gems/jekyll-webmention_io-ecdc71e7d530/lib/jekyll/generators/gather_webmentions.rb:44:in `each'
/Users/username_0/.rvm/gems/ruby-2.4.0/bundler/gems/jekyll-webmention_io-ecdc71e7d530/lib/jekyll/generators/gather_webmentions.rb:44:in `generate'
/Users/username_0/.rvm/gems/ruby-2.4.0/gems/jekyll-3.5.1/lib/jekyll/site.rb:178:in `block in generate'
/Users/username_0/.rvm/gems/ruby-2.4.0/gems/jekyll-3.5.1/lib/jekyll/site.rb:176:in `each'
/Users/username_0/.rvm/gems/ruby-2.4.0/gems/jekyll-3.5.1/lib/jekyll/site.rb:176:in `generate'
/Users/username_0/.rvm/gems/ruby-2.4.0/gems/jekyll-3.5.1/lib/jekyll/site.rb:72:in `process'
/Users/username_0/.rvm/gems/ruby-2.4.0/gems/jekyll-3.5.1/lib/jekyll/command.rb:26:in `process_site'
/Users/username_0/.rvm/gems/ruby-2.4.0/gems/jekyll-3.5.1/lib/jekyll/commands/build.rb:63:in `build'
/Users/username_0/.rvm/gems/ruby-2.4.0/gems/jekyll-3.5.1/lib/jekyll/commands/build.rb:34:in `process'
/Users/username_0/.rvm/gems/ruby-2.4.0/gems/jekyll-3.5.1/lib/jekyll/commands/build.rb:16:in `block (2 levels) in init_with_program'
/Users/username_0/.rvm/gems/ruby-2.4.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `block in execute'
/Users/username_0/.rvm/gems/ruby-2.4.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `each'
/Users/username_0/.rvm/gems/ruby-2.4.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `execute'
/Users/username_0/.rvm/gems/ruby-2.4.0/gems/mercenary-0.3.6/lib/mercenary/program.rb:42:in `go'
/Users/username_0/.rvm/gems/ruby-2.4.0/gems/mercenary-0.3.6/lib/mercenary.rb:19:in `program'
/Users/username_0/.rvm/gems/ruby-2.4.0/gems/jekyll-3.5.1/exe/jekyll:13:in `<top (required)>'
/Users/username_0/.rvm/gems/ruby-2.4.0/bin/jekyll:22:in `load'
/Users/username_0/.rvm/gems/ruby-2.4.0/bin/jekyll:22:in `<top (required)>'
```
Answers:
username_1: Mergd the PR. This is fixed in 2.8.1.
Status: Issue closed
|
jwvdiermen/grunt-include-source | 59114292 | Title: Includes duplicate JS files
Question:
username_0: Globbing includes duplicates.
Answers:
username_1: Can you please be more specific or give an example of the issue you're having which I can reproduce?
username_2: include in html source:
<!-- include: "type": "js", "files": "bower/angular/**/*.js" -->
<!-- /include -->
<!-- include: "type": "js", "files": "bower/**/*.js" -->
<!-- /include -->
result html:
<!-- include: "type": "js", "files": "bower/angular/**/*.js" -->
<script src="bower/angular/angular.js"></script>
<!-- /include -->
<!-- include: "type": "js", "files": "bower/**/*.js" -->
<script src="bower/angular-animate/angular-animate.js"></script>
<script src="bower/angular-bootstrap/ui-bootstrap-tpls.js"></script>
<script src="bower/angular-cookies/angular-cookies.js"></script>
<script src="bower/angular-dynamic-locale/src/tmhDynamicLocale.js"></script>
<script src="bower/angular-local-storage/dist/angular-local-storage.js"></script>
<script src="bower/angular-resource/angular-resource.js"></script>
<script src="bower/angular-sanitize/angular-sanitize.js"></script>
<script src="bower/angular-translate-loader-partial/angular-translate-loader-partial.js"></script>
<script src="bower/angular-translate-storage-cookie/angular-translate-storage-cookie.js"></script>
<script src="bower/angular-translate-storage-local/angular-translate-storage-local.js"></script>
<script src="bower/angular-translate/angular-translate.js"></script>
<script src="bower/angular-ui-router/release/angular-ui-router.js"></script>
<script src="bower/angular/angular.js"></script>
<script src="bower/bootswatch-dist/js/bootstrap.js"></script>
<script src="bower/jquery/dist/jquery.js"></script>
<script src="bower/lodash/lodash.js"></script>
<!-- /include -->
username_2: <!-- include: "type": "js", "files": "bower/angular/**/*.js" -->
<script src="bower/angular/angular.js"></script>
<!-- /include -->
<!-- include: "type": "js", "files": "bower/**/*.js" -->
<script src="bower/angular-animate/angular-animate.js"></script>
<script src="bower/angular-bootstrap/ui-bootstrap-tpls.js"></script>
<script src="bower/angular-cookies/angular-cookies.js"></script>
<script src="bower/angular-dynamic-locale/src/tmhDynamicLocale.js"></script>
<script src="bower/angular-local-storage/dist/angular-local-storage.js"></script>
<script src="bower/angular-resource/angular-resource.js"></script>
<script src="bower/angular-sanitize/angular-sanitize.js"></script>
<script src="bower/angular-translate-loader-partial/angular-translate-loader-partial.js"></script>
<script src="bower/angular-translate-storage-cookie/angular-translate-storage-cookie.js"></script>
<script src="bower/angular-translate-storage-local/angular-translate-storage-local.js"></script>
<script src="bower/angular-translate/angular-translate.js"></script>
<script src="bower/angular-ui-router/release/angular-ui-router.js"></script>
<script src="bower/angular/angular.js"></script>
<script src="bower/bootswatch-dist/js/bootstrap.js"></script>
<script src="bower/jquery/dist/jquery.js"></script>
<script src="bower/lodash/lodash.js"></script>
<!-- /include -->
username_2: html source:
```html
<!-- include: "type": "js", "files": "bower/angular/**/*.js" -->
<!-- /include -->
<!-- include: "type": "js", "files": "bower/**/*.js" -->
<!-- /include -->
```
html result:
```html
<!-- include: "type": "js", "files": "bower/angular/**/*.js" -->
<script src="bower/angular/angular.js"></script>
<!-- /include -->
<!-- include: "type": "js", "files": "bower/**/*.js" -->
<script src="bower/angular-animate/angular-animate.js"></script>
<script src="bower/angular-bootstrap/ui-bootstrap-tpls.js"></script>
<script src="bower/angular-cookies/angular-cookies.js"></script>
<script src="bower/angular-dynamic-locale/src/tmhDynamicLocale.js"></script>
<script src="bower/angular-local-storage/dist/angular-local-storage.js"></script>
<script src="bower/angular-resource/angular-resource.js"></script>
<script src="bower/angular-sanitize/angular-sanitize.js"></script>
<script src="bower/angular-translate-loader-partial/angular-translate-loader-partial.js"></script>
<script src="bower/angular-translate-storage-cookie/angular-translate-storage-cookie.js"></script>
<script src="bower/angular-translate-storage-local/angular-translate-storage-local.js"></script>
<script src="bower/angular-translate/angular-translate.js"></script>
<script src="bower/angular-ui-router/release/angular-ui-router.js"></script>
<script src="bower/angular/angular.js"></script>
<script src="bower/bootswatch-dist/js/bootstrap.js"></script>
<script src="bower/jquery/dist/jquery.js"></script>
<script src="bower/lodash/lodash.js"></script>
<!-- /include -->
```
bower/angular/angular.js is duplicated
username_1: I see what you mean, but I'm not sure how this can be solved. Maybe by implementing a secondary pattern to exclude certain files:
```html
<!-- include: "type": "js", "files": "bower/angular/**/*.js" -->
<!-- /include -->
<!-- include: "type": "js", "files": "bower/**/*.js", "exclude": "bower/angular/**/*.js" -->
<!-- /include -->
```
What do you think? Shouldn't be difficult to implement.
username_2: Hi thanks for replying,
I think best would be if files would accept sort for comma delimited list of file patterns, so that exclusion could be achieved by exclamation mark:
"files": "bower//**/*.js, !bower/angular/**/*.js"
but what ever is easier, explicit exclude argument is also fine, but would have to accept list of patterns as well...IMHO
Thanks,
Martin
username_3: The ability to exclude files would be great, and would help with the ordering issue as well (workaround).
username_1: This should now work as described in http://gruntjs.com/api/grunt.file#grunt.file.expand. See also https://github.com/username_1/grunt-include-source/blob/master/test/files/index.html#L69 for an example.
This is native for the pattern, but adding a `!` didn't work for me when using a comma separated list. So I manually split the `files` option before passing it to grunt's expand method.
Closing now, let me know if this doesn't work for you.
Status: Issue closed
username_4: How do you do that? |
BrightID/BrightID | 776875625 | Title: Don't rely on Error.message ; rely on Error.errorNum instead
Question:
username_0: Examples like this could easily break when the api errors are improved, which I am actively improving.
```
if (err instanceof Error && err.message === 'bad sigs') {
```
`errorNum` is meant for machines to process, `err.message` is meant to show users as a last resort (as a better alternative than simply "error") so they can share that with support / devs.
Replace all instances where `.message` is being compared with `.errorNum`.<issue_closed>
Status: Issue closed |
godotengine/godot | 197359424 | Title: Raycast array
Question:
username_0: **Operating system or device - Godot version:**
Ubuntu 16.04 - Godot 2.1
**Issue description** (what happened, and what was expected):
However I also realize that the results of intersect_shape() don't contain the position of the intersections, so I used hit.collider.get_pos(), which is less precise but should at least order the objects.
I get the output array that is sorted by id.
I need to get in the order in which they enter the ray.
Answers:
username_1: @username_0 I don't really think that `intersect_shape` should in any way care about the shape type, unless it starts caring about the intersection positions. The problem with intersection positions is that you can have multiple of them, which raises the question of which should be kept....
So far, I think that for this (poorly-described) usecase, there are two things that might be done:
1. Make `intersect_shape` return intersection pos, and probably sort intersections by distance to shape_transform's origin.
2. Make `intersect_ray_multiple`, which would just keep intersecting with the raycast, even after the first hit.
3. (Keep things as-is, we can fake `intersect_ray_multiple` using the current `intersect_ray` already.)
Which one do you this is better for Godot and gamedev? :smiley:
username_2: First of all thank you for your report and sorry for the delay.
We released Godot 3.0 in January 2018 after 18 months of work, fixing many old issues either directly, or by obsoleting/replacing the features they were referring to.
We still have hundreds of issues whose relevance/reproducibility needs to be checked against the [current stable version](https://godotengine.org/download), and that's where you can help us.
**Could you check if the issue that you described initially is still relevant/reproducible in Godot 3.0 or any newer version, and comment about it here?**
For bug reports, please also make sure that the issue contains detailed steps to reproduce the bug and, if possible, a zipped project that can be used to reproduce it right away. This greatly speeds up debugging and bugfixing tasks for our contributors.
Our Bugsquad will review this issue more in-depth in 15 days, and potentially close it if its relevance could not be confirmed.
Thanks in advance.
*Note: This message is being copy-pasted to many "stale" issues (90+ days without activity). It might happen that it is not meaningful for this specific issue or appears oblivious of the issue's context, if so please comment to notify the Bugsquad about it.*
username_1: Still relevant in 3.0, there is still no builtin way to get multiple intersection with a ray in 2D or 3D.
username_3: The issue does not properly describe what the use case is and what should actually be implemented, so it's a bit difficult for any contributor to work on it (and first of all to find it given its unclear title).
As such I'll close it, if the intended use case is still not covered in 3.1, I would advise to open a new issue with a clearer description.
Status: Issue closed
|
Edujugon/PushNotification | 197825793 | Title: .p12 instead of .pem
Question:
username_0: Not an issue per-se just a feature request. Is there any way you could modify this to use .p12 or .pem files?
It would just remove the extra step of generating the .pem
Answers:
username_1: As far as I know you have to create a .pem file.
Anyway, I should have to research that. If you find a way, you are welcome to create a pull request or send me a message with the details.
username_0: It's ok now. I realised I've been using fastlane for my build and submit for a while and they have a certificate generator too. That generates pem files.
Mark this as closed if you like?
Sent from my mobile device.
<NAME>
>
username_1: Okay, closing it then :)
Status: Issue closed
|
apache/trafficserver | 299235665 | Title: Enable Parent Proxy only if parent_proxy_routing_enable is 1
Question:
username_0: https://docs.trafficserver.apache.org/en/7.1.x/admin-guide/files/parent.config.en.html
Answers:
username_1: I don't think we need this variable. rules in parent.config should be good enough to enable parent.
@mlibbey @zwoop @username_2 is it okay if I get rid of this variable?
username_2: @mlibbey, @username_1, and @zwoop I'd be okay with getting rid of it. I think it's only checked in ParentSelection::findParent() and returns immediately if not enabled. If it is enabled it checks to see if the request matches an entry in parent.config. If no match is found it just returns a result to go direct to the origin. so that request match lookup should be good enough.
username_1: #5570 removes the configuration variable.
Status: Issue closed
|
redox-os/orbtk | 700641758 | Title: Alpha3: Want a way to force update in next loop
Question:
username_0: # Context
This is somewhere between a feature request and a bug. I want to use a Grid widget/layout to show icons in a way similar to most file explorers. To do this, I want to use fixed size rows and columns and calculate the number needed based on the size available which is to say the bounds of the widget.
# Problem description & Solution
As mentioned above, in order to calculate the number of rows and columns, the widget must know its size. However, the size isn't calculated until the layout system runs. Modifying the widget after layout doesn't work (and in fact should likely be prevented as it results in some unexpected behavior). In alpha2, this wasn't an issue because the state was updated frequently. This changed in alpha3, probably for performance reasons. Now updates are only triggered when the widget is considered dirty, and all dirty statuses are reset after rendering, so any changes made or events triggered after their corresponding systems have run are not reflected until something external happens.
Possible solution: Add a post_render method to State that gets run after render and after dirty statuses have been cleared, which would allow developers a way to force another update when necessary. Alternatively, a much more narrow solution to my problem would be to calculate the bounds of a widget and set that property before the State's update method is called.
Workaround: For my problem, I can calculate bounds based on the initial window size, pass them to the widget on creation, and set the bounds property manually in the init method.
Answers:
username_1: Hi,
what you can do is to trigger a redraw, this will also rub a ne loop.
```rust
ctx.send_window_request(WindowReqeust::Redraw);
```
There will come some updates to do such things easier.
username_0: Thank you for the suggestion! I didn't know about this. I tried using it in `update_post_layout` and it didn't work. Does it use the same event system that gets cleared after render?
username_1: It goes direct through the window shell.
Status: Issue closed
|
DevOps-Shopcarts-S17/devops-shopcarts-s17 | 218365598 | Title: Write a Feature and a Step File for Create Products
Question:
username_0: **As a** ... developer
**I need** ... I need acceptance test cases for create_products method of shopcart.py
**So that** ... when I make changes, I can run the tests to make sure my functionality is unchanged
**Assumptions:**
* ... Features will reside in shopcarts.features and steps will reside in steps.py
**Acceptance Criteria:**
```
Given ... the features and steps written in shopcarts.features and steps.py
When ... I type behave
Then ... all the steps have passed
Status: Issue closed
Answers:
username_0: Completed and merged |
SignalK/signalk-server | 726710491 | Title: Feedback when submittin
Question:
username_0: I think it's a good thing to give some feedback when submitting settings, attached picture is only an example.
Maybe this message is shown for some seconds and then disappears again.

Answers:
username_1: I don’t disagree. But. The plugin config forms are generated with react-jsonschema-form and I have not looked into how feedback for submitting can be implemented within the form.
Hmm. We could flash a border around the form or something like that. Anything below the button, outside the form would probably be below the fold.
username_0: Well, I don't know "how to" either, it's only a reflection form a new user.
Maybe flash the border of the form in green is better than nothing?
Status: Issue closed
|
vatlab/sos-notebook | 697069935 | Title: can't replicate bash flow behavior from docs
Question:
username_0: In the docs, there is a simple intro for passing variables back and forth from Bash to SoS. (I'm talking about this page: https://vatlab.github.io/sos-docs/doc/user_guide/sos_bash.html#Bash-
However, I cannot replicate it!
This works:
[inside bash kernel]
%capture stdout --to bash_output
echo "I am from Bash"
[inside SoS kernel]
bash_output
This works fine and I get expected print output. However, the following doesn't work (screenshot attached)
[inside bash kernel]
b='Hello from Bash'
echo $b
[inside SoS kernel]
%get b --from Bash
b
[0]:
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
script_1290943559931815799 in <module>
----> b
NameError: name 'b' is not defined
<img width="953" alt="Screen Shot 2020-09-09 at 2 52 48 PM" src="https://user-images.githubusercontent.com/7785839/92641599-fd86fb80-f2ac-11ea-9ae8-88018f7d2551.png">
Answers:
username_1: Did you install sos-bash?
username_0: Unfortunately I didn't do the installation and don't have root access to the server where this is running. I will assume this is the issue. I'll test out a local copy myself and check it out. Thanks. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.