date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/09 | 411 | 1,503 | <issue_start>username_0: I'm writing some files to a folder.
But when I reuse that folder I want to delete every file in that directory. The problem is that I don't know if this directory actually exists or not.
```
final String fileDir = "myPath/someDir/;
// If this dir exists, delete every file inside
//Populate th... |
2018/03/09 | 629 | 2,226 | <issue_start>username_0: I'm currently running `spring-boot version 1.4.0.RELEASE` application with embedded tomcat. Included Tomcat's version is `8.5.4`
There's a need to update the tomcat version to `9.x`. When I looked at mvnrepository [here](https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-s... |
2018/03/09 | 1,733 | 5,501 | <issue_start>username_0: I am developing a comments feed. As Default, I am hiding all comments more the 4.
If there are more the 4 comments and I have clicked the show more anchor, max 4 more comments are shown. My problem is if I now add more comments dynamically the CSS hides the comments in the middle of the feed. ... |
2018/03/09 | 442 | 1,958 | <issue_start>username_0: I am facing an issue in context of IBM's WSDL2Java but let me describe with simple example.
```
Class Stub {
void printValue(String val){
System.out.println(val);
}
}
Interface Printer {
boolean printValue(String val) throws Exception;
}
Class myPrinter extends Stub imple... |
2018/03/09 | 1,297 | 5,353 | <issue_start>username_0: Here's a situation that I have been considering recently:
1. A client has their own Identity Provider (i.e. ADFS)
2. My company's web application (Application A) supports SAML and OpenID Conect
3. Another company's application (Application B) also supporting SAML and OpenID Connect
4. Both App... |
2018/03/09 | 3,665 | 12,396 | <issue_start>username_0: I have a `String` in a database (`match.getDate`) that has the following date format:
>
> **01/04/2018**
>
>
>
This is the date I want to format, stored as day/month/year. I want to format this for my Android app.
I want to format the date into:
>
> Sun 01 Apr 2018
>
>
>
My code be... |
2018/03/09 | 442 | 1,473 | <issue_start>username_0: I am using MarkLogic 8.0-8 version.
Is it possible to validate an XML using schematron?
Please help me with an example.<issue_comment>username_1: There are XSLT stylesheets that are publicly available here to run Schematron validation:
<https://github.com/Schematron/schematron>
You can run ... |
2018/03/09 | 362 | 1,203 | <issue_start>username_0: I cannot make stylelint to work in PhpStorm
```
"C:\Program Files\nodejs\node.exe" "K:/dev/npm packages/node_modules/stylelint/bin/stylelint.js" -f json --stdin-filename ..\..\..\..\..\..\..\..\:/dev/D8/themes/amu_www/css/style.css
K:\:\dev\D8\themes\amu_www\css\style.css
Error: No configurati... |
2018/03/09 | 830 | 2,117 | <issue_start>username_0: I would like to find a Regex to convert string like the following one:
```
wienerstr256pta 18 graz austria8051 4
```
Into the following one:
```
wienerstr 256 pta 18 graz austria 8051 4
```
So I just want to surround every number set between spaces.
I know I can easily find the digits by... |
2018/03/09 | 263 | 604 | <issue_start>username_0: what is the big O complexity of the function 1005 n^1.75 + 100 n^1.5 + 10nlogn ?
I know that the big O complexity of logn is equal to O(logn)^2) but can't figure out this riddle: 1005 n^1.75 + 100 n^1.5 + 10nlogn<issue_comment>username_1: the complexity of that function is:
```
O(N^(7/4))
``... |
2018/03/09 | 379 | 1,165 | <issue_start>username_0: I'm doing unit-testing for a project which is written in typescript with angular framework, by applying karma with mocha and chai frameworks. And there's an interface for the object as:
```
interface ISolution {
_id: string;
paymentFrequency: PaymentFrequency;
};
```
And PaymentFreq... |
2018/03/09 | 262 | 693 | <issue_start>username_0: In Slack, when you @mention someone, slack will pass off the response like this to an api:
>
> Example response <@U7J3C4AKB|john.doe> from slack
>
>
>
Where the @U7J3C4AKB is the user\_id, and the latter is the username. What regular expression can be use to parse the user\_id from the re... |
2018/03/09 | 1,798 | 6,456 | <issue_start>username_0: I'm trying to make a tree with unique\_ptr as children. This is the class for the moment :
```
class Part
{
public:
vector& getChildren() const {
return \*m\_children;
}
void attachChild(const unique\_ptr& child) {
m\_children.push\_back(std::move(child));
}
vector& getAtoms() cons... |
2018/03/09 | 613 | 2,230 | <issue_start>username_0: Im trying to figure out, on how to replace the folder path and not the img.
The folder names are always the same, they're are not dynamic. If i click button "one", it should change all my images folder paths to "dist/one/", the same logics goes for the two others.
```
This should change the p... |
2018/03/09 | 627 | 2,296 | <issue_start>username_0: How could **this.\_arr** array be updated inside a socket.io callback?
```
class SocketClass{
constructor(server) {
this._arr = [];
this._io = require('socket.io').listen(server);
this._initListeners();
}
_initListeners() {
this._io.on('connection', (socket, arr) => {
... |
2018/03/09 | 467 | 1,623 | <issue_start>username_0: Currently I am trying to find a certain element on the website which can be identified by its inner html. After I find this item I need to find its parent and a child.
Here is the example, I need to populate the `textarea` with different content, the only way I can find the correct `textarea` ... |
2018/03/09 | 496 | 1,380 | <issue_start>username_0: ```
var s = '{"1" : "Sammy", "2" : "Shark", "3" : "Ocean"}';
var obj = JSON.parse(s);
document.getElementById("user").innerHTML =
"Name: " + obj.1 + " " + obj.2 + "
" +
"Location: " + obj.3;
```
Error from console:
```
Uncaught SyntaxError: Unexpected number
```<issue_comment>username_1... |
2018/03/09 | 1,057 | 3,091 | <issue_start>username_0: I will make a carousel and i try to align left 3 elements with width 100% each but it is not working.
Can someone tell me how to align 3,4 elements on left to get out of the screens witdh so that i can change the image with the transform css property ?
it worked when i delete from the top of ... |
2018/03/09 | 479 | 1,956 | <issue_start>username_0: I'm working in a ThreeJS project and I want to rotate the camera with the mouse. I've seen that with *OrbitControls*, I can rotate my camera around a point or an object but I cant rotate my camera like a First Person Shooter Videogame. *TrackballsControls* have the same problem that orbit contr... |
2018/03/09 | 844 | 1,986 | <issue_start>username_0: I want want to multiply values by 10 which have prefix "0.0".
Below in the example of my csv file.
```
1987-01-14, 0.63, 0.0657, 0.0652, 0.0677
1987-01-15, 0.0639, 0.0662, 0.0652, 0.0676
1987-01-16, 0.0642, 0.0662, 0.0653, 0.0678
1987-01-19, 0.0644, 0.0663, 0.0653, 0.0677
1987-01-20, 0.065, 0... |
2018/03/09 | 242 | 897 | <issue_start>username_0: I am trying to use Pepper's C++ SDK without qibuild and the toolchain. I could not find any example. How can I use CMake file instead of qibuild? Any help will be appreciated.<issue_comment>username_1: Actually you can't !
Please note that `qibuild` is based on CMake (not Modern CMake).
If you... |
2018/03/09 | 301 | 1,119 | <issue_start>username_0: I am working with SIP protocol, and I have an issue with an endpoint (ZTE). The endpoint sends a lot of SUBSCRIBE method messages and I want to stop that because i don't whant to implement it.
I already tried to respond with 403 (Method Forbibben) and 405 (Method Not Allowed), but the endpoint ... |
2018/03/09 | 817 | 2,915 | <issue_start>username_0: How do I create hyperlinks in Word documents using apache-poi? Is it possible to use relative paths?<issue_comment>username_1: There is [XWPFHyperlinkRun](https://poi.apache.org/apidocs/org/apache/poi/xwpf/usermodel/XWPFHyperlinkRun.html) but not a method for creating a such until now (March 20... |
2018/03/09 | 491 | 1,826 | <issue_start>username_0: I have a model `CustomModel` with an IntegerField.
```
class CustomModel(models.Model):
count = models.IntegerField()
```
When I create a new instance of `CustomModel` in the admin, I have to do validation, so I use the `clean` method and have access to the value with.
```
def clean(sel... |
2018/03/09 | 1,326 | 3,862 | <issue_start>username_0: Having a bi-dimensional array like this
```
anArray = [[1, 2, 3], [null, 4, null, null], [1, 0, null, 5, null]];
```
my goal is to get as result a new array containing last element of each of the sub-arrays but also to be non-null. In this case: `[3, 4, 5]`
For getting the last element of e... |
2018/03/09 | 880 | 2,305 | <issue_start>username_0: I attach an image as my sample data, what I want to do is to get the max month and year of trans\_date and get the sum of its flow\_amt.
Example output is
```
AF935906 | 22335.86 | DEC-17
```
[](https://i.stack.imgur.com/X2... |
2018/03/09 | 1,379 | 4,783 | <issue_start>username_0: **TL;DR:** How can I generate doxygen documentation for an accessor that has the same name as a property declared with `Q_PROPERTY`?
---
Qt's [property system](https://doc.qt.io/qt-5/properties.html) makes it possible to use Qt's meta-object-system on given properties:
```
// example class a... |
2018/03/09 | 656 | 1,691 | <issue_start>username_0: I want to *convert to asterisk the first 12 digits* of a 16 digit number in a sentence.
The last *4 digits should be visible*.
**Example input:**
```
String test = "test/1234567890121123/121/test";
String test2 = "hey: 1234567890123456";
```
**Expected output:**
```
String test = "test/**... |
2018/03/09 | 1,315 | 5,161 | <issue_start>username_0: I am using the Android Paging Library like described here:
<https://developer.android.com/topic/libraries/architecture/paging.html>
But i also have an EditText for searching Users by Name.
How can i filter the results from the Paging library to display only matching Users?<issue_comment>usern... |
2018/03/09 | 312 | 1,319 | <issue_start>username_0: My code requires sending a `200` ok response to a client that sends json data to my API code within 100 seconds.
My code has a long process of cloning assets, creating texts to be stored in tokens, and other processes, which takes a lot of time, hence the platform sends a timeout request alert... |
2018/03/09 | 492 | 1,609 | <issue_start>username_0: Imagine I have 2 tables:
with:
```
JOBS
====
NAMEJOB
A
B
C
D
D
E
```
and
```
versions
========
NAMEJOB CREATION_DATE VERSION CURR_VER
A 20180301 2 N
A 20180307 1 Y
B 20180302 3 N
B ... |
2018/03/09 | 312 | 1,061 | <issue_start>username_0: i am working on bootstrap and i am stuck in a div orientation on small screen.
on medium screen i am using 6, 6 columns which should stack on top of each other on small screen[i want something list this](https://i.stack.imgur.com/OsUMC.png)
on small screen the columns are going like column 3 ... |
2018/03/09 | 537 | 1,589 | <issue_start>username_0: hi to all i was wondering if someone could help me im trying to figure out tabs example
Sign Up this will only work on http://
when its on https:// it doesn't work i'm choosing https:// because more secure as i haven't found a way to secure http:// and its not my server so i don't have the key... |
2018/03/09 | 1,026 | 3,082 | <issue_start>username_0: I have below mentioned excel sheet.
```
ID column1 column2 column3
1 Apple apple - x Apple - le
2 Mango banana cat
3 Dog DOG - A DOG - B
```
I want to match string of column1, column2 and column3 (where atlease one word is similar in these three colu... |
2018/03/09 | 320 | 860 | <issue_start>username_0: I have a text with comma and I need count of number characters until comma, because i want select the interval before comma.
Example:
text: "12345, Supply"
I want select just "12345".
Is it possible?
tks!<issue_comment>username_1: We can use `sub` to match the `,` followed by one or ... |
2018/03/09 | 870 | 3,055 | <issue_start>username_0: I have written the below powershell script in the userdata section of a AWS windows EC2 stack creation cloudformation script. I am able to install the AWSCLI using the script but the script is not recognizing 'aws s3 cp' command after install cmdlet.
When I login to the EC2 instance I am able ... |
2018/03/09 | 781 | 2,687 | <issue_start>username_0: Something that I have to do quite often is finding a member in a collection of elements which has an element with a given value. For example given:
```
class Person
{
string getName() const {return mName;}
private:
string mName;
};
std::vector people;
```
I want to find the Person ... |
2018/03/09 | 1,618 | 4,834 | <issue_start>username_0: So I am currently plotting a scatter graph with many `x` and `y`s in matplotlib:
```
plt.scatter(x, y)
```
I want to draw a line on this scatter graph that crosses through the whole graph (i.e hits two 'borders') I know the gradient and the intercept - `m` and the `c` in the equation `y = mx... |
2018/03/09 | 530 | 1,802 | <issue_start>username_0: When I add Bootstrap URL in index.html, my menu items tend to disappear, may be their color has changed.
Below is the image of menu on `home.html` before the URL is added:
[](https://i.stack.imgur.com/oDm9t.png)
Once I add t... |
2018/03/09 | 497 | 1,864 | <issue_start>username_0: I think it's dangerous to overload the address-of operator `&`, because it's easy to overlook the use of [`std::addressof()`](http://en.cppreference.com/w/cpp/memory/addressof) in implementing templates that actually need it. Still, I'm wondering what would be a proper use case of overloading t... |
2018/03/09 | 938 | 2,735 | <issue_start>username_0: How to find out the continuous numbers(without space) from below
```
123456789,
1 2 3 4 5678,
12 34 56 78,
1234 56,
4782828,
677 56 764,
467 567 675,
```
Output like :
```
123456789,
4782828
```
How can i get the above output?<issue_comment>username_1: If this is a column in a tabl... |
2018/03/09 | 1,110 | 3,518 | <issue_start>username_0: I have a data set which has a some big groups, and subgroups (small groups).
I want to select small group 1 for each big group. But, if small group one doesn't exist in big group, select subgroup 2. My example below stops here, but ideally this would continue to work, so if subgroup 2 is not ... |
2018/03/09 | 488 | 1,562 | <issue_start>username_0: I have below string and I try below output using comma split function in vb.net.
but no luck.
input:
```
"Änanth,$10,250,$10,000,$1200"
```
Output:
1. Ananth
2. $10,250
3. $10,000
4. $1200
How to build the above output?<issue_comment>username_1: I think your input is a string, so you can ... |
2018/03/09 | 639 | 2,288 | <issue_start>username_0: I am currently converting some SQL to C# code against Entity Framework and have come up against an issue with a keyword search query.
The (very) simplified query ultimately looks like this:
```
SELECT * FROM SomeTable
WHERE CONTAINS(Col1, Col2, Col3, '"word"')
```
As per the docs <https://l... |
2018/03/09 | 1,104 | 3,897 | <issue_start>username_0: This is the first time I am running the espresso and I am stuck at this issue
>
> Issue::
> android.support.test.espresso.NoMatchingViewException: No views in hierarchy found matching: (with id: edu.gatech.seclass.sdpguessit:id/login\_page\_username\_field and with text: is "Enter Username" ... |
2018/03/09 | 661 | 2,472 | <issue_start>username_0: Ineed to get the id to delete on the database but I cant get the id parameter this way
```
@RequestMapping(value = {"/delete/search/","/delete/search"}, method = RequestMethod.DELETE)
@ResponseBody
public Integer deleteUser(@RequestBody Integer id_search) {
return id_search;
... |
2018/03/09 | 705 | 2,655 | <issue_start>username_0: I'm trying to implement a put method in a express API in order to allow the user to update a document, but only if a condition is met. Let's say I have an `Instance` document. One of its attributes is `executed`, which can be `true` if the instance was execute or `false` if it wasn't. Basically... |
2018/03/09 | 1,258 | 4,535 | <issue_start>username_0: I am trying to use replace over a whole table as the data contains 'NULLS' as it has been manipulated over time to remove certain incorrect values etc. and now contains a lot of NULLS, I want to replace all of the 'NULL' values to NULL over all of the Columns in a table.
I have thought about u... |
2018/03/09 | 1,034 | 3,291 | <issue_start>username_0: i have a string and i have to set the string size to 30
IF THE STRING IS LESS THAN 30 , then we have to ad trailing spaces
ex :
```
string="<NAME>"
```
output:
```
"sai tejas " Append White spaces
```
or if string exceeds string size (i.e 30) , then truncate the str... |
2018/03/09 | 666 | 2,466 | <issue_start>username_0: I can try to install packages in python 3.6.4 with pip but I found many errors. I try also command like: `easy_install, pip install --upgrade --force-reinstall , pip install --ignore-installed` . The error result always the same:
```
Retrying (Retry(total=4, connect=None, read=None, redirect... |
2018/03/09 | 576 | 1,923 | <issue_start>username_0: I am trying to write a function that works like strcat, I dont get any error when compiling the code. the problem is when calling the function it didnt append the elements in the second array to the first one. when I print the first array it still the same. any suggesting?
```
#include
#inclu... |
2018/03/09 | 959 | 2,905 | <issue_start>username_0: I have a PHP website for a football club. I need to echo a string based on a specific month range throughout the year using the php date function.
For example, the current year is 2018 and the current football season is the 2017 / 2018 season. I need this to be like this until 31st May 2018. F... |
2018/03/09 | 328 | 1,180 | <issue_start>username_0: I accidentally typed `git checkout` in GIT CMD without any arguments in my working branch. The parent branch name is development.
After I hit the command it showed the following:
```
M analytics-engine/build.gradle
M analytics-engine/src/main/groovy/com/oracle/emcsas/securityanalyt... |
2018/03/09 | 599 | 2,053 | <issue_start>username_0: My Project uses plain JavaScript. I want to select elements which are not having a data-some attribute's value as 'abcd'.
I tried the following.
```
:not([data-some="abcd"])
```
this selector returns only elements not having [data-some]. But I want to select only elements not having data-... |
2018/03/09 | 532 | 1,805 | <issue_start>username_0: I want to change context path for spring boot 2 for example i want to serve on <http://localhost:8080/test/>
i mean it not working for me with spring-boot-starter-webflux:2.0.0.RELEASE
it only working with spring-boot-starter-web::2.0.0.RELEASE
I have tried
```
server.servlet.context-path=... |
2018/03/09 | 739 | 2,829 | <issue_start>username_0: I am writing a test for a View where I update context to pass additional information to the template.
Problem
=======
In writing the test, I'm having trouble accessing context from the RequestFactory.
Code
====
### View
```
class PlanListView(HasBillingRightsMixin, ListView):
"""Show t... |
2018/03/09 | 778 | 2,407 | <issue_start>username_0: ```
size = len(home)
total_score = []
score = []
for counter in range(0, size):
print("Enter the Scores for", name[counter],":")
score[0].append = int(input("Judge 1: "))
score[0] = validate(0,10,score[0])
score[1] = int(input("Judge 2: "))
score[1] = validate(0,10,score[... |
2018/03/09 | 931 | 3,069 | <issue_start>username_0: I need to do a post request according to the scenario given below. I only have consumers\_key and consumer\_secret. I don't know from where to get all the other fields. and also do i need to send the Authorization request including keys in the header?
A request token for the application must b... |
2018/03/09 | 264 | 1,001 | <issue_start>username_0: I have an entity which have a `slug` field defined and managed using Gedmo Slug library.
Is it possible to easily define a list of unwanted values for this field (e.G. `'edit'`, `'new'`, `'delete'`...) or do I need to make something all by myself?<issue_comment>username_1: I hope to understand... |
2018/03/09 | 524 | 1,949 | <issue_start>username_0: I'm making a Breakout game in C++ using the SFML library, I have a "paddle" class as well as a "ball" class, both being updated and rendered in a "game" class, which uses a render window from a "window" class.
My issue is that in order to determine whether the Ball object has collided with the... |
2018/03/09 | 411 | 1,298 | <issue_start>username_0: I've a PHP multidimensional array like:
```
array(
[0] => array("code"=>code1, "value"=>val1, "operation"=>Add),
[1] => array("code"=>code2, "value"=>val2, "operation"=>Remove),
[2] => array("code"=>code3, "value"=>val3, "operation"=>Edit)
)
```
If I know `code` and `value`, how ... |
2018/03/09 | 1,404 | 4,708 | <issue_start>username_0: I'm new with vue.js and vuex and I've an issue with the mapstate object, first I've only one module in my store:
```
-Store
-index.js
-mutations.js
-actions.js
-state.js
```
**state.js :**
```
export default {
userInfo: {
messages: [{ 1: 'test', 2: 'test' }],
notific... |
2018/03/09 | 1,297 | 4,923 | <issue_start>username_0: To demonstrate the kubelet's eviction behaviour, I am trying to deploy a Kubernetes workload that will consume memory to the point that the kubelet evicts all BestEffort Pods due to memory pressure but does not kill my workload (or at least not before the BestEffort Pods).
My best attempt is ... |
2018/03/09 | 1,125 | 4,060 | <issue_start>username_0: I am super newbie and tried to write following code which sets every `TEdit.Text` to one mentioned in code
```
procedure TForm2.Button1Click(Sender: TObject);
var
i : integer;
Edit : TEdit;
begin
for i := 0 to Edit.ComponentCount - 1 do
begin
with Edit.Components[i] do
begin
... |
2018/03/09 | 258 | 839 | <issue_start>username_0: This is how I am changing the directory path to the download folder.
```
Dir.chdir("C:/Users/abcd/Downloads/")
```
But this specific to a user. Is there is any way to make it more general?<issue_comment>username_1: Use `home` method for **Dir**
```
Dir.chdir(Dir.home + '/Downloads')
```
Up... |
2018/03/09 | 347 | 1,154 | <issue_start>username_0: Hello I want to do Helping Action that if Have `Sring s = "Good morning everyone today this is Friday"` and I want only the 3 first words `String newS = "Good morning everyone"`
But
if `Sring s = ""; newS = ""`
if `Sring s = "Good"; newS = "Good"`
if `Sring s = "Good morning"; newS = "Good ... |
2018/03/09 | 420 | 1,491 | <issue_start>username_0: i am new to excel formulas,
I have the below scenarios, there are 2 sheets in my workbook the first sheet is:
```
ProjectName Primary Secondary
P1 Ajay Shekar
P2 Rahul Ajay
P3 Shekar Rahul
P4 <NAME>
```
the second sheet is resource Specific let say for Ajay and has a drop down base... |
2018/03/09 | 483 | 1,699 | <issue_start>username_0: Is there any standard way of converting between non-primitive integer types in Java that properly retains `null` values? Something like:
```
// Pseudocode
Short shortVal = null;
Long longVal = Numbers.toLong(shortVal); // longVal is expected to be null here
```
Obviously I cannot use `shortV... |
2018/03/09 | 365 | 1,521 | <issue_start>username_0: I have a yaml file which I can use to create pods. I am using the dashboard so I can simply select yaml file and it will create pods. Pod will start the container and container will run the docker image. So now lets say I have done some changes in the docker image and want to deploy it again. F... |
2018/03/09 | 253 | 879 | <issue_start>username_0: Well options are listed based on `ng-repeat` value in dropdown, using AngualrJS. How can I know which option is selected in a multi-select dropdown like this one:
```
{{ emp.first\_name }} {{ emp.last\_name }}
```<issue_comment>username_1: <https://docs.angularjs.org/api/ng/directive/select... |
2018/03/09 | 1,241 | 4,566 | <issue_start>username_0: The code below prints the correct user id of the current user but stores only 0 or 1 into the
database. I don't understand the problem with the code. Your help will be most appreciated
```
php
$user_id=print_r($_SESSION["id"]);
if(isset($_POST['submit'])){
$host = "";
... |
2018/03/09 | 767 | 3,008 | <issue_start>username_0: Our goal is sending notifications to **groups of devices** from our backend, and only from server side is possible to know which device should receive the notification.
We've done some attempts with AppCenter because we mostly work with Xamarin iOS/Android/Forms, but now we have the doubt that... |
2018/03/09 | 474 | 1,792 | <issue_start>username_0: I have two tables `Contribution` and `Payment`. The `contribution` table holds the data like `project_id, user_id, email`. The `Payment` table holds the data like `contribution_id, state`.
Basically, if a user just fills and submit the form before payment, the data is then stored in `contribu... |
2018/03/09 | 718 | 3,097 | <issue_start>username_0: I have the following code:
```
public void promptUserToSaveModifications() {
AlertDialog.Builder builder = new AlertDialog.Builder(this);
builder.setMessage(getString(R.string.str_desea_guardar_antes_salir))
.setPositiveButton(getString(R.string.msj_si), new DialogInterfac... |
2018/03/09 | 11,643 | 19,989 | <issue_start>username_0: I have a list of data in python as below it repeats the Key and data:
```
['id', '0c9d534a-5af4-4fa5-8cd7-668432775317', 'name', 'test company UK Sandbox', 'account', 'test company - Pilot', 'account_id', '<KEY>', 'ea_project_id', '0c9d534a-5af4-4fa5-8cd7-668432775317', 'ea_account_id', '<KEY>... |
2018/03/09 | 553 | 1,655 | <issue_start>username_0: I have a vector of data in R that has entries like `data = BURR_WK_94_91`and I want to extract the number that falls between the two underscores. So in this case get 94. The strings are of variable length so I can't use a starting position.
I'm almost there with [this](https://stackoverflow.c... |
2018/03/09 | 803 | 2,510 | <issue_start>username_0: Idris 1.2.0. I tried to automatically find a proof that the length of the vector is less than 3.
```
f : {n : Nat} -> {auto prf: n < 3 = True} -> Vect n a -> ()
f v = ()
f' : {n : Nat} -> {auto prf: isJust (natToFin n 3) = True} -> Vect n a -> ()
f' v = ()
```
Both of these typecheck, and w... |
2018/03/09 | 1,306 | 4,873 | <issue_start>username_0: How do I properly have django tell me the url to send it to, so I can avoid hardcoding it, and how do I do it in JS, once it's been served (can I get the url with everything but the `recipe_pk` and then concat it in JS later?)
url/router
==========
```
url(r'^recipe/AJAX/(?P[a-zA-Z0-9]+)/?', ... |
2018/03/09 | 426 | 1,257 | <issue_start>username_0: I am trying to convert JSON file to Parquet format using Kites SDK.
I have the following pom.xml :
```
xml version="1.0" encoding="UTF-8"?
4.0.0
com.project
JSONToParquet
1.0-SNAPSHOT
jar
org.kitesdk
kite-data-core
1.1.0
org.kitesdk
kite-morphlines-all
1.0.0
pom
ua\_parser
... |
2018/03/09 | 1,211 | 3,614 | <issue_start>username_0: I created a game to guess US States and Capitals. It works in Jupyter Notebook. When I save the code to game.py and run it in Windows CMD, my code does not loop 10 times, but just one time, then the CMD will close automatically. Any reason why?
Also, I used random.choice function to randomly s... |
2018/03/09 | 652 | 2,506 | <issue_start>username_0: I have a table declared in a stored procedure like this:
```
declare @tableName table (ID bigint,
Column1 bigint,
Column2 datetime,
createdBy nvarchar(100),
dateAdded nvarchar(12),
... |
2018/03/09 | 2,155 | 8,085 | <issue_start>username_0: I want to use DTO object in all the classes but I got an error when I change <**User**> to <**UserDTO**> from everywhere.
My error log is;
>
> org.springframework.beans.factory.UnsatisfiedDependencyException:
> Error creating bean with name 'userService': Unsatisfied dependency
> expressed... |
2018/03/09 | 1,188 | 4,130 | <issue_start>username_0: I'm trying to create a function to logout WordPress users after a period of inactivity. The timed element is working as it should and redirecting users after a set period of time.
The problem is that once the PHP script is loaded (in code sample), I run into the following error: **Fatal error... |
2018/03/09 | 661 | 2,367 | <issue_start>username_0: I'm trying to clean up a bunch of tweets so that they can be used for k-means clustering. I've written the following code that should strip each tweet of its unwanted characters.
```
from nltk.corpus import stopwords
import nltk
import json
with open("/Users/titus/Desktop/trumptweets.json",'r... |
2018/03/09 | 1,200 | 4,259 | <issue_start>username_0: I have tried to write a Java program that count number of words start with UpperCase in each line separately, like in a txt file, and **print the line number next to the number of words start with UpperCase in that line.**
I have only come out with how to count the number for a single line usi... |
2018/03/09 | 1,395 | 5,220 | <issue_start>username_0: I'm currently working on a 'small' project with JavaFX. I used the SceneBuilder to create the first sketch of my GUI. it still needs some adjustment and styling but I wanted to see if it's working so far.
I have 2 hyperlinks on the GUI, if the user clicks one of them the default system-browser... |
2018/03/09 | 420 | 1,249 | <issue_start>username_0: Consider a square matrix containing positive numbers, given as a 2d numpy array A of shape ((m,m)). I would like to build a new array B that has the same shape with entries
```
B[i,j] = A[i,j] / (np.sqrt(A[i,i]) * np.sqrt(A[j,j]))
```
An obvious solution is to loop over all (i,j) but I'm won... |
2018/03/09 | 835 | 2,870 | <issue_start>username_0: I have a dataframe with a column in it as follows
```
mydf<-data.frame(c("Normal study","Normal study","Normal study","Odd things","Strange stuff","Normal study","Normal study","Normal study"))
```
I want to replace "Normal study" with "Bizarre" but only in a random third of rows with "Norma... |
2018/03/09 | 857 | 3,009 | <issue_start>username_0: I'm trying to use the size of the path in the firestore rules, but can't get anything to work, and can't find any reference in the firestore docs on how to do this.
I want to use the last collection name as a parameter in the rule, so tried this:
```
match test/{document=**}
allow read, wr... |
2018/03/09 | 966 | 3,286 | <issue_start>username_0: I have two tables NAVEEN\_T1 and NAVEEN\_T2 having columns like Id and Name.
How to swap name column values of both the tables on the basis of Id?
```
SQL> SELECT * FROM NAVEEN_T1;
ID NAME
---------- ----------
1 GOLDI
2 NAVEEN
3 AMIT
SQL> SELECT * FROM N... |
2018/03/09 | 687 | 3,193 | <issue_start>username_0: There are many sources telling it is bad to run apps under root inside Docker container but they always refer to this link: <https://blog.docker.com/2014/06/docker-container-breakout-proof-of-concept-exploit/> with issue fixed long ago because newer Docker versions whitelist kernel capabilities... |
2018/03/09 | 1,320 | 4,053 | <issue_start>username_0: I've fiddeling around with timestamps in PostgreSQL, reading a interesting [Blog](http://blog.untrod.com/2016/08/actually-understanding-timezones-in-postgresql.html) about this behavior, but have no clue to solve following problem:
How to select a 'timestamp with time zone' column with AT TIME... |
2018/03/09 | 745 | 2,339 | <issue_start>username_0: I have a raw table:
[Raw Table](https://i.stack.imgur.com/E5ROT.png)
[](https://i.stack.imgur.com/E5ROT.png)
I want to write a query that will return 5 random [Case Number] values for each [Case Owner]. If the [Case Owner] ha... |
2018/03/09 | 1,391 | 5,287 | <issue_start>username_0: Assume I have an EF entity class Person, with a PhoneNumber on it. PhoneNumber is stored as a string type, but I want all accesses on the Person to go through Phone which has some nice accessor functions, e.g. validation or `GetAreaCode()`. I want to back it in the db as a string, but when quer... |
2018/03/09 | 916 | 2,950 | <issue_start>username_0: Given the following collection, what would be the best way to consolidate this data to group by room and make the "names" an array; excluding duplicates, and do not want to use the call the key "name" to make it more dynamic if there are more fields:
```
var roomAssignments = [{
room: 'Foo... |
2018/03/09 | 287 | 1,000 | <issue_start>username_0: I have a docker container running
```
> docker container ls
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
c5a24953e383 gradle "bash" 22 minutes ago Up 22 minutes # naughty_torvalds
```
Can I duplicate this running container and run it? What is the com... |
2018/03/09 | 429 | 1,836 | <issue_start>username_0: [](https://i.stack.imgur.com/fvbYP.png)
I am creating a dynamic reporting tool that creates reports from data sourced from Wonderware. The data that is sourced is gathered from various pumps/flows/temps around site for operato... |
2018/03/09 | 645 | 2,414 | <issue_start>username_0: I have a spring application and I have a native query with this syntax:
```
select
COUNT(DISTINCT person.id,(CASE WHEN salary_person.rating = 'Satisfactory' THEN 1 END)) AS totalSatisfactory,
COUNT(DISTINCT person.id,(CASE WHEN salary_person.rating = 'Unsatisfactory' THEN 1 END)) AS... |
2018/03/09 | 348 | 1,106 | <issue_start>username_0: I have created a sequence `plsql_profile_runnumber` in sys user, but I cannot find it in `dba_objects` or `dba_sequences`. Please find the executiion details:
```
SQL> create sequence plsql_profiler_runnumber start with 1 nocache;
Sequence created.
SQL> select * from sys.dba_objects where ob... |
2018/03/09 | 2,235 | 9,141 | <issue_start>username_0: Explaining,
I use the viewpager class for 2 activities. When you click on an item in the ActivityMainTab list, it is taken to another activity (ActivityAtTab), it also uses the same viewpager class as the previous one to generate its tabs and fragments.
I need to know if the Conduit fragment i... |