date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/14 | 555 | 2,217 | <issue_start>username_0: is there a lifecycle hook so-called "ngAfterAllChildrenInit" because ngAfterViewInit is called before ngOninit of the children,
I am trying to avoid hacking with setTimeOut or emitting events from all the children and collecting them and then do what I want ( that depend on the children initia... |
2018/03/14 | 664 | 2,654 | <issue_start>username_0: ```
unit MyFirstUnit;
uses MyTranslateUnit;
...
sText := Dictionary('text to translate', UnitName);
...
end.
```
```
unit AnotherUnit;
uses MyTranslateUnit;
...
sText := Dictionary('new text to translate', UnitName);
...
end.
```
```
unit MyTranslateUnit;
function Dictiona... |
2018/03/14 | 680 | 2,689 | <issue_start>username_0: I'm a total beginner with JS and trying to learn by my self. I'm hoping I don't get bashed here but Stackoverflow looks like still place to ask questions.
I have this code for calculation and it works. But I want to change prompt to input and show the results on other inputs with a submit butt... |
2018/03/14 | 941 | 3,096 | <issue_start>username_0: Is there any builtin (or very simple) method of having a python dictionary work in a similar fashion as deque.
I need it to have a maximum size, and when new keys are added, if the maximum length is reached then the key added first is deleted. It shouldn't be too difficult to implement as a cu... |
2018/03/14 | 1,257 | 4,754 | <issue_start>username_0: I'm using dropwizard (jersey, jackson) to create a REST API and have stumbled upon some problems I can't seem to find the answer to.
I would like to build an sql query based on a json file. This would be done via a map (criteria, value). I have some problems realising this:
* Calling the DAO m... |
2018/03/14 | 248 | 1,053 | <issue_start>username_0: Our team have been trying to develop some GUI for the ansible execution and I wanted to know if there is some way to pause the execution of the playbook midway with just command line argument.
I am familiar with the Pause option but that needs to be added in the YAML, we don't want that.
I am a... |
2018/03/14 | 1,705 | 4,766 | <issue_start>username_0: I am trying to create a legend inside a fixed-width div, containing coloured checkboxes and a label for each checkbox. My problem is that longer labels break over two lines and push the label down below the checkbox, which looks bad:
[. For example, in database, one column has data ... |
2018/03/14 | 767 | 2,743 | <issue_start>username_0: In my database I have one columns in which the data is saved as float
I now want to export this and other columns from my database into a datatabel and then convert each column of the datatable to a list.
This workes fine for every column expect the one which is filled whit float values... |
2018/03/14 | 2,281 | 5,345 | <issue_start>username_0: Given a (dummy) vector
```
index=log(seq(10,20,by=0.5))
```
I want to compute the running mean with centered window and **with tapered windows at each end**, i.e. that the first entry is left untouched, the second is the average of a window size of 3, and so on until the specified window si... |
2018/03/14 | 1,248 | 4,523 | <issue_start>username_0: I have serverless API which is working with serverless framework version 1.25
Due to security reason I want to add response header. Please help me how can I set below headers via serverless.yml file. Is it necessary to add this header for the security reason?
• Content-Security-Policy: Includ... |
2018/03/14 | 1,504 | 5,664 | <issue_start>username_0: I am trying to run cron schedules on DurableExecutorService on Hazelcast.
My idea is that if one node goes down with its schedule, other nod having backup can pickup and resume the CRON.
This is what I am doing
```
String cron = "0/5 * * * * *";
config.setInstanceName(name);
... |
2018/03/14 | 1,594 | 5,075 | <issue_start>username_0: This is my string:
```
================================================================================
INPUT FILE
================================================================================
NAME = CO-c0m1.txt
| 1> ! HF def2-TZVP opt numfreq
| 2> ... |
2018/03/14 | 1,350 | 4,261 | <issue_start>username_0: I am new to tensorflow, I am using CNN model descrined by <http://www.wildml.com/2015/12/implementing-a-cnn-for-text-classification-in-tensorflow/>
I am getting around 60% accuracy for 5 class and 80% accuracy for 2 class classification
Now I want to visualize which word impact most to a part... |
2018/03/14 | 690 | 2,595 | <issue_start>username_0: I was studying C++ and came across [this](http://www.cplusplus.com/doc/tutorial/variables/) link for data types. In first table, character type is listed even under signed and unsigned integer category:
character types char Exactly one byte in size. At least 8 bits.
Integer types (signed) sig... |
2018/03/14 | 608 | 2,301 | <issue_start>username_0: I have a text box that takes input and when i hit enter it stores the output and displays in an unordered list format. The function without IIFE works when i use onclick event. However, with IIFE its not functioning. Please help.
```
messagewithenter
Message:
(function () {
var link = do... |
2018/03/14 | 1,164 | 4,921 | <issue_start>username_0: Every connection needs to be opened and closed. But what time is the best or it depends on the situation?
1. Open connection when initiate a windows(WPF), form(Windows form), webpage(ASP.NET) and close when the user close window/form/webpage.
2. Open connection only when user calls the databas... |
2018/03/14 | 1,140 | 4,843 | <issue_start>username_0: In my project i am using Activiti API for process workflow.If i start activiti workflow by calling ProcessEngines.getDefaultProcessEngine() activiti will create few tables in our database like ACT\_GE\_PROPERTY,ACT\_HI\_ACTINST etc..
But our requirement is that we are not at all going to use ac... |
2018/03/14 | 526 | 2,051 | <issue_start>username_0: I'm using `platformWorkerAppDynamic` to render my Angular application.
However, I need to manipulate canvas context. I can create canvas, using `Renderer2` but **I can't find a way to call `getContext('2d')` method** for example or **draw an image to canvas**.
I get an error because `this.canva... |
2018/03/14 | 413 | 1,370 | <issue_start>username_0: I have hibernate query:
```
getSession()
.createQuery("from Entity where id in :ids")
.setParameterList("ids", ids)
.list();
```
where ids is Collection ids, that can contain a lot of ids.
Currently I got exception when collection is very large:
... |
2018/03/14 | 360 | 1,130 | <issue_start>username_0: I have a form:
```
```
and I want to make a specific production after clicking on any element of the form eg.
```
```
How can this be done - and work?
I read about touched or dirty directive, but I don't know how to implement it?<issue_comment>username_1: Try adding parenthesis around `:i... |
2018/03/14 | 269 | 1,122 | <issue_start>username_0: We are currently using NodeJs with Knex for connecting with MySQL.
We have plans to migrate our database to Cloud Spanner.
So wanted to know, if knexjs has support for cloud spanner.
I did not see any related articles in their official website (<http://knexjs.org/>).
If not, any ORM w... |
2018/03/14 | 1,231 | 3,762 | <issue_start>username_0: Wondering why this isn't possible:
```
class Test {
init(key: T, value: U) {
}
}
let array: [Test] = [
Test(key: "test", value: 42),
Test(key: "test", value: [])
]
```
I'm getting an error:
>
> error: cannot convert value of type 'Test' to expected
> element type 'Test'
>
>
>
*... |
2018/03/14 | 3,179 | 14,382 | <issue_start>username_0: I've read the docs and followed the examples but I am unable to get user claims into the access token. My client is not ASP.NET core, so the configuration of the MVC client is not the same as the v4 samples.
Unless I have misunderstood the docs, the ApiResources are used to populate the Reque... |
2018/03/14 | 1,326 | 4,284 | <issue_start>username_0: I have a function that changes the background color on hover and this works fine. However, What I need to do is keep the hover function but also make the the class active on a click event.
I am having trouble finding a solution for this and would be grateful for any assistance. Thanks
PS: If... |
2018/03/14 | 473 | 1,588 | <issue_start>username_0: I currently have 4 websites running off my home desktop PC using XAMPP. They are running on ports 80, 81, 7733, and 25293.
The first three run fine when accessed from an external network, however the last (25293) won't load. (This site can't be reached. ERR\_CONNECTION\_FAILED)
I am port forw... |
2018/03/14 | 437 | 1,466 | <issue_start>username_0: I am searching an event field in a file but is giving wrong output. I am searching gpio-keys event in input devices for which I have written a script, but I'm unable to print anything in output file (in my case I am writing in a button device file it is null always). Please help me to figure ou... |
2018/03/14 | 602 | 2,363 | <issue_start>username_0: I need to copy any selection from a webpage to the clipboard, it can be on a div, text input, password input, span, etc.
I have the following function that does this for me, but the challenge is have the returned value from the function to be set on the clipboard
```
const getSelectionText = ... |
2018/03/14 | 779 | 2,695 | <issue_start>username_0: I have values `department=apple, department1=orange, department2=banana, department3=tomato, department4=potato`
How do i tell in the following SQL where clause something like this?
```
u.department = ifContain(department or department1 or department2 or department3 or department4)
OR
....... |
2018/03/14 | 361 | 1,133 | <issue_start>username_0: The problem is that language button (site body right)
that made of bootstrap v4 dropdown is somewhy shows inside div and goes under instead of on top, and I can't figure out how to spot it, even `z-index: 10000` didn't help anyhow.
page with sample <http://protasov.by/contacts>
button is `#pm... |
2018/03/14 | 398 | 1,337 | <issue_start>username_0: I have a Component, which have child component. at ngOnInit() I'm calling Web API and get list of data.
Initial point length of the list is 10, But it will have more.
Need to execute some method (task|process|job) in background to take rest of the data 10 by 10 in a loop which would run para... |
2018/03/14 | 2,000 | 6,330 | <issue_start>username_0: We have a Java 8 application served by an Apache Tomcat 8 behind an Apache server, which is requesting multiple webservices in parallel using CXF. From time to time, there's one of them which lasts exactly 3 more seconds than the rest (which should be about 500ms only).
I've activated CXF deb... |
2018/03/14 | 676 | 2,252 | <issue_start>username_0: How to fix this error?
Splunk Mint: Archiving "MyApp" to "/tmp/splunk-mint-dsyms/MyApp.zip"
adding: MyApp
zip error: Interrupted (aborting)
Splunk Mint: Failed to archive dSYMs for "MyApp" to "/tmp/splunk-mint-dsyms"
Command /bin/sh failed with exit code 252
Second error is
Splunk Mint: A... |
2018/03/14 | 707 | 2,496 | <issue_start>username_0: Given a component:
```
Vue.component('my-comp', {
props: ['input'],
watch: { input: function(){...} },
});
```
What is the programmatic method for the following?
```
map[key] change triggers watch
```
I have tried:
```
new (Vue.component('my-comp'))({
propsData: { input:map[key] }... |
2018/03/14 | 728 | 2,579 | <issue_start>username_0: I have a table that has a lot inserts going into it.
After I get to let's say, 1,000,000 rows, I don't care anymore about the first rows, and want to delete them.
Unfortunately, because of the high rate of inserts delete is taking too long.
To solve this I wanted to know if the following is p... |
2018/03/14 | 540 | 1,667 | <issue_start>username_0: For example, I have one function. In this function as a parameter I have to pass some UIControl like UILabel, UITextFile, UIButton, etc. How can I do this:
```
func passDicData(controll : UIControll){
//code
}
```
Used like:
```
passDicData(UILabel)
```<issue_comment>username_1: It is ... |
2018/03/14 | 544 | 1,691 | <issue_start>username_0: If I have a string in this format:
```
string placeholder = "[[Ford:Focus(blue)]]";
```
or
```
string placeholder = "[[Ford:Focus(light blue)]]";
```
What regex could I use to populate the three variables below?
```
string make = ?
string model = ?
string colour = ?
```
Any ideas?
Tha... |
2018/03/14 | 1,211 | 3,944 | <issue_start>username_0: I have a base class `Tag` and a child class `TagSet`, that inherits from `Tag`.
```
class Tag
{
public:
Tag(std::string);
std::string tag;
};
std::ostream & operator <<(std::ostream &os, const Tag &t);
class TagSet : public Tag
{
public:
TagSet();
};
std::ostream & operator <<(s... |
2018/03/14 | 715 | 2,443 | <issue_start>username_0: This is my function in foreach loop for creating object which has property and value as word and its count, but i want to convert it in map according to es6
```
function harmlessRamsonNote(noteText,magazineText)
{
var noteArr = noteText.split(' ');
var magazineArr = magazineText.split(' ')... |
2018/03/14 | 684 | 2,285 | <issue_start>username_0: The error :
Error:Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.
>
> java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex
>
>
>
[](... |
2018/03/14 | 753 | 2,995 | <issue_start>username_0: I created a custom class that is based on Apache Flink. The following are some parts of the class definition:
```
public class StreamData {
private StreamExecutionEnvironment env;
private DataStream data ;
private Properties properties;
public StreamData(){
env = StreamExecutionEnvi... |
2018/03/14 | 689 | 2,260 | <issue_start>username_0: how can I replace only the text inside without removing any other element inside ?
It look actually like this :
```
"Old text 1 "

"Old 2"
```
And I would like to get that :
```
"New text 1 "

"New text 2"
```<issue_comment>u... |
2018/03/14 | 628 | 2,155 | <issue_start>username_0: Is it possible to load a packaged spacy model (i.e. `foo.tar.gz`) directly from the tar file instead of installing it beforehand? I would imagine something like:
```
import spacy
nlp = spacy.load(/some/path/foo.tar.gz)
```<issue_comment>username_1: No, that's currently not possible. The mai... |
2018/03/14 | 1,320 | 4,444 | <issue_start>username_0: I am trying to mount a NFS share (outside of k8s cluster) in my container via DNS lookup, my config is as below
```
apiVersion: v1
kind: Pod
metadata:
name: service-a
spec:
containers:
- name: service-a
image: dockerregistry:5000/centOSservice-a
command: ["/bin/bash"]
args: ... |
2018/03/14 | 640 | 2,261 | <issue_start>username_0: This question has been asked before but non of the solutions work for me. This my code
```
```
and the script
```
$(document).ready(function () {
$(".comment-rate-wrapper a img").on('click', function (e) {
e.preventDefault();
var item\_id = 1;
var url = "{{route('like.voteHandler', ':... |
2018/03/14 | 534 | 1,945 | <issue_start>username_0: Latest chrome browser version (65.0.3325.162) is not supporting webdriverio
Browser is getting launched and also hits the url successfully.
but while performing operation on UI is throwing different error.
Here are some error I have got:
Case 1: Typing in a Text box
Method Used: setValue()
... |
2018/03/14 | 355 | 1,356 | <issue_start>username_0: Let me explain a bit the scenario:
I have hundreds of hive tables stored on S3 (ORC, Parquet), so just to be clear no HDFS.
Now, I am interested in migrating some of them to Redshift to run some performance tests.
I know that redshift does not support ORC, Parquet so I need to create some CSV/J... |
2018/03/14 | 372 | 1,481 | <issue_start>username_0: I add the forms via dataPush function
```
dataPush(dataType) {
let dataObject;
if (dataType == 'bankInfo') {
dataObject = {
bankIndex: 0,
bankOwner: '',
bankName: [],
ban... |
2018/03/14 | 1,185 | 4,139 | <issue_start>username_0: I have a very similar question to [this one](https://stackoverflow.com/questions/24325786/table-columns-is-not-a-function-in-datatable-js).
I create a datatable, then the user can use the search function, click a button and the selected data will then be sent to another function where it is fu... |
2018/03/14 | 363 | 1,159 | <issue_start>username_0: I am currently learning Sass. I got a minor problem, I receive this error: "End of line expected". Why do I get this error and what can I do about it?
```
.admin-table tr: nth-child(odd) // Generates the error
background-color: $white
.admin-table tr: nth-child(even) // Generates the error
... |
2018/03/14 | 1,657 | 4,725 | <issue_start>username_0: I want to output data of the lyrics\_body key from the following URL.[API Link](https://api.musixmatch.com/ws/1.1/matcher.lyrics.get?callback=format=jsonp&q_track=O%20Saathi&q_artist=Arijit%20Singh&apikey=c12b7dffb9a86d5b6d70e0f0fdeab589)
But the JSON text on that URL is like that following.
... |
2018/03/14 | 1,013 | 3,226 | <issue_start>username_0: How can I get the current `--mode` specified in *package.json* inside *webpack.config.js*? (For instance, for pushing some plugins.)
```
package.json
"scripts": {
"dev": "webpack --mode development",
"build": "webpack --mode production"
}
```
What I did in Webpack 3:
```
package.json
... |
2018/03/14 | 715 | 2,281 | <issue_start>username_0: I am trying to add a new key on the JSON array return from the mongoose query
```
find({chatBotId:req.params.chatBotId}).
populate('userPlan').
.exec(function(err,result){
result.map(function(e){
e.transactionObject =null
e.taxAmount = 100;
return e; ... |
2018/03/14 | 582 | 2,217 | <issue_start>username_0: I'm trying to create an application which user can change primary color and for that I've created this class
```
const mode = true;
export default class Colors {
static primary() {
return mode ? '#fff' : '#000';
}
static accent() {
return mode ? '#fff' : '#000';
... |
2018/03/14 | 657 | 2,271 | <issue_start>username_0: I send POST request with JSON string in JSP to PHP but the received JSON cannot be decoded.
Here is my html file:
```
var jsonObj = {
"merchID": "0000",
"amount": "test"
};
var jsonString = JSON.stringify(jsonObj);
document.getElementById('test').value = jsonString;
```
Here is my PHP... |
2018/03/14 | 1,625 | 6,068 | <issue_start>username_0: I'll like that everytime an hospital is created, A corresponding User account is created likewise, allowing the newly created account to login....
models.py
```
class Hospital(models.Model):
"""
Model representing individual Hospitals
"""
id = models.UUIDField(primary_key=Tru... |
2018/03/14 | 1,167 | 4,172 | <issue_start>username_0: I am trying to use ionic native from Android. The problem is, in console it says [object Object] Uploaded Successfully, but nothing is uploaded on my server.
I checked network tab in browser, it is not even calling the upload URL.
Below is my `home.html` code:
```
{{imageURI}}
Get Image
... |
2018/03/14 | 740 | 2,338 | <issue_start>username_0: I tried to install **pillow** on **python 3.7** using command **pip3 install pillow**. The package downloaded **fine** but during installation I got below error. I tried to download using wheel too but it failed too. Any advice? Thanks.
```
Command "c:\...\python37\python.exe -u -c "import set... |
2018/03/14 | 533 | 1,886 | <issue_start>username_0: I'm struggling to find a very simple example of how to add a marker(s) to a Google Map when a user left clicks on the map using React-google-maps in components based. Need help.
```
const Map = withScriptjs(withGoogleMap((props) =>
{props.isMarkerShown && }
))
export default class MapConta... |
2018/03/14 | 642 | 2,405 | <issue_start>username_0: I have two collections:
```
cc.tabGeneralValuesCollection = [{label: 'Creation Date', name: 'CreationDate', direction: 'asc', type: 'DATETIME'},
{label: 'Modifier', name: 'Modifier', direction: 'asc', type: 'STRING'},
{label: 'Subject... |
2018/03/14 | 591 | 2,255 | <issue_start>username_0: I've some trouble compiling this program. The error message I get says that "Forside" abstract cannot be instantiated". I have troubles fixing this.
Here's my code and thank you in advance.
```
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public abstract class ... |
2018/03/14 | 1,889 | 6,139 | <issue_start>username_0: I created a UI5 master-detail page:
### Master
```xml
```
```js
onItemPress: function(oEvent) {
var oUserContext = oEvent.getSource().getBindingContext("som");
var oUser = oUserContext.getObject();
this.getRouter().navTo("userDetails", {userId: oUser.Id});
}
```
### Detail
```js
on... |
2018/03/14 | 1,112 | 2,439 | <issue_start>username_0: I have problem to analyse vincenty distance because the format is `object` and have `km` metrics in there, I want to analyse further. I want to convert vincenty distance to `float` format
Here's the data
```
customer_id lat_free long_free lat_device long_device radius timestamp
750... |
2018/03/14 | 732 | 2,119 | <issue_start>username_0: I have a very basic question. I am trying to pass variable using url. So, I faced one issue as undefined index. To solve that i used isset() but value is coming as blank. can anyone tell me why this is happening?
Code:
Page 1:
```
[Print](print.php?id=$row[id]&rname=$row[rname])
```
Page 2... |
2018/03/14 | 5,075 | 15,924 | <issue_start>username_0: This is a little awkward to explain so i shall try my best.
I have written a query in SSMS 17. The query runs fine and returns the data correctly from 1990-01-01 to 2018-03-04. This is correct and 2018-03-04 is the most recent case for this query to pull.
When dropping this exact query into... |
2018/03/14 | 332 | 1,153 | <issue_start>username_0: I am new to VB and Json. Here is the code of obtaining the value of the key `ID`. Can I get it directly instead using a loop?
```
data_Obj = JsonConvert.DeserializeObject(Of Dictionary(Of String, Object))(data_result)
For Each obj In data_Obj
If obj.Key.Equals("ID") Then
str_id = ... |
2018/03/14 | 1,135 | 3,810 | <issue_start>username_0: ```
try {
List
stockistIds=updateStockMapper.getStockInvoiceId(stockmodel);
String myList = new String();
for (UpdateStockModel x : stockistIds) {
//System.out.println("stockist list id.." + x.getStockInvoiceIds());
myList = myList.concat(x.getStockInvoiceIds());
... |
2018/03/14 | 1,341 | 4,013 | <issue_start>username_0: ```
State City
DL,UP DELHI: Karol Bag,Ashok Nagr UttarPradesh: Noida,Lucknow
```
OutPut
```
State City
DL KarolBag
DL Ashok Nagr
UP Noida
UP Lucknow
```
i have created a function to split the value, but while cross ... |
2018/03/14 | 1,596 | 5,522 | <issue_start>username_0: I'm new to R so please bear with me! I Have a dataframe named `mydata`. Here's a sample of the relevant columns:
```
Backlog.Item.Type State Task.Initial.Hours.Estimate Task.Completed.Hours
Epic In Progress NA NA
Fe... |
2018/03/14 | 696 | 1,924 | <issue_start>username_0: I am having trouble adjusting the icon background to be transparent but the parent container to have black on the sides of the transparent border. The attached picture says a thousand words.
I need the final work to look like the picture below. You can change the markup.
[
<issue_comment>us... |
2018/03/14 | 556 | 1,330 | <issue_start>username_0: In My monogdb I have Date column. I want to display the date in descending order with month and year wise. Date column:
`14-03-2018
12-03-2018
13-03-2018
11-03-2018
10-02-2018
06-01-2018
09-01-2018
08-02-2018
07-01-2017`
Expected result:
`14-03-2018
13-03-2018
12-03-2018
11-03-2018
10-02-201... |
2018/03/14 | 560 | 1,759 | <issue_start>username_0: I've a php query which creates the JSON data of the the data received from the SQL query that is run. The JSON data is created using this query using this query
```
echo json_encode($res->fetch_all(MYSQLI_ASSOC), JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES | JSON_PRETTY_PRINT );
```
Now ... |
2018/03/14 | 538 | 1,952 | <issue_start>username_0: I am waiting for successful JSON from server:
>
> {"...."}
>
>
>
Actual Behavior
I get
>
> ***SyntaxError: Unexpected token b in JSON at position 0***
>
>
>
b is the first letter of word "badlogin". It responds server when sent wrong combination of userName and password. But when I ... |
2018/03/14 | 392 | 1,376 | <issue_start>username_0: Due to reasons outside my control, I have to write code to perform the following action:
* If a condition is met, execute the function on a separate thread and wait for it to finish later in the code.
* Otherwise, execute the program sequentially by simply calling the function without using a ... |
2018/03/14 | 391 | 1,317 | <issue_start>username_0: When customising the markup of a gallery component (Pollozen SimpleGallery), passing in a slug manually works fine. (The gallery component is used inside a layout).
```
[Gallery]
idGallery = 0
markup = "user"
slug = "test"
```
When trying to assign a variable that is set by a static page (Ra... |
2018/03/14 | 481 | 1,590 | <issue_start>username_0: I have a problem using async await in react, this is my .babelrc
```
{
"presets": [
["es2015", {"modules": false}],
"stage-2",
"react"
],
"plugins": [
"react-hot-loader/babel",
"transform-async-to-generator",
["transform-runtime", {
"polyfill": false,
... |
2018/03/14 | 1,183 | 4,439 | <issue_start>username_0: I am working on a JavaFX desktop application and I have one button that should read from the memory of an embedded device and print that into a JSON. I have implemented a Task that does that, and this Task is passed as argument to a new thread in the button event handler. The problem is, this o... |
2018/03/14 | 1,226 | 4,887 | <issue_start>username_0: **TLDR; It seems that my POSTs (to DRF endpoints) are only CSRF protected, if the client has an authenticated session. This is wrong, and leaves the application option to [login CSRF](https://en.wikipedia.org/wiki/Cross-site_request_forgery#Forging_login_requests) attacks. How can I fix this?**... |
2018/03/14 | 340 | 1,119 | <issue_start>username_0: I tried to uninstall my custom module by using
```
'./odoo.py -d db_name --uninstall module_name(s)' command.
```
But I get the error:
>
> 'bash: ./odoo.py: No such file or directory'
>
>
>
How can I fix it? How can i know a module is installed or not?
Thanks<issue_comment>username_... |
2018/03/14 | 596 | 2,188 | <issue_start>username_0: The [http-proxy-middleware](https://github.com/chimurai/http-proxy-middleware) Nodejs module provides a way of re-target request using a function in the option.router parameter. As described [here](https://github.com/chimurai/http-proxy-middleware#http-proxy-middleware-options):
```
router: fu... |
2018/03/14 | 575 | 2,360 | <issue_start>username_0: Let's say I have a Value that is deserialized from a class.
```
public class MyValue
{
public string MyPropertyA { get; set; }
public string MyPropertyB { get; set; }
public string DeserializationClass { get; } = typeof(MyValue).Name;
}
```
I serialize this using `JsonConvert` cl... |
2018/03/14 | 1,405 | 4,732 | <issue_start>username_0: I'm trying to make a long array composed of the digits 0 - 9 in a random order, meaning there would be no duplicates of the same digit. I'm a novice coder, and this is what I tried to come up with.
```
public static void shuffle()
{
long[] rn = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
Ran... |
2018/03/14 | 1,807 | 5,700 | <issue_start>username_0: I want to slide my image to left when click on the right arrow of the image slider. I cant apply the slide left animation.When click right arrow current image hide and next image is showing but not slide animation is happening
```js
$('#image-content img:first').addClass('active');
/... |
2018/03/14 | 911 | 2,907 | <issue_start>username_0: I'm trying to build an sign in/sign up form in SweetAlert.
Everything works fine but I'm trying to put an select with options that are made of ng-repeat from my array.
This is my code :
Part of my innerHTML:
```
var registerForm = document.createElement("div");
registerForm.innerHTML = "*... |
2018/03/14 | 1,079 | 4,105 | <issue_start>username_0: I deployed a .war file through IntelliJ Idea on a Tomcat server.
I noticed a character "ä" was not properly displayed while at other places the same character was displayed correctly. I found out that only the special characters that I hard-coded in my .js files were affected.
I tried to ... |
2018/03/14 | 507 | 1,867 | <issue_start>username_0: I know it is going to be a silly question, but I've looked around and found nothing which helped me understand.
I have an ionic project, on which I imported [leafletjs](http://leafletjs.com)
Now everything works fine, I imported it using this code:
```
import leaflet from 'leaflet';
```
No... |
2018/03/14 | 306 | 1,082 | <issue_start>username_0: I got my *pip* install directory in
```
/Library/Python/2.7/site-packages
```
Somehow, after I install the wordbatch library, my *pip* install path changes to
```
/usr/local/lib/python2.7/site-packages
```
Does anyone know how to change the *pip* install path?<issue_comment>username_1: ... |
2018/03/14 | 366 | 1,420 | <issue_start>username_0: I have the Image ByteArray and want to convert the byte array into png image and add in ImageView as you see in the below code.
```
byte[] imageBytes = webClient.DownloadDataTaskAsync(uri);
ImageView view = new ImageView(this.Context);
//Here need to add the converted image into ImageVi... |
2018/03/14 | 1,111 | 4,399 | <issue_start>username_0: I added an connector for AJP to my spring boot 2 project
```
@Bean
public ServletWebServerFactory servletContainer() {
TomcatServletWebServerFactory tomcat = new
TomcatServletWebServerFactory() {
@Override
protected void postProcessContext(Context context)... |