date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/02/28 | 689 | 2,487 | <issue_start>username_0: I'm looking for an easy way to query my database in firebase using swift to retrieve a random object. I've read a lot of threads and there doesn't seem to be an easy way. One example showed it can be done be creating a sequential number but there's no information on how to create this sequentia... |
2018/02/28 | 879 | 3,286 | <issue_start>username_0: The C# window which performs a data pull from SQL stored procedure, doesn't show 'Time Elapsed' because the Timer control doesn't seem to work.
One of my applications, that uses Timer control - doesn't seem to keep the timer ticking when it's processing.
If I perform `Timer.Start()` on Form\_... |
2018/02/28 | 1,059 | 4,134 | <issue_start>username_0: I have a python package that I can use standalone just fine. When I install it to site-packages with pip, though, I lose the ability to import submodules.
My package looks like this:
```
mypackage
mypackage
__init__.py
mymodule.py
moduledir
__init__.py
... |
2018/02/28 | 2,308 | 5,256 | <issue_start>username_0: I am trying to sort an list which contains numbers and letters:
```
names = ["5aG", "6bG", "10cG", "J1", ...]
```
The output should look like this:
```
['5aG', '5bG', '5aR', '5bR', '6aG', '6bG', '6cG', '6aR', '6bR', '7aG', '7bG', '7aR', '8aG', '8bG', '8aR', '9aG', '9bG', '9aR','10aG', '10bG... |
2018/02/28 | 2,098 | 4,974 | <issue_start>username_0: I have an array with many objects (Drugs). each object has 3 keys: "Drug1", "Drug2", and riskingRate. How can i remove duplicated objects if Drug1 and Drug2 values are same (riskingRate is not important in finding duplicats). then keep object with higher riskingRate and remove others. here is a... |
2018/02/28 | 587 | 2,216 | <issue_start>username_0: **Scenario:**
I have a grid in which I want to display data. I have potentially two (or more) behavior subject data sources. I also have a toggle observable that returns a number indicating which source I want to display data from (i.e. 1 means source 1, 2 means source 2, etc).
**Question:**... |
2018/02/28 | 716 | 2,177 | <issue_start>username_0: Using Notepad++ and regex, I need to find all lines from a large (3MB) text file with a pattern like this:
"Could not find store with warehouseid: 12 and zipcode 55555"
The number following the warehouseid: could be 1 or two digits, whereas the number following the zipcode is always a space... |
2018/02/28 | 808 | 2,631 | <issue_start>username_0: I am trying to connect to my Neo4j graph database server from a new machine. I can successfully connect from an older machine but do not wish to use the older one anymore.
I have reduced the problem to a simple script that returns an exception:
```
from neo4j.v1 import GraphDatabase, basic_a... |
2018/02/28 | 858 | 3,419 | <issue_start>username_0: In SSDT I have a table and columnstore index defined as:
```
CREATE TABLE [dbo].[FactBillPayTransaction] (
[NaturalKeyText] NVARCHAR (500) NOT NULL,
[RecordEffectiveDateTime] DATETIME2 (7) NOT NULL,
[SourceEffectiveUTCDateTime] DATETIME2 (7... |
2018/02/28 | 619 | 2,390 | <issue_start>username_0: I am trying to create a loop that takes an input by a user and draws however many squares but it increases the size of the squares with each loop, however 2 sides are stay connected. I'll include the graphic to better explain.
[ {
return 'Hello Level Up';
}
}
};
const resolver2 = {
Query: {
resolutions() {
return [
{
_id: 'alksdfaqwef231adsf2',
name: 'Get stuff done!'
},
{
_id: ... |
2018/02/28 | 398 | 1,430 | <issue_start>username_0: Suppose I have a list of some class A defined as:
```
Object list = new ArrayList();
```
I want to iterate over this. Is it possible? If yes then how? Even if I find the type of list using reflections then also I won't get to class A.
Also, note that I don't know what class A is. I just have... |
2018/02/28 | 802 | 2,830 | <issue_start>username_0: I have a simple code like this:
```
use LWP::UserAgent;
use HTTP::Cookies;
use HTTP::Request;
my $cookies = HTTP::Cookies->new();
my $browser = LWP::UserAgent->new();
$browser->agent(' ... ');
$browser->cookie_jar($cookies);
my $request = HTTP::Request->new();
my $response; ... |
2018/02/28 | 544 | 1,791 | <issue_start>username_0: I have the following `EffectiveDay` which I want to change datetime to the midnight.
```
public DateTime EffectiveDate { get; set; }
```
[](https://i.stack.imgur.com/qp3Aq.jpg)
In the screenshot, it shows **02/28/2018 5:00:... |
2018/02/28 | 1,417 | 4,894 | <issue_start>username_0: I have a DateTimePicker on my page, where the user selects the datetime in their local timezone. But when we save that in the DB, I need to convert this to UTC and save it. Similarly, while displaying this to the user, again I need to convert from UTC to user's local timezone.
Saving: LOCAL ti... |
2018/02/28 | 533 | 1,266 | <issue_start>username_0: I have a fairly basic multidimensional array which looks something like this:
```
2017,123
2017,25
2018,5
2018,60
2017,11
```
I wish to run a ForEach() loop or similar function to total the numbers in the second element based on the year indicated in the first so that I end up with an outpu... |
2018/02/28 | 732 | 2,445 | <issue_start>username_0: ```
public class Parent
{
public int ParentId { get; set; }
public string ParentPropertyA { get; set; }
public string ParentPropertyA { get; set; }
public List Children{get; set;}
}
public class Child
{
public int ChildId { get; set; }
public string ChildPropertyA { get; set... |
2018/02/28 | 588 | 2,671 | <issue_start>username_0: I'm currently studying different compression algorithms such as huffman, adaptive huffman and Lempel Ziv algorithms but I don't really understand how it should work on a random file.
So I know that they work on text file, but is it the only thing they work on?
Can I use Huffman to compress an ... |
2018/02/28 | 1,171 | 2,829 | <issue_start>username_0: I have a splayed Kdb database of symbols, floats, and timestamps. I'd like to convert this to NumPy arrays. However using the following code...
```
>>> import numpy as np
>>> from pyq import q
>>> d = q.load(':alpha/HDB/')
>>> a = np.array(d)
```
Returns this error...
```
Traceback (most re... |
2018/02/28 | 924 | 3,624 | <issue_start>username_0: I am just beginning to learn C++ and using Visual Studio 2017 as the IDE. I want to stay away from the CLR, and even Windows specific code as much as possible. Every new project option seems to say 'Windows', and thus suggest Windows OS dependencies, except for General > Empty Project, so that ... |
2018/02/28 | 386 | 1,280 | <issue_start>username_0: I'm new to AG-Grid, so forgive me if this is a dumb question. We're using the OSS version of Ag-Grid in an Angular 5 application. I have a column where I am combining two sets of summary data and showing them. I would like to have a line-break between the two pieces of text.
Right now it's do... |
2018/02/28 | 495 | 1,669 | <issue_start>username_0: I am trying to update some values into a database. The user can give the row that should be changed. The input from the user, however is a string. When I try to parse this into the MySQL connector with python it gives an error because of the apostrophes. The code I have so far is:
```
import m... |
2018/02/28 | 557 | 1,944 | <issue_start>username_0: How is it possible to get the new typed character (not the whole new value of the ngModel) then apply logic on it, then returning a new value for the ngModel ?
**Example:** let's say when a user types inside an input we want to take the **new character** he types then change it to something an... |
2018/02/28 | 646 | 2,011 | <issue_start>username_0: I have create a function which has an optional argument `y` on it:
```
def f(x, *y):
print(x)
if y in locals():
print(y)
```
When passing these `x` and `y`arguments to the function it only ouputs `x` even though `y` is in the local variables:
```
a = ['String', 'Optional String'... |
2018/02/28 | 500 | 1,773 | <issue_start>username_0: [enter image description here](https://i.stack.imgur.com/mG1An.png)Essentially I have a tab panel. There are three tabs. Tab one is inventory items, tab two and three are separate portals that show captured signatures. I need help creating a button that opens my signature capture window, passes... |
2018/02/28 | 651 | 2,275 | <issue_start>username_0: I would like this mecanism:
* when user try to access to *localhost/pro/details/alias* => show this page but with tiny url *localhost/alias*
* when user try to directly access to *localhost/alias* => show this page with same url *localhost/alias*
* when user try to access to \*localhost/{contr... |
2018/02/28 | 646 | 2,285 | <issue_start>username_0: I'm trying to run two distinct actions in two differents browser.
With
[Is Selenium WebDriver thread safe?](https://stackoverflow.com/questions/28093347/is-selenium-webdriver-thread-safe) i have learned an important thing: "You /can/ on the other hand instantiate one WebDriver instance for ea... |
2018/02/28 | 705 | 2,440 | <issue_start>username_0: I'm trying to check the contents of a list for duplicates by storing the list in a second variable and removing one item from the list and then checking if there is still a copy of that item in the list. Here's what I've got:
```
disposableList = list
for i in disposableList:
disposableLis... |
2018/02/28 | 899 | 2,838 | <issue_start>username_0: ```
df=pd.DataFrame(['abc\n123\n232','1\n2\n3\n4\n5\n6'])
df.to_csv('text.csv')
```
I would like to have in a single cell in the xlsx (Edited: not csv):
```
abc
123
232
```
The desired output is A1 cell **only** being filled.
The dataframe has only 1 cell.
But the above code would result ... |
2018/02/28 | 632 | 2,138 | <issue_start>username_0: I want to do a menu where u can choose the audio apps that are installed in your phone (like Youtube, Music, Skype...) so I don´t know the exactly name of this type of menu (if this have a special name).<issue_comment>username_1: The first thing I would like to point out is your use of the vari... |
2018/02/28 | 1,605 | 3,437 | <issue_start>username_0: Let's say I have a nested list like:
```
my_list = [[1, 1, "c1"], [1, 2, "c1"], [5, 1, "c2"], [5, 2, "c2"], [6, 1, "c3"], [6, 2, "c3"], [2, 1, "c4"], [2, 2, "c4"], [3, 1, "c5"], [3, 2, "c5"], [4, 1, "c6"], [4, 2, "c6"]]
```
I also have another list holding the position based on which sorting... |
2018/02/28 | 453 | 1,786 | <issue_start>username_0: Interestingly, I cannot reproduce the problem in Codepen or a simple basic page like in the example below. Also, the code works fine when resizing by dragging. It's as if maximize and restore are not considered "resizing".
```html
div {
width: 10px;
height: 10px;
border: 3px solid red;... |
2018/02/28 | 515 | 2,113 | <issue_start>username_0: I have a fragment, and I am starting an activity from the fragment. Now I want to call a method from the fragment in the new activity.
I tried to use interface but it seems I can't since I don't create an object of new activity in the fragment to have it call the `setListener()`. I am using in... |
2018/02/28 | 570 | 2,216 | <issue_start>username_0: I am not very familiar with python so I apologise in advance. Is it at all possible to have a numpy array such as `numpy.array([a, b, c])` and add that array to an empty numpy array as an element?
Assuming this is possible, is it possible to then sum the first value of each element of multiple... |
2018/02/28 | 570 | 1,920 | <issue_start>username_0: I use powershell app deployment tool kit and I have a script to install a few MSI's. For one of the MSI's, I have a certificate (`cert.cer`) that I need to install on each machine's trusted publisher.
After doing some digging, I came up with this:
`certutil.exe -addstore TrustedPublisher cert... |
2018/02/28 | 501 | 1,403 | <issue_start>username_0: I would like to merge a target column from one data frame to another. The merged data frame has many more keys and they are are close, but do not exactly match the original data frame. See an example below:
Original data frame (FDMA)
```
DMA
130506
130510
130512
130555
130556
```
... |
2018/02/28 | 250 | 905 | <issue_start>username_0: My question is about searching through html format with Python.
I am using this code:
```
with urllib.request.urlopen("http://") as url:
data = url.read().decode()
```
now this returns the whole HTML code from the page and I want to extract all email-addresses.
Can somebody lend me a ha... |
2018/02/28 | 672 | 2,594 | <issue_start>username_0: The existing Eclipse project uses Maven but does not know about JUnit. Should/can I integrate JUnit into the existing project or should I make a new project dedicated to JUnit or is there a better option?<issue_comment>username_1: You can add JUnit5 to that project by including the following de... |
2018/02/28 | 452 | 1,813 | <issue_start>username_0: I was trying to enable **USB debugging** option on my Samsung Galaxy J1 Ace (SM-J110H) handset. As you already know that the screen is black/dead but except that the cellphone is working just fine. Somehow I managed to enable the USB debugging option by using an OTG cable and a USB keyboard(and... |
2018/02/28 | 2,250 | 7,588 | <issue_start>username_0: I know that `[Click here](http://www.example.com)` opens the link *in a new tab* (default behaviour in Chrome and Firefox) and that
```
[Click here](http://www.example.com)
```
opens it [*in a new window*](https://stackoverflow.com/a/49035631/1422096).
But **how to open an external page in ... |
2018/02/28 | 1,405 | 4,557 | <issue_start>username_0: Is it best to use [init(displayP3Red:green:blue:alpha:)](https://developer.apple.com/documentation/uikit/uicolor/1648568-init) by default with an availability check when creating a UIColor? Honestly I can't see the difference between the two so I'm not sure how much it matters, but I was hoping... |
2018/02/28 | 480 | 2,012 | <issue_start>username_0: Just updated a Cordova app to contain an iPhone X LaunchImage and now in emulation, I'm seeing a properly sized launch image, which then a second later shows another that is too large and expands off the page.
I can't figure out why a launch image/splash screen is being displayed twice? In de... |
2018/02/28 | 389 | 1,600 | <issue_start>username_0: Assume that the container contains 3 buttons:
```
```
By default, all buttons are in 'Normal' state. If I click on Button1, I'd like to have Button1 becomes 'Active' state (with solid background) and Button2 & Button3 become 'Inactive' state (with gray border).
What's the best way to achie... |
2018/02/28 | 590 | 2,182 | <issue_start>username_0: I am trying to parse the phone number out of a sip uri, or if the string is just a number, returning that. Basically, I want to chop off the @ and anything after it if it exists.
I wrote a small function using `strtok()` but the function always returns `NULL`.
Can anyone tell me what I'm ... |
2018/02/28 | 1,164 | 3,393 | <issue_start>username_0: I am doing
>
> npm install Sinon
>
>
>
the error that I am getting is
`32 verbose stack Error: 404 Not Found: @sinonjs/formatio@^2.0.0
32 verbose stack at fetch.then.res (C:\Users\gvqc48\AppData\Roaming\npm\node_modules\npm\node_modules\pacote\lib\fetchers\registry\fetch.js:42:19)
32 v... |
2018/02/28 | 679 | 2,398 | <issue_start>username_0: This little task is causing a bigger headache than it needs. I just wanna get a simple dropdown like: [](https://i.stack.imgur.com/CTLAX.png)
Pretty easy, right? It even gives me the code? How hard could it be? I first importe... |
2018/02/28 | 719 | 2,254 | <issue_start>username_0: I am a novice with python so forgive me if this seems simple and I can't figure it out...
For a homework assignment we are asked to "Write python code to read the daily temperature data for each month of the year. Make three dictionaries, `MinT`, `AvgT`, and `MaxT` each with the month number (... |
2018/02/28 | 759 | 2,456 | <issue_start>username_0: I am trying to use `shutil.which` to check if the Linux Subsystem is installed on Windows 10.
Using the Windows `where` command in Command Prompt, I can see the location of the `wsl.exe` executable.
```
C:\Users\spike>where wsl
C:\Windows\System32\wsl.exe
```
The above shows that WSL does e... |
2018/02/28 | 862 | 3,100 | <issue_start>username_0: All of the questions that I have seen ask about managing memory when the *elements* of the vector are dynamically allocated/are pointers. My question is just about a vector that has been allocated on the stack, with a simple type, for example, `int`.
If I have the following code:
```
std::vec... |
2018/02/28 | 342 | 1,167 | <issue_start>username_0: I have a naïve datetime in hand and I want to promote it to include the system timezone. I see lots of examples where the timezone is known a priori and the datetime is localized against it. How do I obtain the local timezone if I don't know it in advance?
```
local_tz = ???
dt = local_tz.loca... |
2018/02/28 | 749 | 2,542 | <issue_start>username_0: I want to reuse imaplib.IMAP4\_SSL instance over many processes so I don't have to login multiple times.
Here is some code:
```
import imaplib
from multiprocessing import Process
def fetch(mail_client):
mail_client.uid('fetch', b'1', 'BODY[TEXT]')
def main():
c = imaplib.IMAP4_SSL('i... |
2018/02/28 | 421 | 1,940 | <issue_start>username_0: I'm trying to simulate a gravity affect in unity for objects near an object with this script attached; to do this I try and add a force to the objects towards itself. However I am running into an issue with `other.attachedRigidbody.AddForce()` I get the following error:
>
> Cannot convert me... |
2018/02/28 | 3,702 | 8,278 | <issue_start>username_0: I have a list of items that are structured similarly to this:
```
[{'Condition': '2013 Yamaha FJR 1300',
'Date': '2018-02-28 11:30',
'Description': ['\n ',
'\n2013 Yamaha FJR 1300 Sport Touring, 4 cylinder, 12.120 miles, silver, cruise control, traction control, ABS brakes, heated h... |
2018/02/28 | 1,201 | 3,334 | <issue_start>username_0: I'm trying to play with css3 and its animation and keyframe system but i'm running out of idea's to get this to work..
I rely on [this animation](https://codepen.io/yemon/pen/dzgmxJ) that I found on codepen, and I would like to reverse the text revealing ('*Escape*' move to right and '*into am... |
2018/02/28 | 1,018 | 2,786 | <issue_start>username_0: Help! I'm new in C++. I wrote this code for the purpose of decoding text abbreviations and my compiler keeps giving me Error: "expected unqualified id" before my if and else statements. No matter what I'm trying I can't seem to fix this error. Any idea where I'm going wrong?
Here's my code:
... |
2018/02/28 | 429 | 1,699 | <issue_start>username_0: Running Airflow 1.9.0 with python 2.7. How do I gracefully stop a DAG?
In this case, I have a DAG that's running a file upload with bad code that causes everything to take 4 times as long, and I'd really prefer not to have to wait a day for it to finally time out (timeout is set to 10 hours).
... |
2018/02/28 | 188 | 741 | <issue_start>username_0: I'm trying to add a submit function in my HTML and refer to a js file with my function. The code runs successfully in Chrome but not in IE11. The error message is "submitFunc(event) is undefined". Could anyone help me fix this problem? I have tried everything I can. T.T
```js
function submitFu... |
2018/02/28 | 750 | 2,283 | <issue_start>username_0: I have the following two DataFrames:
```
>>> history
above below
asn country
12345 US 5 4
MX 6 3
54321 MX 4 5
>>> current
above below
asn country
12345 MX 1 0
54321 MX 0 1
US 1... |
2018/02/28 | 503 | 1,715 | <issue_start>username_0: I wish to create a compound interest calculator that calculates how much money a person would make starting with a sum of $1000 for a time of 15 years. I know how to declare and initialize both variables but don't know how to display the results together.
I think that the problem might have s... |
2018/02/28 | 683 | 2,608 | <issue_start>username_0: When I try to run my app, IntelliJ has just started to tell me
>
> "Command Line is too Long. Shorten command line for my\_app or also for Application default configuration."
>
>
>
the `my_app` is a blue link which leads to an "Edit Configuration" window, automatically selecting and high... |
2018/02/28 | 190 | 704 | <issue_start>username_0: I have a cancel button and I need in a template to get the url of the previous page, so in case user click cancel to go back.
Previous page, usually, is a list or detail page.
In case of detail, I have the object, so it easier to go back, but what I do in case of a list page, also how do I kn... |
2018/02/28 | 366 | 1,166 | <issue_start>username_0: I’m new to reason-react. I’m trying to put a copyright symbol in a react-reason component. I've tried
```
(ReasonReact.stringToElement("©"))
```
but this doesn’t give me the © symbol.<issue_comment>username_1: If you're doing HTML entities like that you have to use the `dangerouslySetInnerH... |
2018/02/28 | 737 | 2,556 | <issue_start>username_0: I have a project which I want to structure like this:
```
myproject
├── api
│ ├── __init__.py
│ └── api.py
├── backend
│ ├── __init__.py
│ └── backend.py
├── models
│ ├── __init__.py
│ └── some_model.py
└── __init__.py
```
Now, I want to import the module `some_model.py` in both ... |
2018/02/28 | 594 | 1,979 | <issue_start>username_0: Allright so i don't know if this is possible, but let's say we have the following list:
```
List(1, 2, 3, 1)
```
If i want to apply a map over this, is there a way for me to check if i've already had a value before, e.g. on the 4th value (the 2nd 1) it'll say that it already came across the ... |
2018/02/28 | 1,128 | 3,458 | <issue_start>username_0: I am trying to set the letters after a @ symbol to a variable.
For example, `x = @BAL`
I want to set `y = BAL`
Or `x = @NE`
I want `y = NE`
I am using VBA.<issue_comment>username_1: You can do the following to get the substring after the @ symbol.
```
x = "@BAL"
y = Right(x,len(x)-InStr... |
2018/02/28 | 732 | 2,512 | <issue_start>username_0: I'm trying to implement new data type "Fractions" in Python to represents fractions, where numenator and denominator are both integers. Moreover, I have to implement four basic arithmetic operations. The trick is, I can't use classes in this task.
I thoght maybe tuples can be a good idea but I ... |
2018/02/28 | 699 | 2,340 | <issue_start>username_0: I am adding row/s to multiple `Datatable` then through my program I am adding these `Datatable` to `Dataset` what I am trying to do and I need to know now is
how to add row/s to one of these existing `Datatable` within existing `Dataset`?<issue_comment>username_1: You have two problems. 1) How... |
2018/02/28 | 502 | 1,701 | <issue_start>username_0: I'm trying to create API tokens for my flask API with flask-jwt-extended. I'm trying to initialize the [token\_in\_blacklist\_loader](http://flask-jwt-extended.readthedocs.io/en/latest/api.html#flask_jwt_extended.JWTManager.token_in_blacklist_loader) but can't figure out the right way to do tha... |
2018/02/28 | 765 | 2,661 | <issue_start>username_0: I see that I can use one bash session to print text in another as follows
```
echo './myscript' > /dev/pts/0 # assuming session 2 is using this tty
# or
echo './myscript' > /proc/1500/fd/0 # assuming session 2's pid is 1500
```
But why does the text `./myscript` only print and not execute? I... |
2018/02/28 | 282 | 1,251 | <issue_start>username_0: I have a requirement from a customer that wants to know for what purpose his EC2 instances are being used. The users are students, and they have elevated permissions on those EC2 instances. He wants a report that tells him which programs are being used on each instance. Are these students using... |
2018/02/28 | 592 | 2,142 | <issue_start>username_0: I want to throw a specific exception for the first 5 times the method is executed. Afterwards, I want to throw another exception.
Ideally, I have this code snippet, which obviously doesn't work
```
int count = 0;
int max = 5;
@Test
public void myTest(){
...
doThrow(count++ < max ? myEx... |
2018/02/28 | 634 | 2,161 | <issue_start>username_0: I hit some issues today developing some new flows - the first I've done reading from & loading into EU-region BigQuery databases.
To isolate the issue, I took the following steps:
1. Create a new BQ database in the EU region
2. Create a table by uploading a CSV
3. Write a flow which reads fro... |
2018/02/28 | 586 | 1,642 | <issue_start>username_0: I have a input file like this:
```
1 2 3
4 5 6
7 8 9
10 11 12
13 14 15
16 17 18
...
```
I want it to be like:
```
1 2 3 7 8 9 13 14 15...
4 5 6 10 11 12 16 17 18...
```
How can do this with Unix/Linux command? Essentially, I want to combine several blocks (e.g. in the above example, ever... |
2018/02/28 | 594 | 1,853 | <issue_start>username_0: It may be a double, but with search "Python sqlite case sensitive like" couldn't get any results.
I've run into a problem with case sensitive LIKE query in sqlite 3 model on python 2.7. The problem looks like this: LIKE with % is case insensitive.
Here an example:
```
import sqlite3
db = sq... |
2018/02/28 | 1,095 | 3,331 | <issue_start>username_0: I'm writing a cronjob that runs analysis on a `flags` table in my database, structured as such:
```
| id | item | def | time_flagged | time_resolved | status |
+----+------+-----+--------------+---------------+---------+
| 1 | 1 | foo | 1519338608 | 1519620669 | MISSED |
| 2 | 1 ... |
2018/02/28 | 887 | 2,721 | <issue_start>username_0: My program runs but it only outputs "MONTH | AVERAGE". I need it to post how many steps are taken in each month.
```
days = [31,28,31,30,31,30,31,31,30,31,30,31]
months = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']
... |
2018/02/28 | 530 | 1,779 | <issue_start>username_0: I need to number the files in a lot of folders.
I used the following:
```
Get-ChildItem -Recurse -Include *.* | ForEach-Object -Begin { $count = 1 } -Process { Rename-Item $_ -NewName "image_$count.jpg"; $count++ }
```
It works, but the problem is that the numbering is continuing between th... |
2018/02/28 | 580 | 2,089 | <issue_start>username_0: I am making iOS app and created two image in photoshop. Background image (pic1) 2208x1242 px and second image (pic2) 928x195 px size.
When I run app on the device(iPhone 7 plus) in the landscape mode second image take almost half width of the device.
[
plt.ylabel('some numbers')
#save
plt.savefig("./figs/my_plot.jpg")
```
It will create the figure the first tim... |
2018/02/28 | 829 | 3,151 | <issue_start>username_0: I am working on information extraction from medical texts (very new to NLP!). At the moment I am interested to find and extract the medications which are mentioned in a predefined list of drugs. For example, consider the text:
>
> "John was prescribed aspirin due to hight temperature"
>
>
>... |
2018/02/28 | 754 | 2,830 | <issue_start>username_0: An application which worked on previous versions of MacOS fails on High Sierra with the following message:
>
> dyld: Symbol not found: \_OBJC\_IVAR\_$\_NSScroller.\_action Referenced
> from: Expected in:
> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
>
>
>
What change m... |
2018/02/28 | 1,092 | 3,434 | <issue_start>username_0: Why aren't the 1st, 2nd,3rd, 4th items being styled with `background-color`s as expected?
Please see code snippet:
```css
.list-container.animated .ui.button.bubble:nth-child(1) {
background: red;
}
.list-container.animated .ui.button.bubble:nth-child(2) {
background: green;
}
.li... |
2018/02/28 | 226 | 750 | <issue_start>username_0: I am creating a set of unique elements using the Python 3 set() method, and am wondering how to loop through the returned object.<issue_comment>username_1: According to the documentation, the `set()` method in **Python 3** returns an un-ordered collection of unique elements, for example `set('b... |
2018/02/28 | 1,342 | 4,413 | <issue_start>username_0: So I'm having trouble appending the data to a csv with a functioning `foreach loop.`
I've created static `CSV's` before but the fact that I'm redefining the variable has me going crazy. Here's what I have for my code:
```
[long]$IntSent=0
[long]$IntRec=0
[long]$IntTotal=0
$startdate="02/01/... |
2018/02/28 | 766 | 2,381 | <issue_start>username_0: ```
#include
using namespace std;
int main()
{
for(int r = 0; r<3; r++)
{
for(int c = 0; c<=r; c++)
{
if(c == 1)
break;
cout<<'\*';
}
cout<
```
This code outputs:
```
*
*
*
```
My question is why is does it not output:
```
*
*
```
My logic is that the first loop runs with r = ... |
2018/02/28 | 389 | 1,426 | <issue_start>username_0: So I am trying to insert a couple rows into an excel document that has graphs and macros.
However, it seems like xlsx and node-excel parses out the excel before writing so all of the information regarding styling, graphs, and macros get lost.
Does anyone know if its possible to accomplish th... |
2018/02/28 | 2,223 | 7,582 | <issue_start>username_0: I'm working with a txt files, I must insert that data in mysql database.
So I get that info in a `Datatable`, then I can get that data in my `gridview` and I must insert that data in database. I can do that, but I have problems with date columns.
For example, When I try to insert, If I have th... |
2018/02/28 | 479 | 1,511 | <issue_start>username_0: [](https://i.stack.imgur.com/LAEO1.png)
I'm trying to group these records by date like: `2018/02/28`.
My code is using lodash's \_.groupBy function.
```
let groupedData = _.groupBy(data, access_log => {
moment
.utc... |
2018/02/28 | 992 | 4,036 | <issue_start>username_0: I'm trying to return a promise after an HTTP Request but I get undefined when I print the return on my component.
service:
```
getPlace() {
let promise = new Promise((resolve, reject) => {
this.http.get('http://localhost:3000/api/place/')
.toPromise()
.then(
res => { ... |
2018/02/28 | 1,020 | 4,119 | <issue_start>username_0: I can not open the registration page. If I delete the th:field page is displayed. How can I solve problem. I can not speak English well Thank you...
**Error**
```
Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.
Thu Mar... |
2018/02/28 | 3,204 | 10,419 | <issue_start>username_0: **Existing Database and Desired Outcome:**
I have a larger SQLite database (12gb, tables with 44 million+ rows) that I would like to modify using Pandas in Python3.
>
> *Example Objective*: I hope to read one of these large tables (44 million rows) into a DF in chunks, manipulate the DF chun... |
2018/02/28 | 473 | 1,899 | <issue_start>username_0: I use a function with a **double** as return type and I want to return nothing (not zero).
In case of error I want the console to output the error message only (but it won't allow me as it requires value to be returned).
My code looks like this:
```
class Stos
{
public static double[] Sz... |
2018/02/28 | 556 | 2,196 | <issue_start>username_0: I have a test that goes through a process to get to the part that is the actual test. We have a situation where one of the setup steps/states may not be correct for executing the test. In that case I want to skip the current test, but not fail it. i.e. My list of quotes is empty, so I cannot cl... |
2018/02/28 | 528 | 1,996 | <issue_start>username_0: I searched but did not find any answers and I need to understand. I am noob to css etc.. But I'm learning quickly.
I recently copied some code (shame on me I don't recall the authors name) that creates tabs using pure css. The tabs code uses radio input's. So to hide the radio element the autho... |
2018/02/28 | 454 | 1,539 | <issue_start>username_0: I would like to see a progress bar on Jupyter notebook while I'm running a compute task using Dask, I'm counting all values of `id` column from a large csv file +4GB, so any ideas?
```
import dask.dataframe as dd
df = dd.read_csv('data/train.csv')
df.id.count().compute()
```<issue_comment>us... |
2018/02/28 | 808 | 2,547 | <issue_start>username_0: For one of my assignments, I was told to use `cin.clear(ios_base::failbit)` to set the `failbit`. I wonder, what is the difference between `cin.clear(ios_base::failbit)` and `cin.setstate(ios_base::failbit)`? Is the latter not clearer? I am a bit surprised to see how the `failbit` is set with `... |
2018/02/28 | 926 | 3,363 | <issue_start>username_0: Still new to AngularJS, and I'm trying to format my response data from an array.
As I understand it, it should be a pretty simple concept, you loop through a response.data objectset and access item.properties within the object and it will return the data as a string.
My issue is that it doe... |
2018/02/28 | 586 | 1,736 | <issue_start>username_0: I have a React app (made with create-react-app) that contains the following component:
```
import React from 'react';
const Sample = () => {
return (Some sample text.
=================
);
}
export default Sample;
```
However, when I run npm run start, I receive the error below:
```
Use... |
2018/02/28 | 706 | 2,198 | <issue_start>username_0: I am trying to add another component to a weather app which will change the background image according to the time of day or night. This will be the components background, How would I be able to do this in react.js?<issue_comment>username_1: You can use the Date instance for this kind of functi... |
2018/02/28 | 608 | 2,148 | <issue_start>username_0: What I would like to do is set the `width` and the `height` variables of the `Shape` class using the `Rectangle` class.
Shape.h
```
class Shape
{
public:
Shape(int x, int y);
private:
int width;
int height;
};
```
Shape.cpp
```
Shape::Shape(int x, int y): wi... |