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

We are currently have a large amount of data we want to back up to a safe location. All of our IT infrastructure including servers and storage (Dell EMC) are located on premise. We have a gateway server that allows our servers to connect to the Internet. The data doesn't need to be accessible constantly. We only need to retrieve the data when there is a catastrophic event on premise. We are looking into AWS Glacier as our solution; however, we have couple concerns:

. Can we just use the AWS Glacier service without using any other AWS services to upload and to retrieve our data?
. Our data is currently located on an Isilon that doesn't have direct access to the outside Internet? Can we set up so that we can upload/retrieve data from the Isilon to AWS Glacier?
. The files and folders we want to back up to AWS contain very large graphic files. The files can go up to couple hundred Gibs. Will speed be an issue?
0
Hi,
There are File Servers:
FS#1 is bad.
FS#2 is the replacement.

Here is the hierarchy of the folder:
FS#2> Marketing > Proposal > many folders here
The permitted users to Read, write or modify every folders under the “proposal” folder are
User#1
User#2

I want to give permission to User#1 to be able to modify any folders under the “proposal” folder.
The things that I do:
I go to the Proposal folder > right-click, select properties > go to the Security tab > click Edit > then, I add the “user#1” and give him “Full Control” permission > then, click OK or Apply

My question: Is there anything else that I have to do?

tjie
0
We would like to use Biztalk to do some EDI transforms, and I am standing up a new 2019 server with Biztalk 2020 in the lab to see if it will do the job we need. After a lengthy round of double checking all the prerequisits, I finaly have an install.....almost.  When running the configuration manager I get an error on the one part I will need!  The section labeled 'Biztalk EDI/AS2 Runtime' flags an error "Host (BizTalkServerApplication) is an invalid Recieve Handler for SQL AdaptEr.  Please go to BizTalk Administration Console to add BizTalkApplication as a new Receive Handler."
Seems pretty straight forward... but the administration console does not have a SQL Adapter.  More digging into Biztalk documents reveals the SQL adapter has been removed in version 2020.  Links guide me to documentation that tell me it is available in the 'adapter pack' which has 5 adapters included.  However the adapter pack that came with the distribution only has 4, the SQL adapter is not included. With much Google-fu I am still unable to find a download for the holy SQL adapter.  Just lots of places that tell me that is what I need.

Does anyone have a link to this adapter download package?

and WTH does a fresh out of the box install fail to set up a component for lack of a adapter that has been removed from the distribution?
0
I have a client that is running Windows Server 2016. They have two FTP sites (behind a VPN firewall) on Ports 21 and 21000. The reason they have 2 FTP sites to to accommodate different aspects of their business.

These FTP sites recently stopped working for no obvious reason and I've set-up SFTP for them.

Following an online set of directions I found [1], I am able to have certain users land in a given folder (e.g. ~\ProgramData\ssh\sshd_config) with the directive:

ChrootDirectory D:\FTPSites\Site

Open in new window


Otherwise it defaults to C:\Users\UserName, which is not acceptable to them long-term.

Is there a way to have SFTP go to a different directory based on the local user accessing the server? Or is SFTP limited to only one folder a user can "Chroot" to?

Thanks!

[1] https://tech.xenit.se/installing-and-configuring-sftp-server-on-windows-server-2016/
0
I've downloaded the latest MS Edge because it seems quite good.  I had previously been using Chrome.

I'm able to set my home page to google.com, which I want because I use gmail and my contacts and calendar are all also at google.

Edge will go to this, but only when I have one instance and only with my initial page.  All other times it goes to some MS page (not specified in the address bar, but certainly the bing home page).

Is there anyway to get all tabs in all sessions to go to something besides bing.com?
0
Over the last two weeks, I've had a number of Windows 10 computers go into a looping restart.  Upon system power up, a Windows logo appears for a short bit with a dotted whirligig... the screen clears and is followed by a second dotted whirligig... after another short bit, the screen clears and the system drive activity light flashes for some 20 - 30 seconds before the system restarts and the sequence begins again.  This looping restart continues until power is removed from the system.

I've tried booting from a Windows 10 installation CD and running Repair.  Startup Repair does nothing.  System Restore does not remedy the looping restart.  Chkdsk with /r does nothing.  The one time I was able to get the option to start in Safe Mode, the looping restart prevailed.  On earlier systems, I simply restored from backups.  On this particular system, it has no backup to recover to.  Yes... I've created a full image backup of the drive so I can recover data.  But I'd like to think that I made every possible recovery attempt before I perform a clean Windows install, return the client's data and inform them that they'll need to reinstall programs, printers, email, settings, etc. that are now lost for good.

