Golang

274

Solutions

655

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

Hi, If I take a photo from my android One Note and have it to go my computer, sometimes shows up on the computer as an x.  It shows on the android fine.  it's happens about 30 percent of the time.

Thanks all.
0
[Webinar] Improve your customer journey
LVL 12
[Webinar] Improve your customer journey

A positive customer journey is important in attracting and retaining business. To improve this experience, you can use Google Maps APIs to increase checkout conversions, boost user engagement, and optimize order fulfillment. Learn how in this webinar presented by Dito.

We have 3 domains (not child) and I have been trying to remove one of them (not root) to get us down to the 2 we use. This domain I am trying to remove used to hold many child domains under it, and they were all removed properly....except for one it seems. When I try to demote the server, it starts all checks, passes, and then reaches this point (according to the logs)

02/12/2018 10:41:36 [INFO] Uninstalling the Directory Service
02/12/2018 10:41:36 [INFO] Invoking NtdsDemote
02/12/2018 10:41:36 [INFO] Preparing the security account manager (SAM) and Active Directory Domain Services for demotion...
02/12/2018 10:41:36 [INFO] Validating the removal of this Active Directory Domain Controller...
02/12/2018 10:41:36 [INFO] Error - Active Directory Domain Services could not be removed on this Active Directory Domain Controller because this is the last AD DC in the domain, and the domain has a child directory partition DC=OldChildDomain,DC=ThisDomain,DC=Com. (8398)
02/12/2018 10:41:36 [INFO] NtdsDemote returned 8398
02/12/2018 10:41:36 [INFO] DsRolepDemoteDs returned 8398
02/12/2018 10:41:36 Failed to demote the directory service (8398)

I cant find this child domain anywhere....not in ntdsutil, not in ADSI edit...the onl;y reference I ever found to this old domain was in the attributes of the domain itself (right click domain name and go to properties --> attributes tab) and it was under the "subrefs" attribute.
0
I'm helping a client (about 15 users)  start putting all their company data on centralized storage for file sharing and backup purposes.  They have an in-house app server (no AD) and NAS box, the latter of which has plenty of space for their data storage.   Am wondering whether to go with a mapped-drive scenario or just put them on Sharefile via Office 365?  Thanks for your input.
0
Viewing an Everfocus DVR through Web Browser I can log in change settings but can not view any of the cameras the screen area shows blank white screen. It is recording as I can see the camera indicators go from green to yellow when there is movement but there is no image on screen. I can search events timed and motion but when viewed nothing shows on the screen. Everything is normal thru an attached monitor.
0
How do you Switch Views within the same Child Frame?  C++ VS2018 15.5.6  I am using the MFC Doc/View Architecture.  I can create new 7 document, as programed.  I have seen several different code examples for do it within the Main Frame, however not within the Child Frame class.  I have created several different CView based classes.  I have added the #include(s) for them in the App.h file header, and this header is included in the ChildFm.cpp file.  It shows up OK as far as Intellisense is concerned.  
// ChildFrm.cpp : implementation of the CChildFrame class
//
#include "stdafx.h"
#include "TCPG.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif

// CChildFrame
IMPLEMENT_DYNCREATE(CChildFrame, CMDIChildWndEx)
BEGIN_MESSAGE_MAP(CChildFrame, CMDIChildWndEx)
      ON_COMMAND(ID_VIEW_PLAYERVIEW, &CChildFrame::OnViewPlayerview)
      ON_COMMAND(ID_VIEW_QUESTIONVIEW, &CChildFrame::OnViewQuestionview)
      ON_COMMAND(ID_VIEW_LAYOUTVIEW, &CChildFrame::OnViewLayoutview)
      ON_COMMAND(ID_VIEW_YOURREADING, &CChildFrame::OnViewYourreading)
END_MESSAGE_MAP()
These are the function declarations for switching the views.  The empty bodies are in the .cpp file.
And all of it compiles OK at this point.  Each view class is filled with all of the necessaries for that class, and works with the CDocument class.
Yet ...  when I add
// ChildFrm.h : interface of the CChildFrame class
//
#pragma once

