usability – Is there a reason that helpdesk / docs subdomains rarely lead back to their main domain?

I noticed this all the time as a developer but it exists on user websites too on their helpdesks. You go to their help subdomain and when you try to click the header link it just takes you back to the homepage of the subdomain instead of the main site.

Here’s an example: https://developers.canny.io/install

On this page there is absolutely no way to get back to the main site without retyping the url. This seems like such an obvious UX failure and yet I see it absolutely everywhere.

Edit: Another example is stripe – https://stripe.com/docs – in this case their docs don’t even exist on a subdomain

How to remove Discourse forum safely from the internet to prevent SEO or Google problems in the main site?

I have a Discourse forum that hasn’t really taken off, so I want to remove it from the internet. The problem is that it’s a subdomain from the main website. So, my question is how to can remove it without affecting the main domain SEO or Google search? I mean, do I have to use redirect? do I have to tell Google something? what’s going to happen when the search engine doesn’t find the forum anymore?

seo – Is there way to force Google to think that sub domain as totally separated are from main domain?

Google consider a sub domain as a completely different website for his domain. So if your domain rank well in “cars (for example) a sub domain can rank well in “pets care”.

But Google still know if 2 or more website are related even if them are on different domains and different servers, easier if it is a sub domain.

So as from the comment of Stephen Ostermiller if you do something wrong will be partially reflect on the main domain, as well as if you do something good.

If you want to keep a clear image and easy navigation system on your main site without mess up with link between subdomains and tools and blogs or whatever, I can suggest you to have only 2 domains (so not so expensive): 1 is the main one, for your web design agency, the other one you can use for tools and experiment and anything you like. This not for Google but also for your pace of mind that keep separate the “experiment” (for example maybe in the future you will shut down a tool).
example:

main site: yourmaindomain.com

other services:
yourseconddomain.com/imagehostingservice

yourseconddomain.com/seotools

yourseconddomain.com/calculator

