date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/02/28
627
1,671
<issue_start>username_0: This seems like a simple enough task, but I haven't found how to do it using `numpy`. Consider the example array: ``` import numpy as np aa = np.array([np.array([13.16]), np.array([1.58 , 1.2]), np.array([13.1]), np.array([1. , 2.6])], dtype=object) ``` I need a general way to flatten that a...
2018/02/28
1,256
4,022
<issue_start>username_0: I need my program to spawn multiple message boxes. They have to be spawned in cascade at once. (think of it as mimicry of malicious activity) I tried do this using Tkinter: ``` import Tkinter import tkMessageBox for i in range(0,5): tkMessageBox.showerror("", "oops") ``` but it seems ...
2018/02/28
1,374
4,878
<issue_start>username_0: I am trying to set the height of an image to be 50% of the width, but the image scales with the page. The current CSS I am targeting looks like this: ``` .img-quiz p span img { width: 100%; } ``` Here's what I've tried in js, but isn't working: ``` var imgQuiz = document.getElementByClassNa...
2018/02/28
735
2,240
<issue_start>username_0: I have: ``` beta = 0.95 alpha = 0.3 delta = 0.1 def k_bar(alpha, beta, delta): return ((1 / beta - 1 + delta) / alpha) ** (1 / (alpha - 1)) def c_bar(alpha, delta, k_bar): return k_bar ** alpha - delta * k_bar ``` When i call ``` k_bar(alpha, beta, delta) ``` I get "2.63". Bu...
2018/02/28
947
3,356
<issue_start>username_0: I've got this SQL query which is returning locations from the spot table and ordering them by distance in km. The query works in SQL, but I'm facing some difficulties converting it to JPQL. I am using static values for the moment to make it easier to read. SQL - works ``` SELECT DISTINCT *,( ...
2018/02/28
850
2,039
<issue_start>username_0: with -L flash , curl should follow redirection but i have 301 Moved permanently . For e.g : curl -I -L -s era-min-eu.org | head -n 1 Response : HTTP/1.1 301 Moved Permanently Could you help me? Thanks<issue_comment>username_1: You are head-ing the output and only showing the first line in y...
2018/02/28
995
2,703
<issue_start>username_0: Can someone please explain why, while testing Firebase security rules the below two simulated writes which I think are essentially the same give different results? ***Write1*** **Simulator location:** /users/id123/state **Simulator data(JSON):** {"data":"example} --- ***Write2*** **Simu...
2018/02/28
937
3,246
<issue_start>username_0: ``` // Function displays course information // instructor defaults to Staff // enrollment defualts to 30 // main() demonstrates function can be called three ways #include using namespace std; int main() { void displayCourseInfo(char, char\* = "Staff", int = 30); displayCourseInfo("ENG101"); d...
2018/02/28
896
3,151
<issue_start>username_0: I was working on a open source app of a Kinect camera , and I faced a problem while I read the source . By the way the project idea is for controlling PowerPoint using hands, you can find the source code [here](https://archive.codeplex.com/?p=kinectpowerpoint). The author uses this code: ``...
2018/02/28
888
3,198
<issue_start>username_0: I realize that this may be a moot question, and it may not be possible to find what I am asking, but here goes nothing. I would like to find the API key or its location in code/database which is being used by Google Maps on my website. It's a WordPress website, and I am currently using a them...
2018/02/28
5,634
16,312
<issue_start>username_0: I want to have train/evaluate the ssd\_mobile\_v1\_coco on my own dataset at the same time in `Object Detection API`. However, when I simply try to do so, I am faced with GPU memory being nearly full and thus the evaluation script fails to start. Here are the commands I use for training and t...
2018/02/28
1,034
3,571
<issue_start>username_0: I want to pass a member function as a call-back. The call back is a basic function pointer. So I have something like: h file: ``` void (*pRequestFunc) (int someint) = 0; void RegisterRequestCallBack(void (*requestFunc) (int someint)) { pRequestFunc = requestFunc; } class A { void ca...
2018/02/28
2,018
7,753
<issue_start>username_0: I often end up in a situation where one package needs to use a sibling package. I want to clarify that I'm not asking about how Python allows you to import sibling packages, which has been asked many times. Instead, my question is about a best practice for writing maintainable code. 1. Let's s...
2018/02/28
373
1,526
<issue_start>username_0: I ran across some code in an older project I am working on that I've never seen before, and has me confused on it's intent. ``` updatables.Select(r => { // some operations are done here for each element in the list return true; }).ToArray(); ``` It seems like a select statement is bein...
2018/02/28
868
3,260
<issue_start>username_0: I have a peculiar dupes problem. I can identify the records easily enough, but I need to do what's essentially a merge on some accompanying data. Here's the problem. My table is a bit like this: ``` CREATE TABLE `People` ( `PersonId` int(11) NOT NULL AUTO_INCREMENT, `Address` varchar(255)...
2018/02/28
544
2,153
<issue_start>username_0: I'm trying to build an application using React, Redux and socket.io ! My question is : how do you initialize event listeners (which are actions in Redux) like this one : ``` export const addNotif = () => (dispatch) => { socket.on('notification', (message) => { dispatch(notification(messa...
2018/02/28
778
2,628
<issue_start>username_0: I have a table GAMES where I have the ids of player\_1, player\_2 and the winner ``` player_1 player_2 winner 1 2 1 1 2 1 1 3 3 2 3 2 2 1 2 ``` I want to make a query where the end result would be s...
2018/02/28
918
3,170
<issue_start>username_0: I'm currently migrating a codebase from Babel 6 to 7. The code is made up of multiple individual projects with their own configs. The `main` project imports files from `external` however the scripts being imported from `external` by `main` aren't being transpiled and fails on "Unexpected token...
2018/02/28
939
3,255
<issue_start>username_0: I want to write a simple text classifier by languages using unique letters, just for experiment. For example, I have `alphabet` for each language as a dict of sets with the following keys: `['ru', 'uk', 'pl', 'en', 'de', 'be', ...]`. For example, unique Polish letters are "ę" and "ś", Engli...
2018/02/28
577
2,263
<issue_start>username_0: I would like to make a fixed cell at the bottom of the table view in iOS similar to that of leaderboard view of HQ trivia iOS app. Like this: ![Leaderboard HQ trivia, fixed view in red rectangle](https://i.stack.imgur.com/jr5Oul.png)<issue_comment>username_1: To give the impression of a fixe...
2018/02/28
619
2,293
<issue_start>username_0: React Newbee Here using react redux and redux-form I want to use data retrieved by `App.js` inside `Form.js` Currently I am passing `{this.props.data}` to I can't see or access the `App.js` props inside component , Instead I can just see reduxForm Props , How can I access `this.props.data` i...
2018/02/28
968
3,589
<issue_start>username_0: Let's say I have the following interfaces: ``` public interface MvpView { } public interface MvpPresenter { void attach(V view); } ``` Then a base class that implements `MvpPresenter` ``` public class BasePresenter implements MvpPresenter { private V view; @Override public void attach...
2018/02/28
709
2,049
<issue_start>username_0: i have tried a c program on array and pointers ``` #include int main() { int a[10], i; for(i=0; i<10; i++) { a[i]=0; } fun(a,i); } fun(int \*p, int i) { for (i=0; i<10; i++) { printf("%d\n", &\*(p+i)); } } ``` output is: ``` 2752228 2752232 2752236 2752240 2752244 2752248 275225...
2018/02/28
1,535
5,000
<issue_start>username_0: I have in cell(x,y) of "mytable" mytable is a listobject of sheet(1) The user edited the cell 1,1 and added format with the result content of cell 1,1: Important note: I can not reproduce here color, but assume some of the editing includes colors as well, not only **bold** and *cursive* Lorem...
2018/02/28
757
2,289
<issue_start>username_0: My goal is to have items fill the whole width of the parent. If this is static, I could use `width:%` like `width:33%` for 3 items. The problem is that number of items will change ```css #container { background-color:red; } .item { background-color:yellow; display:inline-block; } `...
2018/02/28
588
1,879
<issue_start>username_0: Apologies is this is against the rules. I have tried creating a simple Python script that searches a text file for any of the strings in a list. ``` KeyWord =['word', 'word1', 'word3'] if x in Keyword in open('Textfile.txt').read(): print('True') ``` When i'm running the code I am getti...
2018/02/28
1,345
4,416
<issue_start>username_0: I have a class, myClass, that I wish to add several dataframes too. At first the class requires a name, and a list of filepaths for an instance to be created: ``` class myClass: def __init__(self, name, filepathlist): self.name = name self.filepathlist = filepathlist ``` ...
2018/02/28
874
2,938
<issue_start>username_0: I have had to update my laptop, and updated to Ubuntu 17.04. I installed monodevelop so that I could continue development of a project I started work on in C#. I had problems initially with monodevelop crashing when I opened any of my previous projects. Now it has opened one, under the "referen...
2018/02/28
827
2,419
<issue_start>username_0: I have a lambda on one account with this policy attached: ``` { "Sid": "Id-123", "Effect": "Allow", "Principal": { "AWS": "arn:aws:iam::115333656057:root"}, "Action": "lambda:InvokeFunction", "Resource": "arn:aws:lambda:eu-central-1:260143830488:function:CentralInstanceScheduler-Inst...
2018/02/28
906
3,999
<issue_start>username_0: This is my first time doing a full implementation of server side OAuth (as described here <https://developers.google.com/identity/protocols/OAuth2WebServer>) and I am getting a bit confused as to what to do with the tokens after receiving them from the auth provider. I can see a few options 1....
2018/02/28
516
1,645
<issue_start>username_0: could you please tell me why I am getting this error: > > Objects are not valid as a React child (found: object with keys > {seo\_val, text\_val}). If you meant to render a collection of children, > use an array instead. > > > I am trying to hit `http` request and try to make dropdown ....
2018/02/28
1,115
3,489
<issue_start>username_0: I'm new to oracle sql . I want to fetch data between 2 dates . Date is in this format in db : **13-DEC-10** This is the query I have written but its giving me error . How to proceed next ``` select sum(TOTAL_AMOUNT) from table a where trn_date between TO_DATE(01-APR-17, 'DD-MON-YYYY') AND TO...
2018/02/28
2,007
6,552
<issue_start>username_0: I need to take a JSON object and get the titles console logged for an auto complete feature. AN example of what my json looks like is below: ``` [ { "title": "Example 1", "url": "http:\/\/www.example1.com\/" }, { "title": "Example 2", "url": "http:\/\/www.example2.com\/" ...
2018/02/28
1,586
5,349
<issue_start>username_0: Here's my problem, in case you're interested: I want to find the text selected by the user and insert a tag at the start and end of that selection (to highlight the text). The best approach to find the selection, as quoted by the top minds of StackOverflow, is to use `window.getSelection()`. ...
2018/02/28
288
1,051
<issue_start>username_0: I've a Python program which just prints "hello world". I only want to get that output in a Java program and print that again, i.e. I want to consume output of Python program in a Java program. I tried using `Runtime.getRuntime().exec("helloworld.py");` but it is giving an exception saying `ja...
2018/02/28
1,420
5,982
<issue_start>username_0: ASP.NET Core starts executing from `Main` method which lies in `Program class` inside `Program.cs` file. That builds a web hosting environment and tell that web host to start running. Then, there is `startup.cs` file. When developing a .NET Core web application, I have to build it locally (by...
2018/02/28
1,889
6,246
<issue_start>username_0: I have an array of data, a screenshot of it will be linked at the bottom of this text. Row and column references are to the screenshot. I am trying to write a macro that will output all the dates that **occur** within the dynamic range (Column H). And then in column I I want the column **heade...
2018/02/28
1,159
2,710
<issue_start>username_0: ``` import pandas as pd import numpy as np df = pd.DataFrame({'year': np.repeat(2018,12), 'month': range(1,13)}) ``` In this data frame, I am interested in creating a field called 'year\_month' such that each value looks like so: ``` datetime.date(df['year'][0], df['month'][0], 1).strftime("...
2018/02/28
488
1,767
<issue_start>username_0: Following this question : [Microsoft Graph API mail office 365: Is any option create inbox message NOT as Draft?](https://stackoverflow.com/questions/49008005/microsoft-graph-api-mail-office-365-is-any-option-create-inbox-message-not-as-d) I want to convert from EWS to Graph API , ``` in EWS ...
2018/02/28
2,660
9,278
<issue_start>username_0: I have a table with rows that contain various amount of information, grouped by `GroupingColumn`, as in the following example: ``` -------------------------------------------------------------------- | GroupingColumn | Column1 | Column2 | Column3 | Column4 | Column5 | |----------------|-------...
2018/02/28
675
2,141
<issue_start>username_0: I want to load some lua file, and then paste it into middle of my code. Like: ``` do local abc = 123 dofile "somecode.lua" end ``` And the somecode.lua file is: ``` if abc == 123 print("hello") end ``` What i expected progress and output from these codes&file: ``` do local abc = 123 if ...
2018/02/28
771
2,454
<issue_start>username_0: After installing `git lfs` v2.3.4 for Windows, and enabling my repo to use `lfs` on all my `.txt` extension files using the following. 1. `git lfs track "*.txt"` 2. `git add .gitattributes` 3. Inside my .gitattributes, `*.txt filter=lfs diff=lfs merge=lfs -text` When I try to `git add .`, `gi...
2018/02/28
1,057
3,043
<issue_start>username_0: I have the following code that when run produces identical matrices but I want it to generate a different matrix each time. I believe there is a problem with the sample method from random but am unsure on how to fix it. I also tried creating a random object and using sample with that but it ha...
2018/02/28
768
3,247
<issue_start>username_0: I'm integrating JWT into my service that will be used by mobile clients. The idea is to include user id in the payload and sign in with user's private key on the client. Then, on the service side, extract the user id and verify the signature using the public key. It's seems quite a few people d...
2018/02/28
699
2,796
<issue_start>username_0: I want to reverse a list made of integers My code: `list = [1, 2, 3, 4, 5] print(reversed(list[0]))` but it keeps saying `int object is not reversible`. I want it to print `5`<issue_comment>username_1: JWT authentication is used usually in a two phase authentication logic. First, you ...
2018/02/28
862
3,261
<issue_start>username_0: Let's say I have `parties A, B, and Z`. And states `S1 between A and Z`, and `S2 between B and Z`. A isn't privy to S2 nor B to S1. I want Z to modify S1 and S2 *atomically*, such that while the 'transaction' is in progress, neither A nor B can make updates to S1 or S2, respectively. So far ...
2018/02/28
942
3,570
<issue_start>username_0: What if the heuristic value of a node is, let’s say, actual cost of getting to goal x 10^5? The node with the least f cost is still popped from top of the priority queue. for example: `f(n) = g(n) + h(n)`, `where h(n) = h1(n) x 10^5, where h1(n) = h1′(n)` By definition, `h` here is the overes...
2018/02/28
740
2,491
<issue_start>username_0: We are running .Net Core app on App Engine **Flex**. Trying to disable healthcheck, which hits our service with pretty high rate ~72 reqs/sec: [![enter image description here](https://i.stack.imgur.com/jkKTo.png)](https://i.stack.imgur.com/jkKTo.png) This app.yaml doesn't disable healthcheck f...
2018/02/28
767
2,630
<issue_start>username_0: Hi I want to remove certain words from a long string, there problem is that some words end with "s" and some start with a capital, basically I want to turn: `"Hello cat Cats cats Dog dogs dog fox foxs Foxs"` into: `"Hello"` at the moment I have this code but I want to improve on it, thanks ...
2018/02/28
476
1,710
<issue_start>username_0: I have a userService ``` entityDTO = (EntityDto) userService.getAllUsersOfCompany(companyId); ``` It will return list of `UserDTO` In this list The entity have lot of fields Like (userId,name,address,place.....etc) But I want only `userId` and `name`. for that I created one `EntityDto`...
2018/02/28
273
1,043
<issue_start>username_0: I am wondering how VSTS hosted agents provisioning works in terms of state. Does a hosted agent get reassigned from one job to another without being 'snapshotted' back to a 'clean' state? Or does it carry around the remnants from previous builds? Thanks<issue_comment>username_1: Hosted agents ...
2018/02/28
857
2,948
<issue_start>username_0: I am trying to use `JSON.parse` to parse a string to the array of array, such as ``` var a = "[['1909-23', 'egg']]" JSON.parse(a) ``` It gives me the SytaxError. Wonder if there is any easy way to solve it. Thanks.<issue_comment>username_1: The string ``` "[['1909-23', 'egg']]" ``` Is n...
2018/02/28
1,025
3,613
<issue_start>username_0: I wanted to ask how it is possible to deal with lists of extracted data within one variable. As the (xpath) selector only extracts the first .extract\_first() or all of the content .extract (), I wondered, how I can iterate and extract only one element...like .extract()[i] and i=i+1... How does...
2018/02/28
548
1,899
<issue_start>username_0: The complete error is: > > Invariant Violation: A VirtualizedList contains a cell which itself > contains more than one VirtualizedList of the same orientation as the > parent list. You must pass a unique listKey prop to each sibling list. > > > Every single one of my `FlatList` compone...
2018/02/28
854
3,053
<issue_start>username_0: I have 2 Service Fabric services, which I need to debug. Those services communicate with each other. I am using: ``` VS 2017(update 7), .NET Framework 4.6.1, Azure SDK 2.9.5.3, Service Fabric Tools 2.0.20180124.2, Service Fabric 6.1.456.9494, Service Fabric SDK 3.0.456.9494 ``` Everyth...
2018/02/28
1,979
6,487
<issue_start>username_0: I have an array of objects as following : ``` [ {"id":1,"lib":"A","categoryID":10,"categoryTitle":"Cat10","moduleID":"2","moduleTitle":"Module 2"}, {"id":2,"lib":"B","categoryID":10,"categoryTitle":"Cat10","moduleID":"2","moduleTitle":"Module 2"}, ... {"id":...
2018/02/28
943
3,021
<issue_start>username_0: I need to do a device detection in my Ionic project so I've installed `@ionic-native/device` plugin per instructions here: <https://ionicframework.com/docs/native/device/> However when I wire it in inside of a component, then run `ionic serve` to preview changes, console.log returns `Device` o...
2018/02/28
1,165
3,979
<issue_start>username_0: I've got an image gallery with a main image and 5 thumbnails under it, when you click on a thumbnail the image changes and this works fine but I have also put in two arrows either side to scroll through the images as well and it kind of works but it's skipping every second image. I tried puttin...
2018/02/28
585
2,100
<issue_start>username_0: Where we can find docker release string which is required if you want to specify version during the installation? Is there a list ... or maybe a patern which can use to construct this one? I was not able to find this kind of info within documentation - nor on the web. For example: ``` sudo ...
2018/02/28
818
2,801
<issue_start>username_0: I have a function to get data from my database with join on it. I want to take data from different tables, how can I achieve this? I want to take "libelle\_motif" which is from the table "motif\_deplacement" My function right now: ``` public static List getPersonne\_Deplacement(int numDe...
2018/02/28
1,344
4,034
<issue_start>username_0: My mind seems to be missing a few screws today. I have an issue that I'm baffled by, but to be fair, I'm new to Perl scripting. I am opening a csv file and need to look for duplicate values in one column, and where there are duplicates in this column, I need to add all values from another col...
2018/02/28
1,222
3,571
<issue_start>username_0: I have text like: ``` Line 1 Line 2 Line 3 ``` I don't have control over the HTML nor can I use JavaScript (i.e. I can literally only use CSS), but I need to hide subsequent consecutive line breaks. The issue is this selector: ``` (parent selector) br+br {display:none} ``` Hides all of...
2018/02/28
954
3,376
<issue_start>username_0: In a node.js application using `"socket.io": "^2.0.4"` Socket.io is initialized like this : ``` export let io: any; io = socketio(server, { secure: secure, rejectUnauthorized: false, }, ); io.set('origins', '*:*'); io.origins('*:*'); io.on('connection', (socke...
2018/02/28
378
1,104
<issue_start>username_0: The program should get each of these punctuation characters replaced by that character surrounded by two spaces. I tried this: ``` sent = re.sub('[!,\'!?.]',' \1 ', sent) ``` but it just printed some weird icon instead of those punctuation characters This was done using python 3.<issue...
2018/02/28
495
1,329
<issue_start>username_0: I'm desperately trying to tokenize a filter string which has following format: ``` price:gte:5.99,price:lte:10.00,model:in:[test1,test2] ``` The pitfall is that comma is used not only to separate filter options, but also as a separator for option lists: `[test1,test2]` Applying standard reg...
2018/02/28
640
2,027
<issue_start>username_0: My problem is: Suppose that one credit hour for a course is $100 at a school and that rate increases 4.3% every year. In how many years will the course’s credit hour costs tripled? The rewrote this simple code many times, but just can't seem to get it. I think i'm going about this the wrong wa...
2018/02/28
660
2,013
<issue_start>username_0: Please help me understand why video recorded using Opencv is so slow. It does not reflect quick movements. For example, if I move the camera then the movement is too slow in the video. Also, though I showed a picture in front of the camera for about 2 seconds, I did not see the picture in the r...
2018/02/28
701
2,180
<issue_start>username_0: According to the documentation `<$>` is an synonym for `fmap` and they have the following types: ``` (<$>) :: Functor f => (a -> b) -> f a -> f b fmap :: Functor f => (a -> b) -> f a -> f b ``` So it seems to me, from the signatures above, that they take the arguments in the same order, the ...
2018/02/28
406
1,351
<issue_start>username_0: I have a string that looks like this: ``` String localTimeString = "2018-03-01T17:20:00.000+01:00"; ``` What's the right approach to get only the time of day in this string, in format "HH:mm"? (Min sdk is set to 19) All help appreciated!<issue_comment>username_1: Your string is in a stand...
2018/02/28
481
1,814
<issue_start>username_0: [Manipulation methods of vis.js](http://visjs.org/docs/network/#methodManipulation) only include `addNodeMode()`, but not something like `addNode()`. I wonder if there's some nice way to create a node on click. May be by manipulating the data instead of network itself? Of'course, one may go `...
2018/02/28
746
3,414
<issue_start>username_0: How can I have different Web.config files for different Azure slots. I have a staging and production slot with the same website I don't want the staging slot to be public (it's only for testing and such), so I've setup authentication for that slot through the web.config file. The problem is...
2018/02/28
562
2,158
<issue_start>username_0: Is there an easy way to select the first option of a dropdown in a Django form, in cases where there is only one option available? With easy I mean a solution that doesn't require defining an own widget, which would be quite repetitive to change in all our (model) forms. *Update because it s...
2018/02/28
310
1,157
<issue_start>username_0: I can't seem to make my font awesome icons clickable. Placing them inside anchor tags was the most popular response to others who have had this problem but its not working for me. If i click the background within the anchor tags and around the icon, it shows the dropdown menu i want, but if i c...
2018/02/28
1,795
6,289
<issue_start>username_0: I'm a complete beginner in `node.js`. I've just read we can use `.then()` function for executing several functions in particular order. I was going to write the code this way: ``` function one(){ console.log("one") } function two(){ console.log("two") } function three(){ console.log("thr...
2018/02/28
603
2,425
<issue_start>username_0: I am a little confused on how to setup a one way 3 tier replication using symmetricds. What I am trying to setup is something like this: [![Setup](https://i.stack.imgur.com/QqDfi.jpg)](https://i.stack.imgur.com/QqDfi.jpg) The company server is not connected to the internet and as you can see...
2018/02/28
521
1,646
<issue_start>username_0: First of all, I'm using `Ansible 2.0.0` (which I can't avoid). I've a task like this. Here I'm using `ping` command to send traffic to a destination machine for 2 minutes. This command runs on a remote machine. ``` - name: Ping destination VM from host VM. shell: ping -n -i 0.004 172.16.58....
2018/02/28
364
1,220
<issue_start>username_0: I have a global style file called `styles.scss` and style for component `detail.scss`. The global style file called `styles.scss` has the following class: ``` .one .two a{ color: green } ``` The style for component `detail.scss` also has style: ``` .fooColor { color: orange } ...
2018/02/28
573
1,806
<issue_start>username_0: In Ruby, if i am looking for the methods of a class. ie:`String.methods.sort` and i have the following: ``` [:!, :!=, :!~, :<, :<=, :<=>, :==, :===, :=~, :>, :>=, :__id__, :__send__, :allocate, :ancestors, :autoload, :autoload?, :class, :class_eval, :class_exec, :class_variable_defined?, :clas...
2018/02/28
401
1,268
<issue_start>username_0: I have the following table structure: ``` … | Title 1 | | Product | | Product | | Product | | Product | | Title 2 | | Product | | Product | | Product | | Product | | Product | | Product | | Title 3 | | Product | | Product | | Product | … ``` When I click on the title class I ...
2018/02/28
306
1,016
<issue_start>username_0: Hello I am new to Android development. I am developing an app as a training. So now my target is to add some new text to an existing text file. For example: I have a text file in `"sdCard/android.txt"` and in this file there are some data written `"I love android"`. Now I want to add some mor...
2018/02/28
579
2,367
<issue_start>username_0: I'm working with server automation tools on some Dell C2100 and C1100 servers. What I intend to do is connecting via Serial Over Lan using ipmi. A few weeks ago, I was able to connect to one of my servers using ipmi-console (from freeipmi), like this: `ipmi-console -h IPADDRESS -u USER -P` ...
2018/02/28
519
1,863
<issue_start>username_0: I am working on getting information that is behind a log in page, and using [this](https://stackoverflow.com/questions/930807/login-to-website-via-c-sharp) as my starting point. Looking at the Network tab, I looked at the form data and saw there were 3 additional values than just client/passwo...
2018/02/28
1,034
3,061
<issue_start>username_0: [![enter image description here](https://i.stack.imgur.com/VmKtF.png)](https://i.stack.imgur.com/VmKtF.png) I've made simple two columns using while loop and I want to compare each rows of these columns. I've made a condition that when a row from column A matches a row from column B, the font...
2018/02/28
2,333
5,621
<issue_start>username_0: Let's say I have ``` int a; cin >> a; int b; cin >> b; int c; cin >> c; ``` I would like to know how I can get same results from both inputs: 1.2.3 and 1 2 3 so that a would be 1, b would be 2 and c would be 3 if I input 1.2.3<issue_comment>username_1: You can do it with [`std::scanf...
2018/02/28
728
2,902
<issue_start>username_0: I have a `RecyclerView` list, in which I want the currently selected item to be shown at the **top** of the `RecyclerView`. I still however, want the entire list to be scrollable, therefore, removing views from above the selected item is not a possible solution. It seems I need a mechanism whe...
2018/02/28
697
2,715
<issue_start>username_0: I am a new Python user and I have been programming in Matlab, so I decided to use Spyder IDE (which looks pretty much like Matlab IDE). Right now I want to debug through (execute line by line in order to understand) some python code that is written as a class with several built-in functions. S...
2018/02/28
664
2,163
<issue_start>username_0: Pytest nicely prints the values of variables in failing assert statement (e.g. example [here](https://docs.pytest.org/en/latest/assert.html#asserting-with-the-assert-statement)). However, this does not work for assert failures in imported functions, **example.py** ``` def func(): b = 1 ...
2018/02/28
453
1,598
<issue_start>username_0: I have a VPC with public and private subnets. NLB is deployed to a private subnet, and it has 5 listeners. ``` port 9000 forwarding to targetgroup-01 port 9001 forwarding to targetgroup-02 and so on. ``` Created a VPC link in API gateway pointed to NLB How do I configure API's to route the...
2018/02/28
1,633
5,599
<issue_start>username_0: Hi I have some troubles with text on canvas. I have several inputs type text and for each of them, I need to create canvas with their texts. When inputs have default texts, texts are not shown on canvas the first time. I need to refresh before seeing texts in firefox (and texts with fonts appl...
2018/02/28
2,049
6,625
<issue_start>username_0: Consider this quote from *C++ Templates: The Complete Guide (2nd Edition)*: > > > ``` > decltype(auto) ret{std::invoke(std::forward(op), > std::forward(args)...)}; > ... > return ret; > > ``` > > Note that declaring `ret` with `auto&&` is not correct. As a > reference, `auto&&` extends t...
2018/02/28
2,476
7,166
<issue_start>username_0: My app is under **Angular 5.2.6**. Things are normal with `ng serve`, but when running `ng build --prod`, it takes a while, before failing. The errors seem to have to do with the **clean-css** actions. *Error trace:* ```none 92% chunk asset optimization/home/khalidvm/Desktop/Workspace/Front/...
2018/02/28
847
2,839
<issue_start>username_0: I have an if loop in which I am trying to; (1) Create a dataframe from a filepath. (2) Format this dataframe (3) Add that dataframe to a dictionary that is a property of an instance of a class. Here is my code defining the class and the method: ``` class myClass: def __init__(self, nam...
2018/02/28
2,390
8,256
<issue_start>username_0: I tried to use multiple threads to insert into a `boost::bimap`. I have some shared variable between the threads, which I need to pass by reference and some of them are modified by each thread execution. However, I get the error: > > Segmentation fault (core dumped) > > > I have the follo...
2018/02/28
482
1,593
<issue_start>username_0: I'm trying to query, possibly with a self-join, to find which Products are on sale in Chicago that are not on sale in Miami. ``` ProductID Product_Type On Sale Stock_location 2201 Cereal Y chicago 2202 Beverage Y chicago 2203 ...
2018/02/28
388
1,268
<issue_start>username_0: I have a table: `Songs_Practices` with foreign keys for `Song_ID`, `Artist_ID` and `Practice_ID`. I'm trying to get the average amount of songs that each artist practices per practice session. In other words, if we practiced 100 times this year, how many songs did we average per practice. This ...
2018/02/28
938
3,420
<issue_start>username_0: This is surely a duplicate, but I was not able to find an answer to the following question. Let's consider the decimal integer `14`. We can obtain its binary representation, `1110`, using e.g. the *divide-by-2* method (`%` represents the modulus operand): ``` 14 % 2 = 0 7 % 2 = 1 3 % 2 = 1 ...
2018/02/28
3,561
12,102
<issue_start>username_0: I am using `EmbeddedCassandraServerHelper` to perform unit tests. Here is my pom ``` org.apache.nifi nifi-api 1.4.0 org.apache.nifi nifi-utils 1.4.0 org.apache.nifi nifi-mock 1.4.0 test org.slf4j slf4j-simple 1.7.25 test junit junit 4.8.2 test com.jcraft jsch 0.1.54 ...
2018/02/28
1,305
5,438
<issue_start>username_0: I'm currently trying to take some JSON data that I've received from an API and put that into a dropdown in a very simple React application. This is my DropDown component thus far: ``` import React from 'react'; var values; fetch('http://localhost:8080/values') .then(function(res) { ...
2018/02/28
508
1,747
<issue_start>username_0: I am trying to write a simple program to reverse a string and I am having trouble with using `StringBuilder`, as I am not sure how to use it correctly. ``` public class Reverse3 { public static void main(String[] args) { char[] name = {'S', 't', 'e', 'v', 'e'}; for(char c...
2018/02/28
858
2,817
<issue_start>username_0: I'm using SciChart on my android application to display a Candlestick chart. When the y-values are big, the chart displays the data well. [![When the y-values is big, the chart display well.](https://i.stack.imgur.com/jv3Yx.png)](https://i.stack.imgur.com/jv3Yx.png) But when the y-values are ...