class CChildFrame : public CMDIChildWndEx
{
      DECLARE_DYNCREATE(CChildFrame)
public:
      …
0
Its probably so simple for someone who knows
Here's the thing.  I run my service business schedule through outlook calendar.  Works really well.  I don't set each service call up as an allotted time, I just set each one up as an "all Day event", and that way they show clearly on the view, one under the other when I am looking at the days work, be it from weekly or monthly view etc.  Now that is all besides the point, except that this means each of those entries has been put in there as a recurring all day event.  It is no problem, as I print off the calendar for the day and can see all the jobs and then we just work out ourselves what time frame we will go where.  Now, my issue/problem is this:
The customer asks "when is my next visit?"    So I go into my calendar and do a search under their name, and good as gold up pops their appointment.  Now that is fine, but it only pops up the first one or what you might call the main one, and it says "Occurs every 4 weeks on a Tuesday starting Tues (date)..."   but what I need, is that when I search for 10 Batty Road, Big Freeway Town, it will bring up ALL the scheduled visits, not just the main one that says every 4 weeks starting etc.  I need it to show up a list of them, so we can see the one for the next time, and the time after that etc.  So the list should show the first one on the starting date, and then it should also show the one that is 4 weeks later, as well, and the next and so on, or give me a date range to put in.  So …
0
I sent an email and it vanished. I copied myself and it did not show up and it is not in the sent file either. I checked all other junk, bulk, trah files, etc., too and still can't find it.
Where did it go?
0
Server 2008R2 RDWEB question. From internal on our network go to the web address with IE and perform anything I need. From outside our network I can go to the web address, sign in just fine I can see all the RemoteApps but can't connect to anything from that point.  If I go to remote desktop I can enter a name the box pops up I hit connect and then I receive an error(see Attached File) Thanks in advance this is driving me crazy.
RDWEBERROR.PNG
0
Hi

I am having issues with Exchange backups when using Exchange GRT, it keeps failing with and error that there are log files missing, and if I go and have a look for these logs, they are not there, how do I get exchange to recreate or ignore these logs?

The errors I am Getting is as follows:

The item \\bgt-ex1\D:\Program files\Microsoft\Exchange Server\V15\Logging\CmdletInfra\Others\Cmdlet\MSExchangeMailboxReplication.exe_5468_Cmdlet_2018020808-1.LOG in use - skipped.

The item \\bgt-ex1\D:\Program files\Microsoft\Exchange Server\V15\Logging\CmdletInfra\Others\Cmdlet\MSExchangeMailboxReplication.exe_5468_Cmdlet_2018020809-1.LOG in use - skipped.

If I remove the GRT option from the set, it will finish with exceptions

We are using Exchange 2013 and Backup Exec 15

Thanks
WImpie
0
NAS gets filled up with "stuff"....

I support a small office...4 laptops win 10 in a workgroup all using a network attached NAS to save data...
It is a WD My Cloud Mirror NAS....3 Gb....it normally has about 1.2 Gb of data...leaving about 2.4 Eg of empty space...
Users get error messages....HD full...cannot write etc.etc...

On 2 occasions that NAS drive has suddenly filled up with "stuff"...As I go thru the various folders in the NAS...I don;t see
anything that looks significantly larger than "normal"...

On the first occasion...after about 2 hours...the NAS filled up...something happened and it went back to it's normal size...

3 days later the same thing happened...In this case I had  my users "aware" of what they were doing in case the NAS gets filled up again...
They were working on spreadsheets and word docs....not large complicated files...

In this case...I unplugged the network cable for about 15 minutes while I was starting to connect a 2ed NAS...
I reconnected the first NAS....disconnected the 2ed NAS and left the office for about an hour...
When I got back...the NAS was empty again...

I have NO idea what is causing this...
Going into the dashboard for the WD My CLoud Mirror...it reports that the SMART specs are good...
I'm kinda speculating that perhaps the NAS controlling software and/or the hardware is going bad...

I am going to connect the new NAS...and take this NAS offline....probably reformat it and see what happens...

Appreciate …
0
Get your problem seen by more experts
LVL 12
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Greetings Experts,

I can't seem to figure out how to add the second backup tunnel for AWS on my Sonicwall.  All the directions I'm finding  just show how to create the first tunnel, which I did and the VPN is running.  
In the config file you get two sets of information with different wan IP's.  The Lan Gateways are the same.  
I went to create a second VPN on the Sonicwall with the second AWS gateway IP, but I can't due to the Lan networks being the same.  When I go to create a new network, with the same lan network it says they overlap and won't let me do it.  

I'm guessing I'm just missing something easy, but I'm new to sonicwall and this firmware is new as well.

Any help would be most appreciated.

Kacey
0
Most of our clients with VMware infrastructure. We never heard anything going/went wrong with that infrastructure other than in-house tech ask us ,How to do ?  What to do ? etc . In my past two years, i have not seen a failure/down time. They have been running without  a single point failure.
I was asked to document for DR. I have no idea what can go wrong !. Experts out there, Can you please list me few things can go wrong with VMware and bring the infrastructure down. Of course ,core switch can bring entire network down , but it is not VMware admin job.
0
Hi Experts,

I have an end user that is not able to search their inbox for old messages. The search  results only go back a week.  I am running Exchange 2013 environment.

Any thoughts and what could be causing this problem?

Thanks
0
Hi, I need some help for security  internet explorer .
 as per attachment when I click " Go on to the webpage ( Not recommended ) it still loading.  Cant load the webpage.
already verify another computer with less security patch can open the webpage.

this windows 10 Internet explorer is fresh installation no update, how to downgrade or re install IE to older version in Windows 10 pro.
ScreenHunter_03-Feb.-01-16.29.jpg
0
Hi, I can't seem to find the "full screen mode" option on my phone. I go to settings, then display settings but i can't find the full screen option there. Is it the operating system? Please help
0
i have Installed Jenkins In my system & i am Configuring with Java Later i set these below for Email notifications
 I have added the ssl enable to ture in Jenkins.xml Like below
-Djava.awt.headless=true -Dmail.smtp.starttls.enable=true

My SMTP settings are
SERVER smtp-mail.outlook.com
SMTP PORT 587
Use SSL is checked
Username *****
Password ******


i got this error

javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?

