web server – How to host a public website with my domain name on Android?

I have my own domain name, richardbrowning.cf, and I want to host my own website (using this domain name) on my Android phone. My Android isn’t connected to Wi-Fi (I am using Mobile Data). I started locally hosting my website on my Android, (and it was available at http://mylocalipaddress:myport. Then I went to my registrar and added an A DNS Record setting the target to my local IP Address. Now if I go to richardbrowning.cf:myport, I can view my website. But it is still only local. So I have two issues. I want to make my website public, not just local (so everyone can view my website) and I want to remove the need for putting :port at the end of the domain/website. By the way, an end note is that I tried putting my external IP Address into my DNS Record instead of my local IP Address, but this doesn’t work because there is nothing being hosted to this external IP Address. So if I could maybe host my website to my external IP Address and then put this external IP Address into my DNS Record, then that would work. But I can’t find a way to host my website to my external IP Address. I only see ways to host my website to my local IP Address (locally). Thanks in advance.😀

encryption – When is a private and public key given to a user, and why can the private key not get hacked?

Trying to understand assymetric encryption. To my knowledge, it deals with the key management problem by having each user have their own private key and public key. But when is this private and public key pair generated for the user? Does each user have a unique and persistent private and public key?

Also, why are hackers unable to get a private key?

Changing an Office 365 group from Private to Public; from the Office 365 group admin itself VS from the sharepoint permsion setting popup

In Office 365 groups we have 2 approaches (at-least 2 approaches) to change the group from private to public OR from public to private:

  1. From SharePoint site >> site permission, as follow:-

enter image description here

  1. From office 365 group admin, as follow:-

enter image description here

now i have noted in the first approach if we change the Group from Private to Public, the SharePoint will add “Everyone except external” inside the SharePoint members group, while using the second approach this will not happen.. so is my assumption correct? and why we get this behavior, although we should be doing the same thing at the end…

linux networking – Access denied while accessing a public samba share on windows 10

I’m trying to configure samba to share folders on my network publicly, however I also want private folders. I have ran into a problem where when I create the samba account access to all the shares are denied if your login as a samba user.
I’m connecting from a windows 10 PC
The file system is running Devuan 2.0.0 (a fork of Debian)

Here is what is contained in the samba.conf

(global)
    workgroup = WORKGROUP 
    dns proxy = no
    map to guest = Bad User
    log file = /var/log/samba/log.%m
    max log size = 100
    server role = standalone server
    passdb backend = tdbsam
    obey pam restrictions = yes
    unix password sync = yes
    passwd program = /usr/bin/passwd %u
    pam password change = yes
    map to guest = bad user
    usershare allow guests = yes
    unix extensions = no
    
(Public)
    comment = pubic share
    hosts allow = 1.1.1.100/24, 127.0.0.1
    hosts deny = 0.0.0.0/0
    path = /mnt/Niflheim/Public
    public = yes
    read only = yes
    guest ok = yes
    guest only = no
    
(Private)    
    comment = home share
    hosts allow = 1.1.1.100/24, 127.0.0.1
    hosts deny = 0.0.0.0/0
    path = /mnt/Niflheim/Home
    valid users = USER, @USERGROUP
    read only = no
    browsable = no
    writeable = yes
    writeable list = USER

As an example if I create a samba account called USER and login as that then I can’t access any shares but if I don’t login all public shares are available.

unity – How to Retrieve a Public Float from a Specific GameObject?

I’ve been working on an RPG videogame, and I’m trying to create a sprite that will, on collision, increase the variable for the amount of that specific item he has. For some reason though, I get the error CS0201. Here’s my code for the sprite:

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class PickUp : MonoBehaviour
{
    // GameObject that the game will get the variable from
    public GameObject Holder;
    
    void OnTriggerEnter2D(Collider2D other)
    {
        if (other.CompareTag("Player"))
        {
            // Gets variable "itemAmount"
            Holder.GetComponent<ItemInformation>().itemAmount;
        }
    }
}

Please help me figure this out.

java – How to change public string value in android Fragment with onResponse json function

I am trying to get page text from my SQL database and show it in TextView in Android Fragment.

I got the data, but when i am trying to parse it to public string, the result is NULL.

i created public String pageText and uset setText(pageText), and tryed to parse json text to pageText but the result is empty and not showing the page text in TextView

here is my code:

 package per.mikha.programs.medjobs.ui.home;

import android.app.VoiceInteractor;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.webkit.WebView;
import android.widget.TextView;
import android.widget.Toast;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import androidx.lifecycle.Observer;
import androidx.lifecycle.ViewModelProvider;

import com.android.volley.Request;
import com.android.volley.RequestQueue;
import com.android.volley.Response;
import com.android.volley.VolleyError;
import com.android.volley.toolbox.JsonObjectRequest;
import com.android.volley.toolbox.StringRequest;
import com.android.volley.toolbox.Volley;

import org.json.JSONException;
import org.json.JSONObject;
import org.w3c.dom.Text;

import java.io.IOException;
import java.lang.reflect.Method;

import per.mikha.programs.medjobs.R;

public class HomeFragment extends Fragment {

    private HomeViewModel homeViewModel;
    public String pageText;
    public final String GET_BY_ID = "https://xxxxxx.com/mekha.php?id=";


    public View onCreateView(@NonNull LayoutInflater inflater,
                             ViewGroup container, Bundle savedInstanceState) {
        homeViewModel =
                new ViewModelProvider(this).get(HomeViewModel.class);
        View root = inflater.inflate(R.layout.fragment_home, container, false);
        final TextView textView = root.findViewById(R.id.text_home);

        getData("1");
        textView.setText(pageText);
        //Toast.makeText(getContext(),pageText,Toast.LENGTH_LONG).show();

        /*homeViewModel.getText().observe(getViewLifecycleOwner(), new Observer<String>() {
            @Override
            public void onChanged(@Nullable String s) {
                textView.setText(s);
            }
        });*/
        return root;

    }

    public void getData(String id){
        JsonObjectRequest request = new JsonObjectRequest(Request.Method.GET, GET_BY_ID+id, null, new Response.Listener<JSONObject>() {
            @Override
            public void onResponse(JSONObject response) {
       

     try {
                String title = response.getString("title");
                String theText = response.getString("text");
                pageText=theText;
                //Toast.makeText(getContext(),theText,Toast.LENGTH_LONG).show();
            } catch (JSONException e) {
                e.printStackTrace();
                Toast.makeText(getContext(),e.getMessage(),Toast.LENGTH_LONG).show();
            }
        }
    }, new Response.ErrorListener() {
        @Override
        public void onErrorResponse(VolleyError error) {
            Toast.makeText(getContext(),error.getMessage(),Toast.LENGTH_LONG).show();
        }
    });

    RequestQueue requestQuere = Volley.newRequestQueue(getContext());
    requestQuere.add(request);
}

}

public transport – Where can I see the usage history of my CharlieCard?

I am currently traveling in Massachusetts, USA.

Where can I see the usage history of my CharlieCard (issued by the CharlieCard in Boston, Massachusetts, USA)? I.e., I would like to see a log such as:

2017-02-14 19:12 - 46 USD  (1 ticket)
2017-02-14 16:57 - 48 USD  (1 ticket)
2017-02-14 16:56 - 50 USD  (recharge)
2017-02-14 10:42 -  0 USD  (1 ticket)
2017-02-14 10:15 -  2 USD  (1 ticket)

One of my goals is to ensure I haven’t double-tapped the card.

public transport – How can I get to Mike Brant’s grave?

Mike Brant is buried in the Sde Yehoshua Jewish Cemetery in Haifa, also called Mahane (camp) David or Neve David after the neighborhood it located next to it. The Cemetery can be seen on Google Maps. There are two bus stations, one beneath it and one above it, different buses go to each station, so you should decide what entrance you need before. The location of the stations is:

The location of the stations

The red circle is the above station and the blue, the below.

To find out what buses go there you can check the Egged site. The station in the German colony is called German Colony: Kiryat Eliyahu, Sderot Ben Gu… (the main street) or German Colony: Yitskhak Sadeh.

The station above (red) the cemetery is called Kfar Samir Cemetery: Military Cemetery, as can be seen from the picture, there are several stations there, and you don’t need the military cemetery, but the civilian cemetery, which is the next station after the military cemetery, you can ask the driver to tell you what station you need.

The station below (blue) the cemetery is called The Old Cemetery: Sderot ha-Hagana, there is only one station there.

I could find the exact location of the grave in the cemetery however, only a picture of the grave:

pic1

(source)

There are more pictures of the grave online. Sadly I couldn’t find the exact location of the grave, only that it’s located near a wall, but it isn’t clear what wall it is, and if it’s a wall separating the different cemeteries, or a bounding wall.