Questions tagged [modular]

347 questions
1
vote
0 answers

How can i build a modular program with angularJS?

for a custumer i build a program which show contracts and a detail for a chosen contract for a lot of facilities. In the detail you can add and edit the data. Now the customer want see looseparts to on the same way. But not all locations of my…
1
vote
1 answer

Making a PHP class more modular

I'm trying to make a modular framework. I make a lot of websites and want to reuse a lot of code. Now I do that by making normal functions in separate php files that I include. For example I put all database functions in database.php al login code…
Nick de Kruijk
  • 121
  • 1
  • 6
1
vote
1 answer

Sinatra doesn't know this ditty even when default route is implemented with modular style

I'm running MacOS mavericks whith jruby and am trying to write a basic modular sinatra app. Here's what my config.ru looks like require 'app/app' run Sinatra::Application I invoke it like this with rackup, you can see the 404 errors - rackup -s…
nikhil
  • 8,925
  • 21
  • 62
  • 102
1
vote
1 answer

using revealling moduler pattern for complex in javascript

I have a very complex class so i decided to break into sub modules and trying to use revealing modules pattern. I have main class and decided to divide into smaller container function. but in current scenario But i am not able to access any…
1
vote
2 answers

Using Java to compute 11^-1 mod 26

How would I go about this n Java? double power = (Math.pow(11,-1)) % 26; System.out.println(power); Just returns 0.09090909090909091. According to wolfram Thanks!
Java Noob
  • 67
  • 1
  • 6
1
vote
0 answers

Pluggable Javascript (SPA) application development

I am currently evaluating technology stack for my next pluggable JavaScript(SPA) project. After researching couple of months, I end up with 2 frameworks. ScaleApp AngularJS I really like the ScaleApp architecture and idea behind the framework as…
Tapas Jena
  • 1,069
  • 4
  • 14
  • 23
1
vote
5 answers

Modular System in .NET Able to be Altered at Runtime

Currently I'm working on a .NET hobby project that involves a complex system of objects which work in combination with eachother. However, I encountered a little problem, I am unable to find a mechanism in .NET to support replacing code at runtime,…
ax1mx2
  • 654
  • 1
  • 11
  • 23
1
vote
0 answers

Find matching object in 2 dimensions given 1-4 adjacent connections

Background I'm trying to write some modular style code in Maya (it's in 3D, but I'm doing it in a 2D style for now), where you make an object, and with each side (x,y,-x,-y), define a connector. There can be multiple connectors per side, and…
Peter
  • 3,186
  • 3
  • 26
  • 59
1
vote
1 answer

Modular Exponentiation

I am trying to use this method in order to break down bases with large exponents because data types in the standard C++ library do not store numbers that large. The problem is in the last loop where I use the fmod() function to mod my large…
user3519448
  • 111
  • 1
  • 9
1
vote
1 answer

angularjs + requirejs structure to build a huge modular app

I'm trying to build a huge Modular Web App with AngularJs and RequireJS. This is my directory that I want to build: |--index.html |--css |--images |--libs | └--angular.js | └--angular-route.js | └--require.js | |--js | └--app.js | …
1
vote
1 answer

Modular Exponentiation in java (the algorithm gives a wrong answer)

i am trying to implement the Modular Exponentiation but i can not get the right answer : public static BigInteger modPow(BigInteger b, BigInteger e, BigInteger m) { //To Calculate the Modular Exponentiation And Return an object of BigInteger class …
user2835815
  • 23
  • 1
  • 7
1
vote
1 answer

Node.js and Express - Regarding rendering pages in a directory with one call

Hopefully I'm not duplicating a question here, but I looked around and didn't see anything that addressed this specific issue. I'm constructing some pages by creating a bunch of unique content blocks that I store in a folder - things like this: h4…
1
vote
0 answers

Modular exponention fast way

I'm working on a RSA assignment. Since the numbers were getting pretty large is used the InfInt biginter library. Now, the problem I'm facing is, if the numbers are too big like 6-7 digit input, the exponention function is taking too much time.…
rbk
  • 283
  • 2
  • 3
  • 16
1
vote
4 answers

What is the definition of modular scripting in the FileMaker world?

How do you define modular scripting in the FileMaker context? I am not providing my definition yet on purpose. I want to know what you think. Thanks!
1
vote
1 answer

Script loader without having to wrap code?

I would like to keep my JavaScript code modularized in different files, but would like to do so using native JavaScript objects like this: (function ($, _, val) { return { myTest: 'abc', init: function (options) {...} }; })(jQuery,…
TruMan1
  • 33,665
  • 59
  • 184
  • 335