Any ideas?  I have a stinking suspicion that this won't be the last of these symptom computers that I see.

Thanks for reading and giving thought to this!!

Jim
0
Hello Experts

I have a client who is translating some documents using Word 2010.  One document is over 45 pages long.  He needs to insert footnotes, but it stopped inserting them on page 33.  Once he got to Page 34, the function quit.  He can go back to earlier pages and enter them, but not past Page 33.  

I imported the document to test it and it does the same thing on my computer, also using Word 2010.

I copied and pasted pages 34 to the end to a new Word Document and it enters footnotes just fine.  He is on footnote 16 and in what I copied and pasted, it starts with number 1.  But I think I can make that work so it starts with the correct number.  So I've found a potential work-around, but I'd like to fix this.

Anyone have any ideas?

Thanks

thedslguy
0
Hi,
I need to move around 6 clients G suite to 365 Business and the rest from Go daddy Workspace email to 365 Business.

For the small amount of clients can I do the following?

1. Setup 365 Business and add users
2. Verify Domain
3. Export data from outlook to PST file
4. Change MX to point at 365
5. Reimport data from PST to outlook?
6. Cancel Subscription with Gsuite and Go daddy

Or do I need to use a migration tool ?
0
I have a company that has approached me to help them upgrade about 25 computers. My question is in regards to licensing. The original computers were purchased from HP about 4 years ago with Windows 10 Pro 64bit factory installed. When they got them, they downgraded them to Windows 7 Pro 32bit with Microsoft Open License they purchased from Microsoft. They have to use 32bit because of a legacy app that they still use.
If they upgrade to Windows 10 Pro 32bit on each machine, obviously we will have to purchase it from Microsoft as an Open License. I know what they are going to ask me so I want to ask before they do: Putting the machine back to Windows 10 will have to be a "customer purchase" because they voided the OEM license by downgrading with a Open License, and moving to 32bit, correct? I just want to be specific in my answer to them as I am sure they will get a second opinion. I think they are of the opinion the license should be free to go back to Windows 10.

Thanks for your help.
0
I want to set up go daddy email on my iphone but it has a web interface (see graphic). How can I configure this?
err
0
I need to add the missing data part in the serial port VBA Ms Access  code below, I’m trying to convert the VB6.0 code to VBA so that the code can work properly, but unfortunately, I cannot go any further due to knowledge gap here:

Code VB6.0 for
Private Sub cmdWrite_Click()
Dim lBytesWritten As Long
Dim BytesToWrite As Long, wData As Integer
If setFlg = False Then
MsgBox "Please click the Setup Button to do the setup First"
Exit Sub
End If
wData = txtWdata.Text
BytesToWrite = comDCB.ByteSize
openSuccess = WriteFile(hPort, wData, BytesToWrite, lBytesWritten, comOverlap)
End Sub

Open in new window


VBA Code

' Write data to serial port.
    strData = JsonConverter.ConvertToJson(transaction, Whitespace:=3) & Chr$(13)
    lngSize = Len(strData)
    lngStatus = CommWrite(intPortID, strData)
    If lngStatus <> lngSize Then
    ' Handle error.
    End If

Open in new window



Missing data in VBA


Mandatory paramaters required in VBA code
Three local variables are declared at the beginning of this procedure. The first variable,
(1)      lBytesWritten, is the starting address that will store the data written to the serial port.
(2)      The BytesToWrite variable will store the number of bytes to be written to the port, and,
(3)       the wData variable will store the single byte of data to be written to the port.

The reading part of the code are as below:”
VB6.0 Reading Code


Private Sub cmdRead_Click()
Dim lBytesRead As Long
Dim BytesToRead As Long, rData As Integer
If setFlg = False Then
MsgBox "Please click the Setup Button to do the setup First"
Exit Sub
End If
BytesToRead = comDCB.ByteSize
openSuccess = ReadFile(hPort, rData, BytesToRead, lBytesRead, comOverlap)
txtRdata.Text = CStr(rData)
End Sub

Open in new window

Missing data in VBA

As in the Write event procedure, we must first declare three local variables.
(1)      The lBytesRead variable is the starting address that will store the data read from the port.
(2)      The BytesToRead variable will indicate the number of bytes to be read from the serial port.
(3)      The rData variable will store the value of the data to be read from the port.

VBA Code


Open in new window

