Website Design – Toggle Switch Position Correct?

The control should clearly tell the user where to click / swipe and what the result will be.

Take these iOS switches for example:

IOS style controls

Side by side, a user can easily see which setting is activated and which is deactivated. However, if you observe how users interact with them (especially if they are all in the same state or only one exists), you will find them pausing to consider how to change the setting.

Apple deliberately preferred the style of usability (similar to the invisible scroll bars of Mac OS). Once you've learned it, control is obvious, but the beginner has to pause.

If you embed the "value" directly in the control, you are giving a style in the name of clarity. This is less sexy than the iOS example, but the user will understand at a glance what is expected.

In the following example, I reversed the most common position (on right), but nobody will be confused.

I also used a common "positive" color for on. Your use of red for breaks with conventions in a way that can further confuse the user.

Toggles with embedded check and X symbols

* UPDATE * In response to the commentators' observations, I took a second look at my short mock. I think this does a better job of showing the condition. Thanks for the criticism!

Another purely anecdotal finding from me: position the setting label on the left and the control element on the right. This enables the user to scan the label before worrying about the status of the control.

Switch from unit to Godot

hi Guys.

This is my first question about this community and I am sorry if I am somewhat unclear. First of all, this is not a question of solving a particular problem. I just want to hear some advice on changing a game engine.

I've been a Unity developer for 2 years and I really love making games, but there are some things that make me feel a little uncomfortable (for example, prices for unlocking some features or closed source). And that's why I'm thinking about changing the work environment from unit to Godot. If there is someone who has done this before, please let me know if it is worth investing my time in a new engine or what difficulties I will encounter if I give up the unit and switch to Godot will.

Again sorry if this is an irrelevant post for this page or I'm not clear enough.

mysql – Which is faster in this context between PHP switch case or database query

I have an online PHP / MySQL based Bible search app. There are currently only 5 book versions.

I am now asked to add more than 130 Bible versions. I think if this will affect performance.

The options I am considering are as follows.

Encode the different book names and use the PHP Shift key to specify the book to display. This is my current setup and this works well for 5 languages ‚Äč‚Äčthat are currently added in my app. I did it because the database I get has only one book number column and no book name.

If the selected language is African, the following code checks the book number and applies the name accordingly (66 Bible books).

case "101": $book ="101"; $bookword = ("GENESIS" . ' ' . strval($chapter_id) . ':' . strval($verse_id)); break;
case "102": $book ="102"; $bookword = ("EXODUS" . ' ' . strval($chapter_id) . ':' . strval($verse_id)); break;
case "103": $book ="103"; $bookword = ("LIVITIKUS" . ' ' . strval($chapter_id) . ':' . strval($verse_id)); break;
case "166": $book ="166"; $bookword = ("OPENBARING" . ' ' . strval($chapter_id) . ':' . strval($verse_id)); break;

This is done every time the user changes the language selection via the pulldown menu

Add a column bookname In each table (each table is a Bible version), this means an additional 31,000 entries for each book. In this way, the book name is already included in the query result. in the Option 1After the query, only the book number is available. I need to use the PHP switch to add the book name.

Will there be a significant difference between the two in terms of performance?

All advice on using the Internet service provider's modem / router combination with an Internet switch

I just bought an internet switch because I couldn't use ports on my own router (I'll add another PC later). Before I install everything, I want to ask you if this method that I want to use is correct?

    *Internet Switch model: TP-LINK TL-SG108PE
    *ASUS Router Model: ASUS RT-AX88U
    *ISP Router is connected with coaxial connection

Image from my_plan

Windows 10 – how to switch between monitor speakers and headphones connected to the monitor?

I think there are similar questions here about switching between speakers and headphones on different ports, but my situation is different.

What I have is an HDMI source that is connected to my monitor and has its own speakers. It also has audio output to which I connected the headphones. The monitor automatically routes the sound to the headphones when connected and only to the speakers when I unplug them.

Is there an easy way to leave the headphones connected to the monitor but to switch between speakers or headphones?

The monitor model is Samsung CF591

How do I run a shell / bash switch case in a Makefile variable assignment?

I'm trying to do a bash switch case in a global make variable. The switch runs perfectly by itself:


case "$(uname -s)" in CYGWIN*|MINGW*|MSYS*) echo "Hi!";; esac;
# Hi!

I tried to use this answer as an example: do you assign a value for a makefile variable to a result of a bash command? VARAIBLE := $(shell thing) I have an invalid syntax:

SHELL := /bin/bash
.SHELLFLAGS := -eu -o pipefail -c ${SHELLFLAGS}

IS_UNIX := $(shell case "$$(name -s)" in CYGWIN*|MINGW*|MSYS*) printf "Hi!";; esac;)

    echo IS_UNIX ${IS_UNIX}

# /bin/bash: -c: line 0: syntax error near unexpected token `newline'

The echo IS_UNIX and the printf "Hi!" are just dummy things to make this example simple. In my real code, I use it like this:

ifeq (${OS},Windows_NT)
    ifndef PYTHON_BIN
        PYTHON_BIN := $(shell which python)
        IS_UNIX := $(shell case "$$(name -s)" in CYGWIN*|MINGW*|MSYS*) printf "Hi!";; esac;)

        ifneq (,${IS_UNIX})
            PYTHON_BIN := $(shell cygpath -w "${PYTHON_BIN}") 

Clustering – MSSQL Server: Preferred owner failover switch

I have inherited some Windows servers with SQL Server installed. Some of them are in a failover cluster that is perfect in the event of a failure.

However, I don't have much experience with SQL Server administration and I have some questions that may sound silly to someone, but please excuse me.

Okay, as I said, a failover is configured between these SQL servers, and if one fails, the preferred owner of the instance is changed to the available one. However, there is no failback, and when the main SQL server is running, the instances are not changed to the main server.

And here are my questions:

Is there a way I can check which is the preferred owner of each instance?

How I can fail back the failed over instance to its preferred owner?

Thank you in advance!

Transit – New Istanbul Airport and 1 hour to switch from domestic to international flight

So I will have exactly one hour between flights on IS Airport.
Different reservations, no guarantee for missed flights.

Turkish Airlines domestic flight 16:30 <->
LOT Polish Airlines International from 5:30 p.m.

The question is will I be able to do it

Does anyone know whether it is easy and relatively quick to change after arrival or whether the entire facility has to be left and re-entered?
What about passport controls?
From what I've checked, there are no separate terminals between domestic and international flights, so I think I will arrive in the common area. In theory, it should be easy to change the gate (+ passport control).

All tips and experiences shared here are very much appreciated!