date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/06 | 462 | 1,928 | <issue_start>username_0: I need to read and processes **a specific file within a zip archive** in Apache Flink.
In the documentation, I found that
>
> Flink currently supports transparent decompression of input files if these are marked with an appropriate file extension.
>
>
>
<https://ci.apache.org/projects/f... |
2018/03/06 | 371 | 1,314 | <issue_start>username_0: Running
```
/usr/bin/python "c:\Users\owner\Documents\GitHub\ud120-projects\tools\startup.py"
```
The system cannot find the path specified.
I can access the .py and edit it and all, but I can't run it?
What is the issue?<issue_comment>username_1: It's not that you can't run it, it's tha... |
2018/03/06 | 788 | 2,793 | <issue_start>username_0: Here's a struct in Swift:
```
struct A {
var x
var y
var z
}
```
What should I do to get the offset of `y` in the struct `A`, just like `offsetof(A, y)` in C?
Thanks :)<issue_comment>username_1: You can't get the offset of `y` in a reliable way, because Swift does not yet suppor... |
2018/03/06 | 565 | 1,759 | <issue_start>username_0: I need to find the largest subarray. For example: array list `{ 1, 4, 7, 3, -3, -4, -1, 4, 2, 1 }` need to find the largest subarray where the numbers are decreasing.
As from the list `{ 7, 3, -3, -4 }` is one subarray and `{ 4, 2, 1 }`, as the earlier one is biggest need to print that.<issue... |
2018/03/06 | 553 | 1,825 | <issue_start>username_0: One of our developers made android application with all permission in manifest.xml (ACCESS\_FINE\_LOCATION, USE\_FINGERPRINT ect.).
I guided him to remove unnecessary permission then he told me, "It is safe, because he used android 6.0 run-time permission (pop up the permission)".
But I think... |
2018/03/06 | 944 | 3,154 | <issue_start>username_0: Within a Tcl application I need to prepend a line of Javascript code to an existing .js file. I googled for "tcl prepend line to file" and didn't find any particularly helpful examples especially in that I need this to be platform-independent.
One approach I found to work is to first open the ... |
2018/03/06 | 1,265 | 4,315 | <issue_start>username_0: I currently have any array of object literals which have the potential of coming in to the client-side with duplicate values (see the `Date` key).
```
[
{
"Date": "2/26/2018",
"Title": "Story 1"
},
{
"Date": "2/27/2018",
"Title": "Story 2"
},
... |
2018/03/06 | 367 | 1,345 | <issue_start>username_0: I have a button that looks like this...
```
ADD TO FAVORITES
addToFavorites() {
...run some code
}
```
After the user presses the button, how can I change the button text to "REMOVE FROM FAVORITES", change the button styles, and call a different function?<issue_comment>username_1: You'l... |
2018/03/06 | 648 | 1,971 | <issue_start>username_0: What I have: (2 lists)
```
List keys = Arrays.asList("1", "2", "3");
List values = Arrays.asList("a,aa,aaa".split(","), "b,bb,bbb".split(","));
```
What I'm trying to get: (list of map)
```
[
{"1": "a", "2": "aa", "3": "aaa"},
{"1": "b", "2": "bb", "3": "bbb"}
]
```
Java 7 Solutio... |
2018/03/06 | 591 | 1,971 | <issue_start>username_0: ```
function myFunc(trueOrFalse) {
return trueOrFalse ? true : false
}
```
above function can be written as `myFunc(trueOrFalse) => trueOrFalse` but what if trueOrFalse is not present? that's why I wrote the first function explicitly return true or false in boolean.<issue_comment>username_... |
2018/03/06 | 1,623 | 6,548 | <issue_start>username_0: I've been using alot of RxJava `Observables` converted to `LiveData` in my code using `LiveDataReactiveStreams.fromPublisher()` library. So I though of adding an extension function to the RxJava Observable to easily convert them to `LiveData`.
These are my extension functions:
```
fun Flowab... |
2018/03/06 | 1,513 | 6,133 | <issue_start>username_0: I'm using a javascript link located in section of my WP site. It's very simple and works well, except when the player ends the last track - it starts to play the first track again.
I tried to use `loop="false"` but it starts another bug, restarting the same last track. I'm not familiarized wi... |
2018/03/06 | 1,579 | 6,479 | <issue_start>username_0: I'm using a try/catch statement to force valid user input to assign to a variable. However, when I try to use this variable outside the try/catch statement, it tells me that my variable has not been initialized. Using Java...
[Link to picture of error](https://i.stack.imgur.com/qfKJp.png)
```
... |
2018/03/06 | 1,442 | 5,918 | <issue_start>username_0: I have a java application that I want to connect to a Postgres CloudSql instance in Google Cloud Computing. The instance is up and running and I can connect on it using DbVisualizer, but I receive a FATAL: password authentication failed for user "postgres" when I try to connect from the applica... |
2018/03/06 | 760 | 2,667 | <issue_start>username_0: I have created a `SinglyLinkedList` template class using `template` . For example, if I enter "string" as my command line argument, I want to create `SinglyLinkedList\* string\_list = new SinglyLinkedList();`. If I enter "number" as my command line argument, I want to create `SinglyLinkedList\*... |
2018/03/06 | 749 | 2,192 | <issue_start>username_0: First off - I am a beginner at programming and R, so excuse me if this is a silly question. I am having trouble viewing more than ten rows in a tibble that is generated from the following code.
The code below is meant to find the most common words in a book. I am getting the results I want, bu... |
2018/03/06 | 1,265 | 4,596 | <issue_start>username_0: I am fairly new to Rails and working on building my first app outside of courses like CodeAcademy. I am running into issues with Parameters + building a delete function. I can display all tasks on an index when I make the private tasks\_params record look like this:
```
private
def ta... |
2018/03/06 | 1,206 | 3,966 | <issue_start>username_0: I am working on a machine learning project using YOLO. I am creating my own dataset following the guide found [here](https://github.com/AlexeyAB/darknet#how-to-train-pascal-voc-data) (at section **How to train (to detect your custom objects)**). For the bounding boxes I need to know the [x] [y]... |
2018/03/06 | 1,264 | 5,017 | <issue_start>username_0: I have a language-learning app with the following basic page navigation structure:
1. **Start** - App title screen
2. **Languages** - List of languages
3. **Lessons** - List of lessons for selected language
4. **Activities** - Page with activities to work on for selected lesson
The first thre... |
2018/03/06 | 1,020 | 3,775 | <issue_start>username_0: I'm facing the issue while trying to iterate and add the dynamic data. Below is the exception faced:
```
Uncaught Error: Every row given must be either null or an array.
```
Demo:<https://plnkr.co/edit/vvY6Bg3uzVDSMwDh3EI6?p=preview>
js code:
```
var list = [
{id:'January',min:... |
2018/03/06 | 428 | 1,508 | <issue_start>username_0: I have the following html structure (inside a wiki-content div) and I don't know how to reach it.
[](https://i.stack.imgur.com/ioZ0m.png)
This doesn't seem to work, would you know why?
```
.wiki-content .table-wrap relative-... |
2018/03/06 | 940 | 2,626 | <issue_start>username_0: Lets say I have the following rows:
```
Row 1
Row 2
Row 3
Row 1
Row 2 longest one
Row 3 longest one
Row 1
Row 2 shorter
Row 3 shorter
```
This produces:
[](https://i.stack.imgur.com/yAuJi.png)
What I am looking to achieve:
[ public form: NgForm;
public dropdown: string;
public onDropdownChange() {
console.log("thi... |
2018/03/06 | 399 | 1,566 | <issue_start>username_0: I have my controller-A class like this:
```
@PostMapping("/otp")
public String otpSubmit(@RequestParam("token") String token, HttpSession session, Model model) throws IOException {
Long enrollment = (Long) session.getAttribute("enrollment");
BaseResponse otpResponse = otpRestClient.validateOT... |
2018/03/06 | 665 | 2,264 | <issue_start>username_0: I have initialized an object that I wish to add to dynamically. Specifically I want to add array of objects to this object. I have tried the below but neither work.. is there a way to do this correctly? The final output should be `object1.property1[0].value = 42` and `object1.property1[0].writa... |
2018/03/06 | 990 | 3,036 | <issue_start>username_0: >
> JAVA 1.7
>
> Spring 4.3.7
>
> IntelliJ IDEA 2017.3.4 (Ultimate Edition)
> Build #IU-173.4548.28, built on January 30, 2018
> JRE: 1.8.0\_152-release-1024-b11 x86\_64
> JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
> Mac OS X 10.13.3
>
>
>
why not found? the code has no p... |
2018/03/06 | 661 | 2,401 | <issue_start>username_0: I have these objects in an ArrayList:
-------------------------------------
```
public class Foo implements Comparable {
...
private ArrayList coordinates;
...
}
```
And I have a method in my main class that outputs the distance between 2 points called :
----------------------------------... |
2018/03/06 | 763 | 1,972 | <issue_start>username_0: I have s select statement that returns some rows as follows:
```
a| b| c| d|
1, 2, 5, 1
1, 5, 7, 1
2, 5, 4, 1
2, 5, 2, 2
3, 5, 9, 1
```
and what I need to happen is if col a and col b in subsequent rows match, they represent the same object and c needs to be added for the rows and returned a... |
2018/03/06 | 916 | 3,601 | <issue_start>username_0: I want to fetch data from external url through trigger using Firebase cloud functions. However, fetch data and update specific node not work.
What is wrong? My Firebase plan is Blaze.
**function error** : [print screen 1](https://i.stack.imgur.com/VBJT8.png)
**database error** : [print scree... |
2018/03/06 | 781 | 3,037 | <issue_start>username_0: I'm working on a Springboot application that uses embedded tomcat server. Application take more than 800MB RAM. Is that common? Is there any way to bring memory uses down?<issue_comment>username_1: This is pretty common. Java VMs are pretty heavy. Look at the JVM start up flags, which will tell... |
2018/03/06 | 3,314 | 9,701 | <issue_start>username_0: I'm trying LightGBMRegressor parameter tuning with Sklearn RandomizedSearchCV. I got an error with message below.
error:
```
LightGBMError: b'Check failed: num_data > 0 at /src/LightGBM/src/io/dataset.cpp, line 27 .\n'
```
I cannot tell why and the specific parameters caused this error. Any... |
2018/03/06 | 449 | 1,457 | <issue_start>username_0: I'm teaching myself how to get information from websites, and I'm confused on how to actually use lxml to do so. Say I wanted to print the titles of the contents of [this](https://en.wikipedia.org/wiki/Hamiltonian_mechanics) wikipedia page. I would first:
```
site=requests.get('https://en.wiki... |
2018/03/06 | 571 | 1,669 | <issue_start>username_0: how do i pull the items AND prices from my JSON string? I am only able to pull price...When I console.log it displays what i want, but when i do an innerHTML, it does not work. Do I need a for loop? Please help and thank you
```
var myJSON = '{"menu": {"slice of pizza": "2.00", "toppings": {... |
2018/03/06 | 528 | 1,805 | <issue_start>username_0: I'd like to position and then show a dialog with respect to the display. The dialog has a label. The dialog expands based on the size of the label.
Below is my code that does not work. It tries to show the dialog at the center of the screen (the dialog is shown at the center by default and thi... |
2018/03/06 | 609 | 2,103 | <issue_start>username_0: I'm developing a web application using Angular 5 with Ngx-Bootstrap and I'm having a trouble in the template inside a SVG tag.
I'm doing a loop in a svg group (g tag). Inside G I have some foreignObjects and I want to use bootstrap popover for each foreignObject when mouse is on it, but I need... |
2018/03/06 | 1,308 | 4,545 | <issue_start>username_0: For the dialog element , is there some sort of "open" event that is fired when it is shown, either normally or as a modal?
[The spec](https://www.w3.org/TR/html52/interactive-elements.html#the-dialog-element) isn't totally clear on this, and [MDN](https://developer.mozilla.org/en-US/docs/Web/A... |
2018/03/06 | 415 | 1,502 | <issue_start>username_0: I'm having some trouble trying to figure out how to Update a singular cell in a record using SQLPLUS. In a table called `CUSTOMER` I, the `CUSTOMER_NUMBER` column is not a Primary Key and is also a null value. I mistakenly made two of the `CUSTOMER NUMBER` values the same.
[![enter image descr... |
2018/03/06 | 587 | 1,658 | <issue_start>username_0: I have a Seq of Tuples:
```
val seqTuple: Seq[(String, Future[String])] = Seq(("A", Future("X")), ("B", Future("Y")))
```
and I want to get:
```
val futureSeqTuple: Future[Seq[(String, String)]] = Future(Seq(("A", "X"), ("B", "Y")))
```
I know I can do:
```
val futureSeq: Future[Seq[Str... |
2018/03/06 | 946 | 2,580 | <issue_start>username_0: If I have an array of nested objects with random keys, how can I find the index of an object knowing the random key?
For example index of object with key Jas9d8d?
(Answer would be 0)
```
const myArray = [
Jas9d8d:{
151231230123:{
key1:value
key2:value
... |
2018/03/06 | 1,067 | 3,458 | <issue_start>username_0: I need to merge two folders,
The folders are named 12345 and 12345\_
How would I merge the two?
I have tried but I end up with '12345.'
```py
for file in files:
subFolder = os.path.join(destpath, file[:6])
if not os.path.isdir(subFolder):
os.makedirs(subFolder)
shutil.co... |
2018/03/06 | 2,242 | 7,177 | <issue_start>username_0: The documentation [here](https://vuex.vuejs.org/guide/)
says,
>
> You cannot directly mutate the store's state. The only way to change a store's state is by explicitly **committing mutations**.
>
>
>
My question is, is that good practice, or is that how the internals of the Vuex state wor... |
2018/03/06 | 760 | 2,871 | <issue_start>username_0: I have the following Slick code that given an id returns a customer (if exists). If there's a problem (such as connectivity lost) a `Failure` clause will throw an exception:
```
def read (id: Int): Future[Option[Customer]] = {
val db = // ....
val customers = TableQuery[Custome... |
2018/03/06 | 587 | 1,890 | <issue_start>username_0: What does a "\" in a string mean?
For example:
```
>>> "\033"
```
The output is:
```
'\x1b'
```
If you try to print the string, the result is an odd-looking square
Most weridly, if you enter this into your shell:
```
>>> "\033" == "\x1b"
```
The output is:
```
True
```
Obviously, ... |
2018/03/06 | 527 | 1,374 | <issue_start>username_0: i am trying to get the last date of the next month, for some reason momentjs returns the wrong date
For Example :
```
console.log(moment('02/28/2018', "MM/DD/YYYY").add(i, 'M'));
```
returns :
```
moment("2018-03-28T00:00:00.000")
```
where the right date should be :
```
moment("2018-0... |
2018/03/06 | 669 | 1,924 | <issue_start>username_0: So I'm trying to create a custom shell for my school project. My method was to create child process, and have that process execute the command using the execvp() function that my professor briefly mentioned in class that we are meant to use. Here's my code, as always, any help is appreciated.
... |
2018/03/06 | 1,574 | 5,214 | <issue_start>username_0: Im having trouble understanding this implementation of lists in Standard ML. Here is how it is defined:
An append list is a (simple) implementation of the list abstract data type that makes construction cheap (O(1)), but makes destruction expensive (O(n)). The 'a alistNN and 'a alist types ar... |
2018/03/06 | 619 | 1,419 | <issue_start>username_0: I have a macro array &start\_num
```
+-------+
| start |
+-------+
| 25.5 |
| 33.5 |
| 42.5 |
| 54.5 |
| 98 |
+-------+
```
but when I am using
```
%put %scan(&start_num,1);
```
it returns :25
```
%put %scan(&start_num,2);
```
returns me:533
why and how to fix it?<issue_commen... |
2018/03/06 | 323 | 1,191 | <issue_start>username_0: I am trying to make my `discord.py` bot respond automatically when someone sends some word, but the problem is that the command only works if the word is the first thing to be written in the sentence. I want my bot to respond the message even when the word is in the middle of some sentence. If ... |
2018/03/06 | 489 | 1,784 | <issue_start>username_0: I am doing integration testing using Cucumber. In my `ApplicationController`, I have a method called `current_user` that provides the current user object. I use this object to add items to a redis database:
```
$redis.sadd("cart#current_user.id}", [1,5,2])
```
In my Cucumber steps I test thi... |
2018/03/06 | 693 | 2,732 | <issue_start>username_0: It is common knowledge that when `equals()` is overridden, `hashCode()` must also be overridden.
This is a typical example of this in a non-JavaFX bean class.
```
public class Person {
private String name;
private int age;
@Override
public int hashCode() {
int result ... |
2018/03/06 | 464 | 1,775 | <issue_start>username_0: Let's say I acquired a html5 template. The folder that contains HTML, css, js files, and other types of resources like pictures. I copied/pasted the **Html** and **css** to **component.html** and **component.css**.
When it comes to JavaScript, I have a folder called **js** containing few indi... |
2018/03/06 | 803 | 3,309 | <issue_start>username_0: Is there a way to implement the `Android.Views.SoftInput.AdjustResize` to a specific page/control (e.g. a grid) rather than inserting it into `App.xaml.cs` or `MainActivity.cs` ?Since it is affecting my other pages when the keyboard is being shown.
Thanks!<issue_comment>username_1: I have solv... |
2018/03/06 | 560 | 1,861 | <issue_start>username_0: I have difficulty trying to find an answer that solves this issue online.
I have a script which runs all my other scripts in a particular order.
```
$x=0;
$z=0;
cd *file path* ;
.\filename1.ps1 ; write-host "$x text $z text";
.\filename2.ps1 ; write-host "$x text $z text";
```
In each of th... |
2018/03/06 | 2,434 | 6,186 | <issue_start>username_0: R version 3.4.2
I am trying to create 3 new variables according to conditions based on other variables of the same dataframe. I managed to achieve what I intended, but it requires several lines of code to produce an output that I think other methods (possibly using dplyr) might deliver much ef... |
2018/03/06 | 1,107 | 3,702 | <issue_start>username_0: EDIT EDIT: I started from scratch in a new project. Every storyboard outlet is identical, as is the VC code. It works, interestingly.
EDIT: hello everyone, I am giving up. Every answer is starting to become a variation on a theme, and that theme is not fixing this. Thanks for the attempt thoug... |
2018/03/06 | 1,224 | 4,672 | <issue_start>username_0: I am newbie with Laravel. I have just fork **laravel 5 boilerplate** from <https://github.com/rappasoft/laravel-5-boilerplate>.
In route files, i see that there is a line like that :
```
Route::group(['prefix' => 'user/{deletedUser}'], function () {
Route::get('delete', 'User... |
2018/03/06 | 1,234 | 4,560 | <issue_start>username_0: Data in 'lcAmount' in the database is '15' for 4 rows and I want to call it to multiple textbox per row.
Database:
[](https://i.stack.imgur.com/plz41.png)
HTML CODE:
```
Sick leave unconsumed
/>
Vacation uncomsumed
... |
2018/03/06 | 740 | 2,409 | <issue_start>username_0: I have a `breed` called `players`. Each `player-owns` a `player-strategy`. There are 6 possible `player-strategies`. When I write
`histogram [player-strategy] of players`
nothing appears on my plot.
I have one plot with one pen -- and don't set either the plot or penname. `plot-name` retur... |
2018/03/06 | 441 | 1,337 | <issue_start>username_0: how can I append a new row after a row which has a specific column value using Jquery?
For example, I wish to append a new row of column [NAME: CINDY AGE: 21] after 'Selina' because I wish to append a new row which is sorted by 'AGE' and [NAME: Tori AGE: 26] will be appended after 'Kelly'.
``... |
2018/03/06 | 607 | 2,106 | <issue_start>username_0: I'm having trouble running my first solidity contract in remix ethereum and through web3 so I'm guessing something is wrong with my contract code:
```
pragma solidity ^0.4.0;
contract cntrct
{
uint public aaa;
function() payable public
{
create(msg.value);
}
function create(... |
2018/03/06 | 1,830 | 6,634 | <issue_start>username_0: Does Spring Boot 2 + Sping Security OAuth2 still support the `@AuthorizationServer` annotation? From reading the release notes some things haven't been ported over:
[Oauth2 Support](https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-2.0.0-M5-Release-Notes#oauth-20-support)
Here ... |
2018/03/06 | 1,545 | 5,647 | <issue_start>username_0: I want to submit data from a form and display the result in the view directly after http request returns a result. But it's not happening.
```
$scope.formData = {};
$scope.add = function (){
$http.post('add.php',$scope.formData,{'Content-Type': 'application/x-www-form-urlencoded'})... |
2018/03/06 | 2,296 | 8,025 | <issue_start>username_0: guys. I'm trying to develop a program to create excel file with using xlwt.
I have used
```
pip install xlwt
```
to install it. In Terminal, it can be imported with no error. And the Django project could be run correctly.
But in pycharm, it shows import error when running the Django projec... |
2018/03/06 | 1,088 | 3,319 | <issue_start>username_0: I have a dataframe like this:
```
name . size . type . av_size_type
0 John . 23 . Qapra' . 22
1 Dan . 21 . nuk'neH . 12
2 Monica . 12 . kahless . 15
```
I want to create a new column with a sentence, like this:
```
name . siz... |
2018/03/06 | 241 | 889 | <issue_start>username_0: find returns one item.
And, findOne, also returns one item.
but if I look in documentation, find doesn't exist.
yet it I have projects where I've been using just find.
<http://docs.sequelizejs.com/class/lib/model.js~Model.html><issue_comment>username_1: I think you can use them interchangea... |
2018/03/06 | 1,141 | 4,542 | <issue_start>username_0: I asked a question two days ago with a reply "Your method must return a Promise (or an Observable)."
I have altered my code to be exactly the same as the example at "<https://firebase.google.com/docs/firestore/manage-data/transactions>" but the problem is it passes the result as a console log... |
2018/03/06 | 694 | 2,430 | <issue_start>username_0: We have a sample .cfg file consist of key value pair. Based on user input, we need to update the value. I was thinking to update the value using configParser but file doesn't have any section (e.g. [My Section]). Based on the documentation it needs three values to set - section, key and value. ... |
2018/03/06 | 600 | 2,035 | <issue_start>username_0: [React](https://en.wikipedia.org/wiki/React_(web_framework)) uses "#" in the URL so when I write
```html
[Click here to scroll to top](#specificAreaId)
```
it doesn't work as scrolling to the element which has id: specificAreaId. Instead, it navigates to another page. How can I do this?<issu... |
2018/03/06 | 570 | 1,911 | <issue_start>username_0: My html page is showing .html at the end of url I want to remove that. Can anyone help me out.
My url are like
```
mysitedoain.com/about.html
..../contact.html
```<issue_comment>username_1: Use [`NamedTemporaryFile`](https://docs.python.org/3/library/tempfile.html#tempfile.NamedTemporaryFile... |
2018/03/06 | 1,004 | 3,251 | <issue_start>username_0: So, I have this function:
```
local function addMainMenu()
local widget = require( "widget" )
-- Function to handle button events
local function handleButtonEvent( event )
if ( "ended" == event.phase ) then
scene = "GAME"
end
end
-- Create the... |
2018/03/06 | 316 | 1,353 | <issue_start>username_0: I am trying to get the tutorial project `startup_namer` running. I am getting following error after I added `english_words` dependency on `pubspec.yaml`
```
Resolving dependencies...
The Flutter SDK is not available.
Flutter users should run `flutter packages get` instead of `pub get`.
```
A... |
2018/03/06 | 599 | 2,306 | <issue_start>username_0: can anyone give me explain about difference coalesce and isnull in sql server ?
I was query with isnull for get a value in my localhost database and work fine but not worked on my server with isnull
I use coalesce and it's worked in my server
This is on my database localhost
```
set @QQ = IS... |
2018/03/06 | 1,195 | 4,177 | <issue_start>username_0: I have the following type definition in a script:
```
Add-Type -TypeDefinition @'
namespace Win32
{
//https://msdn.microsoft.com/en-us/library/windows/desktop/ms633548(v=vs.85).aspx
public static class Functions
{
[System.Runtime.InteropServices.DllImport("User32.dll", Entr... |
2018/03/06 | 657 | 2,393 | <issue_start>username_0: I am using the following code to remove **Stop words** from string but it ends up **trimming** other words, I just want to **remove the specific words** from a string without trimming other words.
```
import Foundation
var sentence = "God have created the creatures at his best"
let wordToRe... |
2018/03/06 | 1,045 | 4,014 | <issue_start>username_0: In the Common Data Services SDK `Microsoft.CommonDataService`, I can select entities from the db with this code
```
// Specify the generic object to retrieve
var genericEntitySet = client.GetRelationalEntitySet(
new EntitySetReference("Microsoft.CommonDataService.CommonEntities",
AdvEn... |
2018/03/06 | 887 | 3,104 | <issue_start>username_0: good day, I'm struggling to solve this problem. I spent 1 day to try to solve this problem but no luck for me.
I am trying to append a child inside onContentReady function on $.confirm() but seems doesn't work for me. here is the code
**html**
```
click
```
**Javascript**
```
function bt... |
2018/03/06 | 3,332 | 12,193 | <issue_start>username_0: This is perhaps a newbie question.
I have created a small reactjs app using create-react-app and I see that the bundle.js file is being served from <http://localhost:3000/static/js/bundle.js>. However, I do not see a physical "bundled" javascript file on my machine. How can I generate a physica... |
2018/03/06 | 3,632 | 13,268 | <issue_start>username_0: I have the following code to make a Stream Listener and get tweets from the Twitter API.
```
class MyStreamListener(tweepy.StreamListener):
#class constructor
def __init__(self,api=None):
super(MyStreamListener,self).__init__()
#creates class variables and instantiat... |
2018/03/06 | 588 | 2,195 | <issue_start>username_0: I am working on loading an HTML page from S3, which will contain dynamic info from the database. I have found a little info on how to go about this and was wondering if this would be best done with templating from lambda or pulling the page into the lambda function and updating the HTML on the ... |
2018/03/06 | 450 | 1,253 | <issue_start>username_0: I have an AngularJs app and i'm trying to use uib-timepicker. I created a test date in my controller:
```
$scope.testdate = new Date("2000-01-01T09:00:00.000Z");
```
and in my HTML I have:
```
TESTDATE: {{testdate}}
```
The TESTDATE: is displayed as "2000-01-01T09:00:00.000Z", which is wh... |
2018/03/06 | 395 | 1,161 | <issue_start>username_0: I have 3 fiscal\_Quarter(FQ) values for each country and I want to replace my 1st and 2nd FQ denominator values with 3rd FQ Denominator value. Below is the sample data which I want to achieve.
Note: I am trying to achieve this in my query result not by update the table data.
This is how my dat... |
2018/03/06 | 1,336 | 4,918 | <issue_start>username_0: I'm trying to make it where it where when an image is uploaded it will compress the image into a smaller size than what it currently is or something like that. I have it where an admin is able to upload an image or images to the main page slider, but i'm wanting to make it where it's a smaller ... |
2018/03/06 | 2,612 | 9,117 | <issue_start>username_0: I am scraping some data on the web and writing it to about 6 dataframes. I then want to write each of these dataframes to a separate sheet in an Excel file. I have looked online and tried two different things and am unable to get the result I'm after. If I use the following code, it only writes... |
2018/03/06 | 977 | 2,964 | <issue_start>username_0: I am trying to use channels to implement a kind of a worker pool. Please take a look at the code below
<https://play.golang.org/p/g7aKxDoP9lf> (The Go Playground)
```
package main
import (
"fmt"
"time"
)
func main() {
q1 := make(chan int)
fmt.Printf("worker 1\n")
go wor... |
2018/03/06 | 1,155 | 4,088 | <issue_start>username_0: bit stuck on this.
Have a list view and I want to change the theme to match the rest of my app.
Been following a few examples of how to change the selected item back color which I have working really well using custom renders, mainly this example
<https://blog.wislon.io/posts/2017/04/11/xamform... |
2018/03/06 | 347 | 1,193 | <issue_start>username_0: I'm trying to use a button in a reactJS file. This is the code I have
```
export class Add extends React.Component {
render() {
return (
Add
);
}
}
```
But react is giving me:
```
'Button' is not defined react/jsx-no-undef
```
I've included bootstrap in the dependcies in ... |
2018/03/06 | 317 | 1,175 | <issue_start>username_0: I want the package start time including milliseconds, in the below code I am using @[System::StartTime] but have milliseconds like this .000 no numbers are displaying
```
(DT_WSTR,50)(DT_DBTIMESTAMP2,3)@[System::StartTime]
```
How to get the package start time with milliseconds?
---
Edit
... |
2018/03/06 | 472 | 1,879 | <issue_start>username_0: Keras assigns incrementing ID numbers to layers of the same type, e.g. `max_pooling1d_7`, `max_pooling1d_8`, `max_pooling1d_9`,etc. Each iteration of my code constructs a new model, starting with `model = Sequential()` and then adding layers via `model.add()`. Even though each cycle creates a n... |
2018/03/06 | 643 | 2,591 | <issue_start>username_0: I have devise and have added in username to the registration process.
Ive also added in validations for username presence and length inside the mdoel.
On sign up if I don't put a Username in the validation kicks in and the flash message appears but on Edit User if i don't put a Username the v... |
2018/03/06 | 656 | 2,488 | <issue_start>username_0: I'm a brand new programmer and started out with python as my first language.
```
for user in range (1):
rowcol=input()
a=[]
a=rowcol.split(" ")
rowNum=int(a[0])
colNum=int(a[1])
board=[]
for row_count in range(rowNum):
row=[]
row.append(input())
board.append(row)
print(bo... |
2018/03/06 | 648 | 2,005 | <issue_start>username_0: Our app downloads a zip file, but the response is in binary.
So what I did is to convert it to base64. It works when the size is `87.7KB` but an error occurs when the response size is `183KB`.
The error is `Uncaught RangeError: Maximum call stack size exceeded`
The line in question is
```
b... |
2018/03/06 | 407 | 1,483 | <issue_start>username_0: I am trying to use scriptella in my project to copy data from one db to another, now the application has a frontend which users can use to create mapping between tables and create dynamic queries, now currently once the user submits the frontend queries are passed via a query engine and a scrip... |
2018/03/06 | 450 | 1,111 | <issue_start>username_0: I want to rotate the list like if user input 1 then new list will be `[7,4,5,6,9,8]`, if input 2 new list will be `[8,7,4,5,6,9]`.
without using any predefined function like pop etc
```
list =[4,5,6,9,8,7]
rotate = int(input('How many times you want to rotate : '))
for i in range(0,rotate,1):... |
2018/03/06 | 1,029 | 3,633 | <issue_start>username_0: I need to populate the custom fields from SO Screen to PO Screen when user mark the particular item for PO and PO Source as Dropship. And when user Creates Purchase Order from Actions menu on Sales Order screen.
I have written the code in custom field FieldUpdated event on PO screen POOrderEnt... |
2018/03/06 | 796 | 1,941 | <issue_start>username_0: I have created a dataframe like this:
```
A B
0 aa 1
1 bb 2
2 cc 3
3 dd 1
4 ee 1
```
then I used this line to insert a label:
```
df['label']= np.where((df['B']>2),'start',np.NaN)
```
result is
```
A B label
0 aa 1 nan
1 bb 2 nan
2 cc 3 start
3 dd 1 ... |
2018/03/06 | 290 | 1,018 | <issue_start>username_0: i want to read a file and grep pattern inside and display it line by line.
```
hi
hi
hello
hey
hello
hi
```
These are my file contents.
```
files="testOne.sh demo.sh test.sh"
for i in $files
do
while read line
do
pat=`grep "hi"`
echo $pat
done < $i
done
... |
2018/03/06 | 372 | 1,427 | <issue_start>username_0: I have a request like `http://example.com?value=xyz` and i have to write GET for this.
The requirement is, when i have a value, the response has to be for hat particular record "xyz" from database. But if the request is`http://example.com` i.e without value, it has to retrieve all values from t... |
2018/03/06 | 461 | 1,527 | <issue_start>username_0: I am trying to parse the following text
Input:
```
value1 @ M Temperature 1.30 ohmm @ 74 00 degF
value2 Q M. Temperature 1 70 ohmm @ 74.00 degF
value3 @ m Temperature 110 ohmm @ 74.00 degF
```
Expected Output:
```
value1 = 1.30
value1 temp = 74.... |
2018/03/06 | 3,860 | 12,752 | <issue_start>username_0: I'm writing a program which needs to scan all 65535 ports in a host searching for the ones which are open. This is what I have so far, and it works, but **it produces different results every time I execute the script**, why is this happening?
```
def check_open_port(host, port):
s = socket... |