Questions tagged [modular]

347 questions
0
votes
2 answers

Modularize UI Router

I'm currently working on a project using UI Router. My code currently defines states as part of the app config ( example below ) but the code is growing. Is there a good way to modularize this code both for organization and unit testing? For me…
0
votes
2 answers

Modular Exponentiation Issue in Java

import java.util.Scanner; class codeabbey145 { public static void main(String[] Args) { Scanner input = new Scanner(System.in); double A = 0; double B = 0; double M = 0; System.out.println("\n\nHow…
JDI
  • 19
  • 4
0
votes
1 answer

any modular mesh workflow for three.js? Example repeating objects

I am trying to figure out how I can have a mesh that repeats and duplicate it or clone it so it that it snaps to the corresponding. I believe there may be two parts of code. One to set the pivot of the object Snap to the last objects pivot maybe…
nufftalon
  • 25
  • 6
0
votes
0 answers

Jquery Ajax request made into a function

I'm working on a school project which uses a lot of ajax. To spare myself some time copy-pasting and a lot of room in the main code I want to create modular ajax functions. Found some examples on stackoverflow but somehow I'm not capable of getting…
Smoothal
  • 45
  • 1
  • 11
0
votes
1 answer

Using a browser-ified module in an app that then needs to be browser-ified

I have written a self contained angular js module using browserify in order to make use of the commonJS/Node style syntax. The module works fantastic when tested by itself, so I then use gulp to minify and host that on GitHub. I've then imported…
James Woodley
  • 501
  • 1
  • 4
  • 18
0
votes
2 answers

What is the angular way for cloning buttons?

I have a follow button for a particular user that should change its text to followed after it's clicked and vice versa. This follow button can show up in different modules on the page. When it's clicked, the follow button for this particular users…
Allen
  • 91
  • 3
0
votes
2 answers

OSGi structure for a project

I want to develop a system in order to manage readings from a text file. The main structure is based on 4 bundles: one to provide a timestamp for the log one to generate/provide the data one to keep a log (add the timestampand the values to a…
localhostloco
  • 27
  • 1
  • 6
0
votes
3 answers

Routing a modular app with Ampersand.js?

I am trying to write my first modular app using Ampersand.js but I'm having a few issues! Hoping somebody can point me in the right direction... Ok so I have configured Watchify and Browserify into my html file to create a bundled.js file that will…
0
votes
1 answer

Challenging Algorithmic Modular Multiples

While practicing coding problems, I ran into this challenging problem: Say I have a 7-variable equation, (A+B+C+C+D+B)(E+F+B+C)(G+F+F), and a huge list with up to 3500 numbers: A 1, 2, 3; B 1, 2; C 9, 1; D 1; E 2; F 1; G 1 This list basically gives…
Bob Billy
  • 285
  • 1
  • 6
0
votes
0 answers

Internal components in a native app

Within the NodeJS code, one can recognize a macro being used, to add information to a seemingly global struct, that allows the component to be available through that struct - or, possibly an array; I didn't figure it out. What I want to do is to…
Ingwie Phoenix
  • 2,703
  • 2
  • 24
  • 33
0
votes
1 answer

C++ - share a library among dynamic libraries

I developed a C++ modular program which loads its modules dynamically. Each module needs a specific static library and I linked this static library to each module. Is there any way to share this static library among all modules without linking it to…
peter
  • 3
  • 2
0
votes
1 answer

Android - Modular app design

I'm currently developing an app for my Computing project. To put it simply, it gathers information via an SSH session from a computer and displays the CPU usage etc. I've been wanting to add the ability to have multiple connections in the app…
Adam Price
  • 15
  • 5
0
votes
2 answers

Java to MIPS assembly convert (recursive method)

I am trying to implement a recursive modular exponentiation program in MIPS assembly. The program lets the user input three positive numbers x, n and p, and outputs (x^n) mod p. I was able to write the code for it in Java, but I am having a…
OMGitzMidgar
  • 41
  • 2
  • 7
0
votes
1 answer

Modular Sinatra App: Can I Replace Blocks with Methods?

Have you had success refactoring your Sinatra Apps in this way?: before require 'sinatra/base' class UserApp < Sinatra::Base get '/' do content_type :json User.all.to_json end get '/:id' do |id| content_type :json …
Pat Newell
  • 2,219
  • 2
  • 18
  • 23
0
votes
2 answers

How to make a modular website without using php?

Using php, for example, would be adding this into index.php: And in adding the html code in footer.php. But is it possible do the same only with html without using php or iframes?
Neil
  • 322
  • 1
  • 2
  • 13