Golang

548

Solutions

1K

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

The strange thing here is that I have the two table as follows:

(1) Table Inventory (Primary ) with primary key called InventID
(2) Table Productiondetails (Child) with primary key PRID

The two table are supposed to be linked in sql server , but each time I try to use server management studio to directly link these tables , they look like below:

Primary table                                                             Secondary table
 Inventory                                                                    Productiondetails
 InventID                                                                      InventID


But after saving the above relationship , then I try to go and check whether the relationship remain the same as above to my surprise I find that the following is showing:

Primary table                                                             Secondary table
 Productiondetails                                                     Productiondetails
 PRID                                                                                PRID

As a result when the data is posted to this the parent primary key (InventID) will update PRID instead of InventID as foreign key

I'm still new in the SQL server I can't on this!

So what do I do fix this situation, any help will be appreciated.

Regards

Chris
0
Hi,

I have an Excel csv database, or will have when completed consisting of around 200 columns and almost one million rows and at least 1GB in size.
I need to then add around 35 columns of formulas copied down to 170k rows I intend to sort the data each time I want to do some calcs.
I fear that Excel will not be able to handle such a workload and wondered how best in terms of efficiency and speed  I could go about solving this puzzle.
Thanks if you can shed some light on it.

Ian
0
The primary key is not being inserted in the secondary table while other data is being inserted in SQL server 2016 , the strange thing is that when tabbing or using tab the data from the child form will go or disappear leaving the data from the main form . I'm using the same tables , same form , same queries as in ms access , I tried to recreate the form still nothing is working out , I have just re exported the tables again to sql server still nothing is being sorted out.

I have not recreated the relationship in sql server since the export went with all the links except the date which I had to normalise to datetime

What should I do now????????????


Regards

Chris
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
How is dedicated ethernet internet 40Mbps/40Mbps  different then regular business internet that has 150Mpbs/20Mbps
- My company has 17 people how would either of the options affect them?

Whats the best way to go on Primary Internet Service and Failover internet.
- Someone says do LTE Failover and we've tried but the bandwidth just is horrible when spread across 17 people.
1
powershell and Windows 7.

Hi,

I have a text file request.txt containing filenames such as:
18-111
18-222

Actual filenames:
18-111 member 91-A.pdf
18-111 MD 91-A.pdf
18-222 member 91-B.pdf
18-222 MD 91-B.pdf
18-333 member 91-C.pdf
18-333 MD 91-C.pdf

QUESTION: how do I use powershell to
1) loop through request.txt and do a partial match to identify certain .pdf files to move from folder A to a specific folder B that has the same name as the last 4 characters of the filename?  

RESULT:
18-111 member 91-A.pdf is moved to folder 91-A.
18-111 MD 91-A.pdf is moved to folder 91-A.
18-222 member 91-B.pdf is moved to folder 91-B.
18-222 MD 91-B.pdf is moved to folder 91-B.

2) Add today's timestamp to the end of the filename in the format YYYMMDD_HHMM in 24hour format.
RESULT: If today is 3/26/2019 1:21pm.
18-111 member 91-A 20190326_1321.pdf
18-111 MD 91-A 20190326_1321.pdf
18-222 member 91-B 20190326_1321.pdf
18-222 MD 91-B 20190326_1321.pdf
1
Can Salesforce allow me to create a list of accounts that will quickly allow me to open and append a field value? In other words. I would like to create a list of 500 accounts and input the actual total revenues of that particular company into the field called Total Revenue. We need to do that so we can identify if the representative who handles that account big or small really is QUALIFIED/SKILLED enough to handle them by themselves? Is there an efficient way to go into Salesforce and quickly do that? If not Salesforce needs a way to allow Managers a quick edit tool for salesmen, sales teams and representatives so that corrections can be made quickly and efficiently in the even a new salesman or representative missed some entries or new policy calls for the updating of all or some accounts with new variables for analysis purposes. Opening individually could take forever to do. It would be great to have a list with a column like excel and just go down the list entering the correct value....?
Does Salesforce do anything like that?
0
I want to change to a new user in Windows 10. How do I go about this and I would like to access all programs and data by the new user - it  would be ideally if I  can just swap users or is that too naïve!
0
I am installing on OnPremise Exchange 2016 with one Domain, What type of SSL would be best suited so when you want to connect Mobile Devices/OWA by putting in the email address and password, it will go out and search for it and connect it to the device without setting it up manually?
0
Hello Team,

I have an external trust between my domain and another companies domain.
I want to create a security group in AD and members from that external domain to it.
but when I try, all I am seeing is my domain when I go to locations

How can I add users from other domains to my local security group?
0
We currently have users Outlook using IMAP/POP3 and I wanted to know if it's okay to go ahead and Install Exchange 2016 on the Server without switching the Domain until were ready, meaning it should not cause any issues with Users who are currently opening Outlook with IMAP/POP3?
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
Where do I go wrong on the insert  code below?
Private Sub CmdPos_Click()
Dim db As DAO.Database
Dim strSql As String
strSql = "INSERT INTO tblPostClearance (" & "tblPostClearance.Debit, " & " tblPostClearance.Credit " & ")VALUES(" & Me.txtCashReceivable & ", " & Me.txtCashReceivable & ")"
db.Execute strSql
End Sub
0
I have this code

