date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/11
439
1,463
<issue_start>username_0: here and in a lot of other websites I have find a lot of posts regarding this question but for some strange reason no one works. I have a Wordpress database and I need to find all the terms contained in wp\_terms that have any special character. In fact I need to find all that contains anythi...
2018/03/11
1,413
5,880
<issue_start>username_0: I am trying to add slider to image and content. I have tried using different tutorials but they are mostly for images only (not along with content) like carousels. I need your suggestions here to add slider for both images and content placed beside eachother. Here is the [codepen](https://cod...
2018/03/11
936
3,591
<issue_start>username_0: I'm trying to create a site settings page with some checkboxes. If the checkbox is 'ON' a HTML element has a certain value, else it would be something else. But for some reason every checkbox keeps returning the value "on" in JavaScript. Please help. My HTML: ``` Click this checkbox Apply Cha...
2018/03/11
602
1,738
<issue_start>username_0: In a tutorial on the Big-O notation it is said that if `T(n) = 4n2-2n+2`, then `T(n)=O(n2)`. However, we know that `f(x) = O(g(x))` if there exists N and C such that `|f(x)| <= C|g(x)|` for all `x>N`. But the thing is that `n2 < 4n2-2n+2` for any `n`. Shouldn't we say that `n2 = O(4n2-2n+2)` i...
2018/03/11
684
2,151
<issue_start>username_0: We have created Cards which can be resized and moved around by the user. In some of these Cards, we want to embed a Datagrid which is supposed to "fill" the available space (e.g. a card-block). I am able to control the width, but haven't found a way to control the height in my scenario. Here, ...
2018/03/11
919
3,138
<issue_start>username_0: I am looping over a list of DataFrame column names to create barplots using matplotlib.pyplot in a Jupyter Notebook. Each iteration, I'm using the columns to group the bars. Like so: ``` %matplotlib inline import pandas as pd from matplotlib import pyplot as plt # Run all output interactivel...
2018/03/11
596
1,999
<issue_start>username_0: How can I check if a text file has something written or not. I tried: ``` LOGIC checkfile(char * filename) { FILE *pf; pf=fopen(filename,"wt"); fseek(pf,0,SEEK_END); if(ftell(pf)==0) printf("empty"); } ``` This function returns empty everytime, even in my text file I have...
2018/03/11
637
2,128
<issue_start>username_0: I have the following code that tries to take a reference to a trait object from a boxed trait: ``` trait T {} struct S {} impl T for S {} fn main() { let struct_box: Box ~~= Box::new(S {}); let struct\_ref: &S = &struct\_box; let trait\_box: Box = Box::new(S {}); let trait\_ref: &T ...
2018/03/11
891
2,922
<issue_start>username_0: This code cause a blue screen on windows on my computer : ``` import matplotlib.pyplot as plt plt.plot(range(10),range(10)) # This is the line that cause the crash ``` WhoCrashed tells me this : > > This was probably caused by the following module: nt\_wrong\_symbols.sys > (nt\_wrong\_sym...
2018/03/11
1,405
6,620
<issue_start>username_0: I am starting the activity after clicking on menu item in the action bar menu. I have added the activity in manifest file also . I cannot find why there is ActivityNotFoundException. I have used intent to start new Activity. FragmentActivity extends Activity. **MANIFEST FILE:** ``` xml v...
2018/03/11
741
2,490
<issue_start>username_0: I am trying to create s simple star rating system using javascript only. But no idea how to do that. I have done it in jquery only. Can someone please help ```html \* \* \* \* \* ``` active clas should be added upto the spans on which I click, & if clicked previous span it should be re...
2018/03/11
482
1,713
<issue_start>username_0: can you declare a php variable using a text input example: I want a variable whose name is v1 and its value is 1. I will first input the name of the variable then set the value of it... can it be done using php?<issue_comment>username_1: php allows to use a notation like `$$varname` to achiev...
2018/03/11
1,021
3,998
<issue_start>username_0: I have around 100 GB of data in CSV format on which I intend to do some transformation like aggregation, data splitting and after that do some clustering using ML package of Apache Spark. I have tried it by uploading data on MYSQ trying to automate the process on python but it's taking too muc...
2018/03/11
729
1,710
<issue_start>username_0: I have a triangle of 3 points A, B, and C. I can find the normal of the triangle just fine by doing ``` |AB x AC| ``` In the below picture, it shows ABC that I know and |n1| which I can calculate. But how would I find P1? [![enter image description here](https://i.stack.imgur.com/UGI5a.png)...
2018/03/11
922
2,332
<issue_start>username_0: I am trying to cluster different regions of an image using Fuzzy C-means clustering with ImageSegmentation.jl ``` using ImageSegmentation, Images fl = load("flower.jpg") fuzzy_fl = fuzzy_cmeans(fl,3,2) ``` It gives an error like this: ``` MethodError: no method matching fuzzy_cmeans(::Base....
2018/03/11
2,265
5,969
<issue_start>username_0: i am currently working on a script to match IT eqipment models from different suppliers, the idea is to remove the -XXX numbers at the end, the ending P or a P- in the middle of the name example models are ``` DH-HAC-HDBW3802EP-Z HAC-HDBW3802E-Z DH-HAC-HDBW3802EP-ZH HAC-HDBW3802E-Z...
2018/03/11
505
1,838
<issue_start>username_0: I read <NAME>'s answer from this [question](https://stackoverflow.com/questions/46642641/sql-like-operator-in-cloud-firestore) in which he says that in Firestore there is an equivalent for the following line of code: ``` myRef.startAt(searchText).endAt(searchText + "\uf8ff"); ``` This line w...
2018/03/11
182
654
<issue_start>username_0: my question is "" I have 20 records and i want to retrieve 19th record which is max-1 suppose values are like from 1 to 20 so i want to retrieve 19th record which has value 19. Please help me."<issue_comment>username_1: You can select the nth row by selecting a specific row from a rownumber col...
2018/03/11
543
1,983
<issue_start>username_0: Rust's [`std::process::Command`](https://doc.rust-lang.org/std/process/struct.Command.html) allows configuring the process' stdin via the [`stdin`](https://doc.rust-lang.org/std/process/struct.Command.html#method.stdin) method, but it appears that that method only accepts existing files or pipe...
2018/03/11
992
3,590
<issue_start>username_0: I am using fread function to read file, which I am sending via TCP. I found out, that fread doesn't read the whole file, if the file is binary. I tried everything what i found on the internet, but nothing helped. My code is: ``` #define BUFSIZE 1024 char buf[BUFSIZE]; FILE *file = fopen(soubor...
2018/03/11
515
2,166
<issue_start>username_0: I have a firebase project setup and I want to use that same project for both an iOS app and to host a website. I built a basic iOS app. On my desktop I have a folder: ``` myiosproject - iOS - firebase - functions - index.js ``` I followed the steps to setup cloud f...
2018/03/11
1,267
3,404
<issue_start>username_0: I'm new to Python so please be gentle. I seriously don't know what is wrong with my code. Here it is: ``` import numpy as np def epsilon(t): epsilon = (1 - np.exp(-pow(t, 4))) return epsilon def r(t): r = pow( (epsilon(t) - 16) / 4, 1/4) return r print(r(0)) ``` Since `e...
2018/03/11
2,931
9,276
<issue_start>username_0: I am using this library [here](https://github.com/ArthurHub/Android-Image-Cropper) and I used it in a project and it works fine now I am using it in another project and in build it fires an error > > Error:Execution failed for task ':app:transformClassesWithMultidexlistForDebug'. > java.io....
2018/03/11
857
3,079
<issue_start>username_0: I was wondering if there was a way to dynamically import an entire module (equivalent to "import \* some\_module"). After some research on other posts I saw you could dynamically do "import some\_module", but not pull the entire module. In order to clarify my question, some\_module : ``` SO...
2018/03/11
553
1,840
<issue_start>username_0: As you know, we can set UICollectionView cell sizes using sizeForItemAt method in UICollectionViewDelegateFlowLayout. But could not get a cell with custom class like the following. ``` func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, ...
2018/03/11
640
2,007
<issue_start>username_0: I have a following class that has a background image to it, and this is the image I want to apply a tint over: ``` .... .... ``` Classes **jumbotron** and **class2** divide the screen into two parts, both of which are visible simultaneously on the screen. The problem is, when I apply tin...
2018/03/11
2,429
8,067
<issue_start>username_0: This is my code. But I have a problem. ``` if ($kundevor!="" or $kundenach!="") { if ($kundevor=="") { $kundezusatz=" WHERE Nachname LIKE '$kundenach%'"; } else if ($kundenach=="") { $kundezusatz=" WHERE Vorname LIKE '$kundevor%'"; } else { $kundezusat...
2018/03/11
617
2,050
<issue_start>username_0: I have a radio button with 2 options. It goes like ``` City : | Same | Different | textbox here | ``` I want to display a textbox when i click "Different". Its a JSP page. Thanks.<issue_comment>username_1: Here you go, if you want to again hide it just use...
2018/03/11
400
1,341
<issue_start>username_0: When I use the [`yield*` expression](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/yield*) on TypeScript, it always gets an error. > > Type 'IterableIterator' is not an array type. > > > How can I set the types correctly without using `any` to avoid the error...
2018/03/11
715
3,056
<issue_start>username_0: ``` DatabaseReference rootRef = FirebaseDatabase.getInstance().getReference(); DatabaseReference usersRef = rootRef.child("Users"); ValueEventListener eventListener = new ValueEventListener() { @Override public void onDataChange(DataSnapshot dataSnapshot) { ...
2018/03/11
277
1,265
<issue_start>username_0: The field validation process can happen in **'Django Model level field declaration'** or in **'Deserialization of data on DRF serialization section'**. I have the following concerns regarding this validation process: * What is the separation of concerns? Which validation section should be plac...
2018/03/11
795
2,531
<issue_start>username_0: Can anyone help me with modifiers `A` and `D`? I read the description 3 times and did a couple of tests on regex101 but I can not do it so that they would work. Or I can not find an example of what they would have earned. For example, the regular expression ``` [a-z]+<\/u> ``` works the sa...
2018/03/11
1,056
3,643
<issue_start>username_0: I have an issue with removeEventListener, it doesn't seem to work at all, I've seen some other questions on this site but I don't get it, can you help me? ``` displayImg() { console.log('img') for (var i = 1; i <= 4; i++) { var line = "l"+i; var position = 0; var addD...
2018/03/11
371
1,450
<issue_start>username_0: I have react native project on Android platform. I have a Webview loaded from url. When user click any url, i want navigate to screen in my app and webview will stop loading. So in my onNavigationStateChange() function ``` source = {{uri:this.props.htmlUrl}} ref='_webView' scrollEnab...
2018/03/11
727
2,264
<issue_start>username_0: I have written the following code for toggling a dash with a check, the desired toggling is not happening: ```js function myFunction(x) { x.classList.toggle("fa-check"); } ``` ```css .fa { font-size: 50px; cursor: pointer; user-select: none; } .fa:hover { color: darkblue; ...
2018/03/11
331
1,080
<issue_start>username_0: Is there any way in java for restricting a method to return `T` like this code? ``` public T ~~func(Class c1, Class~~... c2) { ... }~~~~ ``` There is a problem with in `T`.<issue_comment>username_1: This is possible only if `MyOwnCls1` has generic type: ``` public , S extends MyOwnCls2> T...
2018/03/11
510
1,731
<issue_start>username_0: I have 2 tables that look like this **users**: ``` id | created_at ``` **payments**: ``` id | created_at ``` I need a table that is grouped by year and month and contains both number of users and payments **stats**: ``` month | year | users | payments ``` Where `users` column contain...
2018/03/11
592
2,779
<issue_start>username_0: Hello I am new to both HyperLedger Fabric and composer.I got confused with two terms. one is **user** in HyperLedger Fabric and another is **participant** in HyperLedger Composer.We have a set of **users**(including one **administrator**) in each organization along with peers in **crypto-config...
2018/03/11
1,045
3,947
<issue_start>username_0: I am making `post` request but I am getting `req.body` is `undefined`. here is my sever.js file ``` import express from 'express'; import bodyParser from 'body-parser' import mongoose from 'mongoose' var db = mongoose.connect('mongodb://localhost:27017/hockey'); var playerModel = require('./m...
2018/03/11
494
1,683
<issue_start>username_0: I just added a new data in `[Driver Table`], afterwards, I want to update `[Driver Dimension]` to get the value of every new data inserted in `[Driver Table]`. I'm using SQL Server 2012. My code: ``` UPDATE [Driver Dimension] SET [DriverID] = [DriverID] FROM [Driver Table] ``` I get this ...
2018/03/11
219
786
<issue_start>username_0: I need to use a row trigger that updates all salaries using the formula: `Salary = salary * 1.1`. The table created is as follows: `Employee (EmployeeID, Name, Address, Phone, Salary)`.<issue_comment>username_1: try this ``` Update [Driver Dimension] SET [DriverID] = ( SELECT TOP 1 [Driver...
2018/03/11
1,587
6,193
<issue_start>username_0: I got the same error when I try to get previous and song that play right now for every channel. I think something is wrong in my struct Root and playlist because data is not in the correct format.I am using Swift 4 and trying to learn JSON, but its hard. Previous struct is same as Song struct. ...
2018/03/11
400
1,572
<issue_start>username_0: I have an endpoint in yii2 where I need to sort by multiple parameters. Im using ActiveDataProvider. This is the enpdoint: ``` public function actionIndex($client) { $sort = new Sort([ 'attributes'=> ['name','mail','crdate'] ]); $query = Customer::find() ...
2018/03/11
446
1,481
<issue_start>username_0: I've been collecting some tweets into a JSON file, with which I need to do some statistics with certain data in the JSON. After Googling several options of how to do this, none could give me the correct solution. The JSON looks like this: ``` {"contributors": null, "truncated": false, "text":...
2018/03/11
336
1,109
<issue_start>username_0: I'm trying to receive UDP Broadcast packets sent from FPGA connected via a LAN cable. the FPGA sends continuous packets to port 5001. My python receiver code is simple: ``` from socket import * s=socket(AF_INET, SOCK_DGRAM) s.setsockopt(SOL_SOCKET, SO_BROADCAST, 1) s.bind(('', 5001)) print "t...
2018/03/11
570
2,134
<issue_start>username_0: I need to detect triple click on an Image element in my ViewModel. So I have this in my View ``` ``` And this code in my ViewModel: ``` public ICommand MouseDoubleClickCommand { get; } = new RelayCommandParametrized(obj => { // Detect here triple click }); ``` ...
2018/03/11
702
2,521
<issue_start>username_0: I have two arrays (a,b) and my task is to find the difference of their volumes i.e. i have to multiply all elements of array a, then do the same for array b and then subtract the two to find the difference. I tried using `forEach()` and `reduce()` in conjuction with `arguments` but it seems th...
2018/03/11
435
1,412
<issue_start>username_0: I want to find the total number of radio buttons in group1, I tried with the below code, but the system is throwing an error and suggesting me to use getSize() instead of Size(). ``` System.out.println(dr.findElement(By.xpath("//input[@name= 'group2']")).size()); ``` [![enter image descripti...
2018/03/11
487
1,604
<issue_start>username_0: I wants to calculate the time since two sets become equal. I use `time.time()` to calculate the time. But whenever i calculate the time when the sets are equal, it returns time as `1520763846.19`. I want to calculate the time from which both sets become equal and have to perform some downstream...
2018/03/11
522
1,848
<issue_start>username_0: I am creating a python based command-line personal assistant using speech\_recognition and google gTTS libraries. My current implementation of the hotword '<NAME>' is constantly running a while loop and listening in each loop. But it is slow and not really continuous. Therefore it misses out o...
2018/03/11
963
2,577
<issue_start>username_0: If I have an average score of: ``` $average = 95.00000000 ``` And I have an array: ``` $grades = array("91-100"=>"A+","80-89"=>"A","70-79"=>"B","60-69"=>"C","50-59"=>"D","0-49"=>"F"); ``` When I try to get an average grade by doing: ``` $grade = $grades[$average]; ``` I get an error: ...
2018/03/11
368
1,312
<issue_start>username_0: this is my code. models.py ``` class Preventivo(models.Model): prestazione1 = models.ForeignKey('Prestazione',on_delete=models.CASCADE, related_name="prestazione1") ``` form.py ``` class PreventivoForm(forms.ModelForm): class Meta: model = Preventivo fields = ['cli...
2018/03/11
581
2,115
<issue_start>username_0: I am taking a really interesting CE course in conjunction with a C++ course. In CE, I have gotten more in-depth understanding of how memory works. So, why do we need to explicitly declare pointer types in c++? A pointer is simply a memory cell (or cells) that hold an address to a data type; whi...
2018/03/11
732
2,583
<issue_start>username_0: I have a library xyz that gives me a CompletableFuture which I want to process on my Vertx (v3.5) event loop. Currently I am using [CompletableFuture.handle(BiFunction)](https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html#handle-java.util.function.BiFunction-) ...
2018/03/11
502
1,675
<issue_start>username_0: i've added a simple *Cshtml* there's nothing in it but when i run the project i get this error and i know there's sth wrong with this file ***bin\roslyn\csc.exe"*** > > Server Error in '/' Application. > > > Description: An unhandled exception occurred during the execution of the current we...
2018/03/11
232
873
<issue_start>username_0: I am using a function in my javascript file in which the function is called onchange event. ``` function restrictUpload(event,fileID,path){ var files=event.target.files; var mimeType=files[0].type; if(mimeType!="image/jpeg" || mimeType!="image/png"){ console.log(mimeType); alert("Upload onl...
2018/03/11
982
3,583
<issue_start>username_0: I have a few classes and I'm trying to understand how the vptr and vtable work in this situation. ``` class RGB { short value[3]; }; class AbstractImage{ protected: int n_pixels; public: virtual void show() = 0; virtual AbstractImage* getMe() = 0; virtu...
2018/03/11
1,210
4,115
<issue_start>username_0: I just began learning flutter and built the sample app present in [Building Layout tutorial](https://flutter.io/tutorials/layout/). > > In the [source code](https://raw.githubusercontent.com/flutter/website/master/_includes/code/layout/lakes/main.dart) it's suggested to un-comment two lines, ...
2018/03/11
1,297
4,468
<issue_start>username_0: I have the following code to perform the Sieve of Eratosthenes in F#: ``` let sieveOutPrime p numbers = numbers |> Seq.filter (fun n -> n % p <> 0) let primesLessThan n = let removeFirstPrime = function | s when Seq.isEmpty s -> None | s -> Some(Seq.head s, sieveOutPri...
2018/03/11
1,218
4,646
<issue_start>username_0: I'm new to Android Studio and I hope you don't consider my question silly.I am trying to write a small program in the terminal of the android studio.When I try to run the same program in my terminal(not android studio) it's working fine.I added the MySQL-connector.jar file in android studio lib...
2018/03/11
711
2,399
<issue_start>username_0: Say we have an array of 2D vectors (describing a square shape), and a matrix (scale along y axis): ``` vecs = np.array([[1, 0], [1, 1], [0, 1], [0, 0]]) mat = np.array([[1, 0], [0, 2]]) ``` I want to get a new array of vector...
2018/03/11
1,413
3,724
<issue_start>username_0: Display: * account no. * customer id * initial amount in terms of [lakhs](https://en.wikipedia.org/wiki/Indian_numbering_system) (rounded off to 2 decimals) [change the column heading to 'INITIALAMTIN\_LAKHS'] * amount category(amt < 50000 show as 'Low', amt > 5000000 as 'High', otherwise, 'Me...
2018/03/11
667
2,113
<issue_start>username_0: I'm developing an application with VBA in Excel 2013. I have a ListBox with items and I want to give each item a specific color depending on a criteria, I searched on the net but it says that it is impossible to do so, is that true? I tried to use the listview (Microsoft ListView Control) but ...
2018/03/11
2,256
7,127
<issue_start>username_0: I'm running a local kubernetes bundled with docker on Mac OS. How can I expose a service, so that I can access the service via a browser on my Mac? I've created: a) deployment including apache httpd. b) service via yaml: ``` apiVersion: v1 kind: Service metadata: name: apaches spec: se...
2018/03/11
433
1,621
<issue_start>username_0: I have a Laravel application with vuejs2 support. Im using the router component in the vuejs part. How can I send data like sessions from laravel to a vuejs template. In my blade template I use to call the vue router component. How can I add data. Thanks for help!<issue_comment>username_1: Yo...
2018/03/11
1,502
5,796
<issue_start>username_0: Very nooby question, but I'm trying to install Atom text editor on Raspbian Stretch. Is it possible? I've heard because it runs on Electron, it's quite slow for Raspbian. I keep getting an error saying: ``` E: Unable to locate package atom ``` I'm following the [official instructions](https:...
2018/03/11
1,938
6,896
<issue_start>username_0: I am working in keras tensorflow backend on Windows 10. I am not able to interpret the meaning of the error Here is a snippet of my code ============================ ```python { model = Sequential([ #Dense(32, input_shape=(1080,1920,2)), Dense(32, input_shape=(250,250, 3)), #Dens...
2018/03/11
1,064
3,485
<issue_start>username_0: I try to store some information in two bytes (byte[2]). In the first four bit of the first byte I want to store a "type-information" encoded as a value from 0-9. And in the last four bit + the second byte I want to store a size-info, so the maximum of the size-info is 4095 (0xFFF); Lets do so...
2018/03/11
3,098
9,607
<issue_start>username_0: It's me again I tried the suggestion from my previous post to use Kotlin for the whole project . When building with gradle I got no errors, but when I try to compile the project I got . I tried to search for some answers online but couldnt not find anything. Anyone has an idea what it could be...
2018/03/11
1,042
3,990
<issue_start>username_0: Currently got some downtime and thought I’d play around with laravel as I usually just use it for basic web dev. I’ve tried seeders and like how it’s quicker for me to drop test data into a table but I’m not sure how I go about doing this for multiple tables which have relationships. In my ca...
2018/03/11
1,167
4,499
<issue_start>username_0: I have a tree view and when some item label changed it should be applied to all children. I use the following method for applying a label to children: ``` public void SetCLassificationForChildren(TreeItemViewModel item, Labels label) { if (item == null) return; item.L...
2018/03/11
979
3,612
<issue_start>username_0: I have a function ``` function wrap(n, p) { Let number = n; Let power = p; let val = n*p Let half = val/p If(half === n) { return true } else{ return false } } ``` This function returns false where I give it a value of `wrap(2, 2)` I tried removing the ...
2018/03/11
1,962
6,452
<issue_start>username_0: I'm using pyqtgraph to plot tracks of a robot (the path that the bot drove). Now I want to add a marker to the plot to indicate the bots current position and heading. I thought ArrowItem would be the right choice, because it is scale invariant and can be rotated easily. However the local origin...
2018/03/11
251
840
<issue_start>username_0: I am trying to auto-size my TextView to fit in a specific width on one line, it was quite easy for API 26 and above, however, I want to support my app for use with APIs back to Lolipop. I am having a hard time trying to do this with java code. Can anyone help me? Thank you.<issue_comment>userna...
2018/03/11
707
2,751
<issue_start>username_0: I want to change Monolog channel. My declarations works with some classes but never with controllers. Here is my new *admin* channel declaration: ``` #config/packages/dev/monolog.yaml monolog: handlers: admin: type: stream path: "%kernel.logs_dir%/%kernel.e...
2018/03/11
557
1,947
<issue_start>username_0: I am new AngularJS framework. I have few questions related to use of tag in angularjs. Firstly, whenever I am putting the first value of the option in the tag, it shows an extra blank option in the drop down. Then, when I select any of the options in the dropdown, it disappears. Secondl...
2018/03/11
2,447
7,311
<issue_start>username_0: I need to write a Python function that returns the word from the string with largest number of 'o' characters. For example, `get_most_ooo_word(['aa ao ooo'])` should return `['ooo']` and `get_most_ooo_word(['aa ao oa aaaooo aooqq aoooq'])` should return `['aaaooo', 'aoooq']`. I tried this: ``...
2018/03/11
2,320
6,939
<issue_start>username_0: I want to use iOS 11 simulator on my Mac. Now my Mac is running OS X El Capitan 10.11.6. But it seems that iOS 11 simulator is only shipped with Xcode 9, which requires macOS 10.12 or higher. However, I don't want to upgrade OS X El Capitan. So, is there any way to use iOS 11 simulator on OS X ...
2018/03/11
719
2,556
<issue_start>username_0: I am using google colaboratory for teaching Data Science with python and in order to leave the notebooks only with the specific lesson for the students I would like to import some basic methods we have coded instead to give them a big notebook pre-filled with these methods for preventing any di...
2018/03/11
576
2,001
<issue_start>username_0: I made a table which display items of my database beside item name, I displayed checkbox also in table to select the item hence items are rendering dynamically by php. so, check boxes also will get repeated as per count of items but, now i want to display the another input field for only select...
2018/03/11
438
1,627
<issue_start>username_0: Basically i want a html input to must contain something. So i am wanting to make the user submit a mp3 url so i want the input to contain mp3 and wont validate if it doesn't . I have already done. But that just makes sure its a url. Not an mp3 url. To be clear i cant just do value=".mp3" becau...
2018/03/11
463
1,343
<issue_start>username_0: I copy the code from the MDN flexbox documentation to test a vertical alignment of a box in a window: <https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Flexible_Box_Layout/Typical_Use_Cases_of_Flexbox> Why is the box not vertically aligned? I use Google Chrome 63.0.3239.108 (Official Buil...
2018/03/11
725
1,859
<issue_start>username_0: I use the following code to show the element names in a npz file. But it requires loading the file completely, which can be slow especially when the file is large. Is there a way to extract the element names without having to load the file completely? ``` x = numpy.load(file) for k in x.iterke...
2018/03/11
953
3,368
<issue_start>username_0: When I let Android Studio generate override method it will generate the method with strange parameter names. For instance according to documentation onCheckedChanged should look like this: ``` public void onCheckedChanged(CompoundButton buttonView, boolean isChecked){} ``` but i got ``` pu...
2018/03/11
504
1,442
<issue_start>username_0: I want to create an array with values which can be added in order, but can be different number of vars used each time the file is posted, basically I have few if statements like this: ``` if(isset($file01)){ $f01 = $file01; } if(isset($file02)){ $f02 = $file02; } ``` Then I have some...
2018/03/11
581
2,189
<issue_start>username_0: I have a dataset consisting of large strings (extracted text from ~300 pptx files). By using pandas apply I am executing an "average" function on each string, the averaging looks up a corresponding word vector for every word, multiplies it with another vector and returns the average correlation...
2018/03/11
466
1,562
<issue_start>username_0: let say I have a list of lists ``` [[a1, a2, a3], [b1, b2], [c1, c2, c3, c4]] ``` The number of lists in the list is not known in advance. I want to have all combinations of elements from the different list, so ``` [a1, b1, c1], [a1, b1, c2], ..., [a3, b2, c4] ``` but if there common ...
2018/03/11
840
2,902
<issue_start>username_0: So i'm trying to gererate a frontend user list, but i'm having trouble reaching the avatar url. i'm able to get all user names but when i try to do the same with the profile picture the fallback is shown. The `{{ user.avatar.url }}` is working on the user page when someone is signed in. I've...
2018/03/11
543
1,864
<issue_start>username_0: I have trained a model in keras with the help of transfer learning on the top of the vgg16 model as mentioned in the blog [Building powerful image classification using model using very little data](https://blog.keras.io/building-powerful-image-classification-models-using-very-little-data.html)....
2018/03/11
457
1,474
<issue_start>username_0: I've been trying to recreate this wireframe for a couple hours now, but I just can't get it to look the same and work properly. [![enter image description here](https://i.stack.imgur.com/aTq4r.png)](https://i.stack.imgur.com/aTq4r.png) I've tried to do it with the select tag, but this doesn't...
2018/03/11
1,186
4,362
<issue_start>username_0: I've been trying to make an React site, which would fetch a GET-response from API and print it out to my .html-file. I've managed to fetch the file just right, but i can't access the JSON-data server sends me. If i use no-cors in my Fetch-request, i get an opaque response containing pretty muc...
2018/03/11
709
2,797
<issue_start>username_0: I have below code where I just submit few details and reset the form after successful submission. ``` ngOnInit() { this.initContactForm(); } initContactForm(){ this.contactForm = this.formBuilder.group({ fullname: ['', Validators.compose([Validators.required, Validator...
2018/03/11
1,209
2,778
<issue_start>username_0: So I need to create such list ``` [2,4,5,8,9,10,11,16,17,18,19,20,21,22,23,32 ..] ``` The pattern goes as follows: 2^1,2^2, 2^2 +1, 2^3, 2^3 +1, 2^3 +2, 2^3 +3 .. So the number of repeats of (2^n +1, 2^n +2 .. is also doubling with each go ) I hope you got the point. I can create such list...
2018/03/11
1,179
4,637
<issue_start>username_0: After two days of fruitless research, I decided to join the community. I hope to get a solution. I develop a plug-in that, among other things, must implement the upload of documents. this should be done using ajax technology. the problem is that the request is approved, but admin\_ajax.php reac...
2018/03/11
946
3,182
<issue_start>username_0: Suppose I have a Mat of indices (locations) called B, We can say that this Mat has dimensions of `1 x 100` and We suppose to have another Mat, called A, full of data of the same dimensions of B. Now, I would access to the data of A with B. Usually I would create a for loop and I would take for ...
2018/03/11
1,301
3,995
<issue_start>username_0: I am totally new to django, and have been struggling with the following issue for a while. I am sending a sorted list of lists to a template from views.py to a template, in which each sublist (containing two elements) should be displayed. I would like the first element to be a link, in such a w...
2018/03/11
997
3,131
<issue_start>username_0: When trying to call Sendkeys method in selenium webdriver it is displaying below error: ``` Exception in thread "main" org.openqa.selenium.WebDriverException: unknown error: call function result missing 'value' (Session info: chrome=65.0.3325.146) (Driver info: chromedriver=2.27.440174 (...
2018/03/11
555
2,363
<issue_start>username_0: I have a Java application which uses Gradle as build system. This is multi-project built (several Java projects). When I run `gradlew test` and some of the tests are failing I've noticed not all tests actually run. If I add the following code to `build.gradle` it does run all tests but of cou...
2018/03/11
1,367
5,200
<issue_start>username_0: ``` private void materialRaisedButton16_Click(object sender, EventArgs e) { foreach (var process in Process.GetProcessesByName("RobloxPlayerBeta")) { process.Kill(); } materialRaisedButton16.Text = "Successfully killed process!"; // slee...
2018/03/11
1,396
5,496
<issue_start>username_0: I send user name and password details to login\_page.php through ajax and the same has been successfully passed on to the login\_page.php but after return Alert at the success function which is in the source php not working ``` $(document).ready(function() { $("#submit...