date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/01 | 332 | 1,231 | <issue_start>username_0: I cannot push project to github, I have this message:
```
"Successfully created project 'SuperUpTest' on GitHub, but initial push failed: no current branch"
```
Attached image of commits
[](https://i.stack.imgur.com/Q06lF.png)
I need ... |
2018/03/01 | 834 | 3,326 | <issue_start>username_0: I'm trying to develop a project in accordance with MVP standarts. In the guide i followed, author created separate ViewHolder class. I tried to do the same, but Adapter refuses to work with separate ViewHolder.
There is 2 errors
>
> Cannot resolve symbol 'LessonCardView'
>
>
> 'onCreateVie... |
2018/03/01 | 531 | 2,135 | <issue_start>username_0: So, i'm asking cause i searched and didn't found nothing about this, i don't know if i'm only searching it wrong.
I'm building a POS (Point of Sale) for my final School work but instead off adding the buttons manually i wanted to make an interface for the admn where he could add the buttons to... |
2018/03/01 | 816 | 3,025 | <issue_start>username_0: I have a nested for loop, and am trying to make it so that the outer loop will only continue once the inner loop and its code is completed, and also add a 1 second delay before performing the next loop.
```
for _ in 0...3 {
for player in 0...15 {
// CODE ADDING MOVEMENT... |
2018/03/01 | 758 | 2,831 | <issue_start>username_0: ```
<#list orderItem.options as option>
|
${option.name} :
|
|
${option.value}
|
```
The above code(inside of html) is what I am using in order to loop through a list of options inside of an item. At the current moment it loops through all options and prints them all. Howeve... |
2018/03/01 | 725 | 2,572 | <issue_start>username_0: ```
static int counter;
int collatz(int n)
{
if(n==1)
return counter;
else if(n%2==0) //if n is even
{
counter += 1;
collatz(n/2);
}
else
{
counter += 1;
collatz(3*n+1);
}
}
```
I started with recursion. First I made a fact... |
2018/03/01 | 1,034 | 3,379 | <issue_start>username_0: Please have a look at below code
```
#include
int main(void){
int \*ptr,a,b;
a = ptr;
b = ptr + 1;
printf("the value of a,b is %d and %d respectively\n",a,b);
printf("the value of a is %d \n",(ptr));
printf("the value of b is %d \n",(ptr+1));
printf("the value of (ptr+1)-ptr is %d \... |
2018/03/01 | 4,125 | 8,058 | <issue_start>username_0: how can we render elements of a 2-D array to data table using mithil.js??
For table:
```
var dataSet = [
[ "<NAME>", "System Architect", "Edinburgh", "5421", "2011/04/25", "$320,800" ],
[ "<NAME>", "Accountant", "Tokyo", "8422", "2011/07/25", "$170,750" ],
[ "<NAME>", "Junior Tech... |
2018/03/01 | 272 | 1,180 | <issue_start>username_0: Is it possible redirect to external provider (in my case: AAD) from custom User service in `AuthenticateLocalAsync` method ?
External provider depends on local user.<issue_comment>username_1: `AuthenticateLocalAsync` will execute after username and password is provided by user.
What you need ... |
2018/03/01 | 653 | 2,317 | <issue_start>username_0: I am trying to load a file from `xcassets` to an `NSImage`, where the asset name is logo.
I tried this:
```
let logoIcon = NSImage(named: "logo")
```
But I keep getting this error:
>
> Cannot convert value of type 'String' to expected argument type 'NSImage.Name'
>
>
>
I have look... |
2018/03/01 | 1,233 | 4,736 | <issue_start>username_0: I have to populate a `TableView` with some data fetched with an `URLSession task`. The source is an XML file, so i parse it into the task. The result of parsing, is an array that i pass to another function that populate another array used by `TableView Delegates`.
My problem is that `TableView... |
2018/03/01 | 716 | 2,304 | <issue_start>username_0: I am running into an issue with MySQL python connection.
```
Traceback (most recent call last):
File "./expconfig.py", line 176, in
cnx = mysql.connector.connect(\*\*config)
File "/usr/lib/python2.6/site-packages/mysql/connector/\_\_init\_\_.py", line 179, in connect
return MySQLConnect... |
2018/03/01 | 450 | 1,687 | <issue_start>username_0: So I'm working on a class project, which is making a branching storyline game. Here's what I have:
```
System.out.println("Welcome to _____. \nThe way you play this game is by typing your response exactly as shown in the question.\n\nGood luck.\n\n\nYou wake up in a dark room. \nWhat would... |
2018/03/01 | 595 | 2,010 | <issue_start>username_0: I'm using a script to run Odoo11 via pycharm in ubuntu (openerp\_openserver script)
[](https://i.stack.imgur.com/1sG83.png)
When i try to run the program , it fails at some point , when it import pdf module and i have this error :
`ImportError N... |
2018/03/01 | 423 | 1,585 | <issue_start>username_0: I'm having trouble with mouse click event in a timer in c#.
My timer's interval is 100 and set on True, i want to make action each 100 ticks and indentify the type of click in. I want to play the action each 100 ticks when a mouse is pressed, but this only plays one time.
EDIT: I don't want to... |
2018/03/01 | 673 | 2,133 | <issue_start>username_0: Is there any example how to call `AddListMembersList`? I tried with:
```
let data = {
"MemberIds": [500aa55d-f0c2-e711-80ca-005056bb6cde, 500aa55d-f0c2-e711-80ca-005056bb6cd, 500aa55d-f0c2-e711-80ca-005056bb6cde]
};
http.post(this.baseUrl + 'lists(770aa55d-f0c2-e711-80ca-005056bb6cde)/... |
2018/03/01 | 656 | 2,525 | <issue_start>username_0: I had one table that I want drop. That table use something around 130GB. When I start drop/truncate that table, mysql server slowdown and I get a lot of issues about users using that service.
How can I drop a large table without affect mysql performance?
I already tried create a new table lik... |
2018/03/01 | 607 | 2,383 | <issue_start>username_0: In the database I'm working on there's a string like this
```
1-Test Response|9-DNC|
```
This can have up to 9 pipe delimited items.
What I'm looking for advice on is the best possible way to take this string and turn it into an array with the number as the key and the string as the value.... |
2018/03/01 | 535 | 2,365 | <issue_start>username_0: i am traying to figure it out how is the best way to deploy a TCP/IP and UDP service on Amazon AWS.
I made a previous research to my question and i can not find anything. I found others protocols like HTTP, MQTT but no TCP or UDP
I need to refactor a GPS Tracking service running right now in ... |
2018/03/01 | 643 | 2,409 | <issue_start>username_0: I don't think what I want is anything special, I just cant get my head round how to do it. I have an array of objects -
```
{
"year": 2016,
"some stuff": "bla0",
"other stuff": 20
},
"year": 2017,
"some stuff": "bla1",
"other stuff": 21
},
"year": 2016,
"some... |
2018/03/01 | 1,100 | 3,877 | <issue_start>username_0: I have a pipeline stored as a template. I'm using the node.js client to run this pipeline from a cloud function. Everything works fine, but when I need to run this template from different regions I get errors.
According to the documentation, I can set it through the location parameter in the ... |
2018/03/01 | 3,355 | 12,122 | <issue_start>username_0: Goal:
Periodic update of parent (screen) class / UI from child (boxlayout) class. The`conf2.dat` is occasionally updated (from various other screens), and I want the UI to update every 5 seconds or so by re-running this class.
Latest code update:
1. In the `__init__` function, I have `Clock... |
2018/03/01 | 1,131 | 3,358 | <issue_start>username_0: Hello i need expert advice for my mysql query
I'm trying to filter values between 2 months
If start day lower then end day of different months all working well
But if i try higher day value on start return none
this is working code
```
SELECT id, teslim_tarihi AS tarih, toplam, marka, mode... |
2018/03/01 | 646 | 2,232 | <issue_start>username_0: I actually need to disable autoplay on a vimeo iframe embed on a drupal 6 website.
I can't change this settings in the embedmedia module, so I need to use jQuery to do this.
This is the original "src" vimeo content:
```
```
I override the height and width attributes with jQuery already.
S... |
2018/03/01 | 1,255 | 3,787 | <issue_start>username_0: I'm trying to create a button out of a single html element. The button needs to have a toggle slider and the text needs to be aligned vertically and horizontally. So I thought I can make use of `:before` element to help me make that happen. Here is what I have tried:
```css
div {
width: 140... |
2018/03/01 | 567 | 2,366 | <issue_start>username_0: Assuming you have the following spring configuration:
```
@Configuration
public class Config {
@Bean
public SomeBean someBean() {
SomeBean someBean = new SomeBean();
someBean.setVar("foobar");
return someBean;
}
}
```
Then I can use this configuration in s... |
2018/03/01 | 242 | 839 | <issue_start>username_0: How to make in-app browser in react-native?
Basically we are opening our website in default browser like so `Linking.openUrl`.
But i need to implement in-app browser ( Web Page within an app ).
How do i can do it? [](https://i.stack.imgur.c... |
2018/03/01 | 690 | 2,344 | <issue_start>username_0: I'm using wpDataTables plugin on my WordPress website to draw some tables and charts. The charts are rendered using Chart.js. The developers of the plugin created a custom script to control some more aspects of Chart.js than the plugin can handle out of the box.
That's the script:
```
jQuery... |
2018/03/01 | 490 | 1,916 | <issue_start>username_0: I have a sync job (in Node.js) which has to process several hundred of documents in one batch. For each of them also perform several tasks. As usually, after deployment, such job will become a blackbox: without propper logging it is impossible to find a problem.
Therefore, I log any reasonable... |
2018/03/01 | 303 | 938 | <issue_start>username_0: How to achieve that regex should let at most eight characters but ignore "-" (minus) sign? So for example "1234-5678" should pass, but "123456789" don't. This solution doesn't work for me:
```
^(([\d\w]{0,8})|([\d\w-]{0,9}))$
```<issue_comment>username_1: By *...should let at most eight chara... |
2018/03/01 | 967 | 3,748 | <issue_start>username_0: I am trying to monitor both total queue depth and DeadLetterMessages queue depth from an ASP.NET Core 2.0 console application. I have seen references to using the NamespaceManager class, something like this:
```
var ns = NamespaceManager.CreateFromConnectionString(sbConnectionString);
var queu... |
2018/03/01 | 642 | 2,369 | <issue_start>username_0: I'm trying to create a bash script that basically calls/executes another program, sleeps 5 seconds, kills the said program, sleeps again for 5 seconds before ultimately restarting the whole cycle.
Here's my attempt of creating the script:
```
#! /bin/bash
while true
do
someOtherProgram -opt... |
2018/03/01 | 2,816 | 10,513 | <issue_start>username_0: How I can disable this message that shows when Powershell starts?
The message is:
>
> Loading personal and system profiles took xxx ms
>
>
>
I know it shows when profile loading time is slow.
However I have satisfied my profile loading time.
Is there any way to disable this message?
... |
2018/03/01 | 2,373 | 8,244 | <issue_start>username_0: I'm trying to send a POST request to an API with an image in the request. I'm doing this with the request module but everything I try it isn't working. My current code:
```
const options = {
method: "POST",
url: "https://api.LINK.com/file",
port: 443,
headers: {
"Author... |
2018/03/01 | 1,530 | 5,302 | <issue_start>username_0: I want to configure Jackson instead using DateTimeFormat.ISO.DATE every time when I'm requesting a date for example:
```
@RequestMapping(value = "income")
public ResponseEntity calculateIncome(
@RequestParam(value = "companyName") String companyName,
@DateTimeFormat(iso = DateTim... |
2018/03/01 | 716 | 2,547 | <issue_start>username_0: Webpack 4 comes with the following statement:
>
> Error: `webpack.optimize.UglifyJsPlugin` has been removed, please use `config.optimization.minimize` instead.
>
>
>
Fair enough, but I cannot find any information about configuring the UglifyJsPlugin instance running under the hood, for ex... |
2018/03/01 | 1,052 | 3,599 | <issue_start>username_0: I have the following list:
```
['a', 'b', 'c']
```
I'm looking into a way to generate all possible strings that contain these characters with the following restrictions:
* a character may not occur multiple times (`aab`, `aba`, `abca` etc. is invalid)
* a character may be excluded (`ab` is ... |
2018/03/01 | 648 | 2,120 | <issue_start>username_0: A simple question, how can I export the data from the history server?. I want to export only the main page, that has the general info of all the applications.
App ID, App Name, Started, Completed, Duration, Spark User, Last Updated
My goal is to create a CSV with the same structure.
Regards!... |
2018/03/01 | 773 | 2,478 | <issue_start>username_0: I need to change the subject line of 1000s of emails in my drafts.
Here is the code I'm using but it's not changing the subject line. Could someone please let me know what I'm missing.
```
Sub Drafts_Send()
Dim objDrafts As Outlook.Items
Dim objDraft As Object
Dim strPrompt As String
Dim nR... |
2018/03/01 | 684 | 2,427 | <issue_start>username_0: I am trying to add button to copy simple text string but without success.
```js
function kopiraj() {
var copyText = document.getElementById("toCopy");
copyText.select();
document.execCommand("Copy");
document.getElementById("telefon").innerHTML = 'Copied';
}
```
```html
Copy
`... |
2018/03/01 | 750 | 2,555 | <issue_start>username_0: In index.html i add script and create object
```
let dkrm = new Darkroom('#ocrImg', {
// Size options
minWidth: 800,
minHeight: 800,
maxWidth: 1000,
maxHeight: 900,
ratio: 4/3,
backgroundColor: '#fff',
});
```
but now i try use this Darkroom in some component in Angular ts file
I... |
2018/03/01 | 408 | 1,400 | <issue_start>username_0: I have Nifi cluster with one zookeeper node and five Nifi node. I want to have SSL encryption from the zookeeper server to the Nifi client.
Reading from the [Nifi documentation](https://nifi.apache.org/docs/nifi-docs/html/administration-guide.html#securing_zookeeper "Securing Zookeeper"), it sa... |
2018/03/01 | 917 | 3,107 | <issue_start>username_0: I'm learning PHP and the Laravel framework and i'm getting stuck on loading some data from the database.
I have 2 models, Game and Player
Player model (curently empty):
```
class Player extends Model
{
}
```
Game model:
```
class Game extends Model
{
public $Players = [];
public... |
2018/03/01 | 1,057 | 2,686 | <issue_start>username_0: I want to remove duplicate lines in wget output.
I use this code
`wget -q "http://www.sawfirst.com/selena-gomez" -O -|tr ">" "\n"|grep 'selena-gomez-'|cut -d\" -f2|cut -d\# -f1|while read url;do wget -q "$url" -O -|tr ">" "\n"|grep 'name=.*content=.*jpg'|cut -d\' -f4|sort |uniq;done`
And out... |
2018/03/01 | 2,547 | 7,349 | <issue_start>username_0: I'm developing a Python tool which uses a sqlite3 virtual table with [FTS5](https://sqlite.org/fts5.html) (Full Text Search). I would like to know how to properly install from a tarball (or any other means) the needed requirements for my tool to work so I can pack them for portability.
Current... |
2018/03/01 | 356 | 1,066 | <issue_start>username_0: I would like to align three div in one line with a little space between first div and second div and last div using bootstrap as you see in the picture :
[](https://i.stack.imgur.com/iJcEL.png)
I try with this code :
```
... |
2018/03/01 | 1,150 | 2,719 | <issue_start>username_0: I'm sure this question has been asked numerous times before but alas I cannot find the correct answer. I'm trying to plot really simple code however when it executes the final result is just an empty graph. Code below:
```
import math
import matplotlib.pyplot as mpl
import numpy as np
Q = 13.... |
2018/03/01 | 557 | 1,746 | <issue_start>username_0: I got this xml\_nodeset (I don't even know if that's the correct term) from a economic calendar table over at forexfactory.com:
```
44.7 |
-1.1% |
```
In the first case I want to get an empty string or NA, in the second case the value "Revised From -0.6%".
Basically, I want an extra colum... |
2018/03/01 | 562 | 1,685 | <issue_start>username_0: I'm trying to read the output of `FIND /n "some text" a_file` to store the first line number in a variable...
Let's say the file content is:
>
>
> ```
> [342]>>> (1-WARNING) Variable ANAME assigned but never read
> [343]>>> (2-ERROR) Too few ENDWHILEs, 1 WHILE command(s) not terminated
>
>... |
2018/03/01 | 558 | 1,959 | <issue_start>username_0: The crux of the issue is that not everyone working on this application has access to the storefile, and has to comment out these lines as followed in order to make a gradle sync:
```
signingConfigs {
release {
// storeFile file('.../android_keystore.keystore')
// storePasswor... |
2018/03/01 | 882 | 2,552 | <issue_start>username_0: I'm traying to use graphviz to generate orthogonal graphs:
```
graph G {
layout=neato
splines=ortho
A1 [ pos="1,1!" ]
A2 [ pos="2,1!" ]
A3 [ pos="3,1!" ]
A4 [ pos="4,1!" ]
Ae [ pos="5,1!" style=invis]
B1 [ pos="6,6!" ]
B2 [ pos="6,5!" ]
B3 [ pos="6,4!"... |
2018/03/01 | 1,469 | 5,228 | <issue_start>username_0: I have the following code which works well to convert data entered into the "Firstname" field in our data enrollment software application to uppercase and return the converted value back to the application.
However, it doesn't handle names with "-", "'" or spaces in them, for example Anne-Mari... |
2018/03/01 | 1,257 | 4,830 | <issue_start>username_0: i want to add and delete alert in Sqlite but this error appear because i use fragment
>
> D:\ISLaMiC\SoBhY\amira\app\src\main\java\com\amira\amira\amira\ChatCalendarProfile\Calendar\CalendarFragment.java
> error: cannot find symbol method getContentResolver()
> error: cannot find symbol me... |
2018/03/01 | 491 | 1,576 | <issue_start>username_0: How to write a basic MySQL query that has a WHERE on a property within a JSON data-type field? I don't see basic where clause q for json fields on SO.
Something like this, but of course these dont work:
```
SELECT * from my_table where meta_data->name = 'bob';
SELECT * from my_table where me... |
2018/03/01 | 769 | 2,745 | <issue_start>username_0: I tried to implement in bash some code which output would be similar to the "tree" command in the terminal.
Here it is:
```
listContent() {
local file
for file in "$1"/*; do
if [ -d $file ]; then
countSpaces $file
echo $?"Directory: $file"
l... |
2018/03/01 | 3,578 | 12,537 | <issue_start>username_0: I have tried to implement a Maven project on using "PostgreSQL’s JSONB data type with Hibernate v5.1.0" and used a custom usertype called "MyJsonType" for "jsonb" data type. So I am not getting what else need to be configured related to "MyJsonType". I tried as per the below article.
BUT THE S... |
2018/03/01 | 1,534 | 3,780 | <issue_start>username_0: Below is an example data set similar to what I'm working with.
```
df<-data.frame(Loc=c(rev(seq(-4,5,1)),seq(-4,5,1)),
Reg=c("A",rep(NA,8),"B",rep(NA,9),"C"))
```
In this example we have a string of values ranging from + to - values or vice versa (Loc). What I am trying to do acc... |
2018/03/01 | 1,272 | 4,511 | <issue_start>username_0: Is is possible to set an item with two colors on the tab bar?
-------------------------------------------------------------
*(I'm a beginner in swift)*
**What I want to achieve:**
I want to have something-like a white background for each item in both active and inactive states.
-> Example o... |
2018/03/01 | 1,229 | 4,130 | <issue_start>username_0: my `.navbar`style in my local css stylesheet doesn't override the bootstrap predefined one.
Tryin to change the navbar color and remove that gap between it and the content and can't seem to be able to do it.
I've put the local css file below the bootstrap one inside the head tag and that fixe... |
2018/03/01 | 1,477 | 5,079 | <issue_start>username_0: Problem:
========
I have an input of n vectors:
```
(x, y, z): x ∈ {1..n},y ∈ {1..n},z ∈ {1..n} (every "dimension" is set(1..n))
*I mean that in one vector x,y,z can be the same(x=y=z),
but for ∀v1,v2 => x1≠x2, y1≠y2, z1≠z2
v1>v2 if and only if x1>x2,y1>y2,z1>z2.
lets denote vector v1 "min... |
2018/03/01 | 1,693 | 6,182 | <issue_start>username_0: The [Kotlin documentation](https://kotlinlang.org/docs/reference/java-interop.html#clone) describes cloning only in accessing Java and in enum class. In latter case clone is just throwing an exception.
So, how would I / should I clone arbitrary Kotlin object?
Should I just use `clone()` as in... |
2018/03/01 | 455 | 1,559 | <issue_start>username_0: I'm learning React and I created a simple counter and I want to do a test that needs to click elements `(+/-)` multiple times. I can do it manually by doing:
```
it('should return correct value if click multiples times', () => {
const wrapper = mount();
const counter = wrapper.find('span')... |
2018/03/01 | 1,752 | 5,003 | <issue_start>username_0: I have a list of dictionaries as follows
```
[{'grade': '1', 'past_student_sum': 1611},
{'grade': '2', 'past_student_sum': 1631},
{'grade': '3', 'past_student_sum': 1598},
{'grade': '1', 'current_student_sum': 1611},
{'grade': '2', 'current_student_sum': 1631},
{'grade': '3', 'curren... |
2018/03/01 | 768 | 1,714 | <issue_start>username_0: I have a data frame as below:
```
id = c("a2887", "a2887", "a5511","a5511","a2806", "a1491", "a1491", "a4309", "a4309")
plan = c("6V", "6V", "25HS", "50HS", "25HS", "250Mbps", "250Mbps", "15Mbps", "15Mbps")
df = data.frame(id, plan)
```
It looks like:
```
id plan
a2887 6V
a288... |
2018/03/01 | 401 | 1,542 | <issue_start>username_0: I need to set up a reminder in a channel, but this reminder should not send a notification to all the people in the channel but only to a particular subset.
I tried what shown below.
```
/reminder @user1 @user2 @user3 A message every 30 days
```
But when I verify it, slack add " after the ... |
2018/03/01 | 718 | 2,467 | <issue_start>username_0: I am creating a program which uses a pointer to function to allow the user to select from 2 options to perform on an array of integers: reverse or randomise. However, the program yield no output when executed. Where did I go wrong?
```
void reverseArray(int arraySize, int a[]);
void randomiseA... |
2018/03/01 | 556 | 2,131 | <issue_start>username_0: I would like to have a page that renders a [Slate](https://docs.slatejs.org/) Editor, retrieves a document from an API, and then prints the window when the Editor has updated and finished re-rendering. How can I identify when the Editor has re-rendered?
Example code:
```js
componentDidMount... |
2018/03/01 | 370 | 1,269 | <issue_start>username_0: I have several React tests using Jest and [`fetch-mock`](https://github.com/wheresrhys/fetch-mock), each one of them doing some get operations, so what I initially did was:
```
beforeAll(){
fetchMock.get(`*`, JSON.stringify(CORRECTRESPONSE));
}
```
However, in some tests I need to return... |
2018/03/01 | 331 | 1,139 | <issue_start>username_0: I am trying to run a code to correct the text date into Date format in the "Data" worksheet and through record macro, I recorded and it is working fine for a single column "U". How can I add it to multiple columns? (Like X, AA, AB, and AC).
```
Private Sub Workbook_BeforeClose(Cancel As Boole... |
2018/03/01 | 438 | 1,608 | <issue_start>username_0: My question is more a curiosity question on for-loop style.
While reading some old code by others, I encountered a style I haven't seen before.
```
var declaredEarlier = Array
for(var i=0, length=declaredEarlier.length; i < length; i++) {
//stuff
}
```
I had never seen declaring a length... |
2018/03/01 | 477 | 1,808 | <issue_start>username_0: For my task, I need to understand some Python Pandas Code in order to make some modification and reimplement it using another programming language(Java).
I took some online tutorials, but still have issues with Pandas. For example, this lines:
```
uniq_page_df = df.groupby(["asin", "views_coun... |
2018/03/01 | 558 | 1,675 | <issue_start>username_0: I am trying to use an `if` statement.
* I am doing a time counter which counts the amount of Months in a year - so if its '11 Months',Year would be 0. So 37 Months would be '3 Years' '1 Month'.
* Once the 'MonthlyDuration' hits 13 then '1 Year' '1 month' would appear.
* So every 13 months 1 wo... |
2018/03/01 | 597 | 2,050 | <issue_start>username_0: I want to get a Floating Action Button anchored to the upper part of my activity, on the action bar. In the guides is not explained how to get that effect of getting the floating action button anchored to the action bar and also getting the action bar moved with a smooth automatic effect when t... |
2018/03/01 | 1,627 | 5,096 | <issue_start>username_0: I'm having problems looking through the array data from a json file.
This is the code I have
```
$barcode = '0000000' //just an example this is set as a variable
$json_data = json_decode($json,true);
foreach ($json_data as $data){
$barcodejson = $data['Barcode'];
if($barcodejson =... |
2018/03/01 | 1,258 | 4,787 | <issue_start>username_0: Currently I have a need to run a Python script every time in CMake which generates a .qrc file. I can't use Qt Designer and I have to use CMake.
set(CMAKE\_AUTORCC ON) is being used and fails whenever a resource is added or a name is changed, thus the reason for the python script. The script it... |
2018/03/01 | 1,170 | 3,450 | <issue_start>username_0: How can I add 1 day to a time of type `TIMESTAMP` and have the month/year roll over correctly?
For example:
```
data lv_time type TIMESTAMP value '20180228000000'.
data(lv_new_time) = lv_time + 1. " should be '20180301000000', but instead is '20180228000001'
data(lv_new_time2) = lv_time + 100... |
2018/03/01 | 1,491 | 4,601 | <issue_start>username_0: Say I created a django project called `django_site`.
I created two sub-projects: `site1` and `polls`.
You see that I have two `index.html` in two sub-projects directories.
However, now, if I open on web browser `localhost:8000/site1` or `localhost:8000/polls`, they all point to the `index.ht... |
2018/03/01 | 499 | 1,746 | <issue_start>username_0: Basically I have a file to download.
```
[Download](path_to_file)
```
I want to execute several commands before the download starts, is there any method to do this?
I checked the manual for a tag, there's no option like onclick or before\_click.<issue_comment>username_1: You have to config... |
2018/03/01 | 1,356 | 3,328 | <issue_start>username_0: I am trying to make a Python script which runs in the background and checks the USB IDs of all plugged in devices to see if it matches a list of recognized IDs. This is going to be ran in a Linux environment with preferably Python 2.x
I know in in linux I can run `lsusb` in a shell or run it t... |
2018/03/01 | 1,010 | 2,546 | <issue_start>username_0: I was using Oracle apex cloud account on
<https://apex.oracle.com/pls/apex>
Unfortunately my workspace account got locked. As I don't know the password of admin user of the workspace given by Oracle that's why I am unable to unlock my account is there any way to unlock that account? I tried t... |
2018/03/01 | 773 | 3,119 | <issue_start>username_0: **What is the correct usage of the upstream trigger in a declarative Jenkinsfile?**
I'm trying to add dependency triggers, so that the pipeline is triggered after another project has built successfully.
The jenkisci doku on github is listing upstream events as possible pipeline triggers [her... |
2018/03/01 | 1,011 | 2,897 | <issue_start>username_0: I have many large .csv files that I want to convert to .nc (i.e. netCDF files) using [xrray](http://xarray.pydata.org/en/stable/index.html). However, I found that saving the .nc files takes a very long time, and the resulting .nc files are much larger (4x to 12x larger) than the original .csv f... |
2018/03/01 | 704 | 2,124 | <issue_start>username_0: I would like to create this JS function with these arguments:
```
transform([{a:1, b:'1', c:true},{a:'1', b:2, c:3, d:false}, {a:1, c:'test'}], ['a','b','c']);
```
First argument is an array of objects
Second one is array of keys.
I would like to get this output object:
```
{a:[1, '1', 1]... |
2018/03/01 | 402 | 1,323 | <issue_start>username_0: I have 2 commands which I am executing over shell `command1` and `command2`. command1 takes long to complete (~2 minutes). So I can put it running in background using `&` but after that I want to execute command2 automatically. Can I do this on shell command line?<issue_comment>username_1: Try:... |
2018/03/01 | 839 | 2,760 | <issue_start>username_0: Here's a Makefile
```
roman@debian ~/D/O/devops> cat Makefile
install:
-cat projects.txt | xargs -n 2 bash -c 'git clone $0 $1'
```
Here's projects.txt
```
roman@debian ~/D/O/devops> cat projects.txt
<EMAIL>:xxx/xxx1.git app-xxx1
<EMAIL>:xxx/xxx2.git app-xxx2
```
Here's what... |
2018/03/01 | 523 | 1,840 | <issue_start>username_0: I am trying to add Firebase crashlytics to our project but just can not get it to work.
I have followed the [instructions](https://firebase.google.com/docs/crashlytics/get-started?authuser=0) adding the necessary lines to our gradle file but no success so far.
The main issue I get is this me... |
2018/03/01 | 551 | 2,147 | <issue_start>username_0: I'm currently using flask-restful (<http://flask-restful.readthedocs.io/en/0.3.5/index.html>) to deploy resources as endpoints and I'm wondering if there's a way to access the API logger from within then resources classes. I've skimmed through the docs and couldn't find the appropriate answer. ... |
2018/03/01 | 457 | 1,643 | <issue_start>username_0: I have an array of different sizes and I want to separate each row of sizes out into its own dropdown list.
I am having trouble separating each size to its own select option.
```
var arraySize = [
"S, M, L",
"XS, S, M, L"
];
$.each(arraySiz... |
2018/03/01 | 491 | 1,694 | <issue_start>username_0: I am having unexpected behavior with Observable.of() and repeatWhen. I was wondering if this is correct behavior or not, and why?
```
const value = 5;
let variable = 0;
const getValue = () => {
variable = variable + 1;
return value * variable;
}
function test () {
Observable.of(g... |
2018/03/01 | 967 | 3,921 | <issue_start>username_0: I am trying to deploy an ECS stack with an ALB using cloudformation, and i get an error at the Service creation, which seems to be a missing permission to access the load balancer.
Here is the error: `Unable to assume role and validate the specified targetGroupArn. Please verify that the ECS s... |
2018/03/01 | 1,535 | 4,998 | <issue_start>username_0: I have two json files which contain all kinds of levels of properties. I want to write a python script that will replace existing properties and add missing ones, but keep all the other ones in place.
In my attempts until now the entire "configurations" array of the original file is overwritte... |
2018/03/01 | 2,289 | 8,829 | <issue_start>username_0: My client has bought a new Cash Drawer for his POS system.
Features fo the cash drawer as follows:
>
> Model: D41SRB
>
> SKU: D41SRB
>
> Electronic Cash Drawer Black 16",
>
> Roller, 24V Epson STD RJ11, Stainless front
>
> 5 Bill/5 Coin
>
> 1mm steel case
>
> Two... |
2018/03/01 | 372 | 1,250 | <issue_start>username_0: The main problem I have right now is that [DataFrame.quantile() doesn't work with Decimals](https://github.com/pandas-dev/pandas/issues/13157).
I can convert my Dataframe to floats by using `df.convert_objects(convert_numeric=True)`, but this generates a deprecation warning and the suggested r... |
2018/03/01 | 417 | 1,378 | <issue_start>username_0: There is well-known `clone` idiom for copying `Derived` objects via pointer to `Base` class.
```
class Base{
int b;
public:
virtual unique_ptr clone() const = 0;
virtual ~Base() = default;
};
class Derived : public Base {
int d;
public:
virtual unique_ptr clone() const override {
... |
2018/03/01 | 694 | 2,541 | <issue_start>username_0: I have a bundle with a GUI, service and tray. Note they are three separate processes.
It may sound weird, the tray is a representation of the service and users can open the GUI which would create a tray if none exits.
So in my GUI code I have something like below:
```
QProcess::startDetached... |
2018/03/01 | 417 | 1,605 | <issue_start>username_0: I am currently building a project ecommerce website (for an assigmnet), and would like some tips from the experts around. Should I go for a frontend based on purely HTML,CSS and JS (say with a jquery framework) or should I include a CMS such as Joomla in order to be able to manage better the co... |
2018/03/01 | 664 | 2,302 | <issue_start>username_0: I am trying to find a better way to write data to csv file. Right now every loop iteration appends the headers and data to file like below
[](https://i.stack.imgur.com/V6s5l.png)
I want to modify my logic so that I get only t... |
2018/03/01 | 671 | 2,358 | <issue_start>username_0: I have this assignment:
>
> We want to make a simple calculator that can add and subtract integers, and will accept arbitrarily long mathematical formulas composed of symbols + and - and non-negative integer numbers.
>
>
>
*Imagine you have a file formula.txt with the summation formula li... |
2018/03/01 | 264 | 956 | <issue_start>username_0: I need to know the name of the package which provide the circle with a preview of the CSS color value in Atom,
can any one help
[](https://i.stack.imgur.com/EigVk.png)<issue_comment>username_1: You're referring to [Pigments](https://atom.io/pac... |
2018/03/01 | 715 | 3,087 | <issue_start>username_0: I am using Charts to create my own charts but I am struggling to see the values of my table with decimals instead of just integers.
My chart init is like below, but I cannot find the way to format the points to show the decimal parts since they are doubles. I have tried to set `targetChartView... |