Questions tagged [modular]

347 questions
0
votes
0 answers

Simple python GUI API for multiprocessing?

Is there some simple GUI API in python to handle multi-processing in python? A GUI with multi-frame and each frame displays information of one process such that I can easily check status of each processing. That's all my needs. My story is both long…
Deep_fox
  • 405
  • 2
  • 6
  • 14
0
votes
2 answers

Modular arithmetic

I'm new to cryptography and modular arithmetic. So, I'm sure it's a silly question, but I can't help it. How do I calculate a from      pow(a,q) = 1 (mod p), where p and q are known? I don't get the "1 (mod p)" part, it equals to 1, doesn't it?…
Markus
  • 3,491
  • 3
  • 18
  • 6
0
votes
2 answers

How to design app to be modular / support plugins

I'm currently in the process of refactoring my webplayer so that we'll be more easily able to run it on our other internet radio stations. Much of the setup between these players will be very similar, however, some will need to have different UI…
Lee
  • 1
0
votes
2 answers

Enum in Javascript

In Javascript I'm going to read data (strData). But the data are String values, but I have to work with Integer values. For example: intData = strData; ...where strData could be "A", "B", or "C". But intData should be 1 for "A", 2 for "B", or 3 for…
Kevin
  • 229
  • 2
  • 10
  • 19
0
votes
2 answers

Modular vimrc: how to source vundle Plugins from diffrent files

I want to break down my vimrc in diffrent components. I manage my vim Plugins with Vundle and I want to have one file per plugin that tells vundle to manage it and to set configuration like this: vundle.vim: set nocompatible filetype off set…
ix-
  • 1
  • 1
0
votes
0 answers

How do I modularize HTML and JavaScript widgets?

I have a menu widget that I am trying to include on multiple pages. I have tried putting them in one php file and using php include. But the script part is being inserted right into the middle of the HTML and it comes before jQuery (at the bottom of…
allenylzhou
  • 1,431
  • 4
  • 19
  • 36
0
votes
1 answer

Fetch Data From Modular Form On Close

I am creating a modular form in C#, and would like to know how to retrieve the data from the modular form upon closing for usage on the main form?
Alan W
  • 291
  • 1
  • 5
  • 18
0
votes
1 answer

How to Implement Euclidean's Algorithm for Modular Caluculations

I was trying to figure out the calculation 85 = 7s mod 5 I have no idea how to do it but the text book I use says it is easy to use Euclidean's algorithm for such calculations Can some one tell me how to complete this calculation Thanks
user3109117
  • 11
  • 1
  • 4
0
votes
2 answers

Javascript Modularized programming memory/ performance usage: good or bad -- opinions?

I believe what I'm doing is called 'modular' (??) . Just learning Javascript. I am currently keeping each module in a separate .js file. This makes for easy maintenance and troubleshooting. Each file is formatted as a variable. This is an example of…
JSdc
  • 121
  • 1
  • 8
0
votes
1 answer

Java Extend class based on object in constructor

What I would like to do is extend a class based on what is in the constructor. Is this possible? With my limited knowledge of java this would be the best example of what I'm trying to do. public class Test extends extendClass { Object…
user2500587
0
votes
0 answers

Ajax HTTP Request GET

I am trying to figure out how to make this code cleaner by removing what is generic in order to make it more modular for my other button clicks. I was thinking of using window. global function in coffeescript but wanted to get the community's…
TheAce
  • 122
  • 1
  • 16
0
votes
4 answers

Simple modular guide in C/++?

I think modular is the correct term; to give a basic example if I was to create an encryption application which you could type in like notepad, and then save encrypted, however under the save menu there are options to save for the encryption methods…
Auraomega
  • 257
  • 5
  • 11
0
votes
1 answer

Cantor function translated from java to Python

I wrote a cantor function in java and I'm trying to translate it to Python. Can anyone give me some pointers ? Should I compare the fractions as one variable each or treat the top and the bottom as separate variables? java: import…
jayMur
  • 1
0
votes
1 answer

Linear Congruences

Part A: For the two systems of linear congruences, one system has integer solutions while the other does not. For the system with integer solutions, write down 2 of them whose difference is less than 192. For the other system, explain why no…
0
votes
1 answer

modular exponentiation in vhdl

I need to implement a modular exponentiation in vhdl for a spartan 6, with google i found the following paper describing a fast implementation for an virtex 4 https://www.iacr.org/archive/ches2007/47270272/47270272.pdf I'm wondering if it could be…