Golang

358

Solutions

815

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:
0
CompTIA Security+
LVL 12
CompTIA Security+

Learn the essential functions of CompTIA Security+, which establishes the core knowledge required of any cybersecurity role and leads professionals into intermediate-level cybersecurity jobs.

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

Could you check this out and please do criticize it as much as possible. I want this to go smoothly :D

-----start-----

We will first start with the DL360s, known going forward as the “Management Cluster”. The justification for using these first is purely because they hold the IT Infrastructure and will allow for small issues due to the fact they won’t impact production or end user use.

1.      Log onto VMware (https://Server/vsphere-client/?csp)

2.      Migrate all the VM’s off of Server01.Doimain.com onto Server02.Domain.com manually.

3.      Drop serverl01.Domain.com into maintenance mode. This previously has caused purple screens, hence the initial move.

4.      Obtain a formatted USB Key media.
 
5.      From that drive and directory, execute the downloaded SoftPaq file: Simply double click on the SP99298.exe file and follow the installation wizard to complete the SoftPaq installation process. At the end of a successful installation of the SoftPaq a web page will automatically appear to provide you with the different methods for restoring and/or upgrading the firmware on the system.
 
6.      After the USB Key is created, you may delete the downloaded file if you wish.
 
7.      Insert this USB Key into the USB Key port of the system to be updated and power the system on to boot to the USB Key.

8.      Shutdown the host and boot from the USB key

9.      Install the latest BIOS version

10.      Shutdown the server

11.      Plug in the USB stick with the HPE Custom Image for …
0
I have this huge and annoying problem. It happens most of the time when I try to go to a web site or just right now when I clicked on ask a question on this site the page opens up in a huge fonts and everything looks too big till I click F5 then things are normal. Can someone help me please?
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
User requesting for a report stating no of emails received for specific mailbox on a daily, weekly and monthly basis. In exchange 2010, how can I go about generating this information, is there a script of sort?
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 single Exchange 2010 SP3 with RU23 installed. All the roles are running on the 1 server. I have enabled TLS 1.2 and used IIS Crypto  2.0 and set best practices. Qualys SSL Labs scan give an A rating. However checktls.com fails on the cert test. The  exchange server has 2 certs the default  self signed and a public UUC SAN from GoDaddy. The checktls.com test is only seeing the default cert and is failing because it does not match the public name.  Here is the piece of the checktls output:

 Certificate 1 of 1 in chain: Cert VALIDATION ERROR(S): unable to get local issuer certificate; unable to verify the first certificate
  This may help: What Is An Intermediate Certificate
  So email is encrypted but the recipient domain is not verified
  Cert Hostname DOES NOT VERIFY (webmail.domain.org != Exchsrvr | DNS:Exchsrvr | DNS:Exchsrvr.domain.local)
  So email is encrypted but the host is not verified

The default exchange cert has SMTP service assigned and the Public Cert has IMAP,POP,IIS,SMTP services assigned.

The company that is requiring Forced TLS says email cannot go forward until this checktls cert error is resolved.

How do I resolve this issue?
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
Fundamentals of JavaScript
LVL 12
Fundamentals of JavaScript

Learn the fundamentals of the popular programming language JavaScript so that you can explore the realm of web development.

In my Delphi application, I have a TMemo on a form
I put some text in it, but quiet long (wordwrap = true)
That's not a problem, user can go down in the text but sometimes the beginning of the text is not shown at the top right of the TMemo
How can I have text visible from the beginning of it
0
I have a table that I need to update the values in a column based on the values in 2 other columns of the table.  I've been able to accomplish this with a table trigger but it degredates the SQL performance to the point where other users/applications can't write to the table/db.  I'd appreciate any information that would help me remedy the issue.  I'd also be open to "applying" the update when the record is inserted.  The issue is that this is aged, proprietary software that I can't get support for.  He is the code for my trigger.

SET QUOTED_IDENTIFIER ON
GO
ALTER TRIGGER [dbo].[UpdateEntryTime] ON [LablitePC].[dbo].[InprogressResults]
AFTER INSERT, UPDATE
AS
BEGIN
UPDATE  InProgressResults
SET     IPR_EntryTime = CASE
WHEN SH_Key = 1123 then IPR_EntryDate
WHEN SH_Key = 1124 then IPR_EntryDate + '03:00'
WHEN SH_Key = 1125 then IPR_EntryDate + '06:00'
WHEN SH_Key = 1126 then IPR_EntryDate + '09:00'
WHEN SH_Key = 1127 then IPR_EntryDate + '12:00'
WHEN SH_Key = 1128 then IPR_EntryDate + '15:00'
WHEN SH_Key = 1129 then IPR_EntryDate + '18:00'
WHEN SH_Key = 1130 then IPR_EntryDate + '21:00'
WHEN SH_Key = 1142 then IPR_EntryDate + '01:00'
WHEN SH_Key = 1143 then IPR_EntryDate + '02:00'
WHEN SH_Key = 1144 then IPR_EntryDate + '04:00'
WHEN SH_Key = 1145 then IPR_EntryDate + '05:00'
WHEN SH_Key = 1146 then IPR_EntryDate + '07:00'
WHEN SH_Key = 1147 then IPR_EntryDate + '08:00'
WHEN SH_Key = 1148 then IPR_EntryDate + '10:00'
WHEN SH_Key = 1149 then …
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
Hi,

I'm trying to get the syntax right for using the FOR command in a batch file that will run in a Windows 2012 server environment.  What I have so far is:

compall.bat file:
rem This batch file compares text files in 2 directories using the Ultracompare batch progam (uc).
rem It uses old DOS commands to step through the folder structure.  Two arguments are needed:
rem The first is the first folder to look in, and the 2nd argument is the second folder to look in.
rem Example:
rem  compall 07092018 08072018
rem  Results go to a file called comp.txt in the current directory this batch file was executed in.

for %%f in ("dir %2 /b") do uc -t -i -b -B -ne -title1 "%%f old" -title2 "%%f new" -op comp.txt %1\%f %2\%f
----------------------------------

compall 07092018 08072018
Results in:

c:\temp1>for %f in ("dir 08072018 /b") do uc -t -i -b -B -ne -title1 "%f old" -title2 "%f new" -op comp.txt 07092018\2\f
c:\temp1>uc -t -i -b -B -ne -title1 ""dir 08072018 /b" old" -title2 ""dir 08072018 /b" new" -op comp.txt 07092018\2\f

What I was hoping for:

>uc -t -i -b -B -ne -title1 "08072018 old" -title2 "08072018  new" -op comp.txt 07092018\file1.txt 08072018\file1.txt

Just can't get the syntax quite right on the FOR line.  ?

Thanks much!

--Ben
1
Can you please help?

I have a workbook that contains dynamic number of sheets.
Each sheet contains three pivot tables, these pivot tables have three source sheets.
All three source sheets have one column in common the customer ID, and therefore, the three pivot tables are filtered on Page Filed “GL_ID”, i.e. customer ID.  
Every day, we run another macro that compiles a dynamic list of customer IDs, and out of this list, we create a changeable number sheets, this macro also pastes three pivots on those sheets, it also prints the customer ID on cell B2 of each sheet (each sheet contains, (1) balance, (2) possible trading activity and (3) possible product change reports of a customer).
-      Pivot table one contains;  all customer IDs
-      Pivot table two and three, however, may or may not contain every customer ID printed on cell B2.
What I would like to do and kindly ask your help, is a macro that filters each pivot table in each sheet, by setting the page fields equal to the value of cell B2?
But also importantly before that, it tests, if the pivot item in cell B2 is to be found in the drop down list of the pivot tables (page field), epically on pivot table two and three .
-      If the pivot Item is found = filter each pivot table based on cell B2.
-      Else ignore and go to the next pivot table.
Thank you in advance,
Regards,
Jay
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
In Excel 2016, my "Nuance PowerPDF" tab has moved to in front of the "Home" tab.  Unfortunately, when I go into "Customize Ribbon", it shows me ALL of my ribbons except for the Nuance Power PDF ribbon (fyi:  Power PDF add-in is enabled in Excel 2016).  So I can move any of the other ribbons (e.g., Acrobat, Review, etc.) in front of "Home".  I cannot figure out how the user got the Power PDF ribbon to be in front of the "Home" tab if the ribbon does not show.

This does NOT happen in any of the other Microsoft Office 2016 products.
0
Angular Fundamentals
LVL 12
Angular Fundamentals

Learn the fundamentals of Angular 2, a JavaScript framework for developing dynamic single page applications.

Outlook 2010 - New sent mail goes to outbox but does not go to sent items and after restarting outlook the mail is missing - Any suggestions or solutions.
0
I have a project for our shipping department - I need to created in SQL query that will provide the following results;
1. group by style & color (example: style:123R12, color: BLK) and create an alpha sequence (A) which 123R12BLK = A

2. if style is the same but color is different (example: style:123R12, color: BLUE) it should be sequence (B) which 123R12BLUE = B and so on.

3. Sequence could go as far A thru ZZZ
0
Hello experts,

I have the following flat file attached (Input Sheet).
I am trying to build a vba procedure that covers the following requirements:
1-Check if Output sheet if so delete and create a new blank
2-Transfer the various unique values in column H, J and AI
3-Consolidate the sum values for the various month from AJ to BV split by column AI

I attached dummy file with expected Output sheet.

I think that we can proceed steps by steps, such as copy unique values related to H & J.
For this we can use the following procedure:

Sub CopyRangeUniqueValues(FromWSheet As String, FromRange As String, ToWSheet As String, ToRange As String)
'Sub treats first cell in FromRange as a header label, and will copy it to ToRange even if it is duplicated in the list
Dim celHome As Range, rgDest As Range, rgSource As Range
Dim n As Long
Set celHome = ActiveCell
Set rgDest = Worksheets(ToWSheet).Range(ToRange)
Range(rgDest, rgDest.End(xlDown)).ClearContents

With Worksheets(FromWSheet)
    n = .UsedRange.Row + .UsedRange.Rows.Count - 1
    Set rgSource = .Range(FromRange & n)
End With

rgDest.Worksheet.Activate
rgSource.AdvancedFilter Action:=xlFilterCopy, CopyToRange:=rgDest, Unique:=True
Application.GoTo celHome

Open in new window


Concerning the consolidated sum we can also go ahead with a formula reported in macro:

Sub LoopFormula2(strwsName, strColflag, strCol As String, strColName As String, formula As String)

'Call LoopFormula2("ImportCC", "1", "D", "Test", "=clean(sheet1!G2*sheet1!I2)") 'example of formula
    Dim ws As Worksheet
    Set ws = Worksheets(strwsName)
    ws.Activate
     '==>Clear Destination Column
    Range(strCol & ":" & strCol).Clear
    UsedRows = ActiveSheet.UsedRange.Rows.count + ActiveSheet.UsedRange.Rows(1).Row - 1
    If strColflag = 1 Then
        Range(strCol & 1).Value = strColName
    End If
    '==>Clear Destination Column
    RightFormula = Replace(formula, "1048576", UsedRows)
    '==>ApplyFormula
    Range(Cells(2, strCol), Cells(UsedRows, strCol)).formula = RightFormula
    Range(Cells(2, strCol), Cells(UsedRows, strCol)).Value = Range(Cells(2, strCol), Cells(UsedRows, strCol)).Value
End Sub

Open in new window


Thank you in advance for your help.
0
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
Is there a checklist for CEH for our environment.  At my company, we're trying to have a base knowledge for preventing hackers and such, but we need a checklist to go through.  Lastly, I keep receiving a form of social engineering by receiving phone calls and having the user provide remote asses to machines or asking security related questions to our users.  How do we prevent this from occurring?
0

Golang

358

Solutions

815

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.