date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/13 | 996 | 3,378 | <issue_start>username_0: I am trying to create list of lists, where the large list represent paper contain collection of small list represent question, list of question consist of question string and its ID.
here my code:
```
public class Genes
{
public string question { get; set; }
public int CLO { get; set; ... |
2018/03/13 | 1,568 | 4,886 | <issue_start>username_0: I have ussue when Sending Keys to some field
```
driver.findElement(By.xpath("//*[@id=\"login-main\"]/a")).click();
Thread.sleep(1000);
driver.findElement(By.xpath("/html/body/div[2]/ion-nav-view/ion-view/login-popup/ion-pane/ion-content/div/form/label[2]/input")).sendKeys("<PASSWORD>");
```... |
2018/03/13 | 1,520 | 5,278 | <issue_start>username_0: i want to set the zoom size in the excel to 75% programmatic before it gets downloaded. The default value is set to 100% by default. Can any one help me out to solve this?
I use the below code to get the data from reports and store it in a byte array
```
bytes = rptViewer.ServerReport.Rende... |
2018/03/13 | 1,071 | 3,281 | <issue_start>username_0: I am new to Clojure. My question is that how to get a intersection of two hash-maps, e.g.
```
(def map-1 {"a" 2, "b" 1, "c" 4, "d" 3})
(def map-2 {"a" 3, "b" 6, "e" 5})
```
As we defined two maps, the expected result would be `{"a" 3, "b" 6}`, it is in a map with intersected keys and the max... |
2018/03/13 | 583 | 1,958 | <issue_start>username_0: In android in json i receive date string as "2018-03-13 19:00:00".
and i want to convert as "12-03-2018 07:00 PM".
So i have implemented few line of code.
```
public static String getCustomDateScoreboard(String dateTimeStr) {
Date date = null;
String formattedTime = "";
try {... |
2018/03/13 | 535 | 2,038 | <issue_start>username_0: I'm trying to get into retail demo mode on nexus 5x, Android Oreo.
I've read this article:
<https://source.android.com/devices/tech/display/retail-mode>
It seems like it just should be on the bottom of the list of the language suggestions, after factory reset - which it doesn't.
After looking... |
2018/03/13 | 427 | 1,350 | <issue_start>username_0: ["{\"contributors\": null, \"truncated\": false, \"text\": \"RT @itisprashanth: All petitions regarding #jallikattu to be heard by Supreme Court tomorrow. Tomorrow will be the D-Day for all the Youth\u2026\"}"]<issue_comment>username_1: use the **json** module to convert string to json object.
... |
2018/03/13 | 700 | 2,102 | <issue_start>username_0: I have 2 array as shown below:
`arr1 = [a,b,c,a,c,b,a]`
`arr2 = [b,b,a,a,a,b,c]`
I am checking the number of occurrence of each item in both arrays are same
for e.g. `a` is count in `arr1` and `arr2` is 3. like wise want to check for rest of the items if it is same the `continue` or `break` ... |
2018/03/13 | 1,180 | 3,633 | <issue_start>username_0: i'm trying to add the category in dB by using following code but it shows an error like "SQLSTATE[42S02]: Base table or view not found: 1146 Table 'mydb.categories' doesn't exist (SQL: insert into `categories` (`category_name`, `updated_at`, `created_at`) values (Fashion, 2018-03-13 09:44:38, 2... |
2018/03/13 | 256 | 1,044 | <issue_start>username_0: I have a question with Firebase, I'm new to this. I would like to return the user's name when I login, but that name is in Database and I would like to return only the name, of course, coinciding with the email found in the authentication, which is also in the Database. The idea I have is to co... |
2018/03/13 | 562 | 1,988 | <issue_start>username_0: I have created a Registration form. I want to show a message like "you can't book this" when someone tries to insert a date , show time(st) and seat number(item) which are already in the database. And if that data not in the database , he can insert it. Then I created a function called seatsins... |
2018/03/13 | 333 | 1,135 | <issue_start>username_0: I want to get the yesterday date but as abbervation like `MON` `FRI` `THU`...
etc... below code will retrun the yesterday date as digits
anyway to get the abbreviation from it ?
or is there any other simple way to do it with out form loop .\
NOTE
`powershell` way wont work because my busi... |
2018/03/13 | 559 | 2,219 | <issue_start>username_0: We are currently investigating, why our cluster isnt load balancing to nodes with lower cpu/ram consumption.
After fixing, that the 2 Metrics "servicefabric:/\_MemoryInMB” and “servicefabric:/\_CpuCores" were not showing up,
([ServiceFabric: Missing default metrics "servicefabric:/\_MemoryInM... |
2018/03/13 | 758 | 2,685 | <issue_start>username_0: I am using angular-material select to create a drop-down where I have provided options to select multiple values.
```
Select Events
{{program.eventName}}
Select Skills
{{skill.lookupValue}}
Select Interests
{{interest.lookupValue}}
```
This the HTML part.
I have used Select Even... |
2018/03/13 | 452 | 2,085 | <issue_start>username_0: I've got an ImageSpan and ClickableSpan in my checkbox to display icon at the end of checkbox text and handle clicking on it. But clicking on it changes checkbox checked state, which is not needed.
How can I prevent changing checkbox state when user clicks on ClickableSpan?
Simply I need some... |
2018/03/13 | 541 | 2,327 | <issue_start>username_0: I created a step form using javascript and php. The form has three steps. Step1 has two buttons `B1` and `Next`, step2 also has two buttons `B2` and `Next`, finally step3 has two buttons - `B3` and `Submit`. Now I want to add validation to the form using javascript (JQuery), so as to make sure ... |
2018/03/13 | 974 | 2,830 | <issue_start>username_0: Could someone tell me why this query is not working.
```
SELECT msg.message,
users.fname,
users.id
FROM msg
WHERE (
msg.f_init_id='1'
AND msg.f_recv_id='2')
OR (
msg.f_init_id='2'
AND msg.f_recv_id='1')
JOIN msg.f... |
2018/03/13 | 718 | 2,078 | <issue_start>username_0: How can I get the raw string of a key value?
```
dictionary = {'key': ['value']}
print(dictionary.get('key'))
>>> ['value']
```
How can I get `'value'` and not `['value']`?<issue_comment>username_1: Check out execution by changing your query as:
```
SELECT `msg`.`message`,`Users`.`fname`,`... |
2018/03/13 | 1,001 | 3,218 | <issue_start>username_0: I try to query entities in datastore with GeoProperty, but the strange thing is it will compare GeoProperty's first argument, lat.
If lat is compared, then it will directly return the result. The only exception is latitude is equal, then the longitude is then compared.
For example, GeoPt(11, 10... |
2018/03/13 | 894 | 3,159 | <issue_start>username_0: I would like to check the value from a concrete response header ("Location") as Test Results in Postman.
In the Postman's documentation I found examples of how to check the existance of headers with
```
pm.test("Content-Type is present", function () {
pm.response.to.have.header("Content-Typ... |
2018/03/13 | 1,146 | 4,060 | <issue_start>username_0: I have the following code which takes a csv file and splits it based on a column value.
It works but it leaves an empty/new line at the bottom/last line. I've tried tweaking it a few times to remove the empty line with no joy. Would you mind having a look to see what I've missed?
```
$date = ... |
2018/03/13 | 511 | 1,642 | <issue_start>username_0: I am new to multi-threading and I am going to pass a list in thread.
I hope a thread can add a string and the other will remove a string.
I am confused how to pass the list.
here is part of my code and it got Segmentation fault (core dumped)
```
struct BOOK {
list bookName;
};
class it... |
2018/03/13 | 839 | 2,787 | <issue_start>username_0: I used the latest apache poi
```
org.apache.poi
poi-ooxml
3.17
```
but I cannot set bold font, below code does not work
```
font.setBold(true);
```
because the default it true
```
set a boolean value for the boldness to use. If omitted, the default value is true.
```
and does no... |
2018/03/13 | 629 | 2,474 | <issue_start>username_0: In order to have a better overview of what happens in our CRM (ActiveCampaign) and to create our own reports, I now post all changes to a BigQuery database using webhooks and a Google Apps Script.
This works very well, however I found out there is a limit of 1000 load jobs, and every change i... |
2018/03/13 | 505 | 1,961 | <issue_start>username_0: Is it possible to change `TextInputLayout` error BACKGROUND color, not the text one from transparent to red for example?<issue_comment>username_1: You can use you Google Apps Script to create a web service (web app) that will receive the request and then perform your batch operation.
Simply ha... |
2018/03/13 | 863 | 2,548 | <issue_start>username_0: I want to add a background under a button when hovering over it. I would like to make use of the :after pseudo selector in order to avoid including more markup.
```css
button {
position: relative;
z-index: 1;
padding: 1rem 2rem;
background: blue;
color: white;
border: none;
... |
2018/03/13 | 758 | 3,082 | <issue_start>username_0: ```
xml version="1.0" encoding="utf-8"?
```
I want to make a small part of image in Imageview(myImage) clickable after getting coordinates. Its working fine for me.
Now I want to get the functionality of pinch zoom on this image. As I zoom in, clickable area along with the image will also zoo... |
2018/03/13 | 643 | 2,645 | <issue_start>username_0: I am working with Notification. But the method `setLargeIcon(Bitmap)` did not work. This is my code snippet:
```
NotificationManager notificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);
NotificationCompat.Builder notificationCompatBuilder = new NotificationCompat... |
2018/03/13 | 944 | 3,416 | <issue_start>username_0: How can I filter a list using java8 streams and return the found element if it is the only element in the filtered list, otherwise(if there are more which meet the condition, or there is no result that meets the condition) return for example an `Optional.empty()`
I would need something like th... |
2018/03/13 | 678 | 2,423 | <issue_start>username_0: how to make the telegram's sound notification like an alarm, so that whenever there is a new post in the channel the phone keeps beeping like an alarm.
One possible solution on the iOS would be to forward messages from the channel (that's not mine, but I am a member) to my phone via SMS, as yo... |
2018/03/13 | 1,108 | 3,398 | <issue_start>username_0: When following redirects for a 303 response, in a Chrome, IE, and Firefox, the `Authorization` header is included.
That's an issue when a request to an internal service respond with a signed S3 URL in the `Location` header.
S3 will respond with a 400 response, and can't figure out which a... |
2018/03/13 | 654 | 2,180 | <issue_start>username_0: I'm trying to figure out the time complexity for this whole algorithm. Isit O(nlogn) or O(n)? I've been searching online and some says max heap it's O(nlogn) and some are O(n). I am trying to get the time complexity O(n).
```
def max_heapify(A, i):
left = 2 * i + 1
right = 2 * i + 2
... |
2018/03/13 | 689 | 2,489 | <issue_start>username_0: I want to pass a coming form a select list from ajax to my symfony code but the ajax script return error message.
Twig file:
```
function changeStatus(sel){
var status_id = sel.value;
$.ajax({
type: "POST",
url: '{{ path('report_leads_change_status') }}',
dat... |
2018/03/13 | 810 | 3,209 | <issue_start>username_0: [Official Ref](https://kotlinlang.org/docs/reference/visibility-modifiers.html) says the default Visibility Modifier is public.
But from [koan data classes](https://try.kotlinlang.org/#/Kotlin%20Koans/Introduction/Data%20classes/Task.kt) it can be inferred that it is private.
Is it a contrad... |
2018/03/13 | 416 | 1,706 | <issue_start>username_0: I have a `struct` :
```
public struct MyStruct {
public var myInt: Int = 0
...
}
```
I have a extension of `MyStruct`:
```
extension MyStruct {
public func updateValue(newValue: Int) {
// ERROR: Cannot assigned to property: 'self' is immutable
self.MyInt = newValue
}
}
`... |
2018/03/13 | 579 | 2,154 | <issue_start>username_0: I have the following dataset:
```
print(df)
Date Product_Code Quantity_ordered
01/01/18 01 6
02/01/18 04 3
03/01/18 01 4
...
```
I would like to create an additional column "Order",using Pandas that, for **ea... |
2018/03/13 | 429 | 1,779 | <issue_start>username_0: I am trying to write a regex, which would return false in PHP in case that string contains backslash and doesn't continue with 3 digits.
For example:
```
something\something -> false
\ -> false
something\ -> false
something\45something -> false
something\222aa\... |
2018/03/13 | 394 | 1,496 | <issue_start>username_0: I'm trying to bind jQuery UI functionality on my elements after the are generated by ngFor. Therefore what I'm looking for is an event or something that I can use in my component, which provides a reference to the new element that's created.
Something like that:
sample.component.html
```
![... |
2018/03/13 | 1,477 | 4,417 | <issue_start>username_0: Imagine somebody had a mission and the organization is supposed to pay the cost of his meals during the mission but not before of after of that, for instance if he starts the mission after 8 a.m he won't be paid anything.
it will be the same if he finishes the mission after 9 p.m which is not g... |
2018/03/13 | 1,310 | 4,031 | <issue_start>username_0: I have a text box with submit button . I shall retrieve a number from the text box. I have to take this number and respond with a url in the format of url/number this way - like this it opens the website.But the code is not working.Please help.
```
Numbers Ajax
function loadDoc() {
var nu... |
2018/03/13 | 1,653 | 6,314 | <issue_start>username_0: I had seen a lot of people asking how to make iframe 100% height. That can be easily archived using some CSS. It will make the iframe display 100% as relative to the device screen. But how to make iframe 100% height according to its content?
Here's my current code to make 100% iframe according... |
2018/03/13 | 1,587 | 5,898 | <issue_start>username_0: Hi i want to select data that are below of the found cell `MEASURED VALUE` but i'm getting runtime error and don't know why.
```
Sub Macro1()
Dim ws As Worksheet
Dim i As Range
Dim j As Range
Set ws = Worksheets("bank")
Set i = ws.Range("A1").CurrentRegion.Find(What:="MEASURED VALUE", Look... |
2018/03/13 | 2,278 | 8,643 | <issue_start>username_0: Consider the following classes:
```
public class A {
public B GetB() {
Console.WriteLine("GetB");
return new B();
}
}
public class B {
[System.Diagnostics.Conditional("DEBUG")]
public void Hello() {
Console.WriteLine("Hello");
}
}
```
Now, if we w... |
2018/03/13 | 998 | 3,834 | <issue_start>username_0: I am trying to get a grip on Collections here and found an article at [Race condition](http://javarevisited.blogspot.in/2012/02/what-is-race-condition-in.html)
It states that the below code may lead to race condition :
```
if (! hashtable.contains(key)) {
hashtable.put(key, value);
}
```
... |
2018/03/13 | 964 | 3,615 | <issue_start>username_0: I'm trying to enable the module Elasticsearch connector on Drupal test site (hosted on pantheon.io) and here is what happens:
[Drush 9 error: command pm:enable is not defined](https://i.stack.imgur.com/P2bna.png)
This error seems not to be frequent since I'm unable to find how to resolve it o... |
2018/03/13 | 751 | 2,565 | <issue_start>username_0: I have a doubt in Java wrapper class like `Integer`, `Character`. I know that when we declare a class `Abc` and can create an object to it in Java like
```
Abc a = new Abc();
```
It instantiates a with reference to `Abc` class and in that we have fields that contain values for variables. My... |
2018/03/13 | 477 | 1,795 | <issue_start>username_0: Basic functionality of my app: customers begin to type an email address into a input field and receive auto-suggested results that match the characters they've input.
I've tried implementing this in Mongoose/Mongo in my node app like so:
```
let customer = await Customer.find({
'email_add... |
2018/03/13 | 550 | 1,981 | <issue_start>username_0: I've got a component with 4 TextInput representing business hours
I want to concatenate the first 2 (representing opening time) and store them in my state. But I have a return value of type : **[object Object]:[object Object]**
this is the first two input:
```
{
let input... |
2018/03/13 | 853 | 3,496 | <issue_start>username_0: I have two components in a distributed system, which send messages which are serialized/deserialized using Newtonsoft.JSON (JSON.Net).
The message properties are currently sent in Norwegian, and I am looking to translate the codebase to English. Since there is a change that some messages woul... |
2018/03/13 | 279 | 877 | <issue_start>username_0: I have a problem with **ionic**
I start ionic and i created my project with the command
```
ionic start myProject sidemenu
```
After, I use the command
```
ionic serve
```
**Result :**
[result](https://i.stack.imgur.com/gkzWg.png)
but when I want to go to localhost:8100
**it's displa... |
2018/03/13 | 788 | 1,526 | <issue_start>username_0: I'm very much new to groovy scripting. I have a requirement and need to split the string into different varaibles.
eg: `100546_2018_03_100900100546_YDE4567832.xml`
```
V1 : 100546
V2 : 2018
V3 : 03
V4 : 100900100546_YDE4567832.xml
```
Can you please help me in getting code snippet.<issue_c... |
2018/03/13 | 706 | 2,503 | <issue_start>username_0: I would like to derive a class with a constant and some trivial operations:
```
class Zeros z where
zero :: z
isZero :: Eq z => z -> Bool
isZero z = zero == z
```
and in another module:
```
{-# LANGUAGE DeriveGeneric, DeriveAnyClass
, GeneralizedNewtypeDeriving #-}
modul... |
2018/03/13 | 392 | 1,735 | <issue_start>username_0: ```
php
$id = '0B475ByfcR9n4a1JMVEZxQno2Tmc';
$ch = curl_init('https://drive.google.com/uc?id='.$id.'&export=download');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST"); ... |
2018/03/13 | 377 | 1,421 | <issue_start>username_0: I was using this method in my AppDelegate file to handle app opening with my URL scheme
```
func application(_ application: UIApplication, open url: URL,
sourceApplication: String?, annotation: Any) -> Bool {}
```
Later I added other method (iOS 9.0 is needed)
```
func app... |
2018/03/13 | 491 | 1,354 | <issue_start>username_0: when I launch my app in smartphone android I have this error:
>
> ERR\_FILE\_NOT\_FOUND ( file://android\_asset/www/index.html)
>
>
>
this is information ionic :
>
> cli packages: (C:\Users\med\AppData\Roaming\npm\node\_modules)
>
>
>
```
@ionic/cli-utils : 1.19.1
ionic (Ionic CLI)... |
2018/03/13 | 1,182 | 3,099 | <issue_start>username_0: In order to make a GROUP VARIABLE for long data, I want to group multiple values into one new value.
I have already one solution but I feel there could be a better implementation.
```
set.seed(1337)
df <- data.frame(coli = sample(rep(1:6,2)), newi = 0 )
replaceList <- list(oneAndTwo=1:2, thr... |
2018/03/13 | 1,443 | 5,221 | <issue_start>username_0: Is it possible to hide or don't display this logoBar of power BI after publishing the report in web ?
[](https://i.stack.imgur.com/MwLXm.png)
Thank you.<issue_comment>username_1: The logo bar you're referring to is part of th... |
2018/03/13 | 335 | 901 | <issue_start>username_0: I have 2 table.
**principal table** (people names with id):
```
ID NAME
14 Person1
29 Person2
```
**substitution table** (matching 2 people with principal id):
```
SUB1ID SUB2ID
14 29
```
I want to select the names in the substitution table like:
```
SUB1ID NAM... |
2018/03/13 | 457 | 1,594 | <issue_start>username_0: Using job-dsl I can execute a Shell script with custom bash code and have the process result influence the status (failure, success etc.) of the Jenkins job:
```
steps {
shell('./smoketest.sh')
}
```
What if I want to use custom Groovy to do a smoketest rather than rely on a shell scri... |
2018/03/13 | 555 | 1,922 | <issue_start>username_0: I try to scroll always to the bottom of my flatlist in my react native app but unfortunately I don't get a reference to the flatlist.
```
Point overview:
this.flatList = ref}
data={pointRecord}
renderItem={({ item }) => {item}}
/>
```
And in the render function I try to call the met... |
2018/03/13 | 619 | 2,163 | <issue_start>username_0: I am trying to fetch the value of rich text area from **home.html**, but I am getting an error.
**Home.html** code as follows :
```
```
**Home.ts** code as follows:
```
import { Component } from '@angular/core';
import { NavController } from 'ionic-angular';
import { FormControl, FormBuild... |
2018/03/13 | 757 | 2,763 | <issue_start>username_0: I have a code code snippet which works fine.
**header.vue**
```
onLogout(){
this.logout({ router: this.$router });
}
```
**store.js** (actions)
```
logout({commit}, {router}){
commit('clearAuthData')
router.replace('/')
}
```
What this does is onLogout function clear the idT... |
2018/03/13 | 564 | 1,990 | <issue_start>username_0: I'm trying to get the SQL queries from an Azure App Service sent to Application Insights.
From [this answer](https://stackoverflow.com/a/39419283/214980), I ran the dependencies check in the analytics, and got sdk Version `rddf:2.5.0-49733`. So now I need to install Status Monitor - but isn't ... |
2018/03/13 | 1,716 | 5,439 | <issue_start>username_0: I'm facing issues with this function. I don't know anything about hashing, but still receive an error about it.
The purpose of my function is to give the name of those who have the highest number of activity (activities are the str in the set named "Groupes", and the function return a set with... |
2018/03/13 | 494 | 1,626 | <issue_start>username_0: I have a templated function and I did not know how to write the specilization for the type \*unsigned const char\*\* !?!
I did it for simple types (int, long ...) as below :
```
template
void ConvertTypeToString(const T p\_cszValue, std::string& p\_szValue)
{
p\_szValue = p\_cszValue;
}
/... |
2018/03/13 | 755 | 2,754 | <issue_start>username_0: so I have a table called 'User' having fields as
* userId
* userName
* supervisorId
I want to fetch the userName of the supervisor of a particular user.
```
CriteriaBuilder criteriaBuilder = em.getCriteriaBuilder();
CriteriaQuery criteriaQuery = criteriaBuilder.createQuery(User.class);
Root ... |
2018/03/13 | 613 | 2,215 | <issue_start>username_0: Im using the back end of wordpress to allow the client to fill in a form and send the content of a text area in an email.
My problem here is that when I click send, the string from the text area converts to `Line1%0ALine2%0ALine3` (as a result of encodeURIComponent()) and posts that over to m... |
2018/03/13 | 261 | 961 | <issue_start>username_0: I use `styled-components` to style my default links as follows:
```js
import styled from 'styled-components';
import {
fontSize
} from 'styled-system';
const Link = a `
${fontSize};
color: white;
&:link {
text-decoration: none;
}
`;
export default Link;
```
I would... |
2018/03/13 | 470 | 1,787 | <issue_start>username_0: I have this example c++ class in a dll library
```
class Rectangle {
public:
int width, height;
void set_values (int,int);
int area (void);
} rect;
```
and I've exported everything with a .def file
when importing the dll i have access to the two functions
(set\_values(int,int) ... |
2018/03/13 | 1,525 | 5,412 | <issue_start>username_0: I got this error when building a signed apk in android . Please help me resolve this problem.
The error is:
>
> Error:Execution failed for task ':app:transformClassesWithJarMergingForRelease'.
>
>
> com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate e... |
2018/03/13 | 774 | 2,634 | <issue_start>username_0: Here is my code:
```
func deneme() {
var buttons: [UIButton] = [buttonA,buttonB,buttonC,buttonD,buttonE]
let randomNumber = Int(arc4random_uniform(UInt32(buttons.count)))
let button = buttons.remove(at: randomNumber)
if button.titleLabel?.text == cevapLabel.text {
}
... |
2018/03/13 | 243 | 873 | <issue_start>username_0: I Want to Prevent app bar pushing up When Edittext Clicks Please help me to prevent Appbar scrolling and i added android:windowSoftInputMode="adjustResize" and adjustpan but not worked please help me.
```
```<issue_comment>username_1: Use [**`android:windowSoftInputMode="adjustNothing"`**](ht... |
2018/03/13 | 966 | 3,204 | <issue_start>username_0: I would like update my Babel config to version 7 in Electron project.
I've add my all plugins i needed :
```
"devDependencies": {
"@babel/cli": "^7.0.0-beta.40",
"@babel/core": "^7.0.0-beta.40",
"@babel/node": "^7.0.0-beta.40",
"@babel/plugin-proposal-class-properties": "^7.0.... |
2018/03/13 | 493 | 2,002 | <issue_start>username_0: I understand that all UI updating functionalities are necessary to be executed in main thread, but Xcode shows following warning on UI non-updating functionality
[](https://i.stack.imgur.com/vqRqG.jpg)
Really, is it true? tha... |
2018/03/13 | 474 | 1,836 | <issue_start>username_0: I am doing an excel import function in my PHP project.
I have a time field in my excel (like 16:30)
but when I import this excel into a database, it converts to 0.6875 (16.5/24)
How can I convert 0.6875 to 16:30?
Note: this excel file cannot be modified because it was generated by a machine.<... |
2018/03/13 | 2,233 | 5,982 | <issue_start>username_0: I need help combining these single SQL insert statement into one. Here is my code which works as individual statements:
```
INSERT INTO [DBO].[QUEST] ([QUEST_ID], [QUEST_TEXT], [DOM_ID], [CRT_USR], [CRT_DATE], [EXAM_ID], [RANDOMNUMBER]) SELECT TOP 24 [QUEST_ID], [QUEST_TEXT], [DOM_ID],... |
2018/03/13 | 1,051 | 3,784 | <issue_start>username_0: I am talking to the Shutter Stock API. I am certain the problem is not SS but more the formatting of my PHP Curl post as if I send this request via terminal I get a proper response.
The Terminal curl comand is as follows:
```
curl "https://api.shutterstock.com/v2/images/licenses?subscription_... |
2018/03/13 | 883 | 2,571 | <issue_start>username_0: I'm trying to learn Python. I am currently using Jupyter Notebook and Atom as a text editor.
This is my code:
```
grid = [['.', '.', '.', '.', '.', '.'],
['.', 'O', 'O', '.', '.', '.'],
['O', 'O', 'O', 'O', '.', '.'],
['O', 'O', 'O', 'O', 'O', '.'],
['.', 'O', 'O', 'O', 'O', 'O'],
['O', 'O', ... |
2018/03/13 | 1,347 | 5,316 | <issue_start>username_0: I'm making the Udacity Sunshine app. As there was the version of android studio used was 0.5.8 and now I'm using android studio 3.0.1. thus there are lots of gap between coding techniques used in both of these.
So, here I used fragment in empty activity and I have implemented it by reading the... |
2018/03/13 | 1,404 | 5,591 | <issue_start>username_0: I'm building a Service to send some notification at the user also when the smartphone is locked.
I don't have any problem if I try to start my application, I can see this message Notification but I can't read all the text.
This is that I can see:
[](https://i.stack.imgur.com/wLcZs.png)
Anyone know how I can achieve this so that the above labels are aligned accordingly with the radio buttons? The biggest problem I have is the ... |
2018/03/13 | 327 | 1,274 | <issue_start>username_0: I was working on a master branch. Had a new idea, so I went with:
```
git checkout -b new_branch_name
```
Did some changes on the new branch and then switched back to the master. All the changes I did on new branch were applied to master. What should I do to prevent that?<issue_comment>usern... |
2018/03/13 | 428 | 1,622 | <issue_start>username_0: I need to read the second value of `JsonArray` but I can't read it.
```
public void onViewBind(View view, Cursor cursor, ODataRow row) {
OControls.setText(view, R.id.name, row.getString("name"));
OControls.setText(view, R.id.email, row.getString("message"));
JSONArray partner_id... |
2018/03/13 | 283 | 1,156 | <issue_start>username_0: I want to create a new Role extending two existing roles. So is it possible in composer modelling language for a participant to extend multiple participants?<issue_comment>username_1: Since you didn't `add` or `commit` the new files they are untracked and outside of your git repo. They only exi... |
2018/03/13 | 660 | 1,956 | <issue_start>username_0: i have more + symbol in my string and i want to remove last one and any character after it
ex
Giza+badrashen+test<issue_comment>username_1: ```
$string = "abc1234+12+3455+xzyabc";
$string = substr($string, 0, strrpos($string,"+"));
echo $string;
> abc1234+12+3455
```
**EDIT:** and gives... |
2018/03/13 | 376 | 1,120 | <issue_start>username_0: Hello everyOne I need to get the AVERAGE of difference of two dates (timestamp)
I tried this
```
select AVG((sva.endTime - sva.startTime)) as seconds from SVATable sva;
```
but I got an error
```
93/5000
ORA-00932: Inconsistent data types; expected: NUMBER; got: INTERVAL DAY TO SECOND
```... |
2018/03/13 | 418 | 1,188 | <issue_start>username_0: I have a string 'ABC.1.2.3'
I wish to replace the middle number with 1.
```
Input 'ABC.1.2.3'
Output 'ABC.1.1.3'
Input 'XYZ.2.2.1'
Output 'XYZ.2.1.1'
```
The is, replace the number after second occurrence of '.' with 1.
I know my pattern is wrong, the sql that I have at the moment is :
``... |
2018/03/13 | 683 | 2,718 | <issue_start>username_0: Suppose i have some setState declarations on list items on top of page as follows:
```
this.setState({ facebookFields: true, youtubeFields: true })}>All
this.setState({ facebookFields: true, youtubeFields: false })}>Facebook
this.setState({ facebookFields: false, youtubeFields: true }... |
2018/03/13 | 422 | 1,389 | <issue_start>username_0: In Woocommerce, I would like to apply custom price for a specific product.
This is my actual code:
```
add_action('woocommerce_get_price','change_price_regular_member', 10, 2);
function change_price_regular_member($price, $productd){
return '1000';
}
```
Any help on this is appreciated... |
2018/03/13 | 465 | 1,617 | <issue_start>username_0: Android Oreo introduced new limitations to background services.
The [doc](https://developer.android.com/about/versions/oreo/background.html) states
>
> "While an app is in the foreground, it can create and run both foreground and background services freely. When an app goes into the backgroun... |
2018/03/13 | 1,429 | 4,246 | <issue_start>username_0: I have a button which toggles a hidden droplist on hover.
There is no distance between the box and the droplist and that's the issue here.
I wanted to add a little space there within those two by appending margin to the droplist object, but as a result, when I hover a cursor over that space, t... |
2018/03/13 | 913 | 4,483 | <issue_start>username_0: Despite thorough search of other user's questions, I don't seem to understand how to do a countdown timer. All I wanna do is setting visibility to GONE after 30 seconds without touching the screen. So far I've done this:
```
public class StatusFragment extends Fragment {
CountDownTimer cou... |
2018/03/13 | 1,461 | 5,044 | <issue_start>username_0: I'd like to be able to write `Scala` in my local IDE and then deploy it to AWS Glue as part of a build process. But I'm having trouble finding the libraries required to build the `GlueApp` skeleton generated by AWS.
The [aws-java-sdk-glue](https://mvnrepository.com/artifact/com.amazonaws/aws-j... |
2018/03/13 | 547 | 1,928 | <issue_start>username_0: I publish my exe and activate auto updates.
But when I compile the exe, there is an error:
>
> Severity Code Description Project File Line Suppression State Error An
> error occurred while signing: Failed to sign
> bin\Debug\app.publish\myapp.exe. SignTool Error: Invalid option: /fd
>
>
... |
2018/03/13 | 463 | 1,489 | <issue_start>username_0: How to resolve this error in SQL Server:
>
> The conversion of a varchar data type to a datetime data type resulted in an out-of-range value
>
>
>
My query is:
```
Insert into Pedido (FechaPedido, FechaTipoPedido)
Values('13-03-2018', '13-03-2018')
```<issue_comment>username_1: I had ... |
2018/03/13 | 671 | 2,228 | <issue_start>username_0: On my windows machine i run this docker compose file:
docker-compose.yml:
```
version: '3.0'
services:
logstash:
image: logstash:latest
command: -f ./etc/logstash/config/ --log.level debug
volumes:
- ./config/:/etc/logstash/config/
- ./pipeline/:/etc/logstash/pipelin... |
2018/03/13 | 1,428 | 4,774 | <issue_start>username_0: This is my spring boot code.
```
import java.security.Timestamp;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.CreationTimestamp... |
2018/03/13 | 1,008 | 2,671 | <issue_start>username_0: I want to divide a sparse matrix's rows by scalars given in an array.
For example, I have a `csr_matrix` `C` :
```
C = [[2,4,6], [5,10,15]]
D = [2,5]
```
I want the result of `C` after division to be :
```
result = [[1, 2, 3], [1, 2, 3]]
```
I have tried this using the method that we use... |
2018/03/13 | 855 | 3,451 | <issue_start>username_0: This question concerns the standard `UserCreationForm` within Django, and the way that passwords are stored, extracted and used through a `request object`. Specifically the fact that I seem to be able to print raw passwords through `print(request.POST)`. File contents will be provided at the en... |
2018/03/13 | 525 | 1,777 | <issue_start>username_0: I have a pdf file or the post-script file of that pdf. My Requirement is to convert this file to ZPL code so that my thermal printer can print that.
I searched a lot on google but not able to find any solution which can meet my requirements.
Please suggest any way forward if you encountered thi... |