Feedback that maximum value is reached with keypad

I have a numerical edit page on a small touchscreen. There’s a display field that displays the current value, a keypad, and increase and decrease buttons.

Right now, if the user is using the keypad or arrow keys and the value would exceed the maximum value allowed, the current value is set to the maximum. For example if the maximum value allowed is 9999, then while the user is typing 1,2,3,4,5,6 the value shows 1, 12, 123, 1234, 9999, 9999. At first I thought this was a decent clean indicator of what the maximum value was, and we didn’t have any trouble in our preliminary user testing everyone seemed to understand.

However, if you switch units of measure, then one of the maximums turns out to be 1.34. This feedback mechanism then very much looks like a bug. If the user types any number above 1 then suddenly the value reads 1.34. This made it appear like the keypad was broken since basically any button resulted in this apparently random value appearing.

Some ideas I’ve had to help make the process clearer:

  1. Round the limit so it seems more obviously a limit (e.g. make the limit 1.00)
    • I don’t like this solution because it artificially reduces the capability of the machine based on which units you’re using.
  2. Make the increase arrow visually appear disabled whenever the value is at the maximum.
    • I should probably do this anyway, but I’m not sure it will be enough, especially if the user is using the keypad and not therefor not paying attention to the arrow keys.
  3. Make all keypad buttons (except delete) visually disabled when the maximum is reached.
    • Again this is probably something I should do anyway, but I’m again not sure if it will be enough, it may still be confusing.
  4. Make any keypad buttons visually disabled if pressing them would result in a number larger than the maximum.
    • This would make it hard to determine the maximum if I disabled the functionality of the buttons, and I don’t want to disable the visuals without disabling the functionality.
  5. Allow (at least temporarily) invalid numbers to be entered.
    • I feel like this just kicks the can down the road. I have to deal with the invalid value at some point and I think immediate user feedback is the way to go.
  6. Pop up a notification / warning
    • Ugh… I hate when UI’s interrupt me. Also any text added must be translated, so we’re trying to keep text to a minimum.
  7. Flash the value?

Additional related info: The value changes color to indicate when it’s being edited, and after a few second timeout, the value is saved (with a little icon indicating the value was saved) and the color returns to normal.

Rejoining farm and site can’t reached

I’ve multi SharePoint 2016 Server WFE, APP, Search & DB. Cause so many issue, I decided to disconnected all of them from farm.

After that, I rejoining them to the existing farm (previous farm not deleted) and everything is working fine including the Central Administration but the Site showed error message “Site can’t be reached”.

CA possible to access from internet and intranet, but for the Site is not. Please note, the Site is accessible from the internet before I disconnected.

CA accessed from my Phone (Internet)

Site accessed from my Phone (Internet)

Hope you guys have a solutions. I’ll appreciate it.

Regards

How to fix “This site can’t be reached … took too long to respond for some websites?

So when I open some websites this shows up: This site can’t be reached _______ took too long to respond. Try:

Checking the connection Checking the proxy and the firewall Running Windows Network Diagnostics ERR_CONNECTION_TIMED_OUT This happens only when my computer is connected to one network( and happens on Chrome, Opera,Microsoft Edge) , but when I connect it with the hotspot from my phone, the site works. Also on my other computer the same website OPENS with the same network (that didn’t work on the other computer). What should I do?

palindromes with integers by adding numbers until a palindrome is reached- java

I’m not necessarily trying to ask for code but I’m not sure where I’m going wrong with this or why my current code is printing 10. Can someone help me understand where I’m going wrong.

 public static int palindroCount(int n){     String pal=n+"";     String lap="";     int count=-1;     for (int i=pal.length()-1; i>0; i--){         lap+=pal.substring(i,i+1);     }     if (pal.equals(lap)) {         count = 0;     } else {         while ((!pal.equals(lap)) && count<10){             pal=n*2+"";             for (int i=pal.length()-1; i>0; i--){                 lap+=pal.substring(i,i+1);             }             count++;         }     }     return count;     //This is wrong and I have no idea on how to get it. It prints out 10,      //when it's supposed to print 2 }  public static void main(String[] args) {     test2Prep model= new test2Prep();     System.out.println(model.palindroCount(159)); } 

The question in the textbook is: Given a positive integer n, return the number of p-additions needed to make it a palindrome. A p-addition is the addition of the number to its inverse. Ex, if n=159, the first p-addition yields: 159+951=1110. The second p-addition yields: 1110+ 0111=1221, which is a palindrome, so the return is 2. if n is a palindrome to begin with return 0, and if the number doesn’t become a palindrome after 10 p-additions then return -1.

After android system update (Oxygen OS 9.0.3) Google can’t reached via hotspot

After the system update for Oxygen OS 9.0.3, my OnePlus 3 hotspot has weird problem.

If enable hotspot on my phone and use laptop to browse google.com, the url is not loading.

If I use a VPN in my laptop and use the same hotspot, everything is fine (so it’s not problem in browser/browser plugins). If I directly use phone to reach google.com, no problem there too (so it’s not ISP blocking).

So url filter is happening only in my phone when I use hotspot.

Could someone help me to narrow down the problem?

Break the build if a maximum number of stylecop warnings is reached

I’m using stylecop in my Visual Studio solution for static code analysis. I know there’s an option to treat warnings as errors:

 <PropertyGroup>     <StyleCopTreatErrorsAsWarnings>true</StyleCopTreatErrorsAsWarnings>  </PropertyGroup> 

I remember being in a different project using fxcop and it was possible to set a maximum number of warnings. If that number is reached the build will brake, forcing developers not to add new violations.

Is something like this possible using stylecop?

Break the build if a maximum number of stylecop warnings is reached

I’m using stylecop in my Visual Studio solution for static code analysis. I know there’s an option to treat warnings as errors:

 <PropertyGroup>     <StyleCopTreatErrorsAsWarnings>true</StyleCopTreatErrorsAsWarnings>  </PropertyGroup> 

I remember being in a different project using fxcop and it was possible to set a maximum number of warnings. If that number is reached the build will brake, forcing developers not to add new violations.

Is something like this possible using stylecop?

Break the build if a maximum number of stylecop warnings is reached

I’m using stylecop in my Visual Studio solution for static code analysis. I know there’s an option to treat warnings as errors:

 <PropertyGroup>     <StyleCopTreatErrorsAsWarnings>true</StyleCopTreatErrorsAsWarnings>  </PropertyGroup> 

I remember being in a different project using fxcop and it was possible to set a maximum number of warnings. If that number is reached the build will brake, forcing developers not to add new violations.

Is something like this possible using stylecop?

How to debug why software’s web page can’t be reached

On my Apple OS X (High Sierra system), I am trying to install a software called PowerPanel Business from CyberPower: it’s a server that monitors an uninterruptable power supply (UPS) connected via USB, and allows management of it over an http interface. It installs fine without error.

On some of my machines, the access works via browser perfectly. On one machine, I try to go to the server’s web page at “localhost:3052/agent/system_summary”

The browser says “Can’t connect”. How do I debug this? I know the process is running; how do I figure out why it’s not able to serve its pages via http?

Postgresql cannot be reached

We are trying to access (server1)postgresql port 5432 on a different server(server 2) but we are not able to reach it.

Checking done:

  • port 5432 running/listening postgresql.conf
  • listening address okay:listen_addresses = ‘*’
  • pg_hba.conf also good: host all all 0.0.0.0/0 md5

  • firewall is also okay since packet trace results shows that server1 has been reached but denied by the server/application/db

  • Firewalld is off and allowed tcp on port 5432 in iptables.

Any other suggestions or possible cause why can’t we establish the connection?