Golang

331

Solutions

774

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

I asked about my Confirmation Email not getting thru using gmail, aol, yahoo and outlook. These are 2 answers I received, but I am not a programmer..... Can someone help me?

Response 1 :
Sounds like spam filtering.
Have you got an SPF record setup for your email domain that shows the GoDaddy servers as acceptable senders? If not, this could be causing emails to go into junk folders or be blocked altogether on systems like Gmail, AOL, etc.
GoDaddy emails are likely fine as it sees the emails coming from their own servers

Response 2 :
"A" has already mentioned spam filtering as the likely cause and I tend to agree. One thing to bear in mind is how you're actually generating email. If you're just using the basic mail() functionality within PHP, then that often gets tagged as spam, because it's very easy to miss out valid headers. The email you send does then tend to look like it's been auto-generated by a script (aka SPAM).
When sending email from PHP, I would suggest you look at something like the PHPMailer library. It gives you a lot more config options and it may help to make your emails appear as 'more genuine' to the mail servers.
0
Cloud Class® Course: Certified Penetration Testing
LVL 12
Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

hi there,

Currently I'm trying to create, sign & broadcast bitcoin transaction using btcsuite. For start, I've already had testnet3 address & its associated privatekey for testing. However, hunting through the post and articles like below:-

https://www.thepolyglotdeveloper.com/2018/03/create-sign-bitcoin-transactions-golang/
https://github.com/prettymuchbryce/hellobitcoin/blob/master/transaction.go
https://github.com/btcsuite/btcd/issues/1164

