date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/07 | 448 | 1,463 | <issue_start>username_0: I want to reject rows while loading data from flat file to Sql server and handle the rows with extra comma's and redirect them to flat file
Example
```
ID,FirstName,LastName,City
1,Robert,Gurera,Phoenix
2,Tom,Bradley,Cleveland,5
3,Jack,Williams,Dallas
4,Tim,Doherthy,San franscisco,6,7
```
I... |
2018/03/07 | 984 | 3,377 | <issue_start>username_0: I was asked the following question at an OA. I did not figure it out and I would like to know the solution to this question.
I was asked to console `Thank you for Logging in Dan`:
```
var Wrap = (function(){
function User(name){
this.name = name;
}
var d = function(){
console.lo... |
2018/03/07 | 504 | 1,738 | <issue_start>username_0: I am working with `chartjs` and I am wondering how to give '%' on datalabel of bar chart. My code like below:
```
data: {
datasets: [{
label: 'My Label',
data: php echo json_encode($myData); ? // contains number like: 77.43, 78.22, etc
datalabels: {
alig... |
2018/03/07 | 1,190 | 4,395 | <issue_start>username_0: When I try this sample code from react-bootstrap, I keep getting errors such as " Parameter 'context' implicitly has an 'any' type; "Property 'value' does not exist on type 'Readonly<{}>'."
in form.tsx:
```
class FormExample extends React.Component {
constructor(props, context) {
super... |
2018/03/07 | 577 | 2,283 | <issue_start>username_0: i am looking for a nice document explaining well about pagination in react native.I can't find a one i'm looking for.I'm fetching the data from server (set of 15 questions and answers).I want to display single question in a page with a `next` or `previous` button at the bottom.How to do this?No... |
2018/03/07 | 622 | 2,435 | <issue_start>username_0: I am wondering if there is a way i can get an `IOBluetoothDevice *` object from a `CBPeripheral *` object because I am making an advanced bluetooth controller framework (Its going to be based on `IOBluetooth`) and Im using it so scan for `Bluetooth Classic` and `Bluetooth Low Energy` devices. H... |
2018/03/07 | 548 | 1,972 | <issue_start>username_0: I am trying to display a particular string using an if else statement based on the value of a date/time object.
I am using a formula editor which checks for syntax and I get no problems, however when the formulas is parsed in the application I get blanks where the condition should be met.
Her... |
2018/03/07 | 769 | 2,437 | <issue_start>username_0: ```
actual_row = File.open(file_name[0], 'r')
first_row_data = []
CSV.foreach(actual_row) do |row|
first_row_data << row[1]
end
puts first_row_data
```
With this I am trying to fetch the second row of CSV but it is printing the second column instead.<issue_comment>username_1: If you'd li... |
2018/03/07 | 775 | 2,802 | <issue_start>username_0: Suppose I have a graticule (say 1 degree resolution) in spherical coordinates.
[](https://i.stack.imgur.com/OqQhf.png)
Now, assuming that a certain spherical object is in a known direction (known `phi` and `lambda`) and has a known an... |
2018/03/07 | 806 | 2,709 | <issue_start>username_0: I have a use case where my SQL Script is having a variable with comma separated values.
```
whitelistURL = abc.com,xyz.com
```
I have to run insert command on all the values of the variable. Something like split with comma and run **insert on abc.com** and **insert on xyz.com**
Can someon... |
2018/03/07 | 458 | 1,627 | <issue_start>username_0: I have an MVC form (with layout page \_Layout.cshtml) using jQueryVal. When I submit with empty required fields the validation message displays properly BUT the style in Site.css is not being applied (overriding bootstrap.css). I suspect it is because jQueryVal is running client side. The only ... |
2018/03/07 | 375 | 1,314 | <issue_start>username_0: So I am following [this](https://aws.amazon.com/blogs/compute/using-amazon-api-gateway-as-a-proxy-for-dynamodb/) Tutorial
I have created a role and attached the `AmazonDynamoDBFullAccess` policy to it ...
[](https://i.stack.i... |
2018/03/07 | 1,139 | 2,107 | <issue_start>username_0: I have an array that looks like this:
```
array([(b'03:35:05.397191'),
(b'03:35:06.184700'),
(b'03:35:08.642503'), ...,
(b'05:47:15.285806'),
(b'05:47:20.189460'),
(b'05:47:30.598514')],
dtype=[('Date', 'S15')])
```
I want to convert it into a dataframe, using `to_dat... |
2018/03/07 | 519 | 1,982 | <issue_start>username_0: I want create a document that containing about 20 million objects.
The structure like that:
```
documentID
---- key1
-------- object1
-------------name: "test1"
-------------score: 123
```
I don't know the limitation of a document size in firestore, so can you help me any reference or infor... |
2018/03/07 | 534 | 2,006 | <issue_start>username_0: loop is defined as below:
```
def loop : Boolean = loop
```
When x is defined as: `def x = loop` then "x: Boolean" is shown in console.
and
When x is defined as: `val x = loop` then it goes to infinite loop
I know def is using call by-name and val is using call by-value. Even though this... |
2018/03/07 | 464 | 1,787 | <issue_start>username_0: I consider bewteen `!StringUtils.isEmpty(string)` and `string != null && string.length()!=0` Which is better for performance??<issue_comment>username_1: The maximum size is roughly 1 Megabyte, storing such a large number of objects (maps) inside of a single document is generally a bad design (a... |
2018/03/07 | 409 | 1,661 | <issue_start>username_0: I'm able to dump value of the variable message in console .
But im not able to send it off in POST Request.
AJAX call:
```
chat.throwmsg = function(message) {
if ($.trim(message).length != 0) {
console.log(message);
$.ajax({
url: 'ajax/chat.php',
type: 'post',
dat... |
2018/03/07 | 361 | 1,567 | <issue_start>username_0: I am dealing with a weird situation , where I have small tables and big tables to process using spark and it must be a single spark job.
To achieve best performance targets, I need to set a property called
```
spark.sql.shuffle.partitions = 12 for small tables and
spark.sql.shuffle.partitio... |
2018/03/07 | 565 | 2,222 | <issue_start>username_0: I'm working on a program and it involves arrays. I'm new to this so I keep writing code and deleting it over and over.
I need to ask the user to input a number from 1 to 99.
Their input should allocate the size of a single dim array.
Then I have to send that array to a method that randomly c... |
2018/03/07 | 518 | 2,119 | <issue_start>username_0: I am trying to figure out a way to detect when a div element is resized and resize several other associated elements in the same class as it. I learned that the `onresize`event only works on the body but not individual elements.
I did discover `ResizeObserver` and there was this example ->[Ho... |
2018/03/07 | 968 | 2,847 | <issue_start>username_0: i'm trying to create a function that gives me an array of numbers with a limitation of repetition for each number. for example
```
([1,1,3,3,7,2,2,2,2], 3)
```
should give me
```
[1, 1, 3, 3, 7, 2, 2, 2]
```
it deletes a [2] because the max repetition of numbers is 3.
here is my code ... |
2018/03/07 | 426 | 1,366 | <issue_start>username_0: I have a computed SQL Server column that is calculated like:
```
Number1 - Number2
```
If it so happens that this math is equal to a negative number I'd like to have a `0` as the value in the field rather than a negative number
IE: 5-10 = -5 (Display 0) or only positive numbers.
[![enter i... |
2018/03/07 | 412 | 1,483 | <issue_start>username_0: I have a button on click of which i am navigating to the other component
```
Calculate
setDealSizeAndType({ target }){
const dealTypeName = target.name ;
this.setState({
dealType: dealTypeName
}, function(){
this.props.setDealType(this.state.dealType);
});
}... |
2018/03/07 | 1,289 | 4,820 | <issue_start>username_0: I am in a fundamentals C++ college course and I am completely stuck on one of my assignments.
I need to read the input from a file that has a list of (1-25) names, sort the names alphabetically, and then output which people would be at the front of the line (ex:Amy) and the back of the line (e... |
2018/03/07 | 1,771 | 6,080 | <issue_start>username_0: I have a template string:
```
const template = "Answer to {question} must be {YES} and answer to {question} must be {4}";
```
and an array of values:
```
const array = ["Is it late?", "What time is it?"];
```
What I'm trying to achieve is to replace each occurrence of `{question}` by an e... |
2018/03/07 | 685 | 2,494 | <issue_start>username_0: I've created a for loop with javascript/jquery, in order to assign a random number to each div class with the name ".choice". There are four div's in total. When I run the following code:
```
for (var i = 0; i < 4; i++) {
var random = Math.floor(Math.random() * 12);
var chess = $(... |
2018/03/07 | 732 | 2,824 | <issue_start>username_0: I want to have a simple website be able to send and receive data from a server. As for the server, it will be a javascript express server using MongoDB and Mongoose.
What would be the best way to make a POST and GET requests to the server from the client side website. Note that I would prefer... |
2018/03/07 | 416 | 1,428 | <issue_start>username_0: I am working on the following demo. Why am I not able to find and filter divs bases on their text?
```js
$(".list-group-item").each(function(){
if($(this':contains("text")').contains("Map")){
$(this).append(" - One");
}
if($(this':contains("text")').contains(... |
2018/03/07 | 882 | 3,605 | <issue_start>username_0: I know there some questions like this, but they didn't answer questions exactly.
This is what I need,
1. Upload files using `Dropzone`
2. Save form data and uploaded image paths to DB
**The problem is, How can I send both form data and dropzone files at the same time, like in the following o... |
2018/03/07 | 215 | 662 | <issue_start>username_0: Is there any way that I can know the index of current element that x is pointing to in the code below:
```
funcName k = [ | x <- list, x == k]
```
Any help would be greatly appreciated.. Thanks :)<issue_comment>username_1: Index each element with an integer using `zip`:
```
funcName k = [if... |
2018/03/07 | 514 | 2,181 | <issue_start>username_0: So here's the bit I wrote to unassign roles. If I have multiple roles assigned it will remove the first one of them it finds, but then it breaks out of the loop somehow. I'm not sure why it isn't removing all of them. Any ideas? role\_list is just a list of strings.
```
if message.content.star... |
2018/03/07 | 661 | 2,704 | <issue_start>username_0: ```
func setupRightNavigationItems()
{
let menuButton = UIButton(type: .system)
menuButton.setImage(#imageLiteral(resourceName: "menu-white").withRenderingMode(.alwaysOriginal),for:.normal)
menuButton.contentMode = .scaleAspectFit
menuButton.frame = CGRect(x:... |
2018/03/07 | 423 | 1,642 | <issue_start>username_0: I have a string like this: `MemRegions: 202004 total, 7637M resident, 46M private, 1936M shared.`. I want to use a regex to get the value for `private` and `shared`. Below is my regex but it doesn't work: `/((.*\s)(private|shared))+/`. I need the regex to return the value `46M` and `1936M`. How... |
2018/03/07 | 1,919 | 6,353 | <issue_start>username_0: I’m stuck on an issue that shouldn’t keep me stuck. Can’t figure out how to get this done…
I have a db.json that looks like this:
```
{
"applicants": [{
"id": 1,
"firstName": "John",
"lastName": "Doe",
"email": "<EMAIL>",
"coverLetter": "Aliquam ut nunc eu augue vo... |
2018/03/07 | 643 | 2,059 | <issue_start>username_0: I am trying to write a query as follows:
Eg:
```
DECLARE
V_Output varchar(20):='';
BEGIN
INSERT INTO T(ID, MY_PK, NAME, VALUE)
(SELECT ID, NEXT_TRAN_VALUE('T'), NAME, VALUE FROM T WHERE MY_PK = 'NO0000000000013');
RETURNING MY_PK INTO V_Output;
DBMS_OUTPUT.PUT(V_Output);
END... |
2018/03/07 | 454 | 1,484 | <issue_start>username_0: I show you guy the normal view of the layout below:
[Image 1](https://i.stack.imgur.com/2jBdA.jpg)
When I clicked on **email editText** the softkeyboard was pop up, the editText is cover by softkeyboard, it that show as picture below:
[Image 2](https://i.stack.imgur.com/3Ctdq.png)
So, I wan... |
2018/03/07 | 1,492 | 4,801 | <issue_start>username_0: I am reading Elixir's [pattern matching](https://elixir-lang.org/getting-started/pattern-matching.html) and I am a little confused on `=` operator being a match operator.
The website says
>
> Elixir, the = operator is actually called the match operator.
>
>
>
And it gives this example:
... |
2018/03/07 | 1,495 | 4,826 | <issue_start>username_0: I am working on sql server I have two tables and I need to return records from the left table which are not found in the right table for that I am using left join like below query,
```
select @MID=MID,@MName=Name,@PID=PID,@PName=PName,@DID=DID from @CompanyDataInfo where id=@MCount
insert in... |
2018/03/07 | 2,181 | 6,620 | <issue_start>username_0: I'm trying to pivot my `measure` column to have its values become fields.
Meaning `net_revenue` and `vic` should become their own fields.
In the picture below, the Input is on the left, and Desired Output is on the right:
[]... |
2018/03/07 | 805 | 2,932 | <issue_start>username_0: Given that there are `std::future::wait_for/until()`, I don't see why there is no `std::future::try_wait()`. I'm currently writing a producer-consumer example, and I want to use `std::future` as a convenient way to signal the consumer threads to return. My consumer code is like
```
void consum... |
2018/03/07 | 724 | 2,565 | <issue_start>username_0: The sole purpose of index.js is to run `foo` and `bar` functions:
```
//index.js
import foo from './foo.js'
import bar from './bar.js'
foo()
bar()
```
How can I test that when running index.js both `foo` and `bar` get executed?<issue_comment>username_1: It seems you need add [`replace`](htt... |
2018/03/07 | 1,004 | 3,517 | <issue_start>username_0: I wanted to know if there was any way to end a conditional early. For example, when I run the code and enter all values in between 0-100 the program does what it's supposed to. However, let's say I put a negative number as input #3. The program keeps on going until the very end, then I get "Inv... |
2018/03/07 | 594 | 2,288 | <issue_start>username_0: Is there a way I can perform a delete on `Firestore` documents where **field1 =x** and **field2 = y?**
I see the delete function but does not come with where.
If I use the transaction then there is get and delete but the get does not seem to accept "where" clause.
I hope I am missing somethin... |
2018/03/07 | 982 | 3,194 | <issue_start>username_0: Firstly I am fairly familar with Java programming and have just started to learn C programming.
Below is a program that takes inputted integers and finds the min, max and sum.
To me (at least) that code written seems logical in properly performing the needed tasks and functions.
```
#include... |
2018/03/07 | 2,130 | 7,962 | <issue_start>username_0: I am coding a Xamarin.Forms project and I have a list view but whenever I show hidden content, for example, make an entry visible it the ViewCell overlaps the one beneath it.
Is there a way I could `.Update()` the listview or something to refresh it and make them all fit.
I don't want the ref... |
2018/03/07 | 497 | 1,647 | <issue_start>username_0: [](https://i.stack.imgur.com/XGTb5.png)
if I have the table above, waiter 1102 has the most tips, because he makes $70 tips in total.
But in SQL, how can I write a query that find the waiter who makes the most tips. In this c... |
2018/03/07 | 993 | 3,416 | <issue_start>username_0: I'm trying to use Web Worker within the [nuxt.js framework](https://nuxtjs.org/) but keep getting a reference error. `ReferenceError: Worker is not defined`.
I have installed [worker-loader 1.1.1](https://github.com/webpack-contrib/worker-loader) via npm and added the following rule to my `nux... |
2018/03/07 | 1,051 | 3,930 | <issue_start>username_0: Apache and wsgi now have permissions problems accessing the directory in which my Django project is stored. I think I need to get back to having wsgi run as user (or maybe just group) kevin.
I had this working, and I don't know what I did to stop it working, but now I get an permissions error ... |
2018/03/07 | 407 | 1,313 | <issue_start>username_0: I have the following variables :
```
TYP=a1
STAT_a1=statistical
FINAL_VARIABLE=${STAT_${TYP}}
```
But I get an error:
```
-bash: ${STAT_${TYP}} : bad substitution
```
What I want is, that the value of FINAL\_VARIABLE be 'statistical'
Please help..<issue_comment>username_1: Use `eval`, ... |
2018/03/07 | 601 | 2,226 | <issue_start>username_0: I have installed Kafka connect using confluent-4.0.0
Using hdfs connector I am able to save Avro records received from Kafka topic to hive.
I would like to know if there is any way to modify the records before writing into hdfs sink.
My requirement is to do small modifications to values of the ... |
2018/03/07 | 1,290 | 5,114 | <issue_start>username_0: I am new to Entity Framework with ASP.NET MVC and C#. I need to create the small demo for crud operation using Entity Framework and in the backend, I have used SQL Server. I have to create 2 databases:
1. Employee
2. EmployeeUsers
In database `Employee` I have one table, `Sectors`.
Here belo... |
2018/03/07 | 267 | 930 | <issue_start>username_0: I want to make `display:none` the whole tag when it contains only tag
Eg:
```
```
Can any one post your answer for above question<issue_comment>username_1: give any class or id to tag and write jquery:
```
$('.ptag').css('display','none');
```
Upvotes: 0 <issue_comment>username_2: ```
... |
2018/03/07 | 818 | 2,956 | <issue_start>username_0: I am stuck with a problem here, where I want to keep my functions separately (in files) for a neater code.
In my Route.js, I am calling a function like this:
```
app.post('/pay', function(req, res){
User.getPaypal(function(output){
console.log(output) //i am not getting this resu... |
2018/03/07 | 729 | 2,470 | <issue_start>username_0: In an R dataframe, is it possible to use numerical format so that
```
x <- c(155.395227, 11.16707, NA, 0.259722)
```
is displayed as:
```
x <- c(155, 11, NA, 0.3)
```
I tried with prettyNum, but I'm not sure whether or not this is possible. In other words, if x < 1 then display 1 decima... |
2018/03/07 | 642 | 2,558 | <issue_start>username_0: I have a C# bot developed in Visual Studio which runs successfully on a bot emulator in desktop. This bot was published to Azure and again ran successfully in the bot emulator. I think this means that the app-ID and password of the bot are correct. However the same bot wouldn't work in web chat... |
2018/03/07 | 621 | 2,345 | <issue_start>username_0: I am having trouble in controlling the behavior of multiple radio select in multiple for loop.
In below demo, when I check radio of 1st block it is selecting the same radio in 2nd block too. Please have a look. Actually I need to select different radio option in different blocks.
```
demo: ht... |
2018/03/07 | 2,324 | 8,364 | <issue_start>username_0: I am working on `yii2`. I have some `user roles`. Admin has all the level of access. Other users have a low level of access. There is a user list which is visible to the other user. In this list all of the details of the users in the system is available. Now, I want to hide some user informatio... |
2018/03/07 | 476 | 1,660 | <issue_start>username_0: So my goal is to create a mouseenter/mouseexit event for an individual li's child elements. For my app, when a user mouseenters an li elememt, it's child element ***div class='thumbs'*** is added to the DOM through a component boolean property called "hover" -- **\*"*ngIf='hover'"***
My proble... |
2018/03/07 | 356 | 1,099 | <issue_start>username_0: inserting another selection above my existing
here's what i want to happen.[](https://i.stack.imgur.com/HBaYN.png)
Here's my code:
<https://jsfiddle.net/rLc588mu/>
Thank you!<issue_comment>username_1: Try Something Like This... |
2018/03/07 | 944 | 3,353 | <issue_start>username_0: This is my response
`{"message":"Success","draft_id":"5a9f70021207b061128b4567"}`
this is my POJO class:
```
public class SaveNoteModel {
@SerializedName("message")
@Expose
private String message;
@SerializedName("draft_id")
@Expose
private String draftId;
public... |
2018/03/07 | 606 | 2,130 | <issue_start>username_0: I have written a code where the person inputs the amount of money the have and what computer they want, how would I write a code to tell them if the have can afford it or not. (I am only 11 years old so I do not want it to be over complicated)
```
Homebasic_price = 900
Office_price = 1200
Game... |
2018/03/07 | 1,081 | 3,751 | <issue_start>username_0: When I called the http post method it returns "data does not pass correctly".I passed data through body and I also tried by passing using json.stringify() I also tried by using content type as following also. But it didn't work.
```
const headers = new Headers({ 'Content-Type': 'application/js... |
2018/03/07 | 1,197 | 3,239 | <issue_start>username_0: my data has a column of cities where a same city has been written differently. For example the city 'Bangalore' (correct spelling) has been spelled as 'bangalore','bengaluru','banglore' etc. I want to make all these different spelling into one correct spelling. Till now I have been doing it man... |
2018/03/07 | 967 | 4,093 | <issue_start>username_0: Can anyone explain why this code never makes it the the Debug.Log("END"); call?
I'm trying to figure out how to use the DataSnapshot for Firebase in Unity but the documentation is next to worthless when it comes to working with the datasnapshot. I am able to get the snapshot but working with i... |
2018/03/07 | 187 | 683 | <issue_start>username_0: Can anyone provide me with the list of minimum browser support for Angular 5? I've searched them on the angular official [site](https://angular.io/guide/browser-support). But all I got is the "the word latest" for chrome, Mozilla, Edge and no information about Opera, Safari.<issue_comment>usern... |
2018/03/07 | 206 | 651 | <issue_start>username_0: [enter image description here](https://i.stack.imgur.com/4XVti.png)
[](https://i.stack.imgur.com/4XVti.png)
This is from my bash shell. but the version i downloaded is 3.6.0.<issue_comment>username_1: It shows you here: <https... |
2018/03/07 | 444 | 1,513 | <issue_start>username_0: When I upload .otf file in October CMS it pops up an error as below:
Error uploading file 'FontAwesome.otf': Only the following file types are allowed: jpg, jpeg, bmp, png, webp, gif, ico, css, js, woff, woff2, svg, ttf, eot, json, md, less, sass, scss
And also I can't upload .map file too.<i... |
2018/03/07 | 785 | 2,697 | <issue_start>username_0: In one of my C#.Net application, I used the Thermal Label SDK version 3 to create the Label. Now because of some reasons, I want to update the Thermal Label SDK version to the latest that is [version 7](https://www.neodynamic.com/Products/Help/ThermalLabel7.0/articles/about.html). When Updating... |
2018/03/07 | 1,678 | 6,003 | <issue_start>username_0: Is there a way to limit array size in swift so that when you append elements to it when it's full, it doesn't append?
I know this can be done programmatically. Wondering if swift has inbuilt handling for this.
eg:
array -> Array with size 10
```
array.append(1)
.
.
.
array.append(10)
... |
2018/03/07 | 1,732 | 6,362 | <issue_start>username_0: Hi I am trying to get data from a web API using get method of volley. But I keep getting these errors.
```
StringRequest stringRequest = new StringRequest(Request.Method.GET, uri, new Response.Listener() {
@Override
public void onResponse(String response) {
Log.i("response", response);... |
2018/03/07 | 518 | 1,780 | <issue_start>username_0: I have a scenario where I fetch business groups through a lambda and collect data to be sent as a json.
The code is here:
```
def get_business_with_details
businesses = self.business_groups
binding.pry
businesses.collect do |business|
{
name: business.actor.name,
id: bu... |
2018/03/07 | 565 | 1,829 | <issue_start>username_0: I have been working on a program that reverses a string from a user.
I have another program that does something very similar, just without the user input. Yet the former doesn't want to set the values of the second string to the first. Any and all help is appreciated!
also i apologize for my ... |
2018/03/07 | 1,557 | 4,284 | <issue_start>username_0: The main question is just that. Parse the `openssh` public key to [`rfc 4716`](https://www.rfc-editor.org/rfc/rfc4716) format compliant. The only catch though, is that it has to be in **java**.
Using `ssh-keygen`, it is just single line command :
```
ssh-keygen -e -f openssh_key.pub
```
Unf... |
2018/03/07 | 1,253 | 4,770 | <issue_start>username_0: I have an External Java Script File
**something.js**
```
function myFun(){
document.getElementById("demo").innerHTML="Hello World!";
}
export default myFun;
```
and this is my vue component
**Dashboard.vue**
```
Call External JS
import something from "./something.js"
export default ... |
2018/03/07 | 621 | 2,516 | <issue_start>username_0: I know it sounds like a dumb question but I am a bit confused about whether Angular is really case sensitive or just in certain cases?
I was stuck with a piece of code yesterday for a few hours and I couldn't make it work. I posted the question on SO and I found the issue was that I was using `... |
2018/03/07 | 517 | 1,577 | <issue_start>username_0: I wanted a partial purple background that is positioned absolutely behind everything else. When I tried to make this, the div appeared on top of all of my other elements. Is there a way I can make that div appear behind everything instead? I tried using z-index to no avail and looked up some ot... |
2018/03/07 | 1,290 | 4,530 | <issue_start>username_0: I am receiving a time from my server in `UTC ISO8601` format like so:
```
2018-01-25T05:14:03.4973436
```
I am converting this `string` to `milliseconds` and I am `generating` a time elapsed value using my current `time` like so:
```
public static CharSequence getRelativeTimeSpan(String tim... |
2018/03/07 | 1,334 | 5,926 | <issue_start>username_0: I want to write unit tests for my spring controller. I'm using keycloak's openid flow to secure my endpoints.
In my tests I'm using the `@WithMockUser` annotation to mock an authenticated user. My problem is that I'm reading the userId from the token of the principal. My unit test now fails be... |
2018/03/07 | 610 | 1,613 | <issue_start>username_0: **Data:**
```
lis_t = [['q', 'w', 'e'],['r', 't', 'y']]
```
**Expected Outcome:**
```
lis_t = [['q', 'w', 'e', 'u'],['r', 't', 'y']]
```
**problem description:** I am trying to append to the list above however not able to append the same as it somehow results in none. Please help me unde... |
2018/03/07 | 595 | 2,096 | <issue_start>username_0: I have two classes, a `user_api_manager` and a `base_api_manager`. From `user_api_manager` i call the `get` method of `base_api_manager` which performs an http get request and returns a `Future`. The `get`request is performed but i am not pass the result to my `user_api_manager` class. The call... |
2018/03/07 | 227 | 852 | <issue_start>username_0: It's not firing when I close the browser. I have researched the issue a lot and found similar kinds of solution, but it is still not working.
```
$(document).ready(function(){
$(window).bind("beforeunload", function() {
return confirm("Do you really want to close?");
})
});
... |
2018/03/07 | 971 | 3,237 | <issue_start>username_0: I have created tables like this,
```
create table customer
(
customer_id number(3),
customer_name varchar(20),
phone varchar(15)
);
create table manager
(
customer_id number(3),
ordered_products number(4),
transaction_on DATE
);
```
Now how will i insert data in `manager` ... |
2018/03/07 | 1,589 | 5,388 | <issue_start>username_0: I have a very basic sample code to implement `equals` and `hashcode`.
There is one map in which object of `Employee` class is used as key.
I have debugged the code, and `equals` method returning `true` for duplicate object. All the values are same for emp obj but I am not getting any error.
... |
2018/03/07 | 1,627 | 5,341 | <issue_start>username_0: I'm trying to POST request to our AWS lambda server (`https://`) using Retrofit2 but the server cannot read the parameters I passed. But when I tried to use the same code pointing to our local network (`http://`) it works. Below is my code, please help.
Gradle Dependencies:
```
compile "com.s... |
2018/03/07 | 1,070 | 3,844 | <issue_start>username_0: I am trying to display the below table value in list and sub-list.
[](https://i.stack.imgur.com/siqVm.jpg)
and here is my for loop to display
```
$sql ="SELECT *FROM objectives";
$result = $conn->query($sql);
$categories = array();
f... |
2018/03/07 | 873 | 2,686 | <issue_start>username_0: Please help convert data to properly format probably use reduce method
`const testData = { a: [1], b: [2, 3, 4], c: [] };`
should be a=1&b=2,3,4
returned a=1&b=2,3,4&
```
const createUrlString = params =>
Object.keys(params)
.map(
attr => (params[attr].length ? `${att... |
2018/03/07 | 1,610 | 6,249 | <issue_start>username_0: i am working on google maps. the app sucesssfully trace user location but when i search for place it doesn't return a result. below is my code along with manifest and gradle.build.
Also logcat is also attached which confirms the geolocate function execute as geolocating is displayed. but no pl... |
2018/03/07 | 833 | 3,369 | <issue_start>username_0: I'm having difficulty with server side paging with HttpClient rather than the old Http.
Where I'm struggling is with the removal of the ".map" and processing the response to the GridDataResult interface
An old service would look like this
```
constructor(private http: Http) { }
public f... |
2018/03/07 | 634 | 2,222 | <issue_start>username_0: In a dynamic system my base values are all functions of time, `d(t)`. I create the variable `d` using `d = Function('d')(t)` where `t = S('t')`
Obviously it's very common to have derivatives of d (rates of change like velocity etc.). However the default printing of `diff(d(t))` gives:-
```
De... |
2018/03/07 | 583 | 1,909 | <issue_start>username_0: ```
void main()
{
int a, b, r;
//Finf GCD by Eucledian algorithm
scanf("%d %d", &a, &b);
for( ; b == 0; (a = b), (b = r)){
r = a % b;
printf("GCD is %d", a);
}
printf("GCD is %d", a);
}
```
Somehow this doesn't work.
I assign a to b and b to r, but ... |
2018/03/07 | 888 | 2,902 | <issue_start>username_0: I am writing unit test cases using Spock framework for CQ5 project.
```
def props1 = Mock(ValueMap)
props1.put("prop1",21);
props1.put("prop2",92);
```
I am not able to add properties to props1.<issue_comment>username_1: I am not familiar with Spock but in Java tests you do not nee... |
2018/03/07 | 688 | 2,269 | <issue_start>username_0: I am beginner to node and express. In my current application the page is displaying using this code :
```
var app = express();
app.use(serveStatic('static', {'index': ['index.html']}));
```
and in static folder, there are there files:
>
> css, index and a js file
>
>
>
Listening to 30... |
2018/03/07 | 974 | 3,286 | <issue_start>username_0: I am using C++ in native mode with Visual Studio 2017. That compiler compiles the statement below without complaint:
```
const char * AnArrayOfStrings[] = {"z1y2x3w4", "Aname"};
```
However, if I change the above statement to specify that char is signed or unsigned, the compiler emits a **C... |
2018/03/07 | 506 | 2,154 | <issue_start>username_0: I want to create before save and after save method hooks for my Go structs how can I achieve this?
```
type Person struct {
FirstName string
LastName string
}
func (p *Person) Save() {
// call beforeSave()
// Save person data
// call afterSa... |
2018/03/07 | 2,341 | 7,926 | <issue_start>username_0: In a for loop, I am calling a function twice but with different argument sets (`argSet1`, `argSet2`) **that change on each iteration of the for loop**. I want to parallelize this operation since one set of the arguments causes the called function to run faster, and the other set of arguments ca... |
2018/03/07 | 1,843 | 5,937 | <issue_start>username_0: There are some entries in my table which have non printing characters. I tried to write a simple script to execute on Oracle DB-
```
select column from table where regexp_like(column,'([[:cntrl:]]+)');
```
But this even matched strings with multiple spaces . But spaces are OK.
What is the ... |
2018/03/07 | 1,897 | 6,171 | <issue_start>username_0: In our read the docs project we have a use case where we need to show some specific docs on multiple pages in the same version of docs. As of now, we do this either by one of the following ways
* Copy-pasting the content to each page's `rst` file
* Write it in one of the concerned files with a... |
2018/03/07 | 904 | 3,365 | <issue_start>username_0: As Earlier Posted a thread for syncing Data from Premises Mysql to Azure SQL over [here](https://stackoverflow.com/questions/49132994/does-incremental-sync-with-azure-data-factory-v2-support-only-sql-server-to-azur/49142686#49142686) referring this [article](https://learn.microsoft.com/en-us/az... |
2018/03/07 | 16,459 | 53,742 | <issue_start>username_0: I have a list of pets:
[](https://i.stack.imgur.com/G7OdD.png)
And I need to find a correct owner for each of the pet from Owner table
[](https://i.stack.imgur.com/WfYZ6.png)
In order to correctly m... |
2018/03/07 | 603 | 1,481 | <issue_start>username_0: I have the following line:
```
for custom_field in $(jq -r '.issues[] | .fields.created' 1.json
); do
echo $custom_field
done
```
Output:
```
2018-03-06T21:24:41.000+0000
2018-03-06T22:48:47.000+0000
```
How to compare current datetime with each output and if it's older than 3 hou... |