date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/07
2,689
10,122
<issue_start>username_0: **Single.java** ``` package baleli.movieapp.model; /** * Created by wim on 4/14/16. */ public class Single { private int img; private String title; public Single() { } public int getImg() { return img; } public void setImg(int img) { this.img ...
2018/03/07
428
1,552
<issue_start>username_0: I have something like this in my `body` (simplified) ``` text ``` with the css ``` #container > article margin-bottom: 50px overflow: auto article display: block ``` On all browsers the margin-bottom is displayed but Safari which seems to collapse it. I read a lot about this is...
2018/03/07
320
967
<issue_start>username_0: I'd need a regex that would work like: > > HH:MM-HH:MM > > > And I've found one regex here but that is just for HH:MM ``` (^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$) ``` Anyone how can help me since it's not my storgest area. I will use it in HTML-forms.<issue_comment>username_1: I exp...
2018/03/07
775
1,917
<issue_start>username_0: I have the following example, where I pass a simple dataframe to a function that summarizes a column. The name of the summarizing column, `s`, I would like to have as a parameter to the function: ``` df <- data.frame(id = c(1,1,1,1,1,2,2,2,2,2), a=c(1:10), b=c...
2018/03/07
835
1,795
<issue_start>username_0: I have a data.frame with column of Sex: ``` Name <- c("Alex", "Lilly", "Mark", "Oliver", "Martha", "Lucas", "Caroline") Age <- c(25, 31, 23, 52, 76, 49, 26) Height <- c(177, 163, 190, 179, 163, 183, 164) Weight <- c(57, 69, 83, 75, 70, 83, 53) Sex <- c("F", "M", "F", "F", "M", "F", "M") ``` ...
2018/03/07
465
1,728
<issue_start>username_0: I would make autocomplete showing suggestion when user click on input field. For the moment suggestions are showed only if user enter characters. ``` ``` I have tried to add `(onFocus)` and pass to it `search($event,'EJ')` Here's my search function : ``` search(event, type) { this.sea...
2018/03/07
1,043
3,999
<issue_start>username_0: If an object has a component with a baseclass `BaseClass`, calling `GetComponent>()` will not return that component. The generic argument seems to throw it off, as a `BaseClass` without using generics will correctly return the derived class as a component when `GetComponent()` is called. Does ...
2018/03/07
845
3,203
<issue_start>username_0: I have a method named response in my controller. But it shows the following error > > Fatal error: Cannot redeclare response() > > > **HomeController.php** ``` php namespace App\Http\Controllers; use Illuminate\Http\Request; class HomeController extends Controller { function respon...
2018/03/07
7,634
12,519
<issue_start>username_0: is there a way to read given amount of instructions from a binary executable file on x86 architecture programmatically? If I had a binary of a simple C program `hello.c`: ``` #include int main(){ printf("Hello world\n"); return 0; } ``` Where after compilation using `gcc`, the disassemb...
2018/03/07
1,147
3,889
<issue_start>username_0: I have written a query to find 10 most busy airports in the USA from March to April. It produces the desired output however I want to try to further optimize it. Are there any HiveQL specific optimizations that can be applied to the query? **Is `GROUPING SETS` applicable here?** I'm new to Hi...
2018/03/07
715
2,870
<issue_start>username_0: I have an autocomplete input which, as the user types, fetches data from multiple endpoints, such as: ``` //service call to fetch data and return as single observable getAutocompleteSuggestions() { const subs$ = [ this.http.get(endpoint1), this.http.get(endpoint2), ...
2018/03/07
860
1,724
<issue_start>username_0: I have a meter reading in a dataframe that gives data in a cumulative reading (as in Xn+1=Xn+a where a is some arbitrary number.) Example below. `2016-12-30 22:01:00 250785.399 2016-12-30 22:03:00 250785.804 2016-12-30 22:05:00 250786.207 2016-12-30 22:07:00 250786.581 2016-12-30 22:09:00 2507...
2018/03/07
1,091
2,448
<issue_start>username_0: I would like to remove all sessions after user conversion (and also removing the sessions that happened on the day of conversion) ``` full_sessions = pd.DataFrame(data={'user_id':[1,1,2,3,3], 'visit_no':[1,2,1,1,2], 'date':['20180307','20180308','20180307','20180308','20180308'], 'result':[0,1...
2018/03/07
948
2,188
<issue_start>username_0: I'm trying to add sdp service record to my Raspberry Pi 3 --- ``` import dbus SERVICE_RECORD =""" xml version="1.0" encoding="UTF-8" ? """ bus = dbus.SystemBus() service = dbus.Interface(self.bus.get_object("org.bluez", "/org/bluez/hci0"),"org.bluez.Service") service.AddRecord(SERVICE_RE...
2018/03/07
1,695
4,034
<issue_start>username_0: I am working on a tiny script which loads JSON data from several different URLs. Most of the requests work well using **requests.get(apiUrl).json()** but one endpoint connection causes **ValueError: No JSON object could be decoded**. The thing is that I can view proper (?) JSON response in the ...
2018/03/07
809
2,328
<issue_start>username_0: I have tried to layout the following view but I can't find a way to achieve this, I need to overlay 2 divs in this way: [![enter image description here](https://i.stack.imgur.com/zhh7b.png)](https://i.stack.imgur.com/zhh7b.png) To do this I have the following HTML and I tried to use this CSS:...
2018/03/07
459
1,420
<issue_start>username_0: Data: ``` Id | Salary | --------------- | 1 | 100 | | 2 | 200 | | 3 | 300 | ``` I am trying to get Nth highest salary using the below code. For instance if I pass the "N" value as 1, the below code gives me 100 whereas it should be 300. I am not sure why the "order by desc" is ...
2018/03/07
717
3,056
<issue_start>username_0: Spring Boot gives us typed configuration objects using the `@ConfigurationProperties` annotation. One of the advantages is getting property name completion in the IDE for free when using the Spring Boot annotation processor. Another would be: validation. Now, I'd like to make a bean conditiona...
2018/03/07
520
2,028
<issue_start>username_0: I am using a `Service` class to play music in the background. While I am displaying the notification bar on top, there is issue in my app. When I kill the app, the music stops for about 1 second and then it starts again. I can't figure out what's the issue. I was following [this](https://www.s...
2018/03/07
653
2,412
<issue_start>username_0: I have an interactive grid with a list of records and lets say it has a date column. Now i only want to show those records or make only those records editable whose month in that date column is equal to the current month on page load. Now i know that a dynamic action can be created with execute...
2018/03/07
670
2,428
<issue_start>username_0: I have this string that is coming from the db and the words are separated by a space. the number of words can vary from a minimum of one to a maximum of six, so what i essentially want is to start a new line immediately after the second word. For example the string "Natural Financial Services" ...
2018/03/07
582
2,085
<issue_start>username_0: I need to grant access to Big Query to 30 Phd Students in a University on Google Cloud Platform. Can I give them standalone access to each of them? i.e. One student cannot see other's work unless it is granted. Creating projects = number of students is not too cost effective. so can I give 3...
2018/03/07
2,956
6,495
<issue_start>username_0: Everything in Python is an object. So the size of an int in Python will be larger than usual. ``` >>> sys.getsizeof(int()) 24 ``` OK, but why does it take 12 more bytes for `2⁶³` compared too `2⁶³ - 1` and not just one? ``` >>> sys.getsizeof(2**63) 36 >>> sys.getsizeof(2**62) 24 ``` I get...
2018/03/07
504
1,621
<issue_start>username_0: Currently I have generated the PDF page as bitmap by using FPDF\_RenderPageBitmap method. is there any method for rendering the PDF page as EMF or as metafile in PDFium?<issue_comment>username_1: On Windows, you want to call `FPDF_RenderPage` and pass in the `HDC` this should allow you to get ...
2018/03/07
741
1,887
<issue_start>username_0: I have a couple of questions with my R script. I have a database with many series which have NA and numeric values. I would like to replace the NA by a 0 from the moment we have a numeric value but keep the NA if the serie is not started. As we see below, for example in the second column I wou...
2018/03/07
518
2,349
<issue_start>username_0: I need to call a native module in `MainActivity`'s onCreate function by: `context.getNativeModule(RNBackgroundToForegroundServiceModule.class)` But I am not sure how to get the current `ReactContext` there. I tried to use `(ReactContext) getApplicationContext()` but it crashes. How can I get...
2018/03/07
639
2,680
<issue_start>username_0: I've loaded some strings into variable "result". The strings look like this: ``` school/proj_1/file1.txt school/proj_1/file2.txt school/proj_1/file3.txt ``` I try to get only the name after the last slash, so file1.txt, file2.txt and file3.txt is the desirable result for me. I use this piece...
2018/03/07
405
1,676
<issue_start>username_0: Suddenly when I click on an item of a specific template, I get a loading time of minute until the item is loaded. This only happens for items based on this specific template. All other items based on other templates load fine and quick. I found out that the same loading time happens when I cli...
2018/03/07
3,908
11,687
<issue_start>username_0: I have a table that contains a column with settings, they're formatted like: > > setting\_name=setting\_value|setting\_name=setting\_value|setting\_name=setting\_value > > > The thing is that it varies a lot on which settings have been filled. I would like to split all values and store th...
2018/03/07
438
1,474
<issue_start>username_0: Hello I have this command on my Nodejs application which finds a process with the trim name and kills it. ``` let killTrim = () => { console.log('kill "$(pgrep -f ' + trimName + '.mp4)"') cmd.run('kill "$(pgrep -f ' + trimName + '.mp4)"') trimName = null } ``` this works perfectly fine...
2018/03/07
579
2,631
<issue_start>username_0: Hello I'm still new to programming and I have recently learned about Exceptions and how it is better to Define a exception than use a generic one. I have researched and I understand the basic idea of Creating exceptions such as using String and Throwable. However when it come to code like this:...
2018/03/07
550
2,300
<issue_start>username_0: In order to code posted by Wiktor (<https://stackoverflow.com/a/43338063/7666076>) how to pause and resume sending ajax requestes after click on some button (two different buttons like 'pause' and 'play'). Also how to break the current ajax request immediatelly after click on "pause" button. I...
2018/03/07
585
2,353
<issue_start>username_0: I am using nodemailer for sending email. I want to display some data in email body which is received from client side. In email body that data is treated as string and its value is not printing. code is: ``` let mailOptions = { from: '<EMAIL>', // sender addressl ...
2018/03/07
902
3,257
<issue_start>username_0: So I'm trying to learn Pyro by creating a simple file server with it. I've implemented a few basic features, and now I'm trying to add file transfer. I've looked at examples of how to do this (<https://github.com/irmen/Pyro4/tree/master/examples/filetransfer>), and the way it seems to be with p...
2018/03/07
1,876
6,236
<issue_start>username_0: I am creating a Ticket Reservation System and I want to insert data into the Database. As usual, I used HTML form and all the data goes to the database except seat numbers. And it doesn't give me an error. For the seat numbers, I used Jquery and I want to insert that Jquery values into the dat...
2018/03/07
2,076
4,986
<issue_start>username_0: In the following array, there is duplicate elements (with same dates and ids) ``` [{date: "2018-02-20", id: "ccff5cae-0d38-450d-90f9-2490256db84c"}, {date: "2018-02-21", id: "8ffc7266-6a19-40a7-b181-7c7d73be8467"}, {date: "2018-02-22", id: "147afdd1-8c8b-4fde-b992-d8d8465a1771"}, {date: "2018-...
2018/03/07
267
1,005
<issue_start>username_0: I have function inside select but i want to execute function when page shows up(load) and when value is changed. Actually is executed only when value is changed. My code is here: ```js function go(x) { var text = x.options[x.selectedIndex].text; var elements = document.querySelectorAll(...
2018/03/07
2,715
10,006
<issue_start>username_0: I can't figure out how to stream a binary file from GridFS with spring-data-mongodb and its `GridFSTemplate` when I already have the right `ObjectId`. GridFSTemplate returns either `GridFSResource` (`getResource()`) or `GridFSFile` (`findX()`). I can get the `GridFSFile` by ID: ``` // no w...
2018/03/07
2,590
9,592
<issue_start>username_0: I've used to get all the plugins using IPluginRegistry when it is deprecated and now in the new version, some of its methods implementations are removed like getPluginRegistry. ``` IPluginRegistry pReg = Platform.getPluginRegistry(); IPluginDescriptor[] plugins = pReg.getPluginDescriptors(); I...
2018/03/07
973
3,351
<issue_start>username_0: **Python version: 3.5 // xgboost version: 0.7.post3** Hi everyone, I am trying to implement **incremental learning** using the **xgboost module** in python, where my **target variable is binary**. I think I am supposed to set the parameter **"process\_type": "update"**. The thing is that I ge...
2018/03/07
1,071
3,660
<issue_start>username_0: I am using Spring Boot 1.5.9. When packaging an application as an executable war (layout is WAR) and running it, it only works with mvn spring-boot:run. As soon as I start the application by java -jar , I get a NullPointerException: ``` Exception in thread "main" java.lang.NoClassDefFoundError...
2018/03/07
435
1,511
<issue_start>username_0: I'm using Google NLP API and I'm trying to run the entity\_sentiment\_text function in the snippets.py script (<https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/language/cloud-client/v1/snippets.py>) but I get this error: ``` TypeError: '<' not supported between instances...
2018/03/07
725
2,619
<issue_start>username_0: I have a few javascript functions that return promises. I'm using `.then` to act on the data returned from those functions. However, is the order guaranteed in the below code? Will `result2` get processed after `result`? ``` const test = promiseReturningFunction(data); test.then((result) => { ...
2018/03/07
558
1,655
<issue_start>username_0: Here is my code: ``` def max_sum2(nums): new_sequence = [] # first run: add up positive numbers for i in range(0, len(nums)): if i >= len(nums) - 1: if nums[i - 1] >= 0 and nums[i] >= 0: new_sequence.append(nums[i - 1] + nums[i]) else...
2018/03/07
414
1,390
<issue_start>username_0: I'm new in programming and this is my first question here. i have 2 uipickerviews.the first pickerview has three titles.for example A, B, C. I want when i select A from 1st pickerview,the 2nd pickerview to show 1,2,3. When i select B from 1st pickerview,the 2nd pickerview to show 4,5,6. And Whe...
2018/03/07
394
1,347
<issue_start>username_0: So I installed Python, Pycharm and Selenium Pycharm still unable to show selenium even though Selenium is installed. ``` from selenium.webdriver import Edge ``` Look at the screenshot. It had happened before, but then I was able to click "install/ad selenium" etc and then it worked. But I ...
2018/03/07
1,830
5,241
<issue_start>username_0: I'm using qt, gcc and c++11. I'd like to have a debug function which works in this way: ``` int a = 1; float b = 2.2; QString c = "hello"; ``` usage: ``` myFunc(a); // print a 1 myFunc(a, b); // print a 1 b 2.2 myFunc(a, b, c); // print a 1 b 2.2 c hello ``` I could have used ...
2018/03/07
905
2,699
<issue_start>username_0: Here I have an image and a description inside a container. I want when I flip the container, the image hides and the description shows up, so I used **`backface-visibility: hidden;`** on the image, but it didn't work. ```css .scene { width: 200px; height: 150px; } .container { w...
2018/03/07
353
1,267
<issue_start>username_0: I've got a couple of models like so: ``` User has_many :orders Order belongs_to :user ``` I've been reading that an index can speed up larger queries and it all makes sense, but I don't understand how I should setup an index on a `joins` or `includes`. So if I have the query `Order.joins(:...
2018/03/07
1,110
4,298
<issue_start>username_0: I have an old MCPP project which was used as a communication layer between C++ code which runs on machines and C# which runs on a desktop computer. Recently we decided to try and kill this "glue" project. This project has in it a few lists of constants which are used in the communication and t...
2018/03/07
1,351
3,220
<issue_start>username_0: I'm trying to find an elegant way to work with list structures in R. In particular, in this case, I'd like to extract sub-elements from a list, modify them based on their associated data in that list, and concatenate them into a data frame. Perhaps easier with an example: ``` mystruct <- struc...
2018/03/07
719
2,414
<issue_start>username_0: I need to do the following: Get the users administrators and professionals of the same collection in this case street "users", I am working with the latest version of AngularFire, this works this Observables. How can I make two requests in parallel and the answer be the union of the administr...
2018/03/07
570
1,884
<issue_start>username_0: I am using the next route: ``` { path: '/test/:name', name: 'Test', component: Test, // props: true, secure: false } ``` When I'm trying to access the route <http://myapp/test/helloworld> in the Vue extension for the Chrome I see that route is not matched. But while testing I found...
2018/03/07
816
2,478
<issue_start>username_0: The full question, and I'm starting to learn python online but having issue with this question marked as easy > > Given a sorted array, remove the duplicates in-place such that each > element appear only once and return the new length. Do not allocate > extra space for another array, you mu...
2018/03/07
788
2,331
<issue_start>username_0: I am trying to stub `navigator.app.loadUrl` which I use for redirecting like: `navigator.app.loadUrl('www.redirecturl.com', {openExternal: true});` Doing this gives the error: > > Should wrap property of object > > > I am trying to stub this method using: `var navigatorStub = sinon.stub...
2018/03/07
1,113
3,813
<issue_start>username_0: ``` import asyncio import json import websockets from mongodb import * class WebSocketRequest: def __init__(self, websocket): self.websocket = websocket async def login(self): data = await self.websocket.recv() j = json.loads...
2018/03/07
1,392
2,909
<issue_start>username_0: I am trying to calculate the number of non NA values in a column and then aggregate that number with an adjacent date time column. For example, taking this data set (let's call it df): ``` ## DateTime V1 V2 V3 01 02-10-2018 fire 1 NA 02 02-10-2018 water 4 ...
2018/03/07
1,395
3,841
<issue_start>username_0: I'm working on a Date parser (Tenor parser exactly) where I have to extract dates set as a sum of number of days, weeks, months and years. This would look like 1d1y or 100m2w or 1y1d1m1w. I've built a custom parser but I'm looking for a cleaner solution using Regex. I have to check that it co...
2018/03/07
1,119
4,279
<issue_start>username_0: I want to ban a URL from varnish. What I do first is collect all the healthy IP's from consul. ``` private def nodeInfo:Future[List[NodeInfo]] = { val request = HttpRequest(method = HttpMethods.GET, uri = consulUrl) Future.successful { Http().singleRequest(request).flatMap(response =>...
2018/03/07
638
1,944
<issue_start>username_0: This question has been asked many times on SO, but in every case I found the answer was always to change the OP's code to get the correct result a different way. [Example](https://stackoverflow.com/questions/43054217/typeerror-dataframe-objects-are-mutable-thus-they-cannot-be-hashed-while-s) [E...
2018/03/07
1,222
3,818
<issue_start>username_0: I have a data where I need to filter out any rows that do start with a certain value**s** - emphasis on plural: Below the data exactly as it appears in file data.xlsx ``` Name Remains GESDSRPPZ0161 TRUE RT6000996 TRUE RT6000994 TRUE RT6000467 ...
2018/03/07
1,161
4,362
<issue_start>username_0: hey guys so im trying to convert my mathjax to svg and then convert it to png but im running into a problem, and the problem is that i cant convert my mathjax to svg i tried to use [this solution](https://stackoverflow.com/questions/34924033/convert-latex-mathml-to-svg-or-image-with-mathjax-or-...
2018/03/07
669
2,294
<issue_start>username_0: ``` create table Account(A_number number, B_number number, C_number, A_number_mask number as GENERATED ALWAYS AS IDENTITY, B_number_mask number, C_number_mask ) ``` after the insert the table values are ``` A_number B_number C_number A_mask_number B_mask C_mask 10 100 200 ...
2018/03/07
470
1,547
<issue_start>username_0: I have the following gradle task per [this](https://guides.gradle.org/running-webpack-with-gradle/)... ``` task webpack(type: Exec) { commandLine "./node_modules/.bin/webpack" } ``` But when I try to run the `gradle webpack` I get the following... ``` Caused by: java.io.IOException: Can...
2018/03/07
1,585
5,162
<issue_start>username_0: I am working on a project where I want to use PHP and Phantomjs together, I have completed my phantomJs script and trying to run it using php exec function. but the function is returning an array of error list. below I am writing my code of phantomjs and php dir: /var/www/html/phantom/index.js...
2018/03/07
371
1,406
<issue_start>username_0: I'm desperately trying to opt out of Google Play App Signing. However the opt out button is gone until I accept the Terms of Service: [![Google Play App Signing Settings](https://i.stack.imgur.com/iMVlM.png)](https://i.stack.imgur.com/iMVlM.png) With the account owner I was searching for the ...
2018/03/07
808
3,018
<issue_start>username_0: ``` public class Test { static int i = 1; public static void main(String[] args) { new Thread(() -> { long timer = System.nanoTime(); while (true) { while (System.nanoTime() - timer > 1E9 / 60) { i++; ...
2018/03/07
764
2,008
<issue_start>username_0: I have this simple code: File `app.js`: ``` var cheerio = require('cheerio'); var express = require('express'); var fs = require('fs'); var request = require('request'); var downloader = require('./routers/downloader.js'); const app = express(); downloadAll(); function downloadAll() { ...
2018/03/07
988
4,118
<issue_start>username_0: We're using ASP.NET Identity 2.2 with ASP.NET MVC 5.2, Entity Framework 6.2 and Unity 5.7. We have a class, `ConnectUserManager`, that derives from ASP.NET Identity's `UserManager`. A newly constructed `UserStore` is passed to `UserManager` every time. The lifetime of `ConnectUserManager` (an...
2018/03/07
1,139
3,740
<issue_start>username_0: I work with xml file that looks like this: ``` First text Second text Third text Fourth text ``` I need to get the value of text element but the result should be in 4 rows. So every element starts new row: 1 | First text 2 | Second text 3 | Third text 4 | Fourth text My ...
2018/03/07
276
923
<issue_start>username_0: Is it possible to match the link which contain specific text using regex? I need to add some text after href value. I tried to match "word" in following link: ``` [some link](http://word/sth) ``` I tried this, but without success: ``` (https?:\/\/[^word"]+) ```<issue_comment>username_1: Yo...
2018/03/07
828
2,959
<issue_start>username_0: I have a powershell script that goes through a list of name value pairs in a registry key and do some maniuplations. All of this happens inside the below foreach-object loop ``` Get-ChildItem "HKLM:\SOFTWARE\PathA\pathB" -Recurse | ForEach-Object { $regkey = (Get-ItemProperty $_.PSPath)...
2018/03/07
845
3,212
<issue_start>username_0: Normally to add a file in Xcode, I first move it to the project directory and then click File Add to bring it into the project. The reason I first move it into the project directory is to avoid cases of accidentally moving or deleting a file that might be in downloads, the desktop or whatever. ...
2018/03/07
1,149
3,566
<issue_start>username_0: I make a function(in javascript) to sum the elements of an array and return the result ... but there is a problem and the output of this function is "NaN" but when i checked the type of variable , that was "number" :| please please help me to solve this ... ```js function arrSum(a) { var va...
2018/03/07
1,004
3,137
<issue_start>username_0: So I have an array which is of type that is similar to a map ``` ["array":[1,2,3,4],"array2":[1,2,3,4]] ``` when I am trying to \*ngFor over them the directive is not working, and it seems like it's not seeing the array. If i change from that array to this ``` [1:[1,2,3,4],2:[1,2,3,4]] `...
2018/03/07
1,023
3,226
<issue_start>username_0: JavaScript function below does not use the second parameter to update the object. ``` var user11553 = {username:"JStudent01"}; var instagram = "JMann22"; var twitter = "JohnM22"; var updateSocialMedia= (obj,str,str2) => { obj.str=str2; }; updateSocialMedia(user11553,'instagramID',instagram)...
2018/03/07
673
1,876
<issue_start>username_0: I've got a great code that works - but.. I have 2 submenus. When I click A it opens fine, but when I click B, A doesn't close so iI now got 2 submenus open. I want B to close (if it's clicked) when I click A. ```js $(document).ready(function() { $('.submenu').hide(); $("li:has(ul)").clic...
2018/03/07
533
2,089
<issue_start>username_0: I am developing an app that reads csv files and display its content in a tableViewController. When doing my testings using Xcode, I have a sample file within the projects directory and I am perfectly able to read that file using its location path. The problem that I have is I want to be able to...
2018/03/07
617
2,157
<issue_start>username_0: I have a basic query set up in the show method of a laravel resource ``` public function show($id){ $results = Student::find($id); $drives= Drive:: where('student_id', $id); } ``` The query for $results works perfectly. The query for $drives does not work unless I do ->get() at th...
2018/03/07
856
2,922
<issue_start>username_0: I have 3 tables. clients, sales and potential\_sales. The basic structure is as follows: Clients Table: `+-----------+-------+----------------+ | client_id | name | address | +-----------+-------+----------------+ | 1 | john | 12 blue ave | | 2 | paul | 34 green lane | | 3 | peter | 69 ...
2018/03/07
563
1,835
<issue_start>username_0: I was referring to [this question](https://stackoverflow.com/questions/20309456/call-a-function-from-another-file-in-python) to call a Python function from another Python file. So I have 2 Python scripts in the same folder: `myFunc.py` and `caller.py`. First, I defined a simple function in `m...
2018/03/07
363
1,374
<issue_start>username_0: Is there any way that we can enable auto scroll in Visual Studio Code? I have been looking in the settings but could not find anything(unless i missed something). I am reviewing a log file and as it gets updated, its refreshed on my side. But it is not showing the latest logs but just stays wh...
2018/03/07
718
3,074
<issue_start>username_0: In Spring Boot project, I want to bypass authentication for some "magic" tokens. For example, I get a request header parameter as **Authorization:Bearer abcdef-xyz**. If this is not a valid access token, I'll check my predefined tokens. If one of them is matched, I will create a dummy user for ...
2018/03/07
922
2,870
<issue_start>username_0: I recently started learning C and I feel like this is a not so smart question but, I was wondering if you could take 2 variables, initialize them, evaluate their conditions and increment them in 1 for loop say I have 2 ints: a and b and I would like to initialize both of them and increment the...
2018/03/07
1,087
3,480
<issue_start>username_0: I'm trying to add an hyperlink from a field in a grid in a processing screen pointing to a custom object I made but it seems it doesnt do anything. When I try to debug and set breakpoints it seems it doesnt even execute the code in my function. I tried following this : [How to create a hyperl...
2018/03/07
3,792
13,834
<issue_start>username_0: I configured `'i-tab-pane': Tabpane` but report error,the code is bellow: ``` content import { Tabs, Tabpane } from 'iview' export default{ name:"data-center", data(){ return {msg: 'hello vue'} }, components: { 'i-tabs' : Tabs, 'i-tab-pane': Tabpane } } ``` Error traceback:...
2018/03/07
1,654
5,296
<issue_start>username_0: I am working on a package which includes C code from third-party library (SUNDIALS). The package compiles and works (i.e., is able to solve a test ODE) with the following `Makevars` file performing static linking ``` CXX=clang++ PKG_CPPFLAGS = -I../inst/include PKG_LDFLAGS = /usr/local/lib PK...
2018/03/07
983
3,251
<issue_start>username_0: i want to change navigation bar title icon on my xamarin.forms ios application.You can find requested point at the attached image.[app\_screenshot](https://i.stack.imgur.com/GJxcN.png)<issue_comment>username_1: System-wide dynamic linking, as in your second use case which fails, requires the co...
2018/03/07
322
995
<issue_start>username_0: In case I have this function ``` php function func() { return ['a', 'b', 'c']; } ? ``` If I called it like this ``` $array = func(); echo $array[0].$array[1].$array[2]; ``` Is the function called only **once** and **copied** into `$array`? Or is it called for each `$array[x]`? Is there...
2018/03/07
2,001
5,446
<issue_start>username_0: Well, I have the following problem: Number chains are created by continuously adding the square of the digits in a number to form a new number until it has been seen before. For example, 25 → 29 → 85 → 89 → 145 → 42 → 20 → 4 → 16 → 37 → 58 → 89 32 → 13 → 10 → 1 → 1 Therefore any chain that ...
2018/03/07
2,191
6,426
<issue_start>username_0: I was trying to grasp how socket read timeout is processed in native code and found some strange hardcoded value of 5000 milliseconds there: ``` if (timeout) { if (timeout <= 5000 || !isRcvTimeoutSupported) { int ret = NET_Timeout (fd, timeout); ..... ..... } } ...
2018/03/07
1,488
4,691
<issue_start>username_0: How to populate this JSON in my EditForm. I have EditForm, that I want to display my data, my ws get me this JSON. My data outside `Products` I can display in html, but data inside Products I don't know why not display. What is the problem? This is my Json ``` { "StatusCode": 0, "Stat...
2018/03/07
390
1,367
<issue_start>username_0: how to print all my data from hashmap to my TextArea ``` public static void main(String[] args){ HashMap data = new HashMap(); data.put("nama", "<NAME>"); data.put("kelas", "TI A MALAM"); data.put("hobi", "Programming"); ``` ` i want this all key and value to append in my textare...
2018/03/07
416
1,336
<issue_start>username_0: i have 2 tables 1. table "users" with column user\_id 2. table "extra" with column rating and column user\_id how can i select 2 tables and sorting it by rating? my query ``` SELECT USER_ID, SUM(RATING) FROM USERS, EXTRA WHERE EXTRA.USER_ID = '{$row['USER_ID']}' ``` > > ...
2018/03/07
488
2,001
<issue_start>username_0: So I am working on a project i.e Basic weather application. I am a beginner in android. ``` MenuInflater inflater = getMenuInflater(); inflater.inflate(R.menu.game_menu, menu); ``` I don’t know what is the use of getMenuInfalter method here. We can use inflate method using inflater object as...
2018/03/07
1,411
5,194
<issue_start>username_0: I know **how** volatile works in C++. However, I'm still feeling confused about **why** we need volatile. Only reason I think is we need listen whether the variable changed, as the code shows below: ``` volatile int some_int = 100; while(some_int==100) { doSomething() } ``` The programm...
2018/03/07
2,875
9,509
<issue_start>username_0: I'm having trouble with a function overload. Compiler keep picking the wrong signature and I'd like to understand why. Here a snippet that shows the behavior : [Typescript Playground](https://www.typescriptlang.org/play/#src=%0D%0Aclass%20Query%20%7B%20%7D%0D%0Aclass%20QueryInsert%20extends%20...
2018/03/07
2,917
8,990
<issue_start>username_0: When compiling a shared object in fortran with gfortran, I get the following three similar error messages: I do `make HX.so` in the folder with my source code. This used to work fine before. I suspect this is a linking issue or(?) compiling issue. The problem does not occur when I compile as e...
2018/03/07
446
1,266
<issue_start>username_0: I'm using PHP 5.4 and trying to add dictionary-style complex values to an array thusly: ``` array_push($qbProductsArray, $qbProduct => $authNetAmount); ``` I get this error: > > Parse error: syntax error, unexpected '=>' > > > My desired result is to have a series of `$qbProduct` and ...
2018/03/07
341
1,027
<issue_start>username_0: Is it a good practice to disable user interaction while displaying a loading animation if time-consuming tasks are performed? In poor network conditions, if user interaction is not disabled the user could e.g. press the same button multiple times to make countless network calls which will neve...