0
Attached you will see a piece of procedural code that I have been tasked to convert all to a sql solution.

This sqr code will be change to sql and go in a people soft application engine step as all 'sql'.  
After much thought I believe a solution would probably be best as a tsql stored procedure.  

But my suggestions as I am low on the totem pole of important decision maker :-) are not always heard.  
Anyways, attached you will see an excerpt of the code, and another attachment with the array declaration.  What I would like from you is your opinion on how you would approach translating this code in tosql only.  

 InNote: this app engine we have bind variables to hold values.

This what I am proposing for this program which generates an invoice.

- arrays will be redone as temp tables holding all the seed data;
- temp tables to hold data fro grouping purposes that will populate the final tables.
- where / case statements to translate the 'ifs'


Any other suggestions...

Please note I am just looking for a design that will yield a clean solution. This is my ultimate reason for writing this.

Thank you,
Brock

INSERT INTO PS_NCSF4204
      (OPRID
      ,RUN_CNTL_ID
      ,EMPLID
      ,ACCOUNT_TYPE_SF
      ,TERM_DESCR
      ,ITEM_NBR
      ,DESCR
      ,AMOUNT
      ,ITEM_TYPE_CD
      ,LAST_ACTIVITY_DATE
      ,STRM)
VALUES
      ($_prcs_oprid
      ,$_prcs_run_cntl_id
      ,$Emplid
      ,$Account_Type_SF
      ,$_DescrShort
      ,$Item_Nbr
      ,$Descr
      ,#Total
      ,$Item_Type_CD
      ,NULL
      ,$Term)
end-sql
charges.txt
array_declaration.txt
0
Hello,

In our organization we have a mix of three different Office 2019 licenses, which are a combination of Microsoft Action Pack on Professional Plus, Microsoft Open Volume on Professional Plus, and Retail licenses on just Professional (NOT Plus).  I have found that all three of them appear to be on completely different update channels by default.  I know that the Volume License version can only be on the "Perpetual" channel as well.

I would like to get all three versions on some form of the same channel but I'm honestly not sure if this is even possible.  Has anyone ran into this before in a mixed Office 2019 environment, and if so, how do you go about trying to keep them all on the same channel for updates?  I have come to realize that running a mixed environment of newer Office versions is a complete nightmare.  

Thank you
0
DB2 10.5 on Windows Server 2012 R2

I have a BLOB field in a table that has a photo stored in it.  There are 7 million rows and the table size is 490 GB.

We recently made changes to the system to store the photos on a file share instead and have the table hold a URL to that photo instead of the photo itself.

The developers re-purposed the BLOB field to hold the URL instead of creating a new VARCHAR field to do that.

I had assumed that the table size would shrink as the photos were replaced but so far we have replace 2.5 million photos with URL and I don't see any changes in the table size or the tablespace.

Is there a minimum  size that a BLOB will not go below?  Or do I have to REORG the table in order to see a change?

Thanks!!!!
0
I'm being told by my disty that this sku can be moved to new hardware if the old hardware dies. as far as i can see, this is an OEM license, which as far as i know, is not supposed to be moved to new hardware. although it *might* work there is no guarantee as far as i know.

this is going to be a baremetal server, not a vm. i want to make sure that if the board dies, then we don't have to buy a new license for the server.

can anybody  go definitive for me please?
0
Hi all!  We have a pretty solid history with our customers of doing top notch high quality work  It has been brought to our attention that some people are doing in place Windows 10 upgrades, rather than a fresh install.  We have clients where they don't want to invest in new hardware and although 4+ yrs old, more than meet their needs (i7s etc)  .  Due to spindle drives being one of the weakest links in a desktop, the registry getting bloated over a few years, we recommend doing a new install of Windows 10, on an SSD, then installing apps fresh, and restoring any local data/config etc.   Many of the users are on Office 2010, which EOL is Oct 2020, when it comes to sec updates too. Yet another reason to go to a new install on an SSD.
The systems we have done - are flawlessly reliable.  Does anyone disagree with a fresh install on new drives, vs in place?  I keep hearing people having performance issues, random BSODs, and other issues with in place upgrades.

I just want to see what the consensus is.
Most users even notice an increase in performance by adding an inexpensive SSD.
Thanks!
0
hello Team

we have two print servers, we would like to remove one but transfer an important printer to the print that will continue running, the issue is that there are many computers on the network printing to the device on the print server that need to be removed. we would like to know the computers that would be affected so we can go back and reinstall the printer pointing to the new print server.


