repo_name
stringlengths 4
136
| issue_id
stringlengths 5
10
| text
stringlengths 37
4.84M
|
---|---|---|
haskell/bytestring | 311955753 | Title: Remove the type argument from the Builder internals
Question:
username_0: The `BuildSignal` type has a type argument that appears to be useless:
```
data BuildSignal a =
Done {-# UNPACK #-} !(Ptr Word8) a
| BufferFull
{-# UNPACK #-} !Int
{-# UNPACK #-} !(Ptr Word8)
(BuildStep a)
| InsertChunk
{-# UNPACK #-} !(Ptr Word8)
S.ByteString
(BuildStep a)
```
At least that's the conclusion of [this StackOverflow answer](https://stackoverflow.com/a/49652375). As evidence, Daniel Wagner has removed the type argument in [this commit](https://github.com/dmwit/bytestring/commit/0c5bec644c098c7a9cb445279c5039d591a54638).
If the type argument does in fact serve a purpose it would be great to know what it is.
Answers:
username_1: @dcoutts @simonmichael To comply with the [Chesterton's fence](https://en.wikipedia.org/wiki/Wikipedia:Chesterton%27s_fence) principle, as you two added the `BuildSignal` type in 6e52436903bc7c302bd7074d9a450f2413825607, can you please chime in and tell us if this type-parameter can be removed without penalties?
username_2: Thanks for asking. The type parameter was there to support the ‘Put’ monad
(a Writer spezialized to fill a buffer during the computation of its
value). It seems from
http://hackage.haskell.org/package/bytestring-0.10.8.2/docs/doc-index-P.html
that this monad has been removed since.
So removing the type parameter should be fine. If it typechecks, it will be
good. There’s no ST monad like protection depending on that parameter.
Status: Issue closed
username_0: Thanks for clearing that up, @username_2! The `Put` monad is in fact still exported but it doesn't show up in the haddock index as it's hidden with the rest of `Data.ByteString.Builder.Internal`. Once https://github.com/haskell/bytestring/commit/6ab380050aadbda90f5fac2112df87b96709a88e is released, it will be visible again. |
danott/react-rails-form-helpers | 724365623 | Title: React Legacy Context deprecation.
Question:
username_0: Hello @username_1
Great work on this package as this was exactly what we were looking for for our use case. I just have one question. Since this package uses the legacy context API, which React is now working towards removal of in the future major version, are there any plans to convert this to use the new context API instead?
Answers:
username_1: Absolutely. Issue #17 is where I first noted the need to modernize to current React idioms. With official plans to remove the legacy context API in the next major version, it sounds like we're transitioning from a quality-of-life change to a necessary-for-survival change. |
Computational-Content-Analysis-2020/Readings-Responses | 567351289 | Title: Images, Art & Video - LeCun, Bengio & Hinton 2015
Question:
username_0: LeCun, Yann, <NAME> & <NAME>. 2015. [“Deep Learning.”](https://www.nature.com/articles/nature14539) _Nature_ **521**: 436-444.
Answers:
username_1: I notice that CNN and RNN are often applied to different scenarios. Can we say that when analyzing images, CNN is the norm and when analyzing sequence, RNN is the norm? Is RNN the most commonly used technique in NLP?
username_2: Yes CNN is the norm for dealing with images for a variety of reasons including the fact they were specifically developed for dealing with image inputs and are very good at dimensionality reduction which is useful for high dimensional inputs like images, where each pixel can each be one to three features. RNNs are not the commonly used in NLP anymore and were not ever particularly dominant in NLP, but modifications of RNNs like LSTMs/GRUs are standard.
username_3: The authors compare feature weights to "knobs" on the "input-output function of the machine" and go on to note that in most deep-learning applications, there are many (possible hundreds of millions) of these weights. Is it then possible/ever worthwhile to analyze the importance of all weights like one would compare regression coefficients? Obviously, it is possible to grad information regarding a certain features weight but are there systems to analyze all weights in a deep learning network?
username_4: This is a great overview of the state of deep learning. The author predicts that "major progress in artificial intelligence will come about through systems that combine representation learning with complex reasoning" (p. 442). But it seems the approach we use today still relies largely if not entirely on statistical learning. What advances have computer scientists and linguists made in incorporating the symbolic and statistical approaches to NLP?
username_5: What does it mean for a machine to understand? Does that imply an ability to interpret and to even hold meaning? Could it be, machines may be moving towards semiosis with spontaneous symbol creation and the ability to interpret those symbols?
username_6: This paper reviews the development history of deep learning. As is mentioned by the author, a general approach for supervised learning is to tune the parameters to minimize the distance of the predictions to the actual observations. While this paper is a brief review of the technology without digging into the algorithm and the math, I wonder how the number of parameters in a neural network can be optimally chosen. That is, how many layers is the best for the classification task, and how many neutrons is the best for each hidden layer? Would the tuning of parameters vary with different tasks, and how, if any? And furthermore, is the choice of the number of parameters can be made automatically in the learning process or does it requires any pre-definition?
username_7: I'm interested in the practice of generating more training data from existing images when training computer vision models. The authors explain the process well, and it makes sense small randomized perturbations to an image would help boost the size of the training set without compromising the data. Are there also ways to do this for other types of data sets (i.e. text)?
username_8: The authors hold that unsupervised learning had a catalytic effect in reviving interest in deep learning, yet this review does not focus on this direction. Could you give us more examples on the tasks that unsupervised deep learning can contribute to in the social sciences settings?
username_9: I'm wondering if we can explain more about the hyperparameter tuning process of deep learning algorithms? Also, like others have mentioned, how do the weights matter when we have millions of parameters in our model?
username_10: I am interested in the architecture of ConvNet. As mentioned in the article, '' the role of the convolutional layer is to detect local conjunctions of features from the previous layer", I am wondering what the advantage of this architecture compared with the weights used in simple neural network?
username_11: I am wondering how the algorithms know what the "right" translation is from image to text, since even different persons can give different descriptions on the same image, especially when seen from different aspects (Wittgenstein).
username_12: This paper discusses fundamental problems of deep learning. I am wondering what is the criterion for choosing the number of layers when using deep learning to do image analysis. Does each layer need to have plausible meanings or we decide on the number of layers on what induces the best outcome?
username_13: I'm interested, if wary, of artificial intelligence in the wild as these authors propose (although what they specifically propose is "combining representation learning with complex reasoning"). These authors focus very exclusively on representational machine learning (which does, as output) resemble some vague approximation of "learning" because, as they note, data is processed through multiple layers of abstraction. Is this an exhaustive taxonomy of ML techniques?
I'm thinking specifically of techniques like translational machine learning, which seem to be an application of representational learning.
username_14: I am aware that interpretability and causality may not be the priority of deep learning models as there has been no discussion of such issues in the reading, but I can't resist wondering if social scientists and/or computer scientists have made progress on these topics.
username_15: Usually, we divide the image to RGB color images and then use them as inputs. I wonder how this split affect the performance, and what else could we pre-process the image to improve our performance.
username_16: So can I conclude that CNN is much more useful in the scenario that images serve as the research objectives? I am wondering whether there are other areas where CNN can come in very handy.
username_17: I'm still quite confused about the details of this approach. Why do we combine RNNs with ConvNets in processing images?
username_18: Based on previous comments, it seems to me that when talking about deep learning, what social science people care about is still "interpretability". For example, the interpretability of the chosen method, of deep model architecture design, and most importantly, of the results. Deep learning community does not concern too much about interpretability because they usually have fixed, objective criteria (e.g., BLEU score, imagenet evalution). However, it might be hard for the social science community to generate such a clear evaluation framework. From this perspective, is it valid to say that the way social science community apply deep model may be quite different from computer science? While the latter focused more on direct prediction/generation, the previous may use the deep model more as part of the experiment design?
username_19: Whenever deep learning is discussed, many people fear the black box of the algorithm, complaining nobody knows what is happening. As a social scientist, it is also important to illuminate the underlying phenomenon not only to make predictions. Under this situation, what would be the role of social scientists who would like to incorporate deep learning techniques?
username_20: LeCun et al. provide a great overview of the major machine learning architectures and discuss how convolutional neural networks have been used in various contexts. The combination of ConvNets with Recurrent neural networks for image captioning is interesting and seems promising for the industry; however, I’m curious about how deep learning and ConVnets have been used in social science research?
username_21: I think @username_3 's question is interesting to me. As the author mentioned the function of the weights in the machine learning models, we do need to have more insights into it. Especially, for different tasks(classification, feature extraction or signal transformation), are these weights change with the same criteria or different? |
mwaskom/seaborn | 957426087 | Title: Clustermap method/metric limitation
Question:
username_0: Since the function used in the _calculate_linkage_scipy function was hierarchical.linkage, certain combinations of distance metrics and clustering methods are not allowed, e.g. ward method requires the euclidean metric.
Thus I suggest to separate this function into two steps:
from scipy.spatial import pdist
which calculates the distance matrix, then
from scipy.hierarchical import f'{method}'
which use the specific method for clustering
Answers:
username_1: Can you please provide a reproducible example of the problem you're having, along with your versions of seaborn and scipy? Thanks.
username_0: The versions of seaborn and scipy are both the latest, I suppose.
Use the tutorial dataset iris as a demonstration:
`import seaborn as sns; sns.set_theme(color_codes=True)
iris = sns.load_dataset("iris")
species = iris.pop("species")
g = sns.clustermap(iris,metric='correlation',method='ward')`
the following error message would pop up due to the limitations of scipy.cluster.hierarchy.linkage():
ValueError: Method 'ward' requires the distance metric to be Euclidean
But my current work would like the distance metric to be in correlation, which limits the clustering methods that could be used.
username_1: You can check with `import seaborn; print seaborn.__version__`, and likewise with scipy.
username_0: I recognize this is due to the limitation of the scipy function scipy.cluster.hierarchy.linkage.
Which could be traced back to the adoption of the linkage function in the matrix.py:
```
def _calculate_linkage_scipy(self):
linkage = hierarchy.linkage(self.array, method=self.method,
metric=self.metric)
return linkage
```
Thus, I was hoping if the current version could be changed into a combination of other functions.
Specifically:
`from scipy.spatial.distance import pdist`
`dist_matrix = pdist(matrix,metric)` which obtains a distance matrix
`from scipy.cluster.hierarchy import f'{method}'` which imports the specified clustering method, e.g. ward
`linkage = ward(dist_matrix)` which obtains the linkage matrix which the same as the output of the linkage function.
I've made a very scuffed version using the built-in exec() function to make this concept work, and I'm hesitating if I should make a pull request for further examination since I have very little faith in my own work.
The adoption I made is like the following:
```
def _calculate_linkage_scipy(self):
from scipy.spatial.distance import pdist
dist = pdist(self.array, metric=self.metric)
lo = locals()
dummy='link'
exec(f'from scipy.cluster.hierarchy import {self.method}',{},lo)
exec(f'dummy = {self.method}(dist)',{},lo)
linkage=lo['dummy']
return linkage
```
I've tested it in my own work, and it somehow functioned, I'm not sure if it's reliable enough though.
username_1: This isn't an oversight in the scipy code, it's actively preventing you from doing something that doesn't make sense.
You can pass a precomputed linkage matrix to `clustermap`, so if you're absolutely determined to accomplish this for some reason, that is what you could do. But I don't think seaborn should hack its way around valid constraints in scipy.
username_0: Thanks for the answering my question, I guess I should review the scipy document more thoroughly to better understand the method that I'm using.
Status: Issue closed
|
chrisnharvey/magicLAMP | 843389157 | Title: Setting to redirect to https from http
Question:
username_0: **Is your feature request related to a problem? Please describe.**
No
**Describe the solution you'd like**
Include a switch to redirect http to https OR (even better) have https as the default option.
**Describe alternatives you've considered**
Manually navigate to https://...
**Additional context**
Google and other players now forcing redirect to https wherever possible, so why not develop this way. |
ohsewon/test | 354529675 | Title: [PR][CLOSED] [License] Clean up bolierplates
Question:
username_0: <a href="https://github.sec.samsung.net/myungjoo-ham"><img src="https://github.sec.samsung.net/avatars/u/30515?" align="left" width="96" height="96" hspace="10"></img></a> **Issue by [myungjoo-ham](https://github.sec.samsung.net/myungjoo-ham)**
_Wednesday Jul 11, 2018 at 06:55 GMT_
_Originally opened as https://github.sec.samsung.net/STAR/nnstreamer/pull/260_
----
- Remove alternative license (MIT) from boilerplate; apply LPGL 2.0+ for all
- Shorten the license statement.
**Self evaluation:**
1. Build test: [ ]Passed [ ]Failed [*]Skipped
2. Run test: [ ]Passed [ ]Failed [* ]Skipped
----
_**[myungjoo-ham](https://github.sec.samsung.net/myungjoo-ham)** included the following code: https://github.sec.samsung.net/STAR/nnstreamer/pull/260/commits_<issue_closed>
Status: Issue closed |
openshift/openshift-docs | 754506057 | Title: [enterprise-4.6] Issue in file installing/installing_rhv/installing-rhv-default.adoc
Question:
username_0: <!--
Please submit only documentation-related issues with this form, or follow the
Contribute to OpenShift guidelines (https://github.com/openshift/openshift-docs/blob/master/contributing_to_docs/contributing.adoc) to submit a PR.
-->
### Which section(s) is the issue in?
Preparing the network environment on RHV
and
Deploying the cluster
### What needs fixing?
From OCP 4.6 RHV IPI requires two static ip address. Only for
api.<cluster-name>.<base-domain> <ip-address>
*.apps.<cluster-name>.<base-domain> <ip-address>
This is not valid anymore:
The third static IP address does not require a DNS entry. The OpenShift Container Platform cluster uses that address for its internal DNS service.
Remove from Deploying the cluster part task: l.For Internal DNS Virtual IP, enter the static IP address you set aside for the cluster’s internal DNS service. |
streamlit/streamlit | 1008399251 | Title: Mention integer length limitations in `number_input`
Question:
username_0: **Link to doc page in question (if any):** https://docs.streamlit.io/en/stable/api.html#streamlit.number_input
**Name of the Streamlit feature whose docs need improvement:** `st.number_input`
**What you think the docs should say:**
Hi folks! Found out when I was copy-pasting the integers generated by `torch.seed()` into `st.number_input`, that the last few digits went to zero after enter is pressed. There appears to be a limit for how long an integer input can be, which is something we don't deal with in Python, given its capability to natively handle big integers.
This appears to be floating point behaviour where the number ran out of significands. Digging around in the code base, seems that the Python side of the [widget source code](https://github.com/streamlit/streamlit/blob/develop/lib/streamlit/elements/number_input.py) uses integers natively. Thus, I'm guessing that the limit to integer length is inherent to how Javascript stores the number internally before passing it to the Streamlit application. But I digress.
Anyway, I thought it would be worth mentioning `number_input`'s limitation in handling big integers. As a workaround, users can use `st.text_input` and post-process the input values instead. This docs improvement should be relevant to folks building machine learning apps, where large ints can be involved in setting RNG seeds.
I'll put in a PR if the maintainers are OK w/ the proposed improvement.
Answers:
username_1: Thanks for pointing this out @username_0!
I believe the limitation is probably caused by how we serialize values being passed between client and server. We'll need to figure out the min/max `number_input` values allowed, but I agree that this should probably be mentioned in the docs somewhere.
(CC @snehankekre)
username_0: I see! For starters, I was thinking about a notes section like this:
_Integers beyond the range of `+/- (1 << 53) - 1` will be converted to float and cannot be represented with perfect precision. This is due to integer size limitations when serializing values between the Python server and Javascript client._
Then for each relevant arg, we can just append a short _"See notes for known limitations on range of values"_
The float limitations of JS are similar to Python's, so I thought there's no need to mention them. |
ant-design/ant-design | 179432671 | Title: 在Form中使用Select时,Select的onChange回调无法触发
Question:
username_0: {systemOptions}
</Select>
</FormItem>
```
systemOptions 是这样生成的
```
const businessInfo={ A:'test1', B:'test2' };
const systemOptions = businessInfo.map(system=><Option value={system} key={system}>{system}</Option>);
```
codepen正在学习使用,所以暂时无法提供可重现的示例T_T
请帮忙
#### 可重现的在线演示
<!-- 请修改并 Fork http://codepen.io/username_1/pen/KgPZrE?editors=001 -->
Answers:
username_1: https://github.com/ant-design/ant-design/issues/1353
Please read [documentation](http://ant.design/#/) & [FAQ](https://github.com/ant-design/ant-design/wiki/FAQ) and search [issues](https://github.com/ant-design/ant-design/issues) before open an issue, THX!
It will be better if you read [smart questions](http://www.catb.org/~esr/faqs/smart-questions.html)([提问的智慧](http://doc.zengrong.net/smart-questions/cn.html)).
Status: Issue closed
username_0: 在线示例: http://codepen.io/solide/pen/BLRGKV?editors=1111
username_0: 已解决 谢谢
username_2: 请问你是怎么解决的?我现在也遇到在解决这个问题。在线示例已经看不了了啊 |
uniVocity/univocity-parsers | 173677272 | Title: Make headers available on `parser.beginReading` and `processor.processStarted`.
Question:
username_0: If header extraction is enabled we collect headers when parsing the first valid row. Currently, headers are only available once a call to `parseNext` or `processor.rowProcessed` is made.
Note: there are many corner cases around this.
Answers:
username_0: Done. Another 2.3.0-SNAPHOT version has been generated to include this enhancement.
Status: Issue closed
|
rfinnie/smartthings | 281273253 | Title: Health Check capability problems
Question:
username_0: Hi,
Having capability "Health Check" will cause definitive problems for all devices that don't implement it, and one of those is Aeon Range Extender 6 too -- resulting in device stopping to work as soon as first Health Check poll occurs.
Removing capability "Health Check" will completely remedy this problem without loosing anything, IMHO. |
GoogleContainerTools/skaffold | 614818082 | Title: Error building on GCB, deploying to local Docker for Desktop Kubernetes cluster
Question:
username_0: I'm trying to build a container on GCB, and then deploy it on my local Docker for Desktop Kubernetes cluster, but I seem to be hitting auth issues. The container builds fine, but the Kubernetes pod gets stuck in an error state. I went through https://cloud.google.com/container-registry/docs/advanced-authentication#gcloud-helper and set `gcloud` as the credential helper via `gcloud auth configure-docker`, but the problem still seems to persist.
Using this example: https://github.com/GoogleCloudPlatform/cloud-code-samples/tree/master/java/java-hello-world
```
$ pwd
/Users/michihara/Code/cloud-code-samples/java/java-hello-world
$ skaffold version
v1.8.0
$ gcloud version
Google Cloud SDK 289.0.0
alpha 2020.02.25
app-engine-java 1.9.79
app-engine-python 1.9.90
beta 2020.02.25
bq 2.0.56
cloud-datastore-emulator 2.1.0
core 2020.04.10
gsutil 4.49
minikube
skaffold
$ gcloud auth list
Credentialed Accounts
ACTIVE ACCOUNT
* <EMAIL>
To set the active account, run:
$ gcloud config set account `ACCOUNT`
$ gcloud auth configure-docker
WARNING: Your config file at [/Users/michihara/.docker/config.json] contains these credential helper entries:
{
"credHelpers": {
"us.gcr.io": "gcloud",
"asia.gcr.io": "gcloud",
"marketplace.gcr.io": "gcloud",
"gcr.io": "gcloud",
"eu.gcr.io": "gcloud",
"staging-k8s.gcr.io": "gcloud"
}
}
Adding credentials for all GCR repositories.
WARNING: A long list of credential helpers may cause delays running 'docker build'. We recommend passing the registry name to configure only the registry you are using.
gcloud credential helpers already registered correctly.
$ skaffold run -p cloudbuild --default-repo gcr.io/chelseamarket/p
Generating tags...
- java-hello-world -> gcr.io/chelseamarket/p/java-hello-world:latest
Checking cache...
- java-hello-world: Found Remotely
Tags used in deployment:
- java-hello-world -> gcr.io/chelseamarket/p/java-hello-world:latest@sha256:446df95cdad401e4aadf5ccc137648a725ba8d7f25aa0a2b26017f4f262f1997
Starting deploy...
- deployment.apps/java-hello-world configured
- service/java-hello-world-external configured
Waiting for deployments to stabilize...
[Truncated]
PodScheduled True
Volumes:
default-token-q4ngt:
Type: Secret (a volume populated by a Secret)
SecretName: default-token-q4ngt
Optional: false
QoS Class: BestEffort
Node-Selectors: <none>
Tolerations: node.kubernetes.io/not-ready:NoExecute for 300s
node.kubernetes.io/unreachable:NoExecute for 300s
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Scheduled 49s default-scheduler Successfully assigned default/java-hello-world-6d47c78bf9-xpm7f to docker-desktop
Normal BackOff 24s (x3 over 47s) kubelet, docker-desktop Back-off pulling image "gcr.io/chelseamarket/p/java-hello-world:latest@sha256:446df95cdad401e4aadf5ccc137648a725ba8d7f25aa0a2b26017f4f262f1997"
Warning Failed 24s (x3 over 47s) kubelet, docker-desktop Error: ImagePullBackOff
Normal Pulling 13s (x3 over 48s) kubelet, docker-desktop Pulling image "gcr.io/chelseamarket/p/java-hello-world:latest@sha256:446df95cdad401e4aadf5ccc137648a725ba8d7f25aa0a2b26017f4f262f1997"
Warning Failed 12s (x3 over 47s) kubelet, docker-desktop Failed to pull image "gcr.io/chelseamarket/p/java-hello-world:latest@sha256:446df95cdad401e4aadf5ccc137648a725ba8d7f25aa0a2b26017f4f262f1997": rpc error: code = Unknown desc = Error response from daemon: unauthorized: You don't have the needed permissions to perform this operation, and you may have invalid credentials. To authenticate your request, follow the steps in: https://cloud.google.com/container-registry/docs/advanced-authentication
Warning Failed 12s (x3 over 47s) kubelet, docker-desktop Error: ErrImagePull
```
Answers:
username_1: The meat of the error is:
`unauthorized: You don't have the needed permissions to perform this operation, and you may have invalid credentials. To authenticate your request, follow the steps in: https://cloud.google.com/container-registry/docs/advanced-authentication`
Does this command work for you?
`docker pull gcr.io/chelseamarket/p/java-hello-world:latest`
username_0: ```
$ docker pull gcr.io/chelseamarket/p/java-hello-world
Using default tag: latest
latest: Pulling from chelseamarket/p/java-hello-world
24f0c933cbef: Already exists
69e2f037cdb3: Already exists
3e010093287c: Already exists
aebd67d1ef6f: Already exists
d97439fb32b3: Already exists
a0e31a817843: Already exists
5b40285b7db8: Already exists
Digest: sha256:446df95cdad401e4aadf5ccc137648a725ba8d7f25aa0a2b26017f4f262f1997
Status: Downloaded newer image for gcr.io/chelseamarket/p/java-hello-world:latest
gcr.io/chelseamarket/p/java-hello-world:latest
```
That worked. Had a discussion with @username_3 about this and the issue seems to be that I don't have `ImagePullSecrets` configured for this D4D cluster (https://blog.container-solutions.com/using-google-container-registry-with-kubernetes) so this is probably not a Skaffold bug, but I thought I'd keep this issue open for discussion. Feel free to close if you think there's nothing to be done here.
username_2: Yeah, this is not a Skaffold bug. I wonder what Skaffold could do better though. @username_0 any idea?
username_0: Haven't really thought this through but could Skaffold set up this `ImagePullSecret` for me? Or would you say that is not Skaffold's responsibility
username_3: I'm not sure if Skaffold is the right place for it, but it does feel like there should be a tool for creating the secret and patching the service account. |
buefy/buefy | 1147114867 | Title: Documentation: direct links are broken
Question:
username_0: I use the [I'm feeling lucky](https://chrome.google.com/webstore/detail/im-feeling-lucky/cnlabakikmdekpfaflaihcepfkjopgll?hl=en) Chrome extension and I used to simply hit Control-T, backslash, tab and type "Buefy button" to go straight to that page. This puts extra seconds to this workflow.
Answers:
username_0: I use the [I'm feeling lucky](https://chrome.google.com/webstore/detail/im-feeling-lucky/cnlabakikmdekpfaflaihcepfkjopgll?hl=en) Chrome extension and I used to simply hit Control-T, backslash, tab and type "Buefy button" to go straight to that page. This puts extra seconds to this workflow.
username_1: Just fixed!
Status: Issue closed
username_0: Thanks! |
markohlebar/Import | 181926534 | Title: i can't install the key bindings
Question:
username_0: 
Answers:
username_1: Hi @username_0,
can you please check `Xcode -> Preferences -> Key Bindings`, and search for `Import` there?
Do you see `Editor -> Import -> ☝️` menu in Xcode when you select a source file?
username_0: @username_1
<code>Import</code> is there!

but I can't see Editor -> Import -> ☝️ menu in Xcode.
username_2: I have the same problem ! I still can't see import in -> System Preferences... -> Extensions -> All and Editor -> Import -> ☝️ menu in Xcode @username_1
username_1: Hi @username_0, did you do this step `(OSX 10.11 only) sudo /usr/libexec/xpccachectl` when you were installing the app as described in [Installation section](https://github.com/username_1/Import#installation-guide-xcode-8--osx-1011)
username_1: @username_2 which version of macOS / Xcode are you running?
username_2: @username_1 OSX 10.11.6 / Xcode 8
username_3: @username_2 @username_1 I find the problem too, and how to solve it? MacOS / Xcode 's version is same as @username_2 's.
username_4: @username_1 @username_3 I find the problem too, MacOS / Xcode 's version is OSX 10.11.6 / Xcode 8.1
username_5: @username_1
How to uninstall `import`?
I want to reinstall.
username_1: @username_5 can you try deleting the Import.app? |
GoogleChrome/lighthouse | 299089508 | Title: Lantern: Use onload handlers to create dependencies of trace events
Question:
username_0: When an image has an lengthy onload handler decode, we can connect that long task to the loading of the image. This would help with smoke testing our byte efficiency audits when using Lantern-based estimates too.
Brief investigation for onload:
* The parent event fired has `event.args.src_func: 'ImageNotifyFinished'`
* The first child event has `event.args.data.type: 'load'`, `event.name: 'EventDispatch'`
there's no URL unfortunately but we can probably connect it to an image resource based on timestamp
Answers:
username_1: @username_0 i wonder if this is fixed by #5504 ?
username_0: Yeah good call I suspect it might be
username_2: `this` being the entire issue here, or just "there's no URL unfortunately but we can probably connect it to an image resource based on timestamp" ?
username_0: part would be fixed by async stacks, but I have not looked into it.
username_0: This is actually super important for LCP metric accuracy. I'll look into it 👍
username_0: This is still fairly difficult :/
Even with our async stacks and sampling profiler all we get to link it to an image URL is the "Finish Loading" event, well before the task, and a "PaintImage" event in a raster thread.
*Maybe* we can link it all together with...
- An `EventDispatch` event with `args.data.type = "load"`
- that followed a `ResourceFinish` of an image
- that had a `PaintImage` event within the task
The problem I imagine is going to be when lots of images finish at the same time it's going to be really difficult (impossible?) to identify which was which :/
username_0: Alright a bit more investigation and it is not possible with current information available in trace events to identify exactly which load event was being dispatched. We would need to add the network request ID, image URL, or some other identifier to the `EventDispatch` event in order to make this happen.
<details>
<summary>View Example Test Page</summary>
```html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
</head>
<body>
<script>
function stall(ms = 50) {
const start = Date.now()
while (Date.now() - start < ms) ;
}
</script>
<img src="https://picsum.photos/id/237/400/400" onload="stall(2500)">
<img src="https://picsum.photos/id/236/200/200" onload="stall(250)">
<img src="https://picsum.photos/id/235/200/200" onload="stall(250)">
<img src="https://picsum.photos/id/234/200/200" onload="stall(250)">
<img src="https://picsum.photos/id/233/200/200" onload="stall(250)">
<img src="https://picsum.photos/id/232/200/200" onload="stall(250)">
<img src="https://picsum.photos/id/231/200/200" onload="stall(250)">
<p>some other content</p>
</body>
</html>
```
</details> |
storybookjs/storybook | 685043716 | Title: Do not hardcode React v16
Question:
username_0: Currently, Storybook components define React v16 is a direct dependency.
https://github.com/storybookjs/storybook/blob/8851ac1a326efad90df82867f81f1f8d63b32ee4/lib/api/package.json#L45
This causes issues for projects that use others version of React (e.g. v17 or 0.0.0-experimental).
We have to use 0.0.0-experimental because it is hard requirement for [Relay](https://relay.dev/).
This makes Storybooks unusable.
Ideally, this project would just define react dependency as `>= 16 || ^17.0.0-rc.0 || ^0.0.0-experimental`
Answers:
username_0: If for whatever reason you do not want to depend on these dependencies, you can use [`acceptDependencies`](https://github.com/npm/rfcs/blob/latest/accepted/0023-acceptDependencies.md#acceptable-acceptdependencies-package-specifiers).
However, this is generally one of the rare cases where using `react: *` as a dependency wouldn't be the worst idea.
username_0: We ended up switching to yarn using `resolutions`, but this is not ideal.
```json
"resolutions": {
"**/react": "0.0.0-experimental-94c0244ba",
"**/react-dom": "0.0.0-experimental-94c0244ba"
},
```
username_1: Totally agree with you this is not the best experience. But it is the least bad of all the options I see.
Open to debating this during one of our roadmap meetings for sure!
https://github.com/storybookjs/community
Status: Issue closed
username_0: We are Okay with the workaround that we are using.
username_2: @username_1 if `resolutions` should not be necessary, doesn't the fact that it is suggest that there may be a bug? After migrating to React 17, I also had to adopt the workaround due to multiple versions of React being imported, so it seems that "the preview always gets the react version the end user specifies in their `package.json`" may not be the case.
username_1: true, @username_2 if there's a bug there, We should fix it. Would you be able provide a reproduction repo showcasing this problem?
username_2: @username_1 this may be yet another case of `node_modules` cruft, because while trying to reduce my complex repo to a minimal case, I deleted `node_modules` entirely and reinstalled, and afterwards Storybook was running fine _without_ a `resolutions` field. So I take that back, it looks like it works as intended and may be just one troubleshooting suggestion to give to other people upgrading to React 17 who face the same issue. Thanks for prompting me to look into this more carefully!
username_1: This is our life now |
CongratulateWE/NoteBook | 877344692 | Title: 音视频资源应该如何上传?
Question:
username_0: 为什么使用 webpack 的 file-loader 会有404的问题呢?跟图片的逻辑应该是一样的吧?
```js
{
test: /\.(m4a|acc|mp3)(\?.*)?$/,
loader: 'file-loader',
options: {
name: 'audios/[name].[hash:8].[ext]',
esModule: false
}
},
``` |
jupyter/notebook | 103260266 | Title: Scripts missing from 4.0.4 pypi release
Question:
username_0: The pypi version of notebook-4.0.4 is missing the "scripts" directory, meaning the scripts to launch the notebook are not installed. The github version still has the directory.
Answers:
username_1: The scripts should be done by setup.py on [theses lines](https://github.com/jupyter/notebook/blob/656628cbe6ae9996b6fc30028322b85bcbb76137/setup.py#L182-L183) but maybe it make sens to ship the scripts in the sdist.
I'm not sure.
username_0: The scripts are not getting installed at all for me under 4.0.4.
username_2: I've also run into this, both here and with qtconsole.
username_3: I can confirm this bug as well.
Without the `scripts` directory the bin scripts are not generated. In fact:
```
% jupyter notebook
jupyter: 'notebook' is not a Jupyter command
```
The GitHub version is not affetcted by this bug. Please update the PyPI tarball.
Thanks in advance.
username_1: @username_4 could this have been fixed by one of your recent changes in setup.py ?
username_4: Weeeird.... When I run sdist it includes them. I don't think this is fixed by a change in setup.py, but maybe something went wrong when building the last sdist. We have a bugfix release that we should be pushing out this week, I'll make sure it gets the scripts.
Installing with `pip` shouldn't need the scripts, since they aren't used when setuptools is involved.
username_4: Released 4.0.5 and verified that scripts are in the sdist.
Status: Issue closed
username_2: From the PyPI upload [here](https://pypi.python.org/packages/source/n/notebook/notebook-4.0.5.tar.gz#md5=8d13252a5afaf07380d21cb408040d22) the scripts aren't in the package.
username_4: WTF, I tested and verified that it was working,
username_4: The pypi version of notebook-4.0.4 is missing the "scripts" directory, meaning the scripts to launch the notebook are not installed. The github version still has the directory.
username_4: Ah, okay. I see that setuptools ruins upload. Fixing...
username_4: @username_2 sorry about that, and thanks for catching it again. Fixed sdists for 4.0.5 are now on PyPI.
Status: Issue closed
username_2: Great, thanks for the quick fix |
badges/shields | 1071466266 | Title: 💡 Edge Add-ons weekly download
Question:
username_0: :clipboard: **Description**
<!--
A clear and concise description of the new badge.
- Which service is this badge for e.g: GitHub, Travis CI
- What sort of information should this badge show?
Provide an example in plain text e.g: "version | v1.01" or as a static badge
(static badge generator can be found at https://shields.io)
-->
Add a new badge for the users amount of an **Edge Add-ons** just like the one for the **Chrome Web Store** `/chrome-web-store/users/:storeid`:

:link: **Data**
<!--
Where can we get the data from?
- Is there a public API?
- Does the API requires an API key?
- Link to the API documentation.
-->
Microsoft seems to have opened a new REST API for the Add-ons. You can have the amount of daily users by calling:
```
https://partner.microsoft.com/analytics/api/vnext/edgeaddons/weeklyActiveInstalls?applicationId=APP_ID&orderBy=date%20asc&groupBy=date&filter=userCount%20gt%20%270%27&startDate=START_DATE
```
Example:
```
https://partner.microsoft.com/analytics/api/vnext/edgeaddons/weeklyActiveInstalls?applicationId=0RDCKBGFN59T&orderBy=date%20asc&groupBy=date&filter=userCount%20gt%20%270%27&startDate=11/5/2021
```
You will get back a json like:
```json
{
"Value": [
{
"date": "2021-11-07",
"applicationId": "0RDCKBGFN59T",
"userCount": 676
},
{
"date": "2021-11-14",
"applicationId": "0RDCKBGFN59T",
"userCount": 651
},
{
"date": "2021-11-21",
"applicationId": "0RDCKBGFN59T",
"userCount": 622
},
{
"date": "2021-11-28",
"applicationId": "0RDCKBGFN59T",
"userCount": 604
}
],
"TotalCount": 4
}
```
It is then possible to calculate the average and send it back in the badge. Sadly I didn't really find an official documentation for this one.
:microphone: **Motivation**
It's really important for browser extensions to be easily able to show in a README how much users they already have. It's possible for Chrome and firefox but not edge since there was no API. Now that one is available, it would be nice to implement it. I could try to implement this new badge by my own since it's simply a copy of the **Chrome Web Store** one.
Thanks again for your work on this project 🙏 I got you some ☕s on opencollective 😉
Answers:
username_1: Hi. Thanks for supporting the project.
I tried calling https://partner.microsoft.com/analytics/api/vnext/edgeaddons/weeklyActiveInstalls?applicationId=0RDCKBGFN59T&orderBy=date%20asc&groupBy=date&filter=userCount%20gt%20%270%27&startDate=11/5/2021 and it gives me a `401 Unauthorized`. Does this API require authentication? Are there any docs for it?
username_0: @username_1 Yes sorry for not having tried in incognito mode. There is no bearer token in the request header but the complete cookie with a session token. I tried again to search for any doc but the one from the microsoft partner center https://docs.microsoft.com/en-us/partner-center/develop/partner-center-rest-resources doesn't seems to have any documentation related to the edge-addons 😢 I guess we can't really go forward if there is no official doc. |
phpstan/phpstan | 389354421 | Title: Support for generic classes
Question:
username_0: A strictly-typed language without generics can be painful to use, because container objects (like an entity repository) can't tell the compiler/analyser the kind of objects they are returning. As a result, the user has to resort to a lot of type assertions.
Using PHP with PHPStan is exactly like that: We have a strictly-typed language, and container objects are painful to use.
I believe that adding support for generics on classes, functions, and static methods would improve the experience a lot.
In this issue, I'm focusing on classes.
I believe that the given example wouldn't be a nightmare to implement in PHPStan.
### Code snippet that reproduces the problem
The following class is a simple in-memory entity repository. It can handle any kind of object without issues. However, using it is painful because the return type of `find()` is just `object`: The caller always needs to make some assertion about the type of the returned value. Also, we can call `get()` with any object without triggering phpstan.
```
class MemoryRepository
{
/** @var object[] */
private $store;
public function find(string $id): object
{
return $this->store[$id];
}
public function add(string $id, object $object)
{
$this->store[$id] = $object;
}
}
```
Example client code:
```
$foo = $fooRepository->find("abc");
assert($foo instanceof Foo);
// PHPStan won't let us call someFooMethod unless we asserted that $foo is an instance of Foo
$object->someFooMethod();
```
### Code snippet with generics
In the snippet bellow, I added an imaginary `@typeParam` annotation that specifies that the given type name is parameterised. Now the class is at the same time easier to use and safer: PHPStan knows the return type of `find()` so the user doesn't have to make an assertion, and it will catch code that calls `get()` with the wrong type.
```
/**
* @typeParam object T
*/
class MemoryRepository
{
/** @var object[] */
private $store;
/** @return T */
public function find(string $id): object
{
return $this->store[$id];
}
[Truncated]
Example client code:
```
/** @var MemoryRepository<Foo> $fooRepository */
$foo = $fooRepository->find("abc");
// PHPStan knows that $foo is an instance of Foo
$object->someFooMethod();
```
### Behaviour
In this imaginary generics support, here is what happens:
- `@typeParam` declares a parameterised type. The first token after the annotation is the parent type of the parameterised type, and the second token is its name. The parameterised type can only be the parent type or a sub-class or implementation of the parent type.
- Instances of a class with this annotation can have a type that specify the parameterised types, with a syntax like what's currently supported for arrays: `MemoryRepository<Foo>`.
- When the parameterised types have been specified, any reference to them on method annotations are substituted by the specified types (e.g. `Foo`), when looking at the types of a method call.
- Otherwise, any reference to them on method annotations are substituted by the parent type (e.g. `object`)
- The code of the class itself is not impacted: Parameterised types just default to their parent type, so the class's own code needs to be analysed only once.
Answers:
username_1: Hi,
I opened some discussion here yesterday (coincidentally), can we continue there? #1692
username_0: Hi!
Ho, I didn't see it! This is great that there is already a discussion about this.
I'm closing this issue then.
Status: Issue closed
username_1: Please copy your post there :) |
Marconiusiii/HitTheDeck | 316971029 | Title: Game hangs erratically while negotiating discard pile
Question:
username_0: While playing the game for an extended period of time, it will erratically hang during the drawCard calls. Hitting Ctrl-C when the game stops working reveals a Traceback error where the random.choice event that is picking the cards is having some kind of trouble with the discard pile. Not sure if what I'm doing is set up correctly or the correct way to go about having multiple decks/no card repeats when playing.
I currently aded in a Joker so the discard dict isn't empty since one of the traceback errors coming from the python random library mentioned that one of the variables called sec was empty. The discard dict is initialized above the main game while loop, and the drawCard function is established above the main while loop as well and uses the discard dict as a parameter. When a card is drawn using the random.choice event, there is a while loop using a comparison to check if the drawn card is in the discard dict. If it is, the loop continues until it draws an unused card and moves on. The drawn card is then placed in the discard dict.
When the discard dict reaches a user-defined amount of entries, I'm using a clear method to erase all the discard dict entries to start it fresh and that is one of the first checks at the beginning of the main game while loop.<issue_closed>
Status: Issue closed |
rahuldkjain/github-profile-readme-generator | 708703971 | Title: align skills to the left
Question:
username_0: **Is your feature request related to a problem? Please describe.**
The center alignment of skill icons seems a bit messy.
<img width="904" alt="Screenshot 2020-09-24 at 12 53 41 PM" src="https://user-images.githubusercontent.com/26406279/94236742-5ac8b100-ff2b-11ea-9c96-8b198c8c4b3d.png">
**Describe the solution you'd like**
Aligning the skill icons to the left under the `Skills & Tools` label will it cooler.
<img width="902" alt="Screenshot 2020-09-24 at 12 46 52 PM" src="https://user-images.githubusercontent.com/26406279/94236865-8350ab00-ff2b-11ea-803c-bf5bed518ea3.png">
Join the Discord Server for further discussions.
Server Link: https://discord.gg/HHMs7Eg
Answers:
username_1: I would like to take this as well :grinning: .
username_1: PR: #130 addresses this issue :v:
Status: Issue closed
|
ebean-orm/ebean | 961667861 | Title: ebean-migration: For multiple platforms automatically run the correct migrations
Question:
username_0: From google group conversation:
----
Hi, it's about the following I would like to support several database types, in my case MySQL, MariaDB and SQLite. I have already generated all DLL's with this code:
DbMigration dbMigration = DbMigration.create();
dbMigration.setVersion("1.0.0");
dbMigration.setName("initial");
dbMigration.addPlatform(Platform.MYSQL, "mysql");
dbMigration.addPlatform(Platform.MARIADB, "mariadb");
dbMigration.addPlatform(Platform.SQLITE, "sqlite");
dbMigration.generateMigration();
That worked and I now have this folder structure in resources:
[...]
├───dbmigration
│ ├───mariadb
│ │ 1.0.0__initial.sql
│ │
│ ├───model
│ │ 1.0.0__initial.model.xml
│ │
│ ├───mysql
│ │ 1.0.0__initial.sql
│ │
│ └───sqlite
│ 1.0.0__initial.sql
[...]
## _Unfortunately, it seems as if ebean is trying to do all migrations_
i.e. also mariadb and sqlite with mysql, which leads to either "Database exists already" or "Checksum mismatch".
...
---
So right now this is "less than optimal", we can and should improve this because it is certainly becoming a very common pattern.
Today:
Ultimately we need to set the MigrationConfig migrationPath which defaults to "dbmigration", we need to set it to something that is platform specific like "dbmigration/mysql". The migrationPath is the resource path which the migrations sit under and yes the migration runner is currently looking to run all the migrations under here.
# This change
This change will automatically take the platform into account
- Ebean will set the platform to `AutoMigrationRunner`
- ebean-migration when platform is set, the MigrationRunner will look for resources in `migrationPath / platform`. If this finds resources then it will load jdbc migrations from migrationPath and then run migrations. If there are no migrations resources found under migrationPath / platform then it will run as normal using `migrationPath`.
-<issue_closed>
Status: Issue closed |
microsoft/OSSGadget | 951725713 | Title: Consider moving crypto library detections to Application Inspector
Question:
username_0: We added rules looking for specific common crypto libraries, but we already have a few in Application Inspector. Maybe we should just move them all there, since we're referencing those rules anyway.
https://github.com/microsoft/ApplicationInspector/blob/main/AppInspector/rules/default/cryptography/external_libraries.json |
chanm003/budget | 512448399 | Title: Explore usage of Can button for hiding parts of UI based on auth state and rules
Question:
username_0: This is already done via login/logout button. Would need to do this for edit and delete buttons, and sidebar menu items.
Can component expects two inputs "admin" and "directorates:edit". Is it possible to pass an array of strings for these two inputs?<issue_closed>
Status: Issue closed |
CrossTheRoadElec/Phoenix-Releases | 569413593 | Title: Device Firmware Update Improvements
Question:
username_0: Currently, the Update Firmware area looks a bit like:

I only recently noticed that the Phoenix Tuner came with a few firmware files located in `C:\Users\Public\Documents\FRC`, and that you didn't have to manually download the various firmware versions from the website by yourself.
I have seen no indication anywhere that this exists, and other members of my team also didn't know about these files.
I believe something similar to the below dialogue could vastly improve our experience with firmware updates:

Some other (related) bits I would like to see:
- automatic detection of when devices are out of date and showing a notification alongside the device in the device list
- Filtering firmware update list based on the type of the currently selected device
- ability to update downloaded firmware through the GUI (see the mockup) |
pardeike/Harmony | 238398006 | Title: Potential Bug in MethodBodyReader
Question:
username_0: MethodBodyReader exposes a static function GetInstructions(MethodBase). If this is called, there is potential to throw a null pointer for ShortInlineVar and InlineVar operand types because "variables" will be undefined. I fixed this locally by setting "reader.locals = null" in GetInstructions; however, I do not believe this is the correct long term fix.
Answers:
username_1: I fail to understand your scenario. Would you mind explaining the location of the exception and going backwards how this is related to MethodBodyReader?
username_2: The exception can occur in MethodCopier.cs line 428:
` instruction.argument = variables[lvi.LocalIndex];`
In the above code snippet, the array "variables" is initialized in the DeclareVariables() function. If you reach this line via the MethodBodyReader.GetInstructions() code path then it will throw a NullreferenceException because "variables" was never initialized.
The static function MethodBodyReader.GetInstructions() will not work when the method has a ShortInlineVar or InlineVar operand.
username_1: Ah, that is indeed an oversight. I'll look into it.
Status: Issue closed
username_1: Fixed. Although I could not easily make it work with fake local variables. As a result, you need to supply the current ILGenerator of the method you are building (or a fake one if you know what you do and filter out the IL codes containing references to the fake generator). |
raphink/moderntimeline | 6918926 | Title: A way to render starting dates that are too early
Question:
username_0: It would be great if when the starting date is earlier than the "firstyear", the bar is drawn as a gradient with the white end at "firstyear".
I tried to submit a patch, but it's taking me too much time to get a hang of tikz :(
Answers:
username_1: In my opinion the gradient would make sense. In case you don't have the time I'd be very happy if you could shortly state your opinion about the feasibility and the right approach so I could try to look into it :)
username_2: I don't have the time indeed, but I'll welcome a PR for it.
username_2: Thanks, that looks good. A PR shouldn't take too long, especially if you already have a clone of the repository.
username_2: Hehe OK. At least if you integrate it in the DTX, it'll become official and maintained in future versions, so that's good for you, too.
username_2: FTR, https://tex.stackexchange.com/a/545111/951 suggests a way to implement this feature. I'd welcome a PR to add this properly to the package. |
publify/publify | 92010652 | Title: Trackbacks feed has ordering issues
Question:
username_0: As seen in this spec failure:
https://travis-ci.org/publify/publify/jobs/68850682
Answers:
username_1: Can't we just drop trackbacks support? Everybody stopped accepting them in 2006.
username_0: I'm OK with moving them to some concept of external responses and accomodating any current protocol or even just hand-entering in the admin section.
username_0: The feeds have been replaced by a single feedback feed. I need to check the ordering of that feed though.
Status: Issue closed
|
RAtshan/ds-pipelines-3 | 664626180 | Title: None
Question:
username_0: Created and pushed "task-table" branch.
Answers:
username_0: 
username_0: 
username_0: 
username_0: 2) After adding `'IL'` , the data transfer failed more times.
3) The time used to attempt to transfer data was shorter. |
OpenPecha/ocr-queue | 785849054 | Title: broken pechas (because of missing volumes?)
Question:
username_0: W1PD166109 / P005616 is not aligned at all (if you look at volume 12 for instance). I suspect it's because there are missing volumes at the beginning. The code should make sure that it records the volume number indicated in the original instead of assuming all volumes are there and in sequence
Answers:
username_0: Another example:
in W4CZ45313 / P008105 all the volumes are off (because some are missing in the images)... but it's very strange: the meta.yml records the volumes but doesn't record the link between the volumes and the base layer files, I think it really should, otherwise this kind of situation becomes very ambiguous
for instance in the meta.yml instead of
```yaml
9f608c17931543cda41e2c01e2c1ff49:
image_group_id: I4CZ75258
title: Volume 1 of bka' 'gyur/ (he mis bris ma/)
volume_number: 1
total_pages: 513
```
there should be
```yaml
9f608c17931543cda41e2c01e2c1ff49:
image_group_id: I4CZ75258
title: Volume 1 of bka' 'gyur/ (he mis bris ma/)
volume_number: 1
total_pages: 513
basefile: v001.txt
```
username_0: should be fixed in all the pechas, the new data format is https://github.com/OpenPecha/P008105/blob/master/P008105.opf/meta.yml |
umbraco/Umbraco-CMS | 399235381 | Title: Link to an image is not being generated
Question:
username_0: * Add a folder in the Media section
* Add some images -> give them a name and then Save
* Navigate to the Info tab of the Image
-> no link is generated
`This media item has no link`

**Result**

**Current**

Answers:
username_1: PR in #4105
Status: Issue closed
username_2: Fixed in https://github.com/umbraco/Umbraco-CMS/pull/4105 |
barretlee/blog | 512965291 | Title: 为什么我们的技术“落后”于国外? | 小胡子哥的个人网站
Question:
username_0: 原文地址:https://www.username_0.com/blog/2014/09/28/why-we-behind-the-world/
文摘:淘宝将 XTemplate 从 KISSY 中分离出来,作为单独的模板工具以迎合阿里巴巴各种 前端/node端 需求,今天在群里看到一个老外介绍 XTemplate 的文章链接,顿生感慨。英语是世界语,中国人懂英文是比较正常的事情,但是很少会有国人使用英文撰写博客,这就直接锐减了... |
NamRuslan/javarush-telegrambot | 823100075 | Title: [FEATURE] JRTB-2: add repository layer
Question:
username_0: Add repository layer to the project
Acceptance criteria:
- Flyway added
- Schema for database added
- Spring data added
- Entities Added
- H2 database for testing puposes added
- integration tests for with h2 added |
npm/cli | 527713840 | Title: [QUESTION] Unclear package.json documentation
Question:
username_0: As you can see on [the official docs page](https://docs.npmjs.com/files/package.json), it isn't stated whether `package.json` puts default value for `homepage` and `bugs` fields if your repository is on GitHub.
I know it's been available for years and I've tested it recently aswell, but it's stated nowhere in the docs. `homepage` default value is on repository's readme, while `bugs` default value is on repository's issues.
It should be made clear in the docs if this feature is officially supported or not, so npm users know what to do.
Answers:
username_0: Any idea on this?
Status: Issue closed
|
ant-design/ant-design-pro | 451893360 | Title: 调用 _.cloneDeep() 时报错 _ is not defined
Question:
username_0: 调用 _.cloneDeep() 时报错 _ is not defined
Unhandled Rejection (ReferenceError): _ is not defined
Answers:
username_1: _是啥?
username_0: 我在原先的2.0的项目可以调用这个 _.cloneDeep() 深拷贝的函数,现在这个不行了,报错说 _ is not defined
------------------ 原始邮件 ------------------
username_2: 这个和 antd-pro 无关,请自行排查 lodash 依赖。
Status: Issue closed
|
facebook/react | 450541198 | Title: useState is set just once or twice when used in recursive components
Question:
username_0: **Do you want to request a *feature* or report a *bug*?**
Bug
**What is the current behavior?**
useState is set just once or twice when used in recursive components
https://codesandbox.io/s/stupefied-rain-1bnxz
**What is the expected behavior?**
New values should be set each time de setter is called
Sorry about the extra code, just added the case reproduction to something i was working on, click on `set last clicked` and check the console, the value is updated just once or twice for each button
Maybe i'm missing something
Status: Issue closed
Answers:
username_0: I just closed this because the code sandbox example is not well reproduced, but the bug exist, will reopen once i have time to reproduce it
username_0: Now this is a non working example 👉 https://codesandbox.io/s/elastic-mountain-71690
username_0: **Do you want to request a *feature* or report a *bug*?**
Bug
**What is the current behavior?**
useState is set just once or twice when used in recursive components
https://codesandbox.io/s/elastic-mountain-71690
**What is the expected behavior?**
New values should be set each time de setter is called
Sorry about the extra code, just added the case reproduction to something i was working on, click on `set last clicked` and check the console, the value is updated just once or twice for each button
Maybe i'm missing something
username_0: Now this is a non working example 👉 https://codesandbox.io/s/elastic-mountain-71690
Status: Issue closed
username_0: Nevermind, was an error of event propagation |
tildearrow/kwin-lowlatency | 461116299 | Title: feature request: use existing window rules to block unredirect for defined applications
Question:
username_0: It would be nice if it was possible to exclude single programs/windows from auto unredirect, e.g. media players for smooth OSD pop ups etc.
With KWin's given feature set, it is already possible to create rules to prevent single applications from turning off the compositor. Perhaps auto-unredirect could simply honor them as well?
That being said: When a window is unredirected and I press the media volume control buttons of my keyboard, the volume OSD triggers the compositing to be temporarily enabled. This allows transparency and an animation, however it also creates stutter when composting turns on and off. Would it be possible to implement an option to keep compositing also entirely turned off in such situations?
It supposedly can also cause issues with FreeSync like flickering.
Answers:
username_1: Will be done
username_0: Thanks a lot! Really amazing what you achieve for KWin.
username_1: Please test b76a58f8e. I have added this feature but need you to confirm this works.
username_0: Tested in mpv and works like a charm, no more stutter when I press my keyboard media buttons. Fantastic! :)
Perhaps the rule "force fullscreen unredirection: yes" on the other hand could also force compositing to stay disabled for transparent OSDs like the volume slider?
username_1: Then OSD items would be invisible (which of course you don't want) because that's not how fullscreen unredirection works.
When an application is unredirected, it sort of "takes over" the X server (and the compositor as well), preventing any other client from being overlaid.
Status: Issue closed
username_0: Hm, but it works with Compton.
username_1: Then you could use the block compositing approach instead, which achieves this.
Note that by doing so there will be a delay to re-enabling compositing, since KWin is much more complex than Compton.
But I wonder: Why would you want a volume OSD element to be un-composited if you only see it for a few seconds?
username_0: (The Plasma overlay window is declared as "normal" window type for whatever reason).
username_1: It would be nice if it was possible to exclude single programs/windows from auto unredirect, e.g. media players for smooth OSD pop ups etc.
With KWin's given feature set, it is already possible to create rules to prevent single applications from turning off the compositor. Perhaps auto-unredirect could simply honor them as well?
That being said: When a window is unredirected and I press the media volume control buttons of my keyboard, the volume OSD triggers the compositing to be temporarily enabled. This allows transparency and an animation, however it also creates stutter when composting turns on and off. Would it be possible to implement an option to keep compositing also entirely turned off in such situations?
It supposedly can also cause issues with FreeSync like flickering.
username_1: There is a possibility that this needs to be ported to 5.17..
username_2: @username_1 I've ported the patch to 5.18. Currently, full screen videos stutter to the point of becoming unusable on gsync(variable refresh rate) displays with compositing suspended/disabled, adding a window rule fixes this
username_1: Works. Thank you.
Status: Issue closed
username_0: Does this need to be rewritten for the current version? It would probably make sense to exclude popular applications that don't trigger page flipping (likely ~everything with typical Qt/GTK UIs) by default.
username_1: ...yup, exactly! It's time to do this...
username_1: It would be nice if it was possible to exclude single programs/windows from auto unredirect, e.g. media players for smooth OSD pop ups etc.
With KWin's given feature set, it is already possible to create rules to prevent single applications from turning off the compositor. Perhaps auto-unredirect could simply honor them as well?
That being said: When a window is unredirected and I press the media volume control buttons of my keyboard, the volume OSD triggers the compositing to be temporarily enabled. This allows transparency and an animation, however it also creates stutter when composting turns on and off. Would it be possible to implement an option to keep compositing also entirely turned off in such situations?
It supposedly can also cause issues with FreeSync like flickering.
Status: Issue closed
|
devchait/hello-world | 623849154 | Title: To create the CI/CD pipeline script for the github pipelines.
Question:
username_0: ## Basic github pipeline script.
- It must download the dependencies
- It must make project
Answers:
username_0: Approved. We shall close here
Status: Issue closed
username_0: We need to cover basic things. This needs enhancement.
username_0: ## Basic github pipeline script.
- It must download the dependencies
- It must make project
Status: Issue closed
|
kubernetes/org | 370751223 | Title: REQUEST: New membership for mcrute
Question:
username_0: ### GitHub Username
username_0
### Organization you are requesting membership in
- @kubernetes
- @kubernetes-sigs
### Requirements
- [x] I have reviewed the community membership guidelines (https://git.k8s.io/community/community-membership.md)
- [x] I have enabled 2FA on my GitHub account (https://github.com/settings/security)
- [x] I have subscribed to the kubernetes-dev e-mail list (https://groups.google.com/forum/#!forum/kubernetes-dev)
- [x] I am actively contributing to 1 or more Kubernetes subprojects
- [x] I have two sponsors that meet the sponsor requirements listed in the community membership guidelines
- [x] I have spoken to my sponsors ahead of this application, and they have agreed to sponsor my application
### Sponsors
- @username_1
- @username_2
### List of contributions to the Kubernetes project
- kubernetes/utils#50
- kubernetes/utils#51
- kubernetes/utils#52
- kubernetes/kubernetes#69706
- kubernetes/kubernetes#69436
- kubernetes/kubernetes#69705
- kubernetes/kubernetes#69237
- kubernetes/kubernetes#69585
- sig-aws
- sig-cloud-provider
<!-- DO NOT EDIT BELOW THIS LINE -->
/area github-membership
Answers:
username_0: /assign @username_2 @username_1
username_1: +1
username_2: +1
username_3: Hey there @username_0 , thank you for all your contributors so far! :)
I've created PR #171 to add you to both the Kubernetes and Kubernetes-Sigs Org. Once that gets merged, you should get a membership invite notification.
Welcome to @kubernetes! 🎉
/assign |
Anuken/Mindustry-Suggestions | 732746918 | Title: Ekranoplanes
Question:
username_0: I propose to add a new type of units: ekranoplanes. They will act as support units, but from the naval industry. They can usually float in water, but with the gear key pressed, they can hover over water / land at high speed. Construction cost: 60 Silicon, 30 Meta-glass and 80 Titanium.
T1 will be equipped with volley cannons. Hail will be added to T2. T3 - will have missile weapons and a salvo. T4 - They will already have a laser turret, two volleys and the ability to heal allied units near. Two fuses will be added to T5, missile weapons and a mono factory and heal ability.
Answers:
username_1: no. the flares produced by an Omura are attacking units and don't build up like Monos would. |
CypherPL/Cypher.PL | 257011379 | Title: RelationshipPattern w PatternComprehension.
Question:
username_0: To jest głowa + lista, trzeba zrobić listę.
E = expression(patternComprehension(variable(symbolicName('P')),relationshipsPattern(nodePattern(variable(symbolicName('LIKER')),nodeLabels([]),properties(mapLiteral([]))),[patternElementChain(relationshipPattern(direction(both),variable(symbolicName('_relation')),relationshipTypes([]),relationshipRange(one_one),properties(mapLiteral([]))),nodePattern(variable(symbolicName('_node')),nodeLabels([]),properties(mapLiteral([]))))]),[],expression(variable(symbolicName('P'))))), gtrace, expression(E).<issue_closed>
Status: Issue closed |
jenkinsci/allure-plugin | 270587068 | Title: Report link lead to 404 page if you set reportPath other than default ("allure-report").
Question:
username_0: ## Issue
### Context
- **Jenkins version**: 2.60.1
- **Job type**: Pipeline
- **Allure plugin version**: 2.25
- **Allure commandline version**: 2.2.3b1
### Problem description
_Describe your problem in a meaningful way_:
Trying to generate allure report with the new "reportPath" param in the new plugin version (2.25) - it seems like the generation works OK but the link isn't leading to the report but to 404 page.
I've tried to investigate the problem and it seems that you forgot to update the link to work with dynamic report path.
In allure-plugin/src/main/java/ru/yandex/qatools/allure/jenkins/AllureReportPlugin.java causes the problem
`line 19: public static final String REPORT_PATH = "allure-report";
`
Answers:
username_1: @username_0 Hello,
Try to use "report" instead "reportPath".
Please, write about your results here.
username_0: @username_1 Hey, I actually was using this param in the first place so now I did run 2 jobs one with - "reportPath" and the second with "report" param and the conclusions are the following:
1. "report" param - when in the **same** job I run twice the generate report command for 2 different allure reports with different paths - I get 404 link for both buttons (If I do it with 1 report it will work).
2. "reportPath" - Both link lead to the latest report
---------
So the conclusion is that the link doesn't work when the report "icon" generated twice in the same job. Is this solvable?
Thanks!
username_1: @username_0
Currently there is no time to implement the possibility to generate more then one report in the same time.
The better way is to generate one report from several results.
If it is critical for you, you can write a pull request for this issue.
Status: Issue closed
username_2: Is there any update on this issue? I face the same problem
username_3: I have the same problem, any update? |
Librarika/Issues | 140794834 | Title: Suggestion: Member bookings (historical)
Question:
username_0: Could we please have a tab added to the member details page so we can see historical bookings as well as the active ones? This would be useful for us not just running the library but also to give to teachers and parents so they can see what pupils are reading.
Answers:
username_1: Currently working on a very critical feature, after that will focus back on the issues. |
dukecon/dukecon_server | 215175507 | Title: Filter out/convert special characters from DOAG data import
Question:
username_0: At least from the DOAG data imports we get strange characters (e.g., \222) which cannot be displayed correctly. We need to sort them out or convert them (it seems to be mostly ', `, ´or --longdash).
Probably it's a question of character sets for export/import?



Answers:
username_1: corrected in the next JSON export
Status: Issue closed
|
ISISComputingGroup/IBEX | 179741441 | Title: Script Generator: Values cannot be deleted from table
Question:
username_0: In the script generator main input table, once a value has been entered, it cannot then be deleted. Trying to do so results in the preexisting value persisting.
Answers:
username_1: This ticket refers to the old Script Generator, which has been superseded.
See #3702 and #3704 and subsequent tickets.
Status: Issue closed
|
strapi/strapi | 585359705 | Title: strapi generate:model within plugin fails
Question:
username_0: **Describe the bug**
Looks like scaffolding only works within a root strapi project. Because of the [check on packages.json](https://github.com/strapi/strapi/blob/8d0c6848ba421680570e974e5d8606314735de3e/packages/strapi/bin/strapi.js#L30), it's unable to executed in a freshly-scaffolded plugin, for example.
**Steps to reproduce the behavior**
1. `npx strapi new strapi-project --quickstart --no-run`
2. `cd ./strapi-project`
3. `npx strapi generate:plugin strapi-plugin-example`
4. `cd ./plugins/strapi-plugin-example`
5. `npx strapi generate:model example foo:text`
**Expected behavior**
Strapi should recognize it's a plugin and scaffold the model.
**System**
- Node.js version: 10.15.3
- NPM version: 6.14.2
- Strapi version: 3.0.0-beta.19.3
- Database: sqlite
- Operating system: 5.1.18362.628 (Windows 10 Enterprise)
**Additional context**
I feel like the [pre-check](https://github.com/strapi/strapi/blob/8d0c6848ba421680570e974e5d8606314735de3e/packages/strapi/bin/strapi.js#L31) should check dependencies, but maybe also look for the `strapi` property which defines `name`, `icon` & `description`.
p.s. Did a search and only discovered references to folder hierarchy (duplicate models folder) and nothing concerning the inability to run generators within a plugin.
Answers:
username_0: Nevermind, just caught `--plugin` arg. 🤦♂️
Sorry guys, long week this week.
Status: Issue closed
|
valor-software/ng2-dragula | 166811338 | Title: Cannot read property 'appendChild' of null
Question:
username_0: angular2.dev.js:23597 EXCEPTION: TypeError: Cannot read property 'appendChild' of nullBrowserDomAdapter.logError @ angular2.dev.js:23597BrowserDomAdapter.logGroup @ angular2.dev.js:23608ExceptionHandler.call @ angular2.dev.js:1260(anonymous function) @ angular2.dev.js:12576NgZone._notifyOnError @ angular2.dev.js:13620onError @ angular2.dev.js:13528Zone.run @ angular2-polyfills.js:1247(anonymous function) @ angular2.dev.js:13543zoneBoundFn @ angular2-polyfills.js:1220
angular2.dev.js:23597 STACKTRACE:BrowserDomAdapter.logError @ angular2.dev.js:23597ExceptionHandler.call @ angular2.dev.js:1262(anonymous function) @ angular2.dev.js:12576NgZone._notifyOnError @ angular2.dev.js:13620onError @ angular2.dev.js:13528Zone.run @ angular2-polyfills.js:1247(anonymous function) @ angular2.dev.js:13543zoneBoundFn @ angular2-polyfills.js:1220
angular2.dev.js:23597 TypeError: Cannot read property 'appendChild' of null
at F (dragula.min.js:1)
at HTMLHtmlElement.N (dragula.min.js:1)
at Zone.run (angular2-polyfills.js:1243)
at Zone.run (angular2.dev.js:13543)
at HTMLHtmlElement.zoneBoundFn (angular2-polyfills.js:1220)
Answers:
username_1: @username_0
probably it's the same reason that I was have
try to set options for dragulaService at the ngOnInit function
Status: Issue closed
|
USGS-WiM/LIQWIDS | 412107730 | Title: Update about modal
Question:
username_0: Need some words about the project, maybe from the proposal, also a tab for our standard WIM disclaimer
Answers:
username_0: I'll get some text from <NAME> for the "about the application" . but the second tab, should just grab text from another one of our apps like:

Status: Issue closed
|
reruin/sharelist | 473632792 | Title: 希望可以支持github
Question:
username_0: 如果能通过github api把github任意repo的任意指定的文件夹目录也像网盘的文件夹那样挂载,不走服务器流量,那样就很方便,毕竟github程序员分享的东西那么多~_~
Answers:
username_1: 已添加GitHub的支持。挂载方式:
```github:username``` 或者
```github:username/repo```
username_0: 额,貌似代码还是没变,没看到楼主最近有相关的commit
测试支持如下:
1.在演示目录添加github.d.ln文件 --> github:username_1或者github:username_0/music
Error: ENOTDIR: not a directory, scandir './example/github-music.d.ln'
2.在[配置文件](cache/config.json)添加 "path": "github:username_1/sharelist"
500 TypeError: Cannot read property 'drive' of undefined
username_1: 哈 忘记push了。再试试。需重启服务。
username_0: closed issue:谢谢完美支持~_~
要是能支持隐私仓库就更好了~只需要加个token=xxx
Status: Issue closed
username_1: 分支、私库、压缩下载以后再考虑。 |
rlworkgroup/garage | 370393196 | Title: dm_control update breaks installation
Question:
username_0: Currently we fetch latest dm_control from their github repo in installation. Today, dm_control updated to support Mujoco v2.00, and it breaks many things, including installation.
If not fixed, this update prevents all future CI test, e.g. https://travis-ci.com/rlworkgroup/garage/builds/88031100. As a workaround, we need to lock dm_control in `environment.yml` to the last version that supports Mujoco v1.50.<issue_closed>
Status: Issue closed |
ColinMcC76/diddit_react | 614088833 | Title: As a anonymous user, I would like to be able to see a users page by clicking on his profile, so that I can immediately see their posts. (5) #12
Question:
username_0: What I meant was, I want to be able to hit the homepage, there should automatically be a page full of user posts, from every sub. D/all, will be every sub and the defauly age, switching to other D/views, will change to others subs.
Testing criteria: A laravel API can successfully connects to a database populated with posts,subs, and users.
Definition of done, on loaading, there will ba posts on the front page.
5 points |
ncruces/zenity | 963113264 | Title: can run -notification in win7 git-for-windows
Question:
username_0: In win7 64bit / v0.7.9 / git-for-windows (in cmder):
```
λ /c/Users/xxef/Downloads/b/zenity_win64/zenity.exe -notification
panic: syscall: string with NUL passed to StringToUTF16
goroutine 1 [running]:
syscall.StringToUTF16(...)
syscall/syscall_windows.go:32
github.com/username_1/zenity.notify(0x53eb39, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x3, 0x0, ...)
github.com/username_1/zenity/notify_windows.go:27 +0x48f
github.com/username_1/zenity.Notify(0x53eb39, 0x1, 0xc0000e6000, 0x5, 0x8, 0xc0000a8091, 0xc)
github.com/username_1/zenity/notify.go:7 +0xe5
main.notify(0xc0000e6000, 0x5, 0x8, 0x1, 0x0)
github.com/username_1/zenity/cmd/zenity/notify.go:17 +0x814
main.main()
github.com/username_1/zenity/cmd/zenity/main.go:157 +0x47e
```
Status: Issue closed
Answers:
username_0: In win7 64bit / v0.7.9 / git-for-windows (in cmder):
```
./zenity.exe --notification --text "Good Morning"
```
show: nothing
username_1: That's strange. I don't have Windows 7 to repro, but I'll try to find a VM.
If you can help trace it down, it would be highly appreciated. Thanks!
username_2: Nope, doesnt work
https://user-images.githubusercontent.com/47502554/129185199-f61d0b89-4fd6-4168-9695-7f32ccef06e1.mp4
(Tested on a clean windows 7 virtual machine using the x64 binary from the releases page with Virtual Box)
username_2: Also its returns status code 0.

username_1: I'm not doubting your report, I'm asking for help.
Did you try - can you try - fixing the issue?
It should be in this function: https://github.com/username_1/zenity/blob/2fa0d652db7dbda332f5d7d2688d70ae8536a23d/notify_windows.go#L16-L57
Failing that, do you know of any Windows 7 image I can use to test this?
username_2: https://dl.bobpony.com/windows/7/en_windows_7_with_sp1_x64.iso (from https://downloadui.bobpony.com, Bob Pony's website) or https://dl.malwarewatch.org/windows/Windows%207%20(x64).iso (from https://malwarewatch.org, Endermanch's website)
username_1: Please test: https://github.com/username_1/zenity/releases/tag/v0.7.11
username_2: Sorry for the late reply

It worked!
Status: Issue closed
username_1: I have to say I'm not entirely happy with this solution, but it's Windows 7: time to move on.
I won't complicate the code further just for Windows 7 and below.
This should be good enough. |
SharePoint/sp-provisioning-service | 783122863 | Title: New Employee Onboarding Hub Provisioning Failed
Question:
username_0: **Describe the issue**
I'm trying to deploy the NEO hub to a totally new demo tenant (m365x.....sharepoint.com) and it fails both in the provisioning portal and via PowerShell.
Via the portal, I get the following email correlation ID: 7568b0b1-24a3-47c8-8848-e14b0524ba4b
Via PowerShell, I get:
```
Apply-PnPTenantTemplate : Access denied. You do not have permission to perform this action or access
this resource.
```
**Expected behavior**
The NEO hub and sites should be provisioned
**Details (please complete the following information):**
- PnP Correlation ID: 7568b0b1-24a3-47c8-8848-e14b0524ba4b
- Reference Template: https://lookbook.microsoft.com/details/75e60a32-9849-4ed4-b83e-b2b08983ad19
- Primary language of the target tenant: 1033 (I think- it's a default demo tenant)
- Are you using a Tenant Global Admin account to provision the template: Yes
I've tried turning on the PnP logging, but don't get much more info from there:
powershell.exe Information: 0 : 2021-01-10 14:52:00.5550 [OfficeDevPnP.Core] [0] [Information] File NEO.pnp retrieved from folder 0ms
powershell.exe Information: 0 : 2021-01-10 14:52:00.8223 [OfficeDevPnP.Core] [0] [Information] File NEO.pnp retrieved from folder 0ms
powershell.exe Information: 0 : 2021-01-10 14:52:03.4399 [OfficeDevPnP.Core] [0] [Information] File NEO.xml retrieved from folder 0ms
powershell.exe Information: 0 : 2021-01-10 14:52:04.1946 [Provisioning] [18] [Information] ProgressDelegate registered 0ms 8f69876b-d24c-4b2c-8c1a-c47693b92b0c
powershell.exe Information: 0 : 2021-01-10 14:52:04.1946 [Provisioning] [18] [Information] MessagesDelegate registered 0ms 8f69876b-d24c-4b2c-8c1a-c47693b92b0c
powershell.exe Information: 0 : 2021-01-10 14:52:38.8449 [Provisioning] [18] [Information] ProgressDelegate registered 0ms 8f69876b-d24c-4b2c-8c1a-c47693b92b0c
powershell.exe Information: 0 : 2021-01-10 14:52:38.8449 [Provisioning] [18] [Information] MessagesDelegate registered 0ms 8f69876b-d24c-4b2c-8c1a-c47693b92b0c
powershell.exe Warning: 0 : 2021-01-10 14:52:39.1592 [Provisioning] [18] [Information] The source site from which the template was generated had a base template ID value of SITEPAGEPUBLISHING#0, while the current target site has a base template ID value of GROUP#0. This could cause potential issues while applying the template. 314ms 8f69876b-d24c-4b2c-8c1a-c47693b92b0c
powershell.exe Warning: 0 : 2021-01-10 14:52:41.6911 [List instances] [18] [Information] Skip adding/updating custom actions because the site has "noscript" enabled. 1206ms 8f69876b-d24c-4b2c-8c1a-c47693b92b0c
powershell.exe Warning: 0 : 2021-01-10 14:52:42.1485 [List instances] [18] [Information] Skip adding/updating custom actions because the site has "noscript" enabled. 1663ms 8f69876b-d24c-4b2c-8c1a-c47693b92b0c
powershell.exe Warning: 0 : 2021-01-10 14:52:51.5611 [List instances] [18] [Information] Skip adding/updating custom actions because the site has "noscript" enabled. 854ms 8f69876b-d24c-4b2c-8c1a-c47693b92b0c
powershell.exe Warning: 0 : 2021-01-10 14:52:52.0311 [List instances] [18] [Information] Skip adding/updating custom actions because the site has "noscript" enabled. 1324ms 8f69876b-d24c-4b2c-8c1a-c47693b92b0c
powershell.exe Error: 0 : 2021-01-10 14:52:53.6043 [OfficeDevPnP.Core] [0] [Error] ExecuteQuery threw following exception: Microsoft.SharePoint.Client.ServerUnauthorizedAccessException: Access denied. You do not have permission to perform this action or access this resource.
at Microsoft.SharePoint.Client.ClientRequest.ProcessResponseStream(Stream responseStream)
at Microsoft.SharePoint.Client.ClientRequest.ProcessResponse()
at Microsoft.SharePoint.Client.ClientRequest.<ExecuteQueryToServerAsync>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.SharePoint.Client.ClientRequest.<ExecuteQueryAsync>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.SharePoint.Client.ClientRuntimeContext.<ExecuteQueryAsync>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.SharePoint.Client.ClientContext.<ExecuteQueryAsync>d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Microsoft.SharePoint.Client.ClientContextExtensions.<ExecuteQueryImplementation>d__7.MoveNext()
ServerErrorCode: -2147024891
ServerErrorTypeName: System.UnauthorizedAccessException
ServerErrorTraceCorrelationId: 82e89f9f-f03b-0000-6fde-e0f3ccd8e89a
ServerErrorValue:
ServerErrorDetails:
. 0ms
**I'd be happy to help try resolve this, but not sure where to start...**
Answers:
username_0: If it helps in any way, I get the following warning in PowerShell:
```
WARNING: The source site from which the template was generated had a base template ID value of SITEPAGEPUBLISHING#0, while the current target site has a base template ID value of GROUP#0. This could cause potential issues while applying the template.
```
username_1: Hi,
Based on the above error message, you applied the template providing the URL of a site that was a "Modern Team Site" (GROUP#0), while the template was expecting to have a "Communication Site" (SITEPAGEPUBLISHING#0). Please, try again providing a correct site target or avoid using existing sites and let the service create the sites for you. In case of any issue, please create another item here. Thanks for your cooperation.
Status: Issue closed
|
stevenwilkin/isitraininginbelfast.com | 163659552 | Title: It's raining in Belfast
Question:
username_0: But it says "no"!
I think Yahoo! may now be requiring some sort of authentication the `/forecastrss` endpoint? When I try curling it directly I get this:
```
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><yahoo:error xmlns:yahoo="http://www.yahooapis.com/v1/base.rng" xml:lang="en-US" yahoo:uri="http://yahoo.com"><yahoo:description>Please provide valid credentials. OAuth oauth_problem="OST_OAUTH_PARAMETER_ABSENT_ERROR", realm="yahooapis.com"</yahoo:description><yahoo:detail>Please provide valid credentials. OAuth oauth_problem="OST_OAUTH_PARAMETER_ABSENT_ERROR", realm="yahooapis.com"</yahoo:detail></yahoo:error>```
Answers:
username_1: Yep, looks like an OAuth token is required to access that service now.
Status: Issue closed
|
composer/composer | 205553675 | Title: Wrong event type for "post-create-project-cmd" event
Question:
username_0: Currently the [source comment for the `post-create-project-cmd` event](https://github.com/composer/composer/blob/07cbb73/src/Composer/Script/ScriptEvents.php#L108) says that event listeners get an instance of `Composer\Installer\PackageEvent`, but in fact, they'll get a `Composer\Script\Event` instead.
I've tried this both with `composer run-script` as well as a simulation via `path` repository and in both cases, I got the latter script type.
Is this an error in the code or in the docs?
Answers:
username_1: Can you specific the version of Composer you tested this with please?
username_0: Sure, I'm using version 1.3.1.
username_1: These docblocks are indeed incorrect. The type referenced is deprecated (but they will still be passed if the listening method **explicitly typehints** the old class). See https://github.com/composer/composer/blob/master/src/Composer/EventDispatcher/EventDispatcher.php#L312-L333 for details.
username_0: Hm, but I first tried with `PackageEvent` only to get a fatal error due to type mismatch.
username_1: We trigger errors of type `E_USER_DEPRECATED` when these backwards compatible changes are applied.
Status: Issue closed
username_0: Thanks. :-) |
vasern/vasern | 395852556 | Title: committed transaction list
Question:
username_0: I saw that there is a way to improve the speed of multiple actions.
Is it also faster if i don't commit these actions in a callback block but multiple single actions with save=false?
And if so, when do these actions get executed? (I mean how does the db know when i make the last action?)
I'm asking this because i have to add multiple events to the db. In one cycle i add to multiple schemas so i just want to call my "normal" saveEvent function (which normally just saves one event with save=true) with save=false. But is this faster?
Answers:
username_1: Have you tried the [perform](https://vasern.com/docs/basic-crud-operation#perform-multiple-operations) block? It is somewhat similar to your idea and is designed to execute multiple operations (insert/update/remove).
Operations within the `perform` block will be called with `save=false`. When `save=false`, the record will be added to the commit transaction list, then later be executed by calling `save()` method.
username_0: Then i can call after the looped finished and so i made all the inserts with save=false the method save() and it saves all the inserts, removes or updates?
If so it is possible that you forgot to mention this on your vasern website (or maybe i just dont find it...).
username_1: Actually, setting save=false for any operation is intended for internal use only. So I consider not adding it to the documentation.
Do you think it would be more useful to set save=false rather than using with the “perform” block?
It’s kinda make sense for me it can be more useful in some cases.
username_0: At the moment in my case i think it is useful because i have multiple refrences and so i have to insert for every loop session into multiple schemas and insert these results into the final schema.
I think if you have to loop and insert into multiple schemas and need the results it is useful and makes more sens then the perform() functions because otherwise you have perform( perform() perform()) or sth like that and that doesn't look nice.
In my opinion it makes sense to add this!
username_1: You’re right. It will be more useful in some cases. I’ll reconsider adding operation with “save=false”.
Thanks for the suggestion.
username_0: So it is not yet possible to insert with save=false and after loop to call save() ?
username_1: Yes, it is possible! Here is an example:
```javascript
Items.insert({ name: “Item 1” }, false);
Items.insert({ name: “Item 2”}, false)
// Apply changes
Items.save()
```
username_0: Perfekt!
Not related with that, but in this example you just wrote false instead of save=false. Is that possible?
username_1: It doesn’t need to actually have “save=fase”. Just “false” is correct.
username_1: I will close this issue since it has been resolved. Also, feel free to reopen or create a new one again
Status: Issue closed
|
pytorch/pytorch | 339585640 | Title: [gradcheck] warn about the case that mulitple inputs share storage
Question:
username_0: also re-enable the skipped einsum tests
Answers:
username_1: I re-enabled the einsum tests [here](https://github.com/pytorch/pytorch/pull/47860/files#diff-7e17421f32124016eb8de04dc2f445da5786a28355e1addc72b305466f590180R2474) by cloning the input that shared the storage. |
dotnet/roslyn | 287188399 | Title: Apply implicit operator for pattern matching
Question:
username_0: ## Context
Recently, I've opened [this stackoverflow question](https://stackoverflow.com/questions/48115346/cs8121-customt-cannot-be-handled-by-a-pattern-of-type-t), which brought me to https://github.com/dotnet/csharplang/issues/1047#issuecomment-355612447.
The idea is to apply implicit operators when matching unhandleable patterns _(I really hope this word does in fact exist)_.
## Scenario
So, considering the following struct:
```c#
public struct ReadOnly<T> where T : struct
{
private T? value;
public T Value
{
get => value ?? throw new InvalidOperationException("Value not set");
set
{
if (this.value.HasValue)
throw new InvalidOperationException("Value already set");
this.value = value;
}
}
public bool HasValue => value.HasValue;
public ReadOnly(T? value) => this.value = value;
public static implicit operator T?(ReadOnly<T> value) => value.value; //attention here!
public static implicit operator ReadOnly<T>(T? value) => new ReadOnly<T>(value);
public static explicit operator T(ReadOnly<T> value) => value.Value;
}
```
We get:
```c#
var foo = new ReadOnly<int>(2);
if (foo is int bar) { } //CS8121 An expression of type 'ReadOnly<int>' cannot be handled by a pattern of type 'int'.
if ((int?)foo is int baz) { } //Compiles and resolves true.
```
## Suggestion
When a pattern cannot be handled, the compiler should apply the implicit operator which allows the expression to be resolved, if any. If there are multiple possible implicit operators that would cover the issue, nothing should be done and the compilation error must prevail.
This is a suggestion, not a proposal, which means that no detail is final. Feel free to suggest changes or demonstrate barriers.
## Unanswered questions
```c#
public struct ReadOnly<T> where T : struct
{
//...
public static implicit operator T?(ReadOnly<T> value) => value.value;
public static implicit operator int(ReadOnly<T> value) => value.Value is int x ? x : throw new Exception();
//...
}
var foo = new ReadOnly<int>(2);
if(foo is int bar) { } //what should happen?
```
```c#
public struct ReadOnly<T> where T : struct
{
//...
public static implicit operator T?(ReadOnly<T> value) => value.value;
public static implicit operator int(ReadOnly<T> value) => value.Value is int x ? x : throw new Exception();
//...
}
var foo = new ReadOnly<int>(2);
if(foo is int bar) { } //what should happen?
```
```c#
public struct ReadOnly<T> where T : struct
{
//...
public static implicit operator T?(ReadOnly<T> value) => value.value;
public static implicit operator T(ReadOnly<T> value) => value.Value;
//...
}
var foo = new ReadOnly<int>(2);
if(foo is int bar) { } //what should happen?
```
* Should the base class operators be considered? If yes, should the compiler look at the hierarchy for disambiguation or not?
Answers:
username_1: This is a language design discussion. I'll move to csharplang. Thanks
Status: Issue closed
username_1: Issue moved to [dotnet/csharplang #1248](https://github.com/dotnet/csharplang/issues/1248) via [**ZenHub**](https://www.zenhub.com/) |
tavicu/homebridge-samsung-tizen | 448597441 | Title: which command to map context menu in HDMI CEC device
Question:
username_0: Hi,
Check the list of available commands (https://github.com/username_1/homebridge-samsung-tizen/wiki/Commands) and tried a few but couldn't find one that can trigger menu action on my TV box (controlled via HDMI CEC and TV remote). There is no button on the TV remote that can trigger the action though, any suggestion?
Thank you in advance!
Answers:
username_1: Samsung api accepts only keys that are found on a physical remote.
Status: Issue closed
username_0: Ah, ok thanks for your reply! |
phalcon/cphalcon | 59129604 | Title: 9 광주오피 9 청주오피 9 충남오피 「ⓡ」 『 bamwAR .com 』
Question:
username_0: 광주오피,청주오피,충남오피 9 광주오피 9 청주오피 9 충남오피 「ⓡ」 『 bamwAR .com 』9 광주오피 9 청주오피 9 충남오피 「ⓡ」 『 bamwAR .com 』9 광주오피 9 청주오피 9 충남오피 「ⓡ」 『 bamwAR .com 』9 광주오피 9 청주오피 9 충남오피 「ⓡ」 『 bamwAR .com 』 광주오피,청주오피,충남오피 9 광주오피 9 청주오피 9 충남오피 「ⓡ」 『 bamwAR .com 』9 광주오피 9 청주오피 9 충남오피 「ⓡ」 『 bamwAR .com 』9 광주오피 9 청주오피 9 충남오피 「ⓡ」 『 bamwAR .com 』9 광주오피 9 청주오피 9 충남오피 「ⓡ」 『 bamwAR .com 』 광주오피,청주오피,충남오피 9 광주오피 9 청주오피 9 충남오피 「ⓡ」 『 bamwAR .com 』9 광주오피 9 청주오피 9 충남오피 「ⓡ」 『 bamwAR .com 』9 광주오피 9 청주오피 9 충남오피 「ⓡ」 『 bamwAR .com 』9 광주오피 9 청주오피 9 충남오피 「ⓡ」 『 bamwAR .com 』 광주오피,청주오피,충남오피 9 광주오피 9 청주오피 9 충남오피 「ⓡ」 『 bamwAR .com 』9 광주오피 9 청주오피 9 충남오피 「ⓡ」 『 bamwAR .com 』9 광주오피 9 청주오피 9 충남오피 「ⓡ」 『 bamwAR .com 』9 광주오피 9 청주오피 9 충남오피 「ⓡ」 『 bamwAR .com 』광주오피,청주오피,충남오피광주오피,청주오피,충남오피 9 광주오피 9 청주오피 9 충남오피 「ⓡ」 『 bamwAR .com 』9 광주오피 9 청주오피 9 충남오피 「ⓡ」 『 bamwAR .com 』9 광주오피 9 청주오피 9 충남오피 「ⓡ」 『 bamwAR .com 』9 광주오피 9 청주오피 9 충남오피 「ⓡ」 『 bamwAR .com 』 광주오피,청주오피,충남오피 9 광주오피 9 청주오피 9 충남오피 「ⓡ」 『 bamwAR .com 』9 광주오피 9 청주오피 9 충남오피 「ⓡ」 『 bamwAR .com 』9 광주오피 9 청주오피 9 충남오피 「ⓡ」 『 bamwAR .com 』9 광주오피 9 청주오피 9 충남오피 「ⓡ」 『 bamwAR .com 』 광주오피,청주오피,충남오피 9 광주오피 9 청주오피 9 충남오피 「ⓡ」 『 bamwAR .com 』9 광주오피 9 청주오피 9 충남오피 「ⓡ」 『 bamwAR .com 』9 광주오피 9 청주오피 9 충남오피 「ⓡ」 『 bamwAR .com 』9 광주오피 9 청주오피 9 충남오피 「ⓡ」 『 bamwAR .com 』 광주오피,청주오피,충남오피 9 광주오피 9 청주오피 9 충남오피 「ⓡ」 『 bamwAR .com 』9 광주오피 9 청주오피 9 충남오피 「ⓡ」 『 bamwAR .com 』9 광주오피 9 청주오피 9 충남오피 「ⓡ」 『 bamwAR .com 』9 광주오피 9 청주오피 9 충남오피 「ⓡ」 『 bamwAR .com 』광주오피,청주오피,충남오피 |
containers/podman | 1128540740 | Title: API: `PodListLibpod` returns error when deleting pods at the same time
Question:
username_0: **Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)**
/kind bug
**Description**
I'm running multiple test of an application using the podman REST API in parallel. The tests create and delete multiple pods/containers/volumes (all with distinct names) and list all pods. The tests listing all pods fail with the error: `no pod with ID [...] found in database`. Running the list tests separate from other tests shows no issues. In the discussion in the podman discord it was mentioned that checks for similar behavior are already present when listing containers.
**Steps to reproduce the issue:**
1. Create and delete multiple pods (via API)
2. At the same time, query the `PodListLibpod` endpoint
**Describe the results you received:**
`no pod with ID [...] found in database`
**Describe the results you expected:**
A list of all currently present pods.
**Additional information you deem important (e.g. issue happens only occasionally):**
Issue only happens when running in parallel.
**Output of `podman version`:**
```
Version: 3.4.4
API Version: 3.4.4
Go Version: go1.16.8
Built: Wed Dec 8 22:45:07 2021
OS/Arch: linux/amd64
```
**Output of `podman info --debug`:**
```
host:
arch: amd64
buildahVersion: 1.23.1
cgroupControllers:
- cpu
- io
- memory
- pids
cgroupManager: systemd
cgroupVersion: v2
conmon:
package: conmon-2.1.0-2.fc35.x86_64
path: /usr/bin/conmon
version: 'conmon version 2.1.0, commit: '
cpus: 12
distribution:
distribution: fedora
variant: kde
version: "35"
eventLogger: journald
[Truncated]
APIVersion: 3.4.4
Built: 1638999907
BuiltTime: Wed Dec 8 22:45:07 2021
GitCommit: ""
GoVersion: go1.16.8
OsArch: linux/amd64
Version: 3.4.4
```
**Package info (e.g. output of `rpm -q podman` or `apt list podman`):**
```
podman-3.4.4-1.fc35.x86_64
```
**Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/main/troubleshooting.md)**
No
**Additional environment details (AWS, VirtualBox, physical, etc.):**
Answers:
username_1: @username_2 PTAL
username_2: @username_0 @username_1 After reviewing the current PodListLibpod implementation it is not "atomic", the pod list is created and then operations run against this list.
I agree that pods that cease to exist during those operations should simply be removed from the list rather than reporting an error. This will require refactoring [PodPs](https://github.com/containers/podman/blob/main/pkg/domain/infra/abi/pods.go#L320) ignore this error on each operation. |
vert-x3/vertx-redis-client | 572718668 | Title: ArrayIndexOutOfBoundsException in ArrayQueue.java
Question:
username_0: ### Version
vert.x core:3.8.5
vert.x redis client:3.8.5
### Context
This error occures **always** after more then Integer.MAX_VALUE requests are send to Redis using RedisClient
SEVERE: Unhandled exception
java.lang.ArrayIndexOutOfBoundsException: -7483648
at io.vertx.redis.client.impl.ArrayQueue.peek(ArrayQueue.java:73)
at io.vertx.redis.client.impl.ArrayQueue.poll(ArrayQueue.java:84)
at io.vertx.redis.client.impl.RedisClient.lambda$handle$14(RedisClient.java:348)
### Reproducer
```
public class ArrayQueueTest {
@Test
public void testOverflow() {
ArrayQueue arrayQueue = new ArrayQueue(10);
arrayQueue.offer(0);
for (int i = 0; i < Integer.MAX_VALUE; i++) {
arrayQueue.offer(0);
arrayQueue.poll();
}
assertEquals(9, arrayQueue.freeSlots());
assertEquals(0, (int) arrayQueue.poll());
assertEquals(10, arrayQueue.freeSlots());
//Overflow for int back
arrayQueue.offer(1);
//Overflow for int front
assertEquals(1, (int) arrayQueue.poll());
}
}
```
### bugfix
ArrayQueue.java lines 58 and 85:
(...)
back++;
if (back < 0) back = 0 - back % queue.length;
(...)
(...)
front++;
if (front < 0) front = 0 - front % queue.length;
(...)
Status: Issue closed
Answers:
username_2: ```java
<T> void offer(T value) {
if (isFull()) {
throw new IndexOutOfBoundsException();
}
back++;
if (back == Integer.MAX_VALUE) {
// ensure the indexes stay positive
back = 0;
}
queue[back % queue.length] = value;
cur++;
}
```
write the value to queue[0] if back == Integer.MAX_VALUE, is it possible that queue[0] is used by another value?
e.g.
```java
#: values
_: empty slots
here
#####################_________________######
0 back front
```
one possible solution
```java
if (back == Integer.MAX_VALUE) {
back %= queue.length;
}
```
username_2: the same change may be applied to the front too |
ExtensionEngine/tailor | 523449710 | Title: Specific issue with progress icon on file upload meta component
Question:
username_0: ## I'm submitting a...
<!-- Check one of the following options with "x" -->
- [x] Bug report <!-- Please search GitHub for a similar issue or PR before submitting -->
- [ ] Regression (a behavior that used to work and stopped working in a new release)
- [ ] Feature request
- [ ] Documentation issue or request
## Steps to Reproduce
1. Try to add a file with invalid(not supported) extension to file upload.
2. Click on add file again and then click cancel when selecting a file - Notice infinite circular progress icon is displayed
<img width="1327" alt="Screen Shot 2019-11-15 at 13 42 00" src="https://user-images.githubusercontent.com/34127147/68944319-dd320180-07ad-11ea-85bf-7ceb1de68e72.png">
Answers:
username_1: @username_0 This one should no longer be applicable
Status: Issue closed
|
dotnet/core | 795315644 | Title: api-ms-win-crt-runtime-l1-1-0.dll missed to install dotnet-sdk-5.0.10
Question:
username_0: Problem encountered on https://dotnet.microsoft.com/learn/dotnet/hello-world-tutorial/install
Operating System: windows
Provide details about the problem you're experiencing. Include your operating system version, exact error message, code sample, and anything else that is relevant.
Answers:
username_1: Hi @username_0! What version of Windows are you running? It seems that maybe you missed the additional dependencies as noted here:

username_0: Tks. W7. The main reasson of all trouble is due that suddently I could not scan through my printer (god job done along 8 years) HPOfficejet Pro L7480) with no explanatios at all. So I had to start guessing everywhere about problem. Apologies
Status: Issue closed
username_1: Interesting, I'd love to learn how you ended up in that tutorial given you were trying to solve a printer problem.
What did you search for and where did you land?
That tutorial is only for folks that are trying to learn how to develop applications. |
forj-oss/forjj | 347350726 | Title: Forjj segfault if contrib repo location does not exist
Question:
username_0: See log below.
```
[username_0@username_0laptop bitbucket]$ rm -Rf bitbucket/ && forjj create --infra-path=bitbucket --run-plugin-debugger=bitbucket --contribs-repo=~/go/src 2>&1 | tee kevin.log
branch master, build_date 2018-07-21_22:58:28_+0200, build_commit ebbca899263e4918ed70353f51cefc902e69f10b, build_tag false.
WARNING ! main.(*Forj).ParseContext: stat /home/username_0/workspace/go/src/bitbucket/bitbucket: no such file or directory
2018/08/03 12:49:16 git init /home/username_0/workspace/go/src/bitbucket/bitbucket/.forj-workspace/deployments/production
2018/08/03 12:49:16 stdout Initialized empty Git repository in /home/username_0/workspace/go/src/bitbucket/bitbucket/.forj-workspace/deployments/production/.git/
2018/08/03 12:49:16 git init /home/username_0/workspace/go/src/bitbucket/bitbucket/.forj-workspace/deployments/dev
2018/08/03 12:49:16 stdout Initialized empty Git repository in /home/username_0/workspace/go/src/bitbucket/bitbucket/.forj-workspace/deployments/dev/.git/
2018/08/03 12:49:16 git init /home/username_0/workspace/go/src/bitbucket/bitbucket/.forj-workspace/deployments/test
2018/08/03 12:49:16 stdout Initialized empty Git repository in /home/username_0/workspace/go/src/bitbucket/bitbucket/.forj-workspace/deployments/test/.git/
2018/08/03 12:49:16 Organization : 'demoforjjprod'
2018/08/03 12:49:16 Unable to load plugin information for instance 'bitbucket'. Document not found from URLs given
WARNING ! main.(*Forj).contextDisplayed: Forjj has loaded the following context:
Forjfile model: /home/username_0/workspace/go/src/bitbucket/Forjfile
-------------------------------------
2018/08/03 12:49:16 Set default upstream application to 'bitbucket'
2018/08/03 12:49:16 CREATE: Automatic git push and forjj maintain enabled.
WARNING ! forjj/forjfile.(*Forge).Validate: Found infra data from deployment ''. This definition is ignored. Move it to your main Forjfile.
WARNING ! forjj/forjfile.(*Forge).Validate: Found infra data from deployment ''. This definition is ignored. Move it to your main Forjfile.
Validated successfully.
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x7cbf86]
goroutine 1 [running]:
forjj/scandrivers.(*ScanDrivers).DoScanDriversObject(0xc4201a3080, 0xc4201c8ec0, 0xc4201a3080)
/go/src/forjj/scandrivers/scan_drivers.go:99 +0x666
main.(*Forj).scanAndSetDefaults(0xb897c0, 0xc42017e150, 0x8fb86f, 0x6, 0x7721da, 0xc4200b4900)
/go/src/forjj/drivers_options.go:482 +0x136
main.(*Forj).Create(0xb897c0, 0xc42011e5a0, 0x3)
/go/src/forjj/create.go:122 +0x142
main.(*Forj).createAction(0xb897c0, 0x8fb80f, 0x6)
/go/src/forjj/create.go:18 +0x40
main.(*Forj).(main.createAction)-fm(0x8fb80f, 0x6)
/go/src/forjj/app.go:239 +0x3e
main.main()
/go/src/forjj/forjj.go:52 +0x1ed
```<issue_closed>
Status: Issue closed |
Bamboo-isucon/isucon7_app | 679668752 | Title: アプリ説明
Question:
username_0: ホーム画面
<img width="721" alt="スクリーンショット 2020-08-16 10 12 44" src="https://user-images.githubusercontent.com/48216243/90324386-261b1e80-dfa9-11ea-93b1-427e3c24efab.png">
匿名じゃない2ちゃんねるみたいな感じ
チャンネルがあってその中でチャットするアプリ
Answers:
username_0: <img width="1439" alt="スクリーンショット 2020-08-16 10 16 00" src="https://user-images.githubusercontent.com/48216243/90324414-8316d480-dfa9-11ea-9724-6bce68fcceac.png">
チャンネルは追加可能
username_0: <img width="1432" alt="スクリーンショット 2020-08-16 10 16 30" src="https://user-images.githubusercontent.com/48216243/90324416-932eb400-dfa9-11ea-8a76-f3fd3683381c.png">
ユーザー名と画像変更できる
username_0: <img width="718" alt="スクリーンショット 2020-08-16 10 18 10" src="https://user-images.githubusercontent.com/48216243/90324433-cec97e00-dfa9-11ea-87d5-d6fa48172705.png">
自分もコメントできる
username_0: <img width="1426" alt="スクリーンショット 2020-08-16 10 25 09" src="https://user-images.githubusercontent.com/48216243/90324524-dfc6bf00-dfaa-11ea-8b20-a6337c4f6d92.png">
チャットログ
username_0: ルーティング
36: get '/initialize'
45: get '/'
52: get '/channel/:channel_id'
62: get '/register'
66: post '/register'
82: get '/login'
86: post '/login'
97: get '/logout'
102: post '/message'
113: get '/message'
148: get '/fetch'
181: get '/history/:channel_id'
225: get '/profile/:user_name'
245: get '/add_channel'
254: post '/add_channel'
271: post '/profile'
323: get '/icons/:file_name'
username_0: スキーマ
`CREATE TABLE user (
id BIGINT UNSIGNED AUTO_INCREMENT NOT NULL PRIMARY KEY,
name VARCHAR(191) UNIQUE,
salt VARCHAR(20),
password VARCHAR(40),
display_name TEXT,
avatar_icon TEXT,
created_at DATETIME NOT NULL
) Engine=InnoDB DEFAULT CHARSET=utf8mb4;
CREATE TABLE image (
id BIGINT UNSIGNED AUTO_INCREMENT NOT NULL PRIMARY KEY,
name VARCHAR(191),
data LONGBLOB
) Engine=InnoDB DEFAULT CHARSET=utf8mb4;
CREATE TABLE channel (
id BIGINT AUTO_INCREMENT NOT NULL PRIMARY KEY,
name TEXT NOT NULL,
description MEDIUMTEXT,
updated_at DATETIME NOT NULL,
created_at DATETIME NOT NULL
) Engine=InnoDB DEFAULT CHARSET=utf8mb4;
CREATE TABLE message (
id BIGINT AUTO_INCREMENT NOT NULL PRIMARY KEY,
channel_id BIGINT,
user_id BIGINT,
content TEXT,
created_at DATETIME NOT NULL
) Engine=InnoDB DEFAULT CHARSET=utf8mb4;
CREATE TABLE haveread (
user_id BIGINT NOT NULL,
channel_id BIGINT NOT NULL,
message_id BIGINT,
updated_at DATETIME NOT NULL,
created_at DATETIME NOT NULL,
PRIMARY KEY(user_id, channel_id)
) Engine=InnoDB DEFAULT CHARSET=utf8mb4;`
username_0: N+1あるメソッド
・get '/message'
・get '/fetch'
・get '/history/:channel_id'
username_1: クソテーブル確認
```
mysql> show tables;
+-------------------+
| Tables_in_isubata |
+-------------------+
| channel |
| haveread |
| image |
| message |
| user |
+-------------------+
5 rows in set (0.00 sec)
mysql> select count(1) fromt channel;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'channel' at line 1
mysql> select count(1) from channel;
+----------+
| count(1) |
+----------+
| 100 |
+----------+
1 row in set (0.00 sec)
mysql> select count(1) from haveread;
+----------+
| count(1) |
+----------+
| 49 |
+----------+
1 row in set (0.00 sec)
mysql> select count(1) from image;
+----------+
| count(1) |
+----------+
| 1003 |
+----------+
1 row in set (0.00 sec)
mysql> select count(1) from message;
+----------+
| count(1) |
+----------+
| 10001 |
+----------+
1 row in set (0.00 sec)
mysql> select count(1) from user;
+----------+
| count(1) |
+----------+
| 1003 |
+----------+
1 row in set (0.01 sec)
```
username_1: ## indexを張る対象の調査
### alpで引っかかった時間がかかっているエンドポイントでのsqlの調査
- `/fetch`
```
mysql> explain select * from haveread where user_id = 1028 and channel_id = 259;
+----+-------------+-------+------------+------+---------------+------+---------+------+------+----------+--------------------------------+
| id | select_type | table | partitions | type | possible_keys | key | key_len | ref | rows | filtered | Extra |
+----+-------------+-------+------------+------+---------------+------+---------+------+------+----------+--------------------------------+
| 1 | SIMPLE | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | no matching row in const table |
+----+-------------+-------+------------+------+---------------+------+---------+------+------+----------+--------------------------------+
1 row in set, 1 warning (0.00 sec)
mysql> explain select * from haveread where user_id = 1028 and channel_id = 1;
+----+-------------+----------+------------+-------+---------------+---------+---------+-------------+------+----------+-------+
| id | select_type | table | partitions | type | possible_keys | key | key_len | ref | rows | filtered | Extra |
+----+-------------+----------+------------+-------+---------------+---------+---------+-------------+------+----------+-------+
| 1 | SIMPLE | haveread | NULL | const | PRIMARY | PRIMARY | 16 | const,const | 1 | 100.00 | NULL |
+----+-------------+----------+------------+-------+---------------+---------+---------+-------------+------+----------+-------+
1 row in set, 1 warning (0.01 sec)
mysql> explain SELECT COUNT(*) as cnt FROM message WHERE channel_id = 1;
+----+-------------+---------+------------+------+---------------+------+---------+------+-------+----------+-------------+
| id | select_type | table | partitions | type | possible_keys | key | key_len | ref | rows | filtered | Extra |
+----+-------------+---------+------------+------+---------------+------+---------+------+-------+----------+-------------+
| 1 | SIMPLE | message | NULL | ALL | NULL | NULL | NULL | NULL | 10035 | 10.00 | Using where |
+----+-------------+---------+------------+------+---------------+------+---------+------+-------+----------+-------------+
1 row in set, 1 warning (0.00 sec)
mysql> explain SELECT COUNT(*) as cnt FROM message WHERE channel_id = 1 AND 1 < id ;
+----+-------------+---------+------------+-------+---------------+---------+---------+------+------+----------+-------------+
| id | select_type | table | partitions | type | possible_keys | key | key_len | ref | rows | filtered | Extra |
+----+-------------+---------+------------+-------+---------------+---------+---------+------+------+----------+-------------+
| 1 | SIMPLE | message | NULL | range | PRIMARY | PRIMARY | 8 | NULL | 5017 | 10.00 | Using where |
+----+-------------+---------+------------+-------+---------------+---------+---------+------+------+----------+-------------+
1 row in set, 1 warning (0.01 sec)
```
三つ目の`explain SELECT COUNT(*) as cnt FROM message WHERE channel_id = 1;`がpossible_keyがnullなので
index貼って改善↓
```
mysql> ALTER TABLE message ADD INDEX search_channel_id(channel_id);
Query OK, 0 rows affected (0.07 sec)
Records: 0 Duplicates: 0 Warnings: 0
mysql> explain SELECT COUNT(*) as cnt FROM message WHERE channel_id = 1;
+----+-------------+---------+------------+------+-------------------+-------------------+---------+-------+------+----------+-------------+
| id | select_type | table | partitions | type | possible_keys | key | key_len | ref | rows | filtered | Extra |
+----+-------------+---------+------------+------+-------------------+-------------------+---------+-------+------+----------+-------------+
| 1 | SIMPLE | message | NULL | ref | search_channel_id | search_channel_id | 9 | const | 1009 | 100.00 | Using index |
+----+-------------+---------+------------+------+-------------------+-------------------+---------+-------+------+----------+-------------+
1 row in set, 1 warning (0.00 sec)
``` |
influxdata/influxdb-client-go | 741624961 | Title: Retention_policy not responding
Question:
username_0: __Steps to reproduce:__
We created two terraform providers that communicates with this go client. First is for the [onboarding configuration](https://github.com/lancey-energy-storage/terraform-provider-influxdb-v2-onboarding) and second is to create resources like buckets or authorization [here](https://github.com/lancey-energy-storage/terraform-provider-influxdb-v2).
These providers just get actual configurations of this go client and convert commands to be usable with terraform.
List the minimal actions needed to reproduce the behavior.
1. create the terraform configuration like below
```
resource "influxdbv2_bucket" "forecasts" {
depends_on = [influxdbv2-onboarding_setup.setup]
name = "forecasts"
org_id = influxdbv2-onboarding_setup.setup.org_id
rp = "2h"
retention_rules {
every_seconds = 1
}
}
```
2. terraform apply
__Expected behavior:__
I should have a new bucket created in the influxdb instance.
__Actual behavior:__
The influxdb api returns that the retention policy must to be at least 1h.
__Specifications:__
- Client Version: v2.2.0 (latest)
- InfluxDB Version: 2.0.0.rc
- Platform: Linux / Digitalocean
So, what is the actual error on this client. Is it just not updated with the latest version of Influxdb, or else ?
Thank's in advance !
Status: Issue closed
Answers:
username_1: @username_0, you've probably figured out this is the server limitation. |
jasonwilliams/boa | 508581875 | Title: Implement Array.prototype.every()
Question:
username_0: Array methods are implemented here, for e.g here's concat:
https://github.com/username_0/boa/blob/master/src/lib/js/array.rs#L78-L109
**Specification:**
https://tc39.es/ecma262/#sec-array.prototype.every
**Debugging & Setup**
https://github.com/username_0/boa/blob/master/docs/debugging.md
Answers:
username_1: I'd like to tackle this
Status: Issue closed
|
FerretTeam/FerretsBlog | 200945218 | Title: Ferrets 网站的运行和维护
Question:
username_0: # Ferrets 网站的运行和维护
在完成一个可运行的网站后应立即着手以下工作:
1. 服务器的购买。在服务器上安装 Git 工具,将项目直接从 Github 拷贝到服务器上并运行,之后的更新均可通过 Github 完成。但注意使用其他安全的方式将服务器的私钥等关键文件拷贝到服务器。
2. 域名的解析和备案。直接使用腾讯云的服务完成域名的解析和备案,备案可能需要半个月的时间。
3. 刻意为网站添加众多的出口,以便爬虫软件提高对它的排名。<issue_closed>
Status: Issue closed |
newrelic/newrelic-java-agent | 768992648 | Title: Respond to `Failed_Precondition` response code by disconnecting and connecting to Trace Observer
Question:
username_0: ## Feature Description
The java agent should respond to a 8T `Failed_Precondition` response status by closing the current channel fully and starting a new channel by resolving the DNS record to the Trace Observer again. This will shift the agent's traffic to a different cell.
This will bring the agent in alignment to [the current agent spec](https://source.datanerd.us/agents/agent-specs/blob/master/Infinite-Tracing.md#failed_precondition).
## Additional context
Reason and research here - #157<issue_closed>
Status: Issue closed |
jlippold/tweakCompatible | 523818747 | Title: `TapVideoConfig` working on iOS 12.1
Question:
username_0: ```
{
"packageId": "com.spicat.tapvideoconfig",
"action": "working",
"userInfo": {
"arch32": false,
"packageId": "com.spicat.tapvideoconfig",
"deviceId": "iPhone10,3",
"url": "http://cydia.saurik.com/package/com.spicat.tapvideoconfig/",
"iOSVersion": "12.1",
"packageVersionIndexed": true,
"packageName": "TapVideoConfig",
"category": "Tweaks",
"repository": "BigBoss",
"name": "TapVideoConfig",
"installed": "0.0.4.2",
"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.spicat.tapvideoconfig",
"commercial": false,
"packageInstalled": true,
"tweakCompatVersion": "0.1.5",
"shortDescription": "Change video configuration directly in Camera app.",
"latest": "0.0.4.2",
"author": "SpicaT",
"packageStatus": "Unknown"
},
"base64": "<KEY>
"chosenStatus": "working",
"notes": ""
}
```<issue_closed>
Status: Issue closed |
rainlab/forum-plugin | 36627170 | Title: Profile pages need posts, threads etc
Question:
username_0: Profile pages currently show just about nothing. They should show posts, threads and support events to display extra information (for example on the live site we want to see marketplace plugins).
Status: Issue closed
Answers:
username_1: This has been implemented, "Latest posts" appear on profile pages |
kezong/fat-aar-android | 737617813 | Title: fat-aar 生成时会把依赖信息保存下来,当我将打包的aar上传到maven时,会产生一些问题
Question:
username_0: fat-aar 生成时会把依赖信息保存下来,当我将打包的aar上传到maven时,maven 生成的pom文件会带上这些依赖信息,实际上依赖已经被打包进aar了。那么在别人通过远程依赖来下载这个aar时,就会报无法下载aar中的SNAPSHOT,如果是单独把这个aar作为文件添加依赖的话是没问题的
一下是具体的信息
fluttertoast
thrio
sqflite
package_info
shared_preferences_extend
webview_flutter
path_provider
loggerplugin
get_ip
dartproto
[fat-aar]--------------------------[common]--------------------------
[fat-aar][embed detected][aar]io.flutter.plugins.webviewflutter:webview_flutter:1.0-SNAPSHOT
[fat-aar][embed detected][aar]io.flutter.plugins.pathprovider:path_provider:1.0-SNAPSHOT
[fat-aar][embed detected][jar]io.flutter:flutter_embedding_release:1.0.0-c8e3b9485386425213e2973126d6f57e7ed83c54
[fat-aar][embed detected][jar]io.flutter:armeabi_v7a_release:1.0.0-c8e3b9485386425213e2973126d6f57e7ed83c54
[fat-aar][embed detected][aar]com.yiyou.tt.loggerplugin:loggerplugin:1.0-SNAPSHOT
[fat-aar][embed detected][aar]de.pdad.getip:get_ip:1.0-SNAPSHOT
[fat-aar][embed detected][aar]com.example.FlutterToast:fluttertoast:1.0-SNAPSHOT
[fat-aar][embed detected][aar]com.tekartik.sqflite:sqflite:1.0-SNAPSHOT
[fat-aar][embed detected][aar]com.quwan.tt.shared_preferences_extend:shared_preferences_extend:1.0-SNAPSHOT
[fat-aar][embed detected][aar]io.flutter.plugins.packageinfo:package_info:1.0-SNAPSHOT
[fat-aar][embed detected][aar]com.quwan.tt.flutter.dartproto:dartproto:1.0-SNAPSHOT
[fat-aar][embed detected][aar]com.hellobike.flutter.thrio:thrio:0.5.0
这是pom文件
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>com.quwan.tt</groupId>
<artifactId>flutterModule</artifactId>
<version>0.0.1</version>
<packaging>aar</packaging>
<name>TTFlutterModule</name>
<description>null</description>
<licenses>
<license>
<name>YourLiceneseName</name>
<url>http://your.licenese.url</url>
</license>
</licenses>
<developers>
<developer>
<id>your_id</id>
<name>linpeiba</name>
<email><EMAIL></email>
</developer>
</developers>
<dependencies>
<dependency>
<groupId>io.flutter</groupId>
<artifactId>flutter_embedding_release</artifactId>
<version>1.0.0-c8e3b9485386425213e2973126d6f57e7ed83c54</version>
[Truncated]
<dependency>
<groupId>com.yiyou.tt.loggerplugin</groupId>
<artifactId>loggerplugin</artifactId>
<version>1.0-SNAPSHOT</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>com.quwan.tt.flutter.dartproto</groupId>
<artifactId>dartproto</artifactId>
<version>1.0-SNAPSHOT</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>de.pdad.getip</groupId>
<artifactId>get_ip</artifactId>
<version>1.0-SNAPSHOT</version>
<scope>runtime</scope>
</dependency>
</dependencies>
</project>
Answers:
username_1: Required by:
project :app > com.facebook.react:react-native-webrtc:1.84.0-jitsi-6110239
```

username_0: 解决了
可以参考下面的方法
afterEvaluate {
generatePomFileForMavenAarPublication {
doLast {
def pomFile = file("../Flutter/build/publications/mavenAar/pom-default.xml")
if (!pomFile.exists()) {
return
}
//把pom文件中的runtime dependency 都删了 因为这些已经打包进来了
println pomFile.name
def xmlparser = new XmlParser()
Node node = xmlparser.parse(pomFile)
List<Node> dependencies = node.get("dependencies")
List<Node> target = new ArrayList<>()
dependencies.each { dependency ->
dependency.each { element ->
List<Node> scope = element.get("scope")
scope.each { _scope ->
if (_scope.value().get(0) == "runtime") {
if (!target.contains(element)) {
target.add(element)
}
}
}
}
}
target.each { targetnode -> targetnode.parent().remove(targetnode) }
new XmlNodePrinter(new PrintWriter(new FileWriter(pomFile))).print(node)
}
}
}
Status: Issue closed
username_3: 哥们,请教一下 你这个这么用?
username_3: @username_0 哥们,请教一下 你这个这么用? |
sisl/ExprOptimization.jl | 312886894 | Title: Time out when cloning from github
Question:
username_0: Hi
Experiencing a time out when cloning from github.
I checked to see if it was my connection by installing other packages which worked ok.
Here is my error:
| | |_| | | | (_| | | Version 0.6.2 (2017-12-13 18:08 UTC)
_/ |\__'_|_|_|\__'_| | Official http://julialang.org/ release
|__/ | x86_64-w64-mingw32
julia> Pkg.add("ExprOptimization")
INFO: Cloning cache of ExprOptimization from https://github.com/sisl/ExprOptimization.jl.git
ERROR: Cannot clone ExprOptimization from https://github.com/sisl/ExprOptimization.jl.git. failed to send request: The operation timed out |
newrelic/node-newrelic | 473430937 | Title: TransactionHandleStub
Question:
username_0: Im performing a load test to my newRelic monitored app. When the requests are performed sequentially, an instance of `TransactionHandle` is retrieved by the `newrelic.getTransaction()` function.
The problem arises when I perform some concurrent requests to my server, the method `newrelic.getTransaction()` returns an instance of `TransactionHandleStub`. Half of them to be precise.
Here it says that it could be because no transaction is being tracked at the time I am calling the function: https://newrelic.github.io/node-newrelic/docs/lib_transaction_handle.js.html (line 58)
I think this is why in my dashboard I see unrecognized transactions:

Any idea? Thanks!
Answers:
username_1: @username_0 -- nice to meet you, and thanks for reaching out!
For starters, `<official-voice>` if you need Official Support for the agent the quickest way to resolve a problem is to contact support at [https://support.newrelic.com/](https://support.newrelic.com/). `</official-voice>`
Regarding the behavior you described, there are circumstance where, depending on how you're achieving your concurrency, that NodeJS can lose track of the transaction. We call this transaction state loss and your description sounds like a classic case.
This mainly happens when code "Crosses asynchronous boundaries" (i.e. when work gets shuttled off to the event loop via setTimeout, setImmediate, or one of its ilk). We take extra effort to prevent this in the Agent, but since every framework handles this sort of work differently, it's a sort of a whack-a-mole situation.
Is it possible to boil your problem down to a simple reproducible code sample you can share here? We might be able to spot an obvious problem and/or help you with an unofficial work around.
username_1: We're going to close this out for now, but please free to restart the conversation when/if you have the time or interest.
Status: Issue closed
|
mirage/mirage | 85739234 | Title: mirage tool initialises network stack multiple times
Question:
username_0: If you ask for e.g. a conduit and a resolver on top of a single stackv4 in your `config.ml` then mirage generates a `main.ml` that runs two stacks on the same interface (which causes problems, since they're both fighting over the incoming packets). Example:
https://github.com/lcoviedo/mirage-http-fetch/blob/bff1eccbfd05279976ebd4cf265e24f2dccab951/config.ml
http://lists.xenproject.org/archives/html/mirageos-devel/2015-06/msg00009.html
Answers:
username_1: The new version of conduit should avoid this specific error, but the problem still remains in the general case: we don't have (yet) a good way to express sharing between components in the mirage DSL.
username_1: I think this is now solved (/cc @Drup)
Status: Issue closed
|
pcapriotti/optparse-applicative | 38177853 | Title: Misleading error reports for two sub-parsers
Question:
username_0: I have a tool that runs in two phases, both phases share some options and have additional custom options. I want to run
~~~~
$ tool --phase1 --max-num=4 --verbose --phase2 --max-num=3 --special
~~~~
Here `max-num=4` and `verbose` belong to phase 1 and `max-num=3` and
`special` belong to phase 2. The order of options within a phase, like `max-num=4` and `verbose`, is irrelevant.
Mr. Capriotti suggested to define two subparsers each with a command. This is what I did. It means that `phase1` and `phase2` don't start with dashes and that they can appear in any order.
See the attached module which is an extension of the example from the Hackage front page of `optparse-applicative`. There the sub-commands are called `add` and `commit`. I hope it is not too confusing.
Now the following problem arises:
~~~~
$ runhaskell example-complex --hello you add myfile
Usage: example-complex add FILE
Add a file to the repository
~~~~
That is, the `add` command is completely specified and the `commit` command is missing. However the parser suggests that there is something wrong with the `add` command.
Answers:
username_1: #162
Although the Missing arguments feature will make this better in 0.12, this PR should fix it completely.
username_1: Merged, please reopen if there's any issues.
Status: Issue closed
|
TechnologyAdvice/stardust | 180823748 | Title: what happened to <Modal />
Question:
username_0: ### Steps
1. Do something
2. Do something else.
### Expected
### Result
### Testcase
Fork: http://codepen.io/username_1/pen/ZpBaJX
Status: Issue closed
Answers:
username_1: The prop is now `open`, see an example in the docs here: http://technologyadvice.github.io/stardust/modules/modal#size
This was updated with our new Portal component. We've instituted much more clear `BREAKING CHANGE: ...` notes in the CHANGELOG.md moving forward. Apologies for the confusion.
username_0: yeah i found it, that's why i immediately closed it, you answered too fast 👍 |
skrollme/homebridge-eveatmo | 276693861 | Title: [enhancement] Netatmo welcome camera
Question:
username_0: Black Friday and of course the Netatmo welcome was also on sale. 🙄 So I bought it. dah.. For no particular reason.😉
Any chance to see a (the) camera supported in eveatmo in the very near future? 🤞🏻
Thx
Answers:
username_1: Currently no plan to implement this (because I do not own one). Aren't there other homebridge-plugins for the Welcome? Is it possible to use both: one for Sensors, one for camera?
username_2: I sold mine.Didn't liked it. So also no need for me as well. ;) But thanks anyway for all your other work and sharing. 👍
Status: Issue closed
|
Sitefinity/feather-widgets | 71847844 | Title: Selecting LDAP user does not filter the shown users
Status: Issue closed
Question:
username_0: 1. Open users list designer
2. Make sure that 'Basic profile' is selected
3. Open user selector and select a LDAP user
4. Save the designer
Expected: No users are shown. The following message is shown: The selected template cannot be used with this profile type. Select another template or edit this template.
Actual: All users from the default providers are shown
Status: Issue closed
Answers:
username_0: 1. Open users list designer
2. Make sure that 'Basic profile' is selected
3. Open user selector and select a LDAP user
4. Save the designer
Expected: No users are shown. The following message is shown: The selected template cannot be used with this profile type. Select another template or edit this template.
Actual: All users from the default providers are shown
Status: Issue closed
|
luyadev/luya | 207479485 | Title: Refactor Language Switcher
Question:
username_0: The language switcher widget should not require a template. Rewrite to configure the elements and rename to LangSwitcher (according to Lang Model).
Answers:
username_0: Old switcher available under: https://github.com/luyadev/luya-rc-legacy
Status: Issue closed
|
google/EarlGrey | 171246907 | Title: configure_earlgrey - CommandLineArguments crash
Question:
username_0: During `pod install` with cocoapods 1.0.1, see below. I believe this is because our xcscheme has `EnvironmentVariables` but not `CommandLineArguments`.
```
Generating Pods project
Checking and Updating HomeAway for EarlGrey.
Adding EarlGrey Framework Location as an Environment Variable
in the App Project's Test Target's Scheme Test Action.
[!] An error occurred while processing the post-install hook of the Podfile.
undefined method `elements' for nil:NilClass
/gems/2.1.0/gems/earlgrey-0.0.8/lib/earlgrey/configure_earlgrey.rb:251:in `add_environment_variables_to_test_action_scheme'
/gems/2.1.0/gems/earlgrey-0.0.8/lib/earlgrey/configure_earlgrey.rb:153:in `modify_scheme_for_actions'
/gems/2.1.0/gems/earlgrey-0.0.8/lib/earlgrey/configure_earlgrey.rb:112:in `configure_for_earlgrey'
/gems/2.1.0/gems/earlgrey-0.0.8/lib/earlgrey/configure_earlgrey.rb:18:in `configure_for_earlgrey'
Podfile:78:in `block (2 levels) in from_ruby'
```
Answers:
username_1: Thanks for reporting this issue! It's a bug in the EarlGrey gem.
username_2: @username_0 - to confirm, you don't have <CommandLineArguments> present anywhere in your xcscheme file?
username_0: My xcscheme file has `<EnvironmentVariables>` but no `<CommandLineArguments>`
username_2: Our [demo app schemes](https://github.com/google/EarlGrey/tree/master/Demo/EarlGreyExample/EarlGreyExample.xcodeproj/xcshareddata) do not have any CommandLineArguments either. Would you mind posting your scheme or something analogous to it? This seems like a case we aren't covering.
username_0: I cannot post my xcscheme, unfortunately. I diagnosed the bug by inspecting the code in the gem... Could be wrong, though. When I removed my `<EnvironmentVariables>` section I was able to complete the `pod install`.
username_1: It'd be nice if you could post a redacted version of the xcscheme so we can reproduce & resolve the bug. The schemes in our test suite contain `<EnvironmentVariables>` and they work correctly.
username_0: When I read the code in your gem, it looks like this line will fail:
`launch_action_args.elements.each ...`
when the following conditions are true:
- EnvironmentVariables in launch action
-
Status: Issue closed
username_2: Yes, we assume that if you've come to that step then you have both Environment Variables and Command Line Args present in your scheme. [Here](https://github.com/google/EarlGrey/blob/master/gem/lib/earlgrey/configure_earlgrey.rb#L212), we in fact add a temporary CommandLineArg call for it. This does actually seem like a legitimate issue. Please feel free to reopen this if you can provide us a redacted version of your scheme or so, or possibly modify one of our provided schemes to show the failure happening. Thanks!
username_0: I've had three serious install issues trying to get EarlGrey working with our app, so I'm moving on now. I might try again when there's broader adoption. Thanks guys, good luck!
username_2: @username_0 - Thanks for bringing the issues to our attention. It would be great if you gave us your email id so we could invite you to join our [slack channel](https://googleoss.slack.com/messages/earlgrey). We're trying with every new iteration of EarlGrey to make the installation process smoother, and we'd love to help you step directly through any issues that you're facing.
I'm re-opening this issue since I'd like to test it out myself with different version of our scheme, to see if I can reproduce a similar error from my side.
username_2: During `pod install` with cocoapods 1.0.1, see below. I believe this is because our xcscheme has `EnvironmentVariables` but not `CommandLineArguments`.
```
Generating Pods project
Checking and Updating HomeAway for EarlGrey.
Adding EarlGrey Framework Location as an Environment Variable
in the App Project's Test Target's Scheme Test Action.
[!] An error occurred while processing the post-install hook of the Podfile.
undefined method `elements' for nil:NilClass
/gems/2.1.0/gems/earlgrey-0.0.8/lib/earlgrey/configure_earlgrey.rb:251:in `add_environment_variables_to_test_action_scheme'
/gems/2.1.0/gems/earlgrey-0.0.8/lib/earlgrey/configure_earlgrey.rb:153:in `modify_scheme_for_actions'
/gems/2.1.0/gems/earlgrey-0.0.8/lib/earlgrey/configure_earlgrey.rb:112:in `configure_for_earlgrey'
/gems/2.1.0/gems/earlgrey-0.0.8/lib/earlgrey/configure_earlgrey.rb:18:in `configure_for_earlgrey'
Podfile:78:in `block (2 levels) in from_ruby'
```
username_0: sure - <EMAIL>
username_2: Invite Sent! Thanks.
Status: Issue closed
username_4: Seems the latest fix has some problem.
I checkout the last master and meets ```[!] An error occurred while processing the post-install hook of the Podfile.
undefined method `elements' for nil:NilClass
/Users/Miles/.rvm/gems/ruby-2.2.1/gems/earlgrey-0.0.9/lib/earlgrey/configure_earlgrey.rb:246:in `add_environment_variables_to_test_action_scheme'
/Users/Miles/.rvm/gems/ruby-2.2.1/gems/earlgrey-0.0.9/lib/earlgrey/configure_earlgrey.rb:154:in `modify_scheme_for_actions'
/Users/Miles/.rvm/gems/ruby-2.2.1/gems/earlgrey-0.0.9/lib/earlgrey/configure_earlgrey.rb:113:in `configure_for_earlgrey'
/Users/Miles/.rvm/gems/ruby-2.2.1/gems/earlgrey-0.0.9/lib/earlgrey/configure_earlgrey.rb:18:in `configure_for_earlgrey'
/Users/Miles/EarlGrey/EarlGrey/Demo/EarlGreyExample/Podfile:42:in `block (3 levels) in from_ruby'```
But if I checkout 4dd1953e94511b90e695ece4e905685ac07a1b04, the commit before fixing this bug, pod install works well
username_2: @username_4 - this fix is not yet part of the `earlgrey gem`. Do you have environment variables present in the Launch Action of your Scheme? Could you copy the [configure earlgrey script](https://github.com/google/EarlGrey/blob/master/gem/lib/earlgrey/configure_earlgrey.rb) from head and see if the issue still persists? |
sakuli/sakuli | 461657282 | Title: Add Internet Explorer and Windows Environment Tests in travis
Question:
username_0: **Short overview**
To verify core features and functionality of Sakuli for internet explorer (Webautomation) and windows environment (nut.js implementations). Some automatic checks with IEWebdriver and windows environments should run in the CI System.
~~**Use case**~~
**Detailed description**
research on [matrix builds](https://docs.travis-ci.com/user/build-matrix)
and [windows environments](https://docs.travis-ci.com/user/reference/windows/)
Answers:
username_1: Currently Travis does not have display support for platforms other than Linux.
Remote webdrivers won't work either, since we would still require a display on our host running the test.
username_2: closed in favor of #331
Status: Issue closed
|
jquery/jquery | 197238198 | Title: statusCode parameter to $.ajax doesn't work with 302 responses
Question:
username_0: ```
$.ajax({
url: 'redirect-me.html', // server responds with a 302 redirect
statusCode: {
'302': function() {
console.log("302 response!");
}
}
});
```
Expected: should print "302 response".
Observed: NOTHING. The response is actually a 302 (it can be observed in the Network tab), but nothing happens. The handler doesn't seem to be triggered
```
$.ajax({
url: 'redirect-me.html', // server responds with a 302 redirect
statusCode: {
'302': function() {
console.log("302 response!");
}
}
success: function() {
console.log("Success!");
}
});
```
Expected: The documentation is awfully unclear about the interaction between `statusCode` and `success` (and `error`) if both are defined, but one of the following behavior could be expected (and should be documented): either only the handler for 302 is called, or both one after the other (as two requests are actually made), or an API could be defined so that if the 302 handler returns false the redirect is not followed, otherwise it is, or an additional setting for whether to follow redirects or not.
Observed: None of the above. Only the success handler is called.
Adding `return false` at the end of the 302 handler changes nothing in both cases.
Answers:
username_0: if that cannot ever possibly happen.
username_1: So perhaps if the origin differs or if it might be an infinite loop, then the redirect status code would be exposed?
username_2: Closed in favor of docs issue: https://github.com/jquery/api.jquery.com/issues/1022
Status: Issue closed
|
fex-team/fis3 | 99569938 | Title: inline的html文件中,引入a模块,构建后a模块的路径不会被配置到require.config的paths中
Question:
username_0: 如题,
在index.html中,用
<link rel="import" href="a.html?__inline"/> 引入一个子页面a
其中a.html require了一个
require(["test.js"]);
构建后,index.html 可以确实有了require(["test.js"]);,但是,其对应的require.config的paths配置没有被生成。
fis3配置如下
fis.hook('module', {
mode: 'amd',//amd,commonJs
forwardDeclaration: true//依赖前置
});
fis.match('::package', {
postpackager: fis.plugin('loader', {
resourceType: 'amd',
useInlineMap: true
})
});
Answers:
username_1: 内嵌的时候异步依赖丢失了,不过已经解决了,请更新 fis3 到 3.1
username_0: 太谢谢了,果然是个牛逼哄哄的高效团队!!!!!! |
FERNman/angular-google-charts | 1061122154 | Title: Updating peer dependences of @angular/common from 12.x.x to 13.x.x
Question:
username_0: The current peer dependences are :
"peerDependencies": {
"@angular/common": ">=6.0.0 <=12.x.x",
"@angular/core": ">=6.0.0 <=12.x.x"
},
Please updated them to
"peerDependencies": {
"@angular/common": ">=6.0.0 <=13.x.x",
"@angular/core": ">=6.0.0 <=13.x.x"
},
Answers:
username_1: @FERNman are you planning to support angular 13 in the near future?
username_2: @FERNman it would be great if you support angular 13
username_3: I was hoping to use this too, but can't find an alternative for 13, anybody have examples? |
gretzky/comparative-superlative | 502670425 | Title: Bug with ends with e
Question:
username_0: input, comparative, superlative:
```
[ 'insane', 'insaneer', 'insaneest' ]
```
Answers:
username_0: and `simple`, `dude`, etc!
Status: Issue closed
username_1: So, I couldn't get this published because somehow I'm no longer a collaborator on the npm package...but you are @username_0 -- any idea how this happened? https://www.npmjs.com/package/comparative-superlative
username_1: You're also listed as a maintainer...? https://registry.yarnpkg.com/comparative-superlative
username_1: input, comparative, superlative:
```
[ 'insane', 'insaneer', 'insaneest' ]
```
username_1: I made a fix for this, so if I could have my package back to publish it that would be great. |
tableflip/how-to | 183012681 | Title: Load a .shp file into a postgis enabled database
Question:
username_0: .shp or shape files are encoded polygons that can be added to maps.
Open a terminal or command line window.
**Note**
*If the path to the shp2pgsql and psql commands haven’t been included in your PATH system variable, you may wish to add them now. For me I'm exporting the following from my .zshrc or .bashrc equivalent file.
`export PATH="$PATH:/Applications/Postgres.app/Contents/Versions/latest/bin"`
get into psql by running
`psql`
then
```sh
CREATE USER <username> WITH PASSWORD '<<PASSWORD>>';
CREATE DATABASE <dbname> OWNER <username>;
\q
```
now connect to that database as <username>
```
psql -U <username> -d <dbname>
```
now extend that database as follows
```
CREATE EXTENSION postgis;
CREATE SCHEMA <schemaname>;
GRANT USAGE ON SCHEMA staging TO <username>;
GRANT SELECT ON ALL TABLES IN SCHEMA staging TO <username>;
GRANT EXECUTE ON ALL FUNCTIONS IN SCHEMA staging TO <username>;
```
Confirm PostGIS is responding to requests by executing the following psql query:*
```sh
psql -U <username> -d <dbname> -c "SELECT postgis_version()"
```
Run the shp2pgsql command and pipe the output into the psql command to load the shapefile into the database in one step. The recommended syntax is:
```sh
shp2pgsql -I -s <SRID> <PATH/TO/SHAPEFILE> <SCHEMA>.<DBTABLE> | psql -U postgres -d <DBNAME>
```
The command parameters are:
**<SRID>** — Spatial reference identifier
**<PATH/TO/SHAPEFILE>** — Full path to the shapefile (such as C:\MyData\roads\roads.shp)
**<SCHEMA>** — Target schema where the new table will be created
**<DBTABLE>** — New database table to be created (usually the same name as the source shapefile)
**<DATABASE>** — Target database where the table will be created
```sh
shp2pgsql -I -s 4269 C:\MyData\roads\roads.shp roads | psql -U postgres -d <DBNAME>
```
*The -I option will create a spatial index after the table is created. This is strongly recommended for improved performance. If you want to capture the SQL commands, pipe the output to a file:*
```sh
shp2pgsql -I -s <SRID> <PATH/TO/SHAPEFILE> <DBTABLE> > SHAPEFILE.sql
```
The file can be loaded into the database later by executing the following:
```sh
psql -U <username> -d <dbname> -f SHAPEFILE.sql
```
The shapefile has now been imported as a table in your PostGIS database and the last line in your console should say COMMIT. You can verify this by either using pgAdmin to view the list of tables, or by executing the following query at the command line:
```sh
psql -U <username> -d <dbname> -c "\d"
``` |
jeargle/Evodyne | 174925756 | Title: Markov Game Matrix
Question:
username_0: Add stochastic game matrices so that more complex game theoretic strategies can be tested against each other. These will include reactive strategies that consider the last move played by the opponent. |
InterImmCenter/feed | 550934348 | Title: Cuatro Cienegas Basin Mexico In the northern Mexican state of Cohuilla lies the Cuatro Cienegas Basin. | https://ift.tt/2QXHAl6 | January 16 2020 | https://ift.tt/2QZV683
Question:
username_0: <img src="http://www.nasa.gov/sites/default/files/thumbnails/image/pia23535.jpg"><br>
<b>Cuatro Cienegas Basin, Mexico</b><br>
In the northern Mexican state of Cohuilla lies the Cuatro Cienegas Basin.<br>
<br>
January 16, 2020<br>
via NASA https://ift.tt/2QXHAl6 |
MichaelRFairhurst/solver_3 | 287663704 | Title: function to calculate belt placement
Question:
username_0: have a todo in frame.scad, needs to be filled.
Answers:
username_1: To get the tangent angle (t) for the two gears we use:
`cos(t) = (1-a/b)/d`
a = smaller gear radius
b = larger gear radius
d = distance between the gears
Then with that, we can calculate the belt circumference (c) we can use
`c = 2 * (a*cos(t) + pi - b*cos(t) + sqrt((b*cos(t) - d - a*cos(t))^2 + (b*sin(t) - a*sin(t)^2))`
(half length of the wrapped gears, distance from one tangent point to another)
However, we want to go the other way.... which appears not to be possible based on [this post](https://math.stackexchange.com/questions/123361/distance-between-two-gears-surrounded-by-a-known-length-belt).
Not totally sure I understand the approximation formula provided, since it seems like `B` is partly what we want to approximate in the first place.
This also seems to have [a simpler belt length formula](http://blog.misumiusa.com/sizing-timing-belts-and-pulleys/).
Status: Issue closed
|
Agoric/agoric-sdk | 930792920 | Title: Generate unlocking schedules for the Cosmos vesting module
Question:
username_0: ## What is the Problem Being Solved?
The cosmos "vesting" module supports programmatic release of tokens for a given recipient. The unlocking schedule enumerates each release. In order to be able to generate these efficiently and accurately, we need a script that generates that schedule.
## Description of the Design
## Security Considerations
## Test Plan
Answers:
username_1: Per our conversation, the script should take the following inputs:
- Total amount (and denomination) to be distributed.
- Number of months the vesting should span.
- Day of month and time of day that vesting should occur.
- Start time of the schedule
- One or more "cliff" dates that delay all vesting before that date.
- Until #3421 lands, anticipated submission time of the schedule.
We should also do the reverse translation of a vesting schedule file back to date strings, given a start time, as a way of checking the results.
username_1: Note, the vesting file format is specified around line 100 in https://github.com/agoric-labs/cosmos-sdk/blob/release/0.43.x/x/auth/vesting/client/cli/tx.go.
username_1: Implemented in https://github.com/agoric-labs/cosmos-sdk/pull/69
Status: Issue closed
|
zquestz/omniauth-google-oauth2 | 54274994 | Title: How to add the openid_shutdown_ack parameter?
Question:
username_0: https://developers.google.com/accounts/docs/OpenID#shutdown-timetable says to the openid_shutdown_ack parameter to extend the timeline where users are not shown the warning about the shutdown.
How do I achieve this using this gem?
I've just spent far too long mucking around in the source code of omniauth, omniauth-openid and omniauth-oauth2 and it's not obvious at all where/how to pass this parameter along.
Answers:
username_1: This would just need to be added to the allowed parameters list in the gem. Then you can just pass it through the auth link url.
username_1: I don't think this actually effects us. I don't hit the endpoints in question.
username_0: Thanks, I'll give that a shot!
Status: Issue closed
|
vim/vim | 350331658 | Title: guioptions+=!, sighup and hit-enter with system()
Question:
username_0: There are two issues that has been with me for a long time.
The first: hit-enter after calling system().
1. `gvim --clean` to start
2. `set go=acit!` (I don't know the exact conbinations for the issue to occur yet.)
3. `let a = system('ls')`, and you'll get a "hit-enter" prompt.
This is a blocker issue for vim-racer, because this completer will call system() to get completions, and "hit-enter"s break typing. Sometimes I see a "^R" line shown after pressing enter.
The second: SIGHUP for background commands.
1. `gvim --clean` to start
2. `set go+=!`
3. `call system("firefox https://www.vim.org/ &")`
4. Nothing happens. The firefox process was killed by SIGHUP. Even I prefix it with `nohup`, nohup itself was killed before it fully set itself up.
Vim version 8.1.278 huge build with gtk2 GUI, on Arch Linux.
<details><summary>Full `--version` output</summary>
```
VIM - Vi IMproved 8.1 (2018 May 18, compiled Aug 13 2018 02:50:50)
Included patches: 1-278
Modified by me
Compiled by me@mymachine
Huge version with GTK2 GUI. Features included (+) or not (-):
+acl +extra_search +mouse_netterm +tag_old_static
+arabic +farsi +mouse_sgr -tag_any_white
+autocmd +file_in_path -mouse_sysmouse -tcl
+autochdir +find_in_path +mouse_urxvt +termguicolors
-autoservername +float +mouse_xterm +terminal
+balloon_eval +folding +multi_byte +terminfo
+balloon_eval_term -footer +multi_lang +termresponse
+browse +fork() -mzscheme +textobjects
++builtin_terms +gettext +netbeans_intg +timers
+byte_offset -hangul_input +num64 +title
+channel +iconv +packages +toolbar
+cindent +insert_expand +path_extra +user_commands
+clientserver +job +perl/dyn +vartabs
+clipboard +jumplist +persistent_undo +vertsplit
+cmdline_compl +keymap +postscript +virtualedit
+cmdline_hist +lambda +printer +visual
+cmdline_info +langmap +profile +visualextra
+comments +libcall +python/dyn +viminfo
+conceal +linebreak +python3/dyn +vreplace
+cryptv +lispindent +quickfix +wildignore
+cscope +listcmds +reltime +wildmenu
+cursorbind +localmap +rightleft +windows
+cursorshape +lua/dyn +ruby/dyn +writebackup
+dialog_con_gui +menu +scrollbind +X11
+diff +mksession +signs -xfontset
+digraphs +modify_fname +smartindent +xim
+dnd +mouse +startuptime -xpm
-ebcdic +mouseshape +statusline +xsmp_interact
+emacs_tags +mouse_dec -sun_workshop +xterm_clipboard
+eval +mouse_gpm +syntax -xterm_save
+ex_extra -mouse_jsbterm +tag_binary
system vimrc file: "$VIM/vimrc"
user vimrc file: "$HOME/.vimrc"
2nd user vimrc file: "~/.vim/vimrc"
user exrc file: "$HOME/.exrc"
system gvimrc file: "$VIM/gvimrc"
user gvimrc file: "$HOME/.gvimrc"
2nd user gvimrc file: "~/.vim/gvimrc"
defaults file: "$VIMRUNTIME/defaults.vim"
system menu file: "$VIMRUNTIME/menu.vim"
fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/uuid -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/atk-1.0 -pthread -D_FORTIFY_SOURCE=2 -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: gcc -L. -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -fstack-protector -rdynamic -Wl,-export-dynamic -Wl,-E -Wl,-rpath,/usr/lib/perl5/5.28/core_perl/CORE -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -L/usr/local/lib -Wl,--as-needed -o vim -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lfontconfig -lfreetype -lSM -lICE -lXt -lX11 -lXdmcp -lSM -lICE -lm -ltinfo -lelf -lnsl -lacl -lattr -lgpm -ldl -Wl,-E -Wl,-rpath,/usr/lib/perl5/5.28/core_perl/CORE -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -fstack-protector-strong -L/usr/local/lib -L/usr/lib/perl5/5.28/core_perl/CORE -lperl -lpthread -ldl -lm -lcrypt -lutil -lc
```
</details>
Answers:
username_1: How about:
```vim
silent let a = system('ls')
```
username_0: `silent` does prevent the hit-enter prompt. But it means I have to patch (potentially a lot of) 3rd party plugins.
username_2: The first issue happens in MacVim too, FYI.
username_3: I had a look. It happens because do_cmdline() is called recursively. BTW: I noticed that a bunch of autocommands are executed when using `:set guioptions+=!` like BufAdd, BufEnter, and then WinLeave, BufDelete. I think we could skip those at least for `system()`.
Thinking a bit more about the `system()` case, is there a reason, we don't simply set `no_wait_return` when executing the system() function? At least in that case we don't expect any output to be displayed directly, right?
username_4: If system() doesn't output anything, why does setting no_wait_return
make any difference?
--
From "know your smileys":
:-& Eating spaghetti
/// <NAME> -- <EMAIL> -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
username_3: I suppose that comes from the output in the (hidden) terminal window. |
volatiletech/sqlboiler | 728914189 | Title: Custom relation implementations
Question:
username_0: Context: with PostGIS and geographic information, there are relationships between tables that are interesting to express and leverage that aren't based on primary key lookups. For example, being able to relate one table to another via an ST_Intersects relationship can be meaningful.
It doesn't appear that via configuration there's much control over the relationship/association generation code in this project (though I haven't dug in that deeply).
Are there current or planned facilities to allow some customization of how relations/associations are implemented?
Status: Issue closed
Answers:
username_1: Nope. They're really only done by foreign key. sqlboiler sort of missed the mark on the GIS stuff. It was never considered during development so it's support is underwhelming at best. |
pandas-dev/pandas | 958145603 | Title: QST: I am getting valueerror: setting an array element with a sequence
Question:
username_0: Struggling couple of hours with it, what is going wrong here?
Trying to implement a demo from the tutorial "Art of Pandas"
Here is my code that should replace an element in the array
```
import pandas as pd
arr = pd.array([2, 5, 3], dtype="int")
arr[0] = [1]
```
Answers:
username_1: You are trying to assign array to element here :
```
arr[0] = [1]
```
just assign scalar:
```
arr[0] = 1
```
Check out the [example on fix exception](https://fixexception.com/pandas/setting-an-array-element-with-a-sequence/) with example steps to reproduce and fix
username_2: the above answer is correct. Please use stackoverflow for this kind of question.
Status: Issue closed
|
cebe/php-openapi | 490691111 | Title: Any chance of using a different version of Symfony YAML?
Question:
username_0: My project uses Symfony 3.4, and we're not likely to update to 4 any time soon. Do you need features from 4.0?
Ideally you could use a non-symfony library, but I don't know what the prospects are for that.
Answers:
username_1: Same issue for me. Is there any chance to add support for symfony/yaml >= 3.0 as well? Thnx
username_2: As far as I remember the interface changed in 4.0, so I pinned the version to make sure it works, will look into that.
Also there is the option in using another library, but it seems the symfony one is the best option available right now (#21).
username_2: https://github.com/symfony/symfony/issues/27965#issuecomment-535043620
Status: Issue closed
username_2: Updated composer.json, with the release of version 1.3 (probably going to happen tomorrow) you should be able to use this lib with symfony 3 and symfony 4. |
Here21/MakerLab | 244019838 | Title: [功能] 文件系统,启用Meteor-files实现文件的上传下载
Question:
username_0: 上传文件列表到项目,需要解决多项目文件的上传问题,以及目录问题。
- [multiple upload](https://github.com/VeliovGroup/Meteor-Files-Demos/blob/master/demo/imports/client/upload/upload-form.js#L73)
Answers:
username_0: 上传文件列表到项目,需要解决多项目文件的上传问题,以及目录问题。
- [multiple upload](https://github.com/VeliovGroup/Meteor-Files-Demos/blob/master/demo/imports/client/upload/upload-form.js#L73)
username_0: - [ ] 多文件上传已解决
- [ ] 根据登录用户的userId,创建image/file的存储路径 |
mozman/ezdxf | 1010531258 | Title: Support for "forward" and "backward" history buttons
Question:
username_0: @username_1 My mouse has two buttons for browser history navigation (forward & backward). I want to add this functionality to the DXF browser, but didn't find a solution by google, maybe you know the answer how to setup this Qt actions.
I replaced "Alt+Left" by `Qt.Key_Back` for testing, but this didn't work, and I want to assign both shortcuts "Alt+Left" and "Backward" to the action or create two actions with the same target method.
The browser actions setup can be found here. https://github.com/username_0/ezdxf/blob/53a3931c40c6b066de3356119dc229fe343c1393/src/ezdxf/addons/browser/browser.py#L124
Answers:
username_1: I think QAction shortcuts can only be keyboard shortcuts, which makes sense, but you can still trigger the action yourself if you listen to mouse events:
```python
def mousePressEvent(self, event: qg.QMouseEvent) -> None:
super().mousePressEvent(event)
if event.button() == qc.Qt.BackButton:
self._entity_history_back_action.trigger()
```
If you want to set custom 'shortcut text' so it says 'Entity History &Back Alt+Left or Back' or something like that, then you might be able to do that using a tab character: https://stackoverflow.com/a/1967140
username_0: Thank you!
These buttons on the mouse do not trigger the `mousePressEvent()`, it seems they are special "media" keys or so. I use the default Windows driver because the Logitech drivers are very buggy, so I don't see what command or key-code the driver assigns to these buttons.
I will add a simple toolbar to solve this issue.
username_1: to identify what event you need to handle, consider calling `self.installEventFilter(self)` and implementing:
```python
def eventFilter(self, obj: qc.QObject, event: qc.QEvent) -> bool:
if obj == self:
print(event)
return False
```
username_0: Thank you, using `installEventFilter()` helped to identify the problem: the extra buttons on my mouse, or the system events triggered by these buttons, are not handled by Qt (`DXFStructureBrowser(QMainWindow)`) . Chrome, Firefox and Opera support these buttons as browser history forward and backward.
Status: Issue closed
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.