Golang

433

Solutions

941

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

Hi,
I am importing data from a CSV file into SQL Server Express and one of the columns contains data format  £5,420 or  €5,420
Can the SQL table column be modified to accommodate data ? I would prefer it to be converted to format  5420 or  5420 if possible.
How can I go about it.
Thanks
Ian
0
Bootstrap 4: Exploring New Features
LVL 13
Bootstrap 4: Exploring New Features

Learn how to use and navigate the new features included in Bootstrap 4, the most popular HTML, CSS, and JavaScript framework for developing responsive, mobile-first websites.

One of our client's server went down yesterday at 6:00pm sharp. No one in the office knows why. No one did anything. in the morning It was powered back on and everything seems to be ok.

All other computers in the office and on the network stayed up and running. no issues.

I'm looking for evidence on why the server went down and I'm not finding anything. The event logs show that everything seems to be fine up until 6:00pm then no more log entries until the server is powered back on at 7:23am this morning.

In my experience this indication suggests that the server lost power. It that safe to assume?

Where else should I look for evidence?

THANKS in advance!
0
Hi

Company has created a basic task sequence to roll out Windows 10.  Problem is when the image rolls out en-us is the default language and you have to install en-gb.  That be ok if it was one PC but we have over 300 PC.  Is there a way to change boot image or add en-gb language in the task sequence.  If we have to add in the task sequence how to we go about doing that
0
I need to move or clone a virtual server from one VCenter to another. I know I did something similar with VMware 5.0 but now I have VMware 5.5. I downloaded the latest VMware vCenter Converter Standalone and installed it on the machine I want to move. I go to Convert Machine and leave the drop down as "The Local Machine". I hit next and leave the destination type VMware Infrastructure virtual machine. Then I run into trouble. On this screen I assume I should be pointing to an ESXI host on the other vcenter? Is that correct? Or should I point directly to the new VCenter? and for login credentials. I cannot seem to get anything to work. I tried my AD account, that is also a Domain Admin and what I think is the local host ROOT password but It does not seem to like my credentials. Am I on the right track?
0
I have a server that crashed on me and i'm in the process of bringing the SQL db's back online as they are set to "Recovery Pending"  and on one of the db's I ran this statement:

SELECT name, state_desc from sys.databases


ALTER DATABASE Token SET EMERGENCY;

GO

ALTER DATABASE Token set single_user

GO

DBCC CHECKDB (Token, REPAIR_ALLOW_DATA_LOSS) WITH ALL_ERRORMSGS;

GO

ALTER DATABASE Token set multi_user

GO


It then gave me this error:
Msg 824, Level 24, State 2, Line 4
SQL Server detected a logical consistency-based I/O error: incorrect pageid (expected 1:109; actual 1:141). It occurred during a read of page (1:109) in database ID 8 at offset 0x000000000da000 in file 'D:\Latitude DB\Token.mdf'.  Additional messages in the SQL Server error log or system event log may provide more detail. This is a severe error condition that threatens database integrity and must be corrected immediately. Complete a full database consistency check (DBCC CHECKDB). This error can be caused by many factors; for more information, see SQL Server Books Online.

Then I checked online for the proper way to run a DBCC Check DB from this link:   https://docs.microsoft.com/en-us/sql/t-sql/database-console-commands/dbcc-checkdb-transact-sql?view=sql-server-2017   

And it gave me what you see below; except I couldn't run it with the exact syntax listed with all the brackets.  

