date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/06 | 617 | 2,092 | <issue_start>username_0: I'm a newbie in the NDK world. I have a key placed in the C/C++ layer and I want to use it when I do a GET with Retrofit.
Here is my code
I have 2 .mk files but they are not relevant to my question and I have a keys.c file where I store the key:
```
#include
JNIEXPORT jstring JNICALL
Java\... |
2018/03/06 | 943 | 4,067 | <issue_start>username_0: I don't know if this is a stupid question. This may defeat the purpose of LiveData/ViewModel.
Can I make the LiveData static? My reason is I have a listener from a Service which updates the information. So I need to have a way from a service to "set/change" the LiveData.
**I used to do follow... |
2018/03/06 | 1,429 | 4,585 | <issue_start>username_0: I'm trying to send json formatted values to php but $\_POST on php returns null when i call the function. This procedure is similar to w3schools php json example found here <https://www.w3schools.com/js/js_json_php.asp> at the bottom but still don't get the same result. The values next to the s... |
2018/03/06 | 1,073 | 3,689 | <issue_start>username_0: We have a function returning an `Observable` to indicate the success or failure of an operation.
```
public operation(parameter: Parameter): Observable {
... generate dataToSend with parameter values and other information ...
this.\_httpClient.post(this.\_url, dataToSend).subscribe(data => {... |
2018/03/06 | 985 | 2,856 | <issue_start>username_0: I had the below error while cross compiling a helloworld program on 64 bit Ubuntu 16.04, for 32 bit Cortex A9 platform.
```
$ make
/usr/local/comp/poky/1.7/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc -march=armv7-a -mthumb-interwork -mtune=cortex-a9... |
2018/03/06 | 535 | 2,010 | <issue_start>username_0: I am creating a website using React JS to allow users to click on a brand and scrape images from Instagram. On the landing page **/landing**, the user can select a brand and this brand name is passed to the Instagram scraper page **/instagramScraper**:
```
this.props.history.push({
p... |
2018/03/06 | 290 | 1,009 | <issue_start>username_0: Is it possible to render icons (web safe, if they exist) to show an icon on a page without relying on specific fonts?
for example, if you have fontawesome font this will render an icon
```
a:before {
font-family: FontAwesome;
content: "\f095";
}
```
So, my question is, is there a f... |
2018/03/06 | 290 | 1,036 | <issue_start>username_0: I want to get data form my react component from mongodb on rails . I need to convert data to json so my react component can read it . I try some code but it not work . Anyone have any ideas how to do this ? . Thank a lot
```
def home
pricedata = Mongoid::Clients.default
data = pricedat... |
2018/03/06 | 740 | 1,840 | <issue_start>username_0: I have a .csv that looks like:
```
SiteCode,('Max_Area',1), ('Max_Vol',1)
0003L,3037.1875,13390.319488525391
0009L,7719.25,476.31626510620117
```
The first column is the desired index and the following tuples are my desired column names. When I read the csv in like:
```
df = pd.read_csv("fi... |
2018/03/06 | 341 | 1,419 | <issue_start>username_0: I currently have functions that upload files to Azure blob storage and download from it in a Universal Window app which works perfectly well. I am trying to create a process whereby anytime I upload a file to Azure blob, I can create (or return) a shareable download link that I can share with p... |
2018/03/06 | 831 | 3,095 | <issue_start>username_0: I have hit a wall with my design. I am trying to pass the strings from one View Controller to another. Those 2 controllers are not connected with segue. I have attached the screenshoot of my Storyboard. I have a feeling that my only option is to use a Singleton, or would that be possible with d... |
2018/03/06 | 1,231 | 4,017 | <issue_start>username_0: I call `concat()` on a string as shown below:
```
> "1".concat("2","3")
< "123"
```
Now I want to do this for the case where I have an array of strings to concat togther. But it doesn't do what I expect:
```
> "1".concat.apply(["2","3"])
< "2,3"
```
Not only is the first element missing, ... |
2018/03/06 | 655 | 2,300 | <issue_start>username_0: Following is my xml of my recyclerview cell
```
```
Issue: I want to fill this green background to the whole cell of recycler view. Height of the every cell vary based on the number of lines of the textview. I have tried many things but failed.
Following is the current output
[, its boxplot method makes the whiskers 1.5\*IQR long. However, as seen in the plot from that documentation, this seems not to be the case.
The upper and lower whiskers are not the same. Further ... |
2018/03/06 | 1,433 | 5,342 | <issue_start>username_0: I'm trying to implement `$broadcast` and `$on` in `>ionic2` and I found this solution here in Stackoverflow
[using $on and $broadcast with angular js 2](https://stackoverflow.com/a/36174340), well I thought it was working perfect, since now.
I've implemented `oneSignal` like this :
```
var... |
2018/03/06 | 1,025 | 3,043 | <issue_start>username_0: I have to compare strings and I'd like to test if their chars differs at most `a` elements, for example:
```
// for a = 2 comparing all strings with str1
var str1 = 'qwerty'; // should return true
var str2 = 'qwerty'; // should return true
var str3 = 'qw1rty'; // should return true
var str4 = ... |
2018/03/06 | 754 | 2,313 | <issue_start>username_0: I have a Qt QML WebEngineView that I want to send key press events to from a custom keyboard. Is there a way to programmatically send keypress events to the view? To be clear, I'm only having trouble with WebEngineViews, and not other QML elements.
Theres some discussion online on how to do t... |
2018/03/06 | 1,009 | 2,650 | <issue_start>username_0: I need help with asterisk's dial plan. I want that every time I make a call, when the user picks up the phone, I want it to say a specific date, but I can't figure out which application in the dial plan can do that.
I am using `SayUnixTime` but it only says the current time. I'd appreciate you... |
2018/03/06 | 594 | 1,991 | <issue_start>username_0: Often, when working with a large `dask.DataFrame`, it would be useful to grab only a few rows on which to test all subsequent operations.
Currently, according to [Slicing a Dask Dataframe](https://stackoverflow.com/questions/44475492/slicing-a-dask-dataframe), this is unsupported.
* I was ho... |
2018/03/06 | 545 | 1,819 | <issue_start>username_0: I'm very new to R and I'm trying to clean my data for processing. I have a column (factor variable) that contains time information in the following format:
`1H 35MIN 37SEG`
Before I proceed to convert this into time, I'd like to convert all my observations from the above format, I need to elim... |
2018/03/06 | 489 | 1,736 | <issue_start>username_0: I have two tables. They have one column which indicates if it is stock or bad stock. Now I want to set value when status 'Y' that means total bad stock value & when status 'N' total stock value from sale & sale return table.
Here is my code:
```
SELECT
sr.IsBadStock as Status,
CASE
... |
2018/03/06 | 1,265 | 5,650 | <issue_start>username_0: I am seeking to copy my SQLite database to "external" storage as a means of backing up my database file. From there the user can grab the .db file and move to a place deemed safe.
In following the [Android Developer documentation on getting permission](https://developer.android.com/training/p... |
2018/03/06 | 712 | 2,588 | <issue_start>username_0: I'm trying to make load a simple javascript code on wordpress just on mobile in header.
I've tried plugins and to code but It seems not within my reach and need help :D
Ciao!<issue_comment>username_1: ```
function custom_load_scripts() {
// Load if not mobile
if ( ! wp_is_mobile() ) {... |
2018/03/06 | 629 | 2,285 | <issue_start>username_0: In my stored procedure, I have the following statement:
```
SELECT TOP 200
C.CustomerNumber,
C.CustomerName,
C.AccountManager,
C.CustomerId
FROM
Customer C WITH(NOLOCK, index (UQ_Customer_CustomerNumber))
LEFT JOIN
CustomerQuotingPreference cp WITH(NOLOCK) ON... |
2018/03/06 | 459 | 1,476 | <issue_start>username_0: I'm running this simple code snippet:
```
#include
int main() {
/\*m = -1
i = -1
j = 3
k = 0\*/
int i = -2, j = 3, k=0, m=0;
m = ++i || (++j && ++k);
printf("%d, %d, %d, %d", i, j, k, m);
}
```
[](https://i.stack.im... |
2018/03/06 | 652 | 2,128 | <issue_start>username_0: Coupa has introduced this new functionality of including attachments in cXML invoices. The only documentation (That I am aware of) says that include code (mentioned below) in CXML invoice file.
Coupa Documentation:
[Screenshot from Coupa Documentation](https://i.stack.imgur.com/4WlPW.jpg)
C... |
2018/03/06 | 706 | 2,222 | <issue_start>username_0: **Database**
Db2
**Scenario**
I have the following code, where on a NODE table I have about 135k rows and a NODE\_LIST common table that has about 4k rows, and deleting all the rows from NODE that can be found in NODE\_LIST takes about 48 seconds.
I would like to run the query such that it ... |
2018/03/06 | 6,152 | 18,299 | <issue_start>username_0: I'm building a pattern recognizer program in C that reads in both a user-defined string of characters and a user-defined pattern of 4 characters. The program then has one function to determine if a pattern is found and where the pattern (in terms of the input text index) was initially found.
I... |
2018/03/06 | 490 | 1,639 | <issue_start>username_0: [](https://i.stack.imgur.com/7c5Sw.png)
Vue data component not loading up correctly. This is the exact template they used.
The arrows appear as "arrow\_upward" and the edit and delete button don't show up right.
[![enter ima... |
2018/03/06 | 841 | 2,920 | <issue_start>username_0: Im trying to use Firebase on Android Studio
with the Firebase, I'm trying to use Realtime Database but after getting connecting the application to Firebase when i add Dependencies.
I get an error in the build.grade app:
Uploading the codes
```
apply plugin: 'com.android.application'
android... |
2018/03/06 | 793 | 2,648 | <issue_start>username_0: I am using this code with my client ID and client secret:
<https://github.com/DEKHTIARJonathan/python3-linkedin/blob/master/examples/oauth2_authentication.py>
However, when getting the url back in the command line and putting it into the browser I am getting "invalid redirect\_uri. This value... |
2018/03/06 | 631 | 2,328 | <issue_start>username_0: I am trying to automate the webpage "<http://the-internet.herokuapp.com/exit_intent>" where if we move out of the Viewpane towards the top of the page then the pop up window appear with a message. But I am unable to do it with the help of selenium, is there any way we can perform this action?<i... |
2018/03/06 | 737 | 2,502 | <issue_start>username_0: I'm writing my first VBA code and getting an odd error I can't track.
I'm simply trying to assign a value to certain cells if another cell (C15) is equal to "No" and set the values of these cells to "Other" if C15 has any other value.
**It works if I comment out the else section**, but fails... |
2018/03/06 | 302 | 1,031 | <issue_start>username_0: Assuming I have a dictionary whose keys are tuples. Is it possible to to iterate over the keys of the dictionary and only return the keys which are have a certain value in the first position of their tuple? For example:
```
my_dict = {('a','a'):'b', ('a','b'):'b', ('b','a'):'a'}
def function(g... |
2018/03/06 | 1,526 | 3,652 | <issue_start>username_0: I want to mark regions in $z - x$ plane in which, a know function,$f(x,z,t)$, is negative for all values of $0
How can I do that? I don't want to plot $f$ in $3D$. Could anyone help me?
The function f(t,x,z) is as below:
```
Re[0.125 (-21.2 +
Re[2 z Cos[2 t] -
2 z Cos[2 t]^2 + (2. ... |
2018/03/06 | 3,305 | 10,663 | <issue_start>username_0: I have two `XYChart`s that I want to display vertically aligned.
The two graphs share the same x axis, but they use different data sets, which values are not of the same order of magnitude. This makes the y axis labels quite different in size. In the end, the two x axes are not aligned anymore... |
2018/03/06 | 486 | 1,578 | <issue_start>username_0: I don't understand how "row" arugment should be used when creating a function, when the function has other arguments.
I want to create a function which calculate a new column to my dataframe "file".
This works great :
```
def imputation(row):
if (row['hour_y']==0) & (row['outlier_idx... |
2018/03/06 | 758 | 2,550 | <issue_start>username_0: I don't understand why the last line asking for user weight input is not executed. Could it be a memory issue? Or have I written the structs incorrectly? Or have I written the calls to scanf() incorrectly? Or all the above?
```
#include
struct date{
int month;
int day;
int year;
};
stru... |
2018/03/06 | 803 | 3,205 | <issue_start>username_0: I have a base test scenario that will be used by other integration tests. This scenario includes some mock beans (`@MockBean`) for external integrations.
Today, I have something like this in the integration test class:
```
@SpringBootTest
@WebAppConfiguration
@DirtiesContext(classMode = Dirti... |
2018/03/06 | 543 | 2,145 | <issue_start>username_0: I added a Pause button to my Spritekit Game which pauses the game like this:
```
@objc func pauseGame()
{
pauseButton?.isHidden = true
pauseMenu?.isHidden = false
gameScene?.isPaused = true // This is the main scene, which is supposed to be paused
}
```
That works as exp... |
2018/03/06 | 1,311 | 2,852 | <issue_start>username_0: I'm trying to create a new column in a dataframe that contains an incrementing number based on the levels of a different column. That is, I want to rename the levels of a column so that each level has a unique, incrementing number.
```
df <- data.frame(y1 = c(100, 100, 100, 200, 200, 500, 500... |
2018/03/06 | 923 | 1,858 | <issue_start>username_0: How do I count how many times does a word appear in R and the output is the one which appears the most?
```
a <- list(c("A", "A", "A", "A", "B", "B", "A", "B", "C", "C", "C", "A"))
```
the output should be "A"<issue_comment>username_1: Using `data.table`:
```
library(data.table)
setDT(df)... |
2018/03/06 | 2,164 | 6,691 | <issue_start>username_0: My students are making rock, paper, scissors simulations for class. One group has a bug where one of their functions won't return anything. I've checked over it to see if all branches have a return statement, and they do. I've tried a visualizer as well, and the function just stops, and I don't... |
2018/03/06 | 1,767 | 5,899 | <issue_start>username_0: Background: we are setting current project version as system environment:
```
org.apache.maven.plugins
maven-surefire-plugin
2.19.1
always
${project.build.outputDirectory}
${project.version}
```
And then we get the value in the test using `System.getenv("project.version");` and this... |
2018/03/06 | 606 | 2,379 | <issue_start>username_0: I'm using `Node.js` and [npm mysql](https://www.npmjs.com/package/mysql). How can I 'get rid' of `return new Promise` here and replace it with `async await` syntax?
```
const config = require('config');
const mysql = require('mysql');
class DatabaseConnection {
static connect(logger) {
r... |
2018/03/06 | 955 | 3,202 | <issue_start>username_0: I have a derived class called Mystring that is derived from std::string, and I would like to set the value of the string that I am working with.
From my understanding to access the string object from std::string I would use \*this to get the string that I am currently working with.
I would li... |
2018/03/06 | 598 | 2,043 | <issue_start>username_0: I am getting this error for a very basic example of ReactJs.
index.js:
```
import React, { Component } from 'react';
import { render } from 'react-dom';
import { Router, Route } from 'react-router';
class App extends Component {
render() {
return (Hi
==
);
}
}
render(, docum... |
2018/03/06 | 785 | 3,041 | <issue_start>username_0: I am using spring boot for my rest api but I have a problem about mongo database. Application sometimes throws mongo socket exception and does not execute following codes, when endpoint which needs mongo operation is triggred. I assign true to value of socketkeepalive but it did bot solve my pr... |
2018/03/06 | 1,366 | 5,064 | <issue_start>username_0: I'm defining rational class, so for example a = Rational(1,2) #1/2, and b = Rational(2,3) #2/3, and I want to have c = a + b so that c = Rational(7,6) #7/6. My code so far is:
```
class Rational(object):
def __init__(self, v1, v2):
self.value = v1/v2
def __add__(self, value2):... |
2018/03/06 | 735 | 3,054 | <issue_start>username_0: How do I get the name of the pre test condition "Background" tag in a Feature using Specflow + Nunit in C #?
I can get the name of the "Feature" like this:
```
return FeatureContext.Current.FeatureInfo.Title;
```
And the name of the "Scenario" like this:
```
return ScenarioContext.Curren... |
2018/03/06 | 3,630 | 8,404 | <issue_start>username_0: I have a huge list of 1's and 0's like this :
```
x = [1,0,0,0,1,1,1,1,1,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1].
```
Full list [here](https://justpaste.it/1hxmm).
I want to create a new list y with the condition that , the 1's should be preserved only if the they occur in a sequence of >= than ... |
2018/03/06 | 3,262 | 7,439 | <issue_start>username_0: I have below data element from which I want to read last 3 digits only and create another column with CASE expression and datatype as INT in SQL.
DATA--
```
SCORE
X0450
00350
U0550
!
0650
```
Desired Field--
```
SCORE SCORE_BUCKET
X0450 300-499
00350 300-499
U0550 ... |
2018/03/06 | 349 | 1,232 | <issue_start>username_0: I'd like to refresh an input field every second while leaving the rest of the page untouched. Is there a way to do this with Javascript? I'm a little unsure how to write it, but I think it would look like..
```js
var myVar;
function autoRefresh() {
myVar = setInterval(loadValue, 1000);
}... |
2018/03/06 | 998 | 3,550 | <issue_start>username_0: I am trying to create a BEFORE UPDATE trigger to stop the HSQLDB update and throw an exception, if the user enters date left input earlier than date in.
I followed the example given in the link
<http://hsqldb.org/doc/guide/triggers-chapt.html>
But the error shows:
```
15: Unexpected end... |
2018/03/06 | 708 | 2,531 | <issue_start>username_0: [This is a continuation of troubleshooting this problem](https://stackoverflow.com/questions/49137279/firebase-function-not-returning-expected-environment-configuration-when-served-l) and a separate issue related to implementing a suggested solution.
I am attempting to consume Firebase functio... |
2018/03/06 | 468 | 1,728 | <issue_start>username_0: While I'm creating a new rails app, there is no db directory while skipping active record for using mongodb later, By this command.
```
rails new app-name --skip-active-record
```
where `rails new app-name` created db as expected. And so, `rake db:create` or `rake db:migrate` don't act expec... |
2018/03/06 | 436 | 1,595 | <issue_start>username_0: I have this function
```
function x{
document.getElementById("message").innerHTML="Thank you! You have answered correctly to:";
document.getElementById("score").innerHTML="";
....
}
```
How i can put together "message"+"score" + questions, So it prints out = You have answered correctly to: ... |
2018/03/06 | 586 | 1,855 | <issue_start>username_0: I am trying to create a horizontal navbar with an input type called "search".
It works well but it's not aligned correctly with the others, using only CSS, not Bootstrap.
Here's what I have so far: <https://codepen.io/mugas/pen/gvVwJj>
```css
.nav{
width: 100%;
float: left;
display: in... |
2018/03/06 | 1,172 | 3,646 | <issue_start>username_0: So I generated a new Spring boot application using jhipster. Upon navigating to the H2 console, the following information is shown.
[](https://i.stack.imgur.com/EKCo1.png)
I am able to login, and I can verify tables exist.
[!... |
2018/03/06 | 778 | 2,307 | <issue_start>username_0: I got the following code in my project fetching data (currently only a single row) from a database and writing them in a file
```
php
$conn = mysqli_connect($servername, $username, $password, $dbname) or die("Connection failed: " . mysqli_connect_error());
/* check connection */
if (mysqli_co... |
2018/03/06 | 680 | 2,068 | <issue_start>username_0: I´m pretty new to VBA and since it´s making my job so much easier I try to write some codes from time to time and everything works fine except for this one, I already tried with the Screen Updating and the Status Bar method but it´s still very slow. Any ideas on how it coul be improved? Thnak y... |
2018/03/06 | 1,021 | 3,923 | <issue_start>username_0: please I'm trying to flesh out a registration page for my ionic ongoing project
Trying to bind my ([ngModel]) to an object property in my component.
Let me just show the code excerpt so you'll understand
```
**Registration.ts** // This is my registration component
import { Component } from '... |
2018/03/06 | 744 | 2,773 | <issue_start>username_0: I want to add two static values together automatically without entering any values into the textbox and display the total amount inside the third box, but it does not work.
```js
$(document).ready(function() {
$('#txt1, #txt2').keyup(function() {
var res = parseFloat($('#txt1').val())... |
2018/03/06 | 882 | 3,332 | <issue_start>username_0: I have the following in my stored procedure:
```
DECLARE @CustomerNumber nvarchar(50)
SELECT TOP 200
C.CustomerNumber as SourceSystemId,
C.CustomerName,
AccountManager,
C.CustomerId
FROM
Customer C WITH(NOLOCK, index (UQ_Customer_CustomerNumber))
LEFT JOIN
C... |
2018/03/06 | 5,912 | 17,889 | <issue_start>username_0: For instance, given list `[1, 0, 1]` the code would return `[1,1,0]`. Other examples:
```
[1,1,1] -- > [1,0,0,0]
[1,0,0,1] --> [1,0,1,0]
```
I'm having most trouble understanding what my base case for recursion would be and then how to implement for the (n-1) case.
```
def increment_helper(... |
2018/03/06 | 483 | 1,677 | <issue_start>username_0: I am trying to iterate over a collection of li elements in an ordered list and then print the URL from each element.
The HTML:
```
1. Suppliers starting with
**A**
2. Suppliers starting with
[B](/g-cloud/suppliers?prefix=B)
3. Suppliers starting with
[C](/g-cloud/suppliers?prefix=C)
... |
2018/03/06 | 2,151 | 6,614 | <issue_start>username_0: I understand that in order to reduce the chance of a single hash colision to result a false positive bloom filters use multiple (k) hashes.
Wouldn't it be more beneficial to use k arrays, one for each hashing algorithm so that if by coinsidence many input keys are mapped by algorithm A to the ... |
2018/03/06 | 2,200 | 6,779 | <issue_start>username_0: I am trying to drop down box in design but in database table category has duplicates. I tried to execute by using below code. But it is not executing. It just receiving all commands which I have been changes in properties:

```
cm... |
2018/03/06 | 1,084 | 3,651 | <issue_start>username_0: I am facing problem with updating/edit user with new role assigned or changed role from (1 or 2). Role remains same with NO Exception or Error.
**NOTE:** I am posting screenshots here as I want to show exactly what I am seeing.
I have a `User` class with role and city associated classes in it... |
2018/03/06 | 311 | 1,243 | <issue_start>username_0: I'm using Bootstrap 4 to create [a toggle button](https://getbootstrap.com/docs/4.0/components/buttons/#toggle-states); however, on clicking the button the checkbox is not being updated, although the `active` class is being set.
Even calling `$('.btn-group-toggle').button('toggle')` sets the ... |
2018/03/06 | 514 | 1,709 | <issue_start>username_0: I'm new to GIT.
I create repository with commands:
```
cd /home/user_name
mkdir repo && cd repo
mkdir site.git && cd site.git
git init --bare
```
then in the `hooks` directory, I create the `post-receive` file and add there:
```
#!/bin/sh
git --work-tree=/home/user_name/dev.ireserve.com --g... |
2018/03/06 | 359 | 1,185 | <issue_start>username_0: I am getting null returned, I am going in circles, fiddling pointlessly. I have it working with an older version of the WSDL, trying to get it going with a newer version, generated from Jax-WS, was using Axis. There have been some minor changes.
I want to get the value "6001305" from Response. ... |
2018/03/06 | 620 | 2,454 | <issue_start>username_0: I'm trying to use [react-html-email](https://github.com/chromakode/react-html-email) to create email templates and the docs aren't clear on how to use renderEmail(emailComponent) can anyone point me in the right direction on how i'm supposed render the HTML output from this module using React a... |
2018/03/06 | 361 | 1,283 | <issue_start>username_0: Using Codeigniter 3. The set\_checkbox works fine for me, except I can't get the default to be checked.
I've have tried what was suggested in other posts, but I still can't get it to work...
For debugging I've boiled it down to the following...
```
XYZ
```
and
```
XYZ
```
Neither work... |
2018/03/06 | 478 | 1,736 | <issue_start>username_0: A program outputs a file with lines of the following format
```
{Foo} Bar Bacon {Egg}
```
where `Foo` and `Egg` could, but do not have to, be made up of several words. `Bar` and `Bacon` always are a single word.
I need to get `Bar` in a variable for my further code. I imagine that this woul... |
2018/03/06 | 1,617 | 4,932 | <issue_start>username_0: I want to extract all the words from a string and out them in an array.
By "word" I mean a series of consecutive letters. If I have a space or other characters, the word ends there.
For example, if I have this string:
```
"my name is sil/ves tru, what?is."
```
I want an array like this:
... |
2018/03/06 | 660 | 2,849 | <issue_start>username_0: Certain websites have responsive CSS that lays out the site differently for a smaller screen. Other sites seem to serve different data when given different size data from the browser. When I request a desktop site with my phone browser, in addition to changing the user-agent (which has been des... |
2018/03/06 | 1,500 | 6,002 | <issue_start>username_0: We communicate with the third party using IBM MQ in request/reply fashion. We send them request and they give us reply.
Current we both have a simple java based native IBM MQ application.
We are planning to rewrite our code using spring jms.
But we are not getting any response back within give... |
2018/03/06 | 639 | 2,156 | <issue_start>username_0: I am working on a basic idle game (based on cookie clicker), and have a script to convert those larger numbers into smaller numbers using the code:
```
if(valueToConvert >= 1000000000000000000000) {
converted = (valueToConvert/1000000000000000000000).ToString("f3") + "Sex";
```
Howe... |
2018/03/06 | 1,732 | 6,475 | <issue_start>username_0: **Edit**: [This post](https://stackoverflow.com/questions/34984501/get-audio-from-html5-video) is no duplicate of mine. I am trying to extract the audio data as binary, got no problems with playing the audio file as separate as I mentioned before.
I am trying to extract audio from a video file... |
2018/03/06 | 533 | 1,913 | <issue_start>username_0: I have files whic needs to be loaded to db with win form application
for that i am creationg bulkload string C# code
```
private void bt_loadInToTable_Click(object sender, EventArgs e)
{
bulkinsert = " BULK INSERT " + tableName + " FROM " + filePath +
" WITH (FI... |
2018/03/06 | 695 | 2,880 | <issue_start>username_0: I am trying to curl file contents to an external source. I can curl it correctly from the command line, but I am having problem sending the string in the -d switch in code. Here is the gist of the curl command
```
curl.exe -u userName:password -H "Content-Type: text/plain" -X PUT https://someI... |
2018/03/06 | 705 | 1,896 | <issue_start>username_0: I have just started learning pandas, and this is a very basic question. Believe me, I have searched for an answer, but can't find one.
Can you please run this python code?
```
import pandas as pd
df = pd.DataFrame({'A':[1,0], 'B':[2,4], 'C':[4,4], 'D':[1,4],'count__4s_abc':[1,2],'sum__abc':[... |
2018/03/06 | 1,219 | 3,825 | <issue_start>username_0: I'm trying to recreate a C struct with mixed bitfield members and "normal" members in Rust for FFI.
~~I've read that the [bitflags crate](https://crates.io/crates/bitflags) would be the one to go with, unfortunately I find the documentation lacking on the regards how the syntax actually works.... |
2018/03/06 | 764 | 2,479 | <issue_start>username_0: I was trying to get the screen available height (not include task bars and etc) in Javascript. screen.availHeight in Mac OS/Linux gives me exactly what I need. However, in Windows 10 screen.availHeight returns longer than I expect. It seems to include the length of task bars as well.
How can I... |
2018/03/06 | 1,383 | 5,903 | <issue_start>username_0: When loading my program on a device for testing, as I open different fragments using the bottom navigation nothing happens what so ever. If you need me to add more code please say so. I've posted my XML and Java for the Main Activity and the XML contains the mainFrame for my layout.
```
public... |
2018/03/06 | 825 | 2,207 | <issue_start>username_0: I have a requirement where start of the week is sunday. but all the values should be captured from Monday-sunday and not sunday-Saturday
For Example below is my source
```
SummedValue WeekStart CreatedDate
1349 2/25/2018 2/25/2018
982 2/25/2018 2/26/2018
60 ... |
2018/03/06 | 225 | 756 | <issue_start>username_0: I'm searching for a way to copy a [BSON](https://en.wikipedia.org/wiki/BSON) document to a buffer or into a file using the C-library [libbson](https://github.com/mongodb/mongo-c-driver/tree/master/src/libbson).
I think I'm missing something - any help is appreciated.<issue_comment>username_1: ... |
2018/03/06 | 1,155 | 4,219 | <issue_start>username_0: ```js
var array = [];
$('input').click(function(){
var value = this.value;
if (array.indexOf(value) > -1) {
array.splice(array.indexOf(value));
$(this).next('span').html('');
return false;
}
array.push(value);
$(this).next('span').html(array.indexOf(value));
})
... |
2018/03/06 | 894 | 2,640 | <issue_start>username_0: UPDATE: Below code works for me. Hope it helps someone to figure out their problem.
After having several errors, it helped going back and looking at all possible error codes on Apple News Developer site.
Look at specific error numbers in your code and decide what might be wrong with it.
Fo... |
2018/03/06 | 1,628 | 5,498 | <issue_start>username_0: In the following code, When it reaches the comment, if the GC is not run, approximately 1000 object is created(according to OCA book), the `StringBuilder` is modified and remains as one object, the empty string `" "` is pooled and re-used, that's all that is explained. isn't the argument `s` a ... |