Golang

357

Solutions

814

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

For the first time we got a message about 1+ causes of effects on battery life. Windows 8 Lenovo laptop.
Where do we go from here:
Untitledbbbbbbbbbbbbbbbbbbbbbb2222.jpg
0
Introduction to Web Design
LVL 12
Introduction to Web Design

Develop a strong foundation and understanding of web design by learning HTML, CSS, and additional tools to help you develop your own website.

I have a SharePoint list with two columns that I want to multiply (QTY - numeric and Unit price - currency).  I want the result to go in a third column (_Line total - currency).  The SharePoint list Flow is "When an item is created or modified."  This used to be pretty easy with SharePoint Designer but because I'm new to Flow, it seems overly complicated.  A calculated column is out because I want to use the third column to group and sum in list views.

Here is the expression I'm using but it errors out when run:
mul(triggerBody()?['QTY'],triggerBody()?['Unit price'])

Open in new window


Update list item flow
0
I'm upgrading my on-prem SBS 2008 server to 2016 Standard. I was performing a one-way sync to Azure. What is the best way to go about pulling down the data in Azure to my new 2016 server?
0
Dear helpful experts,

Could you please assist regarding below-?
Part of role, we update computer/asset bar-code details in Active Directory to keep track of financial record/cost centre. So as a process we need to open AD, go to default search for Hardware, then able to see hardware but cannot see Attribute Editor for complete detail.
I’d like to add an AD custom tab or Attribute Editor. (Please see attached image).



1.      How to add Attribute Editor Tab as an standard in scenario-1. (Showing in the attached image)
So we can avoid steps A, B and C to search Attributes as shown in scenario 2.
 
2.      If we can add Attribute Editor Tab in scenario 1 then how to include only selected fields instead 50+ of field. i.e. department, department number, description, etc…… shown as 2,3,4,5

Many thankks
0
Business phone systems - looking to upgrade. What are the options people are currently using? For example if we go to an all cloud based system - what happens when we lose internet, does the system have a fall back adsl number that people can still contact us on? Also anyone used Skype for Business and if so - does it use much bandwidth? Can we have multiple numbers?

Thanks
0
I have a client who has a lot of old wmp files (windows media photo), which I need to convert to any modern file type.  I cannot find anything which will open them, let alone convert them.  Does anyone have any suggestions?

I've tried all the Adobe Apps and even gone back to an XP machine with Windows Photo Viewer and Windows media Player, but no go :(

Thanks
0
Dear Experts,

I have a network that is connected to the internet 192.168.3.0/24.

I have another network 192.168.125.0/27 which I want to connect to the internet

I have a HP Jl380A switch.

Port 8 is already connected to the network using a static IP so that I can manage the switch. This IP is 192.168.3.251 of vlan1.

I created a vlan20 for 192.168.125.0/27 included and untagged at Port1 @ IP 192.168.135.131/27.

Do i need to configure another port using a seperate vlan so that vlan20 can go internet?

Or use port8 which is already connected to the internet?
0
i am systems engineer and currently working on WIndows, vmware and NetApp
What will be my career progress ? what can i learn to become successful and grow  ?

any suggestions on new technologies which can go along with my current job in IT
0
Hi

I have an IIS 7 server, however suddenly it's not automatically redirecting to the relevant /index.php file in sub directories.

For example, if it is www.example.com/ it should automatically go to www.example.com/index.php

I haven't changed anything and I'm struggling to figure out what the issue is!

Any ideas?
0
We have setup a domain with company.com for our local active directory. After setting it up I entered a dns entry for www.company.com to go to the external web server IP address. the problem is that the Drupal Web server is doing something where it gets a response of 302 and redirects to company.com causing the client PC inside our domain to fail loading the page because it is trying to load a page from our domain controller.

I am not very familiar with Drupal but was wondering if the web developer could do something to allow it to stay as www.company.com instead of making it change to company.com and still allow the content to load? We did a test with test.company.com being entered in my AD DNS server as well as he mentioned he was able to allow test.company.com to not be redirected. When the page loads it is loading just text and basic HTML but non of the Images or Java script (I believe). I notice there is a bunch of http404 errors on the MS Edge console that seems to be referencing *****.js***** destinations using company.com. Would it be possible to update something on Drupal to make it reference something like www.company.com?

If I were to setup a new AD domain would it be best to make it company.local  or make a local.company.com. I would like to keep it as company.co, but have a feeling both the developer and myself are preferring. We will also be using office 365 AD Sync.
0
Exploring SQL Server 2016: Fundamentals
LVL 12
Exploring SQL Server 2016: Fundamentals

Learn the fundamentals of Microsoft SQL Server, a relational database management system that stores and retrieves data when requested by other software applications.

After I installed several updates on my SBS 2008 R2 server the companyweb started to stop working once a day for like 20 minutes not everyday but most of the days and then it just started to work again, this what I have tried:

-checked and cancel tasks that I saw ran by that time: antivirus scan, backup

-Recreated the sbs Monitoring database as it was getting full and I thought this may some how create this issue: https://blogs.technet.microsoft.com/sbs/2011/08/22/how-to-recreate-the-sbsmonitoring-database/

-Recreated the access to the companyweb deleting from the IIS and adding it again: https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-essentials-sbs/dd548330(v=ws.10)

-I checked the event viewer and I cannot see any error directly related with this: apart from:

*MSSQL$SBSMONITORING 17137

*MSSQL$MICROSOFT##SSEE 17137

*MSSQL$MICROSOFT##SSEE 2803 I can see few of this error

and a WAS 5186 error

