date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/14
1,786
6,318
<issue_start>username_0: I am using ACF free version included in my plugin but for some reason the admin hide menu is not working. Please Checkout the bellow code and correct me if I there is missing something. Thanks. ```html php // 1. customize ACF path add_filter('acf/settings/path', 'testio_acf_settings_path'...
2018/03/14
2,475
8,943
<issue_start>username_0: I have an ionic 3 app; I am working on upload profile picture functionality. In this, I want to select the image from either gallery or capture image using the camera. After that, I will have two images/image\_paths. I want to upload these two images along with user\_id, access\_token Select I...
2018/03/14
3,028
9,928
<issue_start>username_0: ``` public class MandarinPage extends AppCompatActivity { Button b01,b02,b03; VideoView Vv01; MediaController mediaC; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_mandarin_page); b01=(Button)findV...
2018/03/14
605
2,269
<issue_start>username_0: I am trying to upload multiple images at once here is what i've got so far: ``` if(isset($_POST['submit'])) { $file_name=$_FILES["image"]["name"]; foreach($file_name as $files) { $target_path = "Sub_uploads/".$files; if(move_up...
2018/03/14
1,630
4,424
<issue_start>username_0: I'm trying to sort html elements in JS so it looks like this, [![enter image description here](https://i.stack.imgur.com/oa2L8.png)](https://i.stack.imgur.com/oa2L8.png) I have it so when you hover over them, they expand with extra info but only the last one in every row gets that feature and...
2018/03/14
1,712
5,053
<issue_start>username_0: I have a HTML form that is for payment status in my panel. In this form if i select payment status Advance Paid Then displays The another input box that i can enter for the advanced paid price. There is another input box is available that is remaining price if i entered the value of advance pai...
2018/03/14
889
3,374
<issue_start>username_0: ) I have been using Eureka for a while,It's amazing!!! Recently I work on with MultivaluedSection,I write a simple project for test : It simple add/delete person from tableView. here are code , first for model : Person ``` struct Person:Equatable,CustomStringConvertible{ var descriptio...
2018/03/14
587
2,308
<issue_start>username_0: I am trying automate Mobile application using AppiumLibrary in Robot Framework. Can anybody help me how to start with installing the Appium library in robot framework?<issue_comment>username_1: May be this can give you a head start, below are some key concepts to start with. **What is Appium ?...
2018/03/14
660
1,987
<issue_start>username_0: I have a question that can be interesting for all of us who worked with Bootstrap 4 sass. According to BS docs when the parent block has class .bg-dark (for example) we should add .text-light class to HTML to get all things pretty done. I'm a newbie in sass coding, so I want to ask - if it pos...
2018/03/14
966
3,351
<issue_start>username_0: I have implemented reusable sorting function,sorting by number and text are working fine,But it fails for sort by date. ``` orderBy(array: Array, fieldName: string, direction: string) { return array.sort((a, b) => { let objectA: number|string = ''; let objectB: number|string = ''; [object...
2018/03/14
790
3,135
<issue_start>username_0: Kryo helps improve the performance of Spark applications by the efficient serialization approach. I'm wondering, if Kryo will help in the case of SparkSQL, and how should I use it. In SparkSQL applications, we'll do a lot of column based operations like `df.select($"c1", $"c2")`, and the ...
2018/03/14
200
628
<issue_start>username_0: I have my website hosted. Not local. I am sending the email below. ``` @component('mail::message') {{ csrf\_field() }} {{ method\_field('PATCH') }} Confirm Thanks, {{ config('app.name') }} @endcomponent ``` When I get the email. I checked the form url. The url to the action is not...
2018/03/14
728
2,791
<issue_start>username_0: Here is my parameter file: ``` "VNetSettings": { "value": { "name": "VNet1", "addressPrefixes": "10.0.0.0/16", "subnets": [ { "name": "sub1", "addressPrefix": "10.0.1.0/24" }, { "nam...
2018/03/14
215
772
<issue_start>username_0: I am trying to refresh the page on click function. ``` reloadPage(){ this._$window.location.reload(); this._$window.onbeforeunload = null; } ``` Above code is working fine in Chrome and IE. But in Firefox getting prompt message saying **this page is asking you to confirm that you want to l...
2018/03/14
730
2,126
<issue_start>username_0: I've been doing one program: > > When a user enters number N, write down all A,B,C number if A\*B\*C=N in form "A\*B\*C". Same A,B,C numbers in different order should not be repeated. > > > Here's my code, but it's still duplicating it because I haven't done anything about it yet. I had a...
2018/03/14
717
2,142
<issue_start>username_0: For security specific row with condition need to disable click event. Table is being loaded by ajax callback. But need to disable specific row. Here is the sample code that doesn't working. ``` | Item | Qty | Price | Amount | Action | | --- | --- | --- | --- | --- | | Mush...
2018/03/14
687
2,527
<issue_start>username_0: * **I have a simple view that is suppose to check if there is post data, if so update the user data using `UserChangeForm`. Else get the form data of user and display.** > > Issue: AttributeError at /profile/edit 'AnonymousUser' object has no > attribute '\_meta' > > > I think it might b...
2018/03/14
969
3,040
<issue_start>username_0: I'm very fresher in CodeIgniter and practicing. I'm now developing a simple Codeigniter application just for practicing. I've Banks and its branches in the database. I just want to show branches with its bank name. Branches are showing but in the controller while getting banks, this error is sh...
2018/03/14
588
1,863
<issue_start>username_0: I have two tables 1: tbl\_member\_registration with primary key (mem\_id) 2: tbl\_phone with foreign key (parent\_code) I want to left join these two tables but tbl\_phone parent\_code column has different values starting with prefix **mem\_** , how to join these two tables? [![enter im...
2018/03/14
1,195
3,761
<issue_start>username_0: ``` ALTER PROCEDURE combined_report_generation AS BEGIN create table temp(id int identity(1,1),form_id varchar(50),process_id varchar(50),active_status int); insert into temp(form_id,process_id,active_status) select form_id,process_id,active_status from audit_form_active; DECLARE @MAXID INT,...
2018/03/14
662
2,210
<issue_start>username_0: ``` expand\_more expand\_more [Intro](#intro) [Enrolment Disclaimer](#courseHeadingDescription) [Admission Requirements](#admissionRequirements) [Program Requirements](#programRequirements) [Professional Outcomes](#professionalOutcomes) [Recognition of Achievement](#recognitionMasters) [Progr...
2018/03/14
794
2,057
<issue_start>username_0: The inputs are as follows. ```python Out[178]: group value 0 A a 1 A b 2 A c 3 A d 4 B c 5 C d 6 C e 7 C a ``` For this input, I want to create a combination for each group and create one DataFrame. How can I do it? The outp...
2018/03/14
684
1,887
<issue_start>username_0: I have an app in which the junit tests should be run via a maven command like this : ``` mvn test -Dtest=MyCodeTestClassJavaName -Dbase_url=https://myapp-test-environment.com ``` I can run this via commandline, but I cannot do it in eclipse. Could someone please show me how to do it in eclip...
2018/03/14
331
1,382
<issue_start>username_0: I have 11 jobs running on the Jenkins master node, all of which have a very similar pipeline setup. For now I have integrated each job with its very own Jenkinsfile that specifies the stages within the job and all of them build just fine. But, wouldn't it be better to have a single repo that ha...
2018/03/14
1,363
5,806
<issue_start>username_0: I am working on implementing accessibility (for visually impaired individuals) for one of our web application. It need to be ARIA compliant. Right now we are testing our changes with screen reader manually. For example we have Tree control in our application. I open NVDA screen reader and then...
2018/03/14
1,153
4,815
<issue_start>username_0: I want to trim a string and get the number between special characters. For example there is a `string BC/PO/88/2018` from it i want to get 88.<issue_comment>username_1: I don't know of any existing tools for testing screen readers, however, there are accessibility APIs that test websites and we...
2018/03/14
722
2,278
<issue_start>username_0: I have 3 table 1. `Partcar` 2. `BarbellWheels` 3. `Assembly` now, im confused how to manage this table to got connection, cause `Partcar` and `Assembly` is many-to-many relationship. But, `BarbellWheels` will merging with `Partcar` in `Assembly`. How to make this 3 table have many-to-many rel...
2018/03/14
302
991
<issue_start>username_0: I am new to ReactJS. I am trying to display all the font families in a dropdown, so that if i select one of the font family the text (displayed in a SVG) font-family will change. I know in .net we can use System.Drawing.FontFamily.Families to get all the font familes. Like wise in react is the...
2018/03/14
2,526
7,512
<issue_start>username_0: In Below code the anchor tags are overlapped i tried to set `left:1px` and `margin-left:1px` but they can't work and also i wan't to align all three column into horizontally-centered(.user-info) in above code i want to create a user list page same as stackoverflow>users page tell me what's wr...
2018/03/14
517
1,231
<issue_start>username_0: I want to convert my `Object` to array, here is my Object. ``` {5.0: 10, 28.0: 14, 3.0: 6} ``` I want array like below ``` [{"type": 5.0,"value":10},{"type": 28.0,"value":14}, {"type": 3.0,"value":6}] ``` or ``` [{"5.0": 10},{"28.0": 14}, {"3.0": 6}] ```<issue_comment>username_1: Get th...
2018/03/14
529
1,432
<issue_start>username_0: In my app, I have customer form with bootstrap toggle button from [Link](https://bootsnipp.com/snippets/kv8ER) in View my HTML code is ``` input type="checkbox" name="" class="onoffswitch3-checkbox" id="myonoffswitch3" data-format="Y-m-d" required > Active Inactive ``` I In DB I have f...
2018/03/14
879
2,590
<issue_start>username_0: I have a folder structure like so: ``` src | |-- AnimalLib | |-- index.ts | |-- Animal.ts | |-- Mammals | | |-- Cat.ts | | |-- Dog.ts | |-- Reptiles | | |-- Snake.ts | |-- Birds | | |-- Hawk.ts ``` Assume I have the full paths of all files in an array, e.g. `['src/A...
2018/03/14
618
2,282
<issue_start>username_0: I have a stored procedure that returns the below sample result set. This is what I get in my code. ``` Resource | ResourceGroup | ResourceType ----------|-----------------|---------------- R1 | RG1 | RT1 R1 | RG2 | RT1 R2 | RG2 ...
2018/03/14
5,068
19,379
<issue_start>username_0: I followed the '[Getting Started](https://cloud.google.com/ml-engine/docs/getting-started-training-prediction)' tutorial for Cloud Machine Learning Engine and deployed it. I can pass an input file containing JSON instances to Batch Prediction service and it returns a file containing the predict...
2018/03/14
513
1,854
<issue_start>username_0: Below is the example code of RxAlamofire network request. My problem is that I want to cancel this request whenever the View Controller is dismissed. I tried to assign this request to a global variable but `requestJSON` method returns `Observable<(HTTPURLResponse, Any)>` type. Is there a way ...
2018/03/14
446
1,523
<issue_start>username_0: I want to write an application which takes a video stream and in the cycle do processing frames and fragments of audio. I saw such loop [here](http://ffmpeg.org/doxygen/trunk/ffplay_8c-source.html): I saw on the forums some solution with pipes [here](https://superuser.com/questions/999400/ho...
2018/03/14
492
1,606
<issue_start>username_0: I am trying to add prototype to already created object Instance (Person1) in this example, but it is not getting successfully added, and thereby giving error. Can someone help me out? ```html var person = function(name, age){ this.name = name; this.age = age; this.printName = function(){...
2018/03/14
1,156
3,459
<issue_start>username_0: I am trying to write an update function that updates the top 2 id, where it is order by the highest total owed from a different table, and another condition is that id is NULL, and it should match the taxpayerid in the individual table. Here's an example of the data table: --- Delinquents ta...
2018/03/14
757
2,337
<issue_start>username_0: I have a DB table : ``` CREATE CACHED TABLE LOGIN(ROWNO INTEGER GENERATED BY DEFAULT AS IDENTITY(START WITH 1,INCREMENT BY 1),USERID VARBINARY(128) PRIMARY KEY,LOGINA VARBINARY(128)); ``` And a insert query : ``` prepareStatement = conn.prepareStatement(" INSERT INTO LOGIN (USERID,LOGINA...
2018/03/14
826
2,408
<issue_start>username_0: I restarted MySQL server in one of the nodes in Percona Cluster. Since the restart took much time, I interrupted the process. I tried restarting the MySQL server again. I got the following error: > > Stale sst\_in\_progress file in datadir > > > I followed this link, <https://www.percona...
2018/03/14
454
1,541
<issue_start>username_0: Here is my HTML: ``` This is test **Upload photo** ``` I want to clear the text (if any) of the span using jquery. I have written the code: ``` $('#file-7').on('change', function(){ var spn = $(this).closest('span'); spn.attr('text',''); }); ``` The text is not getting remo...
2018/03/14
885
2,870
<issue_start>username_0: Code sends only a title and message but icon not getting received. I am new to one signal API. Here is my code: ``` php $fields = array( 'app_id' = 'my app id', 'include_player_ids' => ['player_id'], 'contents' => array("en" =>"test message"), 'headings' =>...
2018/03/14
1,487
5,590
<issue_start>username_0: I'm not sure if this is possible but is there a way to change a string that a function prints while calling it from another function? I want to do something like this: ``` def string(): print ("This cat was scared.") def main(): for words in string(): str.replace("cat", "dog")...
2018/03/14
868
3,172
<issue_start>username_0: I am trying to add **angular2-logger** to my Angular. <https://www.npmjs.com/package/angular2-logger> told me how to config.It said:Add the angular2-logger library to your app. If you are following the Angular 2's Quickstart Guide it should be something like this: In **systemjs.config.js**: `...
2018/03/14
1,151
3,033
<issue_start>username_0: I have a data set like this: ``` [ { "_id": "5aa7b6add9655d0bd4ce1f53", "user_name": "as", "createdate": "2018-03-13T11:31:57.133Z", }, { "_id": "5aa7b6add9655d0bd4ce1f54", "user_name": "ds", "creat...
2018/03/14
813
2,097
<issue_start>username_0: I tried to plot a bar figure and I want x-label to remain the specific order, so I use `set_xticklabels`. However, the result turns out the y-value didn't match the x-label. ``` import matplotlib.pyplot as plt A=['Dog','Cat','Fish','Bird'] B=[26,39,10,20] fig=plt.figure() ax1 = fig.add_subplot...
2018/03/14
1,799
7,072
<issue_start>username_0: It's very easy to navigate from one screen to another that is inside App.js class. What I have done is made three classes : App.js, SearchList.js and Detail.js. But i am facing issue that how to navigate from searchList.js to Detail.js on click any view inside searchList.js class. Should i use ...
2018/03/14
345
1,125
<issue_start>username_0: I want to catch a tag from the html code below. ``` ```sourceHeading Line data Source code ``` ```source ``` ``` now I catch "pre" tag by `pres = soup.find_all("pre")`. then I want to catch the tag whose class's name is source. but when I type like : ``` pre = soup.f...
2018/03/14
284
946
<issue_start>username_0: Hello Everyone when I am using UITextField Effect(HosiTextField Effect) on my story board but it is not working properly it is showing iPhone 7,6s,8 but other some devices it is not showing when I am running my project. <https://i.stack.imgur.com/7PHx2.png><issue_comment>username_1: It's becau...
2018/03/14
1,261
4,756
<issue_start>username_0: If I using ajax in vue component like this : It works. I successfully get the file But here I want to using vuex store My pattern of vuex store like this : I change my vue component like this : ```js ... export default { methods: { submitForm() { ... formData.append('file', f...
2018/03/14
247
897
<issue_start>username_0: I used script to change from TIMESTAMP in Oracle from Json to dd/mm/yy, but the function getMonth of javascript return month fail. In example below, the Month is 3 but it return is 2. Why? Please help. ```js var date = "/Date(1520996412000)/"; var fullDate = new Date(date.match(/\d+/)...
2018/03/14
229
935
<issue_start>username_0: I have clustered mixed dataset contains numerical and categorical features ([heart dataset from UCI](https://archive.ics.uci.edu/ml/datasets/Heart+Disease)) using two clustering methods k-prototype and PAM **My question is:** how to validate the results of clustering? I have found different ...
2018/03/14
487
1,593
<issue_start>username_0: I have installed node version 9.2.0 and npm version 5.5.1 On the command line, I want to install packages: ``` $ npm install express --save npm WARN bookstore@1.0.0 No repository field. npm ERR! path C:\Users\ad\Projects\bookstore\node_modules\bytes npm ERR! code ENOENT npm ERR! errno -4058 ...
2018/03/14
2,998
5,066
<issue_start>username_0: I have data points in a `.txt` file (delimiter = white space), the first column is x axis and the second is the y axis. I want to fit a 2D Gaussian to theses data points using Python. Truth is, I don't understand the theory behind Gaussian fitting (either one or two dimensional). I have read si...
2018/03/14
938
3,129
<issue_start>username_0: I am trying to compile one project for `x86`, something like the code sample `.pro` file below. How can I compile with x86 or arm? ``` x86 { INCLUDEPATH += fo LIBS += fo DEFINES += CONFIG_ARM } arm { INCLUDEPATH += foo1 LIBS += foo2 DEFINES += CONFIG_ARM } ```<issue_comment>username_1: In the...
2018/03/14
1,920
4,430
<issue_start>username_0: I have an array from the api response and its objects.I need to find the value which has maximum total and I have display it I'm unable to solve it , when there are two max values of the total.Is there any solution? ``` myArray[ {time: "2018-12-02", total: 25, percentage: 20, averageTime: 20},...
2018/03/14
516
1,552
<issue_start>username_0: The PDF file have a large width than normal. ``` $pagecount = $mpdf->SetSourceFile($pdfurl); for($x=0;$x<$pagecount;$x++){ $tplId = $mpdf->ImportPage(($x+1)); $mpdf->UseTemplate($tplId); $mpdf->AddPage(); } ``` Most PDF is displayed well, but with large width, it only display a pa...
2018/03/14
584
1,678
<issue_start>username_0: I have this string: `https://app.redretarget.com/sapp/ptag/jxy666.myshopify.com`. How do I use Python Regular expression to get the character in the middle of the forward slash? I want to Get: `['app.redretarget.com','sapp','ptag','jxy666.myshopify.com']` When I use: ``` cmd = 'https://app...
2018/03/14
501
1,819
<issue_start>username_0: I am stuck at this: The user needs to input two computer names and i don't know how to transfer them into one input (maybe i'm asking it wrong) but here is the code ``` elseif ($usersinput -eq 2) { $pingingtwopcs = Read-Host -Prompt "what are the names of the pc that >you want to ping? (p...
2018/03/14
2,531
9,569
<issue_start>username_0: I'm completely new to woocommerce. I want to create a sign up page for shop app, so I'm trying to check if the email id entered by a customer while signing up is already exists or not, if not then create his account or else prompt the error "Email id already exists". I got the code from <https:...
2018/03/14
1,551
5,742
<issue_start>username_0: I have a for loop and inside I'd like to get a sequence like 1,-1,1,-1... (The loop does other things also so I don't want to alter the loop itself) For now I have a solution like below, but there must be some more elegant way to do this I think :) ```js let plusMinus = [-1, 1] for (let i =...
2018/03/14
666
2,213
<issue_start>username_0: Python version 2.7 Code: ``` from Tkinter import * root = Tk(); root.geometry ('{}x{}'.format(w,h)); left_frame = Frame(root, width = w*0.8, height=400, bg='#988C89'); right_frame = Frame(root, bg='#988C89', width = w*0.8, height=400 ); left_frame.grid_propagate(0); right_frame.grid_propag...
2018/03/14
500
1,906
<issue_start>username_0: I have a page like: [![enter image description here](https://i.stack.imgur.com/PjpqB.png)](https://i.stack.imgur.com/PjpqB.png) There are two lables: A and B,when clicking A, the outlet will present component A, and component B is shown when clicking B. Now the label B is clicked and the com...
2018/03/14
559
1,931
<issue_start>username_0: ``` String msg = "This is a test"; int key = 88; String encmsg = ""; //What does this empty quotes "" means for(int i=0; i ``` Why can't I directly store the characters in `encmsg` by using ``` encmsg = (char)(msg.charAt(i)^key); ```<issue_comment>username_1: This piece of code seems to ...
2018/03/14
715
2,570
<issue_start>username_0: I am trying to create a simple filter using a "Search" `TextBox` and `Button`, which simply filters items in `ListView` according to user input. I made it work using following code: ``` If (item.SubItems(1).Text.Contains(txtSearch1.Text.ToLower) = False AndAlso item.SubItems(1).Text.Con...
2018/03/14
972
3,488
<issue_start>username_0: ```none CLASS RECORD OF THE STUDENT FROM THE PREVIOUS BATCH WHO TOPPED Name (Roll no) # Location Section Rank (MARKS) Gender Anna (+) USA A1 First (100) Female (04) California V ADDITIONAL RECORDS OF THE STUDENTS FROM THE P...
2018/03/14
2,836
10,109
<issue_start>username_0: I am creating a chatting android application.In this app there is a function JSON\_DATA\_WEB\_CALL which extracts data from a url using volley library and then displays it in this recyclerview.In the `onCreate()` method there is a thread which repeatedly runs `JSON_DATA_WEB_CALL()` method.This ...
2018/03/14
528
1,887
<issue_start>username_0: How can i bring a partial code not react component from another file? Thanks ``` {this.state.test && ...... // i want to bring this code from another file here with a shortcut import etc } ```<issue_comment>username_1: This piece of code seems to encode a message `msg` to an encoded message...
2018/03/14
1,223
3,969
<issue_start>username_0: I have an ajax call that adds a property errorCode to the response whenever there is an error.The value in the property errorCode is determined with various use cases.There are 10 codes that the call can return i.e 5010,5020,5030 .... 600. We have two divs in the page ``` ...rest of the page...
2018/03/14
1,155
4,335
<issue_start>username_0: I'm using this code to save all the employee data when I selected a particular department (name) and use that department name (fetching their department id) and using that id to search all the employee data or all the employee data which is similar to that department id is saved into array and ...
2018/03/14
1,016
3,292
<issue_start>username_0: I have code that reads data from a Excel spreadsheet, then performs some simple transforms on the data, and save results into the text file. All working fine except one problem- I can see only last record. Seems loop overwriting all records... How can I get all records? ``` from openpyxl imp...
2018/03/14
2,096
6,282
<issue_start>username_0: How to loop through list of maps to filter out SearchMap key-values from below List having map of records using JS? Map --- ``` var searchMap = new Map() searchMap.set("ed_mood", "strong") searchMap.set("ed_target_audience", "Expert") searchMap.set("ed_clip_type", "intro") ``` List ---- ``...
2018/03/14
330
1,316
<issue_start>username_0: I tried to follow along [<NAME>'s lecture on using TensorFlow](https://www.youtube.com/watch?v=vq2nnJ4g6N0&t=7503s) and also the [tutorial at the official TensorFlow documentation](https://www.tensorflow.org/versions/r1.1/get_started/mnist/beginners). I'm confused why on Gorner's lecture, he ...
2018/03/14
510
2,064
<issue_start>username_0: I want to make a csv file and let the user download it by clicking at a button. There is a form to search users (with some search fields) and the button search : this is to search users and display them in the grid. After the form, there is a link "export to csv", this have to take the form fie...
2018/03/14
1,121
3,628
<issue_start>username_0: I'm trying to set up an access log and an error log for my express server using Winston, but I seem to be doing something wrong. Here is my attempt at a config file: ``` const winston = require('winston'), fs = require('fs'); const tsFormat = () => (new Date()).toLocaleTimeString(); wins...
2018/03/14
755
2,212
<issue_start>username_0: I want right and left side divs to be fixed in position with class main-wrapper in line with blue color box...Right now its taking top position with the header.Want it to be floating fixed not absolute.it shoulds tick to the main-wrapper.position top:0 to main-wrapper.Tried almost everything no...
2018/03/14
319
1,268
<issue_start>username_0: How would you inherit the template from a parent component in angular 4? Most materials exemplify overriding the parent component like this: ``` import { Component } from '@angular/core'; import { EmployeeComponent } from './employee.component'; @Component({ selector: 'app-employee-list', ...
2018/03/14
1,036
3,745
<issue_start>username_0: Given the following code: ``` trait Function { fn filter (&self); } #[derive(Debug, Copy, Clone)] struct Kidney {} impl Function for Kidney { fn filter (&self) { println!("filtered"); } } fn main() { let k = Kidney {}; let f: &Function = &k //let k1 = (*f)...
2018/03/14
896
2,852
<issue_start>username_0: Python3 test cases (doctests) are failing with my sample code. But the same is working fine in Python2. `test.py` ``` class Test(object): def __init__(self, a=0): self.a = a def __getattr__(self, attr): return Test(a=str(self.a) + attr) ``` `tst.py` ``` from test i...
2018/03/14
550
1,827
<issue_start>username_0: I am using Apache Tika( tika-app 1.17) in wildfly modules. While I start extracting PDF it always throws the error: > > java.lang.NoClassDefFoundError: Could not initialize class > org.apache.pdfbox.pdmodel.font.PDFont > > > For other file extensions it works fine. Things I have tried ou...
2018/03/14
546
2,162
<issue_start>username_0: In xcode 9.2 I'm generating archive using automatic signing, Developer certificate and provisioning profile are generating through xcodebuild commands using `-allowProvisioningUpdates` key. But when generating iPA through xcodebuild commands with that archive getting below error. ``` Details:...
2018/03/14
340
1,364
<issue_start>username_0: I have the following reducer: ``` export const changeListener = () => (dispatch) => { changeListenerManager.update((res) => { changeListener(); dispatch({ type: 'CHANGE', payload: res }); }); }; ``` Which should invoke `changeListener();` function, right after it has been called ...
2018/03/14
1,121
4,248
<issue_start>username_0: Getting error - `'gradlew' is not recognized as an internal or external command. operable program or batch file.` inside Android Studio terminal. Can anyone please tell why it's not recognizing **gradlew**<issue_comment>username_1: 1. gradlew command is available in your project directory. If...
2018/03/14
651
2,184
<issue_start>username_0: I have a stored procedure that returns the below sample result set. This is the result set I get in my query. ``` Resource | ResourceGroup | ResourceType ----------|-----------------|---------------- R1 | RG1 | RT1 R1 | RG2 | RT1 R2 | R...
2018/03/14
2,408
6,921
<issue_start>username_0: I have an image gallery in a website I'm working on. I wanted to center the image gallery, so I added 'text-align:center' to it. It works fine, but what I wanted was to center the entire image gallery on the page and still to left align images inside it. How do I do it? [![enter image descri...
2018/03/14
182
585
<issue_start>username_0: Recently my localhost:8000 stop working. I didn't change anything. This is my error:[![enter image description here](https://i.stack.imgur.com/0eI4W.png)](https://i.stack.imgur.com/0eI4W.png) I work with php-mysql-apache2 other local host is working fine. What can be wrong?<issue_comment>user...
2018/03/14
385
999
<issue_start>username_0: I have ranked rows in a data frame based on values in each column.[Ranking 1-10. not every column in picture](https://i.stack.imgur.com/b1peo.jpg) I have code that replaces values to NA or 1. But I can't figure out how to replace range of numbers, e.g. 3-6 with 1 and then replace the rest (1-2...
2018/03/14
1,106
3,189
<issue_start>username_0: I want to extract website names from the url. For e.g. <https://plus.google.com/in/test.html> should give the output as - "plus google" Some more testcases are - 1. WWW.OH.MADISON.STORES.ADVANCEAUTOPARTS.COM/AUTO\_PARTS\_MADISON\_OH\_7402.HTML Output:- OH MADISON STORES ADVANCEAUTOPARTS 2...
2018/03/14
596
2,198
<issue_start>username_0: I made a silly mistake of doing \*p++; thinking that p would be dereferenced first and then the value pointed by p would get incremented. So I found that this is more akin to: \*(p++); Because the postfix ++ increment operator has higher precedence than the \* dereference operator. But now t...
2018/03/14
363
1,399
<issue_start>username_0: ``` debounceFunction() { let timeout = setTimeout(() => { doSomething(); flag = true; clearTimeout(timeout); }, 250); } ``` I wrote a debounce function that looks like the above, I called this function for several times when an event ...
2018/03/14
542
2,139
<issue_start>username_0: I'm using laravel's Auth to do a login process and keep my application authenticated using username and password in my database. Here is my login function: ``` public function doLogin(Request $req) { if (Auth::attempt(['email' => $req->email, 'password' => $req['password']])) { ret...
2018/03/14
4,337
15,854
<issue_start>username_0: Note: This question is for informational purposes only. I am interested to see how deep into Python's internals it is possible to go with this. Not very long ago, a discussion began inside a certain [question](https://stackoverflow.com/q/49271187/4909087) regarding whether the strings passed t...
2018/03/14
683
2,437
<issue_start>username_0: I have a problem Im using a list of struct in C, when I add an Item in the list I do this: ``` nodo *nuevo=(nodo*) malloc (sizeof(nodo)); char nombre[5]="vd"; nombre[2]=letra; nombre[3]=indice; nombre[4]='\0'; nuevo->siguiente = NULL; nuevo->path= path; nuevo->nombr...
2018/03/14
525
2,226
<issue_start>username_0: I have my angular 4+ webapp which have a different header on different routes.All the components loads through angular code hence, everything is javascript and there is not much HTML except root component.Due to this, the google is not able to crawl any links.The SEO has taken a hit. I want to ...
2018/03/14
747
2,888
<issue_start>username_0: [![enter image description here](https://i.stack.imgur.com/uHuJA.png)](https://i.stack.imgur.com/uHuJA.png) I am really surprised that the table having two PK columns. When I am trying to add PK on another column then those two PK columns changed as normal and only one column changed to PK. ...
2018/03/14
702
2,758
<issue_start>username_0: I need to return action and controller info with web api in asp core . I have this controller : ``` [BreadCrumb(Order = 0)] [DisplayName("سطح دسترسی پویا")] [Route("api/[controller]")] public class ValuesController : Controller { // GET api/values [DisplayN...
2018/03/14
1,196
4,451
<issue_start>username_0: I am trying to implement refresh token concept in my web app. In page refresh i am calling 4 API's and when access-token expires am calling back-end to get a new access-token based on refresh-token. So in my case am able to get the new access-token but again unable to trigger the 4 API calls ...
2018/03/14
455
1,834
<issue_start>username_0: I am working on on jsp. I have an element in jsp file. But when I am tring to set value of using javascript I am getting this error: "Uncaught TypeError: Cannot set property 'value' of null". This is my html code: ``` PAN Card Choose File: OR ``` And this is my Javascript code: ...
2018/03/14
772
2,109
<issue_start>username_0: I have some car numbers in my database and I want to change it's structure like that `AA11BB` => `AA-11-BB` `A111BB` => `A-111-BB` `AAA111` => `AAA-111` Etc. can I achieve this only using by SQL? DDL --- ``` declare @a table ( CN varchar(20) ) insert @a values ('AA11BB'), ...
2018/03/14
564
1,913
<issue_start>username_0: I tried to split the `build.gradle` file into several smaller ones to reduce the size and to encapsulate different functionalities. I ended up with: ``` // build.gradle plugins { id "org.jetbrains.kotlin.jvm" version "1.2.30" } apply from: 'klint.gradle' ``` and ``` // klint.gradle build...