date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/15
2,111
6,500
<issue_start>username_0: Trying to set up CI for an Angular project with Jenkins. Trying to get Jenkins to generate a build using the following (after cloning down the repo into the workspace) ``` ng build --prod && ng build --prod --app 1 --output-hashing=false && cpy ./server.js ./dist ``` Jenkins however gives m...
2018/03/15
1,408
4,633
<issue_start>username_0: I managed to finish a script to automate repetitive tasks. My first one on Python!So I am now in the process of automating the part where I have to retrieve the data and format it for the script to use. Here are the relevant parts my code: ``` from selenium import webdriver from selenium.web...
2018/03/15
774
2,159
<issue_start>username_0: I have a page with a banner and 3 columns, and I am trying to make it so that when the screen width gets too small, that the first 2 columns change from 1/3rd width to 50% width and the last column width change to 100% so that it's below the first two. When I do this, the height of the columns...
2018/03/15
2,467
9,607
<issue_start>username_0: Given this structure, how would I find the object with the given id in this deeply nested object structure. ``` const menuItems = [ { id: 1, imageUrl: "http://placehold.it/65x65", display: "Shop Women", link: "#", type: "image", nextItems: [ ...
2018/03/15
426
1,647
<issue_start>username_0: I am trying to make a single .jar executable file that reads .txt file and print some value. my issue is that I don't want to specify the .txt file name before making the .jar, I want to pass the .jar to the user and each time before he run the .jar he will specify the desired .txt file to be r...
2018/03/15
530
2,021
<issue_start>username_0: I'm writing a Django app, but have a separate process for creating / managing the tables. In other words, I don't want Django to manage any of the DB tables. To accomplish this, I use `managed = False` in the `Meta` class, like: ``` class School(models.Model): schoolid = models.IntegerFie...
2018/03/15
1,892
4,975
<issue_start>username_0: I have a time series dataframe, the dataframe is quite big and contain some missing values in the 2 columns('Humidity' and 'Pressure'). I would like to impute this missing values in a clever way, for example using the value of the nearest neighbor or the average of the previous and following ti...
2018/03/15
1,057
2,918
<issue_start>username_0: I am trying when hover the image and the title, the hidden content to be visible. I did something with hover the outer div, but now if I hover on blank space or the paragraph the effect is the same. How to affect the hidden element when the image and the title are hovered? Maybe I am doing all ...
2018/03/15
633
1,800
<issue_start>username_0: I have a really annoying problem where "<" is displayed on my templates. [Right at the very top of the web page is this annoying "<" symbol.](https://i.stack.imgur.com/RmUeF.jpg) Could anyone please tell me what the cause of it is.<issue_comment>username_1: You should target the div class that...
2018/03/15
1,246
3,599
<issue_start>username_0: I am getting the following error with my `npm update` command: ``` > pngquant-bin@4.0.0 postinstall /var/www/pp/20180315202846/node_modules/pngquant-bin > node lib/install.js ⚠ The `/var/www/pp/20180315202846/node_modules/pngquant-bin/vendor/pngquant` binary doesn't seem to work correctly ...
2018/03/15
698
2,502
<issue_start>username_0: Is it possible to loop through this array in mysql and execute a delete statement where the category\_id column is equal to the current value been looped in that array below. ``` $row = [ 'type' => '3', 'name' => 'Warez', 'category_id' => 'IAB26-2'...
2018/03/15
833
3,211
<issue_start>username_0: I'm learning the SQL server suite and just installed the Developer Edition. I included in my features the Integration and Analysis Services. As for the Reporting ones, I went back online (as indicated) and download/installed it. Now, in my Start Menu / Microsoft SQL Server, I have the Reportin...
2018/03/15
324
1,255
<issue_start>username_0: My company has a web app as an App Service in Azure. Let's say it is at "app.scottpantall.com". Our client wants their users to use our web app, but they want their customers to go to "app.company.com" to get to our web app. My company owns our domain and our client owns their domain. If they...
2018/03/15
870
3,535
<issue_start>username_0: I am using [FBSDK](https://github.com/facebook/react-native-fbsdk) to integrate Facebook Login. The button work fine on iOS but does not do anything on Android. I am using the latest release `0.7.0` of FBSDK. I can see the Login dialog appearing and can input credentials just fine. After the l...
2018/03/15
1,276
3,960
<issue_start>username_0: I am attempting to make an association rules set using apriori - I am using a different dataset but the starwars dataset contains similar issues. Using arules I was attempting to list the rules and apply an arulesViz plot. From my understanding all strings must be ran as factors, listed as tran...
2018/03/15
1,298
5,560
<issue_start>username_0: In my app some dialogs are opened from different places at the same time. (Some dialogs are self build fragments others AlertDialogs) This causes some of them to disappear, because the last called dialog closes all previously opened ones. Is there a nice way to make them queue up and show afte...
2018/03/15
1,450
4,865
<issue_start>username_0: ``` CREATE OR REPLACE PROCEDURE ADD_OFERTA(valorO IN NUMBER, ali IN VARCHAR,subast IN NUMBER) AS fech DATE; cedCompr INTEGER; reqpor INTEGER; reqmin INTEGER; inicial NUMBER; mejor NUMBER; tmp INTEGER; prueba NUMBER; BEGIN fech := ...
2018/03/15
1,376
3,544
<issue_start>username_0: I want to make a historical dataframe with values from time series dataframe. Today, I have df1 as below: ``` df1: A B C 0 1.0 2.0 3.0 ``` Tomorrow, I will have df1 as below: ``` df1: A B C 0 1.5 2.6 3.7 ``` So the output I want tomorrow is as below: ```...
2018/03/15
331
1,199
<issue_start>username_0: Using the following Typescript code in an Angular5 project: ``` `addExpense(expense: Expense): Promise { expense.id = uuidv4(); const json = JSON.stringify(expense); const headers = new Headers({ 'Content-Type': 'application/json' }); const options = new RequestOptions({ headers: header...
2018/03/15
476
1,740
<issue_start>username_0: I am trying to insert one specific row from one Table to other tables with same name but in different databases, something like the following: ``` Table Makers from database A id | name | type | comments 01 OSLO A None Table Makers from database B is empty but same structure ...
2018/03/15
943
3,761
<issue_start>username_0: Well i have a problem. I have a registration for for legal users and natural users, but i need to write a validation in each php file for username checking, i have no idea how to combine two table checking. one table is called users\_legal, 2nd one is users\_natural. In both forms name for in...
2018/03/15
426
1,164
<issue_start>username_0: From a unix shell scripting file, I want to extract the values in a csv file. Suppose, I have a csv file values.csv with headers V1, V2 and N like below: ``` "V1","V2","N" "0","0",216856 "1","0",16015 "0","1",25527 "1","1",10967 ``` I want to extract the column N values and assign it to a va...
2018/03/15
984
2,802
<issue_start>username_0: receiving the following error message: Error in mutate\_impl(.data, dots) : Evaluation error: argument "no" is missing, with no default. ``` mutate(x,perfLev= ifelse(SS< 1438, "Below Basic", ifelse(SS>= 1439 & SS <= 1499, "Basic", ifelse(SS >= 1500 & S...
2018/03/15
246
932
<issue_start>username_0: I'm creating a desktop-only Windows application and will use Electron, which uses Chromium. Chromium supports WebGL 2. I've read that WebGL on Windows is translated to DirectX calls by the ANGLE library (so OpenGL is not used at all). Is it true that on each GPU where WebGL 1 runs, then WebGL ...
2018/03/15
452
1,576
<issue_start>username_0: I keep getting the error: "TypeError: Cannot read property 'push' of undefined" The error is in this line: "this.courseName.push(dish);" Here is the code: ``` let menu = { _courses: { _appetizers:[] , _mains:[], _desserts: [] }, addDishToCourse(courseName, dis...
2018/03/15
1,953
6,855
<issue_start>username_0: I am trying to figure out if an input list is a strictly increasing list. Moreover, If removing only one element from the list results in a strictly increasing list, we still consider the list true. Here is my code. It seems to have an index error, but I do not understand why. ``` def almost...
2018/03/15
1,104
3,821
<issue_start>username_0: I tried to look at similar questions but they are of no use for me. I have a class: ``` data class TextMessage(val text: String, override val time: Date, override val senderId: String, override val isText: Boolean = true) : Message{ con...
2018/03/15
860
3,075
<issue_start>username_0: I'm trying to use this lib in my [create-react-kotlin-app](https://github.com/JetBrains/create-react-kotlin-app): <https://material-ui-next.com/> I want to generate bunch of type safe wrappers. I started like this: ``` @file:JsModule("material-ui") package material import react.RState impo...
2018/03/15
1,732
7,239
<issue_start>username_0: I have a DataAccessBase class with the following 2 data access methods. One for ExecuteScalar and one for ExecuteNonQuery. Is it possible to consolidate it into one generic method or is even worth worrying about? ``` protected static int ExecuteNonQuery(SqlCommand command) { us...
2018/03/15
1,687
5,403
<issue_start>username_0: I use let's encrypt free SSL (my host provider support it by default), I checked my site at sslshopper.com (the only warning was: `The certificate is not trusted in all web browsers. You may need to install an Intermediate/chain certificate to link it to a trusted root certificate. Learn more a...
2018/03/15
748
2,637
<issue_start>username_0: I am trying to make a game on swift SpriteKit (an RPG more specifically). I am having an issue with making the camera follow my character. So far all that happens is the camera appears off screen and you can't even see the character. Thanks! ``` import SpriteKit class GameScene: SKScene { ...
2018/03/15
476
1,370
<issue_start>username_0: This is the example: On Sheet 3 ``` A B C 1 A 2 13 3 190 ``` These numbers are generated based on data from different Sheets. How could I create a formula on sheet3 that uses a range based on these numbers. Something like: c= SUM Sheet1!(A1&A2:A1&A3) to sum the range A13 to A190 th...
2018/03/15
686
2,580
<issue_start>username_0: ``` window.onload = function() { var elementts = document.getElementsByClassName('cells'); for(var i = 0; i < elementts.length; i++) { var show_clicked = elementts[i]; if( show_clicked.onclick==true && show_clicked.length==0){ alert("1"); }else if( sh...
2018/03/15
884
2,039
<issue_start>username_0: I need to delete the columns with more than 50% of zeros and also columns with more than 25% of na. I tried using clean function deleting first the na in the `read.csv(...., na.string="na")`. Then I used `write.csv` and tried to use `read.csv` for the new data file to use the clean function aga...
2018/03/15
827
1,828
<issue_start>username_0: I want the price and currency to be centered ? what is the best way to do it ? ```css .currency { background: url(../css/images/currency.png); background-size: 30px; background-repeat: no-repeat; background-position-x: center; background-position-y: center; } ``` ```html **...
2018/03/15
1,156
3,216
<issue_start>username_0: I have an ugly list of lists generated in a program, which looks like this: ``` a= [[93.400000000000006, "high"], [98.600000000000009, 99.0, "high"], [121.30000000000001, 124.1000000000000]] ``` I am saving it to a text file as follows: ``` with open('sample.txt','a') as outfile: json...
2018/03/15
3,003
11,135
<issue_start>username_0: I need help understanding a basic implementation of the hello world program in assembly language using the SPARC instruction set. I have the fully functioning code below I just need help understanding how it works. I could not figure out how to post my code with line numbers so I do apologize f...
2018/03/15
3,381
12,707
<issue_start>username_0: I can't figure out the order my drop tables and create tables should be in. I'm creating a knockoff soccer registration database. Originally I was fine but wanted to make it more complex and since then I can't figure out the order everything is supposed to be in. I know this sounds dumb, but I'...
2018/03/15
1,193
3,925
<issue_start>username_0: I have a java rest service that returns the following json: Json Output ``` { "description": "Temperature Sensor", "symbol": "°C", "name": "degree celsius", "maxMeasure": { "quantity": 12.8, "name": "degree celsius", "symbol": "°C", "dateTime":...
2018/03/15
1,748
6,430
<issue_start>username_0: I have written some part of the code using react js to develop a website. I see the event classes data missing in the web page when loading localhost/events.html page. I am able to see the events classes data in events.html only after browsing a different page from same website. But not on f...
2018/03/15
741
1,758
<issue_start>username_0: I have an array ``` var arrIn = [ { 'a': 'a-0', 'b': 'b-0', 'c': 'c-0' }, { 'a': 'a-1', 'b': 'b-1', 'c': 'c-1' }, { 'a': 'a-2', 'b': 'b-2', 'c': 'c-2' } ]; ``` I need to remove the item `arrIn.a === 'a-1'` with `lodash` and have ``` var arrOut = [ { 'a': 'a-0', 'b': 'b-0', '...
2018/03/15
661
2,036
<issue_start>username_0: I have this command: ``` echo -n "cdt_main!@#$" | base64 ``` that fails with: ``` bash: !@#$": event not found ``` lulz b/c of the special characters. So my best guess is that this is correct: ``` echo -n "cdt_main\!\@#\$" | base64 ``` at least this is b/c there is no error now. Unfor...
2018/03/15
1,618
5,156
<issue_start>username_0: I am trying to insert an image in my python application using Canvas in tkinter. The code for the same is: ``` class Welcomepage(tk.Frame): def __init__(self, parent, controller): tk.Frame.__init__(self,parent) canvas = tk.Canvas(self, width = 1000, height = 1000, bg = 'blue') can...
2018/03/15
1,340
4,529
<issue_start>username_0: I'm a java learner and I have a task to do from a forum to learn more. The challenge is receive a number and multiply it by it's own digit like: input `999` output `9\*9\*9 = 729 then 7\*2\*9 =126 again 1\*2\*6 = 12 finally 1\*2=2 until it hits only one single digit. I got this issue which I...
2018/03/15
721
2,594
<issue_start>username_0: I am trying to read a file, line by line in OCaml. Each line in the file represents a string I want to parse, in the correct format expected by the Parsing tool. I am saving each line in a list structure. I an finding an issue parsing the string contained in each element of the list. I am usi...
2018/03/15
1,722
4,813
<issue_start>username_0: I have few arrays of JSON objects.I need to iterate over the arrays and return true if there are two or more elements with the same userId value. ``` [{ "name":"John", "age":30, "userId": 5, }], [{ "name":"Benjamin", "age":17, "userId": 5, }], [{ "name":"Johnatan", "age":35, "userId": 10, }]...
2018/03/15
1,985
5,492
<issue_start>username_0: I have a workbook with two worksheets (w1 and w2) There are two columns in the middle of the w1, **col1 looks like this**: ``` Sample No. BB01_1_6 6 BB01_1_6 12 BB01_1_7 6 BB01_1_7 12 BB02_1_9 6 BB02_1_9 12 ``` **col2 looks like this:** ``` Results...
2018/03/15
1,318
4,745
<issue_start>username_0: I consistently run into compiler errors where I forget to put the opening brace for a `#pragma omp critical` section on the line following the statement, instead of on the same line: ``` #pragma omp parallel { static int i = 0; // this code fails to compile #pragma omp critical { ...
2018/03/15
1,546
5,536
<issue_start>username_0: i am trying to implement a circular queue in python and my current program keeps giving me error, and I would like to know the problem and solve it. my current program is : ``` # circular queue class circularQueue: def __init__(self, maxsize): self.front = 0 self.rear = -1...
2018/03/15
569
1,608
<issue_start>username_0: I'm using python regex engine and trying to achieve something like for string `foo,fou,bar,baz`. I want to match `baz` if and only if `fou` is not before it. I've tried negative look behind `(!fou)baz</code but it doesn't work as it only work for immediate following.`<issue_comment>username_1: ...
2018/03/15
332
1,118
<issue_start>username_0: What is the difference between using a colon, which means "do nothing" and continue, which means skip. ``` if [[ -s $file ]] ; then : fi if [[ -s $file ]] ; then continue fi ```<issue_comment>username_1: `:` is a synonym for `true`. It does not prevent later commands in the same...
2018/03/15
1,588
5,899
<issue_start>username_0: I am trying to create a share extension where the users can upload her audio recordings from any capable app. The documentation even has a straightforward example (see [Declaring Supported Data Types for a Share or Action Extension](https://developer.apple.com/library/content/documentation/Gene...
2018/03/15
879
3,288
<issue_start>username_0: I have the [similar problem](https://stackoverflow.com/questions/23384483/mousemove-event-updating-only-once-after-mousedown) but I'm using pure js. By my understanding after I clicked on the div it should start print 'Mousemove event has occurred' into the console every time I move the cursor ...
2018/03/15
336
907
<issue_start>username_0: What is the most efficient way to cut off a varchar after the first space i.e. given `'FIRST_STRING SECOND_STRING THIRD_STRING'`, it should return `'FIRST_STRING'`? This will be run on potentially 100s of thousands of rows.<issue_comment>username_1: Notice the `+' '` this will trap any single w...
2018/03/15
677
2,268
<issue_start>username_0: Normally I anonymize my data by using hashlib and using the .apply(hash) function. Now im trying a new approach, imagine I have to following df called 'data': ``` df = pd.DataFrame({'contributor':['eric', 'frank', 'john', 'frank', 'barbara'], 'amount payed':[10,28,49,77,31]...
2018/03/15
2,044
7,702
<issue_start>username_0: I am using react router v4 with thunk for routing in my application. I want to prevent rendering component to user who not logged in. I sending fetch request on server with id and token to check in database do user has this token. If it has - render , if not - redirect home. I don't understan...
2018/03/15
2,448
8,847
<issue_start>username_0: I think that `java.time.Instant` is the best choice to store a date into DB: it is the most likely *TIMESTAMP* and you are not depending by timezone, it is just a moment on the time. JPA supports `LocalDate`, `LocalTime`, `LocalDateTime` etc. but not Instant. Sure, you can use either `Attribu...
2018/03/15
2,702
9,821
<issue_start>username_0: For some reason I mixed a table of posts with comments....So this is a post when `comment_of=0` and a comment when `comment_of= (number of a post)` like in this example Posts ``` id_post | id_poster | comment_of | post 23 3 0 hi 24 4 ...
2018/03/15
2,394
8,630
<issue_start>username_0: I was wondering if it is possible to turn my PHP, MySQL project into a Native Android App (.apk)? I did a research about the topic, but I didn't find a straight answer. Any opinion or idea? Br,<issue_comment>username_1: I'll try this again. There is some discussion in [the issue](https://git...
2018/03/15
671
2,010
<issue_start>username_0: How can I return the result of an `sbt` task to `stdout`? Say I have a task in sbt that returns a `java.io.File`, how can I run `sbt` return just the result of the task? Without any `[success]` messages or other logging? e.g. if `sbt "show foo"` returns ``` ... [info] Lots of output noise [i...
2018/03/15
1,617
6,269
<issue_start>username_0: I'm trying to restrict Users by role to access only particular folders within an S3 bucket. The bucket is configured as "mock mountable" so to speak so that we can use it for file sharing as if it were a more traditional server. Each user is using CloudBerry to access S3 remotely. Here's my cu...
2018/03/15
345
1,154
<issue_start>username_0: I tried many different codes, But all of them only returned local IP address of the user. (e.g. 192.168.1.2). How may I obtain user's public IPv4 address using WebRTC? (e.g. 192.168.127.12) I know **it's possible** because a [website](https://www.expressvpn.com/webrtc-leak-test) could show my...
2018/03/15
643
2,018
<issue_start>username_0: Following the instructions from the [official website](https://www.tensorflow.org/install/install_c) on MacOSX High Sierra. I'm getting the following error: ``` % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Tota...
2018/03/15
645
2,288
<issue_start>username_0: I have an aspnetcore webapp and I'd like it to write it's current version, as well as the dotnet core runtime version that it's running on to it's log when it starts up. I'd like to do this as my webapp runs on various VM's in the cloud and I'd like to be able to look at the logs from all of t...
2018/03/15
668
1,945
<issue_start>username_0: I have variables that looks like these: ``` data.head() Ones Population Profit 0 1 6.1101 17.5920 1 1 5.5277 9.1302 2 1 8.5186 13.6620 3 1 7.0032 11.8540 4 1 5.8598 6.8233 X = data.iloc[:, 0:cols] y = data.iloc[:, cols] X1 = ...
2018/03/15
824
3,175
<issue_start>username_0: Im trying to put together and AngularDart application, and I'm going back and forth on the documentation as I go. In the AngularDart official sites architecture page, it talks about the all-important AppModule [AngularDart Architecture](https://webdev.dartlang.org/angular/guide/architecture) ...
2018/03/15
934
3,622
<issue_start>username_0: I added a new property to a type mapping and I need to reindex all existing items of that type in order to use the new property. Which API should I use to do this?<issue_comment>username_1: You have to use the [reindex api](https://www.elastic.co/guide/en/elasticsearch/reference/5.6/docs-reind...
2018/03/15
3,624
9,551
<issue_start>username_0: I'm looking at QEMU's [edu device](https://github.com/qemu/qemu/blob/master/docs/specs/edu.txt) ([source](https://github.com/qemu/qemu/blob/master/hw/misc/edu.c)) which provides a basic "educational" PCI device within QEMU, that can be accessed as a PCI device from within a QEMU guest like Linu...
2018/03/15
1,912
5,099
<issue_start>username_0: I have a `QUERY` formula that imports the first three rows of some data, `"Select Col1, Col2 Order by Col2 desc limit 3"`, producing an output like this: ``` | c1 | c2 r1 | Red | 53 r2 | Blue | 45 r3 | Yellow | 15 ``` I'd like to get need those same formula values to look like th...
2018/03/15
514
1,627
<issue_start>username_0: How in Scala can you reference a variable to another? E.g. ``` import scala.collection.mutable.Set var a = Set(1) var b = a a = a + 2 // a = Set(1, 2) // b = Set(1) ``` I'd want `b` to point to the "updated" `a`.<issue_comment>username_1: Let's see what's going on: ``` scala> var a = Set(1)...
2018/03/15
738
3,046
<issue_start>username_0: I am exploring Azure Data Lake and I am new to this field. I explored many things and read many articles. Basically I have to develop **Power BI dashboard** from data of different sources. In classic SQL Server stack I can write an ETL (Extract, Transform, Load) process to bring the data from...
2018/03/15
811
3,034
<issue_start>username_0: In R, I wish to extract each csv file in my directory, one at a time, as data frames and perform a sum for each item For example in Path/data I have the following 4 files: ``` View_Mag_2018_03_01 View_Mag_2018_03_02 View_Mag_2018_03_03 View_Mag_2018_03_04 ``` Each file has a dataframe that ...
2018/03/15
717
2,542
<issue_start>username_0: I have created a grid with some images and want to update the number of columns on certain widths. For example: * width > 960px: 3 columns * width > 660px: 2 columns * width < 660px: 1 column I've created a function to update the number of rows, but how can I rerender the grid without pressi...
2018/03/15
848
3,406
<issue_start>username_0: I'm working on a custom HTML class, which can be used as an additional type of form that supports any element matching the `[name]` and `[value]` attributes. However, when extending a class, I found out that I couldn't get the pseudo-select `:invalid` working. ``` class HTMLInlineInputElement...
2018/03/15
957
3,382
<issue_start>username_0: * Jmeter version 4.0 r1823414, * Selenium/WebDriver Support plugin version 2.3, * java version 1.8.0\_161. While working with the *Jmeter WebDriver* sampler I was really impressed by the things it can do (quickly creating scripts for UI / performance testing). However, I wasn't able to utilize...
2018/03/15
7,273
16,940
<issue_start>username_0: Good afternoon, I'm new to VSTS Build Management. I'm attempting to take our current solution (which builds fine on our dev machines) and get a successful build within VSTS Build Manager. I'm failing horribly so far and would like just a direction i should be looking as i bet this is some simp...
2018/03/15
692
2,466
<issue_start>username_0: I noticed some strange behaviour from chrome on a simple GET request from a Public API. I tested the same code on Mozilla and I get no errors, but Chrome keeps throwing me errors about this. Can someone help me say why my GET call isn't working on chrome? ``` import React, { Component } from '...
2018/03/15
861
2,515
<issue_start>username_0: How I can count the total elements in a dataframe, including the subset, and put the result in the new column? ``` import pandas as pd x = pd.Series([[1, (2,5,6)], [2, (3,4)], [3, 4], [(5,6), (7,8,9)]], \ index=range(1, len(x)+1)) df = pd.DataFrame({'A': x}) ``` I tried with th...
2018/03/15
575
1,888
<issue_start>username_0: ```js var isTopper = false var marksobtained = window.prompt('please enter the marks obtained ') if (marksobtained == undefined || marksobtained == null || marksobtained == '') { alert('invalid') } else if (marksobtained < 0 || marksobtained > 100) { alert('enter between 0 to 100') ...
2018/03/15
343
1,420
<issue_start>username_0: Is there a way to achieve time traveling in Clojure, for example if I have a vector (which is internally a tree implemented as a persistent data structure) is there a way to achieve time traveling and get preivous versions of that vector? Kind of what Datomic does at the database level, since C...
2018/03/15
281
1,057
<issue_start>username_0: I have this Table with one row `Transaction Date` the first row is the `checkIn` and the second one is the `Checkout` if we organized the result by date asc. I need to pass the second row value to another column named `Checkout`. This table has at least 1000 records<issue_comment>username_1: Y...
2018/03/15
794
3,012
<issue_start>username_0: In typescript if I have the following class: ``` class Hello{ public world: string; } ``` Why is it when I type assert parsed json as `Hello`, `instanceof` returns false? ``` var json: string = `{"world": "world"}`; var assertedJson: Hello = JSON.parse(json) as Hello; var hello: Hello = n...
2018/03/15
791
2,726
<issue_start>username_0: I currently have Elasticsearch version 6.2.2 and Apache Nifi version 1.5.0 running on the same machine. I'm trying to follow the Nifi example located: <https://community.hortonworks.com/articles/52856/stream-data-into-hive-like-a-king-using-nifi.html> except instead of storing to Hive, I want t...
2018/03/15
845
2,541
<issue_start>username_0: **The problem** I have the following list in Python 3.6 ``` Piko = {} Piko['Name']='Luke' ``` I am trying to write a function that give the value of the element if it exist and is set and give `None` otherwise. For example: * INPUT: `isset(Piko['Name'])` OUTPUT: `Luke` * INPUT: `isset(Piko...
2018/03/15
1,332
4,559
<issue_start>username_0: In my app I have a time in milliseconds (between 0 and 60000) divided by a certain value (In the current example it's 60000) Then, I times that by 100. However, when printing the answer into the log, it always returns 0. This is my code: ``` countDownTimer = new CountDownTimer(activityDura...
2018/03/15
930
2,911
<issue_start>username_0: I need to make sure that all the files which I find in a parent directory have a particular pattern or not. Example: ``` ./a/b/status: *foo*foo ./b/c/status: bar*bar ./c/d/status: foo ``` The command should return false as file 2 does not have a foo. I am trying below but dont have clue on h...
2018/03/15
940
3,053
<issue_start>username_0: it is probably a duplicate in some way because many people are having the same error. I read through similar questions but I still do not understand why this script throws that error. ```js $("#clientList").change(function (event) { $.ajax({ url: "/LoadClients", data: { id = $("#clientL...
2018/03/15
815
2,935
<issue_start>username_0: I wish to use `System.Runtime.Caching.MemoryCache` but I'm wondering how to use it with generics. In the following example, I would be in trouble if `T` is a value type. ``` public T GetItem(string key, Func loadItemFromDb) { var cachedItem = (T) memoryCache.Get(key); if(cachedItem != null...
2018/03/15
1,011
3,890
<issue_start>username_0: I am looking for a way to obtain my property names in a SSIS data flow task Script Component. I have been searching high and low only finding [this](https://stackoverflow.com/questions/22746994/getting-column-name-from-pipelinebuffer-in-script-component-in-ssis-2012). I have been trying to get ...
2018/03/15
1,775
6,228
<issue_start>username_0: I hope some kind person can help me out here. I want to sort nested comments in wordpress by likes. I have only found one plugin that does this and it doesn't meet my needs, so I'm attempting to write my own. Most of it is actually pretty straightforward, but the sql is eluding me (not really ...
2018/03/15
758
2,705
<issue_start>username_0: So I have a function like: ``` def my_code(arg1, *args): .... ``` And I want this function to only be able to take either 2 or 3 arguments (that means \*args can only be 1 or 2 arguments). How do I throw an error message if the number of arguments is wrong? If I use a try/exception, is t...
2018/03/15
768
2,613
<issue_start>username_0: This may sound like an odd question, and I have a feeling that the short answer is 'No'. However, is there any way a variable could take more than one value, based on Boolean operators? For example: ``` //Current implementation string Variable1 = "A"; string Variable2 = "B"; string Variable3 ...
2018/03/15
834
2,903
<issue_start>username_0: My Perl script accepts and processes input from a text field in a form on a web page. It was written for the English version of the web page and works just fine. There is also a Chinese version of the page (a separate page, not both languages on the same page), and now I need my script to work...
2018/03/15
303
1,159
<issue_start>username_0: I try to use Microsoft Graph API in my web. Everything looks like working well on my pc but when my teammate clones the project into her computer, there shows "An error occurred while processing your request." and let us open development mode to see more information. [error message fig](https...
2018/03/15
815
3,145
<issue_start>username_0: I am working on a Cloudformation template for an IAM role that grants cross account read only access. It uses a managed policy for Readonly access as well. So far, I've resolved several errors, but now I'm getting a "'null' values are not allowed in templates" error when I try to validate the t...
2018/03/15
451
1,907
<issue_start>username_0: I'm trying to understand if/how I can use Cognito as an OCID / IdP but with my own "skin" to it. Using the Cognito CSS customization is not nearly sufficient. To be more precise, I am trying to build an SSO front-end that leverages Cognito's UserPools, Access/Refresh tokens, Device trusting/e...
2018/03/15
847
2,614
<issue_start>username_0: I am able to touch a file date created no problem. But i want set access date or modified date <http://php.net/manual/en/function.touch.php> ``` $access = $date; //now ``` > > **atime** > > If present, the access time of the given filename is set to the value of > atime. Otherwise,...
2018/03/15
695
2,212
<issue_start>username_0: I would like to know the most effective way to compare long strings, having a database sql server, such as: long string -> compare to-> 5,000 records in database I happened to convert the records and the string to compare, using crc32, but I'm not sure if it would be a more efficient method<i...
2018/03/15
1,006
3,046
<issue_start>username_0: I have two tables: Classes and Courses. Classes and Courses both have DEPT\_CODE and COURSE#. When these are the same, and in the Classes table SEMESTER = Spring and YEAR = 2018, I concatenate DEPT\_CODE + COURSE# as COURSEID. I then pair it with TITLE from the Courses table. Courses: DEPT...
2018/03/15
357
1,244
<issue_start>username_0: Simple question: I have a dataframe in dask containing about 300 mln records. I need to know the exact number of rows that the dataframe contains. Is there an easy way to do this? When I try to run `dataframe.x.count().compute()` it looks like it tries to load the entire data into RAM, for whi...