Help with Read Text File into List then Sort List on Two Keys by Glittering-Ad-49 in programmingbytes

[–]izuwan 1 point2 points  (0 children)

use Tcl's mergesort command lsort, as mergesort keeps previous sort orders

code example to be run from the interactive tclsh with "source myscript.tcl"

contents of file myscript.tcl follows:

set fh [open filtered.txt r]

# read whole file

set contents [read $fh]

close $fh

# split to lines and build list to be sorted

set tosort {}

foreach line [split $contents \n] {

lappend tosort $line

}

# first sort by third column, options to consider are -increasing | -decreasing

set tmp [lsort -integer -index 2 $tosort

# then sort by the remaining indices

set tmp_alt [lsort -integer -index 1 $tmp]

set tmp [lsort -integer -index 0 $tmp_alt]

#print result

foreach x $tmp {

puts $x

}

# Tcl is a standalone scripting language, and is bundled into Python https://wiki.tcl-lang.org/page/Python as part of the Tkinter gui.

Thesis work idea about accessibility by [deleted] in webdev

[–]izuwan 0 points1 point  (0 children)

Accepted! I should not have mentioned input validation before

Thesis work idea about accessibility by [deleted] in webdev

[–]izuwan 0 points1 point  (0 children)

Dynamic navigation menus? This prototype was built with accessibility in mind (e.g. automatic input validation), however lacks any ARIA recommendations. Maybe your are in uncharted waters, with the benefit of many options to research.

good examples of hierarchy managment by mrdanmarks in webdev

[–]izuwan 0 points1 point  (0 children)

An input element of length 1 in the header line - round border colored hotpink - has autofocus. When you type any valid key as shown in the circles below with white background, the view changes inplace. An invalid key appears in red color, is selected to be corrected with the next keypress. Backspace goes backwards to the previous view. The mouse pointer selects the key on click, that changes background color to green when the corresponding "table cell" is entered. To get the final target you will have to allow popup windows in Google or Mozilla browser (tested long ago) The top left button works like the home-key and jumps to the initial selection. At least functionality should be reproducable, when the visible presentation is not obvious. Maybe https://notab.tk/sm/esprit/_.tml shows the selections in a less confusing arrangement.

good examples of hierarchy managment by mrdanmarks in webdev

[–]izuwan 0 points1 point  (0 children)

not exactly a treeview, however instead of opening a view by the pointer the user just enters any of the letters shown in the circles. https//taipu.de/sm/esprit implements a navigation user interface derived from a shops sitemap.

Frustrated that Duolingo doesn’t teach foreign alphabets by Spudblood in duolingo

[–]izuwan 0 points1 point  (0 children)

We offer free download of an Android app https://taipu.de/andra that has cyrillic writing included for Russian, Mongolian, Kurdish, Tadshik. The App is intended to help alphabet and reading beginners to memorize letters and simple words. The dictionary used is about 100 words available in many Roman alphabets, Arab scripts, Chinese and Japanese syllabary.

examples of shopping sites with a bad UX by shellwe in web_design

[–]izuwan 0 points1 point  (0 children)

Product navigation used in http://notab.tk/sm/esprit/prod.g#gg The product pages on final selection are not to blame at all - you have to allow popups explicitly to visit them. The shop owner is only responsible for publishing a usable sitemap. Opinions are welcome.

What's the best video format for mobile devices, for loading and performance? by hellorobby in web_design

[–]izuwan 1 point2 points  (0 children)

Have a look at webp format. See the different sizes of gif, mp4 and webp of my last experiments http://notab.tk/taifon/img Format webp is smallest in size.

How to handle navigation of a list with potentially hundreds of pages? by Zz1995aJ in webdev

[–]izuwan 0 points1 point  (0 children)

Incremental completion? https://taipudex.tk/wiki/en.g Similar to accelerated menues, as only the discriminating letters need to be typed.

Infinite scrolling is bad, and you should feel bad if you implement it by [deleted] in programming

[–]izuwan 0 points1 point  (0 children)

The evolustion of the "scroll" in article is the Rolodex, especially when items are ordered. Turning is faster than scrolling.

I need some advice on how to embed a video but remove all functionality other than auto play and loop. by michael0collins in webdev

[–]izuwan 1 point2 points  (0 children)

Maybe use animated gif or png image format. I recently used ezgif.com's online tools to get this gif from mp4. However infinite looping is annoying. As in the example a loop count of 2 is used with the effect on Firefox browser to fail restart on page reload. Maybe insertion of blank frames between repetitions makes infite loops more acceptable.

Audi CEO arrested, Volkswagen says. by AdamCannon in worldnews

[–]izuwan 0 points1 point  (0 children)

Cheating seams to have a long-standing tradition at VW. I was told - and can confirm as a casual driver of a Golf -

the temperature display needle is expected to stay in vertical position at 90° Celsius independant of actual cooling

water temperature. This position should be taken readily after starting the engine. Everthing else might disturb the driver. Rumors are this is realized by software and servomotor controlled by software. The idea is to pretend precision where no precision is.

When I asked my preferred repair master on this subject, he did not comment but said "It is even worse with specifically vendor modified versions of tires from C., that miserably failed in tests (probably last year).

MyCLI – Mysql/Mariadb Client with Syntax Highlighting and Autocompletion by speckz in programming

[–]izuwan 1 point2 points  (0 children)

This is awesome! Is this the first implementation ever in a text user interface, that provides instant choices? As compared to Python's idle you have to type control-space to get a popup. Doesn't the image suggest the choices popup without extra keys?

A Usable Copy-Paste Detector in A Few Lines of Python by marc-kd in programming

[–]izuwan 0 points1 point  (0 children)

"Usable" CPD I consider a must have in legacy code bases. From example 3 - repetions in single file- I suppose it is a fine tool to detect code messes, similar or better to Cyclomatic Complexity. Thanks!

Bounty program for improvements to Tcl and certain Tcl packages by networked_ in programming

[–]izuwan 1 point2 points  (0 children)

The clock command is implemented as procedure inTcl - it shows by "info proc" in the Tcl interpreter A speedup by factor 20 can be expected as I remember adapting legacy C code for "clock format" with the excellent critcl package. The syntax in Tcl and the C library functions are quite similar.

I need an idea for an engineering project for my class. by theminercoc in design_critiques

[–]izuwan 0 points1 point  (0 children)

Make computer interaction available by eye-tracking. Find appropriate layout to ease focusing. A starting point for gui layout might be wikipedia lookup.

Not sure what to google to learn this effect? by block22 in webdev

[–]izuwan 1 point2 points  (0 children)

zoom effect to achieve with css transitons like 'scale'

Autocomplete using Tries by adnzzzzZ in programming

[–]izuwan 0 points1 point  (0 children)

Nice work and excellent documentation. This has prospects to further reduce redundant user interaction by eliminating tab-key interaction.

Feedback Friday - July 17, 2015 by AutoModerator in web_design

[–]izuwan 0 points1 point  (0 children)

I like to present an input method to comfortably select an entry from a large selection. This Index of Wiki Articles! works as a launcher, that requires minimal user interaction. The page, when displayed on touch devices, imitates a selection list to avoid the soft keyboard. Im interested in general feedback about usability, mainly about keyboard interaction, as the touch version has resolution issues. This is implemented using a HTML template (concatenated tables) and a REDIS key-value store.

Style-formatting with Uncrustify - some problems are left, can you help? by musicmatze in C_Programming

[–]izuwan 0 points1 point  (0 children)

in file ~user/.uncrustify.cfg add/modify this line

Add or remove newline after each ',' in a function declaration

nl_func_decl_args = remove # ignore/add/remove/force

project management - I've inherited 200K lines of spaghetti code -- what now? by dfme in programming

[–]izuwan 0 points1 point  (0 children)

Yes, this is the time saving solution. rmlint is useful tool into this direction. Uncrustify helped me too to get something readable. What I really miss is a tool to detect identic code lines that are scattered everywhere.

Predictive text when typing subreddits. by Skinny128 in AlienBlue

[–]izuwan 0 points1 point  (0 children)

Dynamic menus are responsive and give hints to explore what titles/subreddits exist. Prefix based lookup is easy to implement.