date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/15
776
2,139
<issue_start>username_0: I have 3 tables A ,B ,C TABLE A ``` TABLE_NAME|table_number soho 20 foho 30 joho 40 ``` TABLE B ``` TABLE_ID | TABLE_NAME 1 soho 2 foho 3 joho ``` TABLE C ``` TABLE_ID | TABLE_VALUES 1 xx 1 ...
2018/03/15
890
2,446
<issue_start>username_0: Please check the example bellow. On bottom in javascript section you will see a datatables framework function cell().data() used to change first < td > text but there i didn't selected any of specific < td > so by default this changing the text of first < td >. But my goal is i want to select m...
2018/03/15
2,085
7,546
<issue_start>username_0: I'm trying to make a simple upload app with springboot and it works fine until i try to upload 10Mb+ files, i receive this message on my screen: ``` There was an unexpected error (type=Internal Server Error, status=500). Could not parse multipart servlet request; nested exception is java.lang...
2018/03/15
298
1,268
<issue_start>username_0: When I try to signup for a Google Cloud free trial, I get the following error after the page which checks your details and payment method: An unexpected error has occurred. Please try again later. [OR-BSBBF-01] On this page it shows my payment profile which is correct and works for other Googl...
2018/03/15
2,023
7,499
<issue_start>username_0: I have this Android code : ``` package com.example.webtestconnection; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.net.HttpURLConnection; import java.net.URL; import android.app.Activity; import an...
2018/03/15
565
2,360
<issue_start>username_0: I am trying to do this while building build in ionic, but the location is on IOS and does not work with geolocation in ionic 2 app. I have installed ionic cordova plugin add cordova-plugin-geolocation and In android devices it is working when the location service is made on. When the location...
2018/03/15
464
1,520
<issue_start>username_0: I have a problem with some PHP code defined at the top of a layout file (default.htm) which does not executes. It is just printed verbatim on the page. The layout file is the default layout for a plugin. Here is the source file (default.htm) : ``` title = "default" == use Config; function...
2018/03/15
405
1,328
<issue_start>username_0: What is the difference between the top two system images entries currently in this Android Studio dialog: [![Android Studio System Images](https://i.stack.imgur.com/f5WBk.png)](https://i.stack.imgur.com/f5WBk.png) You can see that neither **Oreo**, **API 27**, or **P** or listed in the "API le...
2018/03/15
518
1,788
<issue_start>username_0: I'm working on a Laravel 5.6 app and have the following two API routes: ``` Route::resource('/partners', 'API\Partners\PartnersController'); Route::resource('/partners/{id}/sales-team', 'API\Partners\SalesTeamController'); ``` In both of the controllers I am referencing a custom middleware ...
2018/03/15
482
1,692
<issue_start>username_0: I have an existing Factory (order), and I am trying to make a new factory that effectively inherits from it. It looks like this: ``` factory :order_with_domain, :parent => :order do |o| o.order_provider 'DomainNameHere' end ``` Upon doing that and running the specs with `order_with_domain`...
2018/03/15
1,796
6,506
<issue_start>username_0: I'm trying to understand how php works but I have problems with understanding syntax and arrays/objects. 1. I know that code igniter uses $\_POST only and keeps form data in an array but how to access it in a view? I have some more questions in the comments inside below code: I understand th...
2018/03/15
524
1,681
<issue_start>username_0: I have two tables, first one serves as a search functionality utilizing datepicker, and the second holds the `thead` and `tbody` which holds the actual header and rows for my data. I tried following <http://jsfiddle.net/wLcjh/255/> ``` var tableOffset = $("#table-1").offset().top; var $header...
2018/03/15
630
1,933
<issue_start>username_0: I have two arrays data I'm just trying to get the data of array two based on the same ID example ``` import React from 'react'; const data = [ { "userId": 1, "id": 1, "title": "One", "body": "quia et suscipit\nsuscipit recusandae consequuntur expedita et cum\nreprehenderit m...
2018/03/15
527
2,033
<issue_start>username_0: I am doing a project on an application where by I need to discover other devices based on my current location. These devices I want to filter in a way whereby they are classified by North/South/East/West of my device pointing direction. I read some article saying converting compass bearing i...
2018/03/15
1,939
7,439
<issue_start>username_0: As the title says I would like to find all strings with Roslyn and be able to manipulate them. I have created a program that can get all classes and local declarations but I would have hoped there was some way to extract strings. In an optimal world I would like to be able to get a key value p...
2018/03/15
744
3,077
<issue_start>username_0: I have UICollectionView, i am selected cell with didSelectItemAt and deselect with didDeselectItemAt but selected cells are replaced [![enter image description here](https://i.stack.imgur.com/pgk9W.gif)](https://i.stack.imgur.com/pgk9W.gif) <https://im4.ezgif.com/tmp/ezgif-4-2715e62591.gif> ...
2018/03/15
590
2,018
<issue_start>username_0: I want to remove the last specific word from each sentence within some classes. Example: ``` Active speakers hire Passive speakers hire ``` I want to remove the word "hire" from every paragraph that has the "remove" class attached to it. I understand that this can be done individually using...
2018/03/15
708
2,264
<issue_start>username_0: I'm trying to create an OTRS ticket. Web service type `HTTP:REST`. ``` var data = { Ticket: { Title: "123123", TypeID: "2", QueueID: "1", State: "open", PriorityID: "2", ServiceID: "1" }, Article: { Subject: "123123", Body: "Trololo", ContentType: "t...
2018/03/15
791
3,009
<issue_start>username_0: I'm working on an application to capture images but I'd like to rotate a JPEG image before saving it, I already saw this link : [Android Rotate Picture before saving](https://stackoverflow.com/questions/9606046/android-rotate-picture-before-saving) This is what I'm doing right now. ``` Byte...
2018/03/15
716
2,771
<issue_start>username_0: I'm in the situation where I need to make 5 http calls that can be executed in parallel + another http call that need to be executed after these five. I used forkJoin for the first 5, but I don't have any idea how to chain flatMap (or other function). ``` forkJoin( firstObservable, ...
2018/03/15
679
2,570
<issue_start>username_0: I'm currently migrating a project from Windows Phone 8.1 to UWP, and I'm having problems with a XAML line that doesn't rotate when renderTransform compositeTransform rotation in code, but happens in if change is made in XAML. In Windows Phone 8.1 it worked without any problem. Here's XAML part...
2018/03/15
575
1,905
<issue_start>username_0: I tried this command, but it works only to a certain extent. Input file content: ``` this is begin not sure what is wrong end and why not ``` Command: ``` cat file | sed 's/.*begin \(.*\)end/\1/' ``` Output: ``` not sure what is wrong and why not ``` Desired output (please see notes b...
2018/03/15
1,109
2,949
<issue_start>username_0: I have dictionary in format `"site_mame": (side_id, frequency)`: ``` d=[{'fpdownload2.macromedia.com': (1, 88), 'laposte.net': (2, 23), 'www.laposte.net': (3, 119), 'www.google.com': (4, 5441), 'match.rtbidder.net': (5, 84), 'x2.vindicosuite.com': (6, 37), 'rp.gwallet.com': (7, 88)...
2018/03/15
517
1,650
<issue_start>username_0: I want to sum up `myArray` where i declared `var sumUpArray = 0`. It return the correct sum of `myArray` which is 6. ```js var myArray = [1, 2, 3]; var sumUpArray = 0; for (i = 0; i < myArray.length; i++) { sumUpArray = sumUpArray + myArray[i]; } console.log(sumUpArray); ``` But when...
2018/03/15
573
1,811
<issue_start>username_0: I am receiving error: > > AppName won't run unless you update Google Play services. > > > Update > > > Emulator is not showing option for updating Google Play Services. --- Configurations -------------- **Emulator:** * Android 8.1 (Oreo) * Google APIs Intel x86 Atom System Image. *...
2018/03/15
363
1,173
<issue_start>username_0: I'm using the following function to check whether the date is in the past, but I want to exclude today’s date from it as it returns true for today's date also. For example, if I pass today's date 2018-03-15, it returns true when it shouldn't. ``` function is_date_in_past($date):bool { retu...
2018/03/15
733
2,933
<issue_start>username_0: I am not able to bind the request header values into a POJO class. Here is an explanation: I want to bind the value of "isKidsProfile" into "DetailCO" but it is not binding. On the other hand, it is working if I am binding it into a variable only. // consider header value in request is: key:...
2018/03/15
542
2,046
<issue_start>username_0: I used to use the "`execute_command`" found in the former awesome wiki. This command uses `io.popen` and the `lines` method to return the command's result. Now, the doc's advice is to avoid `io.popen`. My rc.lua uses `io.popen` to assign hostname's computer to a variable ordinateur (I'm tr...
2018/03/15
1,466
4,942
<issue_start>username_0: I have a binary object that was generated on an SGI 64bit machine using a MIPSpro compiler. I am trying to read this binary object on a 64bit x86\_64 machine running RHEL 6.7. The structure of the object is something like like ``` class A { public: A(){ a_ = 1; } A(int a){ ...
2018/03/15
983
3,376
<issue_start>username_0: I want to find and active inactive object: Main Menu. I try this code, but it isn't working. What am I doing wrong? ``` if (Input.GetKey(KeyCode.Escape)) { this.gameObject.SetActive(false); GameObject.Find("Main Menu").SetActive(true); } ```<is...
2018/03/15
402
1,397
<issue_start>username_0: I put the spinner on the page and I see nothing at all. There are no console of errors or anything like that. Here is my code: ``` import React, { Component } from 'react'; import { Spin } from 'antd'; import './App.css'; class App extends Component { render() { return ( ); } ...
2018/03/15
813
2,492
<issue_start>username_0: I have a table storing Device details. For simplicity, the columns are: ``` Id (Primary Key) Name (varchar) StatusId (Foreign Key to Status table). ``` The Status table has two columns: ``` Id (Primary Key) State (varchar) ``` and two rows: ``` [Id | State] 1 | Active 2 | Inactive `...
2018/03/15
1,079
4,378
<issue_start>username_0: I have JPA entity Customer having say 50 fields and I would like to update it from the end user using html form. I am passing one instance of entity to html page form (using thymeleaf), this form is having only 20 fields out of 50 (including ID field). Now once the form is submitted, **I would...
2018/03/15
351
1,327
<issue_start>username_0: I am using Symfony 3.4. Suddenly, whenever I try to run my tests (phpunit) in /tests, I get the following error: ``` RuntimeException : Unable to guess the Kernel directory. ``` My test class looks something like: ``` class PaymentCreditTest extends KernelTestCase { /** @var PaymentRe...
2018/03/15
658
2,596
<issue_start>username_0: I would like to know how to gitignore files but only on local, without pushing it (because the other people working on the project should not get this update of gitignore of files I added there. To be simple, after a git status I only have : ``` modified: .gitignore ``` because I added my...
2018/03/15
676
2,579
<issue_start>username_0: `var intervalID = setInterval(funkey2, inter)();` In the Chrome console, I get this error: [![enter image description here](https://i.stack.imgur.com/QRiuj.jpg)](https://i.stack.imgur.com/QRiuj.jpg) but when I don't have line 24, the function never runs. The stop button doesn't work for some...
2018/03/15
1,012
3,313
<issue_start>username_0: **Scenario:** I have a table `Browsers` which is populated every time a browser is opened along with the associated date: ``` BrowserName Date ------------------------------------- Firefox? 8/20/2017 Firefox 8/20/2017 Google Chrome ...
2018/03/15
799
2,868
<issue_start>username_0: I'm wondering how I can mock some private variable in a class with Groovy/Spock. Let's say we have this code: ``` public class Car { private Engine engine; public void drive(){ System.out.println("test"); if (engine.isState()) { // Do something } e...
2018/03/15
684
2,300
<issue_start>username_0: I have a nginx-container with the following location and upstream configuration: ``` upstream jenkins-docker { server jenkins:8080 fail_timeout=0; } # configuration file /etc/nginx/conf-files/jenkins-location.conf: location /jenkins/ { sendfile off; proxy_pass http://jenkins-docke...
2018/03/15
1,053
3,735
<issue_start>username_0: I've seen lots of questions/answers regarding detecting if an HTML element is scrollable (e.g. [Detect scrollbar dynamically](https://stackoverflow.com/questions/33805052/detect-scrollbar-dynamically) ). I need something similar, but not quite the same. I have a div set to `overflow-y: scroll;...
2018/03/15
993
3,425
<issue_start>username_0: I have been following the [official documentation](https://www.zetetic.net/sqlcipher/sqlcipher-for-android/) in order to start using SQLCipher Community Edition in the apps I´m developing. So, I made a proper gradle import as following: ``` compile 'net.zetetic:android-database-sqlcipher:3.5....
2018/03/15
692
2,140
<issue_start>username_0: I have an array, say `["a","b","c"]`, and I want to turn this into an object which has the array values as keys and a default value that I can set. So if the default value is `true`, I'd like my output to be `{a:true, b:true, c:true}`. Is there a more concise version of the code below to achie...
2018/03/15
1,042
3,193
<issue_start>username_0: [Current vs Desired](https://i.stack.imgur.com/yAqFM.png) Currently this input field is created by giving the label a white background but its conflicting when the input field is on different colored backgrounds. Is there any way to have the border length to no longer need a background color. ...
2018/03/15
325
1,418
<issue_start>username_0: I'm trying to implement spring security and the default login page is being displayed even though i have login page with url defined in controller as "/login" Spring boot version : 2.0 Spring version: 5.0 Have two classes one for spring MVC config and another for Spring Web Config Please let...
2018/03/15
323
1,443
<issue_start>username_0: i would like to know how to get the last X and Y coordinate value of the ACTION\_UP motion event, since this motion event returns the last release point as well as any intermediate points since the last down event. I would like to uniquely store the last X and Y coordinates (the last x and y be...
2018/03/15
344
1,500
<issue_start>username_0: i am having spring application with angular JS UI.in my application, i am returning pojo object as JSON to the UI. when returning to UI, pojo fields first letter will be changed to Upper case.For example, parameter "name" is changed to "Name" in json object.But its expecting "name".Due to this ...
2018/03/15
1,747
5,152
<issue_start>username_0: I have a csv file and want to import part of it into my Mysql database. From [this question](https://stackoverflow.com/questions/6605765/importing-a-csv-into-mysql-via-command-line), I tried this command in my Mysql command line ``` load data local infile 'mycsv.csv’ into table mytable field...
2018/03/15
613
1,200
<issue_start>username_0: I have a df like ``` ind1.id ind2.id group wang 02_1 02_1 1205 -0.2999 02_1 02_11 1205 -0.1688 02_1 02_12 1205 -0.0873 02_1 02_13 1205 -0.0443 02_1 02_14 1205 -0.1415 ``` and I would like to split the group column so that it is like this ``` ind1.i...
2018/03/15
1,105
3,525
<issue_start>username_0: I'm currently trying to write an Oracle query which gets the number of allocation, per hour, per user. I've come up with the following, which does just this. ``` SELECT DISTINCT USER_CODE, TO_CHAR(TAUDIT.ENTERED, 'HH24') Hour, COUNT(TO_CHAR(TAUDIT.ENTERED, 'HH24')) OVER (PARTITIO...
2018/03/15
806
3,371
<issue_start>username_0: I'm working with a BLE device which I need to verify. The BLE code I'm using is below ``` //Pragma Bluetooth Methods func centralManagerDidUpdateState(_ central: CBCentralManager) { if central.state == .poweredOn { central.scanForPeripherals(withServices: nil, options: nil) } e...
2018/03/15
447
1,393
<issue_start>username_0: Currently getting this everytime I run my Pipeline: `Permission denied (publickey).` Steps so far: On Mac: * cd ~/.ssh * ssh-keygen -t rsa -N '' -f my\_ssh\_key * base64 < my\_ssh\_key * ssh-copy-id -i my\_ssh\_key.pub root@xxx.xxx.xxx.xxx * cd /my/repo/path * ssh-keyscan -t rsa server.domai...
2018/03/15
875
3,131
<issue_start>username_0: Currently i am fetching memory issue because i am loading direct image in Flatlist of React Native. Issue is that due to high resolutions images memory limit reached and app get crashed on iPhone. Is there any way i can fetch direct thumb url like image url (e.g. url: 'assets-library://asset/as...
2018/03/15
676
2,843
<issue_start>username_0: I've been racking my brain on this and am stuck. In the Excel NativeTimeline slicer I want to capture when a user switches from Months to Quarters so I can then update the time series chart on the dashboard. I can't seem to find a way to hook into this though as the change is only effecting wha...
2018/03/15
645
2,593
<issue_start>username_0: I would like to get position X or Y of view (ie button) programmatically but in solutions from link (<https://blog.takescoop.com/android-view-measurement-d1f2f5c98f75>) returned values are wrong. I need this to restrain y in animation for clamp function. Also I have problems to get height a...
2018/03/15
436
1,674
<issue_start>username_0: when app loads i have to select on option but i want to show default radio button selected when app loads.. I have used this code for showing radio button ``` public func createRadioButton(frame : CGRect, title : String, color : UIColor) -> DLRadioButton { radioButton = DLRadioButton(fram...
2018/03/15
386
1,328
<issue_start>username_0: I have two sheets in a workbook with data pulls from different days to add a new column to the data needed. However, I need to work only with the original data pull (as new items have been added since original pull and those can be ignored). So sheet 1 has 53,875 line items and sheet 2 has 5413...
2018/03/15
711
2,690
<issue_start>username_0: We currently have a SaaS application that lives at `app.ourcompany.com`. I am trying to understand what it would take to let our clients access our application via a custom subdomain like `clients.theirbrand.com`. I have done some research and there seems to be a few things in common with othe...
2018/03/15
1,111
4,391
<issue_start>username_0: I'm trying to understand decorators, so thought I'd start with the simplest cases, checking/modifying the output of a function: Example 1: ``` def checkIsFriend(func): def wrapper(arg): friends = ['alan', 'brian', 'carol'] ret = arg # function not called if ret in ...
2018/03/15
301
944
<issue_start>username_0: I want to write an oracle query to find the substring after nth occurrence of a specific substring couldn't find solution for it Example string - ab##cd##gh How to get gh from above string i.e. string after second occurrence of ##<issue_comment>username_1: This will return everything after se...
2018/03/15
1,263
3,828
<issue_start>username_0: I'm trying to make a recursive method that will give me the following result when printing (example with n = 5): 1 2 3 4 5 4 3 2 1. I can easily achieve it the opposite way using this code: ``` public static void DownUp(int n) { if (n == 1) { System.out.print(n +" "); } els...
2018/03/15
832
3,671
<issue_start>username_0: I'm working on an AndroidTV app. So I have a recyclerview that contains a horizontal linear layout with 5 items. During OnBindViewHolder I call viewholder.bind() and in there I change the width of the individual items dynamically. I then call getLocalVisibleRect() to see which of those views ar...
2018/03/15
601
2,507
<issue_start>username_0: I am trying to print the largest odd number. So far I have the code below. ``` largest = None for integer in range(1,11): integer = int(input('Enter integer #%d: ' % integer)) if integer % 2 != 0 and (not largest or integer > largest): largest = integer ...
2018/03/15
555
2,201
<issue_start>username_0: How to replace Thread.Sleep ()? While all the elements are loaded ``` public void Test() { home.OpenHomePage(); users.Login(new Logins("test1", "test2")); Thread.Sleep(2000); BtnOk(); Thread.Sleep(2000); ..................} ``` For example: `BtnOk ();` before this, I...
2018/03/15
690
2,710
<issue_start>username_0: I have a relation with primary key named idavaliacao and foreign key named trabalho\_idtrabalho, and I want to get the last tuple for each foreign key order by idavaliacao, desc. Eg: ``` idavaliacao | trabalho_idtrabalho ------------+-------------------- 1 | 1 ...
2018/03/15
512
1,967
<issue_start>username_0: I have a sample json file as below. ``` { "TestOneConfig": { "SvcUrl": "www.abc.com/", "Port": "3455" }, "LiveTestConfig": { "ConnString": "abcd" } } ``` And I have class model for "TestOneConfig" as below ``` public class TestOneConfig { public string S...
2018/03/15
1,195
4,756
<issue_start>username_0: I have two entities Accounts: ``` @Entity(tableName = "accounts",foreignKeys = arrayOf( ForeignKey( entity = Currency::class, parentColumns = arrayOf("id"), childColumns = arrayOf("currencyId"), onDelete = ForeignKey.CASCA...
2018/03/15
775
2,402
<issue_start>username_0: Is this: ``` between cast(date as date) and cast(date1 as date) ``` The same as: ``` between '01/01/01 00:00:00' and '01/01/01 11:59:59' ``` I've been told that when comparing date time values in SQL Server that if I wanted to return the PROPER results I should ALWAYS include a time compo...
2018/03/15
634
2,734
<issue_start>username_0: Why guidelines says "avoid `async` `void`". I don't know, but I feel guideline should rather say - "`await` `task`". Problem with `async void` is that caller will not know if it need to `await` for completion and control will continue with execution of following statements. I can understand ill...
2018/03/15
1,224
4,381
<issue_start>username_0: I am working with Orchestration Design, but found that it doesn't have all the functions I need, so we have a lot of hard coded JAVA. I have read several post discussing similar errors as below. > > org.codehaus.jettison.json.JSONException: JSONObject["customer"] not > found > > > I ha...
2018/03/15
1,425
4,603
<issue_start>username_0: I'm trying to parse a string formatted like so: ``` 1900-001T00:00:00Z ``` into a DateTime object. The middle bit there (right after the "1900-" and before the "T") is supposed to be the day of year. I know the rest of the formatting string I would need to use would be ``` yyyy-XXXTHH:mm:ss...
2018/03/15
1,131
4,375
<issue_start>username_0: Usually I make projects with database first, now I tried (due to the ASP.NET login framework) the code first approach. So far so good, all works. Now I needed to add a new model to the project, did this and added the model in the `DbContext`: ``` public class ApplicationDbContext : IdentityDbC...
2018/03/15
825
3,076
<issue_start>username_0: I have a `fildset` in my html. It already comes with a default border, but, I was trying to make it less horrible. It's all going well, except for the `border-color`. The first time that i aply i didn't realize that my border was *"duplicated"*. Then, seeing others components with same color...
2018/03/15
253
910
<issue_start>username_0: Is there a way to display commands using tab? By commands, I don't mean bash ones, but vim ones, using **:** For instance : I use Nerdtree plugin by typing ':' in NORMAL mode (:NERDTree). If I tab NER, I directly have NERDTree. Then in I tab again > NERDTreeCWD > NERDTreeClose > NERDTreeFind e...
2018/03/15
378
1,417
<issue_start>username_0: I have following two props that i need to access in linear-gradient in `MyComponent.scss` ``` startColor: PropTypes.string endColor: PropTypes.string ``` My component looks like below ``` MyComponent.jsx ``` Currently it accepts only one color. linear-gradient property in `MyComponent.sc...
2018/03/15
434
1,473
<issue_start>username_0: I have query as below: ``` SELECT COUNT(*) FROM (SELECT h2.hacker_id, COUNT(c2.challenge_id) AS co FROM hackers h2 INNER JOIN challenges c2 ON h2.hacker_id = c2.hacker_id GROUP BY h2.hacker_id HAVING COUNT(c2.chal...
2018/03/15
300
1,138
<issue_start>username_0: this is my code of a dynamic drop down menu and I want to change the text of the first option which has no id and the value is empty! this is the code: ``` All America ```<issue_comment>username_1: You could do this with inline CSS or using a CSS Object in a JS file. But not directly in a...
2018/03/15
5,334
9,055
<issue_start>username_0: In React, I have an array of objects with an createdAt attribute which I'm trying to sort on. However the sort doesn't seem to work properly because some it comes out in the wrong order. I've written the following code in Node.js for testing... any help would be appreciated. ``` const moment =...
2018/03/15
422
1,430
<issue_start>username_0: I want regular expression to find & replace first and third `rownum` word in the below-given string with the word `NONE`. ``` String str = "select dummy,rownum,rowid as \"rownum\",rownum as order_number from dual"; ``` I have tried below regular expression but it replacing the comma `,` befo...
2018/03/15
446
1,609
<issue_start>username_0: I'm trying to add a PayPal 'Donate' button to a React app built using Meteor. I've pasted the code generated by the PayPal website into a file DonateButton.jsx in my 'includes' directory: ``` import React from 'react'; function DonateButton() { return ( ![](https://www.paypalobjects.com...
2018/03/15
292
1,016
<issue_start>username_0: So I have a for loop iterating through a large list (so taking long time). So I want it to call `helper.clear()`(session) every 200 second (when I am running the for loop). how should I do it? I see timer and thread.sleep() in other similar post, and not sure which is better, or if there's bet...
2018/03/15
233
804
<issue_start>username_0: I zipped some files, intrinsically important (old code, tune ideas, a few recording sessions). Put them on Google Drive. All the zips are corrupt. I just wanted to hear a tune from yesteryear now I realize it might all be gone. I've tried zip -F x.zip --out y.zip no dice. Any ideas?<issue_c...
2018/03/15
532
2,002
<issue_start>username_0: My invocation of the `ask deploy` command failed because of the following error: ``` $ ask deploy [Error]: Invalid url info. Cannot find valid lambda function with the given name, nor find sourceDir as codebase path to create lambda function. ``` How can I fix this error?<issue_comment>usern...
2018/03/15
814
3,010
<issue_start>username_0: I’m trying to set up a performance timer in some Informix sprocs to see how long an insert is taking. I think I’m close, but I’m getting all zeros back. I'm using the code below in the real sprocs, too, which contain real insert statements (i.e., not just the sleep statement). It still returns ...
2018/03/15
602
2,137
<issue_start>username_0: I wrote this regular expression in JavaScript: ``` node_modules\/(?!react\-hot).*-loader.* ``` The idea is to match every string like `node_modules/babel-loader` or `node_modules/css-loader` but exclude `node_modules/react-hot-loader`. [Here is a regex101 link of this working](https://regex...
2018/03/15
1,066
3,446
<issue_start>username_0: Having a problem where Mapbox using Leaflet is not displaying correctly in a modal. The map and marker are in the upper left and the rest of the tiles are blank. I have tried the code directly in a page and not a modal and it works... ```html #mapid { height: 300px; } var mymap = L.map('...
2018/03/15
887
1,872
<issue_start>username_0: when I try to convert a long number to a string and an array by using google dev tool, I got a problem. ``` let m=123000000000000000000000000000000 //1.23e+32 m=m+'good' //"1.23e+32good" // instead of "123000000000000000000000000000000good" ``` I plan to get the result of ["1","2","3","0",.....
2018/03/15
1,338
4,599
<issue_start>username_0: I have this class ``` public class Parent { [Key] public int Id { get; set; } public string Name { get; set; } public virtual Child Child { get; set; } } ``` and a child class ``` public class Child { [Key] [ForeignKey] public int ParentId { get; set; } public string Name { ...
2018/03/15
1,312
4,405
<issue_start>username_0: I am looking for a pythonic/elegant way to transform my list of dict (e.g. `LD`) into a aggregated list of dict (e.g. `DD`). The dict in `LD` have `id`, `result`, and `count` as keys, and there can be multiple dict's with the same `id` with different `result`s. The resulting dict `DD` should ag...
2018/03/15
1,460
5,927
<issue_start>username_0: I have a list of files in a target folder: Example/HUVEC.csv Example/HUVEC-1.csv Example/HUVEC-3.3.2n-1.csv (random hash) Example/Endo1.csv What I'd like is to be able to create a folder called "HUVEC" if there are files that start with "HUVECxxx" in the "Example" Folder and then mo...
2018/03/15
507
1,662
<issue_start>username_0: Each record in the **movies** table has: **user** - user id **movie** - movie id **rating** - user rating for the movie User **1** wants to receive recommendations (list of movies) from the group of users **2,3,4,5,6,7**. The recommended movies should NOT be found among the movies of...
2018/03/15
918
3,418
<issue_start>username_0: I understand that tuple is immutable. Therefore, I am trying to convert the tuple to a list first then delete the item. My original tuple is `('monkey', 'camel', ('python', 'elephant', 'penguin'))`. It's a tuple including another tuple inside. I want to delete `'python'`. Firstly I defined a ...
2018/03/15
835
2,926
<issue_start>username_0: I ran a matrix multiplication code serially and parallelized.There was no significant improvement with the parallel version. ``` dimension =4000; //#pragma omp parallel for shared(A,B,C) private(i,j,k) { for(int i=0; i ``` Output: time ./a.out ``` real 4m58,760s user ...
2018/03/15
891
3,141
<issue_start>username_0: In our project we have base css file which contains classes for most of the common css properties (like `.p10` -> `padding:10px`, `vam` -> `vertical-align:middle`). If I use many of these classes in a single DOM, does it lead to any performance impact?<issue_comment>username_1: You're adding ...
2018/03/15
453
1,522
<issue_start>username_0: I know it is possible to access the docker api and the following command works just fine: `curl -s --unix-socket /var/run/docker.sock http:/v1.24/containers/$HOSTNAME/json | jq -r '.Image'` However, I would really like avoid exposing the `docker.sock` to the container itself because it is ...
2018/03/15
905
3,394
<issue_start>username_0: I have two `JFrames`. `AddSongFrame` takes in the user input through `jTextFields` and `MusicPlayerandLibraryForm` updates the `jList` with the user input. However, I have run into a problem with adding elements to the `jList`. At the line ``` MusicPlayerAndLibraryForm mplf = new MusicPlay...
2018/03/15
511
1,519
<issue_start>username_0: I want to delete all the same cells but because of changes in my list the length is changing as well so instead of 9 loops it makes 5. For the input: `apple,banana,coconut,apple,banana,coconut,apple,banana,coconut(str)` I expect the output: `apple, banana, coconut (list)` but I got: `...
2018/03/15
642
1,550
<issue_start>username_0: I am using Azure table storage which provides very less options to query the table storage. I have my RowKey as a composed key in the following way: ``` "b844be0d-2280-49f7-9ad7-58c36da80d22_2518908336099522182" ,"b844be0d-2280-49f7-9ad7-58c36da80d22_2518908336099522183" ,"b844be0d-2280-49f7-9...
2018/03/15
420
1,262
<issue_start>username_0: Apologies; I'm new to Regex; is it possible to develop an expression that will match strings that has a list of adjacent numbers (that don't have to be ordered) where the count of the numbers equals the expression 2n+2? So " asdasd 02" would match because when n is 0, 2\*0+2=2; similarly "asdas...
2018/03/15
392
1,230
<issue_start>username_0: I got a file on the form ``` org.apache.spark.rdd.RDD[(String, Array[String])] = MapPartitionsRDD[364] ``` Which is a file where i got a couple of keys (`string`), and many values per key (`Array[String]`). I want to be able to count the number of each occurrence in the Value for each separ...
2018/03/15
1,845
6,333
<issue_start>username_0: Apologies upfront if I fail to use the correct SQL terminology/approach in this issue. What I'm looking to do is write a SQL query (using SQL Server 2008R2) for an e-commerce system which will collate order data from one table and customer data from a second table. My SQL skills go so far as `J...