Questions tagged [user-interface]
18 questions
20
votes
2 answers
How to devise an algorithm to arrange (resizable) windows on the screen to cover as much space as possible?
I would like to write a simple program that accepts a set of windows (width+height) and the screen resolution and outputs an arrangement of those windows on the screen such that the windows take the most space. Therefore it is possible to resize a…
daniel.jackson
- 441
- 2
- 7
18
votes
13 answers
Why do we need full-fledged workstations running massive OSes with massive software?
I've grown up with computers. While watching old computer TV programmes and documentaries and reading the news about constant issues with these modern systems -- everything from the sheer amount of change/bloat/costs to all the security and privacy…
Confused Computeruser
- 221
- 2
- 3
10
votes
2 answers
Weak hashing function for memorable IPv6 addresses
IPv6 addresses in the form of 862A:7373:3386:BF1F:8D77:D3D2:220F:D7E0 are much harder to memorize or even transcribe than the 4 octets of IPv4.
There have been attempts to mitigate this, making IPv6 addresses somehow more memorable.
Is there an…
Jason Kleban
- 557
- 3
- 12
9
votes
3 answers
Why is the CPU Involved During Keyboard Echo?
I'm currently studying for a computer science exam, and I've come across a concept that has me somewhat stumped.
When one types a key on the keyboard, an ASCII character is transmitted to the CPU. Upon reception of this character, the CPU outputs…
MMMMMCK
- 193
- 3
7
votes
1 answer
Efficient queriable data structure to represent a screen with windows on it
(this is related to my other question, see here)
Imagine a screen, with 3 windows on it:
I'd like to find an efficient data structure to represent this, while supporting these actions:
return a list of coordinates where a given window can be…
daniel.jackson
- 441
- 2
- 7
6
votes
1 answer
How to score a given arrangement of windows on a screen to produce good layouts
(this is related to my other question, see here)
I would like to write a function that scores a given arrangement of windows on a screen.
The purpose of this function is to determine whether a particular layout is good and by going over other…
daniel.jackson
- 441
- 2
- 7
3
votes
1 answer
Mathematical model for a webpage layout?
Getting layout right (even if only a structure is considered) with HTML5/CSS3 is still more like an art or black magic.
On the other hand, there are other GUI systems (like wxWindows and Tcl/Tk) and some GUI research (like The Auckland Layout Model,…
Roman Susi
- 283
- 1
- 8
3
votes
2 answers
"Flow layouts" inside a GUI -- how do I come up with a good algorithm?
I was trying to write some simple code for a "flow layout" manager and what I came up with initially was something like the following (semi-pseudocode):
int rowHeight = 0;
RECT rect = parent.getClientRect();
POINT pos = rect.position; // Start at…
user541686
- 1,187
- 1
- 10
- 17
3
votes
1 answer
Algorithm for efficiently sorting large lists based on user preference
I’ll preface this question by saying I’m having a difficult time even formulating the problem, so my explanation might be fuzzy and/or I might be missing obvious solutions.
I have a list of 479 books which I would like to sort based on a “Fuzzy”…
kettlepot
- 131
- 2
2
votes
1 answer
Is what the all-zeroes instruction does considered in machine instruction design?
I remember using a simulated machine with with a minimal instruction set in university. In particular I remember that the instruction that consisted of all zeroes loaded was a LOAD instruction. So, if you made a mistake and began executing empty…
Ryan1729
- 364
- 1
- 11
2
votes
1 answer
User recognition through keystroke pattern
Hello thank you for taking time looking at this question. Is it possible to determine the keystroke patterns for a certain user?
My idea is that, when the user enters their username & password it must contain a specific keystroke pattern that when…
Hornet Thunder Whip
- 31
- 3
2
votes
0 answers
A Single Row GUI Layout Algorithm
I need a layout algorithm and use it in the GUI, but I can't use existing GUI toolkits at the moment, so I would like to find a layout algorithm.
I only need to do a single row layout, and here is the description of the algorithm.
Input Data
First,…
skiars
- 21
- 2
1
vote
0 answers
Can Fiedler vector be used for displaying an undirected graph in a sequential manner?
My problem is to display an undirected unweighted graph in a grid format ( $ (n \times 3) $ - matrix for simplicity) without compromising on the connections displayed on the screen (the only connections that would be displayed are between adjacent…
Siddharth Joshi
- 141
- 5
1
vote
1 answer
Which "entity" is working at more deeper level than Characters of a program?
It is commonly told that, while we write a program, we input with our language (A, B, C, D etc), whom computer translates into machine language into machine language made up of Zero (0) or switch off and One (1) or switch on, a.k.a. ASCII code.…
user80975
1
vote
0 answers
Constraint-based layouts for GUIs
The VPRI institut founded by Alan Kay has some papers on constraint-based layouts for GUIs based on constraint solving.
For instance:
Wallingford: Toward a Constraint Reactive Programming Language by Alan Borning (2016)
A Report on KScript and…
mrsteve
- 661
- 1
- 4
- 10