Questions tagged [modular]
347 questions
0
votes
1 answer
Python Modular scripting include another script
Need to make a container app that will run different configurations of modules.
i.e. container app is A, inside A i can add B that is another script that count, else I can add C that is a script that read a value.
would it be possible with imports?…

user2239318
- 2,578
- 7
- 28
- 50
0
votes
1 answer
grunt-modules : feedback about pros and cons
I've crossed the path of this npm module for grunt, github.com/ozanturgut/grunt-modules, which gives a way to make a real separation in Gruntfiles.js, making it more readable.
But I'm wondering why it isn't more encouraged as a best practices.
Any…

user2977367
- 61
- 3
0
votes
4 answers
Add a class to every 4th div in loop
Here is my code:
for($x = 0; $x < count($groupSmall); $x++){ ?>
} ?>
I would like to add a new class to every 4th div in this loop. I know it can be…


user2957151
- 21
- 3
0
votes
1 answer
Python, Keeping a dynamically named file open in a large modular program
I am trying to create a logfile for a large modular program. The name is dynamically produced with a timestamp and I can't think of a good way to pass the open filename other than to make it a global variable:
import time
def CreateLogFile():
…

user2883778
- 5
- 2
0
votes
1 answer
Select a news category in PHP
Hi I'm new on the web and do not understand it well, sorry if I make one mistake. I'm from Argentina, my English is very poor
I am creating my site a news system with categories. The news is that according to the category selected, but if not select…
0
votes
1 answer
Expression involving modular exponentiations in C++
I am wanting to evaluate the expression, (an + bn + cn) % 1000000003 , in C++. I a getting overflow errors when n is very large. Can someone help me with this ? More specifically a = q + 1, b = - 2 * q and c = q - 1. I have been following the…

Mayank Jha
- 3
- 3
0
votes
0 answers
PHP + Modular structure + Includes
I'm trying to make a backend panel in my websites, so that every customer can manage basic settings. My idea is make it modular, so i have the following folder…

mauriblint
- 1,802
- 2
- 29
- 46
0
votes
1 answer
Piece of modular code laravel where to put [Laravel, PHP]
I have a tiny piece of code on my masterpage in laravel but it is a bit out of place, now I am wondering what is the best place to store this bit of code? It does need to run on every single page though.
…

Stephan-v
- 19,255
- 31
- 115
- 201
0
votes
0 answers
LoadError when write sinatra helpers using bundler
follow Sinatra write extension document, I write a ./lib/sinatra/test_helper.rb file containing my TestHelper, but using rackup start I got this error:
/...PATH.../vendor/cache/ruby/1.9.1/gems/backports-3.1.1/lib/backports/tools.rb:328:in `require':…

C.C.
- 1,060
- 3
- 13
- 25
0
votes
1 answer
Polynomial with modular coefficients library in python
does someone knows a simple library to do
calculations on Polynomial with modular coefficients?
I've seen numpy, but this one seems like it does not support
modular coefficients...
Thanks,
Shai.

buc030
- 425
- 3
- 14
0
votes
0 answers
Modular JSF with Glassfish
I have a huge problem.
I'm trying to create a modular JSF app, like the plugin system in liferay, but less complex.
My question is:
Can I load/unload dynamically a JAR file (module or plugin that will be used for my app) using JSF 2 and…

wsaca
- 55
- 11
0
votes
1 answer
Determining latency and throughput for modular multiplication on CPU and CUDA
I need to determine both latency and throughput for (unsigned) modular multiplication in CUDA and on CPU (i5 750).
For the CPU I found this document, pg 121, for the Sandy Bridge, I am not really sure which one I should refer to, however for the …

elect
- 6,765
- 10
- 53
- 119
0
votes
1 answer
Combining NodeJS files
Standard NodeJS app utilising module.exports to make the code modular. We'd like to combine all of those files together into a single file a la RequireJS on the client side (which is what we use there). Does anyone know an easy way to do this…

nick-brown
- 31
- 2
- 8
0
votes
1 answer
Scala: Using span with modular arithmetic
I have a List[Int] from 1 to 10 and want to make a List[List[Int]] containing two List[Int]: one list containing even numbers and the other containing odd numbers. The result should be like this:
List(List(2,4,6,8,10),List(1,3,5,7,9))
I tried…

Vu Ke Luu
- 5
- 1
0
votes
0 answers
Modular javascript string handling framework
I'm building a js-based collaboration system, part of which breaks text into components to allow portions to be dynamically swapped out, rearranged, etc. Ultimately I want users to be able to highlight portions of the text, which segments the…

jtrick
- 1,329
- 18
- 23