Golang

443

Solutions

955

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 have 3 ip external addresses that our exchange 2013 server can use but only 2 of them were listed with our external spam filter. Our exchange server rebooted today and now the external ip address is one of the 3 that is was not listed with the external spam filter. They said it could take up to 4 hours for the change to propagate.
So my question is how can I change the external ip address of our exchange server to go to one of the 2 ip addresses that we already listed with our external spam filter company?
0
Wordpress / Yoast.  i have a lot of Draft Pages in my wordpress CMS.  Yoast will not put them in the sitemap if I mark them to be excluded, but there are too many to go through.  They are all in one category.  I want Yoast to not place a specific category (or taxonomy, which ever is easier) in my XML sitemap.  The reason is, Google will index Draft and private pages and I don't want that because they will come up 404.

How do I exclude a category from the XML sitemap in Wordpress

I found this but I dont think it is what I want

/* Noindex all posts in a category */
add_filter("wpseo_robots", function($robots) {
  if (is_single() && in_category(array(100))) {
    return "noindex,follow";
  }
  return $robots;
});

Open in new window

0
I have an early 2008 Mac Pro tower w/4 internal drives configured with El Capitan plus a Bootcamp "Win7 installation" on a separate internal drive.

I want to install a new Win7 partition while maintaining my existing Win7 installation on its separate drive.

Thus, I will end up with 2 BootCamp Win7 partitions, one new and the other old and a bit corrupted.

My purpose is to create a Fresh Win7 installation to which I can easily copy and install some Docs & Applications from my existing over-taxed Win7.

Where do I begin? I assume I need to create a new Bootcamp partition on my Mac OS drive (currently a single partition) or on a separate drive.

Just not sure of the best way to go about that without screwing up either my Mac OS or existing Win7 installation.

Thanks for the help
0
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
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
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
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
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
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
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
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
I have this computer that I just re-installed the operating system, (windows 10 32 bit system) restored the data back onto it, but now when I attempt to log in, it will say "logging in" and then say "logging out" and go back to the welcome screen.  What is the cause of this and how do I correct it?
0
I took over for an IT manager who was let go.

Somehow or maybe not, windows updates seem to have disabled all the NICs.  Cant enable, need admin rights, dont have them.

I have never login to the server before so no admin cache credentials that I have access to.

Local Admin I dont know either.  The server I do need up, wiping not an option a this point.

I have tried removing from the domain, still need admins rights, which I have none.

Any ideas?  Or am I hosed?
0
We were given a network with no idea of the subnet structure. What I am essentially looking for is a MAC Address Scanner that will go through every MAC Address known to man and report back the found MAC Address and corresponding IP. I realize it will take a long, long time to do.....
0
I have a 2016 Macro Enabled workbook with 6 worksheets, 5 of which have list boxes on them.  I have a VBA procedure call "Reset" that clears the data on all the worksheets including the list boxes and returns the user to the starting worksheet.  This procedure is called when the workbook is closed and when the user clicks a command button on the first sheet.  The problem is when the user clicks the command button, all of the list boxes from each worksheet appear on top of each other on the starting worksheet.  If you then click through each of the worksheets in the workbook or close and reopen the workbook, everything will go back to normal.  Is there some way to stop this from happening?

Thanks for your help.
0
How to go to specific folder using batch script? And also count the no of files in that and display that with popup saying that "No of files added : ".
0
We have a new Cisco core switch and planning on retiring the Cisco old switch; however, there are still between 5 to 10 cables connected to the device, but we don't know where or whom they are connected to...
We do not have a Fluke device or toner to verify connections.  Is there another way we can figure out where things connections go to?
0
Outlook 2010,  a certain email arrives in my inbox, than after about 1 minute it gets moved to spam folder, if the Spam folder is not there it creates it.  Domain & email address exception are entered but still has no effect.  There are no rules set to make this email leave the inbox and go to spam folder.  Checked Add-in's, there is nothing in add-ins that would make this email move to spam folder.  Trend Micro Message Security 9.5 is running on PC and has been completely turned off to test for any issue within.  I attached the actual email to this question.

How can I stop this email from leaving the inbox and being moved to Spam folder.

Thank you in advance for any help you can give me.

Mark H.
MyQ-Alert-Witt-Garage-Door-Opener-We.msg
0

Golang

443

Solutions

955

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.