DBCC CHECKDB    
    ('Token',  '8', '0'    
         , NOINDEX    
         ,  …
0
We have a Sharepoint 2007 farm and 1 of the site collections stopped working all of a sudden. When trying to go to a site we get "File Not Found". Turned on more detailed errors and getting "Resource cannot be found" HTTP 404 The resource you are looking for could have been removed, had it's name change, or is temporarily unavailable. Also getting a bunch or this error in Application Even Viewer. "Console Configuration File Error: File Not Found. The system cannot find the file specified.
We have rebooted the server and have also moved the site collection to a different WFE and it will work for a little bit and then back to getting these errors.
0
Hi There

I have a client who sells time slots for his his business in many different locations. Up until now there has never been any issues because the customer would have to go to their website to start booking an appointment. It is a WordPress site using the Bookings extension with WooCommerce.

However, they are now going to be working with a Hotel that will be sending them some clients, and we will need to monitor the bookings being made.

Is there software/plugins/scripts that will allow a code to be added to the URL which will follow a button clicked on their website through to a booking being made???

We need some way of tracking any bookings being made which originate from the Hotel website.

regards
0
I have a customer running peachtree Complete Accounting 2012. They have several computers running Win 7. Which has to go. They are using it on an office network and do not want to go cloud.

Question 1 - I have not had success getting it to run on win 10. Is there a solution?

Question 2 - They are willing to upgrade. Is there a comparable upgraded version? I am only finding cloud and single user.

Thank you
0
Hello, I am adding a donation page to a WordPress website I am working on. I want the visitors to be able to go to this page and have a few options such as $25, $50, $100 buttons and a field to input the amount they desire to donate if they prefer more or less. My question is I prefer to keep the person within the webpage and not taking away to a portal to make the donation. I was thinking pay pal but wanted to get some feedback from you guys before I just go with Paypal. Are there any services / add ons that you prefer when incorporating something like this into WordPress?
0
Ok all the Google heads, dev guys, etc out there, Im looking for better ways to group my tabs.  I usually have around 80 tabs open in Chrome at work.  We're a Google shop.  Ive noticed that I have several groups that could go together, e.g. 8 Google docs, 7 of our portal, bunch of Google Sheets, etc.  Is there a better way to stay organized?  Thank you techs, Mark88tabs
0
Learn Ruby Fundamentals
LVL 13
Learn Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

Dear All


           i have an issue with WSUS server, i checked that some client computers showing with "no status", and i try to go to the problem client computer and click "check for update" but i received the error code, any way i can get the problem client computer receive windows update by wusu ?


1
2
0
Upgrade to Server 2012 R2 failing with LSI Logic LSI Adapter, Ultra320 SCSI 2000 series, w/1020/1030 driver.  I have a VM machine running Server 2008 R2 and trying to upgrade to Server 2012 R2.  I am being asked to update the driver, but am having issues finding it.  Most sources say go to LSI website, but its appears to have gone away.  I think the only reason this server has the Ultra SCSI adapter is because the server was originally a Physical  that we did a P to V on.  Advice please?
0
I have one of my users that is having an issue in Excel.  It seems that any excel file he has, complex or simple calculations has this same issue.  If he leaves the file open, and does other things on his pc, or steps a way for a while, Excel is very slow to respond when he clicks a cell on the spreadsheet.  He has several spreadsheets he updates every day.  He is so used to this issue, that he knows to click on a cell and go work on other things for a minute or so, then comes back and works in spreadsheet.  It acts like excel is hung, but always comes  back and stats working.  You just have to wait.  Everything else on his pc responds great.  He said many other co-workers have told him they have the same issue.  We run Microsoft Office 365 ProPlus, and we do use cloud storage such as Microsoft's OneDrive.  I think most of his files are stored on SharePoint, and this also has cloud storage back to Microsoft.  Almost seems like Excel has its own hibernation mode.
0
New to solar winds patch manager. I have deployed updates to test group. updates arrive to all machines but don't get installed. I have to manually go to updates and install them. not able to figure out why?
0
Exchange 2016 Environment, Server 2016.  Moved the server over the weekend and had some trouble with Email delivery.  It seems to be working except for some email from the outside get queued and never delivered.  I have not received an NDR yet.  250 2.6.0  Queued Mail for Delivery.

It truth the email is not in any queue on the Exchange 2016 server.  Email from GMail and other domain does go through.  Any help greatly appreciated.

Just for Clarity, I do have an Exchange 2010 server on site that is not participating in mail routing (or should not be)  There is nothing in the queues there either.

This was working fine at the old location for several years.  During the move, I had added a Public DNS server to the network card and that caused NO mail flow.  I fixed it, but I also noted that the fix did not stay fixed.  I had to go into the properties of the server and select "Custom Dns Lookup" and add the local AD server IP for DNS.  This has got the mail partially flowing.

I have read that ISP can effect email delivery with TLS settings but I have not seen the entire process to investigate if that is the cause here.
Bob
0
Hello
I am trying to authenticate my API calls using JWT with nodejs and javascript using qeuelize and mysql . I was able to get the token and send it in the headers using postman, but if i want to send it from the html form once the user sign in and then the token will be send or go through to authenticate the user. how will I store the token so the user can send it with the middle ware to be reauthorized to access the index page.
signin function:

exports.signIn = (req, res) => {
	console.log("Sign-In");
	console.log(req.body.username);

	User.findOne({

		where: {
            username: req.body.username,
		}
	}).then(user => {
	    console.log(user.password);
		if (!user) {
			return res.status(404).send('User Not Found.');
		}
        let passwordIsValid = bcrypt.compareSync(req.body.password, user.password);
        if (!passwordIsValid) {
			return res.status(401).send({ auth: false, accessToken: null, reason: "Invalid Password!" });
		}

        const token = jwt.sign({id: user.id}, config.secret, {
            expiresIn: 86400 // expires in 24 hours
        });


       // res.status(200).send({ auth: true, accessToken: token });
       res.sendFile(path.resolve(__dirname,'../public/index.html'));


    }).catch(err => {
		res.status(500).send('Error -> ' + err);
	});
};
/************************************** verifyToken function****************/
verifyToken = (req, res,next) => {
  const token = req.headers ['x-access-token'] || 

Open in new window

0
Dear all,

I have a dynamic picker in xamarin forms where I have an entry before I realize then when entering data in the entry and go to the picker, picker data is opened twice.
How to solve this issue?

Thank you
0
Hi,

Am trying to create a solution to convert spring boot microservices to AWS Lambda. Am getting mixed opinions on if spring boots should even be considered suitable for aws lambda.
Under what circumstances would it make sense for me to go ahead with the conversion?
What type of assessment checks should I do before I try to re-write a Java based microservice to a serverless function?
0
I had been trying to find a solution to setting up the shared calendar, contact, and hopefully files using our office 365 account.
Instructions from Go Daddy and Microsoft itself don't provide much clarity. It's an important project that I need to get off it's feet.
We have a corporate 365 email plan that I need to share a public calendar and an internal calendar so public (external and internal email accounts) AND private (Internal email accounts) events can be separately accessed.

I'd like to be able to have everyone contribute OR post to the calendars, but I'm not sure how to set it up.

Also, I'd like to be able to have ALL contacts from ALL emails sent/received to the corporate address be available to ALL users...OF Course APPROVAL will be required prior to making the contact available to all. This would be necessary to establish a FULL directory of Customers, Vendors, Distributors, etc. for corporate communications.

I'm the IT Director and Office Administrator with hope of putting in a more complete solution in the near future. Currently we have 15 key email users.

Thank you in advance for your suggestions and potential solutions.
0
Starting with Angular 5
LVL 13
Starting with Angular 5

Learn the essential features and functions of the popular JavaScript framework for building mobile, desktop and web applications.

Exchange 2013 Installed Go Daddy SSL Certifcate that was rekeyed after renewing.  OWA and Email is working fine.  Can no longer access ECP (internally from the server and externally - both worked properly before the new certificate was installed two days agao.  In IIS Default Site has new Certificate listed under HTTPS correctly.  Certificate names did not change.  How to regain access?
0
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?
2019-01-10_22h46_09.png
2019-01-11_01h07_13.png
0
I use different netsh commands to run individual back ups of DHCP servers.
For example:
netsh dhcp server dump > \\10.0.0.1\dhcp$\Area1\dhcpcfg.txt
netsh dhcp server export \\10.0.0.1\dhcp$\Area1dhcpdb all
pause
netsh dhcp server dump > \\10.0.0.2\dhcp$\Area1\dhcpcfg.txt
netsh dhcp server export \\10.0.0.2\dhcp$\Area2\dhcpdb all
pause
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
0
HI,

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

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

Tony
0
Hi,
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 …
0

Golang

433

Solutions

941

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.