      at sun.security.ssl.InputRecord.handleUnknownRecord(Unknown Source)

      at sun.security.ssl.InputRecord.read(Unknown Source)

      at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)

Please go through this give me a solution as early as possible

Thanks In advance
0
So we have a few users in a small business and there is an admin@..... email address.

One user uses Admin all day as their primary inbox and sends and recieves emails from this mailbox.

Then we have another user who also likes to go through the admin emails and see whats going on. So we have added the Admin mailbox to that users Outlook, but now there has been multiple issues where this user is reading unread admin emails and then not re-marking them as unread then admin user overlooks the email/doesnt reply.

I know its a very simple task to just click unread after reading the email but these users are not very computer literate and are not very receptive to change. So they have approached us for a solution and I am unsure of the best way to achieve this.

I suppose making an admin2 mailbox and creating a rule to copying all emails into it is one way. I feel like this is a bit of a messy setup and will bloat the database.

Any suggestions on how best to achieve this?

Exchange 2010 and Outlook 2016.
0
User has lost login password and I can't figure out how to change login so I can go in as another user.
The user name and login work on the web mail portal,but not on the laptop.
Any clues?
login.jpg
0
We were wondering if the Cisco 7945 phone had a "global" alarm code.  In the event of an emergency, we were wondering if we could program/enter a code where as all the phones would go "off" to alert employees of a pending emergency.  Thanks
0
The 14th Annual Expert Award Winners
LVL 7
The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

