date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/06
458
1,345
<issue_start>username_0: When I write `sencha` in CMD I get this errror: > > 'sencha' is not recognized as an internal or external command, > operable program or batch file. > > > It is setup automatically like this as an enviromental variable: [![enter image description here](https://i.stack.imgur.com/QE2I6.pn...
2018/03/06
550
1,572
<issue_start>username_0: I would like my MySql query to return a JSON object that looks as follows: ``` {"name": "Piotr", "likesMysql": true} ``` This seems to be working fine when I do: ``` SELECT json_object( 'name', 'Piotr', 'likesMysql', TRUE ) ``` However when I try to derive the `likesMysql` from an...
2018/03/06
372
1,099
<issue_start>username_0: I seems like the MouseUp event of my inner Grid isn't firing, because of the MouseDown Event from the surrounding Grid. Any way I can prevent this? ``` ```<issue_comment>username_1: Simply go with following, `SELECT json_object( 'name', 'Piotr', 'likesMysql', if(5 MOD 2 = 0, TRUE, FALSE) i...
2018/03/06
1,322
4,143
<issue_start>username_0: Following [This](https://ionicframework.com/docs/developer-resources/ng2-translate/) I've set up a custom location to load translations from. Now when I try to access my page in Ionic Lab, none of the translations are loaded and I can see in the console that I get a 404 HTTP error. Specifi...
2018/03/06
723
2,093
<issue_start>username_0: im new developing in html and css and im having a problem trying to achieve a list with a background image that adapt to the quantity of elements that the list have and change its height respect to the list items. I share an example here, the idea is to set the list below "Menu" and the rest o...
2018/03/06
275
927
<issue_start>username_0: Currently, each bar's domain label appears below the left hand side of each bar, as pictured here: [![enter image description here](https://i.stack.imgur.com/lZcLI.png)](https://i.stack.imgur.com/lZcLI.png) Is there a way to position labels below each bar's center ?<issue_comment>username_1: ...
2018/03/06
1,977
7,042
<issue_start>username_0: I have a menu which opens a sub-navigation on clicking a header which I am trying to get to close by clicking anywhere on the page except an open element. My Code Snippet is as follows: ```js function showSubMenu(show, hide1, hide2, hide3, hide4) { document.getElementById(show).className =...
2018/03/06
1,526
6,231
<issue_start>username_0: I want to start an Angular project using Nrwl Nx (multiple apps in one project; <https://nrwl.io/nx>), but I have two questions: 1. How can I specify different version numbers to the different apps? Usually I give a version number in `package.json`, but with Nx there are only one `package.json...
2018/03/06
2,076
7,675
<issue_start>username_0: I'm working on an Angular Firebase Project, where I need to filter my database as well get the key values. Currently I'm using **valueChanges()** method in my service code (*inside getUnreadBooks and getFavoriteBooks methods, as shown below*) to get the data and filter it. But it gives me key v...
2018/03/06
1,833
6,576
<issue_start>username_0: I have a MXList Box having arrayCollection and I have another textarea box. My requirement is: When users enter the desired text in the text area, I need to fetch and show the matching records from the List like: ``` ___________ |____Ka___| Text area __________ |Kanrna |List Box : Array...
2018/03/06
706
2,239
<issue_start>username_0: Hi Maybe you can help enlighten me :) Im trying to make a simple Quote Generator app in pure Javascript (no jQuery), and Im trying to load the following api > > [https://api.forismatic.com/api/1.0/?method=getQuote&format=json⟨=en](https://api.forismatic.com/api/1.0/?method=getQuote&format=j...
2018/03/06
1,540
3,172
<issue_start>username_0: I have vector (column data) which contains youtube playback duration in a character string format in R. ``` x <- c(PT1H8S, PT9M55S, PT13M57S, PT1M5S, PT30M12S, PT1H21M5S, PT6M48S, PT31S, PT2M) ``` How do I get rid of `PT` then get the overall duration in seconds format? Resultant vector sho...
2018/03/06
601
2,147
<issue_start>username_0: I cannot use the feature with `OutputCapture` within [JUnit testing](https://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-testing.html#boot-features-output-capture-test-utility). I want to use this feature to see some log messages. If I tried to include the class package...
2018/03/06
531
2,075
<issue_start>username_0: I'm trying to connect to a database from VS2017 ``` var str = str1.ConnectionString = "Data Source=141.*****.199;" + "Initial Catalog=****;" + "User id=***;" + "Password=****;"; using (SqlConnection conn = new Sql...
2018/03/06
1,733
6,353
<issue_start>username_0: > > Imagine that one day, suddenly, random ads started appearing on your website... > > > [Recently Disqus started forcing unwanted ads inside of the Disqus comments](https://wptavern.com/disqus-hits-sites-with-unwanted-advertising-plans-to-charge-large-publishers-a-monthly-fee-to-remove-a...
2018/03/06
1,599
5,789
<issue_start>username_0: I have some objects in Mongodb created according to this mongoose Schema ``` const MetalSchema = mongoose.Schema({ dia_6:{type:Number}, dia_8:{type:Number}, dia_10:{type:Number}, dia_12:{type:Number}, dia_15:{type:Number} }); ``` All Objects have different quantity of key:value pairs. How to...
2018/03/06
861
3,252
<issue_start>username_0: We've got an InnoDB table with 70 million rows, and we have been trying to run an alter table statement to modify and add a couple of columns. The query seems to have altered the table, and is now in the state of 'committing alter table to storage engine'. ``` START TRANSACTION; ALTER TABLE t...
2018/03/06
854
3,048
<issue_start>username_0: So I have an object being returned from Firebase that looks like this: `{key: {name: "test", email: "test", id: "test"}}` How can I get the id out of this object? If I do `returnItem` I get that object, so I tried to do `returnItem[0]` but it's not an array, and I've tried `(Object.keys(temp...
2018/03/06
878
3,241
<issue_start>username_0: I have next method: ``` public void callPython() throws IOException { Runtime rt = Runtime.getRuntime(); Process pr = rt.exec("python -c \"from test import read_and_show; read_and_show()\" src/main/python"); BufferedReader bfr = new BufferedReader(new InputStreamReade...
2018/03/06
178
724
<issue_start>username_0: I am using WebServiceTemplate to consume SOAP response. For logging purpose i need to get the SOAP response in string. For example , `"xyz"`<issue_comment>username_1: If you using spring, you can add log using log4j in interceptor. Log4j can write to file or even db. I hope its help you. Upvot...
2018/03/06
412
1,371
<issue_start>username_0: I'm looking to fetch an object's class. I currently have 9 elements that have the `class kit0 - kit8.` They also each have the class `kitContainer`. I want to fetch that `kit0 - kit8` classes just like `$(object).attr('class')` does. How should I do this? Is there a better way than using `.hasC...
2018/03/06
478
1,532
<issue_start>username_0: I am trying to get the server certificate of badssl.com subdomains (ex. <https://expired.badssl.com>). ``` import ssl ssl.get_server_certificate(('expired.badssl.com', 443)) ``` But when examining the above generated certificate I see that the certificate has > > Identity: badssl-fallback...
2018/03/06
800
2,893
<issue_start>username_0: ``` #include using namespace std; class dummy { private: int a,b,\*p; public: void setdata(int x,int y,int z) { a=x; b=y; p=&z } void showdata() { cout<<"a "< ``` raised error > > :/root/copy deep shallow/main.cpp|15|error: no matching function for call to ‘dummy::dummy()’| > ...
2018/03/06
460
1,635
<issue_start>username_0: Basically I have a list where each element is a series and the list is arbitrarily long. I would like to know how to iterate through the list in such a way that I can create a variable `matches = listerino[0] | listerino[1] | ... | listerino[len(listerino)]`. So far the closest I have come to ...
2018/03/06
322
1,225
<issue_start>username_0: How should a Golang app handle missing external dependencies ? When a app starts and it doesn't find the database it is supposed to persist the data on, knowing the app is useless in that state, should I panic the app ? I can otherwise log infinitely something, print to stderr, or use another...
2018/03/06
1,595
5,112
<issue_start>username_0: I am trying to build a pipeline which will search for documents based on certain criteria and will group certain fields to give desired output. Document structure of `deals` is ``` { "_id":"123", "status":"New", "deal_amount":"5200", "deal_date":"2018-03-05", "data_source":"API"...
2018/03/06
591
1,962
<issue_start>username_0: I'm C/C++ to C# developer. I need to do something like below, ``` #define LEN 20 int data[LEN]; ``` Since C# doesn't support `#define`, many forums suggests to declare a `const` variable. A `const` variable might help me for below, but not for above. ``` for (int a = 0; a < LEN; a++) { ...
2018/03/06
2,032
6,355
<issue_start>username_0: **Disclaimer: This is my first post. Feel free to give me feedback and how I should or shouldn't have formatted this question. Thanks!** I'm looking to pull out data from text blocks by capturing anything that matches a pattern of a date format followed by a colon. I have successfully used reg...
2018/03/06
1,119
3,516
<issue_start>username_0: I have a nested list of 4 lists inside. ``` ListOflist has: list[0] contains Id list[1] contains power values list[2] contains count values. ``` I'm trying this function to sort the list in an ascending order: ``` bool ascending = true; // ascending int mult ...
2018/03/06
1,864
6,948
<issue_start>username_0: I have a Mac OS X app and I want to detect or catch the event when the user Force Close my app. At first I thought `applicationWillTerminate` will do the work but it didn't: ``` func applicationWillTerminate(_ aNotification: Notification) { print("applicationWillTerminate called") } ```...
2018/03/06
1,988
5,613
<issue_start>username_0: I have the follwoing json structure (see here: <https://github.com/sebischair/NLU-Evaluation-Corpora/blob/master/AskUbuntuCorpus.json>): ``` { "author": "Kristofer", "url": "http://askubuntu.com/questions/226332/how-to-install-a-canon-mf8040cn-printer-on-ubuntu-12-04", ...
2018/03/06
1,393
3,911
<issue_start>username_0: I am trying to import json data from a link containing valid json data to MongoDB. When I run the script I get the following error: > > TypeError: document must be an instance of dict, bson.son.SON, bson.raw\_bson.RawBSONDocument, or a type that inherits from collections.MutableMapping > > ...
2018/03/06
1,778
6,863
<issue_start>username_0: I have an android application that has the following product flavors: ``` productFlavors { local { } development { } production { } } ``` then have the following at the bottom of my `build.grade`: ``` File crashlyticsProperties = new File("${project.projectDir.a...
2018/03/06
1,673
4,917
<issue_start>username_0: I am trying to distribute Keras training on a cluster and use Elephas for that. But, when running the basic example from the doc of Elephas (<https://github.com/maxpumperla/elephas>): ``` from elephas.utils.rdd_utils import to_simple_rdd rdd = to_simple_rdd(sc, x_train, y_train) from elephas.s...
2018/03/06
784
2,491
<issue_start>username_0: I am going through the tutorial and doing everything as it says until I get to this section of the tutorial where it throws me this error. I have the hero class defined so I am confused as to why it is throwing me this error. I have restarted the program all together and even re-created the moc...
2018/03/06
947
3,552
<issue_start>username_0: [Text fields](https://vuetifyjs.com/en/components/text-fields) in Vuetify have `rules` props, which take an array of functions returning `true` or an error string. How to make them async, so that the validation could be made server-side using XHR? Something like: ``` ```<issue_comment>userna...
2018/03/06
1,660
5,922
<issue_start>username_0: Not quite sure how to ask the question clearly but, given a recursive structure as below. How would I use `walk` to match 2 or more key strings to values. I will not know where in the structure the result will be. It could be the top level or 10 levels deep. ``` "children": { "ccc": [{ ...
2018/03/06
1,173
4,996
<issue_start>username_0: ``` class ViewController:UIViewController,UITableViewDelegate,UITableViewDataSource { //I got stuck in fetching data from JSON API, its little bit complex and //nested, anyone plz help me, I want to Get "resource_uri" from "abilities" //Array @IBOutlet weak var tblData: UITableView! ...
2018/03/06
1,002
3,480
<issue_start>username_0: I need to remove elements stored in `[Char]` from list of lists `[[Char]]`. Lets have these elements - `"34"` and list of list like this - `["2345","16"]`. What I need to do is delete each one element from this list of lists. The elements will not occur multiple times in either of these. So I n...
2018/03/06
754
2,491
<issue_start>username_0: When I try to change the code from the first block to second block, I get an error message saying it returned false. This is always how I use prepared statements for all the other methods (delete, insert, like). I believe the while loop is causing the issue. This code below code works (but pr...
2018/03/06
651
1,959
<issue_start>username_0: I have a text file. I need to select the address mail from each line and send each line to the correspond address. I try to use `foreach` and `awk` to select the address ``` set valuea = `awk '{print $3}' FichierNote` ``` Could you please give me a way how can i do this? This is the data in...
2018/03/06
301
1,312
<issue_start>username_0: I seen in laravel documentation that whenever i append new column in existing table at that time i need to create `php artisan make:migration append_tablename` it is fine this level. but next time i need to update any column structure of same table then i need to create new migration or i can...
2018/03/06
490
1,356
<issue_start>username_0: I need to find a way to make R "typing" a certain string of text when calling it in the console. Let's say I have a list with many rows. Each row contains text representing calculation rules (in a format R could handle when reading it). ``` A <- 25 B <- 15 C <- 50 ``` A, B and C are define...
2018/03/06
289
1,337
<issue_start>username_0: I am using this code to logout but still after logout I am able to hit url. Logout seems not working, I am calling this class when clicking on Logout image. Please help. Thanks in advance. ``` public class LogoutServlet extends HttpServlet { @Override public void service(HttpServletRe...
2018/03/06
1,870
4,868
<issue_start>username_0: I'm trying to connect to Teradata through RStudio, but for some reason JDBC function has problems recognizing the path where Java drivers sit. See the code below: ``` library(RODBC) library(RJDBC) library(rJava) # both Java drivers definitely exist file.exists('/Users/KULMAK/Documents/TeraJD...
2018/03/06
1,338
4,551
<issue_start>username_0: I have a database that holds records and those records have a datetime. As a request, I have built a timeline to show how many records were recorded for each hour of the day for the entire year. So, for that I simply grouped by the hour and counted the number of objects in each of those hours:...
2018/03/06
2,721
7,618
<issue_start>username_0: I have 91 files - .log format: ``` rajectory Log File Rock type: 2 (0: Sphere, 1: Cuboid, 2: Rock) Nr of Trajectories: 91 Trajectory-Mode: ON Average Slope (Degrees): 28.05 / 51.99 / 64.83 Filename: test_tschamut_Pos1.xml Z-offset: 1.32000 Rock Position X: 696621.38 Rock Position Y: 16773...
2018/03/06
703
2,651
<issue_start>username_0: I'm using Windows as a simple user (I don't have any admin rights) and want to install Yarn and use commands like Yarn Install, Yarn Add and Yarn Start. I found this on Stackoverflow about how to install Node.JS as a local user but I cannot make it work outside that folder: [install NodeJS LT...
2018/03/06
701
2,203
<issue_start>username_0: I am facing an issue while I am trying to pass the join elements as variables in pyspark dataframe join function. I am getting primary key fields from a file while I am trying pass it as variable in a join statement, it throws an error as "cannot resolve the column name" since it is passed as a...
2018/03/06
1,580
6,163
<issue_start>username_0: I´m newbie to flutter and reveice one exception about route and paginator in Flutter. ``` EXCEPTION CAUGHT BY GESTURE The following assertion was thrown while handling a gesture: Could not find a generator for route "/listadecompras" in the _MaterialAppState. ``` Follow a excerpt from code: ...
2018/03/06
1,597
5,941
<issue_start>username_0: I'm migrating processes from oracle to postgres, and verifying the decode does not exist, and I must do it with case when ... then ... else ... end. The problem is that when making the query, I get an error in the syntax, but researching, the syntax is the same that I show you below. ``` sele...
2018/03/06
741
2,166
<issue_start>username_0: First, open chrome devtools, trigger ![](https://user-images.githubusercontent.com/18418010/37035327-2b6f823c-2187-11e8-9d8a-dfabc3410912.png) And then hover the first div, you will find that if you remove the `transition` property, only first div is repainted, but if you add the `transition` ...
2018/03/06
1,003
3,375
<issue_start>username_0: I have 5 checkboxes using jQuery I want to show/hide divs based on the checkbox selection. But combine the selected checkboxes to build up a single query. For example if the user checked `weekly` and `small` I want to only show the divs that have both classes. Not show the divs that have one or...
2018/03/06
4,444
17,476
<issue_start>username_0: I have a Spring Controller for Rest service: ``` @Controller @RequestMapping(value = "/sample") public class SampleController { @RequestMapping(value = "/getText", method = RequestMethod.GET, produces = "text/plain") @ResponseBody public String testMethod(@RequestParam("locale") fi...
2018/03/06
1,271
5,186
<issue_start>username_0: I have a problem with Observable type, any idea? ``` import { Injectable } from '@angular/core'; import {HttpClient} from '@angular/common/http' import {Observable} from 'rxjs/Observable' import {task} from './../models/taks.class' @Injectable() export class TaskServic...
2018/03/06
486
1,652
<issue_start>username_0: I wrote a program on a **Raspberry Pi** using **Python 3**. I want to create a **bash file**, like this the future user will just have to launch `MyScirpt.sh` to execute my python script. So I wrote on `MyScript.sh`: ``` #!/usr/bin/python3 python3 /home/pi/Documents/MyFolder/MyScript.py ``` ...
2018/03/06
1,391
5,271
<issue_start>username_0: Actually my real problem has not much to do with mazes, but it can be nicely described as such: Imagine standing in a maze whose walls are aligned along a cartesian grid. The walls are not visible and there are three types of them: 1. (N) no wall, you can pass through. 2. (S) solid wall, you ...
2018/03/06
338
1,169
<issue_start>username_0: I am trying to run a python script that executes few API calls and Kafka logic but getting following error: `dyld: Library not loaded: @executable_path/../.Python` Tried `brew update && brew upgrade` and also with both Python2 and Python3 but still getting same error. What could be the c...
2018/03/06
1,542
5,176
<issue_start>username_0: I'm confused about the usage of `setReplaceMethod()`. Looking at `?setReplaceMethod` does not provide an explanation and Googling is less than helpful. **QUESTION** : Please explain `setReplaceMethod()`, it's usage and how it works (preferably with an example).<issue_comment>username_1: For a...
2018/03/06
737
1,959
<issue_start>username_0: Assuming I have an array or arrays: ``` arr = [["Foo1", "Bar1", "1", "W"], ["Foo2", "Bar2", "2", "X"], ["Foo3", "Bar3", "3", "Y"], ["Foo4", "Bar4", "4", "Z"], ["Foo5", "Bar5", "5", "A"]] ``` Is there a way I can move an individual array in the 2d array based on so...
2018/03/06
524
1,566
<issue_start>username_0: so i am busy developing a website for a client. However in order for her to see the website she need to come to the office. Is there any way that i can upload the files and assign like a private URL to let the customer preview and play around with the website without it being live? Will really ...
2018/03/06
907
3,050
<issue_start>username_0: I'm trying to create an or query from an array of queries. I need to use an array because the amount of queries isn't fixed, it depends on a user input. > > This is some sample code from parse.com to implement an or query. > > > > ``` > var lotsOfWins = new Parse.Query("Player"); > lotsOfW...
2018/03/06
86
318
<issue_start>username_0: How do I configure Angular CLI to use Yarn as the default package manager?<issue_comment>username_1: ``` ng set --global packageManager=yarn ``` Upvotes: 1 <issue_comment>username_2: As of Angular CLI 6.x the correct command is ``` ng config --global cli.packageManager yarn ``` Upvotes: 5
2018/03/06
450
1,584
<issue_start>username_0: I want to create a button that pauses the youtube video that is playing automatically. This is the iframe: ``` ``` This is the button: ``` mute ``` And this the JS: ``` function mute(){ var myVideo = document.getElementById('music'); myVideo.pauseVideo(); } ``` What am I missin...
2018/03/06
916
3,350
<issue_start>username_0: Hello I want to display a list of users data but I have put a condition on that if user data is greater than 0 then display otherwise not with help of **length** property in `*ngIf`, so my issue when I use this it gets error like `Cannot read property 'length' of undefined`,So please anyone hel...
2018/03/06
314
970
<issue_start>username_0: Getting error 403 whenever I'm trying to save any changes in the Advanced setting of the Azure Log Analytics. I'm the owner of the subscription and still getting this error.Please check to attached file for more clarity. [![enter image description here](https://i.stack.imgur.com/Xj22p.png)](h...
2018/03/06
1,039
3,971
<issue_start>username_0: I am trying to pass an object as a parameter from an activity to a fragment. I already searched over hill and dale to find out how to do it, I tried many methods but none of them worked. Here is what I tried : ``` // In my Activity, where I call my fragment var bundle = Bundle() bundle.putPa...
2018/03/06
774
2,207
<issue_start>username_0: I have a data like this ``` id name sub marks 1 a m 52 1 a s 69 1 a p 63 2 b m 36 2 b s 52 2 b p 56 3 c m 85 3 c s 62 3 c p 56 ``` And I want output table which contain columns such as id, name and ...
2018/03/06
614
2,091
<issue_start>username_0: In the context of creating a part of an 3D-engine I'm stuck in a basic C++ problem. ``` #include //Ignore this function std::string get\_replacement(char c) {return "TEEEEEEEST";} int main() { //Declaring some variables std::string const& foo = "X"; std::string str = "FFFFGGGGXFFWEFWXFFF...
2018/03/06
667
2,281
<issue_start>username_0: I am looking for some good examples about structuring namespaces in Kubernetes clusters, and an appropriate way to label my pods for long term maintainability. Can you recommend some resources, or examples from real world applications that follow some solid practices?<issue_comment>username_1:...
2018/03/06
302
1,113
<issue_start>username_0: parent component emit data via service to the child component, but I cannot bind data to the child component (in select): ``` Projects: {{projectElement.name}} ``` When there is whole HTML structure of the child component in HTML file of the parent component, it works fine, but I want to...
2018/03/06
434
1,488
<issue_start>username_0: I used the following code to model count data : ``` ModActi<-glmmTMB(Median ~ H_veg + D_veg + Landscape + JulianDay + H_veg:D_veg + (1 | Site), data=MyDataActi, family=nbinom2) ``` I then used the ggpredict function of the ggeffects package to plot the predicted values of my model ...
2018/03/06
667
2,319
<issue_start>username_0: I want to get the number of days between **today** and a model field **end\_date**. I defined today in my view as shown below. I will then use the number of days to check if its less than or equal to 50 which will add a class to the `|` element **MY TEMPLATE** ``` {% for instance in queryset...
2018/03/06
397
1,505
<issue_start>username_0: I have two Jira instances (both are Jira Cloud) and the same project in both. Historically one Jira is used by dev team and second Jira is used by ops. However, some dev tasks have to be considered by ops team. So the question: is it possible to sync issues from one Jira to other Jira?<issue...
2018/03/06
498
1,648
<issue_start>username_0: The snippet of code is as follows: ```js $('.fee_checkbox').on("change",function() { if ($(this).prop('checked')==false) { $('.actual_pay').val('0'); } else { $('.actual_pay').val(); } }); ``` ```html ``` Here the default behaviour of checkbox is checked a...
2018/03/06
797
3,176
<issue_start>username_0: I'm using NodeJS for the backend, and ReactJS for the frontend. I've a problem with request Axios network. All my Get request work. But Post request don't work. I have just this error "network error" I created a simple webservice to show you my problem : ``` //Serveur code helloWs : (reque...
2018/03/06
331
1,175
<issue_start>username_0: I'm trying to insert a particular entity into the db by doing: ``` var myItem = new Item() { // properties here...}; myContext.Entry(myItem).State = EntityState.Added; myContext.SaveChanges(); ``` However, EF (v6.2) is not even sending the insert SQL statement to the Db. For all other enti...
2018/03/06
463
1,918
<issue_start>username_0: When dialog window displayed it does not focused if other window is active (i.e. you need to focus it by mouse pointer to be able to deal with it). How can I make a focus to displayed dialog? ``` import javax.swing.JFrame; import javax.swing.JOptionPane; public class GuiTest { public sta...
2018/03/06
401
1,488
<issue_start>username_0: My title doesn't mean anything i guess, but it's complicated to name my problem. So, i did a section in my html "faq" and when someone click on a question, the answer appaer with a slideDown. If we click on another question, that close the previous one (slideUp) and open this one you just clic...
2018/03/06
1,334
5,976
<issue_start>username_0: I understand what scope and lifetime are and how they're different: **Scope:** the visibility of a variable i.e. which blocks of code can reference that variable **Lifetime:** how a long a variable's value will be retained in memory My question is: [in the picture below](https://i.stack.imgu...
2018/03/06
515
2,139
<issue_start>username_0: I have a RecyclerView inside a fragment. I need to be notified of scroll changes, so I added a callback to the `ScrollChange` event (which corresponds to the `SetOnScrollChangeListener` in classical Android API): ``` private void RecyclerViewScrollChange(object sender, View.ScrollChangeEventAr...
2018/03/06
586
2,339
<issue_start>username_0: Apologies if this has been covered however if it has been I had trouble finding it. I am putting together a blog site which I plan to convert into a wordpress theme. For each blog post I have a full screen image link on the landing page which takes you the particular blog post. The code for ea...
2018/03/06
952
3,498
<issue_start>username_0: MS Dynamics AX 4.0 I have a class with a dialog that extends RunBase, a dialogField of Range type and a custom lookup for it. It works as planned but one thing upsets me. Normal lookup opens on Alt + Down key combination, but it doesn't work in my dialog. I assume this is because "Range" EDT i...
2018/03/06
508
1,711
<issue_start>username_0: I am trying to create a list with each IP address, returned from the following command. Im not entirely sure how to achieve this. Seems subprocess equals None. ``` import subprocess ips = list() def bash_command(cmd): subprocess.Popen(['/bin/bash', '-c', cmd]) ips = ...
2018/03/06
1,904
5,340
<issue_start>username_0: I am trying to train my CNN model using Keras with Tensorflow backend. The problem is, when I run the fit\_generator() function, the Python kernel in Spyder crashes. To add a little bit of context, I just installed CUDA and tensorflow-gpu as described in this [link](http://blog.nitishmutha.com...
2018/03/06
751
2,279
<issue_start>username_0: Let's say I'm trying to push multiple calls like: ``` var fields = [1,2]; fields.push(test("#test1", 1)); fields.push(test("#test2", 2)); fields.push(test("#test3", 3)); fields.push(newTest("#test5", 3, 'something')); function test(a, b){ // something here } function newTest(a, b, c){ ...
2018/03/06
627
2,079
<issue_start>username_0: I have the following code, it works with python 3.5 , but when I tried to run it with python 2.7, it showed an error. this is the code: ``` def load_data_and_labels(): # Load data from files with codecs.open('./data/train.txt',encoding="utf8") as inf: reader = csv.reader(inf, ...
2018/03/06
371
1,340
<issue_start>username_0: i need to capture the first float after a known string within a string of floats and characters. EG: ``` EU 1.5 UK 2.5 US 3.5 ``` So I would like to capture *1.5* or *2.5*, with just the EU or 2.5 for detection. ``` (?<=EU) ``` Examples I want to be able to capture the 1.5 after EU only...
2018/03/06
10,651
27,643
<issue_start>username_0: Good afternoon. My question is connected with VBA macros in Excel. My macro works without complaints every time it's outside the file from which data is moved to an another file. But since I inserted it into the Excel file from which it gets some data as well as I made a command button (in the ...
2018/03/06
645
1,886
<issue_start>username_0: I have for example this string **name-surname-15A-15B** and for example if I want to get the last segment(which is 15B) I can use the following query: ``` Select right(Code, charindex('-', reverse(Code)) - 1) as segment From MyTable ``` But how can I get string after specific dash for exampl...
2018/03/06
503
1,470
<issue_start>username_0: Here is an example pandas dataframe: ``` top1_item top2_item top3_item 2 3 4 1 3 6 6 3 2 ``` I like to append the dataframe with a column containining a list of the values of the other columns: ``` top1_item top2_item top3_item together 2 ...
2018/03/06
782
2,254
<issue_start>username_0: This is my java code. ``` public static int[] merge_sort(int[] arr, int p, int r) { if (p < r) { int q = p + r / 2; merge_sort(arr, p, q); merge_sort(arr, q + 1, r); merge(arr, p, q, r); } return arr; } public static void merge(int[] arr, int p, i...
2018/03/06
1,142
4,567
<issue_start>username_0: Using Swift-4.0.3, iOS-11.2, Xcode-9.2, iPhone-6S (or Simulator-10.0) Since about a week I try to figure out what the problem is with the following issue: The UI freezes whenever you re-enter a ViewController that involves a URLSession-Background-DownloadTask. By re-entering, I mean: Going fro...
2018/03/06
1,036
3,949
<issue_start>username_0: I m new to codeigniter framework. I know this question has been asked many times. I have done R & D but i m unable to get it working. I m stuck at the moment. I m using the codeigniter framework 2.2.2. I have used the session for login as following: Login Controller ``` public function loginM...
2018/03/06
659
2,782
<issue_start>username_0: I have a problem. I have a table named "RollNoSlip" which has a column named "AttendanceStatus". I have list variable named "getAttendance" of type "List". I want to assign each values to each record of "RollNoSLip". Attendance column can contain "P" or "A". Problem is its showing only P in all...
2018/03/06
1,335
2,383
<issue_start>username_0: I have a dataframe with multiple dates/time/prices but like to extract price at 1600 everyday to create a new column (Priceat1600) with it. (Thus it needs to Vlookup both the Date and the Time at 1600) Original Dataframe ``` Date Time Price 20090130 955 25641.00 20090130 956 25...
2018/03/06
907
2,889
<issue_start>username_0: I have a main table that needs to hold references to other tables. Table users has an ID, and another table's REF\_ID. ``` Table users =========== ID TABLE_ID REF_ID NAME ============================ 1 1 1 John 2 2 20 Stacey . . . . ...
2018/03/06
766
2,517
<issue_start>username_0: ``` class XYZ: def __init__(self, name, score): self.name = name self.score = score l = [] # l is the list of objects l.append(XYZ('Anmol', 10)) l.append(XYZ('Andrew', 200)) l.append(XYZ('Johnson', 3000)) ``` In the above code l is the list of object containing thre...
2018/03/06
770
3,001
<issue_start>username_0: I created a custom Google Sheets add-on using the Script Editor. Now I want to make the add-on accessible while looking at other workbooks and I want to share it with my colleagues so that they can use it as well - I am not interested and have no need of sharing it to the app-store. What I am ...
2018/03/06
345
1,294
<issue_start>username_0: I get JSon from url: PHP output: ``` {"error":"true","code":"inValid"} ``` Android code : ``` JSONObject jsonRootObject = new JSONObject(result); // result is output php JSONArray tasks = jsonRootObject.optJSONArray("error"); ``` But not return value of error. I want get TRUE value from ...