The solution proposed above its not complete, for first one, it only covers until signing (i knew the author claimed its not broadcastable unless you provide the utxo which i did if i'm right) but when tried to braodcast it failed with message

"Error validating transaction: Transaction be9b294695bfb201a5cff32af074a4bf72b073e3c9dad1969111165bf118a622 orphaned, missing reference f0c0d3b3eecf911ede996a74ceadc9366068791450c9e6bacee9ae202f3690d1."

I have no idea what's going on and I suspect its script is incompatible.

So, the bottom line is I just want a workable example in bitcoin testnet3 that shows "from 1 address transfer some bitcoin to other address" by showing the process of creating raw transaction, sign it with private key, turn it to raw transaction in hex format & broadcast it using something like https://live.blockcypher.com/btc/pushtx/ (BTC testnet)

currently my code is as follow:-

package main
import (
    "fmt"
    "encoding/hex"
    "bytes"
    "github.com/btcsuite/btcutil"
    btcchain 

Open in new window

0
Can we make the macro first time I press it, to go from a1 to a102 and then after that it goes every 100 rows so next would be 202, 302 and so on.
Can you provide a macro to do the opposite? to go up 100 rows? and a macro to go to the top
0
I cant find the homegroup on either of my 2 laptops at all.
when I search I get offered go do a sync
How do I create homegroups or what do I need to do so
that the homegroup options Is available to work with?
what  or where do any settings or options need changed?
HELP
0
I am trying to replicate my Active directory DC and my exchange server to a Virtual server still within my Site. Please I need direction on how to go about it .
Note: the AD server is a Windows 2012 R2.  The exchange is 2013
0
Hi,

Encountered this error "WARNING: The object has been corrupted, and it's in an inconsistent
state. The following validation errors happened:
WARNING: The primary SMTP address, "SMTP:", is not valid.

When moving DB1 to new DB4 for white space cleanup. See attached error as well. Ps advice. Tks

Troubleshoot:
1. Find user mailbox > Exchange 2010 Warming: The properties on this object have invalid data. If you click OK. Default values will be used instead and will save.
2. Click OK > E-Mail-Addresses > Tried to change to smrt.com.sg but with error. The primary SMTP address is not valid. Click OK
3. Observed user mailbox Last logged on by: empty, Total item: empty, Sizke (KB): empty.
4. Go ADSI Edit to edit
5. When back to user mailbox to unchecked Automatically update email addresses based on email address policy and error in below.
   at Microsoft.ManagementConsole.Internal.SnapInMessagePumpProxy.OnThreadException(Object sender, ThreadExceptionEventArgs e)
   at System.Windows.Forms.Application.ThreadContext.OnThreadException(Exception t)
   at System.Windows.Forms.Control.WndProcException(Exception e)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
   at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
   at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 …
0
I have another strange problem when trying to save related tables in C# , I keep on receiving an error as below

PersonID is not nullable


Where do I go wrong ???

When I detach the table to remain with a single table everything works okay, I can change data, delete and add new data without problem.

How do I get rid of this not null-able thing
RelatedTable.docx
0
Exchange 2010 SP3 Roll up 10, Outlook 2016.

I have an administrative user that maintains the calendar for the owner, working from her computer to his shared calendar. She, using the default meeting request, is able to schedule meetings in his calendar and the invite goes out as him.

Recently, we have had an issue with users forwarding invites (for informational purposes) to other users. This adds the other user to the invitee list, and changes every recurring event on the calendar. This creates a mess.

I have created a custom form that does not allow forwarding of the invites. This is working well. The administrative assistant can use the custom form to create the meeting, and invitees cannot forward it. Problem is, now the invitations go out as " {Administrative Assistant} on behalf of {Owner} ". This is not what we want. We want the invitation to go out as the owner's invite. What am I missing on the new custom form? She selects the form from NEW ITEMS/MORE ITEMS/CHOOSE FORM. It is saved in the Organization Forms folder.
0
Windows 10 machine, can't pull up a URL. Can go from a laptop in the same organization or any other computer but this desktop isn't working. The laptop that works is windows 7.

Website is https://rcm.emdeon.com/Portal?_ga=2.24648314.1352853988.1529636377-1009271983.1529636377  which alters URL wise to https://cda.changehealthcare.com

The windows 10 machine I am trying to get to the URL from can't go directly to the URL https://cda.changehealthcare.com

When I ping cda.changehealthcare.com from the machine I can't access it from I get the following IP: 170.138.16.152
When I ping cda.changehealthcare.com from my machine where I can get to the site, the IP is the same in the result of the ping.

I ran CCleaner
I ran temp file cleanup
The system is missing antivirus.

I loaded Webroot to run some scans
It found a malware infection gen.malware   server.exe

Cleaned  that. Going to run temp file clean up as well.
Will reboot and try again.

I checked IE settings to remove proxy server checkbox
Any other ideas?
0
I am in need of an Excel macro that will perform the following:

Compare two columns of stock symbols that are numerically listed and the results of the comparison displayed in a third column.  I’m looking for stocks in column B that have improved in their numerical order (one being the best) from their listing in column A.  The results would be displayed in new column C, and the entries would be listed in order of those making the best improvement at the top.

Considerations:
•      Columns A and B contain 200 entries (rows) each.  No blank cells in either column A or B.
•      Column B may have symbols that are not contained in column A.  
•      Symbols in column B not listed in column A would receive the highest ratings in column C.
•      If there are two or more symbols in column B that are not in column A, the symbols in column B would be ranked accordingly in column C.

Example of conditions for column C listing using attached example file: Two columns of Symbols.xlsx.
•      Symbol ARDM is listed in column B but not column A, so it goes to the top of the list in column C and is listed alphabetically (preferred, but not necessary).
•      Symbol FCRE also listed in column B but not column A, so it goes to the top of the list in column C and is listed alphabetically (preferred, but not necessary).
•      ATNM was 151 in column A, and is 8 in column B, a gain of 143, so it would go above CADC, which was 91 in column A and is 10 in column B for a gain of 81.
•      CADC would go above NEPT …
0
Cloud Class® Course: Amazon Web Services - Basic
LVL 12
Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

I have a similar scenario. I am searching column A for the text "Avg" and then I need to copy the cell in Column E of the same row that the text was found. Then I am pasting it into a word table ( also having issues with placing the paste INSIDE the table).
 Sub CopyAndPaste()
Dim myfile, wdApp As New Word.Application, wdDoc As Word.Document
myfile = Application.GetOpenFilename(, , "Browse for Document")
Range("e4").Copy
wdApp.Visible = True
Set wdDoc = wdApp.Documents.Open(myfile)
wdDoc.Range.Characters.Last.PasteExcelTable False, True, False
End Sub 

Open in new window

In this code, I have entered the cell that I want copied manually from looking at the sheet. I need this to be automated.
It pastes into the Word doc but underneath the table I want it to go in. Can I bookmark the table and set code to paste it in cell (2,4)?
0
Using Access 2016:  I have a Query which groups agents by sales. Not every one will have data that month. I would like to email each individual agent his sales for that month. My questions are:
1. what's the best way to set this up, IE should I use a query, or a report based upon the query. I would need to create an agents table with email and name.
2. what are the steps involved?
3. what would be the code, we currently use go daddy for our email. We do not have a server in-house.
4, what event of the report or query would I use to add the code?
5. can you share code that works for 2016 access?

is this even possible? If the agent has no sales for that month, it should not create the email or should not create a report, if the report is based on a query?
If you can help, I would be gratefully appreciative, or if you can point me to a "dummies" link where I can try to create something.

The last question I had, I got some awesome answers from PatHartman and John . I am in hopes that one of the experts can help me with this as well as those two helped me with my query question. I know this is a lot to ask, but if you know, please help.
0
They open the main form and review / update their client record
Then if they have to edit or add a new contact for this client they click the “Client Contacts” Button
This grabs the account number from this form and uses it to link to the clients table
And brings up all the specific client contacts for that client - it will be multiple records.
So its a one to many relationship.

This is the code behind the “Client Contacts” Button nothing special...
Private Sub Command151_Click()
On Error GoTo Err_Command151_Click
    Dim stDocName As String
    Dim stLinkCriteria As String

    stDocName = "Client_Contacts"
    stLinkCriteria = "[Acct#]=" & "'" & Me![ACCOUNT #] & "'"
    DoCmd.OpenForm stDocName, , , stLinkCriteria

Exit_Command151_Click:
    Exit Sub

Err_Command151_Click:
    MsgBox Err.Description
    Resume Exit_Command151_Click
   
End Sub


The Client Contacts form comes up and everything works great.
They wanted a stream lined form so I added the [acct#] [acct name] and [owner] to the header of the form
with the multiple records of info in the detail of the form

Form header you have
                      [acct#] [acct name] and [owner]
Form Detail you have
                          [Contact] [name]  [address] etc etc ...
                           Contact is a list box with a list of specific contact names (Exp Admin Manager etc etc)

The Issue:
When I go to add a new contact record at the bottom of the form
it erases the …
0
We have a webservice interface that traverses a VPN tunnel over port 80 that has been working fine for years.  With a new customer we have to go over the web via HTTP so we are attempting to setup a redirect using IIS so that the Webservice call will be redirected to interface.  We can from a browser type in the url to the webservice and it completes just fine, however when we try to make the call using IIS it fails with a 404.  The error we are getting is below:

2018-06-04 18:49:47 192.168.200.84 GET /favicon.ico - 6443 - 192.168.200.84 Mozilla/5.0+(Windows+NT+6.3;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/66.0.3359.181+Safari/537.36 https://exidewebservice.prorizon.com:6443/ 404 4 123 1
0
Hi Experts,
I read the answer about CCIE vs CISA,Cissp Posted on 2009-03-04. If focused on CCIE vs CISSP.
I am really interested to go for CCIE and CISA in the objective to be an excellent IT Security Consultant.
I am already CCNA(R&S and Security), CCDA and Security+ certified. Any advice ?
Best
0
I need to find a group texting solution for Android where responses go directly to me, and not back to the group unless desired.

Assistance is greatly appreciated.
0
Is Golang a better choice for a MVC web application (backend) than PHP?
0
As you can see from the attached diagram, site2 communicates with site1 via the pt-to-pt link as the primary. The MPLS is the backup link.

To get to the public server 1.1.1.1, site2 10.10.10.3.13 is going through site1. core1 redistribute static via EIGRP. and site2 learns the DG via EIGRP.

What I'd like to do is to reroute the DG  of site2 to FW2 when 10.100.3.13 or 10.100.3.14 fails. How would I go by accomplish this? Thanks

Capture.JPG
0
Want the list of companies that are using golang
0
Cloud Class® Course: Microsoft Office 2010
LVL 12
Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

HP BLC7000 is housing HP ProLiant BL460C Gen8 with 2 HP Virtual Connect Flex-10/10D modules. iSCSI MSA 2040 is connected directly to VC 10/10D via 10GB fiber.  This set up is working very well.
I am trying to add more storage by using iSCSI Buffalo 5410RN. BL460C is equipped with HP 534FLB (Broadcom).  HP 534FLC has total of 4 connections.  2 Network (LAN) and 2 iSCSI (accelerated iSCSI).  First one is connected to LAN via first VC 10/10D, 2nd is connected to MSA 2040 via first VC 10/10D.  3rd and 4th one is mapped to 2nd VC 10/10D.  I can connect Buffalo 5410RN to BL 460C though 2nd VC 10/10D just fine as long as I go though LAN, but it does not connect directly or go though dedicated iSCSI LAN (switch).
Buffalo tool can ping the static IP of the 4th connection on 534FLB via 2nd VC 10/10D and Broadcom iSCSI ping tool can ping Buffalo’s static IP, Windows 2012R2 iSCSI initiator finds the Buffalo, but will not connect.
Any ideas?
0
I need to search through my Exchange 2013 e-mail Server for any communication containing a particular person's name. This is part of a Data Subject Access Request.

I have no information regarding who sent the e-mails or who it was sent to, just that the e-mail must have been about this named person . So I must do a search for where this name is within the subject or body of the e-mail and on the exchange database. I have no clue how to go about this.

Can someone point me in the right direction.

Gospodin
0
I was told to post a question here in regards to a many rows to one document question.

Nb: I am restricted to do any edits, sort, removing duplicated rows to the excel files. This is why i want my information from excel to pull directly to word without opening the excel file. I have 136 columns per file that I receive and focus on like about 13 columns. Many of the rows are duplicated so what i wanted for my table layout is that if the address for the name is not duplicated it would go to the next row and pull that new address in that document for that name. If it is another name it should go to the next page and do the same thing for the address

So basically if that name has  4 address and duplicated 2 times we will have 8 rows for that name. I want in my word table under address it pulls those four addresses and list them for that name in the first document and skip the duplicate ones. It will then go to the next page for a next name (In row 9) and do the same listing process. I focus mainly on the addresses.
0
My computer has been hacked and taken over by the same sounding tresspasser.. they've imported thousands of files and have index going on of every file several times a day breaking g the files down leaving a computer full of trash. With wreckless abandoned  totally demolished then deleted the video I made to enter a Dallas feztible in June .. I'd worked months on.. I've restored it as far back on my windows 7 as it would go. Turn it off, unplug it but when I turn it back on everything from the hacker is just worse.. how do I errase this fool ?? Thanks garyeasley55@gmail.com
0
I am a novice at best with acrobat and trying to calculate the number of a particular value from a drop down and have as a total at the bottom, please assist. Please see below

Status: GO
Status: No-Go

Need to calculate how many go's in one box at the bottom and the number of no-go's in another box. All of the drop down boxes are named status 1-8.
Armed-Guard-Validation-Assessment.pdf
0
Hi, so I've got this code and it worked all fine until I added one line. But it Looks the same as everything else. Now I get the Error: Sqlcmd: Error: Microsoft SQL Server Native Client 10.0 : No value given for one or more required parameters..
I'm using a query runner in RMS btw and I'm not using SQL too often. I probably made a stupid mistake. If someone could help me, I would be very grateful. Thanks!

My code:
DECLARE @AEP2MAX float(30), @AEP2MIN float(30), @AEPVAL2MAX float(30), @AEPVAL2MIN float(30),
@Steigung2 float(30), @yAchsenabschnitt2 float(30), @VALAEP2 float(30), @VALAEP5 float(30), @AEP5MIN float(30), @AEP5MAX float(30), @AEPVAL5MIN float(30),
@AEPVAL5MAX float(30), @AEP1000MAX float(30), @AEP1000MIN float(30), @AEPVAL1000MIN float(30), @AEPVAL1000MAX float(30),
@Steigung5 float(30), @yAchsenabschnitt5 float(30), @AEP10MIN float(30), @AEP15MIN float(30), @AEP20MIN float(30),
@AEP25MIN float(30), @AEP50MIN float(30), @AEP100MIN float(30), @AEP150MIN float(30), @AEP200MIN float(30),
@AEP250MIN float(30), @AEP500MIN float(30), @AEP10MAX float(30), @AEP15MAX float(30), @AEP20MAX float(30), @AEP25MAX float(30), @AEP50MAX float(30),
@AEP100MAX float(30), @AEP150MAX float(30), @AEP200MAX float(30), @AEP250MAX float(30), @AEP500MAX float(30),@AEPVAL10MIN float(30), @AEPVAL15MIN float(30),
@AEPVAL20MIN float(30), @AEPVAL25MIN float(30), @AEPVAL50MIN float(30), @AEPVAL100MIN float(30), @AEPVAL150MIN float(30), @AEPVAL200MIN float(30), @AEPVAL250MIN …
0

Golang

331

Solutions

774

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.