[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x

Golang

383

Solutions

859

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

Hello EE Community,

I'm in need of assistance in creating a PS script that does the following:

If I schedule a script to run on Fridays at 10AM, I need the script to go back 15 weeks from date, adds a day, so it'll be Saturday and delete any files older than 12am.

For example, if I run the script this Friday 11/23 at 10AM, the script will go back 15 weeks from date so it'll be Aug 10th adds a day so it'll be Saturday Aug 11th and deletes anything before 12am.


This is what I have so far:

$limit = (Get-Date).AddDays(-7 * 15)
$path = "\\SharePath"

# Delete files older than the $limit.
Get-ChildItem -Path $path -Recurse -Force | Where-Object { !$_.PSIsContainer -and $_.LastwriteTime -lt $limit } | Remove-Item -Force
2
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.

I know there are programs, like Audacity, that will null out background noise.  You give them a sample of just the noise and they subract that from the whole audio track. Does anyone know what these programs do if the noise sample is louder than whats in the audio track? Suppose, for example, you shot a video walking around a store while the manager talks about the various items.  The noise you want to null out is a generator at a building site across the street.   But this noise will be louder when we're walking near the front of the store than when we're at the back.  If the noise sample being used to null out the noise is louder than  the noise in the audio,  will noise get added back in, or will it the track noise just go to zero and stop?

Thanks
0
I am unable to change .zpl files to open with a .bat file that was created for printing.  I go to "open with" and add the check mark to always open with .... and it prints and works great but we have to do that every time.  it is windows 10 we are using and I cant figure out how to make all .zpl files when clicked on to auto open the label.bat file.  any ideas how to force that to happen as it is not saving label.bat as the program to open all .zpl files with.
0
Hi,
I am thinking about buying a new HP ML110 G10 with iLO 5 activated and like to know how to go about buying iLO 5.
Is this a piece of chip (or hardware) that I need to purchase separately or it is intergrated inside the server?
Do I have to buy license initially and renew it annually or it is one time purchase?
I saw the demo on youtube and like the fact that you can Manage and monitor servers from anywhere.
HP Part number is 512485-B21, but the price is all over the place and don't know what/where I need to buy.
AMASON: $70.00
NewEgg: $99.00
Provantage  $257.92
CDW  $303.99
serversupply: $310
0
Greetings.
I recently updated our SSl certificate on Exchange 2016.
Upon ding so, I lost connectivity to my ECP portal.
All I get when I login in is a reloop back to login again.
I have tried checking the certificate and settings but they look good as per my understanding.
I am not an Exchange Guru and this is the first time I encountered this issue.
I do need this resolved so I can add new users to our environment.
I could do it from our other Exchange Server in the DAg, but I do not want to go that route.
Reason being is that the issue will still be there: relooping after attempting to login.
I do can use OWA but not ECP.
I am running windows 2012 R2 as the OS for Exchange 2016.

I checked the settings in "default website" the bindings and they are correct pointing to the correct certificate.
I restarted the service on IIS in application pools called "MSExchangeECPAppPool", but to no avail.

Thank you for your attention.
0
What is the best way to backup a SBS2003 server without NTBACKUP.
We have replaced this server with a new 2012r2 server and just want a backup in case we need to go back for anything.
what software can I use.
0
When creating a distribution group in the O365 portal by default only senders inside the organization are allowed to send.  I need to find a way to mark ALL distribution groups to allow external senders - using a script as manually one by one would take too many hours.  We need this as we are transferring to a new tenant in groups not everyone will go at the same time.   So the folks on the new tenant will not be able to send to the distribution lists until the transition is complete as they are considered external users.  Importance on this is critical as it's nothing our project team considered before now.
0
I received an email from my email account.  It state that I had been hacked and to prove it, they had included my password.

I changed my password and ran several Anti-Virus malware tools ( MS, Symantec, SpyBot).  They found some cookies but nothing else.

I also looked at the task manger to see if something was running that look out of the ordinary

So I ignored the emails and received another yesterday with my new password.  So clearly I haven't found the keylogger.

I checked for a restore point that would go back, but with Windows 10 upgrading all the time, it only went back a few weeks and this has been going on longer.

How can I find this.
0
Dears,

I have couple of questions regarding Meeting Room of Exchange 2016 as below:

1- How to prevent double booking for certain room?
2- How to receive a confirmation of my booking?
3- When I go to outlook >> calendar >> Open Calendar >> From Room List then, it takes long time to show the result and it shows all reservation as Tentative?

Thank you

BR,
Abdulsalam
0
Dear Experts,

I am configuring a Lenovo V3700 V2 with 24 hard drives.

I created two pools.

I added 12 drives to the first pool.

When I want to add the remaining 12 to the second pool, I only see 11 drives.

Where did the missing disk go?
0
Become a Certified Penetration Testing Engineer
LVL 12
Become a Certified Penetration Testing Engineer

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

Crystal Reports 2016

I am using the standard grouping by field in my report.  However I would like to actually combined several fields to fall under one specific group.  How would I go about doing that.

Field to group by.  A, B, C, D, E, F


Example:
                       Group: A
                           Detail A
                       Group B
                            Detail B
                       Group C
                            Detail C
                       Group (Contains D, E & F)
                            Detail D,E,f
0
Dell laptop is giving me a windows stop code. I cannot go back to last know good configuration.
0
PGP for free?

Absurd question maybe but if I Google for "PGP Windows x86 32 bit" I am not presented with a list of freeware products but presented with several paid for products. I am a cheapscate  and expect everything for free including a PGP encrypter program for my crappy 32 bit Windows version 10 notepad.

So where do I go to (my lovely) to get free encryption for my Windows 10.0 32 bit craptop tablet?
0
Basically it is not a technical problem ,, i just want to know further about experts exchange ,, as i am on 7 days free trial ... my question is what is annual subscription for it ,,, and if i go for annual subscription ,, what benefits i will have from experts exchange ,. i mean i can enroll any class from such subscription or after subscription i have to pay separately for whatever course I am enrolling for .

Looking forward to your favorable reply
0
Hi All,

I've got an iMac, which is doing a restart loop, just a white screen and a chime going in a loop.... the screen doesn't go blank when it restarts, stays white and you keep hearing the chime every 2 to 3 seconds, I've tried all the normal fixes, like holding the shift key, pressing command-option-r-p... nothing seems to work, would anyone know a fix?

I know last resort is taking it to Apple but the machine isn't covered by Apple Care...


Thanks
0
Hi Experts,
I wish to generate a report against a specific mailbox and for the output to be statistical information such as:
Number of incoming emails within a given start/end date/timeframe


Obviously, I am not after exchange jargon, this is to be used by a department team leader on an ongoing basis so needs to simply output information, I need to automate that the department head receives this on a daily basis

Any suggestions on how I can go about this, any handy scripts that someone may have to do this?
0
I am working with app packaging in SCCM 2012R2 and have an application installer (.exe) that while running launches a second .exe (Sentinel Runtime) to install. At the end of the second one installing, there is a prompt to hit OK. The application install won't go past this point if you don't hit OK. So in SCCM, it will run until it times out then the installation will fail. I haven't been able to get it to move beyond this point no matter what switches I use. It would be great to get some help with this. I am running the installation again to get some fresh logs as I am sure someone will want to know. Below is the string I am using in the installation line.

".\tnxTower8040_Setup.exe" /S /v"/qn " /norestart

I've tried many variations of the same command, but have had no luck. I've also reached out to their support and they were unhelpful as well. So now I am reaching out to the experts!

Thanks in advance!!
0
I have a variable defined as

var model = new List<someviewmodel>();

if i drill down model

model[0].items[0].inspectionitems[0].Value = 62
or
model[0].items[0].inspectionitems[0].Value = 63

And then i have another variable with just a number in it

var number = 62

Another property I have inside the model is "isSelected".

what I basically want to do is whatever value i have in var number, I want to go in Model and find that particular item and set the "isSelected" property to true.

C#
0
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
OWASP: Forgery and Phishing
LVL 12
OWASP: Forgery and Phishing

Learn the techniques to avoid forgery and phishing attacks and the types of attacks an application or network may face.

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

Golang

383

Solutions

859

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.