Mode is a state in which a program exposes a particular subset of its functionality.
Questions tagged [mode]
977 questions
10
votes
2 answers
ARM modes and why are there so many?
I'm currently reading/learning about ARM architecture ...
and I was wondering why there are so many modes
(FIQ, User, System, Supervisor, IRQ, ...).
My question is why do we need so many modes? Wouldn't just User and System be enough?
Thanks in…

Ilias Hom.
- 103
- 1
- 4
10
votes
3 answers
iOS Background Mode
I have a question about running an app in the background.
I know about how to do it, but Apple does not like the way I'm doing it.
To get you on the same page, I have a security app, and I need to it monitor the device even when it is in the…

JoeyMaru
- 212
- 1
- 3
- 10
9
votes
7 answers
Finding Mode of Vector of Ints in C++
So I'm trying to make a basic program to learn the basics of C++, I'm generating 100 random numbers from 0 to 100 and storing them in a vector, I am then displaying the sum, mean, median, mode, high and low of the vector. I have everything else done…

Cistoran
- 1,587
- 15
- 36
- 54
9
votes
1 answer
How can I start different mode with Emacs in command line?
Is there a way to start different emacs mode using command line? For example, is it possible to run emacs as follows?
emacs --org-mode # to start orgmode
emacs --python-mode # to start python mode
I can just run emacs to input 'M-x org-mode'…

prosseek
- 182,215
- 215
- 566
- 871
9
votes
2 answers
smallint is not working to genrate model and table rails 3+ postgreSQL
first I have run this command
rails generate model FeedbackComment type:smallint reply:text
after then
rake db:migrate
I am getting this error
StandardError: An error has occurred, this and all later migrations canceled:
undefined method…

Harman
- 1,703
- 5
- 22
- 40
9
votes
6 answers
emacs only delete-trailing-whitespace while saving in programming mode
following line removes all training white space while saving.
(add-hook 'write-file-hooks 'delete-trailing-whitespace)
but I want to hook this feature only when i'm in programming mode, so i did
(defun nuke_traling ()
(add-hook 'write-file-hooks…

rho
- 771
- 9
- 24
9
votes
4 answers
Algorithm to compute mode
I'm trying to devise an algorithm in the form of a function that accepts two parameters, an array and the size of the array. I want it to return the mode of the array and if there are multiple modes, return their average. My strategy was to take the…

Amber Roxanna
- 1,665
- 4
- 24
- 30
9
votes
2 answers
Mean shift implementation in C++
Can anyone recommend a lightweight mean shift clustering implementation in C++? I am already using OpenCV, however their mean shift implementation is for tracking, not clustering. I have seen EDISON, however, this is for image segmentation and not…

Aly
- 15,865
- 47
- 119
- 191
9
votes
2 answers
Alternative to Scipy mode function in Numpy?
Is there another way in numpy to realize scipy.stats.mode function to get the most frequent values in ndarrays along axis?(without importing other modules) i.e.
import numpy as np
from scipy.stats import mode
a = np.array([[[ 0, 1, 2, 3, 4],
…

oops
- 651
- 3
- 13
- 20
8
votes
2 answers
Python open() flags for open or create
What is the mode for open(..., mode) in Python 3 that opens a file that
create if does not exist
do NOT truncate
binary mode
I tested r+b but that fails on missing file, w+b truncates it, and a+b seem to turn all writes into appends, while I need…

ArekBulski
- 4,520
- 4
- 39
- 61
8
votes
3 answers
in rails what is the difference between development mode and production mode?
Currently, I am using the Development mode for my application, but I don't know if I should use the Production mode. If it is the case, how do i transfer all my data to the Production mode?
Will there be a risk of introducing bugs in this process?

fenec
- 5,637
- 10
- 56
- 82
8
votes
2 answers
R count number of times a value appears in each row
I need to find out for each mode (mode for a row, not a column) value obtainned, how many times it appear in its row from my data.
This is my data
> head(TiposMotivA)
Q1 Q2 Q3 Q4 Q5 Q6 Q7 Q8 Q9 Q10 Q11 Q12 Q13 Q14 Q15 Q16 Q17 Q18 Q19 Q20 Q21
1 5 …

Spartacus Rocha
- 546
- 1
- 6
- 14
8
votes
3 answers
FTPClient - how to use active mode
I made a small application that should upload files to an FTP server. The thing is that I used passive mode with the method
enterLocalPassiveMode()
Recently I was told that no passive mode is allowed on the FTP server, so I should make my…

plamenbv
- 96
- 1
- 1
- 5
8
votes
1 answer
gluPerspective, glViewport, gluLookAt and the GL_PROJECTION and GL_MODELVIEW Matricies
Original Question
I want to use 'gluPerspective', 'glViewport' and 'gluLookAt' to manipulate my camera and screen.
Which functions to I apply to which matrix mode? And in what order should I / must I use them?
For example, I am trying to set up my…

FreelanceConsultant
- 13,167
- 27
- 115
- 225
7
votes
1 answer
Presenter mode of a Xaringan presentation does not sync
When I use Xaringan's presenter mode, the window (in chrome) showing the presenter mode and the window showing the normal view (another tab in chrome) are out of sync. IE, moving slides in the presenter mode window does not move the normal slides…

StarScream2010
- 241
- 1
- 5