Othmane

1

votes
0

answer
8

views

why MSE on test set is very low and doesn't seem to evolve (not increasing after increasing epochs)

I am working on a problem of predicting stock values using LSTMs. My work is based on the following project . I use a data set (time series of stock prices) of total length 12075 that I split into train and test set (almost 10%). It is the same used in the link project. train_data.shape (11000,) te...
Othmane
1

votes
1

answer
100

views

Working with array and Dictionnaries after loading them from Disk using np.load and np.save

I have several huge arrays, and I am using np.save and np.load to save each array or dictionnary in a single file and then I reload them, in order not to compute them another time as follows. save(join(dir, "ListTitles.npy"), self.ListTitles) self.ListTitles = load(join(dir,"ListTitles.npy")) The pr...
Othmane
3

votes
0

answer
93

views

Javascript comparison does not work in Microsoft Edge

I created a calendar only with JavaScript; I need to compare dates of events stored in with dates retrieved from database, it works very well with Chrome and Firefox, but not with Edge. var td = document.querySelector('td'); var date = new Date('2017-06-22'); td.dataset.date = date.toLocaleDateSt...
Zakaria Othmane
19

votes
2

answer
6.8k

views

resolve a java.util.ArrayList$SubList notSerializable Exception

I am using SubList function on an object of type List. The problem is that I am using RMI and because the java.util.ArrayList$SubList is implemented by a non-serializable class I got the Exception described above when I try to pass the resulting object to a remote function taking as an argument a Li...
Othmane
5

votes
4

answer
6.1k

views

Trying to make a contact form example with symfony2

Here I'm trying to fill in a contact form then send it. However when I fill in the form and click on send I have this exception : UndefinedMethodException: Attempted to call method "bindRequest" on class "Symfony\Component\Form\Form" in /symfony/src/tuto/WelcomeBundle/Form/Handler/ContactHandler.php...
Othmane
2

votes
1

answer
778

views

Ionic (cordova) : Gradle: more than one library with package name 'com.google.android.gms'

I encountered an error when I execute Ionic run android,here is the error Error: more than one library with package name 'com.google.android.gms' You can temporarily disable this error with android.enforceUniquePackageName=fal se However, this is temporary and will be enforced in 1.0` Here are the p...
Sefiani Othmane
4

votes
2

answer
4.5k

views

Page reloads on hide/show button click using jQuery

I'm using jQuery to show/hide a div by clicking on the show/hide buttons. However, my code doesn't work because every time it returns to the way it was before when I click on my buttons. I'm almost sure that this is due to a page reload, because every time I click on a button it reloads the page. Do...
Othmane
1

votes
4

answer
59

views

Extract strings only from a line in php

I am using explode to extract only strings from a whole line. However using this: $array = explode(" ", $line); It splits the line by only one space, not by words. For example if $line is $line="word1 word2 word3" then I also have spaces among the entries in the array (it contains: "word1", "wo...
Othmane
2

votes
1

answer
89

views

can't get a pointer on my button in a dialogfragment

I am trying to build a simple DialogFragment which contains a textview and two buttons (send and cancel). I want to disable the button when the textview is first empty, but the positiveButton variable in my code is always null and I get the following exception: java.lang.NullPointerException: Attem...
Othmane
1

votes
4

answer
137

views

Java - Back to inheritance of static methods

I have read many posts and articles and now understood that static methods can not be inherited. To explain my issue, you can look at the following pieces of code: The main class: public class DataTable { public String id; public String date; public String reserve() throws SQLException { ...... Stri...
Othmane Bekkari
2

votes
1

answer
80

views

Relationship between 3 Models in Laravel

I'm trying to make a relation between 3 Models in Laravel 5.6 Here are my tables departments id name subjects id name teachers id name teach id_teacher id_department id_subject The relationship between all tables is many to many. Teacher can teach many subjects in many department department belongs...
1

votes
3

answer
2.2k

views

How to generate random numbers in C++ without using time as a seed

My program is supposed to generate random number with a fixed maximum of 9999. These numbers are used to create objects. Now the problem is when using time as a seed, if I create two objects one after the other both will be created with the same number (as the time hasn't changed in the process). Ho...
Othmane Qadiri
3

votes
4

answer
82

views

Split according to “:” in multiple lines

I have a set of files composed as follows: Product: Name Description: description of product I want to extract only the name and the description's content without the 'Product:' and 'Description:'. For this I do: div = re.split('Product:\s+|Description:\s+', contentOfFile) The problem is that I get...
Othmane
2

votes
1

answer
612

views

Ionic : first loading of my android application is abnormally slow

the first loading of my android application is abnormally slow, if someone has already encountered this problem, I already try removing all plugins and reinstall them, and remove the android platform and create it again, the loading time does not changed, here are the messages that the application s...
Sefiani Othmane
0

votes
1

answer
477

views

Docker + Laravel + Composer

I have made a docker compose file with three services web( nginx service) app(php-laravel-folder-service) database(mysal-service) for every service i create a dockerfile web.dockerfile app.dockerfile database.dockerfile. The problem is: in the app.dockerfile i want to install composer and execute th...
Zenzamy Othmane