date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/16
799
2,954
<issue_start>username_0: I'm calling `getUserMedia()` to get a video stream and simply setting the `stream` as the `srcObject` of a video element. Specifically on Chrome on 2 different Windows Tablets, in Portrait mode the video is side ways. I can't find any orientation info in the stream or video track objects and ...
2018/03/16
271
865
<issue_start>username_0: Since there are a lot of great apps (like [Pusher](https://github.com/noodlewerk/NWPusher) or [APNs Provider](https://itunes.apple.com/us/app/easy-apns-provider-push-notification-service-testing-tool/id989622350?mt=12)) to test push notifications, they only support `.p12` or `.pem` certificates...
2018/03/16
699
2,475
<issue_start>username_0: How can I convert an HTML to PDF with [OpenPDF](https://github.com/LibrePDF/OpenPDF)? For what I know, OpenPdf is a fork of Itext 4. Unluckily I can't find Itext 4 documentation.<issue_comment>username_1: Ok,it seems you can't do it directly with only OpenPDF, you have to use [Flying Saucer](h...
2018/03/16
957
2,780
<issue_start>username_0: I am learning pandas lib. in Python3, but i have a big problem. When i use command to read\_excel i get an error. ``` import pandas as pd df = pd.read_excel(r'D:\PythonProjects\stocks.xlsx',sheetname=0) ``` The error looks like this: ``` C:\Users\Kuba\AppData\Local\Programs\Python\Python36...
2018/03/16
690
2,455
<issue_start>username_0: I am doing some auto testing Python + Selenium.Is there any way to check suggestion box in google for example using selenium. Something like I would like to now that suggestion table is revealed when auto test put google in search bar. [![Here is an axample](https://i.stack.imgur.com/RGBoH.png...
2018/03/16
776
2,756
<issue_start>username_0: I am trying to mount a connection to map a folder from a cluster (running Ubuntu 16.04) to my local machine (Mac Book Pro). Therefore I am typing the following: `sshfs username@host:/home/username/path_to_mount /Users/local_user/Desktop/existing_dir` I get the following error: `fuse: bad mou...
2018/03/16
338
1,398
<issue_start>username_0: If there is a singleton instance of SomeClass and some other class repeatedly call createMap() method on instance of SomeClass then would there ever be a memory leak? I tested this with a 50000 loop and monitored heap and I dont see the leak but would like opinion. ``` class SomeClass { Ma...
2018/03/16
602
2,561
<issue_start>username_0: I have the task of writing a WebApp with angular, where a prototype exists. As I have no experience with Typescript and asynchronous programming, I am not sure how to approach this in the best way. In the prototype a handshake is performed, which is a sequence of calculations and HTTP requests...
2018/03/16
1,187
4,079
<issue_start>username_0: I am taking over a Cordova/Ionic project. I've never worked with Cordova or Ionic before, so I am complete beginner in that area. However, I have worked with Node, on and off, for a few years, so I mostly know about that. A simple starting task, I need to add Appsee: <https://www.appsee.com/d...
2018/03/16
572
2,035
<issue_start>username_0: This is my PHP code. When I upload any files with .jpg or .png extensions, i am storing the file extension in `$lower_img_extension` and I did checked it storing `jpg` Whoever i am getting result `NOT RIGHT` while the result should be `RIGHT`. What am I missing? ``` php if(isset($_POST["subm...
2018/03/16
2,100
5,934
<issue_start>username_0: How can I write this using typescript? So I have a type Status which has three properties: name, actionName and style. I also have a constant statusTypes which has two properties of type Status. This is what I did so far but it is not working. I am getting this error `[ts] Type '{ Active: any...
2018/03/16
676
2,215
<issue_start>username_0: When using raw\_input in python, a user has to put an input and then press enter. Is there a way for me to code something, where the code will prompt several user inputs at the same time and THEN press enter for the code to run? For example: instead of ... ``` >>> Name: >>> Age: >>> Gende...
2018/03/16
968
3,055
<issue_start>username_0: I posted a question similar to this and the solution people provided worked, but it only worked when I comment out all my other CSS code. For some reason, the CSS is interfering with the JavaScript function to work properly. I want to change the background color to black when I click the button...
2018/03/16
744
2,300
<issue_start>username_0: It's pretty simple, we have this line. I'd like to grab the info from: `console.log($('#fourth-step tr:nth-child(3) td:nth-child(3)'));` So the output is `#fourth-step tr:nth-child(3) td:nth-child(3)`. This outputs a very long object but **I need only the selector information**. I'm almost ...
2018/03/16
883
3,008
<issue_start>username_0: I'm building an online gallery in React, and it requires an external script in order to work properly. There are 2 main components, namely Home.js and Single.js. Home.js displays some categories the images are organized in, and the Single.js is the detail view of a category (it contains all th...
2018/03/16
901
3,061
<issue_start>username_0: the below code is the viewController that is navigated with a navigationItem `navigationItem.leftBarButtonItem = UIBarButtonItem(title:` from a previous tableViewController and I am trying to produce a UIView in my viewController. However nothing is showing. ``` import UIKit class SecondpgCo...
2018/03/16
1,268
3,893
<issue_start>username_0: Given a flexbox container, how could I make sure that, if children have lots of content, they don't overflow the container? ```css .container { display: flex; flex-direction: column; background-color: #ccc; height: 210px; width: 200px; } .child { display: flex; width: 10...
2018/03/16
745
2,437
<issue_start>username_0: I'm trying to create an image carousel style system, which displays multiple images at once; except instead of sliding between those images, the images fade. So for example, 5 images might be displayed, then after a set period of time (say 3 seconds), they all fade at once to the next 5 image...
2018/03/16
622
2,026
<issue_start>username_0: I'm looking to write a vim macro (not that I know how yet) eventually, as I'm sure I can do this in vim, but I don't know the basics yet. I want to grab the branch name (or part of it anyway - that part of the regex should be straightforward) from a git commit message, and paste it, with a col...
2018/03/16
800
2,648
<issue_start>username_0: I am testing in Safari 11.0.3 Site: <https://3milychu.github.io/met-erials> I have the following function to create a header that pops out the selected item upon scroll ``` function scrollState () { var elmnt = document.getElementById("title"); var rep = elmnt.offsetTop; if (window.pageYOf...
2018/03/16
1,550
5,530
<issue_start>username_0: I have a standalone application using Spring to connect to TIBCO (queues). Occasionally, for various reasons, TIBCO connection is closed by the server. Most of the things are recovering from this. However, sometimes JmsTemplate is not able to send response because of the error below. I have a r...
2018/03/16
830
2,916
<issue_start>username_0: I'm trying to make a function called loadFixtures available to all Jest tests. I have the following line within the jest config object inside package.json: ``` "globalSetup": "/src/test/js/config/setup-globals.js" ``` setup-globals.js contains: ``` module.exports = function() { functio...
2018/03/16
1,258
4,716
<issue_start>username_0: I think it is a little ridiculous but it's hard to find information about what is this file. I've found a lot info how to get this `Apple Push Notification Authentication Key`, but i also want to know exactly what is it. Here is some info i have found: **Benefits:** * No need to re-generat...
2018/03/16
1,339
4,241
<issue_start>username_0: I need something like this ``` php if http://growtopiajaw.my.vg else if https://growtopiajaw.my.vg then header('Location: https://growtopiajaw.my.vg/homepage.html', true, 301); exit(); ? ``` Basiclly, if I type in the URL growtopiajaw.my.vg, it will automaticlly redirect to <https:...
2018/03/16
2,640
7,593
<issue_start>username_0: I am trying to work with jupyter notebook, but when I open a file I receive the following error: The kernel has died, and the automatic restart has failed. It is possible the kernel cannot be restarted. If you are not able to restart the kernel, you will still be able to save the notebook, bu...
2018/03/16
888
3,037
<issue_start>username_0: I have three components: ``` const Comp0 = () => 1; const Comp1 = () => 2; const Comp2 = () => 3; ``` I have also a class, with state: `state = { activeComponent: 0 }` This `activeComponent` can be changed by user to `1`, `2` or `0`. In render, I have: ``` return ( {React.createElemen...
2018/03/16
1,113
3,720
<issue_start>username_0: When I run my project index, it shows this error. I have googled it but I have not found a proper solution for this error. So, please someone help me. The Error message: > > "The parameters dictionary contains a null entry for parameter > 'chapterIdS' of non-nullable type 'System.Int32' for...
2018/03/16
1,063
2,981
<issue_start>username_0: I have a huge `.txt` file (15 GB) and having almost 30 million lines. I want to put its lines to different files based on the `4th column.` And the `unique` number of `4th` column is around `2 million.` ``` file1.txt 1 10 ABC KK-LK 1 33 23 KK-LK 2 34 32 CK-LK,LK 11 332 2 JK@ 11 23 ...
2018/03/16
2,879
11,546
<issue_start>username_0: The following comes from a qsort function implementation given as a solution to one of the K&R challenge questions. The challenge is to read a list of words and sort them according to the number of occurrences. The struct Word is also shown. Link to the full code: <http://clc-wiki.net/wiki/K%26...
2018/03/16
2,684
11,018
<issue_start>username_0: I want like to filter the data so that only these rows are kept that show the sequencing of locations for each ID. Any idea how I can accomplish this with SQL? Note that the same location can return multiple times, but I want to map each subsequent change in location (i.e. the trajectories). ...
2018/03/16
1,072
4,168
<issue_start>username_0: I imported the modules fs, lodash, yargs and express and then used typeof on the variables in which I required them.All of them except fs are shown as function 1) I can understand if its an object because we use functions residing in that module but all the module being functions are not makin...
2018/03/16
625
2,414
<issue_start>username_0: Is there any way, within a Laravel console command, to clear the session and/or the remember me cookie? The console command is designed to deactivate users, and so if a user is deactivated while they are logged in, I want them to automatically be logged out. But I'm not sure this is possible...
2018/03/16
606
2,290
<issue_start>username_0: I've the following get\_or\_create method. ``` class LocationView(views.APIView): def get_or_create(self, request): try: location = Location.objects.get(country=request.data.get("country"), city=request.data.get("city")) print(location) return Re...
2018/03/16
306
1,090
<issue_start>username_0: Is it possible to compute the average time of a user in a query? Like: ``` reportedDate userID ------------ ------ 2018-03-17 00:27:15 1 2018-03-17 00:32:28 1 ```<issue_comment>username_1: JSON dumps only works with basic types (str, int, float, bool, None). You're t...
2018/03/16
382
1,350
<issue_start>username_0: I am using indexed\_search and I have the problem that the WHOLE SITE is crawled - including the navigation. So if I search for a word which is part of the main navigation all sites are displayed in the result. I have added `<--TYPO3SEARCH_begin-->` and `<--TYPO3SEARCH_end-->` in my template -...
2018/03/16
1,421
5,753
<issue_start>username_0: Does the following code have an undefined behaviour? ``` [[ gnu::pure ]] static const MyClass &myClass() noexcept { static const MyClass s_myClass; return s_myClass; } ``` According to [gcc docs](https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#Common-Function-Attri...
2018/03/16
545
2,031
<issue_start>username_0: Kotlin redefines a number of primitive constants that are already defined in Java, such as `Long.MAX_VALUE` or `Double.NaN`. What is the a difference between them and which should be preferred when coding in Kotlin? To be clear, I'm referring, for example, to: ``` kotlin.Long.Companion.MAX_V...
2018/03/16
3,087
11,817
<issue_start>username_0: I am currently working on an app and one of the features is to locate the nearest pharmacy. However the one of the classes PharmacyMapFragment is a Fragment class and when I try to call it, the app crashes and I get this error message: > > 'android.content.ActivityNotFoundException: Unable t...
2018/03/16
1,379
4,656
<issue_start>username_0: I am trying to print out which nodes are being accessed via the getter by overriding my objects getter with a proxy. I am trying to basically test which parts of this large object are not being used by my application. The problem I am having is being able to add some way of identifying what a g...
2018/03/16
346
1,462
<issue_start>username_0: I am importing some python functions into a Jupyter Lab notebook and then using them within the notebook. But I am going back and forth between making alterations to the functions and then rerunning them in the Jupyter Lab notebook. The only way I have found to get Jupyter Lab to use the update...
2018/03/16
299
1,110
<issue_start>username_0: Trying to get the value of an element to a tcl variable sample stats.xml file ``` abc 1224.3414 ``` In the above case trying to extract only one element value either name or number ``` set value regexp "<$number>(.*?)" stats.xml value ```<issue_comment>username_1: You can reload the mod...
2018/03/16
1,368
4,447
<issue_start>username_0: I am trying to loop through a calendar web table and if the calendar date is greater than or equal to current date click the radio button the corresponds to it. The rest of the code works but that. updated code ``` dowhileloop: do { // holds dates from 5th column in list List < WebEleme...
2018/03/16
647
1,935
<issue_start>username_0: In the following code (taken from cpp reference with an extra cout added) why don't we see `...finished waiting.` after the first `cv.notify_all`? ``` #include #include #include #include std::condition\_variable cv; std::mutex cv\_m; // This mutex is used for three purposes: // 1) to syn...
2018/03/16
744
2,715
<issue_start>username_0: I have a lot of action creators that I am trying to organize into a few different files. Each separate file has exported functions like: ``` export function addData(data) { return { type: 'ADD_DATA', data } } ``` Before they were separated into distinct files, they were imported ...
2018/03/16
549
1,972
<issue_start>username_0: have server digitalocean cloud Ubuntu 16.04.2 x64 Apache 2.4 PHP 7.0.3 and SSL certificate Symantec, I was a Development application web site and am use Laravel 5 v 2.0 in localion host what is a step for upload file in server cloud? What is uplaod file in location to the server? How to deploy ...
2018/03/16
400
1,421
<issue_start>username_0: I have this: ``` getReadableStream() { const readableStream = new Readable({ read(size) { return false; } }); this.readableStreams.push(readableStream); return readableStream; } ``` however it would be nice if I could push to the array and return the i...
2018/03/16
2,154
6,349
<issue_start>username_0: I was experimenting with different integer types in Visual Studio project in Windows using a simple exchange sort algorithm below. The processor is Intel. The code was compiled in Release x64. The optimization setting is "Maximize Speed (/O2)". The command line corresponding to the compilation ...
2018/03/16
732
2,994
<issue_start>username_0: i'm abstracting my firebase api calls out of my react native components to a service layer. This is working well for calls that return a promise, but this one call, onAuthStateChanged, doesn't return a promise. Without the service layer i would just do: ``` firebase.auth().onAuthStateChanged(u...
2018/03/16
534
1,668
<issue_start>username_0: I'm working on a react application. I'm stuck on image animation. When the mouse is hover the image it scale to 1.2 times original, but it should be come with transition time of 2s.i I'm able to scale the image but how should I add transition time on. My code: ``` this.setState({hovered: fals...
2018/03/16
890
3,166
<issue_start>username_0: I am trying to catch errors instead of throwing them. I attempted try/catch but realised that didn't work so im at a bit of a loose end. The two errors are mongodb related, however i think node/express errors are still thrown. ``` app.get( "/test/:lastName", function ( reqt, resp ) { var dri...
2018/03/16
176
518
<issue_start>username_0: My JSON looks like this: ``` {Sean/Projet: 6, EC2: 1},{EC3:5,Weekend:5} ``` How do I dynamically access only the key, for example: "Sean/Projet" or "EC2". Thank you.<issue_comment>username_1: Found out a solution: ``` var keys = Object.keys(myJson); console.log(keys[0]); ``` But how do ...
2018/03/16
506
1,631
<issue_start>username_0: I have a div with an image on the left and some text on the right. I'm using flexbox so that as the screen narrows the text pops below the image. What I want to have happen on narrowing the screen is to have not only the text narrow but the image to shrink as well and maintain its position. In...
2018/03/16
633
2,914
<issue_start>username_0: I've just found some EJB behaviour which looks rather surprizing to me. Here is the code sample (for sure MyBean, beanA, beanB are EJBs using CMT): ``` @Stateless public class MyBean { @TransactionAttribute(TransactionAttributeType.REQUIRED) public void myMethod(){ try { ...
2018/03/16
670
2,720
<issue_start>username_0: I have created a spring boot application with spring cloud sleuth. For POC purposes, I used zipkin on my local machine and I am able to instrument a external service which is not instrumented by creating manual span. I reffered below link. <https://cloud.spring.io/spring-cloud-sleuth/1.2.x/mu...
2018/03/16
639
1,526
<issue_start>username_0: My question is similar to [this question](https://stackoverflow.com/questions/12329853/how-to-rearrange-pandas-column-sequence). In answers of that question i saw few ways to do what i am trying to do below. But answers are old and i feel that there might be a fast and an efficient way to do wh...
2018/03/16
849
2,789
<issue_start>username_0: I want to have show dates translated in "de" and in this format: ``` Thu, Mar 8, 2018 - 6:30 ``` I have in "app.php": ``` 'locale' => 'de', ``` Then in a view Im using: ``` {{$post->date->toDayDateTimeString()}} ``` But the result still appears in "en": ``` Thu, Mar 8, 2018 6:30 AM ...
2018/03/16
899
3,075
<issue_start>username_0: I am trying to get to grips with the basics of Python, running basic functions and playing around with its capabilities, however, i am having some trouble understanding just how to invoke the other functions, below is an example of me playing around with functions, which function call would i w...
2018/03/16
838
2,556
<issue_start>username_0: I have a csv file with two columns: date string in ISO8601 and a linux timestamp. How do I use `awk` to get the output in the following format: col-1: original ISO; col-2: convert timestamp (2) to ISO8601; col-3: diff between the two times (say, in ms) Example: **Input**: ``` 2018-01-09T16...
2018/03/16
241
895
<issue_start>username_0: As per the documentation on the website,Istio-Auth provides strong service-to-service and end-user authentication. I am not able to find more info on end-user authentication. I see all the good stuff about service to service authentication but not the end-user authentication to the services. Is...
2018/03/16
1,438
4,948
<issue_start>username_0: A recent Visual Studio Studio upgrade to version 15.6.2 included a Visual C++ compiler update which causes warnings for the following code at the `push_back` line due to `[[nodiscard]]`: ``` #include struct [[nodiscard]] S { int i; }; int main() { std::vector ~~v; v.push\_back({ 1 }); //...
2018/03/16
971
3,894
<issue_start>username_0: There's some third party code that looks like the following. Assume there are two classes, classA and classB, their definitions are correct and they work as expected. ``` // this function does not have a *throws Exception* in its definition public Collection doSomething(String someStr) { Lis...
2018/03/16
675
2,628
<issue_start>username_0: I have a drop-down list in A1 with "Y" and "N". I want to write a code in cell B1 to get value "True" if A1 is "Y" and "False" if A1 is "N". ``` Sub YCheck() Dim CellCheck As Boolean Set Worksheets("Sheet1").Range("B1").Value = CellCheck If Worksheets("Sheet1").Range("A1").Value = Y Then Ce...
2018/03/16
1,092
3,444
<issue_start>username_0: Upgraded to php 5.5 (I KNOW ITS OLD) and updated my phpMyAdmin version, aswell as MySQL to 5.7, and now MySQL wont start... Looking in the mysqld log: `2018-03-16T16:35:54.553247Z 0 [ERROR] InnoDB: The Auto-extending innodb_system data file './ibdata1' is of a different size 640 pages (rounded...
2018/03/16
3,981
12,661
<issue_start>username_0: I have multiple .txt files which look like this: ``` header header header header header 01130009.JPG JPEG 2/5/2018 3:53:44 PM G:\AAA AAAAAAAA\AAAAA\BBBB BBBB & BBBBB BBBBB\CAM_07-0008\Farther Downg Gray Fox ...
2018/03/16
861
2,713
<issue_start>username_0: I know that I can use: ``` S = pymc.MCMC(model1) from pymc import Matplot as mcplt mcplt.plot(S) ``` and that will give me a figure with three plots but all I want is just a single plot of the histogram. Then I want to normalise the histogram and then make a plot a smooth curve of the distri...
2018/03/16
1,202
4,876
<issue_start>username_0: I am trying to get suggestion from the community in order to make the best practices. Please bear with me, with the following example: Suppose that you work with **half open intervals**, that is, *something that you know when it starts.* For example * There can be `HalfOpenInterval` restrict...
2018/03/16
712
2,359
<issue_start>username_0: I'm trying to do a multiregression linear model with 10 predictors variables, but when I copy all the variables the model doesn't work. ``` regresion<-lm(DO~NO3+NO2+SO4+NH4+Mg+Ca+PO4+pH+CI+CE, data=s1) ``` the output is: ``` Call: lm(formula = DO ~ NO3 + NO2 + SO4 + NH4 + Mg + Ca + PO4 + ...
2018/03/16
1,061
3,898
<issue_start>username_0: Basically the route /users is not working , when I enter there it brings the component AppComponent instead the UsersComponent. Why the route /users does not load the correctly component? app.module.ts ``` import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@...
2018/03/16
258
944
<issue_start>username_0: I have a variable I'm getting as input: ``` @Input() public isNotReplay: boolean | false; ``` if this variable is true I want to apply a class with a style: ``` .main-chat { overflow: auto; } ``` I've gotten this to work with the terinary operator like this: ``` ``` however, I only...
2018/03/16
503
1,632
<issue_start>username_0: ```js $scope.identityProof = ["karnataka","Tamilnadu","Andhra","Delhi","Kerala","Bihar"] ``` ```html Yes No {{message}} Default Otions: --Choose a Document-- ``` I have two radio bottons "Yes" and "No". Dropdown values are coming from service response. So I'm displayin...
2018/03/16
842
2,396
<issue_start>username_0: My intent is to get a list of all day of the month/year that I choose. Besides that, I'll add extra html into the final result. I created this php function, but noticed that it's better, because I'll edit it in the html, if I do it on my tag. The code list all days and name of week days of th...
2018/03/16
1,124
2,654
<issue_start>username_0: We have a txt file which contains 3 columns and 100000 rows. We would like to find the row of specific number for example: `1.232422567` which is in first column but no idea about the number of its row. for instance look at following example: ``` ... 5.98735973963 4.3453 1.09877345 6.21...
2018/03/16
848
2,036
<issue_start>username_0: How to order numbers stored as string in db by OrderBy function ``` mytable.OrderBy(s => s.Year); ``` for ex => * `string Year= 2013/2014` * `string Year= 2017/2018`<issue_comment>username_1: This is one way. Output is a `numpy` array. ``` import pandas as pd from io import StringIO mys...
2018/03/16
1,202
3,745
<issue_start>username_0: I will try to explain this. Say I have multiple items in a list: ``` var products = new List(); products.Add(JObject.Parse("{ colour: 'Pinks', importance: 100, variant: '0' }")); products.Add(JObject.Parse("{ colour: 'Blacks', importance: 200, variant: '0' }")); products.Add(JObject.Parse("{ c...
2018/03/16
538
2,034
<issue_start>username_0: I know that PHP is a Server-Side and Javascript is Client-side , But I'm wondering if it's possible to do the following . I have a javascript function that calls an Ajax call to a PHP file , Here is the code: ``` function reloadData(fileName){ $.ajax({ //I want to insert the fileN...
2018/03/16
442
1,634
<issue_start>username_0: I'm a student and have a question. I'm not getting the correct output in our textbook. ``` first = 'I' second = 'love' third = 'Python' sentence = first + '' + second + '' + third + '.' ``` Output: ``` I love Python. ``` When I run it, nothing happens. Can someone explain why? Thanks in ...
2018/03/16
685
2,219
<issue_start>username_0: **What I want to do:** Render a list of items as a component inside of another component ``` ... ... ``` **What happens:** I get this error: ``` Syntax Error: Adjacent JSX elements must be wrapped in an enclosing tag ``` What my code looks like: ``` const RenderBuildings = (props) =>...
2018/03/16
415
1,459
<issue_start>username_0: I have an issue where I'm unable to start any docker machines whilst connected to a the WiFi network in my local Starbucks, receiving the following output; > > $ docker-machine start > > Starting "default"... > > (default) Check network to re-create if needed... > > **Error setting...
2018/03/16
412
1,505
<issue_start>username_0: I'm doing a small script with jquery, I'd like, that by clicking on the checkbox, I'll take the first textarea and pass it to the 2 text area without numbers, but, that textarea 1 will be as it is in 2 ```js $(document).ready(function() { function validate() { if (document....
2018/03/16
384
1,325
<issue_start>username_0: I am loading my android `WebView` using ``` mywebview.loadDataWithBaseURL("file:///android_asset/", new String(result), "text/html", "UTF-8", null); ``` HTML rendered successfully in `WebView`. now I want to open another HTML file from that HTML using button for that I am using below code i...
2018/03/16
811
2,612
<issue_start>username_0: I was trying to use regexp\_substr to get each correct column name from a column list string. The query is like: ``` select regexp_substr(v_keep, '(^|[(,) ]*)' || r.column_name || '($|[(,) ]+)', 1, 1, 'i') from dual; ``` But the result is not correct. The v\_keep can be any column name lis...
2018/03/16
660
2,229
<issue_start>username_0: I am a beginner to coding. Is it possible to join two queries into one? I have googled but I didn't get what exactly I am looking for. My first query is: ``` SELECT filename , course.cname , DATE_FORMAT(pd_course_file.creationDate,"%D %M %Y") as date , type FROM pd_course_fil...
2018/03/16
914
2,688
<issue_start>username_0: I wrote a program which displays the points between points which the user types in. For example: User types points `A(1|1)` and `B(10|10)`, so the program returns all the points which make a line between `A` and `B` (therefore `(2|2) (3|3)(4|4)(5|5)(6|6)` etc..(imagine a 2 dimensional array). ...
2018/03/16
828
3,160
<issue_start>username_0: I want my `QListWidget` to update with the new item as it is added, but it only updates with all of the items once the function has ended. I have tried using `update()` and `repaint()`, but neither work. I actually had to use `repaint()` on the Widget itself just to get it to show up before the...
2018/03/16
548
1,913
<issue_start>username_0: I'm building a service backend that is being sent a "delivery report" after successfully sending a SMS to a user. The report itself is XML **POST**ed to our "endpoint" with the content-type *application/xml*. I'm using Postman to make sure that everything is working correctly. I've made a tes...
2018/03/16
757
2,777
<issue_start>username_0: So, I love the idea of VueX modules and separating my data out, as it makes it far easier to reason when there are large sets of data... but I hate having to refer to them as nested objects in the store's state. This is how the module currently works: contactData.js: ``` export const contact...
2018/03/16
612
2,343
<issue_start>username_0: I would like to mock `io.vertx.ext.jdbc.JDBCClient` to unit-test the below `verticle` code: ```java class A { private final Helper help = new Helper(); public JsonObject checkEmailAvailability(String email, JDBCClient jdbc) throws SignUpException { JsonObject result = new Jso...
2018/03/16
738
2,366
<issue_start>username_0: This is probably a very basic question but I haven't been able to find the answer so here goes... Question: Is there an say way to sort the values alphabetically while also removing any duplicate instances? Here's what I have: ``` data = ['Car | Book | Apple','','Book | Car | Apple | Apple'...
2018/03/16
915
3,715
<issue_start>username_0: I have a general paradigm from which I'd like to create objects. Currently, I have it written in such a way that the parent class builds the paradigm from a configuration object given to it by the subclass. The configuration object defines all of the class' characteristics, and the class is als...
2018/03/16
1,321
5,458
<issue_start>username_0: I am trying to create an xml file from my data class using JaxB and download it. I have created marshaller object from java object. However I am unable to return this object as xml file. When I hit that method I get an empty xml file is downloaded. I am newbie to File IO coding, please help m...
2018/03/16
797
2,946
<issue_start>username_0: How can I refactor this redux reducer code with ES6? Concat I can replace with `...` right? But what about Object.assign? ``` import { FETCH_REQUEST, FETCH_SUCCESS, FETCH_FAILURE } from '../actions'; const initialState = { isFetching: false, beersArray: [], errorMessage: '', skip: 0, ...
2018/03/16
1,638
3,556
<issue_start>username_0: I am struggling to convert an array of floats (numbers with decimal places) to datetime. What I have is a huge array with non-integers (like those produced with Microsoft Excel) that denotes days after a certain date. If I do it for only 1 float number, say 28.79167, starting for an initial dat...
2018/03/16
1,678
2,999
<issue_start>username_0: Trying to merge files of the same format of an entire folder to a merged file. ``` head File1.txt 11 116701285 204 11 116701286 209 11 116701287 209 11 116701288 208 11 116701289 209 11 116701290 208 11 116701291 208 11 116701292 210 11 116701293 209 11 116701294 ...
2018/03/16
1,044
2,838
<issue_start>username_0: Common way to keep clients in sync with server in real time is to make Websocket/SSE connection and push all updates this way. This is obviously very efficient, but also requires us too set up a server to handle all those persistent connections and to communicate with the rest of our infrastruc...
2018/03/16
1,058
3,754
<issue_start>username_0: I have the following code to display a certain string according to which checkboxes are checked in my Android app: ``` public String createOrderSummary(){ CheckBox whippedCheckBox = findViewById(R.id.whipped); boolean whippedCream = whippedCheckBox.isChecked(); CheckBox chocoBox ...
2018/03/16
1,552
5,569
<issue_start>username_0: I'm adding a body class to my page based on browser support for the Google Speech API. The idea is to then check for that class and serve the appropriate search form based on browser support. Javascript/Jquery is inlined in the document head: ``` $.noConflict(); jQuery(document).ready(funct...
2018/03/16
826
3,103
<issue_start>username_0: I am wondering if someone can help me out with this since I am new to react-native and redux. I want to populate a FlatList with just a name and I am using this classes (along with others obviously): actions.js ``` const LOAD_CLIENT = 'LOAD_CLIENT'; export async function loadClient() { c...
2018/03/16
982
3,077
<issue_start>username_0: I am trying to strip the string {"$outer":{}, (starts from curly brace and end with comma) in my input but I could not do it. My input is like below ``` {"$outer":{},"size":"10","query":{"$outer":{},"match":{"$outer":{},"_all":{"$outer":{},"query":"VALLE","operator":"and"}}}} ``` I tried t...
2018/03/16
1,657
5,545
<issue_start>username_0: I am struggling with I gues a simple thing. I try to make an element (phone img) fixed when user scrolls more than 600px, and make it unfixed again when he is at the end of this section. But it isn't fixed when he scrolls back to top. Why? what i am doing wrong? Generally i am trying to make...
2018/03/16
482
1,839
<issue_start>username_0: I have currently switched to Ubuntu and want to continue using it. So,I want to copy all my codes that was in windows workspace to Ubuntu's eclipse workspace so that I can use that code whenever required. So I copied all codes and pasted in ubuntu's eclipse workspace but facing problem that whe...