date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/21 | 567 | 2,113 | <issue_start>username_0: I am new in the Android programming
I need to know How do I add two columns to a listview like this.
[](https://i.stack.imgur.com/uCeea.png)
What is called?
Do I need to modify the XML file only or will I need to modify the... |
2018/03/21 | 392 | 1,392 | <issue_start>username_0: I'm having a frustrating problem trying to toggle checkboxes in React.
When I check the box, the state updates, and the state, previous state, and checked display `true` when I `console.log` them, which is weird in itself. But the checkbox doesn't check.
**State**
```
this.state = {
... |
2018/03/21 | 400 | 1,571 | <issue_start>username_0: I have done all the steps to link my app with fb login. I have made my app live on Facebook Developers. Also I generated the developers key & release key and added it to fb developers site.
**Problem:**
When I log into my app using fb for the first time, it logs in successfully. But now if I ... |
2018/03/21 | 426 | 1,430 | <issue_start>username_0: I am using `laravel` 5.6. I want to create a project and add tasks of project. I write the following code for routing a file.
```
Route::resource('project/{pid}/tasks','TaskController');
```
If I write a static URL like `example.com/project/1/tasks` I am getting the task list of project 1. O... |
2018/03/21 | 747 | 2,505 | <issue_start>username_0: I have 3 tables 1) Users(userId, age) 2) Purchases (purchaseId, userId, itemId, date) 3) Items (itemId, price). Goal is to write a query to show average sum of purchase for each user grouped by month. I'm currently not sure if I even need the first table, so far I have smth like this:
```
SELE... |
2018/03/21 | 1,668 | 5,093 | <issue_start>username_0: This is my query ,
```
var id = [1,2];
var oparr = [{
"off": [{
id: 1,
val: "aaa"
},
{
id: 3,
val: "bbb"
}
]
},
{
"off1": [{
id: 2,
val: "cccc"
}]
}
];
```
from the above `oparr` array I need to find with `i... |
2018/03/21 | 3,710 | 12,019 | <issue_start>username_0: I have a trivial Maven project:
```
src
└── main
└── java
└── module-info.java
pom.xml
```
pom.xml:
```
org.example
example
1.0-SNAPSHOT
jar
example
org.apache.maven.plugins
maven-compiler-plugin
3.7.0
10
```
When I build the project via `mvn -X install -DskipTests=true`... |
2018/03/21 | 627 | 2,790 | <issue_start>username_0: When I upload file from Nexus 6 using amazon s3 SDK some time it throws me com.amazonaws.AmazonClientException: More data read (4567265) than expected (4561427) exception.
But when I upload image from Moto G4 plus with same code it will uploaded every time.
Please help me in solving this issu... |
2018/03/21 | 388 | 1,528 | <issue_start>username_0: I have been successfully using commonfinders to get a single element in flutter driver but when it comes to multiple elements which may have the same type, it always throws up an error. I understand this is by design. I would be grateful if someone could suggest a way to get multiple elements a... |
2018/03/21 | 578 | 2,657 | <issue_start>username_0: I have one question in my code I am using server and client session obj. like this
```
Session serverSession=HibernateUtilServer.getSession();
Session clientSession=HibernateUtilLocal.getSession();
```
// some database operation here ....
```
serverSession.beginTransaction().commit();
cli... |
2018/03/21 | 743 | 2,447 | <issue_start>username_0: ```
$document = new Document();
$document->title = $request['title'];
$document->description = $request['description'];
```
When i try to output the above code using `echo $document;` i get this result:
```
{"title":"asdfasdf","description":"asdfasdfsadf"}
```
What i want is to create my o... |
2018/03/21 | 753 | 3,226 | <issue_start>username_0: Recently, I am working on an application based on Pasteboard. I want to find out that copied text is not stored in pasteboard from the selected running application. Anyone have idea?<issue_comment>username_1: There's no API to retrieve the application responsible for putting data on the Pastebo... |
2018/03/21 | 1,844 | 7,312 | <issue_start>username_0: I have this line in some code I want to copy into my controller, but the compiler complains that
>
> The name 'Server' does not exist in the current context
>
>
>
```
var UploadPath = Server.MapPath("~/App_Data/uploads")
```
How can I achieve the equivalent in ASP.NET Core?<issue_commen... |
2018/03/21 | 1,141 | 4,291 | <issue_start>username_0: I am trying to get all the data from `firestore` - `collection` and `subcollection` into an `observable` form of `array` and display it with `async` pipe.
```
availableCategoriesCollection: AngularFirestoreCollection;
availableCategories$: Observable;
lstCategories: Observable;
this.available... |
2018/03/21 | 803 | 2,274 | <issue_start>username_0: I have created a calculator using `if` statement in `PHP` and I was able to get the output i needed.
I am stuck with switch case. I'm not getting the output I want.
This is my code:
```
Untitled Document
php
$num1 = "";
$num2 = "";
$calc = "";
if (isset($\_POST['submit']))
{
$num1 = $\_P... |
2018/03/21 | 359 | 1,320 | <issue_start>username_0: I have this demo site made by Wordpress having the [particles.js](https://vincentgarreau.com/particles.js/) script based slide in hero section. But the particles won't appear until I resize the window. After resizing the window particles appears correctly... Any way to fix this??
Thanks in adv... |
2018/03/21 | 498 | 1,561 | <issue_start>username_0: i'm trying to display a while loop depending on the parameters in my for loop.
for example, my for loop says to loop through 5 times, the data inside while loop should also be displayed 5 times. however, when i tested my code, the data inside while loop only displays once. i'm not sure if i did... |
2018/03/21 | 998 | 3,398 | <issue_start>username_0: ```
public ArrayList Numbers(int upper, int lower)
{
ArrayList primeNumbers = new ArrayList();
boolean decider;
for(int x = lower; x <= upper; x++)
{
decider = true;
for(int y = 2; y < upper; y ++)
{
if(x % y == 0)
decider = false;
}
if(decider == true)
primeNumbers.add(x);
}
... |
2018/03/21 | 2,614 | 8,720 | <issue_start>username_0: I have some custom order statuses (made with WooCommerce Order Status Manager). But when I use a custom paid status, the booking status is not updated to "paid". I've cobbled together some code from various references but it results in a fatal error. Or maybe I am missing something where custom... |
2018/03/21 | 849 | 3,075 | <issue_start>username_0: I am starting to learn about Vue.js. I would like to know how to pass the blade variables into Vue.js?
Like
```
return view('user.profile', ['locations' => $allLocations);
```
In which i can manipulate it through Vue.js?
Because I am planning on implementing a dynamic dropdown. Actual... |
2018/03/21 | 1,587 | 4,948 | <issue_start>username_0: I'm writing in C and have to return a char\*
I am trying to replicate the strcpy function. I have the following code
```
int main()
{
char tmp[100];
char* cpyString;
const char* cPtr = &tmp[0];
printf("Enter word:");
fflush(stdin);
scanf("%s", &tmp);
cpyString ... |
2018/03/21 | 1,488 | 5,661 | <issue_start>username_0: I am developing a library for video/photo processing (add filters like Instagram/Snapchat). So far the core features work very well.
However, I am finding the processing of a video (re-encoding an input video) to be hugely frustrating. There seem to be a number of edge cases and device specif... |
2018/03/21 | 414 | 1,592 | <issue_start>username_0: I have created new jenkins job, in which I want to execute a Jenkins file from a particular folder.
I have created one folder in my project named `pipelinescript`, in which I have placed my `Jenkinsfile`.
But when I am executing that job the file has not been detected.
In script path I hav... |
2018/03/21 | 812 | 2,861 | <issue_start>username_0: I was trying to make a binary tree with the help of `struct` as given below:
```
struct BinaryTree {
var value: Int
var left: BinaryTree
var right: BinaryTree
}
```
But I am getting error `error: value type 'BinaryTree' cannot have a stored property that recursively contains it`... |
2018/03/21 | 863 | 2,918 | <issue_start>username_0: I have done the dynamic inputs now my problem is getting the values of each inputs but its a multiple inputs? how can I achieve this. here is the jsfiddle.
```
perRow() {
return this.state.values.map((el,i) =>
|
**Total hours:** 0:00
**Total pay:** $0.00
Remove... |
2018/03/21 | 689 | 2,784 | <issue_start>username_0: I want to be able to display the ViewBag on view on button click event, this is my code:
```
[HttpPost]
public ActionResult SpecificWorkflowReport(Report2ListViewModel wf)
{
var getSpRecord = db.Mworkflow().ToList();
var getRecord = (from u in getSpRecord
select new Report2ListViewMod... |
2018/03/21 | 799 | 2,762 | <issue_start>username_0: I have been trying to develop screen mentioned below:
For that I have created below component:
```
import React, {Component} from 'react';
import {View, Text, StyleSheet, ImageBackground, Image} from 'react-native';
import Balance from './Balance.js'
class AccountHeader extends React.Compon... |
2018/03/21 | 628 | 1,867 | <issue_start>username_0: There's a whole bunch of answers to the similar questions here on Stack and in Google, but all of those seems irrelevant. I'm afraid that problem is in the question but still do need a solution nonetheless.
The code:
```
print(type(comment))
print(comment)
```
Results in:
```
\u041d\u0435... |
2018/03/21 | 947 | 3,624 | <issue_start>username_0: I am trying to execute a python function on AWS Lambda. In my function I am trying to import the mysql.connector module. But an error is throwing up :
>
> errorMessage": "No module named 'mysql.connector'"
>
>
>
I had written my python code initially in my EC2 Instance. I installed mysql-... |
2018/03/21 | 1,042 | 3,771 | <issue_start>username_0: I am currently stuck on trying to solve this issue I am having. I am trying to use egrep to find either 5 digit consecutive numbers or 9 digit consecutive numbers.
Right now I am getting only the 5 digit number that appears on one line and nothing else after that. I currently have...
```
egr... |
2018/03/21 | 611 | 2,232 | <issue_start>username_0: I have this backup code that I want to execute monthly, I am familiar with using the job or maintenance plan in sql server management studio but I would like to code it instead of using the sql server job or maintenance plan.
.aspx
```
```
aspx.cs
```
protected void Button111_Click(objec... |
2018/03/21 | 1,683 | 5,290 | <issue_start>username_0: This code works
```
max_elem :: (Ord a) => [a] -> a
max_elem [x] = x
max_elem [] = error "No elements"
max_elem (x:xs)
|x > max_elem xs = x
|otherwise = max_elem xs
```
I want to have it so it returns Nothing if their are no elements and Just x for the maximum element
I tried t... |
2018/03/21 | 508 | 2,343 | <issue_start>username_0: I was trying to search the following case using BoolQueryBuilder in elasticsearch
```
select * from students where (name = "XXX" and rollno = 1) or (name = "YYY" and rollno = 2)
```
I have to build query builder for it.
Can anyone suggest me the BoolQueryBuilder to build the query.
Elasti... |
2018/03/21 | 650 | 2,689 | <issue_start>username_0: for example:
i have many documents like this:
```
email status
<EMAIL> open
<EMAIL> click
<EMAIL> open
<EMAIL> open
```
i will query all documents with unique status value :"open", due to the record "<EMAIL>" contains "click" status, so "<EMAIL>" don't expect!
i tried this below,but not... |
2018/03/21 | 685 | 2,465 | <issue_start>username_0: My salesforce res apis were working fine until. When suddenly I started getting authentication errors. **retry your request.**
**Salesforce.Common.AuthenticationClient.d\_\_1.MoveNext()**.
salesforce informed that it would use from now TLS .1.2. How can I enforce my asp.net core 2.0 to use TLS... |
2018/03/21 | 513 | 1,842 | <issue_start>username_0: HTML code
```
threshold is required.
threshold value should be number.
maximum three digits.
```
ts code
```
this.editThreshold = new FormGroup({
threshold: new FormControl('', [Validators.required, Validators.pattern(/[0-9]/),Validators.maxLength(3)]),
});
```
I want to restrict p... |
2018/03/21 | 1,239 | 4,121 | <issue_start>username_0: I've been working on a program for my Computer Programming class and I'm having a little trouble. Truthfully, I'm on the verge of insanity...
Its a calendar program and the part I'm having trouble with is the Calendar object in java. Here is my code for one of methods:
```
public static void ... |
2018/03/21 | 683 | 2,187 | <issue_start>username_0: what I wanted is to add another condition using case statement or something.
I tried:
```
SELECT * FROM tblcust
WHERE cust_id = :p_cust_id
CASE WHEN :p_first_name IS NOT NULL THEN
AND first_name = :p_first_name
WHEN :p_last_name IS NOT NULL THEN
AND last_name = :p_last_... |
2018/03/21 | 1,112 | 3,040 | <issue_start>username_0: I got the following XML:
```
xml version="1.0" encoding="UTF-8"?
782
true
1.0
true
thr6UhEw5bER6Cjt8uKOCg
Briefpapier
false
thr6UhEw5bER6Cjt8uRUiA
Briefpapier
false
true
thr6UhEw5bER6Cjt8uSxgA
Blanco
false
thr6UhEw5bER6Cjt8uSCCg
Blanco
false
thr6UhEw5bER6Cjt8uKOCg... |
2018/03/21 | 401 | 1,440 | <issue_start>username_0: I have a situation like there will be one hidden div
```
```
I have hidden the div using hide() function using jquery
```
$('#div_id').hide();
```
Now my problem is how can I add values to above input field and display the values when I show the div.
```
$(document).ready(function(... |
2018/03/21 | 370 | 1,344 | <issue_start>username_0: [](https://i.stack.imgur.com/5eLrF.png)
I was looking for framework which provides left sidemenu that is open either by clicking left arrow button or by swiping in right direction and once swiping begun homeview gets blurred(using gaussian blur effect) a... |
2018/03/21 | 1,196 | 3,772 | <issue_start>username_0: How can I read the following JSON structure to spark dataframe using PySpark?
My JSON structure
```
{"results":[{"a":1,"b":2,"c":"name"},{"a":2,"b":5,"c":"foo"}]}
```
I have tried with :
```
df = spark.read.json('simple.json');
```
I want the output a,b,c as columns and values as respect... |
2018/03/21 | 782 | 2,821 | <issue_start>username_0: In my application,the home page fetches the Json response from my rest API.Then I add the products into the cart array.Initially,my store values are..
```
const DEFAULT_STATE_TRENDING = {
data:{},
specialoffdata:[],
banner:[],
offerstitle:[],
cart:[],
cartcount:0,
isFetching:false,
dataFetched... |
2018/03/21 | 613 | 2,360 | <issue_start>username_0: I want to make a `POST` on button click by adding an event listener to it, but with ajax I can make the call but I do not have any data or success, error criteria for the same.
one way I found was using form submit event, but I guess it is not the right way to do it, I should be making a POST ... |
2018/03/21 | 524 | 1,532 | <issue_start>username_0: The below code is to populate a drop down select option with json data provided. BUt it is not populating.
**this is not populating a dropdrop with json data in the fucntion**
```
var app = angular.module('myApp', []);
app.controller('myCtrl', function($scope) {
$scope.values ={
names :["... |
2018/03/21 | 878 | 2,651 | <issue_start>username_0: This is a sample markup
```
| Group Name | Object Name |
| --- | --- |
| Animal | Snake |
| Animal | Dog |
| Place | Antarctica |
| Fruit | Mango |
```
**Need to do:**
Find the number of times each class is used for a particular "Group Name". For example:
>
> Animal : {c1 = 1, c2 = 1, c3... |
2018/03/21 | 2,257 | 7,335 | <issue_start>username_0: I have function where i can save new specification to my database while I'm creating products, It is working just fine but it has one issue:
>
> It has to refresh my page, while i filled my product data some of
> them will be lost during this refresh.
>
>
>
So I thought it would be bette... |
2018/03/21 | 513 | 1,158 | <issue_start>username_0: Initial matrix is `A = [ [1 2 3; 4 5 6; 7 8 9]`. Every row is to be replicated 3 times such that the output matrix is
```
B = [1 2 3;1 2 3;1 2 3;4 5 6; 4 5 6; 4 5 6; 7 8 9; 7 8 9; 7 8 9]
B = replicate(permute(A,[3 2 1]),3,1)
```<issue_comment>username_1: you mean like that?
```
kron(A,ones(... |
2018/03/21 | 426 | 1,137 | <issue_start>username_0: I am making a website which has a forum where people can fill up data and also upload their images (5mb at max). I want to know that where should these images should be stored (like on the server or some cloud)<issue_comment>username_1: you mean like that?
```
kron(A,ones(3,1))
```
ans =
``... |
2018/03/21 | 1,155 | 2,650 | <issue_start>username_0: I want to set box shadow inside a box or div but only at right and left sides.
I want something like this below. Please help me.
[](https://i.stack.imgur.com/fbF20.jpg)<issue_comment>username_1: You can create one inner div an... |
2018/03/21 | 300 | 964 | <issue_start>username_0: I have tried the demo of shimmer `FrameLayout` but it goes very fast and I want to slow down the speed of this effect. How to slow down the speed of `shimmer` effect and how to use the properties of this library?<issue_comment>username_1: Try defining `app:shimmer_duration` in XML.
e.g. `app:s... |
2018/03/21 | 579 | 2,181 | <issue_start>username_0: ### Hi! Could you please explain why the function runs twice in console?
```
def changeList(myList1):
myList2 = myList1.append(4)
print(myList2)
return
myList1 = [1,2,3]
changeList(myList1)
print (myList1)
```
The result in console:
```
None
[1, 2, 3, 4]
```
Does it mean func... |
2018/03/21 | 495 | 2,004 | <issue_start>username_0: I have two tables(models), one with a json column that may contain the id on other table. I want to join these two together, how do i chain a laravel join to my query.<issue_comment>username_1: Because in the function definition of `changeList`, there is a print statement, and then another prin... |
2018/03/21 | 659 | 2,481 | <issue_start>username_0: >
> Error :
> Blockquote
> it says "Argument labels '(String:)' do not match any available overloads"
>
>
>
```
class SocketIOManager: NSObject {
static let sharedInstance = SocketIOManager()
let socket = SocketIOClient(manager: URL(String:"http://localhost:8080") as! URL, nsp: ... |
2018/03/21 | 714 | 2,647 | <issue_start>username_0: I am using Spring Rest Controller in my Web project which is running in Tomcat 8
My json request is-
```
{
"type": "Criteria",
"fTypeOne": "DataSource",
}
```
and my model class is
```
public class FormulaModel implements Serializable{
private String fTypeOne;
private String... |
2018/03/21 | 466 | 1,886 | <issue_start>username_0: How to upload images using angular 5 and node js?<issue_comment>username_1: Because in the function definition of `changeList`, there is a print statement, and then another print statement after calling `changeList`. The function is only running once actually, but you simply have two separate p... |
2018/03/21 | 760 | 1,983 | <issue_start>username_0: I have to sort a string array based on the number.
**Example**
```
["1.READ","10.CREATE","3.sfg","2.dfd","12.dqwe"];
```
**Desired Result**
```
["1.READ","2.dfd","3.sfg","10.CREATE","12.dqwe"];
```
**My Code**
```
var arr = ["1.READ","10.CREATE","3.sfg","2.dfd","12.dqwe"];
var arr2 =... |
2018/03/21 | 2,776 | 11,751 | <issue_start>username_0: I'm using **[PHP SQL PARSER](https://code.google.com/archive/p/php-sql-parser/)**
my Code
```
php
require_once dirname(__FILE__) . '/../src/PHPSQLParser.php';
$sql = 'SELECT Orders.OrderID, Customers.CustomerName, Orders.OrderDate
FROM Orders
LEFT JOIN Customers ON Orders.C... |
2018/03/21 | 557 | 1,279 | <issue_start>username_0: I am trying to use groups while using `re.sub`. The below works fine.
```
dt1 = "2026-12-02"
pattern = re.compile(r'(?P\d{4})-(?P\d{1,2})-(?P\d{1,2})')
m = pattern.match(dt1)
print(m.group('year'))
print(m.group('month'))
print(m.group('day'))
repl = '\\3-\\2-\\1'
print(re.sub(pattern, repl, d... |
2018/03/21 | 515 | 1,849 | <issue_start>username_0: Suddenly, can't build my React Native Apps on Android. **I have never changed Android side but this error occurs while building.**
react-native: "^0.52.0",
react-native-google-signin: "git+<https://github.com/invertase/react-native-google-signin.git#v0.12.1>",
```
:react-native-google-signin... |
2018/03/21 | 617 | 1,981 | <issue_start>username_0: I want to show my business tagline in "monotype corsiva" font it is not available on Google font so any body can please help me out for it .<issue_comment>username_1: First you have to locate the otf/ttf/woff font file on your local machine.
Then, put this into the css file.
```
@font-face {
... |
2018/03/21 | 683 | 2,153 | <issue_start>username_0: Is there a way to check two file exists in same folder like *music1.mp3* and *music2.mp3* in folder *Testapp*?
This my code check one file:
```
File f = new File(Environment.getExternalStorageDirectory()+"/Testapp/music1.mp3");
if(f.exists()) {
/* do something */
} else {
/* do som... |
2018/03/21 | 501 | 1,600 | <issue_start>username_0: Okay so I've usually had **.box-4** as the last element inside of **.s1** as shown below:
```
```
and had **.box-1** move before **.box-4** using the JavaScript:
```
var box1 = document.querySelector('.box-1');
var s1 = box1.parentNode;
s1.insertBefore(box1, s1.lastElementChild);
```
to ... |
2018/03/21 | 422 | 1,295 | <issue_start>username_0: In the function shown below, there is no `return`. However, after executing it, I can confirm that the value entered `d` normally.
There is no `return`. Any suggestions in this regard will be appreciated.
**Code**
```
#installed plotly, dplyr
accumulate_by <- function(dat, var) {
var <- la... |
2018/03/21 | 541 | 1,986 | <issue_start>username_0: Without bothering you with what I intend to do, could someone kindly point out where I can get the default DataGridComboBoxColumn ControlTemplate. I am sure there must be a Control Template or some kind of style that targets a DataGridComboBoxColumn, otherwise how did Microsoft build the DataGr... |
2018/03/21 | 770 | 2,430 | <issue_start>username_0: I've been trying my best to center a div that contains a form `.form-group` inside another div `#myCarousel`, responsively both vertically and horizontally. (works across different device widths)
I've tried `absolute` positioning with pixels, percentage - but that didn't work. I tried making t... |
2018/03/21 | 1,928 | 5,981 | <issue_start>username_0: So as the title shows, I've got a function that uses a temporary array, and I want to write a value into it from another array, and then multiply the two value with itself.
Example:
```
float[] a = {0, 0}
a[0] *= a[0] = b[n ];
a[1] *= a[1] = b[n + 1];
```
I would expect the above would ... |
2018/03/21 | 648 | 2,108 | <issue_start>username_0: Thank you for viewing.
I am an engineer in Japan.
I am glad that you can understand that you are not very good at English.
Well, it is the main subject.
programming language is PHP.
I am trying to obtain account information by using HUOBI's API.
<https://github.com/huobiapi/REST-API-demos/tr... |
2018/03/21 | 786 | 2,005 | <issue_start>username_0: I have a .NET Core 2 class library im trying to create an artifact for in VSTS (for NuGet publish, but that's next..)
My "Publish Build Artifacts" task can't find the folder i've published via `dotnet publish`.
`dotnet publish` output:
```
2018-03-21T06:11:41.2709655Z [command]"C:\Program Fi... |
2018/03/21 | 372 | 1,364 | <issue_start>username_0: How can I pass a java variable to a tag and make it downloadable ? I have tried the below code. But unfortunately it opens the file, rather than downloading it.
```
out.println("[" + fileName + " download]( + path + )" + "
");
```
Please follow the full code,
```
while (rs.next()) {
... |
2018/03/21 | 1,113 | 4,183 | <issue_start>username_0: [](https://i.stack.imgur.com/GJcus.png)[](https://i.stack.imgur.com/gT5Kw.png)[](https://i.... |
2018/03/21 | 1,367 | 3,686 | <issue_start>username_0: Given a list of dictionaries:
```
players= [
{ "name": 'matt', 'school': 'WSU', 'homestate': 'CT', 'position': 'RB' },
{ "name": 'jack', 'school': 'ASU', 'homestate': 'AL', 'position': 'QB' },
{ "name": 'john', 'school': 'WSU', 'homestate': 'MD', 'position': 'LB' },
{ "name": 'kevi... |
2018/03/21 | 2,967 | 10,927 | <issue_start>username_0: Previously asked similar question but somehow I'm not finding my way out, attempting again with another example.
The code as a starting point (a bit trimmed) is available at <https://ideone.com/zkQcIU>.
(it has some issue recognizing `Microsoft.FSharp.Core.Result` type, not sure why)
Essen... |
2018/03/21 | 2,516 | 7,781 | <issue_start>username_0: In my code I am trying to detect whether a key for example 'A' is pressed alone or is pressed with combination. I have different if statements for each. But when I press them together something weird happens. I think the problem is related to `Input.Getkey` and when I try to use `Input.GeyKeyDo... |
2018/03/21 | 602 | 2,075 | <issue_start>username_0: I am editing the file, here i can change the filename as well as i can add another file for versions, If I have chosen the file, filename edit field should be disabled immediately. I have tried this following code, but its not get disabled until i type something in filename field.
My View code... |
2018/03/21 | 558 | 1,946 | <issue_start>username_0: I gave a requirement involving SMS and AWS platform, the requirement is - users can send SMS to a mobile number and I need to store the SMS and it's metadata into AWS RDS or DynamoDB or any AWS compatible storage. These SMS will be used to populate a realtime dashboard.
Anyone here came across... |
2018/03/21 | 883 | 3,109 | <issue_start>username_0: My current configuration in gradle file is
```
sourceCompatibility = 1.7
targetCompatibility = 1.7
```
this specification make my project specific to java 1.7.
**My requirement is that i should be able to build my project for different java version like for both java 1.7 and java 1.8**
PS... |
2018/03/21 | 1,044 | 3,455 | <issue_start>username_0: I am reading Excel sheet using Apache POI and writing it to a PDF using iText library.This has been achieved successfully but I am getting default black border for every cell that I write to PDF. So I need to get the cell border color using Apache POI which can be achieved using CellStyle class... |
2018/03/21 | 252 | 833 | <issue_start>username_0: I have a working base. How can I remove the attribute of uniqueness for one of the fields?
`connectId : {type : String, index: true, unique: true},`
I need to remove `unique: true`
`connectId : {type : String, index: true},`
[
List[Int] = List(30,50)
Result: List[Int] = List(30)
```<issue_comment>username_1: **And condition (nested ... |
2018/03/21 | 687 | 2,452 | <issue_start>username_0: I am creating employee management software in python in flask environement by referring this code
<https://github.com/littlewonder/squadmaster>
i have installed pip , flask an other relevant libraries .i have also created virtal environment .I put the project folder inside the flask as well ... |
2018/03/21 | 1,441 | 5,533 | <issue_start>username_0: I am a fairly new programmer in Java and am currently learning about how to incorporate multiple methods in one code. The goal of this practice activity is to use several different methods to:
-Create two arrays (one for employee names and another for how much that employee sold)
-Find the av... |
2018/03/21 | 425 | 1,305 | <issue_start>username_0: I have created a login page but its not responsive and for achieving that I have messed up my entire design.
```
.box
{
position: center;
top: 17;
left: 17;
}
.logo
{
position: absolute;
top:50px;
left: 100px;
border-right: 2px solid gray;
}
ADMIN PANEL LOGIN
-----------------... |
2018/03/21 | 1,365 | 4,507 | <issue_start>username_0: I want to print Hello World `n**n` times without calculating the value of `n**n` in python.
eg,
if n is 2, it should print `'Hello World'` 4 times.
if n is 3 it should print `'Hello World'` 27 times and so on.
I am allowed to use loops and recursion but now allowed to use any inbuilt funct... |
2018/03/21 | 1,230 | 4,641 | <issue_start>username_0: I wrote a script to backup the first argument that the user input with the script:
```
#!/bin/bash
file=$1/$(date +"_%Y-%m-%d").tar.gz
if [ $1 -eq 0 ]
then
echo "We need first argument to backup"
else
if [ ! -e "$file" ]; then
tar -zcvf $1/$(date +"_%Y-%m-%d").tar.gz $1
els... |
2018/03/21 | 392 | 1,572 | <issue_start>username_0: Is there a good way to receive information when customer makes an **order**?
Judging from the documentation, there isn't. I know there are some apps related to managing payments on Etsy, and I believe they would depend on order feed.
If Etsy does not provide such feed, how would you solve thi... |
2018/03/21 | 552 | 2,215 | <issue_start>username_0: I am currently using batch files to run a set of simulations. Each line in the batch file reads:
```
"filepath\program.exe" "filepath\simulation.file"
```
The quotation marks exist to bound any spaces that exist within the file paths. Without any spaces in the file paths, the quotation marks... |
2018/03/21 | 453 | 1,634 | <issue_start>username_0: `Statement.excecuteQuery()` is taking too much time, no matter what the query is.
```
athenaQuery = "SELECT DISTINCT date " +
"FROM sid.lvmh_shareofshelf_new_cat_all_dod "+
"where scope='PCD' and date!='' and country='" + countryName+ "' " +
"and rnam... |
2018/03/21 | 585 | 2,079 | <issue_start>username_0: I want to search for a specific record in database and show it on html page. I have inserted a search bar with a search button. I want to enter let's say Student Name and view the record of that student in an html table. But it's not working, It shows nothing in the table. Here is the code for ... |
2018/03/21 | 1,424 | 4,787 | <issue_start>username_0: Here is an [discussion on stackoverflow](https://stackoverflow.com/questions/332030/when-should-static-cast-dynamic-cast-const-cast-and-reinterpret-cast-be-used/332086#332086) of the four kinds of explicitly cast. But I've come across a question in the most-voted answer.
Quoted from the most-v... |
2018/03/21 | 377 | 1,318 | <issue_start>username_0: What's the best library for laravel to use when it comes to exporting data to an excel file ? something that uses a template would be much better.<issue_comment>username_1: [Laravel Excel](https://laravel-excel.maatwebsite.nl/docs/3.0/getting-started/installation) if you need to add dropdown in... |
2018/03/21 | 624 | 1,821 | <issue_start>username_0: I have a data file as below
```
TOTALUNITS TOTALRECEIPTS
55529 12806357
45472 6813097
19605 4217647
19202 2105760
17114 2568849
16053 1577361
1506 657607
```
I need to write a measure to calculate the average of TOTALUNITS. The measure should give ... |
2018/03/21 | 1,837 | 5,459 | <issue_start>username_0: I am working on a simple query where I've to show data from two tables. The condition is if the alloment table has data and the leave details has no data, then it should show data from the allotment table only. In my case, when both the tables have data, it shows up the data. Tried with this bu... |
2018/03/21 | 318 | 1,262 | <issue_start>username_0: Im using Symfony 4. I want to use Router and mailer in my services. I am including them using Dependency injection.
```
public function __construct(Swift_Mailer $mailer, EngineInterface $templating, RouterInterface $router)
{
$this->mailer = $mailer;
$this->router = $router;
$this-... |
2018/03/21 | 292 | 967 | <issue_start>username_0: ```
result = connect.query("SELECT * FROM data WHERE event_type = 'ALARM_OPENED' AND severity = '2'")
equipments = result.map { |print_this| [print_this['sourcetime'], print_this['description']] }
p equipments
```
The Datatype for `sourcetime` in MySQL workbench is set to TIME
The result I g... |
2018/03/21 | 1,263 | 5,040 | <issue_start>username_0: I am working on BLE project where hardware records the audio data & sending to the iOS application. I writting a logic to convert mp3/wav file from data.
Here, I written mp3 file conversion logic from Data like below:
```
func storeMusicFile(data: Data) {
let fileName = "Record-1"
... |
2018/03/21 | 889 | 2,987 | <issue_start>username_0: When a user clicks on a link. I am trying to find the closest span value by class and then get that classes text. Currently it is just returning empty text:
Here is the HTML:
```
DOUBLE DATA
$ 85 per month
Min. Total Cost is $2,040 over 24 months.
28GB TOTAL DATA
Includes 14GB + 1... |
2018/03/21 | 880 | 3,140 | <issue_start>username_0: I am getting an error " Element is not reachable by keyboard" Can you guys please help me in it. I just want to attach the PDF file but as the cusror goes on it i am unable to find click on it nor upload file on it.
Code is:-
```
WebElement uploadElement = driver.findElement(By.xpath("//*[@id... |
2018/03/21 | 1,869 | 5,378 | <issue_start>username_0: I am trying to implement fuzzy logic for classifying the weather into different climatic zone. I am getting this Null exception when I call fuzzy\_inference() function of sets package in RStudio. The following is my code defining sets and fuzzy rules.
```
sets_options("universe", seq(1, 200, 0... |