github
28 TopicsWhat are the pros and cons of using GitHub Copilot?
GitHub Copilot continues to soar to new heights in the two years since its launch. Over the years it has grown to over 1 million paid subscribers across over 37,000 organizations. This makes it the most widely adopted AI developer tool in history and it continues to redefine how developers code. Let’s analyze the pros of GitHub copilot. It: Suggests code as you type - You can view and incorporate suggestions from GitHub copilot directly within the browser. You can accept, partially accept, reject, or view alternative suggestions if there are any. Answers coding questions - GitHub Copilot Chat can generate unit test cases, propose code fixes, answer coding questions, and explain your code. But don’t forget your due diligence. Always check and test your code. Refactors and improves code - Copilot suggests refactoring using the context of your codebase and recommends potential improvements to selected code such as improved handling of errors and edge cases, or changes to the logical flow to make the code more readable. Fixes issues - Copilot can suggest possible fixes based on the error message, the code’s syntax, and the surrounding code. Also, when a command fails to run in the terminal, Copilot offers a Quick Fix to explain what happened. Generates commit messages and PR descriptions - Copilot uses AI to describe your code changes. This feature makes writing descriptive and helpful commit messages as easy as clicking a button. Let’s see the cons of GitHub Copilot. The most evident disadvantage is that developers who heavily rely on Copilot risk being overdependent on automated suggestions. This is a problem, especially for beginners. Additionally, Copilot may generate inaccurate code that appears to be valid. To mitigate inaccurate code, you should always review and test the code. Developers must take a thoughtful approach to integrating this tool into their process. GitHub copilot is meant to increase productivity and accelerate the rate of software development, not replace the developer’s decision-making and critical thinking.5KViews1like0Commentsplease help with : The response received from the service didn't contain valid XM error
Good day Hope someone can assist met with the following problem. We are trying to setup a scenario where out application running on windows server 2019 iis goes and login with the following email address username and password specified and automatically send an mail back to the client from office 365. In simple terms the app must open web url login with credentials given and send mail. I went through a lot of the forms already and tried to change the URL quick a few times since some of the forms aren't consisted what to actually use here. So what needs to happen application needs to contact office 365 on url (https://outlook.office365.com/EWS/Exchange.asmx) as per previous forms stated but then we get the following error "The error message you're encountering, "(401) Unauthorized" We have given permission on the noreply/order email address on 365 and double checked username and password but error message still persists we also made sure 2 factor auth is off on 365 admin center for this mail box to sent out and delegations are correct.. WE also used https://autodiscover.outlook.com/EWS/Exchange.asmx since in the admin portal of 365 it seems that everything is set to autodiscover but with no success. We then changed the url to "https://outlook.office.com/mail/ourdomain.co.za/EWS/Exchange.asmx" as per other forms, you get the office 365 login page which seems to be the correct url but now we are getting this error "The response received from the service didn't contain valid XML" We are not running an hybrid solution and only want to use the application to send via office 365 we do not have an on site exchange server. Firewalls rules were also checked and cant seem to find anything blocking this requests. Also I am not to sure if there is anything I need to do on our windows server iis side the only thing i tried there was to add and allow the url under sites in iis request filtering which also did not make any difference. Please see current code of application. Areas in **** we have the actual details filled in. ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2013_SP1); //Set your Exchange server URL and credentials. try { // Set the correct URL for Office 365. service.Url = new Uri("https://outlook.office.com/mail/ourdomain.co.za/EWS/Exchange.asmx"); } catch (Exception ex) { return BadRequest("WebService Uri: " + ex.Message); } try { service.Credentials = new WebCredentials("****email address removed for privacy reasons****", "****userpassword****"); } catch (Exception ex) { return BadRequest("Credentials: " + ex.Message); } try { EmailMessage email = new EmailMessage(service); email.Subject = "Your Visits for today"; email.Body = new MessageBody("The email is working"); email.ToRecipients.Add("****email address removed for privacy reasons****"); email.Send(); return Ok("Email sent"); } catch (Exception ex) { return BadRequest("Message Error: " + ex.Message); } } Please any help or assistance will help greatly since we are currently at this point we do not know what to check further.2.1KViews0likes3CommentsSoar to new AI developer heights with GitHub Copilot
Are you a beginning AI developer who is ready to fly? Take off with GitHub Copilot, a service which provides you with an AI pair programmer that works with all of the popular programming languages and can dramatically accelerate overall developer productivity. It uses the OpenAI Codex to suggest code and functions in real time—right from your editor. To get started with GitHub Copilot, I recommend the Introduction to GitHub Copilot module on Microsoft Learn. It covers how GitHub Copilot can help you code by offering autocomplete-style suggestions, and it explores how to configure and troubleshoot the service. Learn how adding AI features to the developer tools you already use can help you collaborate, develop, test, and ship your products faster and more efficiently. The sky is the limit when you #LearnMicrosoftAI and code with GitHub Copilot!1.5KViews2likes0CommentsGitHub Copilot: The power to boost your programming productivity
Trained on billions of lines of code, GitHub Copilot turns natural language prompts into coding suggestions, helping you to write code far more efficiently than you have in the past. This AI pair programmer draws context from comments and code to instantly suggest individual lines and even entire functions. If you’re a beginning developer, solution architect, or DevOps engineer, where can you get the basics on this at-scale developer tool? Let me suggest the GitHub Copilot fundamentals - Understand the AI pair programmer learning path on Microsoft Learn. In these modules, explore the fundamentals of GitHub Copilot and its potential to enhance productivity and foster innovation. Discover how to implement it within your organization and your own projects. Find out how GitHub Copilot uses the OpenAI Codex in real-time right from your editor. Examine various use cases and customer stories, and get instructions on how to integrate GitHub Copilot into your workflows seamlessly. Make the most of this opportunity to unleash the power to boost your programming productivity as you #LearnMicrosoftAI. Labels LearnMicrosoftAI, GitHub Copilot1.2KViews3likes0CommentsHelp needed from you experts
Hello community, Greetings ! I urgently need to convert these data into excel, my boss gave the work to me 2 weeks ago. I'm currently puting the data in excel manually but at this pace I'm sure that it would take me couple of months to complete the work. Could anyone please help me in this matter ? Your help will be highly appreciated. Please help me saving my job.1.2KViews0likes5CommentsLearn resource for Open AI and Copilot
Hello Team, I would like to learn more and educate my office team folks on Open AI and GitHub Copilot. I would like to test their skills with few exercised and challenges as well. Do we have any location from where we can surf for decks and exercises for the same shared by MSFT or from other community leaders? Thanks in advance!1KViews0likes1CommentGitHub Foundations Certification Learning Path
If you want to get certified with GitHub, follow this learning path for more information and resources: Get Certified with GitHub. GitHub Foundations Certification Learning Path. Start your journey as is it also essential for Microsoft Student Ambassadors. It will help you get prepared to take the GitHub Foundation Certification. You will learn how to collaborate on a project and with teams to grow your knowledge by using different tools like GitHub Copilot, GitHub Code spaces and more! Get Certified with GitHub.999Views0likes0Comments𝗧𝗵𝗮𝗻𝗸𝘀, 𝗠𝗶𝗰𝗿𝗼𝘀𝗼𝗳𝘁 𝗮𝗻𝗱 𝗠𝗶𝗰𝗿𝗼𝘀𝗼𝗳𝘁 𝗟𝗲𝗮𝗿𝗻!
Dear Microsoft | Microsoft Learn, I want to express my immense gratitude for giving me the opportunity to participate in and successfully complete the Microsoft Build: Developer Tools. Congratulations to myself! I have completed the challenge and won a free Microsoft Certification exam. I am ecstatic about this achievement and cannot wait to redeem this offer. For now, I will relax, celebrate, and cherish this incredible moment that I have been able to achieve while learning more about Git and GitHub. I am grateful for this opportunity and everything I have learned during the challenge. Once again, thank you to Microsoft for this amazing opportunity for professional growth. I look forward to continuing my journey of learning and development with you. Thank you so much! #MicrosoftCloudSkillsChallenge #Technology #IT #Creators #FutureTechnology #ThiagoGuedes #Guedes #GitHub #Microsoft #MicrosoftLearn #Success #Development #Opportunity #Certification #Skills #MicrosoftBuild2023887Views1like0CommentsGain command of your command jobs with Azure Machine Learning
As a beginner working in data science and AI, you want to build your expertise in Azure Machine Learning—and that means you need to know how to train models with scripts, run a script as a command job, and write scalable, repeatable code to process data and train models. Where do you go to get all this this experience? I’ve got just the place for you. Check out the Train models with scripts in Azure Machine Learning learning path on Microsoft Learn. These modules show you how to run a training script as a command job in Azure Machine Learning, convert a notebook to a script, and use parameters in a command job. Plus, they explore how to track model training with MLflow in jobs, view and track metrics, and evaluate models. This learning path can even help to validate your skills and real-world experience by preparing you for Exam DP-100: Designing and Implementing a Data Science Solution on Azure to earn the Microsoft Certified: Azure Data Scientist Associate certification. Gain command of your command jobs, scripts, and more, in Azure Machine Learning, as you #LearnMicrosoftAI.800Views1like0CommentsActive Directory Locked out Users Auto-Locking Command to run every 15 Mins
My Requirement: I want to view all On-premises AD Locked out users every 15 minutes. I want them to be exported to a CSV file with the proper time and date mentioned in the file name. I want this CSV file to get copied to my OneDrive. Also, I want this confirmation in an email with an attachment and on MS Teams. Must haves: Active Directory Access, Active Directory Local Application, Incoming Web-hook URL(for MS Teams Message), Sender Email ID with password, Recipient Email ID, Proper OneDrive Synced path for CSV file. The command that matched my expectations: Step 1: Open PowerShell ISE & run, Import-Module Active Directory Step 2: Run the below-mentioned command through a text file in PowerShell ISE. while($true) { # Get the current date in UTC $utcNow = (Get-Date).ToUniversalTime() # Define the IST offset $istOffset = New-TimeSpan -Hours 5 -Minutes 30 # Calculate the current date in IST $istNow = $utcNow + $istOffset # Format the IST timestamp $timestamp = $istNow.ToString("yyyy-MM-dd_HH-mm") # Define filename with timestamp, give the csv path as OneDrive synced folder $csvPath = "csv-path\LockedOutUsers_$timestamp.csv" # Get AD-locked users and select the required properties $lockedUsers = Search-ADAccount -LockedOut -UsersOnly | Select-Object Name, UserPrincipalName, SamAccountName, Lockedout Search-ADAccount -LockedOut -UsersOnly | Unlock-ADAccount # Export the locked users to a CSV file $lockedUsers | Export-Csv -Path $csvPath -NoTypeInformation # Define the parameters for the email $emailSmtpServer = "smtp.office365.com" $emailSmtpServerPort = "587" $emailSmtpUser = "Sender Email ID" $emailSmtpPass = "Password" $emailFrom = "Microsoft 365 Assistant <$emailSmtpUser>" $emailTo = "Your Email ID" $emailSubject = "Account Lockedout Users' Report @ $timestamp" $emailBody = "Dear Venkat Sir, Please find the AD Account Lockedout users' report attached. For your information, please. We've successfully unlocked all of them. Best Regards, Microsoft365 Admin." $emailAttachments = $csvPath # Send the email Send-MailMessage -To $emailTo -From $emailFrom -Subject $emailSubject -Body $emailBody -SmtpServer $emailSmtpServer -port $emailSmtpServerPort -UseSsl -Credential (New-Object System.Management.Automation.PSCredential ($emailSmtpUser, (ConvertTo-SecureString $emailSmtpPass -AsPlainText -Force))) -Attachments $emailAttachments $csvContent = Get-Content -Path "$csvPath" -Raw # Define the webhook URL $webhookUrl = 'your webhook url' function Send-TeamsMessage { param ( [Parameter(Mandatory = $true)] [String]$WebhookURL, [Parameter(Mandatory = $true)] [AllowEmptyString()] [String]$CsvContent ) # Convert the CSV content back to PowerShell objects $users = $CsvContent | ConvertFrom-Csv # Build a clearer message from the user objects $messageText = "Locked Out Users Report:`r`n`r`n" foreach ($user in $users) { $messageText += "- **Name**: $($user.Name)`r`n" $messageText += " **UPN**: $($user.UserPrincipalName)`r`n" $messageText += " **SAM**: $($user.SamAccountName)`r`n`r`n" } # Structure the payload for Teams $body = @{ "@type" = "MessageCard" "@context" = "http://schema.org/extensions" "summary" = "Locked Out Users Report" "title" = "AD Account Locked Out Users Report" "text" = $messageText } | ConvertTo-Json $headers = @{ "Content-Type" = "application/json" } Invoke-RestMethod -Method Post -Uri $WebhookURL -Body $body -Headers $headers } Send-TeamsMessage -WebhookURL $webhookUrl -CsvContent $csvContent # Wait for 15 minutes (900 seconds) Start-Sleep -Seconds 900 } Conclusion: To stop this process, need to stop the operation on PowerShell ISE else we need to close the PowerShell ISE else we need to re-start the system. It will run forever if this isn't stopped. Reference Email Screenshot: Reference MS Teams Message Screenshot: Best Regards, Venkat Kiran Kona.799Views0likes0Comments