tunneling – Is accessing Cockpit through SSH tunnel secure?

I can’t find a definite answer on accessing cockpit from outside machines securely. Just letting it through the firewall doesn’t seem safe. It only uses basic user and password authentication – I’m not using Kerberos.

So I thought that SSHing into the machine over Internet and then forwarding 9090 port should work – it works for VNC after all. Or is it… is there any vulnerability I might be missing here?

Does SharePoint Online have plugin tools for SSRS (SQL Server Reporting Services) or is there an API for accessing and writing reports?

Stack Exchange Network


Stack Exchange network consists of 176 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

python – Function for accessing and searching dictionaries using /slashed/paths (like xpath)

So I have some data being returned to me in the form of a deeply nested Dict and I need to parse multiple values from it which may or may not be there. I saw this library (https://github.com/akesterson/dpath-python) and tried to come up with a simplified version that fits into one function.

I think its pretty good but I’m wondering if I missed something or there’s some small way to improve it?

from typing import Dict, Union
import re
import copy

def dict_query(d: Dict, path: str) -> Union(object, None):
    """
    # Example usage:
    >>> d = {'a': ({}, {'b': 9})}
    >>> print( dict_query(d, 'a/(1)/b') )
    9
    """
    keys = path.split("/")
    val = copy.deepcopy(d)
    for key in keys:

        idx = re.search("((d+))", key)
        if idx:
            # handle list index
            if isinstance(val, (list, tuple)):
                idx = int(idx.group(1))
                val = val(idx)
            else:
                return None
        elif isinstance(val, dict):
            # handle dict key
            val = val.get(key)
        else:
            return None
    return val

# tests of searching nested dicts
d = {'a': {'b': 1}}
print( dict_query(d, 'a/b') ) # 1
print( dict_query(d, 'a/c') ) # None
print( dict_query(d, 'a/') ) # None
print( dict_query(d, 'c/b') ) # None
# tests of searching nested dicts + lists
d = {'a': ({}, {'b': 1})}
print( dict_query(d, 'a/(0)') ) # {}
print( dict_query(d, 'a/(1)') ) # {'b': 1}
print( dict_query(d, 'a/(1)/b') ) # 1
print( dict_query(d, 'a/(1)/c') ) # None
print( dict_query(d, 'a/(0)/a') ) # None
print( dict_query(d, '(1)/b') ) # None

security – Need help with accessing my school admin’s username & password to un-install the securly certificate on MacBook Air

Sign the petition to end Securly here. Well, I’ve been having a lot of issues with Securly recently, as it’s been blocking me from every site that I wanted to go on, like pixilart.com. Anyway, it just says that “it’s not allowed by the school restrictions”. The reason for pixilart.com to be blocked is because “it’s a social media platform”. However, it’s a social media platform for all ages.

I need something in the answers:

  1. I need how to obtain the school admin’s username & password so that I don’t have to deal with Securly anymore.
  2. You may tell me how you did it yourself, if possible.

I go to the Weiss School, and Mr. Eissey is our school administrator. Once I retrieve the username and password, I will un-install Securly and I will mark the answer that I used, as long as it worked.

Good luck!

ssd – accessing data on a broken macbook pro

I have a MacBook Pro 13″ (2017) which is not displaying any info on the screen. It’s more than a broken screen. There’s a problem with the logic board. I’d like to sell it for parts, but I’m concerned about the data that is still on the hard drive. I don’t know whether it’s encrypted.

It appears to boot up, but the touch bar only displays the ESC key, suggesting that the problem is deeper than just the display or its controller. Apple has offered to repair this for $1500, which is more than the repaired computer would be worth.

I tried booting in target disk mode, but this doesn’t seem to be working, but without a screen, it’s hard to know what’s up.

  1. Is there way to log on to the computer (say via a USB C cable) so that I can delete any data on the SSD?

  2. Is this something that can be done at the Genius Bar?

  3. Or, is the value of this thing so low that I should just trash it?

unity – Panel gets transparent when accessing the offsetMin of RectTransform

I need to place 3 panels side by side in my application. It was working fine with Render mode Screen space - Overlay. Now due to some other requirement, I had to change the Render mode to Screen space - Camera. Now when I access the offsetMin of RectTransform of the panels so that it shifts to the right, the panel gets transparent.

I commented the code where I’m accessing and the Panel doesnt get transparent then.

I’m not sure why it is happening.

The requirement is place a 3D model in canvas, so I had to change the Render mode. If there is a way to place 3D model in canvas with Screen space - Overlay. That would be great as well.

unity – Unity3D: Panel gets transparent when accessing the offsetMin of RectTransform

I need to place 3 panels side by side in my application. It was working fine with Render mode Screen space - Overlay. Now due to some other requirement, I had to change the Render mode to Screen space - Camera. Now when I access the offsetMin of RectTransform of the panels so that it shifts to the right, the panel gets transparent.

I commented the code where I’m accessing and the Panel doesnt get transparent then.

I’m not sure why it is happening.

The requirement is place a 3D model in canvas, so I had to change the Render mode. If there is a way to place 3D model in canvas with Screen space - Overlay. That would be great as well.

raid – Synology NAS DS220+ always accessing HDD

I have a new Synology NAS (DS220+) with two WD Red 6TB HDD used as RAID 1.
One HDD is constantly reading/writing. Every two seconds I hear the typical HDD access noise.

I’m trying to find out why I have this constant HDD access.
I first thought it’s caused due the NAS Software. But I have turned off all Apps, all Services and disabled all options that might lead to having such behavior. I have spend a lot of time with Synology support on this and theoretically my HDD’s should go into hibernation, but they don’t.

Now I think that one of the two HDD (HDD 1) has a spindown issue.

Long story short I would like to perform the following tests:

  • Just Run Synology with HDD 1 , then with HDD 2 to see if the spindown is affecting just one HDD.
  • Use the HDD in Bay 1 in Bay 2 and vice versa

Since my Synology is configured as RAID 1, can I just remove one of both HDD and then plug it back in without running into issues? If yes, is it recommended to do it while the NAS is running (Hot Swapping) or better to turn it off?

Can I just Exchange the HDD by putting them into the other Bay? Or will this cause troubles?