networking – Destination Host Unreachable when pinging but the laptop is connected to internet and its visible to the ISP modem

I have a PC and a laptop connected to the local network. Both have Ubuntu 18.04.4 Desktop, and both are visible to the modem:

enter image description here

But when I try to ping the laptop from the pc it says: Destination Host Unreachable :

(base) marco@pc:~$ sudo ping 192.168.1.9
PING 192.168.1.9 (192.168.1.9) 56(84) bytes of data.
From 192.168.1.7 icmp_seq=1 Destination Host Unreachable
From 192.168.1.7 icmp_seq=2 Destination Host Unreachable

On the laptop there is no active firewall:

(base) marco@marco-U365G:~$ sudo ufw status
Status: inactive

This is /etc/netplan/01-network-manager-all.yaml of the laptop:

network
  version: 2
  renderer: NetworkManager
  # renderer: networkd
  ethernets:
    enp3s0:
      dhcp4: no
      addresses: (192.168.1.9/24)
      gateway4: 192.168.1.1
      nameservers:
        addresses: (8.8.8.8,8.8.4.4)

I tried to use nmap from both pc and laptop:

(base) marco@pc:~$ sudo nmap -sn 192.168.1.0/24

Starting Nmap 7.60 ( https://nmap.org ) at 2021-05-06 18:28 CEST
Nmap scan report for www.adsl.vf (192.168.1.1)
Host is up (0.00045s latency).
MAC Address: 74:36:6D:9A:5A:63 (Unknown)
Nmap scan report for pc (192.168.1.7)
Host is up.
Nmap done: 256 IP addresses (2 hosts up) scanned in 3.77 seconds

And from the laptop:

(base) marco@marco-U365G:~$ nmap -sn 192.168.1.9/24

Starting Nmap 7.60 (https://nmap.org ) at 2021-05-06 18:29 CEST
Nmap scan report for_gateway (192.168.1.1)
Host is uo (0.00075s latency)
Nmap scan report for marco-U365C (192.168.1.9)
Host is uo (0.000054s latency)
Nmap done: 256 IP addresses (2 hosts up) scanned in 3.21 seconds

I realized that this is happening, may be, since the router change by he Internet Service Provider.

How to solve the problem?

android – RecyclerView’s DiffUtil scrolls the list when all visible items are getting replaced

I am using a RecyclerView with ListAdapter in which I display 2 types of items: content & placeholder.

In this example the initial list consists of 10 content items and 10 placeholder items, which I then replace with another 10 content items (= always 20 items in total).

Doing this with ListAdapter.submitList(list) works as expected and shows the correct change animations. Like in this GIF:

The Diff working as exptected here

However, when I’m scrolling to a part of the screen where only placeholders are shown then .submitList(list) causes an unwanted scroll, like seen in this GIF:

The Diff triggers a scroll here

My diffing logic: (Should be fine, generally all animations work as expected)

sealed class MyItem {
    data class Content(val text: String) : MyItem()
    data class Placeholder(val text: String) : MyItem()
}

class MyDiffCallback : DiffUtil.ItemCallback<MyItem>() {

    override fun areItemsTheSame(oldItem: MyItem, newItem: MyItem): Boolean =
        oldItem::class == newItem::class && when (oldItem) {
            is MyItem.Content -> oldItem.text == (newItem as MyItem.Content).text
            is MyItem.Placeholder -> oldItem.text == (newItem as MyItem.Placeholder).text
    }

    override fun areContentsTheSame(oldItem: MyItem, newItem: MyItem): Boolean =
        oldItem == newItem
}

What could be wrong? Is this actually working as expected and I’m just missing something?

  • I checked some solutions from other Stackoverflow questions already – mostly about making the RecyclerView and the items not focusable e.g. here – they didn’t fix my problem.
  • I also tried to use a normal RecyclerView.Adapter and do the
    diffing of the new list manually via DiffUtil.calculateDiff(...) – this has the same issue (ListAdapter uses DiffUtil internally after all)
  • I managed to do a workaround by doing adapter.notifyItemRangeChanged(...) on the exact items which changed – this worked and doesn’t cause a scroll, but I’m not happy with this workaround and don’t want to apply it in all my features

2013 – SharePoint search refiners are visible only for Site collection administrators

We have a SharePoint search results page and it has a refiners webpart

It only has “Created” property as a refiner, but it is visible only to Site collection administrators

When other users search, they only see the search results and the refiners are not appearing

It does not have any target audiences too.

Not sure why it is not appearing for other users, any advice is appreciated

TIA

How mount (or auto mount) an usb stick formated with ext4 and be visible or working with apps on Android 5 , Marshmallow and later versions

We still need root. First I need make a dir in /data/media/0/ (/sdcard)

mkdir /data/media/0/usb1/

which means usb is not detect as usb ever but I can read data from apps that it is what I want .

After I made a script with :

su -mm -c "mount -t ext4 /dev/block/sda1 /data/media/0/usb1/"; 
su -mm -c "mount -t ext4 /dev/block/sda1 /storage/emulated/0/usb1/"

and after with https://play.google.com/store/apps/details?id=os.tools.scriptmanager

I made a favorite script and with the add-on to create a launchers, I made a icon in home screen (shortcut I preferred instead widget) and on click it, it mount my ext4 USB pens.

terminal – Make files cached in iCloud visible via the command line

macOS has a feature where it is offloading some files into the iCloud.
These files are perfectly visible via finder with a corresponding icon, also context menu lets you download this item locally.

The problem that these files are not visible via the command line. Commands like ls won’t show them.

I’m wondering if there is any way to make the view similar to finder where the ls command will check caches and display these files.

Does anyone know what to do when PyCharm loads, is visible in TaskManager, but there is no window?

I have an issue with PyCharm not starting properly.
No matter, how I open it, even as Admin:
start from exe

It shows the loading screen for a couple of seconds: loading screen

The icon in the taskbar flashes for a second, indicates an open window, but a window never opens. Or maybe it disappears again so quickly?

PyCharm is visible in TaskManger:
PyCharm in TaskManager

And afterwards just sits idle:
PyCharm in TaskManager idle

This issue suddenly started happening yesterday with the previous up-to-date installed version of PyCharm Professional.
I then uninstalled it and installed the newest version.
This is now PyCharm Professional 2021.1 – and the issue still persists.

I have no clue what to do about it, or where to look, since it is apparently running.

Best regards, and thank you.

ADMIN FORUM VISIBLE

**Optional Information**
Username: Giorgios
Age: 21
Gender: Male
Location: Virginia
Family: 5 siblings
Favourite foods & drinks: GREEK FOOD, Taco Bell, Coke, Popcorn, Hibachi etc. :p
Favourite bands/music: Hillsong, Phillips Craig and Dean, Christian Music.
Hobbies/sports: Forums :p, Reading, Singing, Music.

input fields – Accessibility – SC 1.4.4 – Placeholder text not visible when browser zoom is set to 200%

I have a question regarding SC 1.4.4 Resize Text for Placeholders for inputs. I am not for the design we currently have, but have to work a solution with whatever design I have.

The first row in the table has inputs to filter text in the table. In normal view without zoom, the complete placeholder text is visible. But when we zoom to 200%, the placeholder just shows “Filter” and the remaining text is cut off. My first question is whether this violates 1.4.4?

If so, the solution I recommended is to provide a title attribute for the input field, which is not ideal. It only satisfies people with low vision who can use a mouse to hover. But, users with motor disabilities using keyboard will still not be able to see, even though they can visually see the table and relate the column name with the input.

Is there a better way to address this issue without changing the designs? Attaching a screenshot for your reference.

Table without zoom

Table with Zoom

desktop environments – Only the first four letters are visible on Ubuntu 20.04 LTS

enter image description here
enter image description here
enter image description here
enter image description here
I’m able to see only the first four letters of a file manager, terminal, and other default tools of Ubuntu 20.04 after updating today’s update.

Does anyone have the same issue? How can I resolve it?

Only web browsers are working correct output. Even the terminal has the same issue. I can’t even run commands!

Note: I have tried to change the font through Tweak Tools, and I’ve also tried from the setting.