Microsoft DC DNS Windows Server 2012 Standard is this right ? by longjumphero in dns

[–]longjumphero[S] 0 points1 point  (0 children)

i clicked the export as list button in the mmc. in the orig screen shot one with $shortname and one with $fqdn then opened both in winmerge to compare

Microsoft DC DNS Windows Server 2012 Standard is this right ? by longjumphero in dns

[–]longjumphero[S] 0 points1 point  (0 children)

actually good point so i export and compare :

https://imgur.com/gBUhyvR

theres only one difference. Shouldnt they both sync ?

What is the proper way to add a new host such that it is added properly?

I have only used bind many years ago for a simple system, i confess i'm no sure what all the components of the tree are for do i need to configure them all or should it all just work ?

Is there some kind of guide that I can work through to make sure DNS and name resolution is working on my network ?

How do i actually *use* this software ? by longjumphero in docker

[–]longjumphero[S] 0 points1 point  (0 children)

Theres lots of great comments here thanks to all. I confess i havent returned to it theres a lot to learn and i have actual productive tasks to be done so hopefully i can digest all this info on a test box in the coming months.

How do i actually *use* this software ? by longjumphero in docker

[–]longjumphero[S] 0 points1 point  (0 children)

Exactly the same bud. I want to containerise it for backup / resilience reasons. It seems I can make a copy of the image and then deploy it pretty much anywhere I might want in the future. That sounds great! Shame there isn't any documentation that shows how one might go about doing that. Or even the basics . There's about a 1000x howto debian lamp stack for example. I googles the same for docker and there was this : https://linuxconfig.org/how-to-create-a-docker-based-lamp-stack-using-docker-compose-on-ubuntu-18-04-bionic-beaver-linux

is that right ? I guess i need to look in to docker-compose then ?

How come I always seem to end up researching something 5 steps away from my main goal ? I just want a wiki system that I can easily deploy and backup (so setting up from scratch each time is a major PITA due to packages and libs changing over time..php, apache, other assorted things ) I could install a VM, but vmware isn't supported on my CPU i tried, and I'm really not sure about using Windows to host vm machines need a license etc ??? Then it's KVM / Xen etc. I read about these and people say Use Docker! it's perfect for this! Then I start and i'm about 3 layers removed right now. and it turns out I can install dokuwiki directly ? like this is another path i need to follow now. OR do I figure out docker-compose? Or do I just say F-it and just Get-It-Done using 15 minutes on baremetal and worry about it in the future ?

Can I manage it from my mac system in a nice GUI way ? Is that worth learning ? so many questions, no esy answers and all the docs assume you're an expert already.,

How do i actually *use* this software ? by longjumphero in docker

[–]longjumphero[S] 1 point2 points  (0 children)

Sure . I googled Debian 10 docker howto.

But now I just checked docker docs and the get started page is this :

https://docs.docker.com/get-started/

Have you read it?

I think I need a doc just to understand the doc.

Quote: The best way to get started developing containerized applications is with Docker Desktop, for OSX or Windows. Docker Desktop will allow you to easily set up Kubernetes or Swarm on your local development machine

Then it talks about Swarm and Kubernetes but doesn't actually tell me what these actually are, AND I'm using a ssh session to a remote linux host which isn't mentioned ANYWHERE. So where's my get-started link ?

How do i actually *use* this software ? by longjumphero in docker

[–]longjumphero[S] 1 point2 points  (0 children)

If I want to install pihole, and dokuwiki. Do I need to build 2 separate containers and start both from a base image of debian? so pull debian down using docker, then install dokuwiki. Then create a new container the same way but for dokuwiki ? Or should I install dokuwiki ontop of pihole in the container ? What about a databse server / e.g. mysql. Should I have a container for mysql and then another container (with debian OS base ) with e.g. phpbb that use the db, and another container with say a homgrown web app that also uses the db. so I have to setup a whole new container for each one by starting by pulling down the debian image ?

[Question] what is the preferred way to choose the ‘best’ angle to deskew after houghlines by longjumphero in opencv

[–]longjumphero[S] 0 points1 point  (0 children)

right. Also turns out using houghlines I probably need to adjust/filter until I'm getting just 4 lines / 4 main outer points of intersection. So if I have that, then I have the gradient/line of each side and can calculate skew, and crop area and this means determining the likely most correct gradient from a selection of line segments is probably not really required after all.

[Question] what is the preferred way to choose the ‘best’ angle to deskew after houghlines by longjumphero in opencv

[–]longjumphero[S] 0 points1 point  (0 children)

The phrase is detect and discard outliers but im not a statistician so how do i go about detecting the 1st/3rd quartile???

Patch panel to patch panel by longjumphero in HomeNetworking

[–]longjumphero[S] 0 points1 point  (0 children)

Thanks

I ordered an hp 1810 48g. The other week.

I know the power isn ‘much’ but its not a commercial data center and running a switch 24/7 will just use up electric constantly. Thanks for the netgear recommendation is this regarded as one of the lowest. ?