<?php
if(isset($_POST['email'])) {
     
    // CHANGE THE TWO LINES BELOW
    $email_to = "cprabha@hotmail.com";
     
    $email_subject = "Enquiry from Brandsterlab";
     
     
    function died($error) {
        // your error code can go here
        echo "We are very sorry, but there were error(s) found with the form you submitted. ";
        echo "These errors appear below.<br /><br />";
        echo $error."<br /><br />";
        echo "Please go back and fix these errors.<br /><br />";
        die();
    }
     
    // validation expected data exists
    if(!isset($_POST['name']) ||
        !isset($_POST['email']) ||
        !isset($_POST['webdesign']) ||
        !isset($_POST['ecommerce']) ||
		!isset($_POST['customweb']) ||
		!isset($_POST['mobile']) ||
		!isset($_POST['branding']) ||
		!isset($_POST['saab']) ||
		!isset($_POST['mercedes1']) ||
		!isset($_POST['mercedes2']) ||
		!isset($_POST['mercedes3']) ||
		!isset($_POST['mercedes4']) ||
        !isset($_POST['message'])) {
        died('We are sorry, but there appears to be a problem with the form you submitted.');       
    }
     
    $name = $_POST['name']; // required
    $email = $_POST['email']; // required
    $webdesign = $_POST['webdesign']; // required
    $ecommerce = $_POST['ecommerce'];
	$customweb = $_POST['customweb'];
	$mobile = $_POST['mobile'];
	$branding = $_POST['branding'];
	$saab = $_POST['saab'];
	$mercedes1 = $_POST['mercedes1'];
	$mercedes2 = $_POST['mercedes2'];
	$mercedes3 = 

Open in new window

0
Hi,

i have adoubt in the contact form of the website http://www.brandsterlab.com/contact.html   in the site i wants mail from the sender those who are sending from the contact form. Can i paste the code now? pls check the error in the code or ( i have doubt in the dropdown box area)

<?php
if(isset($_POST['email'])) {
     
    // CHANGE THE TWO LINES BELOW
    $email_to = "somebody@example.com";
     
    $email_subject = "Enquiry from Brandsterlab";
     
     
    function died($error) {
        // your error code can go here
        echo "We are very sorry, but there were error(s) found with the form you submitted. ";
        echo "These errors appear below.<br /><br />";
        echo $error."<br /><br />";
        echo "Please go back and fix these errors.<br /><br />";
        die();
    }
     
    // validation expected data exists
    if(!isset($_POST['name']) ||
        !isset($_POST['email']) ||
        !isset($_POST['webdesign']) ||
        !isset($_POST['ecommerce']) ||
		!isset($_POST['customweb']) ||
		!isset($_POST['mobile']) ||
		!isset($_POST['branding']) ||
		!isset($_POST['saab']) ||
		!isset($_POST['mercedes1']) ||
		!isset($_POST['mercedes2']) ||
		!isset($_POST['mercedes3']) ||
		!isset($_POST['mercedes4']) ||
        !isset($_POST['message'])) {
        died('We are sorry, but there appears to be a problem with the form you submitted.');       
    }
     
    $name = $_POST['name']; // required
    $email = $_POST['email']; // required
    

Open in new window

0
I'm trying to figure out the best solution for my current home setup. I have 5 3tb drives, ASRock Z97 Extreme 6 mobo and Vantec 4-Channel 6-Port  pci-e card (only 4 ports at once).

I had 3 of the drives in raid 5, but was running out of space so I got the additional 2 drives. My top priority is the space. I know Raid 10 is the typical route to go, but I don't want to give up the space. The ASRock has 6 onboard Intel ports so I currently have the drives installed there. I set it up with Raid 5 and was getting horrible performance. The speed tests were good, but actually moving files to the drive was getting around 40mbs. I did not write zeros to the drives before hand so I'm doing that now hoping that is the issue. I've tested each drive individually and they are good.  

Can I get some suggestions as to how you guys would make the best use of this setup. My priorities are first space, then speed and then redundancy.

I appreciate the help!
0
I am trying to automate my IE and I have a table which I need to copy and sort.
When I use web query, it works but it is not dynamic. What I mean by this, is that there are different departments in my company and each one has the same table but it is populated with different values according to the department.

I want to be able to have the user choose their dept and based on that, the web page will load and the table will be extracted.

Unfortunately, you won't be able to open the web [age as it is an internal page but i will post the HTML code and my code.

The result is always the same - the ietable returns nothing instead of the object of the table.

HTML:

<table cellspacing="1" cellpadding="3" align="Left" bordercolor="White" border="0" id="SNDG" style="background-color:White;border-color:White;border-width:7px;border-style:Outset;height:1px;width:1200px;">


My code:

Dim ieApp As InternetExplorer
Dim ieDoc As Object
Dim ieTable As Object
Dim clip As DataObject
Dim ProdButton As Object, DEP, LoginButton
Dim rng As Range, cell As Range
Dim DMRNumber As Integer, i

Application.ScreenUpdating = False
 
'create a new instance of ie

Set ieApp = New InternetExplorer

'you don’t need this, but it’s good for debugging
ieApp.Visible = True

'assume we’re not logged in and just go directly to the login page
ieApp.Navigate "http://esp_f2_prod/fab/esp_f2/(S(epon110hxxrxeyuaz5foweil))/Default.aspx"
Do While ieApp.Busy: DoEvents: Loop
Do Until …
0
Im trying to do a transfers but they are all pending but Eth never leaves my wallet.
They are all under SIGNER and local transactions.

Im not sure did they even leave my computer?
If I go to TxQueue Viewer I see this
Parity.JPG
Can anyone tell me whats is wrong?
0
We have 4 RDS servers, and 1 RDS Gateway Server which is also the Broker. The 4 Session Host servers is divided into 2  Sessions Collections. When a user RDP into the Gateway he is getting redirected to the Wrong Session Collection.

I have search the internet and can't find a proper explanation on how to broker decide to which Session Collection to send the client. I thought it was based on the group you add when creating the Session collection.

Please any help on this will be much appreciated. The outcome is to have say User Group A to always go to Session Collection A and then User Group B to go to Session Collection B.
0

Golang

274

Solutions

655

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.