also on top of this when I go to the Web Sites on the Windows SBS console the internal website shows status as "Unknown", description  as "The Web site dues not exist" and it doesn't give any option to run or stop it; and funny enough now when I go to the IIS Manager console and check if the website is running now it only works when it shows as stopped in here.

Any ideas of what could be causing the issue or what else I could try?
0
We have identified one PC having more than 20 ms to application server  .  All the other machine look ok with the same time to mention serevrs . Only one ping replay going more than 40 ms . How can we monitor the  network card fault in a large network  . Is there any way of monitor via network monitoring tool ?
And the other two thing i need to confirm are
that fault network card PC can Couse the Network FDe ?
Local Are network  ping  ms value shuld below 10 ? or can be go up due to the nature of the serevr like Application / exchange ?
0
I want to update the values of a sheet from every new sheet that gets created by a macro I made. I made a Macro run when inserted Client Name on the inputbox that runs after you click a button. (Image 2)

When the Client Name is correct, the Macro will automatically create a sheet and name it after the Client Name and also will create a new Table for that Client (The Table Format does not change on any Client).

In that table afterwards values will be entered, like the amount of income, the date of that income, and which of the Workers took the income. Specifically in cell "I8" will be entered the amount, in "J8" the date will be entered and most importantly in "K8" the name of the Worker who took the income will be inserted, this will go on to the other income of the client "I9","J9","K9" then "I10","J10","K10" and so on (Image 3).

The Table that I created for those 4 existing sheets of Workers is as shown at Image 1, so on "A10","A12","A14" and so on the name of the clients that the worker got the income from will be pasted (hopefully). if the client name is on "A10" then the amount of income that the worker will receive will be entered automatically (hopefully again) at "C10", "D10", "E10", "F10" and "G10", Also the date when he got the income "C11", "D11", "E11", "F11" and "G11", same goes if the Worker gets income from other clients (Ex: "A12" -> "C12"=Amount, "C13"=Date, "D12" "C13", and so on) , see the Image 1.

(Keep in mind there are 5 different times a …
0
How would one go about upgrading MacOS devices to the latest OS (High Sierra at the time of this post) through terminal commands only?  For example, a device running El Capitan needs to be upgraded to High Sierra.  I am looking to run this command across multiple MacOS devices, and for a command or script that could run on any MacOS device.
0
I want to import a SSL certificate into my exchange server, I have two with the names "ungorokaIMMssl.p7b and unigorokassl.p7b". I was confused which one to use and tried the this one "unigorokassl.p7b" but it did not work.

I have to do it in exchange server and AD DS to access from OWA, POP3, SMTP etc...


Please assist me on how to go about achieving this.


Thanks alot
0
Hi,

Each day I have several horses that I bet on. To keep up to date with the results I go here: https://www.sportinglife.com/racing/fast-results

I have a script that will pull the data from the races but its ensuring the script is only run 5 minutes after each race when the results are up is the issue.

Can anyone recommend how I could use a python script to scrape the page only when the results are updated rather then constantly every 5 minutes 24/7 on my home server via a job?
0
I've been tasked to resolve this vulnerability but i cant figure out where to even update this at. Where does one go on their servers to change this? Its flagged for our email domain.

Mail.domaiin.com

Vulnerability Class Improper Input Handling
Additional Information host_header
Status Open
URL - Mail.domain.com
Rating Medium (customized)
Opened 2018-07-17 06:38:56 -0700

Custom Solution In Apache (http://httpd.apache.org/docs/trunk/vhosts/examples.html#defaultallports) and Nginx
(https://www.nginx.com/resources/wiki/start/topics/examples/server_blocks/) you can make SERVER_NAME trustworthy
which can be done by creating a dummy vhost that catches all requests with invalid Host headers. Another method under
Nginx is to specify a non-wildcard SERVER_NAME (http://nginx.org/en/docs/http/server_names.html) and under Apache
you can use a non-wildcard serverName (http://httpd.apache.org/docs/2.2/mod/core.html#servername) and turning the
UseCanonicalName directive on.

In IIS one method is to have proper bindings setup with a specified host header
(https://www.iis.net/configreference/system.applicationhost/sites/site/bindings/binding) so that if someone changes the host
header it will not reach the web site on IIS.

Alternatively, at the application level, you can attempt to validate any values coming from the Host or X-Forwarded-Host
request headers using a whitelist of acceptable values. You can also choose not to use host header values that come from
The …
1
Hi - I was wondering if someone can advise please. Our organisation uses a ERP systems which has 4000 Relations tables. There is a discussions on creating a master database - where any changes to these tables are populated into Master database. I am worried about this approach - for example, there is no business logic and any changes gets sent to this MD, which is used for integration with other systems? I would have thought you use master database to bring in data from various systems rather than just duplicating one system into another.

The argument for creating a master database is so there is no need for peer to peer integration - I agree peer to peer is not good but thats what what BizTalk is there for. They want to use BizTalk to pull data from the ERP into Master Database and then use SSIS to push data out to other systems. I can't see why they can't they just use BizTalk to transform the data and push the data out. Their other argument if the ERP system ever goes cloud it is not possible to do a full extract (i.e, not delta extract) using SSIS - but the issue nobody even know if we will ever even go hosted solution for the ERP we have. Additionally, even in such a case if there is a good business case I am sure the cloud prvoide will let SSIS access directly to database on the hosted cloud. Do you agree? Can you give your inputs on the flaws with this approach or is it just me worrying?

Thank you.
0
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
C++ 11 Fundamentals
LVL 12
C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

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
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

Golang

357

Solutions

814

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.