date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/09 | 1,162 | 3,344 | <issue_start>username_0: I have a database table with columns shaped as following:
```
| ID | name | A | B | C | D |
| 1 | foo | 1 | 0 | 0 | 1 |
| 2 | bar | 0 | 0 | 1 | 1 |
| 3 | foo | 1 | 1 | 0 | 0 |
| 4 | bar | 1 | 1 | 0 | 0 |
```
A, B, C and D are bit columns.
I need to get the name values of the rows of... |
2018/03/09 | 1,197 | 3,836 | <issue_start>username_0: I have a CustomerToFactor as a Measure and Customer as a Dimension. Now I want to create a MDX code like this SQL code but I can't. because (WITH) statements has another meaning in MDX.
```
with Total_Customer(
select cus_id
,sum(ctf_price) cus_total_price ... |
2018/03/09 | 579 | 2,130 | <issue_start>username_0: I am sending echoing some data to be received in Javascript however when i debug it, it seems that a new line has been added.
PHP
```
php
header("Content-Type: application/json; charset=UTF-8");
require './connection.php';
$obj = json_decode($_POST["x"], false);
$usernamequery = "SELECT * ... |
2018/03/09 | 1,462 | 5,033 | <issue_start>username_0: Good day folks,
I am having this issue in my Angular 2 application upon server startup (`npm start`).
I redirect the base route or base path to `user/login` which is a Lazy Loaded module but it throws an `Cannot find module` error. This always happens as I've said, during startup and editing... |
2018/03/09 | 401 | 1,389 | <issue_start>username_0: I am trying to read a streamed xlsx file. The user inputs the data via user interface and then the data is passed to me via streaming in xlsx. How do i read it ? I couldn't find any documentation.
cat text.xlsx | python myprogram.py
How do i read this stream ? Any help would be appreciated. I... |
2018/03/09 | 2,101 | 8,272 | <issue_start>username_0: I have built a VSTO addin for Excel which refreshes a number of PowerQuery workbook connections. So as to avoid an error blocking the main thread causing a "Cartridge not loaded" error I have to run the main code in another thread.
I am doing this via Async method.
I also need this to work fro... |
2018/03/09 | 1,070 | 2,993 | <issue_start>username_0: In a case i have to send SMS with two whitespaces at the beginning of the message content as like below
```
setparam 3003:70eac;
```
This is for some device configuration. But while receiving the SMS it is
```
setparam 3003:70eac;
```
The whitespaces are gone.
This is how i send the SM... |
2018/03/09 | 5,663 | 18,926 | <issue_start>username_0: I am connecting MySQL - 8.0 with MySQL Workbench and getting the below error:
>
> Authentication plugin 'caching\_sha2\_password' cannot be loaded:
> dlopen(/usr/local/mysql/lib/plugin/caching\_sha2\_password.so, 2): image
> not found
>
>
>
I have tried with other client tool as well.
... |
2018/03/09 | 5,846 | 19,237 | <issue_start>username_0: I have a table in Postgres
```none
| ID | TIME |
| 1 | 2018-01-01 01:01:00 |
| 2 | 2018-01-01 01:02:00 |
| 3 | 2018-01-01 01:03:00 |
| . | ........ |
| 61 | 2018-01-01 02:01:00 |
| 62 | 2018-01-01 02:02:00 |
```
I need to query all `ID` where `TIME` start... |
2018/03/09 | 5,678 | 18,984 | <issue_start>username_0: I'm using this plugin called WC Fields Factory. I have a datePicker on my "Single product" page on woocommerce so people can book in. I am trying to disable 48 hours (minDate:2) but I can't seem to make it work. I've tried so many examples, does anyone know how to make this work?
Example: If i... |
2018/03/09 | 818 | 2,600 | <issue_start>username_0: How to convert a string like 1/4 from a text box to numeric in javascript.
```
var text=DOCUMENT.getElementsByName('inputText')[0].value;
```
**How to convert text to numeric?**<issue_comment>username_1: you could use `eval()` method for this:
```js
var text = document.getElementsByName('... |
2018/03/09 | 445 | 1,461 | <issue_start>username_0: [Ask]
anyone know the reference for a case like this?
the user must type the word: "learn" -> total character 5
while the user types instead: "l3arn"
well I want to count the right word only, so the result 4
from google not yet find a solution, maybe someone knows the keyword/reference for t... |
2018/03/09 | 569 | 1,779 | <issue_start>username_0: When I tried to use `pyinstaller` to package my `pysnmp` based code to exe file, I met the same problem as described in [PyInstaller does NOT work when including Pysnmp](https://stackoverflow.com/questions/32944919/pyinstaller-does-not-work-when-including-pysnmp/49194434#49194434)
However, afte... |
2018/03/09 | 718 | 2,546 | <issue_start>username_0: I'm trying to encrypt a message using AES256 on the browser, send it to the server, and then decrypt it but I keep getting this error server-side :
`error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt`
I tried for hours to find a solution but I don't see where is the issu... |
2018/03/09 | 716 | 2,824 | <issue_start>username_0: I have a `UITableView` with 2 sections each of which contains one cell. These cells contain `UICollectionView`s. These collection views are of different types. Trying to follow the MVC design pattern, I make my `ViewController` a data source and a delegate of both `UITableView` and `UICollectio... |
2018/03/09 | 985 | 3,321 | <issue_start>username_0: I'm using SoapUI 5.4.0 in my MacBook Pro with macOS High Sierra (10.13.3).
The application works very slow (especially the graphics) and sometimes it hang on and I need to force restart.
Can someone help me?<issue_comment>username_1: Suggest you to increase the heap size for the tool. [Here... |
2018/03/09 | 1,036 | 2,490 | <issue_start>username_0: i have a problem with the `which()` function in r.
got an numeric vector [1:349] with different values. But i want to classify them so there are just 4 values.
My idea was the following:
```
KlasFehl <- GP$Fehlstunden #the numeric vector
KFehl30 <- which(KlasFehl == 1|
KlasFehl ... |
2018/03/09 | 1,261 | 4,391 | <issue_start>username_0: I'm trying to use the Java Pattern and Matcher to apply input checks. I have it working in a really basic format which I am happy with so far. It applies a REGEX to an argument and then loops through the matching characters.
```
import java.util.regex.Pattern;
import java.util.regex.Matcher;
... |
2018/03/09 | 4,678 | 15,383 | <issue_start>username_0: We have a table that saves information about the interval of the employees. Let's call it INTERVAL\_TABLE.
We save when the user starts a interval and when he finishes. The user can start a interval as many times as he wants and finish as many times as he wants as well.
This is a simplified s... |
2018/03/09 | 4,403 | 14,363 | <issue_start>username_0: I want to build a line graph, and I have missing dates in my data. I would like to get value 0 for the missing dates.
With the option `'Show Missing values'`, all dates are shown in the graph. But the missing dates do not have any values but they appear and the line passes over them.
Values... |
2018/03/09 | 4,529 | 14,747 | <issue_start>username_0: I want to group data (using Northwind as an example) by Order.CustomerID.
IN SQL it looks like this :
```
Select
o.CustomerID,
SUM(od.Quantity * od.UnitPrice * (1-od.Discount))
FROM Orders o INNER JOIN [Order Details] od ON o.OrderID = od.OrderID
GROUP BY o.CustomerID
```
How do I loa... |
2018/03/09 | 766 | 2,487 | <issue_start>username_0: So, what i mean with explode is like this, i want to transform some dataframe like :
```
ID | Name | Food | Drink
1 John Apple, Orange Tea , Water
2 Shawn Milk
3 Patrick Chichken
4 Halley Fish Nugget
```
into this dat... |
2018/03/09 | 671 | 2,181 | <issue_start>username_0: I want to read JSON array
```
"connectTo":[
{
"url": "wss://localhost/opt/siml"
}
],
```
from JSON string :
```
{
"cluster":{
"enabled":"true",
"clusterName":"cluster0",
"simlURL":"wss://localhost:5443/opt/siml"
},
"simlFieldWatchUrl":"fieldwatchholder.j... |
2018/03/09 | 1,107 | 3,885 | <issue_start>username_0: I have a json object which contains a list of coordinates which represent a board and another pair of coordinates to represent another point (a turtle in my case).
I can render the board alright but I can't figure out how to render the turtle.
Do I need to use something like:
```
ang_element... |
2018/03/09 | 1,741 | 4,433 | <issue_start>username_0: I've got a list of names of phone numbers, which I want to group by name, and bring them from a long format to a wide one, with the phone number filling across the columns
>
>
> ```
> Name Phone_Number
> <NAME> 0123456
> <NAME> 0123457
> <NAME> 0123458
> <NAME> ... |
2018/03/09 | 921 | 3,537 | <issue_start>username_0: Automating an insurance application. Writig TestNG assertions for selenium web driver tests to verify the start date of the policy, which is by default today's date.
But in some cases it can be tomorrow's date depending on insurers and schemes. I want to include this in the assertion. But I w... |
2018/03/09 | 552 | 2,178 | <issue_start>username_0: I am running into a small problem, I implemented the new iOS 11's style search bar in my app, and I noticed that it disappeared with a slightly different animation from the one in Messages for example. It's faster and less smooth.
Anyone has ever stumble upon this "problem" ?
Here is the co... |
2018/03/09 | 1,014 | 3,757 | <issue_start>username_0: Basically I want to have an arrow image that rotates in order to direct the user to a nearby location. i'm using core location heading data to get direction information, the code for this is bellow.
```
func locationManager(_ manager: CLLocationManager, didUpdateHeading newHeading: CLHeading)... |
2018/03/09 | 1,531 | 5,745 | <issue_start>username_0: Used "<https://github.com/leecrossley/cordova-plugin-jailbreak-detection>" but still it didn't check the JAILBROKEN since Cydia and other options were bypassed in latest 11+ iOS versions
How to handle latest iOS using Cordova or in native code ?<issue_comment>username_1: **Update 2021:**
You c... |
2018/03/09 | 1,824 | 7,338 | <issue_start>username_0: Consider the following pseudo code:
```
public class SomeComponent
{
private List \_foos = new List();
public void Start()
{
for (int i = 0; i < 5; i++)
{
var foo = new DisposableFoo();
var bar = new DisposableBar(); <-- EXPLICIT DISPOSE NEEDED?
foo.SomeFunc = x => bar.DoSomethingW... |
2018/03/09 | 1,320 | 4,682 | <issue_start>username_0: I use the lib jackson-module-kotlin to parse string of json into object.
My issue is when I parse a string into an enum , and when I launch with intellij, I have this stack trace:
>
> Caused by: kotlin.reflect.jvm.internal.KotlinReflectionInternalError:
> Reflection on built-in Kotlin types... |
2018/03/09 | 777 | 1,788 | <issue_start>username_0: Trying to convert a plain URL text into a valid link.
The problem I have is that my link might contain ***both*** **English** (A-Z/a-z) and **Hebrew** (אבגדהוזחטיכךלמםנןסעפףצץקרשת) letters.
Using PHP's `urlencode()` function I was able to get the correct format for Hebrew, yet I cannot find t... |
2018/03/09 | 780 | 3,411 | <issue_start>username_0: EDIT: Realized and solved the problem on my own. Thank you.
Please bear with me it's actually my first time using Android Studio and Stackoverflow. What I am trying to make is a music player, there are 2 activities. In the second activity when the user taps the play button, the music plays. If... |
2018/03/09 | 594 | 1,878 | <issue_start>username_0: I am newbie at C++. I have created the following structure and typedefs for them in a header:
**Structures.h**
```
#pragma once
#include
struct CITIES
{
int nId;
int nUpdateCounter;
CString strCityName;
CString strCityRegion;
};
struct PERSONS
{
int nId;
int nUpdateCounter;
CString ... |
2018/03/09 | 779 | 2,937 | <issue_start>username_0: Firebase Cloud functions giving an error called.
```
Error: Server Error
The server encountered an error and could not complete your request.
Please try again in 30 seconds.
```
When I try to re-deploy, it gives following error.
```
Error setting up the execution environment for your func... |
2018/03/09 | 612 | 2,124 | <issue_start>username_0: Just was wondering if there is a way to improve the performance of reading large csv files into a pandas dataframe. I have 3 large (3.5MM records each) pipe delimited file which I want to load into dataframe and perform some task on it. Currently I am using `pandas.read_csv()` defining the cols... |
2018/03/09 | 278 | 1,132 | <issue_start>username_0: I understand `style="display: none"` hides an HTML element, and `style="display: block"` displays a block-level HTML element.
I saw some historic code using `style="display: "`, which also displays the element.
What's the difference between `style="display: block"` and `style="display: "`?<... |
2018/03/09 | 1,020 | 2,838 | <issue_start>username_0: I put brand on center navbar and i want to have navigation to left side and navigation to right side. All this work good but i have question how to align left and right navigation center like on screenshot belowe.[](https://i.s... |
2018/03/09 | 591 | 1,956 | <issue_start>username_0: i need to prepend value in typescript objects array
Example if array is
```
[
{'title':'this is post title1','content':'this is post content1'},
{'title':'this is post title2','content':'this is post content2'},
{'title':'this is post title3','content':'this is post content3'},
... |
2018/03/09 | 1,378 | 6,288 | <issue_start>username_0: I am working on a web project for which data access layer is based on ADO.NET (for fastest execution). There are some very large SQL queries in the project which are written inline in C# code. I was wondering if I can move those queries somewhere more elegantly to reduce some mess but am unsure... |
2018/03/09 | 687 | 2,551 | <issue_start>username_0: This is my first post on this forum so any tips on how to make the question more understandable/readable and so on is appreciated.
**What am I doing?**
I am making my first app using Xamarin Forms, and I have two projects, PCL (Portable Class Library) and Android. My Android project receives ... |
2018/03/09 | 561 | 1,966 | <issue_start>username_0: Trying to encode the text output received after parsing HTML data through BeautifulSoup library in Python 3. Getting following error:
>
> ----> gmtext.encode('ascii', errors='replace').replace("?", "")
>
>
> TypeError: a bytes-like object is required, not 'str'
>
>
>
Here is the code im... |
2018/03/09 | 1,655 | 5,679 | <issue_start>username_0: I am struggling with querying a JSON column that contains data from an external system.
Consider the following test data:
```
create table foo
(
foo_id integer primary key,
payload clob,
constraint ensure_json CHECK (payload IS JSON)
);
insert into foo values (1, '{"data"... |
2018/03/09 | 574 | 2,074 | <issue_start>username_0: How can I add and use font awesome in my new gulp-scss-bootstrap project? What is the clean and right way to do it? Thanks.<issue_comment>username_1: Install font awesome using NPM. You can add it to your package.json:
```
"devDependencies": {
"bootstrap": "latest",
"font-awesome": ... |
2018/03/09 | 628 | 2,215 | <issue_start>username_0: I have a list of objects where each object is having Id and status.
How can I find distinct number of ID's which are having all the status as 'R'?
For example:
Id Status
5 R
1 S
5 R
2 R
1 R
5 R
In this case count of ID =2 because ID(5 and 2) are having status 'R'<issue_comment>username_1: Inst... |
2018/03/09 | 277 | 970 | <issue_start>username_0: I have a comment form and I want to hide that comment form from the
author of the post. I want author not to be able to comment their own posts.
```
### Add a Comment
<%=simple_form_for([@post,@post.comments.build]) do |f| %>
<%= f.text_area :content,:maxlength=>"6000", label: ".",:... |
2018/03/09 | 786 | 2,741 | <issue_start>username_0: I've been fiddling around with this for a while, but can't really make it work as supposed to... So, I would like to close the navigation when I click outside the toggle button, I have tried few solutions with stopPropagation() but didn't really understand how it works. Could someone please pro... |
2018/03/09 | 702 | 2,653 | <issue_start>username_0: I have trained a keras sequential model in a linux 64 machine and saved to a .h5 file.
It this PC I can load the model and do predictions without problems.
Now I'm implementing the prediction in a Raspberry Pi 3 that have installed keras, tensorflow, h5py and python3.
when I load the model
... |
2018/03/09 | 406 | 1,288 | <issue_start>username_0: To print only names of files which match search there is:
`ag -l`
What should I use if I want to grep only through files from list? Or maybe is it possible to chain searches in this way?<issue_comment>username_1: Use std input redirection:
```
ag "SEARCH_PATTERN" < file1, file,2, file3...
... |
2018/03/09 | 653 | 2,381 | <issue_start>username_0: I have clicked a edit button in a webpage and verifying the page loading symbol which will not display all the times. Once page is loaded, loading symbol will get disappeared and my next screen will be displayed with Submit button.
Below script works, when page loading symbol is displayed afte... |
2018/03/09 | 548 | 1,621 | <issue_start>username_0: Suppose I have a tuple of `hana::integral_constant`s like so:
```
auto tuple_of_int_const = hana::make_tuple(hana::integral_constant(),
hana::integral\_constant());
```
I am trying to now produce a constexpr tuple of ints from this like so:
```
constexpr auto constexpr_tuple = hana::make_t... |
2018/03/09 | 936 | 1,975 | <issue_start>username_0: Hi I currently have an output of:
>
> 'root:$6$aYGtvxKp/bl6Fv2y$sdZ3FbdJYQlP8VcfFZT.Y67We5EQmqcHW4I9Gl/3pXp8v4.nu9qMIEkmOcdRuD0lBTvEtnMHosEo7OEaYgG4E0::0:99999:7:::\nbin:*:17110:0:99999:7:::\ndaemon:*:17110:0:99999:7:::\nadm:*:17110:0:99999:7:::\nlp:*:17110:0:99999:7:::\nsync:*:17110:0:99999:... |
2018/03/09 | 847 | 3,050 | <issue_start>username_0: When i use this code:
```
php
require_once "vendor/autoload.php";
$config = ...;
use FacebookAds\Api;
use FacebookAds\Object\Page;
Api::init(
$config['facebook']['app_id'], //APP_ID
$config['facebook']['app_secret'], //APP SECRET
$config['facebook']['app_access_token'] //Token... |
2018/03/09 | 1,218 | 4,644 | <issue_start>username_0: **Python 3.6**
I want to take all input from a subprocess which I run with the `subprocess` module. I can easily pipe this output to a log file, and it works great.
But, I want to filter out a lot of the lines (lots of noisy output from modules I do not control).
### Attempt 1
```
def run_c... |
2018/03/09 | 1,197 | 4,362 | <issue_start>username_0: I have a problem when trying to read the content of two .CSV files with VBA. Both files are structured like this:
```
```
When I use `Workbooks.Open(Filename:=FILEPATH, ReadOnly:=True)` but I do not get the same format inside the files.
This is what I read in the first file: everything is i... |
2018/03/09 | 419 | 1,200 | <issue_start>username_0: I am trying to show my local image into html using react.
[](https://i.stack.imgur.com/7R8yL.png)
I have app.js which is calling Header component.
[](https://i.stack.imgur.com/ue... |
2018/03/09 | 494 | 1,670 | <issue_start>username_0: I am getting a date string from server in the format of "March 08, 2018 16:00:00 PST" **where there is a lot of whitespace between Month & Date**.
My intention is to basically remove those extra whitespaces. My idea is that- I will convert the string into Date object, and then convert back to ... |
2018/03/09 | 488 | 1,906 | <issue_start>username_0: I have a simple application with embedded tomcat. And I trying to do some initialization work and I need JNDI resources.
I trying to do it in `ServletContextListener.contextInitialized`.
When I add `ServletContextListener` before `tomcat.start()`, `context.getServletContext()` returns `null`.... |
2018/03/09 | 1,265 | 4,453 | <issue_start>username_0: I have a plugin, [cordova-plugin-datecs-printer](https://github.com/giorgiofellipe/cordova-plugin-datecs-printer), and I can print some strings with it on a thermal printer. The problem is that I'm not able to print large numbers of strings this way I'm coding. I have already been informed by t... |
2018/03/09 | 1,087 | 2,716 | <issue_start>username_0: I run node.js app localy with this command:
```
$ node --icu-data-dir=node_modules/full-icu app.local.js
```
How to specify icu-data-dir in AWS Lambda environment?
Thanks<issue_comment>username_1: As pointed in the [node.js docs](https://nodejs.org/api/intl.html), you can also use an enviro... |
2018/03/09 | 1,213 | 3,068 | <issue_start>username_0: I am using this command to capture time taken by cURL command:
```
time curl -v -k http://10.164.128.232:8011/oam/server/HeartBeat >> abc.txt
```
This leaves abc.txt blank. I further tried this:
```
time curl -v -k http://10.164.128.232:8011/oam/server/HeartBeat 2>> bcde.txt
```
I was ex... |
2018/03/09 | 407 | 1,241 | <issue_start>username_0: I want to find the max and min for each Gene in the following table.
I know, that the following function gives the max (or min), but I could not manage to get both at the same time.
```
tapply(df$Value, df$Gene, max)
```
Appreciate!
Small test set:
```
df <- read.table(header = TRUE, text ... |
2018/03/09 | 593 | 1,589 | <issue_start>username_0: >
> S1C(SCC1)C1=COC2C(C{OC}C3C(OC=C3)C2)C1=O
>
>
>
In the above string, I want the program to ignore **{OC}** or technically anything in between these flower brackets but work normally with rest of the string. I have a file which thousands of such strings. Some strings have more than one s... |
2018/03/09 | 801 | 2,664 | <issue_start>username_0: I have a large range that I need to find all numbers that is between four and six digits long.
I know I can use regex for this but I don't want to loop each cell and check them all.
What I need is kind of selecting the range copy and paste in notepad and copy back to a variable.
This wa... |
2018/03/09 | 715 | 2,303 | <issue_start>username_0: I have an excelsheet with dropdown answer from cell D8 and down in D. The choices are "Medium", "High", and "Very high". Im trying to figure out a way to do the following:
>
> 1) If D8 is medium leave the cell N8 empty
>
> 2) If D8 is High then
> write irrelevant in N8
>
> 3) If D8 ... |
2018/03/09 | 517 | 1,948 | <issue_start>username_0: I want to access an object i created in a new class but it returns that the object " cannot be resolved".
thanks for anyone who helps:)
here is my code :
```
public class lion {
int weight;
int height;
String color;
double roardecibles;
public voi... |
2018/03/09 | 680 | 2,568 | <issue_start>username_0: I have this Linq
```
var company = db.Companies.Where(x => x.id == Id).Select(x => new Company
{
Id = x.id,
Description = x.Description,
Website = x.Website,
Zip = x.Zip,
Actions = db.Actions.Where(a => a.UserCompanyId == Id).... |
2018/03/09 | 519 | 1,734 | <issue_start>username_0: My problem is that I want to replace y with x using gsub(), but not for all observations, I want to replace observations in y only with the following observations in x: keyword1 and keyword2.
My cols do not contain NA or missing values.
What I have
```
x =c('this', 'is', 'some', 'keyword1... |
2018/03/09 | 628 | 1,882 | <issue_start>username_0: I have 261 pickled dictionary objects ( `task_0.pkl, task_1.pkl ,...`)
I want read them. I have tried
```
c=[]
for i in range(261):
with open('result_20140213/task_%i.pkl' %i , 'rb') as handle:
c.append(pickle.load(handle))
```
It gives
```
-----------------------------------... |
2018/03/09 | 766 | 2,533 | <issue_start>username_0: I would like to bind a C++-function with PyBind11. The problem is that this functions has an argument with a double pointer and the compiler raises an error
`error: cannot initialize a parameter of type 'char **' with an rvalue of type 'typename make_caster::cast\_op\_type::type>' (aka 'char ... |
2018/03/09 | 1,792 | 5,223 | <issue_start>username_0: I am using a Microchip microcontroller which defines the following union:
```
__extension__ typedef struct tagT1CONBITS {
union {
struct {
uint16_t :1;
uint16_t TCS:1;
uint16_t TSYNC:1;
uint16_t :1;
uint16_t TCKPS:2;
uint16_t TGATE:1;
uint16_t :6... |
2018/03/09 | 403 | 1,301 | <issue_start>username_0: I have some JavaScript code that currently gets the URL of a website, splits the URL to a particular string and stores it in a variable
I then have an `if` statement which, depending on that string, will add a class to my links. However, I'm struggling to assign a class to the `li` parent, in ... |
2018/03/09 | 309 | 1,047 | <issue_start>username_0: How can I read VAKCR table data (Sales Index: Orders in Credit Management) which does not exist on S/4HANA using SQLScript?
I have to convert an ABAP code block where data is queried from VAKCR table.
Since this table is removed on S4, I cannot read it directly from VAKCR index table.<issue_co... |
2018/03/09 | 1,306 | 2,750 | <issue_start>username_0: Trying to do some data analysis on a data frame of example customers (EC) and looking to determine which customers are being shipped to from more than one warehouse (DC).
The end state goal is comparing the name of the EC to the DC and determining if there are EC's with more than one DC mapped... |
2018/03/09 | 1,986 | 5,222 | <issue_start>username_0: I have some 38 csv files in a folder of with rainfall data for multiple years as follows:
Precp\_1980.csv
Precp\_1981.csv
Precp\_1982.csv
Precp\_1983.csv
.
.
.
Precp\_2017.csv
A leap year file looks like this:
```
Precp_1980 <- data.frame(matrix(runif(366*11299,min = 0, max = 4), ncol =... |
2018/03/09 | 840 | 2,726 | <issue_start>username_0: Given the follow sample data:
```
CREATE TABLE People(PeopleID int, Name varchar(10))
INSERT INTO People VALUES(1, 'Chris')
INSERT INTO People VALUES(2, 'Cliff')
INSERT INTO People VALUES(3, 'Heather')
CREATE TABLE Things(ThingID int, ThingName varchar(10))
INSERT INTO Things VALUES(14, 'Bike... |
2018/03/09 | 504 | 1,853 | <issue_start>username_0: In a working app, I'm trying to implement unaccent query.
```
pg-gem version 0.21
postgresql version 9.5/9.6
rails version 4
```
I first create/enable the extension here is the migration:
```
def up
execute 'CREATE EXTENSION IF NOT EXISTS unaccent'
end
def down
execute 'DROP EXTENSIO... |
2018/03/09 | 645 | 2,544 | <issue_start>username_0: I am attempting to write my first Powershell module, but I have come across an issue I am not able to solve.
I have a logging function in the module which looks as follows:
```
function Write-Log {
[cmdletbinding()]
param(
[switch]$Success,
[switch]$Error,
[swi... |
2018/03/09 | 640 | 1,882 | <issue_start>username_0: I am sitting here for hours to find out how I can disable the debug output of stomp.js.
I am actually getting this output in development + production environment:
```
Web Socket Opened...
webstomp.js?afe9:238 >>> CONNECT
accept-version:1.2,1.1,1.0
heart-beat:10000,10000
�
webstomp.js?afe9:23... |
2018/03/09 | 445 | 1,514 | <issue_start>username_0: I am running a magento store and getting issues with PayPal. Payments are being taken but no order is created.
I am getting this error in the log:
```
main.CRITICAL: Exception: Wrong order ID: "000002353". in /domains/domain.co.uk/http/vendor/magento/module-paypal/Model/Ipn.php:140
```
The ... |
2018/03/09 | 628 | 2,016 | <issue_start>username_0: I have used the below media query CSS code but in iPad Pro 12.9 it's not working somehow. Below is the code:
```
/* Landscape */
@media only screen
and (min-device-width : 1024px)
and (max-device-width : 1366px)
and (orientation : landscape) {
}
/* Landscape */
@media only screen
... |
2018/03/09 | 399 | 1,515 | <issue_start>username_0: I create a setup with WiX Toolset which use UAC.
I must check programmatically if Windows User is a Content Manager of Reporting Services instance because the windows user must can
* publish, update and delete reports, folder and datasource
* add new role to other windows accounts
I have:
*... |
2018/03/09 | 2,863 | 7,398 | <issue_start>username_0: I already have a working code, but I would like to improve it (if there is a better way).
Here is an example of a data structure that this code is processing:
```
{u'error': [],
u'result': {u'T2JJER-DDEER-A3C45R': {u'cost': u'101.48810',
u'fee': u'0.2740... |
2018/03/09 | 1,797 | 4,708 | <issue_start>username_0: I have an [example schema](http://sqlfiddle.com/#!18/0f794/1) in `SQL server`. The abbreviated form is as follows:
```
date group value
2017-01-01 a 10.00
.
.
2017-01-08 a 15.00
2017-01-01 b 10.00
.
.
2017-01-08 b 15.00
2017-01-01 c 10.00
.
.
2017-01-... |
2018/03/09 | 1,968 | 6,967 | <issue_start>username_0: I'm new to PHP and OOP, I am building methods in order to gather articles from an articles database, my method will receive three parameters: $limit, $category, $order. I think this are self explanatory, however I have a few issues.
-What happens if one of the arguments is missing, will the me... |
2018/03/09 | 824 | 2,995 | <issue_start>username_0: This may be a very rare scenario, but I ended up with a problem and not finding any solution.
I have a WebAPI controller written with MVC WebAPI in C#. I have a post method which receives the custom object.
```
[HttpPost]
public HttpResponseMessage SendEmail([FromBody]Email email)
{
}
```
... |
2018/03/09 | 831 | 2,680 | <issue_start>username_0: I have a simple chronometer/ stopwatch in c++. Here is the source code:
```
#include
#include
#include
int main(){
using namespace std;
//int hours,minutes,seconds=0;
int currHours=0,currMinutes=0,currSeconds=0;
clock\_t startTime = clock();
while(true){
currSeconds = (clock() - startT... |
2018/03/09 | 1,086 | 4,119 | <issue_start>username_0: I am new to the web Development. I do have an json obj which is like
```
$scope.jsonData = {
"messages": {
"A": [{
"missingFields": [{
"RESPONSIBILITY": ""
}],
"temporaryId": 2,
"messag... |
2018/03/09 | 1,179 | 3,397 | <issue_start>username_0: I have one table: **log**
```
+----+---------------------+---------------+
| ID | Time | Status |
+----+---------------------+---------------+
| 1 | 2016-07-19 03:20:12 | 200 OK |
| 2 | 2016-07-20 05:20:12 | 404 NOT FOUND |
| 3 | 2016-07-19 00:00:00 | 200 OK ... |
2018/03/09 | 194 | 660 | <issue_start>username_0: Is there any vue plugin that can allows us to use template variable in side tag in *Single File Components* for e.g.
```
{{ display }}
export default {
data(){
return { display: 'block' }
}
}
body {
display: {{ display }}
}
```
Any better way/plugin to do this??
*I already have... |
2018/03/09 | 249 | 897 | <issue_start>username_0: I added a sticky Header to my webshop, and it works fine with FF, Chrome, Edge.
In Safari (Windows 10) JavaScript is executed, the header is fixed and transformed - but not visible!
When the Cursor is on the positions of the Menu-Buttons the Tooltips/Link-Titles are showing, also I can use th... |
2018/03/09 | 389 | 1,236 | <issue_start>username_0: I have code that counting words frequency (top 3), but the result of the value is returned as a tuple.
Is there a way to improve this code?
```
result:
defaultdict(, {'first': [('earth', 2), ('Jellicle', 2),
('surface', 2)], 'second': [('first', 2), ('university', 2), ('north', 2)]})
from c... |
2018/03/09 | 1,260 | 3,980 | <issue_start>username_0: I am trying to plot two lists in python, one is `test1` and other is `predictions1` .
I wish to plot the first 150 entries of the `test1` list and then plot the entries 101- 150 of `predictions1` list, so that the two plots get superimposed on one another. Here is what I tried:
```
import mat... |
2018/03/09 | 1,377 | 4,649 | <issue_start>username_0: Is there a way to define the object for a post function in the schema of django rest framework?
I have a rest api view:
```
class DocumentView(viewsets.ModelViewSet):
...
queryset = Document.objects.all().order_by('pk')
serializer_class = serializers.DocumentSerializer
paginat... |
2018/03/09 | 869 | 2,777 | <issue_start>username_0: I would like to set color "white" to my react component (Navlink).
Home and logs link are always dark :(
The white color is never set.
I use Reacstrap, Bootstap 4.
I separate js with css
Here my code :
Sidebar.js
```
import React from 'react';
import { NavLink as RouterNavLink } from 'react-r... |
2018/03/09 | 670 | 2,313 | <issue_start>username_0: How can I stop the text from increasing its size and adding space within the text when it is highlighted and rendered in Internet Explorer?
I'm using Internet Explorer 11, and when I rendered the Adobe Designer form in other browser it works fine the text stays in place and keeps its original ... |
2018/03/09 | 636 | 2,203 | <issue_start>username_0: **EDIT : Thanks to @PedroFaria99, clear config cache solved the problem, but if anybody want to bring an explanation about the randomness aspect feel free.**
I have an issue with my laravel 5.5 local installation (production environnement isn't impacted). Here Laravel is used as an API and ser... |
2018/03/09 | 625 | 2,118 | <issue_start>username_0: I take the full realization of priority queue from [golang docs](https://golang.org/pkg/container/heap/#example__priorityQueue). I'm interesting in removing several elements at once like `heap.Remove(&queue, index1, index2, ...)`.
Now it can be done in the straightforward way:
```
for _, even... |
2018/03/09 | 500 | 1,921 | <issue_start>username_0: bash scripting noob here. I've found this article: <https://www.shellhacks.com/print-usage-exit-if-arguments-not-provided/> that suggests putting
`[ $# -eq 0 ] && { echo "Usage: $0 argument"; exit 1; }`
at the top of a script to ensure arguments are passed. Seems sensible.
However, when I ... |
2018/03/09 | 1,212 | 4,285 | <issue_start>username_0: I tried to install as suggested in this question ([Get Lua running with Torch on Windows 10 (with limited admin rights)](https://stackoverflow.com/questions/48277220/get-lua-running-with-torch-on-windows-10-with-limited-admin-rights)) with the build.cmd file. This was the result:
```
mingw32-m... |