Golang

620

Solutions

1K

Contributors

Golang, also called Go, is an open source programming language that is a statically-typed language with syntax loosely derived from C, adding automatic memory management, type safety, some dynamic-typing capabilities, additional built-in types such as variable-length arrays and key-value maps, and a large standard library. Go is a general-purpose systems programming language that aims to be efficient both for development and execution with a focus on fast compilation and increased maintainability of large projects. Go was originally targeted at systems programming tasks such as building server/web applications, high throughput middleware and databases.

Share tech news, updates, or what's on your mind.

Sign up to Post

Suddenly within the last year of so, when we or other trusted domains loose internet even just for a moment, need to always reset the trust between domains. It usually means that on the domain that loses internet (even if it's for a split second), I'll need to go into AD Domains and Trusts and in the properties of the domain go to the trust tab, choose the domain that is trusted, press the properties button and press the verify button. When we are having the problem, it will prompt me for a username and password of the trusted domain, then will tell me it's now verified.

What can cause domains to loose trust, then be reset with the same user name and password the trust was set up with? We have had trusted domains for years and never had this problem except for rare instances. I've had to do it 3 times in the last 3 months, and it affects more than one trusted domain.

Can anybody give me some things to check out? The trust relationships works flawlessly otherwise.
0
I would like to use an Azure Application proxy as our single place to go for OWA and ActiveSync having it handle redirecting to the on prem and cloud mailboxes.

We currently are upgrading to Exch 2016 hybrid.  All servers are in place and installed and the hybrid is up and working.  We have OWA.company.com redirected to the owa-company.msappproxy.net address.

I would like to have OWA.company.com  be the single url for OWA and ActiveSync.  we have split DNS and internal is working fine with proper redirects from our old servers - url: webmail.company.com to the new owa.company.com.


so right now OWA and ECP are working but Activesync is not.  If I enable Passthrough auth on the proxy, I can get Activesync to work by pointing it to the owa-company.msappproxy.net address but not the OWA.company.com that simply forwards to that same address.  Certs are installed where we have the redirect (AWS).

Any Help would be appreciated!
0
I have an old (not that old NAS. IOMEGA StorCenter PX4-300D. It's a 4 bay and I have 4 4-TB drives in it.
I bought it a few years back (actually like 8 years) and never used it. I initially initialized and formatted the drives when I bought it but as I said never used it. It's in perfect working condition. The issue is it's obsolete on their website and I can't find the latest firmware update. My question is do I use it as is or can I wipe out the OS on it and use something like Open Media Vault, FreeNas, etc? If so how do I go about doing that? and how do I get any compatible firm ware updates?

Any help is appreciated.

I'm not sure if I want to use it for home (personal) or business use.
0
Do the latest iphones i.e. iphone 8 still sync up with an exchange server 2016 using a self signed certificate

I am having trouble every time I try to create an account, I keep receiving the message "cannot verify server identity" and it seems that the continue tab is missing and I cannot go any further than this

I have googled this and it seems that Apple have tightened up on their certificate security

I am sure if the customer had a globally trusted certificate there wouldn't be a problem

Was just wondering if anybody could give me a definitive answer on this

Thank you
0
Hi,

Just as the title states, we have nearly 80 Hyper-V workstations and servers and are considering moving all non-DCs to Azure.  Is there a checklist, good read and/or best-practice guides out there I can go through and pitch to my superiors?  I like Azure for it's availability sets, fault tolerance, backup, and the ability to scale up and/or out - dynamically.   Do we also save "significant" money on licensing?

Thanks!
0
I have a website that uses coldfusion. I have a page that has a form and some input fields that are type text and have default data. If I delete the data in one input field and then go to the next field by clicking on it the data in the first field automatically reverts back to its original value.

I cannot figure out what might be causing this. Also, I have not been able to create a sample page that reproduces this error.

Does anyone have any suggestions what I can do to try and figure out what is causing this?
0
Hi experts,

I need your help for a button or something like that to keep repeating a certain value until the button is unchecked.

Background:
Daily we insert around 40 recordsets of daily production into a Acces table. A split form is used for friendliness to insert data into a table.

Now certain informations for that period stays the same, like the date, the user, location and so on. Only a small part is new. But the information that is fixed for that period also needs to go into the table.

At the moment we have to reinsert the fixed information for that period manually. How can we automate this with a button or checkbox?
0
This one is really getting to me. I would like to run most of my docker containers by connecting them to a vlan on my Ubiquiti network but cant seem to get it working. although admittedly I don't know much about docker and I'm still very new to it.

I have tried creating a macvlan for one of the networks and that seems to be alright but I cant seem to get my containers connected to it.

I would like to connect to my vlan at 192.168.20.0/24 just doing that with an nginx container or something would be a great example for me to go by.

Thanks in advance for your help.

Stuart
0
The previous exchange admin previously tried to install Exchange 2016 in a (2) DAG Exchange 2010 environment and caused some serious issues.  I went ahead and cleaned it up when I was tasked with the role but after decommissioning the Exchange 2016 server I am seeing a lot of health monitoring mailboxes and system mailboxes in our AD under CN=Microsoft Exchange System Objects.  

I want to know what is the best way to remove these identities to clean things up but without causing any issues?   Let me know if further detail needs to be provided.

I am trying to clean these up before I go into upgrading our Exchange environment to 2016.
0
I recently installed SharePoint Server 2019 (and all pre-requisites) on a Windows 2016 Server OS with no errors; however, when the Product Configuration Wizard finished and attempted to automatically open Farm Configuration Wizard under Central Administration web page (//_admin/adminconfigintro.aspx?scenarioid=adminconfig&welcomestringid=farmconfigurationwizard_welcome), it will not accept any login combination, i.e. the SPAdmin, SPFarm, nor my Enterprise Admin account which I used to install SharePoint.  I've verified the passwords for all, none are locked and they are all in the "Farm Administrator's" group (which I found thru searches on a very similar issue).  I'm able to go in to SharePoint Central Admin thru the Start menu and accepts my login; however, when I click on "Configuration Wizards", it displays "Farm Configuration" and an icon, but neither are an actual link to click on.  Any assistance is appreciated!!
0
Hello All,

So we have a database where each client have their own schema.  I need to implement a backup and restore process.  So far I've been able to backup a specific schema but I'm getting errors when I try to restore that backup.

Here are the steps I've done so far:

Step 1 Create schema:
ALTER DATABASE [TestSchemaRestore] ADD FILE ( NAME = N'TestSchemaRestoreHost_Data',
FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL14.SQLEXPRESS\MSSQL\DATA\TestSchemaRestoreHost_Data.ndf' , SIZE = 8192KB , FILEGROWTH = 65536KB )
TO FILEGROUP [HOST_FILEGROUP]
GO
ALTER DATABASE [TestSchemaRestore] ADD FILE ( NAME = N'TestSchemaRestoreTenantOne_Data',
FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL14.SQLEXPRESS\MSSQL\DATA\TestSchemaRestoreTenantOne_Data.ndf' , SIZE = 8192KB , FILEGROWTH = 65536KB )
TO FILEGROUP [TENANTONE_FILEGROUP]
GO

--sp_help EventHistory

USE [TestSchemaRestore]
GO
/****** Object:  Table [host].[EventHistory]    Script Date: 1/13/2020 1:18:47 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [host].[EventHistory](
      [EventHistoryID] [int] IDENTITY(1,1) NOT NULL,
      [WhenOccurred] [datetime] NULL,
      [Category] [nvarchar](50) NULL,
      [Description] [nvarchar](200) NULL,
      [UserID] [int] NULL,
      [Value1] [int] NULL,
      [Value2] [nvarchar](max) NULL,
      [Value3] [datetime] NULL,
      [Value4] [bit] NULL,
      [Value5] [decimal](18, 2) NULL,
      [SubTenantID] [int] NULL,
      [TenantID] [int] NULL,
      …
0
Hi and thanks for reading.
We have always-on VPN sat up in our Network.
Some users complain that they can only connect to local recourses for a very short time. After that it shows as connected on Win 10 pc, but no traffic can go over until they disconnect and connect again.
If we test by running a continuous ping it stays up. Until we stop ping. and then VPN tunnel close after 5 sec... (but still shows as connected)

During testing, we also found that connecting over hotspot (via iPhone) it works fine.
Also some users repport they have no problems. So ISP is a factor. But strange that as they can connect and that as long as a ping is running the tunnel is up!!

Please help
0
PLEASE HELP ME. No one in IT for my company can help me figure out why I am getting this error.
This is the code in the file of the database I am trying to run, everything else in the application works just fine,
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[db_RoundsOrderSeq]') AND type in (N'P', N'PC'))
DROP PROCEDURE [dbo].[db_RoundsOrderSeq]
GO

CREATE Procedure [dbo].[db_RoundsOrderSeq]
      @Action char(3),
      @HospitalCode char(1) = '',
      @RoundsKey varchar(8) = '',
      @Sequence smallint = 0,
      @Location varchar(10) = '',
      @Room varchar(8) = '',
      @Bed varchar(4) = '',
      @ReturnErrorDescription varchar (200) = '' OUTPUT

AS
BEGIN
-- db_RoundsOrderSeq: Insert, Update, Delete
-- (C) Copyright 2013 Universal Hospital Services, Inc.
-- Created by SMH 04/24/2013
-- Version 8.00
-- Changed by SMH 02/27/2014 Right Justify Room and Bed
-- Version 8.01

-- Return Version only
If @Action = 'VER'
   BEGIN
   Select Version = '8.01'
   RETURN
   END

Set @ReturnErrorDescription = ''
DECLARE
      @ROS_RoundsKey varchar(8)
      
-- Right Justify Room and Bed (already done in table class)
SET @Room = RIGHT('        ' + RTRIM(@Room), 8)
SET @Bed = RIGHT('    ' + RTRIM(@Bed), 4)
 
-- Import Record
IF @Action = 'IMP'
      BEGIN
      Set @ROS_RoundsKey = ''
      Select @ROS_RoundsKey = RoundsKey
            From RoundsOrderSeq
            Where HospitalCode = @HospitalCode And RoundsKey = @RoundsKey And Sequence = @Sequence
      IF @ROS_RoundsKey = ''
            Set …
0
Hello all,

We have recently migrated to Azure and have found that powering off one of our two session hosts during off-peak hours has significantly reduced our costs. The process is automated and works well. All servers in the RDS farm are Server 2012 R2.

The issue is that every few weeks or so, the host that was powered off will boot up and come back online at its specified time, however, it for some reason will not accept new connections. We then very quickly max out the capacity of the first host and new connections to the RDS farm are dropped.

When this happens, the broker shows that the server is connected and does not seem to report any issues. That being said, the broker shows the server is connected even after it has been powered off for ~8 hours so we can't really rely on that. Using Get-RDSSessionHost to try and detect when the server is having issues is of no help as it always shows connected.

The solution is to reboot the host and on the next reboot it starts accepting connections and the issue is resolved. The problem is that we need a way to detect this issue before it gets to the point where users are not able to connect. So we are looking for a way to monitor this and alert when users are not able to connect to the second host. Hoping someone here has some ideas on how to go about this.

Thanks!
0
The communication code VBA for RS 232 has failed, it cannot transmit any data to the Rs 232 gadget kindly help me to locate where the problem is. There are no errors whatsoever during transmit ion but the data does not go or written to the com port 4. The json part is okay and confirmed by the users I’m also able to see the results by using text file instead of on an Immediate window. The requirement here is to write data, send and receive data from rs 232 gadget.

VBA CODE RS 232

Dim json As String
    Dim intPortID As Integer ' Ex. 1, 2, 3, 4 for COM1 - COM4
    Dim lngStatus As Long
    Dim strError  As String
    Dim strData   As String
    Dim lngSize As Long
    intPortID = 4
    ' Initialize Communications
    lngStatus = CommOpen(intPortID, "COM" & CStr(intPortID), _
        "baud=115200 parity=N data=8 stop=1")
    
    If lngStatus <> 0 Then
    ' Handle error.
        lngStatus = CommGetError(strError)
    MsgBox "COM Error: " & strError
    End If
    

    ' Set modem control lines.
    lngStatus = CommSetLine(intPortID, LINE_RTS, True)
    lngStatus = CommSetLine(intPortID, LINE_DTR, True)

    ' Write data to serial port.
    strData = JsonConverter.ConvertToJson(transaction, Whitespace:=3)
    lngSize = Len(strData)
    lngStatus = CommWrite(intPortID, strData)
    If lngStatus <> lngSize Then
    ' Handle error.
    End If
Exit_CmdConertJson_Click:
Exit Sub
Err_Handler:
Resume Exit_CmdConertJson_Click

' Read maximum of 64 bytes from serial 

Open in new window

0
We have setup where we have a main site and a warm DR site. Both sites are connected via a site-2-site vpn and both sites have 2 domain controllers.

All DC are 2016 and we are a vmware shop.

Recently, we started to noticed major time drifts. We thought this was due to time.nist.a being deprecated.

We updated the peers on all the DCs to go to new time servers


I feel the problem is we have peers set on all the domain controllers and that we need to do the following

PDC - set primary and secondary NIST server

all other DC, Set Primary as the PDC with time.nist.giv as a fall back encase the server is down.


Please let me know your feedback or if you have a similar setup.


Thanks!
0
I do work for a municipality and have run into an issue.  The building is run on a domain with a domain controller that runs the DNS and DHCP.   The Internet provider owns the firewall so they control it and we cannot even have the admin password.   There is also a DSL line that is used to go directly to the state.   Up until two moths ago the two computers that use the DSL line to the state would also be on the domain for the building.   Then there was an issue where the state said their site was down over the whole state.   Then when the state brought the site back up, those two computers had to be detached from the building network and be directly plugged into the DSL router only.   Again, before this happened the two computers were able to get to the state site via the DSL line, but then the users could also print to the building network printers even is they downloaded from the state site and needed that file printed.   If I do a trace route, the first thing it hits is the ISP network firewall then it hits the DSL router, then it goes out into the cloud to the states server.      Any ideas how this could have been setup or why it might not be working now?  Any ideas?
0
We are supporting multiple separate sites, not on the same domain network, nor server and across the board multiple computers are experiencing the same issue, when they are turning on, while loading Windows, they go to a "Fixing (C:) Stage (numbers from 1 to 5)" and a percentage with an ETA of hours (could be 4 to 20 hours), once stage 1 gets to 100% is goes to stage 2 and so on.

All computers are Windows 10, so we are assuming a Windows Update. Does anyone have more information about it?
0
Hello, I'm trying to jump into the programming side of things and I have a course I need to finish.  I have been going through the course material, challenge exercises, and coding sections and find that reading isn't helping it stick.  Maybe it's the course, but probably me.

Looking for a Python one-on-one type instructor for virtual sessions to go through the programming portion with me.  I have limited time access to the course and would need to complete the material in a couple weeks.

Thank you
0
My home page in sharepoint online is reporting as 900GB when I go to the metrics page  
https://tenant.sharepoint.com/_layouts/15/storman.aspx and add up all the sites it only comes to 220GB. Can anyone tell me what the additional space is or how I locate it, thanks.
0
We are trying to have our old website redirected / resolve to a new domain name which is now hosting the companies current and active website

so users/clients currently trying to access "www.Domain1.com" and getting a 404 page not found error,  as the site is no longer active. We have our new domain available at "www.Domain2.com"

If i go to our domain host management page for Domain1.com, its showing that domain is pointed to the DNS servers our ISP manages. If i then go to our ISP's DNS zone management page, it previously had A records for www.Domain1.com, which have since been removed, and in its place a new CNAME record

the CNAME record is as follows

www.Domain1.com 300 IN CNAME domain2.com

My understanding is that when users try to access www.Domain1.com, it hits our ISP DNS zone, should see the CNAME record and then send back the IP address for www.domain2.com and the user will get the new website

This is not currently working, what am I missing?

Thank you!
0
In Google Photos, my photos are uploaded as original, because I don't want complression. My Google Drive is steadily filling up, but a big chunk of the space is taken up with motion photos (or Live Photos as Apple call them). I have now disabled motion photos in my phone's camera, because I don't use it anyway, but now I have tens of thousands of photos with motion enabled, taking valuable space in my Google Drive. I know that cropping a motion photo removes the motion from it, so is there a way to do this for all photos, without cropping?

This isn't something that Google will provide a feature for, because they don't want people to keep a lean Google Drive. But is there a script that can be utilised to recursively go through all photos and strip out the motion from all of them?

Thanks.
0
I have an organization with Exchange 2013 servers at three sites running a DAG. Latency between sites 1 and 2 is about 1-2ms, and latency between either site and site 3 is 25-35 ms. get-exchangeserver shows all three servers using the DC at site 2. we have been noticing serious delays in replication when settings change- for example, 2 weeks ago we removed a delegation setting from a mailbox, and one of the users still has the access while the other does not. Sometimes settings take a few days to go through. Any idea where I should look for the cause of this? I haven't noticed anything abnormal in the event logs. The only change I made recently was this morning where I removed Hyper-V time sync from the guest services for the DC, which was causing a 3-minute time difference between sites- well within the 5 minute SSL/Kerberos 'skew' limit. Let me know- I appreciate any suggestions!
0
I currently have Magic Mirror installed as well as both the MMM-Facial-Recognition and MMM-Facial-Recognition-Tools modules.  I captured training images and ran the necessary scripts.  However, I am having a problem setting up the config.js file and making my mirror selectively display contents on the screen by who is looking at it.  I am not sure how exactly to go about this because everything I have found online so far has provided no guidance.
0
Hi expert,

For connection between outlook 2010 client connect exchange, which authentication is more recommended? negotiation authentication or NTLM authentication?

In our internal network environment, all PC need to go through proxy to access internet.


With proxy connection, during setup do i still need to tick and enable msstd:exchange.contonso.com?

Thanks.
0

Golang

620

Solutions

1K

Contributors

Golang, also called Go, is an open source programming language that is a statically-typed language with syntax loosely derived from C, adding automatic memory management, type safety, some dynamic-typing capabilities, additional built-in types such as variable-length arrays and key-value maps, and a large standard library. Go is a general-purpose systems programming language that aims to be efficient both for development and execution with a focus on fast compilation and increased maintainability of large projects. Go was originally targeted at systems programming tasks such as building server/web applications, high throughput middleware and databases.