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'm trying to reduce the usage of Global variables in a rather large VB6 program.  Fabrice Lambert suggested using the Services Locator design pattern to access various dictionaries (or collections) instead of having a global dictionary.  This works great.  I have a factory class which has various support functions and properties which are used in many places in the program.  How can I use the factory functions without having a global object for the factory.  I can put a factory object in each procedure where it is used, but that seems like it will have a major impact on performance.
Private Sub ProcedureA
Dim oFactory as clsFactory
Dim myLongValue as Long
Set oFactory = new clsFactory
myLongValue = ofactory.LongValue
set ofactory = Nothing
End Sub

Open in new window

Any thoughts on this.  A global Factory object seems like the way to go, but OOP doesn't like global variables.
Exploring SharePoint 2016
LVL 12
Exploring SharePoint 2016

Explore SharePoint 2016, the web-based, collaborative platform that integrates with Microsoft Office to provide intranets, secure document management, and collaboration so you can develop your online and offline capabilities.

Customer called, they are having an issue after a Synology DS1515+ system had a power failure.
The customer moved the drives to the new Synology NAS.
Once they did this they powered up and had to check consistency.
The consistency scan ran for 5 or 6 hours. From there when that ended, we could see the iSCSI information on the Synology.

We went into the ESXi console, Tried adding a storage adapter and connection that would target the NAS and see the datastores.

When we add the host name of the iSCSI target, we don't see anything populate. But if we go in and add the IP address of the Synology in question under the Dynamic Discovery, we see 3 disks come up under static. It shows the .25 IP address and an IPv6 address for each of the LUNS.   But even with the LUNS showing up in the discovery area, we still can't target the storage and see it under the Storage Adapter as noted in the image attached. How can I get the Synology NAS to show the iSCSI Target so the system will boot again?
I use different netsh commands to run individual back ups of DHCP servers.
For example:
netsh dhcp server dump > \\\dhcp$\Area1\dhcpcfg.txt
netsh dhcp server export \\\dhcp$\Area1dhcpdb all
netsh dhcp server dump > \\\dhcp$\Area1\dhcpcfg.txt
netsh dhcp server export \\\dhcp$\Area2\dhcpdb all
I have to go on each server to run this
Please indicate a power shell command I could use to run once and back up all my dhcp servers

I am building a windows form program to replace excel sheets as they are always crashing and losing work and as the sole IT guy they need to go. The program is working but not very optimised due to the amount of data in the tables. One of the SQL queries selects a table and returns all company names where that line hold values and populates a drop down filter box. SQL is not really my thing but need some pointers in making this more responsive.

 public void getCompanyList(string database)
            var select = @"SELECT DISTINCT dbo.[Forecast_" + database + @"].Company
FROM            dbo.[Forecast_" + database + @"] INNER JOIN
                         production.dbo.products ON dbo.[Forecast_" + database + @"].Product_Code COLLATE Latin1_General_BIN = production.dbo.products.ProductCode
GROUP BY dbo.[Forecast_" + database + @"].Nr, dbo.[Forecast_" + database + @"].Product_Code, dbo.[Forecast_" + database + @"].Description, 
                         dbo.[Forecast_" + database + @"].Category, production.dbo.products.SCE, dbo.[Forecast_" + database + @"].Company
