Questions tagged [modular]

347 questions
0
votes
1 answer

javascript functions not working when in put in different files

I'm new to this whole thing, and am making a web app that relies heavily on dynamically loaded html pages into a div on the main page. The main page links to various js files including jquery and some of my own. As well as this, each of the loaded…
cybermotron
  • 987
  • 2
  • 10
  • 29
0
votes
1 answer

Access to imports made from separate files in python?

So I'm making a modular program for a security system in python, but I can't access modules I've imported in main.py from other scripts. That is, say I have main.py that imports the random module. I use import camClass to import a script containing…
Jckxxlaw
  • 391
  • 1
  • 4
  • 12
0
votes
1 answer

Modular Exponentiation with binary representation of exponent

Okay so I have an assignment to compute the binary representation of an integer and then reverse it into right to left notation and place that into a vector and perform modular exponentiation on it. I have the binary representation down, but I get…
kbman99
  • 21
  • 2
0
votes
2 answers

Decrypt following string

The matrix A is 7 1 4 5 0-25 represent a-z in alphabetical order. Find A inverse and hence decrypt the ciphertext fact .working modulo 26 Got this question in a test answer was supposed to be a word I got veho can anyone…
0
votes
1 answer

Modular JS and Prototypal Inheritance

I'm trying to wrap my head around prototypal inheritance in JS. Is it possible for a module to borrow from another module's prototype? The only way I've managed this so far is by accessing it down the prototype chain. Let's say, the first module…
JoshuaT
  • 67
  • 10
0
votes
2 answers

Creating Email Field Component in ExtJS6

I am a beginner and I am trying to create the login page using ExtJS6. The simplest way I can do this is to create a panel containing items such as 2 text fields (username and password) and the button,but since the email and password text field are…
mubeen
  • 813
  • 2
  • 18
  • 39
0
votes
0 answers

Obj.Constructor function property using this returns as the function property rather than the Object

So I am trying to make a modular system that so far is working besides getting a variable/object property this is what I am doing var obj1 = function(){ this.objList = []; var obj2 = function(){ this.var = 0; } this.createObj =…
0
votes
1 answer

Cannot set session variables inside HMVC module using CodeIgniter

I ran into a problem while using CI 3.0.3 with HMVC extension. I want to set session variables when user successfully logs in. So I have User.php class which stores login view, and input validations. if($this->form_validation->run() == true): …
Orkhan Ahmadov
  • 103
  • 2
  • 7
0
votes
1 answer

Routing user to another rails engine

Creating a practice modular application where basically all the functions of the app are contained in engines. I had a question when it comes to adding another engine. Is it possible to route a devise logged in user to a root of that feature. My…
0
votes
2 answers

User roles with devise Modular Rails 4

I've been struggling with this issue for weeks. My goal is to create 3 different types of users. Regular, Page , Venue. Upon registration the user is able to select that role [Regular,Page or Venue]. depending on the role the user chooses they're…
0
votes
1 answer

js module target class

I'm new to modular JS. I am trying to convert a simple class toggle to a module, but I can't target the correct LI. This toggles all of the arrows. var toggleArrow = { init: function(){ this.cacheDom(); this.bindEvents(); …
sandraqu
  • 1,428
  • 1
  • 14
  • 31
0
votes
2 answers

How to use cropper.js in typescript modular project?

I am using jspm install npm:cropper which installs cropper and adds "cropper": "npm:cropper@^2.0.1" to package.json aslo i could find it under \jspm_packages\npm folder But its not loading in network tab. any idea what am missing? P.S:- I did not…
hasain
  • 333
  • 3
  • 10
0
votes
1 answer

Adding elements of two big arrays in java

I have to come up with an algorithm that adds elements of two big arrays(size of each array is 10⁹ of integers that can go up to 10⁹). When declaring two arrays in java with size of 10⁹ each, I get a memory exception! The problem statement:…
Oussama Achech
  • 131
  • 1
  • 11
0
votes
0 answers

Modular Webdevelopment Java

I plan to develop a Java Webapplication with Primefaces, JSF, EJB / JPA etc. That application should be modular, so i can attach new programparts during the runtime. Just like in Wordpress (I love that Plug-in behaviour!). In example, i have a…
Kevin Busch
  • 191
  • 1
  • 4
  • 17
0
votes
1 answer

Execute groovy code in last step of current test case in modular framework without teardown script

I have a soapui framework which is modular. This means that I can execute test cases based upon business operations which are organized into different suites. With this in mind, I will need data from other test cases to use in my current test case…
Grant Edwards
  • 27
  • 1
  • 7