repo_name
stringlengths 4
136
| issue_id
stringlengths 5
10
| text
stringlengths 37
4.84M
|
---|---|---|
richnologies/ngx-stripe | 314074150 | Title: Using custom forms and other elements
Question:
username_0: I'm trying to use custom elements to design a form.
Something derived from what Stripe provides in https://stripe.github.io/elements-examples/
But am struggling to find a way to have multiple elements created with elements.create() register as a single card information object.
Thanks!
Answers:
username_1: I'm having the same issue, did you find a solution?
username_0: Not so far.
What I ended up doing what using the generated form inside my own form. And put all the logic in the buy() method.
username_2: You can use something like this:
` this.stripeService.elements(this.elementsOptions)
.subscribe(elements => {
this.elements = elements;
// Only mount the element the first time
if (!this.cardNumber) {
this.cardNumber = this.elements.create('cardNumber', {
style: this.elementStyles
});
this.cardNumber.mount('#card-number');
}
if (!this.cardExpiry) {
this.cardExpiry = this.elements.create('cardExpiry', {
style: this.elementStyles
});
this.cardExpiry.mount('#card-expiry');
}
if (!this.cardCvc) {
this.cardCvc = this.elements.create('cardCvc', {
style: this.elementStyles
});
this.cardCvc.mount('#card-cvc');
}
});`
and then just use the "cardNumber" to create the token.
`this.stripeService
.createToken(this.cardNumber, { name })
.subscribe(result => {
if (result.token) {
// Use the token to create a charge or a customer
// https://stripe.com/docs/charges
console.log(result.token.id);
this.platformService.createCard(result.token.id).subscribe(
r => {
console.log(r)
},
error => {
console.log(error);
}
);
} else if (result.error) {
// Error creating the token
console.log(result.error.message);
}
});
}`
username_3: Use this.cardNumber, stripe will pull data from other Elements you’ve created on the same instance.
username_4: I will close this now due to inactivity. Sorry for this library to be abandon for such a long time. A new version of the library has been published that should address this issue. Please give it a try. If the problem persists, please fell free to open it again. The new commitment of the team is to answer in less than a week.
Status: Issue closed
username_5: @username_2 i have error passing cardNumber on createToken. What type should cardNumber be? Do you have a complete example for
this snippet?
username_4: I'm trying to use custom elements to design a form.
Something derived from what Stripe provides in https://stripe.github.io/elements-examples/
But am struggling to find a way to have multiple elements created with elements.create() register as a single card information object.
Thanks!
Status: Issue closed
|
open-telemetry/opentelemetry-go | 957851720 | Title: Proposal: Use goyek for build automation
Question:
username_0: ### Problem Statement
The automation pipelines are build of:
- `Makefile`
- bash scripts `tag.sh`, `pre_release.sh`, `get_main_pkgs.sh`, `verify_examples.sh`
- Internal Go CLI apps: `internal/tools/crosslink` and `internal/tools/semconv-gen`
- Common OTel Go CLI apps (not currently used in this repository): https://github.com/open-telemetry/opentelemetry-go-build-tools
The currently used approach requires the developer to know not only Go, but also Bash and Make quite well.
While the Go CLI apps can be easily reused between the repositories, this cannot be said for `Makefile` or Bash scripts.
The current build pipeline does not work properly on Windows. And creating Bash scripts and `Makefile` that work properly on Windows (e.g. via MinGW) is not always simple.
### Proposed Solution
Use [`goyek`](https://github.com/goyek/goyek) instead of Makefile. The approach is inspired by tools like:
- https://ruby.github.io/rake/
- https://cakebuild.net/
- https://github.com/adamralph/bullseye
- https://nuke.build/
We could register [`goyek.Task`](https://pkg.go.dev/github.com/goyek/goyek#Task) instead of writing bash scripts and internal Go CLI Apps.
Writing task's implementation (action) reminds writing a unit test using the `testing` package.
Reusability between repositories should be easier as well thanks to Go Modules. We could choose from:
- Reusing common Go functions.
- Reusing Tasks implementation.
- Reusing common workflows/pipelines.
#### Alternatives
[Mage](https://magefile.org/) was created to solve the same issue. It is more widely used, has a larger community.
However, personally, I do not like its design. Why? See: [here](https://github.com/goyek/goyek/blob/main/docs/alternatives.md#mage).
#### Prior Art
Here is a sample repository containing a common build pipeline: <https://github.com/signalfx/go-pipeline>.
Here is a PR to demonstrate how transitioning from the current approach could look like: <https://github.com/signalfx/splunk-otel-go/pull/71>.
### Additional Context
The proposal is opinionated as I am the creator of [`goyek`](https://github.com/goyek/goyek).
I have created this proposal after seeing <https://github.com/open-telemetry/opentelemetry-go-build-tools/pull/8>.
Answers:
username_1: Context: I am the author of the [PR linked from OpenTelemetry-Go-Build-Tools](https://github.com/open-telemetry/opentelemetry-go-build-tools/pull/8).
This looks awesome and would definitely help to unify a lot of aspects of the build tools! I liked the demo, and it seems like rewriting an internal Go CLI app to use Goyek be rather straightforward? Would definitely be interested in integrating/deploying the Go MultiMod releaser tool with Goyek in the coming weeks.
username_2: We've already got working `Makefile`s that meet our needs and I'm not sure I see us outgrowing Make any time soon.
username_0: Fair. I am good to close this issue. Even if I would be the one to reimplement - I think it would be far more valuable if I make more code reviews instead 😉
username_3: A couple random thoughts (without any intent to argue pro/contra goyek itself):
Wouldn't replacing Shell with a different _framework_ (even if it's syntactically Go code) yield the same problem? I mean, people having to learn shell and having to learn using a framework doesn't seem very different to me. Not to mention that Shell is probably more useful knowledge anyway.
I would also argue that not everyone has to be intimately familiar with all of the tools and how they are constructed. They need to be easy to use first IMO.
If there is a need, there are generic build systems (Bazel, Please, etc) that might be worth to check out as well. On that note: [Kubernetes](https://github.com/kubernetes/enhancements/issues/2420) and [Istio](https://twitter.com/kelseyhightower/status/958834738650755072) seem to be in the process of getting rid of Bazel in order to lower the entry barrier for contributing to those projects. So adding another tool to the mix is not necessarily the best solution.
Instead of picking the tool to unify the different build tasks, I would probably close from a "customer" angle to the problem: who uses these tools? who needs to maintain them? Simplify things for the larger user base (eg. standardize on a Make based interface for contributors, maybe even for release managers). Then the underlying implementation won't matter: it can be goyak if that simplifies the maintenance, but my guess is editing those scripts now and then is not that serious of a problem.
My two cents.
username_0: The only problem for me so far was that currently, not everything works fine on Windows. Making things working on *NIX + Windows is for me easier in Go than in Bash+Make 😉 But it can be for sure fixed using Bash and Make as well with things like `pwd -W` on Windows. Closing.
Status: Issue closed
|
vesoft-inc/nebula | 981741538 | Title: [openCypher compatibility] Fail to use pattern in WHERE
Question:
username_0: nGQL:
MATCH (v:player)--(v2) WHERE (v)-[:follow]->(v2) AND v2.name STARTS WITH "T" RETURN v2.name, v2.age

openCypher:
MATCH (v:Person)--(v2:Movie) WHERE (v)-[:ACTED_IN]->(v2) AND v2.title STARTS WITH "C" RETURN v2.title
 |
home-assistant/core | 831391786 | Title: Light Switch and light Group entities unavailable
Question:
username_0: ### The problem
Ever since today's update to 2021.03.04 my light switch entities all show unavailable.
### What is version of Home Assistant Core has the issue?
core-2021.3.4
### What was the last working version of Home Assistant Core?
core-2021.3.3
### What type of installation are you running?
Home Assistant OS
### Integration causing the issue
Light Switch
### Link to integration documentation on our website
https://www.home-assistant.io/integrations/light.switch/
### Example YAML snippet
```yaml
light:
- platform: switch
name: Back Door Light
entity_id: switch.back_door_light
- platform: switch
name: Garage Door Light
entity_id: switch.garage_door_light
- platform: switch
name: Front Door Light
entity_id: switch.front_door_light
```
### Anything in the logs that might be useful for us?
Logs show no mention of lights or switches
The lovelace interface for Front Door Light shows:
```
This entity is currently unavailable and is an orphan to a removed, changed or dysfunctional integration or device.
If the entity is no longer in use, you can clean it up by removing it.
```
I have restarted home assistant without any success bringing these back, however the underlying switch entities are working properly.
Answers:
username_1: I'm having this same problem since I upgraded to core-2021.3.4. None of my lights that are configured using the switch integration are available. This has broken pretty much every single scene I have.
username_0: @username_1 Not sure how helpful this is for you, and it is NOT a solution, but I've found that the configurability of "switch" entities has evolved enough recently that I'm able to use them in place of "light" entities for most of my purposes. (e.g. you can now show them in the front-end with lightbulb icons, and such)
It's a royal pain re-writing every automation and changing every lovelace panel, but I've transitioned most of my panels and automations to the underlying switch entities now as being without for any length of time was just not really an option for me.
I do hope someone can fix this though as there are still a few use cases I'd really prefer them to be "lights" for. (e.g. "hey google turn on all the outdoor lights" doesn't work if they're not lights)
username_1: This is becoming a bigger problem because certain add-ons I want to use are requiring that I upgrade to HA 2021.3.*, but I'm staying on 2021.2.* because of this breaking issue with switches/lights. I can't believe no one else has commented on/noticed this bug in 10 days. Seems like a pretty fundamental thing. I'd like to try to help but I'm not even sure where to start, given that I've never touched HA code and there isn't even an error message to start with.
username_0: I updated to 2021.14.0 today, and this is sorta fixed. All my light switch entities are still "unavailable" but I now have new light switch entities suffixed with "_2" so after purging the old ones, and renaming the new ones, everything is back to working for me.
Not sure what changed, and having to remove the old ones and rename the new ones is annoying, but it's all working for me again. |
orangemi/orangemi.github.io | 495851738 | Title: Linux 『门』的问题
Question:
username_0: 已经很久没有使用windows了,家里的小电脑一直运行这Linux,还没啥问题。今天正在写文档,输入『部门』的时候发现这字好像不怎么认识,是不是输入太快输入错了?后来才知道这是Linux系统显示的问题,其实系统里面很多字都长得比较奇怪,再加上一直在看英文资料,没有太在意就一直就这样过来了。
现象如下:

解决方案如下:
修改`/etc/fonts/conf.d/64-language-selector-prefer.conf`中 SC/TC/JP 之间的顺序,默认是将JP放在最前面,将顺序改为SC TC JP 然后重启电脑就行了。
修改后的截图如下:
 |
jlippold/tweakCompatible | 624282337 | Title: `VolumePercent` working on iOS 13.5
Question:
username_0: ```
{
"packageId": "com.gilshahar7.volumepercent",
"action": "working",
"userInfo": {
"arch32": false,
"packageId": "com.gilshahar7.volumepercent",
"deviceId": "iPhone10,3",
"url": "http://cydia.saurik.com/package/com.gilshahar7.volumepercent/",
"iOSVersion": "13.5",
"packageVersionIndexed": true,
"packageName": "VolumePercent",
"category": "Tweaks",
"repository": "Packix",
"name": "VolumePercent",
"installed": "1.0",
"packageIndexed": true,
"packageStatusExplaination": "A matching version of this tweak for this iOS version could not be found. Please submit a review if you choose to install.",
"id": "com.gilshahar7.volumepercent",
"commercial": false,
"packageInstalled": true,
"tweakCompatVersion": "0.1.5",
"shortDescription": "Displays the volume percentage on the stock volume HUD.",
"latest": "1.0",
"author": "gilshahar7",
"packageStatus": "Unknown"
},
"base64": "<KEY>
"chosenStatus": "working",
"notes": ""
}
```<issue_closed>
Status: Issue closed |
Atlantiss/NetherwingBugtracker | 365701681 | Title: [NPC] Venture Co. Tinkerer
Question:
username_0: **Description**: Level 40ish goblins in the middle of STV that summon a mechanical reaper minion.
**Current behaviour**: They summon the reaper as soon as they spawn even if not in combat. The reaper then despawns a bit later and they won't use the summon in combat.
**Expected behaviour**: Attempts to summon the mechanical reaper in combat.
**Server Revision**: 2108
Status: Issue closed
Answers:
username_1: Fixed |
linked-art/linked.art | 417301264 | Title: Name of influenced_by
Question:
username_0: At the 4 March meeting F2F @username_4 and <NAME> mentioned that the term "influenced by" has a specific meaning in art criticism which _isn't_ the meaning assigned to `influnced_by` in our model. We should consider changing our nomenclature, or possibly reworking that part of the model.
Answers:
username_1: Propose that we discuss this in github, and not on a call, as it's a naming question rather than substantive.
username_0: Between the two "audiences" of "people interested in art criticism" and "users of CRM", I would think we want to privilege the first, no? The overlap with a common meaning for the word _in the most specific domain_ seems to me more important than a conflict with a piece of more technical apparatus. Unless I misunderstood your meaning, @username_1?
username_1: I'm happy for confusing properties to be renamed. My point was mostly that we should do it in this issue, not on a call. Proposals for new names?
username_0: @username_1 Is there any way we can link to the CRM-based definition of `crm:P15_was_influenced_by`? I can only find [huge docs](http://www.cidoc-crm.org/get-last-official-release). I can't find a way to link to our definition, either, but I'm probably overlooking something.
username_1: The CRM site doesn't have them all split out. The Erlangen version does, however:
http://erlangen-crm.org/docs/ecrm/current/index.html#anchor-273453507
And the scope note there is the same as in the current 6.2.6
username_0: It is extremely generic.
username_1: It's anything that has any "influence" on the event or activity. Suggestions for another name, or can we close the issue?
username_0: @username_4, @username_2, and @username_3, thoughts?
username_2: I don't remember that conversation, but I personally used [`influenced_by`](http://www.cidoc-crm.org/Property/p15-was-influenced-by/version-6.1) in a way it should reflect the meaning given by art critics (e.g. the creation/production of an artwork is influenced by another artefact or person). My2cents, I don't need to change name.
username_3: P15 has the definition used by art historians correctly, although very generically. I've discussed with <NAME> and we think in linked art, you would either need to use the more specific properties such as P134 continued P136 was based on P16 used specific object P17 was motivated by or use a different term, like school of, follower of, etc.
username_4: At the YCBA we agree with and follow the guidelines The Cataloguing Cultural Objects manual recommends to describe a work influenced by another. Note that we actually never use the term 'influenced by' because it is generic, as John and Louisa have remarked. In its place, we typically use one of the 4 specific attribution qualifiers below.
However, I also agree with Louisa that 'influenced by' is a shorthand that is widely used by art historians.
Influenced by known creator (CCO definition): use one of the following qualifiers to indicate an influence (or an outright copy of) the style of the named master, but with the connotation that the named creator had little or nothing to do with the actual work at hand, The unknown creator need not necessarily be a contemporary of the named master (for example, style of Raphael or copyist of Rodin):
- style of: Use for a work by an unknown artist whose style is strongly under the influence of the style of the named master (e.g., style of Raphael).
- after: Use for a work by an unknown artist who has created a copy of a known work of the named artist.
- copyist of: Use for a work by an unknown artist whose style seems to be a deliberate copy of the style of the named artist, but when the work at hand is not a direct copy of a known work by the named artist (e.g., copyist of Rodin).
- manner of: Use for a work by an unknown artist whose style or elements of whose style are somewhat close to the style of the named artist, but whose work does not seem to be a deliberate copy of the named artist, and who generally lived in a period after the named artist.
(these last 4 definitions are from http://www.getty.edu/research/publications/electronic_publications/cdwa/14creation.html#Qualifier).
I guess my question is: how is Linked Art's use of 'influenced by' different from what's above?
username_2: I think Louisa and Emmanuelle are presenting two different aspects.
I see in Emmanuelle's description a classification of _relations between two actors_ (the unknown artist and a named artist) that can be deemed true (a) only in the context of the creation of a new artwork (perdurant), or (b) more likely always, because s/he is anonymous (hence, a endurant entity). In case of anonymous artists I always preferred the second one, i.e. characterising the unknown actor as influenced by somebody known, and not the creation of an artwork influenced by some nuance of influence.
In Louisa's one I see (also/potentially/maybe -- sorry if I'm wrong) the characterisation of _relations between artworks_ regardless (?) the influence between actors, e.g. an anonymous drawing of Michelangelo's Last Judgment. In this case (possibly to avoid misunderstandings in the usage of CIDOC) I opted for reusing the PROV class [`prov:EntityInfluence`](https://www.w3.org/TR/prov-o/#EntityInfluence) to characterise the relation between the former artwork (the Last Judgement), the activity (the derivation), and the derivative/influenced artwork (the drawing). In this case I can easily infer and characterise also the relations between actors if needed.
My point is: `Influenced by` is totally fine to me, to the extent we know the possible values of the property.
username_5: Could we use influenced by to establish the link between two creators and then attach an appellation (copy of, manner of, etc) to define the type of influence when known?
username_6: I’m not sure what the best way to encode the indie is but I have a need to encode artists and works that influenced another artwork
With best wishes,
--
<NAME>, PhD
Assoc. Prof. of Computer Science & Information Management at Dalhousie Univ. (in Canada)
Director of HAIKU research group ▻ https://haiku.cs.dal.ca/
Dalhousie University Senator for Computer Science
On the WWW at https://www.cs.dal.ca/~jamie
Please note that this address uses servers hosted outside of Canada.
P.S.: I sincerely apologize if my message seems curt. I'm receiving too many messages to deal with each one as I used to. If you require more information about the specific content of my message please speak with me in person. For transactional messages I recommend an article in the Harvard Business Review at <URL:https://hbr.org/2016/11/how-to-write-email-with-military-precision>.
username_3: There are two points that should be made here:
1. There is a difference between describing an artwork that copies a specific work of art (ie a drawing that copies Michaelangelo's Last Judgement, which is therefore done by a "copyist of Michaelangelo") and an artwork made by an anonymous artist whose general style is similar to that of a named artist (style of, follower of etc Michaelangelo).
2. There could be MANY DIFFERENT artists who work "in the style of" or are "followers of" Michaelangelo. These appellations were created to help sort large collections of unsigned works of art back in the early of days of art history and have continued today. The auction houses actually assigned each one a hierarchical value of their proximity to the work of the artist. You can see this reflected in the definitions Emmanuelle provided.
username_6: Is it worthwhile to do something similar for known artists?
My specific instance is <NAME>'s _Miss Chief's Wet Dream_ (2018): Monkman (working with his atelier) deliberately used elements from Géricault's _Raft of the Medusa_ (1818–1819), was influenced by _Reid's Spirit of Haida Gwaii_ (1986) and refers (in the title) to event depicted in Rembrandt's _The Storm on the Sea of Galilee_ (1633). Monkman did not contradict Annabelle Ténèze (AT) in a published interview when AT said that another element was inspired by Leutze's _Washington Crossing the Delaware_ (1851).
I think it would be worthwhile to encode all of those relationships.
--
<NAME>, PhD
Assoc. Prof. of Computer Science & Information Management at Dalhousie Univ. (in Canada)
Director of HAIKU research group ▻ https://haiku.cs.dal.ca/
Dalhousie University Senator for Computer Science
On the WWW at https://www.cs.dal.ca/~jamie
Please note that this address uses servers hosted outside of Canada.
P.S.: I sincerely apologize if my message seems curt. I'm receiving too many messages to deal with each one as I used to. If you require more information about the specific content of my message please speak with me in person. For transactional messages I recommend an article in the Harvard Business Review at <URL:https://hbr.org/2016/11/how-to-write-email-with-military-precision>.
username_1: To make sure that the discussion can continue without being lost when the current issue is resolved, I suggest that:
* We close this issue -- the naming of `P15_was_influenced_by` is not the *only* way that influenced by is used in an art historical context, nor are production influences the only things that could use P15, but they are overlapping in both directions and the name is pretty clear as to the intent of the relationship.
* We move the discussion about production qualifiers to #229, which is specifically about this topic
username_1: Agree can close this one and continue in #229.
Status: Issue closed
|
TEdit/Terraria-Map-Editor | 276794147 | Title: My TEdit Won't Start Up!
Question:
username_0: My TEdit will not start up at all!
Staring up tedit which i just installed
Yes. By starting up the exe file
1.3.5.3
Application: TEditXna.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.TypeInitializationException
Stack:
at TEditXna.App.Main()
and
Faulting application TEditXna.exe, version 3.10.17116.2025, time stamp 0x590164ae, faulting module KERNEL32.dll, version 6.0.6002.18449, time stamp 0x4da47b2f, exception code 0xe0434352, fault offset 0x00000000000170cd, process id 0x%9, application start time 0x%10.
Answers:
username_1: Be sure to unzip to a folder.
username_0: i have unzipped the folders
username_1: Could you please try some of the steps on these wiki pages? Usually one of
them will resolves any issues launching.
https://github.com/TEdit/Terraria-Map-Editor/wiki/Install-Requirements and
https://github.com/TEdit/Terraria-Map-Editor/wiki/Troubleshooting If these
do not work, trying a different PC may be the only option.
username_2: Maybe the system you are using then it might be something with your computer.
Status: Issue closed
|
nestjs/azure-storage | 500915429 | Title: Add folder creation support
Question:
username_0: <!--
PLEASE HELP US PROCESS GITHUB ISSUES FASTER BY PROVIDING THE FOLLOWING INFORMATION.
ISSUES MISSING IMPORTANT INFORMATION MAY BE CLOSED WITHOUT INVESTIGATION.
-->
## I'm submitting a...
<!--
Please search GitHub for a similar issue or PR before submitting.
Check one of the following options with "x" -->
<pre><code>
[ ] Regression <!--(a behavior that used to work and stopped working in a new release)-->
[ ] Bug report
[x] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.
</code></pre>
## Current behavior
<!-- Describe how the issue manifests. -->
Currently, specifying a custom file name with a slash creates an actual file with that filename. So, specifying the filename "dir/file.txt" actually creates a "dir/file.txt" file instead of creating the folder "dir" with "file.txt" in it
## Expected behavior
<!-- Describe what the desired behavior would be. -->
We should be able to create folders using the module
## Minimal reproduction of the problem with instructions
<!-- Please share a repo, a gist, or step-by-step instructions. -->
## What is the motivation / use case for changing the behavior?
<!-- Describe the motivation or the concrete use case. -->
Folders are useful... 📦
## Environment
<pre><code>
Nest version: 6.7.2
<!-- Check whether this is still an issue in the most recent Nest version -->
For Tooling issues:
- Node version: 12.10 <!-- run `node --version` -->
- Platform: Windows <!-- Mac, Linux, Windows -->
Others:
<!-- Anything else relevant? Operating system version, IDE, package manager, ... -->
</code></pre>
Answers:
username_0: For anyone who stumbles and is as much of an idiot as I am, you need to input the delimeter like this:
`directory\\filename`
@manekinekko I assume that this was a mistake?
https://github.com/nestjs/azure-storage/issues/8#issuecomment-537047350
Status: Issue closed
|
Azure/iotedge | 737016402 | Title: How to downgrade iotedge runtime?
Question:
username_0: Whats the proposed way to downgrade the installed iotedge runtime version w/o losing any caches (e.g. edge hub offline storage)?
I want to downgrade from 1.0.10 to 1.0.8. I tried with _Install-IoTEdge_ as well as _Update-IoTEdge_ and provided the 1.0.8 .cab file as parameter (offline installation). Both commands worked, but both did not really install the older version of the runtime.
Do I need to do an uninstall and re-install the old version? But this will delete the cache files, so I would need to back them up.
Answers:
username_1: It'll only delete the Edge Hub storage if you left the storage inside the container instead of volume-mounting the storage directory to a directory on your host. We recommend production users to do that anyway - https://aka.ms/iotedge-storage-host
If you did volume-mount the directory to your host, then that directory is going to be left as-is even if the container is deleted as part of package uninstall - it's your directory so it has nothing to do with the package.
username_2: @username_0 - were you able to resolve your problem? If so, can you please close this issue?
Status: Issue closed
username_2: @username_0 - I am closing this issue since we didn't hear back from you. If you run into any more issues, please feel free to open a new issue and provide all details as requested in the template. |
kodeine/laravel-acl | 124170969 | Title: Create permission for specific entity with id?
Question:
username_0: Is it possible to create a permission on an entity' id?
i.e. grant permission to a user on "posts" where id = 2?
Answers:
username_1: I was asking myself the same some time ago. Unfortunately, this doesn't seem possible at the moment. Would be a great enhancement imo.
username_2: @username_1 can't you just create permission for each entity?
username_1: @username_2 For small projects, this may be sufficient. But think about larger applications with hundereds of entities, this would quickly lead to a big mess.
username_3: @username_2 @username_0
can you please give me an example?
username_1: I think @username_0 wants to be able to do something like this:
`Auth::user()->canUpdatePost(2)`
where "2" is the ID of a Post model. I don't think that's something you can currently achieve with laravel-acl (though it would be a great enhancement).
username_4: I was describe and implement this feature for Entrust
https://github.com/Zizaco/entrust/issues/298
but it hasn't permission inheritance, so don't like it much...
username_2: @username_4 you can easily do editOwnPost right now
````
$gate->define('editOwnPost', function ($user, $post) {
if ($user->id !== $post->user_id) return false;
return true;
});
````
see this https://github.com/username_3/laravel-acl/issues/90#issuecomment-170644536
username_4: @username_2 thanks, I know. But it's not the same. `Gate` provide aplication level of abilities. It doesn't allow revoke ability from user and because it's not user level abilities we can't talk about inheritance.
My opinion is that even small project needs roles, callbacks for abilities and inheritance but using database as storage is too hard for small projects, so I think that different providers would be very good solution. Yii allow to describe roles, abilities and inheritance as array in php file and it's very useful for small projects.
I hope that my opinion will be heard by project maintainer.
username_2: @username_4 sorry I couldn't really get what you trying to do I leave it to other, just saying that with laravel-acl + laravel gate you can do anything including revoke ability from users
username_0: sorry, I wasn't receiving notifications even though I'm subscribed to them.
Anyway, @username_3 , as @username_1 said, having the ability to create permissions on entities would allow for a fine level of granularity.
Currently, being able to create permissions for users and roles is great. But said permissions are not specific enough. I need to be able to grant permissions on a per user/role basis for a specific entity. This allows me a lot more control.
The example given by @username_2 is sort of in the right direction, however it's not dynamic enough to allow me to grant some users the same permission to edit a specific post via id. |
PaystackHQ/paystack-android | 578798092 | Title: AAPT: error: resource attr/foreground (aka com.softcom.bridgeme.subscriber.android:attr/foreground) not found.
Question:
username_0: # Problem/Motivation
I added the the following to my gradle file:
implementation 'co.paystack.android.design.widget:pinpad:1.0.1'
implementation 'co.paystack.android:paystack:3.0.12'
and I have been getting this error after building:
AAPT: error: resource attr/foreground (aka com.softcom.bridgeme.subscriber.android:attr/foreground) not found.
Answers:
username_1: Hi @username_0 The problem is with your gradle, There is a compatibility issue with the Paystack Pinpad library, so make sure you are using a stable version of gradle. don't use any alpha or beta release, if you are using any just downgrade.
username_1: use this version of gradle `classpath 'com.android.tools.build:gradle:3.5.3'`
username_2: Thanks for helping out @username_1
We made some changes to fix this in version `3.0.14`. Let me know if you're still experiencing issues.
Status: Issue closed
|
ffuf/ffuf | 742431790 | Title: [Feature request] Support target list
Question:
username_0: Hi, I want to use ffuf to scan a list of URL, like this:
```
$ cat targets.txt
https://example.com/FUZZ
https://ffuf.io.fi/FUZZ
$ ffuf -c -w wordlist -url-list targets.txt
...
```
Answers:
username_1: Isn't this something you can easily achieve with standard [`xargs`](https://man7.org/linux/man-pages/man1/xargs.1.html)?
```console
$ cat wordlist.txt
foo
bar
bazz
admin
demo
test
$ cat targets.txt
https://gitlab.com/
https://gist.github.com/
$ cat targets.txt | xargs -I{} ffuf -c -w wordlist.txt -u {}FUZZ
```
username_0: Hi, I don't like those complex things and I'm not good at bash at all. So want this feature
username_2: You can use the multiple wordlists feature already for this. eg:
```
ffuf -w targets.txt:TARGET -w wordlist.txt -u https://TARGET/FUZZ ...
```
Status: Issue closed
username_0: Thanks |
dcuIntelligentWeb/EducationalMaterials | 852038604 | Title: 배열에 입력해 차례대로 출력하는 프로그램
Question:
username_0: 

Answers:
username_0: [ArrayTest.zip](https://github.com/username_0/EducationalMaterials/files/6271334/ArrayTest.zip) |
ESIPFed/science-on-schema.org | 797121815 | Title: variableMeasured: variables about other variables--
Question:
username_0: Suggestion: use nested schema:valueReference to specify variables that qualify other values, e.g. to assign units of measure, measurement method specific to a value, environmental context, sensor used...
example
```
{
"@type": "PropertyValue",
"name": "MeasuredTemperature",
"alternate name": "temperature",
"description": "observed temperature",
"propertyID": "http://purl.obolibrary.org/obo/PATO_0000146",
"qudt:dataType": "xsd:decimal",
"valueReference":
{
"@type": "PropertyValue",
"name": "TemperatureUnits",
"description": "Temperatures in either degrees Fahrenheit or Celsius. ",
"qudt:dataType": {
"qudt:Enumeration": {
"qudt:element": [
{"qudt:EnumeratedValue": {"qudt:symbol": "Fahrenheit"} },
{"qudt:EnumeratedValue": {"qudt:symbol": "Celsius"} }
]
}
}
}
``` |
vinitkumar/json2xml | 327601530 | Title: remove parameters from end tag
Question:
username_0: if a tag has parameter like below end tag also has the prameter and tag name and parameter is merged by underscore.
**json**
`'methodName version="1.0"' : 'XXXXXXXXXXXXXXXXXXXXXXX'`
**xml**
`<methodName_version_"1.0">XXXXXXXXXXXXXXXXXXXXXXX</methodName_version_1.0>
`
how can it be like this?
**xml**
`<methodName version="1.0">XXXXXXXXXXXXXXXXXXXXXXX</methodName>`
Answers:
username_1: Could you post a JSON that you are trying to convert to XML. It could help me debug this. Honestly, I never came across this issue before so I might have to look into it.
username_1: @username_0 It doesn't look like a json object but a dict, I had to clean it up and use json.dumps(dict_object) to get something like this:
```json
{
"methodCall": {
"methodName version='1.0'": "XXXXXXXXXXXXXXXXXXXXXXX",
"params": {
"param": [
{"name": "REGISTE_DATE", "value": "2018/5/28 0:01"},
{"name": "SEX", "value": 1},
{"name": "TEL1", "value": 244985344},
{"name": "TEL2", "value": 0},
{"name": "EMAIL", "value": "<EMAIL>"},
{"name": "POST_CD", "value": "969-6223"},
{"name": "ADDRESS", "value": "fukushimaken oonumagunaizumisatomachi asahiterairi"},
{"name": "NAME1", "value": "<NAME>"}
]
}
}
}
```
Also, I had to clean this by hand after doing json.dumps for this object.
`"methodName version=\\"1.0\\"": "XXXXXXXXXXXXXXXXXXXXXXX",`
username_0: @username_1 I checked that after executed json.dumps(dict_object), the json data can be set like this.
`req = requests.post(url, data=json_data)`
I don't have problem with end tag and parameter has been set correctly.
Thank you!
username_1: @username_0 Okay, if you think your issue has been resolved then please close the ticket.
Status: Issue closed
username_0: @username_1 Yes this issue has been fixed. thank you so much. |
d4l-data4life/covapp | 592752226 | Title: Internationalization
Question:
username_0: Hi, I can provide the [crowdin.com](crowdin.com) platform for internationalization of the app.
I already created an approved OpenSource Organization for the #WeVsVirus Hackathon here: https://wevsvirushack.crowdin.com/
I created a project for translation for you:
https://wevsvirushack.crowdin.com/covapp
You can integrate it easily into your repo so updates are provided automatically, till then I can update it via a PR. Just contact me via email for integration: <EMAIL>
Answers:
username_1: @username_0 I'd be willing on working to implement i18n as soon as there are translations available
username_0: What do you mean by that?
There is already an internationalisation file here: https://github.com/d4l-data4life/covapp/tree/master/src/global/i18n
username_1: If thats the case and its setup my offer is obsolete, otherwise happy to contribute by setting up everything needed to have a language selection
username_2: I started a [French translation](https://gist.github.com/username_2/a2a60f9ca461d47104e2c72f22deceef). Anyone can complete, awaiting me to continue.
@username_0 Would you accept a French translation, once done? (And maybe a revamp of the language selector.)
username_0: I am not with the maintainer of this repo.
But you can add your translations easily here: https://wevsvirushack.crowdin.com/covapp
username_3: L10n is good, Crowdin isn't.
Please don't use Crowdin, it is a lackluster tool in terms of ensuring quality, cumbersome to use, and is closed source software only-as-a-service that spies on users https://support.crowdin.com/cookies/.
I recommend using https://weblate.org/hosting/, which unlike Crowdin offers gratis hosting to all libre software projects, without requiring them to be non-commercial and contribute to their TM.
username_4: @username_0
As part of the latest [release 1.14.0](https://github.com/d4l-data4life/covapp/releases/tag/1.14.0), we've introduced a workflow that can be used by collaborators to include additional translations 🙂 Please be sure to check the updated [CUSTOMIZATION.md](https://github.com/d4l-data4life/covapp/blob/master/docs/CUSTOMIZATION.md#using-the-example-languages-and-contributing-a-new-language) document on how to add the translations you and the people that worked on them via the Crowdin service.
Feel free to close the current issue if they aren't any additional questions.
username_0: @username_4 If you want, you can add the Crowdin GitHub Extension that can automatically create a PR if a new language gets translated. This would open the translation workflow to non-programmers ;)
Just mail me (<EMAIL>) so I can give you access to Crowdin project.
For an example look at this PR: https://github.com/CovOpen/CovQuestions/pull/48
username_3: @username_0 Why would anyone want to use Crowdin, or subject users to that level of tracking and profiling?
Status: Issue closed
username_4: I'm closing this issue since there isn't any interest of integrating a service like Crowding and because there is already an option for contributors to add various translations by opening a pull request to this repository directly following the [customization documents](https://github.com/d4l-data4life/covapp/blob/master/docs/CUSTOMIZATION.md). |
nodejs/help | 243036810 | Title: How can I build or make a specific test
Question:
username_0: I'm trying to write a few test cases for the NAPI tests, how can I add build a specific test after I make a change to it , especially the c/cpp files in it?
Say I am going to make changes to the c files in https://github.com/nodejs/node/tree/master/test/addons-napi/test_typedarray
and I want to run only this test
Answers:
username_1: `make build-addons-napi && python tools/test.py addons-napi/test_typedarray`
username_0: Thanks @username_1
Status: Issue closed
|
kissgyorgy/certmaestro | 156097877 | Title: Letsencrypt backend
Question:
username_0: Maybe general ACME client? https://letsencrypt.org/
It has it's own client [Certbot](https://certbot.eff.org/) which is pretty good already.
Answers:
username_0: Now, there is a real use case for this: https://news.ycombinator.com/item?id=12305901 |
mynian/ConvertRatings | 215295372 | Title: Auction House tooltip error
Question:
username_0: 2x ConvertRatings\ConvertRatings-1.8.lua:142: Usage: GetItemInfo(itemID|"name"|"itemlink")
[C]: in function `GetItemInfo'
ConvertRatings\ConvertRatings-1.8.lua:142: in function <ConvertRatings\ConvertRatings.lua:114>
[C]: ?
...rfaceTradeSkillMaster\Private\TooltipLib.lua:85: in function <...rfaceTradeSkillMaster\Private\TooltipLib.lua:82>
[C]: ?
[C]: ?
...rfaceTradeSkillMaster\Private\TooltipLib.lua:95: in function `SetAuctionSellItem'
Auctionator\Auctionator-4.0.16.lua:1218: in function `Atr_GetSellItemInfo'
Auctionator\Auctionator-4.0.16.lua:3112: in function `Atr_SetDepositText'
Auctionator\Auctionator-4.0.16.lua:3072: in function `Atr_UpdateUI_SellPane'
Auctionator\Auctionator-4.0.16.lua:3009: in function `Atr_UpdateUI'
Auctionator\Auctionator-4.0.16.lua:2847: in function `Atr_Idle'
Auctionator\Auctionator-4.0.16.lua:2796: in function `Atr_OnUpdate'
[string "*:OnUpdate"]:1: in function <[string "*:OnUpdate"]:1>
Locals:
(*temporary) = nil
Answers:
username_1: i opened up the auction house, and did a bunch of searches for various items and got no errors.
It looks like you have another addon contributing to this error, I can't really tell what addon since the name got cut off in your post, but it looks like TradeSkillMaster or one of its plugins.
If you have that installed, disable it and see if the error persists and report back
username_1: Since I have not received any follow-up, I am going to assume that the error was caused by the additional addon and will be closing this issue.
Status: Issue closed
|
LoneGazebo/Community-Patch-DLL | 158487742 | Title: City panels not appearing on map.
Question:
username_0: Bug Report Template
Mod Version (i.e Date - (4/23b)):
6/03/16
1. Mod List (if using standard CPP set, leave blank):
Standard with EUI
2. Type of error (i.e. crash, interface bug, AI quirk):
Interface bug
4. Additional information:
The city panel that appears over the cities isn't appearing. I can't click on it to go into the city, nor can I use it to bombard barbarians. Seems to be only a UI problem, and only in the balance patch as the unmodded game still has the enhanced UI fine. I redownloaded the compatibility folder. And I had used the automatic installer at first. Though I installed without the EUI at first as I didn't realize they weren't bundled together. After installing the rest of the game worked, but the city banner doesn't work. Thank you for your assistance.
---------------------------
Supporting information:
Please note that you can attach .zip files to Issues by dragging-and-dropping them. If possible, zip up all supporting data and post that way.
1. Log files: Database.log and Lua.log needed
2. Minidump file (located in your Civ5.exe directory)
3. Screenshots (if needed)
Answers:
username_1: Reinstall everything using the autoinstaller, doing the EUI install version. Make sure EUI ends up in your DLC folder.
username_0: The reinstall seemed to fix it, at the very least the city panels appear now, but unfortunately it seems that the button to direct their ranged attack is still missing. It appeared when I first started, but it's ~70 turns later and now I can't bombard barbarians.
Thank you for your help.
username_2: Have you subscribed to CSD (City-State Diplomacy) via Steam perhaps? If so, you should unsubscribe and reinstall again.
Status: Issue closed
|
DonJayamanne/pythonVSCode | 212906317 | Title: Set default paths of packages like linters to selected interpreter
Question:
username_0: ## Environment data
VS Code version:
Python Extension version:
Python Version: 3.6
OS and version: OSX
## Actual behavior
When I change the workspace interpreter via "Select workspace interpreter" command, vscode runs python programs with the chosen interpreter, but doesn't run packages like pylint8 or autopep8 for the chosen interpreter. These are still installed for the default python interpreter of the host and used by the extension. This results in a undesired behaviour:
When I choose a python3.6 interpreter via "Select workspace interpreter" command and my default python interpreter is python2.7, the extension runs my python code with python 3.6 but uses pylint for python2.7. I will see errors which aren't errors. The linter just checks for the wrong python version.
## Expected behavior
When I change the workspace interpreter, I also want all python packages, e.g. pylint, autopep8, etc. to be installed in the folder of the chosen workspace interpreter. The python extension then uses the packages of chosen workspace interpreter.
To reach the expected behavior, I would expect that the "Select workspace interpreter" sets the configuration paths of all packages in settings.json to the bin folder of the chosen workspace interpreter.
## Benefits
All packages of the extension which we want to use are installed for the chosen interpreter. The extension then uses them from there. In this way I'm able to change the complete extension to work with correct packages for my current python interpreter with just one "Select workspace interpreter" command.
Answers:
username_1: Unfortunately not all developers prefer to re-install the packages all over again in the virtual environments. This is one of those issues where it isn't possible to come up with a perfect answer. Its upto the user to ensure they install the dependences in the right directory.
However now that you have raised this, I'll try to provide some UI (feedback) letting the user know that some of the packages are not installed in the current virtual environment.
E.g. this makes a big difference when a package such as Pylint isn't installed in the right directory (imports won't work. hence plenty of false postives in the linter errors).
Status: Issue closed
|
pythonspeed/filprofiler | 869327842 | Title: New reentrancy strategy
Question:
username_0: Current system is complex, and may be causing #149 in part.
Proposal:
1. Reentrancy checks happen in a new, custom Rust allocator wrapping existing allocators.
2. mmap() would still be called by jemalloc, so that still needs reentrancy prevention logic similar to current one.
3. Probably there are no calls to malloc() etc.. in current Rust code?
Answers:
username_0: The hope is:
* C code (or more broadly defined, the API emulation layer) doesn't have to know about reentrancy.
* We _only_ don't track allocations from Rust. Right now random other allocations become untracked in various scenarios.
* Existing invariants: We don't ever double count allocations (e.g. malloc() can call mmap()!).
* Existing invariants: No crashes/corruption due to reentrancy. |
google/gson | 315066013 | Title: Please make JsonObject not final
Question:
username_0: I want to be able to create derived classes of it, this is somewhat related to #1291.
Status: Issue closed
Answers:
username_1: This class is not designed for inheritance and wanting to add helper methods to it is not a sufficient enough use case to abandon `final`. Static methods are your friend here, or use a language like Kotlin where you can define extension methods. |
dependabot/feedback | 469052325 | Title: Auto-merge bypassing the reviews
Question:
username_0: Hello,
I'd like to propose the idea of a feature enabling dependabot to bypass the "Require pull request reviews before merging"
The only way to get dependabot to merge with this settings activated consumes a lot of human time accross 300 repositories full of JS dependencies.
Answers:
username_1: The solution we're currently proposing for this one is to have an "auto-approve" bot that marks Dependabot PRs as approved immediately. We built a GitHub action for it [here](https://github.com/marketplace/actions/auto-approve).
We're also working with the branch protection team to allow you to specify apps that are allowed to push to branches (the same way you can specify users that are). There's an issue tracking that [here](https://github.com/dependabot/feedback/issues/86).
username_0: Good to know you're on it :) Thanks
username_0: @username_1 is that possible that your approve "Yproximite" organization to join the beta for Github Actions please ? I need this github action :D
username_1: Sure thing - you *should* be on the beta now :octocat:
username_0: Thanks :). I'll close this issue since your Github Action should solve this ;)
Status: Issue closed
|
justtoconfirm/booking | 386083664 | Title: Setup Webpack
Question:
username_0: Setup Webpack 4 to allow the JavaScript code to be bundled. This must also allow ES6 syntax to be used, therefore, Babel should be considered.
A package.json file and gitignore file may also be needed during the setup process.
- [x] Setup the package.json file.
- [x] Create the .gitignore file to prevent the node_modules directory from being version controlled.
- [x] Setup Webpack 4.
- [x] Create initial JavaScript test file to confirm Webpack works as expected.<issue_closed>
Status: Issue closed |
turnkeylinux/tracker | 629674792 | Title: correct regex in /etc/fail2ban/filter.d/sshd.conf
Question:
username_0: An existing set of regex patterns in /etc/fail2ban/filter.d/sshd.conf is missing one to match the actual output of the ssh daemon installed in Turnkey 16.
To that file, to the 'mdre-ddos' variable, add the following:
^Did not receive identification string from <HOST>%(__on_port_opt)s$
Answers:
username_0: Now I suppose I should figure out how to make a pull request vs core??
username_1: Interesting, our fail2ban config is actually inherited from Debian! So it could be argued that it's actually an upstream bug?! Having said that, perhaps there's something I missed in the docs when I included it?!
Regardless, there is already both a [fail2ban-fix overlay](https://github.com/turnkeylinux/common/tree/master/overlays/turnkey.d/fail2ban-fix) and [fail2ban-fix conf script](https://github.com/turnkeylinux/common/blob/master/conf/turnkey.d/fail2ban-fixes). Both of these are applied to all appliances. The former is overlaid relative to `/` - i.e. a file in `common/overlays/turnkey.d/fail2ban-fix/etc/somefile` would end up as `/etc/somefile`. The conf script is run inside `/`. The common overlays are all done first (in alphanumeric order), then the common conf scripts (again in alphanumeric order). Hope that helps...
username_2: Any further news on this?
username_1: @username_2 - nope, but we should revisit it for v17.0 IMO. Once the Core & TKLDev rc is released, I'll aim to have a look (as such will self assign).
username_1: @username_0 - I was just looking into this for v17.0 and I note that the first entry of `mdre-ddos` is a line:
```
^Did not receive identification string from <HOST>
```
I have had a quick look at the regex used by fail2ban with the hope that I might be able to confirm (or not) that this regex meets your requirements. However, I can't find a quick and easy guide to how the fail2ban regex works...
Could you confirm (or not) that we still need this line that you suggest (please provide a little info too).
FWIW, the default v16.x fail2ban ssh conf includes:
```
^Did not receive identification string from <HOST>%(__suff)s$
```
which I note is closer, but still not the same as yours... |
adobe/react-spectrum | 711318027 | Title: Add tests for picker option of null/falsy
Question:
username_0: # 🙋 Feature Request
https://github.com/adobe/react-spectrum/pull/1015 was merged which adds support for picker options of null/falsy. We need to add tests to support this functionality.
## 🧢 Your Company/Team
RSP<issue_closed>
Status: Issue closed |
yiisoft/active-record | 377102596 | Title: AR beforeSave attributes
Question:
username_0: It would be nice to know, what attributes are going to be saved in beforeSave method. If you have some logic, which fires before saving particular attribute, that logic will fire even if you called save specifiying some other attributes. You may have this attribute locally changed, so checking `isAttributeChanged` is not an option. This will complement afterSave changedAttributes logic and as I saw, it won't be very hard to implement this.
### What steps will reproduce the problem?
Create AR with some attributes including `name` and `status`
Add some code in AR `beforeSave` method, which does something with `status` attribute
Change `status` and `name` attributes locally
Call `save(true, ['name'])`. (Do not include your attribute to save)
### What is the expected result?
You know, that status will not be saved and act accordingly
### What do you get instead?
You don't know, what attributes will be saved
### Additional info
| Q | A
| ---------------- | ---
| Yii version | 2.0.13
| PHP version | 7
| Operating system | any |
Codeer-Software/Friendly.Windows | 468978529 | Title: Cannot delete"Codder.Friendly.dll" and "Codeer.Friendly.Windows.dll" after attaching to the target process
Question:
username_0: Hello, your project is great, but our team is having a problem. We cannot remove dll files after attaching it to a data grid box program written in C #. It can only be deleted when the program is closed, can there be a way to stop the attachment without closing the target program, perhaps unloading the dll? Thank you!

Answers:
username_1: Thank you for using it! It's difficult to be able to delete files once loaded with .Net. It is not easy to unload. I'm sorry, but I can't fix this right now.
username_0: Thanks for your feedback, I understand and hope you can fix this issue later, thank you for creating a useful project.
Status: Issue closed
|
the1812/Bilibili-Evolved | 668376673 | Title: 评论区消失,相关视频的预览图消失
Question:
username_0: 关于哪一项功能
出现bug,关闭插件正常,打开插件又异常
问题描述
所有视频的评论区消失,相关视频预览图消失
脚本版本
正式版1.10.31
浏览器版本
最新版chrome
错误信息
看不太懂

附加截图

Answers:
username_1: 见 #770
Status: Issue closed
|
Edelweiss/hgv | 439483555 | Title: Leerzeichen in ddd-hybrid idnos P.Bodl. + O.Frange
Question:
username_0: Beispiel O.Frange
```
<idno type="ddb-filename">o.frange.276 + 277</idno>
<idno type="ddb-hybrid">o.frange;;276 + 277</idno>
```
Beispiel P.Bodl.
```
<idno type="ddb-filename">p.bodl.1.MS. Gr. class. c. 202 (P) b</idno>
<idno type="ddb-hybrid">p.bodl;1;MS. Gr. class. c. 202 (P) b</idno>
```
Answers:
username_0: Liste der betroffenen Datensätze
https://docs.google.com/spreadsheets/d/14N2qVKOOtqO16jb19H5O6WGAflkv-PPpmhTj1aPrr3o/edit?usp=sharing |
nanocurrency/nano-node | 821755706 | Title: Consider adding command line parameter which defines config root
Question:
username_0: <!--
---------------------------------------------------
HAVE A QUESTION? PLEASE JOIN OUR DISCORD SERVER
---------------------------------------------------
Only use GitHub issues for reporting problems and submitting proposals.
Questions should be asked on our Discord server, https://chat.nano.org,
which has channels for a wide range of topics, such as development and
support.
---------------------------------------------------
BUG BOUNTY REPORT INFORMATION
---------------------------------------------------
In the interest of further improving the security of the network, we have launched the Nano Bug Bounty Program.
WARNING! Don't disclose any information for the Nano bug.
Submit any suspected bugs for bounty consideration to <EMAIL>.
---------------------------------------------------
NORMAL BUG REPORT INFORMATION
---------------------------------------------------
If you are reporting a new issue, make sure that we do not have any duplicates
already open. You can ensure this by searching the issue list for this
repository. If there is a duplicate, please close your issue and add a comment
to the existing issue instead.
If you suspect your issue is a bug, please edit your issue description to
include the BUG REPORT INFORMATION shown below. If you fail to provide this
information within 7 days, we cannot debug your issue and will close it. We
will, however, reopen it if you later provide the information.
-->
**Description of bug:**
Not a bug - this is a feature request for node operators. I would like to store the node, rpc, etc. config files in a different directory root than where the ledger is stored. Currently `--data_path` specifies where the process should both look for config files and the ledger. When mounting volumes to a node in a production system, this isn't desirable because I have a different volume for my ledger than where I store my config.
This could either take the form of `--config_path` which defines a config root (`/etc/nano`) or you could have separate command line arguments for each config file, but I bet `--config_path` is sufficient for almost all use cases.
<!--
Does this issue reproduce with the latest release? if you don't use the latest version then please try our latest version.
Briefly describe the problem you are having in a few paragraphs.
-->
**Steps to reproduce the issue:**
N/A
**Describe the results you received:**
N/A
**Describe the results you expected:**
N/A
**Additional information you deem important (e.g. issue happens only occasionally):**
N/A
**Environment**:
N/A
<!--
- OS information
- (Linux) Kernel (e.g. `uname -a`):
- Node version
- (docker node) docker version
-->
**logs**
N/A
<!--
Can you please provide the Nano logs for further analysis.
How to find Nano logs:
https://github.com/nanocurrency/nano-node/wiki/Log-files
-->
Answers:
username_1: @username_0 If still interested in this, can you submit using the feature request form? https://github.com/nanocurrency/nano-node/issues/new?assignees=&labels=&template=feature-request.yml
Status: Issue closed
|
PowerShell/vscode-powershell | 870419613 | Title: Duplicate commands registered
Question:
username_0: Upon startup see these errors in the log :
```
[ms-vscode.powershell]: Command `workbench.action.positionPanelLeft` appears multiple times in the `commands` section.
[ms-vscode.powershell]: Command `workbench.action.positionPanelBottom` appears multiple times in the `commands` section.
```
The reason for this is because you define the commands here : https://github.com/PowerShell/vscode-powershell/blob/master/package.json#L285
using the command IDs `workbench.action.positionPanelLeft` and `workbench.action.positionPanelBottom`. But these are the command IDs used by VS Code : https://github.com/microsoft/vscode/blob/main/src/vs/workbench/browser/parts/panel/panelActions.ts#L100
so it sees that there's duplicate commands and throws the error (which admittedly isn't actually accurate in this case).
Given that it doesn't seem like you actually try to define this action in your extension currently these commands should be removed from your package.json since currently they aren't actually doing anything. (or given a different command ID and then just have that command call the workbench one if you still want this to show up in the contributions section of the gallery)
Answers:
username_1: I added that while knowing nothing about how VS code extensions work so I'm not too surprised I made a mistake. What's the correct way to do this? The purpose of my change was to add buttons for those built-in actions because people who are used to ISE are used to having buttons for moving the console around.
username_0: You can just make your own command and then register it which just calls the built-in command.
So you'd define `powershell.action.positionPanelLeft` and then in your extension activation call
```
vscode.commands.registerCommand(
'powershell.action.positionPanelLeft',
async () => { await vscode.commands.executeCommand('workbench.action.positionPanelLeft'); }),
```
username_2: @username_1 Do you want to fix this? That'd be awesome. It was on my to-do list but not something I was going to get to today. I can assign to you if you'd like 😁
username_1: @username_2 sure although I probably won't look at it today either.
Status: Issue closed
|
zsimic/TopCoderAnts | 151003208 | Title: UMD Research Study
Question:
username_0: Hi there,
We are researchers from the University of Maryland conducting a study about software code reuse. If you are interested in helping us in this study through a short interview about this project, please contact us on <EMAIL> for more information. You will be compensated for your time.
Thanks
Ahmed |
cardigann/cardigann | 199034107 | Title: Bug in version 1.9.4 Xthor not recognized by Sonarr
Question:
username_0: Hey,
Here is the error from Sonarr.
Test is OK in Cardigann.
```
[v2.0.0.4427] System.InvalidOperationException: Sequence contains no elements
at System.Linq.Enumerable.First[IndexerPageableRequest] (IEnumerable`1 source) [0x00000] in <filename unknown>:0
at NzbDrone.Core.Indexers.HttpIndexerBase`1[NzbDrone.Core.Indexers.Torznab.TorznabSettings].TestConnection () [0x00000] in <filename unknown>:0
17-1-5 20:05:05.4|Warn|NzbDroneErrorPipeline|Invalid request Validation failed:
-- Unable to connect to indexer, check the log for more details
-- Indexer does not support required search parameters
17-1-5 20:06:38.0|Warn|Torznab|Unable to connect to indexer
[v2.0.0.4427] System.InvalidOperationException: Sequence contains no elements
at System.Linq.Enumerable.First[IndexerPageableRequest] (IEnumerable`1 source) [0x00000] in <filename unknown>:0
at NzbDrone.Core.Indexers.HttpIndexerBase`1[NzbDrone.Core.Indexers.Torznab.TorznabSettings].TestConnection () [0x00000] in <filename unknown>:0
17-1-5 20:06:38.0|Warn|NzbDroneErrorPipeline|Invalid request Validation failed:
-- Unable to connect to indexer, check the log for more details
-- Indexer does not support required search parameters
``` |
novikovaam/landingPage | 774089577 | Title: Background size
Question:
username_0: Try to check this style
background: url(../imgPreview/about/background/01.png) 100% 100% no-repeat;
https://github.com/novikovaam/landingPage/blob/55028c55bcfb4c83b008b0e113db255969170069/cssPreview/styles.css#L24<issue_closed>
Status: Issue closed |
neos/flow-development-collection | 1169512233 | Title: Authentication fails with custom Account object implementation
Question:
username_0: ### Description
If you use an extended custom \Neos\Flow\Security\Account object for authentication a Doctrine exception occurs in \Neos\Party\Domain\Repository\PartyRepository::findOneHavingAccount. Once I cast my JwtAccount to an Account object, the code works as expected. In my case, the custom Account object is of type \RFY\JWT\Security\JwtAccount which is part of the https://github.com/rfyio/JWT package. This worked as expected in previous flow verions
### Steps to Reproduce
1. Create an extended custom Account class (or use the JWT Package) and use it for authentication in a provider/token -> will fail
2. Cast the JwtAccount object to an Account object and retry auth -> will work
Due to the lag of more profound knowledge, I used this method for casting
```
/**
* Class casting
*
* @param string|object $destination
* @param object $sourceObject
* @return object
*/
function cast($destination, $sourceObject)
{
if (is_string($destination)) {
$destination = new $destination();
}
$sourceReflection = new \ReflectionObject($sourceObject);
$destinationReflection = new \ReflectionObject($destination);
$sourceProperties = $sourceReflection->getProperties();
foreach ($sourceProperties as $sourceProperty) {
$sourceProperty->setAccessible(true);
$name = $sourceProperty->getName();
$value = $sourceProperty->getValue($sourceObject);
if ($destinationReflection->hasProperty($name)) {
$propDest = $destinationReflection->getProperty($name);
$propDest->setAccessible(true);
$propDest->setValue($destination,$value);
} else {
$destination->$name = $value;
}
}
return $destination;
}
```
#### Expected behavior
Authentication works, and no Doctrine exception will be thrown without casting the object
#### Actual behavior
A doctrine exception occurs, and authentication fails.
### Affected Versions
neos/flow 7.3.1 |
scanner-research/vgrid | 445779032 | Title: Vgrid can't display some videos
Question:
username_0: I put together a notebook visualizing bounding boxes on some of Intel's self-driving car data - notebook is [here](https://github.com/scanner-research/esperlight/blob/master/view_bboxes.ipynb) in esperlight. But for some reason, the videos won't load in Vgrid - whether they're on olimar or downloaded locally (and I've tried multiple http servers locally too, both Python and an NPM one).
This is what displays forever:
<img width="700" alt="Screen Shot 2019-05-19 at 12 29 15 AM" src="https://user-images.githubusercontent.com/4600866/57977746-29ea7a80-79cd-11e9-822b-f8024654d8c7.png">
I'm not sure why these videos aren't loading - nothing obvious shows up in the console.
Answers:
username_1: If you go into inspector, click on the video element for the video, and open the link it's loading in a new tab, does that show up?
Status: Issue closed
username_0: This was a problem w/ the videos and HTML5 on Chrome - fixed with a different encoding scheme. |
Anuken/Mindustry-Suggestions | 748721038 | Title: A really helpful feature
Question:
username_0: When the blocks break and you go in build mode they are lightly still visible (or something), it would be extremely helpful if there was an option to rebuild all destroyed blocks while building if there are any.
basically (rebuild destroyed blocks button)
This would help if a large portion of you base gets destroyed or a very complex machine and you know you have enough resources but it would literally be a giant time waste to fix manually especially without pause on multiplayer modes.
1. - [x] I have done a quick search in the list of suggestions to make sure this has not been suggested yet.
2. - [x] I have checked the [Trello](https://trello.com/b/aE2tcUwF/mindustry-trello) to make sure my suggestion isn't planned or implemented in a development version.
3. - [x] I am familiar with all the content already in the game or have glanced at the wiki to make sure my suggestion doesn't exist in the game yet.
4. - [x] I have read `README.md` to make sure my idea is not listed under the "A few things you shouldn't suggest" category.
(I can't I'm using blue stacks)
Answers:
username_1: Just make poly, or you want them to be more useless?
username_2: I would love this feature too.
I would equate this to the robots in Factorio fixing your walls or buildings when they are broken. Its a big time saver and something like that in this game would be great too.
To be fair, I also think that if you are killed then you should not be able to automatically rebuild, just like how to ghost items disappear when you are killed and working to build something.
username_3: There are polys already, they rebuild broken blocks
username_0: There are polys already, they rebuild broken blocks
i know but a giant (FIX ALL) that you can use so you're able to fix things and decide what needs fixing first etc.
not just a basic auto on some random blocks
username_4: I also agree that this feature would be great, when I play I spend a lot time rebuilding.
There are a lot of times when you have to rebuild and you may not have polys at the moment, you may also want to reconstruct one part urgently...
Polys are great to rebuild automatically as a maintenance type of thing but when you are under attack, they don't prioritize what I would prioritize and when they go down I loose a lot of time pausing to redo the whole thing as it was before. |
sighmon/mjml-rails | 426623588 | Title: followed all steps for heroku but still getting missing binary message.
Question:
username_0: I followed the Heroku instructions by adding the node buildpack and package.json but I'm still seeing a message about an unfound binary.
My package.json reads:
{
"name": "appname",
"version": "1.0.0",
"dependencies": {
"mjml": "^4.0.0"
}
}
and there is no error thrown in the node build, but I still see:
"Couldn't find the MJML binary.. have you run $ npm install mjml? "
when initialising the rails app. I have yet to write any mjml so I don't know whether or not the pacakge is working, and I don't have a lot of experience with npm. Do you have an advice for me?
Answers:
username_0: hmm.. even locally when I do execute `npm install mjml` I seem to get that same message.
username_1: @username_0 perhaps try the latest version in `package.json`:
```json
"dependencies": {
"mjml": "~4.3.1"
},
```
I don't have a lot of experience with npm either, but maybe try installing it globally with `npm install -g mjml` and then test that you can access mjml on the command line in your rails directory with `mjml --version`.
username_0: I tried both updating `package.json` and global install, and the outcome hasn't changed. `mjml --version` yields:
```
mjml-core: 4.4.0-beta.1
mjml-cli: 4.4.0-beta.1
```
I appreciate the help. I'll wait til I actually start using the library to see whether or not the message I'm receiving is actually an indication that it's not working, or just a bug in and of itself.
username_1: @username_0 Ah, you're on the beta - I wonder if `io.read.include?` works for a beta tag like that. https://github.com/username_1/mjml-rails/blob/master/lib/mjml.rb#L18
username_1: @username_0 I tried it on the command line... maybe you can try this too and see if it works for you:
```ruby
rails c
IO.popen("mjml --version") { |io| io.read.include?("mjml-core: 4.") }
=> true
```
To simulate it I used:
```ruby
rails c
"mjml-core: 4.4.0-beta.1".include?("mjml-core: 4.")
=> true
```
So it still seems as though your Ruby environment can't see `mjml` at all.
username_2: I have this warning on every deploy on Heroku, but the code actually works fine. I think it's something to do with the order the node stuff installs but I'm not sure, and the config changes I tried made no difference... I gave up worrying about it on the end.
username_1: @username_2 Does `4.6.0` allowing you to set the path to the binary help?
```ruby
# config/initializers/mjml.rb
Mjml.setup do |config|
config.mjml_binary = "/path/to/custom/mjml"
end
```
username_3: Facing this same problem.
username_1: @username_3 Do you have an example project you can point me to with the code you're running?
username_4: @username_1 I work with @username_3 and we've been trying to fix the issue for a week now. I've created another sample repo which we use as a base for all our projects, and I've added MJML to it. It's a Heroku-ready repository and it also faces the same issue.

Things we've tried:
1) **Set the MJML binary location manually** - Tried setting it to `Rails.root.to_a + "/node_modules/mjml/bin/mjml" but throws the following error:

2) **Ran `yarn global add mjml` during build process** - `rails-mjml` still doesn't recognize it.
3) **Tried different versions of MJML and mjml-rails**
Any help would be really appreciated.
username_1: @username_4 Have you added a heroku build pack for it at index 1?
username_3: @username_1 Yes, the `nodejs` buildpack is at index 1.
username_4: Same here. Node.js buildpack is at index 1.
username_1: @username_3 Did you try moving the `heroku/ruby` build pack right below the `heroku/nodejs` one?
username_4: @username_1 Yes I had tried doing the same with @username_3 but no avail.
username_1: @username_3 @username_4 When you `bash` into Heroku, is there any sign of `mjml` manually? Here's what I see:
```bash
$ heroku run bash -a newint
Running bash on ⬢ s... up, run.4106 (Standard-1X)
~ $ which mjml
/app/node_modules/.bin/mjml
```
username_5: We're having the same issue, getting the same errors. Tried most of the same things mentioned by @username_4 (1 and 3, was about to try 2). Currently trying 4.6.1 of the gem and npm package.
When I bashed into Heroku, I got:
```
$ heroku run bash -a xxxxxx
Running bash on ⬢ xxxxxx... up, run.5882 (Standard-1X)
~ $ which mjml
~ $ mjml
bash: mjml: command not found
```
username_1: @username_5 What do you see during a deployment for this section:
```bash
remote: -----> Building on the Heroku-20 stack
remote: -----> Using buildpacks:
remote: 1. heroku/nodejs
remote: 2. heroku/ruby
remote: -----> Node.js app detected
```
Are you running more than two buildpacks? Is nodejs definitely first in your deploy logs?
username_5: We got it working, by doing #2 from @username_4 list, i.e. adding this to package.json:
```
"scripts": {
"build": "npm install mjml --global"
},
``` |
jupyterlab/jupyterlab | 1155879541 | Title: Javascript Error: Failed to execute 'appendChild'. Occurs in JupyterLab, not in Classic Notebook.
Question:
username_0: <!-- Welcome! Thank you for contributing. These HTML comments will not render in the issue.
Before creating a new issue:
* Search for relevant issues
* Follow the issue reporting guidelines:
https://jupyterlab.readthedocs.io/en/latest/getting_started/issue.html
-->
## Description
<!--Describe the bug clearly and concisely. Include screenshots if possible-->
I have a user who exposed an bug in what looks like the JupyterLab Core Javascript. I really only run a JupyterHub instance and facilitate systems problems here. I've experienced it on our Linux boxes and my MacOS laptop.
`DOMException: Failed to execute 'appendChild' on 'Node': This node type does not support this method.` in the JavaScript console. Additionally the screen capture below.
<img width="854" alt="image" src="https://user-images.githubusercontent.com/2792834/156255403-9a68f52f-d84d-4d0c-9200-158585e57f87.png">
## Reproduce
<!--Describe step-by-step instructions to reproduce the behavior-->
Create a proper conda environment.
```yml
name: null
channels:
- conda-forge
- defaults
dependencies:
- anyio
- appnope
- argon2-cffi
- argon2-cffi-bindings
- asttokens
- attrs
- babel
- backcall
- backports
- backports.functools_lru_cache
- black
- bleach
- brotli
- brotli-bin
- brotlipy
- bzip2
- ca-certificates
- cctools
- cctools_osx-64
- certifi
- cffi
- charset-normalizer
- clang
- clang-12
- clang_osx-64
- clangxx
- click
- compiler-rt
- compiler-rt_osx-64
- cryptography
- cycler
[Truncated]
</details>
<details><summary>Browser Output</summary>
<!--See https://webmasters.stackexchange.com/a/77337 for how to access the JavaScript console-->
<pre>
Uncaught (in promise) DOMException: Failed to execute 'appendChild' on 'Node': This node type does not support this method.
at Object.w (http://localhost:8888/static/lab/jlab_core.0adf13f7678b3af0da97.js?v=0adf13f7678b3af0da97:2:894301)
at g.render (http://localhost:8888/static/lab/jlab_core.0adf13f7678b3af0da97.js?v=0adf13f7678b3af0da97:2:903223)
at g.renderModel (http://localhost:8888/static/lab/jlab_core.0adf13f7678b3af0da97.js?v=0adf13f7678b3af0da97:2:900951)
at j._setOutput (http://localhost:8888/static/lab/jlab_core.0adf13f7678b3af0da97.js?v=0adf13f7678b3af0da97:2:865641)
at j.onModelChanged (http://localhost:8888/static/lab/jlab_core.0adf13f7678b3af0da97.js?v=0adf13f7678b3af0da97:2:863857)
at m (http://localhost:8888/static/lab/jlab_core.0adf13f7678b3af0da97.js?v=0adf13f7678b3af0da97:2:1419176)
at Object.l [as emit] (http://localhost:8888/static/lab/jlab_core.0adf13f7678b3af0da97.js?v=0adf13f7678b3af0da97:2:1418836)
at e.emit (http://localhost:8888/static/lab/jlab_core.0adf13f7678b3af0da97.js?v=0adf13f7678b3af0da97:2:1417081)
at c._onListChanged (http://localhost:8888/static/lab/jlab_core.0adf13f7678b3af0da97.js?v=0adf13f7678b3af0da97:2:860074)
at m (http://localhost:8888/static/lab/jlab_core.0adf13f7678b3af0da97.js?v=0adf13f7678b3af0da97:2:1419176)
</pre>
</details>
Answers:
username_0: `jupyter lab --debug` output here: https://gist.github.com/username_0/8a1bfa61a78997023f384f1a27cba82f
username_1: Thanks for filing this issue! I was unable to reproduce this using the attached notebook because I was unable to install `gt4py` using `pip` on macOS Big Sur. Can you reference a different notebook that demonstrates the bug?
username_0: Not particularly. This has been the only notebook that I've seen demonstrate this. Indeed, the gt4py package is challenging. If I supplied a Dockerfile that demonstrated it, would that be useful?
username_0: Here is a basic Dockerfile that demonstrates the issue I believe. Tweaked the `environment.yml` file for Linux rather than MacOS.
```
FROM fedora:latest
EXPOSE 8888
RUN \
dnf -y makecache && \
dnf -y upgrade && \
dnf -y install gcc gcc-c++ gcc-gfortran autoconf automake cmake git
RUN \
curl -O https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh && \
/bin/sh ./Miniconda3-latest-Linux-x86_64.sh -p /opt/mc3 -b && \
ln -s /opt/mc3/etc/profile.d/conda.sh /etc/profile.d/conda.sh && \
. /opt/mc3/etc/profile.d/conda.sh && \
conda activate base && \
conda install -y -c conda-forge mamba
RUN \
curl -o /tmp/environment.yml 'https://gist.githubusercontent.com/username_0/aac9ebd419669a83ea60c4199509c70e/raw/af085ffa8e425a1db16323f3da500f9869e763c1/JupyterLab-gt4py-environment.yml'
RUN \
. /etc/profile.d/conda.sh && \
mamba env create -n gt4py -f /tmp/environment.yml
RUN \
/usr/bin/echo ". /opt/mc3/etc/profile.d/conda.sh; conda activate gt4py; jupyter lab --allow-root --ip=0.0.0.0 " > /usr/local/bin/jupyterlab.sh
RUN \
cd /tmp/ && \
curl -O 'https://raw.githubusercontent.com/GridTools/gt4py/master/examples/demo_burgers.ipynb'
CMD ["/bin/bash","/usr/local/bin/jupyterlab.sh"]
```
`docker build -t jlab-gt4py .`
`docker run -it -h jlab -p 8888:8888 jlab-gt4py`
The notebook file is stored in `/tmp`.
username_1: Thank you for sharing this Docker file! I've been able to run it locally and reproduce the error. I'm still not exactly sure where the "Javascript Error" is coming from, as this string (nor "Javascript" with a capital J and lowercase s) occurs in the JupyterLab codebase. I tried to look at the [gridtools4py code](https://github.com/eth-cscs/gridtools4py), but that link returns a 404.
I will accept this bug into the project by removing the "Needs Triage" tag. Thanks again for your help!
username_0: Here is the gt4py repo: https://github.com/GridTools/gt4py. Great. If I can help out with more information, let me know. I suppose I assumed that message comes from the Node interpreter, but unsure.
username_1: I've seen other examples on the Discourse forums of "Javascript Error", but no leads on this particular issue.
username_2: I can investigate if you could prepare a binder in which it is reproducible for that dockerfile (https://mybinder.readthedocs.io/en/latest/tutorials/dockerfile.html, https://github.com/binder-examples/minimal-dockerfile).
username_0: Sure, here it is: https://mybinder.org/v2/gh/username_0/jlab-javascript-gt4py.git/HEAD
username_2: It comes from a part of the codebase familiar to me. Your code produces the following traceback:
```
[0;31m---------------------------------------------------------------------------[0m
[0;31mValueError[0m Traceback (most recent call last)
Input [0;32mIn [6][0m, in [0;36m<cell line: 20>[0;34m()[0m
[1;32m 8[0m externals[38;5;241m=[39m{
[1;32m 9[0m [38;5;124m"[39m[38;5;124mabsolute_value[39m[38;5;124m"[39m: absolute_value,
[1;32m 10[0m [38;5;124m"[39m[38;5;124madvection_x[39m[38;5;124m"[39m: advection_x,
[0;32m (...)[0m
[1;32m 15[0m [38;5;124m"[39m[38;5;124mdiffusion[39m[38;5;124m"[39m: diffusion
[1;32m 16[0m }
[1;32m 18[0m start_time [38;5;241m=[39m time[38;5;241m.[39mtime()
[1;32m 20[0m [38;5;129;43m@gtscript[39;49m[38;5;241;43m.[39;49m[43mstencil[49m[43m([49m[43mbackend[49m[38;5;241;43m=[39;49m[43mbackend[49m[43m,[49m[43m [49m[43mexternals[49m[38;5;241;43m=[39;49m[43mexternals[49m[43m,[49m[43m [49m[43mrebuild[49m[38;5;241;43m=[39;49m[43mrebuild[49m[43m,[49m[43m [49m[38;5;241;43m*[39;49m[38;5;241;43m*[39;49m[43mbackend_opts[49m[43m)[49m
[0;32m---> 21[0m [38;5;28;43;01mdef[39;49;00m[43m [49m[38;5;21;43mrk_stage[39;49m[43m([49m
[1;32m 22[0m [43m [49m[43min_u_now[49m[43m:[49m[43m [49m[43mgtscript[49m[38;5;241;43m.[39;49m[43mField[49m[43m[[49m[43mdtype[49m[43m][49m[43m,[49m
[1;32m 23[0m [43m [49m[43min_v_now[49m[43m:[49m[43m [49m[43mgtscript[49m[38;5;241;43m.[39;49m[43mField[49m[43m[[49m[43mdtype[49m[43m][49m[43m,[49m
[1;32m 24[0m [43m [49m[43min_u_tmp[49m[43m:[49m[43m [49m[43mgtscript[49m[38;5;241;43m.[39;49m[43mField[49m[43m[[49m[43mdtype[49m[43m][49m[43m,[49m
[1;32m 25[0m [43m [49m[43min_v_tmp[49m[43m:[49m[43m [49m[43mgtscript[49m[38;5;241;43m.[39;49m[43mField[49m[43m[[49m[43mdtype[49m[43m][49m[43m,[49m
[1;32m 26[0m [43m [49m[43mout_u[49m[43m:[49m[43m [49m[43mgtscript[49m[38;5;241;43m.[39;49m[43mField[49m[43m[[49m[43mdtype[49m[43m][49m[43m,[49m
[1;32m 27[0m [43m [49m[43mout_v[49m[43m:[49m[43m [49m[43mgtscript[49m[38;5;241;43m.[39;49m[43mField[49m[43m[[49m[43mdtype[49m[43m][49m[43m,[49m
[1;32m 28[0m [43m [49m[38;5;241;43m*[39;49m[43m,[49m
[1;32m 29[0m [43m [49m[43mdt[49m[43m:[49m[43m [49m[38;5;28;43mfloat[39;49m[43m,[49m
[1;32m 30[0m [43m [49m[43mdx[49m[43m:[49m[43m [49m[38;5;28;43mfloat[39;49m[43m,[49m
[1;32m 31[0m [43m [49m[43mdy[49m[43m:[49m[43m [49m[38;5;28;43mfloat[39;49m[43m,[49m
[1;32m 32[0m [43m [49m[43mmu[49m[43m:[49m[43m [49m[38;5;28;43mfloat[39;49m
[1;32m 33[0m [43m)[49m[43m:[49m
[1;32m 34[0m [43m [49m[38;5;28;43;01mwith[39;49;00m[43m [49m[43mcomputation[49m[43m([49m[43mPARALLEL[49m[43m)[49m[43m,[49m[43m [49m[43minterval[49m[43m([49m[38;5;241;43m.[39;49m[38;5;241;43m.[39;49m[38;5;241;43m.[39;49m[43m)[49m[43m:[49m
[1;32m 35[0m [43m [49m[43madv_u[49m[43m,[49m[43m [49m[43madv_v[49m[43m [49m[38;5;241;43m=[39;49m[43m [49m[43madvection[49m[43m([49m[43mdx[49m[38;5;241;43m=[39;49m[43mdx[49m[43m,[49m[43m [49m[43mdy[49m[38;5;241;43m=[39;49m[43mdy[49m[43m,[49m[43m [49m[43mu[49m[38;5;241;43m=[39;49m[43min_u_tmp[49m[43m,[49m[43m [49m[43mv[49m[38;5;241;43m=[39;49m[43min_v_tmp[49m[43m)[49m
File [0;32m/opt/mc3/envs/gt4py/lib/python3.9/site-packages/gt4py/gtscript.py:276[0m, in [0;36mstencil.<locals>._decorator[0;34m(definition_func)[0m
[1;32m 273[0m definition_func [38;5;241m=[39m definition_func[38;5;241m.[39m[38;5;21m__call__[39m
[1;32m 275[0m original_annotations [38;5;241m=[39m _set_arg_dtypes(definition_func, dtypes [38;5;129;01mor[39;00m {})
[0;32m--> 276[0m out [38;5;241m=[39m [43mgt_loader[49m[38;5;241;43m.[39;49m[43mgtscript_loader[49m[43m([49m
[1;32m 277[0m [43m [49m[43mdefinition_func[49m[43m,[49m
[1;32m 278[0m [43m [49m[43mbackend[49m[38;5;241;43m=[39;49m[43mbackend[49m[43m,[49m
[1;32m 279[0m [43m [49m[43mbuild_options[49m[38;5;241;43m=[39;49m[43mbuild_options[49m[43m,[49m
[1;32m 280[0m [43m [49m[43mexternals[49m[38;5;241;43m=[39;49m[43mexternals[49m[43m [49m[38;5;129;43;01mor[39;49;00m[43m [49m[43m{[49m[43m}[49m[43m,[49m
[1;32m 281[0m [43m[49m[43m)[49m
[1;32m 282[0m [38;5;28msetattr[39m(definition_func, [38;5;124m"[39m[38;5;124m__annotations__[39m[38;5;124m"[39m, original_annotations)
[1;32m 283[0m [38;5;28;01mreturn[39;00m out
File [0;32m/opt/mc3/envs/gt4py/lib/python3.9/site-packages/gt4py/loader.py:72[0m, in [0;36mgtscript_loader[0;34m(definition_func, backend, build_options, externals)[0m
[1;32m 70[0m [38;5;28;01mif[39;00m [38;5;129;01mnot[39;00m build_options[38;5;241m.[39mname:
[1;32m 71[0m build_options[38;5;241m.[39mname [38;5;241m=[39m [38;5;124mf[39m[38;5;124m"[39m[38;5;132;01m{[39;00mdefinition_func[38;5;241m.[39m[38;5;18m__name__[39m[38;5;132;01m}[39;00m[38;5;124m"[39m
[0;32m---> 72[0m stencil_class [38;5;241m=[39m [43mload_stencil[49m[43m([49m[38;5;124;43m"[39;49m[38;5;124;43mgtscript[39;49m[38;5;124;43m"[39;49m[43m,[49m[43m [49m[43mbackend[49m[43m,[49m[43m [49m[43mdefinition_func[49m[43m,[49m[43m [49m[43mexternals[49m[43m,[49m[43m [49m[43mbuild_options[49m[43m)[49m
[1;32m 74[0m [38;5;28;01mreturn[39;00m stencil_class()
File [0;32m/opt/mc3/envs/gt4py/lib/python3.9/site-packages/gt4py/loader.py:48[0m, in [0;36mload_stencil[0;34m(frontend_name, backend_name, definition_func, externals, build_options)[0m
[1;32m 46[0m backend_cls [38;5;241m=[39m gt_backend[38;5;241m.[39mfrom_name(backend_name)
[1;32m 47[0m [38;5;28;01mif[39;00m backend_cls [38;5;129;01mis[39;00m [38;5;28;01mNone[39;00m:
[0;32m---> 48[0m [38;5;28;01mraise[39;00m [38;5;167;01mValueError[39;00m([38;5;124m"[39m[38;5;124mUnknown backend name ([39m[38;5;132;01m{name}[39;00m[38;5;124m)[39m[38;5;124m"[39m[38;5;241m.[39mformat(name[38;5;241m=[39mbackend_name))
[1;32m 50[0m frontend [38;5;241m=[39m gt_frontend[38;5;241m.[39mfrom_name(frontend_name)
[1;32m 51[0m [38;5;28;01mif[39;00m frontend [38;5;129;01mis[39;00m [38;5;28;01mNone[39;00m:
[0;31mValueError[0m: Unknown backend name (numpy)
```
And the rendering logic modified in #11272 fails on:
https://github.com/jupyterlab/jupyterlab/blob/b8df068b2eb694cb93ec281526e6e131031f7fcd/packages/rendermime/src/renderers.ts#L646
From a cursory glance, the problem is in:
https://github.com/jupyterlab/jupyterlab/blob/b8df068b2eb694cb93ec281526e6e131031f7fcd/packages/rendermime/src/renderers.ts#L635-L636
Namely, `Node.TEXT_NODE` is undefined (instead of `3`). There should be no reason for it to be undefined: the browser support is all green on https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeType.
Instead what happens, is the `Node` gets overridden by `Node` from `SDFGElements` from `spcl` `dace/webclient`. It looks like a third-party javascript code is injected into the page shadowing the native web objects. I see that your environment contains `dace` dependency - it appears that they are leaking their objects which is neither safe nor compatible with other code, here:
https://github.com/spcl/dace-webclient/blob/01c5cc42c61f5d9aaf00c261284f6a12108b05fd/renderer_elements.js#L247
username_0: Okay. Thanks. I'll see if I can open an issue there as well and see if something can be done. This all makes sense as this is the only time I've seen an error of this sort in Jupyter Lab.
username_2: Removing `dace` should solve the problem. You may want to report it over on https://github.com/spcl/dace (the least they could do would be to rename the `Node` class so that it does not collide with the built-in [`Node` from DOM](https://developer.mozilla.org/en-US/docs/Web/API/Node), but ideally their objects should not be added to the global namespace at all.
We could possibly hard-code the value to `3` to be more resilient to violations like this (pull request welcome), but once the [fundamental DOM types](https://developer.mozilla.org/en-US/docs/Web/API/Document_Object_Model/Introduction#fundamental_data_types) (like Element, Node, Document, etc) get overridden no web application can be expected to work correctly.
username_3: Thanks for narrowing it down to our project! I'm not sure which version is used here, since we now try to reduce global namespace cluttering to a minimum (we only export two specifically-named classes now).
In any case, it would be good for us to know: what is the recommended way to export classes to use for custom `_repr_html_` outputs (that is, without using %magic)?
username_0: I think we can close this out as updating to the latest dace-webclient solves the issue.
Status: Issue closed
username_4: Thanks! |
friends-of-presta/fop_console | 1027793416 | Title: add a php-cs-fixer rule that adds a banner to php files.
Question:
username_0: There is a rule to add a banner.
It works well.
but the .php_cs.dist file need some changes to support it.
I can do it later, or someone before, no matter.
Answers:
username_1: I never succeeded with the $config = new PrestaShop\CodingStandards\CsFixer\Config();
With some things like that works well.
```
<?php
declare(strict_types=1);
$finder = PhpCsFixer\Finder::create()
->in(__DIR__)
->exclude('vendor')
->notPath('resources')
;
$config = new PhpCsFixer\Config();
$config->setRiskyAllowed(true);
return $config->setRules([
'@Symfony' => true,
'header_comment' => [
'comment_type' => 'PHPDoc',
'header' => file_get_contents(__DIR__.'/licence-header.txt'),
'location' => 'after_open',
'separate' => 'bottom'
],
'concat_space' => [
'spacing' => 'one',
],
'cast_spaces' => [
'space' => 'single',
],
'error_suppression' => [
'mute_deprecation_error' => false,
'noise_remaining_usages' => false,
'noise_remaining_usages_exclude' => [],
],
'function_to_constant' => false,
'no_alias_functions' => false,
'non_printable_character' => false,
'phpdoc_summary' => false,
'phpdoc_align' => [
'align' => 'left',
],
'protected_to_private' => false,
'psr4' => false,
'self_accessor' => false,
'yoda_style' => null,
'non_printable_character' => true,
'no_superfluous_phpdoc_tags' => false,
])
->setFinder($finder)
;
```
username_1: https://github.com/friends-of-presta/fop_console/compare/dev...username_1:header-stamp?expand=1
.php-cs-fixer.dist.php is for my own test with csfixer 3 i can remove it |
quasarframework/quasar | 473614179 | Title: Passive event listeners in touch-hold
Question:
username_0: The touch-hold directives uses non-passive event listeners, and I know it's because there is a `stopAndPrevent(evt)` involved at some point.
But I made the test to turn them passive, and honnestly it seems to work perfectly fine in my use case (I just call a dialog when an item is pressed for a while). What is the reason behind using active listeners? Could we consider leaving them passive when active is not required? Thanks
Answers:
username_1: The only listener that would allow using passive listeners would be `touchstart` in `v-touch-hold`.
I don't think it would bring any speed improvement.
All other listeners may arrive in the `stopAndPrevent` branch, so they must not be passive.
username_0: I will test tonight to make only this one passive and let you know if it's better. Thank you
username_0: A passive touchstart doesn't help indeed.
I cannot consider using the directive with active listeners, scrolling is too laggish.
Could you please enlighten me on what could go wrong if I make the listeners passive? In my tests I can't find an issue. Thanks
username_1: I'll do some tests.
username_1: Please make a short test for me - add "quasar": "username_1/quasar#quasar-v1.0.5-test.10-gitpkg", in your application's package.json under "dependencies".
Do a yarn && quasar dev and tell me if you can still reproduce the problems.
username_0: Sorry, been pretty busy on my app. I was going to ask you how to install your code, you anticipated my question, thanks
username_0: It works like a charm, congrats and thank you very much.
username_1: Good to hear. I think it will land in the next official release.
username_0: Awesome!
username_1: This is now implemented starting with v1.1.5
Status: Issue closed
|
markusenglund/react-switch | 377026383 | Title: Colors control
Question:
username_0: Hi,
First of all, thanks for this great package. Really well implemented, though I would like more control on colouring.
These said, I want to propose a feature request. I'd like to be able to change colors when the button is disabled, but more important, to override the
current color when I want to display an error color, something like the example below.
<img width="438" alt="screen shot 2018-11-03 at 07 32 39" src="https://user-images.githubusercontent.com/6162068/47948517-55c77680-df3b-11e8-8288-c3a2b6549f1a.png">
This is how i use it:
```
switchId = "#{w._id}-#{section[0]}"
<Switch
checked = {@state.checked?[switchId]}
onChange = {(checked, e, id) => @onSwitchChange(checked, section[0], w._id, id)}
disabled = {@state.disabled?[switchId]}
uncheckedIcon = {false}
checkedIcon = {false}
onColor = "#D0E2FF"
offColor = {Colors.appBg}
onHandleColor = {Colors.primaryColor}
boxShadow = "0px 1px 5px rgba(0, 0, 0, 0.6)"
activeBoxShadow = "0px 0px 5px 5px #D0E2FF"
handleDiameter = {24}
height = {16}
width = {40}
id = {switchId}
/>
```
Maybe you cand add a fourth state: `hasError` and ability to set the colors on error state
I would like to have something like
<Switch
...
disabled = {true/false}
disabledHandleColor = 'color'
disabledBodyColor = 'color' # not sure about 'body', but you've got the point
hasError = {true/false}
errorHandleColor = 'color'
errorBodyColor = 'color'
/>
Waiting for your feedback.
Thanks!
Answers:
username_1: Hi, sorry for late response.
If you want to have different colors under different circumstances, that can be achieved fairly easily right now with something like this:
Status: Issue closed
username_1: Hi, sorry for the late response.
Putting on a different color when you have some specific state (like disabled===true) can be achieved currently by doing something like this:
```
<Switch
onColor={this.state.disabled ? "#ff0000" : "#123456"}
offColor= {this.state.disabled ? "#eeeeee" : "#333333"}
/>
```
The only problem is that using the `disabled`-prop changes the opacity of the switch. Presumably you don't want this. You can fix that with an ugly hack by giving the switch a className and then styling it like this:
```css
.my-switch {
opacity: 1 !important;
}
```
Here's an example: https://codesandbox.io/s/k99q1kn52o
username_1: Hi,
First of all, thanks for this great package. Really well implemented, though I would like more control on colouring.
These said, I want to propose a feature request. I'd like to be able to change colors when the button is disabled, but more important, to override the current color when I want to display an error, something like the example below.
<img width="438" alt="screen shot 2018-11-03 at 07 32 39" src="https://user-images.githubusercontent.com/6162068/47948517-55c77680-df3b-11e8-8288-c3a2b6549f1a.png">
This is how i use it:
```
switchId = "#{w._id}-#{section[0]}"
<Switch
checked = {@state.checked?[switchId]}
onChange = {(checked, e, id) => @onSwitchChange(checked, section[0], w._id, id)}
disabled = {@state.disabled?[switchId]}
uncheckedIcon = {false}
checkedIcon = {false}
onColor = "#D0E2FF"
offColor = {Colors.appBg}
onHandleColor = {Colors.primaryColor}
boxShadow = "0px 1px 5px rgba(0, 0, 0, 0.6)"
activeBoxShadow = "0px 0px 5px 5px #D0E2FF"
handleDiameter = {24}
height = {16}
width = {40}
id = {switchId}
/>
```
Maybe you cand add a fourth state: `hasError` and ability to set the colors on error state
I would like to have something like
<Switch
...
disabled = {true/false}
disabledHandleColor = 'color'
disabledBodyColor = 'color' # not sure about 'body', but you've got the point
hasError = {true/false}
errorHandleColor = 'color'
errorBodyColor = 'color'
/>
Waiting for your feedback.
Thanks! |
espressif/esp-iot-solution | 394203340 | Title: Using LittlevGL with an LCD display that doesn't have a touch screen driver
Question:
username_0: ## Environment
- Development Kit: ESP32-Wrover-Kit
- Kit version (for WroverKit/PicoKit/DevKitC): v3
- Module or chip used: ESP32-WROVER
- IDF version (run ``git describe --tags`` to find it):
// v3.1.1-68-g4070d09
- Build System: Make
- Compiler version (run ``xtensa-esp32-elf-gcc --version`` to find it):
// 1.22.0-80-g6c4433a
- Operating System: Linux
- Power Supply: external 5V
## Problem Description
An ESP-WROVER-KIT V3 has an LCD display with an ILI9341 screen driver but it has no touch screen driver. If the LittlevGL library is used, it would therefore make sense to turn off the menuconfig option `IoT Solution settings > IoT Components Management > HMI Components > LVGL settings > LittlevGL Touch Screen Enable`. However, if this option is turned off, there is the following compile error:
```
/home/brian/src/esp-idf/esp-iot-solution/examples/hmi/lvgl_example/build/lvgl_gui/liblvgl_gui.a(lvgl.o):(.literal.lvgl_init+0x10): undefined reference to `lvgl_indev_init'
/home/brian/src/esp-idf/esp-iot-solution/examples/hmi/lvgl_example/build/lvgl_gui/liblvgl_gui.a(lvgl.o): In function `lvgl_init':
/home/brian/src/esp-idf/esp-iot-solution/components/hmi/lvgl_gui/lvgl.c:52: undefined reference to `lvgl_indev_init'
collect2: error: ld returned 1 exit status
/home/brian/src/esp-idf/esp-iot-solution/submodule/esp-idf//make/project.mk:406: recipe for target '/home/brian/src/esp-idf/esp-iot-solution/examples/hmi/lvgl_example/build/lvgl_example.elf' failed
make: *** [/home/brian/src/esp-idf/esp-iot-solution/examples/hmi/lvgl_example/build/lvgl_example.elf] Error 1
```
The compile error occurs because [this](https://github.com/espressif/esp-iot-solution/blob/master/components/hmi/lvgl_gui/lvgl.c#L58) line of code is attempting to call the non-existant `lvgl_indev_init` function:
```c
lv_indev_drv_t indevdrv = lvgl_indev_init(); /* Initialize your indev */
```
Would it not be better to change this line of code to the following:
```c
#ifdef CONFIG_LVGL_DRIVER_TOUCH_SCREEN_ENABLE
lv_indev_drv_t indevdrv = lvgl_indev_init(); /* Initialize your indev */
#endif
```
[This](https://github.com/espressif/esp-iot-solution/blob/master/components/hmi/lvgl_gui/lvgl.c#L70) line of code:
```c
lvgl_calibrate_mouse(indevdrv, false);
```
would also need to be changed to:
```c
#ifdef CONFIG_LVGL_DRIVER_TOUCH_SCREEN_ENABLE
lvgl_calibrate_mouse(indevdrv, false);
#endif
```
Answers:
username_1: OK, we‘ll fix this.
username_0: That was fast! Thank you for fixing this with 55a9941739fa1adbea1c36e7d12282f365b36086. I just gave it a try and it works.
Status: Issue closed
|
alibaba/nacos | 883580967 | Title: 从Nacos 1.3.2升级到Nacos 2.0.1,持续打印`upgrade check result false`
Question:
username_0: 3个节点从Nacos 1.3.2升级到Nacos 2.0.1,按照升级文档操作后,3个节点都持续打印`upgrade check result false`。
定位到完成Check工作的类是`com.alibaba.nacos.naming.core.v2.upgrade.UpgradeJudgement`类,改造了`checkServiceAndInstanceNumber`方法打印Check工作的现场信息。
改造后`checkServiceAndInstanceNumber`方法如下:
```
private boolean checkServiceAndInstanceNumber() {
boolean result = serviceManager.getServiceCount() == MetricsMonitor.getDomCountMonitor().get();
result &= serviceManager.getInstanceCount() == MetricsMonitor.getIpCountMonitor().get();
Loggers.SRV_LOG.error("TAG: ServiceCount-{}-{}, InstanceCount-{}-{}", serviceManager.getServiceCount(),
MetricsMonitor.getDomCountMonitor().get(), serviceManager.getInstanceCount(),
MetricsMonitor.getIpCountMonitor().get());
return result;
}
```
基于改造后的JAR包运行后,发现日志如下:
```
2021-05-10 14:33:50,785 ERROR TAG: ServiceCount-0-0, InstanceCount-0-0
2021-05-10 14:33:55,775 ERROR TAG: ServiceCount-38-0, InstanceCount-251-251
2021-05-10 14:34:00,774 ERROR TAG: ServiceCount-38-38, InstanceCount-251-251
2021-05-10 14:34:05,774 ERROR TAG: ServiceCount-38-38, InstanceCount-251-251
2021-05-10 14:34:10,774 ERROR TAG: ServiceCount-38-38, InstanceCount-251-251
2021-05-10 14:34:15,774 ERROR TAG: ServiceCount-38-38, InstanceCount-251-251
2021-05-10 14:34:20,776 ERROR TAG: ServiceCount-38-38, InstanceCount-251-251
2021-05-10 14:34:25,774 ERROR TAG: ServiceCount-38-38, InstanceCount-251-219
2021-05-10 14:34:30,776 ERROR TAG: ServiceCount-38-38, InstanceCount-251-182
2021-05-10 14:34:35,774 ERROR TAG: ServiceCount-38-38, InstanceCount-251-182
2021-05-10 14:34:40,774 ERROR TAG: ServiceCount-38-38, InstanceCount-251-182
2021-05-10 14:34:45,774 ERROR TAG: ServiceCount-38-38, InstanceCount-251-182
2021-05-10 14:34:50,774 ERROR TAG: ServiceCount-38-38, InstanceCount-251-182
2021-05-10 14:34:55,774 ERROR TAG: ServiceCount-38-38, InstanceCount-251-214
2021-05-10 14:35:00,774 ERROR TAG: ServiceCount-38-38, InstanceCount-251-214
2021-05-10 14:35:05,774 ERROR TAG: ServiceCount-38-38, InstanceCount-251-214
```
也就是说通不过Check的原因是`serviceManager.getInstanceCount() == MetricsMonitor.getIpCountMonitor().get()`持续返回false.
<br/>
<br/>
**问题1**:请问如何解决以上问题?
**问题2**:另外,还有1个困惑:假如当前升级成功+关闭双写后,下次重启一个节点是否仍然会做以上检查,如果彼时检查通不过,会不会产生数据一致性问题,而不能正常工作?
Answers:
username_1: 1. 由于实例数量无法达到一致,所以无法升级,您可以看一下naming-event,是哪些实例在变化
2. 关闭双写后,关闭双写的标记会被持久化到SwitchDomain里,该内容会通过raft协议持久化,重启后会在启动时读取raft持久化的数据,自动关闭双写,关闭双写的时候会清理掉旧版本的数据内容,只保留新版本的数据内容。应该能够正常工作。
Status: Issue closed
username_1: refer to #5718
username_2: @username_1 因为是生产环境的升级,会有一些服务一直在注册,这时候是不是永远不能一致?
username_0: 看了naming-event,是有一些实例在不断变化,这个一直变化难道是不正常的吗?我看服务一直在正常提供的 |
reruin/sharelist | 1067858854 | Title: 支持宝塔内的虚拟主机安装
Question:
username_0: ### 需求描述 / Description of the feature
希望支持宝塔内的虚拟主机安装,对于linux小白能更好的使用
### 实现思路 / Suggested solution
_No response_
### 附件 / Additional context
_No response_
Answers:
username_1: `wget`二进制文件
`tar -xzvf`二进制文件
然后宝塔虚拟主机设置反向代理指向127.0.0.1:33001
Status: Issue closed
|
sigp/lighthouse | 554770834 | Title: Keypair file does not exist
Question:
username_0: ## Description
`beacon validator -d {non-standard directory location}` yells about not being able to find the keypair file:
```bash
ERRO Failed to load a validator directory path: /media/Ethereum/lighthouse/beacon, error: Unable to get voting keypair: Keypair file does not exist: "/media/Ethereum/lighthouse/beacon/voting_keypair"
ERRO Failed to load a validator directory path: /media/Ethereum/lighthouse/validators, error: Unable to get voting keypair: Keypair file does not exist: "/media/Ethereum/lighthouse/validators/voting_keypair"
```
## Present Behaviour
I moved my directory to a non-standard directory, and deleted my `beacon/` folder (as a result of the issue I mentioned in #829), and this error pops up. I solved it by copying the `voting_keypair` file from `lighthouse/validator/{raw-public-key}/voting_keypair` to the locations mentioned in errors.
## Expected Behaviour
Deleting the `beacon/` folder should not have any affect in how the 'validator/` works. Also, should not have to copy any files.
## Steps to resolve
Have lighthouse only recognize keys from `lighthouse/validator/{raw-public-key}/`
Answers:
username_1: I'm going to close this one since it didn't go anywhere and we've refactored key management since. Sorry we didn't help you on this one @username_0!
Status: Issue closed
|
sul-dlss/exhibits | 707743911 | Title: Feature request: ability to add SDR metadata-only items to an exhibit
Question:
username_0: **Use Case**
The event coordinator (<NAME>) for Stanford SITES (Stanford Institute for Theoretical Economics) reached out to DLSS in 2019/20 to discuss full text processing and SDR preservation for the born digital papers and metadata for presentations given at their annual SITES conference. They also needed to migrate their website dedicated to discovery of information
about the annual SITES conferences alongside the papers presented there. They wanted more robust discovery for the papers (and more context) than SearchWorks affords, so they decided to investigate using Spotlight for this purpose.
Sharyn will start building a Spotlight exhibit in Sept 2020. There is one challenge she has in doing so. Of the 2,412 papers presented at the conference since 1989, 1,160 of these papers (https://argo.stanford.edu/catalogf%5Bnonhydrus_apo_title_ssim%5D%5B%5D=SITE+Archive+-+citation) have no digital version and exist in the SDR as metadata only. Sharyn would like to be able to add these metadata only items to her exhibit, so that they can be searchable and discoverable in the exhibit, in the same way that SDR items with files can be discovered (https://argo.stanford.edu/catalog?f%5Bnonhydrus_apo_title_ssim%5D%5B%5D=SITE+Archive+-+world). Browse categories will be created for all items added to the exhibit. Right now the plan is to create browse categories by year, and also by theme/topic.
All PDFs currently in the SDR are full-text search enabled and Sharyn is very pleased to have the search across feature in this exhibit. New content will be added to the SDR annually after each conference, and going forward all papers will be in digital format, processed for full text search by DPG.
As a workaround for the 1,160 SDR items that are metadata only, Sharyn will provide lists of PURLs pointing to metadata only items in the exhibit, most likely in a list on feature pages. One feature page will be created for each annual conference. Ideally, Sharyn would like to be able to add these metadata only items to her exhibit.
Answers:
username_1: @username_0 I know this isn't the biggest concern of this use case, but I wanted to note that the proposed [browse grouping feature](https://github.com/projectblacklight/spotlight/issues/2562) seems like it would be useful for this exhibit. One group could be "Year" and would help the user interested in browsing by conference year filter out the theme/topic-related browse categories. Depending on how many there are, other groups could be the most prominent themes/topics.
username_0: @username_1 I am still learning about this content (I don't train the creator until this Friday), but Sharyn mentioned that the themes cross year boundaries, too. I'll clarify here on this ticket if it makes sense to do so.
username_1: @username_0 I don't think that matters. If the curator does in fact "... create browse categories by year, and also by theme/topic." then the browse categories that are year-based would be added to the "Year" browse grouping, and the browse categories that are created based on theme/topic could go into a "Theme" group.
Or, if there are a lot of theme/topic based browse categories, and some of the themes are somewhat related (e.g., three categories that fit into "Macroeconomics", five that fit into "Microeconomics", etc. those could be browse groups.
Of course, none of this is really relevant now -- since we don't have a browse grouping feature -- and I wasn't suggesting you needed to consider it when training or working with the curator, or need to create a ticket for it. Just pointing out that it sounds like this is another exhibit that probably could utilize the feature if we decide to invest the effort into creating it. |
formio/formio.js | 324142337 | Title: [Information] Form.io Submissions to CSV
Question:
username_0: Dear @travist @username_1
We would like to share with you a library that we use to export the Form.io submissions to flat CSV with translated labels. Is still a little big, but will remove some dependencies soon.
We will also share the one that we use for XLSX ;)
Enjoy!
https://github.com/UN-FAO/fast-submission2csv
Answers:
username_0: Just an update
Here is the library that we use to export to XLSX and other formats, again...is still kind of large because of some dependencies, but we will clean it soon.
https://github.com/UN-FAO/fast-submission2any
Status: Issue closed
username_1: I just realized that no one ever responded to you on this. Thanks for sharing the library. We will keep it in mind if we ever need to add additional output options for our server. |
TerriaJS/terriajs | 630231951 | Title: Wrong position of help panel opened from compass
Question:
username_0: On CI version of mobx help panel opened from compass shows in the middle of the map, I believe that this is happening because it doesn't find help item to open.

Answers:
username_0: this is resolved
Status: Issue closed
|
keymanapp/status.keyman.com | 513683299 | Title: favicon.ico has wrong aspect ratio
Question:
username_0: Arises from #14.
The icon is stretched vertically. This image shows the issue along with a reference icon with the correct aspect ratio:

Note also that the smaller icon uses simplified graphics -- removing the world map.
The attached zip here contains a multi-resolution icon which is my preferred option:
[appicon.zip](https://github.com/keymanapp/status.keyman.com/files/3781714/appicon.zip)<issue_closed>
Status: Issue closed |
visual-framework/vf-core | 999545497 | Title: Chore: deprecate vf-box
Question:
username_0: [`vf-box`](https://stable.visual-framework.dev/components/vf-box/) has been eclipsed by functionality in vf-card.
As discussed with @cindyebi we should:
1. Deprecate vf-box
2. In the future perhaps create vf-layout-box, if needed<issue_closed>
Status: Issue closed |
Autodesk/hig | 396662832 | Title: HelpAction Icon active/hover state inconsistent across browers
Question:
username_0: In Chrome, when you click on the HelpAction, the svg stays blueish gray

In Firefox, when you click the HelpAction, it flickers blueish gray and highlights the icon bright blue.

It seems like this is happening because Chrome is keeping the active state on `.hig__icon-button` while Firefox does not.
Safari keeps the blueish gray until you move the mouse and it'll turn bright blue
 |
hashbang/userdb | 296534449 | Title: Usernames to disallow
Question:
username_0: https://ldpreload.com/blog/names-to-reserve has a good summary
Answers:
username_1: What would be a good way to go about blocking names in a database? I was thinking just add in records for every name so it gets denied on insertion due to being unique, but there's probably a better way.
username_0: We could either add some static rows and rely on a uniqueness constraint. Or we could add a function `is_reserved_username` that keeps a dataset elsewhere.
I'm leaning towards the latter solution.
username_1: ```
create function raise_bad_username() returns trigger
language plpgsql as $$
begin
raise check_violation using message = 'username is not allowed: '||new.name;
end $$;
create constraint trigger max_users_on_host
after insert or update on passwd
for each row
when (select 1 from banned_usernames where username = new.name)
execute procedure raise_bad_username();
```
username_1: this of course means having and maintaining a `banned_usernames` table
username_1: I realize that my "select 1 from" is probably the wrong way to do it but I'm not sure how to.
username_0: `select 1` is fine; but you might want to wrap that in `select exists()`. see e.g. https://stackoverflow.com/a/16467634/282536
username_1: Should be fixed now.
username_1: So, it's not fine, actually. Can't have a query inside of a `when` statement.
username_1: Queries aren't allowed in `when` statements so I moved the logic to the function itself.
My comment has been updated with the new working SQL code, as well as provided a - pretty simple - test case.
Status: Issue closed
|
sindresorhus/terminal-image | 321282602 | Title: Support animated GIFs
Question:
username_0: https://github.com/oliver-moran/jimp/issues/166
Answers:
username_1: @username_0 I built a library that exposes the same API that you requested in LinusU/cwasm-nsgif#1:
```js
const fs = require("fs");
const decodeGif = require("decode-gif");
decodeGif(fs.readFileSync("unicorn.gif"));
/*
{
width: 220,
height: 165,
frames: [
{ timeCode: 0, data: [Uint8ClampedArray] },
{ timeCode: 10, data: [Uint8ClampedArray] },
...
]
}
*/
```
username_2: So, would terminal-image just dump out to text a single frame you specify?
Or a series of all the frames one after the other?
username_1: @username_2 The frames are rendered and outputted to a function. I'm thinking of an API like this:
```js
const terminalImage = require("terminal-image")
const logUpdate = require("log-update")
terminalImage.gif('unicorn.gif', {width: '50%', height: '50%'}, logUpdate)
```
username_0: Sounds good. I think it should just default to using `logUpdate` and we can add an optional option (not parameter) to use a different renderer.
username_1: @username_0 What function names should be used when using a buffer or a file?
Status: Issue closed
|
microsoft/PowerToys | 1046716626 | Title: Switching Alt(right) and Caps Lock doesn't work and makes the Alt(right) to be only usable by pressing shift simultaneously. Is it even possible to change Caps lock and Alt(right)?
Question:
username_0: ### Microsoft PowerToys version
0.49.1
### Running as admin
- [ ] Yes
### Area(s) with issue?
Keyboard Manager
### Steps to reproduce
Trying to switch Alt(right) and Capslock
### ✔️ Expected Behavior
The change to happen without problems.
### ❌ Actual Behavior
The switch automatically made the Alt(right) to be usable only by pressing shift simultaneously. In the end it doesn't work at all.
### Other Software
_No response_
Answers:
username_1: Failed to reproduce this. Is the following screenshot matching your settings?

username_0: Yes the screenshot is right and it works until you try to map caps lock to alt (right). Here are my settings and the alt (right) functionality doesn't work on my caps lock and I cant use any special symbols.

username_2: On some keyboard mappings Alt right is actually Alt(Right)+Ctrl(Left) (= Alt Gr), and is not actually a single key.
You might be expecting behavior from pressing these 2 keys at once.(Alt(Right)+Ctrl(Left)).
username_2: This is actually an issue, I believe. We might be considering that Ctrl(Left)+Alt(Right) is an incomplete shortcut and so are not allowing the user to set it.
username_0: Yes I think you are completely right since I tried including the Ctrl(left) but it still wouldn't change the Alt key.
username_0: I tried that but it still gives me this kind of error:
<img width="494" alt="image" src="https://user-images.githubusercontent.com/92265350/143188922-887bebda-741c-41d5-ae4c-f523dd214a0e.png">
The keys I have on my keyboard for alt are Alt(left) and AltGr(right) so no Alt key on the rightside. |
geo2a/gsm-with-haskell | 63789152 | Title: Roadmap, planning and stuff
Question:
username_0: Can you write something like that telling what is your thougths about this project? Maybe I can help you developing this
Answers:
username_1: Hello, Reinaldo!
Sorry, but for this moment I have no particular interest in development of this project.
username_0: Ok, thanks |
ember-cli/ember-cli | 65333032 | Title: `ember update` will detect new version, but not update to it till second try.
Question:
username_0: Encountered this when checking for an update:
```
$ ember update
version: 0.2.1
0.2.2
✓ You have the latest version of ember-cli (0.2.1).
$ ember -v
version: 0.2.1
A new version of ember-cli is available (0.2.2). To install it, type ember update.
node: 1.4.3
npm: 2.7.3
$ ember update
ersion: 0.2.1
A new version of ember-cli is available (0.2.2). To install it, type ember update.
A new version of ember-cli is available (0.2.2).
[?] Are you sure you want to update ember-cli? Yes
...
```
Not a big thing, but if it's able to detect a new version, it should propose updating to it, right?
Answers:
username_1: I'm on my phone. But I'm pretty sure this is a duplicate
username_0: I did a search and didn't spy anything, if it is, I apologize.
username_1: https://github.com/ember-cli/ember-cli/issues/3653, although this issue is more descriptive.
username_2: Maybe I would add, that after ember update, e.g 0.2.1 -> 0.2.2 there is the ember init command suggested as next step, which is good to do when diffing package.json and bower.json. But after the embe update and npm install, it's necessary to run again ember init and diff the package descriptors for npm and bower and bump versions of ebmer, qunit etc, maybe the ember could autobump version of all non-user added libraries...
username_0: That can cause issues either in your own code or with libraries you might be using that might be using out of date APIs. Updating one by one, especially in older, larger apps is ideal, and the difference in effort isn't very large.
username_1: `ember update` has been removed
Status: Issue closed
username_0: Has it been replaced in any way? Anyplace I might see discussion on the removal?
username_1: documentation on http://ember-cli.com outlines this.
username_0: Thanks |
rust-lang/rust | 127436976 | Title: Bad macro usage error message does not include correct error location
Question:
username_0: Consider this reduced test case:
```rust
macro_rules! match_ignore_ascii_case {
(@inner $value:expr) => { () };
( $($rest:tt)* ) => { match_ignore_ascii_case!(@inner $($rest)*) };
}
fn main() {
// This is fine
match_ignore_ascii_case!(1);
// This causes an error as it doesn’t match the expected syntax
// but the error message does not the location of the actual error.
match_ignore_ascii_case!(2 => 3);
}
```
The `@inner` indirection exists because the non-reduced macro is recursive:
* https://play.rust-lang.org/?gist=f8b1652f43cc720f89a3&version=nightly
* https://users.rust-lang.org/t/writing-a-macro-rules-macro-used-like-a-match-expression/4328
This fails to compile (as it should) but the error message does not include the real location of the error, which is line 12. It can be hard to track down in a large crate with many users of the macro.
```rust
a.rs:3:52: 3:53 error: unexpected token: `@`
a.rs:3 ( $($rest:tt)* ) => { match_ignore_ascii_case!(@inner $($rest)*) };
```
The error message looks even worse when the macro is used (with incorrect syntax) from another crate
```
<cssparser macros>:12:1: 12:2 error: unexpected token: `@`
<cssparser macros>:12 @ inner $ value , ( $ ( $ rest ) * ) -> (
```
Answers:
username_1: When the expanded code contains a non-macro-related error (say, a type mismatch), it at least shows a macro expansion backtrace. It's very hard to read, but gives spans at least. I guess that would be a start.
username_1: The trouble is you get the _same_ error if you screw up writing the macro, e.g. misspell `@inner` or order something backwards in one of the arms. It isn't the caller's fault for sure.
username_0: Yes, I don’t have an example at hand to copy/past but I see the kind of error message you mean. It *may* be the caller’s fault even if it isn’t necessarily. A macro expansion backtrace would be useful here.
username_2: Current output:
```
error: recursion limit reached while expanding the macro `match_ignore_ascii_case`
--> src/main.rs:3:27
|
3 | ( $($rest:tt)* ) => { match_ignore_ascii_case!(@inner $($rest)*) };
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
12 | match_ignore_ascii_case!(2 => 3);
| --------------------------------- in this macro invocation
|
= help: consider adding a `#![recursion_limit="128"]` attribute to your crate
```
username_2: Triage: no change. |
whole-tale/girder_wholetale | 332804065 | Title: Allow Tales creation to accept multiple files and folders
Question:
username_0: The current endpoint for creating a new tale only allows to add a single folder, following the previous specification.
```
tale {
folderId (string): ID of a data folder used by the Tale , // <--- HERE
imageId (string): ID of a WT Image used by the Tale ,
title (string, optional): Title of the Tale ,
// ... other fileds
}
```
After it was decided to allow multiple files and folders, the endpoint needs to change from a _string_ to an _array_.<issue_closed>
Status: Issue closed |
angular/angular | 750686035 | Title: "Component inside a test host" issue with ngc & Ivy
Question:
username_0: <!--🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅
Oh hi there! 😄
To expedite issue processing please search open and closed issues before submitting a new one.
Existing issues often contain information about workarounds, resolution, or progress updates.
🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅-->
# 🐞 bug report
### Affected Package
<!-- ✍️edit: --> The issue is caused by ngc
### Is this a regression?
<!-- Did this behavior use to work in the previous version? -->
<!-- ✍️--> Yes, the previous version in which this bug was not present was: non-Ivy
### Description
<!-- ✍️-->
Testing a component inside a test host, according to:
https://angular.io/guide/testing-components-scenarios#component-inside-a-test-host
`ngc` throws error (but only when Ivy is enabled).
But everything else works just fine (test, build, serve).
Disable Ivy in `tsconfig.json`, re-run `ngc` and it will pass successfully.
This problem is also valid for previous Angular 10.
## 🔬 Minimal Reproduction
https://github.com/username_0/ng11-test-host-problem
## 🔥 Exception or Error
<pre>$ npx ngc
src/app/foobar/foobar.component.spec.ts:12:14 - error NG8001: 'app-foobar' is not a known element:
1. If 'app-foobar' is an Angular component, then verify that it is part of this module.
2. If 'app-foobar' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
12 template: `<app-foobar [abc]="'xyz'"></app-foobar>`
~~~~~~~~~~~~~~~~~~~~~~~~~~
src/app/foobar/foobar.component.spec.ts:12:26 - error NG8002: Can't bind to 'abc' since it isn't a known property of 'app-foobar'.
1. If 'app-foobar' is an Angular component and it has 'abc' input, then verify that it is part of this module.
2. If 'app-foobar' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.
12 template: `<app-foobar [abc]="'xyz'"></app-foobar>`
~~~~~~~~~~~~~
</pre>
## 🌍 Your Environment
**Angular Version:**
<pre><code>$ ng version
[Truncated]
... animations, cli, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router
Ivy Workspace: Yes
Package Version
---------------------------------------------------------
@angular-devkit/architect 0.1100.2
@angular-devkit/build-angular 0.1100.2
@angular-devkit/core 11.0.2
@angular-devkit/schematics 11.0.2
@schematics/angular 11.0.2
@schematics/update 0.1100.2
rxjs 6.6.3
typescript 4.0.5
</code></pre>
**Anything else relevant?**
Run `ng test` to execute the unit tests.
This should pass successfully with or without Ivy. However, `ngc` fails with Ivy.
Answers:
username_1: You're experiencing #33724, where Ivy also AOT compiles non-exported classes, unlike ViewEngine. Test files are typically not processed by the AOT compiler so this isn't an issue for most people, but in your case the `.spec.ts` file are part of the compilation and the Ivy compiler will just compile and type-check all decorated classes in that case. #33724 has been addressed in #33921 with the introduction of the `compileNonExportedClasses` compiler option, which if configured as `false` will not AOT compile non-exported components.
I don't see this flag being documented on angular.io so will convert this issue to a docs issue.
username_0: @username_1 Thanks for the info. I just tried adding the `"compileNonExportedClasses": false` to tsconfig.json `angularCompilerOptions` and that seems to solve the issue. Is that the correct and safe way to solve it around unit testing or is there any other risk of using it? Disclaimer: I had to temporarily remove some unit tests, when migrating project from ng9 (non-Ivy) to ng11 (Ivy), only because of this issue without the chance to rewrite them. I'd like to safely restore them.
Other observation: When I added the above flag - ngc passes succesfully, but only when `TestFoobarComponent` doesn't have `export` (see the reproduction repo). With the `export` it always fail, no matter if `compileNonExportedClasses` is true or false.
username_1: With the `export` keyword the `compileNonExportedClasses` flag becomes irrelevant, as the option's name implies it concerns _non-exported_ classes only. For exported classes it's possible to set the `jit: true` flag inside the Component decorator, which will also exclude the component from AOT compilation. `compileNonExportedClasses` is just a shortcut to assume `jit: true` for all non-exported classes, to restore the ViewEngine behavior.
username_2: We might also want to improve the error reporting story as part of this |
santigarcor/laratrust | 334876725 | Title: how to return all users by all roles in array
Question:
username_0: - Laravel Version: 5.4
- Laratrust Version: 5.0.9
### Description:
per the documentation, you can get users with `
$users = User::whereRoleIs('admin')->get();` but when i try to pass in an array to the `whereRoles` it will only return the user with the first role name in the array. How can I add roles to the `whereRoles`?
Answers:
username_1: Actually you can't do that, that method accepts only a string, but for the new release the option for an array can be added.
Status: Issue closed
|
xamarin/AndroidX | 858570190 | Title: Add nullability annotations
Question:
username_0: ### Version Information
- Visual Studio version (eg. 16.8 or 8.8): 16.9.4
- Xamarin.Android version (eg. 11.1): 11.2.2.1
- Using AndroidX or Support Libraries: Xamarin.AndroidX.Legacy.Support.V4 1.0.0.7
- If Support Libraries, version (eg 28.0.0):
### Describe your Issue:
Xamarin.Android added nullability annotations in [v11](https://docs.microsoft.com/en-us/xamarin/android/release-notes/11/11.0#monoandroid-nullable-reference-types-compatibility). Is there a plan to add that annotations to AndroidX libraries?
For example, `AndroidX.Fragment.App.Fragment.Context` should be nullable, `RequireContext` should be non-nullable and [the corresponding methods in the source code of AndroidX](https://github.com/androidx/androidx/blob/4ddfc1583c09aaa878d34437fbfee1b995b60d3a/fragment/fragment/src/main/java/androidx/fragment/app/Fragment.java#L890-L913) are annotated as such. |
gravitational/teleport-plugins | 547613691 | Title: Packaging and release Teleport Plugins
Question:
username_0: As we start to get ready for releasing the Teleport Plugins we should provide the same convenience & packaging as for current Teleport binaries.
- [ ] Inclusion of Automated Testing
- [ ] Follow same release best practices for Teleport.
- [ ] Package available at https://get.gravitational.com/
Answers:
username_0: @wadells @webvictim This still might be a little bit out, but I wanted to put it on your radar for early feedback. |
couchbase-partners/azure-resource-manager-couchbase | 212260878 | Title: Add Public IP to VMSS once Available
Question:
username_0: ...use jump box in the meantime...
Answers:
username_0: ...use jump box in the meantime...
username_0: Decided to use a copy index in the meantime instead.
username_0: This is the issue that is blocking our use of VMSS.
username_0: https://github.com/gbowerman/azure-myriad/tree/master/publicip-dns
username_0: We're on the preview now. Just need to switch it on... Maybe wait until after the 4/20 webinar...
username_0: Currently in preview. Working with Rafael as of 4/21.
Here's an example from Guy:
https://github.com/gbowerman/azure-myriad/tree/master/publicip-dns
username_0: We're now adding the IPs, but have no way to query them.
Status: Issue closed
|
iridakos/duckrails | 142039436 | Title: Layout missing
Question:
username_0: After `bundle install` and `rake db:setup`, when I run my rails server, the layout is broken (missing). I get errors such as this one:
```
Started GET "/javascripts/vendor/modernizr.js" for ::1 at 2016-03-19 08:41:12 +0100
ActionController::RoutingError ((╯°□°)╯︵ ┻━┻ : No route matches [GET] "/javascripts/vendor/modernizr.js"):
```
Tool looks really useful and looking forward to use it!
Answers:
username_1: Thank you,
How do you start the application?
The example you give should mapped under `/assets`:
`Started GET "/assets/vendor/modernizr.self-74da3245...`
username_0: I start it with `rails s`.
When looking at the repository, I can't find any `vendor` directory. Did I miss something?
username_1: I can't reproduce it... Can you try executing the rails commands prepending `bundle exec`?
username_1: Can't reproduce.
Status: Issue closed
username_2: I get this same issue as well:
Started GET "/javascripts/vendor/modernizr.js" for ::1 at 2016-04-25 14:06:34 +0100
ActionController::RoutingError (No route matches [GET] "/javascripts/vendor/modernizr.js"):
username_2: This is the url it is trying to hit:
http://localhost:3000/javascripts/vendor/modernizr.js
username_3: I have the exact same issue
username_1: @username_0 @username_2 @username_3 There have been some changes in the code and probably you won't face the issue again. If you still get the error, let me know to further investigate. Thank you for your feedback. |
rcornwell/sims | 814529212 | Title: KA10: Data Disc displays
Question:
username_0: WAITS raster displays.
https://www.saildart.org/HM[H,DOC]
https://www.saildart.org/FACIL.TED[H,DOC]
https://stacks.stanford.edu/file/druid:hb976hq8639/uuomanual.pdf, Appendix 2
Answers:
username_0: I have started on this. Assign me if you like.
username_0: I think this is close to the SAIL hardware.
http://www.bitsavers.org/pdf/dataDisc/Television_Display_System_Reference_Manual_Jul69.pdf
username_0: So far so good. CC @username_1

username_0: I'm going to have to mess with the DKB device too, to provide many keyboard inputs.
username_0: From the TDS manual on Bitsavers. A sample of the 5x7 font. The SAIL hardware would have the extended ASCII characters added.


Bonus feature: control panel. Bruce, do you recognize this?

username_0: I compared the font sample above with the Knight TV characters, and many match exactly. Some have minor differences.
username_0: I have something that is like 80% working now. Various display issues, maybe some in the sim_video part.

username_0: After an - ahem brief - hiatus, I'm picking this up again. A sim_video problem has been fixed, so now multiple DD windows will update properly. I added code to get keyboard events from the DD windows even if the III is disabled (previously all events went through the vector display library).
A new problem pas popped up: it's no longer possible to have both III and DD displays.
When I try to log in, some previously unimplemented display commands are used. They will be added soon. |
vim/vim | 287841310 | Title: diff: allow to align lines manually
Question:
username_0: When diffing buffers it can be very useful sometimes to align lines manually, e.g. when something trivial is changed (e.g. arguments list of a function), but gets not aligned automatically.
It would be nice to have a way to do this, e.g. a `:diffalign` command, where the count could be used for multiple alignments: `:diffalign` would mark the current line to be aligned with all other marked ones in other windows.
And if you wanted to align a 2nd line you would use `:2diffalign`.
This would then be used internally to force those lines to be displayed next to each other - aligning the surrounding differences based on this.
Answers:
username_1: Lines in `vimdiff` are aligned by virtue of the `'scrollbind'` option. To align one window in spite of scroll-binding by scrolling it independently of the other ones, scroll it by mouse when it is not the current window. See:
```
:help 'scrollbind'
:help 'scrollopt'
:help scroll-binding
and especially
:help scrollbind-quickadj
```
Best regards,
Tony.
username_2: but that does not change highlighting, because internally Vim is parsing the diff output. It would be easier, if we there was a better diff algorithm included because then we could align lines differently but this is currently not possible and I think this is also mentioned in the todo list
username_3: That's not what Daniel is asking for.
The diff algorithm tries to find blocks of lines that are common to
both files/buffers and are either unchanged or that differ in some
small way. It tries to align and compare those lines to show what
actually changed. Vim does a fairly good job of that, especially
with the EnhancedDiff plugin and the PatienceDiff algorithm. But
sometimes the algorithm can't correctly identify or align those
blocks and the result is a mess.
It would be nice to be able to be able to help the algorithm by
telling it that some pairs of lines in the two buffers are actually
the same lines but with some differences.
Regards,
Gary
username_3: I think you are right, this would need a completely new diff,
optimized to something like running once the display's height up and
down from the new point of alignment to show something like 'one patch',
then moving on incrementally up or down with the visible part or moving
alignment.
'Normal diff' surely can not do this, and if you'd re-diff the N whole
files every 'move' you get an tremendous overhead because 'good diffing'
is hard work in the background.
Stucki
username_4: I'd love to see this change and even attempted to write a plugin for it once, using the 'diffexpr' option to break up a buffer into multiple files at the alignment points, diffing each partial file, and combining the diff output for each partial file before passing the diff output back to Vim for processing.
Unfortunately the resulting output, while it appears valid, violates some assumptions made by Vim, and Bram has stated that it's not "valid" if a real diff program wouldn't produce exactly that output.
Christian wrote a patch that made things *better*, but it still had issues in some cases. And while Bram didn't exactly shut it down, he definitely didn't seem to like the idea, so I mostly lost interest and stopped pursuing it.
I can't find the thread in the Google Group but here it is on an external mirror: http://markmail.org/message/zzbc3oybt6gpgevn#query:+page:1+mid:o3wmxfdn62sd2zx7+state:results |
JetBrains/resharper-unity | 190066300 | Title: Swap out TOLERANCE with Mathf.epsilon
Question:
username_0: When rider detects floating point imprecision in my code it wants to fix it by Adding Math.Abs and checking if it is less than TOLERANCE. I'd like TOLERANCE to be swapped out with Mathf.epsilon in the UnityEngine.dll



Answers:
username_1: Mathf.epsilon is a VERY small number: 1.175494E-38f and will in most cases not do what you want as the Epsilon is generally defined as the smallest value a float can have in a system.
Maybe use Mathf.Approximately() instead?
Here is the decompiled source for that method:
```
public static bool Approximately(float a, float b)
{
return (double) Mathf.Abs(b - a) < (double) Mathf.Max(1E-06f * Mathf.Max(Mathf.Abs(a), Mathf.Abs(b)), Mathf.Epsilon * 8f);
}
```
You can see that it uses at least Math.Epsilon times eight. |
vaadin/flow | 595623704 | Title: Clean package.json on update to 14.2
Question:
username_0: In some cases there remains in the package.json the dependency target `"@vaadin/flow-deps": "./target/frontend"` and the old hash `"vaadinAppPackageHash": "ecf1e4b3715be..."` thesse should be removed for newer versions.
Especially the `@vaadin/flow-deps` if left will fail `(p)npm install` as the target/frontend doesn't get a package.json anymore.
Answers:
username_1: Is there a case where this can be left there ? Since sounds to me that if it stays there and fails the build, then it is a blocker ?
username_0: I just had this with the combo-box demo
Status: Issue closed
|
woocommerce/woocommerce | 464762130 | Title: Checkout fields not auto-filling on iOS Safari
Question:
username_0: **Describe the bug**
When checking out on Safari on iOS, the name and email fields will not offer auto-fill.
**To Reproduce**
Steps to reproduce the behavior:
1. Open up the store in Safari on iOS.
2. Checkout, filling in all of the required fields.
3. Return to check out for a new order.
4. Remove any prefilled in fields.
5. Click on the first name and email fields.
6. Auto-fill won't suggest what has previously been entered.
**Screenshots**

(Link to screenshot: https://cld.wthms.co/PCYd69)
**Expected behavior**
I expected the first name and email addresses to auto-fill from the browser.
**Isolating the problem (mark completed items with an [x]):**
- [X] I have deactivated other plugins and confirmed this bug occurs when only WooCommerce plugin is active.
- [X] This bug happens with a default WordPress theme active, or [Storefront](https://woocommerce.com/storefront/).
- [X] I can reproduce this bug consistently using the steps above.
**WordPress Environment**
<details>
```
Copy and paste the system status report from **WooCommerce > System Status** in WordPress admin.
```
</details>
Answers:
username_1: Hi @username_0
Thank you for taking the time to report this bug, we really appreciate your help. I can reproduce it on my end on an iphone 12 (via Browserstack) using Safari.
Placed an order

Returned to checkout for a new order and removed pre filled (by Woo) values from fields. Tried entering new values but browser did not offer to autofill fields
Setting as low priority as we haven't had any other reports since this.
We won’t be able to include this fix in the upcoming release due to the lower priority of this issue compared to others reported. We’re going to add it to our backlog so we can include it in our planning for one of our future releases. |
goharbor/harbor | 805326619 | Title: Error while pulling image from harbor
Question:
username_0: What can we help you?
Answers:
username_1: please provide more details for your issues, the harbor version, configuration, logs and exactly step about what you did. Otherwise, it's impossible for us to have a debug, thanks. |
concpetosfundamentalesprogramacionaa19/practica220419-alexfer060900 | 435899027 | Title: revisar
Question:
username_0: https://github.com/concpetosfundamentalesprogramacionaa19/practica220419-alexfer060900/blob/2c2b9024ac9b3ebdb05ff6aa82dc14db8105cc99/demo3.py#L1
Se sugiere ingresar un comentario al inicio del archivo. |
department-of-veterans-affairs/va.gov-team | 1173967523 | Title: [Research] Assets Needed for Research Trip and Small Update to Conversation Guide
Question:
username_0: # Description
We need a way to easily take notes while at St. Louis. Therefore, we are planning to create a structure print out that can be filled out on-site.
We also realized that there are a few scenarios that should be added to the Veteran conversation guide.
- If a Veteran already checked in before we could intercept them, what questions can we still ask that Veteran?
- Should we reword our screening questions to more explicitly offer the in-person check-in method?
- If a Veteran doesn't want to complete check-in on their phone, do we have any follow-up questions about why for them?
# Tasks
- [ ] Create print out.
- [ ] Update the [Veteran conversation guide](https://github.com/department-of-veterans-affairs/va.gov-team/blob/master/products/health-care/checkin/research/veteran-facing/StLouis-pilot-feedback/conversation-guide.md)
# Acceptance Criteria
- [ ] Send out the updated GitHub conversation guide via Slack for review by check-in ux, product, and Stephen
- [ ] Send out the print out for review by the other team members going on the research trip
- [ ] Add a copy of the print out to GitHub within this [folder](https://github.com/department-of-veterans-affairs/va.gov-team/tree/master/products/health-care/checkin/research/veteran-facing/StLouis-pilot-feedback).
Answers:
username_1: Sent to Zach and Ya-ching for review. Will likely do something similar for the staff conversation guide. |
BluSunrize/ImmersiveEngineering | 124276583 | Title: Sources from github?
Question:
username_0: Report:
[23:07:45] [Server thread/INFO] [AE2:S]: Layer: appeng/parts/layers/LayerIEnergy
Sink_TileCableBus loaded successfully - 4248 bytes
[23:07:45] [Server thread/INFO] [AE2:S]: Layer: appeng/parts/layers/LayerIEnergy
Source_TileCableBus loaded successfully - 4184 bytes
[23:07:45] [Server thread/INFO] [AE2:S]: Layer: appeng/parts/layers/LayerIEnergy
Handler_TileCableBus loaded successfully - 1801 bytes
[23:07:45] [Server thread/INFO] [AE2:S]: Industrial Craft 2 - Integration Enable
[23:07:45] [Server thread/INFO] [AE2:S]: Rotary Craft - Integration Disabled
[23:07:45] [Server thread/INFO] [AE2:S]: Railcraft - Integration Disabled
[23:07:45] [Server thread/INFO] [AE2:S]: BuildCraft - Integration Disabled
[23:07:45] [Server thread/INFO] [AE2:S]: RedstoneFlux Power - Tiles - Integratio
n Enable
[23:07:45] [Server thread/INFO] [AE2:S]: RedstoneFlux Power - Items - Integratio
n Enable
[23:07:45] [Server thread/INFO] [AE2:S]: Mine Factory Reloaded - Integration Ena
ble
[23:07:45] [Server thread/INFO] [AE2:S]: Deep Storage Unit - Integration Enable
[23:07:45] [Server thread/INFO] [AE2:S]: Factorization - Integration Disabled
[23:07:45] [Server thread/INFO] [AE2:S]: Forge MultiPart - Integration Enable
[23:07:45] [Server thread/INFO] [AE2:S]: Rotatable Blocks - Integration Disabled
[23:07:45] [Server thread/INFO] [AE2:S]: Colored Lights Core - Integration Disab
led
[23:07:45] [Server thread/INFO] [AE2:S]: Waila - Integration Disabled
[23:07:45] [Server thread/INFO] [AE2:S]: Mekanism - Integration Disabled
[23:07:45] [Server thread/INFO] [AE2:S]: ImmibisMicroblocks - Integration Disabl
ed
[23:07:45] [Server thread/INFO] [AE2:S]: BetterStorage - Integration Disabled
[23:07:46] [Server thread/INFO] [AE2:S]: Post Initialization ( ended after 1546m
s )
[23:07:46] [Server thread/INFO] [ThermalExpansion]: There are no crafting files
present in C:\Users\i\Desktop\Forge\config\cofh\thermalexpansion\crafting.
[23:07:47] [Server thread/INFO] [FML]: [Botania] The Lexica Botania has 25984 wo
rds.
[23:07:47] [Server thread/INFO] [Draconic Evolution]: Finished PostInitializatio
n
[23:07:47] [Server thread/INFO] [EnderIO]: Loaded 2 grinding balls from SAG Mill
config.
[23:07:47] [Server thread/INFO] [EnderIO]: Excluding 9 recipes from grinding bal
ls bonus.
[23:07:47] [Server thread/INFO] [EnderIO]: Found 118 valid SAG Mill recipes in c
onfig.
[23:07:47] [Server thread/WARN] [EnderIO]: Not adding supplied recipe as a recip
e already exists for the input: 1xitem.tconstruct.Materials@11
[23:07:47] [Server thread/WARN] [EnderIO]: Not adding supplied recipe as a recip
e already exists for the input: 1xic2.blockMetal@2
[23:07:47] [Server thread/WARN] [EnderIO]: Not adding supplied recipe as a recip
e already exists for the input: 1xtile.thermalfoundation.storage@2
[23:07:47] [Server thread/WARN] [EnderIO]: Not adding supplied recipe as a recip
e already exists for the input: 1xitem.thermalfoundation.material@66
[23:07:47] [Server thread/WARN] [EnderIO]: Not adding supplied recipe as a recip
e already exists for the input: 1xtile.thermalfoundation.ore@2
[23:07:47] [Server thread/WARN] [EnderIO]: Not adding supplied recipe as a recip
e already exists for the input: 1xitem.thermalfoundation.material@73
[23:07:47] [Server thread/WARN] [EnderIO]: Not adding supplied recipe as a recip
e already exists for the input: 1xtile.sand@0
[23:07:47] [Server thread/INFO] [EnderIO]: Finished processing SAG Mill recipes.
111 recipes avaliable.
[Truncated]
a:304) [guava-17.0.jar:?]
at com.google.common.eventbus.EventBus.post(EventBus.java:275) [guava-17
.0.jar:?]
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadControl
ler.java:119) [LoadController.class:?]
at cpw.mods.fml.common.Loader.initializeMods(Loader.java:742) [Loader.cl
ass:?]
at cpw.mods.fml.server.FMLServerHandler.finishServerLoading(FMLServerHan
dler.java:97) [FMLServerHandler.class:?]
at cpw.mods.fml.common.FMLCommonHandler.onServerStarted(FMLCommonHandler
.java:319) [FMLCommonHandler.class:?]
at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(Dedicated
Server.java:210) [lt.class:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:387) [M
inecraftServer.class:?]
at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:685)
[li.class:?]
[23:07:49] [Immersive Engineering Contributors Thread/INFO] [ImmersiveEngineerin
g]: Attempting to download special revolvers from GitHub
^A
Answers:
username_1: No.
Not until you give us the /whole/ log, you upload it to pastebin or gist, rather than posting it unspoilered, which makes reading it almost impossible, and you give us the version number you are running.
username_0: it doesnt realy crash it just takes like 5 minutes till it goes further
username_1: Then it's not a crash and you are effectively reporting nothing.
username_0: do you have any ideas what this means?
username_1: What? You aren't REPORTING anything. You also still haven't told me what version of IE you are using!
The last message of your log shows the downloader thread starting which is perfectly fine and I can't tell you what happens after that because you damn log is incomplete.
I can't analyse what I can't see. Give me the whole log!
username_0: can you please explain me how i can gather the whole log cause it doesnt save it in a crash report but its just like freezing in the console
username_0: and i copied the console
username_0: IE 0.6.2
username_1: Well you wait till it has actually finished loading and then you either copy the console contents, or, if your console has a fixed size and the first part of the log is missing, you go into "logs" and grab the file called "latest".
username_0: m im getting confused, sorry my latest log is extremly short and i am rebuilding my modpack cause there was an error so im retrying mod by mod to see what mod glitches but when i check latest i see a older log
username_0: is it ok if i send you the server files and you know what to do then?
username_1: No. I will not go through your sever files for you. Either you give me the logs or I can't help you.
username_0: latest.log: http://pastebin.com/9BrQ2RRp
username_0: latest crash report: http://pastebin.com/DJdLn7Dj
username_1: Those logs are entirely unrelated to the issue at hand >_<
Obviously you have to give me logs that were generated while producing the issue.
username_0: yes and they are not here i just dont see them
username_0: i may have a idea what is going on cause IE says something about that it can recognize Wyvrn armor from Draconic Evolution before it starts to say this, and it is like giveing information about denseores
username_0: wait i found a way to get the whole log
log: http://pastebin.com/Sfwdxy46
username_2: Just looking at that log.... Retrogeneration....
That was not caused by IE and certainly will severely impact server startup time. It's this retrogen occurring EVERY time the server starts up?
username_1: Yeah the retrogen is one thing, and that log also contains no 5 minute wait. The entire startup takes 2 minutes.
I'm closing this issue now. Even with the lack of information it seems quite clear to me that no issue with IE is present.
Status: Issue closed
username_0: can you guys please explain me what retrogeneration means? so i can continue?
username_1: It means that some mod (I suspect one that is being developed by MrTJP) is retro-actively adding ores or other features to te world. An example would be Thaumcraft which can generate nodes in a world that has already been created. Retrogen is used when you want to allow players to add ores to a world that was created before that mod was installed.
username_2: What Blu said. Also, the process can be as resource expensive as when the chunks where originally generated depending on the implementation.
username_0: so its trying to regenerate the chunks?
username_0: but what mod could cause this issue
username_1: Dude. We're not your google.
I already told you, it's some mod by MrTJP. And might I point out that your server started in 2 minutes? That's perfectly acceptable time. There is no issue here.
username_0: ok
username_0: mctjp and project red removed, server now working perfectly
thanks for your initialization of the problem
username_3: as an help for you, i only only left out project red "world" ingame known as "exploration" part of the mod, but i added replacement recipes for the missing ores to compensate (electrotine made from 1 redstone dust, 1 lapis and one gloswstone dust f.E. and reused the emeralds from Biomes o Plenty for their recipes)
this way we can use everything besides their marble and their volcanos ... but this mod part very hardly impacts server performance even when generating a new wolrd you'll have disconnects every 300m explored |
aws/aws-sdk-java-v2 | 610391063 | Title: DynamoDB Enhanced Client support for non-public classes
Question:
username_0: This issue represents the desire for the DynamoDB Enhanced Client to be able to support Java classes that are not declared `public`.
Why is this desirable?
* Typically, in a large application, I want to separate my DB model from the domain/business model. In this context my classes that represent records in DynamoDB are the data model which I want to hide from clients.
* For such cases, I would like to declare them as non-public classes - may be package private. Unfortunately the DDB mapper does not allows such classes to be used.
Answers:
username_1: @username_0 are you using StaticTableSchema or BeanTableSchema?
username_0: I am using the BeanTableSchema
username_1: This can't be done with the BeanTableSchema because of limitations of Java. The introspection is done by a class outside of the privilege scope of your protected class. However, there is a solution if you're willing to use the StaticTableSchema, because you can resolve the lambda functions to perform gets/sets and instantiations from within your own package, or even within the class itself (allowing you to access private methods). Here's an example that I just tested with and works great:
```
class SimpleBean {
static final TableSchema<SimpleBean> TABLE_SCHEMA =
TableSchema.builder(SimpleBean.class)
.newItemSupplier(SimpleBean::new)
.addAttribute(String.class, a -> a.name("id")
.getter(SimpleBean::getId)
.setter(SimpleBean::setId)
.tags(primaryPartitionKey()))
.build();
private String id;
SimpleBean() {
}
String getId() {
return id;
}
void setId(String id) {
this.id = id;
}
}
```
Note that because the schema is declared from within the class itself it has no access problems. This would also work from within the same package for this particular example.
Status: Issue closed
username_0: Jackson can serialize and deserialize package private classes with no problems. Could we take a look at how they do it?
While the StaticSchema works, it is still very verbose; no doubt it is less than having to write all the getItem/PutItem requests by hand but still verbose than the BeanTableSchema. And everytime you add a field, you need to remember to add it to the schema. Hopefully forgetting this would be caught by a unit test but it is still annoying. Thoughts?
username_1: I think it's personal preference. I'm personally not a big fan of beans and I want my cold-start time to be minimal, so I tend to prefer working with the StaticTableSchema (and I've spoken to other developers that feel the same), but there are also many that prefer it just to work and are used to working with beans so we try and provide for both.
If and when we build an annotation implementation for ImmutableTableSchema (still very much in the works), this would be using custom written introspection and would not be constrained by the bean standard so we'll have more options there and maybe the right time to revisit this issue.
The other possibility for the future is writing an annotation processor to generate a TableSchema, it may be possible to get the best of both worlds that way, the convenience of not having to add fields manually to the TableSchema, but also the power and flexibility of having a static tableschema rather than an introspected one. |
amplication/amplication | 747466304 | Title: Server: ERD feature
Question:
username_0: **Is your feature request related to a problem? Please describe.**
When I develop my apps it really useful to see the DB diagram
**Describe the solution you'd like**
The solution I'd like to see it's the option to see live diagram of my DB scheme
**Describe alternatives you've considered**
I haven't
**Additional context**
https://en.wikipedia.org/wiki/Entity%E2%80%93relationship_model

Answers:
username_1: This would be a great addition in my opinion too! Even more so if you can create new entities and edit entities through the diagram. There's already a nice library that implements this for Prisma! |
macmillanpublishers/bookmaker_validator | 178403944 | Title: filename with apostrophe causes dropbox api fail
Question:
username_0: filename with apostrophe causes dropbox api failure.
Also need to edit flow for api failure ; we don't want the original file moved to outfolder (so we can still use the api to lookup the originator of the file, presuming it was a timing issue).
And finally build in handling for apostrophes in filenames
Status: Issue closed
Answers:
username_0: resolved with PR #67 |
nokelong/Front-end-interview | 839806379 | Title: 使用let const var 声明变量的区别
Question:
username_0: let const 是ES6中新增的声明变量的关键字。
**1、let**
let 声明的变量具有如下特性:
- 变量值在代码块有效,拥有块级作用域
- 不存在变量提升
- 暂时性死域 ,let声明变量之前都不可用
- 不允许重复声明
**2、const**
const 声明的变量具有如下特性:
- 声明一个只读的常量,一旦声明,常量指向的内存地址不可改变
- 简单类型数据Number,String,Boolean值不可改变
- 复合类型数据Array,Object内存地址指针不可改变
- 块级作用域,不存在变量提升
- 不允许重复声明变量 |
michael-hopper/teacozy | 286159307 | Title: Hyperlinks
Question:
username_0: Great job with using IDs to create hyperlinks!
https://github.com/michael-hopper/teacozy/blob/master/tea_cozy/resources/css/style.css#L7
https://github.com/michael-hopper/teacozy/blob/master/tea_cozy/index.html#L25 |
swagger-api/swagger-editor | 292276657 | Title: Support for external reference for code generation
Question:
username_0: <!---
Thanks for filing an issue 😄 ! Before you submit, please read the following:
Search open/closed issues before submitting since someone might have asked the same thing before!
Issues on GitHub are only related to problems of Swagger-Editor itself. We'll try to offer support
here for your use case, but we can't offer help with projects that use Swagger-UI indirectly,
like Springfox or swagger-node.
If your issue has to do with the right-hand side of the Editor, you're likely talking about
Swagger-UI. Please file your issue there instead: https://github.com/swagger-api/swagger-ui/issues/new
Likewise, we can't accept features or bugs within the Swagger/OpenAPI specifications themselves,
or anything that violates the specifications.
-->
<!--- Provide a general summary of the issue in the title above -->
| Q | A
| ----------------------------------- | -------
| Bug or feature request? | Feature
| Which Swagger/OpenAPI version? | 2.0
| Which Swagger-Editor version? | 3.2.6
| How did you install Swagger-Editor? | swagger-editor-dist
| Which broswer & version? | Chrome@latest
| Which operating system? | Windows 10
### Demonstration API definition
def.yaml
```yaml
swagger: "2.0"
info:
version: 1.0.0
title: Swagger Petstore
definitions:
Pet:
required:
- id
- name
properties:
id:
type: integer
format: int64
name:
type: string
tag:
type: string
Pets:
type: array
items:
$ref: '#/definitions/Pet'
Error:
required:
- code
- message
[Truncated]
http://localhost:8080/editor/?url=/specifications/petstore.yaml
```
### Expected Behavior
<!--- If you're describing a bug, tell us what should happen -->
When generating code the models in all the external files should also be generated
### Current Behavior
<!--- If describing a bug, tell us what happens instead of the expected behavior -->
Code generation doesn't generate any model in `def.yaml`, just the controller classes in `petstore.yaml`.
### Possible Solution
<!--- Not obligatory, but suggest a fix/reason for the bug, -->
When performing code generation, the editor should traverse the spec for any external references, then load them in and merge into a single spec before sending to the code generation service.
Note: Swagger UI already have similar feature and is able to display the model from `def.yaml` correctly while viewing `petstore.yaml`
### Context
<!--- How has this issue affected you? What are you trying to accomplish? -->
<!--- Providing context helps us come up with a solution that is most useful in the real world -->
Answers:
username_1: Hi @username_0!
This is actually a Swagger-Codegen limitation, so you should open this issue there: https://github.com/swagger-api/swagger-codegen
I'm going to close this out for now, but if the Codegen folks kick it back to Swagger-Editor for some reason, feel free to ask for a reopen.
BTW - thanks for your PRs and issues recently! It's always appreciated 😄
Status: Issue closed
username_0: @username_1 I'm not sure if it is Swagger-Codegen's problem though...
Correct me if I'm wrong, but as far as I can see, when [performing code generation](https://github.com/swagger-api/swagger-editor/blob/master/src/standalone/topbar/topbar.jsx#L141) from swagger editor, the editor actually calls `POST https://generator.swagger.io/api/gen/servers/{lang}` with the swagger spec in the body. The code gen API does its thing, and respond with a one-off link to download the code in a zip file.
```
swaggerClient.apis.servers.generateServerForLanguage({
framework : name,
body: JSON.stringify({
spec: specSelectors.specJson() // here
}),
headers: JSON.stringify({
Accept: "application/json"
})
})
.then(res => this.handleResponse(res, { type }))
```
In such an architecture, the codegen service only receives the content from the POST request, and would have no idea about the location of the spec file, nor where to find the externally referenced specs.
The way I see it working, is for the editor to traverse and merge the external references to a single spec before sending it to the codegen service.
What do you think?
username_1: @username_0, thanks for the note! I brought this up with the team here, and @webron indicated that the Editor is not meant to do the resolution work for the Codegen.
That being said - there is an opportunity to write a Swagger-Editor plugin that would send the resolved spec to Codegen instead of the unresolved one. If that's something you're interested in doing, let me know!
username_0: I don't mind give it a try. But I'm not familiar enough with the whole system so might need some guidance.
Had a brief look though the code in the 3 projects (editor, ui and js) and here are my findings:
- Swagger UI uses the resolver from `swagger-js` to resolve the internal and external `$ref` for display, the resolved spec is stored in `spec.resolved`. All the referenced models gets copied inline.
- Swagger Editor used to send the resolved spec to codegen until [this change](https://github.com/swagger-api/swagger-editor/commit/81445d9054b4aecfb9b8a1ab5557862fae6c8ec3#diff-155f7d148492eda891d2aa058ede1605), and now sends the original spec instead
- the above change fixed issue #1319 (generated code contains models like `InlineResponse200`), but causes this issue of not supporting external file references
Potential solutions:
1. Revert to use resolved spec for codegen - this is the simplest option but means going back to the `InlineResponse200` problem
1. Option 1, plus rework resolver in `swagger-js` to address the `InlineResponse200` problem (not sure if this is possible as it will be a breaking change in terms of the resolved output)
1. Option 1, plus modify codegen to take the `$$ref` field as hint for model name when generating code
1. Implement new codegen-friendly resolver to be used by editor when generating code
Thoughts?
username_1: @username_0, as of now option 1 is a non-starter as we currently have some work underway that does away with the resolved spec altogether, in favor of an on-demand resolver interface.
As for the others - @webron should be able to shed some light on Codegen support for external references (or lack thereof!) |
gen2brain/go-unarr | 360254643 | Title: no entries in 7z archive
Question:
username_0: Go version: 1.11
Platform: Windows 10
go-unarr installed with the following command:
```
go get github.com/username_1/go-unarr
```
Trying to extract data from a .7z archive.
The archive contains exactly one file. However, go-unarr can't find any entries, e.g. `a.List()` returns an empty slice and `a.Entry()` returns `io.EOF`
My code:
```go
package main
import "github.com/username_1/go-unarr"
func main() {
a, err := unarr.NewArchive("c:\\temp\\something.7z")
if err != nil {
panic(err)
}
defer a.Close()
err = a.Entry()
if err != nil {
panic(err)
}
list, err := a.List()
if err != nil {
panic(err)
}
fmt.Println(list)
err = a.Entry()
if err != nil {
if err == io.EOF {
fmt.Println("No files found")
return
}
panic(err)
}
data, err := a.ReadAll()
fmt.Println(len(data))
}
```
This prints
```
[]
No files found
```
But should print
```
[something.txt]
16
```
Base64 encoded contents of `something.7z`:
```
N3q8ryccAASTCs7jFAAAAAAAAABiAAAAAAAAAF5649QBAA/vu79oZWxsbywgd29ybGQhAAEEBgABCRQABwsBAAEhIQEADBAACAoBuW/kcgAABQEZDAAAAAAAAAAAAAAAABEdAHMAbwBtAGUAdABoAGkAbgBnAC4AdAB4AHQAAAAUCgEAL22u3BFM1AEVBgEAIAAAAAAA
```
Answers:
username_0: Ubuntu 16.04 LTS/Go 1.11 - same issue
username_1: Just tried with your file and I can reproduce it. How is that archive created, anything special? There is also test.7z archive in testdata, also single .txt file in it, and it works with it.
username_1: Hmm, it seems your file starts with BOM https://en.wikipedia.org/wiki/Byte_order_mark , can you try to remove it and packa again etc.
username_0: I have created it using conventional desktop 7zip binary from Sourceforge for Windows
username_1: This is fixed in https://github.com/username_1/go-unarr/commit/b170f54f13fe75763a8e28c0e6cbbf6611ef87bd
Status: Issue closed
|
sambattalio/gameboy | 556313195 | Title: RES b,r
Question:
username_0: opcodes: CB 80-87.
Desc: Reset bit b in register r. (based on opcode)
page 110 of the realboy manual on readme.
Answers:
username_1: @username_0 please fix this immediately
username_0: This is a great opportunity for a community PR! If you would like to help please let me know and I can assign you! 📈 🚀
username_2: @username_0 do these just require a new case in the instruction handler in `proc.c`?
username_0: The cases should be autogen'd already with some flag stuff already set (if its just 1 or 0 automatically thanks to @noyoshi). You can just ctrl-f the opcode (eg. 0x71) and the comment should match the instruction
username_2: I'd like to take this jawn on if that's cool, or another one if @username_1 is hitting this boi up
username_0: Closed thanks to community contributor @username_2 (future amazon engineer btw) 🚀
Status: Issue closed
|
open-telemetry/opentelemetry-rust | 983388304 | Title: Add trace-id as a field for other tracing layers
Question:
username_0: I'm trying to set logging and tracing up for use with Grafana Loki and Grafana Tempo. I'd like to be able to get the otel Trace ID and include it in the logs. I don't see any way to do this.
I'm using:
* `tracing` - to create spans / events within my Rust code
* `tracing-subscriber` to add two subscribers, including one to format logs as JSON.
* `tracing-opentelemetry` to use opentelemetry as a subscriber.
* `opentelemetry` and `opentelemetry-otlp` to report traces to an OTEL collector.
I've looked in a variety of places:
1. Configuring the JSON formatter from `tracing-subscriber` to add the trace ID. I was thinking I could then get the opentelemetry `Context` which should have the trace ID and just add that as a field. But, I couldn't find a way to hook into the JSON formatting and add this code.
2. Configuring the opentelemetry layer to add these fields, thinking that maybe they would just show up. I couldn't find a way to configure this.
3. Adding another layer that added the fields based on retrieving them from opentelemetry. Also couldn't find this.
Is this something that is currently possible? If so, are there any examples how to have the logs include the trace ID? If it's not possible, any thoughts on where it could be added? I'm happy to take a stab at it if it's not already possible.
Answers:
username_1: Generally, it's not possible directly. Without `tracing`, you can get the current span by `get_active_span` method. With `tracing`. Things may be a little complicated. The end goal is to build the log part of opentelemetry here but it may be worth it to explore the option to include trace id and span id in tracing's JSON subscribers.
Personally, I found method 1 should be most reasonable but may also need some input from `tracing` side.
@username_2 any thoughts?
username_2: Not sure that there is a great way of doing this currently, you can manually get an otel context from tracing via [Span::current().context()](https://docs.rs/tracing-opentelemetry/0.15.0/tracing_opentelemetry/trait.OpenTelemetrySpanExt.html#tymethod.context) and then get the id via [context.span().span_context().trace_id()](https://docs.rs/opentelemetry/0.16.0/opentelemetry/trace/trait.TraceContextExt.html#tymethod.span), which would then let you add that in any log locations, but it's not very ergonomic.
username_0: Would it be possible to add some kind of hook to the log formatter or the log layer that retrieved additional fields? Then I could use that to add a hook that retrieved the otel trace and added that when formatting.
username_1: That sounds like an interesting topic to explore. We could try something on the `tracing` side
username_0: Filed an issue in `tracing` to see if this would be possible to add over there. |
linkedin/cruise-control | 476083913 | Title: [RackAwareGoal] Insufficient number of racks to distribute each replica (Current: 1, Needed: 2)
Question:
username_0: Hello,
I have the following error when trying to display "Cruise Control Proposal" :
ERROR: Error processing GET request '/proposals' due to: 'com.linkedin.kafka.cruisecontrol.exception.KafkaCruiseControlException: com.linkedin.kafka.cruisecontrol.exception.OptimizationFailureException: [RackAwareGoal] Insufficient number of racks to distribute each replica (Current: 1, Needed: 2).'.
I don't understand why, because I have two racks in my 4 nodes cluster.
Could yo help me ?
Regards
<NAME>
Status: Issue closed
Answers:
username_0: OK I just look into the server.log and the broker.rack is not taken into account. |
panr/hugo-theme-terminal | 891835614 | Title: home page can't show content?
Question:
username_0: Start building sites …
Built in 65 ms
Error: Error building site: failed to render pages: render of "page" failed: "D:\blog\demo\themes\terminal\layouts\_default\index.html:17:23": execute of template failed: template: _default/index.html:17:23: executing "main" at <$paginator.Pages>: error calling Pages: runtime error: invalid memory address or nil pointer dereference<issue_closed>
Status: Issue closed |
filipedeschamps/rss-feed-emitter | 791790367 | Title: Certificate for request
Question:
username_0: Is there an option to pass an certificate to the request?
Answers:
username_1: Not at present. What kind of certificate are you looking to pass?
username_0: https://github.com/request/request#tlsssl-protocol
ca-cert
We use a self signed cert, so I need to pass the cert to the request.
username_1: you'll probably want to look at how this would be done with `node-fetch`, i'm in progress attempting to convert from request to something still supported
username_0: I moved in all of my projects to https://www.npmjs.com/package/got where I used request.
Got is nice to use and behaves similar to request.
username_1: Fair enough. I'm trying to use a more browser-friendly API, since node-fetch is the node impl of the web api of the same name. That's my motivation for that. |
balena-os/meta-balena | 487582826 | Title: Openvpn was dead on device, and didn't restart
Question:
username_0: balenaOS 2.31.5+rev1, Fin. Marked offline for 4 hours, but still logs. Another device on the same network was available, and could connect across. The openvpn service was dead, but logs are rotated and we couldn't gather any info
```
# systemctl status openvpn
● openvpn.service - OpenVPN
Loaded: loaded (/lib/systemd/system/openvpn.service; enabled; vendor preset: enabled)
Active: inactive (dead) since Fri 2019-08-30 12:13:47 UTC; 4h 39min ago
Process: 2696 ExecStart=/usr/sbin/openvpn --writepid /var/run/openvpn/openvpn.pid --cd /etc/openvpn/ --config /etc/openvpn/openvpn.conf --connect-retry 5 120 (code=exited, status=0/SUCCESS)
Main PID: 2696 (code=exited, status=0/SUCCESS)
Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.
```
No other service was failed
Answers:
username_1: @username_0 this is strange. The service is set to restart. Wonder why systemd decided not to do that..
```
zubairlk@zubair-xps-resin:~/resin/yocto/resin-intel$ docker run -v /usr/bin/qemu-arm-static:/usr/bin/qemu-arm-static --rm -i -t resin/resinos:2.31.5_rev1.dev-fincm3 /bin/bash
bash-4.4# cat /lib/systemd/system/openvpn.service
[Unit]
Description=OpenVPN
Requires=prepare-openvpn.service bind-etc-openvpn.service
After=syslog.target network.target prepare-openvpn.service bind-etc-openvpn.service time-sync.target
ConditionFileNotEmpty=/etc/openvpn/openvpn.conf
[Service]
PrivateTmp=true
Restart=always
RestartSec=10s
#Adjust OOMscore to -1000 to disable OOM killing for openvpn
OOMScoreAdjust=-1000
PIDFile=/var/run/openvpn/openvpn.pid
ExecStart=/usr/sbin/openvpn --writepid /var/run/openvpn/openvpn.pid --cd /etc/openvpn/ --config /etc/openvpn/openvpn.conf --connect-retry 5 120
[Install]
Alias=openvpn-resin.service
WantedBy=multi-user.target
bash-4.4#
```
username_1: Configures whether the service shall be restarted when the service process exits, is killed, or a timeout is reached. The service process may be the main service process, but it may also be one of the processes specified with ExecStartPre=, ExecStartPost=, ExecStop=, ExecStopPost=, or ExecReload=. When the death of the process is a result of systemd operation (e.g. service stop or restart), the service will not be restarted. Timeouts include missing the watchdog "keep-alive ping" deadline and a service start, reload, and stop operation timeouts.
So unless systemd was asked to disable the vpn service. The openvpn service should have restarted..
The `(code=exited, status=0/SUCCESS)` is quite suspicious as the daemon should never have just exited..
Will close this issue for now unless we see it again.
The device was in that state momentarily and restarting the service recovered it.
Status: Issue closed
|
CMPUT301F20T41/boromi | 733847472 | Title: Develop returning book logic
Question:
username_0: **Description**
Develop backend logic for returning a book
1. User should be able to request to return a book
2. User should be able to cancel a request to return a book
3. User should be able to return a book
Status: Issue closed
Answers:
username_1: Log for request returns are done |
Innovattic/range-seek-bar | 459456597 | Title: keepMinWindow() code working twice in onTouchEvent
Question:
username_0: In RangeSeekBar.kt code,
line 262 to 270 is in keepMinWindow(selectedThumb)
line 271 calls keepMinWindow(selectedThumb)
So keepMinWindow(selectedThumb) called twice.
Answers:
username_1: Fixed in 9f478813b6d0c265b98eaf9bfad9746650686987
Status: Issue closed
|
paulageronimo/insta | 941215347 | Title: Project Feedback!
Question:
username_0: Nice work and congrats on completing your final assignment! Parse is a great tool for quickly prototyping the backend for many apps. Even if you choose to ultimately replace Parse with a more conventional backend (e.g., Rails, Django, Node.js), that wouldn't really change the iOS code.
At this point, even though we've been building fairly simple iOS apps, we've covered a lot of the core concepts involved in iOS development. A lot of time and code in modern iOS apps is spent putting on the final 10% of polish, which is surprisingly time consuming and technically challenging. Here's a few additional topics that we didn't cover, but you should look into if you want to continue iOS development:
- **Core Data**. This isn't used by Facebook and many other companies, but is still asked about in iOS interviews.
- **Multithreading**. Grand Central Dispatch and NSOperationQueue.
- **Custom Views**. We used custom views via pods, and eventually you'll need to make your own!
- **Custom Interactive View Controller Transitions**. If you're tired of view controllers animating in from the right or from the bottom, then you'll need to implement transitions yourself.
- **Gesture recognizers**. We used a few tap gesture recognizers, and you'll also commonly need to use the pan and pinch gesture recognizers.
- **Unit and integration testing**. Once you're in an actual company (or earlier!), you'll need to start actually testing your code.
Status: Issue closed
Answers:
username_1: Thanks! |
instagram4j/instagram4j | 611218790 | Title: Error message on InstagramGetUserFollowersRequest
Question:
username_0: Hello,
I have been trying to get a user's followers, and I was succeeding all the times until yesterday, when all of a sudden I got this message:
`InstagramGetUserFollowersResult(super=StatusResult(status=fail, message=Please wait a few minutes before you try again., spam=false, lock=false, feedback_title=null, feedback_message=null, error_type=null, checkpoint_url=null), big_list=false, next_max_id=null, page_size=0, users=null)
`
Is there any clue what is happening?
Answers:
username_1: Followers working fine for me - got the same problem with the InstagramGetMediaLikersResult: Status "fail" and StatusMessage "Please wait a few minutes before you try again."
Could you solve your problem?
username_2: Hey! The issue is that Instagram itself doesn't want their users to use bots to interact with the site, therefore, they have a very good system to detect this type of behavior. Executing the same request over and over from the same IP is definitely this type of behavior so you got a temporary ban from them. I didn't search for how long the ban least, but I suppose it will be around 24 hours. Also, the ban is for a specific endpoint, so you should be still able to log in and do other tasks.
username_0: Thanks a lot! Yes, it seems that this is the issue.
Status: Issue closed
|
avaneev/r8brain-free-src | 960319255 | Title: [REQ] Foobar2000 plugin
Question:
username_0: Hi there', it would be extremely cool to have a version of this great resampler for FB2K users (me too).
- https://www.foobar2000.org/
- https://www.foobar2000.org/components
- https://hydrogenaud.io/index.php?board=28.0
Hope that inspires !
Answers:
username_1: Thanks for the message, but creating some "custom versions" is beyond my plans. I think it's Foobar that can incorporate r8brain, not myself. Audirvana for example finally incorporated r8brain.
Status: Issue closed
|
nov/fb_graph2 | 205855079 | Title: fan_count field requires version v2.6 or higher
Question:
username_0: i am getting this error on getting a fan count of a page.
Answers:
username_1: @username_0
the gem supports Fb graph api version 2.3.
[supported version](https://github.com/username_2/fb_graph2/blob/6febadba3d821c3897fe126501ccd9f7ad27c0ec/lib/fb_graph2.rb)
username_1: @username_0
Check this branch in pull request for latest version 2.8
https://github.com/username_2/fb_graph2/pull/121
Status: Issue closed
|
red/red | 164284616 | Title: write/binary and read/binary does'nt work as expected
Question:
username_0: ```
write/binary %button.gif read/binary http://www.rebol.com/how-to/graphics/button.gif
downloaded: %button.gif
loaded: load http://www.rebol.com/how-to/graphics/button.gif
view [image downloaded return image loaded]
```
There is a black line beneath the downloaded %button.gif and not on the loaded button.gif<issue_closed>
Status: Issue closed |
isaacg1/pyth | 171353941 | Title: ' returns list of bytes
Question:
username_0: If you want to fetch a website with `'` (e.g. `'"http://www.google.com`), you'll receive a list of bytes.
This is not a obviously not the desired result, because non of the operations take bytes as parameters.
A fix would be to convert the bytes to strings.
Answers:
username_1: Fixed by 125b8bf
Status: Issue closed
|
hassio-addons/addon-node-red | 805161422 | Title: Two networks issues
Question:
username_0: I can't find any option to bind node-red or the local nodes to a dedicated interface.
## Expected behavior
The local nodes able to communicate with echo devices.
Status: Issue closed
Answers:
username_1: From an add-on perspective, there is not much I can do. Please report this issue with the node you've mentioned, as those need to be able to handle that.
As in more general advice, when using multiple networks in this world of IoT, it is easier to keep a single interface on your server, while routing the appropriate traffic over the multiple VLANs. For example, by using IGMP proxies and mDNS repeaters/reflectors. Simply because there are many pieces of software out there, that don't handle multiple interfaces correctly. |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.