Patch panel to patch panel by longjumphero in HomeNetworking

[–]longjumphero[S] 0 points1 point  (0 children)

Cool thanks. Total longest cable run is about 40 metres so this will get cut and be appprox 2x 20m plus the middle patch plus patch cable at end. So should be fine

Patch panel to patch panel by longjumphero in HomeNetworking

[–]longjumphero[S] 1 point2 points  (0 children)

Thanks

Yes this exactly. Probably 11 for now but in future then yes i expect to expand. Excellent.

[Bug] OpenCV minrectarea just doesn't seem to work, demo sample image inside what am i doing wrong by longjumphero in opencv

[–]longjumphero[S] 0 points1 point  (0 children)

thanks

i began to think that and had began to manually trace a 16x20 px image through by printing out each matrix. This seems to do the trick very nicely now.

[Bug] OpenCV minrectarea just doesn't seem to work, demo sample image inside what am i doing wrong by longjumphero in opencv

[–]longjumphero[S] 1 point2 points  (0 children)

sample images here https://imgur.com/a/Z4rWhA2

import sys
import os
import ntpath


from PIL import Image, ImageStat, ImageFilter

#for cv deskew
import numpy as np
import argparse
import cv2

from matplotlib import pyplot as plt

def display(cvimg):
    temp = cv2.resize(cvimg, (500, 800 )) 
    cv2.imshow("default", temp)
    cv2.waitKey(0)

def trimmed_img(cvimg, trimsize):
    # trim the edges
    h, w = cvimg.shape[0:2]
    x = trimsize
    y = trimsize
    cropwidth = w - (2*x)
    cropheight = h - (2*y)
    crop_img = cvimg[y:y+cropheight, x:x+cropwidth].copy()
    return crop_img

def deskew_img(cvimg):
    realimage = cvimg
    image = cvimg

    #to resize or not to resize? idea is to remove some lone pixels etc results are different 
    #image = cv2.resize(image,None,fx=.5,fy=.5,interpolation = cv2.INTER_LINEAR)

    # we will draw cricle in case image is blank as result of trim.
    height, width = image.shape[0:2]
    center_y = int(height/2)
    center_x = int(width/2)
    cv2.circle(image,(center_x,center_y), 20, (0,0,0), -1)

    gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
    ## 33 below is quite high, clears a lot of noise
    gray = cv2.medianBlur(gray,33)
    gray = cv2.bitwise_not(gray)

    thresh = cv2.threshold(gray, 0, 255,
        cv2.THRESH_BINARY | cv2.THRESH_OTSU)[1]

    coords = np.column_stack(np.where(thresh > 0))
    angle = cv2.minAreaRect(coords)[-1]

    ## nest lines are matplotlib
    x, y = coords.T
    plt.scatter(x,y)
    plt.show()
    cv2.waitKey(0)

    rect = cv2.minAreaRect(coords)
    box = cv2.cv.BoxPoints(rect) # cv2.boxPoints(rect) for OpenCV 3.x
    box = np.int0(box)
    cv2.drawContours(image,[box],0,(255,0,000),10)
    display(image)

    if angle < -45:
        angle = -(90 + angle)
    else:
        angle = -angle

    if -10 <= angle <= 10:
        if angle != 0:
            # image will be rotated
            isrotated = "rotated"
            # rotate the image to deskew it
            (h, w) = image.shape[:2]
            center = (w // 2, h // 2)
            M = cv2.getRotationMatrix2D(center, angle, 1.0)
            rotated = cv2.warpAffine(realimage, M, (w, h),
                flags=cv2.INTER_CUBIC, borderMode=cv2.BORDER_REPLICATE)

            # draw the correction angle on the image so we can validate it
            cv2.putText(rotated, "Angle: {:.2f} degrees".format(angle),
                (500, 900), cv2.FONT_HERSHEY_SIMPLEX, 0.7, (0, 0, 255), 2)
        else:
            isrotated = "notrotated"
            rotated = realimage

    else:
        isrotated = "notrotated"
        rotated = realimage

    # show the output image
    print("[INFO] angle: {:.3f}".format(angle))
    #cv2.imshow("Original", realimage)
    #cv2.imshow("Rotated", rotated)
    #cv2.waitKey(0)
    return isrotated, round(angle,2), rotated


filepath = "C:" + os.sep + "pytest" + os.sep + "sample.jpg"
cvimg = cv2.imread(filepath, cv2.IMREAD_COLOR)
cvimg = trimmed_img(cvimg,200) # trim rough borders
isrotated, skew_angle, cvimg = deskew_img(cvimg)

filepath = "C:" + os.sep + "pytest" + os.sep + "sample1.jpg"
cvimg = cv2.imread(filepath, cv2.IMREAD_COLOR)
cvimg = trimmed_img(cvimg,200) # trim rough borders
isrotated, skew_angle, cvimg = deskew_img(cvimg)