HAVING        (SUM(ISNULL(dbo.[Forecast_" + database + @"].Week1, 0)) + SUM(ISNULL(dbo.[Forecast_" + database + @"].Week2, 0)) 
                         + SUM(ISNULL(dbo.[Forecast_" + database + @"].Week3, 0)) + SUM(ISNULL(dbo.[Forecast_" + database + @"].Week4, 0)) 
                         + SUM(ISNULL(dbo.[Forecast_" + database + @"].Week5, 0)) + SUM(ISNULL(dbo.[Forecast_" + database + 

Open in new window

Hello Experts.

I'm looking for some creative ideas on how I might go about adding drill-down capability to my databound forms. Allow me to explain...

Let's say that my hypothetical project is for managing a local sports league, and includes three databound tables and corresponding forms for entering / updating records:
  • Players
  • Teams
  • Schedule

As you can imagine, some of the data in these tables are related. So, the Players table would have a field to specify which team they are on. The Teams table would have a field to specify the Captain and their Player ID. The Schedule table would have the two Team IDs that are competing each week.

I would like to be able to make the TextBoxes which have a direct relationship clickable, with the action being to display the correct Form and record. So, if I'm working within my Players Form, and I want to have a look at the details about their Team, I could just click that field and the Teams form would be shown for that player's team.

Hopefully, that's fairly clear. Any thoughts how I might go about making this a reality?

Can someone please help me understand how a certificate works on a firewall. The concept and how the firewalls authenticate certs.
The scenario is a Fortigate 100d with a cisco ASA (3rd party) Certificate based VPN.

We have setup a tunnel however i don't see many logs due to firewall in shared datacentre managed external. However they do not support certificate based VPN tunnels.
We initially setup on pre shared key and was fine. So we know all the other settings are correct.

We have created a CSR on the fortigate and completed this with a CA "Digicert" we have loaded the cert into the firewall (Fortigate using web gui) We have received the Certificate Authority (Go Daddy from external 3rd party and installed these. Now remote_Cert1 2 etc.
We have setup the VPN tunnel to use the Peer certificate and pointed to 1 of the Go Daddy Remote-Certs. No option on a Fortigate to use 2 certs.

The info we are getting from the Cisco side debug is as follows

IPSEC An inbound LAN to LAN SA xxx between IP and IP (user==IP has been created
same and outbound LAN to LAN created
AAA retrieved default group policy IP for user =IP
local remote connection established. then it say an IPSEC inbound/outbound LAN to LAN has been deleted.

The CIsco (3rd party side have no experience on Fortigate( they are seeing a message saying our certificate has been successfully validated SN x subject name CN = company etc.

The tunnel won't come up on the fortigate. So any info on …
We are setting up Log Analytics in Azure and are trying to monitor for specified services if they go into a stopped state.  My issue is that I'm not seeing all of the EventID records for event 7036 in Log Analytics.  If I use the following query:

| where (EventID ==7036)
| where Computer == "xxxx.yyy.com"

I see entries for some services but not all.  Example I see entries for "The WMI Performance Adapter service entered the running state. "  but none for "The Print Spooler service entered the stopped state." when the following entry is in the Event log on the actual VM.

Log Name:      System
Source:        Service Control Manager
Date:          12/7/2018 2:28:39 PM
Event ID:      7036
Task Category: None
Level:         Information
Keywords:      Classic
User:          N/A
Computer:      xxxx.yyyy.com
The Print Spooler service entered the stopped state.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
    <Provider Name="Service Control Manager" Guid="{555908d1-a6d7-4695-8e1e-26931d2012f4}" EventSourceName="Service Control Manager" />
    <EventID Qualifiers="16384">7036</EventID>
    <TimeCreated SystemTime="2018-12-07T20:28:39.267645100Z" />
    <Correlation />
    <Execution ProcessID="664" …
Good Day,

I need assistance with config in a proxy.pac file.

In the file I need to specify that if the traffic is from a certain subnet then it needs to go directly to the internet and bypass our proxy appliance.

Currently there are statements stating that if the destination is a specific subnet then it returns "DIRECT", but I need to add a source subnet in there.

In the .pac file I have statements like this:

var resolved_ip = dnsResolve(host);
    if (     isInNet(resolved_ip,"","")
        || isInNet(resolved_ip,"","")
        || isInNet(resolved_ip,"","")
        || isInNet(resolved_ip,"","")
          || isInNet(host, "", "")
          || isPlainHostName(host)
          || localHostOrDomainIs(host, "")

      return       "DIRECT";

      return "PROXY";

So I need to add a statement in that top part that says if the soure of the traffic is a specific subnet ( then it must also return "DIRECT".

Thanks for any assistance.
I am having a real problem trying to get an Office 365 label published. I have created the label and linked it to a policy and applied it to my test account. When I go into my word online the label does not appear. I have an E1 and an AIP license assigned. Any ideas why this is not working
owner wants to capture screenshot for local and remote users.   (he wants to be able to go back in time and see if they used a company laptop to send/receive/delete emails, used personal emails on laptop, internet history, file deletions.  

I know of Netsupport manager which allows you to discreetly look at current sessions, but not past and not webbased.  

Any ideas if one of you have used a web based program to obtain the above.
Why Diversity in Tech Matters
LVL 12
Why Diversity in Tech Matters

Kesha Williams, certified professional and software developer, explores the imbalance of diversity in the world of technology -- especially when it comes to hiring women. She showcases ways she's making a difference through the Colors of STEM program.

Search results appear to have no file associations . it shows a blank page and you cannot click on it to open the files.  These are word documents.  you then can go into the directory and open the file ok.  Only the search results is missing the file associations.   The os is 2016 server with remote desktop.
if (stripos($anwer['infomation'], trim($propThree['value'])) !== false && $anwer['infomation'] != ""){
                                $html .= "<div style = 'margin-top:5px; padding-left: 0.10rem !important ;'  class='form-check form-check-inline'><input style='width: auto !important;' class='form-check-inline' type='checkbox' name='property" . $cusData['propertyId'] ."[]' id='property" . $cusData['propertyId'] . $c . "' value='{$propThree['value']}' checked='checked'/>";
                            } else {

Open in new window

why is this not working ? suspose to go in split this string and if it checked than output the checked option else non checked option but they not checking.
A long time ago, I registered a free onedrive account with a personal email. However now I have a full O365 licence and I want to start experimenting with the various Excel and PowerPoint add-ins. However when I go to install them Microsoft asks me for the password for my original email and there doesn't seem to be anywhere to change the address to my work one. How do I get around this? Thanks

i have receive an SonicWall SonicPoint N2,

i have plugged it on my poe switch, i dont have the poe injector who come with the package. i just have the access point device only

i have access to the firmware and i dont see any way to enable the 2.4 and 5 ghz radio, if im go to the status page i see the 2 radio is disabled right now.

is there a way to edit that and enable the radio and change wifi settingsscreenshot of firmware page
I have installed Outlook 365 and is Version 1089 (Build 10827.20181) when I open outlook, outlook keeps asking for my password even though is correct. Any ideas how I can fix this since I have over 100 employees that I need to do the update but im afraid of it since I have this issue that will not go away.

Thank you
I have an HP laptop that when powered on will not show the screen. The only thing I see is the is the keyboard light and go off continuously. The image or splash screen never comes on. If I unhook the plug from the wall it does the same thing. I am guessing the battery is fine. I have never ever seen this before. I tried to look this up but nothing matches my look up.
Hey fellow experts!

With WSUS, I need to deploy a ton of patches to computers in a test OU. If the updates run fine, how do I 'Re-deploy' the same set of updates to my users? I don't know of a way to go back in and approve them again, or how to find the EXACT updates? Any help is appreciated. Thanks in advance, guys.
We're noticing that more and more of our users are having problems with appointments actively syncing between each other when using Outlook. We need a scheduled appointment to show up immediately, so duplicates are not created. We've taken it to disabling Outlook email caching on each computer so they are all actively syncing updates with the server. Since we've started this there hasn't been any issues until now, but now more and more users are starting to complain about things not showing up fast enough or right away.

We need to find a way to solve or implement a change to fix this problem. It’s odd that it is all of a sudden happening to numerous people. Is the only solution really for me to go to all computers and turn off cache mode? Or is there a bigger issue that could solve this?
Hi Technical Gurus ,

I need your worthy advice and guidance . Actually we are building our data center and for server virtualization , I need expert suggestion . Either we should go for KVM or VMWARE . As of course , KVM is an open source , the management would prefer to go with KVM to reduce the cost but  I need solid reasons if I refuse to go with KVM and instead opt for VMWARE . In any case I need you guys expert opinion to choose either one for our data center servers virtualization .  The brief summary of our network requirement is that we need 150 cores and 350 GB RAM ,,, we plan to purchase 6 servers with 28 cores each and plus six more for high availability. I need your worthy guidance regarding the selection for virtualization.

Best Regards

OWASP Proactive Controls
LVL 12
OWASP Proactive Controls

Learn the most important control and control categories that every architect and developer should include in their projects.

I get a black screen when I am trying to install Manjaro 17 from USB onto my Asus tower, G20aj Processor Intel® Core™ i5-4460 CPU @ 3.20GHz, 3201 Mhz, 4 Core(s), 4 Logical Processor(s). . ( had the same issue in Ubuntu, but thought the different loader Manjaro and Arch might make a difference but it hasn’t.)  The problem seems to lie with the Asus video drivers as I can install just fine on my Alienware/Dell and my HP Spectre.
On the Ubuntu side I found posts talking about some commands to run to get around this issue like aspci and quiet splash, etc. I am not sure where to enter commands or how.  

What I have been doing is boot the computer with install USB and go to the Manjaro OS install line press “e” and then go to the line beginning “Linux/boot/vmlinux-$2” at the end of that line place my commands like  acpi_enforce_resources=lax acpi_osi=Linux acpi_osi=’!Windows 2012’ acpi=force pcie_aspm=force
and then hit F10?

Nothing seems to work.  I have been working on the Manjaro forum but have come to a bit of deadend.
SSRS- Created a blank report and used a DB dataset to just drag and drop a text field onto it.  It only shows one row.  This was a limitation of SSRS and that field.  
Solution was to create a Tablix and go through the following to display a separate row per page:
The problem is that when I place the Tablix field in my report it is in the position I want.  But due to the page breaks I lose my position and the field ends up on the top of my report with my report being broken up.  Is there a way or how do I get the position of the Tablix field to not move when traversing through my data?
I am going through my program inserting error trapping where necessary.  I have one that is a hard one to crack.  I have a form frmTitles with subforms subfrmSongs in the footer of subfrmSongs are two other tables frmMMSongComposer and frmMMSongGroup.

The error occurs if the record selector in subformSongs is left on a "new" record and you click on either frmMMSongComposer or frmMMSongGroup.  The error is 3314 saying that an error must be entered.  I would like to put in an error routine that would catch this and put the record selector to the first current record in subfrmSongs .  Any ideas I am thinking the Got Focus event in frmMMSongComposer and frmMMSongGroup is where the code should go.

At this point when the error occurs there is no way out except end task in task manager and start over as the error just keeps looping on itself over and over.
I have a complex problem.  I have a main form (frmTitles) that holds the title (CD Title) information.  On frmTitles there is a subform subfrmSongs (continuous form) and in the footer of subfrmSongs are two forms frmMMSongComposer and frmMMSongGroup which are both Many to Many Relationship to tblSongs (frmSongs).

I would like to enter the Title information, then the song information.  This is where is gets dicey.  The tab order for subfrmSongs is Side/Disc, Position, Song Title, Song Type and SongLength.  Once I exit SongLength I would like to go to frmMMSongComposer, then frmMMSongGroup and then back to subfrmSongs to enter the next song.

As the form is now I have to enter each song, then for each song enter the information for frmMMSongComposer and frmMMSongGroup then select the next song.

Is there an easier way to structure this?   Note in the attached
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

We recently purchased a Ricoh MP C4503 multi-functional printer and trying to assign and program the physical Function Keys on the control panel and we can't locate the settings that allow us to do so.






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.