And keep them in 2 different cPanel, not for SEO reason but to keep easy the navigation of the main website without using subdomain that maybe point to folder also reachable from other URL (example: you have a subdomain -sub.example.com- that point to public_html/subdomainfolder. That folder you can reach by sub.example.com but also from example.com/subdomainfolder and this can generate confusion when search engine try to map your site.

Then you can link to each other some pages if need.

new players – How could I base a campaign with music as the main focus without making everyone a bard?


Your privacy


By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.




Android MongoDB Realm: Skipped 28 frames! The application may be doing too much work on its main thread

I am having this problem even though I used async in Realm. The lag is very noticeable. Is there something wrong with how I code it? This is my code:

    RealmConfiguration configuration = new RealmConfiguration.Builder()
            .deleteRealmIfMigrationNeeded()
            .build();

    realm = Realm.getInstance(configuration);

    itemCategoryName = getIntent().getExtras().getString("category", "");
    itemCategoryName = itemCategoryName.toLowerCase();

    shopItemList = new ArrayList<>();

    shopItemAdapter = new ShopItemAdapter(this, shopItemList);
    recyclerView.setLayoutManager(new GridLayoutManager(this, 2));
    recyclerView.setAdapter(shopItemAdapter);


    realm.where(ShopItem.class).contains("category", itemCategoryName, Case.INSENSITIVE).findAllAsync()
    .addChangeListener(new RealmChangeListener<RealmResults<ShopItem>>() {
        @Override
        public void onChange(RealmResults<ShopItem> shopItems) {
            shopItemList.addAll(shopItems);

            shopItemAdapter.notifyDataSetChanged();
        }
    });

Firebase hosting a React Native – how to setup so part of my project is on main domain and part on subdomain?

I’m using Firebase hosting to host a react native app (deploying the build, so in firebase.json my public path is “build”). I want to have a subdomain (app.example.com) to host some pages.

I don’t understand how to set up and deploy a project so some of my pages are on the main domain and other pages are on the subdomain. Is this even possible or do I have to have two different react projects and two different firebase projects?

Main domain not working, while subdomains work on dedicated server

I’ve been using a dedicated server for some weeks now but something strange happened yesterday.

The domain opens, but navigating to other pages on the website doesn’t work, it takes forever to load & returns 504 gateway error. Whereas, there’s no load on the server at all.

At first, the website would stop opening for like 20 mins. then without doing anything, it starts opening again, after a while, it stops. Its like the domain disconnects from the server.

I made some changes to the configuration, now the website opens, but navigating to other pages outside the home page doesn’t work.

this only happens for the main domain, the subdomains are working well.

If you have experienced this or know how to fix it, can you help.

summary, example.xyz opens, example.xyz/signup doesn’t open. api.example.xyz opens and works well…adminpage.example.xyz opens and works well

android – Cambiar el color del fondo de la Main Activity des de un AlertDialog

public class DialogListDemo extends DialogFragment {

View view;

@NonNull
@Override
public Dialog onCreateDialog(@Nullable Bundle savedInstanceState) {

    // Using the builder class for constructing AlertDialogs
    AlertDialog.Builder builder = new AlertDialog.Builder(Objects.requireNonNull(getActivity()));
    final LayoutInflater inflater = getActivity().getLayoutInflater();
    view = inflater.inflate(R.layout.activity_main, null);
    // Designing the list dialog
    builder.setTitle("Pick a color")
            .setItems(new String(){"Red", "Blue", "Yellow"}, new DialogInterface.OnClickListener() {
                @SuppressLint("InflateParams")
                @Override
                public void onClick(DialogInterface dialog, int which) {
                    // Wich contains the index of the selected item
                    if (which == 0) view.setBackgroundColor(Color.RED);
                    else if (which == 1) view.setBackgroundColor(Color.BLUE);
                    else if (which == 2) view.setBackgroundColor(Color.YELLOW);
                }
            });
    return builder.create();
}

}

Esta es mi clase. En la Main tengo un botón que muestra este diálogo.
En teoria debugeando veo que accedo al layout pero no me cambia el color.
Alguien sabe porqué?

My code quits after the calculate method is called in the main method!!!! JAVA

The main method is at the bottom and calls the printIntro first. which is fine but then when the calculate method is called it doesn’t do anything. Any help would be great basically been stuck on this for about 6 hours ha hah .I just don’t know why the method isn’t working is it the loops or is it something less .Its saying I did write enough on here so here. I know there are easier ways to write this simple calculator , but the professor had a clear outline on what’s called in the main method and the type of loops and if statements I have to have in the program . Much rather use a case switch for this but never the less here we are .

import java.util.*;
public class andrewDipretoro_02_CS1Calculator {

These are my variables 
    static int addCounter ;
    static int subCounter;
    static int timesCounter;
    static int dividCounter ;
    static int counterTotal ;
    static String choice;
     static String input ;
     String firstOperand ="null";
     static Scanner in = new Scanner(System.in);
    
public andrewDipretoro_02_CS1Calculator() {
 addCounter=0 ;
 subCounter=0;
  timesCounter=0;
  dividCounter =0;
  
  
  }


public static void  printIntro() {
    
    
    System.out.println("Select the problem type you would like to calculate by entering the first letter of the operation.rn"
            + "(A)ddrn"
            + "(S)ubtractrn"
            + "(M)ultiplyrn"
            + "(D)ividern"
            + "rn"
            + "(E)xitrn"
            + "");
    }

    public static   void calculate() {
        System.out.println("Enter your selection");
        Scanner in = new Scanner(System.in);
        String gotAnswer =in.nextLine();
        
        while(gotAnswer != "N" || gotAnswer != "n" ) {
            
        if (gotAnswer == "A" || gotAnswer=="a") {
            
        System.out.println(" You have selected addition ");
            
        
          {
        System.out.println(" You have selected addition ");
        System.out.println("Enter First number");
        String firstOperand = in.nextLine();
        int firstNumber  = Integer.parseInt(firstOperand);
        System.out.println("Enter Second Number");
        String secondOperand = in.nextLine();
        int secondNumber  = Integer.parseInt(secondOperand);
        int answer = firstNumber + secondNumber ;
        System.out.println(answer);
        System.out.println("Would you like to do another problem Y/N" );
        gotAnswer =in.nextLine();
        addCounter++ ;
        
            
            
            
        
        }
        
        
    }
    else if (gotAnswer == "S" || gotAnswer=="s") {
    System.out.println(" You have selected Subtract ");
                
                
    
    System.out.println("Enter First number");
    String firstOperand = in.nextLine();
    int firstNumber  = Integer.parseInt(firstOperand);
    System.out.println("Enter Second Number");
    String secondOperand = in.nextLine();
    int secondNumber  = Integer.parseInt(secondOperand);
    int answer = firstNumber - secondNumber ;
    System.out.println(answer);
    System.out.println("Would you like to do another problem Y/N" );
    gotAnswer =in.nextLine();
    subCounter++ ;

    }

    else if (gotAnswer == "D" || gotAnswer =="d") {
    System.out.println(" You have selected Division ");
    System.out.println("Enter First number");
    String firstOperand = in.nextLine();
    int firstNumber  = Integer.parseInt(firstOperand);
    System.out.println("Enter Second Number");
    String secondOperand = in.nextLine();
    int secondNumber  = Integer.parseInt(secondOperand);
    int answer = firstNumber * secondNumber ;
    System.out.println(answer);
    System.out.println("Would you like to do another problem Y/N" );
    gotAnswer =in.nextLine();
    timesCounter++ ;

        
    }
     
     else if (gotAnswer == "D" || gotAnswer=="d") {
    System.out.println("Enter First number");
    String firstOperand = in.nextLine();
    int firstNumber  = Integer.parseInt(firstOperand);
    System.out.println("Enter Second Number");
    String secondOperand = in.nextLine();
    int secondNumber  = Integer.parseInt(secondOperand);
    int answer = firstNumber / secondNumber ;
    System.out.println(answer);
    System.out.println("Would you like to do another problem Y/N" );
    choice =in.nextLine();
    dividCounter++ ;
    
        
     }
}
    }


public static void printReport() {
System.out.println("The number of addtioni problems : "+ addCounter +"rn"
            +" The number of subtraction problems : " + subCounter+ "/r/n"
            + " The number of mulitplaction problems :" + timesCounter+ "rn"
            + "The number of divison problems" +  dividCounter+ "rn"
            + "Total Number of problems " + counterTotal + "rn");
}

public static void main(String() args) {
    
    printIntro();
    
    calculate() ;
    
    printReport();
    
    
    

}
}

How to get on the main forum page

By clicking on the forum link you do not get to the main forum page with all of the categories listed on it.
Oh no.

What you must do first of all is to click on the Forum link.

You will see 5 or 6 links which have nothing to do with what you want, ie the main forum page with all the categories.

One of these links is New Posts.
SEMrush

You must click on the link for New Posts.

When you are on the new posts page, it is then that you must click on the Forum link.

You will then get the page with all of the cats !