javascript
113 TopicsWhat is GitHub Codespaces and how can Students access it for free?
GitHub Codespaces is a new service that is free for anyone to develop with powerful environments using Visual Studio Code. In this post, we'll cover how you can make use of this new technology and take advantage of its most powerful features.47KViews5likes6CommentsPDF viewer does not work with JavaScript
Hi All of our corporate documents are managed in a document solution that generates PDF files from the documents with a specific header in the document stating when they have been requested etc. This header uses JavaScript build into the PDF which works just fine in Adobe Acrobat Reader, Internet Explorer (as it uses Acrobat Reader) etc. But sadly in Edge it only loads the top of the header on each page and displays an error saying: "TypeError: this.info.toSource is not a function". The rest of each page is missing (see screenshot below) This means that thousands of documents that cannot be viewed with the build-in PDF viewer in Edge, but we have to manually download the file and then open it in Adobe Reader.32KViews0likes6CommentsSpreadsheets in Space just became more powerful with a new API in Microsoft Excel
We are always looking for new ways to help people do more and create new experiences, so the Excel team was excited to collaborate with CCP Games as they developed a powerful new Excel add-in that will supercharge the EVE Online game experience by making data analytics accessible to all players, no programming knowledge required. This valuable tool enables players of all skill levels to effortlessly access and analyze data to optimize gameplay as they strive for galactic domination.31KViews1like1Commentjavax.mail.AuthenticationFailedException: LOGIN failed
We are facing issues to connect to the Office365 mailbox from java class on/from DB server(Oracle 11.2.0.4.0).The following error is thrown javax.mail.AuthenticationFailedException: LOGIN failed. at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java) at javax.mail.Service.connect(Service.java) 1. The same code on other server is failing for the same mailbox. 2. The same code on the same server is failing for other similar mailbox. 3. java.net.SocketPermissions for connect,resolve for outlook.office365.com are enabled to the DB user 4. Port = 993, protocol = IMAP, server= outlook.office365.com, JDK on DB server: 1.6.0_43, JavaMail Version tried 1.3.2 / 1.3.5 / 1.5.6 Following is the code used to set IMAP properties: private Properties getIMAPProperties(String protocol, int port) { Properties props = System.getProperties(); props.put("mail.imap.host", "outlook.office365.com"); final String SSL_FACTORY = "javax.net.ssl.SSLSocketFactory"; if (protocol.equalsIgnoreCase("IMAP") || protocol.equalsIgnoreCase("IMAPS")) { // Set manual Properties props.setProperty("mail.imap.socketFactory.class", SSL_FACTORY); props.setProperty("mail.imap.socketFactory.fallback", "false"); props.setProperty("mail.imap.port", "993"); props.setProperty("mail.imap.socketFactory.port", "993"); props.setProperty("mail.imap.auth.plain.disable", "true"); props.setProperty("mail.imap.auth.gssapi.disable", "true"); props.setProperty("mail.imap.auth.ntlm.disable", "true"); props.setProperty("mail.imap.ssl.enable", "true"); } return props; } Below is the excerpt of the Store usage in the Java code on DB server import javax.mail.Store; Store store = null; store = session.getStore(protocol.toLowerCase()); --protocol = IMAP store.connect(server, port, username, password); --ERROR is thrown at this step18KViews0likes1CommentWeb Development for Beginners: A new Learning Path on Microsoft Learn
There are roughly 16 million developers in the world today. Roughly half of those, 8 million are web developers. Web development is therefore a good skill to have as you are looking to land that first job and build a career in tech. But where do you begin to learn all that? With this path https://docs.microsoft.com/en-us/learn/paths/web-development-101/. It covers everything from HTML, CSS, JavaScript to Accessibility.16KViews0likes2CommentsAdding custom javascript to sharepoint
Hi, i would like to create a webpart that pops up on a site at random location with something like "Congratz, you won!". I am absolutely new to sharepoint development, but i am very familiar with java. So i guess i can manipulate the DOM somehow with javascript and insert somewhere my visible part of the webpart. I followed https://learn.microsoft.com/en-us/sharepoint/dev/spfx/web-parts/get-started/build-a-hello-world-web-part but i am already struggling. Where i can inject the javascript so it gets executed? Because everything is getting escaped (and the code is shown). I found some old code on one of our servers which "loads" some .js from inside a .ts like: link = document.createElement("script"); link.setAttribute('type', 'module'); link.setAttribute('src', srcPath); link.setAttribute(dataIdentifier, 'true'); and then adding it with document.head.appendChild(link), but i am not sure if this is really how this is supposed to work or if there is something like "addJavascript(...)" or any other better approach to add javascript on client side. Any help is very appreciated!16KViews0likes3CommentsHack Together: RAG Hack - Building RAG Applications with LangChain.js
In the rapidly evolving landscape of Artificial Intelligence and Natural Language Processing, the use of Retrieval Augmented Generation (RAG) has emerged as a powerful solution to enhance the accuracy and relevance of responses generated by language models. In this article, we will explore the talk given during the Hack Together: RAG Hack event, where Glaucia Lemos, a Cloud Advocate at Microsoft, and Yohan Lasorsa, a Senior Cloud Advocate at Microsoft, demonstrated how LangChain.js is revolutionizing the development of RAG applications, making it easier to create intelligent applications that combine large language models (LLMs) with your own data sources.A Practical Guide for Beginners: Azure OpenAI with JavaScript and TypeScript (Part 03)
In this series of three articles, you will learn how to take the first steps in using Azure OpenAI Service with JavaScript and TypeScript! In this final article, let's embark on a journey from setting up Visual Studio Code to running a fully functional application interacting with AI services. Learn to configure environment variables, control conclusion generation, and achieve impressive results with Azure OpenAI and JavaScript/TypeScript. Unleash your creativity and explore deeper into artificial intelligence with our provided resources. Get ready to breathe life into your ideas!11KViews0likes0Comments