Thank you in advance.
0
My login form opens in a modal window (Lightview, which is a jQuery modal). The author has abandoned support, but the modal works great for multiple needs.

I keep a variable, which holds the full path to the current page. On successful login, which is authenticated with an AJAX script, I simply do a relocate to the current page as "parent". That page needs to refresh in order to note the user is logged in and provide a logout button. But it also needs to pull up another model with menu selections for the logged in user. In order to open that menu, I sent a variable to the url, which is picked up in the footer. This all works fine in other browsers, but not in IE11.

So, the process is
1. User presses login button. This brings up the login form in Lightview. (Full path of CurrentPage is held in variable
2. Form is submitted to an AJAX authentication.
3. On success, location is directed back to the current page using
   window.parent.location.href = data.CurrentPage+"?Exp=1";

Open in new window

In browsers other than IE11, this closes the model window, refreshes the current page, the Exp is picked up by a javascript function, and the logged-in menu appears in another modal.

I have tried every way imaginable, including replace, assign, window.top ... nothing seems to work in IE11. It simply does nothing, The page does not relocate and the url does not go to the address bar. Even tried history.go(-1). Any known solutions to this problem?
0
I have a TS-215 running firmware 4.4.1.1146.  I am trying to setup a VPN connection to the device following this article:

https://www.qnap.com/en/how-to/tutorial/article/how-to-set-up-and-use-qvpn-2-0/

I have the firewall port setup for the VPN connection and correct internal IP of the QNAS.  I have the QBELT server enabled, User privilege assigned,  and setup the connection profile.  I then downloaded the installer/config file and installed to a Windows 10 system.  When I go to connect, I can watch the process of dialing, then see it try to authenticate.  At that point I get an error "Unabel to create a VPN connection" I went back through the setup steps again, and do not see where I have missed anything.

Has anyone setup a VPN to a QNAS?  Is there something I have overlooked?
0
I use Outlook 2010 with an Exchange back end. I have 18 Tasks in my task list that will not go away. I've tried searching all my emails to see if some of these tasks match up but they do not.

I have tried deleting them and as well as Remove from the List. They go away for a couple of minutes and then you can watch them come right back. What gives? When does Delete not mean delete? Thanks for any help.
0
A while ago I made a change in the settings/preferences in Adobe Acrobat Pro DC.  Now, when I go to close a document it pops up with a dialog box asking what to do with the hidden information.  I don't want it to pop-up every time I close a document; it is so frustrating.  I changed something, but don't know what I have searched the Adobe forum and Google and cannot find a setting to change.
How to prevent this pop-up on SAVEPicPick-1514.png
0
I would like someone to show me the proper method on how to rename a One Note Notebook and make sure that the new name changes as well in my Documents One Note Notebook folder as well as in One Drive. The way I know of is to change the name in my Documents of the One Note Notebook then go to that Notebook click File-Open-Browse-Then Open and the new name was changed. But when I went to One Drive the name was not changed!!!

Thank you,

Basem Khawaja
0
I wish to make an Excel column of width 2.8mm. When I do this Excel snaps the width to 2.65mm.

It appears that we can only go from 2.65mm to 2.91mm... not the exact 2.8mm

Anyone know of a workaround?
0
Hello,
When you go to page "eliesgrill.com"  you will see the below show up before the page.  Any suggestions how to remove this, and what it is?

Notice: The called constructor method for WP_Widget in cleanretina_custom_tag_widget is deprecated since version 4.3.0! Use

__construct()

instead. in /home/mediterranean1/public_html/wp-includes/functions.php on line 4404

Notice: The called constructor method for WP_Widget in cleanretina_Widget_Adsense_Ad is deprecated since version 4.3.0! Use

__construct()

instead. in /home/mediterranean1/public_html/wp-includes/functions.php on line 4404

Notice: The called constructor method for WP_Widget in cleanretina_Widget_ad_block is deprecated since version 4.3.0! Use

__construct()

instead. in /home/mediterranean1/public_html/wp-includes/functions.php on line 4404
0
We have a PC that we have staged with Windows10 pro and enabled Hyper-V
We have set up a Windows10pro VM
The physical host has two network cards.
One set via DHCP
One set with a static IP

There is an application that will run on the VM that needs to communicate with the static IP network card.  
Everything else on the VM can/should go through the DHCP assigned network card.

I've done some sleuthing around the internet, but cannot find or decipher how to achieve this in the network settings of the HyperV.

Any help is greatly appreciated.
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.