I want to go to the block.field but its not working

 forms_ddl('begin DBMS_TRANSACTION.COMMIT; end;');

                                go_block('vendor_invoice_items'); 
		     	           clear_block(no_validate);
		     	         go_block('vendor_invoices');
		                  clear_block(no_validate);
		                  clear_form(no_validate);
		                 go_block('vendor_invoices');
		                 go_item('vendor_invoices.dsp_order_number');
		                   :SYSTEM.MESSAGE_LEVEL := 25; 

Open in new window

0
We are Exchange 2013 on premises ONLY, we may go 365 but not at this time. Our marketing team sends a weekly email globally to internal users only. They're requesting metrics around at least a true read status for the email. Did they read it, delete it immediately etc...

Blue sky option would be to be able to tell difference between an email opened in full outlook client and webmail or smartphone. We have tried various scripts found online with no success.

What are you using for this purpose? If you went with a third party app to deliver, please let us know which. Would listserv option be a better solution?

Thanks in advance!!!
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
a variable in linux shell.  i'm not really understanding the difference between an environment variable and a shell variable.
how long does either last?  how do you know which one is which?

if I set a variable:

VARIABLE="David" in a shell script
execute the script and go and type echo $VARIABLE... shouldn't it kick out David?

i know there are some variables you can export out of the shell, correct? but, i'm not really interested as i'm concentrating solely on bash at this point? or is that not how shells within linux work?

thanks

i guess now that i think of it ive heard of a single running of a script doing so within a 'shell'.. is this shell unique in it's processor and/or memory utilization?
why would i use anything other than bash? specialized customizations?

-dave.j
0
Hey

So i use Amazon S3 upload file to store uploaded Files,

Now what im trying to do is  a custom attach document to a email which i am using phpmailer to attach, my issue is im not sure how to get the file from Amazon S3 and attach it to the PHPMailer.

I have only front end and jq setup, where you click on a attachment which sends a ajax request to the backend which uses a file path to go to the S3 but im not sure how to bring back the file to pass into phpMailer.

any tips or advice ?
0
This is a Windows DNS Server question.

On the windows server that has the DNS role, this server connects to a SAN as well. So basically the server has 8 nic ports. 4 are teamed for the windows environment, and the other 4 ports are used for multipath to the SAN.

So in the dns config section i go to the properties tab of the dns server. On the interface tab it shows 5 ips. The 1 that entails my windows team, and then the 4 that go to the san. I unchecked all of the SAN ips since my clients were associating this san ip to the server when looking for a logon server etc.. However when i uncheck all my san ips that goofy self test it does on the monitoring tab always says it fails.

However when i put in this server to my laptops static dns list it seems to work fine for web, browsing pc names on the network. I even flushed all the caches locally and on the server to make sure.

Does it matter if the monitor tab fails? If i put all my san ips back in under interfaces it passes, but then the server advertises these address on my network as a way to get to it which is wrong obviously. I am content with not worrying about the monitoring tab if this is normal for people who have had a server running dns server which also connected to a san.

Any comments or suggestions welcome. Thanks!
0
I want to hide two controls in a sub form based on the condition selected from the parent form , I have tried all what I can , nothing is working out my code is on sub form before update event:

If (Me.Parent!txtProductCH <> [Purchase Order]) Then
Me.CboProduct.Visible = False
ElseIf (Me.Parent!txtProductCH = [Purchase Order]) Then
Me.CboProduct.Visible = True
ElseIf (Me.Parent!txtProductCH <> [Purchase Order]) Then
Me.CboPrices.Visible = False
ElseIf (Me.Parent!txtProductCH = [Purchase Order]) Then
Me.CboPrices.Visible = True
End If

Open in new window



Where do go wrong here?

Regards

Chris
0
Hello,

Is there a way to physically locate a connection configured as etherlink aggregation on iSeries (AS400) 7.3? We have some ethernet connections configured as ethernet ports and I can go to the properties and find the physical location (serialnumber-p1-c1-t1) but I cannot find where the etherlink aggregation ports are configured.

Thank you in advance!
0
We use an IdP (Onelogin) for SSO with Azure. Ever since we started with Azure there has been unauthorized login attempts cause user lockouts on Onelogin side.  I need to whitelist the IPs on Azure side that are able to send SSO login attempts.
We want to request to go to SSO but only if it meets the IP whitelisting first.
Azure/Onelogin uses WS-Trust for Authentication.
I checked with Onelogin, they don't offer anything that would prevent an authentication attempt based on IP for a WS-Trust auth from Azure.
0
I need an 8 port switch capable of being compatible with a Linksys EA9500. There are several options listed for switches such as managed or not managed. I have no idea what that refers to or if I need it. My needs are not complex. The ports on the switch will go to a Dish Network Hopper tv receiver, hulu, Sony TV, blueray DVD player, two laptops and a desktop. Since I pay for  one gig service and frequently get 950 up and down I naturally want to take advantage of that speed on all my devices. One expert has already suggested two different model and brands. My budget is set at $150.00 maximum unless there is a definite need for something higher priced. I welcome suggestions. Some have a lifetime warranty that is quite nice.
0
Hi All,
I want to make a script to run to swap screens 1 to 2 or 2 to 1 from left to right.
I have staff swapping desks or setting up meetings and have to go into display settings and drag 1 identified screen to 2 identified as the mouse gets caught and can't move to the other side logically.
I have wanted to do this for a while. Hope everyone has a solution and point me in the right direction.

Appreciate your help.

D :)
1

Golang

548

Solutions

1K

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.