date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/22 | 9,845 | 31,972 | <issue_start>username_0: I have written the program (below) to:
* read a huge text file as `pandas dataframe`
* then `groupby` using a specific column value to split the data and store as list of dataframes.
* then pipe the data to `multiprocess Pool.map()` to process each dataframe in parallel.
Everything is fine, t... |
2018/03/22 | 783 | 2,428 | <issue_start>username_0: Assume i > 0 is true.
Why is this expression:
```
while(i > 0) {
printf("Hello \n);
i--;
};
```
equal to this expression:
```
while(i--) {
printf("Hello \n");
};
```<issue_comment>username_1: Firstly, this is not an expression. It's a `while` loop. Also, they're not equal. `while(i-... |
2018/03/22 | 1,170 | 4,002 | <issue_start>username_0: >
> **Late Comment**
>
>
> The only way for this to work seems to be defining the foreign key columns in ***table\_name\_primary\_key*** format. If they don't fit this format, the relations simply doesn't work without specifying the column names.
>
>
>
I'm trying to learn how to use fore... |
2018/03/22 | 1,033 | 3,384 | <issue_start>username_0: I'm running a process that produces n number of outputs at different timestamps for a given input CSV. The output files are in CSV form and labelled as such:
"Output" \_ RouteName \_ Direction \_ YYMMDD \_ HHMMSS
I have a macro that reports on missing data in the files, I just need a list of... |
2018/03/22 | 198 | 756 | <issue_start>username_0: I installed laravel in my pc but forgot the directory I installed in.How can I find where I installed it if it's possible?I used composer to install laravel but I have forgotten the directory.<issue_comment>username_1: Thats not a laravel problem.
But generally people are using wamp64/www or x... |
2018/03/22 | 2,058 | 7,232 | <issue_start>username_0: When a script is invoked explicitly with `python`, the `argv` is mucked with so that `argv[0]` is the path to the script being run. This is the case if invoked as `python foo/bar.py` or even as `python -m foo.bar`.
I need a way to recover the original `argv` (ie. the one received by `python`).... |
2018/03/22 | 473 | 1,815 | <issue_start>username_0: I need to query data from Api then save it to Realm object. I need to get the data(observable) to the Presenter from the realm object unless 5 minutes from the last Api query elapsed, in other case I need to fetch from Api again. I`m new to RxJava. Any suggestions?<issue_comment>username_1: You... |
2018/03/22 | 643 | 2,520 | <issue_start>username_0: There is array Link ports[4] which is defined as static and part of main thread. In my project, there are various producer and consumer threads which are using this array by using static reference i.e. using name of class to access array. In some part of project, his array is getting update and... |
2018/03/22 | 4,343 | 14,353 | <issue_start>username_0: I built this app with the help of [this question](https://stackoverflow.com/questions/49408550/structure-of-a-synchronous-application-in-node-js-and-mongodb/49409296?noredirect=1#comment85825494_49409296) I did previously.
**app.js**:
```
var mongolib = require('./middlewares/db.js');
var dow... |
2018/03/22 | 379 | 1,465 | <issue_start>username_0: How can I use a parameter instead of a field name like:
```
Declare @Thecode varchar(10)
Set @Thecode= ‘code’ --'code' is field name.
Select @Thecode from sqltable
```<issue_comment>username_1: I think `db.closeConnection()` is called before all request responses are handled, and database ... |
2018/03/22 | 1,416 | 3,249 | <issue_start>username_0: I have the output data frame from apriori, the rules as given below:
```
rules
{A,B} => {C}
{C,A} => {B}
{A,B} => {D}
{A,D} => {B}
{A,B} => {E}
{E,A} => {B}
```
I got it till this point where I grouped the items in each rule (data.frame is df\_basket)
```
rules basket
{A,B} => {C}... |
2018/03/22 | 817 | 2,932 | <issue_start>username_0: Basically, I have a component with some animation, but I want to show them only when the user resize the page in a certain breakpoint (if the width is <800px, then I rearrange the divs, and in that case I want to show the animation).
I manage to do that, but the problem is that, when I first l... |
2018/03/22 | 623 | 2,228 | <issue_start>username_0: I am still new to Angular 4 (using Angular-CLI). I somehow do not manage to get simple Bootstrap Collapse work.
The following is my code for the collapse:
```
{{ idea.title }}
{{ idea.author }}
{{ idea.description }}
More
Show Details
```
**Update:**
I did import all the relevant ... |
2018/03/22 | 752 | 3,063 | <issue_start>username_0: I tried to convert my objective C AppDelegate to Swift AppDelegate. So I deleted the main.m file and Converted all the AppDelegate code to swift. I tried to run the project, then this error occurs.
>
> Cannot find protocol declaration for
> 'UNUserNotificationCenterDelegate'
>
>
>
In the... |
2018/03/22 | 1,018 | 3,950 | <issue_start>username_0: I have a requirement to call a controller from java code itself. The controller is as follows,
```
@RequestMapping(value = "temp", method = RequestMethod.POST)
@ResponseBody
public String uploadDataFromExcel(@RequestBody Map colMapObj, @ModelAttribute ReqParam reqParam) {
}
```
I am trying t... |
2018/03/22 | 1,329 | 4,491 | <issue_start>username_0: I design a notebook so that variables that could be changed by the user are grouped into distinct cells throughout the notebook. I would like to highlight those cells with a different background color so that it is obvious to the user where the knobs are.
How could I achieve that?
NB: [This r... |
2018/03/22 | 697 | 1,846 | <issue_start>username_0: I have a pandas dataframe of the form:
```
index | id | group
0 | abc | A
1 | abc | B
2 | abc | B
3 | abc | C
4 | def | A
5 | def | B
6 | ghi | B
7 | ghi | C
```
I would like to transform this to a weighted graph / adjacency matrix where nod... |
2018/03/22 | 1,779 | 5,733 | <issue_start>username_0: I have written a program that encrypts and decrypts a file that gets read in using a foursquare cipher. Currently, I am storing the file to a character array, passing that into a function which breaks it up into bigrams, and encrypting it that way using nested for loops in another function. At ... |
2018/03/22 | 1,075 | 3,543 | <issue_start>username_0: Here is the piece of code so far I've tried:
```
$month = array('red','green','red');
$values = array();
foreach($month as $dataset)
{
$values[] = ($dataset);
}
$columns = implode(", ",array_keys($values));
$escaped_values = array_values($values);
$valu = implode(", ", $escaped_values);
... |
2018/03/22 | 1,151 | 3,428 | <issue_start>username_0: I have data in table that can presented by SQL as below :
```
SELECT T.VERSION_ID T_VERSION_ID
,cast(T.START_DATE As Date) as T_START_DATE
,cast(ISNULL( LEAD (START_DATE) OVER (ORDER BY START_DATE),'9999-12-31') As Date) as CALC_END_DATE_LEAD
,ca... |
2018/03/22 | 785 | 2,644 | <issue_start>username_0: I trying to create a SQL query/stored procedure to count the number of applications in-progress on a certain day for a certain team.
Where I am having trouble is the following scenario: when the application is transferred to another user, the count for the day should not double count (a count... |
2018/03/22 | 994 | 3,140 | <issue_start>username_0: I'm trying to rename one column with the `rename` function. However, nothing changes. Could someone help me?
The code i have tried is the following:
```
Snd_Mer_Vol_Output = Snd_Mer_Vol_Output.rename(columns={'(1,Snd_Mer_Vol_Probability')': 'Snd_Mer_Vol_Probability'})
File "", line 1
Snd\_M... |
2018/03/22 | 475 | 1,626 | <issue_start>username_0: Anybody please help me
Im unable to connect my server after run this command sudo ufw allow 'Nginx Full'.
In aws is there any option to undo this changes or anything else
Thanks in advance<issue_comment>username_1: If you have server backup, try restoring to that backup.
If not, try lookin... |
2018/03/22 | 989 | 3,157 | <issue_start>username_0: I'm reading the codes about a TF official example about cifar10 on <https://github.com/tensorflow/models/blob/master/official/resnet/cifar10_main.py>
and I have some questions:
* In the function **`input_fn`**, what does
>
> num\_images = is\_training and \_NUM\_IMAGES['train'] or
> \_NUM\_... |
2018/03/22 | 648 | 1,849 | <issue_start>username_0: I am trying to remove the empty array elements (from a *csv* file) by using the `splice()` function.
The array elements are stored inside `csv.data`:
```
csv.data.forEach(function(item,index) {
if (item.length < 2) { // don't want anything less than two
csv.data.splice(index,1);
... |
2018/03/22 | 1,061 | 3,988 | <issue_start>username_0: I have implemented [**Firebase**](https://ionicframework.com/docs/native/firebase/) plugin with ionic 3 app. It is working fine. Could you tell me how can I use [**Crashlytics**](https://firebase.google.com/docs/crashlytics/get-started) with this plugin? According to the doc it seems for the na... |
2018/03/22 | 916 | 3,514 | <issue_start>username_0: I'm trying to create an Intergration Automation Script for a PUBLISHED Channel which updates a database field.
Basically for WOACTIVITY I just want a field value setting to 1 for the Work Order if the PUBLISHED channel is triggered.
Any ideas or example scripts that anyone has or can help wit... |
2018/03/22 | 1,631 | 5,403 | <issue_start>username_0: I am trying to create a working program where you have to input town, product and quantity and output the total price.
For example Town1>Milk>2 should result in `2`. But for some reason, there is no output. Can somebody please help me and show me the mistake?
Here is the code:
```
Console.Wr... |
2018/03/22 | 1,496 | 4,905 | <issue_start>username_0: I'm having issues with css and js files being cached and a solution I found here was to add a querystring and version number to my links. Unfortunately this does not work with all browsers. Another solution proffered was to embed the version number into the filename and the remove it with URL r... |
2018/03/22 | 1,443 | 4,706 | <issue_start>username_0: The **i** variable from the **for** counter works when getting each API for each Twitch streamer, however when I use it to generate divs it just comes out as 8. Is there a way I can make the counter work when getting the API data and iterating through the streamers?
```
$(document).ready(funct... |
2018/03/22 | 472 | 1,535 | <issue_start>username_0: I am working on an automation, where I will get the list of jobs that did not start to run even though the scheduled time has crossed. I am going to get the list based on an 2 hour time gap.
Now my question is how to get the list of jobs that are scheduled on a particular time period on that p... |
2018/03/22 | 451 | 1,483 | <issue_start>username_0: Whenever I try printing I always get truncated results
```
import tensorflow as tf
import numpy as np
np.set_printoptions(threshold=np.nan)
tensor = tf.constant(np.ones(999))
tensor = tf.Print(tensor, [tensor])
sess = tf.Session()
sess.run(tensor)
```
As you can see I've followed a guid... |
2018/03/22 | 696 | 2,448 | <issue_start>username_0: I'm given an image (32, 32, 3) and two vectors (3,) that represent mean and std. I'm trying normalize the image by getting the image into a state where I can subtract the mean and divide by the std but I'm getting the following error when I try to plot it.
```
ValueError: Floating point image ... |
2018/03/22 | 832 | 2,613 | <issue_start>username_0: I'm trying to create a view that returns all the bookings that are between a certain date. I have a table called Booking which includes the columns:
```
startDate date,
noOfDays int,
```
and more columns which aren't relevant to the view I'm trying to create.
I'm trying to run the following... |
2018/03/22 | 902 | 2,872 | <issue_start>username_0: After firing some async queries on my multi node cluster using a python program , one of my node in cluster has gone down.
>
> cassandra.pool:Error attempting to reconnect to 192.168.19.5,
> scheduling retry in 4.0 seconds: errors=Timed out creating connection
> (5 seconds), last\_host=None... |
2018/03/22 | 1,603 | 5,748 | <issue_start>username_0: I'm all very new to this stuff - so apologies if this is a silly question.
I've created a multiple-choice quiz using HTML, CSS, JavaScript (angular.js), and a JSON data file; off a tutorial I found. I am rather pleased with how it turned out; but I really need to add the functionality of havi... |
2018/03/22 | 700 | 2,714 | <issue_start>username_0: I need to LEFT JOIN but the "right" table is very large and I only need values after 2018-01-01, while the whole table has records from up to 2012. To speed up my query I therefore need to not LEFT JOIN the full table, but the table with records > 2018-01-01. If I use a where statement at the e... |
2018/03/22 | 972 | 3,308 | <issue_start>username_0: I have data like
```
ConcurrentDictionary OneTwoThree =
new ConcurrentDictionary();
```
I want a result like this [Final Image](https://i.stack.imgur.com/GNHE5.png)
What I tried:
```
DataTable dt = new DataTable();
dt.Columns.Add("TwoDetails");
ISet two = new HashSet();
Parallel.ForE... |
2018/03/22 | 820 | 2,821 | <issue_start>username_0: ```
var str = "[0005000003](javascript:void(0))"
var result = "Complaint ID"
```
I wanted to extract alt value of anchor tag in the above string<issue_comment>username_1: You can not access the data table rows with their names but using row numbers you can find a particular row in the da... |
2018/03/22 | 2,250 | 8,007 | <issue_start>username_0: I have classic web application rendered on server. I want to create admin panel as single page application in React. I want to server admin panel from <https://smyapp.example.com/admin/>. I try to use `create-react-app` but it assumes that i serve SPA from root URL. How should I configure `crea... |
2018/03/22 | 1,546 | 5,215 | <issue_start>username_0: I'm trying to have only some properties of *ancestor* exposed on my *descendant*. I try to achieve it through `Pick`
```
export class Base {
public a;
public b;
public c;
}
export class PartialDescendant extends Pick {
public y;
}
```
but I receive two errors -
>
> Error: TS... |
2018/03/22 | 270 | 772 | <issue_start>username_0: Probably an incredibly easy change but I seem to have a brain fart in this. I have a column and I want my formula to search for both "Open" and "In-Transit".
```
=COUNTIFS('<NAME>'!A:A,"Open",'<NAME>'!G:G, "PAB")
```<issue_comment>username_1: perhaps:
```
=COUNTIFS('<NAME>'!A:A,"Open",'<NAM... |
2018/03/22 | 490 | 1,847 | <issue_start>username_0: The avgtool associated with increment\_build\_number plugin in Fastlane returning error.
When I'm running `increment_build_number` in Fastlane, I'm getting
>
>
> ```
> Updating CFBundleVersion in Info.plist(s)...
>
> $(SRCROOT)/Info.plist
> Cannot find "$(SRCROOT)/Info.plist"
>
> ```
>
>... |
2018/03/22 | 1,680 | 5,589 | <issue_start>username_0: I'm attempting to stream a H.264 video feed to a web browser. Media Foundation is used for encoding a fragmented MPEG4 stream (`MFCreateFMPEG4MediaSink` with `MFTranscodeContainerType_FMPEG4`, `MF_LOW_LATENCY` and `MF_READWRITE_ENABLE_HARDWARE_TRANSFORMS` enabled). The stream is then connected ... |
2018/03/22 | 1,444 | 5,097 | <issue_start>username_0: I need to call an azure function; fn(b), from another azure function; fn(a).
fn(a) -> fn(b)
Both these functions are in same function app. The problem is whenever I try to call (b), I get 403-Forbidden "data at the root level is invalid".
Is it possible to call an azure function from another... |
2018/03/22 | 796 | 2,640 | <issue_start>username_0: I am new to Gensim, and I am trying to load my given (pre-trained) Word2vec model. I have 2 files: *xxxx.model.wv* and a bigger one *xxxx.model.wv.syn0.npy*.
When I call the following line:
```
gensim.models.Word2Vec.load('xxxx.model.wv')
```
I get the following error:
```
AttributeError: ... |
2018/03/22 | 805 | 2,839 | <issue_start>username_0: The best way to include System.Net.Http.Formatting might be through nuget. But when a developer sees it in the default Assemblies section in reference manager then they just add it, expecting all developers to have it installed by default. But to our surprise, some developer machines did not ha... |
2018/03/22 | 848 | 2,854 | <issue_start>username_0: This is part of a `html` code in ASP.NET (Visual Studio) and when I try to run the code, it gives me the following `error`:
>
> Unhandled exception at line 216, column 63 in <http://localhost:55031/WebForm1.aspx>
> 0x800a1391 - JavaScript runtime error: 'addInput' is undefined
>
>
>
Som... |
2018/03/22 | 635 | 2,114 | <issue_start>username_0: I'm wondering how to let typescript know that the code is functionally valid.
It's saying it could be a string, when I'm really unsure how that would be possible. Is this a bug? Or am I just typing something incorrectly?
Example:
```
const i18nInstance = {
options: {defaultNS: 'common'}
... |
2018/03/22 | 848 | 3,039 | <issue_start>username_0: All,
I have the below code which works okay, however I would like to save (Overwrite changes) instead of SaveAs. To my knowledge the Close(True) Should achieve this however it still provides the user with a save as option. :S
Any help / recommendations on the below would be much appreciated. ... |
2018/03/22 | 1,171 | 3,819 | <issue_start>username_0: I've got 2000+ nodes and 900+ edges, but when I was trying to make graphics in networkx, I found all the nodes crowded together. I tried changing attribute values, such as scale, k. I found them no use since there were hundreds of nodes with labels below which means I could not choose the small... |
2018/03/22 | 760 | 3,013 | <issue_start>username_0: I'm developing with Visual Studio 2017 a WebForm Asp.Net web application.
it's a couple of days that the event handler autocomplete doesn't work anymore:
Previously, after I've added a control on the page, I was able to type the name of the event, *OnClick* in example, and then by typing the ... |
2018/03/22 | 302 | 1,004 | <issue_start>username_0: how I can get fetch my 10 last comments with just 1 comment per user in laravel
I saw [this](https://stackoverflow.com/questions/36578370/show-last-comment-which-just-1-comment-per-user) but I want do it with eloquent in clean way<issue_comment>username_1: Did you try
```
Comment::groupBy('us... |
2018/03/22 | 656 | 2,373 | <issue_start>username_0: Consider the following React Router V4 code:
```
const isAuthenticated = () => {
let hasToken = localStorage.getItem("jwtToken");
if (hasToken) return true;
return false;
};
const AuthenticatedRoute = ({ component: Component, ...rest }) =>
isAuthenticated()
?
: window.locatio... |
2018/03/22 | 493 | 2,114 | <issue_start>username_0: I am new to Hyperledger.
Where is the transaction data stored?
In the disk or any kind of db?
How many transactions can be stored in the Hyperledger node where it is stored?
Is there a max limit?
Is there a estimate on how fast a Hyperledger transactions grows?
What are the steps to be... |
2018/03/22 | 591 | 1,930 | <issue_start>username_0: I made an input form when the user types in a name.
a isset($\_COOKIE) checks if the made cookie already exists.
if the cookie exists you'll get a message: Welcome back.
if not you'll get the message: this is your first time here.
but somehow i always get the message welcome back.
Here is my c... |
2018/03/22 | 490 | 1,665 | <issue_start>username_0: I am stuck in token saving in mvc
While calling web api 2.0 in mvc 5, I want to store generated api token in mvc client side so that next time when I hit action of api that is authorized action so mvc should pass only token to api but api should look first whether token is expired or not if ex... |
2018/03/22 | 625 | 2,430 | <issue_start>username_0: I'm using Tensorflow to generate a transformation matrix for a set of input vectors (X) to target vectors (Y). To minimize the error between the transformed input and the target vector samples I'm using a gradient descent algorithm. Later on I want to use the generated matrix to transform vecto... |
2018/03/22 | 1,012 | 3,600 | <issue_start>username_0: I am building a shared library on a linux system which is intended to be used in a project that will be deployed in a Docker on a server. This shared library uses openmp. I am therefore wondering if it is better (or more portable) to have
1. openmp linked statically to my shared library
2. I ... |
2018/03/22 | 1,181 | 4,649 | <issue_start>username_0: I am getting this error when I try to execute HTTP unit test cases.
I am using Angular 5. How can I resolve this?
Below is my code for normal GET. Below code just brings normal GET.
```
import { TestBed } from '@angular/core/testing';
import { HttpClientTestingModule, HttpTestingController, ... |
2018/03/22 | 856 | 2,294 | <issue_start>username_0: I want to create a 3d mask from a 2d mask. Lets assume I have a 2d mask like:
```
mask2d = np.array([[ True, True ,False],
[ True , True, False],
[ True , True ,False]])
mask3d = np.zeros((3,3,3),dtype=bool)
```
**The desired output should look like:**
```
mask3d = [[[ True True False]
... |
2018/03/22 | 586 | 1,639 | <issue_start>username_0: I am working with VSTO Outlook addin. I have to find the version outlook which is installed and then have to set some registry value.
I have to set **Software\Microsoft\Office\16.0\Outlook\Preferences** one DWord value if outlook16 present and if outlook13 is present then need to set **Software... |
2018/03/22 | 381 | 1,524 | <issue_start>username_0: How do I use a custom bean as a producer endpoint in a camel and then wire it to processing beans or/and consumer beans.
For example I would like to use one of the bean methods to consume data from database and then pass on the results to another method of the same bean or to a another bean to... |
2018/03/22 | 974 | 2,453 | <issue_start>username_0: I have a text file with entries like this:
```
Interface01 :
adress
192.168.0.1
next-interface:
interface02:
adress
10.123.123.214
next-interface:
interface01 :
adress
172.123.456.123
```
I'd like to parse it and get only the IP address corresponding... |
2018/03/22 | 695 | 2,470 | <issue_start>username_0: I'm attempting to use GraphViz to visualize a decision tree with Google Cloud Datalab, but the following error is being thrown:
InvocationException: GraphViz's executables not found
I found a [related post](https://stackoverflow.com/questions/27666846/pydot-invocationexception-graphvizs-execu... |
2018/03/22 | 723 | 2,470 | <issue_start>username_0: I have written a unit test in Jest for a TypeScript function(`checkEmail`) that internally calls `showAlert`.
`showAlert` in the `utils.ts`:
```
export const showAlert = (message: string) => {
toast(message);
};
```
And in my test case I have mocked the above function:
```
import {showAl... |
2018/03/22 | 589 | 2,068 | <issue_start>username_0: I am trying to join the third table `comment` in this query. The complaint and comment table relate to the main table `queue` by `id` and `queue_id`. The complaint and comment table have a couple of different columns. This query brings in all the columns and the rows from `comment` but not `com... |
2018/03/22 | 413 | 1,475 | <issue_start>username_0: I am using `Toggleclass` jquery function which toggles `animated wobble` class on each click. How can i animate that button on every click (not every two clicks). [animate.css](https://github.com/daneden/animate.css) on Github.
```js
$("#Bouncebtn").click(
function(e) {
e.preventdefaul... |
2018/03/22 | 917 | 3,446 | <issue_start>username_0: I have a script that runs on two different pages. All it does is find the text of a specific div that is next to the div with the text UID. Note that I cannot edit the actual content of the page in question, otherwise I would just give these classes or IDs to target them directly.
```
$(docume... |
2018/03/22 | 360 | 1,256 | <issue_start>username_0: I want to pass php variable into html for further processing.
this is php variable-
```
$coords = array();
array_push($coords,some value);
```
I want to pass this to html-
```
var Coordinates = [];
Coordinates.push(' php $coords; ?');
```
But this is not the correct way as it gives err... |
2018/03/22 | 895 | 2,800 | <issue_start>username_0: I have two tables that I created which have the following columns:
* Table 1: MediaID, CurrentIndex, isUsing
* Table 2: Table2ID, MediaID, NewIndex
I want to make a query which checks the following things
1. `IsUsing` is null or false in Table1
2. Return the top 1 from table2 if `NewIndex` ... |
2018/03/22 | 1,468 | 4,793 | <issue_start>username_0: My client has the following topology:
```
User <--> Apache <--> TomCat <--> JBossAS7 <--> Mule
```
The Mule needs to communicate with another server, **on another domain**, to retrieve information ask by the user. This communication uses HTTPS, and the certificate is in the trustore of the M... |
2018/03/22 | 476 | 1,555 | <issue_start>username_0: I have Months' `DropDownListFor` and I want to select current month as default I tried this two options
```
@{
var currentMonth = month.FirstOrDefault(x => x.Id == DateTime.Now.Month).Id;
}
```
**1.**
```
@Html.DropDownListFor(x => x.monthId, new SelectList(month, "Id", "Name", currentMont... |
2018/03/22 | 1,166 | 4,178 | <issue_start>username_0: I know how ajax works but I wanna know that how to retrieve data from a specific php function so I dont create a number of pages for each function 1 page can do all the work.
AngularJs:
```
var app = angular.module("myapp",[]);
app.controller("usercontroller",function($scope,$http){
$http... |
2018/03/22 | 1,269 | 3,961 | <issue_start>username_0: I have a popup that has two containers:
1. text-container
2. buttons-container
The popup has width of 370px and the buttons appear below the text.
The width of the popup can be changed **only in a case** that there is long text in the buttons that cause the popup width to grow (the buttons s... |
2018/03/22 | 680 | 2,922 | <issue_start>username_0: I am pulling weather data from an API. I wrote a script that fetches the data every 15 minutes. What is the best practice for running this scripton google's app engine?
* Appengine python app?
* Cron job?
* Running the script in a VM?<issue_comment>username_1: I have done exactly what you're a... |
2018/03/22 | 1,716 | 4,731 | <issue_start>username_0: I'm appending a row to a table. How can I change the background color in that row for a group of cells. Say column has 25 columns; columns starting from 17 till 22 needs a background color change.
This is what I tried so far:
```
$("#table1").append(row1);
$(row1).children('td')
.not('td:... |
2018/03/22 | 1,845 | 5,734 | <issue_start>username_0: I have an Excel VBA program that can produce hundreds of potential reports in Word. It exports a large table (up to 100 rows) from Excel to Word, and then inserts a hard page break before the next section. Then it continues to the next section of the report, pasting another table. The issue is ... |
2018/03/22 | 1,091 | 3,613 | <issue_start>username_0: I have this hash
```
FORMATS = {
'vertical_4' => %w[vertical small small small small],
'horizontal_4' => %w[horizontal small small small small],
'horizontal_2' => %w[large small small],
'mixed_3' => %w[vertical horizontal small small],
'huge' => %w[horizontal... |
2018/03/22 | 457 | 1,752 | <issue_start>username_0: When the user successfully login, i'm storing the username in tempdata so i can use it in my \_Layout:
```
TempData["username"] = model.Email.Split('@')[0];
TempData.Keep("username");
```
on my \_Layout:
```
- ##### Welcome, @TempData["username"]
```
this actually works on the first load... |
2018/03/22 | 152 | 443 | <issue_start>username_0: How do I convert from int to uint16 in vala?
My requirement is to convert the text in decimal in a gtkEntry to uint16.
How do I do this?<issue_comment>username_1: ```
int myint = 543;
uint16 z = 0 + myint;
```
Upvotes: 0 <issue_comment>username_2: Just cast. `uint16 as_uint16 = (uint16) ... |
2018/03/22 | 290 | 1,035 | <issue_start>username_0: I am trying to create a method to delete rows from my dynamic form and I am having trouble targeting the array.
so the form group is this:
```
this.piForm = this.fb.group({
milestoneSaveModel: this.fb.group({
milestonesToCreate: this.fb.array([this.mileStoneCreate()]),
}),
});... |
2018/03/22 | 456 | 1,796 | <issue_start>username_0: I use [React Navigation](https://reactnavigation.org/) for routing and navigation in a react native project. I have a bottom tab bar component, which is partially hidden in Android.
**TabNavigator**
```
...
{
lazy: true,
tabBarPosition: 'bottom',
animationEnabled: ... |
2018/03/22 | 263 | 949 | <issue_start>username_0: this is code
```
[${jk.read}
${jk.idnum}](openmessage)
```
---
javascript for selecting the value and showing in alert box
```
var df = document.getElementsByTagName('az3');
var de = document.getElementsByTagName('a1');
function sendtoanother() {
... |
2018/03/22 | 731 | 2,280 | <issue_start>username_0: I'll try every solution which I get from stack overflow but its my bad luck. I store my JSON response in [Any] array like this:
```
var json = JSON()
var arrClientType = [Any]()
self.json = JSON(value) //value is json data
self.arrClientType = self.json["client_type_data"].arrayValue
```
n... |
2018/03/22 | 372 | 1,426 | <issue_start>username_0: I just started OOP java and im struggling with getting a sum of my class type elements from an array. Can anyone help me?
hwComponents is a list type of a class HardwareComponent. Any help would be appreciated.
```
private Collection hwComponents = new ArrayList<>();
public float calculatePric... |
2018/03/22 | 563 | 2,117 | <issue_start>username_0: As a beginner, what I understood is that Python Standard Library (PSL) provides a lot of modules which provide a lot of functionalities, but still if I want to use those then I have to import the module, for example, `sys`, `os` etc. are PSL modules but still those need to be imported.
Now, I ... |
2018/03/22 | 685 | 2,601 | <issue_start>username_0: I am attempting to create a form in Google Spreadsheets which will pull an image file from my Drive based on the name of the file and insert it into a cell. I've read that you can't currently do this directly through Google Scripts, so I'm using setFormula() adn the =IMAGE() function in the tar... |
2018/03/22 | 1,372 | 6,865 | <issue_start>username_0: First of all I'm really new to Firestore and its functionalities, so I apologize if some of this might feel obvious to others. These things are just not registering in my mind yet.
I'm trying to create a 2 person multiplayer game using the language Swift and Firestore as the backend. However ... |
2018/03/22 | 605 | 2,154 | <issue_start>username_0: I am currently testing ways to reliably detect throttling in the C# GraphSdk.
When sending too many contact requests (10.000req/10min) to:
```
/v1.0/users/{Userid}/contacts/{contactId}
```
I will receive the following ServiceException:
[
.then(resp => resp.json())
.then(arr => {
that.setState({
images: arr
});
})
.then(this.test());
```
on the l... |
2018/03/22 | 650 | 2,784 | <issue_start>username_0: As I need to send message on user's whatsapp number so I have downloaded WhatsApp API from nuget packages.
and also I implemented code according to that. But after so many search I found that I need to register mobile number to get password...using WART but I think this application is not worki... |
2018/03/22 | 486 | 1,522 | <issue_start>username_0: I'm creating node.js project now. I've a VPS which **ubuntu 16.04** as op system and **nginx** as http server installed on it. As you know we use URL with port number like <http://localhost.com:3000> to access our node.js projects. I wonder is there any way to access without port number like <h... |
2018/03/22 | 402 | 1,522 | <issue_start>username_0: Running this command inside a .gitlab-ci.yml:
```
task:
script:
- yes | true
- yes | someOtherCommandWhichNeedsYOrN
```
Returns:
```
$ yes | true
ERROR: Job failed: exit status 1
```
Any clues, ideas why this happens or how to debug this?
Setup:
Gitlab runner in a docker<issue_... |
2018/03/22 | 331 | 1,175 | <issue_start>username_0: I know the question is already out there. But i cant solve my problem with the other solutions. I want to create a List out of Lists.
My Code:
```
class SomeClassName
{
static List saveFields = new List();
public static List SaveFields
{
get { return saveFields; }
set { saveFields = v... |
2018/03/22 | 693 | 2,595 | <issue_start>username_0: I am getting the error for following boto3 code in lambda to access dynamo db table through STS credentials.
The code is below
```
import boto3
def lambda_handler(event, context):
sts_client = boto3.client('sts')
# Call the assume_role method of the STSConnection object and pass the role
# AR... |
2018/03/22 | 2,248 | 6,833 | <issue_start>username_0: Problem applying just created migration (Added db.Model) through Flask-Migrate (SQLAlchemy) for PostgresSQL DB.
The error itself:
```
sqlalchemy.exc.InternalError: (psycopg2.InternalError) cannot drop table parameter_subtype because other objects depend on it
```
Full error stack trace is:
... |
2018/03/22 | 3,654 | 12,926 | <issue_start>username_0: I know this question has been asked lots of times but none of solutions worked for me.
I have a custom UIView class which I use for displaying alert message. I added UIButton to close the view. However, nothing happens when I tab it.
```
import UIKit
public class Alert: UIView {
public... |
2018/03/22 | 389 | 1,691 | <issue_start>username_0: We have a brand new (as in, created a couple of days ago and no resources in it yet) Azure pay-as-you-go subscription, and now when I try to provision something, I'm not allowed.
Looking at the subscription in the portal, under "Usage + quotas" the list is empty.
Did we do something wrong whe... |
2018/03/22 | 485 | 1,899 | <issue_start>username_0: I work with some big file. I need to check that the file end with a empty line or the previous line end with a LF.
Exemple of file :
```
a
b
c
d
empty line
```
To read it I use nio and iterator.
```
try (Stream ligneFichier = Files.lines(myPath, myCharset)){
Iterator iterator = ligneFich... |