date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/14
466
1,207
<issue_start>username_0: I have a class `Board`. ``` class Board: # Initialize empty n x n board def __init__(self, n): self.board = [[0]*n for x in range(n)] self.size_n = n # ... ``` I want to be able to print an object of this class with the default `print(board_obj)` function such tha...
2018/03/14
304
834
<issue_start>username_0: I can get a two possibility formula to work but not a three. I thought it would just be adding a comma for another term then adding a comma for a value. Please can anyone tell me why its not working? Working one: ``` =IF(OR(C6="buy", C6="hold"),(F5*(D6+1)),(E5*(D6+1))) ``` Not Working: ```...
2018/03/14
214
681
<issue_start>username_0: I have couple of ec2 Instances on amazon. I want to connect these ec2 instances to my company VPN. I want to do this, so that I can connect to Oracle which is on-premise from an application which is running on ec2<issue_comment>username_1: In your second formula you have two parts `(E5*(D6+1))`...
2018/03/14
1,316
5,401
<issue_start>username_0: [![enter image description here](https://i.stack.imgur.com/CBvDW.png)](https://i.stack.imgur.com/CBvDW.png) this Main Menu VC will be opened when the app launched for the first time or after the user back to the app (the app become active after enter the background state). every time this mai...
2018/03/14
1,153
4,738
<issue_start>username_0: I am in problem to connect online live mysql with python 3.4. i want to develop a kivy mobile app using mysql but i could not make the connection. Can anybody help me??<issue_comment>username_1: You don’t need to call the view controller method in app delegate. Observe foreground event in your ...
2018/03/14
375
1,123
<issue_start>username_0: I have a dataset with 10000 samples, and 4 classes (0, 1, 2, 3) label. ``` >>>data.shape (10000, 250) >>>label.shape (10000,) ``` and, I wonder are there any API that could split the data into training and test data and shuffle? for example: ``` (training_data, training_label, test_data, t...
2018/03/14
331
1,055
<issue_start>username_0: I am using `TinyMCE 4.7.9` and it runs perfectly in `Chrome` and `Firefox.` But in `IE 11` (Version 11.0.9600) there is an error in the console. ``` TinyMCE does not support the browser you are using. For a list of supported browsers please see: https://www.tinymce.com/docs/get-started/system-...
2018/03/14
2,147
7,464
<issue_start>username_0: The output of `git diff` is optimized for code which tends to be one statement per line whereas text can (if authors like me are too lazy to use line breaks) cause diff output which is very hard to read and more of a "Where's Wally?" search than reading diff output [![enter image description h...
2018/03/14
744
2,446
<issue_start>username_0: I'm trying to sort an object before mapping it in reactjs, but every single time I do, I keep getting the TypeError: 0 is read only. I noticed that on load the props are empty, but even when I was trying to check the length of the array and only apply sort when it's higher than 0, or when the a...
2018/03/14
1,235
4,751
<issue_start>username_0: In the following unit test case, some event specified by **numberOfElements** is generated and fed as a data stream. This unit cases randomly fails at the line. > > assertEquals(numberOfElements, CollectSink.values.size()); > > > Any explanation why Apache Flink is skipping the events. ...
2018/03/14
1,360
4,981
<issue_start>username_0: I have next ER diagram [![enter image description here](https://i.stack.imgur.com/UmdYt.jpg)](https://i.stack.imgur.com/UmdYt.jpg) I want to update *PlayerStat* entity every time I save *Score* entity. So I tried to use `@PostPersist` annotation. And when I save *Score* entity, function with...
2018/03/14
417
1,663
<issue_start>username_0: How can I make a button (a form button) to be auto clicked when we click a button on one webpage "abc/x" where x is an id and hence is a variable. So "abc/123","abc/234" etc are webpages having a "button1". So when we click button1- we should be directed to url "abc/pqr" and a "button2" should...
2018/03/14
477
1,951
<issue_start>username_0: The Prosody server has several modules that allow it to respond to HTTP requests. For example, mod\_http\_rest allows me to make a POST request on port 5280 with an XMPP stanza as the payload, and the Prosody server responds by sending that stanza on its way. However, I am looking for a modu...
2018/03/14
806
2,838
<issue_start>username_0: I need to implement a function takes an element `elt` and a list `lst` , and returns the position of the first occurrence of `elt` in `lst`. This is my answer: ``` elementPosition :: Eq t => t ->[t] -> Int elementPosition t [] = 0 elmentPosition t lst | t == head lst = 1 | otherwise...
2018/03/14
518
1,728
<issue_start>username_0: When I try to transact this entity using a string tempid against datomic-free v0.9.5656, I get the following exception: ``` (def tx1 {:db/id "user" :contact/full-name "<NAME>"}) (def tx2 {:db/id "other" :some-ref "user" (let [!rx (d/transact conn [tx2])] (...
2018/03/14
483
1,707
<issue_start>username_0: Trying to open and write to the following file path, for some reason it is not opening, I've tried several different paths and nothing has worked. I am running this from C:\ ``` FILE* fptwo = fopen("\\C:\\Program Files\\NotMal.txt", "w"); if (fptwo != NULL) { printf("open progfiles succes...
2018/03/14
1,678
5,866
<issue_start>username_0: I have a list of objects (Books) and those objects look like this: ``` Class Book { public string book_Name {get; set;} public Dictionary book\_Dictionary {get; set;} public Book(string book\_Name, Dictionary book\_Dictionary) { this.book\_Name = book.Name; this.book\_Dictionary =...
2018/03/14
345
1,346
<issue_start>username_0: Long ago I searched on Internet for a SVG image plugin and found [that one](https://github.com/peoplewareDo/nativescript-svg), which is almost broken, outdated and thus unusable. Is there any other plugin that I might miss that allows to show SVG images and works fine with recent Nativescript v...
2018/03/14
581
1,989
<issue_start>username_0: I am trying to read 3 strings (3 lines) where the *first* line - cards of player 1 , the *second* line - cards of player 2 , the *third* line - cards in the deck. The problem is that C only reads the first two lines and ***skip*** reading the deck. ` ``` char firstPlayerCards [5]; char sec...
2018/03/14
3,763
13,919
<issue_start>username_0: MDN states that [`KeyboardEvent.which`](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/which) is deprecated. How can I substitute it for a non-deprecated version? For example, I have the following: ``` window.onkeydown = (event) => { console.log(event.which); } ``` I thought...
2018/03/14
581
1,719
<issue_start>username_0: I’m new to angular and I just started dealing with mongodb using mongoose. In my application I need to get name list of drivers as string array, but, I’m getting array of objects with object id. ``` { "_id": "5aa90ab23c49a72488afab7a", "name": "<NAME>" }, ...
2018/03/14
464
1,469
<issue_start>username_0: I am having trouble in understanding following code snippet: ``` _dict = {} _dict['ut'] = {pos: [unit for unit in all_merge if pos in unit] for pos in mxn} ``` where, all\_merge and mxn are lists. I want to unroll the comprehensions for above code and want result in format like this: ``` f...
2018/03/14
1,295
4,665
<issue_start>username_0: I don't know why the safe area covered my view on the iPhone X, simulator, but in xCode's view debug it seems ok. Is there any option to hide the safe area view or remove it? thanks in advance! Via the view debug I can see no view or nothing covered my view, it's all right, really strange. I a...
2018/03/14
1,469
4,532
<issue_start>username_0: I must be forgetting something fundamental with my vertically and horizontally centered flexbox. The container is within a parent with vertical scroll, and when the container becomes too tall, it grows beyond the parent top, clipping the content. The bottom stays put. Try adjusting the height...
2018/03/14
1,346
4,161
<issue_start>username_0: I have installed VS2015 (win64) and I wanna use Cmake to compile LZO to generate a VS project,but the Cmake show this: ``` CMake Error at CMakeLists.txt:51 (project): Generator Visual Studio 15 2017 Win64 could not find any instance of Visual Studio. ``` I think the problem may come ...
2018/03/14
642
2,000
<issue_start>username_0: I'm preparing RTL version of the site, and I have a problem with the specific layout: ```css .content { width: 200px; } .content.rtl { direction: rtl; text-align: right; } ``` ```html ##### 3 h   45 min ##### 3 h   45 min ``` First h5 tag will display content in the foll...
2018/03/14
247
784
<issue_start>username_0: I have this table to arrange mails in my website ``` mail_id from to mail 1 a b .... 2 a b .... 3 b a .... 4 a c .... 5 a c .... ``` Now, i want to choose a unique from-to or to-from pair. doesn't mat...
2018/03/14
1,448
5,159
<issue_start>username_0: Using c# reflection to get & set the value of the generic fields inside a generic object. But I cannot find any way to **get the property value of these fields**. The code example below: ``` public class Foo { public bool IsUpdated { get; set; } } public abstract class ValueObjec { public ...
2018/03/14
1,610
5,827
<issue_start>username_0: I want to do some loading of drawables and scale them before i need to use them. This is done in the end of onCreate(). ``` new Thread(new Runnable() { @Override public void run() { for (int i = 0; i < Teams.getTeamA().size(); i++) { ViewGroup player...
2018/03/14
1,099
3,761
<issue_start>username_0: **First of all, excuse my bad english.** > > I'm using Symfony 4.0 with Doctrine-bridge 4.0. When using a OneToMany > relation, the property remains empty. > > > **Context -------** > > I'm trying to create a user entity and a bank account entity so that > only account that are curren...
2018/03/14
863
2,674
<issue_start>username_0: i am having a serious problem working with [phonegap google maps](https://github.com/mapsplugin/cordova-plugin-googlemaps/) with [Framework7 esp v2](http://framework7.io/docs/), I am required to select a div in my HTML to place a map here is what i did: HTML: [![enter image description here](...
2018/03/14
1,158
3,331
<issue_start>username_0: I'm trying to return the most recent records from a `GROUP BY` mysql query. My data looks like this: ``` id | user_id | rate_gbp | active | created_at =============================================================== 1 | 5 | 10.000000 | 1 | 2016-05-19 18:42:55 2 | 6 |...
2018/03/14
1,611
6,817
<issue_start>username_0: I have faced with the following issue. I am using `Weld` implementation of the `CDI`. I have found that if a service is annotated with `@ApplicationScoped` then `@PostConstruct` section is not invoked until the first usage of the service. Here is a code to reproduce this behaviour: ``` import...
2018/03/14
1,347
5,626
<issue_start>username_0: Here is the element I have in web page: ``` ``` [\*\*\*\*\* Please take a look on the actual object in image file](https://i.stack.imgur.com/ikLWd.png) I am unable to click this icon. I have tried ``` var ele = element(by.css("button[ng-click*=col.colDef.value]")); ele.click(); ``` A...
2018/03/14
1,360
5,800
<issue_start>username_0: i created a folder insider controller's folder called admin and created a controller user as attached [![enter image description here](https://i.stack.imgur.com/kLMbH.png)](https://i.stack.imgur.com/kLMbH.png) this is how i am trying to access my User class in ``` http://localhost/site/adm...
2018/03/14
1,293
5,520
<issue_start>username_0: I have an old app developed in Eclipse and now trying to migrate it to Android Studio. I updated the libraries and followed the basic steps. Now, I am getting this error: `Error: Project 'app' not found in root project 'projectName'.` I am using `classpath 'com.android.tools.build:gradl...
2018/03/14
999
3,026
<issue_start>username_0: ``` #include #include int lsearch(char a[],int l,int h,char p) { int i=l; for(i=l;i<=h;i++) if(a[i]==p) return i; else return 0; } int main() { int i,z; char s[100]; scanf("%s",s); char str[100]; scanf("%s",str); z=lsearch(s,0,strlen(s)-1,str[1]); printf("%d",z); } ``` I want...
2018/03/14
1,111
4,175
<issue_start>username_0: I'm learning Electron, so I'm using it for the first time ever by following [this tutorial by DesignCourse](https://www.youtube.com/watch?v=2RxHQoiDctI). I constantly checked to make sure my code worked properly before proceeding. I can confirm that whenever I run it with npm start from the com...
2018/03/14
1,064
3,966
<issue_start>username_0: Is it possible to send password reset email in HTML in django-rest-auth? By default, HTML emails are disabled, and send in simple text from password\_reset\_email.html template. I have copied template to project structure templates, and can easily change the content of email. But, as [document...
2018/03/14
882
3,545
<issue_start>username_0: I have a childVC(vc3) inside a parentVC(vc2) inside another parentVC(vc1). I'm doing it this way for animation purposes. What happens is I add vc3 as a child to vc2. I have a collectionView that pushes on vc1. Once vc1 is on scene vc2 is added to it. When I pop vc1 off the stack and go back to...
2018/03/14
1,189
4,211
<issue_start>username_0: We were asked to create 4 threads each increments (`SPIN`/4 times) the value of the global variable `compteur` to supposedly notice that each thread is accessing/changing the global variable before another one finishes the iteration (that's why `SPIN` is given a very large number), for example ...
2018/03/14
864
3,215
<issue_start>username_0: I have a customized ComboBox in my C# WPF Window. It is my first customizing a ComboBox and I have a line of code which I have now established is the arrow on the ComboBox. However, although I have now established that the "Data" (M 0 0 L 4 4 L 8 0 Z) sets the arrow on the ComboBox, I have no i...
2018/03/14
987
3,454
<issue_start>username_0: do you know how to build a dynamic query avoiding sql injection ? ``` property = 'foo' value = 'bar' SomeObject.where("#{property} > ?", value) # works but permit sql inj SomeObject.where(":property > :value", property: property, value: value) # create select * from some_object where 'foo' > '...
2018/03/14
1,200
4,426
<issue_start>username_0: I'm trying to import CSV files using Java library openCSV. Is there any way to load only specific columns not all of them? My code right now is: ``` JFileChooser fileopen = new JFileChooser(); FileFilter filter = new FileNameExtensionFilter( "CSV file", ...
2018/03/14
288
836
<issue_start>username_0: Hi I use sql server and I got this error when trying to execute a following query: ``` select e.dept_id, count(e.dept_id) as empCount from employee e group by e.dept_id having empCount > 0; ``` > > Invalid column name 'empCount'. > > > When I write it like this: ``` having e.dept_id >...
2018/03/14
893
2,558
<issue_start>username_0: I am generating a case statement that will be a master shared dataset for our report date ranges since we frequently use the same date ranges. Currently I have previous week, previous month, previous year, current week, current month and current year. I would like to add our fiscal year which i...
2018/03/14
634
1,930
<issue_start>username_0: In my wordpress theme `Taxonomy = my-category` & categories are `AB,AC,AD` etc for custom post type. I want to print icons for custom categories, and using `if & else` statement inside `wp_query` on `index.php` below is my code. ``` $args = array( 'post_type' => 'mycpt', 'posts_per_pa...
2018/03/14
957
3,069
<issue_start>username_0: I am building one nodejs application where in req.body: I have this object: ``` { "id": 8, "username": "sameer", "age": "20" "details": [ { "category": { "id": 1, "nickname": "sam" } }, { "category...
2018/03/14
862
2,827
<issue_start>username_0: **Scenario trying to achieve :** When user says "approvals" bot has to talk to api/webhook and response with a list with title and small description Title 1 abcd Title 2 efgh and the user will click select anyone out of it. **Integration type :** Website integration I would like to use...
2018/03/14
409
1,412
<issue_start>username_0: I installed docker on a CentOS server but it failed while starting. Below is the error which i got after typing `systemctl start docker` > > Job for docker.service failed because the control process exited with > error code. See "systemctl status docker.service" and "journalctl -xe" > for ...
2018/03/14
744
1,652
<issue_start>username_0: I have a dataset like this: ``` Company Month Price Quantity A 1/1/2014 46 4788 B 1/1/2014 43 6242 C 1/1/2014 50 5432 D 1/1/2014 26 4153 A 2/1/2014 21 5301 B 2/1/2014 46 2706 C 2/1/2014 33 9803 D 2/1/2014 42 9208 A 3/1/2014 45 6309 B ...
2018/03/14
219
910
<issue_start>username_0: There is a View That Shows ALL Order records in Tabular format with 10 records in a single page A filter is applied on paid orders option which shows filtered data on to a pop up window. When I Close the Popup window and click on next Page of Existing table data The Filtered data for Paid Or...
2018/03/14
1,853
5,653
<issue_start>username_0: Suppose I have this C++ function: ``` class C { ... }; void do(const vector& cs) { ... for (...) { cs[i].do\_whatever(); } ... } ``` But `C` is expensive to copy so I might have something like this: ``` std::vector reorder\_in\_some\_way(const std::vector& cs) { ... } int main() { ...
2018/03/14
378
1,323
<issue_start>username_0: I have wait like this: ``` browser.waitForAngular(); const EC = protractor.ExpectedConditions browser.wait(EC.visibilityOf(element), 10000); ``` I always get a timeout. I tried to change time - 10/20/30 s but it didn't work. Visually page is visible, all inputs and buttons are visible but I ...
2018/03/14
563
2,053
<issue_start>username_0: In my Office-JS Add-In I'm inserting a text with a trailing newline and set the cursor to the end of this text like this: ``` function myInsertTest() { Word.run(function(context) { var selectedRange = context.document.getSelection(); selectedRange.insertText("myText", "End"); sel...
2018/03/14
600
2,016
<issue_start>username_0: I basically have the following JavaScript object: ``` records: [ { id: 1, name: michael, guid: 12345 }, { id: 2, name: jason, guid: 12345 }, { id: 3, name: fox, guid: 54321 }, { id: 4, name: rachel, guid: 54321 } ]; ``` What I wanna do is find the pairs wi...
2018/03/14
1,341
4,628
<issue_start>username_0: I have an ASP.NET MVC web application. The SQL table has one column `ProdNum` and it contains data such as `4892-34-456-2311`. The user needs a form to search the database that includes this field. The problem is that the user wants to have 4 separate fields in the UI razor view whereas eac...
2018/03/14
1,934
6,045
<issue_start>username_0: this is my first question, so please bear with me I am creating a new variable `age.f.sex` in my dataframe `wm.13` using an already existing variable `SB1`. In the original dataframe, `SB1` indicates the age of first sexual intercourse of women interviewed in UNICEF's Multiple Indicators Clust...
2018/03/14
905
3,208
<issue_start>username_0: I am new at Drupal 7 and I'm creating a Block by code, following this [tutorial](http://redcrackle.com/blog/how-create-block-drupal-7). So I create a new module folder at **drupal/sites/all/modules** and created two files: **block\_square\_menu.info:** it has the info of the module: ``` name...
2018/03/14
747
2,859
<issue_start>username_0: I would like to update a panel in a windows form C# after adding an entity from another form and without having to use Application.Restart(); Form 1 : ``` private void kopf1_Load(object sender, EventArgs e) { kopf1.PopulateEntladeNr(); } ``` Form 2: ``` private v...
2018/03/14
246
930
<issue_start>username_0: I'm trying to align a paragraph inside a tag in a HTML page as depicted in the following image. Can anyone suggest a way to do it as the middle content is a little bit moved to the right side. [Image](https://i.stack.imgur.com/xdomy.png)<issue_comment>username_1: If you truly don't want to us...
2018/03/14
860
2,805
<issue_start>username_0: I have an array of N objects and each object has the following fields: ``` { id: 'an id', description: 'a description', isUser: true/false } ``` I need to order that array based on two things: Firstly, if the description includes either 'dog', 'cat' or 'animal', it should have sooner ...
2018/03/14
929
2,771
<issue_start>username_0: I want too make both buttons a different collor ``` <NAME> schilderwerken [Prijs](#services) [Werkzaamheden](#services) ``` this is the code I use, But if I change the color both buttons will change and not 1. [What it is now](https://i.stack.imgur.com/lqUCs.png) [what I want](https:/...
2018/03/14
2,499
11,451
<issue_start>username_0: I have a list of users, and I want to use them in my basic auth. MY code currently looks like this: ``` @Configuration @EnableWebSecurity public class BasicAuthConfig extends WebSecurityConfigurerAdapter { @Bean public PasswordEncoder passwordEncoder(){return new BCryptPasswordEncoder();...
2018/03/14
849
3,236
<issue_start>username_0: I am new developer and i have not much knowledge on http service. so i was finding the difference between PUT and POST. i read this one <https://forums.asp.net/t/2100831.aspx?WebApi+what+is+difference+between+PUT+and+POST> below things not clear specially what is idempotent? i found one guy s...
2018/03/14
886
3,195
<issue_start>username_0: I want to convert 'dd' that is a number that indicate Data device (dd is in second). At the moment I can extract the Year, Month, Day, Hour with this query in Azure Stream Analytics: ``` DATEPART(YEAR, DATEADD(MILLISECOND, dd, '1970-01-01')) AS [Year], DATEPART(MONTH, DATEADD(MILLISECOND, d...
2018/03/14
476
1,903
<issue_start>username_0: This might sound like a dumb question, because it might be no other way to do this. After designing my own list, this sort of "issue" came up in multiple occasions. To clarify, I have a problem with returning a cached variable after assigning new value to the original variable. Here's an exampl...
2018/03/14
2,219
7,714
<issue_start>username_0: Ran across this little nugget... I think I have it figured out, but see if anyone can shed more light. I have a module in my `PERL5LIB` environment variable that I use for logging. It is in `e:/Scripts/Log/Logger.pm`. Following is an excerpt: ``` package Log::Logger; ... package Log::NullLog...
2018/03/14
519
1,707
<issue_start>username_0: I have saw professional answer about "Get github repos list via jquery",now I want to use jquery to get this repo's latest release tag\_name, the link is <https://api.github.com/repos/carry0987/Messageboard/releases/latest> How can I get tag\_name via jquery like this answer?Link:[Github API L...
2018/03/14
859
2,831
<issue_start>username_0: I created a mySQL database with phpMyAdmin in my local server. In this database I stored the names and the favourite NBA teams of my friends (along with an id as a primary key for the database). However, some of my friends may have two favourite teams. I wrote and run the following php script t...
2018/03/14
635
1,954
<issue_start>username_0: ``` declare @query nvarchar(4000) set @query='SELECT InsightsLogs.ContentItemType, COUNT(InsightsLogs.UserId) AS nbr, CONT_COMP.MAIN' set @query= @query + ' FROM InsightsLogs INNER JOIN CONT_COMP ON InsightsLogs.K_Contact = CONT_COMP.K_CONTACT' set @query= @query + ' WHERE InsightsLogs.Eve...
2018/03/14
616
1,951
<issue_start>username_0: I was going through a code of converting gray images to colored images, but before doing that, code converts the input image to desaturated image with the help of given line of code : ``` def load_image(path): img = imread(path) # crop image from center short_edge = min(img.shape[...
2018/03/14
301
1,075
<issue_start>username_0: If I have one `unordered_map` and I want insert in a for dynamically the value iterated, but always the `std::unordered_map::insert` insert only once. ``` unordered_map legalities; vector values = {"foo", "bar"}; for(auto& value : values) { legalities.insert({ "foo", value }); cout << value...
2018/03/14
969
2,661
<issue_start>username_0: I have following dataframe in R ``` ID Blocks 123 2D 345 2E 324 2D 567 4F 678 5E 444 2D 145 2D ``` Now I want to subset dataframe based on a vector and then on each subset I want to apply group by e.g `vec <- c(2,3,2)` Now First it sh...
2018/03/14
715
2,683
<issue_start>username_0: I have build a Python 3 module for my own process. I use cython to compile and wrap C++ sources. I have a Linux (Debian Jessie) machine with Python 3.4 and so cythonize make me a `Processing.cpython-34m.so` and copy it to `/usr/local/lib/python3.4/dist-packages`. But when I use it on another...
2018/03/14
576
1,996
<issue_start>username_0: I am trying to loop through a range of sheets. However, I get an error when selecting the sheets from a range on a sheet. ``` Sub Calc_sheets() Dim sheetnames As Variant sheets("Calc_sheets").Select 'sheetnames = Worksheets("Calc_sheets").Range("a2:a4").Value # returns an error in row "Sheet ...
2018/03/14
528
1,849
<issue_start>username_0: Here's hopefully a simple request. I just can't seem to get the mechanics of this working. I'm trying to find all `div`s with a certain class on a page and add an href to them. The code I have so far that doesn't seem to work is below. ``` function FBcheck() { elements = document.getElementsBy...
2018/03/14
1,433
5,372
<issue_start>username_0: There seems to be a problem with flutter's build. I always need to perform **RUN** > **Flutter Full Restart** everytime I run the app to an emulator or device. Otherwise, the app loads a scaffold body which my code had from 2 weeks ago when I first started coding it. [Here's the current sour...
2018/03/14
2,328
5,657
<issue_start>username_0: I have two pandas dataframes. The first dataframe contains the location of different circles over time. Example: df1 = ``` x y time circle 1.0 235 133 1.0 2.0 236 133 1.0 3.0 245 425 1.0 4.0 215 325 2...
2018/03/14
535
2,367
<issue_start>username_0: I'm declaring the global variable `str`, then editing it inside a function, and trying to call it within that function. However, when called, it returns the initial global value of `''`. ```js var str = ''; function getProjects(service) { //find all projects fetch(`http://localhost:8...
2018/03/14
437
1,284
<issue_start>username_0: I have a string: ``` str1 ="[not,35]" str1 ="[not,5]" ``` and I want to use RE in order to change the text while keeping the numbers: ``` -35 -5 ``` I've tried this: `afterRE = re.sub("\[not,\d+\]","-\d",str1)` But It does not know how to keep the digits Is there a fast way of doing th...
2018/03/14
601
1,981
<issue_start>username_0: my question is about how to proceed in extracting human voice in music using the language python i have gone through this code but it extracts background music ``` from pydub import AudioSegment from pydub.playback import play # read in audio file and get the two mono tracks sound_stereo = Au...
2018/03/14
439
1,530
<issue_start>username_0: I'm using Web Audio API and for different reasons I have to create multiple audio context. This is not an issue with Firefox or Edge, but Chrome doesn't allow more than 6 context. Since the number of contemporary context is 3 (the others are closed using close()) probably some reference in Chro...
2018/03/14
505
1,652
<issue_start>username_0: I want to build Docker container with python 3.6 and few dependencies. Here is my Dockerfile: ``` FROM noondotcom/alpine-3.6-python-3.6-grpc COPY requirements.txt /requirements.txt RUN python3.6 -m pip install --upgrade pip RUN python3.6 -m pip install -r requirements.txt CMD ["python3.6", "-...
2018/03/14
506
1,583
<issue_start>username_0: This is the HTML code for the text field: ``` Type a message ``` This is my python program which should allow the user to type into the field: ``` msg_box = driver.find_element_by_Id('') msg_box.send_keys(messege) ``` The text field: [![Here is the text field](https://i.stack.imgur.com/...
2018/03/14
1,202
3,835
<issue_start>username_0: I have a sheet with 3 side dimensions of a package. [dimension column](https://i.stack.imgur.com/wM3Ud.jpg) Is there a way to get the multiplied value of these dimensions? There are hundred of rows, manually would take too much time. Thank you.<issue_comment>username_1: The easiest option her...
2018/03/14
1,257
4,153
<issue_start>username_0: I have a hexagonal image, stitched together from several single images, which is saved as a rectangle 8bit TIFF with black corners. I want to set the black corners to transparent. Because I want to stitch several hexagons together. I tried already the threshold function and set the black areas ...
2018/03/14
1,462
4,642
<issue_start>username_0: I am running a view in sqlplus and generating a report then sending an email (mailx). if there is no record it's creating an empty excel outfile. I would like to validate the sql error code and if there is no records I would like to include "There is no records for the specified period" in th...
2018/03/14
1,341
4,562
<issue_start>username_0: Microsoft SQL Server Management Studio closes in about five seconds after startup. The startup splash screen is displayed, but after that, nothing. No messages are being displayed (even in a console) and no logs occur in a Windows Event Viewer. I have tried to install different SSMS versions , ...
2018/03/14
1,187
3,667
<issue_start>username_0: My situation: I'm sending html emails successfully. Styles, fonts and most of the images are shown as planned. But some images from product previews became broken by google mail proxy scripts. There are around 6 images per email with 100x100px size each. Around **10%** of them become broken...
2018/03/14
994
4,065
<issue_start>username_0: I have a class with multiple properties. For example ``` public class Customer { public int id { get; set; } public string abc{ get; set; } public bool abcd { get; set; } public string abcde { get; set; } public string abcdef { get; set; } pu...
2018/03/14
706
2,551
<issue_start>username_0: I have a script `setupDB.js` that runs asynchronously and is intended to be called from command line. Recently, I added test cases to my project, some of which require a database to be set up (and thus the execution of aforementioned script). Now, I would like to know when the script has finis...
2018/03/14
1,221
3,730
<issue_start>username_0: This seems related to [How to change hdfs block size in pyspark?](https://stackoverflow.com/questions/40954825/how-to-change-hdfs-block-size-in-pyspark) I can successfully change the hdfs block size with rdd.saveAsTextFile, but not the corresponding DataFrame.write.parquet and unable to save ...
2018/03/14
1,519
4,823
<issue_start>username_0: I'm trying to distribute my C# application via Squirrel. Via Squirrel releasify, I have created a Setup exe to install that. Most of this works - the setup extracts my app's files and launches the application (currently in version 0.0.1). Once done, %localappdata%\MyApp does contain the "app-0...
2018/03/14
331
904
<issue_start>username_0: The following loads an empty file to my s3 bucket. Why? ``` df = pd.DataFrame([[1,2,3],[324,34,25], [463,23,43]]) out = df.to_csv(index=False) # unicode string (i'm in python 3) s3 = boto3.resource('s3') BUCKET = "MyBucketThatDefExistsAndIHaveAccessTo" bucket = s3.Bucket(BUCKET) obj = bucket....
2018/03/14
324
964
<issue_start>username_0: I have oracle sequence `test` as`CREATE SEQUENCE test START WITH 1 INCREMENT BY 1 MINVALUE 1 MAXVALUE 99999 NOCYCLE NOORDER;` and i have to insert N number of records into a table with value `10D00001` however for each record the last 5 digits should be incremented. For an example ``` insert ...
2018/03/14
456
1,661
<issue_start>username_0: i have a project in visual studio 2015 when i try to restore the packages from nuget i am getting issue that is describing "an error occurred while trying to restore packages. A local file header is corrupted". I am attaching the Picture that i am getting in visual studio 2015.[![enter image de...
2018/03/14
797
3,254
<issue_start>username_0: I have a `SpringBoot` application that uses `@Component` annotations to create beans rather than the old XML-based `applicationContext` files. I need to use a library that uses XML-based beans. I need those beans initialized and available in my application, otherwise I'd end up rewriting quite...
2018/03/14
722
2,469
<issue_start>username_0: Don't worry I know how to reverse string (one word string :) ) ``` > function reverse(s){ > return s.split("").reverse().join(""); } ``` How to reverse a string in this way: ``` "Dady come home" -> "ydaD emoc emoh" ``` or: ``` ('double spaced words') === 'elbuod decaps sdrow'); ...
2018/03/14
1,683
4,134
<issue_start>username_0: We are facing some issues in connecting to Google’s GCM API (<https://android.googleapis.com/gcm/send> ) for Android push notifications from our server (SSLHandshakeException). From 28th February to 8th March 2018 the issue was intermittent(push sent sometimes, SSL handshake error otherwise). ...